PageSourceSearch

https://thespinoff.co.nz/_next/static/chunks/8028-d3eb762c4d57a6df.js

js thespinoff.co.nz collected 2026-10-01 08:56:15 UTC 11,493 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8028],{62286:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.destroyCookie=t.setCookie=t.parseCookies=void 0;var o=r(10026),i=r(69328),a=r(51022);function s(e,t){var r,n;return(null===(n=null===(r=null===e||void 0===e?void 0:e.req)||void 0===r?void 0:r.headers)||void 0===n?void 0:n.cookie)?o.parse(e.req.headers.cookie,t):a.isBrowser()?o.parse(document.cookie,t):{}}function u(e,t,r,s){var u,c;if(void 0===s&&(s={}),(null===(u=null===e||void 0===e?void 0:e.res)||void 0===u?void 0:u.getHeader)&&e.res.setHeader){if(null===(c=null===e||void 0===e?void 0:e.res)||void 0===c?void 0:c.finished)return console.warn('Not setting "'+t+'" cookie. Response has finished.'),console.warn("You should set cookie before res.send()"),{};var f=e.res.getHeader("Set-Cookie")||[];"string"===typeof f&&(f=[f]),"number"===typeof f&&(f=[]);var l=i.parse(f,{decodeValues:!1}),p=a.createCookie(t,r,s),d=[];l.forEach((function(e){if(!a.areCookiesEqual(e,p)){var t=o.serialize(e.name,e.value,n({encode:function(e){return e}},e));d.push(t)}})),d.push(o.serialize(t,r,s)),e.res.setHeader("Set-Cookie",d)}if(a.isBrowser()){if(s&&s.httpOnly)throw new Error("Can not set a httpOnly cookie in the browser.");document.cookie=o.serialize(t,r,s)}return{}}function c(e,t,r){return u(e,t,"",n(n({},r||{}),{maxAge:-1}))}t.parseCookies=s,t.setCookie=u,t.destroyCookie=c,t.default={set:u,get:s,destroy:c}},51022:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function n(e,t){var r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o];if(e[i]!==t[i])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesEqual=t.hasSameProperties=t.createCookie=t.isBrowser=void 0,t.isBrowser=function(){return"undefined"!==typeof window},t.createCookie=function(e,t,n){var o=n.sameSite;!0===o&&(o="strict"),void 0!==o&&!1!==o||(o="lax");var i=r(r({},n),{sameSite:o});return delete i.encode,r({name:e,value:t},i)},t.hasSameProperties=n,t.areCookiesEqual=function(e,t){var o=e.sameSite===t.sameSite;return"string"===typeof e.sameSite&&"string"===typeof t.sameSite&&(o=e.sameSite.toLowerCase()===t.sameSite.toLowerCase()),n(r(r({},e),{sameSite:void 0}),r(r({},t),{sameSite:void 0}))&&o}},10026:function(e,t){t.parse=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var n={},o=t||{},a=e.split(";"),s=o.decode||r,u=0;u<a.length;u++){var c=a[u],f=c.indexOf("=");if(!(f<0)){var l=c.substring(0,f).trim();if(void 0==n[l]){var p=c.substring(f+1,c.length).trim();'"'===p[0]&&(p=p.slice(1,-1)),n[l]=i(p,s)}}}return n},t.serialize=function(e,t,r){var i=r||{},a=i.encode||n;if("function"!==typeof a)throw new TypeError("option encode is invalid");if(!o.test(e))throw new TypeError("argument name is invalid");var s=a(t);if(s&&!o.test(s))throw new TypeError("argument val is invalid");var u=e+"="+s;if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c)||!isFinite(c))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(c)}if(i.domain){if(!o.test(i.domain))throw new TypeError("option domain is invalid");u+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw new TypeError("option path is invalid");u+="; Path="+i.path}if(i.expires){if("function"!==typeof i.expires.toUTCString)throw new TypeError("option expires is invali
1d");u+="; Expires="+i.expires.toUTCString()}i.httpOnly&&(u+="; HttpOnly");i.secure&&(u+="; Secure");if(i.sameSite){switch("string"===typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var r=decodeURIComponent,n=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e,t){try{return t(e)}catch(r){return e}}},96714:function(e,t,r){var n=r(67294),o="undefined"!==typeof window?null!==n.useInsertionEffect&&void 0!==n.useInsertionEffect?n.useInsertionEffect:n.useLayoutEffect:function(){};function i(e){var t=(0,n.useRef)(a);o((function(){t.current=e}),[e]);var r=(0,n.useRef)(null);return r.current||(r.current=function(){return t.current.apply(this,arguments)}),r.current}function a(){throw new Error("INVALID_USEEVENT_INVOCATION: the callback from useEvent cannot be invoked before the component has mounted.")}t.ZP=i},69328:function(e){var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"===typeof e&&!!e.trim()}function n(e,n){var o=e.split(";").filter(r),i=function(e){var t="",r="",n=e.split("=");n.length>1?(t=n.shift(),r=n.join("=")):r=e;return{name:t,value:r}}(o.shift()),a=i.name,s=i.value;n=n?Object.assign({},t,n):t;try{s=n.decodeValues?decodeURIComponent(s):s}catch(c){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",c)}var u={name:a,value:s};return o.forEach((function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase(),n=t.join("=");"expires"===r?u.expires=new Date(n):"max-age"===r?u.maxAge=parseInt(n,10):"secure"===r?u.secure=!0:"httponly"===r?u.httpOnly=!0:"samesite"===r?u.sameSite=n:u[r]=n})),u}function o(e,o){if(o=o?Object.assign({},t,o):t,!e)return o.map?{}:[];if(e.headers&&e.headers["set-cookie"])e=e.headers["set-cookie"];else if(e.headers){var i=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];i||!e.headers.cookie||o.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=i}if(Array.isArray(e)||(e=[e]),(o=o?Object.assign({},t,o):t).map){return e.filter(r).reduce((function(e,t){var r=n(t,o);return e[r.name]=r,e}),{})}return e.filter(r).map((function(e){return n(e,o)}))}e.exports=o,e.exports.parse=o,e.exports.parseString=n,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!==typeof e)return[];var t,r,n,o,i,a=[],s=0;function u(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,i=!1;u();)if(","===(r=e.charAt(s))){for(n=s,s+=1,u(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(i=!0,s=o,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!i||s>=e.length)&&a.push(e.substring(t,e.length))}return a}},44593:function(e,t,r){r.d(t,{ZP:function(){return C}});var n=r(67294),o=r(8100),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(t){i(t)}}function s(e){try{u(n.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function s(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var u,c,f=function(){},l=f(),p=Object,d=function(e){return e===l},h=function(e){return"function"==typeof e},v=!("undefined"!=typeof window)||"Deno"in window?n.useEffect:n.useLayoutEffect,g=new WeakMap,y=0,m=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(p(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=g.get(e))return t;if(t=++y+"~",g.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=m(e[r])+",";g.set(e,t)}if(o==p){t="#";for(var a=p.keys(e).sort();!d(r=a.pop());)d(e[r])||(t+=r+":"+m(e[r])+",");g.set(e,t)}}return t},w=function(e){if(h(e))try{e=e()}catch(r){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t,e?"$swr$"+e:""]},b=function(e){return h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},k="$inf$",S=function(e){return w(e?e(0,null):null)[0]}
1,C=(u=o.ZP,c=function(e){return function(t,r,o){var i=(0,n.useState)({})[1],u=(0,n.useRef)(!1),c=(0,n.useRef)(),f=o.cache,p=o.initialSize,g=void 0===p?1:p,y=o.revalidateAll,m=void 0!==y&&y,b=o.persistSize,C=void 0!==b&&b,E=o.revalidateFirstPage,O=void 0===E||E,x=o.revalidateOnMount,A=void 0!==x&&x,j=null;try{j=S(t)}catch($){}var P=null,N=null;j&&(P="$ctx$"+j,N="$len$"+j);var T=(0,n.useCallback)((function(){var e=f.get(N);return d(e)?g:e}),[N,g]),_=(0,n.useRef)(T());v((function(){u.current?j&&f.set(N,C?_.current:g):u.current=!0}),[j]);var I=A&&!u.current,L=e(j?k+j:null,(function(){return a(void 0,void 0,void 0,(function(){var e,n,i,a,u,l,p,h,v,g,y,b;return s(this,(function(s){switch(s.label){case 0:e=f.get(P)||[],n=e[0],i=e[1],a=[],u=T(),l=null,p=0,s.label=1;case 1:return p<u?(h=w(t(p,l)),v=h[0],g=h[1],v?(y=f.get(v),b=m||n||d(y)||O&&!p&&!d(c.current)||I||i&&!d(i[p])&&!o.compare(i[p],y),r&&b?[4,r.apply(void 0,g)]:[3,3]):[3,5]):[3,5];case 2:y=s.sent(),f.set(v,y),s.label=3;case 3:a.push(y),l=y,s.label=4;case 4:return++p,[3,1];case 5:return f.delete(P),[2,a]}}))}))}),o);v((function(){c.current=L.data}),[L.data]);var R=(0,n.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],n=!1!==e[1];if(P){if(n)if(d(r))f.set(P,[!0]);else{var o=c.current;f.set(P,[!1,o])}return e.length?L.mutate(r,n):L.mutate()}}),[P]),V=(0,n.useCallback)((function(e){var r;if(N&&(h(e)?r=e(T()):"number"==typeof e&&(r=e),"number"==typeof r))return f.set(N,r),_.current=r,i({}),R(function(e){for(var r=[],n=null,o=0;o<e;++o){var i=w(t(o,n))[0],a=i?f.get(i):l;if(d(a))return c.current;r.push(a),n=a}return r}(r))}),[N,T,R]);return{size:T(),setSize:V,mutate:R,get error(){return L.error},get data(){return L.data},get isValidating(){return L.isValidating}}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=b(e),n=r[0],o=r[1],a=r[2],s=(a.use||[]).concat(c);return u(n,o,i(i({},a),{use:s}))})}}]);

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.