/**
@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
*/
import"./boot.js";import{pathFromUrl as e}from"./resolve-url.js";export const useShadow=!window.ShadyDOM||!window.ShadyDOM.inUse;export const useNativeCSSProperties=Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);export const useNativeCustomElements=!window.customElements.polyfillWrapFlushCallback;export const supportsAdoptingStyleSheets=useShadow&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();export let rootPath=window.Polymer&&window.Polymer.rootPath||e(document.baseURI||window.location.href);export const setRootPath=function(e){rootPath=e};export let sanitizeDOMValue=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;export const setSanitizeDOMValue=function(e){sanitizeDOMValue=e};export const getSanitizeDOMValue=function(){return sanitizeDOMValue};export let passiveTouchGestures=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;export const setPassiveTouchGestures=function(e){passiveTouchGestures=e};export let strictTemplatePolicy=window.Polymer&&window.Polymer.strictTemplatePolicy||!1;export const setStrictTemplatePolicy=function(e){strictTemplatePolicy=e};export let allowTemplateFromDomModule=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1;export const setAllowTemplateFromDomModule=function(e){allowTemplateFromDomModule=e};export let legacyOptimizations=window.Polymer&&window.Polymer.legacyOptimizations||!1;export const setLegacyOptimizations=function(e){legacyOptimizations=e};export let legacyWarnings=window.Polymer&&window.Polymer.legacyWarnings||!1;export const setLegacyWarnings=function(e){legacyWarnings=e};export let syncInitialRender=window.Polymer&&window.Polymer.syncInitialRender||!1;export const setSyncInitialRender=function(e){syncInitialRender=e};export let legacyUndefined=window.Polymer&&window.Polymer.legacyUndefined||!1;export const setLegacyUndefined=function(e){legacyUndefined=e};export let orderedComputed=window.Polymer&&window.Polymer.orderedComputed||!1;export const setOrderedComputed=function(e){orderedComputed=e};export let cancelSyntheticClickEvents=!0;export const setCancelSyntheticClickEvents=function(e){cancelSyntheticClickEvents=e};export let removeNestedTemplates=window.Polymer&&window.Polymer.removeNestedTemplates||!1;export const setRemoveNestedTemplates=function(e){removeNestedTemplates=e};export let fastDomIf=window.Polymer&&window.Polymer.fastDomIf||!1;export const setFastDomIf=function(e){fastDomIf=e};export let suppressTemplateNotifications=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;export const setSuppressTemplateNotifications=function(e){suppressTemplateNotifications=e};export let legacyNoObservedAttributes=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1;export const setLegacyNoObservedAttributes=function(e){legacyNoObservedAttributes=e};export let useAdoptedStyleSheetsWithBuiltCSS=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;export const setUseAdoptedStyleSheetsWithBuiltCSS=function(e){useAdoptedStyleSheetsWithBuiltCSS=e};