PageSourceSearch

https://watchmoviezone.com/_next/static/chunks/3ha7nfzre9-vo.js

js watchmoviezone.com collected 2026-10-07 20:41:13 UTC 23,849 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,776457,e=>{"use strict";e.i(247167);var t=e.i(271645);function l(e){return null}l.getCollectionNode=function*(e,l){var n;let{childItems:i,title:s,children:r}=e,o=e.title||e.children,c=e.textValue||("string"==typeof o?o:"")||e["aria-label"]||"";yield{type:"item",props:e,rendered:o,textValue:c,"aria-label":e["aria-label"],hasChildNodes:null!=(n=e).hasChildItems?n.hasChildItems:!!(n.childItems||n.title&&t.default.Children.count(n.children)>0),*childNodes(){if(i)for(let e of i)yield{type:"item",value:e};else if(s){let e=[];t.default.Children.forEach(r,t=>{e.push({type:"item",element:t})}),yield*e}}}},e.s(["BaseItem",0,l],776457)},278242,e=>{"use strict";var t=e.i(111733),l=e.i(720246);let n=new WeakMap;e.s(["getCollectionId",0,function(e){return n.get(e)},"getItemElement",0,function(e,t){var l,n;let i=`[data-key="${CSS.escape(String(t))}"]`,s=null==(l=e.current)?void 0:l.dataset.collection;return s&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),null==(n=e.current)?void 0:n.querySelector(i)},"isNonContiguousSelectionModifier",0,function(e){return(0,t.isAppleDevice)()?e.altKey:e.ctrlKey},"useCollectionId",0,function(e){let t=(0,l.useId)();return n.set(e,t),t}])},699848,e=>{"use strict";var t=e.i(111733);e.s(["isCtrlKeyPressed",0,function(e){return(0,t.isMac)()?e.metaKey:e.ctrlKey}])},520111,e=>{"use strict";var t=e.i(791884),l=e.i(317430);function n(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}e.s(["dispatchVirtualFocus",0,n,"moveVirtualFocus",0,function(e){var i,s,r;let o,c,u=(i=(0,t.getOwnerDocument)(e),(c=null==(o=(0,l.getActiveElement)(i))?void 0:o.getAttribute("aria-activedescendant"))&&i.getElementById(c)||o);u!==e&&(u&&(s=u,r=e,s.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))),e&&n(e,u))}])},433004,e=>{"use strict";var t=e.i(271645);e.s(["useTypeSelect",0,function(e){let{keyboardDelegate:l,selectionManager:n,onTypeSelect:i}=e,s=(0,t.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:l.getKeyForSearch?e=>{var t;let r=1!==(t=e.key).length&&/^[A-Z]/i.test(t)?"":t;if(r&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)&&(0!==s.search.length||" "!==r)){if(" "===r&&s.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),s.search+=r,null!=l.getKeyForSearch){let e=l.getKeyForSearch(s.search,n.focusedKey);null==e&&(e=l.getKeyForSearch(s.search)),null!=e&&(n.setFocusedKey(e),i&&i(e))}clearTimeout(s.timeout),s.timeout=setTimeout(()=>{s.search=""},1e3)}}:void 0}}}])},383753,565030,526977,737807,e=>{"use strict";var t=e.i(991247),l=e.i(271645);e.s(["useEvent",0,function(e,n,i,s){let r=(0,t.useEffectEvent)(i),o=null==i;(0,l.useEffect)(()=>{if(o||!e.current)return;let t=e.current;return t.addEventListener(n,r,s),()=>{t.removeEventListener(n,r,s)}},[e,n,s,o,r])}],383753);var n=e.i(62789);function i(e,t){let l=s(e,t,"left"),n=s(e,t,"top"),i=t.offsetWidth,r=t.offsetHeight,o=e.scrollLeft,c=e.scrollTop,{borderTopWidth:u,borderLeftWidth:a,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:y,scrollPaddingLeft:h}=getComputedStyle(e),g=o+parseInt(a,10),p=c+parseInt(u,10),K=g+e.clientWidth,v=p+e.clientHeight,m=parseInt(d,10)||0,S=parseInt(y,10)||0,E=parseInt(f,10)||0,w=parseInt(h,10)||0;l<=o+w?o=l-parseInt(a,10)-w:l+i>K-E&&(o+=l+i-K+E),n<=p+m?c=n-parseInt(u,10)-m:n+r>v-S&&(c+=n+r-v+S),e.scrollLeft=o,e.scrollTop=c}function s(e,t,l){let n="left"===l?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[n];break}t=t.offsetParent}return i}e.s(["scrollIntoView",0,i,"scrollIntoViewport",0,function(e,t){if(e&&document.contains(e)){let c=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(c).overflow)for(let t of function(e){let t=[];for(;e&&e!==document.documentElement;
1)(0,n.isScrollable)(e,void 0)&&t.push(e),e=e.parentElement;return t}(e))i(t,e);else{var l,s,r,o;let{left:n,top:i}=e.getBoundingClientRect();null==e||null==(l=e.scrollIntoView)||l.call(e,{block:"nearest"});let{left:c,top:u}=e.getBoundingClientRect();(Math.abs(n-c)>1||Math.abs(i-u)>1)&&(null==t||null==(r=t.containingElement)||null==(s=r.scrollIntoView)||s.call(r,{block:"center",inline:"center"}),null==(o=e.scrollIntoView)||o.call(e,{block:"nearest"}))}}}],565030),e.s(["CLEAR_FOCUS_EVENT",0,"react-aria-clear-focus","FOCUS_EVENT",0,"react-aria-focus"],526977);var r=e.i(999661);e.s(["useUpdateLayoutEffect",0,function(e,t){let n=(0,l.useRef)(!0),i=(0,l.useRef)(null);(0,r.useLayoutEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,r.useLayoutEffect)(()=>{n.current?n.current=!1:(!i.current||t.some((e,t)=>!Object.is(e,i[t])))&&e(),i.current=t},t)}],737807)},487026,e=>{"use strict";var t=e.i(278242),l=e.i(433004),n=e.i(211458),i=e.i(699848),s=e.i(21318),r=e.i(383753),o=e.i(565030),c=e.i(526977),u=e.i(991247),a=e.i(317430),d=e.i(737807),f=e.i(750179),y=e.i(370864),h=e.i(520111),g=e.i(174080),p=e.i(271645),K=e.i(346996),v=e.i(700864),m=e.i(596102);e.s(["useSelectableCollection",0,function(e){let S,{selectionManager:E,keyboardDelegate:w,ref:b,autoFocus:F=!1,shouldFocusWrap:I=!1,disallowEmptySelection:C=!1,disallowSelectAll:k=!1,escapeKeyBehavior:M="clearSelection",selectOnFocus:T="replace"===E.selectionBehavior,disallowTypeAhead:A=!1,shouldUseVirtualFocus:x,allowsTabNavigation:D=!1,isVirtualized:P,scrollRef:L=b,linkBehavior:N="action"}=e,{direction:R}=(0,m.useLocale)(),B=(0,n.useRouter)(),V=(0,p.useRef)({top:0,left:0});(0,r.useEvent)(L,"scroll",P?void 0:()=>{var e,t,l,n;V.current={top:null!=(l=null==(e=L.current)?void 0:e.scrollTop)?l:0,left:null!=(n=null==(t=L.current)?void 0:t.scrollLeft)?n:0}});let O=(0,p.useRef)(!1);(0,r.useEvent)(b,c.FOCUS_EVENT,x?e=>{let{detail:t}=e;e.stopPropagation(),E.setFocused(!0),(null==t?void 0:t.focusStrategy)==="first"&&(O.current=!0)}:void 0);let $=(0,u.useEffectEvent)(()=>{var e,t;let l=null!=(t=null==(e=w.getFirstKey)?void 0:e.call(w))?t:null;if(null==l){let e=(0,a.getActiveElement)();(0,h.moveVirtualFocus)(b.current),(0,h.dispatchVirtualFocus)(e,null),E.collection.size>0&&(O.current=!1)}else E.setFocusedKey(l),O.current=!1});(0,d.useUpdateLayoutEffect)(()=>{O.current&&$()},[E.collection,$]);let U=(0,u.useEffectEvent)(()=>{E.collection.size>0&&(O.current=!1)});(0,d.useUpdateLayoutEffect)(()=>{U()},[E.focusedKey,U]),(0,r.useEvent)(b,c.CLEAR_FOCUS_EVENT,x?e=>{var t;e.stopPropagation(),E.setFocused(!1),(null==(t=e.detail)?void 0:t.clearFocusKey)&&E.setFocusedKey(null)}:void 0);let z=(0,p.useRef)(F),_=(0,p.useRef)(!1);(0,p.useEffect)(()=>{if(z.current){var e,t,l,n;let i=null;"first"===F&&(i=null!=(l=null==(e=w.getFirstKey)?void 0:e.call(w))?l:null),"last"===F&&(i=null!=(n=null==(t=w.getLastKey)?void 0:t.call(w))?n:null);let s=E.selectedKeys;if(s.size){for(let e of s)if(E.canSelectItem(e)){i=e;break}}E.setFocused(!0),E.setFocusedKey(i),null==i&&!x&&b.current&&(0,v.focusSafely)(b.current),E.collection.size>0&&(z.current=!1,_.current=!0)}});let W=(0,p.useRef)(E.focusedKey),H=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(E.isFocused&&null!=E.focusedKey&&(E.focusedKey!==W.current||_.current)&&L.current&&b.current){let e=(0,K.getInteractionModality)(),l=(0,t.getItemElement)(b,E.focusedKey);if(!(l instanceof HTMLElement))return;("keyboard"===e||_.current)&&(H.current&&cancelAnimationFrame(H.current),H.current=requestAnimationFrame(()=>{L.current&&((0,o.scrollIntoView)(L.current,l),"virtual"!==e&&(0,o.scrollIntoViewport)(l,{containingElement:b.current}))}))}!x&&E.isFocused&&null==E.focusedKey&&null!=W.current&&b.current&&(0,v.focusSafely)(b.current),W.current=E.focusedKey,_.current=!1}),(0,p.useEffect)(()=>()=>{H.current&&cancelAnimationFrame(H.current)},[]),(0,r.useEvent)(b,"react-aria-focus-scope-restore",e=>{e.preventDefault(),E.setFocused(!0)});let j={onKeyDown:e=>{var l,n,r,o,c,u,a,d,f,h,p,K,v;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null==(l=b.current)?void 0:l.contains(e.target)))return;let m=(l,n)=>{if(null!=l){if(E.isLink(l)&&"selection"===N&&T&&!(0,t.isNonContiguousSelectionModifier)(e)){(0,g.flushSync)(()=>{E.setFocusedKey(l,n)});let i=(0,t.getItemElement)(b,l),s=E.getItemProps(l);i&&B.open(i,e,s.href,s.routerOptions);return}E.setFocusedKey(l,n),E.isLink(l)&&"override"===N||(e.shiftKey&&"multiple"===E.selectionMode?E.extendSelection(l):T&&!(0,t.isNonContiguousSelectionModifier)(e)&&E.replaceSelection(l))}};switch(e.key){case"ArrowDown":if(w.getKeyBelow){let t=null!=E.focusedKey?null==(n=w.getKeyBelow)?void 0:n.call(w,E.focusedKey):null==(r=w.getFirstKey)?void 0:r.call(w);null==t&&I&&(t=null==(o=w.getFirstKey)?void 0:o.call(w,E.focusedKey)),null!=t&&(e.preventDefault(),m(t))}break;case"ArrowUp":if(w.getKeyAbove){let t=null!=E.focusedKey?null==(c=w.getKeyAbove)?void 0:c.call(w,E.focusedKey):null==(u=w.getLastKey)?void 0:u.call(w);null==t&&I&&(t=null==(a=w.getLastKey)?void 0:a.call(w,E.focusedKey)),null!=t&&(e.preventDefault(),m(t))}break;case"ArrowLeft":if(w.getKeyLeftOf){let t=null!=E.focusedKey?null==(d=w.getKeyLeftOf)?void 0:d.call(w,E.focusedKey):null;null==t&&I&&(t="rtl"===R?null==(f=w.getFirstKey)?void 0:f.call(w,E.focusedKey):null==(h=w.getLastKey)?void 0:h.call(w,E.focusedKey)),null!=t&&(e.preventDefault(),m(t,"rtl"===R?"first":"last"))}break;case"ArrowRight":if(w.getKeyRightOf){let t=null!=E.focusedKey?null==(p=w.getKeyRightOf)?void 0:p.call(w,E.focusedKey):null;null==t&&I&&(t="rtl"===R?null==(K=w.getLastKey)?void 0:K.call(w,E.focusedKey):null==(v=w.getFirstKey)?void 0:v.call(w,E.focusedKey)),null!=t&&(e.preventDefault(),m(t,"rtl"===R?"last":"first"))}break;case"Home":if(w.getFirstKey){if(null===E.focusedKey&&e.shiftKey)return;e.preventDefault();let t=w.getFirstKey(E.focusedKey,(0,i.isCtrlKeyPressed)(e));E.setFocusedKey(t),null!=t&&((0,i.isCtrlKeyPressed)(e)&&e.shiftKey&&"multiple"===E.selectionMode?E.extendSelection(t):T&&E.replaceSelection(t))}break;case"End":if(w.getLastKey){if(null===E.focusedKey&&e.shiftKey)return;e.preventDefault();let t=w.getLastKey(E.focusedKey,(0,i.isCtrlKeyPressed)(e));E.setFocusedKey(t),null!=t&&((0,i.isCtrlKeyPressed)(e)&&e.shiftKey&&"multiple"===E.selectionMode?E.extendSelection(t):T&&E.replaceSelection(t))}break;case"PageDown":if(w.getKeyPageBelow&&null!=E.focusedKey){let t=w.getKeyPageBelow(E.focusedKey);null!=t&&(e.preventDefault(),m(t))}break;case"PageUp":if(w.getKeyPageAbove&&null!=E.focusedKey){let t=w.getKeyPageAbove(E.focusedKey);null!=t&&(e.preventDefault(),m(t))}break;case"a":(0,i.isCtrlKeyPressed)(e)&&"multiple"===E.selectionMode&&!0!==k&&(e.preventDefault(),E.selectAll());break;case"Escape":"clearSelection"!==M||C||0===E.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),E.clearSelection());break;case"Tab":if(!D)if(e.shiftKey)b.current.focus();else{let e,t,l=(0,y.getFocusableTreeWalker)(b.current,{tabbable:!0});do(t=l.lastChild())&&(e=t);while(t)e&&!e.contains(document.activeElement)&&(0,s.focusWithoutScrolling)(e)}}},onFocus:e=>{if(E.isFocused){e.currentTarget.contains(e.target)||E.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(E.setFocused(!0),null==E.focusedKey){var l,n,i,r;let t=e=>{null!=e&&(E.setFocusedKey(e),T&&!E.isSelected(e)&&E.replaceSelection(e))},s=e.relatedTarget;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?t(null!=(i=E.lastSelectedKey)?i:null==(l=w.getLastKey)?void 0:l.call(w)):t(null!=(r=E.firstSelectedKey)?r:null==(n=w.getFirstKey)?void 0:n.call(w))}else!P&&L.current&&(L.current.scrollTop=V.current.top,L.current.scrollLeft=V.current.left);if(null!=E.focusedKey&&L.current){let e=(0,t.getItemElement)(b,E.focusedKey);e instanceof HTMLElement&&(e.contains(document.activeElement)||x||(0,s.focusWithoutScrolling)(e),"keyboard"===(0,K.getInteractionModality)()&&(0,o.scrollIntoViewport)(e,{containingElement:b.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||E.setFocused(!1)},onMouseDown(e){L.current===e.target&&e.preventDefault()}}
1,{typeSelectProps:q}=(0,l.useTypeSelect)({keyboardDelegate:w,selectionManager:E});A||(j=(0,f.mergeProps)(q,j)),x||(S=null==E.focusedKey?0:-1);let G=(0,t.useCollectionId)(E.collection);return{collectionProps:(0,f.mergeProps)(j,{tabIndex:S,"data-collection":G})}}])},269255,368948,735081,465240,e=>{"use strict";class t extends Set{constructor(e,l,n){super(e),e instanceof t?(this.anchorKey=null!=l?l:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=null!=l?l:null,this.currentKey=null!=n?n:null)}}var l=e.i(335190),n=e.i(271645);function i(e,l){return e?"all"===e?"all":new t(e):l}function s(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function r(e){var t=e;!1;let l=0;for(let e of t){if(0===l)return e;l++}}function o(e,t,l){if(t.parentKey===l.parentKey)return t.index-l.index;let n=[...c(e,t),t],i=[...c(e,l),l],s=n.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==s?(t=n[s],l=i[s],t.index-l.index):n.findIndex(e=>e===l)>=0?1:(i.findIndex(e=>e===t),-1)}function c(e,t){let l=[],n=t;for(;(null==n?void 0:n.parentKey)!=null;)(n=e.getItem(n.parentKey))&&l.unshift(n);return l}e.s(["useMultipleSelectionState",0,function(e){let{selectionMode:s="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:o,selectionBehavior:c="toggle",disabledBehavior:u="all"}=e,a=(0,n.useRef)(!1),[,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),y=(0,n.useRef)(null),[,h]=(0,n.useState)(null),g=(0,n.useMemo)(()=>i(e.selectedKeys),[e.selectedKeys]),p=(0,n.useMemo)(()=>i(e.defaultSelectedKeys,new t),[e.defaultSelectedKeys]),[K,v]=(0,l.useControlledState)(g,p,e.onSelectionChange),m=(0,n.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,E]=(0,n.useState)(c);"replace"===c&&"toggle"===S&&"object"==typeof K&&0===K.size&&E("replace");let w=(0,n.useRef)(c);return(0,n.useEffect)(()=>{c!==w.current&&(E(c),w.current=c)},[c]),{selectionMode:s,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:E,get isFocused(){return a.current},setFocused(e){a.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return y.current},setFocusedKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"first";f.current=e,y.current=t,h(e)},selectedKeys:K,setSelectedKeys(e){(o||!function(e,t){if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;return!0}(e,K))&&v(e)},disabledKeys:m,disabledBehavior:u}}],269255),e.s(["compareNodeOrder",0,o,"getChildNodes",0,s,"getFirstItem",0,r],368948);class u{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let l=this.collection.getItem(e);(!t||l&&0>o(this.collection,l,t))&&(t=l)}return null!=(e=null==t?void 0:t.key)?e:null}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let l=this.collection.getItem(e);(!t||l&&o(this.collection,l,t)>0)&&(t=l)}return null!=(e=null==t?void 0:t.key)?e:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let l;if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let n=this.getKey(e);if(null!=n){if("all"===this.state.selectedKeys)l=new t([n],n,n);else{var i,s;let e=this.state.selectedKeys,r=null!=(i=e.anchorKey)?i:n;for(let i of(l=new t(e,r,n),this.getKeyRange(r,null!=(s=e.currentKey)?s:n)))l.delete(i);for(let e of this.getKeyRange(n,r))this.canSelectItem(e)&&l.add(e)}this.state.setSelectedKeys(l)}}getKeyRange(e,t){let l=this.collection.getItem(e),n=this.collection.getItem(t);return l&&n?0>=o(this.collection,l,n)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(null==(l=this.layoutDelegate)?void 0:l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],i=e;for(;null!=i;){let e=this.collection.getItem(i);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(i),i===t)return n;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);let l=this.getKey(e);if(null==l)return;
1let n=new t("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);n.has(l)?n.delete(l):this.canSelectItem(l)&&(n.add(l),n.anchorKey=l,n.currentKey=l),this.disallowEmptySelection&&0===n.size||this.state.setSelectedKeys(n)}replaceSelection(e){if("none"===this.selectionMode)return;let l=this.getKey(e);if(null==l)return;let n=this.canSelectItem(l)?new t([l],l,l):new t;this.state.setSelectedKeys(n)}setSelectedKeys(e){if("none"===this.selectionMode)return;let l=new t;for(let t of e){let e=this.getKey(t);if(null!=e&&(l.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(l)}getSelectAllKeys(){let e=[],t=l=>{for(;null!=l;){if(this.canSelectItem(l)){var n,i;let o=this.collection.getItem(l);(null==o?void 0:o.type)==="item"&&e.push(l),(null==o?void 0:o.hasChildNodes)&&(this.allowsCellSelection||"item"!==o.type)&&t(null!=(i=null==(n=r(s(o,this.collection)))?void 0:n.key)?i:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new t)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!!l&&(null==l||null==(t=l.props)||!t.isDisabled)&&("cell"!==l.type||!!this.allowsCellSelection)}isDisabled(e){var t,l;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null==(l=this.collection.getItem(e))||null==(t=l.props)?void 0:t.isDisabled))}isLink(e){var t,l;return!!(null==(l=this.collection.getItem(e))||null==(t=l.props)?void 0:t.href)}getItemProps(e){var t;return null==(t=this.collection.getItem(e))?void 0:t.props}withCollection(e){return new u(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){var n;this.collection=e,this.state=t,this.allowsCellSelection=null!=(n=null==l?void 0:l.allowsCellSelection)&&n,this._isSelectAll=null,this.layoutDelegate=(null==l?void 0:l.layoutDelegate)||null}}e.s(["SelectionManager",0,u],735081);class a{build(e,t){return this.context=t,d(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(n.default.isValidElement(t)&&t.type===n.default.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if("function"==typeof t){if(!l)throw Error("props.children was a function but props.items is missing");let e=0;for(let n of l)yield*this.getFullNode({value:n,index:e},{renderer:t}),e++}else{let e=[];n.default.Children.forEach(t,t=>{t&&e.push(t)});let l=0;for(let t of e)for(let e of this.getFullNode({element:t,index:l},{}))l++,yield e}}getKey(e,t,l,n){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${n}${t.key}`;let i=t.value;if(null!=i){var s;let e=null!=(s=i.key)?s:i.id;if(null==e)throw Error("No key found for item");return e}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,i){var s,r,o,c,u,a,y,h;if(n.default.isValidElement(e.element)&&e.element.type===n.default.Fragment){let r=[];n.default.Children.forEach(e.element.props.children,e=>{r.push(e)});let o=null!=(s=e.index)?s:0;for(let e of r)yield*this.getFullNode({element:e,index:o++},t,l,i);return}let g=e.element;if(!g&&e.value&&t&&t.renderer){let l=this.cache.get(e.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=e.index,l.parentKey=i?i.key:null,yield l;return}g=t.renderer(e.value)}if(n.default.isValidElement(g)){let n=g.type;if("function"!=typeof n&&"function"!=typeof n.getCollectionNode){let e=g.type;throw Error(`Unknown element <${e}> in collection.`)}let s=n.getCollectionNode(g.props,this.context),d=null!=(r=e.index)?r:0,y=s.next();for(;!y.done&&y.value;){let n=y.value;e.index=d;let r=null!=(o=n.key)?o:null;null==r&&(r=n.element?null:this.getKey(g,e,t,l));let h=[...this.getFullNode({...n,key:r,index:d,wrapper:function(e,t){return e&&t?l=>e(t(l)):e||t||void 0}(e.wrapper,n.wrapper)},this.getChildState(t,n),l?`${l}${g.key}`:g.key,i)];for(let t of h){if(t.value=null!=(u=null!=(c=n.value)?c:e.value)?u:null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${f(t.type)}> in <${f(null!=(a=null==i?void 0:i.type)?a:"unknown parent type")}>. Only <${f(e.type)}> is supported.`);d++,yield t}y=s.next(h)}return}if(null==e.key||null==e.type)return;let p=this,K={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:null!=(y=e.value)?y:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:null!=(h=e.textValue)?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:d(function*(){if(!e.hasChildNodes||!e.childNodes)return;let l=0;for(let n of e.childNodes())for(let e of(null!=n.key&&(n.key=`${K.key}${n.key}`),p.getFullNode({...n,index:l},p.getChildState(t,n),K.key,K)))l++,yield e})};yield K}constructor(){this.cache=new WeakMap}}function d(e){let t=[],l=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let n of(l||(l=e()),l))t.push(n),yield n}}}function f(e){return e[0].toUpperCase()+e.slice(1)}e.s(["useCollection",0,function(e,t,l){let i=(0,n.useMemo)(()=>new a,[]),{children:s,items:r,collection:o}=e;return(0,n.useMemo)(()=>o||t(i.build({children:s,items:r},l)),[i,s,r,o,l,t])}],465240)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.