PageSourceSearch

https://croucher.org.hk/_next/static/chunks/33536-0865010faf8b1205.js

js croucher.org.hk collected 2026-09-24 09:28:55 UTC 8,509 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[33536],{5602:(t,e,r)=>{"use strict";r.d(e,{useMutation:()=>b});var n=r(71983),o=r(45849),s=r(12115),i=r(26878),u=r(47288),c=r(4753),a=r(19074);class l extends a.Q{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let r=this.options;this.options=this.client.defaultMutationOptions(t),(0,i.f8)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:(0,u.$)(),e={...t,isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=e}notify(t){c.j.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,r,n,o,s,i,u,c;t.onSuccess?(null==(e=(r=this.mutateOptions).onSuccess)||e.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(o=this.mutateOptions).onSettled)||n.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(s=(i=this.mutateOptions).onError)||s.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(u=(c=this.mutateOptions).onSettled)||u.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}var p=r(47491),h=r(45089),f=r(90048);function b(t,e,r){let u=(0,i.GR)(t,e,r),a=(0,h.useQueryClient)({context:u.context}),[b]=s.useState(()=>new l(a,u));s.useEffect(()=>{b.setOptions(u)},[b,u]);let v=(0,p.r)(s.useCallback(t=>b.subscribe(c.j.batchCalls(t)),[b]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),j=s.useCallback((t,e)=>{b.mutate(t,e).catch(y)},[b]);if(v.error&&(0,f.G)(b.options.useErrorBoundary,[v.error]))throw v.error;return(0,o._)((0,n._)({},v),{mutate:j,mutateAsync:v.mutate})}function y(){}},17719:(t,e,r)=>{t.exports=r(83558)(r(51483),"Map")},21457:t=>{t.exports=function(){return!1}},24402:(t,e,r)=>{t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},25411:t=>{t.exports=Array.isArray},25902:(t,e,r)=>{var n=r(32598),o=r(26526),s=Object.prototype,i=s.hasOwnProperty,u=s.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(t){return o(t)&&i.call(t,"callee")&&!u.call(t,"callee")}},26526:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},26660:(t,e,r)=>{t.exports=r(59955)(Object.keys,Object)},26745:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},29514:(t,e,r)=>{t.exports=r(83558)(r(51483),"DataView")},32198:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},32499:(t,e,r)=>{t.exports=r(83558)(r(51483),"WeakMap")},32598:(t,e,r)=>{var n=r(80942),o=r(26526);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},35206:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},35443:(t,e,r)=>{var n=r(73423),o=Object.prototype,s=o.hasOwnProperty,i=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=s.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[u]=r:delete t[u]),o}},37183:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},37951:(t,e,r)=>{var n=r(80942),o=r(35206),s=r(26526),i={};
1i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&o(t.length)&&!!i[n(t)]}},38055:(t,e,r)=>{var n=r(37951),o=r(99425),s=r(83903),i=s&&s.isTypedArray;t.exports=i?o(i):n},39058:(t,e,r)=>{var n=r(78363),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},42979:(t,e,r)=>{var n=r(29514),o=r(17719),s=r(69568),i=r(45645),u=r(32499),c=r(80942),a=r(37183),l="[object Map]",p="[object Promise]",h="[object Set]",f="[object WeakMap]",b="[object DataView]",y=a(n),v=a(o),j=a(s),d=a(i),x=a(u),O=c;(n&&O(new n(new ArrayBuffer(1)))!=b||o&&O(new o)!=l||s&&O(s.resolve())!=p||i&&O(new i)!=h||u&&O(new u)!=f)&&(O=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case y:return b;case v:return l;case j:return p;case d:return h;case x:return f}return e}),t.exports=O},45645:(t,e,r)=>{t.exports=r(83558)(r(51483),"Set")},48728:(t,e,r)=>{t=r.nmd(t);var n=r(51483),o=r(21457),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,u=i&&i.exports===s?n.Buffer:void 0,c=u?u.isBuffer:void 0;t.exports=c||o},48908:(t,e,r)=>{var n=r(71730),o=r(35206);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},51483:(t,e,r)=>{var n=r(24402),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||o||Function("return this")()},58840:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},59955:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},63134:(t,e,r)=>{var n=r(95295),o=r(26660),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))s.call(t,r)&&"constructor"!=r&&e.push(r);return e}},69568:(t,e,r)=>{t.exports=r(83558)(r(51483),"Promise")},71730:(t,e,r)=>{var n=r(80942),o=r(26745);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},73423:(t,e,r)=>{t.exports=r(51483).Symbol},78363:(t,e,r)=>{t.exports=r(51483)["__core-js_shared__"]},80942:(t,e,r)=>{var n=r(73423),o=r(35443),s=r(58840),i=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):s(t)}},83558:(t,e,r)=>{var n=r(94885),o=r(32198);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},83903:(t,e,r)=>{t=r.nmd(t);var n=r(24402),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,i=s&&s.exports===o&&n.process,u=function(){try{var t=s&&s.require&&s.require("util").types;if(t)return t;return i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=u},94885:(t,e,r)=>{var n=r(71730),o=r(39058),s=r(26745),i=r(37183),u=/^\[object .+?Constructor\]$/,c=Object.prototype,a=Function.prototype.toString,l=c.hasOwnProperty,p=RegExp("^"+a.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||o(t))&&(n(t)?p:u).test(i(t))}},95295:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},98967:(t,e,r)=>{var n=r(63134),o=r(42979),s=r(25902),i=r(25411),u=r(48908),c=r(48728),a=r(95295),l=r(38055),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||s(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(a(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},99425:t=>{t.exports=function(t){return function(e){return t(e)}}}}]);

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.