@streamlayer/react 1.23.1 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/masters.d.ts +0 -1
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +33 -53
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/cjs/index-ByUNFvMk.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -4
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -1
- package/lib/cjs/index14.js +4 -1
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +2 -2
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index4.js +3 -3
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +7 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +5 -10
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +4 -9
- package/lib/cjs/sl-types.js +1 -15
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/theme.js +1 -17
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +15 -15
- package/lib/cjs/utils.js +8 -8
- package/lib/classic/app/masters.d.ts +0 -1
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +33 -53
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +3 -3
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -1
- package/lib/classic/cjs/index7.js +7 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +4 -9
- package/lib/classic/cjs/sl-types.js +1 -15
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
- package/lib/classic/cjs/utils.js +8 -8
- package/lib/classic/es/Question.js +216 -220
- package/lib/classic/es/advertisement.js +14665 -15122
- package/lib/classic/es/analytics.js +9 -9
- package/lib/classic/es/auth.js +1 -1
- package/lib/classic/es/bet-pack.js +637 -650
- package/lib/classic/es/feature.js +29 -33
- package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
- package/lib/classic/es/index-ByUNFvMk.js +3775 -0
- package/lib/classic/es/index.js +13 -16
- package/lib/classic/es/index10.js +2587 -82
- package/lib/classic/es/index11.js +306 -2344
- package/lib/classic/es/index12.js +103 -101
- package/lib/classic/es/index13.js +449 -464
- package/lib/classic/es/index2.js +1244 -1268
- package/lib/classic/es/index3.js +10 -10
- package/lib/classic/es/index4.js +4 -283
- package/lib/classic/es/index5.js +4 -5
- package/lib/classic/es/index6.js +285 -5
- package/lib/classic/es/index7.js +179 -5
- package/lib/classic/es/index8.js +5 -9
- package/lib/classic/es/index9.js +7 -315
- package/lib/classic/es/insight.js +39 -41
- package/lib/classic/es/notification.js +3 -3
- package/lib/classic/es/notification2.js +513 -528
- package/lib/classic/es/pause-ad.js +116 -116
- package/lib/classic/es/points.js +33 -34
- package/lib/classic/es/polymarket.js +1049 -1102
- package/lib/classic/es/sl-types.js +115 -217
- package/lib/classic/es/useStreamLayerApp.js +1 -1
- package/lib/classic/es/useStreamLayerApp2.js +6485 -6405
- package/lib/classic/es/utils.js +6 -6
- package/lib/classic/source.css +110 -0
- package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +34 -42
- package/lib/dist/es/index-ByUNFvMk.js +3775 -0
- package/lib/dist/es/index.js +7 -11
- package/lib/dist/es/masters.js +13506 -12760
- package/lib/dist/index.d.ts +5 -5
- package/lib/dist/source.css +64 -0
- package/lib/es/Question.js +99 -101
- package/lib/es/advertisement.js +14665 -15122
- package/lib/es/analytics.js +29 -29
- package/lib/es/auth.js +1 -1
- package/lib/es/bet-pack.js +12 -11
- package/lib/es/feature.js +29 -33
- package/lib/es/hooks-n9ax4LRT.js +97 -0
- package/lib/es/index-ByUNFvMk.js +3775 -0
- package/lib/es/index.js +13 -16
- package/lib/es/index10.js +7 -263
- package/lib/es/index11.js +172 -822
- package/lib/es/index12.js +2587 -178
- package/lib/es/index13.js +248 -302
- package/lib/es/index14.js +815 -82
- package/lib/es/index15.js +306 -2344
- package/lib/es/index16.js +451 -454
- package/lib/es/index2.js +737 -757
- package/lib/es/index4.js +626 -639
- package/lib/es/index5.js +10 -10
- package/lib/es/index6.js +5 -285
- package/lib/es/index7.js +7 -5
- package/lib/es/index8.js +283 -5
- package/lib/es/index9.js +179 -8
- package/lib/es/insight.js +39 -41
- package/lib/es/masters.js +4 -5
- package/lib/es/masters2.js +408 -441
- package/lib/es/notification.js +469 -484
- package/lib/es/pause-ad.js +116 -116
- package/lib/es/points.js +42 -43
- package/lib/es/polymarket.js +1049 -1102
- package/lib/es/sl-types.js +114 -235
- package/lib/es/storage.js +22 -22
- package/lib/es/theme.js +3 -44
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/es/useStreamLayerApp2.js +6485 -6405
- package/lib/es/utils.js +6 -6
- package/lib/source.css +120 -0
- package/lib/style.css +1 -1
- package/package.json +15 -15
- package/lib/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/cjs/index-eShKGO10.js +0 -5
- package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/classic/cjs/index-eShKGO10.js +0 -5
- package/lib/classic/es/hooks-WfHlJH12.js +0 -98
- package/lib/classic/es/index-eShKGO10.js +0 -3757
- package/lib/dist/cjs/index-eShKGO10.js +0 -5
- package/lib/dist/es/index-eShKGO10.js +0 -3757
- package/lib/dist/style.css +0 -1
- package/lib/es/hooks-WfHlJH12.js +0 -98
- package/lib/es/index-eShKGO10.js +0 -3757
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const a=require("pino");require("./sl-types.js");require("nanostores");const s=require("./useStreamLayerApp2.js"),d=a.pino({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:t=>{console.log(t)}}}),o=(t,e)=>d.child({name:t},e);class l extends Event{slEventBus;constructor(e,n){super(e),this.slEventBus=n}}const u=o("event-bus");class c{name;listeners;constructor(e="sl-event-bus"){this.name=e,this.listeners=new Set}emit=(e,n)=>{const r=new l(this.name,{...n,type:e});u.debug(r,"Emitting event"),window.dispatchEvent(r)};listen(e){return window.addEventListener(this.name,e),this.listeners.add(e),()=>{this.off(e)}}off(e){window.removeEventListener(this.name,e),this.listeners.delete(e)}destroy=()=>{this.listeners.forEach(e=>{window.removeEventListener(this.name,e),this.listeners.delete(e)}),this.listeners.clear()}}window.slStore=Object.create(null);var i;(function(t){t.ORGANIZATION="ORGANIZATION",t.STREAM="STREAM"})(i||(i={}));s.SdkOverlayType.BETTING+"",s.SdkOverlayType.GAMES+"",s.SdkOverlayType.PUBLIC_CHAT+"",s.SdkOverlayType.TWITTER+"";exports.FeatureStatus=void 0;(function(t){t.Ready="ready",t.Suspended="suspended"})(exports.FeatureStatus||(exports.FeatureStatus={}));exports.EventBus=c;exports.createLogger=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react"),f=require("react/jsx-runtime"),x=require("./useStreamLayerApp2.js"),b=({event:e,internal:i})=>{const s=E(),o=O();return t.useEffect(()=>{s&&(e&&(s.createEventSession(e,i),o&&(o.current=e)),!e&&o?.current&&(s.createEventSession("",i),o.current=""))},[e,i,o,s]),null};var h=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(h||{});const N={status:0,sdk:null},r=t.createContext(N),L=({sdkKey:e,theme:i,themeMode:s,plugins:o,children:m,event:p,production:y=!0,autoEnable:C=!0,withAdNotification:S,withAd:g=!0,betPack:u=!1,hideFriends:D,skipOnboarding:c,friendsTab:l="enabled",onDeepLinkHandled:a,videoPlayerController:d,onContentActivate:A,containerId:v,webOS:K,gamification:P})=>{const n=x.z({sdkKey:e,plugins:o,production:y,autoEnable:C,onDeepLinkHandled:a,videoPlayerController:d,onContentActivate:A,hideFriends:D,skipOnboarding:c,withAdNotification:S,withAd:g,friendsTab:l,betPack:u,webOS:K,gamification:P}),k=t.useRef(""),w=t.useMemo(()=>n?{sdk:n,status:2,event:k}:{status:1,sdk:null,event:k},[n]);return t.useEffect(()=>{n&&(n.options.setKey("friendsTab",l),n.options.setKey("theme",i),n.options.setKey("themeMode",s),n.options.setKey("skipOnboarding",c),n.options.setKey("betPack",u),n.options.setKey("containerId",v))},[n,l,i,s,c,u,v]),t.useEffect(()=>()=>{a&&n?.removeDeepLinkHandler(a),d&&n?.removeVideoPlayerController(d)},[n]),t.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!e,onDeepLinkHandled:!!a,videoPlayerController:!!d})},[e,a,d]),f.jsxs(r.Provider,{value:w,children:[p!==void 0&&f.jsx(b,{event:p}),m]})},E=()=>{const{sdk:e}=t.useContext(r);return e},O=()=>{const{event:e}=t.useContext(r);return e},T=()=>{const{sdk:e}=t.useContext(r),[i,s]=t.useState({});return t.useEffect(()=>e?.options?e?.options?.subscribe(o=>{s({theme:o.theme,themeMode:o.themeMode})}):()=>{},[e?.options]),i},j=()=>{const{sdk:e}=t.useContext(r),[i,s]=t.useState({});return t.useEffect(()=>e?.uiState?e?.uiState.subscribe(o=>{s({...o})}):()=>{},[e?.uiState]),i};exports.V=L;exports.Y=E;exports._=T;exports.g=b;exports.i=r;exports.j=h;exports.q=j;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ir=require("./useStreamLayerApp2.js");function sr(A,S){for(var G=0;G<S.length;G++){const X=S[G];if(typeof X!="string"&&!Array.isArray(X)){for(const V in X)if(V!=="default"&&!(V in A)){const g=Object.getOwnPropertyDescriptor(X,V);g&&Object.defineProperty(A,V,g.get?g:{enumerable:!0,get:()=>X[V]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var xe={},ie={},he={},Ke;function Ie(){if(Ke)return he;Ke=1;function A(g,O,H){if(H===void 0&&(H=Array.prototype),g&&typeof H.find=="function")return H.find.call(g,O);for(var M=0;M<g.length;M++)if(Object.prototype.hasOwnProperty.call(g,M)){var q=g[M];if(O.call(void 0,q,M,g))return q}}function S(g,O){return O===void 0&&(O=Object),O&&typeof O.freeze=="function"?O.freeze(g):g}function G(g,O){if(g===null||typeof g!="object")throw new TypeError("target is not an object");for(var H in O)Object.prototype.hasOwnProperty.call(O,H)&&(g[H]=O[H]);return g}var X=S({HTML:"text/html",isHTML:function(g){return g===X.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),V=S({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(g){return g===V.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return he.assign=G,he.find=A,he.freeze=S,he.MIME_TYPE=X,he.NAMESPACE=V,he}var Ze;function ar(){if(Ze)return ie;Ze=1;var A=Ie(),S=A.find,G=A.NAMESPACE;function X(e){return e!==""}function V(e){return e?e.split(/[\t\n\f\r ]+/).filter(X):[]}function g(e,r){return e.hasOwnProperty(r)||(e[r]=!0),e}function O(e){if(!e)return[];var r=V(e);return Object.keys(r.reduce(g,{}))}function H(e){return function(r){return e&&e.indexOf(r)!==-1}}function M(e,r){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}function q(e,r){var t=e.prototype;if(!(t instanceof r)){let n=function(){};n.prototype=r.prototype,n=new n,M(t,n),e.prototype=t=n}t.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),t.constructor=e)}var k={},C=k.ELEMENT_NODE=1,_=k.ATTRIBUTE_NODE=2,J=k.TEXT_NODE=3,ue=k.CDATA_SECTION_NODE=4,re=k.ENTITY_REFERENCE_NODE=5,s=k.ENTITY_NODE=6,N=k.PROCESSING_INSTRUCTION_NODE=7,T=k.COMMENT_NODE=8,y=k.DOCUMENT_NODE=9,B=k.DOCUMENT_TYPE_NODE=10,I=k.DOCUMENT_FRAGMENT_NODE=11,W=k.NOTATION_NODE=12,b={},D={};b.INDEX_SIZE_ERR=(D[1]="Index size error",1),b.DOMSTRING_SIZE_ERR=(D[2]="DOMString size error",2);var a=b.HIERARCHY_REQUEST_ERR=(D[3]="Hierarchy request error",3);b.WRONG_DOCUMENT_ERR=(D[4]="Wrong document",4),b.INVALID_CHARACTER_ERR=(D[5]="Invalid character",5),b.NO_DATA_ALLOWED_ERR=(D[6]="No data allowed",6),b.NO_MODIFICATION_ALLOWED_ERR=(D[7]="No modification allowed",7);var i=b.NOT_FOUND_ERR=(D[8]="Not found",8);b.NOT_SUPPORTED_ERR=(D[9]="Not supported",9);var c=b.INUSE_ATTRIBUTE_ERR=(D[10]="Attribute in use",10);b.INVALID_STATE_ERR=(D[11]="Invalid state",11),b.SYNTAX_ERR=(D[12]="Syntax error",12),b.INVALID_MODIFICATION_ERR=(D[13]="Invalid modification",13),b.NAMESPACE_ERR=(D[14]="Invalid namespace",14),b.INVALID_ACCESS_ERR=(D[15]="Invalid access",15);function l(e,r){if(r instanceof Error)var t=r;else t=this,Error.call(this,D[e]),this.message=D[e],Error.captureStackTrace&&Error.captureStackTrace(this,l);return t.code=e,r&&(this.message=this.message+": "+r),t}l.prototype=Error.prototype,M(b,l);function p(){}p.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,r){for(var t=[],n=0;n<this.length;n++)Ne(this[n],t,e,r);return t.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function v(e,r){this._node=e,this._refresh=r,m(this)}function m(e){var r=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==r){var t=e._refresh(e._node);if(Qe(e,"length",t.length),!e.$$length||t.length<e.$$length)for(var n=t.length;n in e;n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];M(t,e),e._inc=r}}v.prototype.item=function(e){return m(this),this[e]||null},q(v,p);function w(){}function E(e,r){for(var t=e.length;t--;)if(e[t]===r)return t}function f(e,r,t,n){if(n?r[E(r,n)]=t:r[r.length++]=t,e){t.ownerElement=e;var o=e.ownerDocument;o&&(n&&Ee(o,e,n),z(o,e,t))}}function h(e,r,t){var n=E(r,t);if(n>=0){for(var o=r.length-1;n<o;)r[n]=r[++n];if(r.length=o,e){var d=e.ownerDocument;d&&(Ee(d,e,t),t.ownerElement=null)}}else throw new l(i,new Error(e.tagName+"@"+t))}w.prototype={length:0,item:p.prototype.item,getNamedItem:function(e){for(var r=this.length;r--;){var t=this[r];if(t.nodeName==e)return t}},setNamedItem:function(e){var r=e.ownerElement;if(r&&r!=this._ownerElement)throw new l(c);var t=this.getNamedItem(e.nodeName);return f(this._ownerElement,this,e,t),t},setNamedItemNS:function(e){var r=e.ownerElement,t;if(r&&r!=this._ownerElement)throw new l(c);return t=this.getNamedItemNS(e.namespaceURI,e.localName),f(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var r=this.getNamedItem(e);return h(this._ownerElement,this,r),r},removeNamedItemNS:function(e,r){var t=this.getNamedItemNS(e,r);return h(this._ownerElement,this,t),t},getNamedItemNS:function(e,r){for(var t=this.length;t--;){var n=this[t];if(n.localName==r&&n.namespaceURI==e)return n}return null}};function U(){}U.prototype={hasFeature:function(e,r){return!0},createDocument:function(e,r,t){var n=new F;if(n.implementation=this,n.childNodes=new p,n.doctype=t||null,t&&n.appendChild(t),r){var o=n.createElementNS(e,r);n.appendChild(o)}return n},createDocumentType:function(e,r,t){var n=new Oe;return n.name=e,n.nodeName=e,n.publicId=r||"",n.systemId=t||"",n}};function u(){}u.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,r){return se(this,e,r)},replaceChild:function(e,r){se(this,e,r,Ae),r&&this.removeChild(r)},removeChild:function(e){return Q(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return He(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var r=e.nextSibling;r&&r.nodeType==J&&e.nodeType==J?(this.removeChild(r),e.appendData(r.data)):(e.normalize(),e=r)}},isSupported:function(e,r){return this.ownerDocument.implementation.hasFeature(e,r)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var r=this;r;){var t=r._nsMap;if(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]===e)return n}r=r.nodeType==_?r.ownerDocument:r.parentNode}return null},lookupNamespaceURI:function(e){for(var r=this;r;){var t=r._nsMap;if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];r=r.nodeType==_?r.ownerDocument:r.parentNode}return null},isDefaultNamespace:function(e){var r=this.lookupPrefix(e);return r==null}};function Y(e){return e=="<"&&"<"||e==">"&&">"||e=="&"&&"&"||e=='"'&&"""||"&#"+e.charCodeAt()+";"}M(k,u),M(k,u.prototype);function ne(e,r){if(r(e))return!0;if(e=e.firstChild)do if(ne(e,r))return!0;while(e=e.nextSibling)}function F(){this.ownerDocument=this}function z(e,r,t){e&&e._inc++;var n=t.namespaceURI;n===G.XMLNS&&(r._nsMap[t.prefix?t.localName:""]=t.value)}function Ee(e,r,t,n){e&&e._inc++;var o=t.namespaceURI;o===G.XMLNS&&delete r._nsMap[t.prefix?t.localName:""]}function ge(e,r,t){if(e&&e._inc){e._inc++;var n=r.childNodes;if(t)n[n.length++]=t;else{for(var o=r.firstChild,d=0;o;)n[d++]=o,o=o.nextSibling;n.length=d,delete n[n.length]}}}function Q(e,r){var t=r.previousSibling,n=r.nextSibling;return t?t.nextSibling=n:e.firstChild=n,n?n.previousSibling=t:e.lastChild=t,r.parentNode=null,r.previousSibling=null,r.nextSibling=null,ge(e.ownerDocument,e),r}function ee(e){return e&&(e.nodeType===u.DOCUMENT_NODE||e.nodeType===u.DOCUMENT_FRAGMENT_NODE||e.nodeType===u.ELEMENT_NODE)}function Te(e){return e&&(Z(e)||be(e)||K(e)||e.nodeType===u.DOCUMENT_FRAGMENT_NODE||e.nodeType===u.COMMENT_NODE||e.nodeType===u.PROCESSING_INSTRUCTION_NODE)}function K(e){return e&&e.nodeType===u.DOCUMENT_TYPE_NODE}function Z(e){return e&&e.nodeType===u.ELEMENT_NODE}function be(e){return e&&e.nodeType===u.TEXT_NODE}function $(e,r){var t=e.childNodes||[];if(S(t,Z)||K(r))return!1;var n=S(t,K);return!(r&&n&&t.indexOf(n)>t.indexOf(r))}function ve(e,r){var t=e.childNodes||[];function n(d){return Z(d)&&d!==r}if(S(t,n))return!1;var o=S(t,K);return!(r&&o&&t.indexOf(o)>t.indexOf(r))}function j(e,r,t){if(!ee(e))throw new l(a,"Unexpected parent node type "+e.nodeType);if(t&&t.parentNode!==e)throw new l(i,"child not in parent");if(!Te(r)||K(r)&&e.nodeType!==u.DOCUMENT_NODE)throw new l(a,"Unexpected node type "+r.nodeType+" for parent node type "+e.nodeType)}function Le(e,r,t){var n=e.childNodes||[],o=r.childNodes||[];if(r.nodeType===u.DOCUMENT_FRAGMENT_NODE){var d=o.filter(Z);if(d.length>1||S(o,be))throw new l(a,"More than one element or text in fragment");if(d.length===1&&!$(e,t))throw new l(a,"Element in fragment can not be inserted before doctype")}if(Z(r)&&!$(e,t))throw new l(a,"Only one element can be added and only after doctype");if(K(r)){if(S(n,K))throw new l(a,"Only one doctype is allowed");var L=S(n,Z);if(t&&n.indexOf(L)<n.indexOf(t))throw new l(a,"Doctype can only be inserted before an element");if(!t&&L)throw new l(a,"Doctype can not be appended since element is present")}}function Ae(e,r,t){var n=e.childNodes||[],o=r.childNodes||[];if(r.nodeType===u.DOCUMENT_FRAGMENT_NODE){var d=o.filter(Z);if(d.length>1||S(o,be))throw new l(a,"More than one element or text in fragment");if(d.length===1&&!ve(e,t))throw new l(a,"Element in fragment can not be inserted before doctype")}if(Z(r)&&!ve(e,t))throw new l(a,"Only one element can be added and only after doctype");if(K(r)){if(S(n,function(x){return K(x)&&x!==t}))throw new l(a,"Only one doctype is allowed");var L=S(n,Z);if(t&&n.indexOf(L)<n.indexOf(t))throw new l(a,"Doctype can only be inserted before an element")}}function se(e,r,t,n){j(e,r,t),e.nodeType===u.DOCUMENT_NODE&&(n||Le)(e,r,t);var o=r.parentNode;if(o&&o.removeChild(r),r.nodeType===I){var d=r.firstChild;if(d==null)return r;var L=r.lastChild}else d=L=r;var x=t?t.previousSibling:e.lastChild;d.previousSibling=x,L.nextSibling=t,x?x.nextSibling=d:e.firstChild=d,t==null?e.lastChild=L:t.previousSibling=L;do{d.parentNode=e;var ae=e.ownerDocument||e;le(d,ae)}while(d!==L&&(d=d.nextSibling));return ge(e.ownerDocument||e,e),r.nodeType==I&&(r.firstChild=r.lastChild=null),r}function le(e,r){if(e.ownerDocument!==r){if(e.ownerDocument=r,e.nodeType===C&&e.attributes)for(var t=0;t<e.attributes.length;t++){var n=e.attributes.item(t);n&&(n.ownerDocument=r)}for(var o=e.firstChild;o;)le(o,r),o=o.nextSibling}}function R(e,r){r.parentNode&&r.parentNode.removeChild(r),r.parentNode=e,r.previousSibling=e.lastChild,r.nextSibling=null,r.previousSibling?r.previousSibling.nextSibling=r:e.firstChild=r,e.lastChild=r,ge(e.ownerDocument,e,r);var t=e.ownerDocument||e;return le(r,t),r}F.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,r){if(e.nodeType==I){for(var t=e.firstChild;t;){var n=t.nextSibling;this.insertBefore(t,r),t=n}return e}return se(this,e,r),le(e,this),this.documentElement===null&&e.nodeType===C&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Q(this,e)},replaceChild:function(e,r){se(this,e,r,Ae),le(e,this),r&&this.removeChild(r),Z(e)&&(this.documentElement=e)},importNode:function(e,r){return $e(this,e,r)},getElementById:function(e){var r=null;return ne(this.documentElement,function(t){if(t.nodeType==C&&t.getAttribute("id")==e)return r=t,!0}),r},getElementsByClassName:function(e){var r=O(e);return new v(this,function(t){var n=[];return r.length>0&&ne(t.documentElement,function(o){if(o!==t&&o.nodeType===C){var d=o.getAttribute("class");if(d){var L=e===d;if(!L){var x=O(d);L=r.every(H(x))}L&&n.push(o)}}}),n})},createElement:function(e){var r=new P;r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.localName=e,r.childNodes=new p;var t=r.attributes=new w;return t._ownerElement=r,r},createDocumentFragment:function(){var e=new Ce;return e.ownerDocument=this,e.childNodes=new p,e},createTextNode:function(e){var r=new Me;return r.ownerDocument=this,r.appendData(e),r},createComment:function(e){var r=new _e;return r.ownerDocument=this,r.appendData(e),r},createCDATASection:function(e){var r=new Ue;return r.ownerDocument=this,r.appendData(e),r},createProcessingInstruction:function(e,r){var t=new Be;return t.ownerDocument=this,t.tagName=t.nodeName=t.target=e,t.nodeValue=t.data=r,t},createAttribute:function(e){var r=new we;return r.ownerDocument=this,r.name=e,r.nodeName=e,r.localName=e,r.specified=!0,r},createEntityReference:function(e){var r=new Pe;return r.ownerDocument=this,r.nodeName=e,r},createElementNS:function(e,r){var t=new P,n=r.split(":"),o=t.attributes=new w;return t.childNodes=new p,t.ownerDocument=this,t.nodeName=r,t.tagName=r,t.namespaceURI=e,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=r,o._ownerElement=t,t},createAttributeNS:function(e,r){var t=new we,n=r.split(":");return t.ownerDocument=this,t.nodeName=r,t.name=r,t.namespaceURI=e,t.specified=!0,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=r,t}},q(F,u);function P(){this._nsMap={}}P.prototype={nodeType:C,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var r=this.getAttributeNode(e);return r&&r.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,r){var t=this.ownerDocument.createAttribute(e);t.value=t.nodeValue=""+r,this.setAttributeNode(t)},removeAttribute:function(e){var r=this.getAttributeNode(e);r&&this.removeAttributeNode(r)},appendChild:function(e){return e.nodeType===I?this.insertBefore(e,null):R(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);t&&this.removeAttributeNode(t)},hasAttributeNS:function(e,r){return this.getAttributeNodeNS(e,r)!=null},getAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);return t&&t.value||""},setAttributeNS:function(e,r,t){var n=this.ownerDocument.createAttributeNS(e,r);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},getAttributeNodeNS:function(e,r){return this.attributes.getNamedItemNS(e,r)},getElementsByTagName:function(e){return new v(this,function(r){var t=[];return ne(r,function(n){n!==r&&n.nodeType==C&&(e==="*"||n.tagName==e)&&t.push(n)}),t})},getElementsByTagNameNS:function(e,r){return new v(this,function(t){var n=[];return ne(t,function(o){o!==t&&o.nodeType===C&&(e==="*"||o.namespaceURI===e)&&(r==="*"||o.localName==r)&&n.push(o)}),n})}},F.prototype.getElementsByTagName=P.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=P.prototype.getElementsByTagNameNS,q(P,u);function we(){}we.prototype.nodeType=_,q(we,u);function De(){}De.prototype={data:"",substringData:function(e,r){return this.data.substring(e,e+r)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,r){this.replaceData(e,0,r)},appendChild:function(e){throw new Error(D[a])},deleteData:function(e,r){this.replaceData(e,r,"")},replaceData:function(e,r,t){var n=this.data.substring(0,e),o=this.data.substring(e+r);t=n+t+o,this.nodeValue=this.data=t,this.length=t.length}},q(De,u);function Me(){}Me.prototype={nodeName:"#text",nodeType:J,splitText:function(e){var r=this.data,t=r.substring(e);r=r.substring(0,e),this.data=this.nodeValue=r,this.length=r.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},q(Me,De);function _e(){}_e.prototype={nodeName:"#comment",nodeType:T},q(_e,De);function Ue(){}Ue.prototype={nodeName:"#cdata-section",nodeType:ue},q(Ue,De);function Oe(){}Oe.prototype.nodeType=B,q(Oe,u);function Fe(){}Fe.prototype.nodeType=W,q(Fe,u);function ze(){}ze.prototype.nodeType=s,q(ze,u);function Pe(){}Pe.prototype.nodeType=re,q(Pe,u);function Ce(){}Ce.prototype.nodeName="#document-fragment",Ce.prototype.nodeType=I,q(Ce,u);function Be(){}Be.prototype.nodeType=N,q(Be,u);function Ge(){}Ge.prototype.serializeToString=function(e,r,t){return je.call(e,r,t)},u.prototype.toString=je;function je(e,r){var t=[],n=this.nodeType==9&&this.documentElement||this,o=n.prefix,d=n.namespaceURI;if(d&&o==null){var o=n.lookupPrefix(d);if(o==null)var L=[{namespace:d,prefix:null}]}return Ne(this,t,e,r,L),t.join("")}function Xe(e,r,t){var n=e.prefix||"",o=e.namespaceURI;if(!o||n==="xml"&&o===G.XML||o===G.XMLNS)return!1;for(var d=t.length;d--;){var L=t[d];if(L.prefix===n)return L.namespace!==o}return!0}function Ve(e,r,t){e.push(" ",r,'="',t.replace(/[<>&"\t\n\r]/g,Y),'"')}function Ne(e,r,t,n,o){if(o||(o=[]),n)if(e=n(e),e){if(typeof e=="string"){r.push(e);return}}else return;switch(e.nodeType){case C:var d=e.attributes,L=d.length,x=e.firstChild,ae=e.tagName;t=G.isHTML(e.namespaceURI)||t;var ce=ae;if(!t&&!e.prefix&&e.namespaceURI){for(var oe,Re=0;Re<d.length;Re++)if(d.item(Re).name==="xmlns"){oe=d.item(Re).value;break}if(!oe)for(var pe=o.length-1;pe>=0;pe--){var de=o[pe];if(de.prefix===""&&de.namespace===e.namespaceURI){oe=de.namespace;break}}if(oe!==e.namespaceURI)for(var pe=o.length-1;pe>=0;pe--){var de=o[pe];if(de.namespace===e.namespaceURI){de.prefix&&(ce=de.prefix+":"+ae);break}}}r.push("<",ce);for(var fe=0;fe<L;fe++){var te=d.item(fe);te.prefix=="xmlns"?o.push({prefix:te.localName,namespace:te.value}):te.nodeName=="xmlns"&&o.push({prefix:"",namespace:te.value})}for(var fe=0;fe<L;fe++){var te=d.item(fe);if(Xe(te,t,o)){var me=te.prefix||"",qe=te.namespaceURI;Ve(r,me?"xmlns:"+me:"xmlns",qe),o.push({prefix:me,namespace:qe})}Ne(te,r,t,n,o)}if(ae===ce&&Xe(e,t,o)){var me=e.prefix||"",qe=e.namespaceURI;Ve(r,me?"xmlns:"+me:"xmlns",qe),o.push({prefix:me,namespace:qe})}if(x||t&&!/^(?:meta|link|img|br|hr|input)$/i.test(ae)){if(r.push(">"),t&&/^script$/i.test(ae))for(;x;)x.data?r.push(x.data):Ne(x,r,t,n,o.slice()),x=x.nextSibling;else for(;x;)Ne(x,r,t,n,o.slice()),x=x.nextSibling;r.push("</",ce,">")}else r.push("/>");return;case y:case I:for(var x=e.firstChild;x;)Ne(x,r,t,n,o.slice()),x=x.nextSibling;return;case _:return Ve(r,e.name,e.value);case J:return r.push(e.data.replace(/[<&>]/g,Y));case ue:return r.push("<![CDATA[",e.data,"]]>");case T:return r.push("<!--",e.data,"-->");case B:var We=e.publicId,ye=e.systemId;if(r.push("<!DOCTYPE ",e.name),We)r.push(" PUBLIC ",We),ye&&ye!="."&&r.push(" ",ye),r.push(">");else if(ye&&ye!=".")r.push(" SYSTEM ",ye,">");else{var Ye=e.internalSubset;Ye&&r.push(" [",Ye,"]"),r.push(">")}return;case N:return r.push("<?",e.target," ",e.data,"?>");case re:return r.push("&",e.nodeName,";");default:r.push("??",e.nodeName)}}function $e(e,r,t){var n;switch(r.nodeType){case C:n=r.cloneNode(!1),n.ownerDocument=e;case I:break;case _:t=!0;break}if(n||(n=r.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,t)for(var o=r.firstChild;o;)n.appendChild($e(e,o,t)),o=o.nextSibling;return n}function He(e,r,t){var n=new r.constructor;for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var d=r[o];typeof d!="object"&&d!=n[o]&&(n[o]=d)}switch(r.childNodes&&(n.childNodes=new p),n.ownerDocument=e,n.nodeType){case C:var L=r.attributes,x=n.attributes=new w,ae=L.length;x._ownerElement=n;for(var ce=0;ce<ae;ce++)n.setAttributeNode(He(e,L.item(ce),!0));break;case _:t=!0}if(t)for(var oe=r.firstChild;oe;)n.appendChild(He(e,oe,t)),oe=oe.nextSibling;return n}function Qe(e,r,t){e[r]=t}try{if(Object.defineProperty){let e=function(r){switch(r.nodeType){case C:case I:var t=[];for(r=r.firstChild;r;)r.nodeType!==7&&r.nodeType!==8&&t.push(e(r)),r=r.nextSibling;return t.join("");default:return r.nodeValue}};Object.defineProperty(v.prototype,"length",{get:function(){return m(this),this.$$length}}),Object.defineProperty(u.prototype,"textContent",{get:function(){return e(this)},set:function(r){switch(this.nodeType){case C:case I:for(;this.firstChild;)this.removeChild(this.firstChild);(r||String(r))&&this.appendChild(this.ownerDocument.createTextNode(r));break;default:this.data=r,this.value=r,this.nodeValue=r}}}),Qe=function(r,t,n){r["$$"+t]=n}}}catch{}return ie.DocumentType=Oe,ie.DOMException=l,ie.DOMImplementation=U,ie.Element=P,ie.Node=u,ie.NodeList=p,ie.XMLSerializer=Ge,ie}var Se={},Je={},er;function lr(){return er||(er=1,(function(A){var S=Ie().freeze;A.XML_ENTITIES=S({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),A.HTML_ENTITIES=S({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
2
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),A.entityMap=A.HTML_ENTITIES})(Je)),Je}var ke={},rr;function cr(){if(rr)return ke;rr=1;var A=Ie().NAMESPACE,S=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,G=new RegExp("[\\-\\.0-9"+S.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),X=new RegExp("^"+S.source+G.source+"*(?::"+S.source+G.source+"*)?$"),V=0,g=1,O=2,H=3,M=4,q=5,k=6,C=7;function _(a,i){this.message=a,this.locator=i,Error.captureStackTrace&&Error.captureStackTrace(this,_)}_.prototype=new Error,_.prototype.name=_.name;function J(){}J.prototype={parse:function(a,i,c){var l=this.domBuilder;l.startDocument(),B(i,i={}),ue(a,i,c,l,this.errorHandler),l.endDocument()}};function ue(a,i,c,l,p){function v(R){if(R>65535){R-=65536;var P=55296+(R>>10),we=56320+(R&1023);return String.fromCharCode(P,we)}else return String.fromCharCode(R)}function m(R){var P=R.slice(1,-1);return Object.hasOwnProperty.call(c,P)?c[P]:P.charAt(0)==="#"?v(parseInt(P.substr(1).replace("x","0x"))):(p.error("entity not found:"+R),R)}function w(R){if(R>F){var P=a.substring(F,R).replace(/&#?\w+;/g,m);u&&E(F),l.characters(P,0,R-F),F=R}}function E(R,P){for(;R>=h&&(P=U.exec(a));)f=P.index,h=f+P[0].length,u.lineNumber++;u.columnNumber=R-f+1}for(var f=0,h=0,U=/.*(?:\r\n?|\n)|.*$/g,u=l.locator,Y=[{currentNSMap:i}],ne={},F=0;;){try{var z=a.indexOf("<",F);if(z<0){if(!a.substr(F).match(/^\s*$/)){var Ee=l.doc,ge=Ee.createTextNode(a.substr(F));Ee.appendChild(ge),l.currentElement=ge}return}switch(z>F&&w(z),a.charAt(z+1)){case"/":var j=a.indexOf(">",z+3),Q=a.substring(z+2,j).replace(/[ \t\n\r]+$/g,""),ee=Y.pop();j<0?(Q=a.substring(z+2).replace(/[\s<].*/,""),p.error("end tag name: "+Q+" is not complete:"+ee.tagName),j=z+1+Q.length):Q.match(/\s</)&&(Q=Q.replace(/[\s<].*/,""),p.error("end tag name: "+Q+" maybe not complete"),j=z+1+Q.length);var Te=ee.localNSMap,K=ee.tagName==Q,Z=K||ee.tagName&&ee.tagName.toLowerCase()==Q.toLowerCase();if(Z){if(l.endElement(ee.uri,ee.localName,Q),Te)for(var be in Te)Object.prototype.hasOwnProperty.call(Te,be)&&l.endPrefixMapping(be);K||p.fatalError("end tag name: "+Q+" is not match the current start tagName:"+ee.tagName)}else Y.push(ee);j++;break;case"?":u&&E(z),j=W(a,z,l);break;case"!":u&&E(z),j=I(a,z,l,p);break;default:u&&E(z);var $=new b,ve=Y[Y.length-1].currentNSMap,j=s(a,z,$,ve,m,p),Le=$.length;if(!$.closed&&y(a,j,$.tagName,ne)&&($.closed=!0,c.nbsp||p.warning("unclosed xml attribute")),u&&Le){for(var Ae=re(u,{}),se=0;se<Le;se++){var le=$[se];E(le.offset),le.locator=re(u,{})}l.locator=Ae,N($,l,ve)&&Y.push($),l.locator=u}else N($,l,ve)&&Y.push($);A.isHTML($.uri)&&!$.closed?j=T(a,j,$.tagName,m,l):j++}}catch(R){if(R instanceof _)throw R;p.error("element parse error: "+R),j=-1}j>F?F=j:w(Math.max(z,F)+1)}}function re(a,i){return i.lineNumber=a.lineNumber,i.columnNumber=a.columnNumber,i}function s(a,i,c,l,p,v){function m(u,Y,ne){c.attributeNames.hasOwnProperty(u)&&v.fatalError("Attribute "+u+" redefined"),c.addValue(u,Y.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,p),ne)}for(var w,E,f=++i,h=V;;){var U=a.charAt(f);switch(U){case"=":if(h===g)w=a.slice(i,f),h=H;else if(h===O)h=H;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(h===H||h===g)if(h===g&&(v.warning('attribute value must after "="'),w=a.slice(i,f)),i=f+1,f=a.indexOf(U,i),f>0)E=a.slice(i,f),m(w,E,i-1),h=q;else throw new Error("attribute value no end '"+U+"' match");else if(h==M)E=a.slice(i,f),m(w,E,i),v.warning('attribute "'+w+'" missed start quot('+U+")!!"),i=f+1,h=q;else throw new Error('attribute value must after "="');break;case"/":switch(h){case V:c.setTagName(a.slice(i,f));case q:case k:case C:h=C,c.closed=!0;case M:case g:break;case O:c.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return v.error("unexpected end of input"),h==V&&c.setTagName(a.slice(i,f)),f;case">":switch(h){case V:c.setTagName(a.slice(i,f));case q:case k:case C:break;case M:case g:E=a.slice(i,f),E.slice(-1)==="/"&&(c.closed=!0,E=E.slice(0,-1));case O:h===O&&(E=w),h==M?(v.warning('attribute "'+E+'" missed quot(")!'),m(w,E,i)):((!A.isHTML(l[""])||!E.match(/^(?:disabled|checked|selected)$/i))&&v.warning('attribute "'+E+'" missed value!! "'+E+'" instead!!'),m(E,E,i));break;case H:throw new Error("attribute value missed!!")}return f;case"":U=" ";default:if(U<=" ")switch(h){case V:c.setTagName(a.slice(i,f)),h=k;break;case g:w=a.slice(i,f),h=O;break;case M:var E=a.slice(i,f);v.warning('attribute "'+E+'" missed quot(")!!'),m(w,E,i);case q:h=k;break}else switch(h){case O:c.tagName,(!A.isHTML(l[""])||!w.match(/^(?:disabled|checked|selected)$/i))&&v.warning('attribute "'+w+'" missed value!! "'+w+'" instead2!!'),m(w,w,i),i=f,h=g;break;case q:v.warning('attribute space is required"'+w+'"!!');case k:h=g,i=f;break;case H:h=M,i=f;break;case C:throw new Error("elements closed character '/' and '>' must be connected to")}}f++}}function N(a,i,c){for(var l=a.tagName,p=null,v=a.length;v--;){var m=a[v],w=m.qName,E=m.value,u=w.indexOf(":");if(u>0)var f=m.prefix=w.slice(0,u),h=w.slice(u+1),U=f==="xmlns"&&h;else h=w,f=null,U=w==="xmlns"&&"";m.localName=h,U!==!1&&(p==null&&(p={},B(c,c={})),c[U]=p[U]=E,m.uri=A.XMLNS,i.startPrefixMapping(U,E))}for(var v=a.length;v--;){m=a[v];var f=m.prefix;f&&(f==="xml"&&(m.uri=A.XML),f!=="xmlns"&&(m.uri=c[f||""]))}var u=l.indexOf(":");u>0?(f=a.prefix=l.slice(0,u),h=a.localName=l.slice(u+1)):(f=null,h=a.localName=l);var Y=a.uri=c[f||""];if(i.startElement(Y,h,l,a),a.closed){if(i.endElement(Y,h,l),p)for(f in p)Object.prototype.hasOwnProperty.call(p,f)&&i.endPrefixMapping(f)}else return a.currentNSMap=c,a.localNSMap=p,!0}function T(a,i,c,l,p){if(/^(?:script|textarea)$/i.test(c)){var v=a.indexOf("</"+c+">",i),m=a.substring(i+1,v);if(/[&<]/.test(m))return/^script$/i.test(c)?(p.characters(m,0,m.length),v):(m=m.replace(/&#?\w+;/g,l),p.characters(m,0,m.length),v)}return i+1}function y(a,i,c,l){var p=l[c];return p==null&&(p=a.lastIndexOf("</"+c+">"),p<i&&(p=a.lastIndexOf("</"+c)),l[c]=p),p<i}function B(a,i){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])}function I(a,i,c,l){var p=a.charAt(i+2);switch(p){case"-":if(a.charAt(i+3)==="-"){var v=a.indexOf("-->",i+4);return v>i?(c.comment(a,i+4,v-i-4),v+3):(l.error("Unclosed comment"),-1)}else return-1;default:if(a.substr(i+3,6)=="CDATA["){var v=a.indexOf("]]>",i+9);return c.startCDATA(),c.characters(a,i+9,v-i-9),c.endCDATA(),v+3}var m=D(a,i),w=m.length;if(w>1&&/!doctype/i.test(m[0][0])){var E=m[1][0],f=!1,h=!1;w>3&&(/^public$/i.test(m[2][0])?(f=m[3][0],h=w>4&&m[4][0]):/^system$/i.test(m[2][0])&&(h=m[3][0]));var U=m[w-1];return c.startDTD(E,f,h),c.endDTD(),U.index+U[0].length}}return-1}function W(a,i,c){var l=a.indexOf("?>",i);if(l){var p=a.substring(i,l).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return p?(p[0].length,c.processingInstruction(p[1],p[2]),l+2):-1}return-1}function b(){this.attributeNames={}}b.prototype={setTagName:function(a){if(!X.test(a))throw new Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,i,c){if(!X.test(a))throw new Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:i,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}};function D(a,i){var c,l=[],p=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(p.lastIndex=i,p.exec(a);c=p.exec(a);)if(l.push(c),c[1])return l}return ke.XMLReader=J,ke.ParseError=_,ke}var tr;function ur(){if(tr)return Se;tr=1;var A=Ie(),S=ar(),G=lr(),X=cr(),V=S.DOMImplementation,g=A.NAMESPACE,O=X.ParseError,H=X.XMLReader;function M(s){return s.replace(/\r[\n\u0085]/g,`
|
|
3
|
+
`).replace(/[\r\u0085\u2028]/g,`
|
|
4
|
+
`)}function q(s){this.options=s||{locator:{}}}q.prototype.parseFromString=function(s,N){var T=this.options,y=new H,B=T.domBuilder||new C,I=T.errorHandler,W=T.locator,b=T.xmlns||{},D=/\/x?html?$/.test(N),a=D?G.HTML_ENTITIES:G.XML_ENTITIES;W&&B.setDocumentLocator(W),y.errorHandler=k(I,B,W),y.domBuilder=T.domBuilder||B,D&&(b[""]=g.HTML),b.xml=b.xml||g.XML;var i=T.normalizeLineEndings||M;return s&&typeof s=="string"?y.parse(i(s),b,a):y.errorHandler.error("invalid doc source"),B.doc};function k(s,N,T){if(!s){if(N instanceof C)return N;s=N}var y={},B=s instanceof Function;T=T||{};function I(W){var b=s[W];!b&&B&&(b=s.length==2?function(D){s(W,D)}:s),y[W]=b&&function(D){b("[xmldom "+W+"] "+D+J(T))}||function(){}}return I("warning"),I("error"),I("fatalError"),y}function C(){this.cdata=!1}function _(s,N){N.lineNumber=s.lineNumber,N.columnNumber=s.columnNumber}C.prototype={startDocument:function(){this.doc=new V().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(s,N,T,y){var B=this.doc,I=B.createElementNS(s,T||N),W=y.length;re(this,I),this.currentElement=I,this.locator&&_(this.locator,I);for(var b=0;b<W;b++){var s=y.getURI(b),D=y.getValue(b),T=y.getQName(b),a=B.createAttributeNS(s,T);this.locator&&_(y.getLocator(b),a),a.value=a.nodeValue=D,I.setAttributeNode(a)}},endElement:function(s,N,T){var y=this.currentElement;y.tagName,this.currentElement=y.parentNode},startPrefixMapping:function(s,N){},endPrefixMapping:function(s){},processingInstruction:function(s,N){var T=this.doc.createProcessingInstruction(s,N);this.locator&&_(this.locator,T),re(this,T)},ignorableWhitespace:function(s,N,T){},characters:function(s,N,T){if(s=ue.apply(this,arguments),s){if(this.cdata)var y=this.doc.createCDATASection(s);else var y=this.doc.createTextNode(s);this.currentElement?this.currentElement.appendChild(y):/^\s*$/.test(s)&&this.doc.appendChild(y),this.locator&&_(this.locator,y)}},skippedEntity:function(s){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(s){(this.locator=s)&&(s.lineNumber=0)},comment:function(s,N,T){s=ue.apply(this,arguments);var y=this.doc.createComment(s);this.locator&&_(this.locator,y),re(this,y)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(s,N,T){var y=this.doc.implementation;if(y&&y.createDocumentType){var B=y.createDocumentType(s,N,T);this.locator&&_(this.locator,B),re(this,B),this.doc.doctype=B}},warning:function(s){console.warn("[xmldom warning] "+s,J(this.locator))},error:function(s){console.error("[xmldom error] "+s,J(this.locator))},fatalError:function(s){throw new O(s,this.locator)}};function J(s){if(s)return`
|
|
5
|
+
@`+(s.systemId||"")+"#[line:"+s.lineNumber+",col:"+s.columnNumber+"]"}function ue(s,N,T){return typeof s=="string"?s.substr(N,T):s.length>=N+T||N?new java.lang.String(s,N,T)+"":s}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(s){C.prototype[s]=function(){return null}});function re(s,N){s.currentElement?s.currentElement.appendChild(N):s.doc.appendChild(N)}return Se.__DOMHandler=C,Se.normalizeLineEndings=M,Se.DOMParser=q,Se}var nr;function pr(){if(nr)return xe;nr=1;var A=ar();return xe.DOMImplementation=A.DOMImplementation,xe.XMLSerializer=A.XMLSerializer,xe.DOMParser=ur().DOMParser,xe}var or=pr();const dr=ir.ta(or),fr=sr({__proto__:null,default:dr},[or]);exports.i=fr;
|
package/lib/classic/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index8.js"),a=require("./index2.js"),r=require("./notification2.js"),e=require("./hooks-n9ax4LRT.js");exports.StreamLayerThemeProvider=t.h;exports.StreamLayerSDKReact=a.D;exports.StreamLayerSDKNotification=r.StreamLayerSDKNotification;exports.StreamLayerSDKNotificationUI=r.x;exports.StreamLayerProvider=e.V;exports.StreamLayerSDKEvent=e.g;exports.useStreamLayer=e.Y;exports.useStreamLayerTheme=e._;exports.useStreamLayerUI=e.q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),g=require("./index11.js"),r=require("react"),c=require("./sl-types.js"),x=require("react-countdown-circle-timer"),f=require("./index4.js"),T=i=>{const{Component:e,options:n,customOptions:o,autoFocus:s,...u}=i,a=g.distExports.useFocusable({...n,...o,onEnterPress:()=>{var l;return(l=i.onClick)==null?void 0:l.call(i,{currentTarget:a.ref.current,stopPropagation:()=>{}})}});return r.useEffect(()=>{s&&a.focusSelf()},[]),t.jsx(e,{...u,...a,"data-is-with-focus":"true"})};function j(i,e){return({webos:n,options:o,...s})=>n?t.jsx(T,{Component:i,options:e,customOptions:o,...s}):t.jsx(i,{...s})}const y=[10,10,1,0],k=c.styled_default("div")({name:"RemainingTimeCircle",class:"r165427",propsAsIs:!1}),w=c.styled_default("div")({name:"RemainingTime",class:"r17garf3",propsAsIs:!1}),E=c.O,m=c.N,p=c.S,q=({className:i,duration:e=30,onTimerExpired:n,isPlaying:o=!0})=>t.jsx(x.CountdownCircleTimer,{isPlaying:o,strokeWidth:0,duration:e,colors:m,size:24,onComplete:n,children:({remainingTime:s})=>t.jsx(w,{className:i,children:e===0?0:s})}),O=({isPlaying:i=!0,duration:e=30,onTimerExpired:n})=>{const[o,s]=r.useState(e>10?E:m),[u,a]=r.useState(2);r.useEffect(()=>{e===0&&(a(0),s(p))},[e]);const l=({remainingTime:d})=>t.jsx(k,{children:e===0?0:d}),h=r.useCallback(()=>{n==null||n(),s(p)},[n,s]),C=r.useCallback(d=>{d===10&&s(m)},[s]);return t.jsx(x.CountdownCircleTimer,{isPlaying:i,duration:e,colors:c.I,colorsTime:y,size:32,strokeWidth:u,trailStrokeWidth:2,trailColor:o,onComplete:h,onUpdate:C,children:l})},P=({height:i="37px",width:e="37px"})=>t.jsx("div",{style:{height:i,width:e},children:t.jsx(f.B1,{name:"loader"})});exports.G=q;exports.L=O;exports.O=j;exports.d=P;
|
|
1
|
+
"use strict";const wu=require("react");var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Au(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Tu(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var Ke={exports:{}},Ne,ra;function le(){if(ra)return Ne;ra=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Ne=r,Ne}var Be,ta;function nu(){if(ta)return Be;ta=1;var r=typeof me=="object"&&me&&me.Object===Object&&me;return Be=r,Be}var je,na;function ie(){if(na)return je;na=1;var r=nu(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return je=t,je}var ke,aa;function xu(){if(aa)return ke;aa=1;var r=ie(),e=function(){return r.Date.now()};return ke=e,ke}var He,ia;function Ou(){if(ia)return He;ia=1;var r=/\s/;function e(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}return He=e,He}var Ge,sa;function Su(){if(sa)return Ge;sa=1;var r=Ou(),e=/^\s+/;function t(n){return n&&n.slice(0,r(n)+1).replace(e,"")}return Ge=t,Ge}var Ue,ua;function Fe(){if(ua)return Ue;ua=1;var r=ie(),e=r.Symbol;return Ue=e,Ue}var ze,oa;function Ku(){if(oa)return ze;oa=1;var r=Fe(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(s){var o=t.call(s,a),l=s[a];try{s[a]=void 0;var h=!0}catch{}var m=n.call(s);return h&&(o?s[a]=l:delete s[a]),m}return ze=i,ze}var We,ca;function Eu(){if(ca)return We;ca=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return We=t,We}var $e,fa;function Re(){if(fa)return $e;fa=1;var r=Fe(),e=Ku(),t=Eu(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function s(o){return o==null?o===void 0?a:n:i&&i in Object(o)?e(o):t(o)}return $e=s,$e}var Ye,la;function he(){if(la)return Ye;la=1;function r(e){return e!=null&&typeof e=="object"}return Ye=r,Ye}var Je,da;function we(){if(da)return Je;da=1;var r=Re(),e=he(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return Je=n,Je}var Xe,ha;function Pu(){if(ha)return Xe;ha=1;var r=Su(),e=le(),t=we(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(h){if(typeof h=="number")return h;if(t(h))return n;if(e(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=e(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=r(h);var _=i.test(h);return _||s.test(h)?o(h.slice(2),_?2:8):a.test(h)?n:+h}return Xe=l,Xe}var Ze,va;function au(){if(va)return Ze;va=1;var r=le(),e=xu(),t=Pu(),n="Expected a function",a=Math.max,i=Math.min;function s(o,l,h){var m,_,S,E,L,K,b=0,d=!1,p=!1,q=!0;if(typeof o!="function")throw new TypeError(n);l=t(l)||0,r(h)&&(d=!!h.leading,p="maxWait"in h,S=p?a(t(h.maxWait)||0,l):S,q="trailing"in h?!!h.trailing:q);function g(A){var U=m,J=_;return m=_=void 0,b=A,E=o.apply(J,U),E}function P(A){return b=A,L=setTimeout(N,l),d?g(A):E}function x(A){var U=A-K,J=A-b,te=l-U;return p?i(te,S-J):te}function F(A){var U=A-K,J=A-b;return K===void 0||U>=l||U<0||p&&J>=S}function N(){var A=e();if(F(A))return R(A);L=setTimeout(N,x(A))}function R(A){return L=void 0,q&&m?g(A):(m=_=void 0,E)}function O(){L!==void 0&&clearTimeout(L),b=0,m=K=_=L=void 0}function M(){return L===void 0?E:R(e())}function H(){var A=e(),U=F(A);if(m=arguments,_=this,K=A,U){if(L===void 0)return P(K);if(p)return clearTimeout(L),L=setTimeout(N,l),g(K)}return L===void 0&&(L=setTimeout(N,l)),E}return H.cancel=O,H.flush=M,H}return Ze=s,Ze}var Qe,pa;function iu(){if(pa)return Qe;pa=1;var r=Re(),e=le(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function s(o){if(!e(o))return!1;var l=r(o);return l==n||l==a||l==t||l==i}return Qe=s,Qe}var Ve,ya;function Mu(){if(ya)return Ve;ya=1;var r=ie(),e=r["__core-js_shared__"];return Ve=e,Ve}var er,ga;function Iu(){if(ga)return er;ga=1;var r=Mu(),e=(function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!e&&e in n}return er=t,er}var rr,_a;function su(){if(_a)return rr;_a=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return rr=t,rr}var tr,ba;function Du(){if(ba)return tr;ba=1;var r=iu(),e=Iu(),t=le(),n=su(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,l=s.toString,h=o.hasOwnProperty,m=RegExp("^"+l.call(h).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(S){if(!t(S)||e(S))return!1;var E=r(S)?m:i;return E.test(n(S))}return tr=_,tr}var nr,ma;function Lu(){if(ma)return nr;ma=1;function r(e,t){return e?.[t]}return nr=r,nr}var ar,qa;function de(){if(qa)return ar;qa=1;var r=Du(),e=Lu();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return ar=t,ar}var ir,Ca;function Ee(){if(Ca)return ir;Ca=1;var r=de(),e=r(Object,"create");return ir=e,ir}var sr,Fa;function Nu(){if(Fa)return sr;Fa=1;var r=Ee();function e(){this.__data__=r?r(null):{},this.size=0}return sr=e,sr}var ur,Ra;function Bu(){if(Ra)return ur;Ra=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return ur=r,ur}var or,wa;function ju(){if(wa)return or;wa=1;var r=Ee(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var s=this.__data__;if(r){var o=s[i];return o===e?void 0:o}return n.call(s,i)?s[i]:void 0}return or=a,or}var cr,Aa;function ku(){if(Aa)return cr;Aa=1;var r=Ee(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return cr=n,cr}var fr,Ta;function Hu(){if(Ta)return fr;Ta=1;var r=Ee(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return fr=t,fr}var lr,xa;function Gu(){if(xa)return lr;xa=1;var r=Nu(),e=Bu(),t=ju(),n=ku(),a=Hu();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,lr=i,lr}var dr,Oa;function Uu(){if(Oa)return dr;Oa=1;function r(){this.__data__=[],this.size=0}return dr=r,dr}var hr,Sa;function Nn(){if(Sa)return hr;Sa=1;function r(e,t){return e===t||e!==e&&t!==t}return hr=r,hr}var vr,Ka;function Pe(){if(Ka)return vr;Ka=1;var r=Nn();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return vr=e,vr}var pr,Ea;function zu(){if(Ea)return pr;Ea=1;var r=Pe(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,s=r(i,a);if(s<0)return!1;var o=i.length-1;return s==o?i.pop():t.call(i,s,1),--this.size,!0}return pr=n,pr}var yr,Pa;function Wu(){if(Pa)return yr;Pa=1;var r=Pe();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return yr=e,yr}var gr,Ma;function $u(){if(Ma)return gr;Ma=1;var r=Pe();function e(t){return r(this.__data__,t)>-1}return gr=e,gr}var _r,Ia;function Yu(){if(Ia)return _r;Ia=1;var r=Pe();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return _r=e,_r}var br,Da;function Me(){if(Da)return br;Da=1;var r=Uu(),e=zu(),t=Wu(),n=$u(),a=Yu();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,br=i,br}var mr,La;function Bn(){if(La)return mr;La=1;var r=de(),e=ie(),t=r(e,"Map");return mr=t,mr}var qr,Na;function Ju(){if(Na)return qr;Na=1;var r=Gu(),e=Me(),t=Bn();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return qr=n,qr}var Cr,Ba;function Xu(){if(Ba)return Cr;Ba=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Cr=r,Cr}var Fr,ja;function Ie(){if(ja)return Fr;ja=1;var r=Xu();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Fr=e,Fr}var Rr,ka;function Zu(){if(ka)return Rr;ka=1;var r=Ie();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Rr=e,Rr}var wr,Ha;function Qu(){if(Ha)return wr;Ha=1;var r=Ie();function e(t){return r(this,t).get(t)}return wr=e,wr}var Ar,Ga;function Vu(){if(Ga)return Ar;Ga=1;var r=Ie();function e(t){return r(this,t).has(t)}return Ar=e,Ar}var Tr,Ua;function eo(){if(Ua)return Tr;Ua=1;var r=Ie();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return Tr=e,Tr}var xr,za;function jn(){if(za)return xr;za=1;var r=Ju(),e=Zu(),t=Qu(),n=Vu(),a=eo();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,xr=i,xr}var Or,Wa;function ro(){if(Wa)return Or;Wa=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return Or=e,Or}var Sr,$a;function to(){if($a)return Sr;$a=1;function r(e){return this.__data__.has(e)}return Sr=r,Sr}var Kr,Ya;function uu(){if(Ya)return Kr;Ya=1;var r=jn(),e=ro(),t=to();function n(a){var i=-1,s=a==null?0:a.length;for(this.__data__=new r;++i<s;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Kr=n,Kr}var Er,Ja;function no(){if(Ja)return Er;Ja=1;function r(e,t,n,a){for(var i=e.length,s=n+(a?1:-1);a?s--:++s<i;)if(t(e[s],s,e))return s;return-1}return Er=r,Er}var Pr,Xa;function ao(){if(Xa)return Pr;Xa=1;function r(e){return e!==e}return Pr=r,Pr}var Mr,Za;function io(){if(Za)return Mr;Za=1;function r(e,t,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}return Mr=r,Mr}var Ir,Qa;function so(){if(Qa)return Ir;Qa=1;var r=no(),e=ao(),t=io();function n(a,i,s){return i===i?t(a,i,s):r(a,e,s)}return Ir=n,Ir}var Dr,Va;function uo(){if(Va)return Dr;Va=1;var r=so();function e(t,n){var a=t==null?0:t.length;return!!a&&r(t,n,0)>-1}return Dr=e,Dr}var Lr,ei;function oo(){if(ei)return Lr;ei=1;function r(e,t,n){for(var a=-1,i=e==null?0:e.length;++a<i;)if(n(t,e[a]))return!0;return!1}return Lr=r,Lr}var Nr,ri;function kn(){if(ri)return Nr;ri=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return Nr=r,Nr}var Br,ti;function Hn(){if(ti)return Br;ti=1;function r(e){return function(t){return e(t)}}return Br=r,Br}var jr,ni;function ou(){if(ni)return jr;ni=1;function r(e,t){return e.has(t)}return jr=r,jr}var kr,ai;function co(){if(ai)return kr;ai=1;var r=uu(),e=uo(),t=oo(),n=kn(),a=Hn(),i=ou(),s=200;function o(l,h,m,_){var S=-1,E=e,L=!0,K=l.length,b=[],d=h.length;if(!K)return b;m&&(h=n(h,a(m))),_?(E=t,L=!1):h.length>=s&&(E=i,L=!1,h=new r(h));e:for(;++S<K;){var p=l[S],q=m==null?p:m(p);if(p=_||p!==0?p:0,L&&q===q){for(var g=d;g--;)if(h[g]===q)continue e;b.push(p)}else E(h,q,_)||b.push(p)}return b}return kr=o,kr}var Hr,ii;function cu(){if(ii)return Hr;ii=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return Hr=r,Hr}var Gr,si;function fo(){if(si)return Gr;si=1;var r=Re(),e=he(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return Gr=n,Gr}var Ur,ui;function Gn(){if(ui)return Ur;ui=1;var r=fo(),e=he(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r((function(){return arguments})())?r:function(s){return e(s)&&n.call(s,"callee")&&!a.call(s,"callee")};return Ur=i,Ur}var zr,oi;function re(){if(oi)return zr;oi=1;var r=Array.isArray;return zr=r,zr}var Wr,ci;function lo(){if(ci)return Wr;ci=1;var r=Fe(),e=Gn(),t=re(),n=r?r.isConcatSpreadable:void 0;function a(i){return t(i)||e(i)||!!(n&&i&&i[n])}return Wr=a,Wr}var $r,fi;function fu(){if(fi)return $r;fi=1;var r=cu(),e=lo();function t(n,a,i,s,o){var l=-1,h=n.length;for(i||(i=e),o||(o=[]);++l<h;){var m=n[l];a>0&&i(m)?a>1?t(m,a-1,i,s,o):r(o,m):s||(o[o.length]=m)}return o}return $r=t,$r}var Yr,li;function Ae(){if(li)return Yr;li=1;function r(e){return e}return Yr=r,Yr}var Jr,di;function ho(){if(di)return Jr;di=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return Jr=r,Jr}var Xr,hi;function vo(){if(hi)return Xr;hi=1;var r=ho(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var s=arguments,o=-1,l=e(s.length-a,0),h=Array(l);++o<l;)h[o]=s[a+o];o=-1;for(var m=Array(a+1);++o<a;)m[o]=s[o];return m[a]=i(h),r(n,this,m)}}return Xr=t,Xr}var Zr,vi;function po(){if(vi)return Zr;vi=1;function r(e){return function(){return e}}return Zr=r,Zr}var Qr,pi;function yo(){if(pi)return Qr;pi=1;var r=de(),e=(function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Qr=e,Qr}var Vr,yi;function go(){if(yi)return Vr;yi=1;var r=po(),e=yo(),t=Ae(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return Vr=n,Vr}var et,gi;function _o(){if(gi)return et;gi=1;var r=800,e=16,t=Date.now;function n(a){var i=0,s=0;return function(){var o=t(),l=e-(o-s);if(s=o,l>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return et=n,et}var rt,_i;function bo(){if(_i)return rt;_i=1;var r=go(),e=_o(),t=e(r);return rt=t,rt}var tt,bi;function lu(){if(bi)return tt;bi=1;var r=Ae(),e=vo(),t=bo();function n(a,i){return t(e(a,i,r),a+"")}return tt=n,tt}var nt,mi;function Un(){if(mi)return nt;mi=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return nt=e,nt}var at,qi;function Te(){if(qi)return at;qi=1;var r=iu(),e=Un();function t(n){return n!=null&&e(n.length)&&!r(n)}return at=t,at}var it,Ci;function mo(){if(Ci)return it;Ci=1;var r=Te(),e=he();function t(n){return e(n)&&r(n)}return it=t,it}var st,Fi;function qo(){if(Fi)return st;Fi=1;var r=co(),e=fu(),t=lu(),n=mo(),a=t(function(i,s){return n(i)?r(i,e(s,1,n,!0)):[]});return st=a,st}var ut,Ri;function du(){if(Ri)return ut;Ri=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,s=[];++n<a;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}return ut=r,ut}var ot,wi;function Co(){if(wi)return ot;wi=1;function r(e){return function(t,n,a){for(var i=-1,s=Object(t),o=a(t),l=o.length;l--;){var h=o[e?l:++i];if(n(s[h],h,s)===!1)break}return t}}return ot=r,ot}var ct,Ai;function Fo(){if(Ai)return ct;Ai=1;var r=Co(),e=r();return ct=e,ct}var ft,Ti;function Ro(){if(Ti)return ft;Ti=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return ft=r,ft}var qe={exports:{}},lt,xi;function wo(){if(xi)return lt;xi=1;function r(){return!1}return lt=r,lt}qe.exports;var Oi;function hu(){return Oi||(Oi=1,(function(r,e){var t=ie(),n=wo(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,s=i&&i.exports===a,o=s?t.Buffer:void 0,l=o?o.isBuffer:void 0,h=l||n;r.exports=h})(qe,qe.exports)),qe.exports}var dt,Si;function zn(){if(Si)return dt;Si=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return dt=t,dt}var ht,Ki;function Ao(){if(Ki)return ht;Ki=1;var r=Re(),e=Un(),t=he(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",s="[object Date]",o="[object Error]",l="[object Function]",h="[object Map]",m="[object Number]",_="[object Object]",S="[object RegExp]",E="[object Set]",L="[object String]",K="[object WeakMap]",b="[object ArrayBuffer]",d="[object DataView]",p="[object Float32Array]",q="[object Float64Array]",g="[object Int8Array]",P="[object Int16Array]",x="[object Int32Array]",F="[object Uint8Array]",N="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]",M={};M[p]=M[q]=M[g]=M[P]=M[x]=M[F]=M[N]=M[R]=M[O]=!0,M[n]=M[a]=M[b]=M[i]=M[d]=M[s]=M[o]=M[l]=M[h]=M[m]=M[_]=M[S]=M[E]=M[L]=M[K]=!1;function H(A){return t(A)&&e(A.length)&&!!M[r(A)]}return ht=H,ht}var Ce={exports:{}};Ce.exports;var Ei;function To(){return Ei||(Ei=1,(function(r,e){var t=nu(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,s=i&&t.process,o=(function(){try{var l=a&&a.require&&a.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}})();r.exports=o})(Ce,Ce.exports)),Ce.exports}var vt,Pi;function vu(){if(Pi)return vt;Pi=1;var r=Ao(),e=Hn(),t=To(),n=t&&t.isTypedArray,a=n?e(n):r;return vt=a,vt}var pt,Mi;function xo(){if(Mi)return pt;Mi=1;var r=Ro(),e=Gn(),t=re(),n=hu(),a=zn(),i=vu(),s=Object.prototype,o=s.hasOwnProperty;function l(h,m){var _=t(h),S=!_&&e(h),E=!_&&!S&&n(h),L=!_&&!S&&!E&&i(h),K=_||S||E||L,b=K?r(h.length,String):[],d=b.length;for(var p in h)(m||o.call(h,p))&&!(K&&(p=="length"||E&&(p=="offset"||p=="parent")||L&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||a(p,d)))&&b.push(p);return b}return pt=l,pt}var yt,Ii;function Oo(){if(Ii)return yt;Ii=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return yt=e,yt}var gt,Di;function So(){if(Di)return gt;Di=1;function r(e,t){return function(n){return e(t(n))}}return gt=r,gt}var _t,Li;function Ko(){if(Li)return _t;Li=1;var r=So(),e=r(Object.keys,Object);return _t=e,_t}var bt,Ni;function Eo(){if(Ni)return bt;Ni=1;var r=Oo(),e=Ko(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var s=[];for(var o in Object(i))n.call(i,o)&&o!="constructor"&&s.push(o);return s}return bt=a,bt}var mt,Bi;function Wn(){if(Bi)return mt;Bi=1;var r=xo(),e=Eo(),t=Te();function n(a){return t(a)?r(a):e(a)}return mt=n,mt}var qt,ji;function $n(){if(ji)return qt;ji=1;var r=Fo(),e=Wn();function t(n,a){return n&&r(n,a,e)}return qt=t,qt}var Ct,ki;function Po(){if(ki)return Ct;ki=1;var r=Te();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var s=a.length,o=n?s:-1,l=Object(a);(n?o--:++o<s)&&i(l[o],o,l)!==!1;);return a}}return Ct=e,Ct}var Ft,Hi;function Yn(){if(Hi)return Ft;Hi=1;var r=$n(),e=Po(),t=e(r);return Ft=t,Ft}var Rt,Gi;function Mo(){if(Gi)return Rt;Gi=1;var r=Yn();function e(t,n){var a=[];return r(t,function(i,s,o){n(i,s,o)&&a.push(i)}),a}return Rt=e,Rt}var wt,Ui;function Io(){if(Ui)return wt;Ui=1;var r=Me();function e(){this.__data__=new r,this.size=0}return wt=e,wt}var At,zi;function Do(){if(zi)return At;zi=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return At=r,At}var Tt,Wi;function Lo(){if(Wi)return Tt;Wi=1;function r(e){return this.__data__.get(e)}return Tt=r,Tt}var xt,$i;function No(){if($i)return xt;$i=1;function r(e){return this.__data__.has(e)}return xt=r,xt}var Ot,Yi;function Bo(){if(Yi)return Ot;Yi=1;var r=Me(),e=Bn(),t=jn(),n=200;function a(i,s){var o=this.__data__;if(o instanceof r){var l=o.__data__;if(!e||l.length<n-1)return l.push([i,s]),this.size=++o.size,this;o=this.__data__=new t(l)}return o.set(i,s),this.size=o.size,this}return Ot=a,Ot}var St,Ji;function pu(){if(Ji)return St;Ji=1;var r=Me(),e=Io(),t=Do(),n=Lo(),a=No(),i=Bo();function s(o){var l=this.__data__=new r(o);this.size=l.size}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=a,s.prototype.set=i,St=s,St}var Kt,Xi;function jo(){if(Xi)return Kt;Xi=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Kt=r,Kt}var Et,Zi;function yu(){if(Zi)return Et;Zi=1;var r=uu(),e=jo(),t=ou(),n=1,a=2;function i(s,o,l,h,m,_){var S=l&n,E=s.length,L=o.length;if(E!=L&&!(S&&L>E))return!1;var K=_.get(s),b=_.get(o);if(K&&b)return K==o&&b==s;var d=-1,p=!0,q=l&a?new r:void 0;for(_.set(s,o),_.set(o,s);++d<E;){var g=s[d],P=o[d];if(h)var x=S?h(P,g,d,o,s,_):h(g,P,d,s,o,_);if(x!==void 0){if(x)continue;p=!1;break}if(q){if(!e(o,function(F,N){if(!t(q,N)&&(g===F||m(g,F,l,h,_)))return q.push(N)})){p=!1;break}}else if(!(g===P||m(g,P,l,h,_))){p=!1;break}}return _.delete(s),_.delete(o),p}return Et=i,Et}var Pt,Qi;function ko(){if(Qi)return Pt;Qi=1;var r=ie(),e=r.Uint8Array;return Pt=e,Pt}var Mt,Vi;function Ho(){if(Vi)return Mt;Vi=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return Mt=r,Mt}var It,es;function Go(){if(es)return It;es=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return It=r,It}var Dt,rs;function Uo(){if(rs)return Dt;rs=1;var r=Fe(),e=ko(),t=Nn(),n=yu(),a=Ho(),i=Go(),s=1,o=2,l="[object Boolean]",h="[object Date]",m="[object Error]",_="[object Map]",S="[object Number]",E="[object RegExp]",L="[object Set]",K="[object String]",b="[object Symbol]",d="[object ArrayBuffer]",p="[object DataView]",q=r?r.prototype:void 0,g=q?q.valueOf:void 0;function P(x,F,N,R,O,M,H){switch(N){case p:if(x.byteLength!=F.byteLength||x.byteOffset!=F.byteOffset)return!1;x=x.buffer,F=F.buffer;case d:return!(x.byteLength!=F.byteLength||!M(new e(x),new e(F)));case l:case h:case S:return t(+x,+F);case m:return x.name==F.name&&x.message==F.message;case E:case K:return x==F+"";case _:var A=a;case L:var U=R&s;if(A||(A=i),x.size!=F.size&&!U)return!1;var J=H.get(x);if(J)return J==F;R|=o,H.set(x,F);var te=n(A(x),A(F),R,O,M,H);return H.delete(x),te;case b:if(g)return g.call(x)==g.call(F)}return!1}return Dt=P,Dt}var Lt,ts;function zo(){if(ts)return Lt;ts=1;var r=cu(),e=re();function t(n,a,i){var s=a(n);return e(n)?s:r(s,i(n))}return Lt=t,Lt}var Nt,ns;function Wo(){if(ns)return Nt;ns=1;function r(){return[]}return Nt=r,Nt}var Bt,as;function $o(){if(as)return Bt;as=1;var r=du(),e=Wo(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(s){return s==null?[]:(s=Object(s),r(a(s),function(o){return n.call(s,o)}))}:e;return Bt=i,Bt}var jt,is;function Yo(){if(is)return jt;is=1;var r=zo(),e=$o(),t=Wn();function n(a){return r(a,t,e)}return jt=n,jt}var kt,ss;function Jo(){if(ss)return kt;ss=1;var r=Yo(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,s,o,l,h,m){var _=o&e,S=r(i),E=S.length,L=r(s),K=L.length;if(E!=K&&!_)return!1;for(var b=E;b--;){var d=S[b];if(!(_?d in s:n.call(s,d)))return!1}var p=m.get(i),q=m.get(s);if(p&&q)return p==s&&q==i;var g=!0;m.set(i,s),m.set(s,i);for(var P=_;++b<E;){d=S[b];var x=i[d],F=s[d];if(l)var N=_?l(F,x,d,s,i,m):l(x,F,d,i,s,m);if(!(N===void 0?x===F||h(x,F,o,l,m):N)){g=!1;break}P||(P=d=="constructor")}if(g&&!P){var R=i.constructor,O=s.constructor;R!=O&&"constructor"in i&&"constructor"in s&&!(typeof R=="function"&&R instanceof R&&typeof O=="function"&&O instanceof O)&&(g=!1)}return m.delete(i),m.delete(s),g}return kt=a,kt}var Ht,us;function Xo(){if(us)return Ht;us=1;var r=de(),e=ie(),t=r(e,"DataView");return Ht=t,Ht}var Gt,os;function Zo(){if(os)return Gt;os=1;var r=de(),e=ie(),t=r(e,"Promise");return Gt=t,Gt}var Ut,cs;function Qo(){if(cs)return Ut;cs=1;var r=de(),e=ie(),t=r(e,"Set");return Ut=t,Ut}var zt,fs;function Vo(){if(fs)return zt;fs=1;var r=de(),e=ie(),t=r(e,"WeakMap");return zt=t,zt}var Wt,ls;function ec(){if(ls)return Wt;ls=1;var r=Xo(),e=Bn(),t=Zo(),n=Qo(),a=Vo(),i=Re(),s=su(),o="[object Map]",l="[object Object]",h="[object Promise]",m="[object Set]",_="[object WeakMap]",S="[object DataView]",E=s(r),L=s(e),K=s(t),b=s(n),d=s(a),p=i;return(r&&p(new r(new ArrayBuffer(1)))!=S||e&&p(new e)!=o||t&&p(t.resolve())!=h||n&&p(new n)!=m||a&&p(new a)!=_)&&(p=function(q){var g=i(q),P=g==l?q.constructor:void 0,x=P?s(P):"";if(x)switch(x){case E:return S;case L:return o;case K:return h;case b:return m;case d:return _}return g}),Wt=p,Wt}var $t,ds;function rc(){if(ds)return $t;ds=1;var r=pu(),e=yu(),t=Uo(),n=Jo(),a=ec(),i=re(),s=hu(),o=vu(),l=1,h="[object Arguments]",m="[object Array]",_="[object Object]",S=Object.prototype,E=S.hasOwnProperty;function L(K,b,d,p,q,g){var P=i(K),x=i(b),F=P?m:a(K),N=x?m:a(b);F=F==h?_:F,N=N==h?_:N;var R=F==_,O=N==_,M=F==N;if(M&&s(K)){if(!s(b))return!1;P=!0,R=!1}if(M&&!R)return g||(g=new r),P||o(K)?e(K,b,d,p,q,g):t(K,b,F,d,p,q,g);if(!(d&l)){var H=R&&E.call(K,"__wrapped__"),A=O&&E.call(b,"__wrapped__");if(H||A){var U=H?K.value():K,J=A?b.value():b;return g||(g=new r),q(U,J,d,p,g)}}return M?(g||(g=new r),n(K,b,d,p,q,g)):!1}return $t=L,$t}var Yt,hs;function gu(){if(hs)return Yt;hs=1;var r=rc(),e=he();function t(n,a,i,s,o){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,s,t,o)}return Yt=t,Yt}var Jt,vs;function tc(){if(vs)return Jt;vs=1;var r=pu(),e=gu(),t=1,n=2;function a(i,s,o,l){var h=o.length,m=h,_=!l;if(i==null)return!m;for(i=Object(i);h--;){var S=o[h];if(_&&S[2]?S[1]!==i[S[0]]:!(S[0]in i))return!1}for(;++h<m;){S=o[h];var E=S[0],L=i[E],K=S[1];if(_&&S[2]){if(L===void 0&&!(E in i))return!1}else{var b=new r;if(l)var d=l(L,K,E,i,s,b);if(!(d===void 0?e(K,L,t|n,l,b):d))return!1}}return!0}return Jt=a,Jt}var Xt,ps;function _u(){if(ps)return Xt;ps=1;var r=le();function e(t){return t===t&&!r(t)}return Xt=e,Xt}var Zt,ys;function nc(){if(ys)return Zt;ys=1;var r=_u(),e=Wn();function t(n){for(var a=e(n),i=a.length;i--;){var s=a[i],o=n[s];a[i]=[s,o,r(o)]}return a}return Zt=t,Zt}var Qt,gs;function bu(){if(gs)return Qt;gs=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return Qt=r,Qt}var Vt,_s;function ac(){if(_s)return Vt;_s=1;var r=tc(),e=nc(),t=bu();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(s){return s===a||r(s,a,i)}}return Vt=n,Vt}var en,bs;function Jn(){if(bs)return en;bs=1;var r=re(),e=we(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,s){if(r(i))return!1;var o=typeof i;return o=="number"||o=="symbol"||o=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||s!=null&&i in Object(s)}return en=a,en}var rn,ms;function ic(){if(ms)return rn;ms=1;var r=jn(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var s=arguments,o=a?a.apply(this,s):s[0],l=i.cache;if(l.has(o))return l.get(o);var h=n.apply(this,s);return i.cache=l.set(o,h)||l,h};return i.cache=new(t.Cache||r),i}return t.Cache=r,rn=t,rn}var tn,qs;function sc(){if(qs)return tn;qs=1;var r=ic(),e=500;function t(n){var a=r(n,function(s){return i.size===e&&i.clear(),s}),i=a.cache;return a}return tn=t,tn}var nn,Cs;function uc(){if(Cs)return nn;Cs=1;var r=sc(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(s,o,l,h){i.push(l?h.replace(t,"$1"):o||s)}),i});return nn=n,nn}var an,Fs;function oc(){if(Fs)return an;Fs=1;var r=Fe(),e=kn(),t=re(),n=we(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function s(o){if(typeof o=="string")return o;if(t(o))return e(o,s)+"";if(n(o))return i?i.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return an=s,an}var sn,Rs;function mu(){if(Rs)return sn;Rs=1;var r=oc();function e(t){return t==null?"":r(t)}return sn=e,sn}var un,ws;function qu(){if(ws)return un;ws=1;var r=re(),e=Jn(),t=uc(),n=mu();function a(i,s){return r(i)?i:e(i,s)?[i]:t(n(i))}return un=a,un}var on,As;function De(){if(As)return on;As=1;var r=we();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return on=e,on}var cn,Ts;function Xn(){if(Ts)return cn;Ts=1;var r=qu(),e=De();function t(n,a){a=r(a,n);for(var i=0,s=a.length;n!=null&&i<s;)n=n[e(a[i++])];return i&&i==s?n:void 0}return cn=t,cn}var fn,xs;function cc(){if(xs)return fn;xs=1;var r=Xn();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return fn=e,fn}var ln,Os;function fc(){if(Os)return ln;Os=1;function r(e,t){return e!=null&&t in Object(e)}return ln=r,ln}var dn,Ss;function lc(){if(Ss)return dn;Ss=1;var r=qu(),e=Gn(),t=re(),n=zn(),a=Un(),i=De();function s(o,l,h){l=r(l,o);for(var m=-1,_=l.length,S=!1;++m<_;){var E=i(l[m]);if(!(S=o!=null&&h(o,E)))break;o=o[E]}return S||++m!=_?S:(_=o==null?0:o.length,!!_&&a(_)&&n(E,_)&&(t(o)||e(o)))}return dn=s,dn}var hn,Ks;function dc(){if(Ks)return hn;Ks=1;var r=fc(),e=lc();function t(n,a){return n!=null&&e(n,a,r)}return hn=t,hn}var vn,Es;function hc(){if(Es)return vn;Es=1;var r=gu(),e=cc(),t=dc(),n=Jn(),a=_u(),i=bu(),s=De(),o=1,l=2;function h(m,_){return n(m)&&a(_)?i(s(m),_):function(S){var E=e(S,m);return E===void 0&&E===_?t(S,m):r(_,E,o|l)}}return vn=h,vn}var pn,Ps;function vc(){if(Ps)return pn;Ps=1;function r(e){return function(t){return t?.[e]}}return pn=r,pn}var yn,Ms;function pc(){if(Ms)return yn;Ms=1;var r=Xn();function e(t){return function(n){return r(n,t)}}return yn=e,yn}var gn,Is;function yc(){if(Is)return gn;Is=1;var r=vc(),e=pc(),t=Jn(),n=De();function a(i){return t(i)?r(n(i)):e(i)}return gn=a,gn}var _n,Ds;function Zn(){if(Ds)return _n;Ds=1;var r=ac(),e=hc(),t=Ae(),n=re(),a=yc();function i(s){return typeof s=="function"?s:s==null?t:typeof s=="object"?n(s)?e(s[0],s[1]):r(s):a(s)}return _n=i,_n}var bn,Ls;function gc(){if(Ls)return bn;Ls=1;var r=du(),e=Mo(),t=Zn(),n=re();function a(i,s){var o=n(i)?r:e;return o(i,t(s,3))}return bn=a,bn}var mn,Ns;function _c(){if(Ns)return mn;Ns=1;function r(e,t,n){var a;return n(e,function(i,s,o){if(t(i,s,o))return a=s,!1}),a}return mn=r,mn}var qn,Bs;function bc(){if(Bs)return qn;Bs=1;var r=_c(),e=$n(),t=Zn();function n(a,i){return r(a,t(i,3),e)}return qn=n,qn}var Cn,js;function mc(){if(js)return Cn;js=1;function r(e){return e&&e.length?e[0]:void 0}return Cn=r,Cn}var Fn,ks;function qc(){return ks||(ks=1,Fn=mc()),Fn}var Rn,Hs;function Cc(){if(Hs)return Rn;Hs=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}return Rn=r,Rn}var wn,Gs;function Cu(){if(Gs)return wn;Gs=1;var r=Ae();function e(t){return typeof t=="function"?t:r}return wn=e,wn}var An,Us;function Fc(){if(Us)return An;Us=1;var r=Cc(),e=Yn(),t=Cu(),n=re();function a(i,s){var o=n(i)?r:e;return o(i,t(s))}return An=a,An}var Tn,zs;function Rc(){if(zs)return Tn;zs=1;var r=$n(),e=Cu();function t(n,a){return n&&r(n,e(a))}return Tn=t,Tn}var xn,Ws;function wc(){if(Ws)return xn;Ws=1;function r(){}return xn=r,xn}var On,$s;function Ac(){if($s)return On;$s=1;var r=Yn(),e=Te();function t(n,a){var i=-1,s=e(n)?Array(n.length):[];return r(n,function(o,l,h){s[++i]=a(o,l,h)}),s}return On=t,On}var Sn,Ys;function Tc(){if(Ys)return Sn;Ys=1;function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}return Sn=r,Sn}var Kn,Js;function xc(){if(Js)return Kn;Js=1;var r=we();function e(t,n){if(t!==n){var a=t!==void 0,i=t===null,s=t===t,o=r(t),l=n!==void 0,h=n===null,m=n===n,_=r(n);if(!h&&!_&&!o&&t>n||o&&l&&m&&!h&&!_||i&&l&&m||!a&&m||!s)return 1;if(!i&&!o&&!_&&t<n||_&&a&&s&&!i&&!o||h&&a&&s||!l&&s||!m)return-1}return 0}return Kn=e,Kn}var En,Xs;function Oc(){if(Xs)return En;Xs=1;var r=xc();function e(t,n,a){for(var i=-1,s=t.criteria,o=n.criteria,l=s.length,h=a.length;++i<l;){var m=r(s[i],o[i]);if(m){if(i>=h)return m;var _=a[i];return m*(_=="desc"?-1:1)}}return t.index-n.index}return En=e,En}var Pn,Zs;function Sc(){if(Zs)return Pn;Zs=1;var r=kn(),e=Xn(),t=Zn(),n=Ac(),a=Tc(),i=Hn(),s=Oc(),o=Ae(),l=re();function h(m,_,S){_.length?_=r(_,function(K){return l(K)?function(b){return e(b,K.length===1?K[0]:K)}:K}):_=[o];var E=-1;_=r(_,i(t));var L=n(m,function(K,b,d){var p=r(_,function(q){return q(K)});return{criteria:p,index:++E,value:K}});return a(L,function(K,b){return s(K,b,S)})}return Pn=h,Pn}var Mn,Qs;function Kc(){if(Qs)return Mn;Qs=1;var r=Nn(),e=Te(),t=zn(),n=le();function a(i,s,o){if(!n(o))return!1;var l=typeof s;return(l=="number"?e(o)&&t(s,o.length):l=="string"&&s in o)?r(o[s],i):!1}return Mn=a,Mn}var In,Vs;function Ec(){if(Vs)return In;Vs=1;var r=fu(),e=Sc(),t=lu(),n=Kc(),a=t(function(i,s){if(i==null)return[];var o=s.length;return o>1&&n(i,s[0],s[1])?s=[]:o>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),e(i,r(s,1),[])});return In=a,In}var Dn,eu;function Pc(){if(eu)return Dn;eu=1;var r=au(),e=le(),t="Expected a function";function n(a,i,s){var o=!0,l=!0;if(typeof a!="function")throw new TypeError(t);return e(s)&&(o="leading"in s?!!s.leading:o,l="trailing"in s?!!s.trailing:l),r(a,i,{leading:o,maxWait:i,trailing:l})}return Dn=n,Dn}var Ln,ru;function Mc(){if(ru)return Ln;ru=1;var r=mu(),e=0;function t(n){var a=++e;return r(n)+a}return Ln=t,Ln}var Ic=Ke.exports,tu;function Dc(){return tu||(tu=1,(function(r,e){(function(t,n){r.exports=n(au(),qo(),gc(),bc(),qc(),Fc(),Rc(),wc(),Ec(),Pc(),Mc(),wu)})(Ic,(function(t,n,a,i,s,o,l,h,m,_,S,E){return(function(){var L={654:function(b,d,p){var q,g=this&&this.__assign||function(){return g=Object.assign||function(y){for(var u,c=1,f=arguments.length;c<f;c++)for(var v in u=arguments[c])Object.prototype.hasOwnProperty.call(u,v)&&(y[v]=u[v]);return y},g.apply(this,arguments)},P=this&&this.__createBinding||(Object.create?function(y,u,c,f){f===void 0&&(f=c);var v=Object.getOwnPropertyDescriptor(u,c);v&&!("get"in v?!u.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(y,f,v)}:function(y,u,c,f){f===void 0&&(f=c),y[f]=u[c]}),x=this&&this.__setModuleDefault||(Object.create?function(y,u){Object.defineProperty(y,"default",{enumerable:!0,value:u})}:function(y,u){y.default=u}),F=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var u={};if(y!=null)for(var c in y)c!=="default"&&Object.prototype.hasOwnProperty.call(y,c)&&P(u,y,c);return x(u,y),u},N=this&&this.__spreadArray||function(y,u,c){if(c||arguments.length===2)for(var f,v=0,C=u.length;v<C;v++)!f&&v in u||(f||(f=Array.prototype.slice.call(u,0,v)),f[v]=u[v]);return y.concat(f||Array.prototype.slice.call(u))},R=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(d,"__esModule",{value:!0}),d.updateRtl=d.doesFocusableExist=d.getCurrentFocusKey=d.updateAllLayouts=d.resume=d.pause=d.navigateByDirection=d.setFocus=d.setKeyMap=d.destroy=d.setThrottle=d.init=d.SpatialNavigation=d.ROOT_FOCUS_KEY=void 0;var O=R(p(150)),M=R(p(117)),H=R(p(747)),A=R(p(23)),U=R(p(842)),J=R(p(682)),te=R(p(784)),ve=R(p(432)),Le=R(p(67)),xe=R(p(35)),Q=R(p(119)),pe=F(p(964)),ue="left",oe="right",ce="up",ne="down",ye="enter",ge=((q={}).left=[37,"ArrowLeft"],q.up=[38,"ArrowUp"],q.right=[39,"ArrowRight"],q.down=[40,"ArrowDown"],q.enter=[13,"Enter"],q);d.ROOT_FOCUS_KEY="SN:ROOT";var _e=["#0FF","#FF0","#F0F"],Oe={leading:!0,trailing:!1},Se=(function(){function y(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=Q.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=ge,this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,O.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return y.getCutoffCoordinate=function(u,c,f,v,C){var w=u?v.top:C===Q.default.LTR?v.left:v.right,T=u?v.bottom:C===Q.default.LTR?v.right:v.left;return c?f?w:T:f?T:w},y.getRefCorners=function(u,c,f){var v={a:{x:0,y:0},b:{x:0,y:0}};switch(u){case ce:var C=c?f.bottom:f.top;v.a={x:f.left,y:C},v.b={x:f.right,y:C};break;case ne:C=c?f.top:f.bottom,v.a={x:f.left,y:C},v.b={x:f.right,y:C};break;case ue:var w=c?f.right:f.left;v.a={x:w,y:f.top},v.b={x:w,y:f.bottom};break;case oe:w=c?f.left:f.right,v.a={x:w,y:f.top},v.b={x:w,y:f.bottom}}return v},y.isAdjacentSlice=function(u,c,f){var v=u.a,C=u.b,w=c.a,T=c.b,I=f?"x":"y",G=v[I],k=C[I],j=w[I],B=T[I],D=.2*(k-G);return Math.max(0,Math.min(k,B)-Math.max(G,j))>=D},y.getPrimaryAxisDistance=function(u,c,f){var v=u.a,C=c.a,w=f?"y":"x";return Math.abs(C[w]-v[w])},y.getSecondaryAxisDistance=function(u,c,f,v,C){if(C)return C(u,c,f,v);var w=u.a,T=u.b,I=c.a,G=c.b,k=f?"x":"y",j=w[k],B=T[k],D=I[k],Y=G[k];if(v==="center"){var W=(j+B)/2,X=(D+Y)/2;return Math.abs(W-X)}if(v==="edges"){var se=Math.min(j,B),z=Math.min(D,Y),V=Math.max(j,B),fe=Math.max(D,Y),ae=Math.abs(se-z),ee=Math.abs(V-fe);return Math.min(ae,ee)}var be=[Math.abs(D-j),Math.abs(D-B),Math.abs(Y-j),Math.abs(Y-B)];return Math.min.apply(Math,be)},y.prototype.sortSiblingsByPriority=function(u,c,f,v){var C=this,w=f===ne||f===ce,T=y.getRefCorners(f,!1,c);return(0,ve.default)(u,(function(I){var G=y.getRefCorners(f,!0,I.layout),k=y.isAdjacentSlice(T,G,w),j=k?y.getPrimaryAxisDistance:y.getSecondaryAxisDistance,B=k?y.getSecondaryAxisDistance:y.getPrimaryAxisDistance,D=j(T,G,w,C.distanceCalculationMethod,C.customDistanceCalculationFunction),Y=B(T,G,w,C.distanceCalculationMethod,C.customDistanceCalculationFunction),W=5*D+Y,X=(W+1)/(k?5:1);return C.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(I.focusKey," relative to ").concat(v," is"),D,Y,W),C.log("smartNavigate","priority for ".concat(I.focusKey," relative to ").concat(v," is"),X),C.visualDebugger&&(C.visualDebugger.drawPoint(G.a.x,G.a.y,"yellow",6),C.visualDebugger.drawPoint(G.b.x,G.b.y,"yellow",6)),X}))},y.prototype.init=function(u){var c=this,f=u===void 0?{}:u,v=f.debug,C=v!==void 0&&v,w=f.visualDebug,T=w!==void 0&&w,I=f.nativeMode,G=I!==void 0&&I,k=f.throttle,j=k===void 0?0:k,B=f.throttleKeypresses,D=B!==void 0&&B,Y=f.useGetBoundingClientRect,W=Y!==void 0&&Y,X=f.shouldFocusDOMNode,se=X!==void 0&&X,z=f.domNodeFocusOptions,V=z===void 0?{}:z,fe=f.shouldUseNativeEvents,ae=fe!==void 0&&fe,ee=f.rtl,be=ee!==void 0&&ee,$=f.distanceCalculationMethod,Z=$===void 0?"corners":$,Qn=f.customDistanceCalculationFunction,Fu=Qn===void 0?void 0:Qn;if(!this.enabled&&(this.domNodeFocusOptions=V,this.enabled=!0,this.nativeMode=G,this.throttleKeypresses=D,this.useGetBoundingClientRect=W,this.shouldFocusDOMNode=se&&!G,this.shouldUseNativeEvents=ae,this.writingDirection=be?Q.default.RTL:Q.default.LTR,this.distanceCalculationMethod=Z,this.customDistanceCalculationFunction=Fu,this.debug=C,!this.nativeMode&&(Number.isInteger(j)&&j>0&&(this.throttle=j),this.bindEventHandlers(),T))){this.visualDebugger=new xe.default(this.writingDirection);var Vn=function(){requestAnimationFrame((function(){c.visualDebugger.clearLayouts(),(0,te.default)(c.focusableComponents,(function(ea,Ru){c.visualDebugger.drawLayout(ea.layout,Ru,ea.parentFocusKey)})),Vn()}))};Vn()}},y.prototype.setThrottle=function(u){var c=u===void 0?{}:u,f=c.throttle,v=f===void 0?0:f,C=c.throttleKeypresses,w=C!==void 0&&C;this.throttleKeypresses=w,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(v)&&(this.throttle=v),this.bindEventHandlers())},y.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=ge,this.unbindEventHandlers())},y.prototype.getEventType=function(u){return(0,A.default)(this.getKeyMap(),(function(c){return c.includes(u)}))},y.getKeyCode=function(u){return u.keyCode||u.code||u.key},y.prototype.bindEventHandlers=function(){var u=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(c){if(u.paused!==!0){u.debug&&(u.logIndex+=1);var f=y.getKeyCode(c),v=u.getEventType(f);if(v){u.pressedKeys[v]=u.pressedKeys[v]?u.pressedKeys[v]+1:1,u.shouldUseNativeEvents||(c.preventDefault(),c.stopPropagation());var C={pressedKeys:u.pressedKeys};if(v===ye&&u.focusKey)u.onEnterPress(C);else{var w=u.onArrowPress(v,C)===!1;if(u.visualDebugger&&u.visualDebugger.clear(),w)u.log("keyDownEventListener","default navigation prevented");else{var T=(0,A.default)(u.getKeyMap(),(function(I){return I.includes(f)}));u.smartNavigate(T,null,{event:c})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,Le.default)(this.keyDownEventListener.bind(this),this.throttle,Oe)),this.keyUpEventListener=function(c){var f=y.getKeyCode(c),v=u.getEventType(f);delete u.pressedKeys[v],u.throttle&&!u.throttleKeypresses&&u.keyDownEventListenerThrottled.cancel(),v===ye&&u.focusKey&&u.onEnterRelease(),!u.focusKey||v!==ue&&v!==oe&&v!==ce&&v!==ne||u.onArrowRelease(v)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},y.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var u=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",u),this.keyDownEventListener=null}},y.prototype.onEnterPress=function(u){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onEnterPress&&c.onEnterPress(u):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},y.prototype.onEnterRelease=function(){var u=this.focusableComponents[this.focusKey];u?u.focusable?u.onEnterRelease&&u.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},y.prototype.onArrowPress=function(u,c){var f=this.focusableComponents[this.focusKey];if(f)return f&&f.onArrowPress&&f.onArrowPress(u,c);this.log("onArrowPress","noComponent")},y.prototype.onArrowRelease=function(u){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onArrowRelease&&c.onArrowRelease(u):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},y.prototype.navigateByDirection=function(u,c){if(this.paused!==!0&&this.enabled&&!this.nativeMode){var f=[ne,ce,ue,oe];f.includes(u)?(this.log("navigateByDirection","direction",u),this.smartNavigate(u,null,c)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(u,"`, but you can use only these: "),f)}},y.prototype.smartNavigate=function(u,c,f){var v=this;if(!this.nativeMode){var C=u===ne||u===ce,w=u===ne||(this.writingDirection===Q.default.LTR?u===oe:u===ue);this.log("smartNavigate","direction",u),this.log("smartNavigate","fromParentFocusKey",c),this.log("smartNavigate","this.focusKey",this.focusKey),c||(0,te.default)(this.focusableComponents,(function(z){z.layoutUpdated=!1}));var T=this.focusableComponents[c||this.focusKey];if(c||T){if(this.log("smartNavigate","currentComponent",T?T.focusKey:void 0,T?T.node:void 0,T),T){this.updateLayout(T.focusKey);var I=T.parentFocusKey,G=T.focusKey,k=T.layout,j=y.getCutoffCoordinate(C,w,!1,k,this.writingDirection),B=(0,H.default)(this.focusableComponents,(function(z){if(z.parentFocusKey===I&&z.focusable){v.updateLayout(z.focusKey);var V=y.getCutoffCoordinate(C,w,!0,z.layout,v.writingDirection);return C||v.writingDirection===Q.default.LTR?w?V>=j:V<=j:w?V<=j:V>=j}return!1}));if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",j),this.log("smartNavigate","siblings","".concat(B.length," elements:"),B.map((function(z){return z.focusKey})).join(", "),B.map((function(z){return z.node})),B.map((function(z){return z})))),this.visualDebugger){var D=y.getRefCorners(u,!1,k);this.visualDebugger.drawPoint(D.a.x,D.a.y),this.visualDebugger.drawPoint(D.b.x,D.b.y)}var Y=this.sortSiblingsByPriority(B,k,u,G),W=(0,U.default)(Y);if(this.log("smartNavigate","nextComponent",W?W.focusKey:void 0,W?W.node:void 0,W),W)this.setFocus(W.focusKey,f);else{var X=this.focusableComponents[I],se=X?.isFocusBoundary?X.focusBoundaryDirections||[u]:[];X&&se.includes(u)||this.smartNavigate(u,I,f)}}}else this.setFocus(this.getForcedFocusKey())}},y.prototype.saveLastFocusedChildKey=function(u,c){u&&(this.log("saveLastFocusedChildKey","".concat(u.focusKey," lastFocusedChildKey set"),c),u.lastFocusedChildKey=c)},y.prototype.log=function(u,c){for(var f=[],v=2;v<arguments.length;v++)f[v-2]=arguments[v];this.debug&&console.log.apply(console,N(["%c".concat(u,"%c").concat(c),"background: ".concat(_e[this.logIndex%_e.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],f,!1))},y.prototype.getCurrentFocusKey=function(){return this.focusKey},y.prototype.getForcedFocusKey=function(){var u,c=(0,H.default)(this.focusableComponents,(function(v){return v.focusable&&v.forceFocus})),f=this.sortSiblingsByPriority(c,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",d.ROOT_FOCUS_KEY);return(u=(0,U.default)(f))===null||u===void 0?void 0:u.focusKey},y.prototype.getNextFocusKey=function(u){var c=this,f=this.focusableComponents[u];if(!f||this.nativeMode)return u;var v=(0,H.default)(this.focusableComponents,(function(I){return I.parentFocusKey===u&&I.focusable}));if(v.length>0){var C=f.lastFocusedChildKey,w=f.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",C),this.log("getNextFocusKey","preferredChildFocusKey is",w),C&&f.saveLastFocusedChild&&this.isParticipatingFocusableComponent(C))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",C),this.getNextFocusKey(C);if(w&&this.isParticipatingFocusableComponent(w))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",w),this.getNextFocusKey(w);v.forEach((function(I){return c.updateLayout(I.focusKey)}));var T=(function(I,G){var k=G===Q.default.LTR?function(B){var D=B.layout;return Math.abs(D.left)+Math.abs(D.top)}:function(B){var D=B.layout;return Math.abs(window.innerWidth-D.right)+Math.abs(D.top)},j=(0,ve.default)(I,k);return(0,U.default)(j)})(v,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",T),this.getNextFocusKey(T)}return this.log("getNextFocusKey","targetFocusKey",u),u},y.prototype.addFocusable=function(u){var c=u.focusKey,f=u.node,v=u.parentFocusKey,C=u.onEnterPress,w=u.onEnterRelease,T=u.onArrowPress,I=u.onArrowRelease,G=u.onFocus,k=u.onBlur,j=u.saveLastFocusedChild,B=u.trackChildren,D=u.onUpdateFocus,Y=u.onUpdateHasFocusedChild,W=u.preferredChildFocusKey,X=u.autoRestoreFocus,se=u.forceFocus,z=u.focusable,V=u.isFocusBoundary,fe=u.focusBoundaryDirections;if(this.focusableComponents[c]={focusKey:c,node:f,parentFocusKey:v,onEnterPress:C,onEnterRelease:w,onArrowPress:T,onArrowRelease:I,onFocus:G,onBlur:k,onUpdateFocus:D,onUpdateHasFocusedChild:Y,saveLastFocusedChild:j,trackChildren:B,preferredChildFocusKey:W,focusable:z,isFocusBoundary:V,focusBoundaryDirections:fe,autoRestoreFocus:X,forceFocus:se,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:f},layoutUpdated:!1},f||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[c]),!this.nativeMode){this.updateLayout(c),this.log("addFocusable","Component added: ",this.focusableComponents[c]),c===this.focusKey&&this.setFocus(W||c);for(var ae=this.focusableComponents[this.focusKey];ae;){if(ae.parentFocusKey===c){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}ae=this.focusableComponents[ae.parentFocusKey]}}},y.prototype.removeFocusable=function(u){var c=u.focusKey,f=this.focusableComponents[c];if(f){var v=f.parentFocusKey;(0,f.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",f),delete this.focusableComponents[c];var C=this.parentsHavingFocusedChild.includes(c);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter((function(I){return I!==c}));var w=this.focusableComponents[v],T=c===this.focusKey;if(w&&w.lastFocusedChildKey===c&&(w.lastFocusedChildKey=null),this.nativeMode)return;(T||C)&&w&&w.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",T?"Leaf component":"Container component","Auto restoring focus to: ",v),this.setFocusDebounced(v))}},y.prototype.getNodeLayoutByFocusKey=function(u){var c=this.focusableComponents[u];return c?(this.updateLayout(c.focusKey),c.layout):null},y.prototype.setCurrentFocusedKey=function(u,c){var f,v,C,w;if(this.isFocusableComponent(this.focusKey)&&u!==this.focusKey){var T=this.focusableComponents[this.focusKey];T.onUpdateFocus(!1),T.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),c),(v=(f=T.node)===null||f===void 0?void 0:f.removeAttribute)===null||v===void 0||v.call(f,"data-focused"),this.log("setCurrentFocusedKey","onBlur",T)}if(this.focusKey=u,this.isFocusableComponent(this.focusKey)){var I=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&I.node&&I.node.focus(this.domNodeFocusOptions),(w=(C=I.node)===null||C===void 0?void 0:C.setAttribute)===null||w===void 0||w.call(C,"data-focused","true"),I.onUpdateFocus(!0),I.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),c),this.log("setCurrentFocusedKey","onFocus",I)}},y.prototype.updateParentsHasFocusedChild=function(u,c){for(var f=this,v=[],C=this.focusableComponents[u];C;){var w=C.parentFocusKey,T=this.focusableComponents[w];if(T){var I=T.focusKey;v.push(I)}C=T}var G=(0,M.default)(this.parentsHavingFocusedChild,v),k=(0,M.default)(v,this.parentsHavingFocusedChild);(0,J.default)(G,(function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!1),f.onIntermediateNodeBecameBlurred(j,c)})),(0,J.default)(k,(function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!0),f.onIntermediateNodeBecameFocused(j,c)})),this.parentsHavingFocusedChild=v},y.prototype.updateParentsLastFocusedChild=function(u){for(var c=this.focusableComponents[u];c;){var f=c.parentFocusKey,v=this.focusableComponents[f];v&&this.saveLastFocusedChildKey(v,c.focusKey),c=v}},y.prototype.getKeyMap=function(){return this.keyMap},y.prototype.setKeyMap=function(u){this.keyMap=g(g({},this.getKeyMap()),(function(c){var f={};return Object.entries(c).forEach((function(v){var C=v[0],w=v[1];f[C]=Array.isArray(w)?w:[w]})),f})(u))},y.prototype.isFocusableComponent=function(u){return!!this.focusableComponents[u]},y.prototype.isParticipatingFocusableComponent=function(u){return this.isFocusableComponent(u)&&this.focusableComponents[u].focusable},y.prototype.onIntermediateNodeBecameFocused=function(u,c){this.isParticipatingFocusableComponent(u)&&this.focusableComponents[u].onFocus(this.getNodeLayoutByFocusKey(u),c)},y.prototype.onIntermediateNodeBecameBlurred=function(u,c){this.isParticipatingFocusableComponent(u)&&this.focusableComponents[u].onBlur(this.getNodeLayoutByFocusKey(u),c)},y.prototype.pause=function(){this.paused=!0},y.prototype.resume=function(){this.paused=!1},y.prototype.setFocus=function(u,c){if(c===void 0&&(c={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",u),u&&u!==d.ROOT_FOCUS_KEY||(u=this.getForcedFocusKey());var f=this.getNextFocusKey(u);this.log("setFocus","newFocusKey",f),this.setCurrentFocusedKey(f,c),this.updateParentsHasFocusedChild(f,c),this.updateParentsLastFocusedChild(f)}},y.prototype.updateAllLayouts=function(){var u=this;this.enabled&&!this.nativeMode&&(0,te.default)(this.focusableComponents,(function(c,f){u.updateLayout(f)}))},y.prototype.updateLayout=function(u){var c=this.focusableComponents[u];if(c&&!this.nativeMode&&!c.layoutUpdated){var f=c.node,v=this.useGetBoundingClientRect?(0,pe.getBoundingClientRect)(f):(0,pe.default)(f);c.layout=g(g({},v),{node:f})}},y.prototype.updateFocusable=function(u,c){var f=c.node,v=c.preferredChildFocusKey,C=c.focusable,w=c.isFocusBoundary,T=c.focusBoundaryDirections,I=c.onEnterPress,G=c.onEnterRelease,k=c.onArrowPress,j=c.onFocus,B=c.onBlur;if(!this.nativeMode){var D=this.focusableComponents[u];D&&(D.preferredChildFocusKey=v,D.focusable=C,D.isFocusBoundary=w,D.focusBoundaryDirections=T,D.onEnterPress=I,D.onEnterRelease=G,D.onArrowPress=k,D.onFocus=j,D.onBlur=B,f&&(D.node=f))}},y.prototype.isNativeMode=function(){return this.nativeMode},y.prototype.doesFocusableExist=function(u){return!!this.focusableComponents[u]},y.prototype.updateRtl=function(u){this.writingDirection=u?Q.default.RTL:Q.default.LTR},y})();d.SpatialNavigation=new Se,d.init=d.SpatialNavigation.init,d.setThrottle=d.SpatialNavigation.setThrottle,d.destroy=d.SpatialNavigation.destroy,d.setKeyMap=d.SpatialNavigation.setKeyMap,d.setFocus=d.SpatialNavigation.setFocus,d.navigateByDirection=d.SpatialNavigation.navigateByDirection,d.pause=d.SpatialNavigation.pause,d.resume=d.SpatialNavigation.resume,d.updateAllLayouts=d.SpatialNavigation.updateAllLayouts,d.getCurrentFocusKey=d.SpatialNavigation.getCurrentFocusKey,d.doesFocusableExist=d.SpatialNavigation.doesFocusableExist,d.updateRtl=d.SpatialNavigation.updateRtl},35:function(b,d,p){var q=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(d,"__esModule",{value:!0});var g=q(p(119)),P=typeof window<"u"&&window.document,x=P?window.innerWidth:0,F=P?window.innerHeight:0,N=(function(){function R(O){P&&(this.debugCtx=R.createCanvas("sn-debug","1010",O),this.layoutsCtx=R.createCanvas("sn-layouts","1000",O),this.writingDirection=O)}return R.createCanvas=function(O,M,H){var A=document.querySelector("#".concat(O))||document.createElement("canvas");A.setAttribute("id",O),A.setAttribute("dir",H===g.default.LTR?"ltr":"rtl");var U=A.getContext("2d");return A.style.zIndex=M,A.style.position="fixed",A.style.top="0",A.style.left="0",document.body.appendChild(A),A.width=x,A.height=F,U},R.prototype.clear=function(){P&&this.debugCtx.clearRect(0,0,x,F)},R.prototype.clearLayouts=function(){P&&this.layoutsCtx.clearRect(0,0,x,F)},R.prototype.drawLayout=function(O,M,H){if(P){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(O.left,O.top,O.width,O.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var A=this.writingDirection===g.default.LTR?"left":"right",U=O[A];this.layoutsCtx.fillText(M,U,O.top+10),this.layoutsCtx.fillText(H,U,O.top+25),this.layoutsCtx.fillText("".concat(A,": ").concat(U),U,O.top+40),this.layoutsCtx.fillText("top: ".concat(O.top),U,O.top+55)}},R.prototype.drawPoint=function(O,M,H,A){H===void 0&&(H="blue"),A===void 0&&(A=10),P&&(this.debugCtx.strokeStyle=H,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(O-A/2,M-A/2,A,A))},R})();d.default=N},119:function(b,d){var p;Object.defineProperty(d,"__esModule",{value:!0}),(function(q){q[q.LTR=0]="LTR",q[q.RTL=1]="RTL"})(p||(p={})),d.default=p},607:function(b,d,p){var q=this&&this.__createBinding||(Object.create?function(P,x,F,N){N===void 0&&(N=F);var R=Object.getOwnPropertyDescriptor(x,F);R&&!("get"in R?!x.__esModule:R.writable||R.configurable)||(R={enumerable:!0,get:function(){return x[F]}}),Object.defineProperty(P,N,R)}:function(P,x,F,N){N===void 0&&(N=F),P[N]=x[F]}),g=this&&this.__exportStar||function(P,x){for(var F in P)F==="default"||Object.prototype.hasOwnProperty.call(x,F)||q(x,P,F)};Object.defineProperty(d,"__esModule",{value:!0}),g(p(79),d),g(p(445),d),g(p(654),d)},964:function(b,d){Object.defineProperty(d,"__esModule",{value:!0}),d.getBoundingClientRect=void 0;var p=function(q){for(var g=q.offsetParent,P=q.offsetHeight,x=q.offsetWidth,F=q.offsetLeft,N=q.offsetTop;g&&g.nodeType===1;)F+=g.offsetLeft-g.scrollLeft,N+=g.offsetTop-g.scrollTop,g=g.offsetParent;return{height:P,left:F,top:N,width:x}};d.default=function(q){var g=q&&q.parentElement;if(q&&g){var P=p(g),x=p(q),F=x.height,N=x.left,R=x.top,O=x.width;return{x:N-P.left,y:R-P.top,width:O,height:F,left:N,top:R,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},d.getBoundingClientRect=function(q){if(q&&q.getBoundingClientRect){var g=q.getBoundingClientRect();return{x:g.x,y:g.y,width:g.width,height:g.height,left:g.left,top:g.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(b,d,p){Object.defineProperty(d,"__esModule",{value:!0}),d.useFocusContext=d.FocusContext=void 0;var q=p(156),g=p(654);d.FocusContext=(0,q.createContext)(g.ROOT_FOCUS_KEY),d.FocusContext.displayName="FocusContext",d.useFocusContext=function(){return(0,q.useContext)(d.FocusContext)}},79:function(b,d,p){var q=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(d,"__esModule",{value:!0}),d.useFocusable=void 0;var g=p(156),P=q(p(604)),x=q(p(461)),F=p(654),N=p(445);d.useFocusable=function(R){var O=R===void 0?{}:R,M=O.focusable,H=M===void 0||M,A=O.saveLastFocusedChild,U=A===void 0||A,J=O.trackChildren,te=J!==void 0&&J,ve=O.autoRestoreFocus,Le=ve===void 0||ve,xe=O.forceFocus,Q=xe!==void 0&&xe,pe=O.isFocusBoundary,ue=pe!==void 0&&pe,oe=O.focusBoundaryDirections,ce=O.focusKey,ne=O.preferredChildFocusKey,ye=O.onEnterPress,ge=ye===void 0?P.default:ye,_e=O.onEnterRelease,Oe=_e===void 0?P.default:_e,Se=O.onArrowPress,y=Se===void 0?function(){return!0}:Se,u=O.onArrowRelease,c=u===void 0?P.default:u,f=O.onFocus,v=f===void 0?P.default:f,C=O.onBlur,w=C===void 0?P.default:C,T=O.extraProps,I=(0,g.useCallback)((function($){ge(T,$)}),[ge,T]),G=(0,g.useCallback)((function(){Oe(T)}),[Oe,T]),k=(0,g.useCallback)((function($,Z){return y($,T,Z)}),[T,y]),j=(0,g.useCallback)((function($){c($,T)}),[c,T]),B=(0,g.useCallback)((function($,Z){v($,T,Z)}),[T,v]),D=(0,g.useCallback)((function($,Z){w($,T,Z)}),[T,w]),Y=(0,g.useRef)(null),W=(0,g.useState)(!1),X=W[0],se=W[1],z=(0,g.useState)(!1),V=z[0],fe=z[1],ae=(0,N.useFocusContext)(),ee=(0,g.useMemo)((function(){return ce||(0,x.default)("sn:focusable-item-")}),[ce]),be=(0,g.useCallback)((function($){$===void 0&&($={}),F.SpatialNavigation.setFocus(ee,$)}),[ee]);return(0,g.useEffect)((function(){var $=Y.current;return F.SpatialNavigation.addFocusable({focusKey:ee,node:$,parentFocusKey:ae,preferredChildFocusKey:ne,onEnterPress:I,onEnterRelease:G,onArrowPress:k,onArrowRelease:j,onFocus:B,onBlur:D,onUpdateFocus:function(Z){return Z===void 0&&(Z=!1),se(Z)},onUpdateHasFocusedChild:function(Z){return Z===void 0&&(Z=!1),fe(Z)},saveLastFocusedChild:U,trackChildren:te,isFocusBoundary:ue,focusBoundaryDirections:oe,autoRestoreFocus:Le,forceFocus:Q,focusable:H}),function(){F.SpatialNavigation.removeFocusable({focusKey:ee})}}),[]),(0,g.useEffect)((function(){var $=Y.current;F.SpatialNavigation.updateFocusable(ee,{node:$,preferredChildFocusKey:ne,focusable:H,isFocusBoundary:ue,focusBoundaryDirections:oe,onEnterPress:I,onEnterRelease:G,onArrowPress:k,onArrowRelease:j,onFocus:B,onBlur:D})}),[ee,ne,H,ue,oe,I,G,k,j,B,D]),{ref:Y,focusSelf:be,focused:X,hasFocusedChild:V,focusKey:ee}}},150:function(b){b.exports=t},117:function(b){b.exports=n},747:function(b){b.exports=a},23:function(b){b.exports=i},842:function(b){b.exports=s},682:function(b){b.exports=o},784:function(b){b.exports=l},604:function(b){b.exports=h},432:function(b){b.exports=m},67:function(b){b.exports=_},461:function(b){b.exports=S},156:function(b){b.exports=E}},K={};return(function b(d){var p=K[d];if(p!==void 0)return p.exports;var q=K[d]={exports:{}};return L[d].call(q.exports,q,q.exports,b),q.exports})(607)})()}))})(Ke)),Ke.exports}var Lc=Dc();exports.commonjsGlobal=me;exports.distExports=Lc;exports.getAugmentedNamespace=Tu;exports.getDefaultExportFromCjs=Au;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const bs=require("react");var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ms(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),t}var Wi={exports:{}},He,An;function de(){if(An)return He;An=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return He=e,He}var Ge,Tn;function Yi(){if(Tn)return Ge;Tn=1;var e=typeof ve=="object"&&ve&&ve.Object===Object&&ve;return Ge=e,Ge}var $e,xn;function ie(){if(xn)return $e;xn=1;var e=Yi(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return $e=t,$e}var ke,On;function Cs(){if(On)return ke;On=1;var e=ie(),r=function(){return e.Date.now()};return ke=r,ke}var Ue,Kn;function Fs(){if(Kn)return Ue;Kn=1;var e=/\s/;function r(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return Ue=r,Ue}var ze,Sn;function qs(){if(Sn)return ze;Sn=1;var e=Fs(),r=/^\s+/;function t(n){return n&&n.slice(0,e(n)+1).replace(r,"")}return ze=t,ze}var We,En;function we(){if(En)return We;En=1;var e=ie(),r=e.Symbol;return We=r,We}var Ye,Pn;function Rs(){if(Pn)return Ye;Pn=1;var e=we(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,a=e?e.toStringTag:void 0;function i(o){var u=t.call(o,a),v=o[a];try{o[a]=void 0;var h=!0}catch{}var m=n.call(o);return h&&(u?o[a]=v:delete o[a]),m}return Ye=i,Ye}var Xe,Mn;function ws(){if(Mn)return Xe;Mn=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return Xe=t,Xe}var Je,In;function Ae(){if(In)return Je;In=1;var e=we(),r=Rs(),t=ws(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?r(u):t(u)}return Je=o,Je}var Ze,Dn;function pe(){if(Dn)return Ze;Dn=1;function e(r){return r!=null&&typeof r=="object"}return Ze=e,Ze}var Qe,Ln;function Te(){if(Ln)return Qe;Ln=1;var e=Ae(),r=pe(),t="[object Symbol]";function n(a){return typeof a=="symbol"||r(a)&&e(a)==t}return Qe=n,Qe}var Ve,Nn;function As(){if(Nn)return Ve;Nn=1;var e=qs(),r=de(),t=Te(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function v(h){if(typeof h=="number")return h;if(t(h))return n;if(r(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=r(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=e(h);var _=i.test(h);return _||o.test(h)?u(h.slice(2),_?2:8):a.test(h)?n:+h}return Ve=v,Ve}var er,Bn;function Xi(){if(Bn)return er;Bn=1;var e=de(),r=Cs(),t=As(),n="Expected a function",a=Math.max,i=Math.min;function o(u,v,h){var m,_,I,P,N,K,b=0,l=!1,g=!1,C=!0;if(typeof u!="function")throw new TypeError(n);v=t(v)||0,e(h)&&(l=!!h.leading,g="maxWait"in h,I=g?a(t(h.maxWait)||0,v):I,C="trailing"in h?!!h.trailing:C);function y(A){var k=m,X=_;return m=_=void 0,b=A,P=u.apply(X,k),P}function S(A){return b=A,N=setTimeout(L,v),l?y(A):P}function x(A){var k=A-K,X=A-b,te=v-k;return g?i(te,I-X):te}function q(A){var k=A-K,X=A-b;return K===void 0||k>=v||k<0||g&&X>=I}function L(){var A=r();if(q(A))return R(A);N=setTimeout(L,x(A))}function R(A){return N=void 0,C&&m?y(A):(m=_=void 0,P)}function O(){N!==void 0&&clearTimeout(N),b=0,m=K=_=N=void 0}function E(){return N===void 0?P:R(r())}function G(){var A=r(),k=q(A);if(m=arguments,_=this,K=A,k){if(N===void 0)return S(K);if(g)return clearTimeout(N),N=setTimeout(L,v),y(K)}return N===void 0&&(N=setTimeout(L,v)),P}return G.cancel=O,G.flush=E,G}return er=o,er}var rr,jn;function Ji(){if(jn)return rr;jn=1;var e=Ae(),r=de(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!r(u))return!1;var v=e(u);return v==n||v==a||v==t||v==i}return rr=o,rr}var Ts=ie(),xs=Ts["__core-js_shared__"],Os=xs,tr=Os,Hn=function(){var e=/[^.]+$/.exec(tr&&tr.keys&&tr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ks(e){return!!Hn&&Hn in e}var Ss=Ks,Es=Function.prototype,Ps=Es.toString;function Ms(e){if(e!=null){try{return Ps.call(e)}catch{}try{return e+""}catch{}}return""}var Zi=Ms,Is=Ji(),Ds=Ss,Ls=de(),Ns=Zi,Bs=/[\\^$.*+?()[\]{}|]/g,js=/^\[object .+?Constructor\]$/,Hs=Function.prototype,Gs=Object.prototype,$s=Hs.toString,ks=Gs.hasOwnProperty,Us=RegExp("^"+$s.call(ks).replace(Bs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zs(e){if(!Ls(e)||Ds(e))return!1;var r=Is(e)?Us:js;return r.test(Ns(e))}var Ws=zs;function Ys(e,r){return e==null?void 0:e[r]}var Xs=Ys,Js=Ws,Zs=Xs;function Qs(e,r){var t=Zs(e,r);return Js(t)?t:void 0}var he=Qs,nr,Gn;function Ie(){if(Gn)return nr;Gn=1;var e=he,r=e(Object,"create");return nr=r,nr}var ar,$n;function Vs(){if($n)return ar;$n=1;var e=Ie();function r(){this.__data__=e?e(null):{},this.size=0}return ar=r,ar}var ir,kn;function eo(){if(kn)return ir;kn=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return ir=e,ir}var sr,Un;function ro(){if(Un)return sr;Un=1;var e=Ie(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(e){var u=o[i];return u===r?void 0:u}return n.call(o,i)?o[i]:void 0}return sr=a,sr}var or,zn;function to(){if(zn)return or;zn=1;var e=Ie(),r=Object.prototype,t=r.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:t.call(i,a)}return or=n,or}var ur,Wn;function no(){if(Wn)return ur;Wn=1;var e=Ie(),r="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?r:a,this}return ur=t,ur}var cr,Yn;function ao(){if(Yn)return cr;Yn=1;var e=Vs(),r=eo(),t=ro(),n=to(),a=no();function i(o){var u=-1,v=o==null?0:o.length;for(this.clear();++u<v;){var h=o[u];this.set(h[0],h[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,cr=i,cr}function io(){this.__data__=[],this.size=0}var so=io,fr,Xn;function un(){if(Xn)return fr;Xn=1;function e(r,t){return r===t||r!==r&&t!==t}return fr=e,fr}var oo=un();function uo(e,r){for(var t=e.length;t--;)if(oo(e[t][0],r))return t;return-1}var De=uo,co=De,fo=Array.prototype,lo=fo.splice;function ho(e){var r=this.__data__,t=co(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():lo.call(r,t,1),--this.size,!0}var vo=ho,po=De;function yo(e){var r=this.__data__,t=po(r,e);return t<0?void 0:r[t][1]}var go=yo,bo=De;function _o(e){return bo(this.__data__,e)>-1}var mo=_o,Co=De;function Fo(e,r){var t=this.__data__,n=Co(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var qo=Fo,Ro=so,wo=vo,Ao=go,To=mo,xo=qo;function ye(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}ye.prototype.clear=Ro;ye.prototype.delete=wo;ye.prototype.get=Ao;ye.prototype.has=To;ye.prototype.set=xo;var Le=ye,Oo=he,Ko=ie(),So=Oo(Ko,"Map"),cn=So,lr,Jn;function Eo(){if(Jn)return lr;Jn=1;var e=ao(),r=Le,t=cn;function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return lr=n,lr}var dr,Zn;function Po(){if(Zn)return dr;Zn=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return dr=e,dr}var hr,Qn;function Ne(){if(Qn)return hr;Qn=1;var e=Po();function r(t,n){var a=t.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return hr=r,hr}var vr,Vn;function Mo(){if(Vn)return vr;Vn=1;var e=Ne();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return vr=r,vr}var pr,ea;function Io(){if(ea)return pr;ea=1;var e=Ne();function r(t){return e(this,t).get(t)}return pr=r,pr}var yr,ra;function Do(){if(ra)return yr;ra=1;var e=Ne();function r(t){return e(this,t).has(t)}return yr=r,yr}var gr,ta;function Lo(){if(ta)return gr;ta=1;var e=Ne();function r(t,n){var a=e(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return gr=r,gr}var br,na;function fn(){if(na)return br;na=1;var e=Eo(),r=Mo(),t=Io(),n=Do(),a=Lo();function i(o){var u=-1,v=o==null?0:o.length;for(this.clear();++u<v;){var h=o[u];this.set(h[0],h[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,br=i,br}var _r,aa;function No(){if(aa)return _r;aa=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return _r=r,_r}var mr,ia;function Bo(){if(ia)return mr;ia=1;function e(r){return this.__data__.has(r)}return mr=e,mr}var Cr,sa;function Qi(){if(sa)return Cr;sa=1;var e=fn(),r=No(),t=Bo();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,Cr=n,Cr}var Fr,oa;function jo(){if(oa)return Fr;oa=1;function e(r,t,n,a){for(var i=r.length,o=n+(a?1:-1);a?o--:++o<i;)if(t(r[o],o,r))return o;return-1}return Fr=e,Fr}var qr,ua;function Ho(){if(ua)return qr;ua=1;function e(r){return r!==r}return qr=e,qr}var Rr,ca;function Go(){if(ca)return Rr;ca=1;function e(r,t,n){for(var a=n-1,i=r.length;++a<i;)if(r[a]===t)return a;return-1}return Rr=e,Rr}var wr,fa;function $o(){if(fa)return wr;fa=1;var e=jo(),r=Ho(),t=Go();function n(a,i,o){return i===i?t(a,i,o):e(a,r,o)}return wr=n,wr}var Ar,la;function ko(){if(la)return Ar;la=1;var e=$o();function r(t,n){var a=t==null?0:t.length;return!!a&&e(t,n,0)>-1}return Ar=r,Ar}var Tr,da;function Uo(){if(da)return Tr;da=1;function e(r,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;)if(n(t,r[a]))return!0;return!1}return Tr=e,Tr}function zo(e,r){for(var t=-1,n=e==null?0:e.length,a=Array(n);++t<n;)a[t]=r(e[t],t,e);return a}var ln=zo,xr,ha;function dn(){if(ha)return xr;ha=1;function e(r){return function(t){return r(t)}}return xr=e,xr}var Or,va;function Vi(){if(va)return Or;va=1;function e(r,t){return r.has(t)}return Or=e,Or}var Kr,pa;function Wo(){if(pa)return Kr;pa=1;var e=Qi(),r=ko(),t=Uo(),n=ln,a=dn(),i=Vi(),o=200;function u(v,h,m,_){var I=-1,P=r,N=!0,K=v.length,b=[],l=h.length;if(!K)return b;m&&(h=n(h,a(m))),_?(P=t,N=!1):h.length>=o&&(P=i,N=!1,h=new e(h));e:for(;++I<K;){var g=v[I],C=m==null?g:m(g);if(g=_||g!==0?g:0,N&&C===C){for(var y=l;y--;)if(h[y]===C)continue e;b.push(g)}else P(h,C,_)||b.push(g)}return b}return Kr=u,Kr}var Sr,ya;function es(){if(ya)return Sr;ya=1;function e(r,t){for(var n=-1,a=t.length,i=r.length;++n<a;)r[i+n]=t[n];return r}return Sr=e,Sr}var Er,ga;function Yo(){if(ga)return Er;ga=1;var e=Ae(),r=pe(),t="[object Arguments]";function n(a){return r(a)&&e(a)==t}return Er=n,Er}var Pr,ba;function hn(){if(ba)return Pr;ba=1;var e=Yo(),r=pe(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(o){return r(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Pr=i,Pr}var Mr,_a;function re(){if(_a)return Mr;_a=1;var e=Array.isArray;return Mr=e,Mr}var Ir,ma;function Xo(){if(ma)return Ir;ma=1;var e=we(),r=hn(),t=re(),n=e?e.isConcatSpreadable:void 0;function a(i){return t(i)||r(i)||!!(n&&i&&i[n])}return Ir=a,Ir}var Dr,Ca;function rs(){if(Ca)return Dr;Ca=1;var e=es(),r=Xo();function t(n,a,i,o,u){var v=-1,h=n.length;for(i||(i=r),u||(u=[]);++v<h;){var m=n[v];a>0&&i(m)?a>1?t(m,a-1,i,o,u):e(u,m):o||(u[u.length]=m)}return u}return Dr=t,Dr}var Lr,Fa;function xe(){if(Fa)return Lr;Fa=1;function e(r){return r}return Lr=e,Lr}var Nr,qa;function Jo(){if(qa)return Nr;qa=1;function e(r,t,n){switch(n.length){case 0:return r.call(t);case 1:return r.call(t,n[0]);case 2:return r.call(t,n[0],n[1]);case 3:return r.call(t,n[0],n[1],n[2])}return r.apply(t,n)}return Nr=e,Nr}var Br,Ra;function Zo(){if(Ra)return Br;Ra=1;var e=Jo(),r=Math.max;function t(n,a,i){return a=r(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,v=r(o.length-a,0),h=Array(v);++u<v;)h[u]=o[a+u];u=-1;for(var m=Array(a+1);++u<a;)m[u]=o[u];return m[a]=i(h),e(n,this,m)}}return Br=t,Br}var jr,wa;function Qo(){if(wa)return jr;wa=1;function e(r){return function(){return r}}return jr=e,jr}var Hr,Aa;function Vo(){if(Aa)return Hr;Aa=1;var e=he,r=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return Hr=r,Hr}var Gr,Ta;function eu(){if(Ta)return Gr;Ta=1;var e=Qo(),r=Vo(),t=xe(),n=r?function(a,i){return r(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:t;return Gr=n,Gr}var $r,xa;function ru(){if(xa)return $r;xa=1;var e=800,r=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),v=r-(u-o);if(o=u,v>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return $r=n,$r}var kr,Oa;function tu(){if(Oa)return kr;Oa=1;var e=eu(),r=ru(),t=r(e);return kr=t,kr}var Ur,Ka;function ts(){if(Ka)return Ur;Ka=1;var e=xe(),r=Zo(),t=tu();function n(a,i){return t(r(a,i,e),a+"")}return Ur=n,Ur}var zr,Sa;function vn(){if(Sa)return zr;Sa=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return zr=r,zr}var Wr,Ea;function Oe(){if(Ea)return Wr;Ea=1;var e=Ji(),r=vn();function t(n){return n!=null&&r(n.length)&&!e(n)}return Wr=t,Wr}var Yr,Pa;function nu(){if(Pa)return Yr;Pa=1;var e=Oe(),r=pe();function t(n){return r(n)&&e(n)}return Yr=t,Yr}var Xr,Ma;function au(){if(Ma)return Xr;Ma=1;var e=Wo(),r=rs(),t=ts(),n=nu(),a=t(function(i,o){return n(i)?e(i,r(o,1,n,!0)):[]});return Xr=a,Xr}var Jr,Ia;function ns(){if(Ia)return Jr;Ia=1;function e(r,t){for(var n=-1,a=r==null?0:r.length,i=0,o=[];++n<a;){var u=r[n];t(u,n,r)&&(o[i++]=u)}return o}return Jr=e,Jr}var Zr,Da;function iu(){if(Da)return Zr;Da=1;function e(r){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),v=u.length;v--;){var h=u[r?v:++i];if(n(o[h],h,o)===!1)break}return t}}return Zr=e,Zr}var Qr,La;function su(){if(La)return Qr;La=1;var e=iu(),r=e();return Qr=r,Qr}var Vr,Na;function ou(){if(Na)return Vr;Na=1;function e(r,t){for(var n=-1,a=Array(r);++n<r;)a[n]=t(n);return a}return Vr=e,Vr}var Pe={exports:{}};function uu(){return!1}var cu=uu;Pe.exports;(function(e,r){var t=ie(),n=cu,a=r&&!r.nodeType&&r,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,u=o?t.Buffer:void 0,v=u?u.isBuffer:void 0,h=v||n;e.exports=h})(Pe,Pe.exports);var as=Pe.exports,et,Ba;function pn(){if(Ba)return et;Ba=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<a}return et=t,et}var rt,ja;function fu(){if(ja)return rt;ja=1;var e=Ae(),r=vn(),t=pe(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",u="[object Error]",v="[object Function]",h="[object Map]",m="[object Number]",_="[object Object]",I="[object RegExp]",P="[object Set]",N="[object String]",K="[object WeakMap]",b="[object ArrayBuffer]",l="[object DataView]",g="[object Float32Array]",C="[object Float64Array]",y="[object Int8Array]",S="[object Int16Array]",x="[object Int32Array]",q="[object Uint8Array]",L="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]",E={};E[g]=E[C]=E[y]=E[S]=E[x]=E[q]=E[L]=E[R]=E[O]=!0,E[n]=E[a]=E[b]=E[i]=E[l]=E[o]=E[u]=E[v]=E[h]=E[m]=E[_]=E[I]=E[P]=E[N]=E[K]=!1;function G(A){return t(A)&&r(A.length)&&!!E[e(A)]}return rt=G,rt}var Me={exports:{}};Me.exports;(function(e,r){var t=Yi(),n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&t.process,u=function(){try{var v=a&&a.require&&a.require("util").types;return v||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(Me,Me.exports);var lu=Me.exports,tt,Ha;function is(){if(Ha)return tt;Ha=1;var e=fu(),r=dn(),t=lu,n=t&&t.isTypedArray,a=n?r(n):e;return tt=a,tt}var nt,Ga;function du(){if(Ga)return nt;Ga=1;var e=ou(),r=hn(),t=re(),n=as,a=pn(),i=is(),o=Object.prototype,u=o.hasOwnProperty;function v(h,m){var _=t(h),I=!_&&r(h),P=!_&&!I&&n(h),N=!_&&!I&&!P&&i(h),K=_||I||P||N,b=K?e(h.length,String):[],l=b.length;for(var g in h)(m||u.call(h,g))&&!(K&&(g=="length"||P&&(g=="offset"||g=="parent")||N&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||a(g,l)))&&b.push(g);return b}return nt=v,nt}var hu=Object.prototype;function vu(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||hu;return e===t}var pu=vu;function yu(e,r){return function(t){return e(r(t))}}var gu=yu,at,$a;function bu(){if($a)return at;$a=1;var e=gu,r=e(Object.keys,Object);return at=r,at}var it,ka;function _u(){if(ka)return it;ka=1;var e=pu,r=bu(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!e(i))return r(i);var o=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&o.push(u);return o}return it=a,it}var st,Ua;function yn(){if(Ua)return st;Ua=1;var e=du(),r=_u(),t=Oe();function n(a){return t(a)?e(a):r(a)}return st=n,st}var ot,za;function gn(){if(za)return ot;za=1;var e=su(),r=yn();function t(n,a){return n&&e(n,a,r)}return ot=t,ot}var ut,Wa;function mu(){if(Wa)return ut;Wa=1;var e=Oe();function r(t,n){return function(a,i){if(a==null)return a;if(!e(a))return t(a,i);for(var o=a.length,u=n?o:-1,v=Object(a);(n?u--:++u<o)&&i(v[u],u,v)!==!1;);return a}}return ut=r,ut}var ct,Ya;function bn(){if(Ya)return ct;Ya=1;var e=gn(),r=mu(),t=r(e);return ct=t,ct}var ft,Xa;function Cu(){if(Xa)return ft;Xa=1;var e=bn();function r(t,n){var a=[];return e(t,function(i,o,u){n(i,o,u)&&a.push(i)}),a}return ft=r,ft}var Fu=Le;function qu(){this.__data__=new Fu,this.size=0}var Ru=qu;function wu(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var Au=wu;function Tu(e){return this.__data__.get(e)}var xu=Tu;function Ou(e){return this.__data__.has(e)}var Ku=Ou,Su=Le,Eu=cn,Pu=fn(),Mu=200;function Iu(e,r){var t=this.__data__;if(t instanceof Su){var n=t.__data__;if(!Eu||n.length<Mu-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Pu(n)}return t.set(e,r),this.size=t.size,this}var Du=Iu,Lu=Le,Nu=Ru,Bu=Au,ju=xu,Hu=Ku,Gu=Du;function ge(e){var r=this.__data__=new Lu(e);this.size=r.size}ge.prototype.clear=Nu;ge.prototype.delete=Bu;ge.prototype.get=ju;ge.prototype.has=Hu;ge.prototype.set=Gu;var ss=ge,lt,Ja;function $u(){if(Ja)return lt;Ja=1;function e(r,t){for(var n=-1,a=r==null?0:r.length;++n<a;)if(t(r[n],n,r))return!0;return!1}return lt=e,lt}var dt,Za;function os(){if(Za)return dt;Za=1;var e=Qi(),r=$u(),t=Vi(),n=1,a=2;function i(o,u,v,h,m,_){var I=v&n,P=o.length,N=u.length;if(P!=N&&!(I&&N>P))return!1;var K=_.get(o),b=_.get(u);if(K&&b)return K==u&&b==o;var l=-1,g=!0,C=v&a?new e:void 0;for(_.set(o,u),_.set(u,o);++l<P;){var y=o[l],S=u[l];if(h)var x=I?h(S,y,l,u,o,_):h(y,S,l,o,u,_);if(x!==void 0){if(x)continue;g=!1;break}if(C){if(!r(u,function(q,L){if(!t(C,L)&&(y===q||m(y,q,v,h,_)))return C.push(L)})){g=!1;break}}else if(!(y===S||m(y,S,v,h,_))){g=!1;break}}return _.delete(o),_.delete(u),g}return dt=i,dt}var ku=ie(),Uu=ku.Uint8Array,zu=Uu,ht,Qa;function Wu(){if(Qa)return ht;Qa=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(a,i){n[++t]=[i,a]}),n}return ht=e,ht}function Yu(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Xu=Yu,vt,Va;function Ju(){if(Va)return vt;Va=1;var e=we(),r=zu,t=un(),n=os(),a=Wu(),i=Xu,o=1,u=2,v="[object Boolean]",h="[object Date]",m="[object Error]",_="[object Map]",I="[object Number]",P="[object RegExp]",N="[object Set]",K="[object String]",b="[object Symbol]",l="[object ArrayBuffer]",g="[object DataView]",C=e?e.prototype:void 0,y=C?C.valueOf:void 0;function S(x,q,L,R,O,E,G){switch(L){case g:if(x.byteLength!=q.byteLength||x.byteOffset!=q.byteOffset)return!1;x=x.buffer,q=q.buffer;case l:return!(x.byteLength!=q.byteLength||!E(new r(x),new r(q)));case v:case h:case I:return t(+x,+q);case m:return x.name==q.name&&x.message==q.message;case P:case K:return x==q+"";case _:var A=a;case N:var k=R&o;if(A||(A=i),x.size!=q.size&&!k)return!1;var X=G.get(x);if(X)return X==q;R|=u,G.set(x,q);var te=n(A(x),A(q),R,O,E,G);return G.delete(x),te;case b:if(y)return y.call(x)==y.call(q)}return!1}return vt=S,vt}var Zu=es(),Qu=re();function Vu(e,r,t){var n=r(e);return Qu(e)?n:Zu(n,t(e))}var ec=Vu;function rc(){return[]}var tc=rc,nc=ns(),ac=tc,ic=Object.prototype,sc=ic.propertyIsEnumerable,ei=Object.getOwnPropertySymbols,oc=ei?function(e){return e==null?[]:(e=Object(e),nc(ei(e),function(r){return sc.call(e,r)}))}:ac,uc=oc,cc=ec,fc=uc,lc=yn();function dc(e){return cc(e,lc,fc)}var hc=dc,pt,ri;function vc(){if(ri)return pt;ri=1;var e=hc,r=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,v,h,m){var _=u&r,I=e(i),P=I.length,N=e(o),K=N.length;if(P!=K&&!_)return!1;for(var b=P;b--;){var l=I[b];if(!(_?l in o:n.call(o,l)))return!1}var g=m.get(i),C=m.get(o);if(g&&C)return g==o&&C==i;var y=!0;m.set(i,o),m.set(o,i);for(var S=_;++b<P;){l=I[b];var x=i[l],q=o[l];if(v)var L=_?v(q,x,l,o,i,m):v(x,q,l,i,o,m);if(!(L===void 0?x===q||h(x,q,u,v,m):L)){y=!1;break}S||(S=l=="constructor")}if(y&&!S){var R=i.constructor,O=o.constructor;R!=O&&"constructor"in i&&"constructor"in o&&!(typeof R=="function"&&R instanceof R&&typeof O=="function"&&O instanceof O)&&(y=!1)}return m.delete(i),m.delete(o),y}return pt=a,pt}var pc=he,yc=ie(),gc=pc(yc,"DataView"),bc=gc,_c=he,mc=ie(),Cc=_c(mc,"Promise"),Fc=Cc,qc=he,Rc=ie(),wc=qc(Rc,"Set"),Ac=wc,Tc=he,xc=ie(),Oc=Tc(xc,"WeakMap"),Kc=Oc,tn=bc,nn=cn,an=Fc,sn=Ac,on=Kc,us=Ae(),be=Zi,ti="[object Map]",Sc="[object Object]",ni="[object Promise]",ai="[object Set]",ii="[object WeakMap]",si="[object DataView]",Ec=be(tn),Pc=be(nn),Mc=be(an),Ic=be(sn),Dc=be(on),le=us;(tn&&le(new tn(new ArrayBuffer(1)))!=si||nn&&le(new nn)!=ti||an&&le(an.resolve())!=ni||sn&&le(new sn)!=ai||on&&le(new on)!=ii)&&(le=function(e){var r=us(e),t=r==Sc?e.constructor:void 0,n=t?be(t):"";if(n)switch(n){case Ec:return si;case Pc:return ti;case Mc:return ni;case Ic:return ai;case Dc:return ii}return r});var Lc=le,yt,oi;function Nc(){if(oi)return yt;oi=1;var e=ss,r=os(),t=Ju(),n=vc(),a=Lc,i=re(),o=as,u=is(),v=1,h="[object Arguments]",m="[object Array]",_="[object Object]",I=Object.prototype,P=I.hasOwnProperty;function N(K,b,l,g,C,y){var S=i(K),x=i(b),q=S?m:a(K),L=x?m:a(b);q=q==h?_:q,L=L==h?_:L;var R=q==_,O=L==_,E=q==L;if(E&&o(K)){if(!o(b))return!1;S=!0,R=!1}if(E&&!R)return y||(y=new e),S||u(K)?r(K,b,l,g,C,y):t(K,b,q,l,g,C,y);if(!(l&v)){var G=R&&P.call(K,"__wrapped__"),A=O&&P.call(b,"__wrapped__");if(G||A){var k=G?K.value():K,X=A?b.value():b;return y||(y=new e),C(k,X,l,g,y)}}return E?(y||(y=new e),n(K,b,l,g,C,y)):!1}return yt=N,yt}var gt,ui;function cs(){if(ui)return gt;ui=1;var e=Nc(),r=pe();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!r(n)&&!r(a)?n!==n&&a!==a:e(n,a,i,o,t,u)}return gt=t,gt}var bt,ci;function Bc(){if(ci)return bt;ci=1;var e=ss,r=cs(),t=1,n=2;function a(i,o,u,v){var h=u.length,m=h,_=!v;if(i==null)return!m;for(i=Object(i);h--;){var I=u[h];if(_&&I[2]?I[1]!==i[I[0]]:!(I[0]in i))return!1}for(;++h<m;){I=u[h];var P=I[0],N=i[P],K=I[1];if(_&&I[2]){if(N===void 0&&!(P in i))return!1}else{var b=new e;if(v)var l=v(N,K,P,i,o,b);if(!(l===void 0?r(K,N,t|n,v,b):l))return!1}}return!0}return bt=a,bt}var _t,fi;function fs(){if(fi)return _t;fi=1;var e=de();function r(t){return t===t&&!e(t)}return _t=r,_t}var mt,li;function jc(){if(li)return mt;li=1;var e=fs(),r=yn();function t(n){for(var a=r(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,e(u)]}return a}return mt=t,mt}var Ct,di;function ls(){if(di)return Ct;di=1;function e(r,t){return function(n){return n==null?!1:n[r]===t&&(t!==void 0||r in Object(n))}}return Ct=e,Ct}var Ft,hi;function Hc(){if(hi)return Ft;hi=1;var e=Bc(),r=jc(),t=ls();function n(a){var i=r(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return Ft=n,Ft}var qt,vi;function _n(){if(vi)return qt;vi=1;var e=re(),r=Te(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||r(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return qt=a,qt}var ds=fn(),Gc="Expected a function";function mn(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Gc);var t=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=t.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return t.cache=i.set(a,o)||i,o};return t.cache=new(mn.Cache||ds),t}mn.Cache=ds;var $c=mn,kc=$c,Uc=500;function zc(e){var r=kc(e,function(n){return t.size===Uc&&t.clear(),n}),t=r.cache;return r}var Wc=zc,Yc=Wc,Xc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jc=/\\(\\)?/g,Zc=Yc(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Xc,function(t,n,a,i){r.push(a?i.replace(Jc,"$1"):n||t)}),r}),Qc=Zc,Rt,pi;function Vc(){if(pi)return Rt;pi=1;var e=we(),r=ln,t=re(),n=Te(),a=1/0,i=e?e.prototype:void 0,o=i?i.toString:void 0;function u(v){if(typeof v=="string")return v;if(t(v))return r(v,u)+"";if(n(v))return o?o.call(v):"";var h=v+"";return h=="0"&&1/v==-a?"-0":h}return Rt=u,Rt}var wt,yi;function hs(){if(yi)return wt;yi=1;var e=Vc();function r(t){return t==null?"":e(t)}return wt=r,wt}var ef=re(),rf=_n(),tf=Qc,nf=hs();function af(e,r){return ef(e)?e:rf(e,r)?[e]:tf(nf(e))}var vs=af,At,gi;function Be(){if(gi)return At;gi=1;var e=Te(),r=1/0;function t(n){if(typeof n=="string"||e(n))return n;var a=n+"";return a=="0"&&1/n==-r?"-0":a}return At=t,At}var Tt,bi;function Cn(){if(bi)return Tt;bi=1;var e=vs,r=Be();function t(n,a){a=e(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[r(a[i++])];return i&&i==o?n:void 0}return Tt=t,Tt}var xt,_i;function sf(){if(_i)return xt;_i=1;var e=Cn();function r(t,n,a){var i=t==null?void 0:e(t,n);return i===void 0?a:i}return xt=r,xt}var Ot,mi;function of(){if(mi)return Ot;mi=1;function e(r,t){return r!=null&&t in Object(r)}return Ot=e,Ot}var Kt,Ci;function uf(){if(Ci)return Kt;Ci=1;var e=vs,r=hn(),t=re(),n=pn(),a=vn(),i=Be();function o(u,v,h){v=e(v,u);for(var m=-1,_=v.length,I=!1;++m<_;){var P=i(v[m]);if(!(I=u!=null&&h(u,P)))break;u=u[P]}return I||++m!=_?I:(_=u==null?0:u.length,!!_&&a(_)&&n(P,_)&&(t(u)||r(u)))}return Kt=o,Kt}var St,Fi;function cf(){if(Fi)return St;Fi=1;var e=of(),r=uf();function t(n,a){return n!=null&&r(n,a,e)}return St=t,St}var Et,qi;function ff(){if(qi)return Et;qi=1;var e=cs(),r=sf(),t=cf(),n=_n(),a=fs(),i=ls(),o=Be(),u=1,v=2;function h(m,_){return n(m)&&a(_)?i(o(m),_):function(I){var P=r(I,m);return P===void 0&&P===_?t(I,m):e(_,P,u|v)}}return Et=h,Et}var Pt,Ri;function lf(){if(Ri)return Pt;Ri=1;function e(r){return function(t){return t==null?void 0:t[r]}}return Pt=e,Pt}var Mt,wi;function df(){if(wi)return Mt;wi=1;var e=Cn();function r(t){return function(n){return e(n,t)}}return Mt=r,Mt}var It,Ai;function hf(){if(Ai)return It;Ai=1;var e=lf(),r=df(),t=_n(),n=Be();function a(i){return t(i)?e(n(i)):r(i)}return It=a,It}var Dt,Ti;function Fn(){if(Ti)return Dt;Ti=1;var e=Hc(),r=ff(),t=xe(),n=re(),a=hf();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?r(o[0],o[1]):e(o):a(o)}return Dt=i,Dt}var Lt,xi;function vf(){if(xi)return Lt;xi=1;var e=ns(),r=Cu(),t=Fn(),n=re();function a(i,o){var u=n(i)?e:r;return u(i,t(o,3))}return Lt=a,Lt}var Nt,Oi;function pf(){if(Oi)return Nt;Oi=1;function e(r,t,n){var a;return n(r,function(i,o,u){if(t(i,o,u))return a=o,!1}),a}return Nt=e,Nt}var Bt,Ki;function yf(){if(Ki)return Bt;Ki=1;var e=pf(),r=gn(),t=Fn();function n(a,i){return e(a,t(i,3),r)}return Bt=n,Bt}var jt,Si;function gf(){if(Si)return jt;Si=1;function e(r){return r&&r.length?r[0]:void 0}return jt=e,jt}var Ht,Ei;function bf(){return Ei||(Ei=1,Ht=gf()),Ht}var Gt,Pi;function _f(){if(Pi)return Gt;Pi=1;function e(r,t){for(var n=-1,a=r==null?0:r.length;++n<a&&t(r[n],n,r)!==!1;);return r}return Gt=e,Gt}var $t,Mi;function ps(){if(Mi)return $t;Mi=1;var e=xe();function r(t){return typeof t=="function"?t:e}return $t=r,$t}var kt,Ii;function mf(){if(Ii)return kt;Ii=1;var e=_f(),r=bn(),t=ps(),n=re();function a(i,o){var u=n(i)?e:r;return u(i,t(o))}return kt=a,kt}var Ut,Di;function Cf(){if(Di)return Ut;Di=1;var e=gn(),r=ps();function t(n,a){return n&&e(n,r(a))}return Ut=t,Ut}var zt,Li;function Ff(){if(Li)return zt;Li=1;function e(){}return zt=e,zt}var Wt,Ni;function qf(){if(Ni)return Wt;Ni=1;var e=bn(),r=Oe();function t(n,a){var i=-1,o=r(n)?Array(n.length):[];return e(n,function(u,v,h){o[++i]=a(u,v,h)}),o}return Wt=t,Wt}var Yt,Bi;function Rf(){if(Bi)return Yt;Bi=1;function e(r,t){var n=r.length;for(r.sort(t);n--;)r[n]=r[n].value;return r}return Yt=e,Yt}var Xt,ji;function wf(){if(ji)return Xt;ji=1;var e=Te();function r(t,n){if(t!==n){var a=t!==void 0,i=t===null,o=t===t,u=e(t),v=n!==void 0,h=n===null,m=n===n,_=e(n);if(!h&&!_&&!u&&t>n||u&&v&&m&&!h&&!_||i&&v&&m||!a&&m||!o)return 1;if(!i&&!u&&!_&&t<n||_&&a&&o&&!i&&!u||h&&a&&o||!v&&o||!m)return-1}return 0}return Xt=r,Xt}var Jt,Hi;function Af(){if(Hi)return Jt;Hi=1;var e=wf();function r(t,n,a){for(var i=-1,o=t.criteria,u=n.criteria,v=o.length,h=a.length;++i<v;){var m=e(o[i],u[i]);if(m){if(i>=h)return m;var _=a[i];return m*(_=="desc"?-1:1)}}return t.index-n.index}return Jt=r,Jt}var Zt,Gi;function Tf(){if(Gi)return Zt;Gi=1;var e=ln,r=Cn(),t=Fn(),n=qf(),a=Rf(),i=dn(),o=Af(),u=xe(),v=re();function h(m,_,I){_.length?_=e(_,function(K){return v(K)?function(b){return r(b,K.length===1?K[0]:K)}:K}):_=[u];var P=-1;_=e(_,i(t));var N=n(m,function(K,b,l){var g=e(_,function(C){return C(K)});return{criteria:g,index:++P,value:K}});return a(N,function(K,b){return o(K,b,I)})}return Zt=h,Zt}var Qt,$i;function xf(){if($i)return Qt;$i=1;var e=un(),r=Oe(),t=pn(),n=de();function a(i,o,u){if(!n(u))return!1;var v=typeof o;return(v=="number"?r(u)&&t(o,u.length):v=="string"&&o in u)?e(u[o],i):!1}return Qt=a,Qt}var Vt,ki;function Of(){if(ki)return Vt;ki=1;var e=rs(),r=Tf(),t=ts(),n=xf(),a=t(function(i,o){if(i==null)return[];var u=o.length;return u>1&&n(i,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),r(i,e(o,1),[])});return Vt=a,Vt}var en,Ui;function Kf(){if(Ui)return en;Ui=1;var e=Xi(),r=de(),t="Expected a function";function n(a,i,o){var u=!0,v=!0;if(typeof a!="function")throw new TypeError(t);return r(o)&&(u="leading"in o?!!o.leading:u,v="trailing"in o?!!o.trailing:v),e(a,i,{leading:u,maxWait:i,trailing:v})}return en=n,en}var rn,zi;function Sf(){if(zi)return rn;zi=1;var e=hs(),r=0;function t(n){var a=++r;return e(n)+a}return rn=t,rn}(function(e,r){(function(t,n){e.exports=n(Xi(),au(),vf(),yf(),bf(),mf(),Cf(),Ff(),Of(),Kf(),Sf(),bs)})(ve,function(t,n,a,i,o,u,v,h,m,_,I,P){return function(){var N={654:function(b,l,g){var C,y=this&&this.__assign||function(){return y=Object.assign||function(p){for(var s,c=1,f=arguments.length;c<f;c++)for(var d in s=arguments[c])Object.prototype.hasOwnProperty.call(s,d)&&(p[d]=s[d]);return p},y.apply(this,arguments)},S=this&&this.__createBinding||(Object.create?function(p,s,c,f){f===void 0&&(f=c);var d=Object.getOwnPropertyDescriptor(s,c);d&&!("get"in d?!s.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(p,f,d)}:function(p,s,c,f){f===void 0&&(f=c),p[f]=s[c]}),x=this&&this.__setModuleDefault||(Object.create?function(p,s){Object.defineProperty(p,"default",{enumerable:!0,value:s})}:function(p,s){p.default=s}),q=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var s={};if(p!=null)for(var c in p)c!=="default"&&Object.prototype.hasOwnProperty.call(p,c)&&S(s,p,c);return x(s,p),s},L=this&&this.__spreadArray||function(p,s,c){if(c||arguments.length===2)for(var f,d=0,F=s.length;d<F;d++)!f&&d in s||(f||(f=Array.prototype.slice.call(s,0,d)),f[d]=s[d]);return p.concat(f||Array.prototype.slice.call(s))},R=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(l,"__esModule",{value:!0}),l.updateRtl=l.doesFocusableExist=l.getCurrentFocusKey=l.updateAllLayouts=l.resume=l.pause=l.navigateByDirection=l.setFocus=l.setKeyMap=l.destroy=l.setThrottle=l.init=l.SpatialNavigation=l.ROOT_FOCUS_KEY=void 0;var O=R(g(150)),E=R(g(117)),G=R(g(747)),A=R(g(23)),k=R(g(842)),X=R(g(682)),te=R(g(784)),_e=R(g(432)),je=R(g(67)),Ke=R(g(35)),Q=R(g(119)),me=q(g(964)),oe="left",ue="right",ce="up",ne="down",Ce="enter",Fe=((C={}).left=[37,"ArrowLeft"],C.up=[38,"ArrowUp"],C.right=[39,"ArrowRight"],C.down=[40,"ArrowDown"],C.enter=[13,"Enter"],C);l.ROOT_FOCUS_KEY="SN:ROOT";var qe=["#0FF","#FF0","#F0F"],Se={leading:!0,trailing:!1},Ee=function(){function p(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=Q.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=Fe,this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,O.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return p.getCutoffCoordinate=function(s,c,f,d,F){var w=s?d.top:F===Q.default.LTR?d.left:d.right,T=s?d.bottom:F===Q.default.LTR?d.right:d.left;return c?f?w:T:f?T:w},p.getRefCorners=function(s,c,f){var d={a:{x:0,y:0},b:{x:0,y:0}};switch(s){case ce:var F=c?f.bottom:f.top;d.a={x:f.left,y:F},d.b={x:f.right,y:F};break;case ne:F=c?f.top:f.bottom,d.a={x:f.left,y:F},d.b={x:f.right,y:F};break;case oe:var w=c?f.right:f.left;d.a={x:w,y:f.top},d.b={x:w,y:f.bottom};break;case ue:w=c?f.left:f.right,d.a={x:w,y:f.top},d.b={x:w,y:f.bottom}}return d},p.isAdjacentSlice=function(s,c,f){var d=s.a,F=s.b,w=c.a,T=c.b,M=f?"x":"y",$=d[M],H=F[M],j=w[M],B=T[M],D=.2*(H-$);return Math.max(0,Math.min(H,B)-Math.max($,j))>=D},p.getPrimaryAxisDistance=function(s,c,f){var d=s.a,F=c.a,w=f?"y":"x";return Math.abs(F[w]-d[w])},p.getSecondaryAxisDistance=function(s,c,f,d,F){if(F)return F(s,c,f,d);var w=s.a,T=s.b,M=c.a,$=c.b,H=f?"x":"y",j=w[H],B=T[H],D=M[H],Y=$[H];if(d==="center"){var z=(j+B)/2,J=(D+Y)/2;return Math.abs(z-J)}if(d==="edges"){var se=Math.min(j,B),U=Math.min(D,Y),V=Math.max(j,B),fe=Math.max(D,Y),ae=Math.abs(se-U),ee=Math.abs(V-fe);return Math.min(ae,ee)}var Re=[Math.abs(D-j),Math.abs(D-B),Math.abs(Y-j),Math.abs(Y-B)];return Math.min.apply(Math,Re)},p.prototype.sortSiblingsByPriority=function(s,c,f,d){var F=this,w=f===ne||f===ce,T=p.getRefCorners(f,!1,c);return(0,_e.default)(s,function(M){var $=p.getRefCorners(f,!0,M.layout),H=p.isAdjacentSlice(T,$,w),j=H?p.getPrimaryAxisDistance:p.getSecondaryAxisDistance,B=H?p.getSecondaryAxisDistance:p.getPrimaryAxisDistance,D=j(T,$,w,F.distanceCalculationMethod,F.customDistanceCalculationFunction),Y=B(T,$,w,F.distanceCalculationMethod,F.customDistanceCalculationFunction),z=5*D+Y,J=(z+1)/(H?5:1);return F.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(M.focusKey," relative to ").concat(d," is"),D,Y,z),F.log("smartNavigate","priority for ".concat(M.focusKey," relative to ").concat(d," is"),J),F.visualDebugger&&(F.visualDebugger.drawPoint($.a.x,$.a.y,"yellow",6),F.visualDebugger.drawPoint($.b.x,$.b.y,"yellow",6)),J})},p.prototype.init=function(s){var c=this,f=s===void 0?{}:s,d=f.debug,F=d!==void 0&&d,w=f.visualDebug,T=w!==void 0&&w,M=f.nativeMode,$=M!==void 0&&M,H=f.throttle,j=H===void 0?0:H,B=f.throttleKeypresses,D=B!==void 0&&B,Y=f.useGetBoundingClientRect,z=Y!==void 0&&Y,J=f.shouldFocusDOMNode,se=J!==void 0&&J,U=f.domNodeFocusOptions,V=U===void 0?{}:U,fe=f.shouldUseNativeEvents,ae=fe!==void 0&&fe,ee=f.rtl,Re=ee!==void 0&&ee,W=f.distanceCalculationMethod,Z=W===void 0?"corners":W,qn=f.customDistanceCalculationFunction,ys=qn===void 0?void 0:qn;if(!this.enabled&&(this.domNodeFocusOptions=V,this.enabled=!0,this.nativeMode=$,this.throttleKeypresses=D,this.useGetBoundingClientRect=z,this.shouldFocusDOMNode=se&&!$,this.shouldUseNativeEvents=ae,this.writingDirection=Re?Q.default.RTL:Q.default.LTR,this.distanceCalculationMethod=Z,this.customDistanceCalculationFunction=ys,this.debug=F,!this.nativeMode&&(Number.isInteger(j)&&j>0&&(this.throttle=j),this.bindEventHandlers(),T))){this.visualDebugger=new Ke.default(this.writingDirection);var Rn=function(){requestAnimationFrame(function(){c.visualDebugger.clearLayouts(),(0,te.default)(c.focusableComponents,function(wn,gs){c.visualDebugger.drawLayout(wn.layout,gs,wn.parentFocusKey)}),Rn()})};Rn()}},p.prototype.setThrottle=function(s){var c=s===void 0?{}:s,f=c.throttle,d=f===void 0?0:f,F=c.throttleKeypresses,w=F!==void 0&&F;this.throttleKeypresses=w,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(d)&&(this.throttle=d),this.bindEventHandlers())},p.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=Fe,this.unbindEventHandlers())},p.prototype.getEventType=function(s){return(0,A.default)(this.getKeyMap(),function(c){return c.includes(s)})},p.getKeyCode=function(s){return s.keyCode||s.code||s.key},p.prototype.bindEventHandlers=function(){var s=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(c){if(s.paused!==!0){s.debug&&(s.logIndex+=1);var f=p.getKeyCode(c),d=s.getEventType(f);if(d){s.pressedKeys[d]=s.pressedKeys[d]?s.pressedKeys[d]+1:1,s.shouldUseNativeEvents||(c.preventDefault(),c.stopPropagation());var F={pressedKeys:s.pressedKeys};if(d===Ce&&s.focusKey)s.onEnterPress(F);else{var w=s.onArrowPress(d,F)===!1;if(s.visualDebugger&&s.visualDebugger.clear(),w)s.log("keyDownEventListener","default navigation prevented");else{var T=(0,A.default)(s.getKeyMap(),function(M){return M.includes(f)});s.smartNavigate(T,null,{event:c})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,je.default)(this.keyDownEventListener.bind(this),this.throttle,Se)),this.keyUpEventListener=function(c){var f=p.getKeyCode(c),d=s.getEventType(f);delete s.pressedKeys[d],s.throttle&&!s.throttleKeypresses&&s.keyDownEventListenerThrottled.cancel(),d===Ce&&s.focusKey&&s.onEnterRelease(),!s.focusKey||d!==oe&&d!==ue&&d!==ce&&d!==ne||s.onArrowRelease(d)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},p.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var s=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",s),this.keyDownEventListener=null}},p.prototype.onEnterPress=function(s){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onEnterPress&&c.onEnterPress(s):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},p.prototype.onEnterRelease=function(){var s=this.focusableComponents[this.focusKey];s?s.focusable?s.onEnterRelease&&s.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},p.prototype.onArrowPress=function(s,c){var f=this.focusableComponents[this.focusKey];if(f)return f&&f.onArrowPress&&f.onArrowPress(s,c);this.log("onArrowPress","noComponent")},p.prototype.onArrowRelease=function(s){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onArrowRelease&&c.onArrowRelease(s):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},p.prototype.navigateByDirection=function(s,c){if(this.paused!==!0&&this.enabled&&!this.nativeMode){var f=[ne,ce,oe,ue];f.includes(s)?(this.log("navigateByDirection","direction",s),this.smartNavigate(s,null,c)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(s,"`, but you can use only these: "),f)}},p.prototype.smartNavigate=function(s,c,f){var d=this;if(!this.nativeMode){var F=s===ne||s===ce,w=s===ne||(this.writingDirection===Q.default.LTR?s===ue:s===oe);this.log("smartNavigate","direction",s),this.log("smartNavigate","fromParentFocusKey",c),this.log("smartNavigate","this.focusKey",this.focusKey),c||(0,te.default)(this.focusableComponents,function(U){U.layoutUpdated=!1});var T=this.focusableComponents[c||this.focusKey];if(c||T){if(this.log("smartNavigate","currentComponent",T?T.focusKey:void 0,T?T.node:void 0,T),T){this.updateLayout(T.focusKey);var M=T.parentFocusKey,$=T.focusKey,H=T.layout,j=p.getCutoffCoordinate(F,w,!1,H,this.writingDirection),B=(0,G.default)(this.focusableComponents,function(U){if(U.parentFocusKey===M&&U.focusable){d.updateLayout(U.focusKey);var V=p.getCutoffCoordinate(F,w,!0,U.layout,d.writingDirection);return F||d.writingDirection===Q.default.LTR?w?V>=j:V<=j:w?V<=j:V>=j}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",j),this.log("smartNavigate","siblings","".concat(B.length," elements:"),B.map(function(U){return U.focusKey}).join(", "),B.map(function(U){return U.node}),B.map(function(U){return U}))),this.visualDebugger){var D=p.getRefCorners(s,!1,H);this.visualDebugger.drawPoint(D.a.x,D.a.y),this.visualDebugger.drawPoint(D.b.x,D.b.y)}var Y=this.sortSiblingsByPriority(B,H,s,$),z=(0,k.default)(Y);if(this.log("smartNavigate","nextComponent",z?z.focusKey:void 0,z?z.node:void 0,z),z)this.setFocus(z.focusKey,f);else{var J=this.focusableComponents[M],se=J!=null&&J.isFocusBoundary?J.focusBoundaryDirections||[s]:[];J&&se.includes(s)||this.smartNavigate(s,M,f)}}}else this.setFocus(this.getForcedFocusKey())}},p.prototype.saveLastFocusedChildKey=function(s,c){s&&(this.log("saveLastFocusedChildKey","".concat(s.focusKey," lastFocusedChildKey set"),c),s.lastFocusedChildKey=c)},p.prototype.log=function(s,c){for(var f=[],d=2;d<arguments.length;d++)f[d-2]=arguments[d];this.debug&&console.log.apply(console,L(["%c".concat(s,"%c").concat(c),"background: ".concat(qe[this.logIndex%qe.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],f,!1))},p.prototype.getCurrentFocusKey=function(){return this.focusKey},p.prototype.getForcedFocusKey=function(){var s,c=(0,G.default)(this.focusableComponents,function(d){return d.focusable&&d.forceFocus}),f=this.sortSiblingsByPriority(c,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",l.ROOT_FOCUS_KEY);return(s=(0,k.default)(f))===null||s===void 0?void 0:s.focusKey},p.prototype.getNextFocusKey=function(s){var c=this,f=this.focusableComponents[s];if(!f||this.nativeMode)return s;var d=(0,G.default)(this.focusableComponents,function(M){return M.parentFocusKey===s&&M.focusable});if(d.length>0){var F=f.lastFocusedChildKey,w=f.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",F),this.log("getNextFocusKey","preferredChildFocusKey is",w),F&&f.saveLastFocusedChild&&this.isParticipatingFocusableComponent(F))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",F),this.getNextFocusKey(F);if(w&&this.isParticipatingFocusableComponent(w))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",w),this.getNextFocusKey(w);d.forEach(function(M){return c.updateLayout(M.focusKey)});var T=function(M,$){var H=$===Q.default.LTR?function(B){var D=B.layout;return Math.abs(D.left)+Math.abs(D.top)}:function(B){var D=B.layout;return Math.abs(window.innerWidth-D.right)+Math.abs(D.top)},j=(0,_e.default)(M,H);return(0,k.default)(j)}(d,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",T),this.getNextFocusKey(T)}return this.log("getNextFocusKey","targetFocusKey",s),s},p.prototype.addFocusable=function(s){var c=s.focusKey,f=s.node,d=s.parentFocusKey,F=s.onEnterPress,w=s.onEnterRelease,T=s.onArrowPress,M=s.onArrowRelease,$=s.onFocus,H=s.onBlur,j=s.saveLastFocusedChild,B=s.trackChildren,D=s.onUpdateFocus,Y=s.onUpdateHasFocusedChild,z=s.preferredChildFocusKey,J=s.autoRestoreFocus,se=s.forceFocus,U=s.focusable,V=s.isFocusBoundary,fe=s.focusBoundaryDirections;if(this.focusableComponents[c]={focusKey:c,node:f,parentFocusKey:d,onEnterPress:F,onEnterRelease:w,onArrowPress:T,onArrowRelease:M,onFocus:$,onBlur:H,onUpdateFocus:D,onUpdateHasFocusedChild:Y,saveLastFocusedChild:j,trackChildren:B,preferredChildFocusKey:z,focusable:U,isFocusBoundary:V,focusBoundaryDirections:fe,autoRestoreFocus:J,forceFocus:se,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:f},layoutUpdated:!1},f||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[c]),!this.nativeMode){this.updateLayout(c),this.log("addFocusable","Component added: ",this.focusableComponents[c]),c===this.focusKey&&this.setFocus(z||c);for(var ae=this.focusableComponents[this.focusKey];ae;){if(ae.parentFocusKey===c){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}ae=this.focusableComponents[ae.parentFocusKey]}}},p.prototype.removeFocusable=function(s){var c=s.focusKey,f=this.focusableComponents[c];if(f){var d=f.parentFocusKey;(0,f.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",f),delete this.focusableComponents[c];var F=this.parentsHavingFocusedChild.includes(c);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(M){return M!==c});var w=this.focusableComponents[d],T=c===this.focusKey;if(w&&w.lastFocusedChildKey===c&&(w.lastFocusedChildKey=null),this.nativeMode)return;(T||F)&&w&&w.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",T?"Leaf component":"Container component","Auto restoring focus to: ",d),this.setFocusDebounced(d))}},p.prototype.getNodeLayoutByFocusKey=function(s){var c=this.focusableComponents[s];return c?(this.updateLayout(c.focusKey),c.layout):null},p.prototype.setCurrentFocusedKey=function(s,c){var f,d,F,w;if(this.isFocusableComponent(this.focusKey)&&s!==this.focusKey){var T=this.focusableComponents[this.focusKey];T.onUpdateFocus(!1),T.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),c),(d=(f=T.node)===null||f===void 0?void 0:f.removeAttribute)===null||d===void 0||d.call(f,"data-focused"),this.log("setCurrentFocusedKey","onBlur",T)}if(this.focusKey=s,this.isFocusableComponent(this.focusKey)){var M=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&M.node&&M.node.focus(this.domNodeFocusOptions),(w=(F=M.node)===null||F===void 0?void 0:F.setAttribute)===null||w===void 0||w.call(F,"data-focused","true"),M.onUpdateFocus(!0),M.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),c),this.log("setCurrentFocusedKey","onFocus",M)}},p.prototype.updateParentsHasFocusedChild=function(s,c){for(var f=this,d=[],F=this.focusableComponents[s];F;){var w=F.parentFocusKey,T=this.focusableComponents[w];if(T){var M=T.focusKey;d.push(M)}F=T}var $=(0,E.default)(this.parentsHavingFocusedChild,d),H=(0,E.default)(d,this.parentsHavingFocusedChild);(0,X.default)($,function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!1),f.onIntermediateNodeBecameBlurred(j,c)}),(0,X.default)(H,function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!0),f.onIntermediateNodeBecameFocused(j,c)}),this.parentsHavingFocusedChild=d},p.prototype.updateParentsLastFocusedChild=function(s){for(var c=this.focusableComponents[s];c;){var f=c.parentFocusKey,d=this.focusableComponents[f];d&&this.saveLastFocusedChildKey(d,c.focusKey),c=d}},p.prototype.getKeyMap=function(){return this.keyMap},p.prototype.setKeyMap=function(s){this.keyMap=y(y({},this.getKeyMap()),function(c){var f={};return Object.entries(c).forEach(function(d){var F=d[0],w=d[1];f[F]=Array.isArray(w)?w:[w]}),f}(s))},p.prototype.isFocusableComponent=function(s){return!!this.focusableComponents[s]},p.prototype.isParticipatingFocusableComponent=function(s){return this.isFocusableComponent(s)&&this.focusableComponents[s].focusable},p.prototype.onIntermediateNodeBecameFocused=function(s,c){this.isParticipatingFocusableComponent(s)&&this.focusableComponents[s].onFocus(this.getNodeLayoutByFocusKey(s),c)},p.prototype.onIntermediateNodeBecameBlurred=function(s,c){this.isParticipatingFocusableComponent(s)&&this.focusableComponents[s].onBlur(this.getNodeLayoutByFocusKey(s),c)},p.prototype.pause=function(){this.paused=!0},p.prototype.resume=function(){this.paused=!1},p.prototype.setFocus=function(s,c){if(c===void 0&&(c={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",s),s&&s!==l.ROOT_FOCUS_KEY||(s=this.getForcedFocusKey());var f=this.getNextFocusKey(s);this.log("setFocus","newFocusKey",f),this.setCurrentFocusedKey(f,c),this.updateParentsHasFocusedChild(f,c),this.updateParentsLastFocusedChild(f)}},p.prototype.updateAllLayouts=function(){var s=this;this.enabled&&!this.nativeMode&&(0,te.default)(this.focusableComponents,function(c,f){s.updateLayout(f)})},p.prototype.updateLayout=function(s){var c=this.focusableComponents[s];if(c&&!this.nativeMode&&!c.layoutUpdated){var f=c.node,d=this.useGetBoundingClientRect?(0,me.getBoundingClientRect)(f):(0,me.default)(f);c.layout=y(y({},d),{node:f})}},p.prototype.updateFocusable=function(s,c){var f=c.node,d=c.preferredChildFocusKey,F=c.focusable,w=c.isFocusBoundary,T=c.focusBoundaryDirections,M=c.onEnterPress,$=c.onEnterRelease,H=c.onArrowPress,j=c.onFocus,B=c.onBlur;if(!this.nativeMode){var D=this.focusableComponents[s];D&&(D.preferredChildFocusKey=d,D.focusable=F,D.isFocusBoundary=w,D.focusBoundaryDirections=T,D.onEnterPress=M,D.onEnterRelease=$,D.onArrowPress=H,D.onFocus=j,D.onBlur=B,f&&(D.node=f))}},p.prototype.isNativeMode=function(){return this.nativeMode},p.prototype.doesFocusableExist=function(s){return!!this.focusableComponents[s]},p.prototype.updateRtl=function(s){this.writingDirection=s?Q.default.RTL:Q.default.LTR},p}();l.SpatialNavigation=new Ee,l.init=l.SpatialNavigation.init,l.setThrottle=l.SpatialNavigation.setThrottle,l.destroy=l.SpatialNavigation.destroy,l.setKeyMap=l.SpatialNavigation.setKeyMap,l.setFocus=l.SpatialNavigation.setFocus,l.navigateByDirection=l.SpatialNavigation.navigateByDirection,l.pause=l.SpatialNavigation.pause,l.resume=l.SpatialNavigation.resume,l.updateAllLayouts=l.SpatialNavigation.updateAllLayouts,l.getCurrentFocusKey=l.SpatialNavigation.getCurrentFocusKey,l.doesFocusableExist=l.SpatialNavigation.doesFocusableExist,l.updateRtl=l.SpatialNavigation.updateRtl},35:function(b,l,g){var C=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(l,"__esModule",{value:!0});var y=C(g(119)),S=typeof window<"u"&&window.document,x=S?window.innerWidth:0,q=S?window.innerHeight:0,L=function(){function R(O){S&&(this.debugCtx=R.createCanvas("sn-debug","1010",O),this.layoutsCtx=R.createCanvas("sn-layouts","1000",O),this.writingDirection=O)}return R.createCanvas=function(O,E,G){var A=document.querySelector("#".concat(O))||document.createElement("canvas");A.setAttribute("id",O),A.setAttribute("dir",G===y.default.LTR?"ltr":"rtl");var k=A.getContext("2d");return A.style.zIndex=E,A.style.position="fixed",A.style.top="0",A.style.left="0",document.body.appendChild(A),A.width=x,A.height=q,k},R.prototype.clear=function(){S&&this.debugCtx.clearRect(0,0,x,q)},R.prototype.clearLayouts=function(){S&&this.layoutsCtx.clearRect(0,0,x,q)},R.prototype.drawLayout=function(O,E,G){if(S){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(O.left,O.top,O.width,O.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var A=this.writingDirection===y.default.LTR?"left":"right",k=O[A];this.layoutsCtx.fillText(E,k,O.top+10),this.layoutsCtx.fillText(G,k,O.top+25),this.layoutsCtx.fillText("".concat(A,": ").concat(k),k,O.top+40),this.layoutsCtx.fillText("top: ".concat(O.top),k,O.top+55)}},R.prototype.drawPoint=function(O,E,G,A){G===void 0&&(G="blue"),A===void 0&&(A=10),S&&(this.debugCtx.strokeStyle=G,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(O-A/2,E-A/2,A,A))},R}();l.default=L},119:function(b,l){var g;Object.defineProperty(l,"__esModule",{value:!0}),function(C){C[C.LTR=0]="LTR",C[C.RTL=1]="RTL"}(g||(g={})),l.default=g},607:function(b,l,g){var C=this&&this.__createBinding||(Object.create?function(S,x,q,L){L===void 0&&(L=q);var R=Object.getOwnPropertyDescriptor(x,q);R&&!("get"in R?!x.__esModule:R.writable||R.configurable)||(R={enumerable:!0,get:function(){return x[q]}}),Object.defineProperty(S,L,R)}:function(S,x,q,L){L===void 0&&(L=q),S[L]=x[q]}),y=this&&this.__exportStar||function(S,x){for(var q in S)q==="default"||Object.prototype.hasOwnProperty.call(x,q)||C(x,S,q)};Object.defineProperty(l,"__esModule",{value:!0}),y(g(79),l),y(g(445),l),y(g(654),l)},964:function(b,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getBoundingClientRect=void 0;var g=function(C){for(var y=C.offsetParent,S=C.offsetHeight,x=C.offsetWidth,q=C.offsetLeft,L=C.offsetTop;y&&y.nodeType===1;)q+=y.offsetLeft-y.scrollLeft,L+=y.offsetTop-y.scrollTop,y=y.offsetParent;return{height:S,left:q,top:L,width:x}};l.default=function(C){var y=C&&C.parentElement;if(C&&y){var S=g(y),x=g(C),q=x.height,L=x.left,R=x.top,O=x.width;return{x:L-S.left,y:R-S.top,width:O,height:q,left:L,top:R,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},l.getBoundingClientRect=function(C){if(C&&C.getBoundingClientRect){var y=C.getBoundingClientRect();return{x:y.x,y:y.y,width:y.width,height:y.height,left:y.left,top:y.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(b,l,g){Object.defineProperty(l,"__esModule",{value:!0}),l.useFocusContext=l.FocusContext=void 0;var C=g(156),y=g(654);l.FocusContext=(0,C.createContext)(y.ROOT_FOCUS_KEY),l.FocusContext.displayName="FocusContext",l.useFocusContext=function(){return(0,C.useContext)(l.FocusContext)}},79:function(b,l,g){var C=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(l,"__esModule",{value:!0}),l.useFocusable=void 0;var y=g(156),S=C(g(604)),x=C(g(461)),q=g(654),L=g(445);l.useFocusable=function(R){var O=R===void 0?{}:R,E=O.focusable,G=E===void 0||E,A=O.saveLastFocusedChild,k=A===void 0||A,X=O.trackChildren,te=X!==void 0&&X,_e=O.autoRestoreFocus,je=_e===void 0||_e,Ke=O.forceFocus,Q=Ke!==void 0&&Ke,me=O.isFocusBoundary,oe=me!==void 0&&me,ue=O.focusBoundaryDirections,ce=O.focusKey,ne=O.preferredChildFocusKey,Ce=O.onEnterPress,Fe=Ce===void 0?S.default:Ce,qe=O.onEnterRelease,Se=qe===void 0?S.default:qe,Ee=O.onArrowPress,p=Ee===void 0?function(){return!0}:Ee,s=O.onArrowRelease,c=s===void 0?S.default:s,f=O.onFocus,d=f===void 0?S.default:f,F=O.onBlur,w=F===void 0?S.default:F,T=O.extraProps,M=(0,y.useCallback)(function(W){Fe(T,W)},[Fe,T]),$=(0,y.useCallback)(function(){Se(T)},[Se,T]),H=(0,y.useCallback)(function(W,Z){return p(W,T,Z)},[T,p]),j=(0,y.useCallback)(function(W){c(W,T)},[c,T]),B=(0,y.useCallback)(function(W,Z){d(W,T,Z)},[T,d]),D=(0,y.useCallback)(function(W,Z){w(W,T,Z)},[T,w]),Y=(0,y.useRef)(null),z=(0,y.useState)(!1),J=z[0],se=z[1],U=(0,y.useState)(!1),V=U[0],fe=U[1],ae=(0,L.useFocusContext)(),ee=(0,y.useMemo)(function(){return ce||(0,x.default)("sn:focusable-item-")},[ce]),Re=(0,y.useCallback)(function(W){W===void 0&&(W={}),q.SpatialNavigation.setFocus(ee,W)},[ee]);return(0,y.useEffect)(function(){var W=Y.current;return q.SpatialNavigation.addFocusable({focusKey:ee,node:W,parentFocusKey:ae,preferredChildFocusKey:ne,onEnterPress:M,onEnterRelease:$,onArrowPress:H,onArrowRelease:j,onFocus:B,onBlur:D,onUpdateFocus:function(Z){return Z===void 0&&(Z=!1),se(Z)},onUpdateHasFocusedChild:function(Z){return Z===void 0&&(Z=!1),fe(Z)},saveLastFocusedChild:k,trackChildren:te,isFocusBoundary:oe,focusBoundaryDirections:ue,autoRestoreFocus:je,forceFocus:Q,focusable:G}),function(){q.SpatialNavigation.removeFocusable({focusKey:ee})}},[]),(0,y.useEffect)(function(){var W=Y.current;q.SpatialNavigation.updateFocusable(ee,{node:W,preferredChildFocusKey:ne,focusable:G,isFocusBoundary:oe,focusBoundaryDirections:ue,onEnterPress:M,onEnterRelease:$,onArrowPress:H,onArrowRelease:j,onFocus:B,onBlur:D})},[ee,ne,G,oe,ue,M,$,H,j,B,D]),{ref:Y,focusSelf:Re,focused:J,hasFocusedChild:V,focusKey:ee}}},150:function(b){b.exports=t},117:function(b){b.exports=n},747:function(b){b.exports=a},23:function(b){b.exports=i},842:function(b){b.exports=o},682:function(b){b.exports=u},784:function(b){b.exports=v},604:function(b){b.exports=h},432:function(b){b.exports=m},67:function(b){b.exports=_},461:function(b){b.exports=I},156:function(b){b.exports=P}},K={};return function b(l){var g=K[l];if(g!==void 0)return g.exports;var C=K[l]={exports:{}};return N[l].call(C.exports,C,C.exports,b),C.exports}(607)}()})})(Wi);var Ef=Wi.exports;exports.commonjsGlobal=ve;exports.distExports=Ef;exports.getAugmentedNamespace=ms;exports.getDefaultExportFromCjs=_s;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("./sl-types.js"),t=require("react"),m=require("./index6.js"),O=require("./index7.js"),ae=require("./useStreamLayerApp2.js"),ne=l.styled_default("div")({name:"CloseIconWrap",class:"c3v6bv6",propsAsIs:!1}),le=l.styled_default("div")({name:"TimerWrap",class:"teuhmro",propsAsIs:!1}),oe=()=>m.B1,re=l.styled_default(oe())({name:"Icon",class:"i17rfxv5",propsAsIs:!0}),ue=({close:s,className:a,timerClassName:o,skipIcon:u,isPlaying:d=!0,duration:c=0,autoClose:f})=>{const[p,x]=t.useState(c===0);t.useEffect(()=>{x(!c)},[c]);const b=t.useCallback(()=>{f===ae.CloseTimerAuto.ENABLED?s?.():x(!0)},[f,s]);return p?e.jsxs(ne,{"data-a":"intr",onClick:s,className:a,style:u?{width:"auto"}:{},children:[u&&e.jsx("span",{"data-a":"intr",children:"Skip"}),e.jsx(re,{"data-a":"intr",name:u?"iconSkip":"icon-cross"})]}):e.jsx(le,{children:e.jsx(O.G,{className:o,isPlaying:d,duration:c,onTimerExpired:b})})},ce=l.styled_default("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),ie=l.styled_default("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),de=l.styled_default("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),E=l.styled_default("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),fe="t1xke4ml",pe="h1yzxv57",ye=l.styled_default("div")({name:"VideoControls",class:"vxo8xch",propsAsIs:!1}),L=l.styled_default("button")({name:"ControlBtn",class:"coyuzu0",propsAsIs:!1}),me=()=>L,xe=l.styled_default(me())({name:"MuteIcon",class:"musmi9a",propsAsIs:!0}),ge=()=>L,Ie=l.styled_default(ge())({name:"PauseIcon",class:"p1qe7rum",propsAsIs:!0}),he=()=>L,je=l.styled_default(he())({name:"PlayIcon",class:"psevery",propsAsIs:!0}),K=l.styled_default("button")({name:"WebOSIconButton",class:"w1q3u7py",propsAsIs:!1}),be=()=>K,w=l.styled_default(be())({name:"WebOSIconButtonAnimation",class:"wdlqvum",propsAsIs:!0}),Pe=()=>w,Ae=l.styled_default(Pe())({name:"WebOSIconButtonPlay",class:"w1ylz9ea",propsAsIs:!0}),ve=()=>w,Ce=l.styled_default(ve())({name:"WebOSIconButtonPause",class:"w1iylt55",propsAsIs:!0}),ke=()=>w,Se=l.styled_default(ke())({name:"WebOSIconButtonMute",class:"w8h4h7",propsAsIs:!0}),_e=()=>w,Be=l.styled_default(_e())({name:"WebOSIconButtonUnmute",class:"w12l12kt",propsAsIs:!0}),Me=s=>{for(const a of s)a.isIntersecting?a.target instanceof HTMLVideoElement&&a.target.autoplay&&a.target.play():a.target instanceof HTMLVideoElement&&!a.target.paused&&a.target.pause()},Q=new IntersectionObserver(Me,{threshold:.5}),$=new Set,Ee=s=>{Q.observe(s),$.add(s)},we=s=>{Q.unobserve(s),$.delete(s)},J=()=>{for(const s of $)s instanceof HTMLVideoElement&&!s.paused&&s.pause()};function Re(...s){return t.useCallback(a=>{for(const o of s)o!==null&&(typeof o=="function"?o(a):o&&(o.current=a))},[...s])}const We=O.b(ce),qe=({loading:s,autoPlay:a,played:o,playing:u,isMuted:d,unmute:c,mute:f,togglePlaying:p})=>!s&&!a&&!o?e.jsx(E,{children:u?e.jsx(m.B1,{name:"icon-pause"}):e.jsx(m.B1,{name:"icon-play"})}):o?e.jsxs(ye,{children:[u?e.jsx(Ie,{onClick:p}):e.jsx(je,{onClick:p}),e.jsx(xe,{className:l.cx_default(!d&&"muted"),onClick:d?c:f})]}):null,Ne=({loading:s,autoPlay:a,playMuted:o,playing:u,played:d,unmute:c,mute:f,isMuted:p,hasNotPausedVideo:x,hasInteractedWithAudio:b})=>e.jsxs(e.Fragment,{children:[!s&&!(a&&o)&&e.jsx(E,{"data-control-btn":"true",children:u?x?null:e.jsx(Ae,{children:e.jsx(m.B1,{name:"icon-play"})}):d?e.jsx(Ce,{children:e.jsx(m.B1,{name:"icon-pause"})}):e.jsx(K,{"data-control-icon":"true",children:e.jsx(m.B1,{name:"icon-play"})})}),!s&&a&&o&&b&&e.jsx(E,{children:p?e.jsx(Se,{onClick:c,children:e.jsx(m.B1,{name:"iconMute"})}):e.jsx(Be,{onClick:f,children:e.jsx(m.B1,{name:"iconUnMute"})})})]}),Te=t.forwardRef(({poster:s,source:a,aspectRatio:o,controlVideo:u,onReplay:d,onPlay:c,onPause:f,onEnd:p,onRender:x,onMute:b,onQuartile:R,autoPlay:P,playMuted:A,className:X,muted:v,webos:k,hasNotPausedVideo:Z},Y)=>{const i=t.useRef(null),ee=Re(i,Y),W=t.useRef(!1),q=t.useRef(!1),y=t.useRef(new Set),[z,F]=t.useState(!1),[S,_]=t.useState(!1),[N,U]=t.useState(!1),[H,B]=t.useState(!0),[T,M]=t.useState(A),[V,se]=t.useState(!1);t.useEffect(()=>{a&&(M(A),F(!1))},[a]);const h=t.useCallback(()=>{u?.({muted:!1})},[u]),D=t.useCallback(()=>{u?.({muted:!0})},[u]),j=t.useCallback(n=>{n?.stopPropagation(),i.current&&(i.current.muted=!0),M(!0)},[]),C=t.useCallback(n=>{n?.stopPropagation(),i.current&&(i.current.muted=!1),M(!1),V||se(!0)},[V]);t.useEffect(()=>{v!==void 0&&(v?j():C())},[j,v,C]);const G=n=>{n.stopPropagation?.();const r=i?.current;if(r)if(S)r.pause();else{const g=i?.current;if(!g)return;J(),g.play().catch(I=>console.log(I)),B(!1)}},te=()=>{i?.current?.load(),B(!0)};return t.useEffect(()=>()=>{h()},[h]),t.useEffect(()=>{const n=i.current;return n?(q.current=n.muted,M(n.muted),Ee(n),()=>{we(n)}):()=>{}},[]),t.useEffect(()=>{x?.()},[x]),t.useEffect(()=>{y.current.clear(),W.current=!1},[a]),e.jsxs(We,{webos:k,onClick:P&&A?T?C:j:G,"data-a":"intr",autoFocus:!0,options:{focusKey:"video-play-btn"},className:l.cx_default(S&&!k&&fe,P&&pe,X),style:o?{aspectRatio:o}:{},children:[e.jsx(ie,{ref:ee,src:a,autoPlay:P,onPlay:()=>{F(!0),W.current&&(d?.(),y.current.clear()),_(!0),B(!1),c?.(),A?j():D()},onTimeUpdate:n=>{const r=n.target.duration,g=n.target.currentTime;if(r&&g){const I=Math.floor(g/r*100);I>=25&&I<50&&!y.current.has(25)?(R?.(25),y.current.add(25)):I>=50&&I<75&&!y.current.has(50)?(R?.(50),y.current.add(50)):I>=75&&!y.current.has(75)&&(R?.(75),y.current.add(75))}},onVolumeChange:n=>{const r=n.target.muted;q.current!==r&&(b?.(r),q.current=r,(r!==v||v===void 0)&&(r?h():D()))},onError:async n=>{try{if(n.target instanceof HTMLVideoElement){U(!0);const r=await(await fetch(n.target.src)).blob(),g=URL.createObjectURL(r);n.target.src=g}}catch(r){console.error("video fallback fetch failed",r),_(!0),B(!0)}finally{U(!1),h()}},onPause:()=>{_(!1),f?.(),h()},onEnded:()=>{_(!1),W.current=!0,te(),p?.(),h()},style:{visibility:H?"hidden":"visible"},controls:!1,playsInline:!0}),e.jsx(de,{src:s,style:{visibility:H?"visible":"hidden"}}),!k&&e.jsx(qe,{loading:N,autoPlay:P,played:z,playing:S,isMuted:T,unmute:C,mute:j,togglePlaying:G}),k&&e.jsx(Ne,{loading:N,autoPlay:P,playMuted:A,playing:S,played:z,unmute:C,mute:j,isMuted:T,hasNotPausedVideo:Z,hasInteractedWithAudio:V}),N&&e.jsx(E,{children:e.jsx(O.d,{})})]})});exports.Fe=Te;exports.Ie=J;exports.y=ue;
|