onsenui
Version:
HTML5 Mobile Framework & UI Components
2 lines • 314 kB
JavaScript
/* onsenui v2.11.2 - 2021-01-12 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ons=e()}(this,function(){"use strict";var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(void 0!==i){if("value"in i)return i.value;i=i.get;return void 0!==i?i.call(n):void 0}if(t=Object.getPrototypeOf(t),null!==t)return c(t,e,n)}function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r=function(t,e){var n,i={};for(n in t)0<=e.indexOf(n)||Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i},a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},n=window.HTMLElement;function h(){o(this,h),this._selectedPlatform=null,this._ignorePlatformSelect=!1}var d=new(t(h,[{key:"select",value:function(t){"string"==typeof t&&(this._selectedPlatform=t.trim().toLowerCase())}},{key:"_getSelectedPlatform",value:function(){return this._ignorePlatformSelect?null:this._selectedPlatform}},{key:"_runOnActualPlatform",value:function(t){this._ignorePlatformSelect=!0;t=t();return this._ignorePlatformSelect=!1,t}},{key:"isWebView",value:function(){if("loading"===document.readyState||"uninitialized"==document.readyState)throw new Error("isWebView() method is available after dom contents loaded.");return!!(window.cordova||window.phonegap||window.PhoneGap)}},{key:"isIPhone",value:function(){return/iPhone/i.test(navigator.userAgent)}},{key:"isIPhoneX",value:function(){return this.isIPhone()&&(375===window.screen.width&&812===window.screen.height||812===window.screen.width&&375===window.screen.height||414===window.screen.width&&896===window.screen.height||896===window.screen.width&&414===window.screen.height||390===window.screen.width&&844===window.screen.height||844===window.screen.width&&390===window.screen.height||428===window.screen.width&&926===window.screen.height||926===window.screen.width&&428===window.screen.height)}},{key:"isIPad",value:function(){return/iPad/i.test(navigator.userAgent)||this.isIPadOS()}},{key:"isIPod",value:function(){return/iPod/i.test(navigator.userAgent)}},{key:"isIOS",value:function(t){return!t&&this._getSelectedPlatform()?"ios"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":l(device))||/browser/i.test(device.platform)?/iPhone|iPad|iPod/i.test(navigator.userAgent)||this.isIPadOS():/iOS/i.test(device.platform)}},{key:"isIOS7above",value:function(){if("object"===("undefined"==typeof device?"undefined":l(device))&&!/browser/i.test(device.platform))return/iOS/i.test(device.platform)&&7<=parseInt(device.version.split(".")[0]);if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){var t=(navigator.userAgent.match(/\b[0-9]+_[0-9]+(?:_[0-9]+)?\b/)||[""])[0].replace(/_/g,".");return 7<=parseInt(t.split(".")[0])}return!1}},{key:"isIPadOS",value:function(){return!(!/Macintosh/i.test(navigator.userAgent)||!navigator.maxTouchPoints||5!==navigator.maxTouchPoints)}},{key:"isIOSSafari",value:function(){var t=window.navigator,e=t.userAgent;return!(!this.isIOS()||-1===e.indexOf("Safari")||-1===e.indexOf("Version")||t.standalone)}},{key:"isWKWebView",value:function(){var t=/constructor/i.test(n);return!(!(this.isIOS()&&window.webkit&&window.webkit.messageHandlers&&window.indexedDB)||t)}},{key:"isAndroidPhone",value:function(){return/Android/i.test(navigator.userAgent)&&/Mobile/i.test(navigator.userAgent)}},{key:"isAndroidTablet",value:function(){return/Android/i.test(navigator.userAgent)&&!/Mobile/i.test(navigator.userAgent)}},{key:"isAndroid",value:function(t){return!t&&this._getSelectedPlatform()?"android"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":l(device))||/browser/i.test(device.platform)?/Android/i.test(navigator.userAgent):/Android/i.test(device.platform)}},{key:"isWP",value:function(t){return!t&&this._getSelectedPlatform()?"wp"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":l(device))||/browser/i.test(device.platform)?/Windows Phone|IEMobile|WPDesktop/i.test(navigator.userAgent):/Win32NT|WinCE/i.test(device.platform)}},{key:"isBlackBerry",value:function(t){return!t&&this._getSelectedPlatform()?"blackberry"===this._getSelectedPlatform():"object"!==("undefined"==typeof device?"undefined":l(device))||/browser/i.test(device.platform)?/BlackBerry|RIM Tablet OS|BB10/i.test(navigator.userAgent):/BlackBerry/i.test(device.platform)}},{key:"isOpera",value:function(t){return!t&&this._getSelectedPlatform()?"opera"===this._getSelectedPlatform():!!window.opera||0<=navigator.userAgent.indexOf(" OPR/")}},{key:"isFirefox",value:function(t){return!t&&this._getSelectedPlatform()?"firefox"===this._getSelectedPlatform():"undefined"!=typeof InstallTrigger}},{key:"isSafari",value:function(t){return!t&&this._getSelectedPlatform()?"safari"===this._getSelectedPlatform():0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||"[object SafariRemoteNotification]"===(!window.safari||safari.pushNotification).toString()}},{key:"isChrome",value:function(t){return!t&&this._getSelectedPlatform()?"chrome"===this._getSelectedPlatform():!(!window.chrome||window.opera||0<=navigator.userAgent.indexOf(" OPR/")||0<=navigator.userAgent.indexOf(" Edge/"))}},{key:"isIE",value:function(t){return!t&&this._getSelectedPlatform()?"ie"===this._getSelectedPlatform():!!document.documentMode}},{key:"isEdge",value:function(t){return!t&&this._getSelectedPlatform()?"edge"===this._getSelectedPlatform():0<=navigator.userAgent.indexOf(" Edge/")}},{key:"getMobileOS",value:function(){return this.isAndroid()?"android":this.isIOS()?"ios":this.isWP()?"wp":"other"}},{key:"getIOSDevice",value:function(){return this.isIPhone()?"iphone":this.isIPad()?"ipad":this.isIPod()?"ipod":"na"}}]),h);function f(t,e){return t(e={exports:{}},e.exports),e.exports}window.customElements&&(window.customElements.forcePolyfill=!0);function _(t){return"object"===(void 0===t?"undefined":l(t))?null!==t:"function"==typeof t}function p(t){if(!_(t))throw TypeError(t+" is not an object!");return t}function v(t){try{return!!t()}catch(t){return!0}}function m(t){return x?O.createElement(t):{}}function b(t,e){if(!_(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!_(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!_(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!_(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}function y(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function k(t,e){return I.call(t,e)}function w(t){return"Symbol(".concat(void 0===t?"":t,")_",(++N+B).toString(36))}function E(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}function C(i,o,t){if(E(i),void 0===o)return i;switch(t){case 1:return function(t){return i.call(o,t)};case 2:return function(t,e){return i.call(o,t,e)};case 3:return function(t,e,n){return i.call(o,t,e,n)}}return function(){return i.apply(o,arguments)}}var A=f(function(t){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),S=f(function(t){t=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)}),P=(S.version,!v(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),O=A.document,x=_(O)&&_(O.createElement),L=!P&&!v(function(){return 7!=Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a}),T=Object.defineProperty,M={f:P?Object.defineProperty:function(t,e,n){if(p(t),e=b(e,!0),p(n),L)try{return T(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},D=P?function(t,e,n){return M.f(t,e,y(1,n))}:function(t,e,n){return t[e]=n,t},I={}.hasOwnProperty,N=0,B=Math.random(),j=f(function(t){var e="__core-js_shared__",n=A[e]||(A[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:S.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),H=j("native-function-to-string",Function.toString),R=f(function(t){var r=w("src"),e="toString",a=(""+H).split(e);S.inspectSource=function(t){return H.call(t)},(t.exports=function(t,e,n,i){var o="function"==typeof n;o&&(k(n,"name")||D(n,"name",e)),t[e]!==n&&(o&&(k(n,r)||D(n,r,t[e]?""+t[e]:a.join(String(e)))),t===A?t[e]=n:i?t[e]?t[e]=n:D(t,e,n):(delete t[e],D(t,e,n)))})(Function.prototype,e,function(){return"function"==typeof this&&this[r]||H.call(this)})}),q="prototype",z=function t(e,n,i){var o,r,a,s=e&t.F,l=e&t.G,u=e&t.P,c=e&t.B,h=l?A:e&t.S?A[n]||(A[n]={}):(A[n]||{})[q],d=l?S:S[n]||(S[n]={}),f=d[q]||(d[q]={});for(o in l&&(i=n),i)r=((a=!s&&h&&void 0!==h[o])?h:i)[o],a=c&&a?C(r,A):u&&"function"==typeof r?C(Function.call,r):r,h&&R(h,o,r,e&t.U),d[o]!=r&&D(d,o,a),u&&f[o]!=r&&(f[o]=r)};A.core=S,z.F=1,z.G=2,z.S=4,z.P=8,z.B=16,z.W=32,z.U=64,z.R=128;function F(t){return G.call(t).slice(8,-1)}function V(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function W(t){return $(V(t))}function U(t,e){if(p(t),!_(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var X=z,Y={f:{}.propertyIsEnumerable},G={}.toString,$=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==F(t)?t.split(""):Object(t)},K=Object.getOwnPropertyDescriptor,Q={f:P?K:function(t,e){if(t=W(t),e=b(e,!0),L)try{return K(t,e)}catch(t){}if(k(t,e))return y(!Y.f.call(t,e),t[e])}},J={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=C(Function.call,Q.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return U(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:U};X(X.S,"Object",{setPrototypeOf:J.set});S.Object.setPrototypeOf;function Z(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),et))?t:nt?F(e):"Object"==(t=F(e))&&"function"==typeof e.callee?"Arguments":t}var tt=f(function(t){var e=j("wks"),n=A.Symbol,i="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=i&&n[t]||(i?n:w)("Symbol."+t))}).store=e}),et=tt("toStringTag"),nt="Arguments"==F(function(){return arguments}()),it={};it[tt("toStringTag")]="z",it+""!="[object z]"&&R(Object.prototype,"toString",function(){return"[object "+Z(this)+"]"},!0);function ot(t){return isNaN(t=+t)?0:(0<t?ct:ut)(t)}function rt(t){return 0<t?dt(ot(t),9007199254740991):0}function at(){}function st(t,e,n){t&&!k(t=n?t:t.prototype,Pt)&&St(t,Pt,{configurable:!0,value:e})}var lt,ut=Math.ceil,ct=Math.floor,ht={},dt=Math.min,ft=Math.max,pt=Math.min,gt=j("keys"),z=function(t){return gt[t]||(gt[t]=w(t))},mt=(lt=!1,function(t,e,n){var i,o=W(t),r=rt(o.length),a=(t=r,(n=ot(n=n))<0?ft(n+t,0):pt(n,t));if(lt&&e!=e){for(;a<r;)if((i=o[a++])!=i)return!0}else for(;a<r;a++)if((lt||a in o)&&o[a]===e)return lt||a||0;return!lt&&-1}),_t=z("IE_PROTO"),vt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),bt=Object.keys||function(t){return function(t,e){var n,i=W(t),o=0,r=[];for(n in i)n!=_t&&k(i,n)&&r.push(n);for(;e.length>o;)k(i,n=e[o++])&&(~mt(r,n)||r.push(n));return r}(t,vt)},yt=P?Object.defineProperties:function(t,e){p(t);for(var n,i=bt(e),o=i.length,r=0;r<o;)M.f(t,n=i[r++],e[n]);return t},it=A.document,kt=it&&it.documentElement,wt=z("IE_PROTO"),Et="prototype",Ct=function(){var t=m("iframe"),e=vt.length;for(t.style.display="none",kt.appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),Ct=t.F;e--;)delete Ct[Et][vt[e]];return Ct()},At=Object.create||function(t,e){var n;return null!==t?(at[Et]=p(t),n=new at,at[Et]=null,n[wt]=t):n=Ct(),void 0===e?n:yt(n,e)},St=M.f,Pt=tt("toStringTag"),Ot={};D(Ot,tt("iterator"),function(){return this});function xt(t){return Object(V(t))}function Lt(){return this}function Tt(t,e,n,i,o,r,a){function s(t){if(!jt&&t in f)return f[t];switch(t){case"keys":case Ht:return function(){return new n(this,t)}}return function(){return new n(this,t)}}_=e,g=i,(m=n).prototype=At(Ot,{next:y(1,g)}),st(m,_+" Iterator");var l,u,c,h=e+" Iterator",d=o==Ht,i=!1,f=t.prototype,p=f[Bt]||f["@@iterator"]||o&&f[o],g=p||s(o),m=o?d?s("entries"):g:void 0,_="Array"==e&&f.entries||p;if(_&&(c=Nt(_.call(new t)))!==Object.prototype&&c.next&&(st(c,h,!0),"function"!=typeof c[Bt]&&D(c,Bt,Lt)),d&&p&&p.name!==Ht&&(i=!0,g=function(){return p.call(this)}),!jt&&!i&&f[Bt]||D(f,Bt,g),ht[e]=g,ht[h]=Lt,o)if(l={values:d?g:s(Ht),keys:r?g:s("keys"),entries:m},a)for(u in l)u in f||R(f,u,l[u]);else X(X.P+X.F*(jt||i),e,l);return l}var Mt,Dt=z("IE_PROTO"),It=Object.prototype,Nt=Object.getPrototypeOf||function(t){return t=xt(t),k(t,Dt)?t[Dt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?It:null},Bt=tt("iterator"),jt=!([].keys&&"next"in[].keys()),Ht="values",Rt=(Mt=!0,function(t,e){var n,i=String(V(t)),o=ot(e),t=i.length;return o<0||t<=o?Mt?"":void 0:(e=i.charCodeAt(o))<55296||56319<e||o+1===t||(n=i.charCodeAt(o+1))<56320||57343<n?Mt?i.charAt(o):e:Mt?i.slice(o,o+2):n-56320+(e-55296<<10)+65536});Tt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,e=this._i;return e>=t.length?{value:void 0,done:!0}:(e=Rt(t,e),this._i+=e.length,{value:e,done:!1})});var qt=tt("unscopables"),zt=Array.prototype;null==zt[qt]&&D(zt,qt,{});function Ft(t,e){return{value:e,done:!!t}}var it=function(t){zt[qt][t]=!0},Vt=Tt(Array,"Array",function(t,e){this._t=W(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,Ft(1)):Ft(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");ht.Arguments=ht.Array,it("keys"),it("values"),it("entries");for(var Wt=tt("iterator"),Ut=tt("toStringTag"),Xt=ht.Array,Yt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Gt=bt(Yt),$t=0;$t<Gt.length;$t++){var Kt,Qt=Gt[$t],Jt=Yt[Qt],Zt=A[Qt],te=Zt&&Zt.prototype;if(te&&(te[Wt]||D(te,Wt,Xt),te[Ut]||D(te,Ut,Qt),ht[Qt]=Xt,Jt))for(Kt in Vt)te[Kt]||R(te,Kt,Vt[Kt],!0)}function ee(t,e,n){for(var i in e)R(t,i,e[i],n);return t}function ne(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}function ie(e,t,n,i){try{return i?t(p(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&p(o.call(e)),t}}function oe(t){return void 0!==t&&(ht.Array===t||le[se]===t)}function re(t,e){if(!_(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}function ae(t,e){var n,i=ge(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n}var se=tt("iterator"),le=Array.prototype,ue=tt("iterator"),ce=S.getIteratorMethod=function(t){if(null!=t)return t[ue]||t["@@iterator"]||ht[Z(t)]},he=f(function(t){var h={},d={},t=t.exports=function(t,e,n,i,o){var r,a,s,l,o=o?function(){return t}:ce(t),u=C(n,i,e?2:1),c=0;if("function"!=typeof o)throw TypeError(t+" is not iterable!");if(oe(o)){for(r=rt(t.length);c<r;c++)if((l=e?u(p(a=t[c])[0],a[1]):u(t[c]))===h||l===d)return l}else for(s=o.call(t);!(a=s.next()).done;)if((l=ie(s,u,a.value,e))===h||l===d)return l};t.BREAK=h,t.RETURN=d}),de=tt("species"),fe=f(function(t){function n(t){e(t,i,{value:{i:"O"+ ++o,w:{}}})}var i=w("meta"),e=M.f,o=0,r=Object.isExtensible||function(){return!0},a=!v(function(){return r(Object.preventExtensions({}))}),s=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!_(t))return"symbol"==(void 0===t?"undefined":l(t))?t:("string"==typeof t?"S":"P")+t;if(!k(t,i)){if(!r(t))return"F";if(!e)return"E";n(t)}return t[i].i},getWeak:function(t,e){if(!k(t,i)){if(!r(t))return!0;if(!e)return!1;n(t)}return t[i].w},onFreeze:function(t){return a&&s.NEED&&r(t)&&!k(t,i)&&n(t),t}}}),pe=(fe.KEY,fe.NEED,fe.fastKey,fe.getWeak,fe.onFreeze,M.f),ge=fe.fastKey,me=P?"_s":"size",_e={getConstructor:function(t,o,n,i){var r=t(function(t,e){ne(t,r,o,"_i"),t._t=o,t._i=At(null),t._f=void 0,t._l=void 0,t[me]=0,null!=e&&he(e,n,t[i],t)});return ee(r.prototype,{clear:function(){for(var t=re(this,o),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[me]=0},delete:function(t){var e,n=re(this,o),i=ae(n,t);return i&&(e=i.n,t=i.p,delete n._i[i.i],i.r=!0,t&&(t.n=e),e&&(e.p=t),n._f==i&&(n._f=e),n._l==i&&(n._l=t),n[me]--),!!i},forEach:function(t,e){re(this,o);for(var n,i=C(t,1<arguments.length?e:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!ae(re(this,o),t)}}),P&&pe(r.prototype,"size",{get:function(){return re(this,o)[me]}}),r},def:function(t,e,n){var i,o=ae(t,e);return o?o.v=n:(t._l=o={i:i=ge(e,!0),k:e,v:n,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[me]++,"F"!==i&&(t._i[i]=o)),t},getEntry:ae,setStrong:function(t,n,e){Tt(t,n,function(t,e){this._t=re(t,n),this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?Ft(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,Ft(1))},e?"entries":"values",!e,!0),e=A[e=n],P&&e&&!e[de]&&M.f(e,de,{configurable:!0,get:function(){return this}})}},ve=tt("iterator"),be=!1;try{[7][ve]().return=function(){be=!0}}catch(t){}function ye(t,e){if(!e&&!be)return!1;var n=!1;try{var i=[7],o=i[ve]();o.next=function(){return{done:n=!0}},i[ve]=function(){return o},t(i)}catch(t){}return n}function ke(r,t,e,n,a,i){function o(t){var n=g[t];R(g,t,"delete"==t?function(t){return!(i&&!_(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(i&&!_(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return i&&!_(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})}var s,l,u,c,h,d=A[r],f=d,p=a?"set":"add",g=f&&f.prototype,m={};return"function"==typeof f&&(i||g.forEach&&!v(function(){(new f).entries().next()}))?(l=(s=new f)[p](i?{}:-0,1)!=s,u=v(function(){s.has(1)}),c=ye(function(t){new f(t)}),h=!i&&v(function(){for(var t=new f,e=5;e--;)t[p](e,e);return!t.has(-0)}),c||(((f=t(function(t,e){ne(t,f,r);var n,i,o,n=(n=new d,i=f,(t=(t=t).constructor)!==i&&"function"==typeof t&&(o=t.prototype)!==i.prototype&&_(o)&&we&&we(n,o),n);return null!=e&&he(e,a,n[p],n),n})).prototype=g).constructor=f),(u||h)&&(o("delete"),o("has"),a&&o("get")),(h||l)&&o(p),i&&g.clear&&delete g.clear):(f=n.getConstructor(t,r,a,p),ee(f.prototype,e),fe.NEED=!0),st(f,r),m[r]=f,X(X.G+X.W+X.F*(f!=d),m),i||n.setStrong(f,r,a),f}var we=J.set,z=(ke("Set",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{add:function(t){return _e.def(re(this,"Set"),t=0===t?0:t,t)}},_e),function(n){return function(){if(Z(this)!=n)throw TypeError(n+"#toJSON isn't generic");return he(this,!(e=[]),e.push,e,t),e;var t,e}});X(X.P+X.R,"Set",{toJSON:z("Set")});it=function(t){X(X.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})};it("Set");J=function(t){X(X.S,t,{from:function(t,e,n){var i,o,r,a=e;return E(this),(e=void 0!==a)&&E(a),null==t?new this:(i=[],e?(o=0,r=C(a,n,2),he(t,!1,function(t){i.push(r(t,o++))})):he(t,!1,i.push,i),new this(i))}})};J("Set");S.Set,ke("Map",function(e){return function(t){return e(this,0<arguments.length?t:void 0)}},{get:function(t){t=_e.getEntry(re(this,"Map"),t);return t&&t.v},set:function(t,e){return _e.def(re(this,"Map"),0===t?0:t,e)}},_e,!0);X(X.P+X.R,"Map",{toJSON:z("Map")}),it("Map"),J("Map");S.Map;function Ee(t,e){return Pe(t=t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Pe(n.prototype)||(n=void 0),_(n)&&null===(n=n[Oe])&&(n=void 0)),new(void 0===n?Array:n)(e);var n}function Ce(h,t){var d=1==h,f=2==h,p=3==h,g=4==h,m=6==h,_=5==h||m,v=t||Ee;return function(t,e,n){for(var i,o,r=xt(t),a=$(r),s=C(e,n,3),l=rt(a.length),u=0,c=d?v(t,l):f?v(t,0):void 0;u<l;u++)if((_||u in a)&&(o=s(i=a[u],u,r),h))if(d)c[u]=o;else if(o)switch(h){case 3:return!0;case 5:return i;case 6:return u;case 2:c.push(i)}else if(g)return!1;return m?-1:p||g?g:c}}function Ae(t){return t._l||(t._l=new Be)}function Se(t,e){return De(t.a,function(t){return t[0]===e})}var Pe=Array.isArray||function(t){return"Array"==F(t)},Oe=tt("species"),xe={f:Object.getOwnPropertySymbols},Le=Object.assign,Te=!Le||v(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=Le({},t)[n]||Object.keys(Le({},e)).join("")!=i})?function(t){for(var e=xt(t),n=arguments.length,i=1,o=xe.f,r=Y.f;i<n;)for(var a,s=$(arguments[i++]),l=o?bt(s).concat(o(s)):bt(s),u=l.length,c=0;c<u;)a=l[c++],P&&!r.call(s,a)||(e[a]=s[a]);return e}:Le,Me=fe.getWeak,De=Ce(5),Ie=Ce(6),Ne=0,Be=function(){this.a=[]};Be.prototype={get:function(t){t=Se(this,t);if(t)return t[1]},has:function(t){return!!Se(this,t)},set:function(t,e){var n=Se(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(e){var t=Ie(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}};var je={getConstructor:function(t,n,i,o){var r=t(function(t,e){ne(t,r,n,"_i"),t._t=n,t._i=Ne++,t._l=void 0,null!=e&&he(e,i,t[o],t)});return ee(r.prototype,{delete:function(t){if(!_(t))return!1;var e=Me(t);return!0===e?Ae(re(this,n)).delete(t):e&&k(e,this._i)&&delete e[this._i]},has:function(t){if(!_(t))return!1;var e=Me(t);return!0===e?Ae(re(this,n)).has(t):e&&k(e,this._i)}}),r},def:function(t,e,n){var i=Me(p(e),!0);return!0===i?Ae(t).set(e,n):i[t._i]=n,t},ufstore:Ae};f(function(t){function e(e){return function(t){return e(this,0<arguments.length?t:void 0)}}var o,n=Ce(0),i=!A.ActiveXObject&&"ActiveXObject"in A,r="WeakMap",a=fe.getWeak,s=Object.isExtensible,l=je.ufstore,u={get:function(t){if(_(t)){var e=a(t);return!0===e?l(re(this,r)).get(t):e?e[this._i]:void 0}},set:function(t,e){return je.def(re(this,r),t,e)}},c=t.exports=ke(r,e,u,je,!0,!0);i&&(o=je.getConstructor(e,r),Te(o.prototype,u),fe.NEED=!0,n(["delete","has","get","set"],function(n){var t=c.prototype,i=t[n];R(t,n,function(t,e){if(!_(t)||s(t))return i.call(this,t,e);this._f||(this._f=new o);e=this._f[n](t,e);return"set"==n?this:e})}))});it("WeakMap"),J("WeakMap");function He(t,e,n){e in t?M.f(t,e,y(0,n)):t[e]=n}S.WeakMap;X(X.S+X.F*!ye(function(t){}),"Array",{from:function(t,e,n){var i,o,r,a,s=xt(t),l="function"==typeof this?this:Array,t=arguments.length,u=1<t?e:void 0,c=void 0!==u,h=0,e=ce(s);if(c&&(u=C(u,2<t?n:void 0,2)),null==e||l==Array&&oe(e))for(o=new l(i=rt(s.length));h<i;h++)He(o,h,c?u(s[h],h):s[h]);else for(a=e.call(s),o=new l;!(r=a.next()).done;h++)He(o,h,c?ie(a,u,[r.value,h],!0):r.value);return o.length=h,o}});S.Array.from;var Re=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function qe(t){var e=Re.has(t),t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t);return!e&&t}function ze(t){var e=t.isConnected;if(void 0!==e)return e;for(var n=t;n&&!(n.__CE_isImportDocument||n instanceof Document);)n=n.parentNode||(window.ShadowRoot&&n instanceof ShadowRoot?n.host:void 0);return!(!n||!(n.__CE_isImportDocument||n instanceof Document))}function Fe(t,e){for(var n=e;n&&n!==t&&!n.nextSibling;)n=n.parentNode;return n&&n!==t?n.nextSibling:null}function Ve(t,e,n){for(var i=2<arguments.length&&void 0!==n?n:new Set,o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var a=r.localName;if("link"===a&&"import"===r.getAttribute("rel")){var s=r.import;if(s instanceof Node&&!i.has(s)){i.add(s);for(var l=s.firstChild;l;l=l.nextSibling)Ve(l,e,i)}o=Fe(t,r);continue}if("template"===a){o=Fe(t,r);continue}var a=r.__CE_shadowRoot;if(a)for(var u=a.firstChild;u;u=u.nextSibling)Ve(u,e,i)}r=t,o=(a=o).firstChild||Fe(r,a)}}function We(t,e,n){t[e]=n}var Ue=1,Xe=2,tt=(t(Ye,[{key:"setDefinition",value:function(t,e){this._localNameToDefinition.set(t,e),this._constructorToDefinition.set(e.constructor,e)}},{key:"localNameToDefinition",value:function(t){return this._localNameToDefinition.get(t)}},{key:"constructorToDefinition",value:function(t){return this._constructorToDefinition.get(t)}},{key:"addPatch",value:function(t){this._hasPatches=!0,this._patches.push(t)}},{key:"patchTree",value:function(t){var e=this;this._hasPatches&&Ve(t,function(t){return e.patch(t)})}},{key:"patch",value:function(t){if(this._hasPatches&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this._patches.length;e++)this._patches[e](t)}}},{key:"connectTree",value:function(t){var e=[];Ve(t,function(t){return e.push(t)});for(var n=0;n<e.length;n++){var i=e[n];i.__CE_state===Ue?ze(i)&&this.connectedCallback(i):this.upgradeElement(i)}}},{key:"disconnectTree",value:function(t){var e=[];Ve(t,function(t){return e.push(t)});for(var n=0;n<e.length;n++){var i=e[n];i.__CE_state===Ue&&this.disconnectedCallback(i)}}},{key:"patchAndUpgradeTree",value:function(t,e){var n=this,i=1<arguments.length&&void 0!==e?e:new Set,o=[];if(Ve(t,function(e){var t;"link"===e.localName&&"import"===e.getAttribute("rel")?(t=e.import)instanceof Node&&"complete"===t.readyState?(t.__CE_isImportDocument=!0,t.__CE_hasRegistry=!0):e.addEventListener("load",function(){var t=e.import;t.__CE_documentLoadHandled||(t.__CE_documentLoadHandled=!0,t.__CE_isImportDocument=!0,t.__CE_hasRegistry=!0,i.delete(t),n.patchAndUpgradeTree(t,i))}):o.push(e)},i),this._hasPatches)for(var r=0;r<o.length;r++)this.patch(o[r]);for(var a=0;a<o.length;a++)this.upgradeElement(o[a])}},{key:"upgradeElement",value:function(e){if(void 0===e.__CE_state){var t=this.localNameToDefinition(e.localName);if(t){t.constructionStack.push(e);var n=t.constructor;try{try{if(new n!==e)throw new Error("The custom element constructor did not produce the element being upgraded.")}finally{t.constructionStack.pop()}}catch(t){throw e.__CE_state=Xe,t}if(e.__CE_state=Ue,(e.__CE_definition=t).attributeChangedCallback)for(var i=t.observedAttributes,o=0;o<i.length;o++){var r=i[o],a=e.getAttribute(r);null!==a&&this.attributeChangedCallback(e,r,null,a,null)}ze(e)&&this.connectedCallback(e)}}}},{key:"connectedCallback",value:function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t),t.__CE_isConnectedCallbackCalled=!0}},{key:"disconnectedCallback",value:function(t){t.__CE_isConnectedCallbackCalled||this.connectedCallback(t);var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t),t.__CE_isConnectedCallbackCalled=void 0}},{key:"attributeChangedCallback",value:function(t,e,n,i,o){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,i,o)}}]),Ye);function Ye(){o(this,Ye),this._localNameToDefinition=new Map,this._constructorToDefinition=new Map,this._patches=[],this._hasPatches=!1}var Ge=(t($e,[{key:"disconnect",value:function(){this._observer&&this._observer.disconnect()}},{key:"_handleMutations",value:function(t){var e=this._document.readyState;"interactive"!==e&&"complete"!==e||this.disconnect();for(var n=0;n<t.length;n++)for(var i=t[n].addedNodes,o=0;o<i.length;o++){var r=i[o];this._internals.patchAndUpgradeTree(r)}}}]),$e);function $e(t,e){o(this,$e),this._internals=t,this._document=e,this._observer=void 0,this._internals.patchAndUpgradeTree(this._document),"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}var Ke=(t(Qe,[{key:"resolve",value:function(t){if(this._value)throw new Error("Already resolved.");this._value=t,this._resolve&&this._resolve(t)}},{key:"toPromise",value:function(){return this._promise}}]),Qe);function Qe(){var e=this;o(this,Qe),this._value=void 0,this._resolve=void 0,this._promise=new Promise(function(t){e._resolve=t,e._value&&t(e._value)})}t(Je,[{key:"define",value:function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!qe(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this._internals.localNameToDefinition(t))throw new Error("A custom element with name '"+t+"' has already been defined.");if(this._elementDefinitionIsRunning)throw new Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var i=void 0,o=void 0,r=void 0,a=void 0,s=void 0;try{var l=function(t){var e=u[t];if(void 0!==e&&!(e instanceof Function))throw new Error("The '"+t+"' callback must be a function.");return e},u=e.prototype;if(!(u instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");i=l("connectedCallback"),o=l("disconnectedCallback"),r=l("adoptedCallback"),a=l("attributeChangedCallback"),s=e.observedAttributes||[]}catch(t){return}finally{this._elementDefinitionIsRunning=!1}var c={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:o,adoptedCallback:r,attributeChangedCallback:a,observedAttributes:s,constructionStack:[]};this._internals.setDefinition(t,c),this._unflushedLocalNames.push(t),this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return n._flush()}))}},{key:"_flush",value:function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var t=this._unflushedLocalNames.shift(),t=this._whenDefinedDeferred.get(t);t&&t.resolve(void 0)}}},{key:"get",value:function(t){t=this._internals.localNameToDefinition(t);if(t)return t.constructor}},{key:"whenDefined",value:function(t){if(!qe(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this._whenDefinedDeferred.get(t);if(e)return e.toPromise();e=new Ke;return this._whenDefinedDeferred.set(t,e),this._internals.localNameToDefinition(t)&&-1===this._unflushedLocalNames.indexOf(t)&&e.resolve(void 0),e.toPromise()}},{key:"polyfillWrapFlushCallback",value:function(e){this._documentConstructionObserver.disconnect();var n=this._flushCallback;this._flushCallback=function(t){return e(function(){return n(t)})}}}]),it=Je;function Je(t){o(this,Je),this._elementDefinitionIsRunning=!1,this._internals=t,this._whenDefinedDeferred=new Map,this._flushCallback=function(t){return t()},this._flushPending=!1,this._unflushedLocalNames=[],this._documentConstructionObserver=new Ge(t,document)}(window.CustomElementRegistry=it).prototype.define=it.prototype.define,it.prototype.get=it.prototype.get,it.prototype.whenDefined=it.prototype.whenDefined,it.prototype.polyfillWrapFlushCallback=it.prototype.polyfillWrapFlushCallback;function Ze(s,t,l){t.prepend=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&ze(t)});l.prepend.apply(this,e);for(var o=0;o<i.length;o++)s.disconnectTree(i[o]);if(ze(this))for(var r=0;r<e.length;r++){var a=e[r];a instanceof Element&&s.connectTree(a)}},t.append=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&ze(t)});l.append.apply(this,e);for(var o=0;o<i.length;o++)s.disconnectTree(i[o]);if(ze(this))for(var r=0;r<e.length;r++){var a=e[r];a instanceof Element&&s.connectTree(a)}}}var tn,en,nn,on,rn,an,sn,ln,un,cn,hn,dn,fn,pn,gn,mn,_n,vn,bn,yn,kn,wn,En,Cn,An,Sn,Pn,On={Document_createElement:window.Document.prototype.createElement,Document_createElementNS:window.Document.prototype.createElementNS,Document_importNode:window.Document.prototype.importNode,Document_prepend:window.Document.prototype.prepend,Document_append:window.Document.prototype.append,Node_cloneNode:window.Node.prototype.cloneNode,Node_appendChild:window.Node.prototype.appendChild,Node_insertBefore:window.Node.prototype.insertBefore,Node_removeChild:window.Node.prototype.removeChild,Node_replaceChild:window.Node.prototype.replaceChild,Node_textContent:Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),Element_attachShadow:window.Element.prototype.attachShadow,Element_innerHTML:Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Element_getAttribute:window.Element.prototype.getAttribute,Element_setAttribute:window.Element.prototype.setAttribute,Element_removeAttribute:window.Element.prototype.removeAttribute,Element_getAttributeNS:window.Element.prototype.getAttributeNS,Element_setAttributeNS:window.Element.prototype.setAttributeNS,Element_removeAttributeNS:window.Element.prototype.removeAttributeNS,Element_insertAdjacentElement:window.Element.prototype.insertAdjacentElement,Element_prepend:window.Element.prototype.prepend,Element_append:window.Element.prototype.append,Element_before:window.Element.prototype.before,Element_after:window.Element.prototype.after,Element_replaceWith:window.Element.prototype.replaceWith,Element_remove:window.Element.prototype.remove,HTMLElement:window.HTMLElement,HTMLElement_innerHTML:Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),HTMLElement_insertAdjacentElement:window.HTMLElement.prototype.insertAdjacentElement},xn=new function t(){o(this,t)},J=window.customElements;function Ln(t,a){Object.defineProperty(t,"innerHTML",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(t){var e=this,n=ze(this),i=void 0;if(n&&(i=[],Ve(this,function(t){t!==e&&i.push(t)})),a.set.call(this,t),i)for(var o=0;o<i.length;o++){var r=i[o];r.__CE_state===Ue&&en.disconnectedCallback(r)}return this.ownerDocument.__CE_hasRegistry?en.patchAndUpgradeTree(this):en.patchTree(this),t}})}function Tn(t,i){We(t,"insertAdjacentElement",function(t,e){var n=ze(e),t=i.call(this,t,e);return n&&en.disconnectTree(e),ze(t)&&en.connectTree(e),t})}function Mn(t,a){Object.defineProperty(t,"textContent",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(t){if(this.nodeType!==Node.TEXT_NODE){var e=void 0;if(this.firstChild){var n=this.childNodes,i=n.length;if(0<i&&ze(this)){e=new Array(i);for(var o=0;o<i;o++)e[o]=n[o]}}if(a.set.call(this,t),e)for(var r=0;r<e.length;r++)sn.disconnectTree(e[r])}else a.set.call(this,t)}})}function Dn(){var t=this.constructor,e=ln.constructorToDefinition(t);if(!e)throw new Error("The custom element being constructed was not registered with `customElements`.");var n=e.constructionStack;if(0===n.length){var i=On.Document_createElement.call(document,e.localName);return Object.setPrototypeOf(i,t.prototype),i.__CE_state=Ue,i.__CE_definition=e,ln.patch(i),i}e=n.length-1,i=n[e];if(i===xn)throw new Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[e]=xn,Object.setPrototypeOf(i,t.prototype),ln.patch(i),i}function In(){fn=!1;var t=pn;pn=[],t.sort(function(t,e){return t.uid_-e.uid_});var i=!1;t.forEach(function(t){var e,n=t.takeRecords();(e=t).nodes_.forEach(function(t){t=un.get(t);t&&t.forEach(function(t){t.observer===e&&t.removeTransientObservers()})}),n.length&&(t.callback_(n,t),i=!0)}),i&&In()}function Nn(t,e){for(var n=t;n;n=n.parentNode){var i=un.get(n);if(i)for(var o=0;o<i.length;o++){var r=i[o],a=r.options;n!==t&&!a.subtree||(a=e(a))&&r.enqueue(a)}}}function Bn(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++gn}function jn(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function Hn(t,e){return mn=new jn(t,e)}function Rn(t){return _n||((n=new jn((e=mn).type,e.target)).addedNodes=e.addedNodes.slice(),n.removedNodes=e.removedNodes.slice(),n.previousSibling=e.previousSibling,n.nextSibling=e.nextSibling,n.attributeName=e.attributeName,n.attributeNamespace=e.attributeNamespace,n.oldValue=e.oldValue,(_n=n).oldValue=t,_n);var e,n}function qn(t,e){return t===e?t:_n&&((t=t)===_n||t===mn)?_n:null}function zn(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}function Fn(t){return kn[yn]=Vn.apply(bn,t),yn++}function Vn(t){var e=[].slice.call(arguments,1);return function(){"function"==typeof t?t.apply(bn,e):new Function(""+t)()}}function Wn(t){if(wn)setTimeout(Vn(Wn,t),0);else{var e=kn[t];if(e){wn=!0;try{e()}finally{Un(t),wn=!1}}}}function Un(t){delete kn[t]}function Xn(t){t.source===vn&&"string"==typeof t.data&&0===t.data.indexOf(Sn)&&Wn(+t.data.slice(Sn.length))}J&&!J.forcePolyfill&&"function"==typeof J.define&&"function"==typeof J.get||(bo=new tt,ln=bo,window.HTMLElement=(Dn.prototype=On.HTMLElement.prototype,Dn),tn=bo,We(Document.prototype,"createElement",function(t){if(this.__CE_hasRegistry){var e=tn.localNameToDefinition(t);if(e)return new e.constructor}t=On.Document_createElement.call(this,t);return tn.patch(t),t}),We(Document.prototype,"importNode",function(t,e){e=On.Document_importNode.call(this,t,e);return this.__CE_hasRegistry?tn.patchAndUpgradeTree(e):tn.patchTree(e),e}),We(Document.prototype,"createElementNS",function(t,e){if(this.__CE_hasRegistry&&(null===t||"http://www.w3.org/1999/xhtml"===t)){var n=tn.localNameToDefinition(e);if(n)return new n.constructor}e=On.Document_createElementNS.call(this,t,e);return tn.patch(e),e}),Ze(tn,Document.prototype,{prepend:On.Document_prepend,append:On.Document_append}),sn=bo,We(Node.prototype,"insertBefore",function(t,e){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes),i=On.Node_insertBefore.call(this,t,e);if(ze(this))for(var o=0;o<n.length;o++)sn.connectTree(n[o]);return i}i=ze(t),e=On.Node_insertBefore.call(this,t,e);return i&&sn.disconnectTree(t),ze(this)&&sn.connectTree(t),e}),We(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var e=Array.prototype.slice.apply(t.childNodes),n=On.Node_appendChild.call(this,t);if(ze(this))for(var i=0;i<e.length;i++)sn.connectTree(e[i]);return n}var o=ze(t),n=On.Node_appendChild.call(this,t);return o&&sn.disconnectTree(t),ze(this)&&sn.connectTree(t),n}),We(Node.prototype,"cloneNode",function(t){t=On.Node_cloneNode.call(this,t);return this.ownerDocument.__CE_hasRegistry?sn.patchAndUpgradeTree(t):sn.patchTree(t),t}),We(Node.prototype,"removeChild",function(t){var e=ze(t),n=On.Node_removeChild.call(this,t);return e&&sn.disconnectTree(t),n}),We(Node.prototype,"replaceChild",function(t,e){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes),i=On.Node_replaceChild.call(this,t,e);if(ze(this)){sn.disconnectTree(e);for(var o=0;o<n.length;o++)sn.connectTree(n[o])}return i}var r=ze(t),a=On.Node_replaceChild.call(this,t,e),i=ze(this);return i&&sn.disconnectTree(e),r&&sn.disconnectTree(t),i&&sn.connectTree(t),a}),On.Node_textContent&&On.Node_textContent.get?Mn(Node.prototype,On.Node_textContent):sn.addPatch(function(t){Mn(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)On.Node_removeChild.call(this,this.firstChild);On.Node_appendChild.call(this,document.createTextNode(t))}})}),en=bo,On.Element_attachShadow?We(Element.prototype,"attachShadow",function(t){t=On.Element_attachShadow.call(this,t);return this.__CE_shadowRoot=t}):console.warn("Custom Elements: `Element#attachShadow` was not patched."),On.Element_innerHTML&&On.Element_innerHTML.get?Ln(Element.prototype,On.Element_innerHTML):On.HTMLElement_innerHTML&&On.HTMLElement_innerHTML.get?Ln(HTMLElement.prototype,On.HTMLElement_innerHTML):(nn=On.Document_createElement.call(document,"div"),en.addPatch(function(t){Ln(t,{enumerable:!0,configurable:!0,get:function(){return On.Node_cloneNode.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(nn.innerHTML=t;0<e.childNodes.length;)On.Node_removeChild.call(e,e.childNodes[0]);for(;0<nn.childNodes.length;)On.Node_appendChild.call(e,nn.childNodes[0])}})})),We(Element.prototype,"setAttribute",function(t,e){if(this.__CE_state!==Ue)return On.Element_setAttribute.call(this,t,e);var n=On.Element_getAttribute.call(this,t);On.Element_setAttribute.call(this,t,e),e=On.Element_getAttribute.call(this,t),en.attributeChangedCallback(this,t,n,e,null)}),We(Element.prototype,"setAttributeNS",function(t,e,n){if(this.__CE_state!==Ue)return On.Element_setAttributeNS.call(this,t,e,n);var i=On.Element_getAttributeNS.call(this,t,e);On.Element_setAttributeNS.call(this,t,e,n),n=On.Element_getAttributeNS.call(this,t,e),en.attributeChangedCallback(this,e,i,n,t)}),We(Element.prototype,"removeAttribute",function(t){if(this.__CE_state!==Ue)return On.Element_removeAttribute.call(this,t);var e=On.Element_getAttribute.call(this,t);On.Element_removeAttribute.call(this,t),null!==e&&en.attributeChangedCallback(this,t,e,null,null)}),We(Element.prototype,"removeAttributeNS",function(t,e){if(this.__CE_state!==Ue)return On.Element_removeAttributeNS.call(this,t,e);var n=On.Element_getAttributeNS.call(this,t,e);On.Element_removeAttributeNS.call(this,t,e);var i=On.Element_getAttributeNS.call(this,t,e);n!==i&&en.attributeChangedCallback(this,e,n,i,t)}),On.HTMLElement_insertAdjacentElement?Tn(HTMLElement.prototype,On.HTMLElement_insertAdjacentElement):On.Element_insertAdjacentElement?Tn(Element.prototype,On.Element_insertAdjacentElement):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),Ze(en,Element.prototype,{prepend:On.Element_prepend,append:On.Element_append}),on=en,rn=Element.prototype,an={before:On.Element_before,after:On.Element_after,replaceWith:On.Element_replaceWith,remove:On.Element_remove},rn.before=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&ze(t)});an.before.apply(this,e);for(var o=0;o<i.length;o++)on.disconnectTree(i[o]);if(ze(this))for(var r=0;r<e.length;r++){var a=e[r];a instanceof Element&&on.connectTree(a)}},rn.after=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&ze(t)});an.after.apply(this,e);for(var o=0;o<i.length;o++)on.disconnectTree(i[o]);if(ze(this))for(var r=0;r<e.length;r++){var a=e[r];a instanceof Element&&on.connectTree(a)}},rn.replaceWith=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter(function(t){return t instanceof Node&&ze(t)}),o=ze(this);an.replaceWith.apply(this,e);for(var r=0;r<i.length;r++)on.disconnectTree(i[r]);if(o){on.disconnectTree(this);for(var a=0;a<e.length;a++){var s=e[a];s instanceof Element&&on.connectTree(s)}}},rn.remove=function(){var t=ze(this);an.remove.call(this),t&&on.disconnectTree(this)},document.__CE_hasRegistry=!0,nr=new it(bo),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:nr})),(J=self).JsMutationObserver||(un=new WeakMap,dn=/Trident|Edge/.test(navigator.userAgent)?setTimeout:window.setImmediate||(cn=[],hn=String(Math.random()),window.addEventListener("message",function(t){t.data===hn&&(t=cn,cn=[],t.forEach(function(t){t()}))}),function(t){cn.push(t),window.postMessage(hn,"*")}),fn=!1,pn=[],gn=0,Bn.prototype={observe:function(t,e){var n;if(n=t,t=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(n)||n,!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var i,o=un.get(t);o||un.set(t,o=[]);for(var r=0;r<o.length;r++)if(o[r].observer===this){(i=o[r]).removeListeners(),i.options=e;break}i||(i=new zn(this,t,e),o.push(i),this.nodes_.push(t)),i.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=un.get(t),n=0;n<e.length;n++){var i=e[n];if(i.observer===this){i.removeListeners(),e.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},zn.prototype={enqueue:function(t){var e=this.observer.records_,n=e.length;if(0<e.length){var i=qn(e[n-1],t);if(i)return void(e[n-1]=i)}else i=this.observer,pn.push(i),fn||(fn=!0,dn(In));e[n]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){var e;t!==this.target&&(this.addListeners_(t),this.transientObservedNodes.push(t),(e=un.get(t))||un.set(t,e=[]),e.push(this))},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=un.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,n=t.relatedNode.namespaceURI,i=t.target;(r=new Hn("attributes",i)).attributeName=e,r.attributeNamespace=n;var o=t.attrChange===MutationEvent.ADDITION?null:t.prevValue;Nn(i,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(n)))return t.attributeOldValue?Rn(o):r});break;case"DOMCharacterDataModified":var r=Hn("characterData",i=t.target),o=t.prevValue;Nn(i,function(t){if(t.characterData)return t.characterDataOldValue?Rn(o):r});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var a,s=t.target,l="DOMNodeInserted"===t.type?(a=[s],[]):(a=[],[s]),i=s.previousSibling,s=s.nextSibling;(r=Hn("childList",t.target.parentNode)).addedNodes=a,r.removedNodes=l,r.previousSibling=i,r.nextSibling=s,Nn(t.relatedNode,function(t){if(t.childList)return r})}mn=_n=void 0}},J.JsMutationObserver=Bn,J.MutationObserver||((J.MutationObserver=Bn)._isPolyfilled=!0)),(vn=self).setImmediate||(yn=1,wn=!(kn={}),En=vn.document,Fo=(Fo=Object.getPrototypeOf&&Object.getPrototypeOf(vn))&&Fo.setTimeout?Fo:vn,qo="[object process]"==={}.toString.call(vn.process)?function(){var t=Fn(arguments);return process.nextTick(Vn(Wn,t)),t}:function(){if(vn.postMessage&&!vn.importScripts){var t=!0,e=vn.onmessage;return vn.onmessage=function(){t=!1},vn.postMessage("","*"),vn.onmessage=e,t}}()?(Sn="setImmediate$"+Math.random()+"$",vn.addEventListener?vn.addEventListener("message",Xn,!1):vn.attachEvent("onmessage",Xn),function(){var t=Fn(arguments);return vn.postMessage(Sn+t,"*"),t}):vn.MessageChannel?((An=new MessageChannel).port1.onmessage=function(t){Wn(t.data)},function(){var t=Fn(arguments);return An.port2.postMessage(t),t}):En&&"onreadystatechange"in En.createElement("script")?(Cn=En.documentElement,function(){var t=Fn(arguments),e=En.createElement("script");return e.onreadystatechange=function(){Wn(t),e.onreadystatechange=null,Cn.removeChild(e),e=null},Cn.appendChild(e),t}):function(){var t=Fn(arguments);return setTimeout(Vn(Wn,t),0),t},Fo.setImmediate=qo,Fo.clearImmediate=Un),Pn={ensureViewportElement:function(){var t=document.querySelector("meta[name=viewport]");return t||((t=document.createElement("meta")).name="viewport",document.head.appendChild(t)),t},setup:function(){var t=Pn.ensureViewportElement();t&&(t.hasAttribute("content")||t.setAttribute("content","width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"))}},window.Viewport=Pn;function Yn(){}Yn.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},once:function(t,e){function n(){return i.off(t,n),e.apply(null,arguments)}var i=this;this.on(t,n)},off:function(t,e){this._events=this._events||{},t in this._events!=!1&&(this._events[t]=this._events[t].filter(function(t){return!!e&&e!==t}))},emit:function(t){if(this._events=this._events||{},t in this._events!=!1)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},Yn.mixin=function(t){for(var e=["on","once","off","emit"],n=0;n<e.length;n++)"function"==typeof t?t.prototype[e[n]]=Yn.prototype[e[n]]:t[e[n]]=Yn.prototype[e[n]]},window.MicroEvent=Yn