4 sec in total
372 ms
3.5 sec
197 ms
Welcome to hrdh003.undeadlinux.org homepage info - get ready to check Hrdh 003 Undeadlinux best content for Germany right away, or after learning these important things about hrdh003.undeadlinux.org
IT Consulting experts - We do Dedicated Server, Management, Monitoring, Pentests!
Visit hrdh003.undeadlinux.orgWe analyzed Hrdh003.undeadlinux.org page load time and found that the first response time was 372 ms and then it took 3.6 sec to load all DOM resources and completely render a web page. This is a poor result, as 60% of websites can load faster.
hrdh003.undeadlinux.org performance score
372 ms
656 ms
66 ms
50 ms
252 ms
Our browser made a total of 47 requests to load all elements on the main page. We found that 2% of them (1 request) were addressed to the original Hrdh003.undeadlinux.org, 57% (27 requests) were made to and 26% (12 requests) were made to Hurricane-computing.com. The less responsive or slowest element that took the longest time to load (1.2 sec) relates to the external source Hurricane-computing.com.
Page size can be reduced by 487.3 kB (46%)
1.1 MB
578.6 kB
In fact, the total size of Hrdh003.undeadlinux.org main page is 1.1 MB. This result falls beyond the top 1M of websites and identifies a large and not optimized web page that may take ages to load. 35% of websites need less resources to load. Images take 432.3 kB which makes up the majority of the site volume.
Potential reduce by 50.8 kB
HTML content can be minified and compressed by a website’s server. The most efficient way is to compress content using GZIP which reduces data amount travelling through the network between server and browser. HTML code on this page is well minified. It is highly recommended that content of this web page should be compressed using GZIP, as it can save up to 50.8 kB or 81% of the original size.
Potential reduce by 8.2 kB
Image size optimization can help to speed up a website loading time. The chart above shows the difference between the size before and after optimization. Hrdh 003 Undeadlinux images are well optimized though.
Potential reduce by 271.8 kB
It’s better to minify JavaScript in order to improve website performance. The diagram shows the current total size of all JavaScript files against the prospective JavaScript size after its minification and compression. It is highly recommended that all JavaScript files should be compressed and minified as it can save up to 271.8 kB or 71% of the original size.
Potential reduce by 156.5 kB
CSS files minification is very important to reduce a web page rendering time. The faster CSS files can load, the earlier a page can be rendered. Hrdh003.undeadlinux.org needs all CSS files to be minified and compressed as it can save up to 156.5 kB or 84% of the original size.
Number of requests can be reduced by 7 (41%)
17
10
The browser has sent 17 CSS, Javascripts, AJAX and image requests in order to completely render the main page of Hrdh 003 Undeadlinux. We recommend that multiple CSS and JavaScript files should be merged into one by each type, as it can help reduce assets requests from 5 to 1 for JavaScripts and from 4 to 1 for CSS and as a result speed up the page load time.
hrdh003.undeadlinux.org
372 ms
hurricane-computing.com
656 ms
css
66 ms
font-awesome.css
50 ms
libs.min.css
252 ms
respond.min.css
354 ms
js
99 ms
respond.site.js
978 ms
webcomponents-lite.min.js
609 ms
libs.min.js
1090 ms
hurricane_logo.png
136 ms
hc_30x30.png
135 ms
theget-20150917-bg-kwur.jpg
476 ms
Powered_by-Kopie.png
378 ms
sdk.js
30 ms
respond-build.html
266 ms
Seminario_slider.png
1240 ms
129 ms
xd_arbiter.php
42 ms
javascript;charset=utf-8,(function()%20%7B%0Afunction%20resolve()%20%7B%0Adocument.body.removeAttribute(%22unresolved%22)%3B%0A%7D%0Aif%20(window.WebComponents)%20%7B%0AaddEventListener(%22WebComponentsReady%22%2C%20resolve)%3B%0A%7D%20else%20%7B%0Aresolve()%3B%0A%7D%0A%7D)()%3B%0A%0APolymer%20%3D%20%7B%0ASettings%3A%20function()%20%7B%0Avar%20user%20%3D%20window.Polymer%20%7C%7C%20%7B%7D%3B%0Alocation.search.slice(1).split(%22%26%22).forEach(function(o)%20%7B%0Ao%20%3D%20o.split(%22%3D%22)%3B%0Ao%5B0%5D%20%26%26%20(user%5Bo%5B0%5D%5D%20%3D%20o%5B1%5D%20%7C%7C%20true)%3B%0A%7D)%3B%0Avar%20wantShadow%20%3D%20user.dom%20%3D%3D%3D%20%22shadow%22%3B%0Avar%20hasShadow%20%3D%20Boolean(Element.prototype.createShadowRoot)%3B%0Avar%20nativeShadow%20%3D%20hasShadow%20%26%26%20!window.ShadowDOMPolyfill%3B%0Avar%20useShadow%20%3D%20wantShadow%20%26%26%20hasShadow%3B%0Avar%20hasNativeImports%20%3D%20Boolean(%22import%22%20in%20document.createElement(%22link%22))%3B%0Avar%20useNativeImports%20%3D%20hasNativeImports%3B%0Avar%20useNativeCustomElements%20%3D%20!window.CustomElements%20%7C%7C%20window.CustomElements.useNative%3B%0Areturn%20%7B%0AwantShadow%3A%20wantShadow%2C%0AhasShadow%3A%20hasShadow%2C%0AnativeShadow%3A%20nativeShadow%2C%0AuseShadow%3A%20useShadow%2C%0AuseNativeShadow%3A%20useShadow%20%26%26%20nativeShadow%2C%0AuseNativeImports%3A%20useNativeImports%2C%0AuseNativeCustomElements%3A%20useNativeCustomElements%0A%7D%3B%0A%7D()%0A%7D%3B%0A%0A(function()%20%7B%0Avar%20userPolymer%20%3D%20window.Polymer%3B%0Awindow.Polymer%20%3D%20function(prototype)%20%7B%0Avar%20ctor%20%3D%20desugar(prototype)%3B%0Aprototype%20%3D%20ctor.prototype%3B%0Avar%20options%20%3D%20%7B%0Aprototype%3A%20prototype%0A%7D%3B%0Aif%20(prototype.extends)%20%7B%0Aoptions.extends%20%3D%20prototype.extends%3B%0A%7D%0APolymer.telemetry._registrate(prototype)%3B%0Adocument.registerElement(prototype.is%2C%20options)%3B%0Areturn%20ctor%3B%0A%7D%3B%0Avar%20desugar%20%3D%20function(prototype)%20%7B%0Aprototype%20%3D%20Polymer.Base.chainObject(prototype%2C%20Polymer.Base)%3B%0Aprototype.registerCallback()%3B%0Areturn%20prototype.constructor%3B%0A%7D%3B%0Awindow.Polymer%20%3D%20Polymer%3B%0Aif%20(userPolymer)%20%7B%0Afor%20(var%20i%20in%20userPolymer)%20%7B%0APolymer%5Bi%5D%20%3D%20userPolymer%5Bi%5D%3B%0A%7D%0A%7D%0APolymer.Class%20%3D%20desugar%3B%0A%7D)()%3B%0A%0APolymer.telemetry%20%3D%20%7B%0Aregistrations%3A%20%5B%5D%2C%0A_regLog%3A%20function(prototype)%20%7B%0Aconsole.log(%22%5B%22%20%2B%20prototype.is%20%2B%20%22%5D%3A%20registered%22)%3B%0A%7D%2C%0A_registrate%3A%20function(prototype)%20%7B%0Athis.registrations.push(prototype)%3B%0APolymer.log%20%26%26%20this._regLog(prototype)%3B%0A%7D%2C%0AdumpRegistrations%3A%20function()%20%7B%0Athis.registrations.forEach(this._regLog)%3B%0A%7D%0A%7D%3B%0A%0AObject.defineProperty(window%2C%20%22currentImport%22%2C%20%7B%0Aenumerable%3A%20true%2C%0Aconfigurable%3A%20true%2C%0Aget%3A%20function()%20%7B%0Areturn%20(document._currentScript%20%7C%7C%20document.currentScript).ownerDocument%3B%0A%7D%0A%7D)%3B%0A%0APolymer.Base%20%3D%20%7B%0A_addFeature%3A%20function(feature)%20%7B%0Athis.extend(this%2C%20feature)%3B%0A%7D%2C%0AregisterCallback%3A%20function()%20%7B%0Athis._registerFeatures()%3B%0Athis._doBehavior(%22registered%22)%3B%0A%7D%2C%0AcreatedCallback%3A%20function()%20%7B%0APolymer.telemetry.instanceCount%2B%2B%3B%0Athis.root%20%3D%20this%3B%0Athis._doBehavior(%22created%22)%3B%0Athis._initFeatures()%3B%0A%7D%2C%0AattachedCallback%3A%20function()%20%7B%0Athis.isAttached%20%3D%20true%3B%0Athis._doBehavior(%22attached%22)%3B%0A%7D%2C%0AdetachedCallback%3A%20function()%20%7B%0Athis.isAttached%20%3D%20false%3B%0Athis._doBehavior(%22detached%22)%3B%0A%7D%2C%0AattributeChangedCallback%3A%20function(name)%20%7B%0Athis._setAttributeToProperty(this%2C%20name)%3B%0Athis._doBehavior(%22attributeChanged%22%2C%20arguments)%3B%0A%7D%2C%0Aextend%3A%20function(prototype%2C%20api)%20%7B%0Aif%20(prototype%20%26%26%20api)%20%7B%0AObject.getOwnPropertyNames(api).forEach(function(n)%20%7B%0Athis.copyOwnProperty(n%2C%20api%2C%20prototype)%3B%0A%7D%2C%20this)%3B%0A%7D%0Areturn%20prototype%20%7C%7C%20api%3B%0A%7D%2C%0AcopyOwnProperty%3A%20function(name%2C%20source%2C%20target)%20%7B%0Avar%20pd%20%3D%20Object.getOwnPropertyDescriptor(source%2C%20name)%3B%0Aif%20(pd)%20%7B%0AObject.defineProperty(target%2C%20name%2C%20pd)%3B%0A%7D%0A%7D%2C%0A_log%3A%20console.log.apply.bind(console.log%2C%20console)%2C%0A_warn%3A%20console.warn.apply.bind(console.warn%2C%20console)%2C%0A_error%3A%20console.error.apply.bind(console.error%2C%20console)%2C%0A_logf%3A%20function()%20%7B%0Areturn%20this._logPrefix.concat(%5B%20this.is%20%5D).concat(Array.prototype.slice.call(arguments%2C%200))%3B%0A%7D%0A%7D%3B%0A%0APolymer.Base._logPrefix%20%3D%20function()%20%7B%0Avar%20color%20%3D%20window.chrome%20%7C%7C%20%2Ffirefox%2Fi.test(navigator.userAgent)%3B%0Areturn%20color%20%3F%20%5B%20%22%25c%5B%25s%3A%3A%25s%5D%3A%22%2C%20%22font-weight%3A%20bold%3B%20background-color%3A%23EEEE00%3B%22%20%5D%20%3A%20%5B%20%22%5B%25s%3A%3A%25s%5D%3A%22%20%5D%3B%0A%7D()%3B%0A%0APolymer.Base.chainObject%20%3D%20function(object%2C%20inherited)%20%7B%0Aif%20(object%20%26%26%20inherited%20%26%26%20object%20!%3D%3D%20inherited)%20%7B%0Aif%20(!Object.__proto__)%20%7B%0Aobject%20%3D%20Polymer.Base.extend(Object.create(inherited)%2C%20object)%3B%0A%7D%0Aobject.__proto__%20%3D%20inherited%3B%0A%7D%0Areturn%20object%3B%0A%7D%3B%0A%0APolymer.Base%20%3D%20Polymer.Base.chainObject(Polymer.Base%2C%20HTMLElement.prototype)%3B%0A%0APolymer.telemetry.instanceCount%20%3D%200%3B%0A%0A(function()%20%7B%0Avar%20modules%20%3D%20%7B%7D%3B%0Avar%20DomModule%20%3D%20function()%20%7B%0Areturn%20document.createElement(%22dom-module%22)%3B%0A%7D%3B%0ADomModule.prototype%20%3D%20Object.create(HTMLElement.prototype)%3B%0ADomModule.prototype.constructor%20%3D%20DomModule%3B%0ADomModule.prototype.createdCallback%20%3D%20function()%20%7B%0Avar%20id%20%3D%20this.id%20%7C%7C%20this.getAttribute(%22name%22)%20%7C%7C%20this.getAttribute(%22is%22)%3B%0Aif%20(id)%20%7B%0Athis.id%20%3D%20id%3B%0Amodules%5Bid%5D%20%3D%20this%3B%0A%7D%0A%7D%3B%0ADomModule.prototype.import%20%3D%20function(id%2C%20slctr)%20%7B%0Avar%20m%20%3D%20modules%5Bid%5D%3B%0Aif%20(!m)%20%7B%0AforceDocumentUpgrade()%3B%0Am%20%3D%20modules%5Bid%5D%3B%0A%7D%0Aif%20(m%20%26%26%20slctr)%20%7B%0Am%20%3D%20m.querySelector(slctr)%3B%0A%7D%0Areturn%20m%3B%0A%7D%3B%0Avar%20cePolyfill%20%3D%20window.CustomElements%20%26%26%20!CustomElements.useNative%3B%0Aif%20(cePolyfill)%20%7B%0Avar%20ready%20%3D%20CustomElements.ready%3B%0ACustomElements.ready%20%3D%20true%3B%0A%7D%0Adocument.registerElement(%22dom-module%22%2C%20DomModule)%3B%0Aif%20(cePolyfill)%20%7B%0ACustomElements.ready%20%3D%20ready%3B%0A%7D%0Afunction%20forceDocumentUpgrade()%20%7B%0Aif%20(cePolyfill)%20%7B%0Avar%20script%20%3D%20document._currentScript%20%7C%7C%20document.currentScript%3B%0Aif%20(script)%20%7B%0ACustomElements.upgradeAll(script.ownerDocument)%3B%0A%7D%0A%7D%0A%7D%0A%7D)()%3B%0A%0APolymer.Base._addFeature(%7B%0A_prepIs%3A%20function()%20%7B%0Aif%20(!this.is)%20%7B%0Avar%20module%20%3D%20(document._currentScript%20%7C%7C%20document.currentScript).parentNode%3B%0Aif%20(module.localName%20%3D%3D%3D%20%22dom-module%22)%20%7B%0Avar%20id%20%3D%20module.id%20%7C%7C%20module.getAttribute(%22name%22)%20%7C%7C%20module.getAttribute(%22is%22)%3B%0Athis.is%20%3D%20id%3B%0A%7D%0A%7D%0A%7D%0A%7D)%3B%0A%0APolymer.Base._addFeature(%7B%0Abehaviors%3A%20%5B%5D%2C%0A_prepBehaviors%3A%20function()%20%7B%0Aif%20(this.behaviors.length)%20%7B%0Athis.behaviors%20%3D%20this._flattenBehaviorsList(this.behaviors)%3B%0A%7D%0Athis._prepAllBehaviors(this.behaviors)%3B%0A%7D%2C%0A_flattenBehaviorsList%3A%20function(behaviors)%20%7B%0Avar%20flat%20%3D%20%5B%5D%3B%0Abehaviors.forEach(function(b)%20%7B%0Aif%20(b%20instanceof%20Array)%20%7B%0Aflat%20%3D%20flat.concat(this._flattenBehaviorsList(b))%3B%0A%7D%20else%20if%20(b)%20%7B%0Aflat.push(b)%3B%0A%7D%20else%20%7B%0Athis._warn(this._logf(%22_flattenBehaviorsList%22%2C%20%22behavior%20is%20null%2C%20check%20for%20missing%20or%20404%20import%22))%3B%0A%7D%0A%7D%2C%20this)%3B%0Areturn%20flat%3B%0A%7D%2C%0A_prepAllBehaviors%3A%20function(behaviors)%20%7B%0Afor%20(var%20i%20%3D%20behaviors.length%20-%201%3B%20i%20%3E%3D%200%3B%20i--)%20%7B%0Athis._mixinBehavior(behaviors%5Bi%5D)%3B%0A%7D%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20behaviors.length%3B%20i%20%3C%20l%3B%20i%2B%2B)%20%7B%0Athis._prepBehavior(behaviors%5Bi%5D)%3B%0A%7D%0Athis._prepBehavior(this)%3B%0A%7D%2C%0A_mixinBehavior%3A%20function(b)%20%7B%0AObject.getOwnPropertyNames(b).forEach(function(n)%20%7B%0Aswitch%20(n)%20%7B%0Acase%20%22hostAttributes%22%3A%0Acase%20%22registered%22%3A%0Acase%20%22properties%22%3A%0Acase%20%22observers%22%3A%0Acase%20%22listeners%22%3A%0Acase%20%22created%22%3A%0Acase%20%22attached%22%3A%0Acase%20%22detached%22%3A%0Acase%20%22attributeChanged%22%3A%0Acase%20%22configure%22%3A%0Acase%20%22ready%22%3A%0Abreak%3B%0A%0Adefault%3A%0Aif%20(!this.hasOwnProperty(n))%20%7B%0Athis.copyOwnProperty(n%2C%20b%2C%20this)%3B%0A%7D%0Abreak%3B%0A%7D%0A%7D%2C%20this)%3B%0A%7D%2C%0A_doBehavior%3A%20function(name%2C%20args)%20%7B%0Athis.behaviors.forEach(function(b)%20%7B%0Athis._invokeBehavior(b%2C%20name%2C%20args)%3B%0A%7D%2C%20this)%3B%0Athis._invokeBehavior(this%2C%20name%2C%20args)%3B%0A%7D%2C%0A_invokeBehavior%3A%20function(b%2C%20name%2C%20args)%20%7B%0Avar%20fn%20%3D%20b%5Bname%5D%3B%0Aif%20(fn)%20%7B%0Afn.apply(this%2C%20args%20%7C%7C%20Polymer.nar)%3B%0A%7D%0A%7D%2C%0A_marshalBehaviors%3A%20function()%20%7B%0Athis.behaviors.forEach(function(b)%20%7B%0Athis._marshalBehavior(b)%3B%0A%7D%2C%20this)%3B%0Athis._marshalBehavior(this)%3B%0A%7D%0A%7D)%3B%0A%0APolymer.Base._addFeature(%7B%0A_prepExtends%3A%20function()%20%7B%0Aif%20(this.extends)%20%7B%0Athis.__proto__%20%3D%20this._getExtendedPrototype(this.extends)%3B%0A%7D%0A%7D%2C%0A_getExtendedPrototype%3A%20function(tag)%20%7B%0Areturn%20this._getExtendedNativePrototype(tag)%3B%0A%7D%2C%0A_nativePrototypes%3A%20%7B%7D%2C%0A_getExtendedNativePrototype%3A%20function(tag)%20%7B%0Avar%20p%20%3D%20this._nativePrototypes%5Btag%5D%3B%0Aif%20(!p)%20%7B%0Avar%20np%20%3D%20this.getNativePrototype(tag)%3B%0Ap%20%3D%20this.extend(Object.create(np)%2C%20Polymer.Base)%3B%0Athis._nativePrototypes%5Btag%5D%20%3D%20p%3B%0A%7D%0Areturn%20p%3B%0A%7D%2C%0AgetNativePrototype%3A%20function(tag)%20%7B%0Areturn%20Object.getPrototypeOf(document.createElement(tag))%3B%0A%7D%0A%7D)%3B%0A%0APolymer.Base._addFeature(%7B%0A_prepConstructor%3A%20function()%20%7B%0Athis._factoryArgs%20%3D%20this.extends%20%3F%20%5B%20this.extends%2C%20this.is%20%5D%20%3A%20%5B%20this.is%20%5D%3B%0Avar%20ctor%20%3D%20function()%20%7B%0Areturn%20this._factory(arguments)%3B%0A%7D%3B%0Aif%20(this.hasOwnProperty(%22extends%22))%20%7B%0Actor.extends%20%3D%20this.extends%3B%0A%7D%0AObject.defineProperty(this%2C%20%22constructor%22%2C%20%7B%0Avalue%3A%20ctor%2C%0Awritable%3A%20true%2C%0Aconfigurable%3A%20true%0A%7D)%3B%0Actor.prototype%20%3D%20this%3B%0A%7D%2C%0A_factory%3A%20function(args)%20%7B%0Avar%20elt%20%3D%20document.createElement.apply(document%2C%20this._factoryArgs)%3B%0Aif%20(this.factoryImpl)%20%7B%0Athis.factoryImpl.apply(elt%2C%20args)%3B%0A%7D%0Areturn%20elt%3B%0A%7D%0A%7D)%3B%0A%0APolymer.nob%20%3D%20Object.create(null)%3B%0A%0APolymer.Base._addFeature(%7B%0Aproperties%3A%20%7B%7D%2C%0AgetPropertyInfo%3A%20function(property)%20%7B%0Avar%20info%20%3D%20this._getPropertyInfo(property%2C%20this.properties)%3B%0Aif%20(!info)%20%7B%0Athis.behaviors.some(function(b)%20%7B%0Areturn%20info%20%3D%20this._getPropertyInfo(property%2C%20b.properties)%3B%0A%7D%2C%20this)%3B%0A%7D%0Areturn%20info%20%7C%7C%20Polymer.nob%3B%0A%7D%2C%0A_getPropertyInfo%3A%20function(property%2C%20properties)%20%7B%0Avar%20p%20%3D%20properties%20%26%26%20properties%5Bproperty%5D%3B%0Aif%20(typeof%20p%20%3D%3D%3D%20%22function%22)%20%7B%0Ap%20%3D%20properties%5Bproperty%5D%20%3D%20%7B%0Atype%3A%20p%0A%7D%3B%0A%7D%0Aif%20(p)%20%7B%0Ap.defined%20%3D%20true%3B%0A%7D%0Areturn%20p%3B%0A%7D%0A%7D)%3B%0A%0APolymer.CaseMap%20%3D%20%7B%0A_caseMap%3A%20%7B%7D%2C%0AdashToCamelCase%3A%20function(dash)%20%7B%0Avar%20mapped%20%3D%20Polymer.CaseMap._caseMap%5Bdash%5D%3B%0Aif%20(mapped)%20%7B%0Areturn%20mapped%3B%0A%7D%0Aif%20(dash.indexOf(%22-%22)%20%3C%200)%20%7B%0Areturn%20Polymer.CaseMap._caseMap%5Bdash%5D%20%3D%20dash%3B%0A%7D%0Areturn%20Polymer.CaseMap._caseMap%5Bdash%5D%20%3D%20dash.replace(%2F-(%5Ba-z%5D)%2Fg%2C%20function(m)%20%7B%0Areturn%20m%5B1%5D.toUpperCase()%3B%0A%7D)%3B%0A%7D%2C%0AcamelToDashCase%3A%20function(camel)%20%7B%0Avar%20mapped%20%3D%20Polymer.CaseMap._caseMap%5Bcamel%5D%3B%0Aif%20(mapped)%20%7B%0Areturn%20mapped%3B%0A%7D%0Areturn%20Polymer.CaseMap._caseMap%5Bcamel%5D%20%3D%20camel.replace(%2F(%5Ba-z%5D%5BA-Z%5D)%2Fg%2C%20function(g)%20%7B%0Areturn%20g%5B0%5D%20%2B%20%22-%22%20%2B%20g%5B1%5D.toLowerCase()%3B%0A%7D)%3B%0A%7D%0A%7D%3B%0A%0APolymer.Base._addFeature(%7B%0A_prepAttributes%3A%20function()%20%7B%0Athis._aggregatedAttributes%20%3D%20%7B%7D%3B%0A%7D%2C%0A_addHostAttributes%3A%20function(attributes)%20%7B%0Aif%20(attributes)%20%7B%0Athis.mixin(this._aggregatedAttributes%2C%20attributes)%3B%0A%7D%0A%7D%2C%0A_marshalHostAttributes%3A%20function()%20%7B%0Athis._applyAttributes(this%2C%20this._aggregatedAttributes)%3B%0A%7D%2C%0A_applyAttributes%3A%20function(node%2C%20attr%24)%20%7B%0Afor%20(var%20n%20in%20attr%24)%20%7B%0Aif%20(!this.hasAttribute(n)%20%26%26%20n%20!%3D%3D%20%22class%22)%20%7B%0Athis.serializeValueToAttribute(attr%24%5Bn%5D%2C%20n%2C%20this)%3B%0A%7D%0A%7D%0A%7D%2C%0A_marshalAttributes%3A%20function()%20%7B%0Athis._takeAttributesToModel(this)%3B%0A%7D%2C%0A_takeAttributesToModel%3A%20function(model)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20this.attributes.length%3B%20i%20%3C%20l%3B%20i%2B%2B)%20%7B%0Athis._setAttributeToProperty(model%2C%20this.attributes%5Bi%5D.name)%3B%0A%7D%0A%7D%2C%0A_setAttributeToProperty%3A%20function(model%2C%20attrName)%20%7B%0Aif%20(!this._serializing)%20%7B%0Avar%20propName%20%3D%20Polymer.CaseMap.dashToCamelCase(attrName)%3B%0Avar%20info%20%3D%20this.getPropertyInfo(propName)%3B%0Aif%20(info.defined%20%7C%7C%20this._propertyEffects%20%26%26%20this._propertyEffects%5BpropName%5D)%20%7B%0Avar%20val%20%3D%20this.getAttribute(attrName)%3B%0Amodel%5BpropName%5D%20%3D%20this.deserialize(val%2C%20info.type)%3B%0A%7D%0A%7D%0A%7D%2C%0A_serializing%3A%20false%2C%0AreflectPropertyToAttribute%3A%20function(name)%20%7B%0Athis._serializing%20%3D%20true%3B%0Athis.serializeValueToAttribute(this%5Bname%5D%2C%20Polymer.CaseMap.camelToDashCase(name))%3B%0Athis._serializing%20%3D%20false%3B%0A%7D%2C%0AserializeValueToAttribute%3A%20function(value%2C%20attribute%2C%20node)%20%7B%0Avar%20str%20%3D%20this.serialize(value)%3B%0A(node%20%7C%7C%20this)%5Bstr%20%3D%3D%3D%20undefined%20%3F%20%22removeAttribute%22%20%3A%20%22setAttribute%22%5D(attribute%2C%20str)%3B%0A%7D%2C%0Adeserialize%3A%20function(value%2C%20type)%20%7B%0Aswitch%20(type)%20%7B%0Acase%20Number%3A%0Avalue%20%3D%20Number(value)%3B%0Abreak%3B%0A%0Acase%20Boolean%3A%0Avalue%20%3D%20value%20!%3D%3D%20null%3B%0Abreak%3B%0A%0Acase%20Object%3A%0Atry%20%7B%0Avalue%20%3D%20JSON.parse(value)%3B%0A%7D%20catch%20(x)%20%7B%7D%0Abreak%3B%0A%0Acase%20Array%3A%0Atry%20%7B%0Avalue%20%3D%20JSON.parse(value)%3B%0A%7D%20catch%20(x)%20%7B%0Avalue%20%3D%20null%3B%0Aconsole.warn(%22Polymer%3A%3AAttributes%3A%20couldn%60t%20decode%20Array%20as%20JSON%22)%3B%0A%7D%0Abreak%3B%0A%0Acase%20Date%3A%0Avalue%20%3D%20new%20Date(value)%3B%0Abreak%3B%0A%0Acase%20String%3A%0Adefault%3A%0Abreak%3B%0A%7D%0Areturn%20value%3B%0A%7D%2C%0Aserialize%3A%20function(value)%20%7B%0Aswitch%20(typeof%20value)%20%7B%0Acase%20%22boolean%22%3A%0Areturn%20value%20%3F%20%22%22%20%3A%20undefined%3B%0A%0Acase%20%22object%22%3A%0Aif%20(value%20instanceof%20Date)%20%7B%0Areturn%20value%3B%0A%7D%20else%20if%20(value)%20%7B%0Atry%20%7B%0Areturn%20JSON.stringify(value)%3B%0A%7D%20catch%20(x)%20%7B%0Areturn%20%22%22%3B%0A%7D%0A%7D%0A%0Adefault%3A%0Areturn%20value%20!%3D%20null%20%3F%20value%20%3A%20undefined%3B%0A%7D%0A%7D%0A%7D)%3B%0A%0APolymer.Base._addFeature(%7B%0A_setupDebouncers%3A%20function()%20%7B%0Athis._debouncers%20%3D%20%7B%7D%3B%0A%7D%2C%0Adebounce%3A%20function(jobName%2C%20callback%2C%20wait)%20%7B%0Athis._debouncers%5BjobName%5D%20%3D%20Polymer.Debounce.call(this%2C%20this._debouncers%5BjobName%5D%2C%20callback%2C%20wait)%3B%0A%7D%2C%0AisDebouncerActive%3A%20function(jobName)%20%7B%0Avar%20debouncer%20%3D%20this._debouncers%5BjobName%5D%3B%0Areturn%20debouncer%20%26%26%20debouncer.finish%3B%0A%7D%2C%0AflushDebouncer%3A%20function(jobName)%20%7B%0Avar%20debouncer%20%3D%20this._debouncers%5BjobName%5D%3B%0Aif%20(debouncer)%20%7B%0Adebouncer.complete()%3B%0A%7D%0A%7D%2C%0AcancelDebouncer%3A%20function(jobName)%20%7B%0Avar%20debouncer%20%3D%20this._debouncers%5BjobName%5D%3B%0Aif%20(debouncer)%20%7B%0Adebouncer.stop()%3B%0A%7D%0A%7D%0A%7D)%3B%0A%0APolymer.version%20%3D%20%221.0.2%22%3B%0A%0APolymer.Base._addFeature(%7B%0A_registerFeatures%3A%20function()%20%7B%0Athis._prepIs()%3B%0Athis._prepAttributes()%3B%0Athis._prepBehaviors()%3B%0Athis._prepExtends()%3B%0Athis._prepConstructor()%3B%0A%7D%2C%0A_prepBehavior%3A%20function(b)%20%7B%0Athis._addHostAttributes(b.hostAttributes)%3B%0A%7D%2C%0A_marshalBehavior%3A%20function(b)%20%7B%7D%2C%0A_initFeatures%3A%20function()%20%7B%0Athis._marshalHostAttributes()%3B%0Athis._setupDebouncers()%3B%0Athis._marshalBehaviors()%3B%0A%7D%0A%7D)%3B%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html.js%0A
1 ms
javascript;charset=utf-8,Polymer.Base._addFeature(%7B%0A_prepTemplate%3A%20function()%20%7B%0Athis._template%20%3D%20this._template%20%7C%7C%20Polymer.DomModule.import(this.is%2C%20%22template%22)%3B%0Aif%20(!this._template)%20%7B%0Avar%20script%20%3D%20document._currentScript%20%7C%7C%20document.currentScript%3B%0Avar%20prev%20%3D%20script%20%26%26%20script.previousElementSibling%3B%0Aif%20(prev%20%26%26%20prev.localName%20%3D%3D%3D%20%22template%22)%20%7B%0Athis._template%20%3D%20prev%3B%0A%7D%0A%7D%0Aif%20(this._template%20%26%26%20this._template.hasAttribute(%22is%22))%20%7B%0Athis._warn(this._logf(%22_prepTemplate%22%2C%20%22top-level%20Polymer%20template%20%22%20%2B%20%22must%20not%20be%20a%20type-extension%2C%20found%22%2C%20this._template%2C%20%22Move%20inside%20simple%20%3Ctemplate%3E.%22))%3B%0A%7D%0A%7D%2C%0A_stampTemplate%3A%20function()%20%7B%0Aif%20(this._template)%20%7B%0Athis.root%20%3D%20this.instanceTemplate(this._template)%3B%0A%7D%0A%7D%2C%0AinstanceTemplate%3A%20function(template)%20%7B%0Avar%20dom%20%3D%20document.importNode(template._content%20%7C%7C%20template.content%2C%20true)%3B%0Areturn%20dom%3B%0A%7D%0A%7D)%3B%0A%0A(function()%20%7B%0Avar%20baseAttachedCallback%20%3D%20Polymer.Base.attachedCallback%3B%0APolymer.Base._addFeature(%7B%0A_hostStack%3A%20%5B%5D%2C%0Aready%3A%20function()%20%7B%7D%2C%0A_pushHost%3A%20function(host)%20%7B%0Athis.dataHost%20%3D%20host%20%3D%20host%20%7C%7C%20Polymer.Base._hostStack%5BPolymer.Base._hostStack.length%20-%201%5D%3B%0Aif%20(host%20%26%26%20host._clients)%20%7B%0Ahost._clients.push(this)%3B%0A%7D%0Athis._beginHost()%3B%0A%7D%2C%0A_beginHost%3A%20function()%20%7B%0APolymer.Base._hostStack.push(this)%3B%0Aif%20(!this._clients)%20%7B%0Athis._clients%20%3D%20%5B%5D%3B%0A%7D%0A%7D%2C%0A_popHost%3A%20function()%20%7B%0APolymer.Base._hostStack.pop()%3B%0A%7D%2C%0A_tryReady%3A%20function()%20%7B%0Aif%20(this._canReady())%20%7B%0Athis._ready()%3B%0A%7D%0A%7D%2C%0A_canReady%3A%20function()%20%7B%0Areturn%20!this.dataHost%20%7C%7C%20this.dataHost._clientsReadied%3B%0A%7D%2C%0A_ready%3A%20function()%20%7B%0Athis._beforeClientsReady()%3B%0Athis._setupRoot()%3B%0Athis._readyClients()%3B%0Athis._afterClientsReady()%3B%0Athis._readySelf()%3B%0A%7D%2C%0A_readyClients%3A%20function()%20%7B%0Athis._beginDistribute()%3B%0Avar%20c%24%20%3D%20this._clients%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20c%24.length%2C%20c%3B%20i%20%3C%20l%20%26%26%20(c%20%3D%20c%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Ac._ready()%3B%0A%7D%0Athis._finishDistribute()%3B%0Athis._clientsReadied%20%3D%20true%3B%0Athis._clients%20%3D%20null%3B%0A%7D%2C%0A_readySelf%3A%20function()%20%7B%0Athis._doBehavior(%22ready%22)%3B%0Athis._readied%20%3D%20true%3B%0Aif%20(this._attachedPending)%20%7B%0Athis._attachedPending%20%3D%20false%3B%0Athis.attachedCallback()%3B%0A%7D%0A%7D%2C%0A_beforeClientsReady%3A%20function()%20%7B%7D%2C%0A_afterClientsReady%3A%20function()%20%7B%7D%2C%0A_beforeAttached%3A%20function()%20%7B%7D%2C%0AattachedCallback%3A%20function()%20%7B%0Aif%20(this._readied)%20%7B%0Athis._beforeAttached()%3B%0AbaseAttachedCallback.call(this)%3B%0A%7D%20else%20%7B%0Athis._attachedPending%20%3D%20true%3B%0A%7D%0A%7D%0A%7D)%3B%0A%7D)()%3B%0A%0APolymer.ArraySplice%20%3D%20function()%20%7B%0Afunction%20newSplice(index%2C%20removed%2C%20addedCount)%20%7B%0Areturn%20%7B%0Aindex%3A%20index%2C%0Aremoved%3A%20removed%2C%0AaddedCount%3A%20addedCount%0A%7D%3B%0A%7D%0Avar%20EDIT_LEAVE%20%3D%200%3B%0Avar%20EDIT_UPDATE%20%3D%201%3B%0Avar%20EDIT_ADD%20%3D%202%3B%0Avar%20EDIT_DELETE%20%3D%203%3B%0Afunction%20ArraySplice()%20%7B%7D%0AArraySplice.prototype%20%3D%20%7B%0AcalcEditDistances%3A%20function(current%2C%20currentStart%2C%20currentEnd%2C%20old%2C%20oldStart%2C%20oldEnd)%20%7B%0Avar%20rowCount%20%3D%20oldEnd%20-%20oldStart%20%2B%201%3B%0Avar%20columnCount%20%3D%20currentEnd%20-%20currentStart%20%2B%201%3B%0Avar%20distances%20%3D%20new%20Array(rowCount)%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20rowCount%3B%20i%2B%2B)%20%7B%0Adistances%5Bi%5D%20%3D%20new%20Array(columnCount)%3B%0Adistances%5Bi%5D%5B0%5D%20%3D%20i%3B%0A%7D%0Afor%20(var%20j%20%3D%200%3B%20j%20%3C%20columnCount%3B%20j%2B%2B)%20distances%5B0%5D%5Bj%5D%20%3D%20j%3B%0Afor%20(var%20i%20%3D%201%3B%20i%20%3C%20rowCount%3B%20i%2B%2B)%20%7B%0Afor%20(var%20j%20%3D%201%3B%20j%20%3C%20columnCount%3B%20j%2B%2B)%20%7B%0Aif%20(this.equals(current%5BcurrentStart%20%2B%20j%20-%201%5D%2C%20old%5BoldStart%20%2B%20i%20-%201%5D))%20distances%5Bi%5D%5Bj%5D%20%3D%20distances%5Bi%20-%201%5D%5Bj%20-%201%5D%3B%20else%20%7B%0Avar%20north%20%3D%20distances%5Bi%20-%201%5D%5Bj%5D%20%2B%201%3B%0Avar%20west%20%3D%20distances%5Bi%5D%5Bj%20-%201%5D%20%2B%201%3B%0Adistances%5Bi%5D%5Bj%5D%20%3D%20north%20%3C%20west%20%3F%20north%20%3A%20west%3B%0A%7D%0A%7D%0A%7D%0Areturn%20distances%3B%0A%7D%2C%0AspliceOperationsFromEditDistances%3A%20function(distances)%20%7B%0Avar%20i%20%3D%20distances.length%20-%201%3B%0Avar%20j%20%3D%20distances%5B0%5D.length%20-%201%3B%0Avar%20current%20%3D%20distances%5Bi%5D%5Bj%5D%3B%0Avar%20edits%20%3D%20%5B%5D%3B%0Awhile%20(i%20%3E%200%20%7C%7C%20j%20%3E%200)%20%7B%0Aif%20(i%20%3D%3D%200)%20%7B%0Aedits.push(EDIT_ADD)%3B%0Aj--%3B%0Acontinue%3B%0A%7D%0Aif%20(j%20%3D%3D%200)%20%7B%0Aedits.push(EDIT_DELETE)%3B%0Ai--%3B%0Acontinue%3B%0A%7D%0Avar%20northWest%20%3D%20distances%5Bi%20-%201%5D%5Bj%20-%201%5D%3B%0Avar%20west%20%3D%20distances%5Bi%20-%201%5D%5Bj%5D%3B%0Avar%20north%20%3D%20distances%5Bi%5D%5Bj%20-%201%5D%3B%0Avar%20min%3B%0Aif%20(west%20%3C%20north)%20min%20%3D%20west%20%3C%20northWest%20%3F%20west%20%3A%20northWest%3B%20else%20min%20%3D%20north%20%3C%20northWest%20%3F%20north%20%3A%20northWest%3B%0Aif%20(min%20%3D%3D%20northWest)%20%7B%0Aif%20(northWest%20%3D%3D%20current)%20%7B%0Aedits.push(EDIT_LEAVE)%3B%0A%7D%20else%20%7B%0Aedits.push(EDIT_UPDATE)%3B%0Acurrent%20%3D%20northWest%3B%0A%7D%0Ai--%3B%0Aj--%3B%0A%7D%20else%20if%20(min%20%3D%3D%20west)%20%7B%0Aedits.push(EDIT_DELETE)%3B%0Ai--%3B%0Acurrent%20%3D%20west%3B%0A%7D%20else%20%7B%0Aedits.push(EDIT_ADD)%3B%0Aj--%3B%0Acurrent%20%3D%20north%3B%0A%7D%0A%7D%0Aedits.reverse()%3B%0Areturn%20edits%3B%0A%7D%2C%0AcalcSplices%3A%20function(current%2C%20currentStart%2C%20currentEnd%2C%20old%2C%20oldStart%2C%20oldEnd)%20%7B%0Avar%20prefixCount%20%3D%200%3B%0Avar%20suffixCount%20%3D%200%3B%0Avar%20minLength%20%3D%20Math.min(currentEnd%20-%20currentStart%2C%20oldEnd%20-%20oldStart)%3B%0Aif%20(currentStart%20%3D%3D%200%20%26%26%20oldStart%20%3D%3D%200)%20prefixCount%20%3D%20this.sharedPrefix(current%2C%20old%2C%20minLength)%3B%0Aif%20(currentEnd%20%3D%3D%20current.length%20%26%26%20oldEnd%20%3D%3D%20old.length)%20suffixCount%20%3D%20this.sharedSuffix(current%2C%20old%2C%20minLength%20-%20prefixCount)%3B%0AcurrentStart%20%2B%3D%20prefixCount%3B%0AoldStart%20%2B%3D%20prefixCount%3B%0AcurrentEnd%20-%3D%20suffixCount%3B%0AoldEnd%20-%3D%20suffixCount%3B%0Aif%20(currentEnd%20-%20currentStart%20%3D%3D%200%20%26%26%20oldEnd%20-%20oldStart%20%3D%3D%200)%20return%20%5B%5D%3B%0Aif%20(currentStart%20%3D%3D%20currentEnd)%20%7B%0Avar%20splice%20%3D%20newSplice(currentStart%2C%20%5B%5D%2C%200)%3B%0Awhile%20(oldStart%20%3C%20oldEnd)%20splice.removed.push(old%5BoldStart%2B%2B%5D)%3B%0Areturn%20%5B%20splice%20%5D%3B%0A%7D%20else%20if%20(oldStart%20%3D%3D%20oldEnd)%20return%20%5B%20newSplice(currentStart%2C%20%5B%5D%2C%20currentEnd%20-%20currentStart)%20%5D%3B%0Avar%20ops%20%3D%20this.spliceOperationsFromEditDistances(this.calcEditDistances(current%2C%20currentStart%2C%20currentEnd%2C%20old%2C%20oldStart%2C%20oldEnd))%3B%0Avar%20splice%20%3D%20undefined%3B%0Avar%20splices%20%3D%20%5B%5D%3B%0Avar%20index%20%3D%20currentStart%3B%0Avar%20oldIndex%20%3D%20oldStart%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20ops.length%3B%20i%2B%2B)%20%7B%0Aswitch%20(ops%5Bi%5D)%20%7B%0Acase%20EDIT_LEAVE%3A%0Aif%20(splice)%20%7B%0Asplices.push(splice)%3B%0Asplice%20%3D%20undefined%3B%0A%7D%0Aindex%2B%2B%3B%0AoldIndex%2B%2B%3B%0Abreak%3B%0A%0Acase%20EDIT_UPDATE%3A%0Aif%20(!splice)%20splice%20%3D%20newSplice(index%2C%20%5B%5D%2C%200)%3B%0Asplice.addedCount%2B%2B%3B%0Aindex%2B%2B%3B%0Asplice.removed.push(old%5BoldIndex%5D)%3B%0AoldIndex%2B%2B%3B%0Abreak%3B%0A%0Acase%20EDIT_ADD%3A%0Aif%20(!splice)%20splice%20%3D%20newSplice(index%2C%20%5B%5D%2C%200)%3B%0Asplice.addedCount%2B%2B%3B%0Aindex%2B%2B%3B%0Abreak%3B%0A%0Acase%20EDIT_DELETE%3A%0Aif%20(!splice)%20splice%20%3D%20newSplice(index%2C%20%5B%5D%2C%200)%3B%0Asplice.removed.push(old%5BoldIndex%5D)%3B%0AoldIndex%2B%2B%3B%0Abreak%3B%0A%7D%0A%7D%0Aif%20(splice)%20%7B%0Asplices.push(splice)%3B%0A%7D%0Areturn%20splices%3B%0A%7D%2C%0AsharedPrefix%3A%20function(current%2C%20old%2C%20searchLength)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20searchLength%3B%20i%2B%2B)%20if%20(!this.equals(current%5Bi%5D%2C%20old%5Bi%5D))%20return%20i%3B%0Areturn%20searchLength%3B%0A%7D%2C%0AsharedSuffix%3A%20function(current%2C%20old%2C%20searchLength)%20%7B%0Avar%20index1%20%3D%20current.length%3B%0Avar%20index2%20%3D%20old.length%3B%0Avar%20count%20%3D%200%3B%0Awhile%20(count%20%3C%20searchLength%20%26%26%20this.equals(current%5B--index1%5D%2C%20old%5B--index2%5D))%20count%2B%2B%3B%0Areturn%20count%3B%0A%7D%2C%0AcalculateSplices%3A%20function(current%2C%20previous)%20%7B%0Areturn%20this.calcSplices(current%2C%200%2C%20current.length%2C%20previous%2C%200%2C%20previous.length)%3B%0A%7D%2C%0Aequals%3A%20function(currentValue%2C%20previousValue)%20%7B%0Areturn%20currentValue%20%3D%3D%3D%20previousValue%3B%0A%7D%0A%7D%3B%0Areturn%20new%20ArraySplice()%3B%0A%7D()%3B%0A%0APolymer.EventApi%20%3D%20function()%20%7B%0Avar%20Settings%20%3D%20Polymer.Settings%3B%0Avar%20EventApi%20%3D%20function(event)%20%7B%0Athis.event%20%3D%20event%3B%0A%7D%3B%0Aif%20(Settings.useShadow)%20%7B%0AEventApi.prototype%20%3D%20%7B%0Aget%20rootTarget()%20%7B%0Areturn%20this.event.path%5B0%5D%3B%0A%7D%2C%0Aget%20localTarget()%20%7B%0Areturn%20this.event.target%3B%0A%7D%2C%0Aget%20path()%20%7B%0Areturn%20this.event.path%3B%0A%7D%0A%7D%3B%0A%7D%20else%20%7B%0AEventApi.prototype%20%3D%20%7B%0Aget%20rootTarget()%20%7B%0Areturn%20this.event.target%3B%0A%7D%2C%0Aget%20localTarget()%20%7B%0Avar%20current%20%3D%20this.event.currentTarget%3B%0Avar%20currentRoot%20%3D%20current%20%26%26%20Polymer.dom(current).getOwnerRoot()%3B%0Avar%20p%24%20%3D%20this.path%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20p%24.length%3B%20i%2B%2B)%20%7B%0Aif%20(Polymer.dom(p%24%5Bi%5D).getOwnerRoot()%20%3D%3D%3D%20currentRoot)%20%7B%0Areturn%20p%24%5Bi%5D%3B%0A%7D%0A%7D%0A%7D%2C%0Aget%20path()%20%7B%0Aif%20(!this.event._path)%20%7B%0Avar%20path%20%3D%20%5B%5D%3B%0Avar%20o%20%3D%20this.rootTarget%3B%0Awhile%20(o)%20%7B%0Apath.push(o)%3B%0Ao%20%3D%20Polymer.dom(o).parentNode%20%7C%7C%20o.host%3B%0A%7D%0Apath.push(window)%3B%0Athis.event._path%20%3D%20path%3B%0A%7D%0Areturn%20this.event._path%3B%0A%7D%0A%7D%3B%0A%7D%0Avar%20factory%20%3D%20function(event)%20%7B%0Aif%20(!event.__eventApi)%20%7B%0Aevent.__eventApi%20%3D%20new%20EventApi(event)%3B%0A%7D%0Areturn%20event.__eventApi%3B%0A%7D%3B%0Areturn%20%7B%0Afactory%3A%20factory%0A%7D%3B%0A%7D()%3B%0A%0APolymer.domInnerHTML%20%3D%20function()%20%7B%0Avar%20escapeAttrRegExp%20%3D%20%2F%5B%26%5Cu00A0%22%5D%2Fg%3B%0Avar%20escapeDataRegExp%20%3D%20%2F%5B%26%5Cu00A0%3C%3E%5D%2Fg%3B%0Afunction%20escapeReplace(c)%20%7B%0Aswitch%20(c)%20%7B%0Acase%20%22%26%22%3A%0Areturn%20%22%26amp%3B%22%3B%0A%0Acase%20%22%3C%22%3A%0Areturn%20%22%26lt%3B%22%3B%0A%0Acase%20%22%3E%22%3A%0Areturn%20%22%26gt%3B%22%3B%0A%0Acase%20'%22'%3A%0Areturn%20%22%26quot%3B%22%3B%0A%0Acase%20%22%C2%A0%22%3A%0Areturn%20%22%26nbsp%3B%22%3B%0A%7D%0A%7D%0Afunction%20escapeAttr(s)%20%7B%0Areturn%20s.replace(escapeAttrRegExp%2C%20escapeReplace)%3B%0A%7D%0Afunction%20escapeData(s)%20%7B%0Areturn%20s.replace(escapeDataRegExp%2C%20escapeReplace)%3B%0A%7D%0Afunction%20makeSet(arr)%20%7B%0Avar%20set%20%3D%20%7B%7D%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20arr.length%3B%20i%2B%2B)%20%7B%0Aset%5Barr%5Bi%5D%5D%20%3D%20true%3B%0A%7D%0Areturn%20set%3B%0A%7D%0Avar%20voidElements%20%3D%20makeSet(%5B%20%22area%22%2C%20%22base%22%2C%20%22br%22%2C%20%22col%22%2C%20%22command%22%2C%20%22embed%22%2C%20%22hr%22%2C%20%22img%22%2C%20%22input%22%2C%20%22keygen%22%2C%20%22link%22%2C%20%22meta%22%2C%20%22param%22%2C%20%22source%22%2C%20%22track%22%2C%20%22wbr%22%20%5D)%3B%0Avar%20plaintextParents%20%3D%20makeSet(%5B%20%22style%22%2C%20%22script%22%2C%20%22xmp%22%2C%20%22iframe%22%2C%20%22noembed%22%2C%20%22noframes%22%2C%20%22plaintext%22%2C%20%22noscript%22%20%5D)%3B%0Afunction%20getOuterHTML(node%2C%20parentNode%2C%20composed)%20%7B%0Aswitch%20(node.nodeType)%20%7B%0Acase%20Node.ELEMENT_NODE%3A%0Avar%20tagName%20%3D%20node.localName%3B%0Avar%20s%20%3D%20%22%3C%22%20%2B%20tagName%3B%0Avar%20attrs%20%3D%20node.attributes%3B%0Afor%20(var%20i%20%3D%200%2C%20attr%3B%20attr%20%3D%20attrs%5Bi%5D%3B%20i%2B%2B)%20%7B%0As%20%2B%3D%20%22%20%22%20%2B%20attr.name%20%2B%20'%3D%22'%20%2B%20escapeAttr(attr.value)%20%2B%20'%22'%3B%0A%7D%0As%20%2B%3D%20%22%3E%22%3B%0Aif%20(voidElements%5BtagName%5D)%20%7B%0Areturn%20s%3B%0A%7D%0Areturn%20s%20%2B%20getInnerHTML(node%2C%20composed)%20%2B%20%22%3C%2F%22%20%2B%20tagName%20%2B%20%22%3E%22%3B%0A%0Acase%20Node.TEXT_NODE%3A%0Avar%20data%20%3D%20node.data%3B%0Aif%20(parentNode%20%26%26%20plaintextParents%5BparentNode.localName%5D)%20%7B%0Areturn%20data%3B%0A%7D%0Areturn%20escapeData(data)%3B%0A%0Acase%20Node.COMMENT_NODE%3A%0Areturn%20%22%3C!--%22%20%2B%20node.data%20%2B%20%22--%3E%22%3B%0A%0Adefault%3A%0Aconsole.error(node)%3B%0Athrow%20new%20Error(%22not%20implemented%22)%3B%0A%7D%0A%7D%0Afunction%20getInnerHTML(node%2C%20composed)%20%7B%0Aif%20(node%20instanceof%20HTMLTemplateElement)%20node%20%3D%20node.content%3B%0Avar%20s%20%3D%20%22%22%3B%0Avar%20c%24%20%3D%20Polymer.dom(node).childNodes%3B%0Ac%24%20%3D%20composed%20%3F%20node._composedChildren%20%3A%20c%24%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20c%24.length%2C%20child%3B%20i%20%3C%20l%20%26%26%20(child%20%3D%20c%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0As%20%2B%3D%20getOuterHTML(child%2C%20node%2C%20composed)%3B%0A%7D%0Areturn%20s%3B%0A%7D%0Areturn%20%7B%0AgetInnerHTML%3A%20getInnerHTML%0A%7D%3B%0A%7D()%3B%0A%0APolymer.DomApi%20%3D%20function()%20%7B%0A%22use%20strict%22%3B%0Avar%20Settings%20%3D%20Polymer.Settings%3B%0Avar%20getInnerHTML%20%3D%20Polymer.domInnerHTML.getInnerHTML%3B%0Avar%20nativeInsertBefore%20%3D%20Element.prototype.insertBefore%3B%0Avar%20nativeRemoveChild%20%3D%20Element.prototype.removeChild%3B%0Avar%20nativeAppendChild%20%3D%20Element.prototype.appendChild%3B%0Avar%20dirtyRoots%20%3D%20%5B%5D%3B%0Avar%20DomApi%20%3D%20function(node)%20%7B%0Athis.node%20%3D%20node%3B%0Aif%20(this.patch)%20%7B%0Athis.patch()%3B%0A%7D%0A%7D%3B%0ADomApi.prototype%20%3D%20%7B%0Aflush%3A%20function()%20%7B%0Afor%20(var%20i%20%3D%200%2C%20host%3B%20i%20%3C%20dirtyRoots.length%3B%20i%2B%2B)%20%7B%0Ahost%20%3D%20dirtyRoots%5Bi%5D%3B%0Ahost.flushDebouncer(%22_distribute%22)%3B%0A%7D%0AdirtyRoots%20%3D%20%5B%5D%3B%0A%7D%2C%0A_lazyDistribute%3A%20function(host)%20%7B%0Aif%20(host.shadyRoot%20%26%26%20host.shadyRoot._distributionClean)%20%7B%0Ahost.shadyRoot._distributionClean%20%3D%20false%3B%0Ahost.debounce(%22_distribute%22%2C%20host._distributeContent)%3B%0AdirtyRoots.push(host)%3B%0A%7D%0A%7D%2C%0AappendChild%3A%20function(node)%20%7B%0Avar%20distributed%3B%0Athis._removeNodeFromHost(node)%3B%0Aif%20(this._nodeIsInLogicalTree(this.node))%20%7B%0Avar%20host%20%3D%20this._hostForNode(this.node)%3B%0Athis._addLogicalInfo(node%2C%20this.node%2C%20host%20%26%26%20host.shadyRoot)%3B%0Athis._addNodeToHost(node)%3B%0Aif%20(host)%20%7B%0Adistributed%20%3D%20this._maybeDistribute(node%2C%20this.node%2C%20host)%3B%0A%7D%0A%7D%0Aif%20(!distributed%20%26%26%20!this._tryRemoveUndistributedNode(node))%20%7B%0Avar%20container%20%3D%20this.node._isShadyRoot%20%3F%20this.node.host%20%3A%20this.node%3B%0AnativeAppendChild.call(container%2C%20node)%3B%0AaddToComposedParent(container%2C%20node)%3B%0A%7D%0Areturn%20node%3B%0A%7D%2C%0AinsertBefore%3A%20function(node%2C%20ref_node)%20%7B%0Aif%20(!ref_node)%20%7B%0Areturn%20this.appendChild(node)%3B%0A%7D%0Avar%20distributed%3B%0Athis._removeNodeFromHost(node)%3B%0Aif%20(this._nodeIsInLogicalTree(this.node))%20%7B%0AsaveLightChildrenIfNeeded(this.node)%3B%0Avar%20children%20%3D%20this.childNodes%3B%0Avar%20index%20%3D%20children.indexOf(ref_node)%3B%0Aif%20(index%20%3C%200)%20%7B%0Athrow%20Error(%22The%20ref_node%20to%20be%20inserted%20before%20is%20not%20a%20child%20%22%20%2B%20%22of%20this%20node%22)%3B%0A%7D%0Avar%20host%20%3D%20this._hostForNode(this.node)%3B%0Athis._addLogicalInfo(node%2C%20this.node%2C%20host%20%26%26%20host.shadyRoot%2C%20index)%3B%0Athis._addNodeToHost(node)%3B%0Aif%20(host)%20%7B%0Adistributed%20%3D%20this._maybeDistribute(node%2C%20this.node%2C%20host)%3B%0A%7D%0A%7D%0Aif%20(!distributed%20%26%26%20!this._tryRemoveUndistributedNode(node))%20%7B%0Aref_node%20%3D%20ref_node.localName%20%3D%3D%3D%20CONTENT%20%3F%20this._firstComposedNode(ref_node)%20%3A%20ref_node%3B%0Avar%20container%20%3D%20this.node._isShadyRoot%20%3F%20this.node.host%20%3A%20this.node%3B%0AnativeInsertBefore.call(container%2C%20node%2C%20ref_node)%3B%0AaddToComposedParent(container%2C%20node%2C%20ref_node)%3B%0A%7D%0Areturn%20node%3B%0A%7D%2C%0AremoveChild%3A%20function(node)%20%7B%0Aif%20(factory(node).parentNode%20!%3D%3D%20this.node)%20%7B%0Aconsole.warn(%22The%20node%20to%20be%20removed%20is%20not%20a%20child%20of%20this%20node%22%2C%20node)%3B%0A%7D%0Avar%20distributed%3B%0Aif%20(this._nodeIsInLogicalTree(this.node))%20%7B%0Avar%20host%20%3D%20this._hostForNode(this.node)%3B%0Adistributed%20%3D%20this._maybeDistribute(node%2C%20this.node%2C%20host)%3B%0Athis._removeNodeFromHost(node)%3B%0A%7D%0Aif%20(!distributed)%20%7B%0Avar%20container%20%3D%20this.node._isShadyRoot%20%3F%20this.node.host%20%3A%20this.node%3B%0Aif%20(container%20%3D%3D%3D%20node.parentNode)%20%7B%0AnativeRemoveChild.call(container%2C%20node)%3B%0AremoveFromComposedParent(container%2C%20node)%3B%0A%7D%0A%7D%0Areturn%20node%3B%0A%7D%2C%0AreplaceChild%3A%20function(node%2C%20ref_node)%20%7B%0Athis.insertBefore(node%2C%20ref_node)%3B%0Athis.removeChild(ref_node)%3B%0Areturn%20node%3B%0A%7D%2C%0AgetOwnerRoot%3A%20function()%20%7B%0Areturn%20this._ownerShadyRootForNode(this.node)%3B%0A%7D%2C%0A_ownerShadyRootForNode%3A%20function(node)%20%7B%0Aif%20(!node)%20%7B%0Areturn%3B%0A%7D%0Aif%20(node._ownerShadyRoot%20%3D%3D%3D%20undefined)%20%7B%0Avar%20root%3B%0Aif%20(node._isShadyRoot)%20%7B%0Aroot%20%3D%20node%3B%0A%7D%20else%20%7B%0Avar%20parent%20%3D%20Polymer.dom(node).parentNode%3B%0Aif%20(parent)%20%7B%0Aroot%20%3D%20parent._isShadyRoot%20%3F%20parent%20%3A%20this._ownerShadyRootForNode(parent)%3B%0A%7D%20else%20%7B%0Aroot%20%3D%20null%3B%0A%7D%0A%7D%0Anode._ownerShadyRoot%20%3D%20root%3B%0A%7D%0Areturn%20node._ownerShadyRoot%3B%0A%7D%2C%0A_maybeDistribute%3A%20function(node%2C%20parent%2C%20host)%20%7B%0Avar%20nodeNeedsDistribute%20%3D%20this._nodeNeedsDistribution(node)%3B%0Avar%20distribute%20%3D%20this._parentNeedsDistribution(parent)%20%7C%7C%20nodeNeedsDistribute%3B%0Aif%20(nodeNeedsDistribute)%20%7B%0Athis._updateInsertionPoints(host)%3B%0A%7D%0Aif%20(distribute)%20%7B%0Athis._lazyDistribute(host)%3B%0A%7D%0Areturn%20distribute%3B%0A%7D%2C%0A_tryRemoveUndistributedNode%3A%20function(node)%20%7B%0Aif%20(this.node.shadyRoot)%20%7B%0Aif%20(node.parentNode)%20%7B%0AnativeRemoveChild.call(node.parentNode%2C%20node)%3B%0A%7D%0Areturn%20true%3B%0A%7D%0A%7D%2C%0A_updateInsertionPoints%3A%20function(host)%20%7B%0Ahost.shadyRoot._insertionPoints%20%3D%20factory(host.shadyRoot).querySelectorAll(CONTENT)%3B%0A%7D%2C%0A_nodeIsInLogicalTree%3A%20function(node)%20%7B%0Areturn%20Boolean(node._lightParent%20%7C%7C%20node._isShadyRoot%20%7C%7C%20this._ownerShadyRootForNode(node)%20%7C%7C%20node.shadyRoot)%3B%0A%7D%2C%0A_hostForNode%3A%20function(node)%20%7B%0Avar%20root%20%3D%20node.shadyRoot%20%7C%7C%20(node._isShadyRoot%20%3F%20node%20%3A%20this._ownerShadyRootForNode(node))%3B%0Areturn%20root%20%26%26%20root.host%3B%0A%7D%2C%0A_parentNeedsDistribution%3A%20function(parent)%20%7B%0Areturn%20parent%20%26%26%20parent.shadyRoot%20%26%26%20hasInsertionPoint(parent.shadyRoot)%3B%0A%7D%2C%0A_nodeNeedsDistribution%3A%20function(node)%20%7B%0Areturn%20node.localName%20%3D%3D%3D%20CONTENT%20%7C%7C%20node.nodeType%20%3D%3D%3D%20Node.DOCUMENT_FRAGMENT_NODE%20%26%26%20node.querySelector(CONTENT)%3B%0A%7D%2C%0A_removeNodeFromHost%3A%20function(node)%20%7B%0Aif%20(node._lightParent)%20%7B%0Avar%20root%20%3D%20this._ownerShadyRootForNode(node)%3B%0Aif%20(root)%20%7B%0Aroot.host._elementRemove(node)%3B%0A%7D%0Athis._removeLogicalInfo(node%2C%20node._lightParent)%3B%0A%7D%0Athis._removeOwnerShadyRoot(node)%3B%0A%7D%2C%0A_addNodeToHost%3A%20function(node)%20%7B%0Avar%20checkNode%20%3D%20node.nodeType%20%3D%3D%3D%20Node.DOCUMENT_FRAGMENT_NODE%20%3F%20node.firstChild%20%3A%20node%3B%0Avar%20root%20%3D%20this._ownerShadyRootForNode(checkNode)%3B%0Aif%20(root)%20%7B%0Aroot.host._elementAdd(node)%3B%0A%7D%0A%7D%2C%0A_addLogicalInfo%3A%20function(node%2C%20container%2C%20root%2C%20index)%20%7B%0AsaveLightChildrenIfNeeded(container)%3B%0Avar%20children%20%3D%20factory(container).childNodes%3B%0Aindex%20%3D%20index%20%3D%3D%3D%20undefined%20%3F%20children.length%20%3A%20index%3B%0Aif%20(node.nodeType%20%3D%3D%3D%20Node.DOCUMENT_FRAGMENT_NODE)%20%7B%0Avar%20c%24%20%3D%20Array.prototype.slice.call(node.childNodes)%3B%0Afor%20(var%20i%20%3D%200%2C%20n%3B%20i%20%3C%20c%24.length%20%26%26%20(n%20%3D%20c%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Achildren.splice(index%2B%2B%2C%200%2C%20n)%3B%0An._lightParent%20%3D%20container%3B%0A%7D%0A%7D%20else%20%7B%0Achildren.splice(index%2C%200%2C%20node)%3B%0Anode._lightParent%20%3D%20container%3B%0A%7D%0A%7D%2C%0A_removeLogicalInfo%3A%20function(node%2C%20container)%20%7B%0Avar%20children%20%3D%20factory(container).childNodes%3B%0Avar%20index%20%3D%20children.indexOf(node)%3B%0Aif%20(index%20%3C%200%20%7C%7C%20container%20!%3D%3D%20node._lightParent)%20%7B%0Athrow%20Error(%22The%20node%20to%20be%20removed%20is%20not%20a%20child%20of%20this%20node%22)%3B%0A%7D%0Achildren.splice(index%2C%201)%3B%0Anode._lightParent%20%3D%20null%3B%0A%7D%2C%0A_removeOwnerShadyRoot%3A%20function(node)%20%7B%0Avar%20hasCachedRoot%20%3D%20factory(node).getOwnerRoot()%20!%3D%3D%20undefined%3B%0Aif%20(hasCachedRoot)%20%7B%0Avar%20c%24%20%3D%20factory(node).childNodes%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20c%24.length%2C%20n%3B%20i%20%3C%20l%20%26%26%20(n%20%3D%20c%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Athis._removeOwnerShadyRoot(n)%3B%0A%7D%0A%7D%0Anode._ownerShadyRoot%20%3D%20undefined%3B%0A%7D%2C%0A_firstComposedNode%3A%20function(content)%20%7B%0Avar%20n%24%20%3D%20factory(content).getDistributedNodes()%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20n%24.length%2C%20n%2C%20p%24%3B%20i%20%3C%20l%20%26%26%20(n%20%3D%20n%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Ap%24%20%3D%20factory(n).getDestinationInsertionPoints()%3B%0Aif%20(p%24%5Bp%24.length%20-%201%5D%20%3D%3D%3D%20content)%20%7B%0Areturn%20n%3B%0A%7D%0A%7D%0A%7D%2C%0AquerySelector%3A%20function(selector)%20%7B%0Areturn%20this.querySelectorAll(selector)%5B0%5D%3B%0A%7D%2C%0AquerySelectorAll%3A%20function(selector)%20%7B%0Areturn%20this._query(function(n)%20%7B%0Areturn%20matchesSelector.call(n%2C%20selector)%3B%0A%7D%2C%20this.node)%3B%0A%7D%2C%0A_query%3A%20function(matcher%2C%20node)%20%7B%0Anode%20%3D%20node%20%7C%7C%20this.node%3B%0Avar%20list%20%3D%20%5B%5D%3B%0Athis._queryElements(factory(node).childNodes%2C%20matcher%2C%20list)%3B%0Areturn%20list%3B%0A%7D%2C%0A_queryElements%3A%20function(elements%2C%20matcher%2C%20list)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20elements.length%2C%20c%3B%20i%20%3C%20l%20%26%26%20(c%20%3D%20elements%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Aif%20(c.nodeType%20%3D%3D%3D%20Node.ELEMENT_NODE)%20%7B%0Athis._queryElement(c%2C%20matcher%2C%20list)%3B%0A%7D%0A%7D%0A%7D%2C%0A_queryElement%3A%20function(node%2C%20matcher%2C%20list)%20%7B%0Aif%20(matcher(node))%20%7B%0Alist.push(node)%3B%0A%7D%0Athis._queryElements(factory(node).childNodes%2C%20matcher%2C%20list)%3B%0A%7D%2C%0AgetDestinationInsertionPoints%3A%20function()%20%7B%0Areturn%20this.node._destinationInsertionPoints%20%7C%7C%20%5B%5D%3B%0A%7D%2C%0AgetDistributedNodes%3A%20function()%20%7B%0Areturn%20this.node._distributedNodes%20%7C%7C%20%5B%5D%3B%0A%7D%2C%0AqueryDistributedElements%3A%20function(selector)%20%7B%0Avar%20c%24%20%3D%20this.childNodes%3B%0Avar%20list%20%3D%20%5B%5D%3B%0Athis._distributedFilter(selector%2C%20c%24%2C%20list)%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20c%24.length%2C%20c%3B%20i%20%3C%20l%20%26%26%20(c%20%3D%20c%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Aif%20(c.localName%20%3D%3D%3D%20CONTENT)%20%7B%0Athis._distributedFilter(selector%2C%20factory(c).getDistributedNodes()%2C%20list)%3B%0A%7D%0A%7D%0Areturn%20list%3B%0A%7D%2C%0A_distributedFilter%3A%20function(selector%2C%20list%2C%20results)%20%7B%0Aresults%20%3D%20results%20%7C%7C%20%5B%5D%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20list.length%2C%20d%3B%20i%20%3C%20l%20%26%26%20(d%20%3D%20list%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Aif%20(d.nodeType%20%3D%3D%3D%20Node.ELEMENT_NODE%20%26%26%20d.localName%20!%3D%3D%20CONTENT%20%26%26%20matchesSelector.call(d%2C%20selector))%20%7B%0Aresults.push(d)%3B%0A%7D%0A%7D%0Areturn%20results%3B%0A%7D%2C%0A_clear%3A%20function()%20%7B%0Awhile%20(this.childNodes.length)%20%7B%0Athis.removeChild(this.childNodes%5B0%5D)%3B%0A%7D%0A%7D%2C%0AsetAttribute%3A%20function(name%2C%20value)%20%7B%0Athis.node.setAttribute(name%2C%20value)%3B%0Athis._distributeParent()%3B%0A%7D%2C%0AremoveAttribute%3A%20function(name)%20%7B%0Athis.node.removeAttribute(name)%3B%0Athis._distributeParent()%3B%0A%7D%2C%0A_distributeParent%3A%20function()%20%7B%0Aif%20(this._parentNeedsDistribution(this.parentNode))%20%7B%0Athis._lazyDistribute(this.parentNode)%3B%0A%7D%0A%7D%0A%7D%3B%0AObject.defineProperty(DomApi.prototype%2C%20%22classList%22%2C%20%7B%0Aget%3A%20function()%20%7B%0Aif%20(!this._classList)%20%7B%0Athis._classList%20%3D%20new%20DomApi.ClassList(this)%3B%0A%7D%0Areturn%20this._classList%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D)%3B%0ADomApi.ClassList%20%3D%20function(host)%20%7B%0Athis.domApi%20%3D%20host%3B%0Athis.node%20%3D%20host.node%3B%0A%7D%3B%0ADomApi.ClassList.prototype%20%3D%20%7B%0Aadd%3A%20function()%20%7B%0Athis.node.classList.add.apply(this.node.classList%2C%20arguments)%3B%0Athis.domApi._distributeParent()%3B%0A%7D%2C%0Aremove%3A%20function()%20%7B%0Athis.node.classList.remove.apply(this.node.classList%2C%20arguments)%3B%0Athis.domApi._distributeParent()%3B%0A%7D%2C%0Atoggle%3A%20function()%20%7B%0Athis.node.classList.toggle.apply(this.node.classList%2C%20arguments)%3B%0Athis.domApi._distributeParent()%3B%0A%7D%0A%7D%3B%0Aif%20(!Settings.useShadow)%20%7B%0AObject.defineProperties(DomApi.prototype%2C%20%7B%0AchildNodes%3A%20%7B%0Aget%3A%20function()%20%7B%0Avar%20c%24%20%3D%20getLightChildren(this.node)%3B%0Areturn%20Array.isArray(c%24)%20%3F%20c%24%20%3A%20Array.prototype.slice.call(c%24)%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0Achildren%3A%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20Array.prototype.filter.call(this.childNodes%2C%20function(n)%20%7B%0Areturn%20n.nodeType%20%3D%3D%3D%20Node.ELEMENT_NODE%3B%0A%7D)%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AparentNode%3A%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20this.node._lightParent%20%7C%7C%20(this.node.__patched%20%3F%20this.node._composedParent%20%3A%20this.node.parentNode)%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AfirstChild%3A%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20this.childNodes%5B0%5D%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AlastChild%3A%20%7B%0Aget%3A%20function()%20%7B%0Avar%20c%24%20%3D%20this.childNodes%3B%0Areturn%20c%24%5Bc%24.length%20-%201%5D%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AnextSibling%3A%20%7B%0Aget%3A%20function()%20%7B%0Avar%20c%24%20%3D%20this.parentNode%20%26%26%20factory(this.parentNode).childNodes%3B%0Aif%20(c%24)%20%7B%0Areturn%20c%24%5BArray.prototype.indexOf.call(c%24%2C%20this.node)%20%2B%201%5D%3B%0A%7D%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0ApreviousSibling%3A%20%7B%0Aget%3A%20function()%20%7B%0Avar%20c%24%20%3D%20this.parentNode%20%26%26%20factory(this.parentNode).childNodes%3B%0Aif%20(c%24)%20%7B%0Areturn%20c%24%5BArray.prototype.indexOf.call(c%24%2C%20this.node)%20-%201%5D%3B%0A%7D%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AfirstElementChild%3A%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20this.children%5B0%5D%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AlastElementChild%3A%20%7B%0Aget%3A%20function()%20%7B%0Avar%20c%24%20%3D%20this.children%3B%0Areturn%20c%24%5Bc%24.length%20-%201%5D%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AnextElementSibling%3A%20%7B%0Aget%3A%20function()%20%7B%0Avar%20c%24%20%3D%20this.parentNode%20%26%26%20factory(this.parentNode).children%3B%0Aif%20(c%24)%20%7B%0Areturn%20c%24%5BArray.prototype.indexOf.call(c%24%2C%20this.node)%20%2B%201%5D%3B%0A%7D%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0ApreviousElementSibling%3A%20%7B%0Aget%3A%20function()%20%7B%0Avar%20c%24%20%3D%20this.parentNode%20%26%26%20factory(this.parentNode).children%3B%0Aif%20(c%24)%20%7B%0Areturn%20c%24%5BArray.prototype.indexOf.call(c%24%2C%20this.node)%20-%201%5D%3B%0A%7D%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AtextContent%3A%20%7B%0Aget%3A%20function()%20%7B%0Aif%20(this.node.nodeType%20%3D%3D%3D%20Node.TEXT_NODE)%20%7B%0Areturn%20this.node.textContent%3B%0A%7D%20else%20%7B%0Areturn%20Array.prototype.map.call(this.childNodes%2C%20function(c)%20%7B%0Areturn%20c.textContent%3B%0A%7D).join(%22%22)%3B%0A%7D%0A%7D%2C%0Aset%3A%20function(text)%20%7B%0Athis._clear()%3B%0Aif%20(text)%20%7B%0Athis.appendChild(document.createTextNode(text))%3B%0A%7D%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AinnerHTML%3A%20%7B%0Aget%3A%20function()%20%7B%0Aif%20(this.node.nodeType%20%3D%3D%3D%20Node.TEXT_NODE)%20%7B%0Areturn%20null%3B%0A%7D%20else%20%7B%0Areturn%20getInnerHTML(this.node)%3B%0A%7D%0A%7D%2C%0Aset%3A%20function(text)%20%7B%0Aif%20(this.node.nodeType%20!%3D%3D%20Node.TEXT_NODE)%20%7B%0Athis._clear()%3B%0Avar%20d%20%3D%20document.createElement(%22div%22)%3B%0Ad.innerHTML%20%3D%20text%3B%0Afor%20(var%20e%20%3D%20d.firstChild%3B%20e%3B%20e%20%3D%20e.nextSibling)%20%7B%0Athis.appendChild(e)%3B%0A%7D%0A%7D%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%0A%7D)%3B%0ADomApi.prototype._getComposedInnerHTML%20%3D%20function()%20%7B%0Areturn%20getInnerHTML(this.node%2C%20true)%3B%0A%7D%3B%0A%7D%20else%20%7B%0ADomApi.prototype.querySelectorAll%20%3D%20function(selector)%20%7B%0Areturn%20Array.prototype.slice.call(this.node.querySelectorAll(selector))%3B%0A%7D%3B%0ADomApi.prototype.getOwnerRoot%20%3D%20function()%20%7B%0Avar%20n%20%3D%20this.node%3B%0Awhile%20(n)%20%7B%0Aif%20(n.nodeType%20%3D%3D%3D%20Node.DOCUMENT_FRAGMENT_NODE%20%26%26%20n.host)%20%7B%0Areturn%20n%3B%0A%7D%0An%20%3D%20n.parentNode%3B%0A%7D%0A%7D%3B%0ADomApi.prototype.getDestinationInsertionPoints%20%3D%20function()%20%7B%0Avar%20n%24%20%3D%20this.node.getDestinationInsertionPoints()%3B%0Areturn%20n%24%20%3F%20Array.prototype.slice.call(n%24)%20%3A%20%5B%5D%3B%0A%7D%3B%0ADomApi.prototype.getDistributedNodes%20%3D%20function()%20%7B%0Avar%20n%24%20%3D%20this.node.getDistributedNodes()%3B%0Areturn%20n%24%20%3F%20Array.prototype.slice.call(n%24)%20%3A%20%5B%5D%3B%0A%7D%3B%0ADomApi.prototype._distributeParent%20%3D%20function()%20%7B%7D%3B%0AObject.defineProperties(DomApi.prototype%2C%20%7B%0AchildNodes%3A%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20Array.prototype.slice.call(this.node.childNodes)%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0Achildren%3A%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20Array.prototype.slice.call(this.node.children)%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AtextContent%3A%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20this.node.textContent%3B%0A%7D%2C%0Aset%3A%20function(value)%20%7B%0Areturn%20this.node.textContent%20%3D%20value%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%2C%0AinnerHTML%3A%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20this.node.innerHTML%3B%0A%7D%2C%0Aset%3A%20function(value)%20%7B%0Areturn%20this.node.innerHTML%20%3D%20value%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D%0A%7D)%3B%0Avar%20forwards%20%3D%20%5B%20%22parentNode%22%2C%20%22firstChild%22%2C%20%22lastChild%22%2C%20%22nextSibling%22%2C%20%22previousSibling%22%2C%20%22firstElementChild%22%2C%20%22lastElementChild%22%2C%20%22nextElementSibling%22%2C%20%22previousElementSibling%22%20%5D%3B%0Aforwards.forEach(function(name)%20%7B%0AObject.defineProperty(DomApi.prototype%2C%20name%2C%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20this.node%5Bname%5D%3B%0A%7D%2C%0Aconfigurable%3A%20true%0A%7D)%3B%0A%7D)%3B%0A%7D%0Avar%20CONTENT%20%3D%20%22content%22%3B%0Avar%20factory%20%3D%20function(node%2C%20patch)%20%7B%0Anode%20%3D%20node%20%7C%7C%20document%3B%0Aif%20(!node.__domApi)%20%7B%0Anode.__domApi%20%3D%20new%20DomApi(node%2C%20patch)%3B%0A%7D%0Areturn%20node.__domApi%3B%0A%7D%3B%0APolymer.dom%20%3D%20function(obj%2C%20patch)%20%7B%0Aif%20(obj%20instanceof%20Event)%20%7B%0Areturn%20Polymer.EventApi.factory(obj)%3B%0A%7D%20else%20%7B%0Areturn%20factory(obj%2C%20patch)%3B%0A%7D%0A%7D%3B%0APolymer.dom.flush%20%3D%20DomApi.prototype.flush%3B%0Afunction%20getLightChildren(node)%20%7B%0Avar%20children%20%3D%20node._lightChildren%3B%0Areturn%20children%20%3F%20children%20%3A%20node.childNodes%3B%0A%7D%0Afunction%20getComposedChildren(node)%20%7B%0Aif%20(!node._composedChildren)%20%7B%0Anode._composedChildren%20%3D%20Array.prototype.slice.call(node.childNodes)%3B%0A%7D%0Areturn%20node._composedChildren%3B%0A%7D%0Afunction%20addToComposedParent(parent%2C%20node%2C%20ref_node)%20%7B%0Avar%20children%20%3D%20getComposedChildren(parent)%3B%0Avar%20i%20%3D%20ref_node%20%3F%20children.indexOf(ref_node)%20%3A%20-1%3B%0Aif%20(node.nodeType%20%3D%3D%3D%20Node.DOCUMENT_FRAGMENT_NODE)%20%7B%0Avar%20fragChildren%20%3D%20getComposedChildren(node)%3B%0AfragChildren.forEach(function(c)%20%7B%0AaddNodeToComposedChildren(c%2C%20parent%2C%20children%2C%20i)%3B%0A%7D)%3B%0A%7D%20else%20%7B%0AaddNodeToComposedChildren(node%2C%20parent%2C%20children%2C%20i)%3B%0A%7D%0A%7D%0Afunction%20addNodeToComposedChildren(node%2C%20parent%2C%20children%2C%20i)%20%7B%0Anode._composedParent%20%3D%20parent%3B%0Aif%20(i%20%3E%3D%200)%20%7B%0Achildren.splice(i%2C%200%2C%20node)%3B%0A%7D%20else%20%7B%0Achildren.push(node)%3B%0A%7D%0A%7D%0Afunction%20removeFromComposedParent(parent%2C%20node)%20%7B%0Anode._composedParent%20%3D%20null%3B%0Aif%20(parent)%20%7B%0Avar%20children%20%3D%20getComposedChildren(parent)%3B%0Avar%20i%20%3D%20children.indexOf(node)%3B%0Aif%20(i%20%3E%3D%200)%20%7B%0Achildren.splice(i%2C%201)%3B%0A%7D%0A%7D%0A%7D%0Afunction%20saveLightChildrenIfNeeded(node)%20%7B%0Aif%20(!node._lightChildren)%20%7B%0Avar%20c%24%20%3D%20Array.prototype.slice.call(node.childNodes)%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20c%24.length%2C%20child%3B%20i%20%3C%20l%20%26%26%20(child%20%3D%20c%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Achild._lightParent%20%3D%20child._lightParent%20%7C%7C%20node%3B%0A%7D%0Anode._lightChildren%20%3D%20c%24%3B%0A%7D%0A%7D%0Afunction%20hasInsertionPoint(root)%20%7B%0Areturn%20Boolean(root._insertionPoints.length)%3B%0A%7D%0Avar%20p%20%3D%20Element.prototype%3B%0Avar%20matchesSelector%20%3D%20p.matches%20%7C%7C%20p.matchesSelector%20%7C%7C%20p.mozMatchesSelector%20%7C%7C%20p.msMatchesSelector%20%7C%7C%20p.oMatchesSelector%20%7C%7C%20p.webkitMatchesSelector%3B%0Areturn%20%7B%0AgetLightChildren%3A%20getLightChildren%2C%0AgetComposedChildren%3A%20getComposedChildren%2C%0AremoveFromComposedParent%3A%20removeFromComposedParent%2C%0AsaveLightChildrenIfNeeded%3A%20saveLightChildrenIfNeeded%2C%0AmatchesSelector%3A%20matchesSelector%2C%0AhasInsertionPoint%3A%20hasInsertionPoint%2C%0Actor%3A%20DomApi%2C%0Afactory%3A%20factory%0A%7D%3B%0A%7D()%3B%0A%0A(function()%20%7B%0APolymer.Base._addFeature(%7B%0A_prepShady%3A%20function()%20%7B%0Athis._useContent%20%3D%20this._useContent%20%7C%7C%20Boolean(this._template)%3B%0Aif%20(this._useContent)%20%7B%0Athis._template._hasInsertionPoint%20%3D%20this._template.content.querySelector(%22content%22)%3B%0A%7D%0A%7D%2C%0A_poolContent%3A%20function()%20%7B%0Aif%20(this._useContent)%20%7B%0AsaveLightChildrenIfNeeded(this)%3B%0A%7D%0A%7D%2C%0A_setupRoot%3A%20function()%20%7B%0Aif%20(this._useContent)%20%7B%0Athis._createLocalRoot()%3B%0Aif%20(!this.dataHost)%20%7B%0AupgradeLightChildren(this._lightChildren)%3B%0A%7D%0A%7D%0A%7D%2C%0A_createLocalRoot%3A%20function()%20%7B%0Athis.shadyRoot%20%3D%20this.root%3B%0Athis.shadyRoot._distributionClean%20%3D%20false%3B%0Athis.shadyRoot._isShadyRoot%20%3D%20true%3B%0Athis.shadyRoot._dirtyRoots%20%3D%20%5B%5D%3B%0Athis.shadyRoot._insertionPoints%20%3D%20this._template._hasInsertionPoint%20%3F%20this.shadyRoot.querySelectorAll(%22content%22)%20%3A%20%5B%5D%3B%0AsaveLightChildrenIfNeeded(this.shadyRoot)%3B%0Athis.shadyRoot.host%20%3D%20this%3B%0A%7D%2C%0Aget%20domHost()%20%7B%0Avar%20root%20%3D%20Polymer.dom(this).getOwnerRoot()%3B%0Areturn%20root%20%26%26%20root.host%3B%0A%7D%2C%0AdistributeContent%3A%20function()%20%7B%0Aif%20(this.shadyRoot)%20%7B%0Avar%20host%20%3D%20getTopDistributingHost(this)%3B%0APolymer.dom(this)._lazyDistribute(host)%3B%0A%7D%0A%7D%2C%0A_distributeContent%3A%20function()%20%7B%0Aif%20(this._useContent%20%26%26%20!this.shadyRoot._distributionClean)%20%7B%0Athis._beginDistribute()%3B%0Athis._distributeDirtyRoots()%3B%0Athis._finishDistribute()%3B%0A%7D%0A%7D%2C%0A_beginDistribute%3A%20function()%20%7B%0Aif%20(this._useContent%20%26%26%20hasInsertionPoint(this.shadyRoot))%20%7B%0Athis._resetDistribution()%3B%0Athis._distributePool(this.shadyRoot%2C%20this._collectPool())%3B%0A%7D%0A%7D%2C%0A_distributeDirtyRoots%3A%20function()%20%7B%0Avar%20c%24%20%3D%20this.shadyRoot._dirtyRoots%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20c%24.length%2C%20c%3B%20i%20%3C%20l%20%26%26%20(c%20%3D%20c%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Ac._distributeContent()%3B%0A%7D%0Athis.shadyRoot._dirtyRoots%20%3D%20%5B%5D%3B%0A%7D%2C%0A_finishDistribute%3A%20function()%20%7B%0Aif%20(this._useContent)%20%7B%0Aif%20(hasInsertionPoint(this.shadyRoot))%20%7B%0Athis._composeTree()%3B%0A%7D%20else%20%7B%0Aif%20(!this.shadyRoot._hasDistributed)%20%7B%0Athis.textContent%20%3D%20%22%22%3B%0Athis.appendChild(this.shadyRoot)%3B%0A%7D%20else%20%7B%0Avar%20children%20%3D%20this._composeNode(this)%3B%0Athis._updateChildNodes(this%2C%20children)%3B%0A%7D%0A%7D%0Athis.shadyRoot._hasDistributed%20%3D%20true%3B%0Athis.shadyRoot._distributionClean%20%3D%20true%3B%0A%7D%0A%7D%2C%0AelementMatches%3A%20function(selector%2C%20node)%20%7B%0Anode%20%3D%20node%20%7C%7C%20this%3B%0Areturn%20matchesSelector.call(node%2C%20selector)%3B%0A%7D%2C%0A_resetDistribution%3A%20function()%20%7B%0Avar%20children%20%3D%20getLightChildren(this)%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20children.length%3B%20i%2B%2B)%20%7B%0Avar%20child%20%3D%20children%5Bi%5D%3B%0Aif%20(child._destinationInsertionPoints)%20%7B%0Achild._destinationInsertionPoints%20%3D%20undefined%3B%0A%7D%0Aif%20(isInsertionPoint(child))%20%7B%0AclearDistributedDestinationInsertionPoints(child)%3B%0A%7D%0A%7D%0Avar%20root%20%3D%20this.shadyRoot%3B%0Avar%20p%24%20%3D%20root._insertionPoints%3B%0Afor%20(var%20j%20%3D%200%3B%20j%20%3C%20p%24.length%3B%20j%2B%2B)%20%7B%0Ap%24%5Bj%5D._distributedNodes%20%3D%20%5B%5D%3B%0A%7D%0A%7D%2C%0A_collectPool%3A%20function()%20%7B%0Avar%20pool%20%3D%20%5B%5D%3B%0Avar%20children%20%3D%20getLightChildren(this)%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20children.length%3B%20i%2B%2B)%20%7B%0Avar%20child%20%3D%20children%5Bi%5D%3B%0Aif%20(isInsertionPoint(child))%20%7B%0Apool.push.apply(pool%2C%20child._distributedNodes)%3B%0A%7D%20else%20%7B%0Apool.push(child)%3B%0A%7D%0A%7D%0Areturn%20pool%3B%0A%7D%2C%0A_distributePool%3A%20function(node%2C%20pool)%20%7B%0Avar%20p%24%20%3D%20node._insertionPoints%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20p%24.length%2C%20p%3B%20i%20%3C%20l%20%26%26%20(p%20%3D%20p%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Athis._distributeInsertionPoint(p%2C%20pool)%3B%0AmaybeRedistributeParent(p%2C%20this)%3B%0A%7D%0A%7D%2C%0A_distributeInsertionPoint%3A%20function(content%2C%20pool)%20%7B%0Avar%20anyDistributed%20%3D%20false%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20pool.length%2C%20node%3B%20i%20%3C%20l%3B%20i%2B%2B)%20%7B%0Anode%20%3D%20pool%5Bi%5D%3B%0Aif%20(!node)%20%7B%0Acontinue%3B%0A%7D%0Aif%20(this._matchesContentSelect(node%2C%20content))%20%7B%0AdistributeNodeInto(node%2C%20content)%3B%0Apool%5Bi%5D%20%3D%20undefined%3B%0AanyDistributed%20%3D%20true%3B%0A%7D%0A%7D%0Aif%20(!anyDistributed)%20%7B%0Avar%20children%20%3D%20getLightChildren(content)%3B%0Afor%20(var%20j%20%3D%200%3B%20j%20%3C%20children.length%3B%20j%2B%2B)%20%7B%0AdistributeNodeInto(children%5Bj%5D%2C%20content)%3B%0A%7D%0A%7D%0A%7D%2C%0A_composeTree%3A%20function()%20%7B%0Athis._updateChildNodes(this%2C%20this._composeNode(this))%3B%0Avar%20p%24%20%3D%20this.shadyRoot._insertionPoints%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20p%24.length%2C%20p%2C%20parent%3B%20i%20%3C%20l%20%26%26%20(p%20%3D%20p%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Aparent%20%3D%20p._lightParent%20%7C%7C%20p.parentNode%3B%0Aif%20(!parent._useContent%20%26%26%20parent%20!%3D%3D%20this%20%26%26%20parent%20!%3D%3D%20this.shadyRoot)%20%7B%0Athis._updateChildNodes(parent%2C%20this._composeNode(parent))%3B%0A%7D%0A%7D%0A%7D%2C%0A_composeNode%3A%20function(node)%20%7B%0Avar%20children%20%3D%20%5B%5D%3B%0Avar%20c%24%20%3D%20getLightChildren(node.shadyRoot%20%7C%7C%20node)%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20c%24.length%3B%20i%2B%2B)%20%7B%0Avar%20child%20%3D%20c%24%5Bi%5D%3B%0Aif%20(isInsertionPoint(child))%20%7B%0Avar%20distributedNodes%20%3D%20child._distributedNodes%3B%0Afor%20(var%20j%20%3D%200%3B%20j%20%3C%20distributedNodes.length%3B%20j%2B%2B)%20%7B%0Avar%20distributedNode%20%3D%20distributedNodes%5Bj%5D%3B%0Aif%20(isFinalDestination(child%2C%20distributedNode))%20%7B%0Achildren.push(distributedNode)%3B%0A%7D%0A%7D%0A%7D%20else%20%7B%0Achildren.push(child)%3B%0A%7D%0A%7D%0Areturn%20children%3B%0A%7D%2C%0A_updateChildNodes%3A%20function(container%2C%20children)%20%7B%0Avar%20composed%20%3D%20getComposedChildren(container)%3B%0Avar%20splices%20%3D%20Polymer.ArraySplice.calculateSplices(children%2C%20composed)%3B%0Afor%20(var%20i%20%3D%200%2C%20d%20%3D%200%2C%20s%3B%20i%20%3C%20splices.length%20%26%26%20(s%20%3D%20splices%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Afor%20(var%20j%20%3D%200%2C%20n%3B%20j%20%3C%20s.removed.length%20%26%26%20(n%20%3D%20s.removed%5Bj%5D)%3B%20j%2B%2B)%20%7B%0Aremove(n)%3B%0Acomposed.splice(s.index%20%2B%20d%2C%201)%3B%0A%7D%0Ad%20-%3D%20s.addedCount%3B%0A%7D%0Afor%20(var%20i%20%3D%200%2C%20s%2C%20next%3B%20i%20%3C%20splices.length%20%26%26%20(s%20%3D%20splices%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Anext%20%3D%20composed%5Bs.index%5D%3B%0Afor%20(var%20j%20%3D%20s.index%2C%20n%3B%20j%20%3C%20s.index%20%2B%20s.addedCount%3B%20j%2B%2B)%20%7B%0An%20%3D%20children%5Bj%5D%3B%0AinsertBefore(container%2C%20n%2C%20next)%3B%0Acomposed.splice(j%2C%200%2C%20n)%3B%0A%7D%0A%7D%0A%7D%2C%0A_matchesContentSelect%3A%20function(node%2C%20contentElement)%20%7B%0Avar%20select%20%3D%20contentElement.getAttribute(%22select%22)%3B%0Aif%20(!select)%20%7B%0Areturn%20true%3B%0A%7D%0Aselect%20%3D%20select.trim()%3B%0Aif%20(!select)%20%7B%0Areturn%20true%3B%0A%7D%0Aif%20(!(node%20instanceof%20Element))%20%7B%0Areturn%20false%3B%0A%7D%0Avar%20validSelectors%20%3D%20%2F%5E(%3Anot%5C()%3F%5B*.%23%5Ba-zA-Z_%7C%5D%2F%3B%0Aif%20(!validSelectors.test(select))%20%7B%0Areturn%20false%3B%0A%7D%0Areturn%20this.elementMatches(select%2C%20node)%3B%0A%7D%2C%0A_elementAdd%3A%20function()%20%7B%7D%2C%0A_elementRemove%3A%20function()%20%7B%7D%0A%7D)%3B%0Avar%20saveLightChildrenIfNeeded%20%3D%20Polymer.DomApi.saveLightChildrenIfNeeded%3B%0Avar%20getLightChildren%20%3D%20Polymer.DomApi.getLightChildren%3B%0Avar%20matchesSelector%20%3D%20Polymer.DomApi.matchesSelector%3B%0Avar%20hasInsertionPoint%20%3D%20Polymer.DomApi.hasInsertionPoint%3B%0Avar%20getComposedChildren%20%3D%20Polymer.DomApi.getComposedChildren%3B%0Avar%20removeFromComposedParent%20%3D%20Polymer.DomApi.removeFromComposedParent%3B%0Afunction%20distributeNodeInto(child%2C%20insertionPoint)%20%7B%0AinsertionPoint._distributedNodes.push(child)%3B%0Avar%20points%20%3D%20child._destinationInsertionPoints%3B%0Aif%20(!points)%20%7B%0Achild._destinationInsertionPoints%20%3D%20%5B%20insertionPoint%20%5D%3B%0A%7D%20else%20%7B%0Apoints.push(insertionPoint)%3B%0A%7D%0A%7D%0Afunction%20clearDistributedDestinationInsertionPoints(content)%20%7B%0Avar%20e%24%20%3D%20content._distributedNodes%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20e%24.length%3B%20i%2B%2B)%20%7B%0Avar%20d%20%3D%20e%24%5Bi%5D._destinationInsertionPoints%3B%0Aif%20(d)%20%7B%0Ad.splice(d.indexOf(content)%20%2B%201%2C%20d.length)%3B%0A%7D%0A%7D%0A%7D%0Afunction%20maybeRedistributeParent(content%2C%20host)%20%7B%0Avar%20parent%20%3D%20content._lightParent%3B%0Aif%20(parent%20%26%26%20parent.shadyRoot%20%26%26%20hasInsertionPoint(parent.shadyRoot)%20%26%26%20parent.shadyRoot._distributionClean)%20%7B%0Aparent.shadyRoot._distributionClean%20%3D%20false%3B%0Ahost.shadyRoot._dirtyRoots.push(parent)%3B%0A%7D%0A%7D%0Afunction%20isFinalDestination(insertionPoint%2C%20node)%20%7B%0Avar%20points%20%3D%20node._destinationInsertionPoints%3B%0Areturn%20points%20%26%26%20points%5Bpoints.length%20-%201%5D%20%3D%3D%3D%20insertionPoint%3B%0A%7D%0Afunction%20isInsertionPoint(node)%20%7B%0Areturn%20node.localName%20%3D%3D%20%22content%22%3B%0A%7D%0Avar%20nativeInsertBefore%20%3D%20Element.prototype.insertBefore%3B%0Avar%20nativeRemoveChild%20%3D%20Element.prototype.removeChild%3B%0Afunction%20insertBefore(parentNode%2C%20newChild%2C%20refChild)%20%7B%0Avar%20newChildParent%20%3D%20getComposedParent(newChild)%3B%0Aif%20(newChildParent%20!%3D%3D%20parentNode)%20%7B%0AremoveFromComposedParent(newChildParent%2C%20newChild)%3B%0A%7D%0Aremove(newChild)%3B%0AsaveLightChildrenIfNeeded(parentNode)%3B%0AnativeInsertBefore.call(parentNode%2C%20newChild%2C%20refChild%20%7C%7C%20null)%3B%0AnewChild._composedParent%20%3D%20parentNode%3B%0A%7D%0Afunction%20remove(node)%20%7B%0Avar%20parentNode%20%3D%20getComposedParent(node)%3B%0Aif%20(parentNode)%20%7B%0AsaveLightChildrenIfNeeded(parentNode)%3B%0Anode._composedParent%20%3D%20null%3B%0AnativeRemoveChild.call(parentNode%2C%20node)%3B%0A%7D%0A%7D%0Afunction%20getComposedParent(node)%20%7B%0Areturn%20node.__patched%20%3F%20node._composedParent%20%3A%20node.parentNode%3B%0A%7D%0Afunction%20getTopDistributingHost(host)%20%7B%0Awhile%20(host%20%26%26%20hostNeedsRedistribution(host))%20%7B%0Ahost%20%3D%20host.domHost%3B%0A%7D%0Areturn%20host%3B%0A%7D%0Afunction%20hostNeedsRedistribution(host)%20%7B%0Avar%20c%24%20%3D%20Polymer.dom(host).children%3B%0Afor%20(var%20i%20%3D%200%2C%20c%3B%20i%20%3C%20c%24.length%3B%20i%2B%2B)%20%7B%0Ac%20%3D%20c%24%5Bi%5D%3B%0Aif%20(c.localName%20%3D%3D%3D%20%22content%22)%20%7B%0Areturn%20host.domHost%3B%0A%7D%0A%7D%0A%7D%0Avar%20needsUpgrade%20%3D%20window.CustomElements%20%26%26%20!CustomElements.useNative%3B%0Afunction%20upgradeLightChildren(children)%20%7B%0Aif%20(needsUpgrade%20%26%26%20children)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20children.length%3B%20i%2B%2B)%20%7B%0ACustomElements.upgrade(children%5Bi%5D)%3B%0A%7D%0A%7D%0A%7D%0A%7D)()%3B%0A%0Aif%20(Polymer.Settings.useShadow)%20%7B%0APolymer.Base._addFeature(%7B%0A_poolContent%3A%20function()%20%7B%7D%2C%0A_beginDistribute%3A%20function()%20%7B%7D%2C%0AdistributeContent%3A%20function()%20%7B%7D%2C%0A_distributeContent%3A%20function()%20%7B%7D%2C%0A_finishDistribute%3A%20function()%20%7B%7D%2C%0A_createLocalRoot%3A%20function()%20%7B%0Athis.createShadowRoot()%3B%0Athis.shadowRoot.appendChild(this.root)%3B%0Athis.root%20%3D%20this.shadowRoot%3B%0A%7D%0A%7D)%3B%0A%7D%0A%0APolymer.DomModule%20%3D%20document.createElement(%22dom-module%22)%3B%0A%0APolymer.Base._addFeature(%7B%0A_registerFeatures%3A%20function()%20%7B%0Athis._prepIs()%3B%0Athis._prepAttributes()%3B%0Athis._prepBehaviors()%3B%0Athis._prepExtends()%3B%0Athis._prepConstructor()%3B%0Athis._prepTemplate()%3B%0Athis._prepShady()%3B%0A%7D%2C%0A_prepBehavior%3A%20function(b)%20%7B%0Athis._addHostAttributes(b.hostAttributes)%3B%0A%7D%2C%0A_initFeatures%3A%20function()%20%7B%0Athis._poolContent()%3B%0Athis._pushHost()%3B%0Athis._stampTemplate()%3B%0Athis._popHost()%3B%0Athis._marshalHostAttributes()%3B%0Athis._setupDebouncers()%3B%0Athis._marshalBehaviors()%3B%0Athis._tryReady()%3B%0A%7D%2C%0A_marshalBehavior%3A%20function(b)%20%7B%7D%0A%7D)%3B%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-1.js%0A
2 ms
javascript;charset=utf-8,Polymer.nar%20%3D%20%5B%5D%3B%0A%0APolymer.Annotations%20%3D%20%7B%0AparseAnnotations%3A%20function(template)%20%7B%0Avar%20list%20%3D%20%5B%5D%3B%0Avar%20content%20%3D%20template._content%20%7C%7C%20template.content%3B%0Athis._parseNodeAnnotations(content%2C%20list)%3B%0Areturn%20list%3B%0A%7D%2C%0A_parseNodeAnnotations%3A%20function(node%2C%20list)%20%7B%0Areturn%20node.nodeType%20%3D%3D%3D%20Node.TEXT_NODE%20%3F%20this._parseTextNodeAnnotation(node%2C%20list)%20%3A%20this._parseElementAnnotations(node%2C%20list)%3B%0A%7D%2C%0A_testEscape%3A%20function(value)%20%7B%0Avar%20escape%20%3D%20value.slice(0%2C%202)%3B%0Aif%20(escape%20%3D%3D%3D%20%22%7B%7B%22%20%7C%7C%20escape%20%3D%3D%3D%20%22%5B%5B%22)%20%7B%0Areturn%20escape%3B%0A%7D%0A%7D%2C%0A_parseTextNodeAnnotation%3A%20function(node%2C%20list)%20%7B%0Avar%20v%20%3D%20node.textContent%3B%0Avar%20escape%20%3D%20this._testEscape(v)%3B%0Aif%20(escape)%20%7B%0Anode.textContent%20%3D%20%22%20%22%3B%0Avar%20annote%20%3D%20%7B%0Abindings%3A%20%5B%20%7B%0Akind%3A%20%22text%22%2C%0Amode%3A%20escape%5B0%5D%2C%0Avalue%3A%20v.slice(2%2C%20-2).trim()%0A%7D%20%5D%0A%7D%3B%0Alist.push(annote)%3B%0Areturn%20annote%3B%0A%7D%0A%7D%2C%0A_parseElementAnnotations%3A%20function(element%2C%20list)%20%7B%0Avar%20annote%20%3D%20%7B%0Abindings%3A%20%5B%5D%2C%0Aevents%3A%20%5B%5D%0A%7D%3B%0Athis._parseChildNodesAnnotations(element%2C%20annote%2C%20list)%3B%0Aif%20(element.attributes)%20%7B%0Athis._parseNodeAttributeAnnotations(element%2C%20annote%2C%20list)%3B%0Aif%20(this.prepElement)%20%7B%0Athis.prepElement(element)%3B%0A%7D%0A%7D%0Aif%20(annote.bindings.length%20%7C%7C%20annote.events.length%20%7C%7C%20annote.id)%20%7B%0Alist.push(annote)%3B%0A%7D%0Areturn%20annote%3B%0A%7D%2C%0A_parseChildNodesAnnotations%3A%20function(root%2C%20annote%2C%20list%2C%20callback)%20%7B%0Aif%20(root.firstChild)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20node%20%3D%20root.firstChild%3B%20node%3B%20node%20%3D%20node.nextSibling%2C%20i%2B%2B)%20%7B%0Aif%20(node.localName%20%3D%3D%3D%20%22template%22%20%26%26%20!node.hasAttribute(%22preserve-content%22))%20%7B%0Athis._parseTemplate(node%2C%20i%2C%20list%2C%20annote)%3B%0A%7D%0Avar%20childAnnotation%20%3D%20this._parseNodeAnnotations(node%2C%20list%2C%20callback)%3B%0Aif%20(childAnnotation)%20%7B%0AchildAnnotation.parent%20%3D%20annote%3B%0AchildAnnotation.index%20%3D%20i%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0A_parseTemplate%3A%20function(node%2C%20index%2C%20list%2C%20parent)%20%7B%0Avar%20content%20%3D%20document.createDocumentFragment()%3B%0Acontent._notes%20%3D%20this.parseAnnotations(node)%3B%0Acontent.appendChild(node.content)%3B%0Alist.push(%7B%0Abindings%3A%20Polymer.nar%2C%0Aevents%3A%20Polymer.nar%2C%0AtemplateContent%3A%20content%2C%0Aparent%3A%20parent%2C%0Aindex%3A%20index%0A%7D)%3B%0A%7D%2C%0A_parseNodeAttributeAnnotations%3A%20function(node%2C%20annotation)%20%7B%0Afor%20(var%20i%20%3D%20node.attributes.length%20-%201%2C%20a%3B%20a%20%3D%20node.attributes%5Bi%5D%3B%20i--)%20%7B%0Avar%20n%20%3D%20a.name%2C%20v%20%3D%20a.value%3B%0Aif%20(n%20%3D%3D%3D%20%22id%22%20%26%26%20!this._testEscape(v))%20%7B%0Aannotation.id%20%3D%20v%3B%0A%7D%20else%20if%20(n.slice(0%2C%203)%20%3D%3D%3D%20%22on-%22)%20%7B%0Anode.removeAttribute(n)%3B%0Aannotation.events.push(%7B%0Aname%3A%20n.slice(3)%2C%0Avalue%3A%20v%0A%7D)%3B%0A%7D%20else%20%7B%0Avar%20b%20%3D%20this._parseNodeAttributeAnnotation(node%2C%20n%2C%20v)%3B%0Aif%20(b)%20%7B%0Aannotation.bindings.push(b)%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0A_parseNodeAttributeAnnotation%3A%20function(node%2C%20n%2C%20v)%20%7B%0Avar%20escape%20%3D%20this._testEscape(v)%3B%0Aif%20(escape)%20%7B%0Avar%20customEvent%3B%0Avar%20name%20%3D%20n%3B%0Avar%20mode%20%3D%20escape%5B0%5D%3B%0Av%20%3D%20v.slice(2%2C%20-2).trim()%3B%0Avar%20not%20%3D%20false%3B%0Aif%20(v%5B0%5D%20%3D%3D%20%22!%22)%20%7B%0Av%20%3D%20v.substring(1)%3B%0Anot%20%3D%20true%3B%0A%7D%0Avar%20kind%20%3D%20%22property%22%3B%0Aif%20(n%5Bn.length%20-%201%5D%20%3D%3D%20%22%24%22)%20%7B%0Aname%20%3D%20n.slice(0%2C%20-1)%3B%0Akind%20%3D%20%22attribute%22%3B%0A%7D%0Avar%20notifyEvent%2C%20colon%3B%0Aif%20(mode%20%3D%3D%20%22%7B%22%20%26%26%20(colon%20%3D%20v.indexOf(%22%3A%3A%22))%20%3E%200)%20%7B%0AnotifyEvent%20%3D%20v.substring(colon%20%2B%202)%3B%0Av%20%3D%20v.substring(0%2C%20colon)%3B%0AcustomEvent%20%3D%20true%3B%0A%7D%0Aif%20(node.localName%20%3D%3D%20%22input%22%20%26%26%20n%20%3D%3D%20%22value%22)%20%7B%0Anode.setAttribute(n%2C%20%22%22)%3B%0A%7D%0Anode.removeAttribute(n)%3B%0Aif%20(kind%20%3D%3D%3D%20%22property%22)%20%7B%0Aname%20%3D%20Polymer.CaseMap.dashToCamelCase(name)%3B%0A%7D%0Areturn%20%7B%0Akind%3A%20kind%2C%0Amode%3A%20mode%2C%0Aname%3A%20name%2C%0Avalue%3A%20v%2C%0Anegate%3A%20not%2C%0Aevent%3A%20notifyEvent%2C%0AcustomEvent%3A%20customEvent%0A%7D%3B%0A%7D%0A%7D%2C%0A_localSubTree%3A%20function(node%2C%20host)%20%7B%0Areturn%20node%20%3D%3D%3D%20host%20%3F%20node.childNodes%20%3A%20node._lightChildren%20%7C%7C%20node.childNodes%3B%0A%7D%2C%0AfindAnnotatedNode%3A%20function(root%2C%20annote)%20%7B%0Avar%20parent%20%3D%20annote.parent%20%26%26%20Polymer.Annotations.findAnnotatedNode(root%2C%20annote.parent)%3B%0Areturn%20!parent%20%3F%20root%20%3A%20Polymer.Annotations._localSubTree(parent%2C%20root)%5Bannote.index%5D%3B%0A%7D%0A%7D%3B%0A%0A(function()%20%7B%0Afunction%20resolveCss(cssText%2C%20ownerDocument)%20%7B%0Areturn%20cssText.replace(CSS_URL_RX%2C%20function(m%2C%20pre%2C%20url%2C%20post)%20%7B%0Areturn%20pre%20%2B%20%22'%22%20%2B%20resolve(url.replace(%2F%5B%22'%5D%2Fg%2C%20%22%22)%2C%20ownerDocument)%20%2B%20%22'%22%20%2B%20post%3B%0A%7D)%3B%0A%7D%0Afunction%20resolveAttrs(element%2C%20ownerDocument)%20%7B%0Afor%20(var%20name%20in%20URL_ATTRS)%20%7B%0Avar%20a%24%20%3D%20URL_ATTRS%5Bname%5D%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20a%24.length%2C%20a%2C%20at%2C%20v%3B%20i%20%3C%20l%20%26%26%20(a%20%3D%20a%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Aif%20(name%20%3D%3D%3D%20%22*%22%20%7C%7C%20element.localName%20%3D%3D%3D%20name)%20%7B%0Aat%20%3D%20element.attributes%5Ba%5D%3B%0Av%20%3D%20at%20%26%26%20at.value%3B%0Aif%20(v%20%26%26%20v.search(BINDING_RX)%20%3C%200)%20%7B%0Aat.value%20%3D%20a%20%3D%3D%3D%20%22style%22%20%3F%20resolveCss(v%2C%20ownerDocument)%20%3A%20resolve(v%2C%20ownerDocument)%3B%0A%7D%0A%7D%0A%7D%0A%7D%0A%7D%0Afunction%20resolve(url%2C%20ownerDocument)%20%7B%0Avar%20resolver%20%3D%20getUrlResolver(ownerDocument)%3B%0Aresolver.href%20%3D%20url%3B%0Areturn%20resolver.href%20%7C%7C%20url%3B%0A%7D%0Avar%20tempDoc%3B%0Avar%20tempDocBase%3B%0Afunction%20resolveUrl(url%2C%20baseUri)%20%7B%0Aif%20(!tempDoc)%20%7B%0AtempDoc%20%3D%20document.implementation.createHTMLDocument(%22temp%22)%3B%0AtempDocBase%20%3D%20tempDoc.createElement(%22base%22)%3B%0AtempDoc.head.appendChild(tempDocBase)%3B%0A%7D%0AtempDocBase.href%20%3D%20baseUri%3B%0Areturn%20resolve(url%2C%20tempDoc)%3B%0A%7D%0Afunction%20getUrlResolver(ownerDocument)%20%7B%0Areturn%20ownerDocument.__urlResolver%20%7C%7C%20(ownerDocument.__urlResolver%20%3D%20ownerDocument.createElement(%22a%22))%3B%0A%7D%0Avar%20CSS_URL_RX%20%3D%20%2F(url%5C()(%5B%5E)%5D*)(%5C))%2Fg%3B%0Avar%20URL_ATTRS%20%3D%20%7B%0A%22*%22%3A%20%5B%20%22href%22%2C%20%22src%22%2C%20%22style%22%2C%20%22url%22%20%5D%2C%0Aform%3A%20%5B%20%22action%22%20%5D%0A%7D%3B%0Avar%20BINDING_RX%20%3D%20%2F%5C%7B%5C%7B%7C%5C%5B%5C%5B%2F%3B%0APolymer.ResolveUrl%20%3D%20%7B%0AresolveCss%3A%20resolveCss%2C%0AresolveAttrs%3A%20resolveAttrs%2C%0AresolveUrl%3A%20resolveUrl%0A%7D%3B%0A%7D)()%3B%0A%0APolymer.Base._addFeature(%7B%0A_prepAnnotations%3A%20function()%20%7B%0Aif%20(!this._template)%20%7B%0Athis._notes%20%3D%20%5B%5D%3B%0A%7D%20else%20%7B%0APolymer.Annotations.prepElement%20%3D%20this._prepElement.bind(this)%3B%0Athis._notes%20%3D%20Polymer.Annotations.parseAnnotations(this._template)%3B%0Athis._processAnnotations(this._notes)%3B%0APolymer.Annotations.prepElement%20%3D%20null%3B%0A%7D%0A%7D%2C%0A_processAnnotations%3A%20function(notes)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20notes.length%3B%20i%2B%2B)%20%7B%0Avar%20note%20%3D%20notes%5Bi%5D%3B%0Afor%20(var%20j%20%3D%200%3B%20j%20%3C%20note.bindings.length%3B%20j%2B%2B)%20%7B%0Avar%20b%20%3D%20note.bindings%5Bj%5D%3B%0Ab.signature%20%3D%20this._parseMethod(b.value)%3B%0Aif%20(!b.signature)%20%7B%0Ab.model%20%3D%20this._modelForPath(b.value)%3B%0A%7D%0A%7D%0Aif%20(note.templateContent)%20%7B%0Athis._processAnnotations(note.templateContent._notes)%3B%0Avar%20pp%20%3D%20note.templateContent._parentProps%20%3D%20this._discoverTemplateParentProps(note.templateContent._notes)%3B%0Avar%20bindings%20%3D%20%5B%5D%3B%0Afor%20(var%20prop%20in%20pp)%20%7B%0Abindings.push(%7B%0Aindex%3A%20note.index%2C%0Akind%3A%20%22property%22%2C%0Amode%3A%20%22%7B%22%2C%0Aname%3A%20%22_parent_%22%20%2B%20prop%2C%0Amodel%3A%20prop%2C%0Avalue%3A%20prop%0A%7D)%3B%0A%7D%0Anote.bindings%20%3D%20note.bindings.concat(bindings)%3B%0A%7D%0A%7D%0A%7D%2C%0A_discoverTemplateParentProps%3A%20function(notes)%20%7B%0Avar%20pp%20%3D%20%7B%7D%3B%0Anotes.forEach(function(n)%20%7B%0An.bindings.forEach(function(b)%20%7B%0Aif%20(b.signature)%20%7B%0Avar%20args%20%3D%20b.signature.args%3B%0Afor%20(var%20k%20%3D%200%3B%20k%20%3C%20args.length%3B%20k%2B%2B)%20%7B%0App%5Bargs%5Bk%5D.model%5D%20%3D%20true%3B%0A%7D%0A%7D%20else%20%7B%0App%5Bb.model%5D%20%3D%20true%3B%0A%7D%0A%7D)%3B%0Aif%20(n.templateContent)%20%7B%0Avar%20tpp%20%3D%20n.templateContent._parentProps%3B%0APolymer.Base.mixin(pp%2C%20tpp)%3B%0A%7D%0A%7D)%3B%0Areturn%20pp%3B%0A%7D%2C%0A_prepElement%3A%20function(element)%20%7B%0APolymer.ResolveUrl.resolveAttrs(element%2C%20this._template.ownerDocument)%3B%0A%7D%2C%0A_findAnnotatedNode%3A%20Polymer.Annotations.findAnnotatedNode%2C%0A_marshalAnnotationReferences%3A%20function()%20%7B%0Aif%20(this._template)%20%7B%0Athis._marshalIdNodes()%3B%0Athis._marshalAnnotatedNodes()%3B%0Athis._marshalAnnotatedListeners()%3B%0A%7D%0A%7D%2C%0A_configureAnnotationReferences%3A%20function()%20%7B%0Athis._configureTemplateContent()%3B%0A%7D%2C%0A_configureTemplateContent%3A%20function()%20%7B%0Athis._notes.forEach(function(note%2C%20i)%20%7B%0Aif%20(note.templateContent)%20%7B%0Athis._nodes%5Bi%5D._content%20%3D%20note.templateContent%3B%0A%7D%0A%7D%2C%20this)%3B%0A%7D%2C%0A_marshalIdNodes%3A%20function()%20%7B%0Athis.%24%20%3D%20%7B%7D%3B%0Athis._notes.forEach(function(a)%20%7B%0Aif%20(a.id)%20%7B%0Athis.%24%5Ba.id%5D%20%3D%20this._findAnnotatedNode(this.root%2C%20a)%3B%0A%7D%0A%7D%2C%20this)%3B%0A%7D%2C%0A_marshalAnnotatedNodes%3A%20function()%20%7B%0Aif%20(this._nodes)%20%7B%0Athis._nodes%20%3D%20this._nodes.map(function(a)%20%7B%0Areturn%20this._findAnnotatedNode(this.root%2C%20a)%3B%0A%7D%2C%20this)%3B%0A%7D%0A%7D%2C%0A_marshalAnnotatedListeners%3A%20function()%20%7B%0Athis._notes.forEach(function(a)%20%7B%0Aif%20(a.events%20%26%26%20a.events.length)%20%7B%0Avar%20node%20%3D%20this._findAnnotatedNode(this.root%2C%20a)%3B%0Aa.events.forEach(function(e)%20%7B%0Athis.listen(node%2C%20e.name%2C%20e.value)%3B%0A%7D%2C%20this)%3B%0A%7D%0A%7D%2C%20this)%3B%0A%7D%0A%7D)%3B%0A%0APolymer.Base._addFeature(%7B%0Alisteners%3A%20%7B%7D%2C%0A_listenListeners%3A%20function(listeners)%20%7B%0Avar%20node%2C%20name%2C%20key%3B%0Afor%20(key%20in%20listeners)%20%7B%0Aif%20(key.indexOf(%22.%22)%20%3C%200)%20%7B%0Anode%20%3D%20this%3B%0Aname%20%3D%20key%3B%0A%7D%20else%20%7B%0Aname%20%3D%20key.split(%22.%22)%3B%0Anode%20%3D%20this.%24%5Bname%5B0%5D%5D%3B%0Aname%20%3D%20name%5B1%5D%3B%0A%7D%0Athis.listen(node%2C%20name%2C%20listeners%5Bkey%5D)%3B%0A%7D%0A%7D%2C%0Alisten%3A%20function(node%2C%20eventName%2C%20methodName)%20%7B%0Athis._listen(node%2C%20eventName%2C%20this._createEventHandler(node%2C%20eventName%2C%20methodName))%3B%0A%7D%2C%0A_createEventHandler%3A%20function(node%2C%20eventName%2C%20methodName)%20%7B%0Avar%20host%20%3D%20this%3B%0Areturn%20function(e)%20%7B%0Aif%20(host%5BmethodName%5D)%20%7B%0Ahost%5BmethodName%5D(e%2C%20e.detail)%3B%0A%7D%20else%20%7B%0Ahost._warn(host._logf(%22_createEventHandler%22%2C%20%22listener%20method%20%60%22%20%2B%20methodName%20%2B%20%22%60%20not%20defined%22))%3B%0A%7D%0A%7D%3B%0A%7D%2C%0A_listen%3A%20function(node%2C%20eventName%2C%20handler)%20%7B%0Anode.addEventListener(eventName%2C%20handler)%3B%0A%7D%0A%7D)%3B%0A%0A(function()%20%7B%0A%22use%20strict%22%3B%0Avar%20HAS_NATIVE_TA%20%3D%20typeof%20document.head.style.touchAction%20%3D%3D%3D%20%22string%22%3B%0Avar%20GESTURE_KEY%20%3D%20%22__polymerGestures%22%3B%0Avar%20HANDLED_OBJ%20%3D%20%22__polymerGesturesHandled%22%3B%0Avar%20TOUCH_ACTION%20%3D%20%22__polymerGesturesTouchAction%22%3B%0Avar%20TAP_DISTANCE%20%3D%2025%3B%0Avar%20TRACK_DISTANCE%20%3D%205%3B%0Avar%20TRACK_LENGTH%20%3D%202%3B%0Avar%20MOUSE_TIMEOUT%20%3D%202500%3B%0Avar%20MOUSE_EVENTS%20%3D%20%5B%20%22mousedown%22%2C%20%22mousemove%22%2C%20%22mouseup%22%2C%20%22click%22%20%5D%3B%0Avar%20mouseCanceller%20%3D%20function(mouseEvent)%20%7B%0AmouseEvent%5BHANDLED_OBJ%5D%20%3D%20%7B%0Askip%3A%20true%0A%7D%3B%0Aif%20(mouseEvent.type%20%3D%3D%3D%20%22click%22)%20%7B%0Avar%20path%20%3D%20Polymer.dom(mouseEvent).path%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20path.length%3B%20i%2B%2B)%20%7B%0Aif%20(path%5Bi%5D%20%3D%3D%3D%20POINTERSTATE.mouse.target)%20%7B%0Areturn%3B%0A%7D%0A%7D%0AmouseEvent.preventDefault()%3B%0AmouseEvent.stopPropagation()%3B%0A%7D%0A%7D%3B%0Afunction%20setupTeardownMouseCanceller(setup)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20en%3B%20i%20%3C%20MOUSE_EVENTS.length%3B%20i%2B%2B)%20%7B%0Aen%20%3D%20MOUSE_EVENTS%5Bi%5D%3B%0Aif%20(setup)%20%7B%0Adocument.addEventListener(en%2C%20mouseCanceller%2C%20true)%3B%0A%7D%20else%20%7B%0Adocument.removeEventListener(en%2C%20mouseCanceller%2C%20true)%3B%0A%7D%0A%7D%0A%7D%0Afunction%20ignoreMouse()%20%7B%0Aif%20(!POINTERSTATE.mouse.mouseIgnoreJob)%20%7B%0AsetupTeardownMouseCanceller(true)%3B%0A%7D%0Avar%20unset%20%3D%20function()%20%7B%0AsetupTeardownMouseCanceller()%3B%0APOINTERSTATE.mouse.target%20%3D%20null%3B%0APOINTERSTATE.mouse.mouseIgnoreJob%20%3D%20null%3B%0A%7D%3B%0APOINTERSTATE.mouse.mouseIgnoreJob%20%3D%20Polymer.Debounce(POINTERSTATE.mouse.mouseIgnoreJob%2C%20unset%2C%20MOUSE_TIMEOUT)%3B%0A%7D%0Avar%20POINTERSTATE%20%3D%20%7B%0AtapPrevented%3A%20false%2C%0Amouse%3A%20%7B%0Atarget%3A%20null%2C%0AmouseIgnoreJob%3A%20null%0A%7D%2C%0Atouch%3A%20%7B%0Ax%3A%200%2C%0Ay%3A%200%2C%0Aid%3A%20-1%2C%0AscrollDecided%3A%20false%0A%7D%0A%7D%3B%0Afunction%20firstTouchAction(ev)%20%7B%0Avar%20path%20%3D%20Polymer.dom(ev).path%3B%0Avar%20ta%20%3D%20%22auto%22%3B%0Afor%20(var%20i%20%3D%200%2C%20n%3B%20i%20%3C%20path.length%3B%20i%2B%2B)%20%7B%0An%20%3D%20path%5Bi%5D%3B%0Aif%20(n%5BTOUCH_ACTION%5D)%20%7B%0Ata%20%3D%20n%5BTOUCH_ACTION%5D%3B%0Abreak%3B%0A%7D%0A%7D%0Areturn%20ta%3B%0A%7D%0Avar%20Gestures%20%3D%20%7B%0Agestures%3A%20%7B%7D%2C%0Arecognizers%3A%20%5B%5D%2C%0AdeepTargetFind%3A%20function(x%2C%20y)%20%7B%0Avar%20node%20%3D%20document.elementFromPoint(x%2C%20y)%3B%0Avar%20next%20%3D%20node%3B%0Awhile%20(next%20%26%26%20next.shadowRoot)%20%7B%0Anext%20%3D%20next.shadowRoot.elementFromPoint(x%2C%20y)%3B%0Aif%20(next)%20%7B%0Anode%20%3D%20next%3B%0A%7D%0A%7D%0Areturn%20node%3B%0A%7D%2C%0AhandleNative%3A%20function(ev)%20%7B%0Avar%20handled%3B%0Avar%20type%20%3D%20ev.type%3B%0Avar%20node%20%3D%20ev.currentTarget%3B%0Avar%20gobj%20%3D%20node%5BGESTURE_KEY%5D%3B%0Avar%20gs%20%3D%20gobj%5Btype%5D%3B%0Aif%20(!gs)%20%7B%0Areturn%3B%0A%7D%0Aif%20(!ev%5BHANDLED_OBJ%5D)%20%7B%0Aev%5BHANDLED_OBJ%5D%20%3D%20%7B%7D%3B%0Aif%20(type.slice(0%2C%205)%20%3D%3D%3D%20%22touch%22)%20%7B%0Avar%20t%20%3D%20ev.changedTouches%5B0%5D%3B%0Aif%20(type%20%3D%3D%3D%20%22touchstart%22)%20%7B%0Aif%20(ev.touches.length%20%3D%3D%3D%201)%20%7B%0APOINTERSTATE.touch.id%20%3D%20t.identifier%3B%0A%7D%0A%7D%0Aif%20(POINTERSTATE.touch.id%20!%3D%3D%20t.identifier)%20%7B%0Areturn%3B%0A%7D%0Aif%20(!HAS_NATIVE_TA)%20%7B%0Aif%20(type%20%3D%3D%3D%20%22touchstart%22%20%7C%7C%20type%20%3D%3D%3D%20%22touchmove%22)%20%7B%0AGestures.handleTouchAction(ev)%3B%0A%7D%0A%7D%0Aif%20(type%20%3D%3D%3D%20%22touchend%22)%20%7B%0APOINTERSTATE.mouse.target%20%3D%20Polymer.dom(ev).rootTarget%3B%0AignoreMouse(true)%3B%0A%7D%0A%7D%0A%7D%0Ahandled%20%3D%20ev%5BHANDLED_OBJ%5D%3B%0Aif%20(handled.skip)%20%7B%0Areturn%3B%0A%7D%0Avar%20recognizers%20%3D%20Gestures.recognizers%3B%0Afor%20(var%20i%20%3D%200%2C%20r%3B%20i%20%3C%20recognizers.length%3B%20i%2B%2B)%20%7B%0Ar%20%3D%20recognizers%5Bi%5D%3B%0Aif%20(gs%5Br.name%5D%20%26%26%20!handled%5Br.name%5D)%20%7B%0Ahandled%5Br.name%5D%20%3D%20true%3B%0Ar%5Btype%5D(ev)%3B%0A%7D%0A%7D%0A%7D%2C%0AhandleTouchAction%3A%20function(ev)%20%7B%0Avar%20t%20%3D%20ev.changedTouches%5B0%5D%3B%0Avar%20type%20%3D%20ev.type%3B%0Aif%20(type%20%3D%3D%3D%20%22touchstart%22)%20%7B%0APOINTERSTATE.touch.x%20%3D%20t.clientX%3B%0APOINTERSTATE.touch.y%20%3D%20t.clientY%3B%0APOINTERSTATE.touch.scrollDecided%20%3D%20false%3B%0A%7D%20else%20if%20(type%20%3D%3D%3D%20%22touchmove%22)%20%7B%0Aif%20(POINTERSTATE.touch.scrollDecided)%20%7B%0Areturn%3B%0A%7D%0APOINTERSTATE.touch.scrollDecided%20%3D%20true%3B%0Avar%20ta%20%3D%20firstTouchAction(ev)%3B%0Avar%20prevent%20%3D%20false%3B%0Avar%20dx%20%3D%20Math.abs(POINTERSTATE.touch.x%20-%20t.clientX)%3B%0Avar%20dy%20%3D%20Math.abs(POINTERSTATE.touch.y%20-%20t.clientY)%3B%0Aif%20(!ev.cancelable)%20%7B%7D%20else%20if%20(ta%20%3D%3D%3D%20%22none%22)%20%7B%0Aprevent%20%3D%20true%3B%0A%7D%20else%20if%20(ta%20%3D%3D%3D%20%22pan-x%22)%20%7B%0Aprevent%20%3D%20dy%20%3E%20dx%3B%0A%7D%20else%20if%20(ta%20%3D%3D%3D%20%22pan-y%22)%20%7B%0Aprevent%20%3D%20dx%20%3E%20dy%3B%0A%7D%0Aif%20(prevent)%20%7B%0Aev.preventDefault()%3B%0A%7D%0A%7D%0A%7D%2C%0Aadd%3A%20function(node%2C%20evType%2C%20handler)%20%7B%0Avar%20recognizer%20%3D%20this.gestures%5BevType%5D%3B%0Avar%20deps%20%3D%20recognizer.deps%3B%0Avar%20name%20%3D%20recognizer.name%3B%0Avar%20gobj%20%3D%20node%5BGESTURE_KEY%5D%3B%0Aif%20(!gobj)%20%7B%0Anode%5BGESTURE_KEY%5D%20%3D%20gobj%20%3D%20%7B%7D%3B%0A%7D%0Afor%20(var%20i%20%3D%200%2C%20dep%2C%20gd%3B%20i%20%3C%20deps.length%3B%20i%2B%2B)%20%7B%0Adep%20%3D%20deps%5Bi%5D%3B%0Agd%20%3D%20gobj%5Bdep%5D%3B%0Aif%20(!gd)%20%7B%0Agobj%5Bdep%5D%20%3D%20gd%20%3D%20%7B%7D%3B%0Anode.addEventListener(dep%2C%20this.handleNative)%3B%0A%7D%0Agd%5Bname%5D%20%3D%20(gd%5Bname%5D%20%7C%7C%200)%20%2B%201%3B%0A%7D%0Anode.addEventListener(evType%2C%20handler)%3B%0Aif%20(recognizer.touchAction)%20%7B%0Athis.setTouchAction(node%2C%20recognizer.touchAction)%3B%0A%7D%0A%7D%2C%0Aregister%3A%20function(recog)%20%7B%0Athis.recognizers.push(recog)%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20recog.emits.length%3B%20i%2B%2B)%20%7B%0Athis.gestures%5Brecog.emits%5Bi%5D%5D%20%3D%20recog%3B%0A%7D%0A%7D%2C%0AsetTouchAction%3A%20function(node%2C%20value)%20%7B%0Aif%20(HAS_NATIVE_TA)%20%7B%0Anode.style.touchAction%20%3D%20value%3B%0A%7D%0Anode%5BTOUCH_ACTION%5D%20%3D%20value%3B%0A%7D%2C%0Afire%3A%20function(target%2C%20type%2C%20detail)%20%7B%0Avar%20ev%20%3D%20new%20CustomEvent(type%2C%20%7B%0Adetail%3A%20detail%2C%0Abubbles%3A%20true%2C%0Acancelable%3A%20true%0A%7D)%3B%0Atarget.dispatchEvent(ev)%3B%0A%7D%0A%7D%3B%0AGestures.register(%7B%0Aname%3A%20%22downup%22%2C%0Adeps%3A%20%5B%20%22mousedown%22%2C%20%22touchstart%22%2C%20%22touchend%22%20%5D%2C%0Aemits%3A%20%5B%20%22down%22%2C%20%22up%22%20%5D%2C%0Amousedown%3A%20function(e)%20%7B%0Avar%20t%20%3D%20e.currentTarget%3B%0Avar%20self%20%3D%20this%3B%0Avar%20upfn%20%3D%20function%20upfn(e)%20%7B%0Aself.fire(%22up%22%2C%20t%2C%20e)%3B%0Adocument.removeEventListener(%22mouseup%22%2C%20upfn)%3B%0A%7D%3B%0Adocument.addEventListener(%22mouseup%22%2C%20upfn)%3B%0Athis.fire(%22down%22%2C%20t%2C%20e)%3B%0A%7D%2C%0Atouchstart%3A%20function(e)%20%7B%0Athis.fire(%22down%22%2C%20e.currentTarget%2C%20e.changedTouches%5B0%5D)%3B%0A%7D%2C%0Atouchend%3A%20function(e)%20%7B%0Athis.fire(%22up%22%2C%20e.currentTarget%2C%20e.changedTouches%5B0%5D)%3B%0A%7D%2C%0Afire%3A%20function(type%2C%20target%2C%20event)%20%7B%0AGestures.fire(target%2C%20type%2C%20%7B%0Ax%3A%20event.clientX%2C%0Ay%3A%20event.clientY%2C%0AsourceEvent%3A%20event%0A%7D)%3B%0A%7D%0A%7D)%3B%0AGestures.register(%7B%0Aname%3A%20%22track%22%2C%0AtouchAction%3A%20%22none%22%2C%0Adeps%3A%20%5B%20%22mousedown%22%2C%20%22touchstart%22%2C%20%22touchmove%22%2C%20%22touchend%22%20%5D%2C%0Aemits%3A%20%5B%20%22track%22%20%5D%2C%0Ainfo%3A%20%7B%0Ax%3A%200%2C%0Ay%3A%200%2C%0Astate%3A%20%22start%22%2C%0Astarted%3A%20false%2C%0Amoves%3A%20%5B%5D%2C%0AaddMove%3A%20function(move)%20%7B%0Aif%20(this.moves.length%20%3E%20TRACK_LENGTH)%20%7B%0Athis.moves.shift()%3B%0A%7D%0Athis.moves.push(move)%3B%0A%7D%0A%7D%2C%0AclearInfo%3A%20function()%20%7B%0Athis.info.state%20%3D%20%22start%22%3B%0Athis.info.started%20%3D%20false%3B%0Athis.info.moves%20%3D%20%5B%5D%3B%0Athis.info.x%20%3D%200%3B%0Athis.info.y%20%3D%200%3B%0A%7D%2C%0AhasMovedEnough%3A%20function(x%2C%20y)%20%7B%0Aif%20(this.info.started)%20%7B%0Areturn%20true%3B%0A%7D%0Avar%20dx%20%3D%20Math.abs(this.info.x%20-%20x)%3B%0Avar%20dy%20%3D%20Math.abs(this.info.y%20-%20y)%3B%0Areturn%20dx%20%3E%3D%20TRACK_DISTANCE%20%7C%7C%20dy%20%3E%3D%20TRACK_DISTANCE%3B%0A%7D%2C%0Amousedown%3A%20function(e)%20%7B%0Avar%20t%20%3D%20e.currentTarget%3B%0Avar%20self%20%3D%20this%3B%0Avar%20movefn%20%3D%20function%20movefn(e)%20%7B%0Avar%20x%20%3D%20e.clientX%2C%20y%20%3D%20e.clientY%3B%0Aif%20(self.hasMovedEnough(x%2C%20y))%20%7B%0Aself.info.state%20%3D%20self.info.started%20%3F%20e.type%20%3D%3D%3D%20%22mouseup%22%20%3F%20%22end%22%20%3A%20%22track%22%20%3A%20%22start%22%3B%0Aself.info.addMove(%7B%0Ax%3A%20x%2C%0Ay%3A%20y%0A%7D)%3B%0Aself.fire(t%2C%20e)%3B%0Ae.preventDefault()%3B%0Aself.info.started%20%3D%20true%3B%0A%7D%0A%7D%3B%0Avar%20upfn%20%3D%20function%20upfn(e)%20%7B%0Aif%20(self.info.started)%20%7B%0APOINTERSTATE.tapPrevented%20%3D%20true%3B%0Amovefn(e)%3B%0A%7D%0Aself.clearInfo()%3B%0Adocument.removeEventListener(%22mousemove%22%2C%20movefn)%3B%0Adocument.removeEventListener(%22mouseup%22%2C%20upfn)%3B%0A%7D%3B%0Adocument.addEventListener(%22mousemove%22%2C%20movefn)%3B%0Adocument.addEventListener(%22mouseup%22%2C%20upfn)%3B%0Athis.info.x%20%3D%20e.clientX%3B%0Athis.info.y%20%3D%20e.clientY%3B%0A%7D%2C%0Atouchstart%3A%20function(e)%20%7B%0Avar%20ct%20%3D%20e.changedTouches%5B0%5D%3B%0Athis.info.x%20%3D%20ct.clientX%3B%0Athis.info.y%20%3D%20ct.clientY%3B%0A%7D%2C%0Atouchmove%3A%20function(e)%20%7B%0Avar%20t%20%3D%20e.currentTarget%3B%0Avar%20ct%20%3D%20e.changedTouches%5B0%5D%3B%0Avar%20x%20%3D%20ct.clientX%2C%20y%20%3D%20ct.clientY%3B%0Aif%20(this.hasMovedEnough(x%2C%20y))%20%7B%0Athis.info.addMove(%7B%0Ax%3A%20x%2C%0Ay%3A%20y%0A%7D)%3B%0Athis.fire(t%2C%20ct)%3B%0Athis.info.state%20%3D%20%22track%22%3B%0Athis.info.started%20%3D%20true%3B%0A%7D%0A%7D%2C%0Atouchend%3A%20function(e)%20%7B%0Avar%20t%20%3D%20e.currentTarget%3B%0Avar%20ct%20%3D%20e.changedTouches%5B0%5D%3B%0Aif%20(this.info.started)%20%7B%0APOINTERSTATE.tapPrevented%20%3D%20true%3B%0Athis.info.state%20%3D%20%22end%22%3B%0Athis.info.addMove(%7B%0Ax%3A%20ct.clientX%2C%0Ay%3A%20ct.clientY%0A%7D)%3B%0Athis.fire(t%2C%20ct)%3B%0A%7D%0Athis.clearInfo()%3B%0A%7D%2C%0Afire%3A%20function(target%2C%20touch)%20%7B%0Avar%20secondlast%20%3D%20this.info.moves%5Bthis.info.moves.length%20-%202%5D%3B%0Avar%20lastmove%20%3D%20this.info.moves%5Bthis.info.moves.length%20-%201%5D%3B%0Avar%20dx%20%3D%20lastmove.x%20-%20this.info.x%3B%0Avar%20dy%20%3D%20lastmove.y%20-%20this.info.y%3B%0Avar%20ddx%2C%20ddy%20%3D%200%3B%0Aif%20(secondlast)%20%7B%0Addx%20%3D%20lastmove.x%20-%20secondlast.x%3B%0Addy%20%3D%20lastmove.y%20-%20secondlast.y%3B%0A%7D%0Areturn%20Gestures.fire(target%2C%20%22track%22%2C%20%7B%0Astate%3A%20this.info.state%2C%0Ax%3A%20touch.clientX%2C%0Ay%3A%20touch.clientY%2C%0Adx%3A%20dx%2C%0Ady%3A%20dy%2C%0Addx%3A%20ddx%2C%0Addy%3A%20ddy%2C%0AsourceEvent%3A%20touch%2C%0Ahover%3A%20function()%20%7B%0Areturn%20Gestures.deepTargetFind(touch.clientX%2C%20touch.clientY)%3B%0A%7D%0A%7D)%3B%0A%7D%0A%7D)%3B%0AGestures.register(%7B%0Aname%3A%20%22tap%22%2C%0Adeps%3A%20%5B%20%22mousedown%22%2C%20%22click%22%2C%20%22touchstart%22%2C%20%22touchend%22%20%5D%2C%0Aemits%3A%20%5B%20%22tap%22%20%5D%2C%0Astart%3A%20%7B%0Ax%3A%20NaN%2C%0Ay%3A%20NaN%0A%7D%2C%0Areset%3A%20function()%20%7B%0Athis.start.x%20%3D%20NaN%3B%0Athis.start.y%20%3D%20NaN%3B%0A%7D%2C%0Asave%3A%20function(e)%20%7B%0Athis.start.x%20%3D%20e.clientX%3B%0Athis.start.y%20%3D%20e.clientY%3B%0A%7D%2C%0Amousedown%3A%20function(e)%20%7B%0APOINTERSTATE.tapPrevented%20%3D%20false%3B%0Athis.save(e)%3B%0A%7D%2C%0Aclick%3A%20function(e)%20%7B%0Athis.forward(e)%3B%0A%7D%2C%0Atouchstart%3A%20function(e)%20%7B%0APOINTERSTATE.tapPrevented%20%3D%20false%3B%0Athis.save(e.changedTouches%5B0%5D)%3B%0A%7D%2C%0Atouchend%3A%20function(e)%20%7B%0Athis.forward(e.changedTouches%5B0%5D)%3B%0A%7D%2C%0Aforward%3A%20function(e)%20%7B%0Avar%20dx%20%3D%20Math.abs(e.clientX%20-%20this.start.x)%3B%0Avar%20dy%20%3D%20Math.abs(e.clientY%20-%20this.start.y)%3B%0Aif%20(isNaN(dx)%20%7C%7C%20isNaN(dy)%20%7C%7C%20dx%20%3C%3D%20TAP_DISTANCE%20%26%26%20dy%20%3C%3D%20TAP_DISTANCE)%20%7B%0Aif%20(!POINTERSTATE.tapPrevented)%20%7B%0AGestures.fire(e.target%2C%20%22tap%22%2C%20%7B%0Ax%3A%20e.clientX%2C%0Ay%3A%20e.clientY%2C%0AsourceEvent%3A%20e%0A%7D)%3B%0A%7D%0A%7D%0Athis.reset()%3B%0A%7D%0A%7D)%3B%0Avar%20DIRECTION_MAP%20%3D%20%7B%0Ax%3A%20%22pan-x%22%2C%0Ay%3A%20%22pan-y%22%2C%0Anone%3A%20%22none%22%2C%0Aall%3A%20%22auto%22%0A%7D%3B%0APolymer.Base._addFeature(%7B%0A_listen%3A%20function(node%2C%20eventName%2C%20handler)%20%7B%0Aif%20(Gestures.gestures%5BeventName%5D)%20%7B%0AGestures.add(node%2C%20eventName%2C%20handler)%3B%0A%7D%20else%20%7B%0Anode.addEventListener(eventName%2C%20handler)%3B%0A%7D%0A%7D%2C%0AsetScrollDirection%3A%20function(direction%2C%20node)%20%7B%0Anode%20%3D%20node%20%7C%7C%20this%3B%0AGestures.setTouchAction(node%2C%20DIRECTION_MAP%5Bdirection%5D%20%7C%7C%20%22auto%22)%3B%0A%7D%0A%7D)%3B%0APolymer.Gestures%20%3D%20Gestures%3B%0A%7D)()%3B%0A%0APolymer.Async%20%3D%20function()%20%7B%0Avar%20currVal%20%3D%200%3B%0Avar%20lastVal%20%3D%200%3B%0Avar%20callbacks%20%3D%20%5B%5D%3B%0Avar%20twiddle%20%3D%20document.createTextNode(%22%22)%3B%0Afunction%20runAsync(callback%2C%20waitTime)%20%7B%0Aif%20(waitTime%20%3E%200)%20%7B%0Areturn%20~setTimeout(callback%2C%20waitTime)%3B%0A%7D%20else%20%7B%0Atwiddle.textContent%20%3D%20currVal%2B%2B%3B%0Acallbacks.push(callback)%3B%0Areturn%20currVal%20-%201%3B%0A%7D%0A%7D%0Afunction%20cancelAsync(handle)%20%7B%0Aif%20(handle%20%3C%200)%20%7B%0AclearTimeout(~handle)%3B%0A%7D%20else%20%7B%0Avar%20idx%20%3D%20handle%20-%20lastVal%3B%0Aif%20(idx%20%3E%3D%200)%20%7B%0Aif%20(!callbacks%5Bidx%5D)%20%7B%0Athrow%20%22invalid%20async%20handle%3A%20%22%20%2B%20handle%3B%0A%7D%0Acallbacks%5Bidx%5D%20%3D%20null%3B%0A%7D%0A%7D%0A%7D%0Afunction%20atEndOfMicrotask()%20%7B%0Avar%20len%20%3D%20callbacks.length%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20len%3B%20i%2B%2B)%20%7B%0Avar%20cb%20%3D%20callbacks%5Bi%5D%3B%0Aif%20(cb)%20%7B%0Acb()%3B%0A%7D%0A%7D%0Acallbacks.splice(0%2C%20len)%3B%0AlastVal%20%2B%3D%20len%3B%0A%7D%0Anew%20(window.MutationObserver%20%7C%7C%20JsMutationObserver)(atEndOfMicrotask).observe(twiddle%2C%20%7B%0AcharacterData%3A%20true%0A%7D)%3B%0Areturn%20%7B%0Arun%3A%20runAsync%2C%0Acancel%3A%20cancelAsync%0A%7D%3B%0A%7D()%3B%0A%0APolymer.Debounce%20%3D%20function()%20%7B%0Avar%20Async%20%3D%20Polymer.Async%3B%0Avar%20Debouncer%20%3D%20function(context)%20%7B%0Athis.context%20%3D%20context%3B%0Athis.boundComplete%20%3D%20this.complete.bind(this)%3B%0A%7D%3B%0ADebouncer.prototype%20%3D%20%7B%0Ago%3A%20function(callback%2C%20wait)%20%7B%0Avar%20h%3B%0Athis.finish%20%3D%20function()%20%7B%0AAsync.cancel(h)%3B%0A%7D%3B%0Ah%20%3D%20Async.run(this.boundComplete%2C%20wait)%3B%0Athis.callback%20%3D%20callback%3B%0A%7D%2C%0Astop%3A%20function()%20%7B%0Aif%20(this.finish)%20%7B%0Athis.finish()%3B%0Athis.finish%20%3D%20null%3B%0A%7D%0A%7D%2C%0Acomplete%3A%20function()%20%7B%0Aif%20(this.finish)%20%7B%0Athis.stop()%3B%0Athis.callback.call(this.context)%3B%0A%7D%0A%7D%0A%7D%3B%0Afunction%20debounce(debouncer%2C%20callback%2C%20wait)%20%7B%0Aif%20(debouncer)%20%7B%0Adebouncer.stop()%3B%0A%7D%20else%20%7B%0Adebouncer%20%3D%20new%20Debouncer(this)%3B%0A%7D%0Adebouncer.go(callback%2C%20wait)%3B%0Areturn%20debouncer%3B%0A%7D%0Areturn%20debounce%3B%0A%7D()%3B%0A%0APolymer.Base._addFeature(%7B%0A%24%24%3A%20function(slctr)%20%7B%0Areturn%20Polymer.dom(this.root).querySelector(slctr)%3B%0A%7D%2C%0AtoggleClass%3A%20function(name%2C%20bool%2C%20node)%20%7B%0Anode%20%3D%20node%20%7C%7C%20this%3B%0Aif%20(arguments.length%20%3D%3D%201)%20%7B%0Abool%20%3D%20!node.classList.contains(name)%3B%0A%7D%0Aif%20(bool)%20%7B%0APolymer.dom(node).classList.add(name)%3B%0A%7D%20else%20%7B%0APolymer.dom(node).classList.remove(name)%3B%0A%7D%0A%7D%2C%0AtoggleAttribute%3A%20function(name%2C%20bool%2C%20node)%20%7B%0Anode%20%3D%20node%20%7C%7C%20this%3B%0Aif%20(arguments.length%20%3D%3D%201)%20%7B%0Abool%20%3D%20!node.hasAttribute(name)%3B%0A%7D%0Aif%20(bool)%20%7B%0APolymer.dom(node).setAttribute(name%2C%20%22%22)%3B%0A%7D%20else%20%7B%0APolymer.dom(node).removeAttribute(name)%3B%0A%7D%0A%7D%2C%0AclassFollows%3A%20function(name%2C%20toElement%2C%20fromElement)%20%7B%0Aif%20(fromElement)%20%7B%0APolymer.dom(fromElement).classList.remove(name)%3B%0A%7D%0Aif%20(toElement)%20%7B%0APolymer.dom(toElement).classList.add(name)%3B%0A%7D%0A%7D%2C%0AattributeFollows%3A%20function(name%2C%20toElement%2C%20fromElement)%20%7B%0Aif%20(fromElement)%20%7B%0APolymer.dom(fromElement).removeAttribute(name)%3B%0A%7D%0Aif%20(toElement)%20%7B%0APolymer.dom(toElement).setAttribute(name%2C%20%22%22)%3B%0A%7D%0A%7D%2C%0AgetContentChildNodes%3A%20function(slctr)%20%7B%0Areturn%20Polymer.dom(Polymer.dom(this.root).querySelector(slctr%20%7C%7C%20%22content%22)).getDistributedNodes()%3B%0A%7D%2C%0AgetContentChildren%3A%20function(slctr)%20%7B%0Areturn%20this.getContentChildNodes(slctr).filter(function(n)%20%7B%0Areturn%20n.nodeType%20%3D%3D%3D%20Node.ELEMENT_NODE%3B%0A%7D)%3B%0A%7D%2C%0Afire%3A%20function(type%2C%20detail%2C%20options)%20%7B%0Aoptions%20%3D%20options%20%7C%7C%20Polymer.nob%3B%0Avar%20node%20%3D%20options.node%20%7C%7C%20this%3B%0Avar%20detail%20%3D%20detail%20%3D%3D%3D%20null%20%7C%7C%20detail%20%3D%3D%3D%20undefined%20%3F%20Polymer.nob%20%3A%20detail%3B%0Avar%20bubbles%20%3D%20options.bubbles%20%3D%3D%3D%20undefined%20%3F%20true%20%3A%20options.bubbles%3B%0Avar%20event%20%3D%20new%20CustomEvent(type%2C%20%7B%0Abubbles%3A%20Boolean(bubbles)%2C%0Acancelable%3A%20Boolean(options.cancelable)%2C%0Adetail%3A%20detail%0A%7D)%3B%0Anode.dispatchEvent(event)%3B%0Areturn%20event%3B%0A%7D%2C%0Aasync%3A%20function(callback%2C%20waitTime)%20%7B%0Areturn%20Polymer.Async.run(callback.bind(this)%2C%20waitTime)%3B%0A%7D%2C%0AcancelAsync%3A%20function(handle)%20%7B%0APolymer.Async.cancel(handle)%3B%0A%7D%2C%0AarrayDelete%3A%20function(path%2C%20item)%20%7B%0Avar%20index%3B%0Aif%20(Array.isArray(path))%20%7B%0Aindex%20%3D%20path.indexOf(item)%3B%0Aif%20(index%20%3E%3D%200)%20%7B%0Areturn%20path.splice(index%2C%201)%3B%0A%7D%0A%7D%20else%20%7B%0Avar%20arr%20%3D%20this.get(path)%3B%0Aindex%20%3D%20arr.indexOf(item)%3B%0Aif%20(index%20%3E%3D%200)%20%7B%0Areturn%20this.splice(path%2C%20index%2C%201)%3B%0A%7D%0A%7D%0A%7D%2C%0Atransform%3A%20function(transform%2C%20node)%20%7B%0Anode%20%3D%20node%20%7C%7C%20this%3B%0Anode.style.webkitTransform%20%3D%20transform%3B%0Anode.style.transform%20%3D%20transform%3B%0A%7D%2C%0Atranslate3d%3A%20function(x%2C%20y%2C%20z%2C%20node)%20%7B%0Anode%20%3D%20node%20%7C%7C%20this%3B%0Athis.transform(%22translate3d(%22%20%2B%20x%20%2B%20%22%2C%22%20%2B%20y%20%2B%20%22%2C%22%20%2B%20z%20%2B%20%22)%22%2C%20node)%3B%0A%7D%2C%0AimportHref%3A%20function(href%2C%20onload%2C%20onerror)%20%7B%0Avar%20l%20%3D%20document.createElement(%22link%22)%3B%0Al.rel%20%3D%20%22import%22%3B%0Al.href%20%3D%20href%3B%0Aif%20(onload)%20%7B%0Al.onload%20%3D%20onload.bind(this)%3B%0A%7D%0Aif%20(onerror)%20%7B%0Al.onerror%20%3D%20onerror.bind(this)%3B%0A%7D%0Adocument.head.appendChild(l)%3B%0Areturn%20l%3B%0A%7D%2C%0Acreate%3A%20function(tag%2C%20props)%20%7B%0Avar%20elt%20%3D%20document.createElement(tag)%3B%0Aif%20(props)%20%7B%0Afor%20(var%20n%20in%20props)%20%7B%0Aelt%5Bn%5D%20%3D%20props%5Bn%5D%3B%0A%7D%0A%7D%0Areturn%20elt%3B%0A%7D%2C%0Amixin%3A%20function(target%2C%20source)%20%7B%0Afor%20(var%20i%20in%20source)%20%7B%0Atarget%5Bi%5D%20%3D%20source%5Bi%5D%3B%0A%7D%0A%7D%0A%7D)%3B%0A%0APolymer.Bind%20%3D%20%7B%0AprepareModel%3A%20function(model)%20%7B%0Amodel._propertyEffects%20%3D%20%7B%7D%3B%0Amodel._bindListeners%20%3D%20%5B%5D%3B%0Avar%20api%20%3D%20this._modelApi%3B%0Afor%20(var%20n%20in%20api)%20%7B%0Amodel%5Bn%5D%20%3D%20api%5Bn%5D%3B%0A%7D%0A%7D%2C%0A_modelApi%3A%20%7B%0A_notifyChange%3A%20function(property)%20%7B%0Avar%20eventName%20%3D%20Polymer.CaseMap.camelToDashCase(property)%20%2B%20%22-changed%22%3B%0Athis.fire(eventName%2C%20%7B%0Avalue%3A%20this%5Bproperty%5D%0A%7D%2C%20%7B%0Abubbles%3A%20false%0A%7D)%3B%0A%7D%2C%0A_propertySet%3A%20function(property%2C%20value%2C%20effects)%20%7B%0Avar%20old%20%3D%20this.__data__%5Bproperty%5D%3B%0Aif%20(old%20!%3D%3D%20value)%20%7B%0Athis.__data__%5Bproperty%5D%20%3D%20value%3B%0Aif%20(typeof%20value%20%3D%3D%20%22object%22)%20%7B%0Athis._clearPath(property)%3B%0A%7D%0Aif%20(this._propertyChanged)%20%7B%0Athis._propertyChanged(property%2C%20value%2C%20old)%3B%0A%7D%0Aif%20(effects)%20%7B%0Athis._effectEffects(property%2C%20value%2C%20effects%2C%20old)%3B%0A%7D%0A%7D%0Areturn%20old%3B%0A%7D%2C%0A_effectEffects%3A%20function(property%2C%20value%2C%20effects%2C%20old)%20%7B%0Aeffects.forEach(function(fx)%20%7B%0Avar%20fn%20%3D%20Polymer.Bind%5B%22_%22%20%2B%20fx.kind%20%2B%20%22Effect%22%5D%3B%0Aif%20(fn)%20%7B%0Afn.call(this%2C%20property%2C%20value%2C%20fx.effect%2C%20old)%3B%0A%7D%0A%7D%2C%20this)%3B%0A%7D%2C%0A_clearPath%3A%20function(path)%20%7B%0Afor%20(var%20prop%20in%20this.__data__)%20%7B%0Aif%20(prop.indexOf(path%20%2B%20%22.%22)%20%3D%3D%3D%200)%20%7B%0Athis.__data__%5Bprop%5D%20%3D%20undefined%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0AensurePropertyEffects%3A%20function(model%2C%20property)%20%7B%0Avar%20fx%20%3D%20model._propertyEffects%5Bproperty%5D%3B%0Aif%20(!fx)%20%7B%0Afx%20%3D%20model._propertyEffects%5Bproperty%5D%20%3D%20%5B%5D%3B%0A%7D%0Areturn%20fx%3B%0A%7D%2C%0AaddPropertyEffect%3A%20function(model%2C%20property%2C%20kind%2C%20effect)%20%7B%0Avar%20fx%20%3D%20this.ensurePropertyEffects(model%2C%20property)%3B%0Afx.push(%7B%0Akind%3A%20kind%2C%0Aeffect%3A%20effect%0A%7D)%3B%0A%7D%2C%0AcreateBindings%3A%20function(model)%20%7B%0Avar%20fx%24%20%3D%20model._propertyEffects%3B%0Aif%20(fx%24)%20%7B%0Afor%20(var%20n%20in%20fx%24)%20%7B%0Avar%20fx%20%3D%20fx%24%5Bn%5D%3B%0Afx.sort(this._sortPropertyEffects)%3B%0Athis._createAccessors(model%2C%20n%2C%20fx)%3B%0A%7D%0A%7D%0A%7D%2C%0A_sortPropertyEffects%3A%20function()%20%7B%0Avar%20EFFECT_ORDER%20%3D%20%7B%0Acompute%3A%200%2C%0Aannotation%3A%201%2C%0AcomputedAnnotation%3A%202%2C%0Areflect%3A%203%2C%0Anotify%3A%204%2C%0Aobserver%3A%205%2C%0AcomplexObserver%3A%206%2C%0A%22function%22%3A%207%0A%7D%3B%0Areturn%20function(a%2C%20b)%20%7B%0Areturn%20EFFECT_ORDER%5Ba.kind%5D%20-%20EFFECT_ORDER%5Bb.kind%5D%3B%0A%7D%3B%0A%7D()%2C%0A_createAccessors%3A%20function(model%2C%20property%2C%20effects)%20%7B%0Avar%20defun%20%3D%20%7B%0Aget%3A%20function()%20%7B%0Areturn%20this.__data__%5Bproperty%5D%3B%0A%7D%0A%7D%3B%0Avar%20setter%20%3D%20function(value)%20%7B%0Athis._propertySet(property%2C%20value%2C%20effects)%3B%0A%7D%3B%0Aif%20(model.getPropertyInfo%20%26%26%20model.getPropertyInfo(property).readOnly)%20%7B%0Amodel%5B%22_set%22%20%2B%20this.upper(property)%5D%20%3D%20setter%3B%0A%7D%20else%20%7B%0Adefun.set%20%3D%20setter%3B%0A%7D%0AObject.defineProperty(model%2C%20property%2C%20defun)%3B%0A%7D%2C%0Aupper%3A%20function(name)%20%7B%0Areturn%20name%5B0%5D.toUpperCase()%20%2B%20name.substring(1)%3B%0A%7D%2C%0A_addAnnotatedListener%3A%20function(model%2C%20index%2C%20property%2C%20path%2C%20event)%20%7B%0Avar%20fn%20%3D%20this._notedListenerFactory(property%2C%20path%2C%20this._isStructured(path)%2C%20this._isEventBogus)%3B%0Avar%20eventName%20%3D%20event%20%7C%7C%20Polymer.CaseMap.camelToDashCase(property)%20%2B%20%22-changed%22%3B%0Amodel._bindListeners.push(%7B%0Aindex%3A%20index%2C%0Aproperty%3A%20property%2C%0Apath%3A%20path%2C%0AchangedFn%3A%20fn%2C%0Aevent%3A%20eventName%0A%7D)%3B%0A%7D%2C%0A_isStructured%3A%20function(path)%20%7B%0Areturn%20path.indexOf(%22.%22)%20%3E%200%3B%0A%7D%2C%0A_isEventBogus%3A%20function(e%2C%20target)%20%7B%0Areturn%20e.path%20%26%26%20e.path%5B0%5D%20!%3D%3D%20target%3B%0A%7D%2C%0A_notedListenerFactory%3A%20function(property%2C%20path%2C%20isStructured%2C%20bogusTest)%20%7B%0Areturn%20function(e%2C%20target)%20%7B%0Aif%20(!bogusTest(e%2C%20target))%20%7B%0Aif%20(e.detail%20%26%26%20e.detail.path)%20%7B%0Athis.notifyPath(this._fixPath(path%2C%20property%2C%20e.detail.path)%2C%20e.detail.value)%3B%0A%7D%20else%20%7B%0Avar%20value%20%3D%20target%5Bproperty%5D%3B%0Aif%20(!isStructured)%20%7B%0Athis%5Bpath%5D%20%3D%20target%5Bproperty%5D%3B%0A%7D%20else%20%7B%0Aif%20(this.__data__%5Bpath%5D%20!%3D%20value)%20%7B%0Athis.set(path%2C%20value)%3B%0A%7D%0A%7D%0A%7D%0A%7D%0A%7D%3B%0A%7D%2C%0AprepareInstance%3A%20function(inst)%20%7B%0Ainst.__data__%20%3D%20Object.create(null)%3B%0A%7D%2C%0AsetupBindListeners%3A%20function(inst)%20%7B%0Ainst._bindListeners.forEach(function(info)%20%7B%0Avar%20node%20%3D%20inst._nodes%5Binfo.index%5D%3B%0Anode.addEventListener(info.event%2C%20inst._notifyListener.bind(inst%2C%20info.changedFn))%3B%0A%7D)%3B%0A%7D%0A%7D%3B%0A%0APolymer.Base.extend(Polymer.Bind%2C%20%7B%0A_shouldAddListener%3A%20function(effect)%20%7B%0Areturn%20effect.name%20%26%26%20effect.mode%20%3D%3D%3D%20%22%7B%22%20%26%26%20!effect.negate%20%26%26%20effect.kind%20!%3D%20%22attribute%22%3B%0A%7D%2C%0A_annotationEffect%3A%20function(source%2C%20value%2C%20effect)%20%7B%0Aif%20(source%20!%3D%20effect.value)%20%7B%0Avalue%20%3D%20this.get(effect.value)%3B%0Athis.__data__%5Beffect.value%5D%20%3D%20value%3B%0A%7D%0Avar%20calc%20%3D%20effect.negate%20%3F%20!value%20%3A%20value%3B%0Aif%20(!effect.customEvent%20%7C%7C%20this._nodes%5Beffect.index%5D%5Beffect.name%5D%20!%3D%3D%20calc)%20%7B%0Areturn%20this._applyEffectValue(calc%2C%20effect)%3B%0A%7D%0A%7D%2C%0A_reflectEffect%3A%20function(source)%20%7B%0Athis.reflectPropertyToAttribute(source)%3B%0A%7D%2C%0A_notifyEffect%3A%20function(source)%20%7B%0Athis._notifyChange(source)%3B%0A%7D%2C%0A_functionEffect%3A%20function(source%2C%20value%2C%20fn%2C%20old)%20%7B%0Afn.call(this%2C%20source%2C%20value%2C%20old)%3B%0A%7D%2C%0A_observerEffect%3A%20function(source%2C%20value%2C%20effect%2C%20old)%20%7B%0Avar%20fn%20%3D%20this%5Beffect.method%5D%3B%0Aif%20(fn)%20%7B%0Afn.call(this%2C%20value%2C%20old)%3B%0A%7D%20else%20%7B%0Athis._warn(this._logf(%22_observerEffect%22%2C%20%22observer%20method%20%60%22%20%2B%20effect.method%20%2B%20%22%60%20not%20defined%22))%3B%0A%7D%0A%7D%2C%0A_complexObserverEffect%3A%20function(source%2C%20value%2C%20effect)%20%7B%0Avar%20fn%20%3D%20this%5Beffect.method%5D%3B%0Aif%20(fn)%20%7B%0Avar%20args%20%3D%20Polymer.Bind._marshalArgs(this.__data__%2C%20effect%2C%20source%2C%20value)%3B%0Aif%20(args)%20%7B%0Afn.apply(this%2C%20args)%3B%0A%7D%0A%7D%20else%20%7B%0Athis._warn(this._logf(%22_complexObserverEffect%22%2C%20%22observer%20method%20%60%22%20%2B%20effect.method%20%2B%20%22%60%20not%20defined%22))%3B%0A%7D%0A%7D%2C%0A_computeEffect%3A%20function(source%2C%20value%2C%20effect)%20%7B%0Avar%20args%20%3D%20Polymer.Bind._marshalArgs(this.__data__%2C%20effect%2C%20source%2C%20value)%3B%0Aif%20(args)%20%7B%0Avar%20fn%20%3D%20this%5Beffect.method%5D%3B%0Aif%20(fn)%20%7B%0Athis%5Beffect.property%5D%20%3D%20fn.apply(this%2C%20args)%3B%0A%7D%20else%20%7B%0Athis._warn(this._logf(%22_computeEffect%22%2C%20%22compute%20method%20%60%22%20%2B%20effect.method%20%2B%20%22%60%20not%20defined%22))%3B%0A%7D%0A%7D%0A%7D%2C%0A_annotatedComputationEffect%3A%20function(source%2C%20value%2C%20effect)%20%7B%0Avar%20computedHost%20%3D%20this._rootDataHost%20%7C%7C%20this%3B%0Avar%20fn%20%3D%20computedHost%5Beffect.method%5D%3B%0Aif%20(fn)%20%7B%0Avar%20args%20%3D%20Polymer.Bind._marshalArgs(this.__data__%2C%20effect%2C%20source%2C%20value)%3B%0Aif%20(args)%20%7B%0Avar%20computedvalue%20%3D%20fn.apply(computedHost%2C%20args)%3B%0Aif%20(effect.negate)%20%7B%0Acomputedvalue%20%3D%20!computedvalue%3B%0A%7D%0Athis._applyEffectValue(computedvalue%2C%20effect)%3B%0A%7D%0A%7D%20else%20%7B%0AcomputedHost._warn(computedHost._logf(%22_annotatedComputationEffect%22%2C%20%22compute%20method%20%60%22%20%2B%20effect.method%20%2B%20%22%60%20not%20defined%22))%3B%0A%7D%0A%7D%2C%0A_marshalArgs%3A%20function(model%2C%20effect%2C%20path%2C%20value)%20%7B%0Avar%20values%20%3D%20%5B%5D%3B%0Avar%20args%20%3D%20effect.args%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20args.length%3B%20i%20%3C%20l%3B%20i%2B%2B)%20%7B%0Avar%20arg%20%3D%20args%5Bi%5D%3B%0Avar%20name%20%3D%20arg.name%3B%0Aif%20(arg.literal)%20%7B%0Av%20%3D%20arg.value%3B%0A%7D%20else%20if%20(arg.structured)%20%7B%0Av%20%3D%20Polymer.Base.get(name%2C%20model)%3B%0A%7D%20else%20%7B%0Av%20%3D%20model%5Bname%5D%3B%0A%7D%0Aif%20(args.length%20%3E%201%20%26%26%20v%20%3D%3D%3D%20undefined)%20%7B%0Areturn%3B%0A%7D%0Aif%20(arg.wildcard)%20%7B%0Avar%20baseChanged%20%3D%20name.indexOf(path%20%2B%20%22.%22)%20%3D%3D%3D%200%3B%0Avar%20matches%20%3D%20effect.trigger.name.indexOf(name)%20%3D%3D%3D%200%20%26%26%20!baseChanged%3B%0Avalues%5Bi%5D%20%3D%20%7B%0Apath%3A%20matches%20%3F%20path%20%3A%20name%2C%0Avalue%3A%20matches%20%3F%20value%20%3A%20v%2C%0Abase%3A%20v%0A%7D%3B%0A%7D%20else%20%7B%0Avalues%5Bi%5D%20%3D%20v%3B%0A%7D%0A%7D%0Areturn%20values%3B%0A%7D%0A%7D)%3B%0A%0APolymer.Base._addFeature(%7B%0A_addPropertyEffect%3A%20function(property%2C%20kind%2C%20effect)%20%7B%0APolymer.Bind.addPropertyEffect(this%2C%20property%2C%20kind%2C%20effect)%3B%0A%7D%2C%0A_prepEffects%3A%20function()%20%7B%0APolymer.Bind.prepareModel(this)%3B%0Athis._addAnnotationEffects(this._notes)%3B%0A%7D%2C%0A_prepBindings%3A%20function()%20%7B%0APolymer.Bind.createBindings(this)%3B%0A%7D%2C%0A_addPropertyEffects%3A%20function(properties)%20%7B%0Aif%20(properties)%20%7B%0Afor%20(var%20p%20in%20properties)%20%7B%0Avar%20prop%20%3D%20properties%5Bp%5D%3B%0Aif%20(prop.observer)%20%7B%0Athis._addObserverEffect(p%2C%20prop.observer)%3B%0A%7D%0Aif%20(prop.computed)%20%7B%0Athis._addComputedEffect(p%2C%20prop.computed)%3B%0A%7D%0Aif%20(prop.notify)%20%7B%0Athis._addPropertyEffect(p%2C%20%22notify%22)%3B%0A%7D%0Aif%20(prop.reflectToAttribute)%20%7B%0Athis._addPropertyEffect(p%2C%20%22reflect%22)%3B%0A%7D%0Aif%20(prop.readOnly)%20%7B%0APolymer.Bind.ensurePropertyEffects(this%2C%20p)%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0A_addComputedEffect%3A%20function(name%2C%20expression)%20%7B%0Avar%20sig%20%3D%20this._parseMethod(expression)%3B%0Asig.args.forEach(function(arg)%20%7B%0Athis._addPropertyEffect(arg.model%2C%20%22compute%22%2C%20%7B%0Amethod%3A%20sig.method%2C%0Aargs%3A%20sig.args%2C%0Atrigger%3A%20arg%2C%0Aproperty%3A%20name%0A%7D)%3B%0A%7D%2C%20this)%3B%0A%7D%2C%0A_addObserverEffect%3A%20function(property%2C%20observer)%20%7B%0Athis._addPropertyEffect(property%2C%20%22observer%22%2C%20%7B%0Amethod%3A%20observer%2C%0Aproperty%3A%20property%0A%7D)%3B%0A%7D%2C%0A_addComplexObserverEffects%3A%20function(observers)%20%7B%0Aif%20(observers)%20%7B%0Aobservers.forEach(function(observer)%20%7B%0Athis._addComplexObserverEffect(observer)%3B%0A%7D%2C%20this)%3B%0A%7D%0A%7D%2C%0A_addComplexObserverEffect%3A%20function(observer)%20%7B%0Avar%20sig%20%3D%20this._parseMethod(observer)%3B%0Asig.args.forEach(function(arg)%20%7B%0Athis._addPropertyEffect(arg.model%2C%20%22complexObserver%22%2C%20%7B%0Amethod%3A%20sig.method%2C%0Aargs%3A%20sig.args%2C%0Atrigger%3A%20arg%0A%7D)%3B%0A%7D%2C%20this)%3B%0A%7D%2C%0A_addAnnotationEffects%3A%20function(notes)%20%7B%0Athis._nodes%20%3D%20%5B%5D%3B%0Anotes.forEach(function(note)%20%7B%0Avar%20index%20%3D%20this._nodes.push(note)%20-%201%3B%0Anote.bindings.forEach(function(binding)%20%7B%0Athis._addAnnotationEffect(binding%2C%20index)%3B%0A%7D%2C%20this)%3B%0A%7D%2C%20this)%3B%0A%7D%2C%0A_addAnnotationEffect%3A%20function(note%2C%20index)%20%7B%0Aif%20(Polymer.Bind._shouldAddListener(note))%20%7B%0APolymer.Bind._addAnnotatedListener(this%2C%20index%2C%20note.name%2C%20note.value%2C%20note.event)%3B%0A%7D%0Aif%20(note.signature)%20%7B%0Athis._addAnnotatedComputationEffect(note%2C%20index)%3B%0A%7D%20else%20%7B%0Anote.index%20%3D%20index%3B%0Athis._addPropertyEffect(note.model%2C%20%22annotation%22%2C%20note)%3B%0A%7D%0A%7D%2C%0A_addAnnotatedComputationEffect%3A%20function(note%2C%20index)%20%7B%0Avar%20sig%20%3D%20note.signature%3B%0Aif%20(sig.static)%20%7B%0Athis.__addAnnotatedComputationEffect(%22__static__%22%2C%20index%2C%20note%2C%20sig%2C%20null)%3B%0A%7D%20else%20%7B%0Asig.args.forEach(function(arg)%20%7B%0Aif%20(!arg.literal)%20%7B%0Athis.__addAnnotatedComputationEffect(arg.model%2C%20index%2C%20note%2C%20sig%2C%20arg)%3B%0A%7D%0A%7D%2C%20this)%3B%0A%7D%0A%7D%2C%0A__addAnnotatedComputationEffect%3A%20function(property%2C%20index%2C%20note%2C%20sig%2C%20trigger)%20%7B%0Athis._addPropertyEffect(property%2C%20%22annotatedComputation%22%2C%20%7B%0Aindex%3A%20index%2C%0Akind%3A%20note.kind%2C%0Aproperty%3A%20note.name%2C%0Anegate%3A%20note.negate%2C%0Amethod%3A%20sig.method%2C%0Aargs%3A%20sig.args%2C%0Atrigger%3A%20trigger%0A%7D)%3B%0A%7D%2C%0A_parseMethod%3A%20function(expression)%20%7B%0Avar%20m%20%3D%20expression.match(%2F(%5Cw*)%5C((.*)%5C)%2F)%3B%0Aif%20(m)%20%7B%0Avar%20sig%20%3D%20%7B%0Amethod%3A%20m%5B1%5D%2C%0A%22static%22%3A%20true%0A%7D%3B%0Aif%20(m%5B2%5D.trim())%20%7B%0Avar%20args%20%3D%20m%5B2%5D.replace(%2F%5C%5C%2C%2Fg%2C%20%22%26comma%3B%22).split(%22%2C%22)%3B%0Areturn%20this._parseArgs(args%2C%20sig)%3B%0A%7D%20else%20%7B%0Asig.args%20%3D%20Polymer.nar%3B%0Areturn%20sig%3B%0A%7D%0A%7D%0A%7D%2C%0A_parseArgs%3A%20function(argList%2C%20sig)%20%7B%0Asig.args%20%3D%20argList.map(function(rawArg)%20%7B%0Avar%20arg%20%3D%20this._parseArg(rawArg)%3B%0Aif%20(!arg.literal)%20%7B%0Asig.static%20%3D%20false%3B%0A%7D%0Areturn%20arg%3B%0A%7D%2C%20this)%3B%0Areturn%20sig%3B%0A%7D%2C%0A_parseArg%3A%20function(rawArg)%20%7B%0Avar%20arg%20%3D%20rawArg.trim().replace(%2F%26comma%3B%2Fg%2C%20%22%2C%22).replace(%2F%5C%5C(.)%2Fg%2C%20%22%241%22)%3B%0Avar%20a%20%3D%20%7B%0Aname%3A%20arg%2C%0Amodel%3A%20this._modelForPath(arg)%0A%7D%3B%0Avar%20fc%20%3D%20arg%5B0%5D%3B%0Aif%20(fc%20%3E%3D%20%220%22%20%26%26%20fc%20%3C%3D%20%229%22)%20%7B%0Afc%20%3D%20%22%23%22%3B%0A%7D%0Aswitch%20(fc)%20%7B%0Acase%20%22'%22%3A%0Acase%20'%22'%3A%0Aa.value%20%3D%20arg.slice(1%2C%20-1)%3B%0Aa.literal%20%3D%20true%3B%0Abreak%3B%0A%0Acase%20%22%23%22%3A%0Aa.value%20%3D%20Number(arg)%3B%0Aa.literal%20%3D%20true%3B%0Abreak%3B%0A%7D%0Aif%20(!a.literal)%20%7B%0Aa.structured%20%3D%20arg.indexOf(%22.%22)%20%3E%200%3B%0Aif%20(a.structured)%20%7B%0Aa.wildcard%20%3D%20arg.slice(-2)%20%3D%3D%20%22.*%22%3B%0Aif%20(a.wildcard)%20%7B%0Aa.name%20%3D%20arg.slice(0%2C%20-2)%3B%0A%7D%0A%7D%0A%7D%0Areturn%20a%3B%0A%7D%2C%0A_marshalInstanceEffects%3A%20function()%20%7B%0APolymer.Bind.prepareInstance(this)%3B%0APolymer.Bind.setupBindListeners(this)%3B%0A%7D%2C%0A_applyEffectValue%3A%20function(value%2C%20info)%20%7B%0Avar%20node%20%3D%20this._nodes%5Binfo.index%5D%3B%0Avar%20property%20%3D%20info.property%20%7C%7C%20info.name%20%7C%7C%20%22textContent%22%3B%0Aif%20(info.kind%20%3D%3D%20%22attribute%22)%20%7B%0Athis.serializeValueToAttribute(value%2C%20property%2C%20node)%3B%0A%7D%20else%20%7B%0Aif%20(property%20%3D%3D%3D%20%22className%22)%20%7B%0Avalue%20%3D%20this._scopeElementClass(node%2C%20value)%3B%0A%7D%0Aif%20(property%20%3D%3D%3D%20%22textContent%22%20%7C%7C%20node.localName%20%3D%3D%20%22input%22%20%26%26%20property%20%3D%3D%20%22value%22)%20%7B%0Avalue%20%3D%20value%20%3D%3D%20undefined%20%3F%20%22%22%20%3A%20value%3B%0A%7D%0Areturn%20node%5Bproperty%5D%20%3D%20value%3B%0A%7D%0A%7D%2C%0A_executeStaticEffects%3A%20function()%20%7B%0Aif%20(this._propertyEffects.__static__)%20%7B%0Athis._effectEffects(%22__static__%22%2C%20null%2C%20this._propertyEffects.__static__)%3B%0A%7D%0A%7D%0A%7D)%3B%0A%0APolymer.Base._addFeature(%7B%0A_setupConfigure%3A%20function(initialConfig)%20%7B%0Athis._config%20%3D%20initialConfig%20%7C%7C%20%7B%7D%3B%0Athis._handlers%20%3D%20%5B%5D%3B%0A%7D%2C%0A_marshalAttributes%3A%20function()%20%7B%0Athis._takeAttributesToModel(this._config)%3B%0A%7D%2C%0A_configValue%3A%20function(name%2C%20value)%20%7B%0Athis._config%5Bname%5D%20%3D%20value%3B%0A%7D%2C%0A_beforeClientsReady%3A%20function()%20%7B%0Athis._configure()%3B%0A%7D%2C%0A_configure%3A%20function()%20%7B%0Athis._configureAnnotationReferences()%3B%0Avar%20config%20%3D%20%7B%7D%3B%0Athis.behaviors.forEach(function(b)%20%7B%0Athis._configureProperties(b.properties%2C%20config)%3B%0A%7D%2C%20this)%3B%0Athis._configureProperties(this.properties%2C%20config)%3B%0Athis._mixinConfigure(config%2C%20this._config)%3B%0Athis._config%20%3D%20config%3B%0Athis._distributeConfig(this._config)%3B%0A%7D%2C%0A_configureProperties%3A%20function(properties%2C%20config)%20%7B%0Afor%20(var%20i%20in%20properties)%20%7B%0Avar%20c%20%3D%20properties%5Bi%5D%3B%0Aif%20(c.value%20!%3D%3D%20undefined)%20%7B%0Avar%20value%20%3D%20c.value%3B%0Aif%20(typeof%20value%20%3D%3D%20%22function%22)%20%7B%0Avalue%20%3D%20value.call(this%2C%20this._config)%3B%0A%7D%0Aconfig%5Bi%5D%20%3D%20value%3B%0A%7D%0A%7D%0A%7D%2C%0A_mixinConfigure%3A%20function(a%2C%20b)%20%7B%0Afor%20(var%20prop%20in%20b)%20%7B%0Aif%20(!this.getPropertyInfo(prop).readOnly)%20%7B%0Aa%5Bprop%5D%20%3D%20b%5Bprop%5D%3B%0A%7D%0A%7D%0A%7D%2C%0A_distributeConfig%3A%20function(config)%20%7B%0Avar%20fx%24%20%3D%20this._propertyEffects%3B%0Aif%20(fx%24)%20%7B%0Afor%20(var%20p%20in%20config)%20%7B%0Avar%20fx%20%3D%20fx%24%5Bp%5D%3B%0Aif%20(fx)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20fx.length%2C%20x%3B%20i%20%3C%20l%20%26%26%20(x%20%3D%20fx%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Aif%20(x.kind%20%3D%3D%3D%20%22annotation%22)%20%7B%0Avar%20node%20%3D%20this._nodes%5Bx.effect.index%5D%3B%0Aif%20(node._configValue)%20%7B%0Avar%20value%20%3D%20p%20%3D%3D%3D%20x.effect.value%20%3F%20config%5Bp%5D%20%3A%20this.get(x.effect.value%2C%20config)%3B%0Anode._configValue(x.effect.name%2C%20value)%3B%0A%7D%0A%7D%0A%7D%0A%7D%0A%7D%0A%7D%0A%7D%2C%0A_afterClientsReady%3A%20function()%20%7B%0Athis._executeStaticEffects()%3B%0Athis._applyConfig(this._config)%3B%0Athis._flushHandlers()%3B%0A%7D%2C%0A_applyConfig%3A%20function(config)%20%7B%0Afor%20(var%20n%20in%20config)%20%7B%0Aif%20(this%5Bn%5D%20%3D%3D%3D%20undefined)%20%7B%0Avar%20effects%20%3D%20this._propertyEffects%5Bn%5D%3B%0Aif%20(effects)%20%7B%0Athis._propertySet(n%2C%20config%5Bn%5D%2C%20effects)%3B%0A%7D%20else%20%7B%0Athis%5Bn%5D%20%3D%20config%5Bn%5D%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0A_notifyListener%3A%20function(fn%2C%20e)%20%7B%0Aif%20(!this._clientsReadied)%20%7B%0Athis._queueHandler(%5B%20fn%2C%20e%2C%20e.target%20%5D)%3B%0A%7D%20else%20%7B%0Areturn%20fn.call(this%2C%20e%2C%20e.target)%3B%0A%7D%0A%7D%2C%0A_queueHandler%3A%20function(args)%20%7B%0Athis._handlers.push(args)%3B%0A%7D%2C%0A_flushHandlers%3A%20function()%20%7B%0Avar%20h%24%20%3D%20this._handlers%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20h%24.length%2C%20h%3B%20i%20%3C%20l%20%26%26%20(h%20%3D%20h%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Ah%5B0%5D.call(this%2C%20h%5B1%5D%2C%20h%5B2%5D)%3B%0A%7D%0A%7D%0A%7D)%3B%0A%0A(function()%20%7B%0A%22use%20strict%22%3B%0APolymer.Base._addFeature(%7B%0AnotifyPath%3A%20function(path%2C%20value%2C%20fromAbove)%20%7B%0Avar%20old%20%3D%20this._propertySet(path%2C%20value)%3B%0Aif%20(old%20!%3D%3D%20value)%20%7B%0Athis._pathEffector(path%2C%20value)%3B%0Aif%20(!fromAbove)%20%7B%0Athis._notifyPath(path%2C%20value)%3B%0A%7D%0A%7D%0A%7D%2C%0A_getPathParts%3A%20function(path)%20%7B%0Aif%20(Array.isArray(path))%20%7B%0Avar%20parts%20%3D%20%5B%5D%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20path.length%3B%20i%2B%2B)%20%7B%0Avar%20args%20%3D%20path%5Bi%5D.toString().split(%22.%22)%3B%0Afor%20(var%20j%20%3D%200%3B%20j%20%3C%20args.length%3B%20j%2B%2B)%20%7B%0Aparts.push(args%5Bj%5D)%3B%0A%7D%0A%7D%0Areturn%20parts%3B%0A%7D%20else%20%7B%0Areturn%20path.toString().split(%22.%22)%3B%0A%7D%0A%7D%2C%0Aset%3A%20function(path%2C%20value%2C%20root)%20%7B%0Avar%20prop%20%3D%20root%20%7C%7C%20this%3B%0Avar%20parts%20%3D%20this._getPathParts(path)%3B%0Avar%20array%3B%0Avar%20last%20%3D%20parts%5Bparts.length%20-%201%5D%3B%0Aif%20(parts.length%20%3E%201)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20parts.length%20-%201%3B%20i%2B%2B)%20%7B%0Aprop%20%3D%20prop%5Bparts%5Bi%5D%5D%3B%0Aif%20(array)%20%7B%0Aparts%5Bi%5D%20%3D%20Polymer.Collection.get(array).getKey(prop)%3B%0A%7D%0Aif%20(!prop)%20%7B%0Areturn%3B%0A%7D%0Aarray%20%3D%20Array.isArray(prop)%20%3F%20prop%20%3A%20null%3B%0A%7D%0Aprop%5Blast%5D%20%3D%20value%3B%0Aif%20(!root)%20%7B%0Athis.notifyPath(parts.join(%22.%22)%2C%20value)%3B%0A%7D%0A%7D%20else%20%7B%0Aprop%5Bpath%5D%20%3D%20value%3B%0A%7D%0A%7D%2C%0Aget%3A%20function(path%2C%20root)%20%7B%0Avar%20prop%20%3D%20root%20%7C%7C%20this%3B%0Avar%20parts%20%3D%20this._getPathParts(path)%3B%0Avar%20last%20%3D%20parts.pop()%3B%0Awhile%20(parts.length)%20%7B%0Aprop%20%3D%20prop%5Bparts.shift()%5D%3B%0Aif%20(!prop)%20%7B%0Areturn%3B%0A%7D%0A%7D%0Areturn%20prop%5Blast%5D%3B%0A%7D%2C%0A_pathEffector%3A%20function(path%2C%20value)%20%7B%0Avar%20model%20%3D%20this._modelForPath(path)%3B%0Avar%20fx%24%20%3D%20this._propertyEffects%5Bmodel%5D%3B%0Aif%20(fx%24)%20%7B%0Afx%24.forEach(function(fx)%20%7B%0Avar%20fxFn%20%3D%20this%5B%22_%22%20%2B%20fx.kind%20%2B%20%22PathEffect%22%5D%3B%0Aif%20(fxFn)%20%7B%0AfxFn.call(this%2C%20path%2C%20value%2C%20fx.effect)%3B%0A%7D%0A%7D%2C%20this)%3B%0A%7D%0Aif%20(this._boundPaths)%20%7B%0Athis._notifyBoundPaths(path%2C%20value)%3B%0A%7D%0A%7D%2C%0A_annotationPathEffect%3A%20function(path%2C%20value%2C%20effect)%20%7B%0Aif%20(effect.value%20%3D%3D%3D%20path%20%7C%7C%20effect.value.indexOf(path%20%2B%20%22.%22)%20%3D%3D%3D%200)%20%7B%0APolymer.Bind._annotationEffect.call(this%2C%20path%2C%20value%2C%20effect)%3B%0A%7D%20else%20if%20(path.indexOf(effect.value%20%2B%20%22.%22)%20%3D%3D%3D%200%20%26%26%20!effect.negate)%20%7B%0Avar%20node%20%3D%20this._nodes%5Beffect.index%5D%3B%0Aif%20(node%20%26%26%20node.notifyPath)%20%7B%0Avar%20p%20%3D%20this._fixPath(effect.name%2C%20effect.value%2C%20path)%3B%0Anode.notifyPath(p%2C%20value%2C%20true)%3B%0A%7D%0A%7D%0A%7D%2C%0A_complexObserverPathEffect%3A%20function(path%2C%20value%2C%20effect)%20%7B%0Aif%20(this._pathMatchesEffect(path%2C%20effect))%20%7B%0APolymer.Bind._complexObserverEffect.call(this%2C%20path%2C%20value%2C%20effect)%3B%0A%7D%0A%7D%2C%0A_computePathEffect%3A%20function(path%2C%20value%2C%20effect)%20%7B%0Aif%20(this._pathMatchesEffect(path%2C%20effect))%20%7B%0APolymer.Bind._computeEffect.call(this%2C%20path%2C%20value%2C%20effect)%3B%0A%7D%0A%7D%2C%0A_annotatedComputationPathEffect%3A%20function(path%2C%20value%2C%20effect)%20%7B%0Aif%20(this._pathMatchesEffect(path%2C%20effect))%20%7B%0APolymer.Bind._annotatedComputationEffect.call(this%2C%20path%2C%20value%2C%20effect)%3B%0A%7D%0A%7D%2C%0A_pathMatchesEffect%3A%20function(path%2C%20effect)%20%7B%0Avar%20effectArg%20%3D%20effect.trigger.name%3B%0Areturn%20effectArg%20%3D%3D%20path%20%7C%7C%20effectArg.indexOf(path%20%2B%20%22.%22)%20%3D%3D%3D%200%20%7C%7C%20effect.trigger.wildcard%20%26%26%20path.indexOf(effectArg)%20%3D%3D%3D%200%3B%0A%7D%2C%0AlinkPaths%3A%20function(to%2C%20from)%20%7B%0Athis._boundPaths%20%3D%20this._boundPaths%20%7C%7C%20%7B%7D%3B%0Aif%20(from)%20%7B%0Athis._boundPaths%5Bto%5D%20%3D%20from%3B%0A%7D%20else%20%7B%0Athis.unbindPath(to)%3B%0A%7D%0A%7D%2C%0AunlinkPaths%3A%20function(path)%20%7B%0Aif%20(this._boundPaths)%20%7B%0Adelete%20this._boundPaths%5Bpath%5D%3B%0A%7D%0A%7D%2C%0A_notifyBoundPaths%3A%20function(path%2C%20value)%20%7B%0Avar%20from%2C%20to%3B%0Afor%20(var%20a%20in%20this._boundPaths)%20%7B%0Avar%20b%20%3D%20this._boundPaths%5Ba%5D%3B%0Aif%20(path.indexOf(a%20%2B%20%22.%22)%20%3D%3D%200)%20%7B%0Afrom%20%3D%20a%3B%0Ato%20%3D%20b%3B%0Abreak%3B%0A%7D%0Aif%20(path.indexOf(b%20%2B%20%22.%22)%20%3D%3D%200)%20%7B%0Afrom%20%3D%20b%3B%0Ato%20%3D%20a%3B%0Abreak%3B%0A%7D%0A%7D%0Aif%20(from%20%26%26%20to)%20%7B%0Avar%20p%20%3D%20this._fixPath(to%2C%20from%2C%20path)%3B%0Athis.notifyPath(p%2C%20value)%3B%0A%7D%0A%7D%2C%0A_fixPath%3A%20function(property%2C%20root%2C%20path)%20%7B%0Areturn%20property%20%2B%20path.slice(root.length)%3B%0A%7D%2C%0A_notifyPath%3A%20function(path%2C%20value)%20%7B%0Avar%20rootName%20%3D%20this._modelForPath(path)%3B%0Avar%20dashCaseName%20%3D%20Polymer.CaseMap.camelToDashCase(rootName)%3B%0Avar%20eventName%20%3D%20dashCaseName%20%2B%20this._EVENT_CHANGED%3B%0Athis.fire(eventName%2C%20%7B%0Apath%3A%20path%2C%0Avalue%3A%20value%0A%7D%2C%20%7B%0Abubbles%3A%20false%0A%7D)%3B%0A%7D%2C%0A_modelForPath%3A%20function(path)%20%7B%0Avar%20dot%20%3D%20path.indexOf(%22.%22)%3B%0Areturn%20dot%20%3C%200%20%3F%20path%20%3A%20path.slice(0%2C%20dot)%3B%0A%7D%2C%0A_EVENT_CHANGED%3A%20%22-changed%22%2C%0A_notifySplice%3A%20function(array%2C%20path%2C%20index%2C%20added%2C%20removed)%20%7B%0Avar%20splices%20%3D%20%5B%20%7B%0Aindex%3A%20index%2C%0AaddedCount%3A%20added%2C%0Aremoved%3A%20removed%2C%0Aobject%3A%20array%2C%0Atype%3A%20%22splice%22%0A%7D%20%5D%3B%0Avar%20change%20%3D%20%7B%0AkeySplices%3A%20Polymer.Collection.get(array).applySplices(splices)%2C%0AindexSplices%3A%20splices%0A%7D%3B%0Athis.set(path%20%2B%20%22.splices%22%2C%20change)%3B%0Aif%20(added%20!%3D%20removed.length)%20%7B%0Athis.notifyPath(path%20%2B%20%22.length%22%2C%20array.length)%3B%0A%7D%0Achange.keySplices%20%3D%20null%3B%0Achange.indexSplices%20%3D%20null%3B%0A%7D%2C%0Apush%3A%20function(path)%20%7B%0Avar%20array%20%3D%20this.get(path)%3B%0Avar%20args%20%3D%20Array.prototype.slice.call(arguments%2C%201)%3B%0Avar%20len%20%3D%20array.length%3B%0Avar%20ret%20%3D%20array.push.apply(array%2C%20args)%3B%0Athis._notifySplice(array%2C%20path%2C%20len%2C%20args.length%2C%20%5B%5D)%3B%0Areturn%20ret%3B%0A%7D%2C%0Apop%3A%20function(path)%20%7B%0Avar%20array%20%3D%20this.get(path)%3B%0Avar%20args%20%3D%20Array.prototype.slice.call(arguments%2C%201)%3B%0Avar%20rem%20%3D%20array.slice(-1)%3B%0Avar%20ret%20%3D%20array.pop.apply(array%2C%20args)%3B%0Athis._notifySplice(array%2C%20path%2C%20array.length%2C%200%2C%20rem)%3B%0Areturn%20ret%3B%0A%7D%2C%0Asplice%3A%20function(path%2C%20start%2C%20deleteCount)%20%7B%0Avar%20array%20%3D%20this.get(path)%3B%0Avar%20args%20%3D%20Array.prototype.slice.call(arguments%2C%201)%3B%0Avar%20rem%20%3D%20array.slice(start%2C%20start%20%2B%20deleteCount)%3B%0Avar%20ret%20%3D%20array.splice.apply(array%2C%20args)%3B%0Athis._notifySplice(array%2C%20path%2C%20start%2C%20args.length%20-%202%2C%20rem)%3B%0Areturn%20ret%3B%0A%7D%2C%0Ashift%3A%20function(path)%20%7B%0Avar%20array%20%3D%20this.get(path)%3B%0Avar%20args%20%3D%20Array.prototype.slice.call(arguments%2C%201)%3B%0Avar%20ret%20%3D%20array.shift.apply(array%2C%20args)%3B%0Athis._notifySplice(array%2C%20path%2C%200%2C%200%2C%20%5B%20ret%20%5D)%3B%0Areturn%20ret%3B%0A%7D%2C%0Aunshift%3A%20function(path)%20%7B%0Avar%20array%20%3D%20this.get(path)%3B%0Avar%20args%20%3D%20Array.prototype.slice.call(arguments%2C%201)%3B%0Avar%20ret%20%3D%20array.unshift.apply(array%2C%20args)%3B%0Athis._notifySplice(array%2C%20path%2C%200%2C%20args.length%2C%20%5B%5D)%3B%0Areturn%20ret%3B%0A%7D%0A%7D)%3B%0A%7D)()%3B%0A%0APolymer.Base._addFeature(%7B%0AresolveUrl%3A%20function(url)%20%7B%0Avar%20module%20%3D%20Polymer.DomModule.import(this.is)%3B%0Avar%20root%20%3D%20%22%22%3B%0Aif%20(module)%20%7B%0Avar%20assetPath%20%3D%20module.getAttribute(%22assetpath%22)%20%7C%7C%20%22%22%3B%0Aroot%20%3D%20Polymer.ResolveUrl.resolveUrl(assetPath%2C%20module.ownerDocument.baseURI)%3B%0A%7D%0Areturn%20Polymer.ResolveUrl.resolveUrl(url%2C%20root)%3B%0A%7D%0A%7D)%3B%0A%0APolymer.CssParse%20%3D%20function()%20%7B%0Avar%20api%20%3D%20%7B%0Aparse%3A%20function(text)%20%7B%0Atext%20%3D%20this._clean(text)%3B%0Areturn%20this._parseCss(this._lex(text)%2C%20text)%3B%0A%7D%2C%0A_clean%3A%20function(cssText)%20%7B%0Areturn%20cssText.replace(rx.comments%2C%20%22%22).replace(rx.port%2C%20%22%22)%3B%0A%7D%2C%0A_lex%3A%20function(text)%20%7B%0Avar%20root%20%3D%20%7B%0Astart%3A%200%2C%0Aend%3A%20text.length%0A%7D%3B%0Avar%20n%20%3D%20root%3B%0Afor%20(var%20i%20%3D%200%2C%20s%20%3D%200%2C%20l%20%3D%20text.length%3B%20i%20%3C%20l%3B%20i%2B%2B)%20%7B%0Aswitch%20(text%5Bi%5D)%20%7B%0Acase%20this.OPEN_BRACE%3A%0Aif%20(!n.rules)%20%7B%0An.rules%20%3D%20%5B%5D%3B%0A%7D%0Avar%20p%20%3D%20n%3B%0Avar%20previous%20%3D%20p.rules%5Bp.rules.length%20-%201%5D%3B%0An%20%3D%20%7B%0Astart%3A%20i%20%2B%201%2C%0Aparent%3A%20p%2C%0Aprevious%3A%20previous%0A%7D%3B%0Ap.rules.push(n)%3B%0Abreak%3B%0A%0Acase%20this.CLOSE_BRACE%3A%0An.end%20%3D%20i%20%2B%201%3B%0An%20%3D%20n.parent%20%7C%7C%20root%3B%0Abreak%3B%0A%7D%0A%7D%0Areturn%20root%3B%0A%7D%2C%0A_parseCss%3A%20function(node%2C%20text)%20%7B%0Avar%20t%20%3D%20text.substring(node.start%2C%20node.end%20-%201)%3B%0Anode.parsedCssText%20%3D%20node.cssText%20%3D%20t.trim()%3B%0Aif%20(node.parent)%20%7B%0Avar%20ss%20%3D%20node.previous%20%3F%20node.previous.end%20%3A%20node.parent.start%3B%0At%20%3D%20text.substring(ss%2C%20node.start%20-%201)%3B%0At%20%3D%20t.substring(t.lastIndexOf(%22%3B%22)%20%2B%201)%3B%0Avar%20s%20%3D%20node.parsedSelector%20%3D%20node.selector%20%3D%20t.trim()%3B%0Anode.atRule%20%3D%20s.indexOf(AT_START)%20%3D%3D%3D%200%3B%0Aif%20(node.atRule)%20%7B%0Aif%20(s.indexOf(MEDIA_START)%20%3D%3D%3D%200)%20%7B%0Anode.type%20%3D%20this.types.MEDIA_RULE%3B%0A%7D%20else%20if%20(s.match(rx.keyframesRule))%20%7B%0Anode.type%20%3D%20this.types.KEYFRAMES_RULE%3B%0A%7D%0A%7D%20else%20%7B%0Aif%20(s.indexOf(VAR_START)%20%3D%3D%3D%200)%20%7B%0Anode.type%20%3D%20this.types.MIXIN_RULE%3B%0A%7D%20else%20%7B%0Anode.type%20%3D%20this.types.STYLE_RULE%3B%0A%7D%0A%7D%0A%7D%0Avar%20r%24%20%3D%20node.rules%3B%0Aif%20(r%24)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20r%24.length%2C%20r%3B%20i%20%3C%20l%20%26%26%20(r%20%3D%20r%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Athis._parseCss(r%2C%20text)%3B%0A%7D%0A%7D%0Areturn%20node%3B%0A%7D%2C%0Astringify%3A%20function(node%2C%20preserveProperties%2C%20text)%20%7B%0Atext%20%3D%20text%20%7C%7C%20%22%22%3B%0Avar%20cssText%20%3D%20%22%22%3B%0Aif%20(node.cssText%20%7C%7C%20node.rules)%20%7B%0Avar%20r%24%20%3D%20node.rules%3B%0Aif%20(r%24%20%26%26%20(preserveProperties%20%7C%7C%20!hasMixinRules(r%24)))%20%7B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20r%24.length%2C%20r%3B%20i%20%3C%20l%20%26%26%20(r%20%3D%20r%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0AcssText%20%3D%20this.stringify(r%2C%20preserveProperties%2C%20cssText)%3B%0A%7D%0A%7D%20else%20%7B%0AcssText%20%3D%20preserveProperties%20%3F%20node.cssText%20%3A%20removeCustomProps(node.cssText)%3B%0AcssText%20%3D%20cssText.trim()%3B%0Aif%20(cssText)%20%7B%0AcssText%20%3D%20%22%20%20%22%20%2B%20cssText%20%2B%20%22%5Cn%22%3B%0A%7D%0A%7D%0A%7D%0Aif%20(cssText)%20%7B%0Aif%20(node.selector)%20%7B%0Atext%20%2B%3D%20node.selector%20%2B%20%22%20%22%20%2B%20this.OPEN_BRACE%20%2B%20%22%5Cn%22%3B%0A%7D%0Atext%20%2B%3D%20cssText%3B%0Aif%20(node.selector)%20%7B%0Atext%20%2B%3D%20this.CLOSE_BRACE%20%2B%20%22%5Cn%5Cn%22%3B%0A%7D%0A%7D%0Areturn%20text%3B%0A%7D%2C%0Atypes%3A%20%7B%0ASTYLE_RULE%3A%201%2C%0AKEYFRAMES_RULE%3A%207%2C%0AMEDIA_RULE%3A%204%2C%0AMIXIN_RULE%3A%201e3%0A%7D%2C%0AOPEN_BRACE%3A%20%22%7B%22%2C%0ACLOSE_BRACE%3A%20%22%7D%22%0A%7D%3B%0Afunction%20hasMixinRules(rules)%20%7B%0Areturn%20rules%5B0%5D.selector.indexOf(VAR_START)%20%3E%3D%200%3B%0A%7D%0Afunction%20removeCustomProps(cssText)%20%7B%0Areturn%20cssText.replace(rx.customProp%2C%20%22%22).replace(rx.mixinProp%2C%20%22%22).replace(rx.mixinApply%2C%20%22%22).replace(rx.varApply%2C%20%22%22)%3B%0A%7D%0Avar%20VAR_START%20%3D%20%22--%22%3B%0Avar%20MEDIA_START%20%3D%20%22%40media%22%3B%0Avar%20AT_START%20%3D%20%22%40%22%3B%0Avar%20rx%20%3D%20%7B%0Acomments%3A%20%2F%5C%2F%5C*%5B%5E*%5D*%5C*%2B(%5B%5E%5C%2F*%5D%5B%5E*%5D*%5C*%2B)*%5C%2F%2Fgim%2C%0Aport%3A%20%2F%40import%5B%5E%3B%5D*%3B%2Fgim%2C%0AcustomProp%3A%20%2F(%3F%3A%5E%7C%5B%5Cs%3B%5D)--%5B%5E%3B%7B%5D*%3F%3A%5B%5E%7B%7D%3B%5D*%3F%3B%2Fgim%2C%0AmixinProp%3A%20%2F(%3F%3A%5E%7C%5B%5Cs%3B%5D)--%5B%5E%3B%7B%5D*%3F%3A%5B%5E%7B%3B%5D*%3F%7B%5B%5E%7D%5D*%3F%7D%3B%3F%2Fgim%2C%0AmixinApply%3A%20%2F%40apply%5B%5Cs%5D*%5C(%5B%5E)%5D*%3F%5C)%5B%5Cs%5D*%3B%2Fgim%2C%0AvarApply%3A%20%2F%5B%5E%3B%3A%5D*%3F%3A%5B%5E%3B%5D*var%5B%5E%3B%5D*%3B%2Fgim%2C%0AkeyframesRule%3A%20%2F%5E%40%5B%5E%5Cs%5D*keyframes%2F%0A%7D%3B%0Areturn%20api%3B%0A%7D()%3B%0A%0APolymer.StyleUtil%20%3D%20function()%20%7B%0Areturn%20%7B%0AMODULE_STYLES_SELECTOR%3A%20%22style%2C%20link%5Brel%3Dimport%5D%5Btype~%3Dcss%5D%22%2C%0AtoCssText%3A%20function(rules%2C%20callback%2C%20preserveProperties)%20%7B%0Aif%20(typeof%20rules%20%3D%3D%3D%20%22string%22)%20%7B%0Arules%20%3D%20this.parser.parse(rules)%3B%0A%7D%0Aif%20(callback)%20%7B%0Athis.forEachStyleRule(rules%2C%20callback)%3B%0A%7D%0Areturn%20this.parser.stringify(rules%2C%20preserveProperties)%3B%0A%7D%2C%0AforRulesInStyles%3A%20function(styles%2C%20callback)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20styles.length%2C%20s%3B%20i%20%3C%20l%20%26%26%20(s%20%3D%20styles%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Athis.forEachStyleRule(this.rulesForStyle(s)%2C%20callback)%3B%0A%7D%0A%7D%2C%0ArulesForStyle%3A%20function(style)%20%7B%0Aif%20(!style.__cssRules)%20%7B%0Astyle.__cssRules%20%3D%20this.parser.parse(style.textContent)%3B%0A%7D%0Areturn%20style.__cssRules%3B%0A%7D%2C%0AclearStyleRules%3A%20function(style)%20%7B%0Astyle.__cssRules%20%3D%20null%3B%0A%7D%2C%0AforEachStyleRule%3A%20function(node%2C%20callback)%20%7B%0Avar%20s%20%3D%20node.selector%3B%0Avar%20skipRules%20%3D%20false%3B%0Aif%20(node.type%20%3D%3D%3D%20this.ruleTypes.STYLE_RULE)%20%7B%0Acallback(node)%3B%0A%7D%20else%20if%20(node.type%20%3D%3D%3D%20this.ruleTypes.KEYFRAMES_RULE%20%7C%7C%20node.type%20%3D%3D%3D%20this.ruleTypes.MIXIN_RULE)%20%7B%0AskipRules%20%3D%20true%3B%0A%7D%0Avar%20r%24%20%3D%20node.rules%3B%0Aif%20(r%24%20%26%26%20!skipRules)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20r%24.length%2C%20r%3B%20i%20%3C%20l%20%26%26%20(r%20%3D%20r%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Athis.forEachStyleRule(r%2C%20callback)%3B%0A%7D%0A%7D%0A%7D%2C%0AapplyCss%3A%20function(cssText%2C%20moniker%2C%20target%2C%20afterNode)%20%7B%0Avar%20style%20%3D%20document.createElement(%22style%22)%3B%0Aif%20(moniker)%20%7B%0Astyle.setAttribute(%22scope%22%2C%20moniker)%3B%0A%7D%0Astyle.textContent%20%3D%20cssText%3B%0Atarget%20%3D%20target%20%7C%7C%20document.head%3B%0Aif%20(!afterNode)%20%7B%0Avar%20n%24%20%3D%20target.querySelectorAll(%22style%5Bscope%5D%22)%3B%0AafterNode%20%3D%20n%24%5Bn%24.length%20-%201%5D%3B%0A%7D%0Atarget.insertBefore(style%2C%20afterNode%20%26%26%20afterNode.nextSibling%20%7C%7C%20target.firstChild)%3B%0Areturn%20style%3B%0A%7D%2C%0AcssFromModule%3A%20function(moduleId)%20%7B%0Avar%20m%20%3D%20Polymer.DomModule.import(moduleId)%3B%0Aif%20(m%20%26%26%20!m._cssText)%20%7B%0Avar%20cssText%20%3D%20%22%22%3B%0Avar%20e%24%20%3D%20Array.prototype.slice.call(m.querySelectorAll(this.MODULE_STYLES_SELECTOR))%3B%0Afor%20(var%20i%20%3D%200%2C%20e%3B%20i%20%3C%20e%24.length%3B%20i%2B%2B)%20%7B%0Ae%20%3D%20e%24%5Bi%5D%3B%0Aif%20(e.localName%20%3D%3D%3D%20%22style%22)%20%7B%0Ae%20%3D%20e.__appliedElement%20%7C%7C%20e%3B%0Ae.parentNode.removeChild(e)%3B%0A%7D%20else%20%7B%0Ae%20%3D%20e.import%20%26%26%20e.import.body%3B%0A%7D%0Aif%20(e)%20%7B%0AcssText%20%2B%3D%20Polymer.ResolveUrl.resolveCss(e.textContent%2C%20e.ownerDocument)%3B%0A%7D%0A%7D%0Am._cssText%20%3D%20cssText%3B%0A%7D%0Areturn%20m%20%26%26%20m._cssText%20%7C%7C%20%22%22%3B%0A%7D%2C%0Aparser%3A%20Polymer.CssParse%2C%0AruleTypes%3A%20Polymer.CssParse.types%0A%7D%3B%0A%7D()%3B%0A%0APolymer.StyleTransformer%20%3D%20function()%20%7B%0Avar%20nativeShadow%20%3D%20Polymer.Settings.useNativeShadow%3B%0Avar%20styleUtil%20%3D%20Polymer.StyleUtil%3B%0Avar%20api%20%3D%20%7B%0Adom%3A%20function(node%2C%20scope%2C%20useAttr%2C%20shouldRemoveScope)%20%7B%0Athis._transformDom(node%2C%20scope%20%7C%7C%20%22%22%2C%20useAttr%2C%20shouldRemoveScope)%3B%0A%7D%2C%0A_transformDom%3A%20function(node%2C%20selector%2C%20useAttr%2C%20shouldRemoveScope)%20%7B%0Aif%20(node.setAttribute)%20%7B%0Athis.element(node%2C%20selector%2C%20useAttr%2C%20shouldRemoveScope)%3B%0A%7D%0Avar%20c%24%20%3D%20Polymer.dom(node).childNodes%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20c%24.length%3B%20i%2B%2B)%20%7B%0Athis._transformDom(c%24%5Bi%5D%2C%20selector%2C%20useAttr%2C%20shouldRemoveScope)%3B%0A%7D%0A%7D%2C%0Aelement%3A%20function(element%2C%20scope%2C%20useAttr%2C%20shouldRemoveScope)%20%7B%0Aif%20(useAttr)%20%7B%0Aif%20(shouldRemoveScope)%20%7B%0Aelement.removeAttribute(SCOPE_NAME)%3B%0A%7D%20else%20%7B%0Aelement.setAttribute(SCOPE_NAME%2C%20scope)%3B%0A%7D%0A%7D%20else%20%7B%0Aif%20(scope)%20%7B%0Aif%20(element.classList)%20%7B%0Aif%20(shouldRemoveScope)%20%7B%0Aelement.classList.remove(SCOPE_NAME)%3B%0Aelement.classList.remove(scope)%3B%0A%7D%20else%20%7B%0Aelement.classList.add(SCOPE_NAME)%3B%0Aelement.classList.add(scope)%3B%0A%7D%0A%7D%20else%20if%20(element.getAttribute)%20%7B%0Avar%20c%20%3D%20element.getAttribute(CLASS)%3B%0Aif%20(shouldRemoveScope)%20%7B%0Aif%20(c)%20%7B%0Aelement.setAttribute(CLASS%2C%20c.replace(SCOPE_NAME%2C%20%22%22).replace(scope%2C%20%22%22))%3B%0A%7D%0A%7D%20else%20%7B%0Aelement.setAttribute(CLASS%2C%20c%20%2B%20(c%20%3F%20%22%20%22%20%3A%20%22%22)%20%2B%20SCOPE_NAME%20%2B%20%22%20%22%20%2B%20scope)%3B%0A%7D%0A%7D%0A%7D%0A%7D%0A%7D%2C%0AelementStyles%3A%20function(element%2C%20callback)%20%7B%0Avar%20styles%20%3D%20element._styles%3B%0Avar%20cssText%20%3D%20%22%22%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20styles.length%2C%20s%2C%20text%3B%20i%20%3C%20l%20%26%26%20(s%20%3D%20styles%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Avar%20rules%20%3D%20styleUtil.rulesForStyle(s)%3B%0AcssText%20%2B%3D%20nativeShadow%20%3F%20styleUtil.toCssText(rules%2C%20callback)%20%3A%20this.css(rules%2C%20element.is%2C%20element.extends%2C%20callback%2C%20element._scopeCssViaAttr)%20%2B%20%22%5Cn%5Cn%22%3B%0A%7D%0Areturn%20cssText.trim()%3B%0A%7D%2C%0Acss%3A%20function(rules%2C%20scope%2C%20ext%2C%20callback%2C%20useAttr)%20%7B%0Avar%20hostScope%20%3D%20this._calcHostScope(scope%2C%20ext)%3B%0Ascope%20%3D%20this._calcElementScope(scope%2C%20useAttr)%3B%0Avar%20self%20%3D%20this%3B%0Areturn%20styleUtil.toCssText(rules%2C%20function(rule)%20%7B%0Aif%20(!rule.isScoped)%20%7B%0Aself.rule(rule%2C%20scope%2C%20hostScope)%3B%0Arule.isScoped%20%3D%20true%3B%0A%7D%0Aif%20(callback)%20%7B%0Acallback(rule%2C%20scope%2C%20hostScope)%3B%0A%7D%0A%7D)%3B%0A%7D%2C%0A_calcElementScope%3A%20function(scope%2C%20useAttr)%20%7B%0Aif%20(scope)%20%7B%0Areturn%20useAttr%20%3F%20CSS_ATTR_PREFIX%20%2B%20scope%20%2B%20CSS_ATTR_SUFFIX%20%3A%20CSS_CLASS_PREFIX%20%2B%20scope%3B%0A%7D%20else%20%7B%0Areturn%20%22%22%3B%0A%7D%0A%7D%2C%0A_calcHostScope%3A%20function(scope%2C%20ext)%20%7B%0Areturn%20ext%20%3F%20%22%5Bis%3D%22%20%2B%20scope%20%2B%20%22%5D%22%20%3A%20scope%3B%0A%7D%2C%0Arule%3A%20function(rule%2C%20scope%2C%20hostScope)%20%7B%0Athis._transformRule(rule%2C%20this._transformComplexSelector%2C%20scope%2C%20hostScope)%3B%0A%7D%2C%0A_transformRule%3A%20function(rule%2C%20transformer%2C%20scope%2C%20hostScope)%20%7B%0Avar%20p%24%20%3D%20rule.selector.split(COMPLEX_SELECTOR_SEP)%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20p%24.length%2C%20p%3B%20i%20%3C%20l%20%26%26%20(p%20%3D%20p%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Ap%24%5Bi%5D%20%3D%20transformer.call(this%2C%20p%2C%20scope%2C%20hostScope)%3B%0A%7D%0Arule.selector%20%3D%20p%24.join(COMPLEX_SELECTOR_SEP)%3B%0A%7D%2C%0A_transformComplexSelector%3A%20function(selector%2C%20scope%2C%20hostScope)%20%7B%0Avar%20stop%20%3D%20false%3B%0Avar%20self%20%3D%20this%3B%0Aselector%20%3D%20selector.replace(SIMPLE_SELECTOR_SEP%2C%20function(m%2C%20c%2C%20s)%20%7B%0Aif%20(!stop)%20%7B%0Avar%20o%20%3D%20self._transformCompoundSelector(s%2C%20c%2C%20scope%2C%20hostScope)%3B%0Aif%20(o.stop)%20%7B%0Astop%20%3D%20true%3B%0A%7D%0Ac%20%3D%20o.combinator%3B%0As%20%3D%20o.value%3B%0A%7D%0Areturn%20c%20%2B%20s%3B%0A%7D)%3B%0Areturn%20selector%3B%0A%7D%2C%0A_transformCompoundSelector%3A%20function(selector%2C%20combinator%2C%20scope%2C%20hostScope)%20%7B%0Avar%20jumpIndex%20%3D%20selector.search(SCOPE_JUMP)%3B%0Aif%20(selector.indexOf(HOST)%20%3E%3D%200)%20%7B%0Aselector%20%3D%20selector.replace(HOST_PAREN%2C%20function(m%2C%20host%2C%20paren)%20%7B%0Areturn%20hostScope%20%2B%20paren%3B%0A%7D)%3B%0Aselector%20%3D%20selector.replace(HOST%2C%20hostScope)%3B%0A%7D%20else%20if%20(jumpIndex%20!%3D%3D%200)%20%7B%0Aselector%20%3D%20scope%20%3F%20this._transformSimpleSelector(selector%2C%20scope)%20%3A%20selector%3B%0A%7D%0Aif%20(selector.indexOf(CONTENT)%20%3E%3D%200)%20%7B%0Acombinator%20%3D%20%22%22%3B%0A%7D%0Avar%20stop%3B%0Aif%20(jumpIndex%20%3E%3D%200)%20%7B%0Aselector%20%3D%20selector.replace(SCOPE_JUMP%2C%20%22%20%22)%3B%0Astop%20%3D%20true%3B%0A%7D%0Areturn%20%7B%0Avalue%3A%20selector%2C%0Acombinator%3A%20combinator%2C%0Astop%3A%20stop%0A%7D%3B%0A%7D%2C%0A_transformSimpleSelector%3A%20function(selector%2C%20scope)%20%7B%0Avar%20p%24%20%3D%20selector.split(PSEUDO_PREFIX)%3B%0Ap%24%5B0%5D%20%2B%3D%20scope%3B%0Areturn%20p%24.join(PSEUDO_PREFIX)%3B%0A%7D%2C%0ArootRule%3A%20function(rule)%20%7B%0Athis._transformRule(rule%2C%20this._transformRootSelector)%3B%0A%7D%2C%0A_transformRootSelector%3A%20function(selector)%20%7B%0Areturn%20selector.match(SCOPE_JUMP)%20%3F%20this._transformComplexSelector(selector)%20%3A%20selector.trim()%20%2B%20SCOPE_ROOT_SELECTOR%3B%0A%7D%2C%0ASCOPE_NAME%3A%20%22style-scope%22%0A%7D%3B%0Avar%20SCOPE_NAME%20%3D%20api.SCOPE_NAME%3B%0Avar%20SCOPE_ROOT_SELECTOR%20%3D%20%22%3Anot(%5B%22%20%2B%20SCOPE_NAME%20%2B%20%22%5D)%22%20%2B%20%22%3Anot(.%22%20%2B%20SCOPE_NAME%20%2B%20%22)%22%3B%0Avar%20COMPLEX_SELECTOR_SEP%20%3D%20%22%2C%22%3B%0Avar%20SIMPLE_SELECTOR_SEP%20%3D%20%2F(%5E%7C%5B%5Cs%3E%2B~%5D%2B)(%5B%5E%5Cs%3E%2B~%5D%2B)%2Fg%3B%0Avar%20HOST%20%3D%20%22%3Ahost%22%3B%0Avar%20HOST_PAREN%20%3D%20%2F(%5C%3Ahost)(%3F%3A%5C(((%3F%3A%5C(%5B%5E)(%5D*%5C)%7C%5B%5E)(%5D*)%2B%3F)%5C))%2Fg%3B%0Avar%20CONTENT%20%3D%20%22%3A%3Acontent%22%3B%0Avar%20SCOPE_JUMP%20%3D%20%2F%5C%3A%5C%3Acontent%7C%5C%3A%5C%3Ashadow%7C%5C%2Fdeep%5C%2F%2F%3B%0Avar%20CSS_CLASS_PREFIX%20%3D%20%22.%22%3B%0Avar%20CSS_ATTR_PREFIX%20%3D%20%22%5B%22%20%2B%20SCOPE_NAME%20%2B%20%22~%3D%22%3B%0Avar%20CSS_ATTR_SUFFIX%20%3D%20%22%5D%22%3B%0Avar%20PSEUDO_PREFIX%20%3D%20%22%3A%22%3B%0Avar%20CLASS%20%3D%20%22class%22%3B%0Areturn%20api%3B%0A%7D()%3B%0A%0APolymer.StyleExtends%20%3D%20function()%20%7B%0Avar%20styleUtil%20%3D%20Polymer.StyleUtil%3B%0Areturn%20%7B%0AhasExtends%3A%20function(cssText)%20%7B%0Areturn%20Boolean(cssText.match(this.rx.EXTEND))%3B%0A%7D%2C%0Atransform%3A%20function(style)%20%7B%0Avar%20rules%20%3D%20styleUtil.rulesForStyle(style)%3B%0Avar%20self%20%3D%20this%3B%0AstyleUtil.forEachStyleRule(rules%2C%20function(rule)%20%7B%0Avar%20map%20%3D%20self._mapRule(rule)%3B%0Aif%20(rule.parent)%20%7B%0Avar%20m%3B%0Awhile%20(m%20%3D%20self.rx.EXTEND.exec(rule.cssText))%20%7B%0Avar%20extend%20%3D%20m%5B1%5D%3B%0Avar%20extendor%20%3D%20self._findExtendor(extend%2C%20rule)%3B%0Aif%20(extendor)%20%7B%0Aself._extendRule(rule%2C%20extendor)%3B%0A%7D%0A%7D%0A%7D%0Arule.cssText%20%3D%20rule.cssText.replace(self.rx.EXTEND%2C%20%22%22)%3B%0A%7D)%3B%0Areturn%20styleUtil.toCssText(rules%2C%20function(rule)%20%7B%0Aif%20(rule.selector.match(self.rx.STRIP))%20%7B%0Arule.cssText%20%3D%20%22%22%3B%0A%7D%0A%7D%2C%20true)%3B%0A%7D%2C%0A_mapRule%3A%20function(rule)%20%7B%0Aif%20(rule.parent)%20%7B%0Avar%20map%20%3D%20rule.parent.map%20%7C%7C%20(rule.parent.map%20%3D%20%7B%7D)%3B%0Avar%20parts%20%3D%20rule.selector.split(%22%2C%22)%3B%0Afor%20(var%20i%20%3D%200%2C%20p%3B%20i%20%3C%20parts.length%3B%20i%2B%2B)%20%7B%0Ap%20%3D%20parts%5Bi%5D%3B%0Amap%5Bp.trim()%5D%20%3D%20rule%3B%0A%7D%0Areturn%20map%3B%0A%7D%0A%7D%2C%0A_findExtendor%3A%20function(extend%2C%20rule)%20%7B%0Areturn%20rule.parent%20%26%26%20rule.parent.map%20%26%26%20rule.parent.map%5Bextend%5D%20%7C%7C%20this._findExtendor(extend%2C%20rule.parent)%3B%0A%7D%2C%0A_extendRule%3A%20function(target%2C%20source)%20%7B%0Aif%20(target.parent%20!%3D%3D%20source.parent)%20%7B%0Athis._cloneAndAddRuleToParent(source%2C%20target.parent)%3B%0A%7D%0Atarget.extends%20%3D%20target.extends%20%7C%7C%20(target.extends%20%3D%20%5B%5D)%3B%0Atarget.extends.push(source)%3B%0Asource.selector%20%3D%20source.selector.replace(this.rx.STRIP%2C%20%22%22)%3B%0Asource.selector%20%3D%20(source.selector%20%26%26%20source.selector%20%2B%20%22%2C%5Cn%22)%20%2B%20target.selector%3B%0Aif%20(source.extends)%20%7B%0Asource.extends.forEach(function(e)%20%7B%0Athis._extendRule(target%2C%20e)%3B%0A%7D%2C%20this)%3B%0A%7D%0A%7D%2C%0A_cloneAndAddRuleToParent%3A%20function(rule%2C%20parent)%20%7B%0Arule%20%3D%20Object.create(rule)%3B%0Arule.parent%20%3D%20parent%3B%0Aif%20(rule.extends)%20%7B%0Arule.extends%20%3D%20rule.extends.slice()%3B%0A%7D%0Aparent.rules.push(rule)%3B%0A%7D%2C%0Arx%3A%20%7B%0AEXTEND%3A%20%2F%40extends%5C((%5B%5E)%5D*)%5C)%5Cs*%3F%3B%2Fgim%2C%0ASTRIP%3A%20%2F%25%5B%5E%2C%5D*%24%2F%0A%7D%0A%7D%3B%0A%7D()%3B%0A%0A(function()%20%7B%0Avar%20prepElement%20%3D%20Polymer.Base._prepElement%3B%0Avar%20nativeShadow%20%3D%20Polymer.Settings.useNativeShadow%3B%0Avar%20styleUtil%20%3D%20Polymer.StyleUtil%3B%0Avar%20styleTransformer%20%3D%20Polymer.StyleTransformer%3B%0Avar%20styleExtends%20%3D%20Polymer.StyleExtends%3B%0APolymer.Base._addFeature(%7B%0A_prepElement%3A%20function(element)%20%7B%0Aif%20(this._encapsulateStyle)%20%7B%0AstyleTransformer.element(element%2C%20this.is%2C%20this._scopeCssViaAttr)%3B%0A%7D%0AprepElement.call(this%2C%20element)%3B%0A%7D%2C%0A_prepStyles%3A%20function()%20%7B%0Aif%20(this._encapsulateStyle%20%3D%3D%3D%20undefined)%20%7B%0Athis._encapsulateStyle%20%3D%20!nativeShadow%20%26%26%20Boolean(this._template)%3B%0A%7D%0Athis._styles%20%3D%20this._collectStyles()%3B%0Avar%20cssText%20%3D%20styleTransformer.elementStyles(this)%3B%0Aif%20(cssText%20%26%26%20this._template)%20%7B%0Avar%20style%20%3D%20styleUtil.applyCss(cssText%2C%20this.is%2C%20nativeShadow%20%3F%20this._template.content%20%3A%20null)%3B%0Aif%20(!nativeShadow)%20%7B%0Athis._scopeStyle%20%3D%20style%3B%0A%7D%0A%7D%0A%7D%2C%0A_collectStyles%3A%20function()%20%7B%0Avar%20styles%20%3D%20%5B%5D%3B%0Avar%20cssText%20%3D%20%22%22%2C%20m%24%20%3D%20this.styleModules%3B%0Aif%20(m%24)%20%7B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20m%24.length%2C%20m%3B%20i%20%3C%20l%20%26%26%20(m%20%3D%20m%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0AcssText%20%2B%3D%20styleUtil.cssFromModule(m)%3B%0A%7D%0A%7D%0AcssText%20%2B%3D%20styleUtil.cssFromModule(this.is)%3B%0Aif%20(cssText)%20%7B%0Avar%20style%20%3D%20document.createElement(%22style%22)%3B%0Astyle.textContent%20%3D%20cssText%3B%0Aif%20(styleExtends.hasExtends(style.textContent))%20%7B%0AcssText%20%3D%20styleExtends.transform(style)%3B%0A%7D%0Astyles.push(style)%3B%0A%7D%0Areturn%20styles%3B%0A%7D%2C%0A_elementAdd%3A%20function(node)%20%7B%0Aif%20(this._encapsulateStyle%20%26%26%20!node.__styleScoped)%20%7B%0AstyleTransformer.dom(node%2C%20this.is%2C%20this._scopeCssViaAttr)%3B%0A%7D%0A%7D%2C%0A_elementRemove%3A%20function(node)%20%7B%0Aif%20(this._encapsulateStyle)%20%7B%0AstyleTransformer.dom(node%2C%20this.is%2C%20this._scopeCssViaAttr%2C%20true)%3B%0A%7D%0A%7D%2C%0AscopeSubtree%3A%20function(container%2C%20shouldObserve)%20%7B%0Aif%20(nativeShadow)%20%7B%0Areturn%3B%0A%7D%0Avar%20self%20%3D%20this%3B%0Avar%20scopify%20%3D%20function(node)%20%7B%0Aif%20(node.nodeType%20%3D%3D%3D%20Node.ELEMENT_NODE)%20%7B%0Anode.className%20%3D%20self._scopeElementClass(node%2C%20node.className)%3B%0Avar%20n%24%20%3D%20node.querySelectorAll(%22*%22)%3B%0AArray.prototype.forEach.call(n%24%2C%20function(n)%20%7B%0An.className%20%3D%20self._scopeElementClass(n%2C%20n.className)%3B%0A%7D)%3B%0A%7D%0A%7D%3B%0Ascopify(container)%3B%0Aif%20(shouldObserve)%20%7B%0Avar%20mo%20%3D%20new%20MutationObserver(function(mxns)%20%7B%0Amxns.forEach(function(m)%20%7B%0Aif%20(m.addedNodes)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20m.addedNodes.length%3B%20i%2B%2B)%20%7B%0Ascopify(m.addedNodes%5Bi%5D)%3B%0A%7D%0A%7D%0A%7D)%3B%0A%7D)%3B%0Amo.observe(container%2C%20%7B%0AchildList%3A%20true%2C%0Asubtree%3A%20true%0A%7D)%3B%0Areturn%20mo%3B%0A%7D%0A%7D%0A%7D)%3B%0A%7D)()%3B%0A%0APolymer.StyleProperties%20%3D%20function()%20%7B%0Avar%20nativeShadow%20%3D%20Polymer.Settings.useNativeShadow%3B%0Avar%20matchesSelector%20%3D%20Polymer.DomApi.matchesSelector%3B%0Avar%20styleUtil%20%3D%20Polymer.StyleUtil%3B%0Avar%20styleTransformer%20%3D%20Polymer.StyleTransformer%3B%0Areturn%20%7B%0AdecorateStyles%3A%20function(styles)%20%7B%0Avar%20self%20%3D%20this%2C%20props%20%3D%20%7B%7D%3B%0AstyleUtil.forRulesInStyles(styles%2C%20function(rule)%20%7B%0Aself.decorateRule(rule)%3B%0Aself.collectPropertiesInCssText(rule.propertyInfo.cssText%2C%20props)%3B%0A%7D)%3B%0Avar%20names%20%3D%20%5B%5D%3B%0Afor%20(var%20i%20in%20props)%20%7B%0Anames.push(i)%3B%0A%7D%0Areturn%20names%3B%0A%7D%2C%0AdecorateRule%3A%20function(rule)%20%7B%0Aif%20(rule.propertyInfo)%20%7B%0Areturn%20rule.propertyInfo%3B%0A%7D%0Avar%20info%20%3D%20%7B%7D%2C%20properties%20%3D%20%7B%7D%3B%0Avar%20hasProperties%20%3D%20this.collectProperties(rule%2C%20properties)%3B%0Aif%20(hasProperties)%20%7B%0Ainfo.properties%20%3D%20properties%3B%0Arule.rules%20%3D%20null%3B%0A%7D%0Ainfo.cssText%20%3D%20this.collectCssText(rule)%3B%0Arule.propertyInfo%20%3D%20info%3B%0Areturn%20info%3B%0A%7D%2C%0AcollectProperties%3A%20function(rule%2C%20properties)%20%7B%0Avar%20info%20%3D%20rule.propertyInfo%3B%0Aif%20(info)%20%7B%0Aif%20(info.properties)%20%7B%0APolymer.Base.mixin(properties%2C%20info.properties)%3B%0Areturn%20true%3B%0A%7D%0A%7D%20else%20%7B%0Avar%20m%2C%20rx%20%3D%20this.rx.VAR_ASSIGN%3B%0Avar%20cssText%20%3D%20rule.parsedCssText%3B%0Avar%20any%3B%0Awhile%20(m%20%3D%20rx.exec(cssText))%20%7B%0Aproperties%5Bm%5B1%5D%5D%20%3D%20(m%5B2%5D%20%7C%7C%20m%5B3%5D).trim()%3B%0Aany%20%3D%20true%3B%0A%7D%0Areturn%20any%3B%0A%7D%0A%7D%2C%0AcollectCssText%3A%20function(rule)%20%7B%0Avar%20customCssText%20%3D%20%22%22%3B%0Avar%20cssText%20%3D%20rule.parsedCssText%3B%0AcssText%20%3D%20cssText.replace(this.rx.BRACKETED%2C%20%22%22).replace(this.rx.VAR_ASSIGN%2C%20%22%22)%3B%0Avar%20parts%20%3D%20cssText.split(%22%3B%22)%3B%0Afor%20(var%20i%20%3D%200%2C%20p%3B%20i%20%3C%20parts.length%3B%20i%2B%2B)%20%7B%0Ap%20%3D%20parts%5Bi%5D%3B%0Aif%20(p.match(this.rx.MIXIN_MATCH)%20%7C%7C%20p.match(this.rx.VAR_MATCH))%20%7B%0AcustomCssText%20%2B%3D%20p%20%2B%20%22%3B%5Cn%22%3B%0A%7D%0A%7D%0Areturn%20customCssText%3B%0A%7D%2C%0AcollectPropertiesInCssText%3A%20function(cssText%2C%20props)%20%7B%0Avar%20m%3B%0Awhile%20(m%20%3D%20this.rx.VAR_CAPTURE.exec(cssText))%20%7B%0Aprops%5Bm%5B1%5D%5D%20%3D%20true%3B%0A%7D%0A%7D%2C%0Areify%3A%20function(props)%20%7B%0Avar%20names%20%3D%20Object.getOwnPropertyNames(props)%3B%0Afor%20(var%20i%20%3D%200%2C%20n%3B%20i%20%3C%20names.length%3B%20i%2B%2B)%20%7B%0An%20%3D%20names%5Bi%5D%3B%0Aprops%5Bn%5D%20%3D%20this.valueForProperty(props%5Bn%5D%2C%20props)%3B%0A%7D%0A%7D%2C%0AvalueForProperty%3A%20function(property%2C%20props)%20%7B%0Aif%20(property)%20%7B%0Aif%20(property.indexOf(%22%3B%22)%20%3E%3D%200)%20%7B%0Aproperty%20%3D%20this.valueForProperties(property%2C%20props)%3B%0A%7D%20else%20%7B%0Avar%20self%20%3D%20this%3B%0Avar%20fn%20%3D%20function(all%2C%20prefix%2C%20value%2C%20fallback)%20%7B%0Avar%20propertyValue%20%3D%20self.valueForProperty(props%5Bvalue%5D%2C%20props)%20%7C%7C%20(props%5Bfallback%5D%20%3F%20self.valueForProperty(props%5Bfallback%5D%2C%20props)%20%3A%20fallback)%3B%0Areturn%20prefix%20%2B%20(propertyValue%20%7C%7C%20%22%22)%3B%0A%7D%3B%0Aproperty%20%3D%20property.replace(this.rx.VAR_MATCH%2C%20fn)%3B%0A%7D%0A%7D%0Areturn%20property%20%26%26%20property.trim()%20%7C%7C%20%22%22%3B%0A%7D%2C%0AvalueForProperties%3A%20function(property%2C%20props)%20%7B%0Avar%20parts%20%3D%20property.split(%22%3B%22)%3B%0Afor%20(var%20i%20%3D%200%2C%20p%2C%20m%3B%20i%20%3C%20parts.length%20%26%26%20(p%20%3D%20parts%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Am%20%3D%20p.match(this.rx.MIXIN_MATCH)%3B%0Aif%20(m)%20%7B%0Ap%20%3D%20this.valueForProperty(props%5Bm%5B1%5D%5D%2C%20props)%3B%0A%7D%20else%20%7B%0Avar%20pp%20%3D%20p.split(%22%3A%22)%3B%0Aif%20(pp%5B1%5D)%20%7B%0App%5B1%5D%20%3D%20pp%5B1%5D.trim()%3B%0App%5B1%5D%20%3D%20this.valueForProperty(pp%5B1%5D%2C%20props)%20%7C%7C%20pp%5B1%5D%3B%0A%7D%0Ap%20%3D%20pp.join(%22%3A%22)%3B%0A%7D%0Aparts%5Bi%5D%20%3D%20p%20%26%26%20p.lastIndexOf(%22%3B%22)%20%3D%3D%3D%20p.length%20-%201%20%3F%20p.slice(0%2C%20-1)%20%3A%20p%20%7C%7C%20%22%22%3B%0A%7D%0Areturn%20parts.join(%22%3B%22)%3B%0A%7D%2C%0AapplyProperties%3A%20function(rule%2C%20props)%20%7B%0Avar%20output%20%3D%20%22%22%3B%0Aif%20(!rule.properties)%20%7B%0Athis.decorateRule(rule)%3B%0A%7D%0Aif%20(rule.propertyInfo.cssText)%20%7B%0Aoutput%20%3D%20this.valueForProperties(rule.propertyInfo.cssText%2C%20props)%3B%0A%7D%0Arule.cssText%20%3D%20output%3B%0A%7D%2C%0ApropertyDataFromStyles%3A%20function(styles%2C%20element)%20%7B%0Avar%20props%20%3D%20%7B%7D%2C%20self%20%3D%20this%3B%0Avar%20o%20%3D%20%5B%5D%2C%20i%20%3D%200%3B%0AstyleUtil.forRulesInStyles(styles%2C%20function(rule)%20%7B%0Aif%20(!rule.propertyInfo)%20%7B%0Aself.decorateRule(rule)%3B%0A%7D%0Aif%20(element%20%26%26%20rule.propertyInfo.properties%20%26%26%20matchesSelector.call(element%2C%20rule.selector))%20%7B%0Aself.collectProperties(rule%2C%20props)%3B%0AaddToBitMask(i%2C%20o)%3B%0A%7D%0Ai%2B%2B%3B%0A%7D)%3B%0Areturn%20%7B%0Aproperties%3A%20props%2C%0Akey%3A%20o%0A%7D%3B%0A%7D%2C%0AscopePropertiesFromStyles%3A%20function(styles)%20%7B%0Aif%20(!styles._scopeStyleProperties)%20%7B%0Astyles._scopeStyleProperties%20%3D%20this.selectedPropertiesFromStyles(styles%2C%20this.SCOPE_SELECTORS)%3B%0A%7D%0Areturn%20styles._scopeStyleProperties%3B%0A%7D%2C%0AhostPropertiesFromStyles%3A%20function(styles)%20%7B%0Aif%20(!styles._hostStyleProperties)%20%7B%0Astyles._hostStyleProperties%20%3D%20this.selectedPropertiesFromStyles(styles%2C%20this.HOST_SELECTORS)%3B%0A%7D%0Areturn%20styles._hostStyleProperties%3B%0A%7D%2C%0AselectedPropertiesFromStyles%3A%20function(styles%2C%20selectors)%20%7B%0Avar%20props%20%3D%20%7B%7D%2C%20self%20%3D%20this%3B%0AstyleUtil.forRulesInStyles(styles%2C%20function(rule)%20%7B%0Aif%20(!rule.propertyInfo)%20%7B%0Aself.decorateRule(rule)%3B%0A%7D%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20selectors.length%3B%20i%2B%2B)%20%7B%0Aif%20(rule.parsedSelector%20%3D%3D%3D%20selectors%5Bi%5D)%20%7B%0Aself.collectProperties(rule%2C%20props)%3B%0Areturn%3B%0A%7D%0A%7D%0A%7D)%3B%0Areturn%20props%3B%0A%7D%2C%0AtransformStyles%3A%20function(element%2C%20properties%2C%20scopeSelector)%20%7B%0Avar%20self%20%3D%20this%3B%0Avar%20hostRx%20%3D%20new%20RegExp(this.rx.HOST_PREFIX%20%2B%20element.is%20%2B%20this.rx.HOST_SUFFIX)%3B%0Areturn%20styleTransformer.elementStyles(element%2C%20function(rule)%20%7B%0Aself.applyProperties(rule%2C%20properties)%3B%0Aif%20(rule.cssText%20%26%26%20!nativeShadow)%20%7B%0Aself._scopeSelector(rule%2C%20hostRx%2C%20element.is%2C%20element._scopeCssViaAttr%2C%20scopeSelector)%3B%0A%7D%0A%7D)%3B%0A%7D%2C%0A_scopeSelector%3A%20function(rule%2C%20hostRx%2C%20is%2C%20viaAttr%2C%20scopeId)%20%7B%0Arule.transformedSelector%20%3D%20rule.transformedSelector%20%7C%7C%20rule.selector%3B%0Avar%20selector%20%3D%20rule.transformedSelector%3B%0Avar%20scope%20%3D%20viaAttr%20%3F%20%22%5B%22%20%2B%20styleTransformer.SCOPE_NAME%20%2B%20%22~%3D%22%20%2B%20scopeId%20%2B%20%22%5D%22%20%3A%20%22.%22%20%2B%20scopeId%3B%0Avar%20parts%20%3D%20selector.split(%22%2C%22)%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20parts.length%2C%20p%3B%20i%20%3C%20l%20%26%26%20(p%20%3D%20parts%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Aparts%5Bi%5D%20%3D%20p.match(hostRx)%20%3F%20p.replace(is%2C%20is%20%2B%20scope)%20%3A%20scope%20%2B%20%22%20%22%20%2B%20p%3B%0A%7D%0Arule.selector%20%3D%20parts.join(%22%2C%22)%3B%0A%7D%2C%0AapplyElementScopeSelector%3A%20function(element%2C%20selector%2C%20old%2C%20viaAttr)%20%7B%0Avar%20c%20%3D%20viaAttr%20%3F%20element.getAttribute(styleTransformer.SCOPE_NAME)%20%3A%20element.className%3B%0Av%20%3D%20old%20%3F%20c.replace(old%2C%20selector)%20%3A%20(c%20%3F%20c%20%2B%20%22%20%22%20%3A%20%22%22)%20%2B%20this.XSCOPE_NAME%20%2B%20%22%20%22%20%2B%20selector%3B%0Aif%20(c%20!%3D%3D%20v)%20%7B%0Aif%20(viaAttr)%20%7B%0Aelement.setAttribute(styleTransformer.SCOPE_NAME%2C%20v)%3B%0A%7D%20else%20%7B%0Aelement.className%20%3D%20v%3B%0A%7D%0A%7D%0A%7D%2C%0AapplyElementStyle%3A%20function(element%2C%20properties%2C%20selector%2C%20style)%20%7B%0Avar%20cssText%20%3D%20style%20%3F%20style.textContent%20%7C%7C%20%22%22%20%3A%20this.transformStyles(element%2C%20properties%2C%20selector)%3B%0Avar%20s%20%3D%20element._customStyle%3B%0Aif%20(s%20%26%26%20!nativeShadow%20%26%26%20s%20!%3D%3D%20style)%20%7B%0As._useCount--%3B%0Aif%20(s._useCount%20%3C%3D%200)%20%7B%0As.parentNode.removeChild(s)%3B%0A%7D%0A%7D%0Aif%20(nativeShadow%20%7C%7C%20(!style%20%7C%7C%20!style.parentNode))%20%7B%0Aif%20(nativeShadow%20%26%26%20element._customStyle)%20%7B%0Aelement._customStyle.textContent%20%3D%20cssText%3B%0Astyle%20%3D%20element._customStyle%3B%0A%7D%20else%20if%20(cssText)%20%7B%0Astyle%20%3D%20styleUtil.applyCss(cssText%2C%20selector%2C%20nativeShadow%20%3F%20element.root%20%3A%20null%2C%20element._scopeStyle)%3B%0A%7D%0A%7D%0Aif%20(style)%20%7B%0Astyle._useCount%20%3D%20style._useCount%20%7C%7C%200%3B%0Aif%20(element._customStyle%20!%3D%20style)%20%7B%0Astyle._useCount%2B%2B%3B%0A%7D%0Aelement._customStyle%20%3D%20style%3B%0A%7D%0Areturn%20style%3B%0A%7D%2C%0Arx%3A%20%7B%0AVAR_ASSIGN%3A%20%2F(%3F%3A%5E%7C%3B%5Cs*)(--%5B%5E%5C%3A%3B%5D*%3F)%3A%5Cs*%3F(%3F%3A(%5B%5E%3B%7B%5D*%3F)%7C%7B(%5B%5E%7D%5D*)%7D)(%3F%3D%3B)%2Fgim%2C%0AMIXIN_MATCH%3A%20%2F(%3F%3A%5E%7C%5CW%2B)%40apply%5B%5Cs%5D*%5C((%5B%5E)%5D*)%5C)%3B%3F%2Fim%2C%0AVAR_MATCH%3A%20%2F(%5E%7C%5CW%2B)var%5C(%5B%5Cs%5D*(%5B%5E%2C)%5D*)%5B%5Cs%5D*%2C%3F%5B%5Cs%5D*((%3F%3A%5B%5E%2C)%5D*)%7C(%3F%3A%5B%5E%3B%5D*%5C(%5B%5E%3B)%5D*%5C)))%5B%5Cs%5D*%3F%5C)%2Fgim%2C%0AVAR_CAPTURE%3A%20%2F%5C(%5B%5Cs%5D*(--%5B%5E%2C%5Cs)%5D*)(%3F%3A%2C%5B%5Cs%5D*(--%5B%5E%2C%5Cs)%5D*))%3F(%3F%3A%5C)%7C%2C)%2Fgim%2C%0ABRACKETED%3A%20%2F%5C%7B%5B%5E%7D%5D*%5C%7D%2Fg%2C%0AHOST_PREFIX%3A%20%22(%3F%3A%5E%7C%5B%5E.%5D)%22%2C%0AHOST_SUFFIX%3A%20%22(%24%7C%5B.%3A%5B%5C%5Cs%3E%2B~%5D)%22%0A%7D%2C%0AHOST_SELECTORS%3A%20%5B%20%22%3Ahost%22%20%5D%2C%0ASCOPE_SELECTORS%3A%20%5B%20%22%3Aroot%22%20%5D%2C%0AXSCOPE_NAME%3A%20%22x-scope%22%0A%7D%3B%0Afunction%20addToBitMask(n%2C%20bits)%20%7B%0Avar%20o%20%3D%20parseInt(n%20%2F%2032)%3B%0Avar%20v%20%3D%201%20%3C%3C%20n%20%25%2032%3B%0Abits%5Bo%5D%20%3D%20(bits%5Bo%5D%20%7C%7C%200)%20%7C%20v%3B%0A%7D%0A%7D()%3B%0A%0APolymer.StyleDefaults%20%3D%20function()%20%7B%0Avar%20styleProperties%20%3D%20Polymer.StyleProperties%3B%0Avar%20styleUtil%20%3D%20Polymer.StyleUtil%3B%0Avar%20style%20%3D%20document.createElement(%22style%22)%3B%0Avar%20api%20%3D%20%7B%0Astyle%3A%20style%2C%0A_styles%3A%20%5B%20style%20%5D%2C%0A_properties%3A%20null%2C%0AapplyCss%3A%20function(cssText)%20%7B%0Athis.style.textContent%20%2B%3D%20cssText%3B%0AstyleUtil.clearStyleRules(this.style)%3B%0Athis._properties%20%3D%20null%3B%0A%7D%2C%0Aget%20_styleProperties()%20%7B%0Aif%20(!this._properties)%20%7B%0AstyleProperties.decorateStyles(this._styles)%3B%0Athis._styles._scopeStyleProperties%20%3D%20null%3B%0Athis._properties%20%3D%20styleProperties.scopePropertiesFromStyles(this._styles)%3B%0A%7D%0Areturn%20this._properties%3B%0A%7D%2C%0A_needsStyleProperties%3A%20function()%20%7B%7D%2C%0A_computeStyleProperties%3A%20function()%20%7B%0Areturn%20this._styleProperties%3B%0A%7D%0A%7D%3B%0Areturn%20api%3B%0A%7D()%3B%0A%0A(function()%20%7B%0APolymer.StyleCache%20%3D%20function()%20%7B%0Athis.cache%20%3D%20%7B%7D%3B%0A%7D%3B%0APolymer.StyleCache.prototype%20%3D%20%7B%0AMAX%3A%20100%2C%0Astore%3A%20function(is%2C%20data%2C%20keyValues%2C%20keyStyles)%20%7B%0Adata.keyValues%20%3D%20keyValues%3B%0Adata.styles%20%3D%20keyStyles%3B%0Avar%20s%24%20%3D%20this.cache%5Bis%5D%20%3D%20this.cache%5Bis%5D%20%7C%7C%20%5B%5D%3B%0As%24.push(data)%3B%0Aif%20(s%24.length%20%3E%20this.MAX)%20%7B%0As%24.shift()%3B%0A%7D%0A%7D%2C%0Aretrieve%3A%20function(is%2C%20keyValues%2C%20keyStyles)%20%7B%0Avar%20cache%20%3D%20this.cache%5Bis%5D%3B%0Aif%20(cache)%20%7B%0Afor%20(var%20i%20%3D%20cache.length%20-%201%2C%20data%3B%20i%20%3E%3D%200%3B%20i--)%20%7B%0Adata%20%3D%20cache%5Bi%5D%3B%0Aif%20(keyStyles%20%3D%3D%3D%20data.styles%20%26%26%20this._objectsEqual(keyValues%2C%20data.keyValues))%20%7B%0Areturn%20data%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0Aclear%3A%20function()%20%7B%0Athis.cache%20%3D%20%7B%7D%3B%0A%7D%2C%0A_objectsEqual%3A%20function(target%2C%20source)%20%7B%0Afor%20(var%20i%20in%20target)%20%7B%0Aif%20(target%5Bi%5D%20!%3D%3D%20source%5Bi%5D)%20%7B%0Areturn%20false%3B%0A%7D%0A%7D%0Aif%20(Array.isArray(target))%20%7B%0Areturn%20target.length%20%3D%3D%3D%20source.length%3B%0A%7D%0Areturn%20true%3B%0A%7D%0A%7D%3B%0A%7D)()%3B%0A%0A(function()%20%7B%0Avar%20serializeValueToAttribute%20%3D%20Polymer.Base.serializeValueToAttribute%3B%0Avar%20propertyUtils%20%3D%20Polymer.StyleProperties%3B%0Avar%20styleTransformer%20%3D%20Polymer.StyleTransformer%3B%0Avar%20styleUtil%20%3D%20Polymer.StyleUtil%3B%0Avar%20styleDefaults%20%3D%20Polymer.StyleDefaults%3B%0Avar%20nativeShadow%20%3D%20Polymer.Settings.useNativeShadow%3B%0APolymer.Base._addFeature(%7B%0A_prepStyleProperties%3A%20function()%20%7B%0Athis._ownStylePropertyNames%20%3D%20this._styles%20%3F%20propertyUtils.decorateStyles(this._styles)%20%3A%20%5B%5D%3B%0A%7D%2C%0A_setupStyleProperties%3A%20function()%20%7B%0Athis.customStyle%20%3D%20%7B%7D%3B%0A%7D%2C%0A_needsStyleProperties%3A%20function()%20%7B%0Areturn%20Boolean(this._ownStylePropertyNames%20%26%26%20this._ownStylePropertyNames.length)%3B%0A%7D%2C%0A_beforeAttached%3A%20function()%20%7B%0Aif%20(!this._scopeSelector%20%26%26%20this._needsStyleProperties())%20%7B%0Athis._updateStyleProperties()%3B%0A%7D%0A%7D%2C%0A_updateStyleProperties%3A%20function()%20%7B%0Avar%20info%2C%20scope%20%3D%20this.domHost%20%7C%7C%20styleDefaults%3B%0Aif%20(!scope._styleCache)%20%7B%0Ascope._styleCache%20%3D%20new%20Polymer.StyleCache()%3B%0A%7D%0Avar%20scopeData%20%3D%20propertyUtils.propertyDataFromStyles(scope._styles%2C%20this)%3B%0Ainfo%20%3D%20scope._styleCache.retrieve(this.is%2C%20scopeData.key%2C%20this._styles)%3B%0Avar%20scopeCached%20%3D%20Boolean(info)%3B%0Aif%20(scopeCached)%20%7B%0Athis._styleProperties%20%3D%20info._styleProperties%3B%0A%7D%20else%20%7B%0Athis._computeStyleProperties(scopeData.properties)%3B%0A%7D%0Athis._computeOwnStyleProperties()%3B%0Aif%20(!scopeCached)%20%7B%0Ainfo%20%3D%20styleCache.retrieve(this.is%2C%20this._ownStyleProperties%2C%20this._styles)%3B%0A%7D%0Avar%20globalCached%20%3D%20Boolean(info)%20%26%26%20!scopeCached%3B%0Astyle%20%3D%20this._applyStyleProperties(info)%3B%0Aif%20(!scopeCached)%20%7B%0Avar%20cacheableStyle%20%3D%20style%3B%0Aif%20(nativeShadow)%20%7B%0AcacheableStyle%20%3D%20style.cloneNode%20%3F%20style.cloneNode(true)%20%3A%20Object.create(style%20%7C%7C%20null)%3B%0A%7D%0Ainfo%20%3D%20%7B%0Astyle%3A%20cacheableStyle%2C%0A_scopeSelector%3A%20this._scopeSelector%2C%0A_styleProperties%3A%20this._styleProperties%0A%7D%3B%0Ascope._styleCache.store(this.is%2C%20info%2C%20scopeData.key%2C%20this._styles)%3B%0Aif%20(!globalCached)%20%7B%0AstyleCache.store(this.is%2C%20Object.create(info)%2C%20this._ownStyleProperties%2C%20this._styles)%3B%0A%7D%0A%7D%0A%7D%2C%0A_computeStyleProperties%3A%20function(scopeProps)%20%7B%0Avar%20scope%20%3D%20this.domHost%20%7C%7C%20styleDefaults%3B%0Aif%20(!scope._styleProperties)%20%7B%0Ascope._computeStyleProperties()%3B%0A%7D%0Avar%20props%20%3D%20Object.create(scope._styleProperties)%3B%0Athis.mixin(props%2C%20propertyUtils.hostPropertiesFromStyles(this._styles))%3B%0AscopeProps%20%3D%20scopeProps%20%7C%7C%20propertyUtils.propertyDataFromStyles(scope._styles%2C%20this).properties%3B%0Athis.mixin(props%2C%20scopeProps)%3B%0Athis.mixin(props%2C%20propertyUtils.scopePropertiesFromStyles(this._styles))%3B%0Athis.mixin(props%2C%20this.customStyle)%3B%0ApropertyUtils.reify(props)%3B%0Athis._styleProperties%20%3D%20props%3B%0A%7D%2C%0A_computeOwnStyleProperties%3A%20function()%20%7B%0Avar%20props%20%3D%20%7B%7D%3B%0Afor%20(var%20i%20%3D%200%2C%20n%3B%20i%20%3C%20this._ownStylePropertyNames.length%3B%20i%2B%2B)%20%7B%0An%20%3D%20this._ownStylePropertyNames%5Bi%5D%3B%0Aprops%5Bn%5D%20%3D%20this._styleProperties%5Bn%5D%3B%0A%7D%0Athis._ownStyleProperties%20%3D%20props%3B%0A%7D%2C%0A_scopeCount%3A%200%2C%0A_applyStyleProperties%3A%20function(info)%20%7B%0Avar%20oldScopeSelector%20%3D%20this._scopeSelector%3B%0Athis._scopeSelector%20%3D%20info%20%3F%20info._scopeSelector%20%3A%20this.is%20%2B%20%22-%22%20%2B%20this.__proto__._scopeCount%2B%2B%3B%0Astyle%20%3D%20propertyUtils.applyElementStyle(this%2C%20this._styleProperties%2C%20this._scopeSelector%2C%20info%20%26%26%20info.style)%3B%0Aif%20((style%20%7C%7C%20oldScopeSelector)%20%26%26%20!nativeShadow)%20%7B%0ApropertyUtils.applyElementScopeSelector(this%2C%20this._scopeSelector%2C%20oldScopeSelector%2C%20this._scopeCssViaAttr)%3B%0A%7D%0Areturn%20style%20%7C%7C%20%7B%7D%3B%0A%7D%2C%0AserializeValueToAttribute%3A%20function(value%2C%20attribute%2C%20node)%20%7B%0Anode%20%3D%20node%20%7C%7C%20this%3B%0Aif%20(attribute%20%3D%3D%3D%20%22class%22)%20%7B%0Avar%20host%20%3D%20node%20%3D%3D%3D%20this%20%3F%20this.domHost%20%7C%7C%20this.dataHost%20%3A%20this%3B%0Aif%20(host)%20%7B%0Avalue%20%3D%20host._scopeElementClass(node%2C%20value)%3B%0A%7D%0A%7D%0Anode%20%3D%20Polymer.dom(node)%3B%0AserializeValueToAttribute.call(this%2C%20value%2C%20attribute%2C%20node)%3B%0A%7D%2C%0A_scopeElementClass%3A%20function(element%2C%20selector)%20%7B%0Aif%20(!nativeShadow%20%26%26%20!this._scopeCssViaAttr)%20%7B%0Aselector%20%2B%3D%20(selector%20%3F%20%22%20%22%20%3A%20%22%22)%20%2B%20SCOPE_NAME%20%2B%20%22%20%22%20%2B%20this.is%20%2B%20(element._scopeSelector%20%3F%20%22%20%22%20%2B%20XSCOPE_NAME%20%2B%20%22%20%22%20%2B%20element._scopeSelector%20%3A%20%22%22)%3B%0A%7D%0Areturn%20selector%3B%0A%7D%2C%0AupdateStyles%3A%20function()%20%7B%0Aif%20(this.isAttached)%20%7B%0Aif%20(this._needsStyleProperties())%20%7B%0Athis._updateStyleProperties()%3B%0A%7D%20else%20%7B%0Athis._styleProperties%20%3D%20null%3B%0A%7D%0Aif%20(this._styleCache)%20%7B%0Athis._styleCache.clear()%3B%0A%7D%0Athis._updateRootStyles()%3B%0A%7D%0A%7D%2C%0A_updateRootStyles%3A%20function(root)%20%7B%0Aroot%20%3D%20root%20%7C%7C%20this.root%3B%0Avar%20c%24%20%3D%20Polymer.dom(root)._query(function(e)%20%7B%0Areturn%20e.shadyRoot%20%7C%7C%20e.shadowRoot%3B%0A%7D)%3B%0Afor%20(var%20i%20%3D%200%2C%20l%20%3D%20c%24.length%2C%20c%3B%20i%20%3C%20l%20%26%26%20(c%20%3D%20c%24%5Bi%5D)%3B%20i%2B%2B)%20%7B%0Aif%20(c.updateStyles)%20%7B%0Ac.updateStyles()%3B%0A%7D%0A%7D%0A%7D%0A%7D)%3B%0APolymer.updateStyles%20%3D%20function()%20%7B%0AstyleDefaults._styleCache.clear()%3B%0APolymer.Base._updateRootStyles(document)%3B%0A%7D%3B%0Avar%20styleCache%20%3D%20new%20Polymer.StyleCache()%3B%0APolymer.customStyleCache%20%3D%20styleCache%3B%0Avar%20SCOPE_NAME%20%3D%20styleTransformer.SCOPE_NAME%3B%0Avar%20XSCOPE_NAME%20%3D%20propertyUtils.XSCOPE_NAME%3B%0A%7D)()%3B%0A%0APolymer.Base._addFeature(%7B%0A_registerFeatures%3A%20function()%20%7B%0Athis._prepIs()%3B%0Athis._prepAttributes()%3B%0Athis._prepExtends()%3B%0Athis._prepConstructor()%3B%0Athis._prepTemplate()%3B%0Athis._prepStyles()%3B%0Athis._prepStyleProperties()%3B%0Athis._prepAnnotations()%3B%0Athis._prepEffects()%3B%0Athis._prepBehaviors()%3B%0Athis._prepBindings()%3B%0Athis._prepShady()%3B%0A%7D%2C%0A_prepBehavior%3A%20function(b)%20%7B%0Athis._addPropertyEffects(b.properties)%3B%0Athis._addComplexObserverEffects(b.observers)%3B%0Athis._addHostAttributes(b.hostAttributes)%3B%0A%7D%2C%0A_initFeatures%3A%20function()%20%7B%0Athis._poolContent()%3B%0Athis._setupConfigure()%3B%0Athis._setupStyleProperties()%3B%0Athis._pushHost()%3B%0Athis._stampTemplate()%3B%0Athis._popHost()%3B%0Athis._marshalAnnotationReferences()%3B%0Athis._marshalHostAttributes()%3B%0Athis._setupDebouncers()%3B%0Athis._marshalInstanceEffects()%3B%0Athis._marshalBehaviors()%3B%0Athis._marshalAttributes()%3B%0Athis._tryReady()%3B%0A%7D%2C%0A_marshalBehavior%3A%20function(b)%20%7B%0Athis._listenListeners(b.listeners)%3B%0A%7D%0A%7D)%3B%0A%0A(function()%20%7B%0Avar%20nativeShadow%20%3D%20Polymer.Settings.useNativeShadow%3B%0Avar%20propertyUtils%20%3D%20Polymer.StyleProperties%3B%0Avar%20styleUtil%20%3D%20Polymer.StyleUtil%3B%0Avar%20styleDefaults%20%3D%20Polymer.StyleDefaults%3B%0APolymer(%7B%0Ais%3A%20%22custom-style%22%2C%0A%22extends%22%3A%20%22style%22%2C%0Acreated%3A%20function()%20%7B%0Athis._appliesToDocument%20%3D%20this.parentNode.localName%20!%3D%3D%20%22dom-module%22%3B%0Aif%20(this._appliesToDocument)%20%7B%0Avar%20e%20%3D%20this.__appliedElement%20%7C%7C%20this%3B%0Avar%20rules%20%3D%20styleUtil.rulesForStyle(e)%3B%0ApropertyUtils.decorateStyles(%5B%20e%20%5D)%3B%0Athis._rulesToDefaultProperties(rules)%3B%0Athis.async(this._applyStyle)%3B%0A%7D%0A%7D%2C%0A_applyStyle%3A%20function()%20%7B%0Avar%20e%20%3D%20this.__appliedElement%20%7C%7C%20this%3B%0Athis._computeStyleProperties()%3B%0Avar%20props%20%3D%20this._styleProperties%3B%0Avar%20self%20%3D%20this%3B%0Ae.textContent%20%3D%20styleUtil.toCssText(styleUtil.rulesForStyle(e)%2C%20function(rule)%20%7B%0Aif%20(rule.selector%20%3D%3D%3D%20%22%3Aroot%22)%20%7B%0Arule.selector%20%3D%20%22body%22%3B%0A%7D%0Avar%20css%20%3D%20rule.cssText%20%3D%20rule.parsedCssText%3B%0Aif%20(rule.propertyInfo.cssText)%20%7B%0Acss%20%3D%20css.replace(propertyUtils.rx.VAR_ASSIGN%2C%20%22%22)%3B%0Arule.cssText%20%3D%20propertyUtils.valueForProperties(css%2C%20props)%3B%0A%7D%0Aif%20(!nativeShadow)%20%7B%0APolymer.StyleTransformer.rootRule(rule)%3B%0A%7D%0A%7D)%3B%0A%7D%2C%0A_rulesToDefaultProperties%3A%20function(rules)%20%7B%0AstyleUtil.forEachStyleRule(rules%2C%20function(rule)%20%7B%0Aif%20(!rule.propertyInfo.properties)%20%7B%0Arule.cssText%20%3D%20%22%22%3B%0A%7D%0A%7D)%3B%0Avar%20cssText%20%3D%20styleUtil.parser.stringify(rules%2C%20true)%3B%0Aif%20(cssText)%20%7B%0AstyleDefaults.applyCss(cssText)%3B%0A%7D%0A%7D%0A%7D)%3B%0A%7D)()%3B%0A%0APolymer.Templatizer%20%3D%20%7B%0Aproperties%3A%20%7B%0A_hideTemplateChildren%3A%20%7B%0Aobserver%3A%20%22_hideTemplateChildrenChanged%22%0A%7D%0A%7D%2C%0A_templatizerStatic%3A%20%7B%0Acount%3A%200%2C%0Acallbacks%3A%20%7B%7D%2C%0Adebouncer%3A%20null%0A%7D%2C%0A_instanceProps%3A%20Polymer.nob%2C%0Acreated%3A%20function()%20%7B%0Athis._templatizerId%20%3D%20this._templatizerStatic.count%2B%2B%3B%0A%7D%2C%0Atemplatize%3A%20function(template)%20%7B%0Aif%20(!template._content)%20%7B%0Atemplate._content%20%3D%20template.content%3B%0A%7D%0Aif%20(template._content._ctor)%20%7B%0Athis.ctor%20%3D%20template._content._ctor%3B%0Athis._prepParentProperties(this.ctor.prototype%2C%20template)%3B%0Areturn%3B%0A%7D%0Avar%20archetype%20%3D%20Object.create(Polymer.Base)%3B%0Athis._customPrepAnnotations(archetype%2C%20template)%3B%0Aarchetype._prepEffects()%3B%0Athis._customPrepEffects(archetype)%3B%0Aarchetype._prepBehaviors()%3B%0Aarchetype._prepBindings()%3B%0Athis._prepParentProperties(archetype%2C%20template)%3B%0Aarchetype._notifyPath%20%3D%20this._notifyPathImpl%3B%0Aarchetype._scopeElementClass%20%3D%20this._scopeElementClassImpl%3B%0Aarchetype.listen%20%3D%20this._listenImpl%3B%0Avar%20_constructor%20%3D%20this._constructorImpl%3B%0Avar%20ctor%20%3D%20function%20TemplateInstance(model%2C%20host)%20%7B%0A_constructor.call(this%2C%20model%2C%20host)%3B%0A%7D%3B%0Actor.prototype%20%3D%20archetype%3B%0Aarchetype.constructor%20%3D%20ctor%3B%0Atemplate._content._ctor%20%3D%20ctor%3B%0Athis.ctor%20%3D%20ctor%3B%0A%7D%2C%0A_getRootDataHost%3A%20function()%20%7B%0Areturn%20this.dataHost%20%26%26%20this.dataHost._rootDataHost%20%7C%7C%20this.dataHost%3B%0A%7D%2C%0A_hideTemplateChildrenChanged%3A%20function(hidden)%20%7B%0Aif%20(this._hideChildren)%20%7B%0Athis._hideChildren(hidden)%3B%0A%7D%0A%7D%2C%0A_debounceTemplate%3A%20function(fn)%20%7B%0Athis._templatizerStatic.callbacks%5Bthis._templatizerId%5D%20%3D%20fn.bind(this)%3B%0Athis._templatizerStatic.debouncer%20%3D%20Polymer.Debounce(this._templatizerStatic.debouncer%2C%20this._flushTemplates.bind(this%2C%20true))%3B%0A%7D%2C%0A_flushTemplates%3A%20function(debouncerExpired)%20%7B%0Avar%20db%20%3D%20this._templatizerStatic.debouncer%3B%0Awhile%20(debouncerExpired%20%7C%7C%20db%20%26%26%20db.finish)%20%7B%0Adb.stop()%3B%0Avar%20cbs%20%3D%20this._templatizerStatic.callbacks%3B%0Athis._templatizerStatic.callbacks%20%3D%20%7B%7D%3B%0Afor%20(var%20id%20in%20cbs)%20%7B%0Acbs%5Bid%5D()%3B%0A%7D%0AdebouncerExpired%20%3D%20false%3B%0A%7D%0A%7D%2C%0A_customPrepEffects%3A%20function(archetype)%20%7B%0Avar%20parentProps%20%3D%20archetype._parentProps%3B%0Afor%20(var%20prop%20in%20parentProps)%20%7B%0Aarchetype._addPropertyEffect(prop%2C%20%22function%22%2C%20this._createHostPropEffector(prop))%3B%0A%7D%0A%7D%2C%0A_customPrepAnnotations%3A%20function(archetype%2C%20template)%20%7B%0Aarchetype._template%20%3D%20template%3B%0Avar%20c%20%3D%20template._content%3B%0Aif%20(!c._notes)%20%7B%0Avar%20rootDataHost%20%3D%20archetype._rootDataHost%3B%0Aif%20(rootDataHost)%20%7B%0APolymer.Annotations.prepElement%20%3D%20rootDataHost._prepElement.bind(rootDataHost)%3B%0A%7D%0Ac._notes%20%3D%20Polymer.Annotations.parseAnnotations(template)%3B%0APolymer.Annotations.prepElement%20%3D%20null%3B%0Athis._processAnnotations(c._notes)%3B%0A%7D%0Aarchetype._notes%20%3D%20c._notes%3B%0Aarchetype._parentProps%20%3D%20c._parentProps%3B%0A%7D%2C%0A_prepParentProperties%3A%20function(archetype%2C%20template)%20%7B%0Avar%20parentProps%20%3D%20this._parentProps%20%3D%20archetype._parentProps%3B%0Aif%20(this._forwardParentProp%20%26%26%20parentProps)%20%7B%0Avar%20proto%20%3D%20archetype._parentPropProto%3B%0Avar%20prop%3B%0Aif%20(!proto)%20%7B%0Afor%20(prop%20in%20this._instanceProps)%20%7B%0Adelete%20parentProps%5Bprop%5D%3B%0A%7D%0Aproto%20%3D%20archetype._parentPropProto%20%3D%20Object.create(null)%3B%0Aif%20(template%20!%3D%20this)%20%7B%0APolymer.Bind.prepareModel(proto)%3B%0A%7D%0Afor%20(prop%20in%20parentProps)%20%7B%0Avar%20parentProp%20%3D%20%22_parent_%22%20%2B%20prop%3B%0Avar%20effects%20%3D%20%5B%20%7B%0Akind%3A%20%22function%22%2C%0Aeffect%3A%20this._createForwardPropEffector(prop)%0A%7D%2C%20%7B%0Akind%3A%20%22notify%22%0A%7D%20%5D%3B%0APolymer.Bind._createAccessors(proto%2C%20parentProp%2C%20effects)%3B%0A%7D%0A%7D%0Aif%20(template%20!%3D%20this)%20%7B%0APolymer.Bind.prepareInstance(template)%3B%0Atemplate._forwardParentProp%20%3D%20this._forwardParentProp.bind(this)%3B%0A%7D%0Athis._extendTemplate(template%2C%20proto)%3B%0A%7D%0A%7D%2C%0A_createForwardPropEffector%3A%20function(prop)%20%7B%0Areturn%20function(source%2C%20value)%20%7B%0Athis._forwardParentProp(prop%2C%20value)%3B%0A%7D%3B%0A%7D%2C%0A_createHostPropEffector%3A%20function(prop)%20%7B%0Areturn%20function(source%2C%20value)%20%7B%0Athis.dataHost%5B%22_parent_%22%20%2B%20prop%5D%20%3D%20value%3B%0A%7D%3B%0A%7D%2C%0A_extendTemplate%3A%20function(template%2C%20proto)%20%7B%0AObject.getOwnPropertyNames(proto).forEach(function(n)%20%7B%0Avar%20val%20%3D%20template%5Bn%5D%3B%0Avar%20pd%20%3D%20Object.getOwnPropertyDescriptor(proto%2C%20n)%3B%0AObject.defineProperty(template%2C%20n%2C%20pd)%3B%0Aif%20(val%20!%3D%3D%20undefined)%20%7B%0Atemplate._propertySet(n%2C%20val)%3B%0A%7D%0A%7D)%3B%0A%7D%2C%0A_forwardInstancePath%3A%20function(inst%2C%20path%2C%20value)%20%7B%7D%2C%0A_notifyPathImpl%3A%20function(path%2C%20value)%20%7B%0Avar%20dataHost%20%3D%20this.dataHost%3B%0Avar%20dot%20%3D%20path.indexOf(%22.%22)%3B%0Avar%20root%20%3D%20dot%20%3C%200%20%3F%20path%20%3A%20path.slice(0%2C%20dot)%3B%0AdataHost._forwardInstancePath.call(dataHost%2C%20this%2C%20path%2C%20value)%3B%0Aif%20(root%20in%20dataHost._parentProps)%20%7B%0AdataHost.notifyPath(%22_parent_%22%20%2B%20path%2C%20value)%3B%0A%7D%0A%7D%2C%0A_pathEffector%3A%20function(path%2C%20value%2C%20fromAbove)%20%7B%0Aif%20(this._forwardParentPath)%20%7B%0Aif%20(path.indexOf(%22_parent_%22)%20%3D%3D%3D%200)%20%7B%0Athis._forwardParentPath(path.substring(8)%2C%20value)%3B%0A%7D%0A%7D%0APolymer.Base._pathEffector.apply(this%2C%20arguments)%3B%0A%7D%2C%0A_constructorImpl%3A%20function(model%2C%20host)%20%7B%0Athis._rootDataHost%20%3D%20host._getRootDataHost()%3B%0Athis._setupConfigure(model)%3B%0Athis._pushHost(host)%3B%0Athis.root%20%3D%20this.instanceTemplate(this._template)%3B%0Athis.root.__styleScoped%20%3D%20true%3B%0Athis._popHost()%3B%0Athis._marshalAnnotatedNodes()%3B%0Athis._marshalInstanceEffects()%3B%0Athis._marshalAnnotatedListeners()%3B%0Avar%20children%20%3D%20%5B%5D%3B%0Afor%20(var%20n%20%3D%20this.root.firstChild%3B%20n%3B%20n%20%3D%20n.nextSibling)%20%7B%0Achildren.push(n)%3B%0An._templateInstance%20%3D%20this%3B%0A%7D%0Athis._children%20%3D%20children%3B%0Athis._tryReady()%3B%0A%7D%2C%0A_listenImpl%3A%20function(node%2C%20eventName%2C%20methodName)%20%7B%0Avar%20model%20%3D%20this%3B%0Avar%20host%20%3D%20this._rootDataHost%3B%0Avar%20handler%20%3D%20host._createEventHandler(node%2C%20eventName%2C%20methodName)%3B%0Avar%20decorated%20%3D%20function(e)%20%7B%0Ae.model%20%3D%20model%3B%0Ahandler(e)%3B%0A%7D%3B%0Ahost._listen(node%2C%20eventName%2C%20decorated)%3B%0A%7D%2C%0A_scopeElementClassImpl%3A%20function(node%2C%20value)%20%7B%0Avar%20host%20%3D%20this._rootDataHost%3B%0Aif%20(host)%20%7B%0Areturn%20host._scopeElementClass(node%2C%20value)%3B%0A%7D%0A%7D%2C%0Astamp%3A%20function(model)%20%7B%0Amodel%20%3D%20model%20%7C%7C%20%7B%7D%3B%0Aif%20(this._parentProps)%20%7B%0Afor%20(var%20prop%20in%20this._parentProps)%20%7B%0Amodel%5Bprop%5D%20%3D%20this%5B%22_parent_%22%20%2B%20prop%5D%3B%0A%7D%0A%7D%0Areturn%20new%20this.ctor(model%2C%20this)%3B%0A%7D%0A%7D%3B%0A%0APolymer(%7B%0Ais%3A%20%22dom-template%22%2C%0A%22extends%22%3A%20%22template%22%2C%0Abehaviors%3A%20%5B%20Polymer.Templatizer%20%5D%2C%0Aready%3A%20function()%20%7B%0Athis.templatize(this)%3B%0A%7D%0A%7D)%3B%0A%0APolymer._collections%20%3D%20new%20WeakMap()%3B%0A%0APolymer.Collection%20%3D%20function(userArray)%20%7B%0APolymer._collections.set(userArray%2C%20this)%3B%0Athis.userArray%20%3D%20userArray%3B%0Athis.store%20%3D%20userArray.slice()%3B%0Athis.initMap()%3B%0A%7D%3B%0A%0APolymer.Collection.prototype%20%3D%20%7B%0Aconstructor%3A%20Polymer.Collection%2C%0AinitMap%3A%20function()%20%7B%0Avar%20omap%20%3D%20this.omap%20%3D%20new%20WeakMap()%3B%0Avar%20pmap%20%3D%20this.pmap%20%3D%20%7B%7D%3B%0Avar%20s%20%3D%20this.store%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20s.length%3B%20i%2B%2B)%20%7B%0Avar%20item%20%3D%20s%5Bi%5D%3B%0Aif%20(item%20%26%26%20typeof%20item%20%3D%3D%20%22object%22)%20%7B%0Aomap.set(item%2C%20i)%3B%0A%7D%20else%20%7B%0Apmap%5Bitem%5D%20%3D%20i%3B%0A%7D%0A%7D%0A%7D%2C%0Aadd%3A%20function(item)%20%7B%0Avar%20key%20%3D%20this.store.push(item)%20-%201%3B%0Aif%20(item%20%26%26%20typeof%20item%20%3D%3D%20%22object%22)%20%7B%0Athis.omap.set(item%2C%20key)%3B%0A%7D%20else%20%7B%0Athis.pmap%5Bitem%5D%20%3D%20key%3B%0A%7D%0Areturn%20key%3B%0A%7D%2C%0AremoveKey%3A%20function(key)%20%7B%0Athis._removeFromMap(this.store%5Bkey%5D)%3B%0Adelete%20this.store%5Bkey%5D%3B%0A%7D%2C%0A_removeFromMap%3A%20function(item)%20%7B%0Aif%20(typeof%20item%20%3D%3D%20%22object%22)%20%7B%0Athis.omap.delete(item)%3B%0A%7D%20else%20%7B%0Adelete%20this.pmap%5Bitem%5D%3B%0A%7D%0A%7D%2C%0Aremove%3A%20function(item)%20%7B%0Avar%20key%20%3D%20this.getKey(item)%3B%0Athis.removeKey(key)%3B%0Areturn%20key%3B%0A%7D%2C%0AgetKey%3A%20function(item)%20%7B%0Aif%20(typeof%20item%20%3D%3D%20%22object%22)%20%7B%0Areturn%20this.omap.get(item)%3B%0A%7D%20else%20%7B%0Areturn%20this.pmap%5Bitem%5D%3B%0A%7D%0A%7D%2C%0AgetKeys%3A%20function()%20%7B%0Areturn%20Object.keys(this.store)%3B%0A%7D%2C%0AsetItem%3A%20function(key%2C%20value)%20%7B%0Athis.store%5Bkey%5D%20%3D%20value%3B%0A%7D%2C%0AgetItem%3A%20function(key)%20%7B%0Areturn%20this.store%5Bkey%5D%3B%0A%7D%2C%0AgetItems%3A%20function()%20%7B%0Avar%20items%20%3D%20%5B%5D%2C%20store%20%3D%20this.store%3B%0Afor%20(var%20key%20in%20store)%20%7B%0Aitems.push(store%5Bkey%5D)%3B%0A%7D%0Areturn%20items%3B%0A%7D%2C%0AapplySplices%3A%20function(splices)%20%7B%0Avar%20keySplices%20%3D%20%5B%5D%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20splices.length%3B%20i%2B%2B)%20%7B%0Avar%20j%2C%20o%2C%20key%2C%20s%20%3D%20splices%5Bi%5D%3B%0Avar%20removed%20%3D%20%5B%5D%3B%0Afor%20(j%20%3D%200%3B%20j%20%3C%20s.removed.length%3B%20j%2B%2B)%20%7B%0Ao%20%3D%20s.removed%5Bj%5D%3B%0Akey%20%3D%20this.remove(o)%3B%0Aremoved.push(key)%3B%0A%7D%0Avar%20added%20%3D%20%5B%5D%3B%0Afor%20(j%20%3D%200%3B%20j%20%3C%20s.addedCount%3B%20j%2B%2B)%20%7B%0Ao%20%3D%20this.userArray%5Bs.index%20%2B%20j%5D%3B%0Akey%20%3D%20this.add(o)%3B%0Aadded.push(key)%3B%0A%7D%0AkeySplices.push(%7B%0Aindex%3A%20s.index%2C%0Aremoved%3A%20removed%2C%0AremovedItems%3A%20s.removed%2C%0Aadded%3A%20added%0A%7D)%3B%0A%7D%0Areturn%20keySplices%3B%0A%7D%0A%7D%3B%0A%0APolymer.Collection.get%20%3D%20function(userArray)%20%7B%0Areturn%20Polymer._collections.get(userArray)%20%7C%7C%20new%20Polymer.Collection(userArray)%3B%0A%7D%3B%0A%0APolymer(%7B%0Ais%3A%20%22dom-repeat%22%2C%0A%22extends%22%3A%20%22template%22%2C%0Aproperties%3A%20%7B%0Aitems%3A%20%7B%0Atype%3A%20Array%0A%7D%2C%0Aas%3A%20%7B%0Atype%3A%20String%2C%0Avalue%3A%20%22item%22%0A%7D%2C%0AindexAs%3A%20%7B%0Atype%3A%20String%2C%0Avalue%3A%20%22index%22%0A%7D%2C%0Asort%3A%20%7B%0Atype%3A%20Function%2C%0Aobserver%3A%20%22_sortChanged%22%0A%7D%2C%0Afilter%3A%20%7B%0Atype%3A%20Function%2C%0Aobserver%3A%20%22_filterChanged%22%0A%7D%2C%0Aobserve%3A%20%7B%0Atype%3A%20String%2C%0Aobserver%3A%20%22_observeChanged%22%0A%7D%2C%0Adelay%3A%20Number%0A%7D%2C%0Abehaviors%3A%20%5B%20Polymer.Templatizer%20%5D%2C%0Aobservers%3A%20%5B%20%22_itemsChanged(items.*)%22%20%5D%2C%0Adetached%3A%20function()%20%7B%0Aif%20(this.rows)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20this.rows.length%3B%20i%2B%2B)%20%7B%0Athis._detachRow(i)%3B%0A%7D%0A%7D%0Athis.rows%20%3D%20null%3B%0A%7D%2C%0Aready%3A%20function()%20%7B%0Athis._instanceProps%20%3D%20%7B%0A__key__%3A%20true%0A%7D%3B%0Athis._instanceProps%5Bthis.as%5D%20%3D%20true%3B%0Athis._instanceProps%5Bthis.indexAs%5D%20%3D%20true%3B%0Aif%20(!this.ctor)%20%7B%0Athis.templatize(this)%3B%0A%7D%0A%7D%2C%0A_sortChanged%3A%20function()%20%7B%0Avar%20dataHost%20%3D%20this._getRootDataHost()%3B%0Avar%20sort%20%3D%20this.sort%3B%0Athis._sortFn%20%3D%20sort%20%26%26%20(typeof%20sort%20%3D%3D%20%22function%22%20%3F%20sort%20%3A%20function()%20%7B%0Areturn%20dataHost%5Bsort%5D.apply(dataHost%2C%20arguments)%3B%0A%7D)%3B%0Athis._fullRefresh%20%3D%20true%3B%0Aif%20(this.items)%20%7B%0Athis._debounceTemplate(this._render)%3B%0A%7D%0A%7D%2C%0A_filterChanged%3A%20function()%20%7B%0Avar%20dataHost%20%3D%20this._getRootDataHost()%3B%0Avar%20filter%20%3D%20this.filter%3B%0Athis._filterFn%20%3D%20filter%20%26%26%20(typeof%20filter%20%3D%3D%20%22function%22%20%3F%20filter%20%3A%20function()%20%7B%0Areturn%20dataHost%5Bfilter%5D.apply(dataHost%2C%20arguments)%3B%0A%7D)%3B%0Athis._fullRefresh%20%3D%20true%3B%0Aif%20(this.items)%20%7B%0Athis._debounceTemplate(this._render)%3B%0A%7D%0A%7D%2C%0A_observeChanged%3A%20function()%20%7B%0Athis._observePaths%20%3D%20this.observe%20%26%26%20this.observe.replace(%22.*%22%2C%20%22.%22).split(%22%20%22)%3B%0A%7D%2C%0A_itemsChanged%3A%20function(change)%20%7B%0Aif%20(change.path%20%3D%3D%20%22items%22)%20%7B%0Aif%20(Array.isArray(this.items))%20%7B%0Athis.collection%20%3D%20Polymer.Collection.get(this.items)%3B%0A%7D%20else%20if%20(!this.items)%20%7B%0Athis.collection%20%3D%20null%3B%0A%7D%20else%20%7B%0Athis._error(this._logf(%22dom-repeat%22%2C%20%22expected%20array%20for%20%60items%60%2C%22%20%2B%20%22%20found%22%2C%20this.items))%3B%0A%7D%0Athis._splices%20%3D%20%5B%5D%3B%0Athis._fullRefresh%20%3D%20true%3B%0Athis._debounceTemplate(this._render)%3B%0A%7D%20else%20if%20(change.path%20%3D%3D%20%22items.splices%22)%20%7B%0Athis._splices%20%3D%20this._splices.concat(change.value.keySplices)%3B%0Athis._debounceTemplate(this._render)%3B%0A%7D%20else%20%7B%0Avar%20subpath%20%3D%20change.path.slice(6)%3B%0Athis._forwardItemPath(subpath%2C%20change.value)%3B%0Athis._checkObservedPaths(subpath)%3B%0A%7D%0A%7D%2C%0A_checkObservedPaths%3A%20function(path)%20%7B%0Aif%20(this._observePaths)%20%7B%0Apath%20%3D%20path.substring(path.indexOf(%22.%22)%20%2B%201)%3B%0Avar%20paths%20%3D%20this._observePaths%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20paths.length%3B%20i%2B%2B)%20%7B%0Aif%20(path.indexOf(paths%5Bi%5D)%20%3D%3D%3D%200)%20%7B%0Athis._fullRefresh%20%3D%20true%3B%0Aif%20(this.delay)%20%7B%0Athis.debounce(%22render%22%2C%20this._render%2C%20this.delay)%3B%0A%7D%20else%20%7B%0Athis._debounceTemplate(this._render)%3B%0A%7D%0Areturn%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0Arender%3A%20function()%20%7B%0Athis._fullRefresh%20%3D%20true%3B%0Athis.debounce(%22render%22%2C%20this._render)%3B%0Athis._flushTemplates()%3B%0A%7D%2C%0A_render%3A%20function()%20%7B%0Avar%20c%20%3D%20this.collection%3B%0Aif%20(!this._fullRefresh)%20%7B%0Aif%20(this._sortFn)%20%7B%0Athis._applySplicesViewSort(this._splices)%3B%0A%7D%20else%20%7B%0Aif%20(this._filterFn)%20%7B%0Athis._fullRefresh%20%3D%20true%3B%0A%7D%20else%20%7B%0Athis._applySplicesArraySort(this._splices)%3B%0A%7D%0A%7D%0A%7D%0Aif%20(this._fullRefresh)%20%7B%0Athis._sortAndFilter()%3B%0Athis._fullRefresh%20%3D%20false%3B%0A%7D%0Athis._splices%20%3D%20%5B%5D%3B%0Avar%20rowForKey%20%3D%20this._rowForKey%20%3D%20%7B%7D%3B%0Avar%20keys%20%3D%20this._orderedKeys%3B%0Athis.rows%20%3D%20this.rows%20%7C%7C%20%5B%5D%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20keys.length%3B%20i%2B%2B)%20%7B%0Avar%20key%20%3D%20keys%5Bi%5D%3B%0Avar%20item%20%3D%20c.getItem(key)%3B%0Avar%20row%20%3D%20this.rows%5Bi%5D%3B%0ArowForKey%5Bkey%5D%20%3D%20i%3B%0Aif%20(!row)%20%7B%0Athis.rows.push(row%20%3D%20this._insertRow(i%2C%20null%2C%20item))%3B%0A%7D%0Arow%5Bthis.as%5D%20%3D%20item%3B%0Arow.__key__%20%3D%20key%3B%0Arow%5Bthis.indexAs%5D%20%3D%20i%3B%0A%7D%0Afor%20(%3Bi%20%3C%20this.rows.length%3B%20i%2B%2B)%20%7B%0Athis._detachRow(i)%3B%0A%7D%0Athis.rows.splice(keys.length%2C%20this.rows.length%20-%20keys.length)%3B%0Athis.fire(%22dom-change%22)%3B%0A%7D%2C%0A_sortAndFilter%3A%20function()%20%7B%0Avar%20c%20%3D%20this.collection%3B%0Aif%20(!this._sortFn)%20%7B%0Athis._orderedKeys%20%3D%20%5B%5D%3B%0Avar%20items%20%3D%20this.items%3B%0Aif%20(items)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20items.length%3B%20i%2B%2B)%20%7B%0Athis._orderedKeys.push(c.getKey(items%5Bi%5D))%3B%0A%7D%0A%7D%0A%7D%20else%20%7B%0Athis._orderedKeys%20%3D%20c%20%3F%20c.getKeys()%20%3A%20%5B%5D%3B%0A%7D%0Aif%20(this._filterFn)%20%7B%0Athis._orderedKeys%20%3D%20this._orderedKeys.filter(function(a)%20%7B%0Areturn%20this._filterFn(c.getItem(a))%3B%0A%7D%2C%20this)%3B%0A%7D%0Aif%20(this._sortFn)%20%7B%0Athis._orderedKeys.sort(function(a%2C%20b)%20%7B%0Areturn%20this._sortFn(c.getItem(a)%2C%20c.getItem(b))%3B%0A%7D.bind(this))%3B%0A%7D%0A%7D%2C%0A_keySort%3A%20function(a%2C%20b)%20%7B%0Areturn%20this.collection.getKey(a)%20-%20this.collection.getKey(b)%3B%0A%7D%2C%0A_applySplicesViewSort%3A%20function(splices)%20%7B%0Avar%20c%20%3D%20this.collection%3B%0Avar%20keys%20%3D%20this._orderedKeys%3B%0Avar%20rows%20%3D%20this.rows%3B%0Avar%20removedRows%20%3D%20%5B%5D%3B%0Avar%20addedKeys%20%3D%20%5B%5D%3B%0Avar%20pool%20%3D%20%5B%5D%3B%0Avar%20sortFn%20%3D%20this._sortFn%20%7C%7C%20this._keySort.bind(this)%3B%0Asplices.forEach(function(s)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20s.removed.length%3B%20i%2B%2B)%20%7B%0Avar%20idx%20%3D%20this._rowForKey%5Bs.removed%5Bi%5D%5D%3B%0Aif%20(idx%20!%3D%20null)%20%7B%0AremovedRows.push(idx)%3B%0A%7D%0A%7D%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20s.added.length%3B%20i%2B%2B)%20%7B%0AaddedKeys.push(s.added%5Bi%5D)%3B%0A%7D%0A%7D%2C%20this)%3B%0Aif%20(removedRows.length)%20%7B%0AremovedRows.sort()%3B%0Afor%20(var%20i%20%3D%20removedRows.length%20-%201%3B%20i%20%3E%3D%200%3B%20i--)%20%7B%0Avar%20idx%20%3D%20removedRows%5Bi%5D%3B%0Apool.push(this._detachRow(idx))%3B%0Arows.splice(idx%2C%201)%3B%0Akeys.splice(idx%2C%201)%3B%0A%7D%0A%7D%0Aif%20(addedKeys.length)%20%7B%0Aif%20(this._filterFn)%20%7B%0AaddedKeys%20%3D%20addedKeys.filter(function(a)%20%7B%0Areturn%20this._filterFn(c.getItem(a))%3B%0A%7D%2C%20this)%3B%0A%7D%0AaddedKeys.sort(function(a%2C%20b)%20%7B%0Areturn%20this._sortFn(c.getItem(a)%2C%20c.getItem(b))%3B%0A%7D.bind(this))%3B%0Avar%20start%20%3D%200%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20addedKeys.length%3B%20i%2B%2B)%20%7B%0Astart%20%3D%20this._insertRowIntoViewSort(start%2C%20addedKeys%5Bi%5D%2C%20pool)%3B%0A%7D%0A%7D%0A%7D%2C%0A_insertRowIntoViewSort%3A%20function(start%2C%20key%2C%20pool)%20%7B%0Avar%20c%20%3D%20this.collection%3B%0Avar%20item%20%3D%20c.getItem(key)%3B%0Avar%20end%20%3D%20this.rows.length%20-%201%3B%0Avar%20idx%20%3D%20-1%3B%0Avar%20sortFn%20%3D%20this._sortFn%20%7C%7C%20this._keySort.bind(this)%3B%0Awhile%20(start%20%3C%3D%20end)%20%7B%0Avar%20mid%20%3D%20start%20%2B%20end%20%3E%3E%201%3B%0Avar%20midKey%20%3D%20this._orderedKeys%5Bmid%5D%3B%0Avar%20cmp%20%3D%20sortFn(c.getItem(midKey)%2C%20item)%3B%0Aif%20(cmp%20%3C%200)%20%7B%0Astart%20%3D%20mid%20%2B%201%3B%0A%7D%20else%20if%20(cmp%20%3E%200)%20%7B%0Aend%20%3D%20mid%20-%201%3B%0A%7D%20else%20%7B%0Aidx%20%3D%20mid%3B%0Abreak%3B%0A%7D%0A%7D%0Aif%20(idx%20%3C%200)%20%7B%0Aidx%20%3D%20end%20%2B%201%3B%0A%7D%0Athis._orderedKeys.splice(idx%2C%200%2C%20key)%3B%0Athis.rows.splice(idx%2C%200%2C%20this._insertRow(idx%2C%20pool%2C%20c.getItem(key)))%3B%0Areturn%20idx%3B%0A%7D%2C%0A_applySplicesArraySort%3A%20function(splices)%20%7B%0Avar%20keys%20%3D%20this._orderedKeys%3B%0Avar%20pool%20%3D%20%5B%5D%3B%0Asplices.forEach(function(s)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20s.removed.length%3B%20i%2B%2B)%20%7B%0Apool.push(this._detachRow(s.index%20%2B%20i))%3B%0A%7D%0Athis.rows.splice(s.index%2C%20s.removed.length)%3B%0A%7D%2C%20this)%3B%0Avar%20c%20%3D%20this.collection%3B%0Asplices.forEach(function(s)%20%7B%0Avar%20args%20%3D%20%5B%20s.index%2C%20s.removed.length%20%5D.concat(s.added)%3B%0Akeys.splice.apply(keys%2C%20args)%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20s.added.length%3B%20i%2B%2B)%20%7B%0Avar%20item%20%3D%20c.getItem(s.added%5Bi%5D)%3B%0Avar%20row%20%3D%20this._insertRow(s.index%20%2B%20i%2C%20pool%2C%20item)%3B%0Athis.rows.splice(s.index%20%2B%20i%2C%200%2C%20row)%3B%0A%7D%0A%7D%2C%20this)%3B%0A%7D%2C%0A_detachRow%3A%20function(idx)%20%7B%0Avar%20row%20%3D%20this.rows%5Bidx%5D%3B%0Avar%20parentNode%20%3D%20Polymer.dom(this).parentNode%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20row._children.length%3B%20i%2B%2B)%20%7B%0Avar%20el%20%3D%20row._children%5Bi%5D%3B%0APolymer.dom(row.root).appendChild(el)%3B%0A%7D%0Areturn%20row%3B%0A%7D%2C%0A_insertRow%3A%20function(idx%2C%20pool%2C%20item)%20%7B%0Avar%20row%20%3D%20pool%20%26%26%20pool.pop()%20%7C%7C%20this._generateRow(idx%2C%20item)%3B%0Avar%20beforeRow%20%3D%20this.rows%5Bidx%5D%3B%0Avar%20beforeNode%20%3D%20beforeRow%20%3F%20beforeRow._children%5B0%5D%20%3A%20this%3B%0Avar%20parentNode%20%3D%20Polymer.dom(this).parentNode%3B%0APolymer.dom(parentNode).insertBefore(row.root%2C%20beforeNode)%3B%0Areturn%20row%3B%0A%7D%2C%0A_generateRow%3A%20function(idx%2C%20item)%20%7B%0Avar%20model%20%3D%20%7B%0A__key__%3A%20this.collection.getKey(item)%0A%7D%3B%0Amodel%5Bthis.as%5D%20%3D%20item%3B%0Amodel%5Bthis.indexAs%5D%20%3D%20idx%3B%0Avar%20row%20%3D%20this.stamp(model)%3B%0Areturn%20row%3B%0A%7D%2C%0A_hideChildren%3A%20function(hidden)%20%7B%0Aif%20(this.rows)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20this.rows.length%3B%20i%2B%2B)%20%7B%0Avar%20c%24%20%3D%20this.rows%5Bi%5D._children%3B%0Afor%20(var%20j%20%3D%200%3B%20j%20%3C%20c%24.length%3B%20j%2B%2B)%20%7B%0Avar%20c%20%3D%20c%24%5Bj%5D%3B%0Aif%20(c.style)%20%7B%0Ac.style.display%20%3D%20hidden%20%3F%20%22none%22%20%3A%20%22%22%3B%0A%7D%0Ac._hideTemplateChildren%20%3D%20hidden%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0A_forwardInstancePath%3A%20function(row%2C%20path%2C%20value)%20%7B%0Aif%20(path.indexOf(this.as%20%2B%20%22.%22)%20%3D%3D%3D%200)%20%7B%0Athis.notifyPath(%22items.%22%20%2B%20row.__key__%20%2B%20%22.%22%20%2B%20path.slice(this.as.length%20%2B%201)%2C%20value)%3B%0Areturn%20true%3B%0A%7D%0A%7D%2C%0A_forwardParentProp%3A%20function(prop%2C%20value)%20%7B%0Aif%20(this.rows)%20%7B%0Athis.rows.forEach(function(row)%20%7B%0Arow%5Bprop%5D%20%3D%20value%3B%0A%7D%2C%20this)%3B%0A%7D%0A%7D%2C%0A_forwardParentPath%3A%20function(path%2C%20value)%20%7B%0Aif%20(this.rows)%20%7B%0Athis.rows.forEach(function(row)%20%7B%0Arow.notifyPath(path%2C%20value%2C%20true)%3B%0A%7D%2C%20this)%3B%0A%7D%0A%7D%2C%0A_forwardItemPath%3A%20function(path%2C%20value)%20%7B%0Aif%20(this._rowForKey)%20%7B%0Avar%20dot%20%3D%20path.indexOf(%22.%22)%3B%0Avar%20key%20%3D%20path.substring(0%2C%20dot%20%3C%200%20%3F%20path.length%20%3A%20dot)%3B%0Avar%20idx%20%3D%20this._rowForKey%5Bkey%5D%3B%0Avar%20row%20%3D%20this.rows%5Bidx%5D%3B%0Aif%20(row)%20%7B%0Aif%20(dot%20%3E%3D%200)%20%7B%0Apath%20%3D%20this.as%20%2B%20%22.%22%20%2B%20path.substring(dot%20%2B%201)%3B%0Arow.notifyPath(path%2C%20value%2C%20true)%3B%0A%7D%20else%20%7B%0Arow%5Bthis.as%5D%20%3D%20value%3B%0A%7D%0A%7D%0A%7D%0A%7D%2C%0AmodelForElement%3A%20function(el)%20%7B%0Avar%20model%3B%0Awhile%20(el)%20%7B%0Aif%20(model%20%3D%20el._templateInstance)%20%7B%0Aif%20(model.dataHost%20!%3D%20this)%20%7B%0Ael%20%3D%20model.dataHost%3B%0A%7D%20else%20%7B%0Areturn%20model%3B%0A%7D%0A%7D%20else%20%7B%0Ael%20%3D%20el.parentNode%3B%0A%7D%0A%7D%0A%7D%2C%0AitemForElement%3A%20function(el)%20%7B%0Avar%20instance%20%3D%20this.modelForElement(el)%3B%0Areturn%20instance%20%26%26%20instance%5Bthis.as%5D%3B%0A%7D%2C%0AkeyForElement%3A%20function(el)%20%7B%0Avar%20instance%20%3D%20this.modelForElement(el)%3B%0Areturn%20instance%20%26%26%20instance.__key__%3B%0A%7D%2C%0AindexForElement%3A%20function(el)%20%7B%0Avar%20instance%20%3D%20this.modelForElement(el)%3B%0Areturn%20instance%20%26%26%20instance%5Bthis.indexAs%5D%3B%0A%7D%0A%7D)%3B%0A%0APolymer(%7B%0Ais%3A%20%22array-selector%22%2C%0Aproperties%3A%20%7B%0Aitems%3A%20%7B%0Atype%3A%20Array%2C%0Aobserver%3A%20%22_itemsChanged%22%0A%7D%2C%0Aselected%3A%20%7B%0Atype%3A%20Object%2C%0Anotify%3A%20true%0A%7D%2C%0Atoggle%3A%20Boolean%2C%0Amulti%3A%20Boolean%0A%7D%2C%0A_itemsChanged%3A%20function()%20%7B%0Aif%20(Array.isArray(this.selected))%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20this.selected.length%3B%20i%2B%2B)%20%7B%0Athis.unlinkPaths(%22selected.%22%20%2B%20i)%3B%0A%7D%0A%7D%20else%20%7B%0Athis.unlinkPaths(%22selected%22)%3B%0A%7D%0Aif%20(this.multi)%20%7B%0Athis.selected%20%3D%20%5B%5D%3B%0A%7D%20else%20%7B%0Athis.selected%20%3D%20null%3B%0A%7D%0A%7D%2C%0Adeselect%3A%20function(item)%20%7B%0Aif%20(this.multi)%20%7B%0Avar%20scol%20%3D%20Polymer.Collection.get(this.selected)%3B%0Avar%20sidx%20%3D%20this.selected.indexOf(item)%3B%0Aif%20(sidx%20%3E%3D%200)%20%7B%0Avar%20skey%20%3D%20scol.getKey(item)%3B%0Athis.splice(%22selected%22%2C%20sidx%2C%201)%3B%0Athis.unlinkPaths(%22selected.%22%20%2B%20skey)%3B%0Areturn%20true%3B%0A%7D%0A%7D%20else%20%7B%0Athis.selected%20%3D%20null%3B%0Athis.unlinkPaths(%22selected%22)%3B%0A%7D%0A%7D%2C%0Aselect%3A%20function(item)%20%7B%0Avar%20icol%20%3D%20Polymer.Collection.get(this.items)%3B%0Avar%20key%20%3D%20icol.getKey(item)%3B%0Aif%20(this.multi)%20%7B%0Avar%20scol%20%3D%20Polymer.Collection.get(this.selected)%3B%0Avar%20skey%20%3D%20scol.getKey(item)%3B%0Aif%20(skey%20%3E%3D%200)%20%7B%0Athis.deselect(item)%3B%0A%7D%20else%20if%20(this.toggle)%20%7B%0Athis.push(%22selected%22%2C%20item)%3B%0Athis.async(function()%20%7B%0Askey%20%3D%20scol.getKey(item)%3B%0Athis.linkPaths(%22selected.%22%20%2B%20skey%2C%20%22items.%22%20%2B%20key)%3B%0A%7D)%3B%0A%7D%0A%7D%20else%20%7B%0Aif%20(this.toggle%20%26%26%20item%20%3D%3D%20this.selected)%20%7B%0Athis.deselect()%3B%0A%7D%20else%20%7B%0Athis.linkPaths(%22selected%22%2C%20%22items.%22%20%2B%20key)%3B%0Athis.selected%20%3D%20item%3B%0A%7D%0A%7D%0A%7D%0A%7D)%3B%0A%0APolymer(%7B%0Ais%3A%20%22dom-if%22%2C%0A%22extends%22%3A%20%22template%22%2C%0Aproperties%3A%20%7B%0A%22if%22%3A%20%7B%0Atype%3A%20Boolean%2C%0Avalue%3A%20false%0A%7D%2C%0Arestamp%3A%20%7B%0Atype%3A%20Boolean%2C%0Avalue%3A%20false%0A%7D%0A%7D%2C%0Abehaviors%3A%20%5B%20Polymer.Templatizer%20%5D%2C%0Aobservers%3A%20%5B%20%22_queueRender(if%2C%20restamp)%22%20%5D%2C%0A_queueRender%3A%20function()%20%7B%0Athis._debounceTemplate(this._render)%3B%0A%7D%2C%0Adetached%3A%20function()%20%7B%0Athis._teardownInstance()%3B%0A%7D%2C%0Aattached%3A%20function()%20%7B%0Aif%20(this.if%20%26%26%20this.ctor)%20%7B%0Athis.async(this._ensureInstance)%3B%0A%7D%0A%7D%2C%0Arender%3A%20function()%20%7B%0Athis._flushTemplates()%3B%0A%7D%2C%0A_render%3A%20function()%20%7B%0Aif%20(this.if)%20%7B%0Aif%20(!this.ctor)%20%7B%0Athis._wrapTextNodes(this._content%20%7C%7C%20this.content)%3B%0Athis.templatize(this)%3B%0A%7D%0Athis._ensureInstance()%3B%0Athis._hideTemplateChildren%20%3D%20false%3B%0A%7D%20else%20if%20(this.restamp)%20%7B%0Athis._teardownInstance()%3B%0A%7D%0Aif%20(!this.restamp%20%26%26%20this._instance)%20%7B%0Athis._hideTemplateChildren%20%3D%20!this.if%3B%0A%7D%0Aif%20(this.if%20!%3D%20this._lastIf)%20%7B%0Athis.fire(%22dom-change%22)%3B%0Athis._lastIf%20%3D%20this.if%3B%0A%7D%0A%7D%2C%0A_ensureInstance%3A%20function()%20%7B%0Aif%20(!this._instance)%20%7B%0Athis._instance%20%3D%20this.stamp()%3B%0Avar%20root%20%3D%20this._instance.root%3B%0Avar%20parent%20%3D%20Polymer.dom(Polymer.dom(this).parentNode)%3B%0Aparent.insertBefore(root%2C%20this)%3B%0A%7D%0A%7D%2C%0A_teardownInstance%3A%20function()%20%7B%0Aif%20(this._instance)%20%7B%0Avar%20c%20%3D%20this._instance._children%3B%0Aif%20(c)%20%7B%0Avar%20parent%20%3D%20Polymer.dom(Polymer.dom(c%5B0%5D).parentNode)%3B%0Ac.forEach(function(n)%20%7B%0Aparent.removeChild(n)%3B%0A%7D)%3B%0A%7D%0Athis._instance%20%3D%20null%3B%0A%7D%0A%7D%2C%0A_wrapTextNodes%3A%20function(root)%20%7B%0Afor%20(var%20n%20%3D%20root.firstChild%3B%20n%3B%20n%20%3D%20n.nextSibling)%20%7B%0Aif%20(n.nodeType%20%3D%3D%3D%20Node.TEXT_NODE)%20%7B%0Avar%20s%20%3D%20document.createElement(%22span%22)%3B%0Aroot.insertBefore(s%2C%20n)%3B%0As.appendChild(n)%3B%0An%20%3D%20s%3B%0A%7D%0A%7D%0A%7D%2C%0A_hideChildren%3A%20function(hidden)%20%7B%0Aif%20(this._instance)%20%7B%0Avar%20c%24%20%3D%20this._instance._children%3B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20c%24.length%3B%20i%2B%2B)%20%7B%0Avar%20c%20%3D%20c%24%5Bi%5D%3B%0Ac.style.display%20%3D%20hidden%20%3F%20%22none%22%20%3A%20%22%22%3B%0Ac._hideTemplateChildren%20%3D%20hidden%3B%0A%7D%0A%7D%0A%7D%2C%0A_forwardParentProp%3A%20function(prop%2C%20value)%20%7B%0Aif%20(this._instance)%20%7B%0Athis._instance%5Bprop%5D%20%3D%20value%3B%0A%7D%0A%7D%2C%0A_forwardParentPath%3A%20function(path%2C%20value)%20%7B%0Aif%20(this._instance)%20%7B%0Athis._instance.notifyPath(path%2C%20value%2C%20true)%3B%0A%7D%0A%7D%0A%7D)%3B%0A%0APolymer.ImportStatus%20%3D%20%7B%0A_ready%3A%20false%2C%0A_callbacks%3A%20%5B%5D%2C%0AwhenLoaded%3A%20function(cb)%20%7B%0Aif%20(this._ready)%20%7B%0Acb()%3B%0A%7D%20else%20%7B%0Athis._callbacks.push(cb)%3B%0A%7D%0A%7D%2C%0A_importsLoaded%3A%20function()%20%7B%0Athis._ready%20%3D%20true%3B%0Athis._callbacks.forEach(function(cb)%20%7B%0Acb()%3B%0A%7D)%3B%0Athis._callbacks%20%3D%20%5B%5D%3B%0A%7D%0A%7D%3B%0A%0Awindow.addEventListener(%22load%22%2C%20function()%20%7B%0APolymer.ImportStatus._importsLoaded()%3B%0A%7D)%3B%0A%0Aif%20(window.HTMLImports)%20%7B%0AHTMLImports.whenReady(function()%20%7B%0APolymer.ImportStatus._importsLoaded()%3B%0A%7D)%3B%0A%7D%0A%0APolymer(%7B%0Ais%3A%20%22dom-bind%22%2C%0A%22extends%22%3A%20%22template%22%2C%0Acreated%3A%20function()%20%7B%0APolymer.ImportStatus.whenLoaded(this._readySelf.bind(this))%3B%0A%7D%2C%0A_registerFeatures%3A%20function()%20%7B%0Athis._prepExtends()%3B%0Athis._prepConstructor()%3B%0A%7D%2C%0A_insertChildren%3A%20function()%20%7B%0Avar%20parentDom%20%3D%20Polymer.dom(Polymer.dom(this).parentNode)%3B%0AparentDom.insertBefore(this.root%2C%20this)%3B%0A%7D%2C%0A_removeChildren%3A%20function()%20%7B%0Aif%20(this._children)%20%7B%0Afor%20(var%20i%20%3D%200%3B%20i%20%3C%20this._children.length%3B%20i%2B%2B)%20%7B%0Athis.root.appendChild(this._children%5Bi%5D)%3B%0A%7D%0A%7D%0A%7D%2C%0A_initFeatures%3A%20function()%20%7B%7D%2C%0A_scopeElementClass%3A%20function(element%2C%20selector)%20%7B%0Aif%20(this.dataHost)%20%7B%0Areturn%20this.dataHost._scopeElementClass(element%2C%20selector)%3B%0A%7D%20else%20%7B%0Areturn%20selector%3B%0A%7D%0A%7D%2C%0A_prepConfigure%3A%20function()%20%7B%0Avar%20config%20%3D%20%7B%7D%3B%0Afor%20(var%20prop%20in%20this._propertyEffects)%20%7B%0Aconfig%5Bprop%5D%20%3D%20this%5Bprop%5D%3B%0A%7D%0Athis._setupConfigure%20%3D%20this._setupConfigure.bind(this%2C%20config)%3B%0A%7D%2C%0Aattached%3A%20function()%20%7B%0Aif%20(!this._children)%20%7B%0Athis._template%20%3D%20this%3B%0Athis._prepAnnotations()%3B%0Athis._prepEffects()%3B%0Athis._prepBehaviors()%3B%0Athis._prepConfigure()%3B%0Athis._prepBindings()%3B%0APolymer.Base._initFeatures.call(this)%3B%0Athis._children%20%3D%20Array.prototype.slice.call(this.root.childNodes)%3B%0A%7D%0Athis._insertChildren()%3B%0Athis.fire(%22dom-change%22)%3B%0A%7D%2C%0Adetached%3A%20function()%20%7B%0Athis._removeChildren()%3B%0A%7D%0A%7D)%3B%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-2.js%0A
6 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-content%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09url%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09contentid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09cssclass%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09%2F%2F%20replace%20'%2F'%20with%20'.'%0A%09%09%09var%20find%20%3D%20'%2F'%3B%0A%09%09%09var%20re%20%3D%20new%20RegExp(find%2C%20'g')%3B%0A%09%09%09var%20url%20%3D%20this.url.replace(re%2C%20'.')%3B%0A%09%09%09%0A%09%09%09%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09%2F%2F%20xhr%0A%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09xhr.open('GET'%2C%20encodeURI('templates%2Fpage%2F'%20%2B%20url%20%2B%20'.html'))%3B%0A%09%09%09%0A%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%20%20%20%20if%20(xhr.status%20%3D%3D%3D%20200)%20%7B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%09var%20data%20%3D%20xhr.responseText%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%20%20%20%20%2F%2F%20replace%20imagesURL%20with%20url%0A%09%09%09%09%09data%20%3D%20respond.site.replaceAll(data%2C%20'%7B%7Bsite.ImagesUrl%7D%7D'%2C%20respond.site.settings.ImagesUrl)%3B%0A%09%09%09%09%09data%20%3D%20respond.site.replaceAll(data%2C%20'%7B%7Bsite.ImagesURL%7D%7D'%2C%20respond.site.settings.ImagesUrl)%3B%0A%09%09%09%09%0A%09%09%09%09%09%2F%2F%20place%20returned%20HTML%20into%20a%20node%0A%09%09%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09%09%09%0A%09%09%09%09%09if(this.contentid%20!%3D%20''%20%26%26%20this.contentid%20!%3D%20undefined)%7B%0A%09%09%09%09%09%09div.setAttribute('id'%2C%20this.contentid)%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09if(this.cssclass%20!%3D%20''%20%26%26%20this.cssclass%20!%3D%20undefined)%7B%0A%09%09%09%09%09%09div.setAttribute('class'%2C%20this.cssclass)%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09div.innerHTML%20%3D%20data%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20apply%20to%20light%20dom%0A%09%09%09%09%09Polymer.dom(context).appendChild(div)%3B%0A%09%09%09%09%09Polymer.dom.flush()%0A%09%09%09%09%09%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20else%20%7B%0A%09%09%09%20%20%20%20%20%20%20%20console.log('%5Brespond.error%5D%20respond-content%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%7D%3B%0A%09%09%09xhr.send()%3B%20%0A%09%09%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-3.js%0A
2 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-meta%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09photo%3A%20%7B%20type%3A%20String%20%7D%2C%20%0A%09%20%20%09%09first%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09last%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09date%3A%20%7B%20type%3A%20String%20%7D%2C%20%0A%09%20%20%09%09url%3A%20%7B%20type%3A%20String%20%7D%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20labels%20%0A%09%09%09this.label%20%3D%20%7B%0A%09%09%09%09lastModifiedBy%3A%20this.i18n('Last%20modified%20by')%2C%0A%09%09%09%09permanentLink%3A%20this.i18n('Permanent%20Link')%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09this.hasPhoto%20%3D%20false%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20photo%0A%09%09%09if(this.photo%20!%3D%20''%20%26%26%20this.photo%20!%3D%20undefined%20%26%26%20this.photo%20!%3D%20null)%7B%0A%09%09%09%09this.hasPhoto%20%3D%20true%3B%0A%09%09%09%09this.photo%20%3D%20respond.site.settings.ImagesUrl%20%2B%20'files%2Fthumbs%2F'%20%2B%20this.photo%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20create%20meta%0A%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09var%20cssClass%20%3D%20'respond-meta-container'%3B%0A%09%09%09%0A%09%09%09%2F%2F%20add%20image%0A%09%09%09if(this.hasPhoto%20%3D%3D%20true)%7B%0A%09%09%09%09cssClass%20%2B%3D%20'%20has-photo'%3B%0A%09%09%09%09%0A%09%09%09%09var%20image%20%3D%20document.createElement('img')%3B%0A%09%09%09%09image.setAttribute('src'%2C%20this.photo)%3B%0A%09%09%09%09%0A%09%09%09%09div.appendChild(image)%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20add%20author%20information%0A%09%09%09var%20p%20%3D%20document.createElement('p')%3B%0A%09%09%09p.innerHTML%20%2B%3D%20this.label.lastModifiedBy%20%2B%20'%20'%20%2B%20this.first%20%2B%20'%20'%20%2B%20this.last%20%2B%20'%20%26ndash%3B%20'%20%2B%20this.date%3B%0A%09%09%09%0A%09%09%09%2F%2F%20add%20permanent%20link%0A%09%09%09if(this.url%20!%3D%20''%20%26%26%20this.url%20!%3D%20undefined)%7B%0A%09%09%09%09var%20a%20%3D%20document.createElement('a')%3B%0A%09%09%09%09a.setAttribute('href'%2C%20this.url)%3B%0A%09%09%09%09a.innerHTML%20%3D%20this.label.permanentLink%3B%0A%09%09%09%09%0A%09%09%09%09p.appendChild(a)%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20append%20span%0A%09%09%09div.appendChild(p)%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20css%20class%0A%09%09%09div.setAttribute('class'%2C%20cssClass)%3B%0A%09%09%09%0A%09%09%09%2F%2F%20apply%20to%20local%20dom%0A%09%09%09Polymer.dom(this.root).appendChild(div)%3B%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20translate%20%20%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-4.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-list%22%2C%0A%09%20%20%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09type%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09display%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09pagesize%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09orderby%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09pageresults%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09tag%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20labels%0A%09%09%09this.label%20%3D%20%7B%0A%09%09%09%09previous%3A%20this.i18n('Previous')%2C%0A%09%09%09%09next%3A%20this.i18n('Next')%2C%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20page%20information%0A%09%09%09this.pageId%20%3D%20document.body.getAttribute('page')%3B%0A%09%09%09this.siteId%20%3D%20respond.site.settings.SiteId%3B%0A%09%09%09this.api%20%3D%20respond.site.settings.API%3B%0A%09%09%09this.images%20%3D%20respond.site.settings.ImagesUrl%3B%0A%09%09%09this.pageResults%20%3D%20(this.pageresults%20%3D%3D%3D%20'true')%3B%0A%09%09%09this.currentIndex%20%3D%200%3B%0A%09%09%09this.list%20%3D%20%5B%5D%3B%0A%09%09%09this.count%20%3D%200%3B%0A%09%09%09this.numberOfPages%20%3D%201%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20display%0A%09%09%09this.showPager%20%3D%20false%3B%0A%09%09%09this.showPrevious%20%3D%20false%3B%0A%09%09%09this.showNext%20%3D%20false%3B%0A%09%09%09%0A%09%09%09%2F%2F%20show%20pager%0A%09%09%09if(this.pageresults%20%3D%3D%3D%20'true')%7B%0A%09%09%09%09this.showPager%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20init%20tag%20if%20undefined%0A%09%09%09if(this.tag%20%3D%3D%20undefined)%7B%0A%09%09%09%09this.tag%20%3D%20''%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20setup%20map%0A%09%09%09if(this.display%20%3D%3D%20'list-map')%7B%0A%09%09%09%0A%09%09%09%09%2F%2F%20add%20map%09%0A%09%09%09%09var%20container%20%3D%20document.createElement('div')%3B%0A%09%09%09%09container.setAttribute('class'%2C%20'respond-map')%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20add%20map%20to%20local%20dom%0A%09%09%09%09Polymer.dom(this.root).insertBefore(container%2C%20this.%24.items)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20google%20map%0A%09%09%09%09var%20options%20%3D%20%7B%0A%09%09%09%20%20%20%20%20%20center%3A%20new%20google.maps.LatLng(38.6272%2C%2090.1978)%2C%0A%09%09%09%20%20%20%20%20%20zoom%3A%208%2C%0A%09%09%09%20%20%20%20%20%20mapTypeId%3A%20google.maps.MapTypeId.ROADMAP%0A%09%09%09%20%20%20%20%7D%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%2F%2F%20setup%20map%20and%20bounds%0A%09%09%09%09this.map%20%3D%20new%20google.maps.Map(container%2C%20options)%3B%0A%09%09%09%09this.bounds%20%3D%20new%20google.maps.LatLngBounds()%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20setup%20calendar%0A%09%09%09if(this.display%20%3D%3D%20'list-calendar')%7B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20add%20calendar%09%0A%09%09%09%09var%20container%20%3D%20document.createElement('div')%3B%0A%09%09%09%09container.setAttribute('class'%2C%20'respond-calendar')%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20add%20map%20to%20local%20dom%0A%09%09%09%09Polymer.dom(this.root).insertBefore(container%2C%20this.%24.items)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20calendar%0A%09%09%09%09this.calendar%20%3D%20container%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20build%20calendar%0A%09%09%09%09var%20now%20%3D%20moment()%3B%0A%09%09%0A%09%09%09%09this.buildCalendar(now%2C%202)%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20get%20the%20%23%20of%20pages%20and%20build%20the%20list%0A%09%09%09this.getNumberOfPages()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20build%20the%20list%20of%20pages%0A%09%09%09this.buildList(this.currentIndex)%3B%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20navigates%20to%20a%20page%20when%20clicked%0A%09%09gotoPage%3Afunction(e)%7B%0A%09%09%09var%20index%20%3D%20this.%24.pager.itemForElement(e.target).title%3B%0A%09%09%09%0A%09%09%09this.buildList(index-1)%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20navigate%20to%20previous%20page%0A%09%09previousPage%3Afunction()%7B%0A%09%09%09this.buildList(this.currentIndex-1)%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20navigate%20to%20next%20page%0A%09%09nextPage%3Afunction()%7B%0A%09%09%09this.buildList(this.currentIndex%2B1)%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20show%20previous%20and%20next%20buttons%0A%09%09showPreviousNext%3Afunction()%7B%0A%09%09%0A%09%09%09%2F%2F%20set%20next%20and%20previous%0A%09%09%09if(this.pageresults%20%3D%3D%3D%20'true')%7B%0A%09%09%09%0A%09%09%09%09%2F%2F%20set%20next%0A%09%09%09%09if(this.currentIndex%20%3C%20(this.numberOfPages%20-%201))%7B%0A%09%09%09%09%09this.showNext%20%3D%20true%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%7B%0A%09%09%09%09%09this.showNext%20%3D%20false%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20previous%0A%09%09%09%09if(this.currentIndex%20!%3D%200)%7B%0A%09%09%09%09%09this.showPrevious%20%3D%20true%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%7B%0A%09%09%09%09%09this.showPrevious%20%3D%20false%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20gets%20the%20number%20of%20pages%0A%09%09getNumberOfPages%3Afunction(current)%7B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20context%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20params%0A%09%09%09var%20params%20%3D%20%7B%0A%09%09%09%09siteId%3A%20this.siteId%2C%0A%09%09%09%09type%3A%20this.type%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20submit%20form%0A%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20URI%0A%09%09%09var%20uri%20%3D%20this.api%20%2B%20'%2Fpage%2Fpublished%2Fcount'%3B%0A%09%09%09%0A%09%09%09xhr.open('POST'%2C%20encodeURI(uri))%3B%0A%09%09%09xhr.setRequestHeader('Content-Type'%2C%20'application%2Fx-www-form-urlencoded')%3B%0A%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%20%20%20%20if(xhr.status%20%3D%3D%3D%20200)%7B%0A%09%09%09%20%20%20%20%09var%20data%20%3D%20JSON.parse(xhr.responseText)%3B%0A%09%09%09%20%20%20%20%09%0A%09%09%09%20%20%20%20%09context.count%20%3D%20data.count%3B%0A%09%09%09%09%09context.numberOfPages%20%3D%20Math.ceil(data.count%20%2F%20context.pagesize)%3B%0A%09%09%09%09%0A%09%09%09%09%09%2F%2F%20build%20the%20pager%0A%09%09%09%09%09context.buildPager()%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20else%20if(xhr.status%20!%3D%3D%20200)%7B%0A%09%09%09%20%20%20%20%09context.loading%20%3D%20false%3B%0A%09%09%09%20%20%20%20%20%20%20%20console.log('%5Brespond.error%5D%20respond-list-blog%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20serialize%20the%20data%0A%09%09%20%20%20%20var%20qs%20%3D%20%5B%5D%3B%0A%09%09%20%20%20%20%0A%09%09%20%20%20%20for(p%20in%20params)%7B%0A%09%09%09%20%20%20%20qs.push(encodeURIComponent(p)%20%2B%20%22%3D%22%20%2B%20encodeURIComponent(params%5Bp%5D))%3B%0A%09%09%20%20%20%20%7D%0A%09%09%20%20%20%20%0A%09%09%20%20%20%20qs%20%3D%20qs.join(%22%26%22)%3B%0A%09%09%20%20%20%20%0A%09%09%09%2F%2F%20send%20serialized%20data%0A%09%09%09xhr.send(encodeURI(qs))%3B%0A%09%09%09%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20build%20pager%0A%09%09buildPager%3Afunction()%7B%0A%09%09%0A%09%09%09%2F%2F%20clear%20list%0A%09%09%09this.list%20%3D%20%5B%5D%3B%0A%09%09%0A%09%09%09%2F%2F%20build%20pager%0A%09%09%09for(x%20%3D%200%3B%20x%20%3C%20this.numberOfPages%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09isActive%20%3D%20false%3B%0A%09%09%09%0A%09%09%09%09if(x%20%3D%3D%20this.currentIndex)%7B%0A%09%09%09%09%09isActive%20%3D%20true%3B%0A%09%09%09%09%7D%0A%09%09%09%0A%09%09%09%09this.push('list'%2C%20%7B%0A%09%09%09%09%09'title'%3A%20(x%2B1)%2C%0A%09%09%09%09%09'isActive'%3A%20isActive%0A%09%09%09%09%09%7D)%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20show%20previous%2Fnext%0A%09%09%09this.showPreviousNext()%3B%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20build%20list%0A%09%09buildList%3Afunction(currentIndex)%7B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20params%0A%09%09%09var%20params%20%3D%20%7B%0A%09%09%09%09siteId%3A%20this.siteId%2C%0A%09%09%09%09type%3A%20this.type%2C%0A%09%09%09%09pagesize%3A%20this.pagesize%2C%0A%09%09%09%09current%3A%20this.current%2C%0A%09%09%09%09orderby%3A%20this.orderby%2C%0A%09%09%09%09tag%3A%20this.tag%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20current%20index%0A%09%09%09this.currentIndex%20%3D%20currentIndex%3B%0A%09%09%09params.current%20%3D%20currentIndex%3B%0A%09%09%09%0A%09%09%09%2F%2F%20re-build%20the%20pager%0A%09%09%09this.buildPager()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20clear%20items%20in%20the%20list%0A%09%09%09var%20items%20%3D%20Polymer.dom(this.%24.items).querySelectorAll('respond-list-item')%3B%0A%09%09%09%0A%09%09%09for(x%20%3D%200%3B%20x%3Citems.length%3B%20x%2B%2B)%7B%0A%09%09%09%09Polymer.dom(this.%24.items).removeChild(items%5Bx%5D)%3B%0A%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%09%2F%2F%20show%20previous%20and%20next%0A%09%09%09this.showPreviousNext()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20loading%0A%09%09%09this.loading%20%3D%20true%3B%0A%09%09%09%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09%2F%2F%20submit%20form%0A%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20URI%0A%09%09%09var%20uri%20%3D%20this.api%20%2B%20'%2Fpage%2Fpublished%2Flist'%3B%0A%09%09%09%0A%09%09%09xhr.open('POST'%2C%20encodeURI(uri))%3B%0A%09%09%09xhr.setRequestHeader('Content-Type'%2C%20'application%2Fx-www-form-urlencoded')%3B%0A%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%20%20%20%20if(xhr.status%20%3D%3D%3D%20200)%7B%0A%09%09%09%20%20%20%20%09var%20data%20%3D%20JSON.parse(xhr.responseText)%3B%0A%09%09%09%20%20%20%20%09%0A%09%09%09%20%20%20%20%09%2F%2F%20set%20class%20for%20data%0A%09%09%09%09%09for(x%3D0%3B%20x%3Cdata.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20setup%20callout%0A%09%09%09%09%09%09var%20callout%20%3D%20data%5Bx%5D.Callout%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20set%20photo%09%0A%09%09%09%09%09%09var%20photo%20%3D%20''%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%09if(data%5Bx%5D.Photo%20!%3D%20null)%7B%0A%09%09%09%09%09%09%09photo%20%3D%20data%5Bx%5D.Photo%3B%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20add%20location%20the%20map%0A%09%09%09%09%09%09if(context.display%20%3D%3D%20'list-map')%7B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%2F%2F%20setup%20callout%0A%09%09%09%09%09%09%09callout%20%3D%20data%5Bx%5D.Location%20%2B%20'%20'%20%2B%20callout%3B%20%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%2F%2F%20add%20point%20to%20the%20map%0A%09%09%09%09%09%09%09context.addPoint(data%5Bx%5D.Name%2C%20data%5Bx%5D.Location%2C%20data%5Bx%5D.Description%2C%20data%5Bx%5D.Url%2C%20data%5Bx%5D.LatLong)%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20add%20event%20to%20calendar%0A%09%09%09%09%09%09if(context.display%20%3D%3D%20'list-calendar')%7B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%2F%2F%20add%20event%20to%20the%20calendar%5C%0A%09%09%09%09%09%09%09var%20m_begin%20%3D%20moment(data%5Bx%5D.BeginDate%2C%20%22YYYY-MM-DD%20HH%3Amm%3Ass%22)%3B%0A%09%09%09%09%09%09%09var%20m_end%20%3D%20moment(data%5Bx%5D.EndDate%2C%20%22YYYY-MM-DD%20HH%3Amm%3Ass%22)%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%2F%2F%20create%20time%20display%0A%09%09%09%09%09%09%09var%20time%20%3D%20m_begin.format('h%3Amm%20a')%20%2B%20'%20-%20'%20%2B%20m_end.format('h%3Amm%20a')%3B%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%2F%2F%20create%20content%20for%20event%0A%09%09%09%09%09%09%09var%20content%20%3D%20'%3Ch4%3E%3Ca%20href%3D%22'%20%2B%20data%5Bx%5D.Url%20%2B%20'%22%3E'%20%2B%20data%5Bx%5D.Name%20%2B%20'%3C%2Fa%3E%3C%2Fh4%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09%09%09%09%09'%3Ch5%3E'%20%2B%20time%20%2B%20'%3C%2Fh5%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09%09%09%09%09'%3Cp%3E'%20%2B%20data%5Bx%5D.Description%20%2B%20'%3C%2Fp%3E'%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%2F%2F%20add%20a%20point%20to%20the%20calendar%0A%09%09%09%09%09%09%09context.addEvent(data%5Bx%5D.BeginDate%2C%20data%5Bx%5D.EndDate%2C%20content)%3B%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20create%20a%20list%20item%0A%09%09%09%09%09%09var%20item%20%3D%20document.createElement('respond-list-item')%3B%0A%09%09%09%09%09%09item.setAttribute('display'%2C%20context.display)%3B%0A%09%09%09%09%09%09item.setAttribute('thumb'%2C%20data%5Bx%5D.Thumb)%3B%0A%09%09%09%09%09%09item.setAttribute('url'%2C%20data%5Bx%5D.Url)%3B%0A%09%09%09%09%09%09item.setAttribute('name'%2C%20data%5Bx%5D.Name)%3B%0A%09%09%09%09%09%09item.setAttribute('callout'%2C%20callout)%3B%0A%09%09%09%09%09%09item.setAttribute('description'%2C%20data%5Bx%5D.Description)%3B%0A%09%09%09%09%09%09item.setAttribute('photo'%2C%20photo)%3B%0A%09%09%09%09%09%09item.setAttribute('first'%2C%20data%5Bx%5D.FirstName)%3B%0A%09%09%09%09%09%09item.setAttribute('last'%2C%20data%5Bx%5D.LastName)%3B%0A%09%09%09%09%09%09item.setAttribute('date'%2C%20data%5Bx%5D.LastModified)%3B%0A%09%09%09%09%09%09item.setAttribute('fullurl'%2C%20respond.site.settings.Domain%20%2B%20%20'%2F'%20%2B%20data%5Bx%5D.Url)%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20append%20list%20item%20to%20the%20dom%0A%09%09%09%09%09%09Polymer.dom(context.%24.items).appendChild(item)%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20set%20loading%0A%09%09%09%09%09context.loading%20%3D%20false%3B%0A%09%09%09%09%09%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20else%20if(xhr.status%20!%3D%3D%20200)%7B%0A%09%09%09%20%20%20%20%09context.loading%20%3D%20false%3B%0A%09%09%09%20%20%20%20%20%20%20%20console.log('%5Brespond.error%5D%20respond-list-blog%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20serialize%20the%20data%0A%09%09%20%20%20%20var%20qs%20%3D%20%5B%5D%3B%0A%09%09%20%20%20%20%0A%09%09%20%20%20%20for(p%20in%20params)%7B%0A%09%09%09%20%20%20%20qs.push(encodeURIComponent(p)%20%2B%20%22%3D%22%20%2B%20encodeURIComponent(params%5Bp%5D))%3B%0A%09%09%20%20%20%20%7D%0A%09%09%20%20%20%20%0A%09%09%20%20%20%20qs%20%3D%20qs.join(%22%26%22)%3B%0A%09%09%20%20%20%20%0A%09%09%09%2F%2F%20send%20serialized%20data%0A%09%09%09xhr.send(encodeURI(qs))%3B%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20adds%20a%20point%20to%20the%20map%0A%09%09addPoint%3A%20function(name%2C%20location%2C%20description%2C%20url%2C%20latLong)%7B%0A%09%09%09%0A%09%09%09%2F%2F%20defaults%0A%09%09%09var%20latitude%20%3D%20null%3B%0A%09%09%09var%20longitude%20%3D%20null%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20latitude%20and%20longitude%0A%09%09%09if(latLong%20!%3D%20null)%7B%0A%09%0A%09%09%09%09var%20point%20%3D%20latLong.replace('POINT('%2C%20'').replace(')'%2C%20'')%3B%0A%09%09%09%09var%20arr%20%3D%20point.split('%20')%3B%0A%09%0A%09%09%09%09%2F%2F%20set%20latitude%20and%20longitude%0A%09%09%09%09latitude%20%3D%20arr%5B0%5D%3B%0A%09%09%09%09longitude%20%3D%20arr%5B1%5D%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(latitude%20!%3D%20null%20%26%26%20longitude%20!%3D%20null)%7B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20content%20for%20map%0A%09%09%09%09var%20content%20%3D%20'%3Cdiv%20class%3D%22map-marker-content%20content%22%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09'%3Ch4%3E%3Ca%20href%3D%22'%20%2B%20url%20%2B%20'%22%3E'%20%2B%20name%20%2B%20'%3C%2Fa%3E%3C%2Fh4%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09'%3Ch5%3E'%20%2B%20location%20%2B%20'%3C%2Fh5%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09'%3Cp%3E'%20%2B%20description%20%2B%20'%3C%2Fp%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09'%3C%2Fdiv%3E'%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20coords%0A%09%09%09%20%20%20%20var%20coords%20%3D%20new%20google.maps.LatLng(latitude%2C%20longitude)%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%2F%2F%20create%20info%20window%0A%09%09%09%20%20%20%20var%20infowindow%20%3D%20new%20google.maps.InfoWindow(%7B%0A%09%09%09%20%20%20%20%20%20%20%20content%3A%20content%0A%09%09%09%20%20%20%20%7D)%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%2F%2F%20create%20marker%0A%09%09%09%20%20%20%20var%20marktext%20%3D%20%24(%22%3Cdiv%2F%3E%22).html(content).text()%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%2F%2F%20create%20marker%0A%09%09%09%20%20%20%20var%20marker%20%3D%20new%20google.maps.Marker(%7B%0A%09%09%09%20%20%20%20%20%20%20%20position%3A%20coords%2C%0A%09%09%09%20%20%20%20%20%20%20%20map%3A%20this.map%2C%0A%09%09%09%20%20%20%20%20%20%20%20title%3A%20marktext%0A%09%09%09%20%20%20%20%7D)%3B%0A%09%09%09%20%20%20%0A%09%09%09%09%2F%2F%20handle%20click%20of%20marker%20(future)%0A%09%09%09%09google.maps.event.addListener(marker%2C%20'click'%2C%20function()%20%7B%0A%09%09%09%09%09infowindow.open(this.map%2C%20marker)%3B%0A%09%09%09%09%09%7D)%3B%0A%09%0A%09%09%09%09%2F%2F%20extend%20the%20bounds%20of%20the%20amp%0A%09%09%09%20%20%20%20this.bounds.extend(marker.position)%3B%0A%09%09%09%20%20%20%20this.map.fitBounds(this.bounds)%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20builds%20a%20calendar%0A%09%09buildCalendar%3Afunction(m_start%2C%20weeks)%7B%0A%09%0A%09%09%09%2F%2F%20set%20begin%20and%20end%0A%09%09%09var%20m_start%20%3D%20m_start.startOf('day')%3B%0A%09%09%09var%20m_end%20%3D%20moment(m_start).startOf('day').add('days'%2C%20weeks*7)%3B%0A%09%09%0A%09%09%09%2F%2F%20build%20weekdays%0A%09%09%09var%20days%20%3D%20moment.weekdaysShort()%3B%0A%09%09%0A%09%09%09var%20container%20%3D%20'%3Cdiv%20class%3D%22respond-calendar-container%22%3E'%3B%0A%09%09%0A%09%09%09var%20day%20%3D%20parseInt(m_start.format('d'))%3B%0A%09%09%0A%09%09%09%2F%2F%20create%20title%0A%09%09%09var%20title%20%3D%20'%3Cdiv%20class%3D%22title%22%3E'%20%2B%0A%09%09%09%09%09%09%20m_start.format('dddd%2C%20MMMM%20Do')%20%2B%20'%20-%20'%20%2B%20m_end.format('dddd%2C%20MMMM%20Do')%20%2B%0A%09%09%09%09%09%09%20'%3Ci%20class%3D%22prev%20fa%20fa-angle-left%22%20'%20%2B%0A%09%09%09%09%09%09%20'data-start%3D%22'%20%2B%20m_start.format('YYYY-MM-DD%20HH%3Amm%3Ass')%20%2B%20'%22%20data-weeks%3D%22'%20%2B%20weeks%20%2B%20'%22%20'%20%2B%0A%09%09%09%09%09%09%20'%3E%3C%2Fi%3E'%20%2B%0A%09%09%09%09%09%09%20'%3Ci%20class%3D%22next%20fa%20fa-angle-right%22%20'%20%2B%0A%09%09%09%09%09%09%20'data-start%3D%22'%20%2B%20m_start.format('YYYY-MM-DD%20HH%3Amm%3Ass')%20%2B%20'%22%20data-weeks%3D%22'%20%2B%20weeks%20%2B%20'%22%20'%20%2B%0A%09%09%09%09%09%09%20'%3E%3C%2Fi%3E'%20%2B%0A%09%09%09%09%09%09%20'%3C%2Fdiv%3E'%0A%09%09%0A%09%09%09%2F%2F%20create%20header%20(weeks)%0A%09%09%09var%20header%20%3D%20%20'%3Cdiv%20class%3D%22header%22%3E'%3B%0A%09%09%0A%09%09%09for(x%3D0%3B%20x%3Cdays.length%3B%20x%2B%2B)%7B%0A%09%09%09%09header%20%2B%3D%20'%3Cspan%3E'%20%2B%20days%5Bx%5D%20%2B%20'%3C%2Fspan%3E'%3B%0A%09%09%09%7D%0A%09%09%0A%09%09%09header%20%2B%3D%20'%3C%2Fdiv%3E'%3B%0A%09%09%0A%09%09%09container%20%2B%3D%20'%3Cdiv%20class%3D%22week%22%3E'%3B%0A%09%09%0A%09%09%09var%20pastDate%20%3D%20true%3B%0A%09%09%09var%20cssClass%20%3D%20''%3B%0A%09%09%0A%09%09%0A%09%09%09for(x%3D0%3B%20x%3C(7*weeks)%2Bday%2B1%3B%20x%2B%2B)%7B%0A%09%09%0A%09%09%09%09%2F%2F%20create%20offset%0A%09%09%09%09var%20offset%20%3D%20x%20-%20day%3B%0A%09%09%0A%09%09%09%09%2F%2F%20get%20date%0A%09%09%09%09var%20curr_date%20%3D%20moment(m_start).add('days'%2C%20offset)%3B%0A%09%09%0A%09%09%09%09%2F%2F%20current%20day%0A%09%09%09%09var%20curr_day%20%3D%20parseInt(curr_date.format('d'))%3B%0A%09%09%0A%09%09%09%09%2F%2F%20difference%20b%2Fw%20days%0A%09%09%20%20%20%20%20%20%20%20var%20diff%20%3D%20curr_date.diff(m_start%2C%20'days')%3B%0A%09%09%20%20%20%20%20%20%20%20%0A%09%09%09%09if(diff%20%3E%3D%200)%7B%0A%09%09%09%09%09cssClass%20%3D%20'%20active'%3B%0A%09%09%09%09%7D%0A%09%09%0A%09%09%09%09if(moment(curr_date).isSame(moment()%2C%20'day'))%7B%0A%09%09%09%09%09cssClass%20%2B%3D%20'%20today'%3B%0A%09%09%09%09%7D%0A%09%09%20%20%20%20%20%20%20%20%0A%09%09%09%09if(offset%3D%3D0)%7B%0A%09%09%09%09%09container%20%2B%3D%20'%3Cspan%20class%3D%22day'%2BcssClass%2B'%22%20data-date%3D%22'%2Bcurr_date.format('YYYY-MM-DD')%2B'%22%3E'%3B%0A%09%09%09%09%09pastDate%20%3D%20true%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%7B%0A%09%09%09%09%09container%20%2B%3D%20'%3Cspan%20class%3D%22day'%2BcssClass%2B'%22%20data-date%3D%22'%2Bcurr_date.format('YYYY-MM-DD')%2B'%22%3E'%3B%0A%09%09%09%09%7D%0A%09%09%0A%09%09%09%09container%20%2B%3D%20'%3Cspan%20class%3D%22day-number%22%3E'%2Bcurr_date.format('D')%20%2B%20'%3C%2Fspan%3E'%3B%0A%09%09%0A%09%09%09%09container%20%2B%3D%20'%3C%2Fspan%3E'%3B%0A%09%09%0A%09%09%09%09if((x%2B1)%257%3D%3D0)%7B%0A%09%09%09%09%09container%2B%3D'%3C%2Fdiv%3E%3Cdiv%20class%3D%22week%22%3E'%3B%0A%09%09%09%09%7D%0A%09%09%0A%09%09%20%20%20%20%7D%0A%09%09%0A%09%09%20%20%20%20container%20%2B%3D%20'%3C%2Fdiv%3E%3C%2Fdiv%3E'%3B%0A%09%09%20%20%20%20%0A%09%09%20%20%20%20var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%20%20%20%20div.innerHTML%20%3D%20title%2Bheader%2Bcontainer%3B%0A%09%09%20%20%20%20%0A%09%09%20%20%20%20%2F%2F%20append%20the%20contents%20to%20the%20calendar%0A%09%09%20%20%20%20Polymer.dom(this.calendar).appendChild(div)%3B%0A%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20adds%20an%20event%20to%20the%20calendar%0A%09%09addEvent%3Afunction(beginDate%2C%20endDate%2C%20content)%7B%0A%09%0A%09%09%09if(beginDate%20!%3D%20null)%7B%0A%09%0A%09%09%09%09%2F%2F%20create%20begin%20and%20end%20from%20moment%0A%09%09%09%09var%20m_begin%20%3D%20moment(beginDate%2C%20%22YYYY-MM-DD%20HH%3Amm%3Ass%22)%3B%0A%09%09%09%09var%20m_end%20%3D%20moment(endDate%2C%20%22YYYY-MM-DD%20HH%3Amm%3Ass%22)%3B%0A%09%09%09%0A%09%09%09%09var%20el%20%3D%20Polymer.dom(this.calendar).querySelector('%5Bdata-date%3D%22'%2Bm_begin.format('YYYY-MM-DD')%2B'%22%5D')%3B%0A%09%09%09%0A%09%09%09%09if(el%20!%3D%20undefined)%7B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20create%20element%0A%09%09%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09%09%09div.setAttribute('class'%2C%20'event')%3B%0A%09%09%09%09%09div.innerHTML%20%3D%20content%3B%0A%09%09%09%09%09%0A%09%09%09%09%09Polymer.dom(el).appendChild(div)%3B%0A%09%09%09%09%7D%0A%09%09%09%0A%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20translations%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-5.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-list-item%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09display%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09thumb%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09url%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09name%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09callout%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09description%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09photo%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09first%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09last%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09date%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09fullurl%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09if(this.display%20%3D%3D%20'list-blog')%7B%0A%09%09%09%0A%09%09%09%09%2F%2F%20create%20a%20post%0A%09%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09%09div.setAttribute('class'%2C%20'blog-post')%3B%0A%09%09%09%0A%09%09%09%09%2F%2F%20create%20the%20content%20element%0A%09%09%09%09var%20content%20%3D%20document.createElement('respond-content')%3B%0A%09%09%09%09content.setAttribute('url'%2C%20this.url)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20meta%20element%0A%09%09%09%09var%20meta%20%3D%20document.createElement('respond-meta')%3B%0A%09%09%09%09meta.setAttribute('photo'%2C%20this.photo)%3B%0A%09%09%09%09meta.setAttribute('first'%2C%20this.first)%3B%0A%09%09%09%09meta.setAttribute('last'%2C%20this.last)%3B%0A%09%09%09%09meta.setAttribute('date'%2C%20this.date)%3B%0A%09%09%09%09meta.setAttribute('fullurl'%2C%20this.fullurl)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20append%20content%20and%20meta%0A%09%09%09%09div.appendChild(content)%3B%0A%09%09%09%09div.appendChild(meta)%3B%0A%09%09%09%0A%09%09%09%09%2F%2F%20append%20the%20div%0A%09%09%09%09Polymer.dom(this.root).appendChild(div)%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09else%20if(this.display%20%3D%3D%20'list-thumbnails')%7B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20a%20thumbnail%0A%09%09%09%09var%20a%20%3D%20document.createElement('a')%3B%0A%09%09%09%09a.setAttribute('class'%2C%20'respond-thumbnail')%3B%0A%09%09%09%09a.setAttribute('href'%2C%20this.url)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20image%0A%09%09%09%09if(this.thumb%20!%3D%20''%20%26%26%20this.thumb%20!%3D%20undefined)%7B%0A%09%09%09%09%09cssClass%20%2B%3D%20'%20has-image'%3B%0A%09%09%09%09%09%0A%09%09%09%09%09var%20img%20%3D%20document.createElement('img')%3B%0A%09%09%09%09%09img.setAttribute('src'%2C%20respond.site.settings.ImagesUrl%20%2B%20this.thumb)%3B%0A%09%09%09%09%09%0A%09%09%09%09%09a.appendChild(img)%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20title%0A%09%09%09%09var%20h4%20%3D%20document.createElement('h4')%3B%0A%09%09%09%09h4.innerHTML%20%3D%20this.name%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20append%20h4%0A%09%09%09%09a.appendChild(h4)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20h5%0A%09%09%09%09if(this.callout%20!%3D%20''%20%26%26%20this.callout%20!%3D%20undefined)%7B%0A%09%09%09%09%09var%20h5%20%3D%20document.createElement('h5')%3B%0A%09%09%09%09%09h5.innerHTML%20%3D%20this.callout%3B%0A%09%09%09%09%09%0A%09%09%09%09%09a.appendChild(h5)%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20append%20the%20thumbnail%0A%09%09%09%09Polymer.dom(this.root).appendChild(a)%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%0A%09%09%09%09%2F%2F%20create%20a%20list%20item%20(%3Crespond-list-item%3E)%0A%09%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09%09var%20cssClass%20%3D%20'respond-list-item-container'%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20setup%20thumb%0A%09%09%09%09if(this.thumb%20!%3D%20''%20%26%26%20this.thumb%20!%3D%20undefined)%7B%0A%09%09%09%09%09cssClass%20%2B%3D%20'%20has-image'%3B%0A%09%09%09%09%09%0A%09%09%09%09%09var%20img%20%3D%20document.createElement('img')%3B%0A%09%09%09%09%09img.setAttribute('src'%2C%20respond.site.settings.ImagesUrl%20%2B%20this.thumb)%3B%0A%09%09%09%09%09%0A%09%09%09%09%09div.appendChild(img)%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20title%0A%09%09%09%09var%20h4%20%3D%20document.createElement('h4')%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20link%0A%09%09%09%09var%20a%20%3D%20document.createElement('a')%3B%0A%09%09%09%09a.setAttribute('href'%2C%20this.url)%3B%0A%09%09%09%09a.innerHTML%20%3D%20this.name%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20append%20a%0A%09%09%09%09h4.appendChild(a)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20append%20h4%0A%09%09%09%09div.appendChild(h4)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20h5%0A%09%09%09%09if(this.callout%20!%3D%20''%20%26%26%20this.callout%20!%3D%20undefined)%7B%0A%09%09%09%09%09var%20h5%20%3D%20document.createElement('h5')%3B%0A%09%09%09%09%09h5.innerHTML%20%3D%20this.callout%3B%0A%09%09%09%09%09%0A%09%09%09%09%09div.appendChild(h5)%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20p%0A%09%09%09%09if(this.description%20!%3D%20''%20%26%26%20this.description%20!%3D%20undefined)%7B%0A%09%09%09%09%09var%20p%20%3D%20document.createElement('p')%3B%0A%09%09%09%09%09p.innerHTML%20%3D%20this.description%3B%0A%09%09%09%09%09%0A%09%09%09%09%09div.appendChild(p)%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20class%0A%09%09%09%09div.setAttribute('class'%2C%20cssClass)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20append%20the%20div%0A%09%09%09%09Polymer.dom(this.root).appendChild(div)%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-6.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-search-toggle%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09this.showSearch%20%3D%20respond.site.settings.ShowSearch%3B%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20toggle%20search%0A%09%09toggleSearch%3A%20function()%7B%0A%09%09%0A%09%09%09%2F%2F%20fire%20search%20toggle%0A%09%09%09this.fire('search-toggled')%3B%0A%09%09%20%20%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-7.js%0A
0 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-search%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20labels%0A%09%09%09this.label%20%3D%20%7B%0A%09%09%09%09noResults%3A%20this.i18n('No%20results%20found')%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20initialize%0A%09%09%09this.results%20%3D%20%5B%5D%3B%0A%09%09%09this.showSearch%20%3D%20false%3B%0A%09%09%09this.showResults%20%3D%20false%3B%0A%09%09%09this.showNoResults%20%3D%20false%3B%0A%09%09%09this.loading%20%3D%20false%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20direction%0A%09%09%09this.dir%20%3D%20respond.site.settings.Direction%3B%0A%09%09%09%0A%09%09%09if(sessionStorage%5B'respond-direction'%5D%20!%3D%20null)%7B%0A%09%09%09%09this.dir%20%3D%20sessionStorage%5B'respond-direction'%5D%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20context%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09%2F%2F%20wait%20for%20toggle%20event%0A%09%09%20%20%09var%20items%20%3D%20document.querySelectorAll('respond-search-toggle')%3B%0A%09%09%09%0A%09%09%20%20%09for(x%3D0%3B%20x%3Citems.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09%2F%2F%20toggle%20search%0A%09%09%09%09items%5Bx%5D.addEventListener('search-toggled'%2C%20function(e)%20%7B%0A%09%09%09%0A%09%09%09%09%09if(context.showSearch%20%3D%3D%20true)%7B%0A%09%09%09%09%09%09context.close()%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09else%7B%0A%09%09%09%09%09%09context.open()%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D)%3B%0A%09%09%09%09%20%20%0A%09%09%09%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20opens%20the%20search%0A%09%09open%3A%20function()%7B%0A%09%09%0A%09%09%09this.showSearch%20%3D%20true%3B%0A%09%09%09this.results%20%3D%20%5B%5D%3B%0A%09%09%09this.showResults%20%3D%20false%3B%0A%09%09%09this.%24.searchText.value%20%3D%20''%3B%0A%09%09%09this.showNoResults%20%3D%20false%3B%0A%09%09%09respond.site.searchVisible%20%3D%20false%3B%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20closes%20the%20search%0A%09%09close%3A%20function()%7B%0A%09%09%0A%09%09%09this.showSearch%20%3D%20false%3B%0A%09%09%09this.results%20%3D%20%5B%5D%3B%0A%09%09%09this.showResults%20%3D%20false%3B%0A%09%09%09this.%24.searchText.value%20%3D%20''%3B%0A%09%09%09this.showNoResults%20%3D%20false%3B%0A%09%09%09respond.site.searchVisible%20%3D%20false%3B%0A%09%09%09%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20performs%20a%20search%0A%09%09search%3A%20function(e%2C%20d%2C%20s)%7B%0A%09%09%0A%09%09%09%2F%2F%20get%20search%20and%20language%20%20%0A%09%09%09this.text%20%3D%20this.%24.searchText.value%3B%0A%09%09%09this.siteId%20%3D%20respond.site.settings.SiteId%3B%0A%09%09%09this.language%20%3D%20respond.site.settings.Language%3B%0A%09%09%09this.api%20%3D%20respond.site.settings.API%3B%0A%09%09%09this.loading%20%3D%20true%3B%0A%09%09%09this.showResults%20%3D%20true%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20params%0A%09%09%09var%20params%20%3D%20%7B%0A%09%09%09%09siteId%3A%20this.siteId%2C%0A%09%09%09%09locale%3A%20this.language%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09%2F%2F%20submit%20form%0A%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20URI%0A%09%09%09var%20uri%20%3D%20this.api%20%2B%20'%2Ftranslation%2Fretrieve'%3B%0A%09%09%09%0A%09%09%09xhr.open('POST'%2C%20encodeURI(uri))%3B%0A%09%09%09xhr.setRequestHeader('Content-Type'%2C%20'application%2Fx-www-form-urlencoded')%3B%0A%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%20%20%20%20if(xhr.status%20%3D%3D%3D%20200)%7B%0A%09%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%09context.results%20%3D%20%5B%5D%3B%0A%09%09%09%09%0A%09%09%09%09%09var%20data%20%3D%20JSON.parse(xhr.responseText)%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20set%20class%20for%20data%0A%09%09%09%09%09for(x%20in%20data)%7B%0A%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20pages%20are%20stored%20in%20objects%0A%09%09%09%09%09%09if(typeof(data%5Bx%5D)%20%3D%3D%20'object')%7B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09var%20includeOnly%20%3D%20false%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%2F%2F%20set%20include%20only%0A%09%09%09%09%09%09%09if(data%5Bx%5D%5B'includeOnly'%5D%20!%3D%20undefined%20%26%26%20data%5Bx%5D%5B'includeOnly'%5D%20!%3D%20null)%7B%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09if(data%5Bx%5D%5B'includeOnly'%5D%20%3D%3D%201)%7B%0A%09%09%09%09%09%09%09%09%09includeOnly%20%3D%20true%3B%0A%09%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%2F%2F%20check%20for%20results%20in%20non-includeOnly%20pages%0A%09%09%09%09%09%09%09if(includeOnly%20%3D%3D%20false)%7B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%2F%2F%20this%20is%20what%20will%20be%20returned%0A%09%09%09%09%09%09%09%09var%20result%20%3D%20%7B%0A%09%09%09%09%09%09%09%09%09PageId%3A%20x%2C%0A%09%09%09%09%09%09%09%09%09Name%3A%20data%5Bx%5D%5B'name'%5D%2C%0A%09%09%09%09%09%09%09%09%09Url%3A%20data%5Bx%5D%5B'url'%5D%2C%0A%09%09%09%09%09%09%09%09%09Description%3A%20data%5Bx%5D%5B'description'%5D%0A%09%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%2F%2F%20walk%20through%20data%5Bx%5D%0A%09%09%09%09%09%09%09%09for(y%20in%20data%5Bx%5D)%7B%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%09var%20text%20%3D%20data%5Bx%5D%5By%5D.toLowerCase()%3B%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%09%2F%2F%20searh%20for%20the%20term%0A%09%09%09%09%09%09%09%09%09if(text.search(new%20RegExp(context.text.toLowerCase()%2C%20'i'))%20!%3D%20-1)%7B%0A%09%09%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%09%09%2F%2F%20push%20found%20pages%0A%09%09%09%09%09%09%09%09%09%09context.push('results'%2C%20result)%3B%0A%09%09%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%09%09break%3B%0A%09%09%09%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%0A%09%09%09%09%09%2F%2F%20set%20noResults%0A%09%09%09%09%09if(context.results.length%20%3D%3D%200)%7B%0A%09%09%09%09%09%09context.showNoResults%20%3D%20true%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09else%7B%0A%09%09%09%09%09%09context.showNoResults%20%3D%20false%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20set%20loading%0A%09%09%09%09%09context.loading%20%3D%20false%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20else%20if(xhr.status%20!%3D%3D%20200)%7B%0A%09%09%09%20%20%20%20%09context.loading%20%3D%20false%3B%0A%09%09%09%20%20%20%20%20%20%20%20console.log('%5Brespond.error%5D%20respond-search%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20serialize%20the%20data%0A%09%09%09var%20qs%20%3D%20%5B%5D%3B%0A%09%09%09%0A%09%09%09for(p%20in%20params)%7B%0A%09%09%09%20%20%20%20qs.push(encodeURIComponent(p)%20%2B%20%22%3D%22%20%2B%20encodeURIComponent(params%5Bp%5D))%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09qs%20%3D%20qs.join(%22%26%22)%3B%0A%09%09%09%0A%09%09%09%2F%2F%20send%20serialized%20data%0A%09%09%09xhr.send(encodeURI(qs))%3B%0A%09%09%09%0A%09%09%09e.preventDefault()%3B%0A%09%09%09return%20false%3B%0A%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-8.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-form%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09formid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09type%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09action%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09success%3A%20%7B%20%0A%09%20%20%09%09%09type%3A%20String%2C%20%0A%09%20%20%09%09%09value%3A%20'Form%20submitted%20successfully'%0A%09%20%20%09%09%7D%2C%0A%09%20%20%09%09error%3A%20%7B%20%0A%09%20%20%09%09%09type%3A%20String%2C%20%0A%09%20%20%09%09%09value%3A%20'There%20was%20an%20error%20submitting%20your%20form'%20%0A%09%20%20%09%09%7D%2C%0A%09%20%20%09%09submit%3A%20%7B%20%0A%09%20%20%09%09%09type%3A%20String%2C%0A%09%20%20%09%09%09value%3A%20'Submit'%0A%09%20%20%09%09%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09%2F%2F%20defaults%0A%09%09%09this.loading%20%3D%20false%3B%0A%09%09%09this.showSuccess%20%3D%20false%3B%0A%09%09%09this.showError%20%3D%20false%3B%0A%09%09%0A%09%09%09%2F%2F%20translate%20messages%0A%09%09%09this.success%20%3D%20this.i18n(this.success)%3B%0A%09%09%09this.error%20%3D%20this.i18n(this.error)%3B%0A%09%09%09this.submit%20%3D%20this.i18n(this.submit)%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20handles%20the%20form%20submit%0A%09%09submitForm%3A%20function(event%2C%20detail%2C%20sender)%7B%0A%09%09%09%0A%09%09%09%2F%2F%20init%20messages%0A%09%09%09this.showSuccess%20%3D%20false%3B%0A%09%09%09this.showError%20%3D%20false%3B%0A%09%09%09this.loading%20%3D%20false%3B%0A%09%09%09%0A%09%09%09%2F%2F%20select%20all%20inputs%20in%20the%20local%20DOM%0A%09%09%09var%20groups%20%3D%20Polymer.dom(this).querySelectorAll('.form-group')%3B%0A%09%09%09%0A%09%09%09%2F%2F%20initialize%20params%0A%09%09%09var%20params%20%3D%20%7B%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20page%20information%0A%09%09%09var%20pageId%20%3D%20document.body.getAttribute('page')%3B%0A%09%09%09var%20siteId%20%3D%20respond.site.settings.SiteId%3B%0A%09%09%09var%20api%20%3D%20respond.site.settings.API%3B%0A%09%09%09%0A%09%09%09%2F%2F%20add%20page%20and%20site%0A%09%09%09params%5B'pageId'%5D%20%3D%20pageId%3B%0A%09%09%09params%5B'siteId'%5D%20%3D%20siteId%3B%0A%09%09%09params%5B'formId'%5D%20%3D%20this.formid%3B%0A%09%09%09%0A%09%09%09%2F%2F%20walk%20through%20inputs%0A%09%09%09for(x%3D0%3B%20x%3Cgroups.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20get%20name%2C%20id%2C%20type%0A%09%09%09%09var%20label%20%3D%20groups%5Bx%5D.getAttribute('data-label')%3B%0A%09%09%09%09var%20id%20%3D%20groups%5Bx%5D.getAttribute('data-id')%3B%0A%09%09%09%09var%20type%20%3D%20groups%5Bx%5D.getAttribute('data-type')%3B%0A%09%09%09%09var%20required%20%3D%20groups%5Bx%5D.getAttribute('data-required')%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20get%20value%20by%20type%0A%09%09%09%09var%20value%20%3D%20''%3B%0A%09%09%09%09%0A%09%09%09%09if(type%20%3D%3D%20'text')%7B%0A%09%09%09%09%09value%20%3D%20groups%5Bx%5D.querySelector('input').value%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%20if(type%20%3D%3D%20'textarea')%7B%0A%09%09%09%09%09value%20%3D%20groups%5Bx%5D.querySelector('textarea').value%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%20if(type%20%3D%3D%20'radiolist')%7B%0A%09%09%09%09%09var%20radio%20%3D%20groups%5Bx%5D.querySelector('input%5Btype%3Dradio%5D%3Achecked')%3B%0A%09%09%09%09%09%0A%09%09%09%09%09if(radio%20!%3D%20null)%7B%0A%09%09%09%09%09%09value%20%3D%20radio.value%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%09else%20if(type%20%3D%3D%20'select')%7B%0A%09%09%09%09%09value%20%3D%20groups%5Bx%5D.querySelector('select').value%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%20if(type%20%3D%3D%20'checkboxlist')%7B%0A%09%09%09%09%09var%20checkboxes%20%3D%20groups%5Bx%5D.querySelectorAll('input%5Btype%3Dcheckbox%5D%3Achecked')%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20create%20comma%20separated%20list%0A%09%09%09%09%09for(y%3D0%3B%20y%3Ccheckboxes.length%3B%20y%2B%2B)%7B%0A%09%09%09%09%09%09value%20%2B%3D%20checkboxes%5By%5D.value%20%2B%20'%2C%20'%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20remove%20trailing%20comma%20and%20space%0A%09%09%09%09%09if(value%20!%3D%20'')%7B%0A%09%09%09%09%09%09value%20%3D%20value.slice(0%2C%20-2)%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09params%5Bid%5D%20%3D%20value%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20check%20required%20fields%0A%09%09%09%09if(required%20%3D%3D%20'true'%20%26%26%20value%20%3D%3D%20'')%7B%0A%09%09%09%09%09this.showError%20%3D%20true%3B%0A%09%09%09%09%09groups%5Bx%5D.className%20%2B%3D%20'%20has-error'%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20exit%20if%20error%0A%09%09%09if(this.showError%20%3D%3D%20true)%7B%0A%09%09%09%09return%20false%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20loading%0A%09%09%09this.loading%20%3D%20true%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20context%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09%2F%2F%20submit%20form%0A%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20URI%0A%09%09%09var%20uri%20%3D%20api%20%2B%20'%2Fform'%3B%0A%09%09%09%0A%09%09%09xhr.open('POST'%2C%20encodeURI(uri))%3B%0A%09%09%09xhr.setRequestHeader('Content-Type'%2C%20'application%2Fx-www-form-urlencoded')%3B%0A%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%20%20%20%20if(xhr.status%20%3D%3D%3D%20200)%7B%0A%09%09%09%20%20%20%20%09%2F%2F%20clear%20form%2C%20hide%20loading%0A%09%09%09%20%20%20%20%09context.loading%20%3D%20false%3B%0A%09%09%09%20%20%20%20%09context.showSuccess%20%3D%20true%3B%0A%09%09%09%20%20%20%20%09context.clearForm()%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20else%20if(xhr.status%20!%3D%3D%20200)%7B%0A%09%09%09%20%20%20%20%09context.loading%20%3D%20false%3B%0A%09%09%09%20%20%20%20%20%20%20%20console.log('%5Brespond.error%5D%20respond-form%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20serialize%20the%20data%0A%09%09%20%20%20%20var%20qs%20%3D%20%5B%5D%3B%0A%09%09%20%20%20%20%0A%09%09%20%20%20%20for(p%20in%20params)%7B%0A%09%09%09%20%20%20%20qs.push(encodeURIComponent(p)%20%2B%20%22%3D%22%20%2B%20encodeURIComponent(params%5Bp%5D))%3B%0A%09%09%20%20%20%20%7D%0A%09%09%20%20%20%20%0A%09%09%20%20%20%20qs%20%3D%20qs.join(%22%26%22)%3B%0A%09%09%20%20%20%20%0A%09%09%09%2F%2F%20send%20serialized%20data%0A%09%09%09xhr.send(encodeURI(qs))%3B%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20clears%20the%20form%20on%20submit%0A%09%09clearForm%3Afunction()%7B%0A%09%09%0A%09%09%09%2F%2F%20clear%20text%20fields%0A%09%09%09var%20els%20%3D%20Polymer.dom(this).querySelectorAll('input%5Btype%3Dtext%5D')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Cels.length%3B%20x%2B%2B)%7B%0A%09%09%09%09els%5Bx%5D.value%20%3D%20''%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20clear%20text%20ares%0A%09%09%09var%20els%20%3D%20this.querySelectorAll('textarea')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Cels.length%3B%20x%2B%2B)%7B%0A%09%09%09%09els%5Bx%5D.value%20%3D%20''%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20clear%20checkboxes%0A%09%09%09var%20els%20%3D%20Polymer.dom(this).querySelectorAll('input%5Btype%3Dcheckbox%5D')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Cels.length%3B%20x%2B%2B)%7B%0A%09%09%09%09els%5Bx%5D.checked%20%3D%20false%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20clear%20radios%0A%09%09%09var%20els%20%3D%20Polymer.dom(this).querySelectorAll('input%5Btype%3Dradio%5D')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Cels.length%3B%20x%2B%2B)%7B%0A%09%09%09%09els%5Bx%5D.checked%20%3D%20false%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20reset%20selects%0A%09%09%09var%20els%20%3D%20Polymer.dom(this).querySelectorAll('select')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Cels.length%3B%20x%2B%2B)%7B%0A%09%09%09%09els%5Bx%5D.selectedIndex%20%3D%200%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-9.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-form-field%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09fieldid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09type%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09label%3A%20%7B%20%0A%09%20%20%09%09%09type%3A%20String%2C%0A%09%20%20%09%09%09value%3A%20''%0A%09%20%20%09%09%7D%2C%0A%09%20%20%09%09required%3A%20%7B%0A%09%20%20%09%09%09type%3A%20String%2C%0A%09%20%20%09%09%09value%3A%20''%0A%09%20%20%09%09%7D%2C%0A%09%20%20%09%09helper%3A%20%7B%0A%09%20%20%09%09%09type%3A%20String%2C%0A%09%20%20%09%09%09value%3A%20''%0A%09%20%20%09%09%7D%2C%0A%09%20%20%09%09placeholder%3A%20%7B%20%0A%09%20%20%09%09%09type%3A%20String%2C%0A%09%20%20%09%09%09value%3A%20''%0A%09%20%20%09%09%7D%2C%0A%09%20%20%09%09cssclass%3A%20%7B%20%0A%09%20%20%09%09%09type%3A%20String%2C%0A%09%20%20%09%09%09value%3A%20''%0A%09%20%20%09%09%7D%2C%0A%09%20%20%09%09options%3A%20%7B%20%0A%09%20%20%09%09%09type%3A%20String%2C%0A%09%20%20%09%09%09value%3A%20''%0A%09%20%20%09%09%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09%2F%2F%20set%20label%0A%09%09%09var%20html%20%3D%20'%3Clabel%20for%3D%22'%20%2B%20this.fieldid%20%2B%20'%22'%3B%20%0A%09%09%09var%20prefix%20%3D%20''%3B%0A%09%09%09var%20pageId%20%3D%20document.body.getAttribute('page')%3B%0A%09%09%0A%09%09%09if(this.fieldid%20!%3D%20null)%7B%0A%09%0A%09%09%09%09%2F%2F%20get%20pageId%0A%09%09%09%09prefix%20%3D%20pageId%20%2B%20'.'%3B%0A%09%09%09%0A%09%09%09%09html%20%2B%3D%20'id%3D%22'%20%2B%20this.fieldid%20%2B%20'-label%22%20class%3D%22control-label%22%20data-i18n%3D%22'%20%2B%20prefix%20%2B%20this.fieldid%20%2B%20'-label%22%3E'%3B%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%09html%20%2B%3D%20'%3E'%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09html%20%2B%3D%20this.label%20%2B%20'%3C%2Flabel%3E'%3B%0A%09%09%09%0A%09%09%09var%20req%20%3D%20''%3B%0A%09%09%09%0A%09%09%09if(this.required%20%3D%3D%20'true')%7B%0A%09%09%09%09req%20%3D%20'%20required'%3B%0A%09%09%09%7D%0A%09%0A%09%09%09%2F%2F%20create%20textbox%0A%09%09%09if(this.type%3D%3D'text')%7B%0A%09%09%09%09html%20%2B%3D%20'%3Cinput%20id%3D%22'%20%2B%20this.fieldid%20%2B%20'%22%20name%3D%22'%20%2B%20this.fieldid%20%2B%20%0A%09%09%09%09%09%09'%22%20type%3D%22text%22%20class%3D%22form-control%22%20placeholder%3D%22'%2Bthis.placeholder%2B'%22'%20%2B%20req%20%2B%0A%09%09%09%09%09%09'%3E'%3B%0A%09%09%09%7D%0A%09%0A%09%09%09%2F%2F%20create%20textarea%0A%09%09%09if(this.type%3D%3D'textarea')%7B%0A%09%09%09%09html%20%2B%3D%20'%3Ctextarea%20id%3D%22'%20%2B%20this.fieldid%20%2B%20'%22%20name%3D%22'%20%2B%20this.fieldid%20%2B%20'%22%20class%3D%22form-control%22'%20%2B%20req%20%2B%20%0A%09%09%09%09%09%09'%3E%3C%2Ftextarea%3E'%3B%0A%09%09%09%7D%0A%09%0A%09%09%09%2F%2F%20create%20select%0A%09%09%09if(this.type%3D%3D'select')%7B%0A%09%09%09%09html%20%2B%3D%20'%3Cselect%20id%3D%22'%20%2B%20this.fieldid%20%2B%20'%22%20name%3D%22'%20%2B%20this.fieldid%20%2B%20'%22%20class%3D%22form-control%22'%20%2B%20req%20%2B%20%0A%09%09%09%09'%3E'%3B%0A%09%0A%09%09%09%09var%20arr%20%3D%20this.options.split('%2C')%3B%0A%09%0A%09%09%09%09for(x%3D0%3B%20x%3Carr.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%0A%09%09%09%09%09if(this.id%20!%3D%20null)%7B%0A%09%09%09%09%09%09html%20%2B%3D%20'%3Coption%20id%3D%22'%20%2B%20this.fieldid%20%2B%20'-option'%20%2B%20(x%2B1)%20%2B%20'%22%20data-i18n%3D%22'%20%2B%20prefix%20%2B%20this.fieldid%20%2B%20'-option'%20%2B%20(x%2B1)%20%2B%20'%22%3E'%20%2B%20arr%5Bx%5D.trim()%20%2B%20'%3C%2Foption%3E'%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09else%7B%0A%09%09%20%20%09%09%09%09html%20%2B%3D%20'%3Coption%3E'%20%2B%20arr%5Bx%5D.trim()%20%2B%20'%3C%2Foption%3E'%3B%0A%09%09%20%20%09%09%09%7D%0A%09%09%09%09%7D%0A%09%0A%09%09%09%09html%20%2B%3D%20'%3C%2Fselect%3E'%0A%09%09%09%7D%0A%09%0A%09%09%09%2F%2F%20create%20checkboxlist%0A%09%09%09if(this.type%3D%3D'checkboxlist')%7B%0A%09%09%09%09html%20%2B%3D%20'%3Cspan%20class%3D%22checkbox%20list%22%3E'%3B%0A%09%0A%09%09%09%09var%20arr%20%3D%20this.options.split('%2C')%3B%0A%09%0A%09%09%09%09for(x%3D0%3B%20x%3Carr.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%09%0A%09%09%09%09%09var%20val%20%3D%20arr%5Bx%5D.trim()%3B%0A%09%09%09%09%0A%09%09%20%20%09%09%09html%20%2B%3D%20'%3Clabel%20class%3D%22checkbox%22%3E%3Cinput%20name%3D%22'%20%2B%20this.fieldid%20%2B%20'%22%20type%3D%22checkbox%22%20value%3D%22'%20%2B%20arr%5Bx%5D.trim()%20%2B%20'%22%3E'%3B%0A%09%09%20%20%09%09%09%0A%09%09%20%20%09%09%09if(this.fieldid%20!%3D%20null)%7B%0A%09%09%09%20%20%09%09%09html%20%2B%3D%20'%3Cspan%20id%3D%22'%20%2B%20this.fieldid%20%2B%20'-checkbox'%20%2B%20(x%2B1)%20%2B%20'%22%20data-i18n%3D%22'%20%2B%20prefix%20%2B%20this.fieldid%20%2B%20'-checkbox'%20%2B%20(x%2B1)%20%2B%20'%22%3E'%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09else%7B%0A%09%09%09%09%09%09html%20%2B%3D%20'%3Cspan%3E'%3B%0A%09%09%09%09%09%7D%0A%09%09%20%20%09%09%09%09%0A%09%09%20%20%09%09%09html%20%2B%3D%20arr%5Bx%5D.trim()%20%2B%20'%3C%2Fspan%3E%3C%2Flabel%3E'%3B%0A%09%09%09%09%7D%0A%09%0A%09%09%09%09html%20%2B%3D%20'%3C%2Fspan%3E'%3B%0A%09%09%09%7D%0A%09%0A%09%09%09%2F%2F%20create%20radio%20list%0A%09%09%09if(this.type%3D%3D'radiolist')%7B%0A%09%09%09%09html%20%2B%3D%20'%3Cspan%20class%3D%22radio%20list%22%3E'%3B%0A%09%0A%09%09%09%09var%20arr%20%3D%20this.options.split('%2C')%3B%0A%09%0A%09%09%09%09for(x%3D0%3B%20x%3Carr.length%3B%20x%2B%2B)%7B%0A%09%09%20%20%09%09%09html%20%2B%3D%20'%3Clabel%20class%3D%22radio%22%3E%3Cinput%20name%3D%22'%20%2B%20this.fieldid%20%2B%20'%22%20type%3D%22radio%22%20value%3D%22'%20%2B%20arr%5Bx%5D.trim()%20%2B%20'%22%20name%3D%22'%20%2B%20this.fieldid%20%2B%20'%22%3E'%3B%0A%09%09%20%20%09%09%09%0A%09%09%20%20%09%09%09if(this.fieldid%20!%3D%20null)%7B%0A%09%09%09%20%20%09%09%09html%20%2B%3D%20'%3Cspan%20id%3D%22'%20%2B%20this.fieldid%20%2B%20'-radio'%20%2B%20(x%2B1)%20%2B%20'%22%20data-i18n%3D%22'%20%2B%20prefix%20%2B%20this.fieldid%20%2B%20'-radio'%20%2B%20(x%2B1)%20%2B%20'%22%3E'%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09else%7B%0A%09%09%09%09%09%09html%20%2B%3D%20'%3Cspan%3E'%3B%0A%09%09%09%09%09%7D%0A%09%09%20%20%09%09%09%09%0A%09%09%20%20%09%09%09html%20%2B%3D%20arr%5Bx%5D.trim()%20%2B%20'%3C%2Fspan%3E%3C%2Flabel%3E'%3B%0A%09%09%09%09%7D%0A%09%0A%09%09%09%09html%20%2B%3D%20'%3C%2Fspan%3E'%3B%0A%09%09%09%7D%0A%09%0A%09%09%09%2F%2F%20create%20helper%0A%09%09%09if(this.helper%20!%3D%20'')%20%7B%0A%09%09%09%0A%09%09%09%09if(this.fieldid%20!%3D%20null)%7B%0A%09%09%20%20%09%09%09html%20%2B%3D%20'%3Cspan%20id%3D%22'%20%2B%20this.fieldid%20%2B%20'-help%22%20data-i18n%3D%22'%20%2B%20prefix%20%2B%20this.fieldid%20%2B%20'-help%22%20class%3D%22help-block%22%3E'%20%2B%20this.helper%20%2B%20'%3C%2Fspan%3E'%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%7B%0A%09%09%09%09%09html%20%2B%3D%20'%3Cspan%20class%3D%22help-block%22%3E'%20%2B%20this.helper%20%2B%20'%3C%2Fspan%3E'%3B%0A%09%09%09%09%7D%0A%09%09%20%20%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20create%20field%0A%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09div.setAttribute('data-id'%2C%20this.fieldid)%3B%0A%09%09%09div.setAttribute('data-label'%2C%20this.label)%3B%0A%09%09%09div.setAttribute('data-type'%2C%20this.type)%3B%0A%09%09%09div.setAttribute('data-required'%2C%20this.required)%3B%0A%09%09%09div.setAttribute('class'%2C%20'form-group')%3B%0A%09%09%09div.innerHTML%20%3D%20html%3B%0A%09%09%09%0A%09%09%09%2F%2F%20append%20to%20the%20light%20dom%0A%09%09%09Polymer.dom(this).appendChild(div)%3B%0A%09%09%09%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-10.js%0A
0 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-map%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09address%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09zoom%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09%2F%2F%20labels%0A%09%09%09this.label%20%3D%20%7B%0A%09%09%09%09getDirections%3A%20this.i18n('Get%20Directions')%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20url%0A%09%09%09this.url%20%3D%20'http%3A%2F%2Fmaps.google.com%2F%3Fq%3D'%20%2B%20this.address%3B%0A%09%09%0A%09%09%09%2F%2F%20set%20zoom%0A%09%09%09var%20defaultZoom%20%3D%208%3B%09%0A%09%0A%09%09%09if(this.zoom%20!%3D%20'auto'%20%26%26%20this.zoom%20!%3D%20undefined)%7B%0A%09%09%09%09defaultZoom%20%3D%20parseInt(this.zoom)%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20create%20the%20map%0A%09%09%09var%20mapOptions%20%3D%20%7B%0A%09%09%09%09center%3A%20new%20google.maps.LatLng(38.6272%2C%2090.1978)%2C%0A%09%09%09%09zoom%3A%20defaultZoom%2C%0A%09%09%09%09mapTypeId%3A%20google.maps.MapTypeId.ROADMAP%0A%09%09%20%20%20%20%7D%3B%0A%09%09%0A%09%09%09%2F%2F%20create%20the%20map%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%09%09%09var%20container%20%3D%20this.%24.mapContainer%3B%0A%09%09%09%0A%09%09%09%2F%2F%20create%20map%20and%20bounds%0A%09%09%20%20%20%20var%20map%20%3D%20new%20google.maps.Map(container%2C%20mapOptions)%3B%0A%09%09%20%20%20%20%0A%09%09%09%2F%2F%20look%20for%20a%20default%20address%0A%09%09%09if(this.address%20!%3D%20null%20%26%26%20this.address%20!%3D%20undefined)%7B%0A%09%09%09%0A%09%09%09%20%20%20%20%2F%2F%20geo-code%20the%20address%0A%09%09%09%20%20%20%20var%20geocoder%20%3D%20new%20google.maps.Geocoder()%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20var%20context%20%3D%20this%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20geocoder.geocode(%7B'address'%3A%20this.address%7D%2C%20function(results%2C%20status)%7B%0A%09%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%20%20%20%20if%20(status%20%3D%3D%20google.maps.GeocoderStatus.OK)%7B%0A%09%09%09%09%20%20%20%20%20%20%20%20%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20var%20latitude%20%3D%20results%5B0%5D.geometry.location.lat()%3B%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20var%20longitude%20%3D%20results%5B0%5D.geometry.location.lng()%3B%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20var%20content%20%3D%20results%5B0%5D.formatted_address%3B%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20var%20coords%20%3D%20new%20google.maps.LatLng(latitude%2C%20longitude)%3B%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20var%20infowindow%20%3D%20new%20google.maps.InfoWindow(%7B%0A%09%09%09%09%09%20%20%20%20%20%20%20%20content%3A%20content%0A%09%09%09%09%09%20%20%20%20%7D)%3B%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20create%20marker%09%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20var%20marktext%20%3D%20'%3Cdiv%3E'%20%2B%20content%20%2B%20'%3C%2Fdiv%3E'%3B%0A%09%09%09%20%20%20%20%20%20%20%20%20%20%20%20%0A%09%09%09%09%09%20%20%20%20var%20marker%20%3D%20new%20google.maps.Marker(%7B%0A%09%09%09%09%09%20%20%20%20%20%20%20%20position%3A%20coords%2C%0A%09%09%09%09%09%20%20%20%20%20%20%20%20map%3A%20map%2C%0A%09%09%09%09%09%20%20%20%20%20%20%20%20title%3A%20marktext%0A%09%09%09%09%09%20%20%20%20%7D)%3B%0A%09%09%09%09%09%20%20%20%20%0A%09%09%09%09%09%20%20%20%20google.maps.event.addListener(marker%2C%20'click'%2C%20function()%20%7B%0A%09%09%09%09%09%20%20%20%20%09infowindow.open(map%2C%20marker)%3B%0A%09%09%09%09%09%09%09%7D)%3B%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09map.setCenter(coords)%3B%0A%09%0A%09%09%09%20%20%20%20%20%20%20%20%7D%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%7D)%3B%0A%09%09%09%20%20%20%20%0A%09%09%20%20%20%20%7D%0A%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-11.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-menu%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09menuid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09class%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09type%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%0A%09%09%09%2F%2F%20xhr%0A%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09xhr.open('GET'%2C%20encodeURI('data%2Fmenu-'%20%2B%20this.type%20%2B%20'.json'))%3B%0A%09%09%09%0A%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%20%20%20%20if%20(xhr.status%20%3D%3D%3D%20200)%20%7B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%09var%20data%20%3D%20JSON.parse(xhr.responseText)%3B%0A%09%09%09%09%09var%20pageId%20%3D%20document.body.getAttribute('page')%3B%0A%09%09%09%09%09var%20menu%20%3D%20''%3B%0A%09%09%09%09%09%0A%09%09%09%09%09var%20flagActive%20%3D%20false%3B%0A%09%09%09%09%09var%20flagParent%20%3D%20false%3B%0A%09%09%09%09%09%0A%09%09%09%09%09for(x%3D0%3B%20x%3Cdata.length%3B%20x%2B%2B)%20%7B%09%09%09%09%0A%09%09%09%09%09%09var%20item%20%3D%20data%5Bx%5D%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09if(data%5Bx%2B1%5D%20!%3D%20undefined)%20%7B%0A%09%09%09%09%09%09%09if%20(data%5Bx%2B1%5D.IsNested%20%3D%3D%201)%20%09flagParent%20%3D%20true%3B%09%09%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09if%20(item.PageId%20%3D%3D%20pageId)%20%09%09flagActive%20%3D%20true%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09if%20(!flagParent)%20%7B%0A%09%09%09%09%09%09%09menu%20%2B%3D%20'%3Cli%20'%20%2B%20(%20flagActive%20%3F%20'class%3D%22active%22'%20%3A%20''%20)%20%2B%20'%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09%09'%3Ca%20href%3D%22'%20%2B%20item.Url%20%2B%20'%22%3E'%20%2B%20item.Name%20%2B%20'%3C%2Fa%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09'%3C%2Fli%3E'%3B%0A%09%09%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09%09%09var%20nestedMenu%20%3D%20''%3B%0A%09%0A%09%09%09%09%09%09%09for%20(y%3Dx%2B1%3B%20y%3Cdata.length%3B%20y%2B%2B)%20%7B%0A%09%09%09%09%09%09%09%09var%20flagNestedActive%20%3D%20false%3B%0A%09%09%09%09%09%09%09%09x%3Dy%3B%0A%09%09%09%09%09%09%09%09var%20nestedItem%20%3D%20data%5By%5D%3B%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09if%20(nestedItem.PageId%20%3D%3D%20pageId)%20%7B%0A%09%09%09%09%09%09%09%09%09flagNestedActive%20%3D%20true%3B%0A%09%09%09%09%09%09%09%09%09flagActive%20%3D%20true%3B%0A%09%09%09%09%09%09%09%09%7D%0A%09%0A%09%09%09%09%09%09%09%09nestedMenu%20%2B%3D%20%09'%3Cli%20'%20%2B%20(%20flagNestedActive%20%3F%20'class%3D%22active%22'%20%3A%20''%20)%20%2B%20'%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09%09%09%20%20%09%09'%3Ca%20href%3D%22'%20%2B%20nestedItem.Url%20%2B%20'%22%3E'%20%2B%20nestedItem.Name%20%2B%20'%3C%2Fa%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09%09%09%09'%3C%2Fli%3E'%3B%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09if(data%5By%2B1%5D%20!%3D%20undefined)%20%7B%0A%09%09%09%09%09%09%09%09%09if%20(data%5By%2B1%5D.IsNested%20!%3D%201)%20break%3B%09%0A%09%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09flagNestedActive%20%3D%20false%3B%0A%09%09%09%09%09%09%09%7D%0A%09%0A%09%09%09%09%09%09%09menu%20%2B%3D%20'%3Cli%20class%3D%22dropdown%20'%20%2B%20(%20flagActive%20%3F%20'active'%20%3A%20''%20)%20%2B%20'%22%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09%09'%3Ca%20href%3D%22%23%22%20class%3D%22dropdown-toggle%22%20data-toggle%3D%22dropdown%22%20role%3D%22button%22%20aria-expanded%3D%22false%22%3E'%20%2B%20item.Name%20%2B'%20%3Cspan%20class%3D%22caret%22%3E%3C%2Fspan%3E%3C%2Fa%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09%09'%3Cul%20class%3D%22dropdown-menu%22%3E'%20%2B%0A%09%09%09%09%09%09%09%09%09%09%09nestedMenu%20%2B%0A%09%09%09%09%09%09%09%09%09%09'%3C%2Ful%3E'%20%2B%09%09%09%09%09%0A%09%09%09%09%09%09%09%09%09'%3C%2Fli%3E'%3B%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%20%0A%09%09%09%09%09%09flagActive%20%3D%20false%3B%0A%09%09%09%09%09%09flagParent%20%3D%20false%3B%09%09%09%09%09%09%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20create%20menu%0A%09%09%09%09%09var%20ul%20%3D%20document.createElement('ul')%3B%0A%09%09%09%09%09ul.setAttribute('id'%2C%20context.menuid)%3B%0A%09%09%09%09%09ul.setAttribute('class'%2C%20context.class)%3B%0A%09%09%09%09%09ul.innerHTML%20%3D%20menu%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20set%20in%20local%20dom%0A%09%09%09%09%09Polymer.dom(context).appendChild(ul)%3B%0A%09%09%09%09%09%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20else%20%7B%0A%09%09%09%20%20%20%20%20%20%20%20console.log('%5Brespond.error%5D%20respond-menu%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09xhr.send()%3B%20%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-12.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-video%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09videoid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09class%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09var%20video%20%3D%20document.createElement('div')%3B%0A%09%09%09var%20cssClass%20%3D%20'video-container'%3B%0A%09%09%09%0A%09%09%09if(this.class%20!%3D%20''%20%26%26%20this.class%20!%3D%20undefined)%7B%0A%09%09%09%09cssClass%20%2B%3D%20'%20'%20%2B%20this.class%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09video.setAttribute('class'%2C%20cssClass)%3B%0A%09%09%0A%09%09%09var%20html%20%3D%20this.innerHTML%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20html%0A%09%09%09video.innerHTML%20%3D%20html%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20children%0A%09%09%09var%20children%20%3D%20Polymer.dom(this).childNodes%3B%0A%09%09%09%0A%09%09%09%2F%2F%20clear%20children%0A%09%09%09for(x%3D0%3B%20x%3Cchildren.length%3B%20x%2B%2B)%7B%0A%09%09%09%09Polymer.dom(this).removeChild(children%5Bx%5D)%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20append%20video%0A%09%09%09Polymer.dom(this).appendChild(video)%3B%0A%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-13.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-slideshow%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09slideshowid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09indicators%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09arrows%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09interval%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09wrap%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09pauseonhover%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09transition%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09position%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09var%20id%20%3D%20this.slideshowid%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20hashid%0A%09%09%09this.fullid%20%3D%20'carousel-'%20%2B%20this.slideshowid%3B%0A%09%09%09this.targetid%20%3D%20'%23carousel-'%20%2B%20this.slideshowid%3B%0A%09%09%09this.cssClass%20%3D%20'carousel%20'%20%2B%20this.transition%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20toggles%0A%09%09%09this.showIndicators%20%3D%20false%3B%0A%09%09%09this.showArrows%20%3D%20false%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20pause%0A%09%09%09this.pause%20%3D%20''%3B%0A%09%09%09%0A%09%09%09if(this.pauseonhover%20%3D%3D%20'true'%20%26%26%20this.pauseonhover%20!%3D%20undefined)%7B%0A%09%09%09%09this.pause%20%3D%20'hover'%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20indicators%20and%20arrows%0A%09%09%09if(this.indicators%20%3D%3D%20'true'%20%26%26%20this.indicators%20!%3D%20undefined)%7B%0A%09%09%09%09this.showIndicators%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.arrows%20%3D%3D%20'true'%20%26%26%20this.arrows%20!%3D%20undefined)%7B%0A%09%09%09%09this.showArrows%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20get%20images%0A%09%09%09var%20images%20%3D%20Polymer.dom(this).querySelectorAll('img')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Cimages.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09%2F%2F%20set%20active%0A%09%09%09%09var%20active%20%3D%20''%3B%0A%09%09%09%0A%09%09%09%09if(x%3D%3D0)%7B%0A%09%09%09%09%09active%20%3D%20'%20active'%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20get%20caption%0A%09%09%09%09var%20headline%20%3D%20images%5Bx%5D.getAttribute('data-headline')%20%7C%7C%20''%3B%0A%09%09%09%09var%20caption%20%3D%20images%5Bx%5D.getAttribute('data-caption')%20%7C%7C%20''%3B%0A%09%09%09%09var%20button%20%3D%20images%5Bx%5D.getAttribute('data-button')%20%7C%7C%20''%3B%0A%09%09%09%09var%20link%20%3D%20images%5Bx%5D.getAttribute('data-link')%20%7C%7C%20''%3B%0A%09%09%09%09var%20cssclass%20%3D%20images%5Bx%5D.getAttribute('class')%20%7C%7C%20''%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20an%20slide%0A%09%09%09%09var%20slide%20%3D%20document.createElement('div')%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20image%20can%20either%20be%20a%20background%20image%20or%20a%20default%20image%0A%09%09%09%09if(this.position%20%3D%3D%20'default')%7B%0A%09%09%09%09%09slide.setAttribute('class'%2C%20'item%20'%20%2B%20cssclass%20%2B%20active)%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20create%20an%20image%20for%20the%20slide%0A%09%09%09%09%09var%20image%20%3D%20document.createElement('img')%3B%0A%09%09%09%09%09image.setAttribute('src'%2C%20images%5Bx%5D.src)%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20attach%20image%0A%09%09%09%09%09Polymer.dom(slide).appendChild(image)%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%7B%0A%09%09%09%09%09slide.setAttribute('class'%2C%20'item%20'%20%2B%20cssclass%20%2B%20active)%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20set%20background%20image%0A%09%09%09%09%09slide.setAttribute('style'%2C%20'background-image%3A%20url('%20%2B%20images%5Bx%5D.src%20%2B%20')')%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20a%20caption%0A%09%09%09%09var%20container%20%3D%20document.createElement('div')%3B%0A%09%09%09%09container.setAttribute('class'%2C%20'container')%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20default%20text%0A%09%09%09%09var%20text%20%3D%20''%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20caption%0A%09%09%09%09if(headline%20!%3D%20''%20%7C%7C%20caption%20!%3D%20''%20%7C%7C%20button%20!%3D%20'')%7B%20%0A%09%09%09%09%09var%20text%20%3D%20'%3Cdiv%20class%3D%22carousel-caption%22%3E'%3B%0A%09%09%09%09%09%0A%09%09%09%09%09if(headline%20!%3D%20'')%7B%0A%09%09%09%09%09%09text%20%2B%3D%20'%3Ch1%3E'%20%2B%20headline%20%2B%20'%3C%2Fh1%3E'%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09if(caption%20!%3D%20'')%7B%0A%09%09%09%09%09%09text%20%2B%3D%20'%3Cp%3E'%20%2B%20caption%20%2B%20'%3C%2Fp%3E'%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09if(button%20!%3D%20'')%7B%0A%09%09%09%09%09%09text%20%2B%3D%20'%3Cp%3E%3Ca%20class%3D%22btn%20btn-lg%20btn-default%22%20href%3D%22'%20%2B%20link%20%2B%20'%22%3E'%20%2B%20button%20%2B%20'%3C%2Fa%3E%3C%2Fp%3E'%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09text%20%2B%3D%20'%3C%2Fdiv%3E'%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09container.innerHTML%20%3D%20text%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20attach%20container%20to%20slide%0A%09%09%09%09Polymer.dom(slide).appendChild(container)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20append%20slide%20to%20inner%0A%09%09%09%09Polymer.dom(this.%24.slidesList).appendChild(slide)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20indicator%0A%09%09%09%09var%20indicator%20%3D%20document.createElement('li')%3B%0A%09%09%09%09indicator.setAttribute('data-target'%2C%20'%23carousel-'%20%2B%20this.slideshowid)%3B%0A%09%09%09%09indicator.setAttribute('data-slide-to'%2C%20x)%3B%0A%09%09%09%09indicator.setAttribute('class'%2C%20active)%3B%0A%09%09%09%09%0A%09%09%09%09Polymer.dom(this.%24.indicatorsList).appendChild(indicator)%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-14.js%0A
0 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-cart-toggle%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%20%20%09this.showCart%20%3D%20respond.site.settings.ShowCart%3B%0A%09%09%20%20%09this.count%20%3D%200%3B%0A%09%09%20%20%09this.showCount%20%3D%20false%3B%0A%09%09%20%20%09%0A%09%09%20%20%09%2F%2F%20get%20length%20of%20cart%20from%20session%0A%09%09%20%20%09if(sessionStorage%5B'respond-cart'%5D%20!%3D%20null)%7B%0A%09%09%09%09var%20str%20%3D%20sessionStorage%5B'respond-cart'%5D%3B%0A%09%09%09%09this.cart%20%3D%20eval(str)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20calculate%20a%20quantity%0A%09%09%09%09var%20q%20%3D%200%3B%0A%09%09%09%09%09%09%0A%09%09%09%09for(x%3D0%3B%20x%3Cthis.cart.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%09q%20%2B%3D%20parseInt(this.cart%5Bx%5D.quantity)%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09this.count%20%3D%20q%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20show%20count%0A%09%09%09if(this.count%20%3E%200)%7B%0A%09%09%09%09this.showCount%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%20%20%09%0A%09%09%20%20%09%2F%2F%20set%20context%0A%09%09%20%20%09var%20context%20%3D%20this%3B%0A%09%09%20%20%09%0A%09%09%20%20%09%2F%2F%20wait%20for%20updated%0A%09%09%09var%20items%20%3D%20document.querySelectorAll('respond-cart')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Citems.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09items%5Bx%5D.addEventListener('cart-updated'%2C%20function(e)%20%7B%0A%09%09%09%09%0A%09%09%09%09%09%2F%2F%20get%20length%20of%20cart%20from%20session%0A%09%09%09%09%20%20%09if(sessionStorage%5B'respond-cart'%5D%20!%3D%20null)%7B%0A%09%09%09%09%09%09var%20str%20%3D%20sessionStorage%5B'respond-cart'%5D%3B%0A%09%09%09%09%09%09context.cart%20%3D%20eval(str)%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20calculate%20a%20quantity%0A%09%09%09%09%09%09var%20q%20%3D%200%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09for(x%3D0%3B%20x%3Ccontext.cart.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%09%09%09q%20%2B%3D%20parseInt(context.cart%5Bx%5D.quantity)%3B%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09context.count%20%3D%20q%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20show%20count%0A%09%09%09%09%09if(context.count%20%3E%200)%7B%0A%09%09%09%09%09%09context.showCount%20%3D%20true%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%7D)%3B%0A%09%09%09%0A%09%09%09%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20toggle%20cart%0A%09%09toggleCart%3A%20function()%7B%0A%09%09%0A%09%09%09%2F%2F%20fire%20cart%20toggle%0A%09%09%09this.fire('cart-toggled')%3B%0A%09%09%20%20%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-15.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-cart%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09%2F%2F%20set%20labels%0A%09%09%09this.label%20%3D%20%7B%0A%09%09%09%20%20%09%09clear%3A%20this.i18n('Clear%20Cart')%2C%0A%09%09%09%09%09item%3A%20this.i18n('Item')%2C%20%0A%09%09%09%09%09quantity%3A%20this.i18n('Quantity')%2C%0A%09%09%09%09%09price%3A%20this.i18n('Price')%2C%0A%09%09%09%09%09subtotal%3A%20this.i18n('Subtotal')%2C%0A%09%09%09%09%09tax%3A%20this.i18n('Tax')%2C%0A%09%09%09%09%09shipping%3A%20this.i18n('Shipping')%2C%0A%09%09%09%09%09total%3A%20this.i18n('Total')%2C%0A%09%09%09%09%09checkoutWithPaypal%3A%20this.i18n('Checkout%20with%20Paypal')%0A%09%09%09%09%7D%3B%0A%09%09%09%09%0A%09%09%09%0A%09%09%09%2F%2F%20set%20cart%0A%09%09%09this.cart%20%3D%20%5B%5D%3B%0A%0A%09%09%09%2F%2F%20set%20defaults%0A%09%09%09this.showCart%20%3D%20false%3B%0A%09%09%09this.showShipping%20%3D%20false%3B%0A%09%09%09this.showTax%20%3D%20false%3B%0A%09%09%09this.currency%20%3D%20respond.site.settings.Currency%3B%0A%09%09%09this.taxRate%20%3D%20parseFloat(respond.site.settings.TaxRate)%3B%0A%09%09%09this.pageId%20%3D%20document.body.getAttribute('page')%3B%0A%09%09%09%0A%09%09%09%2F%2F%20common%20symbols%0A%09%09%09var%20symbols%20%3D%20%7B%0A%09%09%09%20%20%20%20'USD'%3A%20'%24'%2C%20%2F%2F%20US%20Dollar%0A%09%09%09%20%20%20%20'EUR'%3A%20'%E2%82%AC'%2C%20%2F%2F%20Euro%0A%09%09%09%20%20%20%20'CRC'%3A%20'%E2%82%A1'%2C%20%2F%2F%20Costa%20Rican%20Col%C3%B3n%0A%09%09%09%20%20%20%20'GBP'%3A%20'%C2%A3'%2C%20%2F%2F%20British%20Pound%20Sterling%0A%09%09%09%20%20%20%20'ILS'%3A%20'%E2%82%AA'%2C%20%2F%2F%20Israeli%20New%20Sheqel%0A%09%09%09%20%20%20%20'INR'%3A%20'%E2%82%B9'%2C%20%2F%2F%20Indian%20Rupee%0A%09%09%09%20%20%20%20'JPY'%3A%20'%C2%A5'%2C%20%2F%2F%20Japanese%20Yen%0A%09%09%09%20%20%20%20'KRW'%3A%20'%E2%82%A9'%2C%20%2F%2F%20South%20Korean%20Won%0A%09%09%09%20%20%20%20'NGN'%3A%20'%E2%82%A6'%2C%20%2F%2F%20Nigerian%20Naira%0A%09%09%09%20%20%20%20'PHP'%3A%20'%E2%82%B1'%2C%20%2F%2F%20Philippine%20Peso%0A%09%09%09%20%20%20%20'PLN'%3A%20'z%C5%82'%2C%20%2F%2F%20Polish%20Zloty%0A%09%09%09%20%20%20%20'PYG'%3A%20'%E2%82%B2'%2C%20%2F%2F%20Paraguayan%20Guarani%0A%09%09%09%20%20%20%20'THB'%3A%20'%E0%B8%BF'%2C%20%2F%2F%20Thai%20Baht%0A%09%09%09%20%20%20%20'UAH'%3A%20'%E2%82%B4'%2C%20%2F%2F%20Ukrainian%20Hryvnia%0A%09%09%09%20%20%20%20'VND'%3A%20'%E2%82%AB'%2C%20%2F%2F%20Vietnamese%20Dong%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20mark%0A%09%09%09if(symbols%5Bthis.currency%5D%20!%3D%20undefined)%20%7B%0A%09%09%09%09this.mark%20%3D%20symbols%5Bthis.currency%5D%3B%0A%09%09%09%7D%0A%09%09%09else%7B%0A%20%20%20%20%09%09%09this.mark%20%3D%20''%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20totals%0A%09%09%09this.subtotal%20%3D%200%3B%0A%09%09%09this.tax%20%3D%200%3B%0A%09%09%09this.taxRate%20%3D%200%3B%0A%09%09%09this.shipping%20%3D%200%3B%0A%09%09%09this.total%20%3D%200%3B%0A%09%09%09this.numberShipped%20%3D%200%3B%0A%09%09%09this.count%20%3D%200%3B%0A%09%09%09%0A%09%09%09%2F%2F%20refresh%20the%20totals%20in%20the%20cart%0A%09%09%09this.refreshCart()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20context%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09var%20items%20%3D%20document.querySelectorAll('respond-shelf-item')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Citems.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09items%5Bx%5D.addEventListener('cart-updated'%2C%20function(e)%20%7B%0A%09%09%09%09%09context.refreshCart()%3B%0A%09%09%09%09%20%20%7D)%3B%0A%09%09%09%09%20%20%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20wait%20for%20toggle%0A%09%09%20%20%09var%20items%20%3D%20document.querySelectorAll('respond-cart-toggle')%3B%0A%09%09%09%0A%09%09%20%20%09for(x%3D0%3B%20x%3Citems.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09items%5Bx%5D.addEventListener('cart-toggled'%2C%20function(e)%20%7B%0A%09%09%09%09%09if(context.display%20%3D%3D%20'visible')%7B%0A%09%09%09%09%09%09context.close()%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09else%7B%0A%09%09%09%09%09%09context.open()%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D)%3B%0A%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20clear%20cart%20when%20a%20transaction%20is%20found%0A%09%09%09this.processorTransactionId%20%3D%20respond.site.getQueryStringByName('tx')%3B%0A%09%09%0A%09%09%09%2F%2F%20clear%20the%20cart%0A%09%09%09if(this.processorTransactionId%20!%3D%20null)%7B%0A%09%09%09%09this.clearCart()%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20refreshes%20the%20cart%0A%09%09refreshCart%3A%20function()%7B%0A%09%09%0A%09%09%09%2F%2F%20get%20cart%20from%20session%0A%09%09%09if(sessionStorage%5B'respond-cart'%5D%20!%3D%20null)%7B%0A%09%09%09%09var%20str%20%3D%20sessionStorage%5B'respond-cart'%5D%3B%0A%09%09%09%0A%09%09%09%09this.cart%20%3D%20eval(str)%3B%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%09this.cart%20%3D%20%5B%5D%3B%0A%09%09%09%7D%09%0A%09%09%0A%09%09%09%2F%2F%20create%20display%20values%0A%09%09%09for(x%3D0%3B%20x%3Cthis.cart.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09this.cart%5Bx%5D.isShipped%20%3D%20false%3B%0A%09%09%09%09%0A%09%09%09%09if(this.cart%5Bx%5D.shipping%20%3D%3D%20'shipped')%7B%0A%09%09%09%09%09this.cart%5Bx%5D.isShipped%20%3D%20true%3B%0A%09%09%09%09%7D%0A%09%09%09%0A%09%09%09%09this.cart%5Bx%5D.priceDisplay%20%3D%20this.mark%20%2B%20this.formatCurrency(this.cart%5Bx%5D.price)%20%2B%20'%20'%20%2B%20this.currency%3B%0A%09%09%09%09this.cart%5Bx%5D.totalDisplay%20%3D%20this.mark%20%2B%20this.formatCurrency(this.cart%5Bx%5D.price%20*%20this.cart%5Bx%5D.quantity)%20%2B%20'%20'%20%2B%20this.currency%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20calculate%20subtotal%0A%09%09%09this.subtotal%20%3D%20this.calculateSubtotal()%3B%0A%09%09%09this.subtotalDisplay%20%3D%20this.mark%20%2B%20this.formatCurrency(this.subtotal)%20%2B%20'%20'%20%2B%20this.currency%3B%0A%09%09%09%0A%09%09%09%2F%2F%20calculate%20totalweight%0A%09%09%09this.totalWeight%20%3D%20this.calculateTotalWeight()%3B%20%20%0A%09%09%09%0A%09%09%09%2F%2F%20set%20tax%0A%09%09%09this.tax%20%3D%20%20this.subtotal%20*%20this.taxRate%3B%0A%09%09%09this.taxDisplay%20%3D%20this.mark%20%2B%20this.formatCurrency(this.tax)%20%2B%20'%20'%20%2B%20this.currency%3B%0A%09%09%09%0A%09%09%09if(this.tax%20%3E%200)%7B%0A%09%09%09%09this.showTax%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20%23%20shipped%0A%09%09%09this.numberShipped%20%3D%20this.calculateNumberShipped()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20shipping%20%24%0A%09%09%09this.shipping%20%3D%20this.calculateShipping()%3B%0A%09%09%09this.shippingDisplay%20%3D%20this.mark%20%2B%20this.formatCurrency(this.shipping)%20%2B%20'%20'%20%2B%20this.currency%3B%0A%09%09%09%0A%09%09%09if(this.shipping%20%3E%200)%7B%0A%09%09%09%09this.showShipping%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20total%0A%09%09%09this.total%20%3D%20parseFloat(this.subtotal%20%2B%20this.tax%20%2B%20this.shipping)%3B%0A%09%09%09this.totalDisplay%20%3D%20this.mark%20%2B%20this.formatCurrency(this.total)%20%2B%20'%20'%20%2B%20this.currency%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20count%0A%09%09%09this.count%20%3D%20this.calculateCount()%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20count%20as%20attribute%0A%09%09%09this.setAttribute('count'%2C%20this.count)%3B%0A%09%09%09%0A%09%09%09%2F%2F%20fire%20updated%20event%0A%09%09%09this.fire('cart-updated')%3B%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20clears%20the%20cart%0A%09%09clearCart%3A%20function()%7B%0A%09%09%20%20%0A%09%09%20%20%09%2F%2F%20clear%20the%20cart%20and%20save%20it%20to%20localstorage%0A%09%09%20%20%09this.cart%20%3D%20%5B%5D%3B%0A%09%09%20%20%09this.count%20%3D%200%3B%0A%09%09%20%20%0A%09%09%20%20%09%2F%2F%20save%20cart%20to%20local%20storage%0A%09%09%09var%20json%20%3D%20JSON.stringify(this.cart)%3B%0A%09%09%09sessionStorage%5B'respond-cart'%5D%20%3D%20json%3B%0A%09%09%09%0A%09%09%09%2F%2F%20recalculate%0A%09%09%09this.refreshCart()%3B%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20calculates%20the%20subtotal%0A%09%09calculateSubtotal%3A%20function()%7B%0A%09%09%20%20%09var%20st%20%3D%200%3B%0A%09%09%09%0A%09%09%09%2F%2F%20subtotal%20the%20items%20in%20the%20cart%0A%09%09%09for(x%3D0%3B%20x%3Cthis.cart.length%3B%20x%2B%2B)%7B%0A%09%09%09%09st%20%3D%20st%20%2B%20(this.cart%5Bx%5D.price%20*%20this.cart%5Bx%5D.quantity)%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09return%20st%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20calculates%20the%20count%0A%09%09calculateCount%3A%20function()%7B%0A%09%09%20%20%09var%20q%20%3D%200%3B%0A%09%09%09%0A%09%09%09%2F%2F%20subtotal%20the%20items%20in%20the%20cart%0A%09%09%09for(x%3D0%3B%20x%3Cthis.cart.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09q%20%3D%20q%20%2B%20this.cart%5Bx%5D.quantity%3B%0A%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09return%20q%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20calculates%20the%20total%20weight%0A%09%09calculateTotalWeight%3A%20function()%7B%0A%09%09%20%20%0A%09%09%20%20%09var%20w%20%3D%200%3B%0A%09%09%09%0A%09%09%09%2F%2F%20subtotal%20the%20items%20in%20the%20cart%0A%09%09%09for(x%3D0%3B%20x%3Cthis.cart.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09if(this.cart%5Bx%5D.weight%20!%3D%20null%20%26%26%20this.cart%5Bx%5D.weight%20!%3D%20undefined)%7B%0A%09%09%09%09%09w%20%3D%20w%20%2B%20(this.cart%5Bx%5D.weight%20*%20this.cart%5Bx%5D.quantity)%3B%0A%09%09%09%09%7D%0A%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09return%20w%3B%0A%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20calculate%20the%20number%20shipped%0A%09%09calculateNumberShipped%3A%20function()%7B%0A%09%09%0A%09%09%09var%20count%20%3D%200%3B%0A%09%09%09%0A%09%09%09%2F%2F%20walk%20through%20cart%0A%09%09%09for(x%3D0%3B%20x%3Cthis.cart.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09if(this.cart%5Bx%5D.shipping.trim()%20%3D%3D%20'shipped')%7B%0A%09%09%09%09%09count%20%3D%20count%20%2B%20this.cart%5Bx%5D.quantity%3B%0A%09%09%09%09%7D%0A%09%09%0A%09%09%09%7D%0A%09%09%0A%09%09%09return%20count%3B%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20calculate%20shipping%0A%09%09calculateShipping%3A%20function()%7B%0A%09%09%20%20%0A%09%09%20%20%09%2F%2F%20set%20default%20stop%0A%09%09%09var%20stop%20%3D%200%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20subtotal%20and%20weight%0A%09%09%09var%20subtotal%20%3D%20this.subtotal%3B%0A%09%09%09var%20totalWeight%20%3D%20this.totalWeight%3B%0A%09%09%09var%20countShipped%20%3D%20this.numberShipped%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20params%0A%09%09%09var%20calculation%20%3D%20respond.site.settings.ShippingCalculation%3B%09%0A%09%09%09var%20rate%20%3D%20parseFloat(respond.site.settings.ShippingRate)%3B%0A%09%09%09var%20tiers%20%3D%20%5B%5D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20tiers%0A%09%09%09if(respond.site.settings.ShippingTiers%20!%3D%20''%20%26%26%20respond.site.settings.ShippingTiers%20!%3D%20null)%7B%0A%09%09%09%09tiers%20%3D%20JSON.parse(decodeURI(respond.site.settings.ShippingTiers))%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20free%2C%20flat-rate%2C%20etc%0A%09%09%09if(calculation%20%3D%3D%20'free')%7B%0A%09%09%09%20%20%20%20return%200%3B%0A%09%09%09%7D%0A%09%09%09else%20if(calculation%20%3D%3D%20'flat-rate')%7B%0A%09%09%09%09if(countShipped%20%3E%200)%7B%0A%09%09%09%09%09return%20rate%3B%0A%09%09%09%09%7D%0A%09%09%09%09else%7B%0A%09%09%09%09%09return%200%3B%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09else%20if(calculation%20%3D%3D%20'amount')%7B%0A%09%09%09%20%20%20%20stop%20%3D%20subtotal%3B%0A%09%09%09%7D%0A%09%09%09else%20if(calculation%20%3D%3D%20'weight')%7B%0A%09%09%09%20%20%20%20stop%20%3D%20totalWeight%3B%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%20%20%20%20return%200%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20walk%20through%20tiers%0A%09%09%09for(x%3D0%3B%20x%3Ctiers.length%3B%20x%2B%2B)%7B%0A%09%09%09%20%20%20%20var%20from%20%3D%20tiers%5Bx%5D.from%3B%0A%09%09%09%20%20%20%20var%20to%20%3D%20tiers%5Bx%5D.to%3B%0A%09%09%09%0A%09%09%09%20%20%20%20%2F%2F%20determine%20if%20rate%20falls%20between%20to%20and%20from%0A%09%09%09%20%20%20%20if(stop%20%3E%20from%20%26%26%20stop%20%3C%3D%20to)%7B%0A%09%09%09%09%20%20%20%20var%20rate%20%3D%20Number(tiers%5Bx%5D.rate)%3B%0A%09%09%09%0A%09%09%09%09%20%20%20%20%2F%2F%20return%20rate%0A%09%09%09%09%20%20%20%20if(!isNaN(rate))%7B%0A%09%09%09%09%09%20%20%20%20return%20rate%3B%0A%09%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%0A%09%09%09%7D%20%0A%09%09%09%0A%09%09%09%2F%2F%20default%20is%200%0A%09%09%09return%200%3B%0A%09%09%20%20%0A%09%09%7D%2C%09%0A%09%09%0A%09%09%2F%2F%20opens%20the%20cart%0A%09%09open%3A%20function()%7B%0A%09%09%0A%09%09%09this.showCart%20%3D%20true%3B%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20closes%20the%20cart%0A%09%09close%3A%20function()%7B%0A%09%09%0A%09%09%09this.showCart%20%3D%20false%3B%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20change%20item%20in%20the%20cart%0A%09%09changeItem%3A%20function(e)%7B%0A%09%09%20%20%0A%09%09%09var%20item%20%3D%20this.%24.cartList.itemForElement(e.target)%3B%0A%09%09%09var%20q%20%3D%20parseInt(e.target.value)%3B%0A%09%09%09%0A%09%09%09var%20index%20%3D%20this.cart.indexOf(item)%3B%0A%09%09%09%0A%09%09%09%2F%2F%20remove%20or%20update%09%0A%09%09%09if(q%20%3C%3D%200)%7B%0A%09%09%09%09this.cart.splice(index%2C%201)%3B%20%20%20%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%09this.cart%5Bindex%5D.quantity%20%3D%20q%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20save%20cart%20to%20local%20storage%0A%09%09%09var%20json%20%3D%20JSON.stringify(this.cart)%3B%0A%09%09%09sessionStorage%5B'respond-cart'%5D%20%3D%20json%3B%0A%09%09%09%0A%09%09%09%2F%2F%20recalculate%0A%09%09%09this.refreshCart()%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20remove%20item%20from%20the%20cart%0A%09%09removeItem%3A%20function(e)%7B%0A%09%09%09%0A%09%09%09var%20item%20%3D%20this.%24.cartList.itemForElement(e.target)%3B%0A%09%09%09%09%0A%09%09%09var%20index%20%3D%20this.cart.indexOf(item)%3B%0A%09%09%09this.cart.splice(index%2C%201)%3B%0A%09%09%09%0A%09%09%09%2F%2F%20save%20cart%20to%20local%20storage%0A%09%09%09var%20json%20%3D%20JSON.stringify(this.cart)%3B%0A%09%09%09sessionStorage%5B'respond-cart'%5D%20%3D%20json%3B%0A%09%09%09%0A%09%09%09%2F%2F%20recalculate%0A%09%09%09this.refreshCart()%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20checkout%20with%20PayPal%0A%09%09checkoutWithPayPal%3A%20function()%7B%0A%09%09%0A%09%09%09var%20logo%20%3D%20respond.site.ImagesUrl%20%2B%20respond.site.settings.LogoUrl%3B%0A%09%09%0A%09%09%09%2F%2F%20set%20logo%0A%09%09%09if(respond.site.settings.PayPalLogoUrl%20!%3D%20'')%7B%0A%09%09%09%09logo%20%3D%20respond.site.ImagesUrl%20%2B%20respond.site.settings.PayPalLogoUrl%3B%0A%09%09%09%7D%0A%09%09%20%20%0A%09%09%09var%20email%20%3D%20respond.site.settings.PayPalId%3B%0A%09%09%09var%20currency%20%3D%20respond.site.settings.Currency%3B%0A%09%09%09var%20returnUrl%20%3D%20respond.site.settings.Domain%3B%0A%09%09%09var%20api%20%3D%20respond.site.settings.API%3B%0A%09%09%09var%20siteId%20%3D%20respond.site.settings.SiteId%3B%0A%09%09%09var%20weightUnit%20%3D%20respond.site.settings.WeightUnit%3B%0A%09%09%09var%20useSandbox%20%3D%20false%3B%0A%09%09%09%0A%09%09%09if(parseInt(respond.site.settings.PayPalUseSandbox)%20%3D%3D%201)%7B%0A%09%09%09%09useSandbox%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20data%20setup%0A%09%09%09var%20data%20%3D%20%7B%0A%09%09%09%09'email'%3A%09%09%09email%2C%0A%09%09%09%09'cmd'%3A%09%09%09%09'_cart'%2C%0A%09%09%09%09'upload'%3A%09%09%09'1'%2C%0A%09%09%09%09'currency_code'%3A%20%09currency%2C%0A%09%09%09%09'business'%3A%09%09%09email%2C%0A%09%09%09%09'rm'%3A%09%09%09%09'0'%2C%0A%09%09%09%09'charset'%3A%09%09%09'utf-8'%2C%0A%09%09%09%09'return'%3A%09%09%09returnUrl%20%2B%20'%2Fthank-you'%2C%0A%09%09%09%09'cancel_return'%3A%09returnUrl%20%2B%20'%2Fcancel'%2C%0A%09%09%09%09'notify_url'%3A%09%09api%20%2B%20'%2Ftransaction%2Fpaypal'%2C%0A%09%09%09%09'custom'%3A%09%09%09siteId%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09var%20noshipping%20%3D%201%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20logo%0A%09%09%09if(logo%20!%3D%20'')%7B%0A%09%09%09%09data%5B'image_url'%5D%20%3D%20logo%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20add%20cart%20items%0A%09%09%09for(x%3D0%3B%20x%3C%20this.cart.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09var%20c%20%3D%20x%2B1%3B%0A%09%09%09%0A%09%09%09%09var%20item%20%3D%20this.cart%5Bx%5D%3B%0A%09%09%09%0A%09%09%09%09data%5B'item_name_'%2Bc%5D%20%3D%20item.name%3B%0A%09%09%09%09data%5B'quantity_'%2Bc%5D%20%3D%20item.quantity%3B%0A%09%09%09%09data%5B'amount_'%2Bc%5D%20%3D%20parseFloat(item.price)%3B%0A%09%09%09%09data%5B'item_number_'%2Bc%5D%20%3D%20item.sku%3B%0A%09%09%09%0A%09%09%09%09if(%24.trim(item.shipping.toUpperCase())%20%3D%3D%20'SHIPPED')%7B%0A%09%09%09%09%09noshipping%20%3D%202%3B%0A%09%09%09%09%7D%0A%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09data%5B'no_shipping'%5D%20%3D%20noshipping%3B%20%2F%2F%201%20%3D%20do%20not%20prompt%2C%202%20%3D%20prompt%20for%20address%20and%20require%20it%0A%09%09%09data%5B'weight_unit'%5D%20%3D%20weightUnit%3B%0A%09%09%09data%5B'handling_cart'%5D%20%3D%20parseFloat(this.shipping)%3B%0A%09%09%09data%5B'tax_cart'%5D%20%3D%20parseFloat(this.tax)%3B%0A%09%09%09%0A%09%09%09%2F%2F%20live%20url%0A%09%09%09var%20url%20%3D%20'https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr'%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20to%20sandbox%20if%20specified%0A%09%09%09if(useSandbox)%7B%0A%09%09%09%09url%20%3D%20'https%3A%2F%2Fwww.sandbox.paypal.com%2Fcgi-bin%2Fwebscr'%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20create%20form%20with%20data%20values%0A%09%09%09var%20form%20%3D%20'%3Cform%20id%3D%22paypal-form%22%20action%3D%22'%20%2B%20url%20%2B%20'%22%20method%3D%22POST%22%3E'%3B%0A%09%09%09%0A%09%09%09for(x%20in%20data)%7B%0A%09%09%09%09form%20%2B%3D%20'%3Cinput%20type%3D%22hidden%22%20name%3D%22'%2Bx%2B'%22%20value%3D%22'%2Bdata%5Bx%5D%2B'%22%20%2F%3E'%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09form%20%2B%3D%20'%3C%2Fform%3E'%3B%0A%09%09%09%0A%09%09%09%2F%2F%20append%20form%20to%20body%0A%09%09%09var%20body%20%3D%20document.querySelector('body')%3B%0A%09%09%09body.insertAdjacentHTML('beforeend'%2C%20form)%3B%0A%09%09%09%0A%09%09%09%2F%2F%20submit%20form%0A%09%09%09document.getElementById('paypal-form').submit()%3B%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20return%20respond.site.i18n(text)%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09formatCurrency%3A%20function(number)%7B%0A%09%09%20%20return%20accounting.formatNumber(number%2C%202%2C%20'%20')%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-16.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-languages-toggle%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%20%20%09this.showLanguages%20%3D%20respond.site.settings.ShowLanguages%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20toggle%20languages%0A%09%09toggleLanguages%3A%20function()%7B%0A%09%09%0A%09%09%09%2F%2F%20fire%20language%20toggle%0A%09%09%09this.fire('languages-toggled')%3B%0A%09%09%20%20%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-17.js%0A
0 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-shelf%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-18.js%0A
0 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-shelf-item%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%09%20%20%09productid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09sku%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09name%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09price%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09shipping%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09quantity%3A%20%7B%20type%3A%20Number%20%7D%0A%09%20%20%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09%2F%2F%20default%20quantity%0A%09%09%09this.quantity%20%3D%201%3B%0A%09%09%0A%09%09%09%2F%2F%20set%20labels%0A%09%09%09this.label%20%3D%20%7B%0A%09%09%09%09%20%20%09addToCart%3A%20this.i18n('Add%20to%20Cart')%0A%09%09%09%09%20%20%7D%3B%0A%09%09%0A%09%09%09%2F%2F%20show%20shipping%0A%09%09%09this.isShipped%20%3D%20false%3B%0A%09%09%09%0A%09%09%09if(this.shipping%20%3D%3D%20'shipped')%7B%0A%09%09%09%09this.isShipped%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20show%20sku%0A%09%09%09this.hasSKU%20%3D%20false%3B%0A%09%09%09%0A%09%09%09if(this.sku%20!%3D%20'')%7B%0A%09%09%09%09this.hasSKU%20%3D%20true%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20currency%0A%09%09%09this.currency%20%3D%20respond.site.settings.Currency%3B%0A%09%09%09%0A%09%09%09%2F%2F%20common%20symbols%0A%09%09%09var%20symbols%20%3D%20%7B%0A%09%09%09%20%20%20%20'USD'%3A%20'%24'%2C%20%2F%2F%20US%20Dollar%0A%09%09%09%20%20%20%20'EUR'%3A%20'%E2%82%AC'%2C%20%2F%2F%20Euro%0A%09%09%09%20%20%20%20'CRC'%3A%20'%E2%82%A1'%2C%20%2F%2F%20Costa%20Rican%20Col%C3%B3n%0A%09%09%09%20%20%20%20'GBP'%3A%20'%C2%A3'%2C%20%2F%2F%20British%20Pound%20Sterling%0A%09%09%09%20%20%20%20'ILS'%3A%20'%E2%82%AA'%2C%20%2F%2F%20Israeli%20New%20Sheqel%0A%09%09%09%20%20%20%20'INR'%3A%20'%E2%82%B9'%2C%20%2F%2F%20Indian%20Rupee%0A%09%09%09%20%20%20%20'JPY'%3A%20'%C2%A5'%2C%20%2F%2F%20Japanese%20Yen%0A%09%09%09%20%20%20%20'KRW'%3A%20'%E2%82%A9'%2C%20%2F%2F%20South%20Korean%20Won%0A%09%09%09%20%20%20%20'NGN'%3A%20'%E2%82%A6'%2C%20%2F%2F%20Nigerian%20Naira%0A%09%09%09%20%20%20%20'PHP'%3A%20'%E2%82%B1'%2C%20%2F%2F%20Philippine%20Peso%0A%09%09%09%20%20%20%20'PLN'%3A%20'z%C5%82'%2C%20%2F%2F%20Polish%20Zloty%0A%09%09%09%20%20%20%20'PYG'%3A%20'%E2%82%B2'%2C%20%2F%2F%20Paraguayan%20Guarani%0A%09%09%09%20%20%20%20'THB'%3A%20'%E0%B8%BF'%2C%20%2F%2F%20Thai%20Baht%0A%09%09%09%20%20%20%20'UAH'%3A%20'%E2%82%B4'%2C%20%2F%2F%20Ukrainian%20Hryvnia%0A%09%09%09%20%20%20%20'VND'%3A%20'%E2%82%AB'%2C%20%2F%2F%20Vietnamese%20Dong%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20mark%0A%09%09%09if(symbols%5Bthis.currency%5D%20!%3D%3D%20undefined)%20%7B%0A%09%09%09%09this.mark%20%3D%20symbols%5Bthis.currency%5D%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20price%20display%0A%09%09%09this.priceDisplay%20%3D%20this.mark%20%2B%20this.formatCurrency(this.price)%20%2B%20'%20'%20%2B%20this.currency%3B%0A%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20adds%20an%20item%20to%20the%20cart%0A%09%09addToCart%3A%20function()%7B%0A%09%09%0A%09%09%09var%20cart%20%3D%20%5B%5D%3B%0A%09%09%0A%09%09%09%2F%2F%20get%20cart%20from%20session%0A%09%09%09if(sessionStorage%5B'respond-cart'%5D%20!%3D%20null)%7B%0A%09%09%09%09var%20str%20%3D%20sessionStorage%5B'respond-cart'%5D%3B%0A%09%09%09%0A%09%09%09%09cart%20%3D%20eval(str)%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20get%20quantity%0A%09%09%09var%20q%20%3D%20parseInt(Polymer.dom(this.root).querySelector('input.quantity').value)%3B%0A%09%09%09%0A%09%09%20%20%09%2F%2F%20create%20item%0A%09%09%09var%20item%20%3D%20%7B%0A%09%09%09%09sku%3A%20this.sku%2C%0A%09%09%09%09productid%3A%20this.productid%2C%0A%09%09%09%09name%3A%20this.name%2C%0A%09%09%09%09price%3A%20parseFloat(this.price)%2C%0A%09%09%09%09shipping%3A%20this.shipping%2C%0A%09%09%09%09weight%3A%20parseFloat(this.weight)%2C%0A%09%09%09%09quantity%3A%20q%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20has%20item%0A%09%09%09var%20newItem%20%3D%20true%3B%0A%09%09%09%0A%09%09%09%2F%2F%20walkthrough%20quantity%0A%09%09%09for(x%3D0%3B%20x%3Ccart.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20if%20it%20is%20a%20duplicate%2C%20increase%20the%20quantity%0A%09%09%09%09if(cart%5Bx%5D.productid%20%3D%3D%20item.productid)%7B%0A%09%09%09%09%09var%20quantity%20%3D%20parseInt(cart%5Bx%5D.quantity)%3B%0A%09%09%09%09%09cart%5Bx%5D.quantity%20%3D%20q%20%2B%20quantity%3B%0A%09%09%09%09%09newItem%20%3D%20false%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20push%20item%20to%20the%20cart%0A%09%09%09if(newItem%20%3D%3D%20true)%7B%0A%09%09%09%09cart.push(item)%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20save%20cart%20to%20local%20storage%0A%09%09%09var%20json%20%3D%20JSON.stringify(cart)%3B%0A%09%09%09sessionStorage%5B'respond-cart'%5D%20%3D%20json%3B%0A%09%09%09%0A%09%09%09%2F%2F%20fire%20cart-updated%20event%0A%09%09%09this.fire('cart-updated')%3B%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09formatCurrency%3A%20function(number)%7B%0A%09%09%20%20return%20accounting.formatNumber(number%2C%202%2C%20'%20')%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-19.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-receipt%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%20%20%09%0A%09%09%20%20%09%2F%2F%20labels%0A%09%09%09this.label%20%3D%20%7B%0A%09%09%09%20%20%09%09item%3A%20this.i18n('Item')%2C%0A%09%09%09%20%20%09%09price%3A%20this.i18n('Price')%2C%0A%09%09%09%20%20%09%09quantity%3A%20this.i18n('Quantity')%2C%0A%09%09%09%20%20%09%09total%3A%20this.i18n('Total')%2C%0A%09%09%09%20%20%09%09receiptNotAvailable%3A%20this.i18n('Receipt%20not%20available')%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20receipt%0A%09%09%09this.receipt%20%3D%20''%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20api%0A%09%09%09this.api%20%3D%20respond.site.settings.API%3B%0A%09%09%09this.processorTransactionId%20%3D%20respond.site.getQueryStringByName('tx')%3B%0A%09%09%09%0A%09%09%09if(this.processorTransactionId%20!%3D%20null)%7B%0A%09%09%09%0A%09%09%09%09%2F%2F%20set%20context%0A%09%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%09%0A%09%09%09%09var%20params%20%3D%20%7B%0A%09%09%09%09%09processorTransactionId%3A%20this.processorTransactionId%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20submit%20form%0A%09%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20set%20URI%0A%09%09%09%09var%20uri%20%3D%20this.api%20%2B%20'%2Ftransaction%2Freceipt'%3B%0A%09%09%09%09%0A%09%09%09%09xhr.open('POST'%2C%20encodeURI(uri))%3B%0A%09%09%09%09xhr.setRequestHeader('Content-Type'%2C%20'application%2Fx-www-form-urlencoded')%3B%0A%09%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%09%20%20%20%20if(xhr.status%20%3D%3D%3D%20200)%7B%0A%09%09%09%09%20%20%20%20%09context.%24.receipt.innerHTML%20%3D%20xhr.responseText%3B%0A%09%09%09%09%20%20%20%20%7D%0A%09%09%09%09%20%20%20%20else%20if(xhr.status%20!%3D%3D%20200)%7B%0A%09%09%09%09%20%20%20%20%09context.loading%20%3D%20false%3B%0A%09%09%09%09%20%20%20%20%20%20%20%20console.log('%5Brespond.error%5D%20respond-receipt%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%09%20%20%20%20%7D%0A%09%09%09%09%7D%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20serialize%20the%20data%0A%09%09%09%20%20%20%20var%20qs%20%3D%20%5B%5D%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20for(p%20in%20params)%7B%0A%09%09%09%09%20%20%20%20qs.push(encodeURIComponent(p)%20%2B%20%22%3D%22%20%2B%20encodeURIComponent(params%5Bp%5D))%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20qs%20%3D%20qs.join(%22%26%22)%3B%0A%09%09%09%20%20%20%20%0A%09%09%09%09%2F%2F%20send%20serialized%20data%0A%09%09%09%09xhr.send(encodeURI(qs))%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%09this.%24.receipt.innerHTML%20%3D%20'%3Ctr%3E%3Ctd%20colspan%3D%224%22%3E'%20%2B%20this.label.receiptNotAvailable%20%2B%20'%3C%2Ftd%3E%3C%2Ftr%3E'%3B%0A%09%09%09%7D%0A%09%09%20%20%09%0A%09%09%20%20%09%0A%09%09%7D%2C%0A%20%20%20%20%20%20%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-20.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-languages%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09%2F%2F%20labels%0A%09%09%09this.label%20%3D%20%7B%0A%09%09%09%09language%3A%20this.i18n('Language')%2C%0A%09%09%09%09direction%3A%20this.i18n('Direction')%0A%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%2F%2F%20defaults%0A%09%09%09this.languages%20%3D%20%5B%5D%3B%0A%09%09%09this.showLanguages%20%3D%20false%3B%0A%09%09%09this.isLTR%20%3D%20true%3B%0A%09%09%09this.isRTL%20%3D%20false%3B%0A%09%09%09%20%20%0A%09%09%09%2F%2F%20set%20context%20%20%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%20%20%09%0A%09%09%20%20%09this.currentLanguage%20%3D%20respond.site.settings.Language%3B%0A%09%09%20%20%09this.currentDirection%20%3D%20respond.site.settings.Direction%3B%0A%09%09%20%20%09%0A%09%09%20%20%09%2F%2F%20get%20current%20language%20from%20session%0A%09%09%20%20%09if(sessionStorage%5B'respond-language'%5D%20!%3D%20null)%7B%0A%09%09%09%09this.currentLanguage%20%3D%20sessionStorage%5B'respond-language'%5D%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20get%20current%20direction%20from%20session%0A%09%09%09if(sessionStorage%5B'respond-direction'%5D%20!%3D%20null)%7B%0A%09%09%09%09this.currentDirection%20%3D%20sessionStorage%5B'respond-direction'%5D%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20LTR%2FRTL%0A%09%09%20%20%09if(this.currentDirection%20%3D%3D%20'ltr')%7B%0A%09%09%09%20%20%09this.isLTR%20%3D%20true%3B%0A%09%09%09%20%20%09this.isRTL%20%3D%20false%3B%0A%09%09%20%20%09%7D%0A%09%09%20%20%09else%7B%0A%09%09%09%20%20%09this.isLTR%20%3D%20false%3B%0A%09%09%09%20%20%09this.isRTL%20%3D%20true%3B%0A%09%09%20%20%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20create%20a%20display%20for%20languages%0A%09%09%20%20%09this.currentLanguageDisplay%20%3D%20this.i18n(this.currentLanguage)%3B%0A%09%09%09%0A%09%09%20%20%09%2F%2F%20wait%20for%20toggle%0A%09%09%20%20%09var%20items%20%3D%20document.querySelectorAll('respond-languages-toggle')%3B%0A%09%09%09%0A%09%09%20%20%09for(x%3D0%3B%20x%3Citems.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%0A%09%09%09%09items%5Bx%5D.addEventListener('languages-toggled'%2C%20function(e)%20%7B%0A%09%09%09%09%09%0A%09%09%09%09%09if(context.showLanguages%20%3D%3D%20true)%7B%0A%09%09%09%09%09%09context.close()%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09else%7B%0A%09%09%09%09%09%09context.open()%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%7D)%3B%0A%09%09%09%09%20%20%0A%09%09%09%7D%20%20%0A%09%09%09%20%20%0A%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20opens%20the%20languages%0A%09%09open%3A%20function()%7B%0A%09%09%0A%09%09%09this.showLanguages%20%3D%20true%3B%0A%09%09%09%0A%09%09%09if(this.languages.length%20%3D%3D%200)%7B%0A%09%09%09%09this.loading%20%3D%20true%3B%0A%09%09%09%0A%09%09%09%09%2F%2F%20set%20context%0A%09%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09%09%2F%2F%20set%20params%0A%09%09%09%09var%20params%20%3D%20%7B%0A%09%09%09%09%09siteId%3A%20respond.site.settings.SiteId%0A%09%09%09%09%7D%0A%09%09%09%0A%09%09%09%09%2F%2F%20set%20URI%0A%09%09%09%09var%20uri%20%3D%20respond.site.settings.API%20%2B%20'%2Ftranslation%2Flist%2Flocales'%3B%0A%09%09%09%0A%09%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09%09%0A%09%09%09%09xhr.open('POST'%2C%20encodeURI(uri))%3B%0A%09%09%09%09xhr.setRequestHeader('Content-Type'%2C%20'application%2Fx-www-form-urlencoded')%3B%0A%09%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%09%09if(xhr.status%20%3D%3D%3D%20200)%7B%0A%09%09%09%09%09%09var%20data%20%3D%20JSON.parse(xhr.responseText)%3B%0A%09%09%09%09%09%09context.languages%20%3D%20%5B%5D%3B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%2F%2F%20set%20current%20language%0A%09%09%09%09%09%09for(x%3D0%3B%20x%3Cdata.length%3B%20x%2B%2B)%7B%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09if(data%5Bx%5D%20%3D%3D%20context.currentLanguage)%7B%0A%09%09%09%09%09%09%09%09context.push('languages'%2C%20%7B%0A%09%09%09%09%09%09%09%09%09'language'%3A%20data%5Bx%5D%2C%0A%09%09%09%09%09%09%09%09%09'isCurrentLanguage'%3A%20true%0A%09%09%09%09%09%09%09%09%7D)%3B%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09else%7B%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%09context.push('languages'%2C%20%7B%0A%09%09%09%09%09%09%09%09%09'language'%3A%20data%5Bx%5D%2C%0A%09%09%09%09%09%09%09%09%09'isCurrentLanguage'%3A%20false%0A%09%09%09%09%09%09%09%09%7D)%0A%09%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09context.loading%20%3D%20false%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09else%20if(xhr.status%20!%3D%3D%20200)%7B%0A%09%09%09%09%09%09context.loading%20%3D%20false%3B%0A%09%09%09%09%09%09console.log('%5Brespond.error%5D%20respond-languages%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%3B%0A%09%09%09%0A%09%09%09%09%2F%2F%20serialize%20the%20data%0A%09%09%09%09var%20qs%20%3D%20%5B%5D%3B%0A%09%09%09%0A%09%09%09%09for(p%20in%20params)%7B%0A%09%09%09%09%09qs.push(encodeURIComponent(p)%20%2B%20%22%3D%22%20%2B%20encodeURIComponent(params%5Bp%5D))%3B%0A%09%09%09%09%7D%0A%09%09%09%0A%09%09%09%09qs%20%3D%20qs.join(%22%26%22)%3B%0A%09%09%09%0A%09%09%09%09%2F%2F%20send%20serialized%20data%0A%09%09%09%09xhr.send(encodeURI(qs))%3B%0A%09%09%09%0A%09%09%09%7D%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20closes%20the%20languages%0A%09%09close%3A%20function()%7B%0A%09%09%0A%09%09%09this.showLanguages%20%3D%20false%3B%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20sets%20the%20language%0A%09%09setLanguage%3A%20function(e)%7B%0A%09%09%20%20%0A%09%09%20%20%09var%20item%20%3D%20this.%24.languagesList.itemForElement(e.target)%3B%0A%09%09%20%20%0A%09%09%20%20%09respond.site.setLanguage(item.language)%3B%0A%09%09%20%20%0A%09%09%20%20%09location.reload()%3B%0A%09%09%20%20%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20set%20LTR%20direction%0A%09%09setLtr%3A%20function()%7B%0A%09%09%20%20%09respond.site.setDirection('ltr')%3B%0A%09%09%20%20%0A%09%09%20%20%09location.reload()%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20set%20RTL%20direction%0A%09%09setRtl%3A%20function()%7B%0A%09%09%20%20%09respond.site.setDirection('rtl')%3B%0A%09%09%20%20%0A%09%09%20%20%09location.reload()%3B%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-21.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-gallery%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09galleryid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09class%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%0A%09%09%09%2F%2F%20set%20hashid%0A%09%09%09this.cssClass%20%3D%20'gallery%20'%20%2B%20this.class%3B%0A%09%09%09%0A%09%09%09%2F%2F%20get%20images%0A%09%09%09var%20images%20%3D%20Polymer.dom(this).querySelectorAll('img')%3B%0A%09%09%09%0A%09%09%09for(x%3D0%3B%20x%3Cimages.length%3B%20x%2B%2B)%7B%0A%09%09%09%0A%09%09%09%09%2F%2F%20set%20active%0A%09%09%09%09var%20active%20%3D%20''%3B%0A%09%09%09%0A%09%09%09%09if(x%3D%3D0)%7B%0A%09%09%09%09%09active%20%3D%20'%20active'%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20get%20caption%0A%09%09%09%09var%20caption%20%3D%20images%5Bx%5D.getAttribute('data-caption')%20%7C%7C%20''%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20get%20thumb%0A%09%09%09%09var%20thumb%20%3D%20images%5Bx%5D.getAttribute('data-thumb')%20%7C%7C%20''%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20create%20a%20gallery%20image%0A%09%09%09%09var%20a%20%3D%20document.createElement('a')%3B%0A%09%09%09%09%0A%09%09%09%09a.setAttribute('title'%2C%20caption)%3B%0A%09%09%09%09a.setAttribute('class'%2C%20'gallery-item')%3B%0A%09%09%09%09a.setAttribute('respond-gallery'%2C%20'')%3B%0A%09%09%09%09a.setAttribute('href'%2C%20images%5Bx%5D.src)%3B%0A%09%09%09%09%0A%09%09%09%09var%20img%20%3D%20document.createElement('img')%3B%0A%09%09%09%09img.setAttribute('src'%2C%20thumb)%3B%0A%09%09%09%09%0A%09%09%09%09a.appendChild(img)%3B%0A%09%09%09%09%09%0A%09%09%09%09%2F%2F%20append%20gallery%20image%20to%20list%0A%09%09%09%09Polymer.dom(this.%24.galleryList).appendChild(a)%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-22.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-share%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09shareid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09cssclass%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09fbshow%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09fblayout%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09fbaction%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09twshow%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09twvia%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09twhash%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09pinshow%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09this.fbshow%20%3D%20(this.fbshow%20%3D%3D%3D%20'true')%3B%0A%09%09%09this.twshow%20%3D%20(this.twshow%20%3D%3D%3D%20'true')%3B%0A%09%09%09this.pinshow%20%3D%20(this.pinshow%20%3D%3D%3D%20'true')%3B%0A%09%09%0A%09%09%09%2F%2F%20set%20url%0A%09%09%09this.url%20%3D%20window.location.href%3B%09%0A%09%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-23.js%0A
1 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-badge%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09badgeid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09cssclass%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09display%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09facebook%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09twitter%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09github%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09pinterest%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09tumblr%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09youtube%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09googleplus%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09linkedin%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09instagram%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09if(this.cssclass%20!%3D%20undefined)%7B%0A%09%09%09%09this.cssclass%20%3D%20'respond-badge%20'%20%2B%20this.cssclass%3B%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%09this.cssclass%20%3D%20'respond-badge'%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20set%20display%0A%09%09%09if(this.display%20!%3D%20undefined)%7B%0A%09%09%09%09%0A%09%09%09%09if(this.display%20%3D%3D%20'colorful')%7B%0A%09%09%09%09%09this.cssclass%20%2B%3D%20'%20colorful'%3B%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09this.facebookshow%20%3D%20false%3B%0A%09%09%09this.facebookurl%20%3D%20''%3B%0A%09%09%09%0A%09%09%09this.twittershow%20%3D%20false%3B%0A%09%09%09this.twitterurl%20%3D%20''%3B%0A%09%09%09%0A%09%09%09this.githubshow%20%3D%20false%3B%0A%09%09%09this.githuburl%20%3D%20''%3B%0A%09%09%09%0A%09%09%09this.pinterestshow%20%3D%20false%3B%0A%09%09%09this.pinteresturl%20%3D%20''%3B%0A%09%09%09%0A%09%09%09this.tumblershow%20%3D%20false%3B%0A%09%09%09this.tumblerurl%20%3D%20''%3B%0A%09%09%09%0A%09%09%09this.youtubeshow%20%3D%20false%3B%0A%09%09%09this.youtubeurl%20%3D%20''%3B%0A%09%09%09%0A%09%09%09this.googleplusshow%20%3D%20false%3B%0A%09%09%09this.googleplusurl%20%3D%20''%3B%0A%09%09%09%0A%09%09%09this.linkedinshow%20%3D%20false%3B%0A%09%09%09this.linkedinurl%20%3D%20''%3B%0A%09%09%09%0A%09%09%09this.instagramshow%20%3D%20false%3B%0A%09%09%09this.instagramrurl%20%3D%20''%3B%0A%09%09%0A%09%09%09%2F%2F%20show%20and%20set%20urls%0A%09%09%09if(this.facebook%20!%3D%20''%20%26%26%20this.facebook%20!%3D%20undefined)%7B%0A%09%09%09%09this.facebookshow%20%3D%20true%3B%0A%09%09%09%09this.facebookurl%20%3D%20'https%3A%2F%2Ffacebook.com%2F'%20%2B%20this.facebook%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.twitter%20!%3D%20''%20%26%26%20this.twitter%20!%3D%20undefined)%7B%0A%09%09%09%09this.twittershow%20%3D%20true%3B%0A%09%09%09%09this.twitterurl%20%3D%20'https%3A%2F%2Ftwitter.com%2F'%20%2B%20this.twitter%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.github%20!%3D%20''%20%26%26%20this.github%20!%3D%20undefined)%7B%0A%09%09%09%09this.githubshow%20%3D%20true%3B%0A%09%09%09%09this.githuburl%20%3D%20'https%3A%2F%2Fgithub.com%2F'%20%2B%20this.github%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.pinterest%20!%3D%20''%20%26%26%20this.pinterest%20!%3D%20undefined)%7B%0A%09%09%09%09this.pinterestshow%20%3D%20true%3B%0A%09%09%09%09this.pinteresturl%20%3D%20'https%3A%2F%2Fpinterest.com%2F'%20%2B%20this.pinterest%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.tumblr%20!%3D%20''%20%26%26%20this.tumblr%20!%3D%20undefined)%7B%0A%09%09%09%09this.tumblrshow%20%3D%20true%3B%0A%09%09%09%09this.tumblrurl%20%3D%20'http%3A%2F%2F'%20%2B%20this.tumblr%20%2B%20'.tumbler.com%2F'%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.youtube%20!%3D%20''%20%26%26%20this.youtube%20!%3D%20undefined)%7B%0A%09%09%09%09this.youtubeshow%20%3D%20true%3B%0A%09%09%09%09this.youtubeurl%20%3D%20'https%3A%2F%2Fyoutube.com%2Fuser%2F'%20%2B%20this.youtube%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.googleplus%20!%3D%20''%20%26%26%20this.googleplus%20!%3D%20undefined)%7B%0A%09%09%09%09this.googleplusshow%20%3D%20true%3B%0A%09%09%09%09this.googleplusurl%20%3D%20'https%3A%2F%2Fplus.google.com%2F'%20%2B%20this.googleplus%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.linkedin%20!%3D%20''%20%26%26%20this.linkedin%20!%3D%20undefined)%7B%0A%09%09%09%09this.linkedinshow%20%3D%20true%3B%0A%09%09%09%09this.linkedinurl%20%3D%20'https%3A%2F%2Flinkedin.com%2Fin%2F'%20%2B%20this.linkedin%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if(this.instagram%20!%3D%20''%20%26%26%20this.instagram%20!%3D%20undefined)%7B%0A%09%09%09%09this.instagramshow%20%3D%20true%3B%0A%09%09%09%09this.instagramurl%20%3D%20'https%3A%2F%2Finstagram.com%2F'%20%2B%20this.instagram%3B%0A%09%09%09%7D%0A%09%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-24.js%0A
0 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-comments%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09commentsid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09cssclass%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09showfacebook%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09showdisqus%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09disqusshortname%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09this.showfacebook%20%3D%20(this.showfacebook%20%3D%3D%3D%20'true')%3B%0A%09%09%09this.showdisqus%20%3D%20(this.showdisqus%20%3D%3D%3D%20'true')%3B%0A%09%09%09%0A%09%09%09%2F%2F%20set%20class%0A%09%09%09if(this.cssclass%20!%3D%20undefined)%7B%0A%09%09%09%09this.cssclass%20%3D%20'respond-comments-container%20'%20%2B%20this.cssclass%3B%0A%09%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%09this.cssclass%20%3D%20'respond-comments-container'%3B%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09this.url%20%3D%20window.location.href%3B%0A%09%09%09%0A%09%09%09%2F%2F%20show%20facebook%0A%09%09%09if(this.showfacebook%20%3D%3D%20true)%7B%0A%09%09%09%09%0A%09%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09%09div.setAttribute('class'%2C%20'fb-comments')%3B%0A%09%09%09%09div.setAttribute('data-width'%2C%20'100%25')%3B%0A%09%09%09%09div.setAttribute('data-href'%2C%20this.url)%3B%0A%09%09%09%09div.setAttribute('data-numposts'%2C%20'5')%3B%0A%09%09%09%09div.setAttribute('data-colorscheme'%2C%20'light')%3B%0A%09%09%09%09%0A%09%09%09%09Polymer.dom(this.%24.facebookComments).appendChild(div)%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09%2F%2F%20show%20discuss%0A%09%09%09if(this.showdisqus%20%3D%3D%20true)%7B%0A%09%09%09%09%0A%09%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09%09div.setAttribute('id'%2C%20'disqus_thread')%3B%0A%09%09%09%09%0A%09%09%09%09Polymer.dom(this.%24.disqusComments).appendChild(div)%3B%0A%09%09%09%09%0A%09%09%09%09%2F%2F%20setup%20js%0A%09%09%09%09var%20shortname%20%3D%20this.disqusshortname%3B%0A%20%20%20%20%0A%09%09%09%09%20%2F*%20*%20*%20DON'T%20EDIT%20BELOW%20THIS%20LINE%20*%20*%20*%2F%0A%09%09%09%20%20%20%20(function()%20%7B%0A%09%09%09%20%20%20%20%20%20%20%20var%20dsq%20%3D%20document.createElement('script')%3B%20%0A%09%09%09%20%20%20%20%20%20%20%20dsq.type%20%3D%20'text%2Fjavascript'%3B%20dsq.async%20%3D%20true%3B%0A%09%09%09%20%20%20%20%20%20%20%20dsq.src%20%3D%20'%2F%2F'%20%2B%20shortname%20%2B%20'.disqus.com%2Fembed.js'%3B%0A%09%09%09%20%20%20%20%20%20%20%20%0A%09%09%09%20%20%20%20%20%20%20%20(document.getElementsByTagName('head')%5B0%5D%20%7C%7C%20document.getElementsByTagName('body')%5B0%5D).appendChild(dsq)%3B%0A%09%09%09%20%20%20%20%20%20%20%0A%09%09%09%20%20%20%20%7D)()%3B%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%09%0A%09%09%7D%2C%0A%09%09%0A%09%09i18n%3A%20function(text)%7B%0A%09%09%20%20%09return%20respond.site.i18n(text)%3B%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-25.js%0A
0 ms
javascript;charset=utf-8,%0A%20%20Polymer(%7B%0A%09%20%20%09is%3A%20%22respond-fetch%22%2C%0A%09%0A%09%20%20%09%2F%2F%20element%20attributes%0A%09%20%20%09properties%3A%20%7B%0A%09%20%20%09%09url%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09fetchid%3A%20%7B%20type%3A%20String%20%7D%2C%0A%09%20%20%09%09cssclass%3A%20%7B%20type%3A%20String%20%7D%0A%09%09%7D%2C%0A%09%09%0A%09%09%2F%2F%20attached%0A%09%09attached%3A%20function()%20%7B%0A%09%09%09%0A%09%09%09var%20context%20%3D%20this%3B%0A%09%09%09%0A%09%09%09%2F%2F%20xhr%0A%09%09%09var%20xhr%20%3D%20new%20XMLHttpRequest()%3B%0A%09%09%09xhr.open('GET'%2C%20encodeURI(this.url))%3B%0A%09%09%09%0A%09%09%09xhr.onload%20%3D%20function()%20%7B%0A%09%09%09%20%20%20%20if%20(xhr.status%20%3D%3D%3D%20200)%20%7B%0A%09%09%09%20%20%20%20%0A%09%09%09%20%20%20%20%09var%20data%20%3D%20xhr.responseText%3B%0A%09%09%09%20%20%20%20%09%0A%09%09%09%09%09%2F%2F%20place%20returned%20HTML%20into%20a%20node%0A%09%09%09%09%09var%20div%20%3D%20document.createElement('div')%3B%0A%09%09%09%09%09%0A%09%09%09%09%09if(this.fetchid%20!%3D%20''%20%26%26%20this.fetchid%20!%3D%20undefined)%7B%0A%09%09%09%09%09%09div.setAttribute('id'%2C%20this.fetchid)%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09if(this.cssclass%20!%3D%20''%20%26%26%20this.cssclass%20!%3D%20undefined)%7B%0A%09%09%09%09%09%09div.setAttribute('class'%2C%20this.cssclass)%3B%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%09div.innerHTML%20%3D%20data%3B%0A%09%09%09%09%09%0A%09%09%09%09%09%2F%2F%20apply%20to%20light%20dom%0A%09%09%09%09%09Polymer.dom(context).appendChild(div)%3B%0A%09%09%09%09%09%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%20%20%20%20else%20%7B%0A%09%09%09%20%20%20%20%20%20%20%20console.log('%5Brespond.error%5D%20respond-fetch%20component%3A%20failed%20post%2C%20xhr.status%3D'%2Bxhr.status)%3B%0A%09%09%09%20%20%20%20%7D%0A%09%09%09%7D%3B%0A%09%09%09xhr.send()%3B%20%0A%09%09%0A%09%09%7D%0A%09%0A%09%7D)%3B%0A%0A%2F%2F%23%20sourceURL%3Dhttps%3A%2F%2Fhurricane-computing.com%2Fcomponents%2Frespond-build.html-26.js%0A
0 ms
fontawesome-webfont.woff
2 ms
hrdh003.undeadlinux.org SEO score
N/A
EN
UTF-8
Language claimed in HTML meta tag should match the language actually used on the web page. Otherwise Hrdh003.undeadlinux.org can be misinterpreted by Google and other search engines. Unfortunately we cannot identify language used on the page (probably there is a mix of languages, too little text or something else), while the claimed language is English. Our system also found out that Hrdh003.undeadlinux.org main page’s claimed encoding is utf-8. Use of this encoding format is the best practice as the main page visitors from all over the world won’t have any issues with symbol transcription.
hrdh003.undeadlinux.org
Open Graph description is not detected on the main page of Hrdh 003 Undeadlinux. Lack of Open Graph description can be counter-productive for their social media presence, as such a description allows converting a website homepage (or other pages) into good-looking, rich and well-structured posts, when it is being shared on Facebook and other social media. For example, adding the following code snippet into HTML <head> tag will help to represent this web page correctly in social networks: