40 lines
36 KiB
Plaintext
40 lines
36 KiB
Plaintext
;/*FB_PKG_DELIM*/
|
|
|
|
__d("BanzaiLogger",["cr:9989"],(function(t,n,r,o,a,i,l){function e(t){return{log:function(r,o){n("cr:9989").post("logger:"+r,o,t)},create:e}}var s=e(),u=s;l.default=u}),98);
|
|
__d("BehaviorsMixin",[],(function(t,n,r,o,a,i){var e=(function(){function e(e){this.$1=e,this.$2=!1}var t=e.prototype;return t.enable=function(){this.$2||(this.$2=!0,this.$1.enable())},t.disable=function(){this.$2&&(this.$2=!1,this.$1.disable())},e})(),l=1;function s(e){return e.__BEHAVIOR_ID||(e.__BEHAVIOR_ID=l++),e.__BEHAVIOR_ID}var u={enableBehavior:function(n){this._behaviors||(this._behaviors={});var t=s(n);return this._behaviors[t]||(this._behaviors[t]=new e(new n(this))),this._behaviors[t].enable(),this},disableBehavior:function(t){if(this._behaviors){var e=s(t);this._behaviors[e]&&this._behaviors[e].disable()}return this},enableBehaviors:function(t){return t.forEach(this.enableBehavior,this),this},destroyBehaviors:function(){if(this._behaviors){for(var e in this._behaviors)this._behaviors[e].disable();this._behaviors={}}},hasBehavior:function(t){return this._behaviors&&s(t)in this._behaviors}},c=u;i.default=c}),66);
|
|
__d("getOrCreateDOMID",["uniqueID"],(function(t,n,r,o,a,i,l){function e(e){return e.id||(e.id=r("uniqueID")()),e.id}l.default=e}),98);
|
|
__d("ContextualThing",["CSS","containsNode","ge","getOrCreateDOMID"],(function(t,n,r,o,a,i,l){function e(e,t){e.setAttribute("data-ownerid",r("getOrCreateDOMID")(t))}function s(e,t){for(var n=t;n;){if(r("containsNode")(e,n))return!0;n=u(n)}return!1}function u(e){for(var t=e,n;t;){if(t.getAttribute&&(n=t.getAttribute("data-ownerid")))return r("ge")(n);t=t.parentNode}return null}function c(e,t){for(var n=e,a;n&&!o("CSS").hasClass(n,t);)n.getAttribute&&(a=n.getAttribute("data-ownerid"))?n=r("ge")(a):n=n.parentNode;return n}l.register=e,l.containsIncludingLayers=s,l.getContext=u,l.parentByClass=c}),98);
|
|
__d("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE",[],(function(t,n,r,o,a,i){"use strict";function e(e){return e}i.default=e}),66);
|
|
__d("EventListener",["cr:5695"],(function(t,n,r,o,a,i,l){"use strict";l.default=n("cr:5695")}),98);
|
|
__d("getElementText",["isElementNode","isTextNode"],(function(t,n,r,o,a,i,l){var e=null;function s(t){if(r("isTextNode")(t))return t.data;if(r("isElementNode")(t)){if(e===null){var n=document.createElement("div");e=n.textContent!=null?"textContent":"innerText"}return e==="textContent"?t.textContent||"":t.innerText||""}else return""}l.default=s}),98);
|
|
__d("isContentEditable",[],(function(t,n,r,o,a,i){"use strict";function e(e){for(var t=e;t instanceof HTMLElement;){if(t.contentEditable==="true"||t.contentEditable==="plaintext-only")return!0;t=t.parentElement}return!1}i.default=e}),66);
|
|
__d("isElementInteractive",["isContentEditable"],(function(t,n,r,o,a,i,l){"use strict";var e=new Set(["EMBED","INPUT","OBJECT","SELECT","TEXTAREA"]),s=new Set(["button","checkbox","radio","submit"]);function u(t){if(!t instanceof HTMLElement)return!1;var n=r("isContentEditable")(t),o=e.has(t.nodeName),a=t instanceof HTMLInputElement&&s.has(t.type);return(n||o)&&!a}l.default=u}),98);
|
|
__d("KeyEventController",["Bootloader","DOMQuery","Event","Run","emptyFunction","getElementText","isContentEditable","isElementInteractive","isEmpty"],(function(t,n,r,o,a,i,l){var e,s,u=null,c={BACKSPACE:[8],TAB:[9],RETURN:[13],ALT:[18],ESCAPE:[27],LEFT:[37,63234],UP:[38,63232],RIGHT:[39,63235],DOWN:[40,63233],NUMPAD_ADD:[43],NUMPAD_SUBSTRACT:[45],DELETE:[46],COMMA:[188],PERIOD:[190],SLASH:[191],"`":[192],"[":[219],"]":[221],PAGE_UP:[33],PAGE_DOWN:[34],END:[35],HOME:[36],SPACE:[32],KP_DOT:[46,110],"-":[189],"=":[187],FORWARD_SLASH:[191]},d=(e={},e[8]=1,e[9]=1,e[13]=1,e[27]=1,e[32]=1,e[37]=1,e[63234]=1,e[38]=1,e[63232]=1,e[39]=1,e[63235]=1,e[40]=1,e[63233]=1,e[46]=1,e),m=(function(){function e(){var e=this;this.handlers={},["keyup","keydown","keypress"].forEach(function(t){return document.addEventListener(t,e.onkeyevent.bind(e,"on"+t))})}var t=e.prototype;return t.mapKey=function(t){var e=t;if(/^[0-9]$/.test(e+""))return typeof e!="number"&&(e=e.charCodeAt(0)-48),[48+e,96+e];e+="";var n=c[e.toUpperCase()];return n||[e.toUpperCase().charCodeAt(0)]},t.onkeyevent=function(t,n){var e=n;e=r("Event").$E(e);var o=this.handlers[e.keyCode]||this.handlers[e.which];if(o){for(var a=function(){var n=o[l].callback,a=o[l].filter;try{if(!a||a(e,t)){var i=n(e,t),s=e.which||e.keyCode;if(r("Bootloader").loadModules(["KeyEventTypedLogger"],function(t){new t().setAction("key_shortcut").setKey(e.key||"").setKeyChar(String.fromCharCode(s)).setKeyCode(s).addToExtraData("is_trusted",e.isTrusted).log()},"KeyEventController"),i===!1)return{v:r("Event").kill(e)}}}catch(e){}},i,l=0;l<o.length;l++)if(i=a(),i)return i.v}return!0},t.resetHandlers=function(){for(var e in this.handlers)if(Object.prototype.hasOwnProperty.call(this.handlers,e)){var t=this.handlers[e].filter(function(e){return e.preserve()});t.length?this.handlers[e]=t:delete this.handlers[e]}},e.getInstance=function(){return u||(u=new e)},e.defaultFilter=function(n,o){var t=r("Event").$E(n);return e.filterEventTypes(t,o)&&e.filterEventTargets(t,o)&&e.filterEventModifiers(t,o)},e.filterEventTypes=function(t,n){return n==="onkeydown"},e.filterEventTargets=function(t,n){var e=t.getTarget();return!r("isElementInteractive")(e)||t.keyCode in d&&(o("DOMQuery").isNodeOfType(e,["input","textarea"])&&e.value.length===0||r("isContentEditable")(e)&&r("getElementText")(e).length===0)},e.filterEventModifiers=function(t,n){return!(t.ctrlKey||t.altKey||t.metaKey||t.repeat)},e.registerKeyAcrossTransitions=function(n,o,a,i){return a===void 0&&(a=e.defaultFilter),i===void 0&&(i=!1),e.registerKey(n,o,a,i,r("emptyFunction").thatReturnsTrue)},e.registerKey=function(n,a,i,l,u){i===void 0&&(i=e.defaultFilter),l===void 0&&(l=!1),u===void 0&&(u=r("emptyFunction").thatReturnsFalse);var t=n,c=e.getInstance(),d=t==null?[]:c.mapKey(t);(s||(s=r("isEmpty")))(c.handlers)&&o("Run").onLeave(c.resetHandlers.bind(c));for(var m={},p=0;p<d.length;p++){t=""+d[p],(!c.handlers[t]||l)&&(c.handlers[t]=[]);var _={callback:a,filter:i,preserve:u};m[t]=_,c.handlers[t].push(_)}return{remove:function(){for(var e in m){if(c.handlers[e]&&c.handlers[e].length){var t=m[e]!=null?c.handlers[e].indexOf(m[e]):-1;t>=0&&c.handlers[e].splice(t,1)}delete m[e]}}}},e.registerKeyForButtonCallback=function(n,r){return e.registerKey(n,function(){return r.click(),!1})},e})();l.default=m}),98);
|
|
__d("KeyStatus",["Event","ExecutionEnvironment"],(function(t,n,r,o,a,i,l){var e,s=null,u=null;function c(){u||(u=r("Event").listen(window,"blur",function(){s=null,d()}))}function d(){u&&(u.remove(),u=null)}function m(e){s=r("Event").getKeyCode(e),c()}function p(){s=null,d()}if((e||(e=r("ExecutionEnvironment"))).canUseDOM){var _=document.documentElement;if(_){if(_.addEventListener)_.addEventListener("keydown",m,!0),_.addEventListener("keyup",p,!0);else if(_.attachEvent){var f=_.attachEvent;f("onkeydown",m),f("onkeyup",p)}}}function g(){return!!s}function h(){return s}l.isKeyDown=g,l.getKeyDownCode=h}),98);
|
|
__d("Keys",[],(function(t,n,r,o,a,i){"use strict";var e=Object.freeze({BACKSPACE:8,TAB:9,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE_BREAK:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,LEFT_WINDOW_KEY:91,RIGHT_WINDOW_KEY:92,SELECT_KEY:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,MULTIPLY:106,ADD:107,SUBTRACT:109,DECIMAL_POINT:110,DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUM_LOCK:144,SCROLL_LOCK:145,SEMI_COLON:186,EQUAL_SIGN:187,COMMA:188,DASH:189,PERIOD:190,FORWARD_SLASH:191,GRAVE_ACCENT:192,OPEN_BRACKET:219,BACK_SLASH:220,CLOSE_BRAKET:221,SINGLE_QUOTE:222});i.default=e}),66);
|
|
__d("react-compiler-runtime",[],(function(t,n,r,o,a,i){"use strict";var e=null;function l(t){return e.H.useMemoCache(t)}function s(t){e=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE}i.c=l,i.initReactCompilerRuntime=s}),66);
|
|
__d("react-forget-runtime",["invariant","DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE","FBLogger","err"],(function(t,n,r,o,a,i,l,s){var e=null,u=null,c=!1,d=t.console,m=[],p={},_="Jest-Only Fatal: ",f="";function g(e){if(!c){var t=r("err")(_+e);d.error(_+e+"\n"+t.stack),c=!0,r("FBLogger")("React").warn("React compiler guard functions used in production.")}}["useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","useCacheRefresh","useOptimistic"].forEach(function(e){p[e]=function(){var e="[React] Unexpected React hook call {name} from a React Forget compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') ";g(e)}});var h=function(t){p[t]=function(){if(u==null)throw r("FBLogger")("React").mustfixThrow("React Forget internal error: unexpected null dispatcher");var e;return(e=u)[t].apply(e,arguments)}};for(var y of["useMemoCache","unstable_useMemoCache","readContext","unstable_isNewReconciler","getCacheSignal","getCacheForType","use"])h(y);function C(t){e.H==null;var n=e.H;if(n!=null){if(t===0){if(m.push(n),m.length===1&&(u=n),n===p){var o="[React] Unexpected call to custom hook or component from a React Forget compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.";g(o)}e.H=p}else if(t===1){var a=m.pop();if(a==null)throw r("FBLogger")("React").mustfixThrow("React Forget internal error: unexpected null in guard stack");m.length===0&&(u=null),e.H=a}else if(t===2)m.push(n),u!=null&&(e.H=u);else if(t===3){var i=m.pop();if(i==null)throw r("FBLogger")("React").mustfixThrow("React Forget internal error: unexpected null in guard stack");e.H=i}}}function b(t){R=t.isValidElement,e=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE}var v=!1;function S(e,t){d.log(e,t)}var R=null;function L(e){var t;return(t=R==null?void 0:R(e))!=null?t:!1}var E=new Set;function k(e,t,n,o,a,i){function l(e,t,r,l){var s=f+"Forget change detection: "+a+":"+i+" ["+o+"]: "+n+r+" changed from "+e+" to "+t+" (depth "+l+")";E.has(s)||(E.add(s),d.error(s))}var u=2;function c(e,t,n,o){if(!(o>u)){if(e===t)return;if(typeof e!=typeof t)l("type "+typeof e,"type "+typeof t,n,o);else if(typeof e=="object")if(typeof t=="object"||s(0,18576),e===null||t===null)(e!==null||t!==null)&&l("type "+(e===null?"null":"object"),"type "+(t===null?"null":"object"),n,o);else if(e instanceof Map)if(!(t instanceof Map))l("Map instance","other value",n,o);else if(e.size!==t.size)l("Map instance with size "+e.size,"Map instance with size "+t.size,n,o);else for(var a of e){var i=a[0],d=a[1];t.has(i)?c(d,t.get(i),n+".get("+String(i)+")",o+1):l("Map instance with key "+String(i),"Map instance without key "+String(d),n,o)}else if(t instanceof Map)l("other value","Map instance",n,o);else if(e instanceof Set)if(!(t instanceof Set))l("Set instance","other value",n,o);else if(e.size!==t.size)l("Set instance with size "+e.size,"Set instance with size "+t.size,n,o);else for(var m of t)e.has(m)||l("Set instance without element "+String(m),"Set instance with element "+String(m),n,o);else if(t instanceof Set)l("other value","Set instance",n,o);else if(Array.isArray(e)||Array.isArray(t))if(!Array.isArray(e)||!Array.isArray(t))l("type "+(Array.isArray(e)?"array":"object"),"type "+(Array.isArray(t)?"array":"object"),n,o);else if(e.length!==t.length)l("array with length "+e.length,"array with length "+t.length,n,o);else for(var p=0;p<e.length;p++)c(e[p],t[p],n+"["+p+"]",o+1);else if(L(e)||L(t))!L(e)||!L(t)?l("type "+(L(e)?"React element":"object"),"type "+(L(t)?"React element":"object"),n,o):r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(e).type!==r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(t).type?l("React element of type "+String(r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(e).type.name),"React element of type "+String(r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(t).type.name),n,o):c(r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(e).props,r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(t).props,"[props of "+n+"]",o+1);else{for(var _ in t)_ in e||l("object without key "+_,"object with key "+_,n,o);for(var f in e)f in t?c(e[f],t[f],n+"."+f,o+1):l("object with key "+f,"object without key "+f,n,o)}else{if(typeof e=="function")return;isNaN(e)||isNaN(t)?isNaN(e)!==isNaN(t)&&l(isNaN(e)?"NaN":"non-NaN value",isNaN(t)?"NaN":"non-NaN value",n,o):e!==t&&l(String(e),String(t),n,o)}}}c(e,t,"",0)}l.$dispatcherGuard=C,l.initReactForgetRuntime=b,l.shouldLogRender=v,l.logRender=S,l.$structuralCheck=k}),98);
|
|
__d("setupReactRefresh",["cr:1108857"],(function(t,n,r,o,a,i,l){}),34);
|
|
__d("React",["FBLogger","cr:1294158","cr:15957","react-compiler-runtime","react-forget-runtime","setupReactRefresh"],(function(t,n,r,o,a,i){n("setupReactRefresh");var e=n("cr:1294158");n("cr:15957"),n("react-forget-runtime").initReactForgetRuntime(e),n("react-compiler-runtime").initReactCompilerRuntime(e);var l=e.createFactory;e.createFactory=function(){return n("FBLogger")("react","createfactory").mustfix("React.createFactory is not supported anymore"),l.apply(void 0,arguments)},e.useEffectEvent=e.experimental_useEffectEvent,a.exports=e}),null);
|
|
__d("warning",["cr:755"],(function(t,n,r,o,a,i,l){l.default=n("cr:755")}),98);
|
|
__d("consolePatchForReact",["react","warning"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react"))}),34);
|
|
__d("ReactDOM",["consolePatchForReact","cr:1293","cr:1294159","cr:7162","cr:734","err","setupReactRefresh"],(function(t,n,r,o,a,i,l){var e,s,u;n("setupReactRefresh"),n("consolePatchForReact");function c(){throw r("err")("This React API is not available on Workplace.")}var d=n("cr:734")?n("cr:734")(n("cr:1294159").createPortal):n("cr:1294159").createPortal;function m(e,t,r){return n("cr:1294159").hydrateRoot(e,t,babelHelpers.extends({onRecoverableError:function(t){if(t!=null&&typeof t.message=="string"){var e=t.message;if(e.indexOf("The server could not finish this Suspense boundary")!==-1||e.indexOf("Minified React error #419;")!==-1||e.indexOf("This Suspense boundary received an update")!==-1||e.indexOf("Minified React error #421;")!==-1)return}typeof reportError=="function"&&reportError(t)}},r))}var p=(e=n("cr:1293")==null?void 0:n("cr:1293").findDOMNode)!=null?e:c,_=(s=n("cr:7162")==null?void 0:n("cr:7162").render_DEPRECATED)!=null?s:c,f=(u=n("cr:7162")==null?void 0:n("cr:7162").unmountComponentAtNode_DEPRECATED)!=null?u:c;l.createPortal=d,l.createRoot=n("cr:1294159").createRoot,l.hydrateRoot=m,l.flushSync=n("cr:1294159").flushSync,l.useFormStatus=n("cr:1294159").useFormStatus,l.useFormState=n("cr:1294159").useFormState,l.preload=n("cr:1294159").preload,l.version=n("cr:1294159").version,l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n("cr:1294159").__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n("cr:1294159").__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l.unstable_batchedUpdates=n("cr:1294159").unstable_batchedUpdates,l.unstable_createEventHandle=n("cr:1294159").unstable_createEventHandle,l.findDOMNode=p,l.render=_,l.unmountComponentAtNode=f}),98);
|
|
__d("ReactDOMCompatibilityLayer",["ReactDOM"],(function(t,n,r,o,a,i,l){"use strict";var e=typeof WeakMap=="function"?new WeakMap:new Map;function s(t,n){var r=e.get(n);r==null&&(r=o("ReactDOM").createRoot(n),e.set(n,r));var a=null,i=t.props.ref;return o("ReactDOM").flushSync(function(){var e,n;return(e=r)==null?void 0:e.render(typeof t.type=="string"||(n=t.type)!=null&&(n=n.prototype)!=null&&n.isReactComponent?babelHelpers.extends({},t,{props:babelHelpers.extends({},t.props,{ref:function(t){typeof i=="function"?i(t):i!=null&&(i.current=t),a=t}})}):t)}),a}function u(t){if(t==null)return!1;var n=e.get(t);return n?(o("ReactDOM").flushSync(function(){n.unmount()}),e.delete(t),!0):!1}l.render_DEPRECATED=s,l.unmountComponentAtNode_DEPRECATED=u}),98);
|
|
__d("ReactDOM_DEPRECATED",["ReactDOMCompatibilityLayer","cr:1293","err","setupReactRefresh"],(function(t,n,r,o,a,i,l){var e;n("setupReactRefresh");function s(){throw r("err")("This React API is not available on Workplace.")}var u=(e=n("cr:1293").findDOMNode)!=null?e:s;l.findDOMNode_DEPRECATED=u,l.render_DEPRECATED=o("ReactDOMCompatibilityLayer").render_DEPRECATED,l.unmountComponentAtNode_DEPRECATED=o("ReactDOMCompatibilityLayer").unmountComponentAtNode_DEPRECATED}),98);
|
|
__d("isValidReactElement",[],(function(t,n,r,o,a,i){var e=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.transitional.element")||60103;function l(t){return typeof t=="object"&&t!==null&&t.$$typeof===e}i.default=l}),66);
|
|
__d("setImmediate",["TimeSlice","TimerStorage","setImmediateAcrossTransitions"],(function(t,n,r,o,a,i,l){function e(e){var t,n=function(){r("TimerStorage").unset(r("TimerStorage").IMMEDIATE,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];Function.prototype.apply.call(e,this,o)};r("TimeSlice").copyGuardForWrapper(e,n);for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return t=r("setImmediateAcrossTransitions").apply(void 0,[n].concat(a)),r("TimerStorage").set(r("TimerStorage").IMMEDIATE,t),t}l.default=e}),98);
|
|
__d("Layer",["invariant","ArbiterMixin","BehaviorsMixin","CSS","ContextualThing","DOM","DataStore","Event","FBLogger","HTML","KeyEventController","KeyStatus","Parent","ReactDOM_DEPRECATED","Style","ge","isNode","isValidReactElement","mixin","react","removeFromArray","setImmediate"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useLayoutEffect;n("KeyStatus");var m=[],p=(function(e){function t(t,n){var o;if(o=e.call(this)||this,o._config=t||{},n){o._configure(o._config,n);var a=o._config.addedBehaviors||[];o.enableBehaviors(o._getDefaultBehaviors().concat(a))}else r("FBLogger")("layer").warn("The markup param wasn't provided to the Layer constructor");return o}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.init=function(t){this._configure(this._config,t);var e=this._config.addedBehaviors||[];return this.enableBehaviors(this._getDefaultBehaviors().concat(e)),this._initialized=!0,this},n._configure=function(t,n){var e=this;if(n){var a=r("isNode")(n),i=typeof n=="string"||r("HTML").isHTML(n);if(this.containsReactComponent=r("isValidReactElement")(n),!a&&!i&&!this.containsReactComponent&&r("FBLogger")("layer").warn("Layer must be init with HTML, DOM node or React instance"),i)n=r("HTML")(n).getRootNode();else if(this.containsReactComponent){var l=document.createElement("div");g(n,l,function(){e.inform("reactshow"),e.updatePosition()}),n=this._reactContainer=l}}this._root=this._buildWrapper(t,n),t.attributes&&r("DOM").setAttributes(this._root,t.attributes),t.classNames&&t.classNames.forEach(o("CSS").addClass.bind(null,this._root)),o("CSS").addClass(this._root,"uiLayer"),t.causalElement!=null&&(this._causalElement=r("ge")(t.causalElement)),t.permanent===!0&&(this._permanent=t.permanent),t.isStrictlyControlled===!0&&(this._isStrictlyControlled=t.isStrictlyControlled),o("DataStore").set(this._root,"layer",this)},n._getDefaultBehaviors=function(){return[]},n.getCausalElement=function(){return this._causalElement},n.setCausalElement=function(t){return this._causalElement=t,this},n.getInsertParent=function(){return this._insertParent||document.body},n.hasWash=function(){return!0},n.getRoot=function(){return this._root||(this._destroyed?r("FBLogger")("layer").warn("No root node for this Layer. It has either not yet been set or the Layer has been destroyed. This layer has been destroyed."):r("FBLogger")("layer").warn("No root node for this Layer. It has probably not been set.")),this._root},n.getContentRoot=function(){return this.getRoot()},n._buildWrapper=function(t,n){return n},n.setInsertParent=function(t){return t&&(this._shown&&t!==this.getInsertParent()&&(r("DOM").appendContent(t,this.getRoot()),this.updatePosition()),this._insertParent=t),this},n.showAfterDelay=function(t){var e=this;window.setTimeout(function(){return e.show()},t)},n.show=function(){var e=this;if(this._shown)return this;var n=this.getRoot();return n!=null||s(0,5142),this.inform("beforeshow"),r("Style").set(n,"visibility","hidden"),r("Style").set(n,"overflow","hidden"),o("CSS").show(n),r("DOM").appendContent(this.getInsertParent(),n),this.updatePosition()!==!1?(this._shown=!0,this.inform("show"),t.inform("show",this),this._permanent||window.setTimeout(function(){e._shown&&m.push(e)},0)):o("CSS").hide(n),r("Style").set(n,"visibility",""),r("Style").set(n,"overflow",""),r("Style").set(n,"opacity","1"),this.inform("aftershow"),this},n.hide=function(t){return this._isStrictlyControlled?(this._shown&&this.inform("runhide",t),this):this._hide()},n._hide=function(){return this._hiding||!this._shown||this.inform("beforehide")===!1?this:(this._hiding=!0,this.inform("starthide")!==!1&&this.finishHide(),this)},n.conditionShow=function(t){return t?this.show():this._hide()},n.finishHide=function(){if(this._shown){this._permanent||r("removeFromArray")(m,this),this._hiding=!1,this._shown=!1;var e=this.getRoot();e!=null||s(0,5143),o("CSS").hide(e),this.inform("hide"),t.inform("hide",this)}},n.isShown=function(){return this._shown},n.updatePosition=function(){return!0},n.destroy=function(){this.containsReactComponent&&o("ReactDOM_DEPRECATED").unmountComponentAtNode_DEPRECATED(this._reactContainer),this.finishHide();var e=this.getRoot();r("DOM").remove(e),this.destroyBehaviors(),this.inform("destroy"),t.inform("destroy",this),o("DataStore").remove(e,"layer"),this._root=this._causalElement=null,this._destroyed=!0},t.init=function(t,n){t.init(n)},t.initAndShow=function(t,n){t.init(n).show()},t.show=function(t){t.show()},t.showAfterDelay=function(t,n){t.showAfterDelay(n)},t.getTopmostLayer=function(){return m[m.length-1]},t.informBlur=function(t){_=null,f=null;var e=m.length;if(e)for(;e--;){var n=m[e],r=n.getContentRoot();if(r!=null||s(0,5144),o("ContextualThing").containsIncludingLayers(r,t)||n.inform("blur",{target:t})===!1||n.isShown())return}},t})(r("mixin")(r("ArbiterMixin"),r("BehaviorsMixin")));Object.assign(p,r("ArbiterMixin")),Object.assign(p.prototype,{_destroyed:!1,_initialized:!1,_root:null,_shown:!1,_hiding:!1,_causalElement:null,_reactContainer:null}),r("Event").listen(document.documentElement,"keydown",function(e){if(r("KeyEventController").filterEventTargets(e,"keydown")){for(var t=m.length-1;t>=0;t--)if(m[t].inform("key",e)===!1)return!1}return!0},r("Event").Priority.URGENT);var _;r("Event").listen(document.documentElement,"mousedown",function(e){_=e.getTarget()});var f;r("Event").listen(document.documentElement,"mouseup",function(e){f=e.getTarget(),r("setImmediate")(function(){_=null,f=null})}),r("Event").listen(document.documentElement,"click",function(e){var t=_,n=f;_=null,f=null;var a=m.length;if(a){var i=e.getTarget();i!==n||i!==t||r("DOM").contains(document.documentElement,i)&&(i.offsetWidth!=null&&!i.offsetWidth||o("Parent").byClass(i,"generic_dialog")||p.informBlur(i))}});function g(e,t,n){r("setImmediate")(function(){o("ReactDOM_DEPRECATED").render_DEPRECATED(c.jsx(h,{onRender:n,children:e}),t)})}function h(e){var t=e.children,n=e.onRender;return d(function(){n()},[n]),t}h.displayName=h.name+" [from "+i.id+"]",l.default=p}),98);
|
|
__d("PluginCSSReflowHack",["Style"],(function(t,n,r,o,a,i,l){function e(e){setTimeout(function(){var t="border-bottom-width",n=r("Style").get(e,t);r("Style").set(e,t,parseInt(n,10)+1+"px"),r("Style").set(e,t,n)},1e3)}l.trigger=e}),98);
|
|
__d("PluginMessage",["Arbiter","CSS","DOM","DOMEventListener"],(function(t,n,r,o,a,i,l){var e="platform/plugins/checkbox_connect/access_token";function s(){o("DOMEventListener").add(window,"message",function(e){if(/\.facebook\.com$/.test(e.origin)&&u().test(e.data)){var t=JSON.parse(e.data.substring(24));"type"in t&&(t.type==="messenger_checkbox"?c(t):t.type==="customer_chat"&&m(t))}})}function u(){return new RegExp("^SOCIALPLUGIN_AUTH_POPUP:")}function c(t){var n=document.getElementById("plugin-MN-commerce-identity"),a=document.getElementById("plugin-MN-commerce-identity-profile-picture"),i=document.getElementById("plugin-MN-commerce-identity-profile-name"),l=document.getElementById("web-plugin-checkbox-form");n!=null&&a!=null&&i!=null&&l!=null&&(t.can_personalize===!0?(d(a,t.profile_photo),d(i,t.profile_name),o("CSS").show(n),d(l,t.checkbox),t.access_token!=null&&r("Arbiter").inform(e,t.access_token)):o("CSS").hide(n))}function d(e,t){var n=document.createElement("div");r("DOM").setContent(n,t);var o=n.firstChild;o!=null&&e.replaceWith(o)}function m(e){var t=window.require("Arbiter");"ArbiterData"in e?t.inform(e.ArbiterEvent,e.ArbiterData):t.inform(e.ArbiterEvent)}l.MESSENGER_CHECKBOX_ACCESS_TOKEN_LOGIN_ARBITER=e,l.listen=s}),98);
|
|
__d("getViewportDimensions",["UserAgent"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(){var e=null;return function(){var t=document.body;return t==null?null:((e==null||!t.contains(e))&&(e=document.createElement("div"),e.style.left=Number.MAX_SAFE_INTEGER+"px",e.style.width="100%",e.style.height="100%",e.style.position="fixed",t.appendChild(e)),e)}})();function s(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),e==null&&document.body&&(e=document.body.clientWidth),e||0}function u(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),e==null&&document.body&&(e=document.body.clientHeight),e||0}function c(){return{width:window.innerWidth||s(),height:window.innerHeight||u()}}c.withoutScrollbars=function(){return r("UserAgent").isPlatform("Android")?c():{width:s(),height:u()}},c.layout=function(){var t,n,r=e();return{width:(t=r==null?void 0:r.clientWidth)!=null?t:s(),height:(n=r==null?void 0:r.clientHeight)!=null?n:u()}},l.default=c}),98);
|
|
__d("isFalsey",[],(function(t,n,r,o,a,i){"use strict";function e(e){return e==null||!e}i.default=e}),66);
|
|
__d("PopupWindow",["DOMDimensions","DOMQuery","FlowMigrationUtilsForLegacyFiles","Layer","Popup","getViewportDimensions","isFalsey"],(function(t,n,r,o,a,i,l){var e={allowShrink:!0,strategy:"vector",timeout:100,widthElement:null};function s(t){Object.assign(e,t),window.setInterval(u,e.timeout)}function u(){var t=r("getViewportDimensions")(),n=c(),a=r("Layer").getTopmostLayer();if(a){var i,l=(i=a.getRoot())==null?void 0:i.firstChild;l||o("FlowMigrationUtilsForLegacyFiles").invariantViolation("topMostLayer.getRoot().firstChild is null.");var s=o("DOMDimensions").getElementDimensions(l);s.height+=o("DOMDimensions").measureElementBox(l,"height",!0,!0,!0),s.width+=o("DOMDimensions").measureElementBox(l,"width",!0,!0,!0),n.height=Math.max(n.height,s.height),n.width=Math.max(n.width,s.width)}var u=n.height-t.height,d=n.width-t.width;if(d<0&&r("isFalsey")(e.widthElement)&&(d=0),d=d>1?d:0,r("isFalsey")(e.allowShrink)&&u<0&&(u=0),u||d)try{window.console&&window.console.firebug!=null,window.resizeBy(d,u),d&&window.moveBy(d/-2,0)}catch(e){}}function c(){var n=o("DOMDimensions").getDocumentDimensions();if(e.strategy==="offsetHeight"){var a=document.body;if(!a)o("FlowMigrationUtilsForLegacyFiles").invariantViolation("document.body is null.");else{var i;n.height=(i=a.offsetHeight)!=null?i:0}}if(r("isFalsey")(e.widthElement)&&typeof e.widthElement=="string"){var l=o("DOMQuery").scry(document.body,e.widthElement)[0];l&&(n.width=o("DOMDimensions").getElementDimensions(l).width)}var s=t.Dialog;return s&&s.max_bottom&&s.max_bottom>n.height&&(n.height=s.max_bottom),n}function d(e,t,n,r){return o("Popup").open(e,n,t,r)}l._opts=e,l.init=s,l._resizeCheck=u,l._getDocumentSize=c,l.open=d}),98);
|
|
__d("PluginConfirm",["DOMEvent","DOMEventListener","PlatformVersioning","PluginMessage","PopupWindow","URI"],(function(t,n,r,o,a,i){var e;function l(t){Object.assign(this,{plugin:t,confirm_params:{},return_params:(e||(e=n("URI"))).getRequestURI().getQueryData()}),this.addReturnParams({ret:"sentry"}),delete this.return_params.hash}Object.assign(l.prototype,{addConfirmParams:function(t){Object.assign(this.confirm_params,t)},addReturnParams:function(t){return Object.assign(this.return_params,t),this},start:function(){var t=n("PlatformVersioning").versionAwareURI(new(e||(e=n("URI")))("/plugins/error/confirm/"+this.plugin)).addQueryData(this.confirm_params).addQueryData({secure:e.getRequestURI().isSecure(),plugin:this.plugin,return_params:JSON.stringify(this.return_params)});return this.popup=n("PopupWindow").open(t.toString(),320,486),n("PluginMessage").listen(),this}}),l.starter=function(e,t,n){var r=new l(e);return r.addConfirmParams(t||{}),r.addReturnParams(n||{}),r.start.bind(r)},l.listen=function(e,t,r,o){n("DOMEventListener").add(e,"click",function(e){new(n("DOMEvent"))(e).kill(),l.starter(t,r,o)()})},a.exports=l}),null);
|
|
__d("PluginPageActionLogger",["BanzaiLogger","DOMEventListener","DOMQuery","ODS"],(function(t,n,r,o,a,i,l){var e;function s(t,n,a,i,l,s,u,c,d,m){function p(l,s){var u=o("DOMQuery").scry(i,"."+l)[0];u&&o("DOMEventListener").add(u,"click",function(i){(e||(e=o("ODS"))).bumpEntityKey(2966,"platform_www","platform.plugin.page.action"),r("BanzaiLogger").log("PagePluginActionsLoggerConfig",{page_id:n,page_plugin_action:s,page_plugin_action_type:"click",referer_url:a,is_sdk:t})})}p(l,"page_like"),p(s,"page_unlike"),p(u,"page_avatar"),p(c,"page_permalink"),p(d,"page_share"),p(m,"page_cta")}l.initializeClickLoggers=s}),98);
|
|
__d("SchedulerFeatureFlags",[],(function(t,n,r,o,a,i,l){var e=!0,s=!0,u=250,c=5e3,d=1e4;l.enableRequestPaint=e,l.enableSchedulerDebugging=s,l.userBlockingPriorityTimeout=u,l.normalPriorityTimeout=c,l.lowPriorityTimeout=d}),98);
|
|
__d("Scheduler-dev.classic",["SchedulerFeatureFlags"],(function(t,n,r,o,a,i){"use strict"}),null);
|
|
__d("Scheduler-profiling.classic",["SchedulerFeatureFlags"],(function(t,n,r,o,a,i){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=n("SchedulerFeatureFlags").enableRequestPaint;function l(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<c(o,t))e[r]=t,e[n]=o,n=r;else break e}}function s(e){return e.length===0?null:e[0]}function u(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var i=2*(r+1)-1,l=e[i],s=i+1,u=e[s];if(0>c(l,n))s<o&&0>c(u,l)?(e[r]=u,e[s]=n,r=s):(e[r]=l,e[i]=n,r=i);else if(s<o&&0>c(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function c(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();i.unstable_now=function(){return m.now()-p}}var _=[],f=[],g=1,h=null,y=3,C=!1,b=!1,v=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate!="undefined"?setImmediate:null;function k(e){for(var t=s(f);t!==null;){if(t.callback===null)u(f);else if(t.startTime<=e)u(f),t.sortIndex=t.expirationTime,l(_,t);else break;t=s(f)}}function I(e){if(v=!1,k(e),!b)if(s(_)!==null)b=!0,T||(T=!0,M());else{var t=s(f);t!==null&&F(I,t.startTime-e)}}var T=!1,D=-1,x=10,$=-1;function P(){return e&&S?!0:!(i.unstable_now()-$<x)}function N(){if(e&&(S=!1),T){var t=i.unstable_now();$=t;var n=!0;try{e:{b=!1,v&&(v=!1,L(D),D=-1),C=!0;var r=y;try{t:{for(k(t),h=s(_);h!==null&&!(h.expirationTime>t&&P());){var o=h.callback;if(typeof o=="function"){h.callback=null,y=h.priorityLevel;var a=o(h.expirationTime<=t);if(t=i.unstable_now(),typeof a=="function"){h.callback=a,k(t),n=!0;break t}h===s(_)&&u(_),k(t)}else u(_);h=s(_)}if(h!==null)n=!0;else{var l=s(f);l!==null&&F(I,l.startTime-t),n=!1}}break e}finally{h=null,y=r,C=!1}n=void 0}}finally{n?M():T=!1}}}var M;if(typeof E=="function")M=function(){E(N)};else if(typeof MessageChannel!="undefined"){var w=new MessageChannel,A=w.port2;w.port1.onmessage=N,M=function(){A.postMessage(null)}}else M=function(){R(N,0)};function F(e,t){D=R(function(){e(i.unstable_now())},t)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(e){e.callback=null},i.unstable_forceFrameRate=function(e){0>e||125<e||(x=0<e?Math.floor(1e3/e):10)},i.unstable_getCurrentPriorityLevel=function(){return y},i.unstable_next=function(e){switch(y){case 1:case 2:case 3:var t=3;break;default:t=y}var n=y;y=t;try{return e()}finally{y=n}},i.unstable_requestPaint=function(){e&&(S=!0)},i.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=y;y=e;try{return t()}finally{y=n}},i.unstable_scheduleCallback=function(e,t,n){var r=i.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:g++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,l(f,e),s(_)===null&&e===s(f)&&(v?(L(D),D=-1):v=!0,F(I,n-r))):(e.sortIndex=o,l(_,e),b||C||(b=!0,T||(T=!0,M()))),e},i.unstable_shouldYield=P,i.unstable_wrapCallback=function(e){var t=y;return function(){var n=y;y=t;try{return e.apply(this,arguments)}finally{y=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}),null);
|
|
__d("SchedulerFb-Internals_DO_NOT_USE",["Scheduler-dev.classic","Scheduler-profiling.classic","ifRequireable","requestAnimationFramePolyfill"],(function(t,n,r,o,a,i){"use strict";t.requestAnimationFrame===void 0&&(t.requestAnimationFrame=n("requestAnimationFramePolyfill"));var e;e=n("Scheduler-profiling.classic"),a.exports={unstable_ImmediatePriority:e.unstable_ImmediatePriority,unstable_UserBlockingPriority:e.unstable_UserBlockingPriority,unstable_NormalPriority:e.unstable_NormalPriority,unstable_LowPriority:e.unstable_LowPriority,unstable_IdlePriority:e.unstable_IdlePriority,unstable_getCurrentPriorityLevel:e.unstable_getCurrentPriorityLevel,unstable_runWithPriority:e.unstable_runWithPriority,unstable_now:e.unstable_now,unstable_scheduleCallback:function(r,o,a){var t=n("ifRequireable")("TimeSlice",function(e){return e.guard(o,"unstable_scheduleCallback",{propagationType:e.PropagationType.CONTINUATION,registerCallStack:!0})},function(){return o});return e.unstable_scheduleCallback(r,t,a)},unstable_cancelCallback:function(n){return e.unstable_cancelCallback(n)},unstable_wrapCallback:function(r){var t=n("ifRequireable")("TimeSlice",function(e){return e.guard(r,"unstable_wrapCallback",{propagationType:e.PropagationType.CONTINUATION,registerCallStack:!0})},function(){return r});return e.unstable_wrapCallback(t)},unstable_pauseExecution:function(){return e.unstable_pauseExecution()},unstable_continueExecution:function(){return e.unstable_continueExecution()},unstable_shouldYield:e.unstable_shouldYield,unstable_requestPaint:e.unstable_requestPaint,unstable_forceFrameRate:e.unstable_forceFrameRate,unstable_Profiling:e.unstable_Profiling}}),null);
|
|
__d("SubscriptionsHandler",["invariant"],(function(t,n,r,o,a,i,l,s){"use strict";var e=["remove","reset","unsubscribe","cancel","dispose"];function u(t){for(var n of e)if(typeof t[n]=="function")return t[n]}function c(e){var t;(t=u(e))==null||t.call(e)}var d=(function(){function e(){this.$1=[]}var t=e.prototype;return t.addSubscriptions=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.every(u)||s(0,3659),this.$1!=null?this.$1=this.$1.concat(t):t.forEach(c)},t.engage=function(){this.$1==null&&(this.$1=[])},t.release=function(){this.$1!=null&&(this.$1.forEach(c),this.$1=null)},t.releaseOne=function(t){var e=this.$1;if(e!=null){var n=e.indexOf(t);n!==-1&&(c(t),e.splice(n,1),e.length===0&&(this.$1=null))}},e})();l.default=d}),98);
|
|
__d("csx",[],(function(t,n,r,o,a,i){function e(e){throw new Error("csx: Unexpected class selector transformation.")}i.default=e}),66);
|
|
__d("randomInt",["invariant"],(function(t,n,r,o,a,i,l,s){function e(e,t){var n=t===void 0?[0,e]:[e,t],r=n[0],o=n[1];return o>r||s(0,1180,o,r),Math.floor(r+Math.random()*(o-r))}l.default=e}),98); |