From 77eb824f1c691744cda5eece74a397f00e97c561 Mon Sep 17 00:00:00 2001 From: Marcin Lulek Date: Sat, 11 Mar 2017 02:06:28 +0100 Subject: [PATCH] polymer: add missing files --- .../polymer/lib/elements/array-selector.html | 404 +++ .../polymer/lib/elements/custom-style.html | 73 + .../polymer/lib/elements/dom-bind.html | 109 + .../polymer/lib/elements/dom-if.html | 265 ++ .../polymer/lib/elements/dom-module.html | 136 + .../polymer/lib/elements/dom-repeat.html | 683 +++++ .../polymer/lib/legacy/class.html | 339 +++ .../lib/legacy/legacy-element-mixin.html | 918 +++++++ .../lib/legacy/mutable-data-behavior.html | 150 ++ .../polymer/lib/legacy/polymer-fn.html | 47 + .../polymer/lib/legacy/polymer.dom.html | 334 +++ .../lib/legacy/templatizer-behavior.html | 136 + .../polymer/lib/mixins/element-mixin.html | 806 ++++++ .../lib/mixins/gesture-event-listeners.html | 57 + .../polymer/lib/mixins/mutable-data.html | 180 ++ .../lib/mixins/property-accessors.html | 494 ++++ .../polymer/lib/mixins/property-effects.html | 2204 +++++++++++++++++ .../polymer/lib/mixins/template-stamp.html | 543 ++++ .../polymer/lib/utils/array-splice.html | 296 +++ .../polymer/lib/utils/async.html | 202 ++ .../polymer/lib/utils/boot.html | 51 + .../polymer/lib/utils/case-map.html | 64 + .../polymer/lib/utils/debounce.html | 91 + .../lib/utils/flattened-nodes-observer.html | 242 ++ .../polymer/lib/utils/flush.html | 60 + .../polymer/lib/utils/gestures.html | 822 ++++++ .../polymer/lib/utils/import-href.html | 108 + .../polymer/lib/utils/mixin.html | 75 + .../polymer/lib/utils/path.html | 270 ++ .../polymer/lib/utils/render-status.html | 120 + .../polymer/lib/utils/resolve-url.html | 108 + .../polymer/lib/utils/style-gather.html | 145 ++ .../polymer/lib/utils/templatize.html | 458 ++++ .../polymer/lib/utils/unresolved.html | 31 + .../entrypoints/webcomponents-ce-es5-index.js | 23 + .../webcomponents-hi-ce-es5-index.js | 21 + .../webcomponentsjs/webcomponents-ce-es5.js | 18 + .../webcomponents-es5-loader.js | 52 + .../webcomponents-hi-ce-es5.js | 16 + 39 files changed, 11151 insertions(+) create mode 100644 lib/polymer2/bower_components/polymer/lib/elements/array-selector.html create mode 100644 lib/polymer2/bower_components/polymer/lib/elements/custom-style.html create mode 100644 lib/polymer2/bower_components/polymer/lib/elements/dom-bind.html create mode 100644 lib/polymer2/bower_components/polymer/lib/elements/dom-if.html create mode 100644 lib/polymer2/bower_components/polymer/lib/elements/dom-module.html create mode 100644 lib/polymer2/bower_components/polymer/lib/elements/dom-repeat.html create mode 100644 lib/polymer2/bower_components/polymer/lib/legacy/class.html create mode 100644 lib/polymer2/bower_components/polymer/lib/legacy/legacy-element-mixin.html create mode 100644 lib/polymer2/bower_components/polymer/lib/legacy/mutable-data-behavior.html create mode 100644 lib/polymer2/bower_components/polymer/lib/legacy/polymer-fn.html create mode 100644 lib/polymer2/bower_components/polymer/lib/legacy/polymer.dom.html create mode 100644 lib/polymer2/bower_components/polymer/lib/legacy/templatizer-behavior.html create mode 100644 lib/polymer2/bower_components/polymer/lib/mixins/element-mixin.html create mode 100644 lib/polymer2/bower_components/polymer/lib/mixins/gesture-event-listeners.html create mode 100644 lib/polymer2/bower_components/polymer/lib/mixins/mutable-data.html create mode 100644 lib/polymer2/bower_components/polymer/lib/mixins/property-accessors.html create mode 100644 lib/polymer2/bower_components/polymer/lib/mixins/property-effects.html create mode 100644 lib/polymer2/bower_components/polymer/lib/mixins/template-stamp.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/array-splice.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/async.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/boot.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/case-map.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/debounce.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/flattened-nodes-observer.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/flush.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/gestures.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/import-href.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/mixin.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/path.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/render-status.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/resolve-url.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/style-gather.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/templatize.html create mode 100644 lib/polymer2/bower_components/polymer/lib/utils/unresolved.html create mode 100644 lib/polymer2/bower_components/webcomponentsjs/entrypoints/webcomponents-ce-es5-index.js create mode 100644 lib/polymer2/bower_components/webcomponentsjs/entrypoints/webcomponents-hi-ce-es5-index.js create mode 100644 lib/polymer2/bower_components/webcomponentsjs/webcomponents-ce-es5.js create mode 100644 lib/polymer2/bower_components/webcomponentsjs/webcomponents-es5-loader.js create mode 100644 lib/polymer2/bower_components/webcomponentsjs/webcomponents-hi-ce-es5.js diff --git a/lib/polymer2/bower_components/polymer/lib/elements/array-selector.html b/lib/polymer2/bower_components/polymer/lib/elements/array-selector.html new file mode 100644 index 00000000..5cf7c3c8 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/elements/array-selector.html @@ -0,0 +1,404 @@ + + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/elements/custom-style.html b/lib/polymer2/bower_components/polymer/lib/elements/custom-style.html new file mode 100644 index 00000000..8aae908d --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/elements/custom-style.html @@ -0,0 +1,73 @@ + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/elements/dom-bind.html b/lib/polymer2/bower_components/polymer/lib/elements/dom-bind.html new file mode 100644 index 00000000..d08ca0e3 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/elements/dom-bind.html @@ -0,0 +1,109 @@ + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/elements/dom-if.html b/lib/polymer2/bower_components/polymer/lib/elements/dom-if.html new file mode 100644 index 00000000..842e5a65 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/elements/dom-if.html @@ -0,0 +1,265 @@ + + + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/elements/dom-module.html b/lib/polymer2/bower_components/polymer/lib/elements/dom-module.html new file mode 100644 index 00000000..467b8573 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/elements/dom-module.html @@ -0,0 +1,136 @@ + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/elements/dom-repeat.html b/lib/polymer2/bower_components/polymer/lib/elements/dom-repeat.html new file mode 100644 index 00000000..0b7ee3f5 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/elements/dom-repeat.html @@ -0,0 +1,683 @@ + + + + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/legacy/class.html b/lib/polymer2/bower_components/polymer/lib/legacy/class.html new file mode 100644 index 00000000..7411d4bb --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/legacy/class.html @@ -0,0 +1,339 @@ + + + diff --git a/lib/polymer2/bower_components/polymer/lib/legacy/legacy-element-mixin.html b/lib/polymer2/bower_components/polymer/lib/legacy/legacy-element-mixin.html new file mode 100644 index 00000000..6272b1ce --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/legacy/legacy-element-mixin.html @@ -0,0 +1,918 @@ + + + + + + + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/legacy/mutable-data-behavior.html b/lib/polymer2/bower_components/polymer/lib/legacy/mutable-data-behavior.html new file mode 100644 index 00000000..7a1d5294 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/legacy/mutable-data-behavior.html @@ -0,0 +1,150 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/legacy/polymer-fn.html b/lib/polymer2/bower_components/polymer/lib/legacy/polymer-fn.html new file mode 100644 index 00000000..29258b55 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/legacy/polymer-fn.html @@ -0,0 +1,47 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/legacy/polymer.dom.html b/lib/polymer2/bower_components/polymer/lib/legacy/polymer.dom.html new file mode 100644 index 00000000..8e9e8958 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/legacy/polymer.dom.html @@ -0,0 +1,334 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/legacy/templatizer-behavior.html b/lib/polymer2/bower_components/polymer/lib/legacy/templatizer-behavior.html new file mode 100644 index 00000000..653e52e5 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/legacy/templatizer-behavior.html @@ -0,0 +1,136 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/mixins/element-mixin.html b/lib/polymer2/bower_components/polymer/lib/mixins/element-mixin.html new file mode 100644 index 00000000..3c8c9890 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/mixins/element-mixin.html @@ -0,0 +1,806 @@ + + + + + + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/mixins/gesture-event-listeners.html b/lib/polymer2/bower_components/polymer/lib/mixins/gesture-event-listeners.html new file mode 100644 index 00000000..714cddac --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/mixins/gesture-event-listeners.html @@ -0,0 +1,57 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/mixins/mutable-data.html b/lib/polymer2/bower_components/polymer/lib/mixins/mutable-data.html new file mode 100644 index 00000000..2cfe3d54 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/mixins/mutable-data.html @@ -0,0 +1,180 @@ + + + diff --git a/lib/polymer2/bower_components/polymer/lib/mixins/property-accessors.html b/lib/polymer2/bower_components/polymer/lib/mixins/property-accessors.html new file mode 100644 index 00000000..6555968e --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/mixins/property-accessors.html @@ -0,0 +1,494 @@ + + + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/mixins/property-effects.html b/lib/polymer2/bower_components/polymer/lib/mixins/property-effects.html new file mode 100644 index 00000000..de11cd4d --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/mixins/property-effects.html @@ -0,0 +1,2204 @@ + + + + + + + + + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/mixins/template-stamp.html b/lib/polymer2/bower_components/polymer/lib/mixins/template-stamp.html new file mode 100644 index 00000000..ac10e38f --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/mixins/template-stamp.html @@ -0,0 +1,543 @@ + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/array-splice.html b/lib/polymer2/bower_components/polymer/lib/utils/array-splice.html new file mode 100644 index 00000000..34e45a65 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/array-splice.html @@ -0,0 +1,296 @@ + + + \ No newline at end of file diff --git a/lib/polymer2/bower_components/polymer/lib/utils/async.html b/lib/polymer2/bower_components/polymer/lib/utils/async.html new file mode 100644 index 00000000..6bcfbd4b --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/async.html @@ -0,0 +1,202 @@ + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/boot.html b/lib/polymer2/bower_components/polymer/lib/utils/boot.html new file mode 100644 index 00000000..677a2954 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/boot.html @@ -0,0 +1,51 @@ + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/case-map.html b/lib/polymer2/bower_components/polymer/lib/utils/case-map.html new file mode 100644 index 00000000..b1b44cda --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/case-map.html @@ -0,0 +1,64 @@ + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/debounce.html b/lib/polymer2/bower_components/polymer/lib/utils/debounce.html new file mode 100644 index 00000000..8681b432 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/debounce.html @@ -0,0 +1,91 @@ + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/flattened-nodes-observer.html b/lib/polymer2/bower_components/polymer/lib/utils/flattened-nodes-observer.html new file mode 100644 index 00000000..0a49b3ab --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/flattened-nodes-observer.html @@ -0,0 +1,242 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/flush.html b/lib/polymer2/bower_components/polymer/lib/utils/flush.html new file mode 100644 index 00000000..0e3384bc --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/flush.html @@ -0,0 +1,60 @@ + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/gestures.html b/lib/polymer2/bower_components/polymer/lib/utils/gestures.html new file mode 100644 index 00000000..e4599758 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/gestures.html @@ -0,0 +1,822 @@ + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/import-href.html b/lib/polymer2/bower_components/polymer/lib/utils/import-href.html new file mode 100644 index 00000000..627eae9c --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/import-href.html @@ -0,0 +1,108 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/mixin.html b/lib/polymer2/bower_components/polymer/lib/utils/mixin.html new file mode 100644 index 00000000..91dbdbfe --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/mixin.html @@ -0,0 +1,75 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/path.html b/lib/polymer2/bower_components/polymer/lib/utils/path.html new file mode 100644 index 00000000..869358d3 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/path.html @@ -0,0 +1,270 @@ + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/render-status.html b/lib/polymer2/bower_components/polymer/lib/utils/render-status.html new file mode 100644 index 00000000..1713b57d --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/render-status.html @@ -0,0 +1,120 @@ + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/resolve-url.html b/lib/polymer2/bower_components/polymer/lib/utils/resolve-url.html new file mode 100644 index 00000000..7bffd134 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/resolve-url.html @@ -0,0 +1,108 @@ + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/style-gather.html b/lib/polymer2/bower_components/polymer/lib/utils/style-gather.html new file mode 100644 index 00000000..1fb045f3 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/style-gather.html @@ -0,0 +1,145 @@ + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/templatize.html b/lib/polymer2/bower_components/polymer/lib/utils/templatize.html new file mode 100644 index 00000000..ad1008ae --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/templatize.html @@ -0,0 +1,458 @@ + + + + + + + diff --git a/lib/polymer2/bower_components/polymer/lib/utils/unresolved.html b/lib/polymer2/bower_components/polymer/lib/utils/unresolved.html new file mode 100644 index 00000000..6c8752a9 --- /dev/null +++ b/lib/polymer2/bower_components/polymer/lib/utils/unresolved.html @@ -0,0 +1,31 @@ + + diff --git a/lib/polymer2/bower_components/webcomponentsjs/entrypoints/webcomponents-ce-es5-index.js b/lib/polymer2/bower_components/webcomponentsjs/entrypoints/webcomponents-ce-es5-index.js new file mode 100644 index 00000000..457536a1 --- /dev/null +++ b/lib/polymer2/bower_components/webcomponentsjs/entrypoints/webcomponents-ce-es5-index.js @@ -0,0 +1,23 @@ +/** +@license +Copyright (c) 2017 The Polymer Project Authors. All rights reserved. +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt +The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt +Code distributed by Google as part of the polymer project is also +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +*/ +'use strict'; + +/* + * Polyfills loaded: Custom Elements ES5 Shim + * Used in: Chrome + */ + +import '../bower_components/custom-elements/src/native-shim.js' + +import '../src/unresolved.js' + +requestAnimationFrame(() => { + window.dispatchEvent(new CustomEvent('WebComponentsReady')); +}); diff --git a/lib/polymer2/bower_components/webcomponentsjs/entrypoints/webcomponents-hi-ce-es5-index.js b/lib/polymer2/bower_components/webcomponentsjs/entrypoints/webcomponents-hi-ce-es5-index.js new file mode 100644 index 00000000..65d2726c --- /dev/null +++ b/lib/polymer2/bower_components/webcomponentsjs/entrypoints/webcomponents-hi-ce-es5-index.js @@ -0,0 +1,21 @@ +/** +@license +Copyright (c) 2017 The Polymer Project Authors. All rights reserved. +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt +The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt +Code distributed by Google as part of the polymer project is also +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +*/ +'use strict'; + +/* + * Polyfills loaded: HTML Imports + Custom Elements ES5 shim + * Used in: Safari Tech Preview, Chrome + */ + +import '../bower_components/custom-elements/src/native-shim.js' +import '../bower_components/html-imports/src/html-imports.js' + +import '../src/post-polyfill.js' +import '../src/unresolved.js' diff --git a/lib/polymer2/bower_components/webcomponentsjs/webcomponents-ce-es5.js b/lib/polymer2/bower_components/webcomponentsjs/webcomponents-ce-es5.js new file mode 100644 index 00000000..5c8f4b70 --- /dev/null +++ b/lib/polymer2/bower_components/webcomponentsjs/webcomponents-ce-es5.js @@ -0,0 +1,18 @@ +(function () { +'use strict'; + +(()=>{'use strict';if(!window.customElements)return;const a=window.HTMLElement,b=window.customElements.define,c=window.customElements.get,d=new Map,e=new Map;let f=!1,g=!1;window.HTMLElement=function(){if(!f){const h=d.get(this.constructor),i=c.call(window.customElements,h);g=!0;const j=new i;return j}f=!1;},window.HTMLElement.prototype=a.prototype,window.customElements.define=(h,i)=>{const j=i.prototype,k=class extends a{constructor(){super(),Object.setPrototypeOf(this,j),g||(f=!0,i.call(this)),g=!1;}},l=k.prototype;k.observedAttributes=i.observedAttributes,l.connectedCallback=j.connectedCallback,l.disconnectedCallback=j.disconnectedCallback,l.attributeChangedCallback=j.attributeChangedCallback,l.adoptedCallback=j.adoptedCallback,d.set(i,h),e.set(h,i),b.call(window.customElements,h,k);},window.customElements.get=(h)=>e.get(h);})(); + +(function(){'use strict';var a=document.createElement('style');a.textContent='body {transition: opacity ease-in 0.2s; } \\nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \\n';var b=document.querySelector('head');b.insertBefore(a,b.firstChild);})(); + +/** +@license +Copyright (c) 2017 The Polymer Project Authors. All rights reserved. +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt +The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt +Code distributed by Google as part of the polymer project is also +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +*/requestAnimationFrame(()=>{window.dispatchEvent(new CustomEvent('WebComponentsReady'));}); + +}()); diff --git a/lib/polymer2/bower_components/webcomponentsjs/webcomponents-es5-loader.js b/lib/polymer2/bower_components/webcomponentsjs/webcomponents-es5-loader.js new file mode 100644 index 00000000..7141ecf5 --- /dev/null +++ b/lib/polymer2/bower_components/webcomponentsjs/webcomponents-es5-loader.js @@ -0,0 +1,52 @@ +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt + * Code distributed by Google as part of the polymer project is also + * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt + */ + +(function() { + 'use strict'; + var name = 'webcomponents-es5-loader.js'; + // Feature detect which polyfill needs to be imported. + var polyfills = []; + if (!('import' in document.createElement('link'))) { + polyfills.push('hi'); + } + if (!('attachShadow' in Element.prototype && 'getRootNode' in Element.prototype) || + (window.ShadyDOM && window.ShadyDOM.force)) { + polyfills.push('sd'); + } + if (!window.customElements || window.customElements.forcePolyfill) { + polyfills.push('ce'); + } else { + polyfills.push('ce-es5'); + } + if (!('content' in document.createElement('template')) || !window.Promise || + // Edge has broken fragment cloning which means you cannot clone template.content + !(document.createDocumentFragment().cloneNode() instanceof DocumentFragment)) { + polyfills.push('pf'); + } + + if (polyfills.length === 4) { // hi-ce-sd-pf is actually called lite. + polyfills = ['lite']; + } + + if (polyfills.length) { + var script = document.querySelector('script[src*="' + name + '"]'); + var newScript = document.createElement('script'); + // Load it from the right place. + var replacement = 'webcomponents-' + polyfills.join('-') + '.js'; + var url = script.src.replace(name, replacement); + newScript.src = url; + document.head.appendChild(newScript); + } else { + // Ensure `WebComponentsReady` is fired also when there are no polyfills loaded. + requestAnimationFrame(function() { + window.dispatchEvent(new CustomEvent('WebComponentsReady')); + }); + } +})(); diff --git a/lib/polymer2/bower_components/webcomponentsjs/webcomponents-hi-ce-es5.js b/lib/polymer2/bower_components/webcomponentsjs/webcomponents-hi-ce-es5.js new file mode 100644 index 00000000..4d15ac10 --- /dev/null +++ b/lib/polymer2/bower_components/webcomponentsjs/webcomponents-hi-ce-es5.js @@ -0,0 +1,16 @@ +(function () { +'use strict'; + +(()=>{'use strict';if(!window.customElements)return;const a=window.HTMLElement,b=window.customElements.define,c=window.customElements.get,d=new Map,e=new Map;let f=!1,g=!1;window.HTMLElement=function(){if(!f){const h=d.get(this.constructor),i=c.call(window.customElements,h);g=!0;const j=new i;return j}f=!1;},window.HTMLElement.prototype=a.prototype,window.customElements.define=(h,i)=>{const j=i.prototype,k=class extends a{constructor(){super(),Object.setPrototypeOf(this,j),g||(f=!0,i.call(this)),g=!1;}},l=k.prototype;k.observedAttributes=i.observedAttributes,l.connectedCallback=j.connectedCallback,l.disconnectedCallback=j.disconnectedCallback,l.attributeChangedCallback=j.attributeChangedCallback,l.adoptedCallback=j.adoptedCallback,d.set(i,h),e.set(h,i),b.call(window.customElements,h,k);},window.customElements.get=(h)=>e.get(h);})(); + +((a)=>{const b=!!('import'in document.createElement('link'));let c=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return c||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const d=/(^\/)|(^#)|(^[\w-\d]*:)/,f=/(url\()([^)]*)(\))/g,g=/(@import[\s]+(?!url\())([^;]*)(;)/g,h=/(]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,k={fixUrls(J,K){if(J.href&&J.setAttribute('href',k.replaceAttrUrl(J.getAttribute('href'),K)),J.src&&J.setAttribute('src',k.replaceAttrUrl(J.getAttribute('src'),K)),'style'===J.localName){const L=k.replaceUrls(J.textContent,K,f);J.textContent=k.replaceUrls(L,K,g);}},replaceUrls(J,K,L){return J.replace(L,(M,N,O,P)=>{let Q=O.replace(/["']/g,'');return K&&(Q=k.resolveUrl(Q,K)),N+'\''+Q+'\''+P})},replaceAttrUrl(J,K){return J&&d.test(J)?J:k.resolveUrl(J,K)},resolveUrl(J,K){if(void 0===k.__workingURL){k.__workingURL=!1;try{const M=new URL('b','http://a');M.pathname='c%20d',k.__workingURL='http://a/c%20d'===M.href;}catch(M){}}if(k.__workingURL)return new URL(J,K).href;let L=k.__tempDoc;return L||(L=document.implementation.createHTMLDocument('temp'),k.__tempDoc=L,L.__base=L.createElement('base'),L.head.appendChild(L.__base),L.__anchor=L.createElement('a')),L.__base.href=K,L.__anchor.href=J,L.__anchor.href||J}},o={async:!0,load(J,K,L){if(!J)L('error: href must be specified');else if(J.match(/^data:/)){const M=J.split(','),N=M[0];let O=M[1];O=-1{let N=M.getResponseHeader('Location');if(N&&0===N.indexOf('/')){const P=location.origin||location.protocol+'//'+location.host;N=P+N;}const O=M.response||M.responseText;304===M.status||0===M.status||200<=M.status&&300>M.status?K(O,N):L(O);},M.send();}}},p=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),q='link[rel=import]',t='import-disable',v=`link[rel=stylesheet][href][type=${t}]`,w=`${q}, ${v}, + style:not([type]), link[rel=stylesheet][href]:not([type]), + script:not([type]), script[type="application/javascript"], + script[type="text/javascript"]`,x='import-dependency',y=`${q}:not(${x})`,z=`script[${x}]`,A=`style[${x}], + link[rel=stylesheet][${x}]`;const C=(J)=>{return J.nodeType===Node.ELEMENT_NODE&&'link'===J.localName&&'import'===J.rel},D=(J,K)=>{if(J.__loaded)K&&K();else if('script'===J.localName&&!J.src)J.__loaded=!0,K&&K();else{const L=(M)=>{J.removeEventListener(M.type,L),J.__loaded=!0,K&&K();};J.addEventListener('load',L),p&&'style'===J.localName||J.addEventListener('error',L);}},E=(J)=>{F(()=>G(()=>J&&J()));},F=(J)=>{if('loading'!==document.readyState)J();else{const K=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',K),J());};document.addEventListener('readystatechange',K);}},G=(J)=>{let K=document.querySelectorAll(y),L=K.length;if(!L)return void J();for(let O,M=0,N=K.length;M{0==--L&&J();});},H=(J)=>{if(b)return J.ownerDocument===document?null:J.ownerDocument;let K=J.__importDoc;if(!K&&J.parentNode){if(K=J.parentNode,'function'==typeof K.closest)K=K.closest(q);else for(;!C(K)&&(K=K.parentNode););J.__importDoc=K;}return K},I=(J,K)=>{if('function'==typeof window.CustomEvent)return new CustomEvent(J,K);const L=document.createEvent('CustomEvent');return L.initCustomEvent(J,!!K.bubbles,!!K.cancelable,K.detail),L};if(b){const J=document.querySelectorAll(q);for(let N,L=0,M=J.length;L{const M=L.target;C(M)&&(M.__loaded=!0);};document.addEventListener('load',K,!0),document.addEventListener('error',K,!0);}else new class{constructor(){this.documents={},this.inflight=0,this.dynamicImportsMO=new MutationObserver((J)=>this.handleMutations(J)),F(()=>{this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.loadImports(document);});}loadImports(J){const K=J.querySelectorAll(q);for(let L=0,M=K.length;L{const N=this.makeDocument(L,M||K);this.documents[K]=N,this.inflight--,this.loadImports(N),this.processImportsIfLoadingDone();},()=>{this.documents[K]=null,this.inflight--,this.processImportsIfLoadingDone();});}makeDocument(J,K){if(!J)return document.createDocumentFragment();p&&(J=J.replace(h,(Q,R,S)=>{return-1===Q.indexOf('type=')?`${R} type=${t} ${S}`:Q}));let L;const M=document.createElement('template');if(M.innerHTML=J,M.content)L=M.content;else for(L=document.createDocumentFragment();M.firstChild;)L.appendChild(M.firstChild);const N=L.querySelector('base');N&&(K=k.replaceAttrUrl(N.getAttribute('href'),K),N.removeAttribute('href'));const O=L.querySelectorAll(w);let P=0;for(let S,Q=0,R=O.length;Q{K&&J&&(this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.fireEvents());};this.waitForStyles(()=>{K=!0,L();}),this.runScripts(()=>{J=!0,L();});}flatten(J){const K=J.querySelectorAll(q);for(let N,L=0,M=K.length;LN.href,configurable:!0,enumerable:!0}),this.flatten(O),N.appendChild(O));}}runScripts(J){const K=document.querySelectorAll(z),L=K.length,M=(N)=>{if(N{c=null,M(N+1);});}else J();};M(0);}waitForStyles(J){const K=document.querySelectorAll(A);let L=K.length;if(!L)return void J();const M=p&&!!document.querySelector(v);for(let P,N=0,O=K.length;N{P.removeAttribute(x),0==--L&&J();}),M&&P.parentNode!==document.head){const Q=document.createElement(P.localName);Q.__appliedElement=P,Q.setAttribute('type','import-placeholder'),P.parentNode.insertBefore(Q,P.nextSibling);let R=H(P);for(;R&&H(R);)R=H(R);R.parentNode!==document.head&&(R=null),document.head.insertBefore(P,R),P.removeAttribute('type');}}fireEvents(){const J=document.querySelectorAll(q);for(let L,K=J.length-1;0<=K&&(L=J[K]);K--)this.fireEventIfNeeded(L);}fireEventIfNeeded(J){if(!J.__loaded){J.__loaded=!0,J.import&&(J.import.readyState='complete');const K=J.import?'load':'error';J.dispatchEvent(I(K,{bubbles:!1,cancelable:!1,detail:void 0}));}}handleMutations(J){for(let K=0;Kdocument.dispatchEvent(I('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),a.useNative=b,a.whenReady=E,a.importForElement=H;})(window.HTMLImports=window.HTMLImports||{}); + +(function(){'use strict';var a=window.customElements,b=window.HTMLImports;if(a&&a.polyfillWrapFlushCallback){var c,d=function(){if(c){var g=c;return c=null,g(),!0}},e=b.whenReady;a.polyfillWrapFlushCallback(function(f){c=f,e(d);}),b.whenReady=function(f){e(function(){d()?b.whenReady(f):f();});};}b.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'));});});})(); + +(function(){'use strict';var a=document.createElement('style');a.textContent='body {transition: opacity ease-in 0.2s; } \\nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \\n';var b=document.querySelector('head');b.insertBefore(a,b.firstChild);})(); + +}());