Scripts/resources/[phone]/npwd/dist/html/1999.js

1 line
78 KiB
JavaScript
Raw Normal View History

2024-12-29 19:49:12 +00:00
"use strict";(self.webpackChunk_npwd_nui=self.webpackChunk_npwd_nui||[]).push([[1999],{21999:function(e,t,n){n.r(t),n.d(t,{DefaultValue:function(){return ji},RecoilEnv:function(){return Yi},RecoilLoadable:function(){return Zi},RecoilRoot:function(){return Ji},atom:function(){return es},atomFamily:function(){return ns},constSelector:function(){return rs},errorSelector:function(){return as},isRecoilValue:function(){return qi},noWait:function(){return ss},readOnlySelector:function(){return is},retentionZone:function(){return Vs},selector:function(){return ts},selectorFamily:function(){return os},snapshot_UNSTABLE:function(){return Ls},useGetRecoilValueInfo_UNSTABLE:function(){return Ss},useGotoRecoilSnapshot:function(){return As},useRecoilBridgeAcrossReactRoots_UNSTABLE:function(){return Qi},useRecoilCallback:function(){return bs},useRecoilRefresher_UNSTABLE:function(){return ms},useRecoilSnapshot:function(){return Es},useRecoilState:function(){return ps},useRecoilStateLoadable:function(){return vs},useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(){return Ts},useRecoilStoreID:function(){return Xi},useRecoilTransactionObserver_UNSTABLE:function(){return Ns},useRecoilTransaction_UNSTABLE:function(){return ws},useRecoilValue:function(){return fs},useRecoilValueLoadable:function(){return hs},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:function(){return gs},useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:function(){return Rs},useResetRecoilState:function(){return ys},useRetain:function(){return ks},useSetRecoilState:function(){return _s},waitForAll:function(){return ls},waitForAllSettled:function(){return ds},waitForAny:function(){return cs},waitForNone:function(){return us}});var o=n(53182),r=n.n(o),a=n(72367),i=n.n(a),s=function(e){const t=new Error(e);if(void 0===t.stack)try{throw t}catch(e){}return t},u=function(e){return!!e&&"function"==typeof e.then},c=function(e,t){if(null!=e)return e;throw s(null!=t?t:"Got unexpected null or undefined")};function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{getValue(){throw s("BaseLoadable")}toPromise(){throw s("BaseLoadable")}valueMaybe(){throw s("BaseLoadable")}valueOrThrow(){throw s(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw s("BaseLoadable")}promiseOrThrow(){throw s(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw s("BaseLoadable")}errorOrThrow(){throw s(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw s("BaseLoadable")}}class f extends d{constructor(e){super(),l(this,"state","hasValue"),l(this,"contents",void 0),this.contents=e}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(e){try{const t=e(this.contents);return u(t)?y(t):g(t)?t:v(t)}catch(t){return u(t)?y(t.next((()=>this.map(e)))):_(t)}}}class h extends d{constructor(e){super(),l(this,"state","hasError"),l(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class p extends d{constructor(e){super(),l(this,"state","loading"),l(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return y(this.contents.then((t=>{const n=e(t);if(g(n)){const e=n;switch(e.state){case"hasValue":case"loading":return e.contents;case"hasError":throw e.contents}}return n})).catch((t=>{if(u(t))return t.then((()=>this.map(e).contents));throw t})))}}function v(e){return Object.freeze(new f(e))}function _(e){return Object.freeze(new h(e))}function y(e){return Object.freeze(new p(e))}function S(){return Object.freeze(new p(new Promise((()=>{}))))}function m(e){c