(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([["main-app"],{ /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/build/deployment-id.js": /*!*********************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/build/deployment-id.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "getDeploymentIdQueryOrEmptyString", ({ enumerable: true, get: function() { return getDeploymentIdQueryOrEmptyString; } })); function getDeploymentIdQueryOrEmptyString() { if (false) {} return ""; } //# sourceMappingURL=deployment-id.js.map /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/build/polyfills/polyfill-module.js": /*!*********************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/build/polyfills/polyfill-module.js ***! \*********************************************************************************************************/ /***/ (function() { "trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var t=/\((.*)\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if("function"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}),Array.prototype.at||(Array.prototype.at=function(t){var r=Math.trunc(t)||0;if(r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]}),Object.hasOwn||(Object.hasOwn=function(t,r){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),r)}),"canParse"in URL||(URL.canParse=function(t,r){try{return!!new URL(t,r)}catch(t){return!1}}); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js": /*!**********************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js ***! \**********************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * MIT License * * Copyright (c) Facebook, Inc. and its affiliates. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); // This file is copied from the Metro JavaScript bundler, with minor tweaks for // webpack 4 compatibility. // // https://github.com/facebook/metro/blob/d6b9685c730d0d63577db40f41369157f28dfa3a/packages/metro/src/lib/polyfills/require.js const runtime_1 = __importDefault(__webpack_require__(/*! next/dist/compiled/react-refresh/runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-refresh/runtime.js")); function isSafeExport(key) { return (key === '__esModule' || key === '__N_SSG' || key === '__N_SSP' || // TODO: remove this key from page config instead of allow listing it key === 'config'); } function registerExportsForReactRefresh(moduleExports, moduleID) { runtime_1.default.register(moduleExports, moduleID + ' %exports%'); if (moduleExports == null || typeof moduleExports !== 'object') { // Exit if we can't iterate over exports. // (This is important for legacy environments.) return; } for (var key in moduleExports) { if (isSafeExport(key)) { continue; } try { var exportValue = moduleExports[key]; } catch (_a) { // This might fail due to circular dependencies continue; } var typeID = moduleID + ' %exports% ' + key; runtime_1.default.register(exportValue, typeID); } } function getRefreshBoundarySignature(moduleExports) { var signature = []; signature.push(runtime_1.default.getFamilyByType(moduleExports)); if (moduleExports == null || typeof moduleExports !== 'object') { // Exit if we can't iterate over exports. // (This is important for legacy environments.) return signature; } for (var key in moduleExports) { if (isSafeExport(key)) { continue; } try { var exportValue = moduleExports[key]; } catch (_a) { // This might fail due to circular dependencies continue; } signature.push(key); signature.push(runtime_1.default.getFamilyByType(exportValue)); } return signature; } function isReactRefreshBoundary(moduleExports) { if (runtime_1.default.isLikelyComponentType(moduleExports)) { return true; } if (moduleExports == null || typeof moduleExports !== 'object') { // Exit if we can't iterate over exports. return false; } var hasExports = false; var areAllExportsComponents = true; for (var key in moduleExports) { hasExports = true; if (isSafeExport(key)) { continue; } try { var exportValue = moduleExports[key]; } catch (_a) { // This might fail due to circular dependencies return false; } if (!runtime_1.default.isLikelyComponentType(exportValue)) { areAllExportsComponents = false; } } return hasExports && areAllExportsComponents; } function shouldInvalidateReactRefreshBoundary(prevSignature, nextSignature) { if (prevSignature.length !== nextSignature.length) { return true; } for (var i = 0; i < nextSignature.length; i++) { if (prevSignature[i] !== nextSignature[i]) { return true; } } return false; } var isUpdateScheduled = false; // This function aggregates updates from multiple modules into a single React Refresh call. function scheduleUpdate() { if (isUpdateScheduled) { return; } isUpdateScheduled = true; function canApplyUpdate(status) { return status === 'idle'; } function applyUpdate() { isUpdateScheduled = false; try { runtime_1.default.performReactRefresh(); } catch (err) { console.warn('Warning: Failed to re-render. We will retry on the next Fast Refresh event.\n' + err); } } if (canApplyUpdate(module.hot.status())) { // Apply update on the next tick. Promise.resolve().then(() => { applyUpdate(); }); return; } const statusHandler = (status) => { if (canApplyUpdate(status)) { module.hot.removeStatusHandler(statusHandler); applyUpdate(); } }; // Apply update once the HMR runtime's status is idle. module.hot.addStatusHandler(statusHandler); } // Needs to be compatible with IE11 exports["default"] = { registerExportsForReactRefresh: registerExportsForReactRefresh, isReactRefreshBoundary: isReactRefreshBoundary, shouldInvalidateReactRefreshBoundary: shouldInvalidateReactRefreshBoundary, getRefreshBoundarySignature: getRefreshBoundarySignature, scheduleUpdate: scheduleUpdate, }; //# sourceMappingURL=helpers.js.map /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js": /*!*************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js ***! \*************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); const runtime_1 = __importDefault(__webpack_require__(/*! next/dist/compiled/react-refresh/runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-refresh/runtime.js")); const helpers_1 = __importDefault(__webpack_require__(/*! ./internal/helpers */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js")); // Hook into ReactDOM initialization runtime_1.default.injectIntoGlobalHook(self); // Register global helpers self.$RefreshHelpers$ = helpers_1.default; // Register a helper for module execution interception self.$RefreshInterceptModuleExecution$ = function (webpackModuleId) { var prevRefreshReg = self.$RefreshReg$; var prevRefreshSig = self.$RefreshSig$; self.$RefreshReg$ = function (type, id) { runtime_1.default.register(type, webpackModuleId + ' ' + id); }; self.$RefreshSig$ = runtime_1.default.createSignatureFunctionForTransform; // Modeled after `useEffect` cleanup pattern: // https://react.dev/learn/synchronizing-with-effects#step-3-add-cleanup-if-needed return function () { self.$RefreshReg$ = prevRefreshReg; self.$RefreshSig$ = prevRefreshSig; }; }; //# sourceMappingURL=runtime.js.map /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/anser/index.js": /*!**********************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/anser/index.js ***! \**********************************************************************************************/ /***/ (function(module) { var __dirname = "/"; (()=>{"use strict";var e={211:e=>{var r=function(){function defineProperties(e,r){for(var n=0;n]/gm,(function(e){return e=="&"?"&":e=="<"?"<":e==">"?">":""}))}},{key:"linkify",value:function linkify(e){return e.replace(/(https?:\/\/[^\s]+)/gm,(function(e){return''+e+""}))}},{key:"ansiToHtml",value:function ansiToHtml(e,r){return this.process(e,r,true)}},{key:"ansiToJson",value:function ansiToJson(e,r){r=r||{};r.json=true;r.clearLine=false;return this.process(e,r,true)}},{key:"ansiToText",value:function ansiToText(e){return this.process(e,{},false)}},{key:"process",value:function process(e,r,n){var s=this;var i=this;var t=e.split(/\033\[/);var o=t.shift();if(r===undefined||r===null){r={}}r.clearLine=/\r/.test(e);var a=t.map((function(e){return s.processChunk(e,r,n)}));if(r&&r.json){var l=i.processChunkJson("");l.content=o;l.clearLine=r.clearLine;a.unshift(l);if(r.remove_empty){a=a.filter((function(e){return!e.isEmpty()}))}return a}else{a.unshift(o)}return a.join("")}},{key:"processChunkJson",value:function processChunkJson(e,r,s){r=typeof r=="undefined"?{}:r;var i=r.use_classes=typeof r.use_classes!="undefined"&&r.use_classes;var t=r.key=i?"class":"color";var o={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,clearLine:r.clearLine,decoration:null,was_processed:false,isEmpty:function isEmpty(){return!o.content}};var a=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!a)return o;var l=o.content=a[4];var c=a[2].split(";");if(a[1]!==""||a[3]!=="m"){return o}if(!s){return o}var u=this;u.decoration=null;while(c.length>0){var f=c.shift();var h=parseInt(f);if(isNaN(h)||h===0){u.fg=u.bg=u.decoration=null}else if(h===1){u.decoration="bold"}else if(h===2){u.decoration="dim"}else if(h==3){u.decoration="italic"}else if(h==4){u.decoration="underline"}else if(h==5){u.decoration="blink"}else if(h===7){u.decoration="reverse"}else if(h===8){u.decoration="hidden"}else if(h===9){u.decoration="strikethrough"}else if(h==39){u.fg=null}else if(h==49){u.bg=null}else if(h>=30&&h<38){u.fg=n[0][h%10][t]}else if(h>=90&&h<98){u.fg=n[1][h%10][t]}else if(h>=40&&h<48){u.bg=n[0][h%10][t]}else if(h>=100&&h<108){u.bg=n[1][h%10][t]}else if(h===38||h===48){var p=h===38;if(c.length>=1){var g=c.shift();if(g==="5"&&c.length>=1){var v=parseInt(c.shift());if(v>=0&&v<=255){if(!i){if(!this.PALETTE_COLORS){u.setupPalette()}if(p){u.fg=this.PALETTE_COLORS[v]}else{u.bg=this.PALETTE_COLORS[v]}}else{var d=v>=16?"ansi-palette-"+v:n[v>7?1:0][v%8]["class"];if(p){u.fg=d}else{u.bg=d}}}}else if(g==="2"&&c.length>=3){var _=parseInt(c.shift());var b=parseInt(c.shift());var y=parseInt(c.shift());if(_>=0&&_<=255&&b>=0&&b<=255&&y>=0&&y<=255){var k=_+", "+b+", "+y;if(!i){if(p){u.fg=k}else{u.bg=k}}else{if(p){u.fg="ansi-truecolor";u.fg_truecolor=k}else{u.bg="ansi-truecolor";u.bg_truecolor=k}}}}}}}if(u.fg===null&&u.bg===null&&u.decoration===null){return o}else{var T=[];var m=[];var w={};o.fg=u.fg;o.bg=u.bg;o.fg_truecolor=u.fg_truecolor;o.bg_truecolor=u.bg_truecolor;o.decoration=u.decoration;o.was_processed=true;return o}}},{key:"processChunk",value:function processChunk(e,r,n){var s=this;var i=this;r=r||{};var t=this.processChunkJson(e,r,n);if(r.json){return t}if(t.isEmpty()){return""}if(!t.was_processed){return t.content}var o=r.use_classes;var a=[];var l=[];var c={};var u=function render_data(e){var r=[];var n=void 0;for(n in e){if(e.hasOwnProperty(n)){r.push("data-"+n+'="'+s.escapeForHtml(e[n])+'"')}}return r.length>0?" "+r.join(" "):""};if(t.fg){if(o){l.push(t.fg+"-fg");if(t.fg_truecolor!==null){c["ansi-truecolor-fg"]=t.fg_truecolor;t.fg_truecolor=null}}else{a.push("color:rgb("+t.fg+")")}}if(t.bg){if(o){l.push(t.bg+"-bg");if(t.bg_truecolor!==null){c["ansi-truecolor-bg"]=t.bg_truecolor;t.bg_truecolor=null}}else{a.push("background-color:rgb("+t.bg+")")}}if(t.decoration){if(o){l.push("ansi-"+t.decoration)}else if(t.decoration==="bold"){a.push("font-weight:bold")}else if(t.decoration==="dim"){a.push("opacity:0.5")}else if(t.decoration==="italic"){a.push("font-style:italic")}else if(t.decoration==="reverse"){a.push("filter:invert(100%)")}else if(t.decoration==="hidden"){a.push("visibility:hidden")}else if(t.decoration==="strikethrough"){a.push("text-decoration:line-through")}else{a.push("text-decoration:"+t.decoration)}}if(o){return'"+t.content+""}else{return'"+t.content+""}}}]);return Anser}();e.exports=s}};var r={};function __nccwpck_require__(n){var s=r[n];if(s!==undefined){return s.exports}var i=r[n]={exports:{}};var t=true;try{e[n](i,i.exports,__nccwpck_require__);t=false}finally{if(t)delete r[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(211);module.exports=n})(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/css.escape/css.escape.js": /*!********************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/css.escape/css.escape.js ***! \********************************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var __dirname = "/"; (()=>{var e={553:function(e){(function(r,t){if(true){e.exports=t(r)}else{}})(typeof __webpack_require__.g!="undefined"?__webpack_require__.g:this,(function(e){if(e.CSS&&e.CSS.escape){return e.CSS.escape}var cssEscape=function(e){if(arguments.length==0){throw new TypeError("`CSS.escape` requires an argument.")}var r=String(e);var t=r.length;var n=-1;var a;var i="";var u=r.charCodeAt(0);while(++n=1&&a<=31||a==127||n==0&&a>=48&&a<=57||n==1&&a>=48&&a<=57&&u==45){i+="\\"+a.toString(16)+" ";continue}if(n==0&&t==1&&a==45){i+="\\"+r.charAt(n);continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){i+=r.charAt(n);continue}i+="\\"+r.charAt(n)}return i};if(!e.CSS){e.CSS={}}e.CSS.escape=cssEscape;return cssEscape}))}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var a=r[t]={exports:{}};var i=true;try{e[t].call(a.exports,a,a.exports,__nccwpck_require__);i=false}finally{if(i)delete r[t]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(553);module.exports=t})(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/platform/platform.js": /*!****************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/platform/platform.js ***! \****************************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { var __dirname = "/"; (()=>{var e={541:function(e,i,t){e=t.nmd(e); /*! * Platform.js v1.3.6 * Copyright 2014-2020 Benjamin Tan * Copyright 2011-2013 John-David Dalton * Available under MIT license */(function(){"use strict";var t={function:true,object:true};var r=t[typeof window]&&window||this;var a=r;var n=t[typeof i]&&i;var o=t["object"]&&e&&!e.nodeType&&e;var l=n&&o&&typeof __webpack_require__.g=="object"&&__webpack_require__.g;if(l&&(l.global===l||l.window===l||l.self===l)){r=l}var s=Math.pow(2,53)-1;var f=/\bOpera/;var b=this;var c=Object.prototype;var p=c.hasOwnProperty;var u=c.toString;function capitalize(e){e=String(e);return e.charAt(0).toUpperCase()+e.slice(1)}function cleanupOS(e,i,t){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};if(i&&t&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])){e="Windows "+r}e=String(e);if(i&&t){e=e.replace(RegExp(i,"i"),t)}e=format(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]);return e}function each(e,i){var t=-1,r=e?e.length:0;if(typeof r=="number"&&r>-1&&r<=s){while(++t3&&"WebKit"||/\bOpera\b/.test(R)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(_)&&"WebKit"||!_&&/\bMSIE\b/i.test(e)&&(T=="Mac OS"?"Tasman":"Trident")||_=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(R)&&"NetFront"){_=[M]}if(R=="IE"&&(M=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])){R+=" Mobile";T="Windows Phone "+(/\+$/.test(M)?M:M+".x");P.unshift("desktop mode")}else if(/\bWPDesktop\b/i.test(e)){R="IE Mobile";T="Windows Phone 8.x";P.unshift("desktop mode");B||(B=(/\brv:([\d.]+)/.exec(e)||0)[1])}else if(R!="IE"&&_=="Trident"&&(M=/\brv:([\d.]+)/.exec(e))){if(R){P.push("identifying as "+R+(B?" "+B:""))}R="IE";B=M[1]}if(k){if(isHostType(i,"global")){if(m){M=m.lang.System;E=M.getProperty("os.arch");T=T||M.getProperty("os.name")+" "+M.getProperty("os.version")}if(g){try{B=i.require("ringo/engine").version.join(".");R="RingoJS"}catch(e){if((M=i.system)&&M.global.system==i.system){R="Narwhal";T||(T=M[0].os||null)}}if(!R){R="Rhino"}}else if(typeof i.process=="object"&&!i.process.browser&&(M=i.process)){if(typeof M.versions=="object"){if(typeof M.versions.electron=="string"){P.push("Node "+M.versions.node);R="Electron";B=M.versions.electron}else if(typeof M.versions.nw=="string"){P.push("Chromium "+B,"Node "+M.versions.node);R="NW.js";B=M.versions.nw}}if(!R){R="Node.js";E=M.arch;T=M.platform;B=/[\d.]+/.exec(M.version);B=B?B[0]:null}}}else if(getClassOf(M=i.runtime)==p){R="Adobe AIR";T=M.flash.system.Capabilities.os}else if(getClassOf(M=i.phantom)==x){R="PhantomJS";B=(M=M.version||null)&&M.major+"."+M.minor+"."+M.patch}else if(typeof O.documentMode=="number"&&(M=/\bTrident\/(\d+)/i.exec(e))){B=[B,O.documentMode];if((M=+M[1]+4)!=B[1]){P.push("IE "+B[1]+" mode");_&&(_[1]="");B[1]=M}B=R=="IE"?String(B[1].toFixed(1)):B[0]}else if(typeof O.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(R)){P.push("masking as "+R+" "+B);R="IE";B="11.0";_=["Trident"];T="Windows"}T=T&&format(T)}if(B&&(M=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(B)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(k&&n.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")){C=/b/i.test(M)?"beta":"alpha";B=B.replace(RegExp(M+"\\+?$"),"")+(C=="beta"?v:h)+(/\d+\+?/.exec(M)||"")}if(R=="Fennec"||R=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(T)){R="Firefox Mobile"}else if(R=="Maxthon"&&B){B=B.replace(/\.[\d.]+/,".x")}else if(/\bXbox\b/i.test(A)){if(A=="Xbox 360"){T=null}if(A=="Xbox 360"&&/\bIEMobile\b/.test(e)){P.unshift("mobile mode")}}else if((/^(?:Chrome|IE|Opera)$/.test(R)||R&&!A&&!/Browser|Mobi/.test(R))&&(T=="Windows CE"||/Mobi/i.test(e))){R+=" Mobile"}else if(R=="IE"&&k){try{if(i.external===null){P.unshift("platform preview")}}catch(e){P.unshift("embedded")}}else if((/\bBlackBerry\b/.test(A)||/\bBB10\b/.test(e))&&(M=(RegExp(A.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||B)){M=[M,/BB10/.test(e)];T=(M[1]?(A=null,I="BlackBerry"):"Device Software")+" "+M[0];B=null}else if(this!=forOwn&&A!="Wii"&&(k&&y||/Opera/.test(R)&&/\b(?:MSIE|Firefox)\b/i.test(e)||R=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(T)||R=="IE"&&(T&&!/^Win/.test(T)&&B>5.5||/\bWindows XP\b/.test(T)&&B>8||B==8&&!/\bTrident\b/.test(e)))&&!f.test(M=parse.call(forOwn,e.replace(f,"")+";"))&&M.name){M="ing as "+M.name+((M=M.version)?" "+M:"");if(f.test(R)){if(/\bIE\b/.test(M)&&T=="Mac OS"){T=null}M="identify"+M}else{M="mask"+M;if(w){R=format(w.replace(/([a-z])([A-Z])/g,"$1 $2"))}else{R="Opera"}if(/\bIE\b/.test(M)){T=null}if(!k){B=null}}_=["Presto"];P.push(M)}if(M=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1]){M=[parseFloat(M.replace(/\.(\d)$/,".0$1")),M];if(R=="Safari"&&M[1].slice(-1)=="+"){R="WebKit Nightly";C="alpha";B=M[1].slice(0,-1)}else if(B==M[1]||B==(M[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])){B=null}M[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1];if(M[0]==537.36&&M[2]==537.36&&parseFloat(M[1])>=28&&_=="WebKit"){_=["Blink"]}if(!k||!s&&!M[1]){_&&(_[1]="like Safari");M=(M=M[0],M<400?1:M<500?2:M<526?3:M<533?4:M<534?"4+":M<535?5:M<537?6:M<538?7:M<601?8:M<602?9:M<604?10:M<606?11:M<608?12:"12")}else{_&&(_[1]="like Chrome");M=M[1]||(M=M[0],M<530?1:M<532?2:M<532.05?3:M<533?4:M<534.03?5:M<534.07?6:M<534.1?7:M<534.13?8:M<534.16?9:M<534.24?10:M<534.3?11:M<535.01?12:M<535.02?"13+":M<535.07?15:M<535.11?16:M<535.19?17:M<536.05?18:M<536.1?19:M<537.01?20:M<537.11?"21+":M<537.13?23:M<537.18?24:M<537.24?25:M<537.36?26:_!="Blink"?"27":"28")}_&&(_[1]+=" "+(M+=typeof M=="number"?".x":/[.+]/.test(M)?"":"+"));if(R=="Safari"&&(!B||parseInt(B)>45)){B=M}else if(R=="Chrome"&&/\bHeadlessChrome/i.test(e)){P.unshift("headless")}}if(R=="Opera"&&(M=/\bzbov|zvav$/.exec(T))){R+=" ";P.unshift("desktop mode");if(M=="zvav"){R+="Mini";B=null}else{R+="Mobile"}T=T.replace(RegExp(" *"+M+"$"),"")}else if(R=="Safari"&&/\bChrome\b/.exec(_&&_[1])){P.unshift("desktop mode");R="Chrome Mobile";B=null;if(/\bOS X\b/.test(T)){I="Apple";T="iOS 4.3+"}else{T=null}}else if(/\bSRWare Iron\b/.test(R)&&!B){B=getVersion("Chrome")}if(B&&B.indexOf(M=/[\d.]+$/.exec(T))==0&&e.indexOf("/"+M+"-")>-1){T=trim(T.replace(M,""))}if(T&&T.indexOf(R)!=-1&&!RegExp(R+" OS").test(T)){T=T.replace(RegExp(" *"+qualify(R)+" *"),"")}if(_&&!/\b(?:Avant|Nook)\b/.test(R)&&(/Browser|Lunascape|Maxthon/.test(R)||R!="Safari"&&/^iOS/.test(T)&&/\bSafari\b/.test(_[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(R)&&_[1])){(M=_[_.length-1])&&P.push(M)}if(P.length){P=["("+P.join("; ")+")"]}if(I&&A&&A.indexOf(I)<0){P.push("on "+I)}if(A){P.push((/^on /.test(P[P.length-1])?"":"on ")+A)}if(T){M=/ ([\d.+]+)$/.exec(T);W=M&&T.charAt(T.length-M[0].length-1)=="/";T={architecture:32,family:M&&!W?T.replace(M[0],""):T,version:M?M[1]:null,toString:function(){var e=this.version;return this.family+(e&&!W?" "+e:"")+(this.architecture==64?" 64-bit":"")}}}if((M=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(E))&&!/\bi686\b/i.test(E)){if(T){T.architecture=64;T.family=T.family.replace(RegExp(" *"+M),"")}if(R&&(/\bWOW64\b/i.test(e)||k&&/\w(?:86|32)$/.test(n.cpuClass||n.platform)&&!/\bWin64; x64\b/i.test(e))){P.unshift("32-bit")}}else if(T&&/^OS X/.test(T.family)&&R=="Chrome"&&parseFloat(B)>=39){T.architecture=64}e||(e=null);var F={};F.description=e;F.layout=_&&_[0];F.manufacturer=I;F.name=R;F.prerelease=C;F.product=A;F.ua=e;F.version=R&&B;F.os=T||{architecture:null,family:null,version:null,toString:function(){return"null"}};F.parse=parse;F.toString=toStringPlatform;if(F.version){P.unshift(B)}if(F.name){P.unshift(R)}if(T&&R&&!(T==String(T).split(" ")[0]&&(T==R.split(" ")[0]||A))){P.push(A?"("+T+")":"on "+T)}if(P.length){F.description=P.join(" ")}return F}var d=parse();if(n&&o){forOwn(d,(function(e,i){n[i]=e}))}else{r.platform=d}}).call(this)}};var i={};function __nccwpck_require__(t){var r=i[t];if(r!==undefined){return r.exports}var a=i[t]={id:t,loaded:false,exports:{}};var n=true;try{e[t].call(a.exports,a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete i[t]}a.loaded=true;return a.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(541);module.exports=t})(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js": /*!**************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js ***! \**************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /** * @license React * react-refresh-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (true) { (function() { 'use strict'; // ATTENTION var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); var REACT_MEMO_TYPE = Symbol.for('react.memo'); var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // We never remove these associations. // It's OK to reference families, but use WeakMap/Set for types. var allFamiliesByID = new Map(); var allFamiliesByType = new PossiblyWeakMap(); var allSignaturesByType = new PossiblyWeakMap(); // This WeakMap is read by React, so we only put families // that have actually been edited here. This keeps checks fast. // $FlowIssue var updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call. // It is an array of [Family, NextType] tuples. var pendingUpdates = []; // This is injected by the renderer via DevTools global hook. var helpersByRendererID = new Map(); var helpersByRoot = new Map(); // We keep track of mounted roots so we can schedule updates. var mountedRoots = new Set(); // If a root captures an error, we remember it so we can retry on edit. var failedRoots = new Set(); // In environments that support WeakMap, we also remember the last element for every root. // It needs to be weak because we do this even for roots that failed to mount. // If there is no WeakMap, we won't attempt to do retrying. // $FlowIssue var rootElements = // $FlowIssue typeof WeakMap === 'function' ? new WeakMap() : null; var isPerformingRefresh = false; function computeFullKey(signature) { if (signature.fullKey !== null) { return signature.fullKey; } var fullKey = signature.ownKey; var hooks; try { hooks = signature.getCustomHooks(); } catch (err) { // This can happen in an edge case, e.g. if expression like Foo.useSomething // depends on Foo which is lazily initialized during rendering. // In that case just assume we'll have to remount. signature.forceReset = true; signature.fullKey = fullKey; return fullKey; } for (var i = 0; i < hooks.length; i++) { var hook = hooks[i]; if (typeof hook !== 'function') { // Something's wrong. Assume we need to remount. signature.forceReset = true; signature.fullKey = fullKey; return fullKey; } var nestedHookSignature = allSignaturesByType.get(hook); if (nestedHookSignature === undefined) { // No signature means Hook wasn't in the source code, e.g. in a library. // We'll skip it because we can assume it won't change during this session. continue; } var nestedHookKey = computeFullKey(nestedHookSignature); if (nestedHookSignature.forceReset) { signature.forceReset = true; } fullKey += '\n---\n' + nestedHookKey; } signature.fullKey = fullKey; return fullKey; } function haveEqualSignatures(prevType, nextType) { var prevSignature = allSignaturesByType.get(prevType); var nextSignature = allSignaturesByType.get(nextType); if (prevSignature === undefined && nextSignature === undefined) { return true; } if (prevSignature === undefined || nextSignature === undefined) { return false; } if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) { return false; } if (nextSignature.forceReset) { return false; } return true; } function isReactClass(type) { return type.prototype && type.prototype.isReactComponent; } function canPreserveStateBetween(prevType, nextType) { if (isReactClass(prevType) || isReactClass(nextType)) { return false; } if (haveEqualSignatures(prevType, nextType)) { return true; } return false; } function resolveFamily(type) { // Only check updated types to keep lookups fast. return updatedFamiliesByType.get(type); } // If we didn't care about IE11, we could use new Map/Set(iterable). function cloneMap(map) { var clone = new Map(); map.forEach(function (value, key) { clone.set(key, value); }); return clone; } function cloneSet(set) { var clone = new Set(); set.forEach(function (value) { clone.add(value); }); return clone; } // This is a safety mechanism to protect against rogue getters and Proxies. function getProperty(object, property) { try { return object[property]; } catch (err) { // Intentionally ignore. return undefined; } } function performReactRefresh() { if (pendingUpdates.length === 0) { return null; } if (isPerformingRefresh) { return null; } isPerformingRefresh = true; try { var staleFamilies = new Set(); var updatedFamilies = new Set(); var updates = pendingUpdates; pendingUpdates = []; updates.forEach(function (_ref) { var family = _ref[0], nextType = _ref[1]; // Now that we got a real edit, we can create associations // that will be read by the React reconciler. var prevType = family.current; updatedFamiliesByType.set(prevType, family); updatedFamiliesByType.set(nextType, family); family.current = nextType; // Determine whether this should be a re-render or a re-mount. if (canPreserveStateBetween(prevType, nextType)) { updatedFamilies.add(family); } else { staleFamilies.add(family); } }); // TODO: rename these fields to something more meaningful. var update = { updatedFamilies: updatedFamilies, // Families that will re-render preserving state staleFamilies: staleFamilies // Families that will be remounted }; helpersByRendererID.forEach(function (helpers) { // Even if there are no roots, set the handler on first update. // This ensures that if *new* roots are mounted, they'll use the resolve handler. helpers.setRefreshHandler(resolveFamily); }); var didError = false; var firstError = null; // We snapshot maps and sets that are mutated during commits. // If we don't do this, there is a risk they will be mutated while // we iterate over them. For example, trying to recover a failed root // may cause another root to be added to the failed list -- an infinite loop. var failedRootsSnapshot = cloneSet(failedRoots); var mountedRootsSnapshot = cloneSet(mountedRoots); var helpersByRootSnapshot = cloneMap(helpersByRoot); failedRootsSnapshot.forEach(function (root) { var helpers = helpersByRootSnapshot.get(root); if (helpers === undefined) { throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); } if (!failedRoots.has(root)) {// No longer failed. } if (rootElements === null) { return; } if (!rootElements.has(root)) { return; } var element = rootElements.get(root); try { helpers.scheduleRoot(root, element); } catch (err) { if (!didError) { didError = true; firstError = err; } // Keep trying other roots. } }); mountedRootsSnapshot.forEach(function (root) { var helpers = helpersByRootSnapshot.get(root); if (helpers === undefined) { throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); } if (!mountedRoots.has(root)) {// No longer mounted. } try { helpers.scheduleRefresh(root, update); } catch (err) { if (!didError) { didError = true; firstError = err; } // Keep trying other roots. } }); if (didError) { throw firstError; } return update; } finally { isPerformingRefresh = false; } } function register(type, id) { { if (type === null) { return; } if (typeof type !== 'function' && typeof type !== 'object') { return; } // This can happen in an edge case, e.g. if we register // return value of a HOC but it returns a cached component. // Ignore anything but the first registration for each type. if (allFamiliesByType.has(type)) { return; } // Create family or remember to update it. // None of this bookkeeping affects reconciliation // until the first performReactRefresh() call above. var family = allFamiliesByID.get(id); if (family === undefined) { family = { current: type }; allFamiliesByID.set(id, family); } else { pendingUpdates.push([family, type]); } allFamiliesByType.set(type, family); // Visit inner types because we might not have registered them. if (typeof type === 'object' && type !== null) { switch (getProperty(type, '$$typeof')) { case REACT_FORWARD_REF_TYPE: register(type.render, id + '$render'); break; case REACT_MEMO_TYPE: register(type.type, id + '$type'); break; } } } } function setSignature(type, key) { var forceReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined; { if (!allSignaturesByType.has(type)) { allSignaturesByType.set(type, { forceReset: forceReset, ownKey: key, fullKey: null, getCustomHooks: getCustomHooks || function () { return []; } }); } // Visit inner types because we might not have signed them. if (typeof type === 'object' && type !== null) { switch (getProperty(type, '$$typeof')) { case REACT_FORWARD_REF_TYPE: setSignature(type.render, key, forceReset, getCustomHooks); break; case REACT_MEMO_TYPE: setSignature(type.type, key, forceReset, getCustomHooks); break; } } } } // This is lazily called during first render for a type. // It captures Hook list at that time so inline requires don't break comparisons. function collectCustomHooksForSignature(type) { { var signature = allSignaturesByType.get(type); if (signature !== undefined) { computeFullKey(signature); } } } function getFamilyByID(id) { { return allFamiliesByID.get(id); } } function getFamilyByType(type) { { return allFamiliesByType.get(type); } } function findAffectedHostInstances(families) { { var affectedInstances = new Set(); mountedRoots.forEach(function (root) { var helpers = helpersByRoot.get(root); if (helpers === undefined) { throw new Error('Could not find helpers for a root. This is a bug in React Refresh.'); } var instancesForRoot = helpers.findHostInstancesForRefresh(root, families); instancesForRoot.forEach(function (inst) { affectedInstances.add(inst); }); }); return affectedInstances; } } function injectIntoGlobalHook(globalObject) { { // For React Native, the global hook will be set up by require('react-devtools-core'). // That code will run before us. So we need to monkeypatch functions on existing hook. // For React Web, the global hook will be set up by the extension. // This will also run before us. var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__; if (hook === undefined) { // However, if there is no DevTools extension, we'll need to set up the global hook ourselves. // Note that in this case it's important that renderer code runs *after* this method call. // Otherwise, the renderer will think that there is no global hook, and won't do the injection. var nextID = 0; globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = { renderers: new Map(), supportsFiber: true, inject: function (injected) { return nextID++; }, onScheduleFiberRoot: function (id, root, children) {}, onCommitFiberRoot: function (id, root, maybePriorityLevel, didError) {}, onCommitFiberUnmount: function () {} }; } if (hook.isDisabled) { // This isn't a real property on the hook, but it can be set to opt out // of DevTools integration and associated warnings and logs. // Using console['warn'] to evade Babel and ESLint console['warn']('Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). ' + 'Fast Refresh is not compatible with this shim and will be disabled.'); return; } // Here, we just want to get a reference to scheduleRefresh. var oldInject = hook.inject; hook.inject = function (injected) { var id = oldInject.apply(this, arguments); if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') { // This version supports React Refresh. helpersByRendererID.set(id, injected); } return id; }; // Do the same for any already injected roots. // This is useful if ReactDOM has already been initialized. // https://github.com/facebook/react/issues/17626 hook.renderers.forEach(function (injected, id) { if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') { // This version supports React Refresh. helpersByRendererID.set(id, injected); } }); // We also want to track currently mounted roots. var oldOnCommitFiberRoot = hook.onCommitFiberRoot; var oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {}; hook.onScheduleFiberRoot = function (id, root, children) { if (!isPerformingRefresh) { // If it was intentionally scheduled, don't attempt to restore. // This includes intentionally scheduled unmounts. failedRoots.delete(root); if (rootElements !== null) { rootElements.set(root, children); } } return oldOnScheduleFiberRoot.apply(this, arguments); }; hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) { var helpers = helpersByRendererID.get(id); if (helpers !== undefined) { helpersByRoot.set(root, helpers); var current = root.current; var alternate = current.alternate; // We need to determine whether this root has just (un)mounted. // This logic is copy-pasted from similar logic in the DevTools backend. // If this breaks with some refactoring, you'll want to update DevTools too. if (alternate !== null) { var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null && mountedRoots.has(root); var isMounted = current.memoizedState != null && current.memoizedState.element != null; if (!wasMounted && isMounted) { // Mount a new root. mountedRoots.add(root); failedRoots.delete(root); } else if (wasMounted && isMounted) ; else if (wasMounted && !isMounted) { // Unmount an existing root. mountedRoots.delete(root); if (didError) { // We'll remount it on future edits. failedRoots.add(root); } else { helpersByRoot.delete(root); } } else if (!wasMounted && !isMounted) { if (didError) { // We'll remount it on future edits. failedRoots.add(root); } } } else { // Mount a new root. mountedRoots.add(root); } } // Always call the decorated DevTools hook. return oldOnCommitFiberRoot.apply(this, arguments); }; } } function hasUnrecoverableErrors() { // TODO: delete this after removing dependency in RN. return false; } // Exposed for testing. function _getMountedRootCount() { { return mountedRoots.size; } } // This is a wrapper over more primitive functions for setting signature. // Signatures let us decide whether the Hook order has changed on refresh. // // This function is intended to be used as a transform target, e.g.: // var _s = createSignatureFunctionForTransform() // // function Hello() { // const [foo, setFoo] = useState(0); // const value = useCustomHook(); // _s(); /* Call without arguments triggers collecting the custom Hook list. // * This doesn't happen during the module evaluation because we // * don't want to change the module order with inline requires. // * Next calls are noops. */ // return

Hi

; // } // // /* Call with arguments attaches the signature to the type: */ // _s( // Hello, // 'useState{[foo, setFoo]}(0)', // () => [useCustomHook], /* Lazy to avoid triggering inline requires */ // ); function createSignatureFunctionForTransform() { { var savedType; var hasCustomHooks; var didCollectHooks = false; return function (type, key, forceReset, getCustomHooks) { if (typeof key === 'string') { // We're in the initial phase that associates signatures // with the functions. Note this may be called multiple times // in HOC chains like _s(hoc1(_s(hoc2(_s(actualFunction))))). if (!savedType) { // We're in the innermost call, so this is the actual type. savedType = type; hasCustomHooks = typeof getCustomHooks === 'function'; } // Set the signature for all types (even wrappers!) in case // they have no signatures of their own. This is to prevent // problems like https://github.com/facebook/react/issues/20417. if (type != null && (typeof type === 'function' || typeof type === 'object')) { setSignature(type, key, forceReset, getCustomHooks); } return type; } else { // We're in the _s() call without arguments, which means // this is the time to collect custom Hook signatures. // Only do this once. This path is hot and runs *inside* every render! if (!didCollectHooks && hasCustomHooks) { didCollectHooks = true; collectCustomHooksForSignature(savedType); } } }; } } function isLikelyComponentType(type) { { switch (typeof type) { case 'function': { // First, deal with classes. if (type.prototype != null) { if (type.prototype.isReactComponent) { // React class. return true; } var ownNames = Object.getOwnPropertyNames(type.prototype); if (ownNames.length > 1 || ownNames[0] !== 'constructor') { // This looks like a class. return false; } // eslint-disable-next-line no-proto if (type.prototype.__proto__ !== Object.prototype) { // It has a superclass. return false; } // Pass through. // This looks like a regular function with empty prototype. } // For plain functions and arrows, use name as a heuristic. var name = type.name || type.displayName; return typeof name === 'string' && /^[A-Z]/.test(name); } case 'object': { if (type != null) { switch (getProperty(type, '$$typeof')) { case REACT_FORWARD_REF_TYPE: case REACT_MEMO_TYPE: // Definitely React components. return true; default: return false; } } return false; } default: { return false; } } } } exports._getMountedRootCount = _getMountedRootCount; exports.collectCustomHooksForSignature = collectCustomHooksForSignature; exports.createSignatureFunctionForTransform = createSignatureFunctionForTransform; exports.findAffectedHostInstances = findAffectedHostInstances; exports.getFamilyByID = getFamilyByID; exports.getFamilyByType = getFamilyByType; exports.hasUnrecoverableErrors = hasUnrecoverableErrors; exports.injectIntoGlobalHook = injectIntoGlobalHook; exports.isLikelyComponentType = isLikelyComponentType; exports.performReactRefresh = performReactRefresh; exports.register = register; exports.setSignature = setSignature; })(); } /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-refresh/runtime.js": /*!********************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-refresh/runtime.js ***! \********************************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; if (false) {} else { module.exports = __webpack_require__(/*! ./cjs/react-refresh-runtime.development.js */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js"); } /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/scheduler/cjs/scheduler.development.js": /*!**********************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/scheduler/cjs/scheduler.development.js ***! \**********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /** * @license React * scheduler.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (true) { (function() { 'use strict'; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function' ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } var enableSchedulerDebugging = false; var enableProfiling = false; var frameYieldMs = 5; var userBlockingPriorityTimeout = 250; var normalPriorityTimeout = 5000; var lowPriorityTimeout = 10000; function push(heap, node) { var index = heap.length; heap.push(node); siftUp(heap, node, index); } function peek(heap) { return heap.length === 0 ? null : heap[0]; } function pop(heap) { if (heap.length === 0) { return null; } var first = heap[0]; var last = heap.pop(); if (last !== first) { heap[0] = last; siftDown(heap, last, 0); } return first; } function siftUp(heap, node, i) { var index = i; while (index > 0) { var parentIndex = index - 1 >>> 1; var parent = heap[parentIndex]; if (compare(parent, node) > 0) { // The parent is larger. Swap positions. heap[parentIndex] = node; heap[index] = parent; index = parentIndex; } else { // The parent is smaller. Exit. return; } } } function siftDown(heap, node, i) { var index = i; var length = heap.length; var halfLength = length >>> 1; while (index < halfLength) { var leftIndex = (index + 1) * 2 - 1; var left = heap[leftIndex]; var rightIndex = leftIndex + 1; var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those. if (compare(left, node) < 0) { if (rightIndex < length && compare(right, left) < 0) { heap[index] = right; heap[rightIndex] = node; index = rightIndex; } else { heap[index] = left; heap[leftIndex] = node; index = leftIndex; } } else if (rightIndex < length && compare(right, node) < 0) { heap[index] = right; heap[rightIndex] = node; index = rightIndex; } else { // Neither child is smaller. Exit. return; } } } function compare(a, b) { // Compare sort index first, then task id. var diff = a.sortIndex - b.sortIndex; return diff !== 0 ? diff : a.id - b.id; } // TODO: Use symbols? var ImmediatePriority = 1; var UserBlockingPriority = 2; var NormalPriority = 3; var LowPriority = 4; var IdlePriority = 5; function markTaskErrored(task, ms) { } /* eslint-disable no-var */ exports.unstable_now = void 0; var hasPerformanceNow = // $FlowFixMe[method-unbinding] typeof performance === 'object' && typeof performance.now === 'function'; if (hasPerformanceNow) { var localPerformance = performance; exports.unstable_now = function () { return localPerformance.now(); }; } else { var localDate = Date; var initialTime = localDate.now(); exports.unstable_now = function () { return localDate.now() - initialTime; }; } // Max 31 bit integer. The max integer size in V8 for 32-bit systems. // Math.pow(2, 30) - 1 // 0b111111111111111111111111111111 var maxSigned31BitInt = 1073741823; // Tasks are stored on a min heap var taskQueue = []; var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. var currentTask = null; var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance. var isPerformingWork = false; var isHostCallbackScheduled = false; var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them. var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null; var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null; var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom typeof navigator !== 'undefined' && // $FlowFixMe[prop-missing] navigator.scheduling !== undefined && // $FlowFixMe[incompatible-type] navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; function advanceTimers(currentTime) { // Check for tasks that are no longer delayed and add them to the queue. var timer = peek(timerQueue); while (timer !== null) { if (timer.callback === null) { // Timer was cancelled. pop(timerQueue); } else if (timer.startTime <= currentTime) { // Timer fired. Transfer to the task queue. pop(timerQueue); timer.sortIndex = timer.expirationTime; push(taskQueue, timer); } else { // Remaining timers are pending. return; } timer = peek(timerQueue); } } function handleTimeout(currentTime) { isHostTimeoutScheduled = false; advanceTimers(currentTime); if (!isHostCallbackScheduled) { if (peek(taskQueue) !== null) { isHostCallbackScheduled = true; requestHostCallback(); } else { var firstTimer = peek(timerQueue); if (firstTimer !== null) { requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); } } } } function flushWork(initialTime) { isHostCallbackScheduled = false; if (isHostTimeoutScheduled) { // We scheduled a timeout but it's no longer needed. Cancel it. isHostTimeoutScheduled = false; cancelHostTimeout(); } isPerformingWork = true; var previousPriorityLevel = currentPriorityLevel; try { var currentTime; if (enableProfiling) ; else { // No catch in prod code path. return workLoop(initialTime); } } finally { currentTask = null; currentPriorityLevel = previousPriorityLevel; isPerformingWork = false; } } function workLoop(initialTime) { var currentTime = initialTime; advanceTimers(currentTime); currentTask = peek(taskQueue); while (currentTask !== null && !(enableSchedulerDebugging )) { if (currentTask.expirationTime > currentTime && shouldYieldToHost()) { // This currentTask hasn't expired, and we've reached the deadline. break; } // $FlowFixMe[incompatible-use] found when upgrading Flow var callback = currentTask.callback; if (typeof callback === 'function') { // $FlowFixMe[incompatible-use] found when upgrading Flow currentTask.callback = null; // $FlowFixMe[incompatible-use] found when upgrading Flow currentPriorityLevel = currentTask.priorityLevel; // $FlowFixMe[incompatible-use] found when upgrading Flow var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; var continuationCallback = callback(didUserCallbackTimeout); currentTime = exports.unstable_now(); if (typeof continuationCallback === 'function') { // If a continuation is returned, immediately yield to the main thread // regardless of how much time is left in the current time slice. // $FlowFixMe[incompatible-use] found when upgrading Flow currentTask.callback = continuationCallback; advanceTimers(currentTime); return true; } else { if (currentTask === peek(taskQueue)) { pop(taskQueue); } advanceTimers(currentTime); } } else { pop(taskQueue); } currentTask = peek(taskQueue); } // Return whether there's additional work if (currentTask !== null) { return true; } else { var firstTimer = peek(timerQueue); if (firstTimer !== null) { requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); } return false; } } function unstable_runWithPriority(priorityLevel, eventHandler) { switch (priorityLevel) { case ImmediatePriority: case UserBlockingPriority: case NormalPriority: case LowPriority: case IdlePriority: break; default: priorityLevel = NormalPriority; } var previousPriorityLevel = currentPriorityLevel; currentPriorityLevel = priorityLevel; try { return eventHandler(); } finally { currentPriorityLevel = previousPriorityLevel; } } function unstable_next(eventHandler) { var priorityLevel; switch (currentPriorityLevel) { case ImmediatePriority: case UserBlockingPriority: case NormalPriority: // Shift down to normal priority priorityLevel = NormalPriority; break; default: // Anything lower than normal priority should remain at the current level. priorityLevel = currentPriorityLevel; break; } var previousPriorityLevel = currentPriorityLevel; currentPriorityLevel = priorityLevel; try { return eventHandler(); } finally { currentPriorityLevel = previousPriorityLevel; } } function unstable_wrapCallback(callback) { var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return] // $FlowFixMe[missing-this-annot] return function () { // This is a fork of runWithPriority, inlined for performance. var previousPriorityLevel = currentPriorityLevel; currentPriorityLevel = parentPriorityLevel; try { return callback.apply(this, arguments); } finally { currentPriorityLevel = previousPriorityLevel; } }; } function unstable_scheduleCallback(priorityLevel, callback, options) { var currentTime = exports.unstable_now(); var startTime; if (typeof options === 'object' && options !== null) { var delay = options.delay; if (typeof delay === 'number' && delay > 0) { startTime = currentTime + delay; } else { startTime = currentTime; } } else { startTime = currentTime; } var timeout; switch (priorityLevel) { case ImmediatePriority: // Times out immediately timeout = -1; break; case UserBlockingPriority: // Eventually times out timeout = userBlockingPriorityTimeout; break; case IdlePriority: // Never times out timeout = maxSigned31BitInt; break; case LowPriority: // Eventually times out timeout = lowPriorityTimeout; break; case NormalPriority: default: // Eventually times out timeout = normalPriorityTimeout; break; } var expirationTime = startTime + timeout; var newTask = { id: taskIdCounter++, callback: callback, priorityLevel: priorityLevel, startTime: startTime, expirationTime: expirationTime, sortIndex: -1 }; if (startTime > currentTime) { // This is a delayed task. newTask.sortIndex = startTime; push(timerQueue, newTask); if (peek(taskQueue) === null && newTask === peek(timerQueue)) { // All tasks are delayed, and this is the task with the earliest delay. if (isHostTimeoutScheduled) { // Cancel an existing timeout. cancelHostTimeout(); } else { isHostTimeoutScheduled = true; } // Schedule a timeout. requestHostTimeout(handleTimeout, startTime - currentTime); } } else { newTask.sortIndex = expirationTime; push(taskQueue, newTask); // wait until the next time we yield. if (!isHostCallbackScheduled && !isPerformingWork) { isHostCallbackScheduled = true; requestHostCallback(); } } return newTask; } function unstable_pauseExecution() { } function unstable_continueExecution() { if (!isHostCallbackScheduled && !isPerformingWork) { isHostCallbackScheduled = true; requestHostCallback(); } } function unstable_getFirstCallbackNode() { return peek(taskQueue); } function unstable_cancelCallback(task) { // remove from the queue because you can't remove arbitrary nodes from an // array based heap, only the first one.) task.callback = null; } function unstable_getCurrentPriorityLevel() { return currentPriorityLevel; } var isMessageLoopRunning = false; var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main // thread, like user events. By default, it yields multiple times per frame. // It does not attempt to align with frame boundaries, since most tasks don't // need to be frame aligned; for those that do, use requestAnimationFrame. var frameInterval = frameYieldMs; var startTime = -1; function shouldYieldToHost() { var timeElapsed = exports.unstable_now() - startTime; if (timeElapsed < frameInterval) { // The main thread has only been blocked for a really short amount of time; // smaller than a single frame. Don't yield yet. return false; } // The main thread has been blocked for a non-negligible amount of time. We return true; } function requestPaint() { } function forceFrameRate(fps) { if (fps < 0 || fps > 125) { // Using console['error'] to evade Babel and ESLint console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported'); return; } if (fps > 0) { frameInterval = Math.floor(1000 / fps); } else { // reset the framerate frameInterval = frameYieldMs; } } var performWorkUntilDeadline = function () { if (isMessageLoopRunning) { var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread // has been blocked. startTime = currentTime; // If a scheduler task throws, exit the current browser task so the // error can be observed. // // Intentionally not using a try-catch, since that makes some debugging // techniques harder. Instead, if `flushWork` errors, then `hasMoreWork` will // remain true, and we'll continue the work loop. var hasMoreWork = true; try { hasMoreWork = flushWork(currentTime); } finally { if (hasMoreWork) { // If there's more work, schedule the next message event at the end // of the preceding one. schedulePerformWorkUntilDeadline(); } else { isMessageLoopRunning = false; } } } // Yielding to the browser will give it a chance to paint, so we can }; var schedulePerformWorkUntilDeadline; if (typeof localSetImmediate === 'function') { // Node.js and old IE. // There's a few reasons for why we prefer setImmediate. // // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting. // (Even though this is a DOM fork of the Scheduler, you could get here // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.) // https://github.com/facebook/react/issues/20756 // // But also, it runs earlier which is the semantic we want. // If other browsers ever implement it, it's better to use it. // Although both of these would be inferior to native scheduling. schedulePerformWorkUntilDeadline = function () { localSetImmediate(performWorkUntilDeadline); }; } else if (typeof MessageChannel !== 'undefined') { // DOM and Worker environments. // We prefer MessageChannel because of the 4ms setTimeout clamping. var channel = new MessageChannel(); var port = channel.port2; channel.port1.onmessage = performWorkUntilDeadline; schedulePerformWorkUntilDeadline = function () { port.postMessage(null); }; } else { // We should only fallback here in non-browser environments. schedulePerformWorkUntilDeadline = function () { // $FlowFixMe[not-a-function] nullable value localSetTimeout(performWorkUntilDeadline, 0); }; } function requestHostCallback() { if (!isMessageLoopRunning) { isMessageLoopRunning = true; schedulePerformWorkUntilDeadline(); } } function requestHostTimeout(callback, ms) { // $FlowFixMe[not-a-function] nullable value taskTimeoutID = localSetTimeout(function () { callback(exports.unstable_now()); }, ms); } function cancelHostTimeout() { // $FlowFixMe[not-a-function] nullable value localClearTimeout(taskTimeoutID); taskTimeoutID = -1; } var unstable_Profiling = null; exports.unstable_IdlePriority = IdlePriority; exports.unstable_ImmediatePriority = ImmediatePriority; exports.unstable_LowPriority = LowPriority; exports.unstable_NormalPriority = NormalPriority; exports.unstable_Profiling = unstable_Profiling; exports.unstable_UserBlockingPriority = UserBlockingPriority; exports.unstable_cancelCallback = unstable_cancelCallback; exports.unstable_continueExecution = unstable_continueExecution; exports.unstable_forceFrameRate = forceFrameRate; exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; exports.unstable_next = unstable_next; exports.unstable_pauseExecution = unstable_pauseExecution; exports.unstable_requestPaint = requestPaint; exports.unstable_runWithPriority = unstable_runWithPriority; exports.unstable_scheduleCallback = unstable_scheduleCallback; exports.unstable_shouldYield = shouldYieldToHost; exports.unstable_wrapCallback = unstable_wrapCallback; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === 'function' ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); } })(); } /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/scheduler/index.js": /*!**************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/scheduler/index.js ***! \**************************************************************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; if (false) {} else { module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/scheduler/cjs/scheduler.development.js"); } /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js": /*!***************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js ***! \***************************************************************************************************************************/ /***/ (function(module) { var __dirname = "/"; (()=>{"use strict";if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var e={};(()=>{var r=e;Object.defineProperty(r,"__esModule",{value:true});var n="";function parse(e){var r=e.split("\n");return r.reduce((function(e,r){var n=parseChrome(r)||parseWinjs(r)||parseGecko(r)||parseNode(r)||parseJSC(r);if(n){e.push(n)}return e}),[])}var a=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;var l=/\((\S*)(?::(\d+))(?::(\d+))\)/;function parseChrome(e){var r=a.exec(e);if(!r){return null}var u=r[2]&&r[2].indexOf("native")===0;var t=r[2]&&r[2].indexOf("eval")===0;var i=l.exec(r[2]);if(t&&i!=null){r[2]=i[1];r[3]=i[2];r[4]=i[3]}return{file:!u?r[2]:null,methodName:r[1]||n,arguments:u?[r[2]]:[],lineNumber:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}var u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function parseWinjs(e){var r=u.exec(e);if(!r){return null}return{file:r[2],methodName:r[1]||n,arguments:[],lineNumber:+r[3],column:r[4]?+r[4]:null}}var t=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;var i=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function parseGecko(e){var r=t.exec(e);if(!r){return null}var a=r[3]&&r[3].indexOf(" > eval")>-1;var l=i.exec(r[3]);if(a&&l!=null){r[3]=l[1];r[4]=l[2];r[5]=null}return{file:r[3],methodName:r[1]||n,arguments:r[2]?r[2].split(","):[],lineNumber:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}var s=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function parseJSC(e){var r=s.exec(e);if(!r){return null}return{file:r[3],methodName:r[1]||n,arguments:[],lineNumber:+r[4],column:r[5]?+r[5]:null}}var o=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function parseNode(e){var r=o.exec(e);if(!r){return null}return{file:r[2],methodName:r[1]||n,arguments:[],lineNumber:+r[3],column:r[4]?+r[4]:null}}r.parse=parse})();module.exports=e})(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/strip-ansi/index.js": /*!***************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/strip-ansi/index.js ***! \***************************************************************************************************/ /***/ (function(module) { "use strict"; var __dirname = "/"; (()=>{ "use strict"; var e = { 511: (e)=>{ e.exports = ({ onlyFirst: e = false } = {})=>{ const r = [ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))" ].join("|"); return new RegExp(r, e ? undefined : "g"); }; }, 532: (e, r, _)=>{ const t = _(511); e.exports = (e)=>typeof e === "string" ? e.replace(t(), "") : e; } }; var r = {}; function __nccwpck_require__(_) { var t = r[_]; if (t !== undefined) { return t.exports; } var a = r[_] = { exports: {} }; var n = true; try { e[_](a, a.exports, __nccwpck_require__); n = false; } finally{ if (n) delete r[_]; } return a.exports; } if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/"; var _ = __nccwpck_require__(532); module.exports = _; })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/lib/is-error.js": /*!**************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/lib/is-error.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { default: function() { return isError; }, getProperError: function() { return getProperError; } }); const _isplainobject = __webpack_require__(/*! ../shared/lib/is-plain-object */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/is-plain-object.js"); function isError(err) { return typeof err === "object" && err !== null && "name" in err && "message" in err; } function getProperError(err) { if (isError(err)) { return err; } if (true) { // provide better error for case where `throw undefined` // is called in development if (typeof err === "undefined") { return new Error("An undefined error was thrown, " + "see here for more info: https://nextjs.org/docs/messages/threw-undefined"); } if (err === null) { return new Error("A null error was thrown, " + "see here for more info: https://nextjs.org/docs/messages/threw-undefined"); } } return new Error((0, _isplainobject.isPlainObject)(err) ? JSON.stringify(err) : err + ""); } //# sourceMappingURL=is-error.js.map /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/app-render/get-segment-param.js": /*!*************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/app-render/get-segment-param.js ***! \*************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "getSegmentParam", ({ enumerable: true, get: function() { return getSegmentParam; } })); const _interceptionroutes = __webpack_require__(/*! ../future/helpers/interception-routes */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/future/helpers/interception-routes.js"); function getSegmentParam(segment) { const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((marker)=>segment.startsWith(marker)); // if an interception marker is part of the path segment, we need to jump ahead // to the relevant portion for param parsing if (interceptionMarker) { segment = segment.slice(interceptionMarker.length); } if (segment.startsWith("[[...") && segment.endsWith("]]")) { return { // TODO-APP: Optional catchall does not currently work with parallel routes, // so for now aren't handling a potential interception marker. type: "optional-catchall", param: segment.slice(5, -2) }; } if (segment.startsWith("[...") && segment.endsWith("]")) { return { type: interceptionMarker ? "catchall-intercepted" : "catchall", param: segment.slice(4, -1) }; } if (segment.startsWith("[") && segment.endsWith("]")) { return { type: interceptionMarker ? "dynamic-intercepted" : "dynamic", param: segment.slice(1, -1) }; } return null; } //# sourceMappingURL=get-segment-param.js.map /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/dev/extract-modules-from-turbopack-message.js": /*!***************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/dev/extract-modules-from-turbopack-message.js ***! \***************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "extractModulesFromTurbopackMessage", ({ enumerable: true, get: function() { return extractModulesFromTurbopackMessage; } })); function extractModulesFromTurbopackMessage(data) { const updatedModules = new Set(); const updates = Array.isArray(data) ? data : [ data ]; for (const update of updates){ // TODO this won't capture changes to CSS since they don't result in a "merged" update if (update.type !== "partial" || update.instruction.type !== "ChunkListUpdate" || update.instruction.merged === undefined) { continue; } for (const mergedUpdate of update.instruction.merged){ for (const name of Object.keys(mergedUpdate.entries)){ const res = /(.*)\s+\[.*/.exec(name); if (res === null) { console.error("[Turbopack HMR] Expected module to match pattern: " + name); continue; } updatedModules.add(res[1]); } } } return [ ...updatedModules ]; } //# sourceMappingURL=extract-modules-from-turbopack-message.js.map /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/dev/hot-reloader-types.js": /*!*******************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/dev/hot-reloader-types.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "HMR_ACTIONS_SENT_TO_BROWSER", ({ enumerable: true, get: function() { return HMR_ACTIONS_SENT_TO_BROWSER; } })); var HMR_ACTIONS_SENT_TO_BROWSER; (function(HMR_ACTIONS_SENT_TO_BROWSER) { HMR_ACTIONS_SENT_TO_BROWSER["ADDED_PAGE"] = "addedPage"; HMR_ACTIONS_SENT_TO_BROWSER["REMOVED_PAGE"] = "removedPage"; HMR_ACTIONS_SENT_TO_BROWSER["RELOAD_PAGE"] = "reloadPage"; HMR_ACTIONS_SENT_TO_BROWSER["SERVER_COMPONENT_CHANGES"] = "serverComponentChanges"; HMR_ACTIONS_SENT_TO_BROWSER["MIDDLEWARE_CHANGES"] = "middlewareChanges"; HMR_ACTIONS_SENT_TO_BROWSER["CLIENT_CHANGES"] = "clientChanges"; HMR_ACTIONS_SENT_TO_BROWSER["SERVER_ONLY_CHANGES"] = "serverOnlyChanges"; HMR_ACTIONS_SENT_TO_BROWSER["SYNC"] = "sync"; HMR_ACTIONS_SENT_TO_BROWSER["BUILT"] = "built"; HMR_ACTIONS_SENT_TO_BROWSER["BUILDING"] = "building"; HMR_ACTIONS_SENT_TO_BROWSER["DEV_PAGES_MANIFEST_UPDATE"] = "devPagesManifestUpdate"; HMR_ACTIONS_SENT_TO_BROWSER["TURBOPACK_MESSAGE"] = "turbopack-message"; HMR_ACTIONS_SENT_TO_BROWSER["SERVER_ERROR"] = "serverError"; HMR_ACTIONS_SENT_TO_BROWSER["TURBOPACK_CONNECTED"] = "turbopack-connected"; })(HMR_ACTIONS_SENT_TO_BROWSER || (HMR_ACTIONS_SENT_TO_BROWSER = {})); //# sourceMappingURL=hot-reloader-types.js.map /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/future/helpers/interception-routes.js": /*!*******************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/future/helpers/interception-routes.js ***! \*******************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { INTERCEPTION_ROUTE_MARKERS: function() { return INTERCEPTION_ROUTE_MARKERS; }, extractInterceptionRouteInformation: function() { return extractInterceptionRouteInformation; }, isInterceptionRouteAppPath: function() { return isInterceptionRouteAppPath; } }); const _apppaths = __webpack_require__(/*! ../../../shared/lib/router/utils/app-paths */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js"); const INTERCEPTION_ROUTE_MARKERS = [ "(..)(..)", "(.)", "(..)", "(...)" ]; function isInterceptionRouteAppPath(path) { // TODO-APP: add more serious validation return path.split("/").find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined; } function extractInterceptionRouteInformation(path) { let interceptingRoute, marker, interceptedRoute; for (const segment of path.split("/")){ marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m)); if (marker) { [interceptingRoute, interceptedRoute] = path.split(marker, 2); break; } } if (!interceptingRoute || !marker || !interceptedRoute) { throw new Error(`Invalid interception route: ${path}. Must be in the format //(..|...|..)(..)/`); } interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute) // normalize the path, e.g. /(blog)/feed -> /feed ; switch(marker){ case "(.)": // (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route if (interceptingRoute === "/") { interceptedRoute = `/${interceptedRoute}`; } else { interceptedRoute = interceptingRoute + "/" + interceptedRoute; } break; case "(..)": // (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route if (interceptingRoute === "/") { throw new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`); } interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/"); break; case "(...)": // (...) will match the route segment in the root directory, so we need to use the root directory to prepend the intercepted route interceptedRoute = "/" + interceptedRoute; break; case "(..)(..)": // (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route const splitInterceptingRoute = interceptingRoute.split("/"); if (splitInterceptingRoute.length <= 2) { throw new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`); } interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/"); break; default: throw new Error("Invariant: unexpected marker"); } return { interceptingRoute, interceptedRoute }; } //# sourceMappingURL=interception-routes.js.map /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/add-base-path.js": /*!**********************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/add-base-path.js ***! \**********************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "addBasePath", ({ enumerable: true, get: function() { return addBasePath; } })); const _addpathprefix = __webpack_require__(/*! ../shared/lib/router/utils/add-path-prefix */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js"); const _normalizetrailingslash = __webpack_require__(/*! ./normalize-trailing-slash */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/normalize-trailing-slash.js"); const basePath = false || ""; function addBasePath(path, required) { return (0, _normalizetrailingslash.normalizePathTrailingSlash)( false ? 0 : (0, _addpathprefix.addPathPrefix)(path, basePath)); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=add-base-path.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-bootstrap.js": /*!**********************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-bootstrap.js ***! \**********************************************************************************************/ /***/ (function(module, exports) { "use strict"; /** * Before starting the Next.js runtime and requiring any module, we need to make * sure the following scripts are executed in the correct order: * - Polyfills * - next/script with `beforeInteractive` strategy */ Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "appBootstrap", ({ enumerable: true, get: function() { return appBootstrap; } })); const version = "14.2.28"; window.next = { version, appDir: true }; function loadScriptsInSequence(scripts, hydrate) { if (!scripts || !scripts.length) { return hydrate(); } return scripts.reduce((promise, param)=>{ let [src, props] = param; return promise.then(()=>{ return new Promise((resolve, reject)=>{ const el = document.createElement("script"); if (props) { for(const key in props){ if (key !== "children") { el.setAttribute(key, props[key]); } } } if (src) { el.src = src; el.onload = ()=>resolve(); el.onerror = reject; } else if (props) { el.innerHTML = props.children; setTimeout(resolve); } document.head.appendChild(el); }); }); }, Promise.resolve()).catch((err)=>{ console.error(err); // Still try to hydrate even if there's an error. }).then(()=>{ hydrate(); }); } function appBootstrap(callback) { loadScriptsInSequence(self.__next_s, ()=>{ callback(); }); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-bootstrap.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-call-server.js": /*!************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-call-server.js ***! \************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "callServer", ({ enumerable: true, get: function() { return callServer; } })); const _approuter = __webpack_require__(/*! ./components/app-router */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router.js"); async function callServer(actionId, actionArgs) { const actionDispatcher = (0, _approuter.getServerActionDispatcher)(); if (!actionDispatcher) { throw new Error("Invariant: missing action dispatcher."); } return new Promise((resolve, reject)=>{ actionDispatcher({ actionId, actionArgs, resolve, reject }); }); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-call-server.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-index.js": /*!******************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-index.js ***! \******************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "hydrate", ({ enumerable: true, get: function() { return hydrate; } })); const _interop_require_default = __webpack_require__(/*! @swc/helpers/_/_interop_require_default */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_default.js"); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); __webpack_require__(/*! ../build/polyfills/polyfill-module */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/build/polyfills/polyfill-module.js"); const _client = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! react-dom/client */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-dom/client.js")); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _client1 = __webpack_require__(/*! react-server-dom-webpack/client */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-server-dom-webpack/client.js"); const _headmanagercontextsharedruntime = __webpack_require__(/*! ../shared/lib/head-manager-context.shared-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js"); const _onrecoverableerror = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! ./on-recoverable-error */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/on-recoverable-error.js")); const _appcallserver = __webpack_require__(/*! ./app-call-server */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-call-server.js"); const _isnextroutererror = __webpack_require__(/*! ./components/is-next-router-error */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/is-next-router-error.js"); const _actionqueue = __webpack_require__(/*! ../shared/lib/router/action-queue */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/router/action-queue.js"); const _hotreloadertypes = __webpack_require__(/*! ../server/dev/hot-reloader-types */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/dev/hot-reloader-types.js"); // Since React doesn't call onerror for errors caught in error boundaries. const origConsoleError = window.console.error; window.console.error = function() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } if ((0, _isnextroutererror.isNextRouterError)(args[0])) { return; } origConsoleError.apply(window.console, args); }; window.addEventListener("error", (ev)=>{ if ((0, _isnextroutererror.isNextRouterError)(ev.error)) { ev.preventDefault(); return; } }); /// const appElement = document; const encoder = new TextEncoder(); let initialServerDataBuffer = undefined; let initialServerDataWriter = undefined; let initialServerDataLoaded = false; let initialServerDataFlushed = false; let initialFormStateData = null; function nextServerDataCallback(seg) { if (seg[0] === 0) { initialServerDataBuffer = []; } else if (seg[0] === 1) { if (!initialServerDataBuffer) throw new Error("Unexpected server data: missing bootstrap script."); if (initialServerDataWriter) { initialServerDataWriter.enqueue(encoder.encode(seg[1])); } else { initialServerDataBuffer.push(seg[1]); } } else if (seg[0] === 2) { initialFormStateData = seg[1]; } } // There might be race conditions between `nextServerDataRegisterWriter` and // `DOMContentLoaded`. The former will be called when React starts to hydrate // the root, the latter will be called when the DOM is fully loaded. // For streaming, the former is called first due to partial hydration. // For non-streaming, the latter can be called first. // Hence, we use two variables `initialServerDataLoaded` and // `initialServerDataFlushed` to make sure the writer will be closed and // `initialServerDataBuffer` will be cleared in the right time. function nextServerDataRegisterWriter(ctr) { if (initialServerDataBuffer) { initialServerDataBuffer.forEach((val)=>{ ctr.enqueue(encoder.encode(val)); }); if (initialServerDataLoaded && !initialServerDataFlushed) { ctr.close(); initialServerDataFlushed = true; initialServerDataBuffer = undefined; } } initialServerDataWriter = ctr; } // When `DOMContentLoaded`, we can close all pending writers to finish hydration. const DOMContentLoaded = function() { if (initialServerDataWriter && !initialServerDataFlushed) { initialServerDataWriter.close(); initialServerDataFlushed = true; initialServerDataBuffer = undefined; } initialServerDataLoaded = true; }; _c = DOMContentLoaded; // It's possible that the DOM is already loaded. if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", DOMContentLoaded, false); } else { DOMContentLoaded(); } const nextServerDataLoadingGlobal = self.__next_f = self.__next_f || []; nextServerDataLoadingGlobal.forEach(nextServerDataCallback); nextServerDataLoadingGlobal.push = nextServerDataCallback; const readable = new ReadableStream({ start (controller) { nextServerDataRegisterWriter(controller); } }); const initialServerResponse = (0, _client1.createFromReadableStream)(readable, { callServer: _appcallserver.callServer }); function ServerRoot() { return (0, _react.use)(initialServerResponse); } _c1 = ServerRoot; const StrictModeIfEnabled = true ? _react.default.StrictMode : 0; function Root(param) { let { children } = param; // TODO: remove in the next major version if (false) {} if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks _react.default.useEffect(()=>{ window.__NEXT_HYDRATED = true; window.__NEXT_HYDRATED_CB == null ? void 0 : window.__NEXT_HYDRATED_CB.call(window); }, []); } return children; } _c2 = Root; function hydrate() { const actionQueue = (0, _actionqueue.createMutableActionQueue)(); const reactEl = /*#__PURE__*/ (0, _jsxruntime.jsx)(StrictModeIfEnabled, { children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_headmanagercontextsharedruntime.HeadManagerContext.Provider, { value: { appDir: true }, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_actionqueue.ActionQueueContext.Provider, { value: actionQueue, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Root, { children: /*#__PURE__*/ (0, _jsxruntime.jsx)(ServerRoot, {}) }) }) }) }); const rootLayoutMissingTags = window.__next_root_layout_missing_tags; const hasMissingTags = !!(rootLayoutMissingTags == null ? void 0 : rootLayoutMissingTags.length); const options = { onRecoverableError: _onrecoverableerror.default }; const isError = document.documentElement.id === "__next_error__" || hasMissingTags; if (true) { // Patch console.error to collect information about hydration errors const patchConsoleError = (__webpack_require__(/*! ./components/react-dev-overlay/internal/helpers/hydration-error-info */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/hydration-error-info.js").patchConsoleError); if (!isError) { patchConsoleError(); } } if (isError) { if (true) { // if an error is thrown while rendering an RSC stream, this will catch it in dev // and show the error overlay const ReactDevOverlay = (__webpack_require__(/*! ./components/react-dev-overlay/app/ReactDevOverlay */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js")["default"]); const INITIAL_OVERLAY_STATE = (__webpack_require__(/*! ./components/react-dev-overlay/shared */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/shared.js").INITIAL_OVERLAY_STATE); const getSocketUrl = (__webpack_require__(/*! ./components/react-dev-overlay/internal/helpers/get-socket-url */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js").getSocketUrl); const FallbackLayout = hasMissingTags ? (param)=>{ let { children } = param; return /*#__PURE__*/ (0, _jsxruntime.jsx)("html", { id: "__next_error__", children: /*#__PURE__*/ (0, _jsxruntime.jsx)("body", { children: children }) }); } : _react.default.Fragment; const errorTree = /*#__PURE__*/ (0, _jsxruntime.jsx)(FallbackLayout, { children: /*#__PURE__*/ (0, _jsxruntime.jsx)(ReactDevOverlay, { state: { ...INITIAL_OVERLAY_STATE, rootLayoutMissingTags }, onReactError: ()=>{}, children: reactEl }) }); const socketUrl = getSocketUrl( false || ""); const socket = new window.WebSocket("" + socketUrl + "/_next/webpack-hmr"); // add minimal "hot reload" support for RSC errors const handler = (event)=>{ let obj; try { obj = JSON.parse(event.data); } catch (e) {} if (!obj || !("action" in obj)) { return; } if (obj.action === _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES) { window.location.reload(); } }; socket.addEventListener("message", handler); _client.default.createRoot(appElement, options).render(errorTree); } else {} } else { _react.default.startTransition(()=>_client.default.hydrateRoot(appElement, reactEl, { ...options, formState: initialFormStateData })); } // TODO-APP: Remove this logic when Float has GC built-in in development. if (true) { const { linkGc } = __webpack_require__(/*! ./app-link-gc */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-link-gc.js"); linkGc(); } } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-index.js.map var _c, _c1, _c2; $RefreshReg$(_c, "DOMContentLoaded"); $RefreshReg$(_c1, "ServerRoot"); $RefreshReg$(_c2, "Root"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-link-gc.js": /*!********************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-link-gc.js ***! \********************************************************************************************/ /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "linkGc", ({ enumerable: true, get: function() { return linkGc; } })); function linkGc() { // TODO-APP: Remove this logic when Float has GC built-in in development. if (true) { const callback = (mutationList)=>{ for (const mutation of mutationList){ if (mutation.type === "childList") { for (const node of mutation.addedNodes){ if ("tagName" in node && node.tagName === "LINK") { var _link_dataset_precedence; const link = node; if ((_link_dataset_precedence = link.dataset.precedence) == null ? void 0 : _link_dataset_precedence.startsWith("next")) { const href = link.getAttribute("href"); if (href) { const [resource, version] = href.split("?v=", 2); if (version) { const currentOrigin = window.location.origin; const allLinks = [ ...document.querySelectorAll('link[href^="' + resource + '"]'), // It's possible that the resource is a full URL or only pathname, // so we need to remove the alternative href as well. ...document.querySelectorAll('link[href^="' + (resource.startsWith(currentOrigin) ? resource.slice(currentOrigin.length) : currentOrigin + resource) + '"]') ]; for (const otherLink of allLinks){ var _otherLink_dataset_precedence; if ((_otherLink_dataset_precedence = otherLink.dataset.precedence) == null ? void 0 : _otherLink_dataset_precedence.startsWith("next")) { const otherHref = otherLink.getAttribute("href"); if (otherHref) { const [, otherVersion] = otherHref.split("?v=", 2); if (!otherVersion || +otherVersion < +version) { // Delay the removal of the stylesheet to avoid FOUC // caused by `@font-face` rules, as they seem to be // a couple of ticks delayed between the old and new // styles being swapped even if the font is cached. setTimeout(()=>{ otherLink.remove(); }, 5); const preloadLink = document.querySelector('link[rel="preload"][as="style"][href="' + otherHref + '"]'); if (preloadLink) { preloadLink.remove(); } } } } } } } } } } } } }; // Create an observer instance linked to the callback function const observer = new MutationObserver(callback); observer.observe(document.head, { childList: true }); } } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-link-gc.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-next-dev.js": /*!*********************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-next-dev.js ***! \*********************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; // TODO-APP: hydration warning Object.defineProperty(exports, "__esModule", ({ value: true })); __webpack_require__(/*! ./app-webpack */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-webpack.js"); const _appbootstrap = __webpack_require__(/*! ./app-bootstrap */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-bootstrap.js"); (0, _appbootstrap.appBootstrap)(()=>{ const { hydrate } = __webpack_require__(/*! ./app-index */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-index.js"); hydrate(); }) // TODO-APP: build indicator ; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-next-dev.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-webpack.js": /*!********************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/app-webpack.js ***! \********************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; // Override chunk URL mapping in the webpack runtime // https://github.com/webpack/webpack/blob/2738eebc7880835d88c727d364ad37f3ec557593/lib/RuntimeGlobals.js#L204 Object.defineProperty(exports, "__esModule", ({ value: true })); const _deploymentid = __webpack_require__(/*! ../build/deployment-id */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/build/deployment-id.js"); // If we have a deployment ID, we need to append it to the webpack chunk names // I am keeping the process check explicit so this can be statically optimized if (false) {} else { // eslint-disable-next-line no-undef const getChunkScriptFilename = __webpack_require__.u; // eslint-disable-next-line no-undef __webpack_require__.u = function() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } return(// filename path. encodeURI(getChunkScriptFilename(...args))); }; // We don't need to override __webpack_require__.k because we don't modify // the css chunk name when not using deployment id suffixes // WE don't need to override __webpack_require__.miniCssF because we don't modify // the mini css chunk name when not using deployment id suffixes } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-webpack.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(shared)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/action-async-storage.external.js": /*!*************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/action-async-storage.external.js ***! \*************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "TURBOPACK { transition: next-shared }"; "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "actionAsyncStorage", ({ enumerable: true, get: function() { return _actionasyncstorageinstance.actionAsyncStorage; } })); const _actionasyncstorageinstance = __webpack_require__(/*! ./action-async-storage-instance */ "(shared)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/action-async-storage-instance.js"); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=action-async-storage.external.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router-announcer.js": /*!****************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router-announcer.js ***! \****************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "AppRouterAnnouncer", ({ enumerable: true, get: function() { return AppRouterAnnouncer; } })); const _react = __webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js"); const _reactdom = __webpack_require__(/*! react-dom */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react-dom/index.js"); const ANNOUNCER_TYPE = "next-route-announcer"; const ANNOUNCER_ID = "__next-route-announcer__"; function getAnnouncerNode() { var _existingAnnouncer_shadowRoot; const existingAnnouncer = document.getElementsByName(ANNOUNCER_TYPE)[0]; if (existingAnnouncer == null ? void 0 : (_existingAnnouncer_shadowRoot = existingAnnouncer.shadowRoot) == null ? void 0 : _existingAnnouncer_shadowRoot.childNodes[0]) { return existingAnnouncer.shadowRoot.childNodes[0]; } else { const container = document.createElement(ANNOUNCER_TYPE); container.style.cssText = "position:absolute"; const announcer = document.createElement("div"); announcer.ariaLive = "assertive"; announcer.id = ANNOUNCER_ID; announcer.role = "alert"; announcer.style.cssText = "position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal"; // Use shadow DOM here to avoid any potential CSS bleed const shadow = container.attachShadow({ mode: "open" }); shadow.appendChild(announcer); document.body.appendChild(container); return announcer; } } function AppRouterAnnouncer(param) { let { tree } = param; const [portalNode, setPortalNode] = (0, _react.useState)(null); (0, _react.useEffect)(()=>{ const announcer = getAnnouncerNode(); setPortalNode(announcer); return ()=>{ const container = document.getElementsByTagName(ANNOUNCER_TYPE)[0]; if (container == null ? void 0 : container.isConnected) { document.body.removeChild(container); } }; }, []); const [routeAnnouncement, setRouteAnnouncement] = (0, _react.useState)(""); const previousTitle = (0, _react.useRef)(); (0, _react.useEffect)(()=>{ let currentTitle = ""; if (document.title) { currentTitle = document.title; } else { const pageHeader = document.querySelector("h1"); if (pageHeader) { currentTitle = pageHeader.innerText || pageHeader.textContent || ""; } } // Only announce the title change, but not for the first load because screen // readers do that automatically. if (previousTitle.current !== undefined && previousTitle.current !== currentTitle) { setRouteAnnouncement(currentTitle); } previousTitle.current = currentTitle; }, [ tree ]); return portalNode ? /*#__PURE__*/ (0, _reactdom.createPortal)(routeAnnouncement, portalNode) : null; } _c = AppRouterAnnouncer; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-router-announcer.js.map var _c; $RefreshReg$(_c, "AppRouterAnnouncer"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router-headers.js": /*!**************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router-headers.js ***! \**************************************************************************************************************/ /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { ACTION: function() { return ACTION; }, FLIGHT_PARAMETERS: function() { return FLIGHT_PARAMETERS; }, NEXT_DID_POSTPONE_HEADER: function() { return NEXT_DID_POSTPONE_HEADER; }, NEXT_ROUTER_PREFETCH_HEADER: function() { return NEXT_ROUTER_PREFETCH_HEADER; }, NEXT_ROUTER_STATE_TREE: function() { return NEXT_ROUTER_STATE_TREE; }, NEXT_RSC_UNION_QUERY: function() { return NEXT_RSC_UNION_QUERY; }, NEXT_URL: function() { return NEXT_URL; }, RSC_CONTENT_TYPE_HEADER: function() { return RSC_CONTENT_TYPE_HEADER; }, RSC_HEADER: function() { return RSC_HEADER; } }); const RSC_HEADER = "RSC"; const ACTION = "Next-Action"; const NEXT_ROUTER_STATE_TREE = "Next-Router-State-Tree"; const NEXT_ROUTER_PREFETCH_HEADER = "Next-Router-Prefetch"; const NEXT_URL = "Next-Url"; const RSC_CONTENT_TYPE_HEADER = "text/x-component"; const FLIGHT_PARAMETERS = [ [ RSC_HEADER ], [ NEXT_ROUTER_STATE_TREE ], [ NEXT_ROUTER_PREFETCH_HEADER ] ]; const NEXT_RSC_UNION_QUERY = "_rsc"; const NEXT_DID_POSTPONE_HEADER = "x-nextjs-postponed"; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-router-headers.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router.js": /*!******************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router.js ***! \******************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* __next_internal_client_entry_do_not_use__ cjs */ var _s = $RefreshSig$(); "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { createEmptyCacheNode: function() { return createEmptyCacheNode; }, default: function() { return AppRouter; }, getServerActionDispatcher: function() { return getServerActionDispatcher; }, urlToUrlWithoutFlightMarker: function() { return urlToUrlWithoutFlightMarker; } }); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _approutercontextsharedruntime = __webpack_require__(/*! ../../shared/lib/app-router-context.shared-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js"); const _routerreducertypes = __webpack_require__(/*! ./router-reducer/router-reducer-types */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js"); const _createhreffromurl = __webpack_require__(/*! ./router-reducer/create-href-from-url */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js"); const _hooksclientcontextsharedruntime = __webpack_require__(/*! ../../shared/lib/hooks-client-context.shared-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js"); const _usereducerwithdevtools = __webpack_require__(/*! ./use-reducer-with-devtools */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/use-reducer-with-devtools.js"); const _errorboundary = __webpack_require__(/*! ./error-boundary */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/error-boundary.js"); const _createinitialrouterstate = __webpack_require__(/*! ./router-reducer/create-initial-router-state */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js"); const _isbot = __webpack_require__(/*! ../../shared/lib/router/utils/is-bot */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/router/utils/is-bot.js"); const _addbasepath = __webpack_require__(/*! ../add-base-path */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/add-base-path.js"); const _approuterannouncer = __webpack_require__(/*! ./app-router-announcer */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router-announcer.js"); const _redirectboundary = __webpack_require__(/*! ./redirect-boundary */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/redirect-boundary.js"); const _findheadincache = __webpack_require__(/*! ./router-reducer/reducers/find-head-in-cache */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js"); const _unresolvedthenable = __webpack_require__(/*! ./unresolved-thenable */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/unresolved-thenable.js"); const _approuterheaders = __webpack_require__(/*! ./app-router-headers */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/app-router-headers.js"); const _removebasepath = __webpack_require__(/*! ../remove-base-path */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/remove-base-path.js"); const _hasbasepath = __webpack_require__(/*! ../has-base-path */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/has-base-path.js"); const _segment = __webpack_require__(/*! ../../shared/lib/segment */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/segment.js"); const isServer = typeof window === "undefined"; // Ensure the initialParallelRoutes are not combined because of double-rendering in the browser with Strict Mode. let initialParallelRoutes = isServer ? null : new Map(); let globalServerActionDispatcher = null; function getServerActionDispatcher() { return globalServerActionDispatcher; } const globalMutable = {}; function urlToUrlWithoutFlightMarker(url) { const urlWithoutFlightParameters = new URL(url, location.origin); urlWithoutFlightParameters.searchParams.delete(_approuterheaders.NEXT_RSC_UNION_QUERY); if (false) {} return urlWithoutFlightParameters; } // this function performs a depth-first search of the tree to find the selected // params function getSelectedParams(currentTree, params) { if (params === void 0) params = {}; const parallelRoutes = currentTree[1]; for (const parallelRoute of Object.values(parallelRoutes)){ const segment = parallelRoute[0]; const isDynamicParameter = Array.isArray(segment); const segmentValue = isDynamicParameter ? segment[1] : segment; if (!segmentValue || segmentValue.startsWith(_segment.PAGE_SEGMENT_KEY)) continue; // Ensure catchAll and optional catchall are turned into an array const isCatchAll = isDynamicParameter && (segment[2] === "c" || segment[2] === "oc"); if (isCatchAll) { params[segment[0]] = segment[1].split("/"); } else if (isDynamicParameter) { params[segment[0]] = segment[1]; } params = getSelectedParams(parallelRoute, params); } return params; } function isExternalURL(url) { return url.origin !== window.location.origin; } function HistoryUpdater(param) { let { appRouterState, sync } = param; (0, _react.useInsertionEffect)(()=>{ const { tree, pushRef, canonicalUrl } = appRouterState; const historyState = { ...pushRef.preserveCustomHistoryState ? window.history.state : {}, // Identifier is shortened intentionally. // __NA is used to identify if the history entry can be handled by the app-router. // __N is used to identify if the history entry can be handled by the old router. __NA: true, __PRIVATE_NEXTJS_INTERNALS_TREE: tree }; if (pushRef.pendingPush && // Skip pushing an additional history entry if the canonicalUrl is the same as the current url. // This mirrors the browser behavior for normal navigation. (0, _createhreffromurl.createHrefFromUrl)(new URL(window.location.href)) !== canonicalUrl) { // This intentionally mutates React state, pushRef is overwritten to ensure additional push/replace calls do not trigger an additional history entry. pushRef.pendingPush = false; window.history.pushState(historyState, "", canonicalUrl); } else { window.history.replaceState(historyState, "", canonicalUrl); } sync(appRouterState); }, [ appRouterState, sync ]); return null; } _c = HistoryUpdater; function createEmptyCacheNode() { return { lazyData: null, rsc: null, prefetchRsc: null, head: null, prefetchHead: null, parallelRoutes: new Map(), lazyDataResolved: false, loading: null }; } function useServerActionDispatcher(dispatch) { const serverActionDispatcher = (0, _react.useCallback)((actionPayload)=>{ (0, _react.startTransition)(()=>{ dispatch({ ...actionPayload, type: _routerreducertypes.ACTION_SERVER_ACTION }); }); }, [ dispatch ]); globalServerActionDispatcher = serverActionDispatcher; } /** * Server response that only patches the cache and tree. */ function useChangeByServerResponse(dispatch) { return (0, _react.useCallback)((param)=>{ let { previousTree, serverResponse } = param; (0, _react.startTransition)(()=>{ dispatch({ type: _routerreducertypes.ACTION_SERVER_PATCH, previousTree, serverResponse }); }); }, [ dispatch ]); } function useNavigate(dispatch) { return (0, _react.useCallback)((href, navigateType, shouldScroll)=>{ const url = new URL((0, _addbasepath.addBasePath)(href), location.href); return dispatch({ type: _routerreducertypes.ACTION_NAVIGATE, url, isExternalUrl: isExternalURL(url), locationSearch: location.search, shouldScroll: shouldScroll != null ? shouldScroll : true, navigateType }); }, [ dispatch ]); } function copyNextJsInternalHistoryState(data) { if (data == null) data = {}; const currentState = window.history.state; const __NA = currentState == null ? void 0 : currentState.__NA; if (__NA) { data.__NA = __NA; } const __PRIVATE_NEXTJS_INTERNALS_TREE = currentState == null ? void 0 : currentState.__PRIVATE_NEXTJS_INTERNALS_TREE; if (__PRIVATE_NEXTJS_INTERNALS_TREE) { data.__PRIVATE_NEXTJS_INTERNALS_TREE = __PRIVATE_NEXTJS_INTERNALS_TREE; } return data; } function Head(param) { let { headCacheNode } = param; // If this segment has a `prefetchHead`, it's the statically prefetched data. // We should use that on initial render instead of `head`. Then we'll switch // to `head` when the dynamic response streams in. const head = headCacheNode !== null ? headCacheNode.head : null; const prefetchHead = headCacheNode !== null ? headCacheNode.prefetchHead : null; // If no prefetch data is available, then we go straight to rendering `head`. const resolvedPrefetchRsc = prefetchHead !== null ? prefetchHead : head; // We use `useDeferredValue` to handle switching between the prefetched and // final values. The second argument is returned on initial render, then it // re-renders with the first argument. // // @ts-expect-error The second argument to `useDeferredValue` is only // available in the experimental builds. When its disabled, it will always // return `head`. return (0, _react.useDeferredValue)(head, resolvedPrefetchRsc); } _c1 = Head; /** * The global router that wraps the application components. */ function Router(param) { _s(); let { buildId, initialHead, initialTree, urlParts, initialSeedData, couldBeIntercepted, assetPrefix, missingSlots } = param; const initialState = (0, _react.useMemo)(()=>(0, _createinitialrouterstate.createInitialRouterState)({ buildId, initialSeedData, urlParts, initialTree, initialParallelRoutes, location: !isServer ? window.location : null, initialHead, couldBeIntercepted }), [ buildId, initialSeedData, urlParts, initialTree, initialHead, couldBeIntercepted ]); const [reducerState, dispatch, sync] = (0, _usereducerwithdevtools.useReducerWithReduxDevtools)(initialState); (0, _react.useEffect)(()=>{ // Ensure initialParallelRoutes is cleaned up from memory once it's used. initialParallelRoutes = null; }, []); const { canonicalUrl } = (0, _usereducerwithdevtools.useUnwrapState)(reducerState); // Add memoized pathname/query for useSearchParams and usePathname. const { searchParams, pathname } = (0, _react.useMemo)(()=>{ const url = new URL(canonicalUrl, typeof window === "undefined" ? "http://n" : window.location.href); return { // This is turned into a readonly class in `useSearchParams` searchParams: url.searchParams, pathname: (0, _hasbasepath.hasBasePath)(url.pathname) ? (0, _removebasepath.removeBasePath)(url.pathname) : url.pathname }; }, [ canonicalUrl ]); const changeByServerResponse = useChangeByServerResponse(dispatch); const navigate = useNavigate(dispatch); useServerActionDispatcher(dispatch); /** * The app router that is exposed through `useRouter`. It's only concerned with dispatching actions to the reducer, does not hold state. */ const appRouter = (0, _react.useMemo)(()=>{ const routerInstance = { back: ()=>window.history.back(), forward: ()=>window.history.forward(), prefetch: (href, options)=>{ // Don't prefetch for bots as they don't navigate. if ((0, _isbot.isBot)(window.navigator.userAgent)) { return; } let url; try { url = new URL((0, _addbasepath.addBasePath)(href), window.location.href); } catch (_) { throw new Error("Cannot prefetch '" + href + "' because it cannot be converted to a URL."); } // Don't prefetch during development (improves compilation performance) if (true) { return; } // External urls can't be prefetched in the same way. if (isExternalURL(url)) { return; } (0, _react.startTransition)(()=>{ var _options_kind; dispatch({ type: _routerreducertypes.ACTION_PREFETCH, url, kind: (_options_kind = options == null ? void 0 : options.kind) != null ? _options_kind : _routerreducertypes.PrefetchKind.FULL }); }); }, replace: (href, options)=>{ if (options === void 0) options = {}; (0, _react.startTransition)(()=>{ var _options_scroll; navigate(href, "replace", (_options_scroll = options.scroll) != null ? _options_scroll : true); }); }, push: (href, options)=>{ if (options === void 0) options = {}; (0, _react.startTransition)(()=>{ var _options_scroll; navigate(href, "push", (_options_scroll = options.scroll) != null ? _options_scroll : true); }); }, refresh: ()=>{ (0, _react.startTransition)(()=>{ dispatch({ type: _routerreducertypes.ACTION_REFRESH, origin: window.location.origin }); }); }, fastRefresh: ()=>{ if (false) {} else { (0, _react.startTransition)(()=>{ dispatch({ type: _routerreducertypes.ACTION_FAST_REFRESH, origin: window.location.origin }); }); } } }; return routerInstance; }, [ dispatch, navigate ]); (0, _react.useEffect)(()=>{ // Exists for debugging purposes. Don't use in application code. if (window.next) { window.next.router = appRouter; } }, [ appRouter ]); if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks const { cache, prefetchCache, tree } = (0, _usereducerwithdevtools.useUnwrapState)(reducerState); // This hook is in a conditional but that is ok because `process.env.NODE_ENV` never changes // eslint-disable-next-line react-hooks/rules-of-hooks (0, _react.useEffect)(()=>{ // Add `window.nd` for debugging purposes. // This is not meant for use in applications as concurrent rendering will affect the cache/tree/router. // @ts-ignore this is for debugging window.nd = { router: appRouter, cache, prefetchCache, tree }; }, [ appRouter, cache, prefetchCache, tree ]); } (0, _react.useEffect)(()=>{ // If the app is restored from bfcache, it's possible that // pushRef.mpaNavigation is true, which would mean that any re-render of this component // would trigger the mpa navigation logic again from the lines below. // This will restore the router to the initial state in the event that the app is restored from bfcache. function handlePageShow(event) { var _window_history_state; if (!event.persisted || !((_window_history_state = window.history.state) == null ? void 0 : _window_history_state.__PRIVATE_NEXTJS_INTERNALS_TREE)) { return; } // Clear the pendingMpaPath value so that a subsequent MPA navigation to the same URL can be triggered. // This is necessary because if the browser restored from bfcache, the pendingMpaPath would still be set to the value // of the last MPA navigation. globalMutable.pendingMpaPath = undefined; dispatch({ type: _routerreducertypes.ACTION_RESTORE, url: new URL(window.location.href), tree: window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE }); } window.addEventListener("pageshow", handlePageShow); return ()=>{ window.removeEventListener("pageshow", handlePageShow); }; }, [ dispatch ]); // When mpaNavigation flag is set do a hard navigation to the new url. // Infinitely suspend because we don't actually want to rerender any child // components with the new URL and any entangled state updates shouldn't // commit either (eg: useTransition isPending should stay true until the page // unloads). // // This is a side effect in render. Don't try this at home, kids. It's // probably safe because we know this is a singleton component and it's never // in . At least I hope so. (It will run twice in dev strict mode, // but that's... fine?) const { pushRef } = (0, _usereducerwithdevtools.useUnwrapState)(reducerState); if (pushRef.mpaNavigation) { // if there's a re-render, we don't want to trigger another redirect if one is already in flight to the same URL if (globalMutable.pendingMpaPath !== canonicalUrl) { const location1 = window.location; if (pushRef.pendingPush) { location1.assign(canonicalUrl); } else { location1.replace(canonicalUrl); } globalMutable.pendingMpaPath = canonicalUrl; } // TODO-APP: Should we listen to navigateerror here to catch failed // navigations somehow? And should we call window.stop() if a SPA navigation // should interrupt an MPA one? (0, _react.use)(_unresolvedthenable.unresolvedThenable); } (0, _react.useEffect)(()=>{ const originalPushState = window.history.pushState.bind(window.history); const originalReplaceState = window.history.replaceState.bind(window.history); // Ensure the canonical URL in the Next.js Router is updated when the URL is changed so that `usePathname` and `useSearchParams` hold the pushed values. const applyUrlFromHistoryPushReplace = (url)=>{ var _window_history_state; const href = window.location.href; const tree = (_window_history_state = window.history.state) == null ? void 0 : _window_history_state.__PRIVATE_NEXTJS_INTERNALS_TREE; (0, _react.startTransition)(()=>{ dispatch({ type: _routerreducertypes.ACTION_RESTORE, url: new URL(url != null ? url : href, href), tree }); }); }; /** * Patch pushState to ensure external changes to the history are reflected in the Next.js Router. * Ensures Next.js internal history state is copied to the new history entry. * Ensures usePathname and useSearchParams hold the newly provided url. */ window.history.pushState = function pushState(data, _unused, url) { // Avoid a loop when Next.js internals trigger pushState/replaceState if ((data == null ? void 0 : data.__NA) || (data == null ? void 0 : data._N)) { return originalPushState(data, _unused, url); } data = copyNextJsInternalHistoryState(data); if (url) { applyUrlFromHistoryPushReplace(url); } return originalPushState(data, _unused, url); }; /** * Patch replaceState to ensure external changes to the history are reflected in the Next.js Router. * Ensures Next.js internal history state is copied to the new history entry. * Ensures usePathname and useSearchParams hold the newly provided url. */ window.history.replaceState = function replaceState(data, _unused, url) { // Avoid a loop when Next.js internals trigger pushState/replaceState if ((data == null ? void 0 : data.__NA) || (data == null ? void 0 : data._N)) { return originalReplaceState(data, _unused, url); } data = copyNextJsInternalHistoryState(data); if (url) { applyUrlFromHistoryPushReplace(url); } return originalReplaceState(data, _unused, url); }; /** * Handle popstate event, this is used to handle back/forward in the browser. * By default dispatches ACTION_RESTORE, however if the history entry was not pushed/replaced by app-router it will reload the page. * That case can happen when the old router injected the history entry. */ const onPopState = (param)=>{ let { state } = param; if (!state) { // TODO-APP: this case only happens when pushState/replaceState was called outside of Next.js. It should probably reload the page in this case. return; } // This case happens when the history entry was pushed by the `pages` router. if (!state.__NA) { window.location.reload(); return; } // TODO-APP: Ideally the back button should not use startTransition as it should apply the updates synchronously // Without startTransition works if the cache is there for this path (0, _react.startTransition)(()=>{ dispatch({ type: _routerreducertypes.ACTION_RESTORE, url: new URL(window.location.href), tree: state.__PRIVATE_NEXTJS_INTERNALS_TREE }); }); }; // Register popstate event to call onPopstate. window.addEventListener("popstate", onPopState); return ()=>{ window.history.pushState = originalPushState; window.history.replaceState = originalReplaceState; window.removeEventListener("popstate", onPopState); }; }, [ dispatch ]); const { cache, tree, nextUrl, focusAndScrollRef } = (0, _usereducerwithdevtools.useUnwrapState)(reducerState); const matchingHead = (0, _react.useMemo)(()=>{ return (0, _findheadincache.findHeadInCache)(cache, tree[1]); }, [ cache, tree ]); // Add memoized pathParams for useParams. const pathParams = (0, _react.useMemo)(()=>{ return getSelectedParams(tree); }, [ tree ]); let head; if (matchingHead !== null) { // The head is wrapped in an extra component so we can use // `useDeferredValue` to swap between the prefetched and final versions of // the head. (This is what LayoutRouter does for segment data, too.) // // The `key` is used to remount the component whenever the head moves to // a different segment. const [headCacheNode, headKey] = matchingHead; head = /*#__PURE__*/ (0, _jsxruntime.jsx)(Head, { headCacheNode: headCacheNode }, headKey); } else { head = null; } let content = /*#__PURE__*/ (0, _jsxruntime.jsxs)(_redirectboundary.RedirectBoundary, { children: [ head, cache.rsc, /*#__PURE__*/ (0, _jsxruntime.jsx)(_approuterannouncer.AppRouterAnnouncer, { tree: tree }) ] }); if (true) { if (typeof window !== "undefined") { const DevRootNotFoundBoundary = (__webpack_require__(/*! ./dev-root-not-found-boundary */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/dev-root-not-found-boundary.js").DevRootNotFoundBoundary); content = /*#__PURE__*/ (0, _jsxruntime.jsx)(DevRootNotFoundBoundary, { children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_approutercontextsharedruntime.MissingSlotContext.Provider, { value: missingSlots, children: content }) }); } const HotReloader = (__webpack_require__(/*! ./react-dev-overlay/app/hot-reloader-client */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/app/hot-reloader-client.js")["default"]); content = /*#__PURE__*/ (0, _jsxruntime.jsx)(HotReloader, { assetPrefix: assetPrefix, children: content }); } return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, { children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)(HistoryUpdater, { appRouterState: (0, _usereducerwithdevtools.useUnwrapState)(reducerState), sync: sync }), /*#__PURE__*/ (0, _jsxruntime.jsx)(_hooksclientcontextsharedruntime.PathParamsContext.Provider, { value: pathParams, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_hooksclientcontextsharedruntime.PathnameContext.Provider, { value: pathname, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_hooksclientcontextsharedruntime.SearchParamsContext.Provider, { value: searchParams, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_approutercontextsharedruntime.GlobalLayoutRouterContext.Provider, { value: { buildId, changeByServerResponse, tree, focusAndScrollRef, nextUrl }, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_approutercontextsharedruntime.AppRouterContext.Provider, { value: appRouter, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_approutercontextsharedruntime.LayoutRouterContext.Provider, { value: { childNodes: cache.parallelRoutes, tree, // Root node always has `url` // Provided in AppTreeContext to ensure it can be overwritten in layout-router url: canonicalUrl, loading: cache.loading }, children: content }) }) }) }) }) }) ] }); } _s(Router, "q0MfV9e9/a1iyE4/7qfUaQkhGE8=", false, function() { return [ useChangeByServerResponse, useNavigate, useServerActionDispatcher ]; }); _c2 = Router; function AppRouter(props) { const { globalErrorComponent, ...rest } = props; return /*#__PURE__*/ (0, _jsxruntime.jsx)(_errorboundary.ErrorBoundary, { errorComponent: globalErrorComponent, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Router, { ...rest }) }); } _c3 = AppRouter; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=app-router.js.map var _c, _c1, _c2, _c3; $RefreshReg$(_c, "HistoryUpdater"); $RefreshReg$(_c1, "Head"); $RefreshReg$(_c2, "Router"); $RefreshReg$(_c3, "AppRouter"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/bailout-to-client-rendering.js": /*!***********************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/bailout-to-client-rendering.js ***! \***********************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "bailoutToClientRendering", ({ enumerable: true, get: function() { return bailoutToClientRendering; } })); const _bailouttocsr = __webpack_require__(/*! ../../shared/lib/lazy-dynamic/bailout-to-csr */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js"); const _staticgenerationasyncstorageexternal = __webpack_require__(/*! ./static-generation-async-storage.external */ "(shared)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/static-generation-async-storage.external.js"); function bailoutToClientRendering(reason) { const staticGenerationStore = _staticgenerationasyncstorageexternal.staticGenerationAsyncStorage.getStore(); if (staticGenerationStore == null ? void 0 : staticGenerationStore.forceStatic) return; if (staticGenerationStore == null ? void 0 : staticGenerationStore.isStaticGeneration) throw new _bailouttocsr.BailoutToCSRError(reason); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=bailout-to-client-rendering.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/dev-root-not-found-boundary.js": /*!***********************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/dev-root-not-found-boundary.js ***! \***********************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* __next_internal_client_entry_do_not_use__ cjs */ Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { DevRootNotFoundBoundary: function() { return DevRootNotFoundBoundary; }, bailOnNotFound: function() { return bailOnNotFound; } }); const _interop_require_default = __webpack_require__(/*! @swc/helpers/_/_interop_require_default */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_default.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _notfoundboundary = __webpack_require__(/*! ./not-found-boundary */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/not-found-boundary.js"); function bailOnNotFound() { throw new Error("notFound() is not allowed to use in root layout"); } function NotAllowedRootNotFoundError() { bailOnNotFound(); return null; } _c = NotAllowedRootNotFoundError; function DevRootNotFoundBoundary(param) { let { children } = param; return /*#__PURE__*/ (0, _jsxruntime.jsx)(_notfoundboundary.NotFoundBoundary, { notFound: /*#__PURE__*/ (0, _jsxruntime.jsx)(NotAllowedRootNotFoundError, {}), children: children }); } _c1 = DevRootNotFoundBoundary; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=dev-root-not-found-boundary.js.map var _c, _c1; $RefreshReg$(_c, "NotAllowedRootNotFoundError"); $RefreshReg$(_c1, "DevRootNotFoundBoundary"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/error-boundary.js": /*!**********************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/error-boundary.js ***! \**********************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* __next_internal_client_entry_do_not_use__ cjs */ Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { ErrorBoundary: function() { return ErrorBoundary; }, ErrorBoundaryHandler: function() { return ErrorBoundaryHandler; }, GlobalError: function() { return GlobalError; }, // Exported so that the import signature in the loaders can be identical to user // supplied custom global error signatures. default: function() { return _default; } }); const _interop_require_default = __webpack_require__(/*! @swc/helpers/_/_interop_require_default */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_default.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _navigation = __webpack_require__(/*! ./navigation */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/navigation.js"); const _isnextroutererror = __webpack_require__(/*! ./is-next-router-error */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/is-next-router-error.js"); const _staticgenerationasyncstorageexternal = __webpack_require__(/*! ./static-generation-async-storage.external */ "(shared)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/static-generation-async-storage.external.js"); const styles = { error: { // https://github.com/sindresorhus/modern-normalize/blob/main/modern-normalize.css#L38-L52 fontFamily: 'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"', height: "100vh", textAlign: "center", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center" }, text: { fontSize: "14px", fontWeight: 400, lineHeight: "28px", margin: "0 8px" } }; // if we are revalidating we want to re-throw the error so the // function crashes so we can maintain our previous cache // instead of caching the error page function HandleISRError(param) { let { error } = param; const store = _staticgenerationasyncstorageexternal.staticGenerationAsyncStorage.getStore(); if ((store == null ? void 0 : store.isRevalidate) || (store == null ? void 0 : store.isStaticGeneration)) { console.error(error); throw error; } return null; } _c = HandleISRError; class ErrorBoundaryHandler extends _react.default.Component { static getDerivedStateFromError(error) { if ((0, _isnextroutererror.isNextRouterError)(error)) { // Re-throw if an expected internal Next.js router error occurs // this means it should be handled by a different boundary (such as a NotFound boundary in a parent segment) throw error; } return { error }; } static getDerivedStateFromProps(props, state) { /** * Handles reset of the error boundary when a navigation happens. * Ensures the error boundary does not stay enabled when navigating to a new page. * Approach of setState in render is safe as it checks the previous pathname and then overrides * it as outlined in https://react.dev/reference/react/useState#storing-information-from-previous-renders */ if (props.pathname !== state.previousPathname && state.error) { return { error: null, previousPathname: props.pathname }; } return { error: state.error, previousPathname: props.pathname }; } // Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific the the `@types/react` version. render() { if (this.state.error) { return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, { children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)(HandleISRError, { error: this.state.error }), this.props.errorStyles, this.props.errorScripts, /*#__PURE__*/ (0, _jsxruntime.jsx)(this.props.errorComponent, { error: this.state.error, reset: this.reset }) ] }); } return this.props.children; } constructor(props){ super(props); this.reset = ()=>{ this.setState({ error: null }); }; this.state = { error: null, previousPathname: this.props.pathname }; } } function GlobalError(param) { let { error } = param; const digest = error == null ? void 0 : error.digest; return /*#__PURE__*/ (0, _jsxruntime.jsxs)("html", { id: "__next_error__", children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("head", {}), /*#__PURE__*/ (0, _jsxruntime.jsxs)("body", { children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)(HandleISRError, { error: error }), /*#__PURE__*/ (0, _jsxruntime.jsx)("div", { style: styles.error, children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", { children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("h2", { style: styles.text, children: "Application error: a " + (digest ? "server" : "client") + "-side exception has occurred (see the " + (digest ? "server logs" : "browser console") + " for more information)." }), digest ? /*#__PURE__*/ (0, _jsxruntime.jsx)("p", { style: styles.text, children: "Digest: " + digest }) : null ] }) }) ] }) ] }); } _c1 = GlobalError; const _default = GlobalError; function ErrorBoundary(param) { let { errorComponent, errorStyles, errorScripts, children } = param; const pathname = (0, _navigation.usePathname)(); if (errorComponent) { return /*#__PURE__*/ (0, _jsxruntime.jsx)(ErrorBoundaryHandler, { pathname: pathname, errorComponent: errorComponent, errorStyles: errorStyles, errorScripts: errorScripts, children: children }); } return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, { children: children }); } _c2 = ErrorBoundary; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=error-boundary.js.map var _c, _c1, _c2; $RefreshReg$(_c, "HandleISRError"); $RefreshReg$(_c1, "GlobalError"); $RefreshReg$(_c2, "ErrorBoundary"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/is-hydration-error.js": /*!**************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/is-hydration-error.js ***! \**************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "isHydrationError", ({ enumerable: true, get: function() { return isHydrationError; } })); const _interop_require_default = __webpack_require__(/*! @swc/helpers/_/_interop_require_default */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_default.js"); const _iserror = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! ../../lib/is-error */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/lib/is-error.js")); const hydrationErrorRegex = /hydration failed|while hydrating|content does not match|did not match/i; function isHydrationError(error) { return (0, _iserror.default)(error) && hydrationErrorRegex.test(error.message); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=is-hydration-error.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/is-next-router-error.js": /*!****************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/is-next-router-error.js ***! \****************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "isNextRouterError", ({ enumerable: true, get: function() { return isNextRouterError; } })); const _notfound = __webpack_require__(/*! ./not-found */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/not-found.js"); const _redirect = __webpack_require__(/*! ./redirect */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/redirect.js"); function isNextRouterError(error) { return error && error.digest && ((0, _redirect.isRedirectError)(error) || (0, _notfound.isNotFoundError)(error)); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=is-next-router-error.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/match-segments.js": /*!**********************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/match-segments.js ***! \**********************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { canSegmentBeOverridden: function() { return canSegmentBeOverridden; }, matchSegment: function() { return matchSegment; } }); const _getsegmentparam = __webpack_require__(/*! ../../server/app-render/get-segment-param */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/app-render/get-segment-param.js"); const matchSegment = (existingSegment, segment)=>{ // segment is either Array or string if (typeof existingSegment === "string") { if (typeof segment === "string") { // Common case: segment is just a string return existingSegment === segment; } return false; } if (typeof segment === "string") { return false; } return existingSegment[0] === segment[0] && existingSegment[1] === segment[1]; }; const canSegmentBeOverridden = (existingSegment, segment)=>{ var _getSegmentParam; if (Array.isArray(existingSegment) || !Array.isArray(segment)) { return false; } return ((_getSegmentParam = (0, _getsegmentparam.getSegmentParam)(existingSegment)) == null ? void 0 : _getSegmentParam.param) === segment[0]; }; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=match-segments.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/navigation.js": /*!******************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/navigation.js ***! \******************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _s = $RefreshSig$(); "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { ReadonlyURLSearchParams: function() { return _navigationreactserver.ReadonlyURLSearchParams; }, RedirectType: function() { return _navigationreactserver.RedirectType; }, ServerInsertedHTMLContext: function() { return _serverinsertedhtmlsharedruntime.ServerInsertedHTMLContext; }, notFound: function() { return _navigationreactserver.notFound; }, permanentRedirect: function() { return _navigationreactserver.permanentRedirect; }, redirect: function() { return _navigationreactserver.redirect; }, useParams: function() { return useParams; }, usePathname: function() { return usePathname; }, useRouter: function() { return useRouter; }, useSearchParams: function() { return useSearchParams; }, useSelectedLayoutSegment: function() { return useSelectedLayoutSegment; }, useSelectedLayoutSegments: function() { return useSelectedLayoutSegments; }, useServerInsertedHTML: function() { return _serverinsertedhtmlsharedruntime.useServerInsertedHTML; } }); const _react = __webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js"); const _approutercontextsharedruntime = __webpack_require__(/*! ../../shared/lib/app-router-context.shared-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js"); const _hooksclientcontextsharedruntime = __webpack_require__(/*! ../../shared/lib/hooks-client-context.shared-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js"); const _getsegmentvalue = __webpack_require__(/*! ./router-reducer/reducers/get-segment-value */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js"); const _segment = __webpack_require__(/*! ../../shared/lib/segment */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/segment.js"); const _navigationreactserver = __webpack_require__(/*! ./navigation.react-server */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/navigation.react-server.js"); const _serverinsertedhtmlsharedruntime = __webpack_require__(/*! ../../shared/lib/server-inserted-html.shared-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js"); /** * A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook * that lets you *read* the current URL's search parameters. * * Learn more about [`URLSearchParams` on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams) * * @example * ```ts * "use client" * import { useSearchParams } from 'next/navigation' * * export default function Page() { * const searchParams = useSearchParams() * searchParams.get('foo') // returns 'bar' when ?foo=bar * // ... * } * ``` * * Read more: [Next.js Docs: `useSearchParams`](https://nextjs.org/docs/app/api-reference/functions/use-search-params) */ function useSearchParams() { const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext); // In the case where this is `null`, the compat types added in // `next-env.d.ts` will add a new overload that changes the return type to // include `null`. const readonlySearchParams = (0, _react.useMemo)(()=>{ if (!searchParams) { // When the router is not ready in pages, we won't have the search params // available. return null; } return new _navigationreactserver.ReadonlyURLSearchParams(searchParams); }, [ searchParams ]); if (typeof window === "undefined") { // AsyncLocalStorage should not be included in the client bundle. const { bailoutToClientRendering } = __webpack_require__(/*! ./bailout-to-client-rendering */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/bailout-to-client-rendering.js"); // TODO-APP: handle dynamic = 'force-static' here and on the client bailoutToClientRendering("useSearchParams()"); } return readonlySearchParams; } /** * A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook * that lets you read the current URL's pathname. * * @example * ```ts * "use client" * import { usePathname } from 'next/navigation' * * export default function Page() { * const pathname = usePathname() // returns "/dashboard" on /dashboard?foo=bar * // ... * } * ``` * * Read more: [Next.js Docs: `usePathname`](https://nextjs.org/docs/app/api-reference/functions/use-pathname) */ function usePathname() { // In the case where this is `null`, the compat types added in `next-env.d.ts` // will add a new overload that changes the return type to include `null`. return (0, _react.useContext)(_hooksclientcontextsharedruntime.PathnameContext); } /** * * This hook allows you to programmatically change routes inside [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components). * * @example * ```ts * "use client" * import { useRouter } from 'next/navigation' * * export default function Page() { * const router = useRouter() * // ... * router.push('/dashboard') // Navigate to /dashboard * } * ``` * * Read more: [Next.js Docs: `useRouter`](https://nextjs.org/docs/app/api-reference/functions/use-router) */ function useRouter() { const router = (0, _react.useContext)(_approutercontextsharedruntime.AppRouterContext); if (router === null) { throw new Error("invariant expected app router to be mounted"); } return router; } /** * A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook * that lets you read a route's dynamic params filled in by the current URL. * * @example * ```ts * "use client" * import { useParams } from 'next/navigation' * * export default function Page() { * // on /dashboard/[team] where pathname is /dashboard/nextjs * const { team } = useParams() // team === "nextjs" * } * ``` * * Read more: [Next.js Docs: `useParams`](https://nextjs.org/docs/app/api-reference/functions/use-params) */ function useParams() { return (0, _react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext); } /** Get the canonical parameters from the current level to the leaf node. */ function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first, segmentPath) { if (first === void 0) first = true; if (segmentPath === void 0) segmentPath = []; let node; if (first) { // Use the provided parallel route key on the first parallel route node = tree[1][parallelRouteKey]; } else { // After first parallel route prefer children, if there's no children pick the first parallel route. const parallelRoutes = tree[1]; var _parallelRoutes_children; node = (_parallelRoutes_children = parallelRoutes.children) != null ? _parallelRoutes_children : Object.values(parallelRoutes)[0]; } if (!node) return segmentPath; const segment = node[0]; const segmentValue = (0, _getsegmentvalue.getSegmentValue)(segment); if (!segmentValue || segmentValue.startsWith(_segment.PAGE_SEGMENT_KEY)) { return segmentPath; } segmentPath.push(segmentValue); return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath); } /** * A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook * that lets you read the active route segments **below** the Layout it is called from. * * @example * ```ts * 'use client' * * import { useSelectedLayoutSegments } from 'next/navigation' * * export default function ExampleClientComponent() { * const segments = useSelectedLayoutSegments() * * return ( *
    * {segments.map((segment, index) => ( *
  • {segment}
  • * ))} *
* ) * } * ``` * * Read more: [Next.js Docs: `useSelectedLayoutSegments`](https://nextjs.org/docs/app/api-reference/functions/use-selected-layout-segments) */ function useSelectedLayoutSegments(parallelRouteKey) { if (parallelRouteKey === void 0) parallelRouteKey = "children"; const context = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext); // @ts-expect-error This only happens in `pages`. Type is overwritten in navigation.d.ts if (!context) return null; return getSelectedLayoutSegmentPath(context.tree, parallelRouteKey); } /** * A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook * that lets you read the active route segment **one level below** the Layout it is called from. * * @example * ```ts * 'use client' * import { useSelectedLayoutSegment } from 'next/navigation' * * export default function ExampleClientComponent() { * const segment = useSelectedLayoutSegment() * * return

Active segment: {segment}

* } * ``` * * Read more: [Next.js Docs: `useSelectedLayoutSegment`](https://nextjs.org/docs/app/api-reference/functions/use-selected-layout-segment) */ function useSelectedLayoutSegment(parallelRouteKey) { _s(); if (parallelRouteKey === void 0) parallelRouteKey = "children"; const selectedLayoutSegments = useSelectedLayoutSegments(parallelRouteKey); if (!selectedLayoutSegments || selectedLayoutSegments.length === 0) { return null; } const selectedLayoutSegment = parallelRouteKey === "children" ? selectedLayoutSegments[0] : selectedLayoutSegments[selectedLayoutSegments.length - 1]; // if the default slot is showing, we return null since it's not technically "selected" (it's a fallback) // and returning an internal value like `__DEFAULT__` would be confusing. return selectedLayoutSegment === _segment.DEFAULT_SEGMENT_KEY ? null : selectedLayoutSegment; } _s(useSelectedLayoutSegment, "rc1U92JxkDTv7MNGlutCvlwOCmc=", false, function() { return [ useSelectedLayoutSegments ]; }); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=navigation.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/navigation.react-server.js": /*!*******************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/navigation.react-server.js ***! \*******************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** @internal */ Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { ReadonlyURLSearchParams: function() { return ReadonlyURLSearchParams; }, RedirectType: function() { return _redirect.RedirectType; }, notFound: function() { return _notfound.notFound; }, permanentRedirect: function() { return _redirect.permanentRedirect; }, redirect: function() { return _redirect.redirect; } }); const _redirect = __webpack_require__(/*! ./redirect */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/redirect.js"); const _notfound = __webpack_require__(/*! ./not-found */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/not-found.js"); class ReadonlyURLSearchParamsError extends Error { constructor(){ super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams"); } } class ReadonlyURLSearchParams extends URLSearchParams { /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ append() { throw new ReadonlyURLSearchParamsError(); } /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ delete() { throw new ReadonlyURLSearchParamsError(); } /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ set() { throw new ReadonlyURLSearchParamsError(); } /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ sort() { throw new ReadonlyURLSearchParamsError(); } } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=navigation.react-server.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/not-found-boundary.js": /*!**************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/not-found-boundary.js ***! \**************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* __next_internal_client_entry_do_not_use__ cjs */ Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "NotFoundBoundary", ({ enumerable: true, get: function() { return NotFoundBoundary; } })); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _navigation = __webpack_require__(/*! ./navigation */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/navigation.js"); const _notfound = __webpack_require__(/*! ./not-found */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/not-found.js"); const _warnonce = __webpack_require__(/*! ../../shared/lib/utils/warn-once */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/utils/warn-once.js"); const _approutercontextsharedruntime = __webpack_require__(/*! ../../shared/lib/app-router-context.shared-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js"); class NotFoundErrorBoundary extends _react.default.Component { componentDidCatch() { if ( true && // A missing children slot is the typical not-found case, so no need to warn !this.props.missingSlots.has("children")) { let warningMessage = "No default component was found for a parallel route rendered on this page. Falling back to nearest NotFound boundary.\n" + "Learn more: https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#defaultjs\n\n"; if (this.props.missingSlots.size > 0) { const formattedSlots = Array.from(this.props.missingSlots).sort((a, b)=>a.localeCompare(b)).map((slot)=>"@" + slot).join(", "); warningMessage += "Missing slots: " + formattedSlots; } (0, _warnonce.warnOnce)(warningMessage); } } static getDerivedStateFromError(error) { if ((0, _notfound.isNotFoundError)(error)) { return { notFoundTriggered: true }; } // Re-throw if error is not for 404 throw error; } static getDerivedStateFromProps(props, state) { /** * Handles reset of the error boundary when a navigation happens. * Ensures the error boundary does not stay enabled when navigating to a new page. * Approach of setState in render is safe as it checks the previous pathname and then overrides * it as outlined in https://react.dev/reference/react/useState#storing-information-from-previous-renders */ if (props.pathname !== state.previousPathname && state.notFoundTriggered) { return { notFoundTriggered: false, previousPathname: props.pathname }; } return { notFoundTriggered: state.notFoundTriggered, previousPathname: props.pathname }; } render() { if (this.state.notFoundTriggered) { return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, { children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", { name: "robots", content: "noindex" }), true && /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", { name: "next-error", content: "not-found" }), this.props.notFoundStyles, this.props.notFound ] }); } return this.props.children; } constructor(props){ super(props); this.state = { notFoundTriggered: !!props.asNotFound, previousPathname: props.pathname }; } } function NotFoundBoundary(param) { let { notFound, notFoundStyles, asNotFound, children } = param; const pathname = (0, _navigation.usePathname)(); const missingSlots = (0, _react.useContext)(_approutercontextsharedruntime.MissingSlotContext); return notFound ? /*#__PURE__*/ (0, _jsxruntime.jsx)(NotFoundErrorBoundary, { pathname: pathname, notFound: notFound, notFoundStyles: notFoundStyles, asNotFound: asNotFound, missingSlots: missingSlots, children: children }) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, { children: children }); } _c = NotFoundBoundary; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=not-found-boundary.js.map var _c; $RefreshReg$(_c, "NotFoundBoundary"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/not-found.js": /*!*****************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/not-found.js ***! \*****************************************************************************************************/ /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { isNotFoundError: function() { return isNotFoundError; }, notFound: function() { return notFound; } }); const NOT_FOUND_ERROR_CODE = "NEXT_NOT_FOUND"; function notFound() { // eslint-disable-next-line no-throw-literal const error = new Error(NOT_FOUND_ERROR_CODE); error.digest = NOT_FOUND_ERROR_CODE; throw error; } function isNotFoundError(error) { if (typeof error !== "object" || error === null || !("digest" in error)) { return false; } return error.digest === NOT_FOUND_ERROR_CODE; } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=not-found.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/promise-queue.js": /*!*********************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/promise-queue.js ***! \*********************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* This is a simple promise queue that allows you to limit the number of concurrent promises that are running at any given time. It's used to limit the number of concurrent prefetch requests that are being made to the server but could be used for other things as well. */ Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "PromiseQueue", ({ enumerable: true, get: function() { return PromiseQueue; } })); const _class_private_field_loose_base = __webpack_require__(/*! @swc/helpers/_/_class_private_field_loose_base */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_class_private_field_loose_base.js"); const _class_private_field_loose_key = __webpack_require__(/*! @swc/helpers/_/_class_private_field_loose_key */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_class_private_field_loose_key.js"); var _maxConcurrency = /*#__PURE__*/ _class_private_field_loose_key._("_maxConcurrency"), _runningCount = /*#__PURE__*/ _class_private_field_loose_key._("_runningCount"), _queue = /*#__PURE__*/ _class_private_field_loose_key._("_queue"), _processNext = /*#__PURE__*/ _class_private_field_loose_key._("_processNext"); class PromiseQueue { enqueue(promiseFn) { let taskResolve; let taskReject; const taskPromise = new Promise((resolve, reject)=>{ taskResolve = resolve; taskReject = reject; }); const task = async ()=>{ try { _class_private_field_loose_base._(this, _runningCount)[_runningCount]++; const result = await promiseFn(); taskResolve(result); } catch (error) { taskReject(error); } finally{ _class_private_field_loose_base._(this, _runningCount)[_runningCount]--; _class_private_field_loose_base._(this, _processNext)[_processNext](); } }; const enqueueResult = { promiseFn: taskPromise, task }; // wonder if we should take a LIFO approach here _class_private_field_loose_base._(this, _queue)[_queue].push(enqueueResult); _class_private_field_loose_base._(this, _processNext)[_processNext](); return taskPromise; } bump(promiseFn) { const index = _class_private_field_loose_base._(this, _queue)[_queue].findIndex((item)=>item.promiseFn === promiseFn); if (index > -1) { const bumpedItem = _class_private_field_loose_base._(this, _queue)[_queue].splice(index, 1)[0]; _class_private_field_loose_base._(this, _queue)[_queue].unshift(bumpedItem); _class_private_field_loose_base._(this, _processNext)[_processNext](true); } } constructor(maxConcurrency = 5){ Object.defineProperty(this, _processNext, { value: processNext }); Object.defineProperty(this, _maxConcurrency, { writable: true, value: void 0 }); Object.defineProperty(this, _runningCount, { writable: true, value: void 0 }); Object.defineProperty(this, _queue, { writable: true, value: void 0 }); _class_private_field_loose_base._(this, _maxConcurrency)[_maxConcurrency] = maxConcurrency; _class_private_field_loose_base._(this, _runningCount)[_runningCount] = 0; _class_private_field_loose_base._(this, _queue)[_queue] = []; } } function processNext(forced) { if (forced === void 0) forced = false; if ((_class_private_field_loose_base._(this, _runningCount)[_runningCount] < _class_private_field_loose_base._(this, _maxConcurrency)[_maxConcurrency] || forced) && _class_private_field_loose_base._(this, _queue)[_queue].length > 0) { var _class_private_field_loose_base__queue_shift; (_class_private_field_loose_base__queue_shift = _class_private_field_loose_base._(this, _queue)[_queue].shift()) == null ? void 0 : _class_private_field_loose_base__queue_shift.task(); } } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=promise-queue.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js": /*!*********************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js ***! \*********************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "default", ({ enumerable: true, get: function() { return ReactDevOverlay; } })); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _shared = __webpack_require__(/*! ../shared */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/shared.js"); const _ShadowPortal = __webpack_require__(/*! ../internal/components/ShadowPortal */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/ShadowPortal.js"); const _BuildError = __webpack_require__(/*! ../internal/container/BuildError */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/container/BuildError.js"); const _Errors = __webpack_require__(/*! ../internal/container/Errors */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/container/Errors.js"); const _parseStack = __webpack_require__(/*! ../internal/helpers/parseStack */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parseStack.js"); const _Base = __webpack_require__(/*! ../internal/styles/Base */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/styles/Base.js"); const _ComponentStyles = __webpack_require__(/*! ../internal/styles/ComponentStyles */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/styles/ComponentStyles.js"); const _CssReset = __webpack_require__(/*! ../internal/styles/CssReset */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/styles/CssReset.js"); const _rootlayoutmissingtagserror = __webpack_require__(/*! ../internal/container/root-layout-missing-tags-error */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/container/root-layout-missing-tags-error.js"); class ReactDevOverlay extends _react.PureComponent { static getDerivedStateFromError(error) { if (!error.stack) return { reactError: null }; return { reactError: { id: 0, event: { type: _shared.ACTION_UNHANDLED_ERROR, reason: error, frames: (0, _parseStack.parseStack)(error.stack) } } }; } componentDidCatch(componentErr) { this.props.onReactError(componentErr); } render() { var _state_rootLayoutMissingTags, _state_rootLayoutMissingTags1; const { state, children } = this.props; const { reactError } = this.state; const hasBuildError = state.buildError != null; const hasRuntimeErrors = Boolean(state.errors.length); const hasMissingTags = Boolean((_state_rootLayoutMissingTags = state.rootLayoutMissingTags) == null ? void 0 : _state_rootLayoutMissingTags.length); const isMounted = hasBuildError || hasRuntimeErrors || reactError || hasMissingTags; return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, { children: [ reactError ? /*#__PURE__*/ (0, _jsxruntime.jsxs)("html", { children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("head", {}), /*#__PURE__*/ (0, _jsxruntime.jsx)("body", {}) ] }) : children, isMounted ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_ShadowPortal.ShadowPortal, { children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)(_CssReset.CssReset, {}), /*#__PURE__*/ (0, _jsxruntime.jsx)(_Base.Base, {}), /*#__PURE__*/ (0, _jsxruntime.jsx)(_ComponentStyles.ComponentStyles, {}), ((_state_rootLayoutMissingTags1 = state.rootLayoutMissingTags) == null ? void 0 : _state_rootLayoutMissingTags1.length) ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_rootlayoutmissingtagserror.RootLayoutMissingTagsError, { missingTags: state.rootLayoutMissingTags }) : hasBuildError ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_BuildError.BuildError, { message: state.buildError, versionInfo: state.versionInfo }) : reactError ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_Errors.Errors, { isAppDir: true, versionInfo: state.versionInfo, initialDisplayState: "fullscreen", errors: [ reactError ] }) : hasRuntimeErrors ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_Errors.Errors, { isAppDir: true, initialDisplayState: "minimized", errors: state.errors, versionInfo: state.versionInfo }) : undefined ] }) : undefined ] }); } constructor(...args){ super(...args); this.state = { reactError: null }; } } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=ReactDevOverlay.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/app/hot-reloader-client.js": /*!*************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/app/hot-reloader-client.js ***! \*************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "default", ({ enumerable: true, get: function() { return HotReload; } })); const _interop_require_default = __webpack_require__(/*! @swc/helpers/_/_interop_require_default */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_default.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = __webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js"); const _stripansi = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! next/dist/compiled/strip-ansi */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/strip-ansi/index.js")); const _formatwebpackmessages = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! ../internal/helpers/format-webpack-messages */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/format-webpack-messages.js")); const _navigation = __webpack_require__(/*! ../../navigation */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/navigation.js"); const _shared = __webpack_require__(/*! ../shared */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/shared.js"); const _parseStack = __webpack_require__(/*! ../internal/helpers/parseStack */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parseStack.js"); const _ReactDevOverlay = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! ./ReactDevOverlay */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js")); const _useerrorhandler = __webpack_require__(/*! ../internal/helpers/use-error-handler */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-error-handler.js"); const _runtimeerrorhandler = __webpack_require__(/*! ../internal/helpers/runtime-error-handler */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/runtime-error-handler.js"); const _usewebsocket = __webpack_require__(/*! ../internal/helpers/use-websocket */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-websocket.js"); const _parsecomponentstack = __webpack_require__(/*! ../internal/helpers/parse-component-stack */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-component-stack.js"); const _hotreloadertypes = __webpack_require__(/*! ../../../../server/dev/hot-reloader-types */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/dev/hot-reloader-types.js"); const _extractmodulesfromturbopackmessage = __webpack_require__(/*! ../../../../server/dev/extract-modules-from-turbopack-message */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/server/dev/extract-modules-from-turbopack-message.js"); let mostRecentCompilationHash = null; let __nextDevClientId = Math.round(Math.random() * 100 + Date.now()); let reloading = false; let startLatency = null; function onBeforeFastRefresh(dispatcher, hasUpdates) { if (hasUpdates) { dispatcher.onBeforeRefresh(); } } function onFastRefresh(dispatcher, sendMessage, updatedModules) { dispatcher.onBuildOk(); reportHmrLatency(sendMessage, updatedModules); dispatcher.onRefresh(); } function reportHmrLatency(sendMessage, updatedModules) { if (!startLatency) return; let endLatency = Date.now(); const latency = endLatency - startLatency; console.log("[Fast Refresh] done in " + latency + "ms"); sendMessage(JSON.stringify({ event: "client-hmr-latency", id: window.__nextDevClientId, startTime: startLatency, endTime: endLatency, page: window.location.pathname, updatedModules, // Whether the page (tab) was hidden at the time the event occurred. // This can impact the accuracy of the event's timing. isPageHidden: document.visibilityState === "hidden" })); } // There is a newer version of the code available. function handleAvailableHash(hash) { // Update last known compilation hash. mostRecentCompilationHash = hash; } /** * Is there a newer version of this code available? * For webpack: Check if the hash changed compared to __webpack_hash__ * For Turbopack: Always true because it doesn't have __webpack_hash__ */ function isUpdateAvailable() { if (false) {} /* globals __webpack_hash__ */ // __webpack_hash__ is the hash of the current compilation. // It's a global variable injected by Webpack. return mostRecentCompilationHash !== __webpack_require__.h(); } // Webpack disallows updates in other states. function canApplyUpdates() { // @ts-expect-error module.hot exists return module.hot.status() === "idle"; } function afterApplyUpdates(fn) { if (canApplyUpdates()) { fn(); } else { function handler(status) { if (status === "idle") { // @ts-expect-error module.hot exists module.hot.removeStatusHandler(handler); fn(); } } // @ts-expect-error module.hot exists module.hot.addStatusHandler(handler); } } function performFullReload(err, sendMessage) { const stackTrace = err && (err.stack && err.stack.split("\n").slice(0, 5).join("\n") || err.message || err + ""); sendMessage(JSON.stringify({ event: "client-full-reload", stackTrace, hadRuntimeError: !!_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError, dependencyChain: err ? err.dependencyChain : undefined })); if (reloading) return; reloading = true; window.location.reload(); } // Attempt to update code on the fly, fall back to a hard reload. function tryApplyUpdates(onBeforeUpdate, onHotUpdateSuccess, sendMessage, dispatcher) { if (!isUpdateAvailable() || !canApplyUpdates()) { dispatcher.onBuildOk(); return; } function handleApplyUpdates(err, updatedModules) { if (err || _runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError || !updatedModules) { if (err) { console.warn("[Fast Refresh] performing full reload\n\n" + "Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\n" + "You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\n" + "Consider migrating the non-React component export to a separate file and importing it into both files.\n\n" + "It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\n" + "Fast Refresh requires at least one parent function component in your React tree."); } else if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) { console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR); } performFullReload(err, sendMessage); return; } const hasUpdates = Boolean(updatedModules.length); if (typeof onHotUpdateSuccess === "function") { // Maybe we want to do something. onHotUpdateSuccess(updatedModules); } if (isUpdateAvailable()) { // While we were updating, there was a new update! Do it again. tryApplyUpdates(hasUpdates ? ()=>{} : onBeforeUpdate, hasUpdates ? ()=>dispatcher.onBuildOk() : onHotUpdateSuccess, sendMessage, dispatcher); } else { dispatcher.onBuildOk(); if (true) { afterApplyUpdates(()=>{ if (self.__NEXT_HMR_CB) { self.__NEXT_HMR_CB(); self.__NEXT_HMR_CB = null; } }); } } } // https://webpack.js.org/api/hot-module-replacement/#check // @ts-expect-error module.hot exists module.hot.check(/* autoApply */ false).then((updatedModules)=>{ if (!updatedModules) { return null; } if (typeof onBeforeUpdate === "function") { const hasUpdates = Boolean(updatedModules.length); onBeforeUpdate(hasUpdates); } // https://webpack.js.org/api/hot-module-replacement/#apply // @ts-expect-error module.hot exists return module.hot.apply(); }).then((updatedModules)=>{ handleApplyUpdates(null, updatedModules); }, (err)=>{ handleApplyUpdates(err, null); }); } /** Handles messages from the sevrer for the App Router. */ function processMessage(obj, sendMessage, processTurbopackMessage, router, dispatcher) { if (!("action" in obj)) { return; } function handleErrors(errors) { // "Massage" webpack messages. const formatted = (0, _formatwebpackmessages.default)({ errors: errors, warnings: [] }); // Only show the first error. dispatcher.onBuildError(formatted.errors[0]); // Also log them to the console. for(let i = 0; i < formatted.errors.length; i++){ console.error((0, _stripansi.default)(formatted.errors[i])); } // Do not attempt to reload now. // We will reload on next success instead. if (true) { if (self.__NEXT_HMR_CB) { self.__NEXT_HMR_CB(formatted.errors[0]); self.__NEXT_HMR_CB = null; } } } function handleHotUpdate() { if (false) {} else { tryApplyUpdates(function onBeforeHotUpdate(hasUpdates) { onBeforeFastRefresh(dispatcher, hasUpdates); }, function onSuccessfulHotUpdate(webpackUpdatedModules) { // Only dismiss it when we're sure it's a hot update. // Otherwise it would flicker right before the reload. onFastRefresh(dispatcher, sendMessage, webpackUpdatedModules); }, sendMessage, dispatcher); } } switch(obj.action){ case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILDING: { startLatency = Date.now(); console.log("[Fast Refresh] rebuilding"); break; } case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILT: case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SYNC: { if (obj.hash) { handleAvailableHash(obj.hash); } const { errors, warnings } = obj; // Is undefined when it's a 'built' event if ("versionInfo" in obj) dispatcher.onVersionInfo(obj.versionInfo); const hasErrors = Boolean(errors && errors.length); // Compilation with errors (e.g. syntax error or missing modules). if (hasErrors) { sendMessage(JSON.stringify({ event: "client-error", errorCount: errors.length, clientId: __nextDevClientId })); handleErrors(errors); return; } const hasWarnings = Boolean(warnings && warnings.length); if (hasWarnings) { sendMessage(JSON.stringify({ event: "client-warning", warningCount: warnings.length, clientId: __nextDevClientId })); // Print warnings to the console. const formattedMessages = (0, _formatwebpackmessages.default)({ warnings: warnings, errors: [] }); for(let i = 0; i < formattedMessages.warnings.length; i++){ if (i === 5) { console.warn("There were more warnings in other files.\n" + "You can find a complete log in the terminal."); break; } console.warn((0, _stripansi.default)(formattedMessages.warnings[i])); } // No early return here as we need to apply modules in the same way between warnings only and compiles without warnings } sendMessage(JSON.stringify({ event: "client-success", clientId: __nextDevClientId })); if (obj.action === _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.BUILT) { // Handle hot updates handleHotUpdate(); } return; } case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED: { processTurbopackMessage({ type: _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_CONNECTED }); break; } case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE: { const updatedModules = (0, _extractmodulesfromturbopackmessage.extractModulesFromTurbopackMessage)(obj.data); dispatcher.onBeforeRefresh(); processTurbopackMessage({ type: _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.TURBOPACK_MESSAGE, data: obj.data }); dispatcher.onRefresh(); if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) { console.warn(_shared.REACT_REFRESH_FULL_RELOAD_FROM_ERROR); performFullReload(null, sendMessage); } reportHmrLatency(sendMessage, updatedModules); break; } // TODO-APP: make server component change more granular case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES: { sendMessage(JSON.stringify({ event: "server-component-reload-page", clientId: __nextDevClientId })); if (_runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError) { if (reloading) return; reloading = true; return window.location.reload(); } (0, _react.startTransition)(()=>{ router.fastRefresh(); dispatcher.onRefresh(); }); if (true) { if (self.__NEXT_HMR_CB) { self.__NEXT_HMR_CB(); self.__NEXT_HMR_CB = null; } } return; } case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.RELOAD_PAGE: { sendMessage(JSON.stringify({ event: "client-reload-page", clientId: __nextDevClientId })); if (reloading) return; reloading = true; return window.location.reload(); } case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.ADDED_PAGE: case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.REMOVED_PAGE: { // TODO-APP: potentially only refresh if the currently viewed page was added/removed. return router.fastRefresh(); } case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.SERVER_ERROR: { const { errorJSON } = obj; if (errorJSON) { const { message, stack } = JSON.parse(errorJSON); const error = new Error(message); error.stack = stack; handleErrors([ error ]); } return; } case _hotreloadertypes.HMR_ACTIONS_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE: { return; } default: {} } } function HotReload(param) { let { assetPrefix, children } = param; const [state, dispatch] = (0, _shared.useErrorOverlayReducer)(); const dispatcher = (0, _react.useMemo)(()=>{ return { onBuildOk () { dispatch({ type: _shared.ACTION_BUILD_OK }); }, onBuildError (message) { dispatch({ type: _shared.ACTION_BUILD_ERROR, message }); }, onBeforeRefresh () { dispatch({ type: _shared.ACTION_BEFORE_REFRESH }); }, onRefresh () { dispatch({ type: _shared.ACTION_REFRESH }); }, onVersionInfo (versionInfo) { dispatch({ type: _shared.ACTION_VERSION_INFO, versionInfo }); } }; }, [ dispatch ]); const handleOnUnhandledError = (0, _react.useCallback)((error)=>{ const errorDetails = error.details; // Component stack is added to the error in use-error-handler in case there was a hydration errror const componentStack = errorDetails == null ? void 0 : errorDetails.componentStack; const warning = errorDetails == null ? void 0 : errorDetails.warning; dispatch({ type: _shared.ACTION_UNHANDLED_ERROR, reason: error, frames: (0, _parseStack.parseStack)(error.stack), componentStackFrames: componentStack ? (0, _parsecomponentstack.parseComponentStack)(componentStack) : undefined, warning }); }, [ dispatch ]); const handleOnUnhandledRejection = (0, _react.useCallback)((reason)=>{ dispatch({ type: _shared.ACTION_UNHANDLED_REJECTION, reason: reason, frames: (0, _parseStack.parseStack)(reason.stack) }); }, [ dispatch ]); const handleOnReactError = (0, _react.useCallback)(()=>{ _runtimeerrorhandler.RuntimeErrorHandler.hadRuntimeError = true; }, []); (0, _useerrorhandler.useErrorHandler)(handleOnUnhandledError, handleOnUnhandledRejection); const webSocketRef = (0, _usewebsocket.useWebsocket)(assetPrefix); (0, _usewebsocket.useWebsocketPing)(webSocketRef); const sendMessage = (0, _usewebsocket.useSendMessage)(webSocketRef); const processTurbopackMessage = (0, _usewebsocket.useTurbopack)(sendMessage, (err)=>performFullReload(err, sendMessage)); const router = (0, _navigation.useRouter)(); (0, _react.useEffect)(()=>{ const websocket = webSocketRef.current; if (!websocket) return; const handler = (event)=>{ try { const obj = JSON.parse(event.data); processMessage(obj, sendMessage, processTurbopackMessage, router, dispatcher); } catch (err) { var _err_stack; console.warn("[HMR] Invalid message: " + event.data + "\n" + ((_err_stack = err == null ? void 0 : err.stack) != null ? _err_stack : "")); } }; websocket.addEventListener("message", handler); return ()=>websocket.removeEventListener("message", handler); }, [ sendMessage, router, webSocketRef, dispatcher, processTurbopackMessage ]); return /*#__PURE__*/ (0, _jsxruntime.jsx)(_ReactDevOverlay.default, { onReactError: handleOnReactError, state: state, children: children }); } _c = HotReload; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=hot-reloader-client.js.map var _c; $RefreshReg$(_c, "HotReload"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/CodeFrame.js": /*!*****************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/CodeFrame.js ***! \*****************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _s = $RefreshSig$(); "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "CodeFrame", ({ enumerable: true, get: function() { return CodeFrame; } })); const _interop_require_default = __webpack_require__(/*! @swc/helpers/_/_interop_require_default */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_default.js"); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _anser = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! next/dist/compiled/anser */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/anser/index.js")); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _stripansi = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! next/dist/compiled/strip-ansi */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/strip-ansi/index.js")); const _stackframe = __webpack_require__(/*! ../../helpers/stack-frame */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stack-frame.js"); const _useopenineditor = __webpack_require__(/*! ../../helpers/use-open-in-editor */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-open-in-editor.js"); const _hotlinkedtext = __webpack_require__(/*! ../hot-linked-text */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/hot-linked-text/index.js"); const CodeFrame = function CodeFrame(param) { _s(); let { stackFrame, codeFrame } = param; // Strip leading spaces out of the code frame: const formattedFrame = _react.useMemo(()=>{ const lines = codeFrame.split(/\r?\n/g); // Find the minimum length of leading spaces after `|` in the code frame const miniLeadingSpacesLength = lines.map((line)=>/^>? +\d+ +\| [ ]+/.exec((0, _stripansi.default)(line)) === null ? null : /^>? +\d+ +\| ( *)/.exec((0, _stripansi.default)(line))).filter(Boolean).map((v)=>v.pop()).reduce((c, n)=>isNaN(c) ? n.length : Math.min(c, n.length), NaN); // When the minimum length of leading spaces is greater than 1, remove them // from the code frame to help the indentation looks better when there's a lot leading spaces. if (miniLeadingSpacesLength > 1) { return lines.map((line, a)=>~(a = line.indexOf("|")) ? line.substring(0, a) + line.substring(a).replace("^\\ {" + miniLeadingSpacesLength + "}", "") : line).join("\n"); } return lines.join("\n"); }, [ codeFrame ]); const decoded = _react.useMemo(()=>{ return _anser.default.ansiToJson(formattedFrame, { json: true, use_classes: true, remove_empty: true }); }, [ formattedFrame ]); const open = (0, _useopenineditor.useOpenInEditor)({ file: stackFrame.file, lineNumber: stackFrame.lineNumber, column: stackFrame.column }); // TODO: make the caret absolute return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", { "data-nextjs-codeframe": true, children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", { children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("p", { role: "link", onClick: open, tabIndex: 1, title: "Click to open in your editor", children: [ /*#__PURE__*/ (0, _jsxruntime.jsxs)("span", { children: [ (0, _stackframe.getFrameSource)(stackFrame), " @", " ", /*#__PURE__*/ (0, _jsxruntime.jsx)(_hotlinkedtext.HotlinkedText, { text: stackFrame.methodName }) ] }), /*#__PURE__*/ (0, _jsxruntime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }), /*#__PURE__*/ (0, _jsxruntime.jsx)("polyline", { points: "15 3 21 3 21 9" }), /*#__PURE__*/ (0, _jsxruntime.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" }) ] }) ] }) }), /*#__PURE__*/ (0, _jsxruntime.jsx)("pre", { children: decoded.map((entry, index)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("span", { style: { color: entry.fg ? "var(--color-" + entry.fg + ")" : undefined, ...entry.decoration === "bold" ? { fontWeight: 800 } : entry.decoration === "italic" ? { fontStyle: "italic" } : undefined }, children: entry.content }, "frame-" + index)) }) ] }); }; _s(CodeFrame, "4Gt+UceGaRqMOFv99GzJu8D2nx8="); _c = CodeFrame; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=CodeFrame.js.map var _c; $RefreshReg$(_c, "CodeFrame"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/index.js": /*!*************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/index.js ***! \*************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "CodeFrame", ({ enumerable: true, get: function() { return _CodeFrame.CodeFrame; } })); const _CodeFrame = __webpack_require__(/*! ./CodeFrame */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/CodeFrame.js"); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=index.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/styles.js": /*!**************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/styles.js ***! \**************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "styles", ({ enumerable: true, get: function() { return styles; } })); const _tagged_template_literal_loose = __webpack_require__(/*! @swc/helpers/_/_tagged_template_literal_loose */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js"); const _nooptemplate = __webpack_require__(/*! ../../helpers/noop-template */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/noop-template.js"); function _templateObject() { const data = _tagged_template_literal_loose._([ "\n [data-nextjs-codeframe] {\n overflow: auto;\n border-radius: var(--size-gap-half);\n background-color: var(--color-ansi-bg);\n color: var(--color-ansi-fg);\n }\n [data-nextjs-codeframe]::selection,\n [data-nextjs-codeframe] *::selection {\n background-color: var(--color-ansi-selection);\n }\n [data-nextjs-codeframe] * {\n color: inherit;\n background-color: transparent;\n font-family: var(--font-stack-monospace);\n }\n\n [data-nextjs-codeframe] > * {\n margin: 0;\n padding: calc(var(--size-gap) + var(--size-gap-half))\n calc(var(--size-gap-double) + var(--size-gap-half));\n }\n [data-nextjs-codeframe] > div {\n display: inline-block;\n width: auto;\n min-width: 100%;\n border-bottom: 1px solid var(--color-ansi-bright-black);\n }\n [data-nextjs-codeframe] > div > p {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n margin: 0;\n }\n [data-nextjs-codeframe] > div > p:hover {\n text-decoration: underline dotted;\n }\n [data-nextjs-codeframe] div > p > svg {\n width: auto;\n height: 1em;\n margin-left: 8px;\n }\n [data-nextjs-codeframe] div > pre {\n overflow: hidden;\n display: inline-block;\n }\n" ]); _templateObject = function() { return data; }; return data; } const styles = (0, _nooptemplate.noop)(_templateObject()); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=styles.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/Dialog.js": /*!***********************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/Dialog.js ***! \***********************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _s = $RefreshSig$(); "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "Dialog", ({ enumerable: true, get: function() { return Dialog; } })); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _useonclickoutside = __webpack_require__(/*! ../../hooks/use-on-click-outside */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/hooks/use-on-click-outside.js"); const Dialog = function Dialog(param) { _s(); let { children, type, onClose, ...props } = param; const [dialog, setDialog] = _react.useState(null); const [role, setRole] = _react.useState(typeof document !== "undefined" && document.hasFocus() ? "dialog" : undefined); const onDialog = _react.useCallback((node)=>{ setDialog(node); }, []); (0, _useonclickoutside.useOnClickOutside)(dialog, (e)=>{ e.preventDefault(); return onClose == null ? void 0 : onClose(); }); // Make HTMLElements with `role=link` accessible to be triggered by the // keyboard, i.e. [Enter]. _react.useEffect(()=>{ if (dialog == null) { return; } const root = dialog.getRootNode(); // Always true, but we do this for TypeScript: if (!(root instanceof ShadowRoot)) { return; } const shadowRoot = root; function handler(e) { const el = shadowRoot.activeElement; if (e.key === "Enter" && el instanceof HTMLElement && el.getAttribute("role") === "link") { e.preventDefault(); e.stopPropagation(); el.click(); } } function handleFocus() { // safari will force itself as the active application when a background page triggers any sort of autofocus // this is a workaround to only set the dialog role if the document has focus setRole(document.hasFocus() ? "dialog" : undefined); } shadowRoot.addEventListener("keydown", handler); window.addEventListener("focus", handleFocus); window.addEventListener("blur", handleFocus); return ()=>{ shadowRoot.removeEventListener("keydown", handler); window.removeEventListener("focus", handleFocus); window.removeEventListener("blur", handleFocus); }; }, [ dialog ]); return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", { ref: onDialog, "data-nextjs-dialog": true, tabIndex: -1, role: role, "aria-labelledby": props["aria-labelledby"], "aria-describedby": props["aria-describedby"], "aria-modal": "true", children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", { "data-nextjs-dialog-banner": true, className: "banner-" + type }), children ] }); }; _s(Dialog, "2HYcMztUKT19xxjUDXr42PZl9rE="); _c = Dialog; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=Dialog.js.map var _c; $RefreshReg$(_c, "Dialog"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogBody.js": /*!***************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogBody.js ***! \***************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "DialogBody", ({ enumerable: true, get: function() { return DialogBody; } })); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const DialogBody = function DialogBody(param) { let { children, className } = param; return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", { "data-nextjs-dialog-body": true, className: className, children: children }); }; _c = DialogBody; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=DialogBody.js.map var _c; $RefreshReg$(_c, "DialogBody"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogContent.js": /*!******************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogContent.js ***! \******************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "DialogContent", ({ enumerable: true, get: function() { return DialogContent; } })); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const DialogContent = function DialogContent(param) { let { children, className } = param; return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", { "data-nextjs-dialog-content": true, className: className, children: children }); }; _c = DialogContent; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=DialogContent.js.map var _c; $RefreshReg$(_c, "DialogContent"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogHeader.js": /*!*****************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogHeader.js ***! \*****************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "DialogHeader", ({ enumerable: true, get: function() { return DialogHeader; } })); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const DialogHeader = function DialogHeader(param) { let { children, className } = param; return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", { "data-nextjs-dialog-header": true, className: className, children: children }); }; _c = DialogHeader; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=DialogHeader.js.map var _c; $RefreshReg$(_c, "DialogHeader"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/index.js": /*!**********************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/index.js ***! \**********************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { Dialog: function() { return _Dialog.Dialog; }, DialogBody: function() { return _DialogBody.DialogBody; }, DialogContent: function() { return _DialogContent.DialogContent; }, DialogHeader: function() { return _DialogHeader.DialogHeader; }, styles: function() { return _styles.styles; } }); const _Dialog = __webpack_require__(/*! ./Dialog */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/Dialog.js"); const _DialogBody = __webpack_require__(/*! ./DialogBody */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogBody.js"); const _DialogContent = __webpack_require__(/*! ./DialogContent */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogContent.js"); const _DialogHeader = __webpack_require__(/*! ./DialogHeader */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogHeader.js"); const _styles = __webpack_require__(/*! ./styles */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/styles.js"); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=index.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/styles.js": /*!***********************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/styles.js ***! \***********************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "styles", ({ enumerable: true, get: function() { return styles; } })); const _tagged_template_literal_loose = __webpack_require__(/*! @swc/helpers/_/_tagged_template_literal_loose */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js"); const _nooptemplate = __webpack_require__(/*! ../../helpers/noop-template */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/noop-template.js"); function _templateObject() { const data = _tagged_template_literal_loose._([ "\n [data-nextjs-dialog] {\n display: flex;\n flex-direction: column;\n width: 100%;\n margin-right: auto;\n margin-left: auto;\n outline: none;\n background: var(--color-background);\n border-radius: var(--size-gap);\n box-shadow: 0 var(--size-gap-half) var(--size-gap-double)\n rgba(0, 0, 0, 0.25);\n max-height: calc(100% - 56px);\n overflow-y: hidden;\n }\n\n @media (max-height: 812px) {\n [data-nextjs-dialog-overlay] {\n max-height: calc(100% - 15px);\n }\n }\n\n @media (min-width: 576px) {\n [data-nextjs-dialog] {\n max-width: 540px;\n box-shadow: 0 var(--size-gap) var(--size-gap-quad) rgba(0, 0, 0, 0.25);\n }\n }\n\n @media (min-width: 768px) {\n [data-nextjs-dialog] {\n max-width: 720px;\n }\n }\n\n @media (min-width: 992px) {\n [data-nextjs-dialog] {\n max-width: 960px;\n }\n }\n\n [data-nextjs-dialog-banner] {\n position: relative;\n }\n [data-nextjs-dialog-banner].banner-warning {\n border-color: var(--color-ansi-yellow);\n }\n [data-nextjs-dialog-banner].banner-error {\n border-color: var(--color-ansi-red);\n }\n\n [data-nextjs-dialog-banner]::after {\n z-index: 2;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n /* banner width: */\n border-top-width: var(--size-gap-half);\n border-bottom-width: 0;\n border-top-style: solid;\n border-bottom-style: solid;\n border-top-color: inherit;\n border-bottom-color: transparent;\n }\n\n [data-nextjs-dialog-content] {\n overflow-y: auto;\n border: none;\n margin: 0;\n /* calc(padding + banner width offset) */\n padding: calc(var(--size-gap-double) + var(--size-gap-half))\n var(--size-gap-double);\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n [data-nextjs-dialog-content] > [data-nextjs-dialog-header] {\n flex-shrink: 0;\n margin-bottom: var(--size-gap-double);\n }\n [data-nextjs-dialog-content] > [data-nextjs-dialog-body] {\n position: relative;\n flex: 1 1 auto;\n }\n" ]); _templateObject = function() { return data; }; return data; } const styles = (0, _nooptemplate.noop)(_templateObject()); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=styles.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/LeftRightDialogHeader.js": /*!*****************************************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/LeftRightDialogHeader.js ***! \*****************************************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _s = $RefreshSig$(); "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "LeftRightDialogHeader", ({ enumerable: true, get: function() { return LeftRightDialogHeader; } })); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _CloseIcon = __webpack_require__(/*! ../../icons/CloseIcon */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CloseIcon.js"); const LeftRightDialogHeader = function LeftRightDialogHeader(param) { _s(); let { children, className, previous, next, close } = param; const buttonLeft = _react.useRef(null); const buttonRight = _react.useRef(null); const buttonClose = _react.useRef(null); const [nav, setNav] = _react.useState(null); const onNav = _react.useCallback((el)=>{ setNav(el); }, []); _react.useEffect(()=>{ if (nav == null) { return; } const root = nav.getRootNode(); const d = self.document; function handler(e) { if (e.key === "ArrowLeft") { e.preventDefault(); e.stopPropagation(); if (buttonLeft.current) { buttonLeft.current.focus(); } previous && previous(); } else if (e.key === "ArrowRight") { e.preventDefault(); e.stopPropagation(); if (buttonRight.current) { buttonRight.current.focus(); } next && next(); } else if (e.key === "Escape") { e.preventDefault(); e.stopPropagation(); if (root instanceof ShadowRoot) { const a = root.activeElement; if (a && a !== buttonClose.current && a instanceof HTMLElement) { a.blur(); return; } } close == null ? void 0 : close(); } } root.addEventListener("keydown", handler); if (root !== d) { d.addEventListener("keydown", handler); } return function() { root.removeEventListener("keydown", handler); if (root !== d) { d.removeEventListener("keydown", handler); } }; }, [ close, nav, next, previous ]); // Unlock focus for browsers like Firefox, that break all user focus if the // currently focused item becomes disabled. _react.useEffect(()=>{ if (nav == null) { return; } const root = nav.getRootNode(); // Always true, but we do this for TypeScript: if (root instanceof ShadowRoot) { const a = root.activeElement; if (previous == null) { if (buttonLeft.current && a === buttonLeft.current) { buttonLeft.current.blur(); } } else if (next == null) { if (buttonRight.current && a === buttonRight.current) { buttonRight.current.blur(); } } } }, [ nav, next, previous ]); return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", { "data-nextjs-dialog-left-right": true, className: className, children: [ /*#__PURE__*/ (0, _jsxruntime.jsxs)("nav", { ref: onNav, children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("button", { ref: buttonLeft, type: "button", disabled: previous == null ? true : undefined, "aria-disabled": previous == null ? true : undefined, onClick: previous != null ? previous : undefined, children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("svg", { viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("title", { children: "previous" }), /*#__PURE__*/ (0, _jsxruntime.jsx)("path", { d: "M6.99996 1.16666L1.16663 6.99999L6.99996 12.8333M12.8333 6.99999H1.99996H12.8333Z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) ] }) }), /*#__PURE__*/ (0, _jsxruntime.jsx)("button", { ref: buttonRight, type: "button", disabled: next == null ? true : undefined, "aria-disabled": next == null ? true : undefined, onClick: next != null ? next : undefined, children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("svg", { viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("title", { children: "next" }), /*#__PURE__*/ (0, _jsxruntime.jsx)("path", { d: "M6.99996 1.16666L12.8333 6.99999L6.99996 12.8333M1.16663 6.99999H12H1.16663Z", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) ] }) }), children ] }), close ? /*#__PURE__*/ (0, _jsxruntime.jsx)("button", { "data-nextjs-errors-dialog-left-right-close-button": true, ref: buttonClose, type: "button", onClick: close, "aria-label": "Close", children: /*#__PURE__*/ (0, _jsxruntime.jsx)("span", { "aria-hidden": "true", children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_CloseIcon.CloseIcon, {}) }) }) : null ] }); }; _s(LeftRightDialogHeader, "BTIclYWDjFVmQ0IbTZR6SGMkDDk="); _c = LeftRightDialogHeader; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=LeftRightDialogHeader.js.map var _c; $RefreshReg$(_c, "LeftRightDialogHeader"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/index.js": /*!*************************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/index.js ***! \*************************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { LeftRightDialogHeader: function() { return _LeftRightDialogHeader.LeftRightDialogHeader; }, styles: function() { return _styles.styles; } }); const _LeftRightDialogHeader = __webpack_require__(/*! ./LeftRightDialogHeader */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/LeftRightDialogHeader.js"); const _styles = __webpack_require__(/*! ./styles */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/styles.js"); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=index.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/styles.js": /*!**************************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/styles.js ***! \**************************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "styles", ({ enumerable: true, get: function() { return styles; } })); const _tagged_template_literal_loose = __webpack_require__(/*! @swc/helpers/_/_tagged_template_literal_loose */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js"); const _nooptemplate = __webpack_require__(/*! ../../helpers/noop-template */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/noop-template.js"); function _templateObject() { const data = _tagged_template_literal_loose._([ "\n [data-nextjs-dialog-left-right] {\n display: flex;\n flex-direction: row;\n align-content: center;\n align-items: center;\n justify-content: space-between;\n }\n [data-nextjs-dialog-left-right] > nav {\n flex: 1;\n display: flex;\n align-items: center;\n margin-right: var(--size-gap);\n }\n [data-nextjs-dialog-left-right] > nav > button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n width: calc(var(--size-gap-double) + var(--size-gap));\n height: calc(var(--size-gap-double) + var(--size-gap));\n font-size: 0;\n border: none;\n background-color: rgba(255, 85, 85, 0.1);\n color: var(--color-ansi-red);\n cursor: pointer;\n transition: background-color 0.25s ease;\n }\n [data-nextjs-dialog-left-right] > nav > button > svg {\n width: auto;\n height: calc(var(--size-gap) + var(--size-gap-half));\n }\n [data-nextjs-dialog-left-right] > nav > button:hover {\n background-color: rgba(255, 85, 85, 0.2);\n }\n [data-nextjs-dialog-left-right] > nav > button:disabled {\n background-color: rgba(255, 85, 85, 0.1);\n color: rgba(255, 85, 85, 0.4);\n cursor: not-allowed;\n }\n\n [data-nextjs-dialog-left-right] > nav > button:first-of-type {\n border-radius: var(--size-gap-half) 0 0 var(--size-gap-half);\n margin-right: 1px;\n }\n [data-nextjs-dialog-left-right] > nav > button:last-of-type {\n border-radius: 0 var(--size-gap-half) var(--size-gap-half) 0;\n }\n\n [data-nextjs-dialog-left-right] > button:last-of-type {\n border: 0;\n padding: 0;\n\n background-color: transparent;\n appearance: none;\n\n opacity: 0.4;\n transition: opacity 0.25s ease;\n\n color: var(--color-font);\n }\n [data-nextjs-dialog-left-right] > button:last-of-type:hover {\n opacity: 0.7;\n }\n" ]); _templateObject = function() { return data; }; return data; } const styles = (0, _nooptemplate.noop)(_templateObject()); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=styles.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/Overlay.js": /*!*************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/Overlay.js ***! \*************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _s = $RefreshSig$(); "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "Overlay", ({ enumerable: true, get: function() { return Overlay; } })); const _interop_require_default = __webpack_require__(/*! @swc/helpers/_/_interop_require_default */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_default.js"); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js"); const _jsxruntime = __webpack_require__(/*! react/jsx-runtime */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/jsx-runtime.js"); const _maintaintabfocus = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! ./maintain--tab-focus */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/maintain--tab-focus.js")); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/react/index.js")); const _bodylocker = __webpack_require__(/*! ./body-locker */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/body-locker.js"); const Overlay = function Overlay(param) { _s(); let { className, children, fixed } = param; _react.useEffect(()=>{ (0, _bodylocker.lock)(); return ()=>{ (0, _bodylocker.unlock)(); }; }, []); const [overlay, setOverlay] = _react.useState(null); const onOverlay = _react.useCallback((el)=>{ setOverlay(el); }, []); _react.useEffect(()=>{ if (overlay == null) { return; } const handle2 = (0, _maintaintabfocus.default)({ context: overlay }); return ()=>{ handle2.disengage(); }; }, [ overlay ]); return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", { "data-nextjs-dialog-overlay": true, className: className, ref: onOverlay, children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", { "data-nextjs-dialog-backdrop": true, "data-nextjs-dialog-backdrop-fixed": fixed ? true : undefined }), children ] }); }; _s(Overlay, "7AKWSbA/gHapd2YTyFggUak94M8="); _c = Overlay; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=Overlay.js.map var _c; $RefreshReg$(_c, "Overlay"); ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/body-locker.js": /*!*****************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/body-locker.js ***! \*****************************************************************************************************************************************************/ /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); 0 && (0); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { lock: function() { return lock; }, unlock: function() { return unlock; } }); let previousBodyPaddingRight; let previousBodyOverflowSetting; let activeLocks = 0; function lock() { setTimeout(()=>{ if (activeLocks++ > 0) { return; } const scrollBarGap = window.innerWidth - document.documentElement.clientWidth; if (scrollBarGap > 0) { previousBodyPaddingRight = document.body.style.paddingRight; document.body.style.paddingRight = "" + scrollBarGap + "px"; } previousBodyOverflowSetting = document.body.style.overflow; document.body.style.overflow = "hidden"; }); } function unlock() { setTimeout(()=>{ if (activeLocks === 0 || --activeLocks !== 0) { return; } if (previousBodyPaddingRight !== undefined) { document.body.style.paddingRight = previousBodyPaddingRight; previousBodyPaddingRight = undefined; } if (previousBodyOverflowSetting !== undefined) { document.body.style.overflow = previousBodyOverflowSetting; previousBodyOverflowSetting = undefined; } }); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=body-locker.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/index.js": /*!***********************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/index.js ***! \***********************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "Overlay", ({ enumerable: true, get: function() { return _Overlay.Overlay; } })); const _Overlay = __webpack_require__(/*! ./Overlay */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/Overlay.js"); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=index.js.map ; // Wrapped in an IIFE to avoid polluting the global scope ; (function () { var _a, _b; // Legacy CSS implementations will `eval` browser code in a Node.js context // to extract CSS. For backwards compatibility, we need to check we're in a // browser context before continuing. if (typeof self !== 'undefined' && // AMP / No-JS mode does not inject these helpers: '$RefreshHelpers$' in self) { // @ts-ignore __webpack_module__ is global var currentExports = module.exports; // @ts-ignore __webpack_module__ is global var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null; // This cannot happen in MainTemplate because the exports mismatch between // templating and execution. self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id); // A module can be accepted automatically based on its exports, e.g. when // it is a Refresh Boundary. if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) { // Save the previous exports signature on update so we can compare the boundary // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797) module.hot.dispose(function (data) { data.prevSignature = self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports); }); // Unconditionally accept an update to this module, we'll check if it's // still a Refresh Boundary later. // @ts-ignore importMeta is replaced in the loader module.hot.accept(); // This field is set when the previous version of this module was a // Refresh Boundary, letting us know we need to check for invalidation or // enqueue an update. if (prevSignature !== null) { // A boundary can become ineligible if its exports are incompatible // with the previous exports. // // For example, if you add/remove/change exports, we'll want to // re-execute the importing modules, and force those components to // re-render. Similarly, if you convert a class component to a // function, we want to invalidate the boundary. if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) { module.hot.invalidate(); } else { self.$RefreshHelpers$.scheduleUpdate(); } } } else { // Since we just executed the code for the module, it's possible that the // new exports made it ineligible for being a boundary. // We only care about the case when we were _previously_ a boundary, // because we already accepted this update (accidental side effect). var isNoLongerABoundary = prevSignature !== null; if (isNoLongerABoundary) { module.hot.invalidate(); } } } })(); /***/ }), /***/ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/maintain--tab-focus.js": /*!*************************************************************************************************************************************************************!*\ !*** ../../../../opt/hostedapp/node/root/app/node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/maintain--tab-focus.js ***! \*************************************************************************************************************************************************************/ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* eslint-disable */ // @ts-nocheck // Copied from https://github.com/medialize/ally.js // License: MIT // Copyright (c) 2015 Rodney Rehm // // Entrypoint: ally.js/maintain/tab-focus Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "default", ({ enumerable: true, get: function() { return _default; } })); const _interop_require_default = __webpack_require__(/*! @swc/helpers/_/_interop_require_default */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/@swc/helpers/esm/_interop_require_default.js"); const _platform = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! next/dist/compiled/platform */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/platform/platform.js")); const _cssescape = /*#__PURE__*/ _interop_require_default._(__webpack_require__(/*! next/dist/compiled/css.escape */ "(app-pages-browser)/../../../../opt/hostedapp/node/root/app/node_modules/next/dist/compiled/css.escape/css.escape.js")); // input may be undefined, selector-tring, Node, NodeList, HTMLCollection, array of Nodes // yes, to some extent this is a bad replica of jQuery's constructor function function nodeArray(input) { if (!input) { return []; } if (Array.isArray(input)) { return input; } // instanceof Node - does not work with iframes if (input.nodeType !== undefined) { return [ input ]; } if (typeof input === "string") { input = document.querySelectorAll(input); } if (input.length !== undefined) { return [].slice.call(input, 0); } throw new TypeError("unexpected input " + String(input)); } function contextToElement(_ref) { var context = _ref.context, _ref$label = _ref.label, label = _ref$label === undefined ? "context-to-element" : _ref$label, resolveDocument = _ref.resolveDocument, defaultToDocument = _ref.defaultToDocument; var element = nodeArray(context)[0]; if (resolveDocument && element && element.nodeType === Node.DOCUMENT_NODE) { element = element.documentElement; } if (!element && defaultToDocument) { return document.documentElement; } if (!element) { throw new TypeError(label + " requires valid options.context"); } if (element.nodeType !== Node.ELEMENT_NODE && element.nodeType !== Node.DOCUMENT_FRAGMENT_NODE) { throw new TypeError(label + " requires options.context to be an Element"); } return element; } function getShadowHost() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, context = _ref.context; var element = contextToElement({ label: "get/shadow-host", context: context }); // walk up to the root var container = null; while(element){ container = element; element = element.parentNode; } // https://developer.mozilla.org/docs/Web/API/Node.nodeType // NOTE: Firefox 34 does not expose ShadowRoot.host (but 37 does) if (container.nodeType === container.DOCUMENT_FRAGMENT_NODE && container.host) { // the root is attached to a fragment node that has a host return container.host; } return null; } function getDocument(node) { if (!node) { return document; } if (node.nodeType === Node.DOCUMENT_NODE) { return node; } return node.ownerDocument || document; } function isActiveElement(context) { var element = contextToElement({ label: "is/active-element", resolveDocument: true, context: context }); var _document = getDocument(element); if (_document.activeElement === element) { return true; } var shadowHost = getShadowHost({ context: element }); if (shadowHost && shadowHost.shadowRoot.activeElement === element) { return true; } return false; } // [elem, elem.parent, elem.parent.parent, …, html] // will not contain the shadowRoot (DOCUMENT_FRAGMENT_NODE) and shadowHost function getParents() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, context = _ref.context; var list = []; var element = contextToElement({ label: "get/parents", context: context }); while(element){ list.push(element); // IE does know support parentElement on SVGElement element = element.parentNode; if (element && element.nodeType !== Node.ELEMENT_NODE) { element = null; } } return list; } // Element.prototype.matches may be available at a different name // https://developer.mozilla.org/en/docs/Web/API/Element/matches var names = [ "matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector" ]; var name = null; function findMethodName(element) { names.some(function(_name) { if (!element[_name]) { return false; } name = _name; return true; }); } function elementMatches(element, selector) { if (!name) { findMethodName(element); } return element[name](selector); } // deep clone of original platform var platform = JSON.parse(JSON.stringify(_platform.default)); // operating system var os = platform.os.family || ""; var ANDROID = os === "Android"; var WINDOWS = os.slice(0, 7) === "Windows"; var OSX = os === "OS X"; var IOS = os === "iOS"; // layout var BLINK = platform.layout === "Blink"; var GECKO = platform.layout === "Gecko"; var TRIDENT = platform.layout === "Trident"; var EDGE = platform.layout === "EdgeHTML"; var WEBKIT = platform.layout === "WebKit"; // browser version (not layout engine version!) var version = parseFloat(platform.version); var majorVersion = Math.floor(version); platform.majorVersion = majorVersion; platform.is = { // operating system ANDROID: ANDROID, WINDOWS: WINDOWS, OSX: OSX, IOS: IOS, // layout BLINK: BLINK, GECKO: GECKO, TRIDENT: TRIDENT, EDGE: EDGE, WEBKIT: WEBKIT, // INTERNET EXPLORERS IE9: TRIDENT && majorVersion === 9, IE10: TRIDENT && majorVersion === 10, IE11: TRIDENT && majorVersion === 11 }; function before() { var data = { // remember what had focus to restore after test activeElement: document.activeElement, // remember scroll positions to restore after test windowScrollTop: window.scrollTop, windowScrollLeft: window.scrollLeft, bodyScrollTop: document.body.scrollTop, bodyScrollLeft: document.body.scrollLeft }; // wrap tests in an element hidden from screen readers to prevent them // from announcing focus, which can be quite irritating to the user var iframe = document.createElement("iframe"); iframe.setAttribute("style", "position:absolute; position:fixed; top:0; left:-2px; width:1px; height:1px; overflow:hidden;"); iframe.setAttribute("aria-live", "off"); iframe.setAttribute("aria-busy", "true"); iframe.setAttribute("aria-hidden", "true"); document.body.appendChild(iframe); var _window = iframe.contentWindow; var _document = _window.document; _document.open(); _document.close(); var wrapper = _document.createElement("div"); _document.body.appendChild(wrapper); data.iframe = iframe; data.wrapper = wrapper; data.window = _window; data.document = _document; return data; } // options.element: // {string} element name // {function} callback(wrapper, document) to generate an element // options.mutate: (optional) // {function} callback(element, wrapper, document) to manipulate element prior to focus-test. // Can return DOMElement to define focus target (default: element) // options.validate: (optional) // {function} callback(element, focusTarget, document) to manipulate test-result function test(data, options) { // make sure we operate on a clean slate data.wrapper.innerHTML = ""; // create dummy element to test focusability of var element = typeof options.element === "string" ? data.document.createElement(options.element) : options.element(data.wrapper, data.document); // allow callback to further specify dummy element // and optionally define element to focus var focus = options.mutate && options.mutate(element, data.wrapper, data.document); if (!focus && focus !== false) { focus = element; } // element needs to be part of the DOM to be focusable !element.parentNode && data.wrapper.appendChild(element); // test if the element with invalid tabindex can be focused focus && focus.focus && focus.focus(); // validate test's result return options.validate ? options.validate(element, focus, data.document) : data.document.activeElement === focus; } function after(data) { // restore focus to what it was before test and cleanup if (data.activeElement === document.body) { document.activeElement && document.activeElement.blur && document.activeElement.blur(); if (platform.is.IE10) { // IE10 does not redirect focus to when the activeElement is removed document.body.focus(); } } else { data.activeElement && data.activeElement.focus && data.activeElement.focus(); } document.body.removeChild(data.iframe); // restore scroll position window.scrollTop = data.windowScrollTop; window.scrollLeft = data.windowScrollLeft; document.body.scrollTop = data.bodyScrollTop; document.body.scrollLeft = data.bodyScrollLeft; } function detectFocus(tests) { var data = before(); var results = {}; Object.keys(tests).map(function(key) { results[key] = test(data, tests[key]); }); after(data); return results; } // this file is overwritten by `npm run build:pre` var version$1 = "1.4.1"; /* Facility to cache test results in localStorage. USAGE: cache.get('key'); cache.set('key', 'value'); */ function readLocalStorage(key) { // allow reading from storage to retrieve previous support results // even while the document does not have focus var data = void 0; try { data = window.localStorage && window.localStorage.getItem(key); data = data ? JSON.parse(data) : {}; } catch (e) { data = {}; } return data; } function writeLocalStorage(key, value) { if (!document.hasFocus()) { // if the document does not have focus when tests are executed, focus() may // not be handled properly and events may not be dispatched immediately. // This can happen when a document is reloaded while Developer Tools have focus. try { window.localStorage && window.localStorage.removeItem(key); } catch (e) { // ignore } return; } try { window.localStorage && window.localStorage.setItem(key, JSON.stringify(value)); } catch (e) { // ignore } } var userAgent = typeof window !== "undefined" && window.navigator.userAgent || ""; var cacheKey = "ally-supports-cache"; var cache = readLocalStorage(cacheKey); // update the cache if ally or the user agent changed (newer version, etc) if (cache.userAgent !== userAgent || cache.version !== version$1) { cache = {}; } cache.userAgent = userAgent; cache.version = version$1; var cache$1 = { get: function get() { return cache; }, set: function set(values) { Object.keys(values).forEach(function(key) { cache[key] = values[key]; }); cache.time = new Date().toISOString(); writeLocalStorage(cacheKey, cache); } }; function cssShadowPiercingDeepCombinator() { var combinator = void 0; // see https://dev.w3.org/csswg/css-scoping-1/#deep-combinator // https://bugzilla.mozilla.org/show_bug.cgi?id=1117572 // https://code.google.com/p/chromium/issues/detail?id=446051 try { document.querySelector("html >>> :first-child"); combinator = ">>>"; } catch (noArrowArrowArrow) { try { // old syntax supported at least up to Chrome 41 // https://code.google.com/p/chromium/issues/detail?id=446051 document.querySelector("html /deep/ :first-child"); combinator = "/deep/"; } catch (noDeep) { combinator = ""; } } return combinator; } var gif = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"; // https://developer.mozilla.org/docs/Web/HTML/Element/img#attr-usemap var focusAreaImgTabindex = { element: "div", mutate: function mutate(element) { element.innerHTML = '' + '' + ''; return element.querySelector("area"); } }; // https://developer.mozilla.org/docs/Web/HTML/Element/img#attr-usemap var focusAreaTabindex = { element: "div", mutate: function mutate(element) { element.innerHTML = '' + '' + ''; return false; }, validate: function validate(element, focusTarget, _document) { if (platform.is.GECKO) { // fixes https://github.com/medialize/ally.js/issues/35 // Firefox loads the DataURI asynchronously, causing a false-negative return true; } var focus = element.querySelector("area"); focus.focus(); return _document.activeElement === focus; } }; // https://developer.mozilla.org/docs/Web/HTML/Element/img#attr-usemap var focusAreaWithoutHref = { element: "div", mutate: function mutate(element) { element.innerHTML = '' + '' + ''; return element.querySelector("area"); }, validate: function validate(element, focusTarget, _document) { if (platform.is.GECKO) { // fixes https://github.com/medialize/ally.js/issues/35 // Firefox loads the DataURI asynchronously, causing a false-negative return true; } return _document.activeElement === focusTarget; } }; var focusAudioWithoutControls = { name: "can-focus-audio-without-controls", element: "audio", mutate: function mutate(element) { try { // invalid media file can trigger warning in console, data-uri to prevent HTTP request element.setAttribute("src", gif); } catch (e) { // IE9 may throw "Error: Not implemented" } } }; var invalidGif = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"; // NOTE: https://github.com/medialize/ally.js/issues/35 // https://developer.mozilla.org/docs/Web/HTML/Element/img#attr-usemap var focusBrokenImageMap = { element: "div", mutate: function mutate(element) { element.innerHTML = '' + ''; return element.querySelector("area"); } }; // Children of focusable elements with display:flex are focusable in IE10-11 var focusChildrenOfFocusableFlexbox = { element: "div", mutate: function mutate(element) { element.setAttribute("tabindex", "-1"); element.setAttribute("style", "display: -webkit-flex; display: -ms-flexbox; display: flex;"); element.innerHTML = 'hello'; return element.querySelector("span"); } }; // fieldset[tabindex=0][disabled] should not be focusable, but Blink and WebKit disagree // @specification https://www.w3.org/TR/html5/disabled-elements.html#concept-element-disabled // @browser-issue Chromium https://crbug.com/453847 // @browser-issue WebKit https://bugs.webkit.org/show_bug.cgi?id=141086 var focusFieldsetDisabled = { element: "fieldset", mutate: function mutate(element) { element.setAttribute("tabindex", 0); element.setAttribute("disabled", "disabled"); } }; var focusFieldset = { element: "fieldset", mutate: function mutate(element) { element.innerHTML = "legend

content

"; } }; // elements with display:flex are focusable in IE10-11 var focusFlexboxContainer = { element: "span", mutate: function mutate(element) { element.setAttribute("style", "display: -webkit-flex; display: -ms-flexbox; display: flex;"); element.innerHTML = 'hello'; } }; // form[tabindex=0][disabled] should be focusable as the // specification doesn't know the disabled attribute on the form element // @specification https://www.w3.org/TR/html5/forms.html#the-form-element var focusFormDisabled = { element: "form", mutate: function mutate(element) { element.setAttribute("tabindex", 0); element.setAttribute("disabled", "disabled"); } }; // NOTE: https://github.com/medialize/ally.js/issues/35 // fixes https://github.com/medialize/ally.js/issues/20 // https://developer.mozilla.org/docs/Web/HTML/Element/img#attr-ismap var focusImgIsmap = { element: "a", mutate: function mutate(element) { element.href = "#void"; element.innerHTML = ''; return element.querySelector("img"); } }; // NOTE: https://github.com/medialize/ally.js/issues/35 // https://developer.mozilla.org/docs/Web/HTML/Element/img#attr-usemap var focusImgUsemapTabindex = { element: "div", mutate: function mutate(element) { element.innerHTML = '' + ''; return element.querySelector("img"); } }; var focusInHiddenIframe = { element: function element(wrapper, _document) { var iframe = _document.createElement("iframe"); // iframe must be part of the DOM before accessing the contentWindow is possible wrapper.appendChild(iframe); // create the iframe's default document () var iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.close(); return iframe; }, mutate: function mutate(iframe) { iframe.style.visibility = "hidden"; var iframeDocument = iframe.contentWindow.document; var input = iframeDocument.createElement("input"); iframeDocument.body.appendChild(input); return input; }, validate: function validate(iframe) { var iframeDocument = iframe.contentWindow.document; var focus = iframeDocument.querySelector("input"); return iframeDocument.activeElement === focus; } }; var result = !platform.is.WEBKIT; function focusInZeroDimensionObject() { return result; } // Firefox allows *any* value and treats invalid values like tabindex="-1" // @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054 var focusInvalidTabindex = { element: "div", mutate: function mutate(element) { element.setAttribute("tabindex", "invalid-value"); } }; var focusLabelTabindex = { element: "label", mutate: function mutate(element) { element.setAttribute("tabindex", "-1"); }, validate: function validate(element, focusTarget, _document) { // force layout in Chrome 49, otherwise the element won't be focusable /* eslint-disable no-unused-vars */ var variableToPreventDeadCodeElimination = element.offsetHeight; /* eslint-enable no-unused-vars */ element.focus(); return _document.activeElement === element; } }; var svg = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtb" + "G5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJ" + "zdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg=="; // Note: IE10 on BrowserStack does not like this test var focusObjectSvgHidden = { element: "object", mutate: function mutate(element) { element.setAttribute("type", "image/svg+xml"); element.setAttribute("data", svg); element.setAttribute("width", "200"); element.setAttribute("height", "50"); element.style.visibility = "hidden"; } }; // Note: IE10 on BrowserStack does not like this test var focusObjectSvg = { name: "can-focus-object-svg", element: "object", mutate: function mutate(element) { element.setAttribute("type", "image/svg+xml"); element.setAttribute("data", svg); element.setAttribute("width", "200"); element.setAttribute("height", "50"); }, validate: function validate(element, focusTarget, _document) { if (platform.is.GECKO) { // Firefox seems to be handling the object creation asynchronously and thereby produces a false negative test result. // Because we know Firefox is able to focus object elements referencing SVGs, we simply cheat by sniffing the user agent string return true; } return _document.activeElement === element; } }; // Every Environment except IE9 considers SWF objects focusable var result$1 = !platform.is.IE9; function focusObjectSwf() { return result$1; } var focusRedirectImgUsemap = { element: "div", mutate: function mutate(element) { element.innerHTML = '' + ''; // focus the , not the
return element.querySelector("img"); }, validate: function validate(element, focusTarget, _document) { var target = element.querySelector("area"); return _document.activeElement === target; } }; // see https://jsbin.com/nenirisage/edit?html,js,console,output var focusRedirectLegend = { element: "fieldset", mutate: function mutate(element) { element.innerHTML = 'legend'; // take care of focus in validate(); return false; }, validate: function validate(element, focusTarget, _document) { var focusable = element.querySelector('input[tabindex="-1"]'); var tabbable = element.querySelector('input[tabindex="0"]'); // Firefox requires this test to focus the
first, while this is not necessary in // https://jsbin.com/nenirisage/edit?html,js,console,output element.focus(); element.querySelector("legend").focus(); return _document.activeElement === focusable && "focusable" || _document.activeElement === tabbable && "tabbable" || ""; } }; // https://github.com/medialize/ally.js/issues/21 var focusScrollBody = { element: "div", mutate: function mutate(element) { element.setAttribute("style", "width: 100px; height: 50px; overflow: auto;"); element.innerHTML = '
scrollable content
'; return element.querySelector("div"); } }; // https://github.com/medialize/ally.js/issues/21 var focusScrollContainerWithoutOverflow = { element: "div", mutate: function mutate(element) { element.setAttribute("style", "width: 100px; height: 50px;"); element.innerHTML = '
scrollable content
'; } }; // https://github.com/medialize/ally.js/issues/21 var focusScrollContainer = { element: "div", mutate: function mutate(element) { element.setAttribute("style", "width: 100px; height: 50px; overflow: auto;"); element.innerHTML = '
scrollable content
'; } }; var focusSummary = { element: "details", mutate: function mutate(element) { element.innerHTML = "foo

content

"; return element.firstElementChild; } }; function makeFocusableForeignObject() { // Constructs // without raising a Trusted Types violation var foreignObject = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject"); foreignObject.width.baseVal.value = 30; foreignObject.height.baseVal.value = 30; foreignObject.appendChild(document.createElement("input")); foreignObject.lastChild.type = "text"; return foreignObject; } function focusSvgForeignObjectHack(element) { // Edge13, Edge14: foreignObject focus hack // https://jsbin.com/kunehinugi/edit?html,js,output // https://jsbin.com/fajagi/3/edit?html,js,output var isSvgElement = element.ownerSVGElement || element.nodeName.toLowerCase() === "svg"; if (!isSvgElement) { return false; } // inject and focus an element into the SVG element to receive focus var foreignObject = makeFocusableForeignObject(); element.appendChild(foreignObject); var input = foreignObject.querySelector("input"); input.focus(); // upon disabling the activeElement, IE and Edge // will not shift focus to like all the other // browsers, but instead find the first focusable // ancestor and shift focus to that input.disabled = true; // clean up element.removeChild(foreignObject); return true; } function generate(element) { return '' + element + ""; } function focus(element) { if (element.focus) { return; } try { HTMLElement.prototype.focus.call(element); } catch (e) { focusSvgForeignObjectHack(element); } } function validate(element, focusTarget, _document) { focus(focusTarget); return _document.activeElement === focusTarget; } var focusSvgFocusableAttribute = { element: "div", mutate: function mutate(element) { element.innerHTML = generate('a'); return element.querySelector("text"); }, validate: validate }; var focusSvgTabindexAttribute = { element: "div", mutate: function mutate(element) { element.innerHTML = generate('a'); return element.querySelector("text"); }, validate: validate }; var focusSvgNegativeTabindexAttribute = { element: "div", mutate: function mutate(element) { element.innerHTML = generate('a'); return element.querySelector("text"); }, validate: validate }; var focusSvgUseTabindex = { element: "div", mutate: function mutate(element) { element.innerHTML = generate([ 'link', '' ].join("")); return element.querySelector("use"); }, validate: validate }; var focusSvgForeignobjectTabindex = { element: "div", mutate: function mutate(element) { element.innerHTML = generate(''); // Safari 8's querySelector() can't identify foreignObject, but getElementsByTagName() can return element.querySelector("foreignObject") || element.getElementsByTagName("foreignObject")[0]; }, validate: validate }; // Firefox seems to be handling the SVG-document-in-iframe creation asynchronously // and thereby produces a false negative test result. Thus the test is pointless // and we resort to UA sniffing once again. // see http://jsbin.com/vunadohoko/1/edit?js,console,output var result$2 = Boolean(platform.is.GECKO && typeof SVGElement !== "undefined" && SVGElement.prototype.focus); function focusSvgInIframe() { return result$2; } var focusSvg = { element: "div", mutate: function mutate(element) { element.innerHTML = generate(""); return element.firstChild; }, validate: validate }; // Firefox allows *any* value and treats invalid values like tabindex="-1" // @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054 var focusTabindexTrailingCharacters = { element: "div", mutate: function mutate(element) { element.setAttribute("tabindex", "3x"); } }; var focusTable = { element: "table", mutate: function mutate(element, wrapper, _document) { // IE9 has a problem replacing TBODY contents with innerHTML. // https://stackoverflow.com/a/8097055/515124 // element.innerHTML = 'cell'; var fragment = _document.createDocumentFragment(); fragment.innerHTML = "cell"; element.appendChild(fragment); } }; var focusVideoWithoutControls = { element: "video", mutate: function mutate(element) { try { // invalid media file can trigger warning in console, data-uri to prevent HTTP request element.setAttribute("src", gif); } catch (e) { // IE9 may throw "Error: Not implemented" } } }; // https://jsbin.com/vafaba/3/edit?html,js,console,output var result$3 = platform.is.GECKO || platform.is.TRIDENT || platform.is.EDGE; function tabsequenceAreaAtImgPosition() { return result$3; } var testCallbacks = { cssShadowPiercingDeepCombinator: cssShadowPiercingDeepCombinator, focusInZeroDimensionObject: focusInZeroDimensionObject, focusObjectSwf: focusObjectSwf, focusSvgInIframe: focusSvgInIframe, tabsequenceAreaAtImgPosition: tabsequenceAreaAtImgPosition }; var testDescriptions = { focusAreaImgTabindex: focusAreaImgTabindex, focusAreaTabindex: focusAreaTabindex, focusAreaWithoutHref: focusAreaWithoutHref, focusAudioWithoutControls: focusAudioWithoutControls, focusBrokenImageMap: focusBrokenImageMap, focusChildrenOfFocusableFlexbox: focusChildrenOfFocusableFlexbox, focusFieldsetDisabled: focusFieldsetDisabled, focusFieldset: focusFieldset, focusFlexboxContainer: focusFlexboxContainer, focusFormDisabled: focusFormDisabled, focusImgIsmap: focusImgIsmap, focusImgUsemapTabindex: focusImgUsemapTabindex, focusInHiddenIframe: focusInHiddenIframe, focusInvalidTabindex: focusInvalidTabindex, focusLabelTabindex: focusLabelTabindex, focusObjectSvg: focusObjectSvg, focusObjectSvgHidden: focusObjectSvgHidden, focusRedirectImgUsemap: focusRedirectImgUsemap, focusRedirectLegend: focusRedirectLegend, focusScrollBody: focusScrollBody, focusScrollContainerWithoutOverflow: focusScrollContainerWithoutOverflow, focusScrollContainer: focusScrollContainer, focusSummary: focusSummary, focusSvgFocusableAttribute: focusSvgFocusableAttribute, focusSvgTabindexAttribute: focusSvgTabindexAttribute, focusSvgNegativeTabindexAttribute: focusSvgNegativeTabindexAttribute, focusSvgUseTabindex: focusSvgUseTabindex, focusSvgForeignobjectTabindex: focusSvgForeignobjectTabindex, focusSvg: focusSvg, focusTabindexTrailingCharacters: focusTabindexTrailingCharacters, focusTable: focusTable, focusVideoWithoutControls: focusVideoWithoutControls }; function executeTests() { var results = detectFocus(testDescriptions); Object.keys(testCallbacks).forEach(function(key) { results[key] = testCallbacks[key](); }); return results; } var supportsCache = null; function _supports() { if (supportsCache) { return supportsCache; } supportsCache = cache$1.get(); if (!supportsCache.time) { cache$1.set(executeTests()); supportsCache = cache$1.get(); } return supportsCache; } var supports = void 0; // https://www.w3.org/TR/html5/infrastructure.html#rules-for-parsing-integers // NOTE: all browsers agree to allow trailing spaces as well var validIntegerPatternNoTrailing = /^\s*(-|\+)?[0-9]+\s*$/; var validIntegerPatternWithTrailing = /^\s*(-|\+)?[0-9]+.*$/; function isValidTabindex(context) { if (!supports) { supports = _supports(); } var validIntegerPattern = supports.focusTabindexTrailingCharacters ? validIntegerPatternWithTrailing : validIntegerPatternNoTrailing; var element = contextToElement({ label: "is/valid-tabindex", resolveDocument: true, context: context }); // Edge 14 has a capitalization problem on SVG elements, // see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9282058/ var hasTabindex = element.hasAttribute("tabindex"); var hasTabIndex = element.hasAttribute("tabIndex"); if (!hasTabindex && !hasTabIndex) { return false; } // older Firefox and Internet Explorer don't support tabindex on SVG elements var isSvgElement = element.ownerSVGElement || element.nodeName.toLowerCase() === "svg"; if (isSvgElement && !supports.focusSvgTabindexAttribute) { return false; } // @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054 if (supports.focusInvalidTabindex) { return true; } // an element matches the tabindex selector even if its value is invalid var tabindex = element.getAttribute(hasTabindex ? "tabindex" : "tabIndex"); // IE11 parses tabindex="" as the value "-32768" // @browser-issue Trident https://connect.microsoft.com/IE/feedback/details/1072965 if (tabindex === "-32768") { return false; } return Boolean(tabindex && validIntegerPattern.test(tabindex)); } function tabindexValue(element) { if (!isValidTabindex(element)) { return null; } // Edge 14 has a capitalization problem on SVG elements, // see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9282058/ var hasTabindex = element.hasAttribute("tabindex"); var attributeName = hasTabindex ? "tabindex" : "tabIndex"; // @browser-issue Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054 var tabindex = parseInt(element.getAttribute(attributeName), 10); return isNaN(tabindex) ? -1 : tabindex; } // this is a shared utility file for focus-relevant.js and tabbable.js // separate testing of this file's functions is not necessary, // as they're implicitly tested by way of the consumers function isUserModifyWritable(style) { // https://www.w3.org/TR/1999/WD-css3-userint-19990916#user-modify // https://github.com/medialize/ally.js/issues/17 var userModify = style.webkitUserModify || ""; return Boolean(userModify && userModify.indexOf("write") !== -1); } function hasCssOverflowScroll(style) { return [ style.getPropertyValue("overflow"), style.getPropertyValue("overflow-x"), style.getPropertyValue("overflow-y") ].some(function(overflow) { return overflow === "auto" || overflow === "scroll"; }); } function hasCssDisplayFlex(style) { return style.display.indexOf("flex") > -1; } function isScrollableContainer(element, nodeName, parentNodeName, parentStyle) { if (nodeName !== "div" && nodeName !== "span") { // Internet Explorer advances scrollable containers and bodies to focusable // only if the scrollable container is
or - this does *not* // happen for
,
, … return false; } if (parentNodeName && parentNodeName !== "div" && parentNodeName !== "span" && !hasCssOverflowScroll(parentStyle)) { return false; } return element.offsetHeight < element.scrollHeight || element.offsetWidth < element.scrollWidth; } var supports$1 = void 0; function isFocusRelevantRules() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, context = _ref.context, _ref$except = _ref.except, except = _ref$except === undefined ? { flexbox: false, scrollable: false, shadow: false } : _ref$except; if (!supports$1) { supports$1 = _supports(); } var element = contextToElement({ label: "is/focus-relevant", resolveDocument: true, context: context }); if (!except.shadow && element.shadowRoot) { // a ShadowDOM host receives focus when the focus moves to its content return true; } var nodeName = element.nodeName.toLowerCase(); if (nodeName === "input" && element.type === "hidden") { // input[type="hidden"] supports.cannot be focused return false; } if (nodeName === "input" || nodeName === "select" || nodeName === "button" || nodeName === "textarea") { return true; } if (nodeName === "legend" && supports$1.focusRedirectLegend) { // specifics filtered in is/focusable return true; } if (nodeName === "label") { // specifics filtered in is/focusable return true; } if (nodeName === "area") { // specifics filtered in is/focusable return true; } if (nodeName === "a" && element.hasAttribute("href")) { return true; } if (nodeName === "object" && element.hasAttribute("usemap")) { // object[usemap] is not focusable in any browser return false; } if (nodeName === "object") { var svgType = element.getAttribute("type"); if (!supports$1.focusObjectSvg && svgType === "image/svg+xml") { // object[type="image/svg+xml"] is not focusable in Internet Explorer return false; } else if (!supports$1.focusObjectSwf && svgType === "application/x-shockwave-flash") { // object[type="application/x-shockwave-flash"] is not focusable in Internet Explorer 9 return false; } } if (nodeName === "iframe" || nodeName === "object") { // browsing context containers return true; } if (nodeName === "embed" || nodeName === "keygen") { // embed is considered focus-relevant but not focusable // see https://github.com/medialize/ally.js/issues/82 return true; } if (element.hasAttribute("contenteditable")) { // also see CSS property user-modify below return true; } if (nodeName === "audio" && (supports$1.focusAudioWithoutControls || element.hasAttribute("controls"))) { return true; } if (nodeName === "video" && (supports$1.focusVideoWithoutControls || element.hasAttribute("controls"))) { return true; } if (supports$1.focusSummary && nodeName === "summary") { return true; } var validTabindex = isValidTabindex(element); if (nodeName === "img" && element.hasAttribute("usemap")) { // Gecko, Trident and Edge do not allow an image with an image map and tabindex to be focused, // it appears the tabindex is overruled so focus is still forwarded to the return validTabindex && supports$1.focusImgUsemapTabindex || supports$1.focusRedirectImgUsemap; } if (supports$1.focusTable && (nodeName === "table" || nodeName === "td")) { // IE10-11 supports.can focus and
return true; } if (supports$1.focusFieldset && nodeName === "fieldset") { // IE10-11 supports.can focus
return true; } var isSvgElement = nodeName === "svg"; var isSvgContent = element.ownerSVGElement; var focusableAttribute = element.getAttribute("focusable"); var tabindex = tabindexValue(element); if (nodeName === "use" && tabindex !== null && !supports$1.focusSvgUseTabindex) { // cannot be made focusable by adding a tabindex attribute anywhere but Blink and WebKit return false; } if (nodeName === "foreignobject") { // can only be made focusable in Blink and WebKit return tabindex !== null && supports$1.focusSvgForeignobjectTabindex; } if (elementMatches(element, "svg a") && element.hasAttribute("xlink:href")) { return true; } if ((isSvgElement || isSvgContent) && element.focus && !supports$1.focusSvgNegativeTabindexAttribute && tabindex < 0) { // Firefox 51 and 52 treat any natively tabbable SVG element with // tabindex="-1" as tabbable and everything else as inert // see https://bugzilla.mozilla.org/show_bug.cgi?id=1302340 return false; } if (isSvgElement) { return validTabindex || supports$1.focusSvg || supports$1.focusSvgInIframe || // Internet Explorer understands the focusable attribute introduced in SVG Tiny 1.2 Boolean(supports$1.focusSvgFocusableAttribute && focusableAttribute && focusableAttribute === "true"); } if (isSvgContent) { if (supports$1.focusSvgTabindexAttribute && validTabindex) { return true; } if (supports$1.focusSvgFocusableAttribute) { // Internet Explorer understands the focusable attribute introduced in SVG Tiny 1.2 return focusableAttribute === "true"; } } // https://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute if (validTabindex) { return true; } var style = window.getComputedStyle(element, null); if (isUserModifyWritable(style)) { return true; } if (supports$1.focusImgIsmap && nodeName === "img" && element.hasAttribute("ismap")) { // IE10-11 considers the in focusable // https://github.com/medialize/ally.js/issues/20 var hasLinkParent = getParents({ context: element }).some(function(parent) { return parent.nodeName.toLowerCase() === "a" && parent.hasAttribute("href"); }); if (hasLinkParent) { return true; } } // https://github.com/medialize/ally.js/issues/21 if (!except.scrollable && supports$1.focusScrollContainer) { if (supports$1.focusScrollContainerWithoutOverflow) { // Internet Explorer does will consider the scrollable area focusable // if the element is a
or a and it is in fact scrollable, // regardless of the CSS overflow property if (isScrollableContainer(element, nodeName)) { return true; } } else if (hasCssOverflowScroll(style)) { // Firefox requires proper overflow setting, IE does not necessarily // https://developer.mozilla.org/docs/Web/CSS/overflow return true; } } if (!except.flexbox && supports$1.focusFlexboxContainer && hasCssDisplayFlex(style)) { // elements with display:flex are focusable in IE10-11 return true; } var parent = element.parentElement; if (!except.scrollable && parent) { var parentNodeName = parent.nodeName.toLowerCase(); var parentStyle = window.getComputedStyle(parent, null); if (supports$1.focusScrollBody && isScrollableContainer(parent, nodeName, parentNodeName, parentStyle)) { // scrollable bodies are focusable Internet Explorer // https://github.com/medialize/ally.js/issues/21 return true; } // Children of focusable elements with display:flex are focusable in IE10-11 if (supports$1.focusChildrenOfFocusableFlexbox) { if (hasCssDisplayFlex(parentStyle)) { return true; } } } // NOTE: elements marked as inert are not focusable, // but that property is not exposed to the DOM // https://www.w3.org/TR/html5/editing.html#inert return false; } // bind exceptions to an iterator callback isFocusRelevantRules.except = function() { var except = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var isFocusRelevant = function isFocusRelevant(context) { return isFocusRelevantRules({ context: context, except: except }); }; isFocusRelevant.rules = isFocusRelevantRules; return isFocusRelevant; }; // provide isFocusRelevant(context) as default iterator callback var isFocusRelevant = isFocusRelevantRules.except({}); function findIndex(array, callback) { // attempt to use native or polyfilled Array#findIndex first if (array.findIndex) { return array.findIndex(callback); } var length = array.length; // shortcut if the array is empty if (length === 0) { return -1; } // otherwise loop over array for(var i = 0; i < length; i++){ if (callback(array[i], i, array)) { return i; } } return -1; } function getContentDocument(node) { try { // works on and