@fugood/bricks-cli 2.26.0-beta.34 → 2.26.0-beta.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/2486.js CHANGED
@@ -1 +1 @@
1
- export const __rspack_esm_id=2486;export const __rspack_esm_ids=[2486];export const __webpack_modules__={421(e,r,a){a.r(r),a.d(r,{buildDoctorReport:()=>h,renderDoctorReport:()=>v});var i,o,t=a(99436),s=a(85382),n=a(31802),c=a(8479),l=a(7586),p=a(47988),u=(i=t(function*(){try{return yield Promise.all([a.e(1826),a.e(3781),a.e(7281),a.e(1010),a.e(9439)]).then(a.bind(a,70114)),{available:!0}}catch(e){return{available:!1,error:e.message}}}),function(){return i.apply(this,arguments)}),k=(e,r,a)=>({severity:e,code:r,message:a}),h=(o=t(function*({version:e="2.26.0-beta.34",mcpCheck:r=u}={}){var a=(0,p.getCurrentProfile)(),i=(0,p.getCurrentProfileSource)(),o=(0,n.getConnectionContext)(a),t=o.tokenInfo,h=o.auth,d=o.baseUrl,v=o.activityLogBaseUrl,m=[],w={ok:!1,timestamp:new Date().toISOString(),cli:{name:"bricks",version:e},profile:{name:a,source:i},config:{path:p.CONFIG_PATH,baseUrl:d,activityLogBaseUrl:v},auth:{available:!!h,source:h?"config":"missing",kind:h?.kind||null,workspaceId:t?.workspaceId||null,workspaceName:t?.workspaceName||null,createdAt:t?.createdAt||null,tokenPreview:h?.kind==="token"?(0,l.$l)(h.token):null},connectivity:{workspace:{ok:!1,skipped:!h,error:null}},capabilities:{zeroArgMode:(0,c.isInteractiveTerminal)()?"interactive":"help",mcp:{available:!1,error:null}},issues:m};if(h)try{var b=yield(0,s.createClient)(d,h).workspace();w.connectivity.workspace={ok:!0,skipped:!1,error:null,id:b?._id||t.workspaceId||null,name:b?.name||t.workspaceName||null},w.auth.workspaceId=b?._id||w.auth.workspaceId,w.auth.workspaceName=b?.name||w.auth.workspaceName}catch(e){w.connectivity.workspace={ok:!1,skipped:!1,error:e.message},m.push(k("error","workspace_unreachable",`Workspace query failed for ${d}: ${e.message}`))}else m.push(k("warning","auth_missing","No usable credential for the current profile."));var f=yield r();return w.capabilities.mcp={available:f.available,error:f.error||null},f.available||m.push(k("warning","mcp_unavailable",`MCP stdio server is unavailable: ${f.error||"Unknown error"}`)),w.ok=0===m.length,w}),function(){return o.apply(this,arguments)}),d=(e,r,a)=>`${e.padEnd(14)} ${r}${a?` ${a}`:""}`,v=e=>{var r=[];if(r.push("BRICKS CLI Doctor"),r.push("─".repeat(60)),r.push(d("CLI","OK",`bricks v${e.cli.version}`)),r.push(d("Profile","OK",`${e.profile.name} (${e.profile.source})`)),r.push(d("BRICKS API","OK",e.config.baseUrl)),r.push(d("Activity Log","OK",e.config.activityLogBaseUrl)),e.auth.available){var a=e.auth.workspaceName||e.auth.workspaceId||"Unknown workspace",i=[e.auth.source,e.auth.kind,e.auth.tokenPreview].filter(Boolean).join(", ");r.push(d("Auth","OK",i?`${a} (${i})`:a))}else r.push(d("Auth","WARN","No usable credential for the current profile"));if(e.connectivity.workspace.skipped)r.push(d("Workspace","WARN","Skipped because no credential is available"));else if(e.connectivity.workspace.ok){var o=e.connectivity.workspace.name||e.connectivity.workspace.id||"Unknown workspace";r.push(d("Workspace","OK",o))}else r.push(d("Workspace","FAIL",e.connectivity.workspace.error));return e.capabilities.mcp.available?r.push(d("MCP","OK","STDIO server import is available")):r.push(d("MCP","WARN",e.capabilities.mcp.error)),r.push(d("Zero-arg mode",((e,r=!1)=>e?"OK":r?"WARN":"FAIL")("interactive"===e.capabilities.zeroArgMode,"help"===e.capabilities.zeroArgMode),"interactive"===e.capabilities.zeroArgMode?"Starts Ink interactive mode on TTY":"Shows help outside TTY contexts")),e.issues.length>0&&(r.push("─".repeat(60)),r.push("Issues"),e.issues.forEach(e=>{r.push(`- [${e.severity}] ${e.message}`)})),r.join("\n")}}};
1
+ export const __rspack_esm_id=2486;export const __rspack_esm_ids=[2486];export const __webpack_modules__={421(e,r,a){a.r(r),a.d(r,{buildDoctorReport:()=>h,renderDoctorReport:()=>v});var i,o,t=a(99436),s=a(85382),n=a(31802),c=a(8479),l=a(7586),p=a(47988),u=(i=t(function*(){try{return yield Promise.all([a.e(1826),a.e(3781),a.e(7281),a.e(1010),a.e(9439)]).then(a.bind(a,70114)),{available:!0}}catch(e){return{available:!1,error:e.message}}}),function(){return i.apply(this,arguments)}),k=(e,r,a)=>({severity:e,code:r,message:a}),h=(o=t(function*({version:e="2.26.0-beta.36",mcpCheck:r=u}={}){var a=(0,p.getCurrentProfile)(),i=(0,p.getCurrentProfileSource)(),o=(0,n.getConnectionContext)(a),t=o.tokenInfo,h=o.auth,d=o.baseUrl,v=o.activityLogBaseUrl,m=[],w={ok:!1,timestamp:new Date().toISOString(),cli:{name:"bricks",version:e},profile:{name:a,source:i},config:{path:p.CONFIG_PATH,baseUrl:d,activityLogBaseUrl:v},auth:{available:!!h,source:h?"config":"missing",kind:h?.kind||null,workspaceId:t?.workspaceId||null,workspaceName:t?.workspaceName||null,createdAt:t?.createdAt||null,tokenPreview:h?.kind==="token"?(0,l.$l)(h.token):null},connectivity:{workspace:{ok:!1,skipped:!h,error:null}},capabilities:{zeroArgMode:(0,c.isInteractiveTerminal)()?"interactive":"help",mcp:{available:!1,error:null}},issues:m};if(h)try{var b=yield(0,s.createClient)(d,h).workspace();w.connectivity.workspace={ok:!0,skipped:!1,error:null,id:b?._id||t.workspaceId||null,name:b?.name||t.workspaceName||null},w.auth.workspaceId=b?._id||w.auth.workspaceId,w.auth.workspaceName=b?.name||w.auth.workspaceName}catch(e){w.connectivity.workspace={ok:!1,skipped:!1,error:e.message},m.push(k("error","workspace_unreachable",`Workspace query failed for ${d}: ${e.message}`))}else m.push(k("warning","auth_missing","No usable credential for the current profile."));var f=yield r();return w.capabilities.mcp={available:f.available,error:f.error||null},f.available||m.push(k("warning","mcp_unavailable",`MCP stdio server is unavailable: ${f.error||"Unknown error"}`)),w.ok=0===m.length,w}),function(){return o.apply(this,arguments)}),d=(e,r,a)=>`${e.padEnd(14)} ${r}${a?` ${a}`:""}`,v=e=>{var r=[];if(r.push("BRICKS CLI Doctor"),r.push("─".repeat(60)),r.push(d("CLI","OK",`bricks v${e.cli.version}`)),r.push(d("Profile","OK",`${e.profile.name} (${e.profile.source})`)),r.push(d("BRICKS API","OK",e.config.baseUrl)),r.push(d("Activity Log","OK",e.config.activityLogBaseUrl)),e.auth.available){var a=e.auth.workspaceName||e.auth.workspaceId||"Unknown workspace",i=[e.auth.source,e.auth.kind,e.auth.tokenPreview].filter(Boolean).join(", ");r.push(d("Auth","OK",i?`${a} (${i})`:a))}else r.push(d("Auth","WARN","No usable credential for the current profile"));if(e.connectivity.workspace.skipped)r.push(d("Workspace","WARN","Skipped because no credential is available"));else if(e.connectivity.workspace.ok){var o=e.connectivity.workspace.name||e.connectivity.workspace.id||"Unknown workspace";r.push(d("Workspace","OK",o))}else r.push(d("Workspace","FAIL",e.connectivity.workspace.error));return e.capabilities.mcp.available?r.push(d("MCP","OK","STDIO server import is available")):r.push(d("MCP","WARN",e.capabilities.mcp.error)),r.push(d("Zero-arg mode",((e,r=!1)=>e?"OK":r?"WARN":"FAIL")("interactive"===e.capabilities.zeroArgMode,"help"===e.capabilities.zeroArgMode),"interactive"===e.capabilities.zeroArgMode?"Starts Ink interactive mode on TTY":"Shows help outside TTY contexts")),e.issues.length>0&&(r.push("─".repeat(60)),r.push("Issues"),e.issues.forEach(e=>{r.push(`- [${e.severity}] ${e.message}`)})),r.join("\n")}}};
package/lib/2499.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=2499;export const __rspack_esm_ids=[2499];export const __webpack_modules__={5018(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},44668(e,t,n){var r=n(56347);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},23878(e,t,n){var r=n(14319).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},56347(e,t,n){var r=n(14319).default,i=n(23878);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},14319(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},42495(e,t,n){n.d(t,{k:()=>v});var r=n(85608),i=n(60837),a=n(2904),o=n(555),s=n(3777),u=n(36054),c=n(30671),l=n(54019),f=n(44114),d=n(55427),p=n(70916),h=n(62959),v=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,i.wrap)(a.ct,{max:o.v["cache.fragmentQueryDocuments"]||1e3,cache:l.l})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,r.__assign)((0,r.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,n=this,i=e.fragment,a=e.fragmentName,o=e.from,l=e.optimistic,f=(0,r.__rest)(e,["fragment","fragmentName","from","optimistic"]),v=this.getFragmentDoc(i,a),y=void 0===o||"string"==typeof o?o:this.identify(o),m=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var g=a||(0,s.E4)(i).name.value;y||!1===globalThis.__DEV__||p.invariant.warn(1,g)}var _=(0,r.__assign)((0,r.__assign)({},f),{returnPartialData:!0,id:y,query:v,optimistic:void 0===l||l});return new u.c(function(o){return n.watch((0,r.__assign)((0,r.__assign)({},_),{immediate:!0,callback:function(s){var u=m?(0,h.z)(s.result,i,n,a):s.result;if(!(t&&(0,d.a)(v,{data:t.result},{data:u},e.variables))){var l={data:u,complete:!!s.complete};s.missing&&(l.missing=(0,c.IM)(s.missing.map(function(e){return e.missing}))),t=(0,r.__assign)((0,r.__assign)({},s),{result:u}),o.next(l)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,r.__assign)((0,r.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,i=(0,r.__rest)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,i=e.fragment,a=e.fragmentName,o=(0,r.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var i=n.readQuery(e),a=t(i);return null==a?i:(n.writeQuery((0,r.__assign)((0,r.__assign)({},e),{data:a})),a)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var i=n.readFragment(e),a=t(i);return null==a?i:(n.writeFragment((0,r.__assign)((0,r.__assign)({},e),{data:a})),a)}})},e}();!1!==globalThis.__DEV__&&(v.prototype.getMemoryInternals=f.tQ)},84673(e,t,n){var r;n.d(t,{l:()=>r}),r||(r={})},65702(e,t,n){n.d(t,{Z:()=>i});var r=n(85608),i=function(e){function t(n,r,i,a){var o,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)(o={})[s.path[u]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,r.__extends)(t,e),t}(Error)},83906(e,t,n){n.d(t,{$7:()=>k,D_:()=>_,M2:()=>E});var r,i,a=n(85608),o=n(70916),s=n(60837),u=n(55888),c=n(44592),l=n(57236),f=n(28907),d=n(30671),p=n(21777),h=n(51360),v=n(35207),y=Object.create(null),m=function(){return y},g=Object.create(null),_=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,l.G)((0,f.A_)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,f.A_)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,f.WU)(e);if((0,f.A_)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,f.WU)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,a.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),v.$3.call(this.data,e)){var n=this.data[e];if(n&&v.$3.call(n,t))return n[t]}return"__typename"===t&&v.$3.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof w?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),v.$3.call(this.data,e))?this.data[e]:this instanceof w?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,f.A_)(e)&&(e=e.__ref),(0,f.A_)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){(0,o.invariant)("string"==typeof n,2);var s=new d.ZI(S).merge(i,a);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=(0,v.iJ)(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||r instanceof w||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),s=!1,u=!0,c={DELETE:y,INVALIDATE:g,isReference:f.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,f.WU)(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(d){var p=(0,v.iJ)(d),h=r[d];if(void 0!==h){var _="function"==typeof t?t:t[d]||t[p];if(_){var b=_===m?y:_((0,l.G)(h),(0,a.__assign)((0,a.__assign)({},c),{fieldName:p,storeFieldName:d,storage:n.getStorage(e,d)}));if(b===g)n.group.dirty(e,d);else if(b===y&&(b=void 0),b!==h&&(i[d]=b,s=!0,h=b,!1!==globalThis.__DEV__)){var E=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&o.invariant.warn(3,e),!0};if((0,f.A_)(b))E(b);else if(Array.isArray(b))for(var w=!1,O=void 0,S=0,k=b;S<k.length;S++){var T=k[S];if((0,f.A_)(T)){if(w=!0,E(T))break}else"object"==typeof T&&T&&n.policies.identify(T)[0]&&(O=T);if(w&&void 0!==O){!1!==globalThis.__DEV__&&o.invariant.warn(4,O);break}}}}void 0!==h&&(u=!1)}}),s)return this.merge(e,i),u&&(this instanceof w?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?((r={})[o]=m,r):m)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(v.$3.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof w&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){v.$3.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&v.$3.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,a.__rest)(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof w?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){v.$3.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof w;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!v.$3.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){(0,f.A_)(e)&&(t[e.__ref]=!0),(0,p.U)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,p.U)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),b=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dep)():null,this.keyMaker=new c.Trie(h.et)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=(0,v.iJ)(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function E(e,t){k(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,a=e.call(this,n,new b(void 0===r||r))||this;return a.stump=new O(a),a.storageTrie=new c.Trie(h.et),i&&a.replace(i),a}return(0,a.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(r=_||(_={})),r.Root=i;var w=function(e){function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return(0,a.__extends)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){(0,u.equal)(r[n],i[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,a.__assign)((0,a.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return v.$3.call(this.data,t)?(0,a.__assign)((0,a.__assign)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(_),O=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new b(t.group.caching,t.group))||this}return(0,a.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(w);function S(e,t,n){var r=e[n],i=t[n];return(0,u.equal)(r,i)?r:i}function k(e){return!!(e instanceof _&&e.group.caching)}},35207(e,t,n){n.d(t,{$3:()=>f,I6:()=>v,T9:()=>function e(t,n,r){return!!(0,a.U)(n)&&((0,o.c)(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if((0,i.dt)(t)&&(0,s.MS)(t,r)){var a=(0,i.ue)(t);return f.call(n,a)&&(!t.selectionSet||e(t.selectionSet,n[a],r))}return!0}))},Ui:()=>m,Xx:()=>y,d1:()=>b,gk:()=>g,iJ:()=>_,lq:()=>w,mv:()=>E,or:()=>p});var r=n(50492),i=n(28907),a=n(21777),o=n(73767),s=n(82307),u=n(30671),c=n(2904),l=n(3777),f=Object.prototype.hasOwnProperty;function d(e){return null==e}function p(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=d(r)?d(i)?void 0:{_id:i}:{id:r}),d(r)&&!d(i)&&(r=i),!d(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var h={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function v(e){return(0,r.o)(h,e)}function y(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function m(e,t){return(0,i.A_)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var g=/^[_a-z][_0-9a-z]*/i;function _(e){var t=e.match(g);return t?t[0]:e}function b(e){return(0,a.U)(e)&&!(0,i.A_)(e)&&!(0,o.c)(e)}function E(){return new u.ZI}function w(e,t){var n=(0,c.JG)((0,l.zK)(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}},7068(e,t,n){n.d(t,{D:()=>L});var r=n(85608),i=n(70916),a=n(60837),o=n(55888),s=n(42495),u=n(65702),c=n(9354),l=n(53925),f=n(555),d=n(44214),p=n(38678),h=n(28907),v=n(42455),y=n(51360),m=n(50492),g=n(3777),_=n(30671),b=n(82307),E=n(2904),w=n(57236),O=n(21777),S=n(83906),k=n(35207),T=n(73767),x=n(44592),A=function(){function e(){this.known=new(y.En?WeakSet:Set),this.pool=new x.Trie(y.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,O.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,O.U)(e)){var t=(0,O.U)(e)?(0,T.c)(e)?e.slice(0):(0,r.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,O.U)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return i.array||(this.known.add(i.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var u=o.length;s.sorted.forEach(function(n){o.push(t.admit(e[n]))});var i=this.pool.lookupArray(o);if(!i.object){var c=i.object=Object.create(a);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=o[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function j(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var I=function(){function e(e){var t=this;this.knownResults=new(y.et?WeakMap:Map),this.config=(0,m.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,k.Xx)(e)}),this.canon=e.canon||new A,this.executeSelectionSet=(0,a.wrap)(function(e){var n,i=e.context.canonizeResults,a=j(e);a[3]=!i;var o=(n=t.executeSelectionSet).peek.apply(n,a);return o?i?(0,r.__assign)((0,r.__assign)({},o),{result:t.canon.admit(o.result)}):o:((0,S.M2)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||f.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:j,makeCacheKey:function(e,t,n,r){if((0,S.$7)(n.store))return n.store.makeCacheKey(e,(0,h.A_)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,a.wrap)(function(e){return(0,S.M2)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||f.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if((0,S.$7)(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new A},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,i=e.query,a=e.rootId,o=e.variables,s=e.returnPartialData,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,f=this.config.cache.policies;o=(0,r.__assign)((0,r.__assign)({},(0,g.wY)((0,g.AT)(i))),o);var p=(0,h.WU)(void 0===a?"ROOT_QUERY":a),v=this.executeSelectionSet({selectionSet:(0,g.Vn)(i).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,r.__assign)({store:n,query:i,policies:f,variables:o,varString:(0,d.M)(o),canonizeResults:l},(0,k.lq)(i,this.config.fragments))});if(v.missing&&(t=[new u.Z(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(v.missing),v.missing,i,o)],!(void 0===s||s)))throw t[0];return{result:v.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if((0,S.$7)(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,a=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,h.A_)(a)&&!s.policies.rootTypenamesById[a.__ref]&&!s.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var u=s.variables,c=s.policies,f=s.store.getFieldValue(a,"__typename"),d=[],p=new _.ZI;function y(e,n){var r;return e.missing&&(t=p.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof f&&!c.rootIdsByTypename[f]&&d.push({__typename:f});var m=new Set(r.selections);m.forEach(function(e){var r,g;if((0,b.MS)(e,u))if((0,h.dt)(e)){var _=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:a},s),w=(0,h.ue)(e);void 0===_?l.XY.added(e)||(t=p.merge(t,((r={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,h.A_)(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),r))):(0,T.c)(_)?_.length>0&&(_=y(n.executeSubSelectedArray({field:e,array:_,enclosingRef:o,context:s}),w)):e.selectionSet?null!=_&&(_=y(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:_,enclosingRef:(0,h.A_)(_)?_:o,context:s}),w)):s.canonizeResults&&(_=n.canon.pass(_)),void 0!==_&&d.push(((g={})[w]=_,g))}else{var O=(0,E.HQ)(e,s.lookupFragment);if(!O&&e.kind===v.b.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(10,e.name.value);O&&c.fragmentMatches(O,f)&&O.selectionSet.selections.forEach(m.add,m)}});var g={result:(0,_.IM)(d),missing:t},O=s.canonizeResults?this.canon.admit(g):(0,w.G)(g);return O.result&&this.knownResults.set(O.result,r),O},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,a=e.array,o=e.enclosingRef,s=e.context,u=new _.ZI;function c(e,n){var r;return e.missing&&(t=u.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(a=a.filter(s.store.canRead)),a=a.map(function(e,t){return null===e?null:(0,T.c)(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:s}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,h.A_)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){(0,O.U)(n)&&((0,i.invariant)(!(0,h.A_)(n),11,(0,k.Ui)(e,n),t.name.value),Object.values(n).forEach(r.add,r))})}}(s.store,r,e),e)}),{result:s.canonizeResults?this.canon.admit(a):a,missing:t}},e}(),D=n(20906),N=n(92610);function R(e,t,n){var i="".concat(t).concat(n),a=e.flavors.get(i);return a||e.flavors.set(i,a=e.clientOnly===t&&e.deferred===n?e:(0,r.__assign)((0,r.__assign)({},e),{clientOnly:t,deferred:n})),a}var F=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,a=t.query,s=t.result,u=t.dataId,c=t.variables,l=t.overwrite,f=(0,g.Vu)(a),p=(0,k.mv)();c=(0,r.__assign)((0,r.__assign)({},(0,g.wY)(f)),c);var v=(0,r.__assign)((0,r.__assign)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,d.M)(c)},(0,k.lq)(a,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:s||Object.create(null),dataId:u,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:v});if(!(0,h.A_)(y))throw(0,i.newInvariantError)(12,s);return v.incomingById.forEach(function(t,a){var s=t.storeObject,u=t.mergeTree,c=t.fieldNodeSet,l=(0,h.WU)(a);if(u&&u.map.size){var f=n.applyMerges(u,l,s,v);if((0,h.A_)(f))return;s=f}if(!1!==globalThis.__DEV__&&!v.overwrite){var d=Object.create(null);c.forEach(function(e){e.selectionSet&&(d[e.name.value]=!0)});var p=function(e){var t=u&&u.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(s).forEach(function(e){!0!==d[(0,k.iJ)(e)]||p(e)||function(e,t,n,a){var s=function(e){var t=a.getFieldValue(e,n);return"object"==typeof t&&t},u=s(e);if(u){var c=s(t);if(!(!c||(0,h.A_)(u)||(0,o.equal)(u,c)||Object.keys(u).every(function(e){return void 0!==a.getFieldValue(c,e)}))){var l=a.getFieldValue(e,"__typename")||a.getFieldValue(t,"__typename"),f=(0,k.iJ)(n),d="".concat(l,".").concat(f);if(!P.has(d)){P.add(d);var p=[];(0,T.c)(u)||(0,T.c)(c)||[u,c].forEach(function(e){var t=a.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),!1!==globalThis.__DEV__&&i.invariant.warn(15,f,l,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",d,(0,r.__assign)({},u),(0,r.__assign)({},c))}}}}(l,s,e,v.store)})}e.merge(a,s)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,a=e.result,o=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,f=Object.create(null),d=n&&c.rootTypenamesById[n]||(0,h.D$)(a,o,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof d&&(f.__typename=d);var p=function(){var e=(0,N.m)(arguments,f,s.variables);if((0,h.A_)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var n=c.readField((0,r.__assign)((0,r.__assign)({},e),{from:t.storeObject}),s);if(void 0!==n)return n}}return c.readField(e,s)},v=new Set;this.flattenFields(o,a,s,d).forEach(function(e,n){var r,o=a[(0,h.ue)(n)];if(v.add(n),void 0!==o){var s=c.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),y=M(u,s),m=t.processFieldValue(o,n,n.selectionSet?R(e,!1,!1):e,y),g=void 0;n.selectionSet&&((0,h.A_)(m)||(0,k.d1)(m))&&(g=p("__typename",m));var _=c.getMergeFunction(d,n.name.value,g);_?y.info={field:n,typename:d,merge:_}:z(u,s),f=e.merge(f,((r={})[s]=m,r))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||l.XY.added(n)||c.getReadFunction(d,n.name.value)||!1===globalThis.__DEV__||i.invariant.error(13,(0,h.ue)(n),a)});try{var y=c.identify(a,{typename:d,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:f,readField:p}),m=y[0],g=y[1];n=n||m,g&&(f=s.merge(f,g))}catch(e){if(!n)throw e}if("string"==typeof n){var _=(0,h.WU)(n),b=s.written[n]||(s.written[n]=[]);if(b.indexOf(o)>=0||(b.push(o),this.reader&&this.reader.isFresh(a,_,o,s)))return _;var E=s.incomingById.get(n);return E?(E.storeObject=s.merge(E.storeObject,f),E.mergeTree=function e(t,n){if(t===n||!n||V(n))return t;if(!t||V(t))return n;var i=t.info&&n.info?(0,r.__assign)((0,r.__assign)({},t.info),n.info):t.info||n.info,a=t.map.size&&n.map.size,o={info:i,map:a?new Map:t.map.size?t.map:n.map};if(a){var s=new Set(n.map.keys());t.map.forEach(function(t,r){o.map.set(r,e(t,n.map.get(r))),s.delete(r)}),s.forEach(function(r){o.map.set(r,e(n.map.get(r),t.map.get(r)))})}return o}(E.mergeTree,u),v.forEach(function(e){return E.fieldNodeSet.add(e)})):s.incomingById.set(n,{storeObject:f,mergeTree:V(u)?void 0:u,fieldNodeSet:v}),_}return f},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,T.c)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,n,M(r,a));return z(r,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?(0,D.m)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,h.D$)(t,e,n.fragmentMap));var a=new Map,o=this.cache.policies,s=new x.Trie(!1);return!function e(u,c){var l=s.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach(function(s){if((0,b.MS)(s,n.variables)){var u=c.clientOnly,l=c.deferred;if(!(u&&l)&&(0,T.E)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var r=(0,h.MB)(e,n.variables);r&&!1===r.if||(l=!0)}}),(0,h.dt)(s)){var f=a.get(s);f&&(u=u&&f.clientOnly,l=l&&f.deferred),a.set(s,R(n,u,l))}else{var d=(0,E.HQ)(s,n.lookupFragment);if(!d&&s.kind===v.b.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(14,s.name.value);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,R(n,u,l))}}}))}(e,n),a},e.prototype.applyMerges=function(e,t,n,a,o){var s=this;if(e.map.size&&!(0,h.A_)(n)){var u,c,l=!(0,T.c)(n)&&((0,h.A_)(t)||(0,k.d1)(t))?t:void 0,f=n;l&&!o&&(o=[(0,h.A_)(l)?l.__ref:l]);var d=function(e,t){return(0,T.c)(e)?"number"==typeof t?e[t]:void 0:a.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=d(l,t),r=d(f,t);if(void 0!==r){o&&o.push(t);var u=s.applyMerges(e,n,r,a,o);u!==r&&(c=c||new Map).set(t,u),o&&(0,i.invariant)(o.pop()===t)}}),c&&(n=(0,T.c)(f)?f.slice(0):(0,r.__assign)({},f),c.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,a,o&&(u=a.store).getStorage.apply(u,o)):n},e}(),C=[];function M(e,t){var n=e.map;return n.has(t)||n.set(t,C.pop()||{map:new Map}),n.get(t)}function V(e){return!e||!(e.info||e.map.size)}function z(e,t){var n=e.map,r=n.get(t);r&&V(r)&&(C.push(r),n.delete(t))}var P=new Set,q=n(777),U=n(44114),L=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new c.c(l.XY),n.assumeImmutableResults=!0,n.makeVar=q.UT,n.txCount=0,n.config=(0,k.I6)(t),n.addTypename=!!n.config.addTypename,n.policies=new N.l({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,r.__extends)(t,e),t.prototype.init=function(){var e=this.data=new S.D_.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new F(this,this.storeReader=new I({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,k.Xx)(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=(0,a.wrap)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||f.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if((0,S.$7)(n)){var r=e.optimistic,i=e.id,a=e.variables;return n.makeCacheKey(e.query,e.callback,(0,d.M)({optimistic:r,id:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,r.__assign)((0,r.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof u.Z)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(k.$3.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,r.__assign)((0,r.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,q.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,q.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){d.M.reset(),p.y.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(k.$3.call(e,"id"))return!1;e=(0,r.__assign)((0,r.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),d.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,q.WR)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,i=e.update,a=e.optimistic,o=void 0===a||a,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var r=n.data,a=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=i(n)}finally{--n.txCount,n.data=r,n.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,r.__assign)((0,r.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,r.__assign)((0,r.__assign)({},e),{onWatchUpdated:function(e,t){var n=u.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&(0,o.equal)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(s.k);!1!==globalThis.__DEV__&&(L.prototype.getMemoryInternals=U.cM)},92610(e,t,n){n.d(t,{l:()=>k,m:()=>x});var r=n(85608),i=n(70916),a=n(28907),o=n(86563),s=n(21777),u=n(35207),c=n(73767),l=n(777),f=n(30671),d=Object.create(null);function p(e){var t=JSON.stringify(e);return d[t]||(d[t]=Object.create(null))}function h(e){var t=p(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},a=n.keyObject=y(e,function(e){var a=g(n.storeObject,e,r);return void 0===a&&t!==n.storeObject&&u.$3.call(t,e[0])&&(a=g(t,e,m)),(0,i.invariant)(void 0!==a,5,e.join("."),t),a});return"".concat(n.typename,":").concat(JSON.stringify(a))})}function v(e){var t=p(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,s=JSON.stringify(y(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&(0,c.E)(r.directives)){var s=n.slice(1),l=r.directives.find(function(e){return e.name.value===s}),f=l&&(0,a.MB)(l,i);return f&&g(f,e.slice(1))}return}if("$"===o){var d=n.slice(1);if(i&&u.$3.call(i,d)){var p=e.slice(0);return p[0]=d,g(i,p)}return}if(t)return g(t,e)}));return(t||"{}"!==s)&&(o+=":"+s),o})}function y(e,t){var n=new f.ZI;return(function e(t){var n=p(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,a){(0,c.c)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,c.c)(t[a+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,a=t(r);if(void 0!==a){for(var o=r.length-1;o>=0;--o)(i={})[r[o]]=a,a=i;e=n.merge(e,a)}return e},Object.create(null))}function m(e,t){return e[t]}function g(e,t,n){return n=n||m,function e(t){return(0,s.U)(t)?(0,c.c)(t)?t.map(e):y(Object.keys(t).sort(),function(e){return g(t,e)}):t}(t.reduce(function e(t,r){return(0,c.c)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}var _=n(47150);function b(e){return void 0!==e.args?e.args:e.field?(0,a.MB)(e.field,e.variables):null}var E=function(){},w=function(e,t){return t.fieldName},O=function(e,t,n){return(0,n.mergeObjects)(e,t)},S=function(e,t){return t},k=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,r.__assign)({dataIdFromObject:u.or},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,i,a=this,o=t&&(t.typename||(null==(n=t.storeObject)?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,u=(0,r.__assign)((0,r.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=x(arguments,s);return a.readField(e,{store:a.cache.data,variables:e.variables})}}),l=o&&this.getTypePolicy(o),f=l&&l.keyFn||this.config.dataIdFromObject;return _.yV.withValue(!0,function(){for(;f;){var t=f((0,r.__assign)((0,r.__assign)({},e),s),u);if((0,c.c)(t))f=h(t);else{i=t;break}}}),i=i?String(i):void 0,u.keyObject?[i,u.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var i=e[n],a=i.queryType,o=i.mutationType,s=i.subscriptionType,c=(0,r.__rest)(i,["queryType","mutationType","subscriptionType"]);a&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),u.$3.call(t.toBeAdded,n)?t.toBeAdded[n].push(c):t.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?O:!1===t?S:e.merge}o(r,t.merge),r.keyFn=!1===i?E:(0,c.c)(i)?h(i):"function"==typeof i?i:r.keyFn,a&&Object.keys(a).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,l=i.merge;r.keyFn=!1===s?w:(0,c.c)(s)?v(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),o(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||w)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,i.invariant)(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(u.gk);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!u.$3.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,r){if(n.test(e)){var a=t.supertypeMap.get(r);a&&a.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),a=i.fields;Object.assign(n,(0,r.__rest)(i,["fields"])),Object.assign(n.fields,a)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var a=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),c=[s],l=function(e){var t=a.getSupertypeSet(e,!1);t&&t.size&&0>c.indexOf(t)&&c.push(t)},f=!!(n&&this.fuzzySubtypes.size),d=!1,p=0;p<c.length;++p){var h=c[p];if(h.has(o))return s.has(o)||(d&&!1!==globalThis.__DEV__&&i.invariant.warn(7,t,o),s.add(o)),!0;h.forEach(l),f&&p===c.length-1&&(0,u.T9)(e.selectionSet,n,r)&&(f=!1,d=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&l(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var s={typename:n,fieldName:r,field:e.field||null,variables:e.variables},l=b(e);o;){var f=o(l,s);if((0,c.c)(f))o=v(f);else{t=f||r;break}}return(void 0===t&&(t=e.field?(0,a.Ii)(e.field,e.variables):(0,a.o5)(r,b(e))),!1===t)?r:r===(0,u.iJ)(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=(0,u.iJ)(i),s=t.store.getFieldValue(n,i),c=this.getFieldPolicy(e.typename,o,!1),f=c&&c.read;if(f){var d=T(this,n,e,t,t.store.getStorage((0,a.A_)(n)?n.__ref:n,i));return l.bl.withValue(this.cache,f,[s,d])}return s}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===O?A(r.store)(e,t):s===S?t:(r.overwrite&&(e=void 0),s(e,t,T(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function T(e,t,n,r,i){var o=e.getStoreFieldName(n),s=(0,u.iJ)(o),c=n.variables||r.variables,l=r.store,f=l.toReference,d=l.canRead;return{args:b(n),field:n.field||null,fieldName:s,storeFieldName:o,variables:c,isReference:a.A_,toReference:f,storage:i,cache:e.cache,canRead:d,readField:function(){return e.readField(x(arguments,t,c),r)},mergeObjects:A(r.store)}}function x(e,t,n){var a,s=e[0],c=e[1],l=e.length;return"string"==typeof s?a={fieldName:s,from:l>1?c:t}:(a=(0,r.__assign)({},s),u.$3.call(a,"from")||(a.from=t)),!1!==globalThis.__DEV__&&void 0===a.from&&!1!==globalThis.__DEV__&&i.invariant.warn(8,(0,o.p)(Array.from(e))),void 0===a.variables&&(a.variables=n),a}function A(e){return function(t,n){if((0,c.c)(t)||(0,c.c)(n))throw(0,i.newInvariantError)(9);if((0,s.U)(t)&&(0,s.U)(n)){var o=e.getFieldValue(t,"__typename"),l=e.getFieldValue(n,"__typename");if(o&&l&&o!==l)return n;if((0,a.A_)(t)&&(0,u.d1)(n))return e.merge(t.__ref,n),t;if((0,u.d1)(t)&&(0,a.A_)(n))return e.merge(t,n.__ref),n;if((0,u.d1)(t)&&(0,u.d1)(n))return(0,r.__assign)((0,r.__assign)({},t),n)}return n}}},777(e,t,n){n.d(t,{MS:()=>u,UT:()=>c,WR:()=>s,bl:()=>i});var r=n(60837),i=new r.Slot,a=new WeakMap;function o(e){var t=a.get(e);return t||a.set(e,t={vars:new Set,dep:(0,r.dep)()}),t}function s(e){o(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){o(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){var t;o(e).dep.dirty(r),(t=e).broadcastWatches&&t.broadcastWatches()});var u=Array.from(n);n.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(a(c),o(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var a=r.attachCache=function(e){return t.add(e),o(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}},55427(e,t,n){n.d(t,{a:()=>c});var r=n(85608),i=n(55888),a=n(3777),o=n(2904),s=n(82307),u=n(28907);function c(e,t,n,c){var f=t.data,d=(0,r.__rest)(t,["data"]),p=n.data,h=(0,r.__rest)(n,["data"]);return(0,i.default)(d,h)&&function e(t,n,r,a){if(n===r)return!0;var c=new Set;return t.selections.every(function(t){if(c.has(t)||(c.add(t),!(0,s.MS)(t,a.variables)||l(t)))return!0;if((0,u.dt)(t)){var f=(0,u.ue)(t),d=n&&n[f],p=r&&r[f],h=t.selectionSet;if(!h)return(0,i.default)(d,p);var v=Array.isArray(d),y=Array.isArray(p);if(v!==y)return!1;if(v&&y){var m=d.length;if(p.length!==m)return!1;for(var g=0;g<m;++g)if(!e(h,d[g],p[g],a))return!1;return!0}return e(h,d,p,a)}var _=(0,o.HQ)(t,a.fragmentMap);if(_)return!!l(_)||e(_.selectionSet,n,r,a)})}((0,a.Vn)(e).selectionSet,f,p,{fragmentMap:(0,o.JG)((0,a.zK)(e)),variables:c})}function l(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},53570(e,t,n){n.r(t),n.d(t,{ApolloError:()=>c,PROTOCOL_ERRORS_SYMBOL:()=>a,graphQLResultHasProtocolErrors:()=>o,isApolloError:()=>s});var r=n(85608);n(70916);var i=n(21777),a=Symbol();function o(e){return!!e.extensions&&Array.isArray(e.extensions[a])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){var t=(0,r.__spreadArray)((0,r.__spreadArray)((0,r.__spreadArray)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.U)(e)&&e.message||"Error message not found."}).join("\n")},c=function(e){function t(n){var i=n.graphQLErrors,a=n.protocolErrors,o=n.clientErrors,s=n.networkError,c=n.errorMessage,l=n.extraInfo,f=e.call(this,c)||this;return f.name="ApolloError",f.graphQLErrors=i||[],f.protocolErrors=a||[],f.clientErrors=o||[],f.networkError=s||null,f.message=c||u(f),f.extraInfo=l,f.cause=(0,r.__spreadArray)((0,r.__spreadArray)((0,r.__spreadArray)([s],i||[],!0),a||[],!0),o||[],!0).find(function(e){return!!e})||null,f.__proto__=t.prototype,f}return(0,r.__extends)(t,e),t}(Error)},19074(e,t,n){n.d(t,{C:()=>f});var r=n(70916),i=n(36054),a=n(16878),o=n(38414),s=n(46192);function u(e,t){return t?t(e):i.c.of()}function c(e){return"function"==typeof e?new f(e):e}function l(e){return e.request.length<=1}var f=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var a=c(n),o=c(r||new e(u));return Object.assign(new e(l(a)&&l(o)?function(e){return t(e)?a.request(e)||i.c.of():o.request(e)||i.c.of()}:function(e,n){return t(e)?a.request(e,n)||i.c.of():o.request(e,n)||i.c.of()}),{left:a,right:o})},e.execute=function(e,t){return e.request((0,a.k)(t.context,(0,o.A)((0,s.K)(t))))||i.c.of()},e.concat=function(t,n){var a=c(t);if(l(a))return!1!==globalThis.__DEV__&&r.invariant.warn(38,a),a;var o=c(n);return Object.assign(new e(l(o)?function(e){return a.request(e,function(e){return o.request(e)||i.c.of()})||i.c.of()}:function(e,t){return a.request(e,function(e){return o.request(e,t)||i.c.of()})||i.c.of()}),{left:a,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,r.newInvariantError)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},25174(e,t,n){n.d(t,{g:()=>r});var r=n(19074).C.execute},4232(e,t,n){n.r(t),n.d(t,{ApolloLink:()=>r.C,concat:()=>s,empty:()=>i,execute:()=>u.g,from:()=>a,split:()=>o}),n(70916);var r=n(19074),i=r.C.empty,a=r.C.from,o=r.C.split,s=r.C.concat,u=n(25174)},49952(e,t,n){n.d(t,{P:()=>o});var r=n(85608),i=n(19074),a=n(79760),o=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(0,a.$)(t).request)||this;return n.options=t,n}return(0,r.__extends)(t,e),t}(i.C)},67195(e,t,n){n.d(t,{S:()=>i});var r=n(70916),i=function(e){if(!e&&"u"<typeof fetch)throw(0,r.newInvariantError)(40)}},79760(e,t,n){n.d(t,{$:()=>_});var r=n(85608),i=n(70916),a=n(19074),o=n(82307),s=n(36054),u=n(63647),c=n(33068),l=n(90117),f=n(67195),d=n(74559),p=n(11151),h=n(93161),v=n(70783),y=n(53925),m=n(3777),g=(0,i.maybe)(function(){return fetch}),_=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,_=e.fetch,b=e.print,E=void 0===b?d.i1:b,w=e.includeExtensions,O=e.preserveHeaderCase,S=e.useGETForQueries,k=e.includeUnusedVariables,T=void 0!==k&&k,x=(0,r.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,f.S)(_||g);var A={http:{includeExtensions:w,preserveHeaderCase:O},options:x.fetchOptions,credentials:x.credentials,headers:x.headers};return new a.C(function(e){var t,a,f=(0,c.z)(e,n),b=e.getContext(),w={};if(b.clientAwareness){var O=b.clientAwareness,k=O.name,x=O.version;k&&(w["apollographql-client-name"]=k),x&&(w["apollographql-client-version"]=x)}var j=(0,r.__assign)((0,r.__assign)({},w),b.headers),I={http:b.http,options:b.fetchOptions,credentials:b.credentials,headers:j};if((0,o.d8)(["client"],e.query)){var D=(0,y.er)(e.query);if(!D)return(0,h.N)(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=D}var N=(0,d.HY)(e,E,d.R4,A,I),R=N.options,F=N.body;F.variables&&!T&&(F.variables=(0,v.X)(F.variables,e.query)),!R.signal&&"u">typeof AbortController&&(R.signal=(a=new AbortController).signal);var C="OperationDefinition"===(t=(0,m.Vn)(e.query)).kind&&"subscription"===t.operation,M=(0,o.d8)(["defer"],e.query);if(S&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(R.method="GET"),M||C){R.headers=R.headers||{};var V="multipart/mixed;";C&&M&&!1!==globalThis.__DEV__&&i.invariant.warn(41),C?V+="boundary=graphql;subscriptionSpec=1.0,application/json":M&&(V+="deferSpec=20220824,application/json"),R.headers.accept=V}if("GET"===R.method){var z=(0,p.E)(f,F),P=z.newURI,q=z.parseError;if(q)return(0,h.N)(q);f=P}else try{R.body=(0,u.Y)(F,"Payload")}catch(e){return(0,h.N)(e)}return new s.c(function(t){var n=_||(0,i.maybe)(function(){return fetch})||g,r=t.next.bind(t);return n(f,R).then(function(t){e.setContext({response:t});var n,i=null==(n=t.headers)?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?(0,l.tD)(t,r):(0,l.OQ)(e)(t).then(r)}).then(function(){a=void 0,t.complete()}).catch(function(e){a=void 0,(0,l.H4)(e,t)}),function(){a&&a.abort()}})})}},28876(e,t,n){n.r(t),n.d(t,{HttpLink:()=>l.P,parseAndCheckHttpResponse:()=>r.OQ,checkFetcher:()=>o.S,rewriteURIForGET:()=>f.E,serializeFetchParameter:()=>i.Y,createSignalIfSupported:()=>s,selectHttpOptionsAndBodyInternal:()=>a.HY,selectHttpOptionsAndBody:()=>a.Wz,selectURI:()=>u.z,fallbackHttpConfig:()=>a.R4,createHttpLink:()=>c.$,defaultPrinter:()=>a.i1}),n(70916);var r=n(90117),i=n(63647),a=n(74559),o=n(67195),s=function(){if("u"<typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},u=n(33068),c=n(79760),l=n(49952),f=n(11151)},90117(e,t,n){n.d(t,{H4:()=>d,OQ:()=>p,tD:()=>l});var r=n(85608),i=n(51360);function a(e){var t={next:function(){return e.read()}};return i.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var o=n(3848),s=n(53570),u=n(37396),c=Object.prototype.hasOwnProperty;function l(e,t){return(0,r.__awaiter)(this,void 0,void 0,function(){var n,o,c,l,d,p,h,v,y,m,g,_,b,E,w,O,S,k,T,x,A,j,I;return(0,r.__generator)(this,function(D){switch(D.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),o=null==(I=e.headers)?void 0:I.get("content-type"),c="boundary=",l=(null==o?void 0:o.includes(c))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(c))+c.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",d="\r\n--".concat(l),p="",h=function(e){var t,n,r,o,s,u,c=e;if(e.body&&(c=e.body),t=c,i.uJ&&t[Symbol.asyncIterator])return r=c[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(c.getReader)return a(c.getReader());if(c.stream)return a(c.stream().getReader());if(c.arrayBuffer)return o=c.arrayBuffer(),s=!1,u={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){o.then(function(t){e({value:t,done:!1})}).catch(t)}))}},i.uJ&&(u[Symbol.asyncIterator]=function(){return this}),u;if(c.pipe)return function(e){var t=null,n=null,r=!1,a=[],o=[];function s(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}a.push(e)}}function u(e){n=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function c(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",u),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",u),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise(function(e,t){return n?t(n):a.length?e({value:a.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return i.uJ&&(l[Symbol.asyncIterator]=function(){return this}),l}(c);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),v=!0,D.label=1;case 1:if(!v)return[3,3];return[4,h.next()];case 2:for(m=(y=D.sent()).value,g=y.done,_="string"==typeof m?m:n.decode(m),b=p.length-d.length+1,v=!g,p+=_,E=p.indexOf(d,b);E>-1;){if(w=void 0,w=(A=[p.slice(0,E),p.slice(E+d.length)])[0],p=A[1],O=w.indexOf("\r\n\r\n"),(S=function(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}(w.slice(0,O))["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(k=w.slice(O)){if(Object.keys(T=f(e,k)).length>1||"data"in T||"incremental"in T||"errors"in T||"payload"in T)if((0,u.Nw)(T)){if(x={},"payload"in T){if(1===Object.keys(T).length&&null===T.payload)return[2];x=(0,r.__assign)({},T.payload)}"errors"in T&&(x=(0,r.__assign)((0,r.__assign)({},x),{extensions:(0,r.__assign)((0,r.__assign)({},"extensions"in x?x.extensions:null),((j={})[s.PROTOCOL_ERRORS_SYMBOL]=T.errors,j))})),t(x)}else t(T);else if(1===Object.keys(T).length&&"hasNext"in T&&!T.hasNext)return[2]}E=p.indexOf(d)}return[3,1];case 3:return[2]}})})}function f(e,t){e.status>=300&&(0,o.A)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function d(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function p(e){return function(t){return t.text().then(function(e){return f(t,e)}).then(function(n){return Array.isArray(n)||c.call(n,"data")||c.call(n,"errors")||(0,o.A)(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})}}},11151(e,t,n){n.d(t,{E:()=>i});var r=n(63647);function i(e,t){var n=[],i=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var a=void 0;try{a=(0,r.Y)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",a)}if(t.extensions){var o=void 0;try{o=(0,r.Y)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",o)}var s="",u=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+n.join("&")+s}}},74559(e,t,n){n.d(t,{HY:()=>u,R4:()=>a,Wz:()=>s,i1:()=>o});var r=n(85608),i=n(38678),a={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},o=function(e,t){return t(e)};function s(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return n.unshift(t),u.apply(void 0,(0,r.__spreadArray)([e,o],n,!1))}function u(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o={},s={};n.forEach(function(e){o=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},o),e.options),{headers:(0,r.__assign)((0,r.__assign)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),s=(0,r.__assign)((0,r.__assign)({},s),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(o.headers,s.preserveHeaderCase));var u=e.operationName,c=e.extensions,l=e.variables,f=e.query,d={operationName:u,variables:l};return s.includeExtensions&&(d.extensions=c),s.includeQuery&&(d.query=t(f,i.y)),{options:o,body:d}}},33068(e,t,n){n.d(t,{z:()=>r});var r=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}},63647(e,t,n){n.d(t,{Y:()=>i});var r=n(70916),i=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var i=(0,r.newInvariantError)(42,t,e.message);throw i.parseError=e,i}return n}},16878(e,t,n){n.d(t,{k:()=>i});var r=n(85608);function i(e,t){var n=(0,r.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,r.__assign)((0,r.__assign)({},n),e(n)):(0,r.__assign)((0,r.__assign)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,r.__assign)({},n)}}),t}},70783(e,t,n){n.d(t,{X:()=>a});var r=n(85608),i=n(90424);function a(e,t){var n=(0,r.__assign)({},e),a=new Set(Object.keys(e));return(0,i.YR)(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&a.delete(e.name.value)}}),a.forEach(function(e){delete n[e]}),n}},93161(e,t,n){n.d(t,{N:()=>i});var r=n(36054);function i(e){return new r.c(function(t){t.error(e)})}},22594(e,t,n){n.d(t,{S:()=>i});var r=n(36054);function i(e){return new r.c(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}},3848(e,t,n){n.d(t,{A:()=>r});var r=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r}},60441(e,t,n){n.d(t,{h:()=>i});var r=n(70916);function i(e){var t=!1;return new Promise(function(n,i){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&r.invariant.warn(45):(t=!0,n(e))},error:i})})}},38414(e,t,n){n.d(t,{A:()=>i});var r=n(3777);function i(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,r.n4)(t.query)||void 0:""),t}},46192(e,t,n){n.d(t,{K:()=>i});var r=n(70916);function i(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];if(0>t.indexOf(a))throw(0,r.newInvariantError)(46,a)}return e}},25186(e,t,n){n.d(t,{S:()=>c});var r=n(42455),i=n(57236),a=n(28907),o=n(82307),s=n(47150),u=n(70916);function c(e,t,n){return s.yV.withValue(!0,function(){var c=function e(t,n,i,c,l){var f,d=i.knownChanged,p=function(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}(t,i.mutableTargets);if(Array.isArray(t)){for(var h=0,v=Array.from(t.entries());h<v.length;h++){var y=v[h],m=y[0],g=y[1];if(null===g){p[m]=null;continue}var _=e(g,n,i,c,!1!==globalThis.__DEV__?"".concat(l||"","[").concat(m,"]"):void 0);d.has(_)&&d.add(p),p[m]=_}return d.has(p)?p:t}for(var b=0,E=n.selections;b<E.length;b++){var w=E[b],O=void 0;if(c&&d.add(p),w.kind===r.b.FIELD){var S=(0,a.ue)(w),k=w.selectionSet;if(void 0===(O=p[S]||t[S]))continue;if(k&&null!==O){var _=e(t[S],k,i,c,!1!==globalThis.__DEV__?"".concat(l||"",".").concat(S):void 0);d.has(_)&&(O=_)}!1===globalThis.__DEV__&&(p[S]=O),!1!==globalThis.__DEV__&&(!c||"__typename"===S||(null==(f=Object.getOwnPropertyDescriptor(p,S))?void 0:f.value)?(delete p[S],p[S]=O):Object.defineProperty(p,S,function(e,t,n,r,i){var a=function(){return s.yV.getValue()||(!1!==globalThis.__DEV__&&u.invariant.warn(48,r?"".concat(i," '").concat(r,"'"):"anonymous ".concat(i),"".concat(n,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}(S,O,l||"",i.operationName,i.operationType)))}if(w.kind===r.b.INLINE_FRAGMENT&&(!w.typeCondition||i.cache.fragmentMatches(w,t.__typename))&&(O=e(t,w.selectionSet,i,c,l)),w.kind===r.b.FRAGMENT_SPREAD){var T=w.name.value,x=i.fragmentMap[T]||(i.fragmentMap[T]=i.cache.lookupFragment(T));(0,u.invariant)(x,47,T);var A=(0,o.s7)(w);"mask"!==A&&(O=e(t,x.selectionSet,i,"migrate"===A,l))}d.has(O)&&d.add(p)}return"__typename"in t&&!("__typename"in p)&&(p.__typename=t.__typename),Object.keys(p).length!==Object.keys(t).length&&d.add(p),d.has(p)?p:t}(e,t,n,!1);return Object.isFrozen(e)&&(0,i.G)(c),c})}},62959(e,t,n){n.d(t,{z:()=>l});var r=n(42455),i=n(47150),a=n(70916),o=n(55888),s=n(25186),u=n(2904),c=n(3777);function l(e,t,n,l){if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&(0,i.Ki)(),e;var f=t.definitions.filter(function(e){return e.kind===r.b.FRAGMENT_DEFINITION});void 0===l&&((0,a.invariant)(1===f.length,49,f.length),l=f[0].name.value);var d=f.find(function(e){return e.name.value===l});return((0,a.invariant)(!!d,50,l),null==e||(0,o.default)(e,{}))?e:(0,s.S)(e,d.selectionSet,{operationType:"fragment",operationName:d.name.value,fragmentMap:(0,u.JG)((0,c.zK)(t)),cache:n,mutableTargets:new i.jq,knownChanged:new i.xm})}},28354(e,t,n){n.d(t,{m:()=>u});var r=n(70916),i=n(3777),a=n(2904),o=n(25186),s=n(47150);function u(e,t,n){if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&(0,s.Ki)(),e;var u,c=(0,i.Vu)(t);return((0,r.invariant)(c,51),null==e)?e:(0,o.S)(e,c.selectionSet,{operationType:c.operation,operationName:null==(u=c.name)?void 0:u.value,fragmentMap:(0,a.JG)((0,i.zK)(t)),cache:n,mutableTargets:new s.jq,knownChanged:new s.xm})}},47150(e,t,n){n.d(t,{Ki:()=>l,jq:()=>o,xm:()=>s,yV:()=>u});var r=n(60837),i=n(70916),a=n(51360),o=a.et?WeakMap:Map,s=a.En?WeakSet:Set,u=new r.Slot,c=!1;function l(){c||(c=!0,!1!==globalThis.__DEV__&&i.invariant.warn(52))}},45078(e,t,n){n.d(t,{A:()=>s,V:()=>u});var r=n(54019),i=n(31088),a=new WeakSet;function o(e){!(e.size<=(e.max||-1))&&(a.has(e)||(a.add(e),setTimeout(function(){e.clean(),a.delete(e)},100)))}var s=function(e,t){var n=new r.l(e,t);return n.set=function(e,t){var n=r.l.prototype.set.call(this,e,t);return o(this),n},n},u=function(e,t){var n=new i.C(e,t);return n.set=function(e,t){var n=i.C.prototype.set.call(this,e,t);return o(this),n},n}},44114(e,t,n){n.d(t,{D_:()=>o,cM:()=>u,ep:()=>s,tQ:()=>c});var r=n(85608),i=n(555),a={};function o(e,t){a[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,n,o,s;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],n=e[1];return[t,i.v[t]||n]})),sizes:(0,r.__assign)({print:null==(e=a.print)?void 0:e.call(a),parser:null==(t=a.parser)?void 0:t.call(a),canonicalStringify:null==(n=a.canonicalStringify)?void 0:n.call(a),links:function e(t){var n;return t?(0,r.__spreadArray)((0,r.__spreadArray)([null==(n=null==t?void 0:t.getMemoryInternals)?void 0:n.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(d):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:p(this.queryManager.documentTransform)}},null==(s=(o=this.cache).getMemoryInternals)?void 0:s.call(o))}}:void 0,u=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,r.__assign)((0,r.__assign)({},l.apply(this)),{addTypenameDocumentTransform:p(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:f(this.storeReader.executeSelectionSet),executeSubSelectedArray:f(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:f(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:f(null==e?void 0:e.findFragmentSpreads),lookup:f(null==e?void 0:e.lookup),transform:f(null==e?void 0:e.transform)}})}:void 0,c=!1!==globalThis.__DEV__?l:void 0;function l(){return{cache:{fragmentQueryDocuments:f(this.getFragmentDoc)}}}function f(e){return e&&"dirtyKey"in e?e.size:void 0}function d(e){return null!=e}function p(e){return(function e(t){return t?(0,r.__spreadArray)((0,r.__spreadArray)([f(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(d):[]})(e).map(function(e){return{cache:e}})}},555(e,t,n){n.d(t,{v:()=>o});var r=n(85608),i=n(70916),a=Symbol.for("apollo.cacheSize"),o=(0,r.__assign)({},i.global[a])},73767(e,t,n){n.d(t,{E:()=>i,c:()=>r});var r=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},51360(e,t,n){n.d(t,{En:()=>o,JR:()=>f,Sw:()=>c,et:()=>a,ol:()=>s,uJ:()=>u});var r=n(70916),i="ReactNative"==(0,r.maybe)(function(){return navigator.product}),a="function"==typeof WeakMap&&!(i&&!global.HermesInternal),o="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,u=s&&Symbol.asyncIterator,c="function"==typeof(0,r.maybe)(function(){return window.document.createElement}),l=(0,r.maybe)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,f=(c||i)&&!l},44214(e,t,n){n.d(t,{M:()=>s});var r,i=n(45078),a=n(555),o=n(44114),s=Object.assign(function(e){return JSON.stringify(e,u)},{reset:function(){r=new i.V(a.v.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var i=Object.keys(t);if(i.every(c))return t;var a=JSON.stringify(i),o=r.get(a);if(!o){i.sort();var s=JSON.stringify(i);o=r.get(s)||i,r.set(a,o),r.set(s,o)}var u=Object.create(n);return o.forEach(function(e){u[e]=t[e]}),u}}return t}function c(e,t,n){return 0===t||n[t-1]<=e}!1!==globalThis.__DEV__&&(0,o.D_)("canonicalStringify",function(){return r.size}),s.reset()},20906(e,t,n){n.d(t,{m:()=>i});var r=Object.prototype.toString;function i(e){return function e(t,n){switch(r.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach(function(t,r){i[r]=e(t,n)}),i;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var a=Object.create(Object.getPrototypeOf(t));return n.set(t,a),Object.keys(t).forEach(function(r){a[r]=e(t[r],n)}),a;default:return t}}(e)}},50492(e,t,n){n.d(t,{o:()=>r});function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}},32710(e,t,n){n.d(t,{M:()=>o,t:()=>a});var r=n(73767),i=n(37396);function a(e){var t=o(e);return(0,r.E)(t)}function o(e){var t=(0,r.E)(e.errors)?e.errors.slice(0):[];return(0,i.ST)(e)&&(0,r.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}},37396(e,t,n){n.d(t,{EQ:()=>s,Nw:()=>c,ST:()=>o,YX:()=>u,bd:()=>l});var r=n(21777),i=n(73767),a=n(30671);function o(e){return"incremental"in e}function s(e){return"hasNext"in e&&"data"in e}function u(e){return o(e)||s(e)}function c(e){return(0,r.U)(e)&&"payload"in e}function l(e,t){var n=e,r=new a.ZI;return o(t)&&(0,i.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}n=r.merge(n,t)}),n}},21461(e,t,n){n.d(t,{v:()=>i});var r=new Map;function i(e){var t=r.get(e)||1;return r.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},57236(e,t,n){n.d(t,{G:()=>i});var r=n(21777);function i(e){var t;return!1!==globalThis.__DEV__&&(t=new Set([e])).forEach(function(e){(0,r.U)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){(0,r.U)(e[n])&&t.add(e[n])})}),e}},30671(e,t,n){n.d(t,{D9:()=>o,IM:()=>s,ZI:()=>c});var r=n(85608),i=n(21777),a=Object.prototype.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new c,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var u=function(e,t,n){return this.merge(e[n],t[n])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return(0,i.U)(t)&&(0,i.U)(e)?(Object.keys(t).forEach(function(i){if(a.call(e,i)){var s=e[i];if(t[i]!==s){var u=n.reconciler.apply(n,(0,r.__spreadArray)([e,t,i],o,!1));u!==s&&((e=n.shallowCopyForMerge(e))[i]=u)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,r.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},31507(e,t,n){n.d(t,{l:()=>a});var r=n(85608),i=n(50492);function a(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,r.__assign)((0,r.__assign)({},e&&e.variables),t.variables))})}},21777(e,t,n){function r(e){return null!==e&&"object"==typeof e}function i(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}n.d(t,{Q:()=>i,U:()=>r})},86563(e,t,n){n.d(t,{p:()=>i});var r=n(21461);function i(e,t){void 0===t&&(t=0);var n=(0,r.v)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}},70916(e,t,n){n.r(t),n.d(t,{invariant:()=>c,__DEV__:()=>v,DEV:()=>v,global:()=>o,InvariantError:()=>r.InvariantError,newInvariantError:()=>l,maybe:()=>a});var r=n(19371),i=n(73972);function a(e){try{return e()}catch(e){}}let o=a(function(){return globalThis})||a(function(){return window})||a(function(){return self})||a(function(){return global})||a(function(){return a.constructor("return this")()});var s=n(86563);function u(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=p(i))||(t=h(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var c=Object.assign(function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e||(0,r.invariant)(e,p(t,n)||h(t,n))},{debug:u(r.invariant.debug),log:u(r.invariant.log),warn:u(r.invariant.warn),error:u(r.invariant.error)});function l(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new r.InvariantError(p(e,t)||h(e,t))}var f=Symbol.for("ApolloErrorMessageHandler_"+i.r);function d(e){if("string"==typeof e)return e;try{return(0,s.p)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function p(e,t){if(void 0===t&&(t=[]),e)return o[f]&&o[f](e,t.map(d))}function h(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:i.r,message:e,args:t.map(d)})))}var v=!1!==globalThis.__DEV__},9354(e,t,n){n.d(t,{c:()=>f});var r=n(44592),i=n(51360),a=n(3777),o=n(70916),s=n(54019),u=n(60837),c=n(555);function l(e){return e}var f=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(l,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new r.Trie(i.et);this.performWork=(0,u.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return(0,o.invariant)(Array.isArray(r),77),n.lookupArray(r)},max:c.v["documentTransform.cache"],cache:s.l})}},e.prototype.performWork=function(e){return(0,a.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},82307(e,t,n){n.d(t,{I5:()=>c,MS:()=>o,d8:()=>l,f2:()=>f,hE:()=>u,s7:()=>p,sx:()=>s,tY:()=>d});var r=n(70916),i=n(90424),a=n(42455);function o(e,t){var n=e.directives;return!n||!n.length||d(n).every(function(e){var n=e.directive,i=e.ifArgument,a=!1;return"Variable"===i.value.kind?(a=t&&t[i.value.name.value],(0,r.invariant)(void 0!==a,78,n.name.value)):a=i.value.value,"skip"===n.name.value?!a:a})}function s(e){var t=[];return(0,i.YR)(e,{Directive:function(e){t.push(e.name.value)}}),t}var u=function(e,t){return l(e,t,!1)},c=function(e,t){return l(e,t,!0)};function l(e,t,n){var r=new Set(e),a=r.size;return(0,i.YR)(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return i.sP}}),n?!r.size:r.size<a}function f(e){return e&&l(["client","export"],e,!0)}function d(e){var t=[];return e&&e.length&&e.forEach(function(e){if("skip"===(n=e.name.value)||"include"===n){var n,i=e.arguments,a=e.name.value;(0,r.invariant)(i&&1===i.length,79,a);var o=i[0];(0,r.invariant)(o.name&&"if"===o.name.value,80,a);var s=o.value;(0,r.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,a),t.push({directive:e,ifArgument:o})}}),t}function p(e){var t,n,i=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!i)return"mask";var o=null==(n=i.arguments)?void 0:n.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&o&&(o.value.kind===a.b.VARIABLE?!1!==globalThis.__DEV__&&r.invariant.warn(82):o.value.kind!==a.b.STRING?!1!==globalThis.__DEV__&&r.invariant.warn(83):"migrate"!==o.value.value&&!1!==globalThis.__DEV__&&r.invariant.warn(84,o.value.value)),o&&"value"in o.value&&"migrate"===o.value.value)?"migrate":"unmask"}},2904(e,t,n){n.d(t,{HQ:()=>u,JG:()=>s,ct:()=>o,s6:()=>c});var r=n(85608),i=n(70916),a=n(90424);function o(e,t){var n=t,a=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i.newInvariantError)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&a.push(e)}),void 0===n&&((0,i.invariant)(1===a.length,86,a.length),n=a[0].name.value),(0,r.__assign)((0,r.__assign)({},e),{definitions:(0,r.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function u(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return(0,i.invariant)(r,87,n),r||null;default:return null}}function c(e){var t=!0;return(0,a.YR)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return a.sP}}),t}},3777(e,t,n){n.d(t,{AT:()=>c,E4:()=>l,Vn:()=>f,Vu:()=>o,n4:()=>s,sw:()=>a,wY:()=>d,zK:()=>u});var r=n(70916),i=n(28907);function a(e){(0,r.invariant)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,r.newInvariantError)(89,e.kind);return e});return(0,r.invariant)(t.length<=1,90,t.length),e}function o(e){return a(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=o(e);return(0,r.invariant)(t&&"query"===t.operation,91),t}function l(e){(0,r.invariant)("Document"===e.kind,92),(0,r.invariant)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,r.invariant)("FragmentDefinition"===t.kind,94),t}function f(e){a(e);for(var t,n=0,i=e.definitions;n<i.length;n++){var o=i[n];if("OperationDefinition"===o.kind){var s=o.operation;if("query"===s||"mutation"===s||"subscription"===s)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw(0,r.newInvariantError)(95)}function d(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)}),t}},38678(e,t,n){n.d(t,{y:()=>u});var r,i=n(95818),a=n(45078),o=n(555),s=n(44114),u=Object.assign(function(e){var t=r.get(e);return t||(t=(0,i.y)(e),r.set(e,t)),t},{reset:function(){r=new a.A(o.v.print||2e3)}});u.reset(),!1!==globalThis.__DEV__&&(0,s.D_)("print",function(){return r?r.size:0})},28907(e,t,n){n.d(t,{A_:()=>u,D$:()=>function e(t,n,r){for(var i,o=0,s=n.selections;o<s.length;o++){var u=s[o];if(m(u)){if("__typename"===u.name.value)return t[y(u)]}else i?i.push(u):i=[u]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,l=i;c<l.length;c++){var u=l[c],f=e(t,(0,a.HQ)(u,r).selectionSet,r);if("string"==typeof f)return f}},Ii:()=>f,J:()=>l,Kc:()=>c,MB:()=>v,WU:()=>s,dt:()=>m,kd:()=>g,o5:()=>h,ue:()=>y});var r=n(70916),i=n(21777),a=n(2904),o=n(44214);function s(e){return{__ref:String(e)}}function u(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,n,i){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var a={};n.fields.map(function(e){return l(a,e.name,e.value,i)}),e[t.value]=a}else if("Variable"===n.kind){var o=(i||{})[n.name.value];e[t.value]=o}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return l(n,t,e,i),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw(0,r.newInvariantError)(96,t.value,n.kind)}function f(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,a=r.value;return l(n[e.name.value],i,a,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return l(r,n,i,t)})),h(e.name.value,r,n)}var d=["connection","include","skip","client","rest","export","nonreactive"],p=o.M,h=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;else{var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(p(i),")")}var a=e;if(t){var o=p(t);a+="(".concat(o,")")}return n&&Object.keys(n).forEach(function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(p(n[e]),")"):a+="@".concat(e))}),a},{setStringify:function(e){var t=p;return p=e,t}});function v(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return l(n,e.name,e.value,t)}),n}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},53925(e,t,n){n.d(t,{TC:()=>_,XY:()=>v,er:()=>E,hX:()=>m,it:()=>g,iz:()=>h,x3:()=>w,zc:()=>b});var r=n(85608),i=n(70916),a=n(42455),o=n(90424),s=n(3777),u=n(28907),c=n(2904),l=n(73767),f={kind:a.b.FIELD,name:{kind:a.b.NAME,value:"__typename"}};function d(e){return!function e(t,n){return!t||t.selectionSet.selections.every(function(t){return t.kind===a.b.FRAGMENT_SPREAD&&e(n[t.name.value],n)})}((0,s.Vu)(e)||(0,s.E4)(e),(0,c.JG)((0,s.zK)(e)))?e:null}function p(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function h(e,t){(0,s.sw)(t);for(var n,u,c=p(""),f=p(""),h=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,l.c)(n)){if(n.kind===a.b.OPERATION_DEFINITION)return c(n.name&&n.name.value);if(n.kind===a.b.FRAGMENT_DEFINITION)return f(n.name.value)}return!1!==globalThis.__DEV__&&i.invariant.error(97),null},v=0,y=t.definitions.length-1;y>=0;--y)t.definitions[y].kind===a.b.OPERATION_DEFINITION&&++v;var m=(n=new Map,u=new Map,e.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=n.get(e.name.value);return!t&&u.size&&u.forEach(function(n,r){r(e)&&(t=n)}),t}),g=function(e){return(0,l.E)(e)&&e.map(m).some(function(e){return e&&e.remove})},_=new Map,b=!1,E={enter:function(e){if(g(e.directives))return b=!0,null}},w=(0,o.YR)(t,{Field:E,InlineFragment:E,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var a=h(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(g(e.directives))return b=!0,null;var a=h(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){_.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===_.get(JSON.stringify(r))?e:v>0&&e.selectionSet.selections.every(function(e){return e.kind===a.b.FIELD&&"__typename"===e.name.value})?(f(e.name.value).removed=!0,b=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return b=!0,null}}});if(!b)return t;var O=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){O(f(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},S=new Set;w.definitions.forEach(function(e){e.kind===a.b.OPERATION_DEFINITION?O(c(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){S.add(e)}):e.kind!==a.b.FRAGMENT_DEFINITION||0!==v||f(e.name.value).removed||S.add(e.name.value)}),S.forEach(function(e){O(f(e)).fragmentSpreads.forEach(function(e){S.add(e)})});var k={enter:function(e){var t;if(t=e.name.value,!S.has(t)||f(t).removed)return null}};return d((0,o.YR)(w,{FragmentSpread:k,FragmentDefinition:k,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=O(c(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,r.__assign)((0,r.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var v=Object.assign(function(e){return(0,o.YR)(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==a.b.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.dt)(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,r.__assign)((0,r.__assign)({},e),{selections:(0,r.__spreadArray)((0,r.__spreadArray)([],i,!0),[f],!1)})}}}})},{added:function(e){return e===f}}),y={test:function(e){var t="connection"===e.name.value;return!t||e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||!1===globalThis.__DEV__||i.invariant.warn(98),t}};function m(e){return h([y],(0,s.sw)(e))}function g(e,t){var n=function(t){return e.some(function(e){return t.value&&t.value.kind===a.b.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})};return d((0,o.YR)(t,{OperationDefinition:{enter:function(t){return(0,r.__assign)((0,r.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var r=0;if(t.arguments&&t.arguments.forEach(function(e){n(e)&&(r+=1)}),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}function _(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return d((0,o.YR)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}function b(e){return"query"===(0,s.Vn)(e).operation?e:(0,o.YR)(e,{OperationDefinition:{enter:function(e){return(0,r.__assign)((0,r.__assign)({},e),{operation:"query"})}}})}function E(e){return(0,s.sw)(e),h([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function w(e){return(0,s.sw)(e),(0,o.YR)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,r.__assign)((0,r.__assign)({},e),{directives:(0,r.__spreadArray)((0,r.__spreadArray)([],e.directives||[],!0),[{kind:a.b.DIRECTIVE,name:{kind:a.b.NAME,value:"nonreactive"}}],!1)})}})}},45637(e,t,n){n.d(t,{E:()=>u});var r=n(85608),i=n(36054),a=n(87613),o=n(35892);function s(e){return e&&"function"==typeof e.then}var u=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),(0,a.w)(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),(0,a.w)(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;if(null!==e){var r=(void 0===t?[]:t).shift();r?s(r)?r.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=r.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),(0,a.w)(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new i.c(t)]),s(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,r.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(i.c);(0,o.r)(u)},5762(e,t,n){n.d(t,{x:()=>i});var r=n(36054);function i(e,t,n){return new r.c(function(r){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(n){if(e){var a=function(){return r.closed?0:e(n)};i=i.then(a,a).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var o={next:a(t,"next"),error:a(n,"error"),complete:function(){i.then(function(){return r.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}},87613(e,t,n){n.d(t,{w:()=>r});function r(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}},35892(e,t,n){n.d(t,{r:()=>a});var r=n(36054),i=n(51360);function a(e){function t(t){Object.defineProperty(e,t,{value:r.c})}return i.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},30234(e,t,n){n.d(t,{X:()=>r});function r(e){return e.catch(function(){}),e}},73972(e,t,n){n.d(t,{r:()=>r});var r="3.13.8"},31088(e,t,n){function r(){}n.d(t,{C:()=>i});class i{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},54019(e,t,n){function r(){}n.d(t,{l:()=>s});let i="u">typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},a="u">typeof WeakMap?WeakMap:Map,o="u">typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:r,unregister:r}};class s{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new a,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let n=t.key;delete t.key,t.keyRef=new i(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new o(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},55888(e,t,n){n.r(t),n.d(t,{default:()=>u,equal:()=>s});let{toString:r,hasOwnProperty:i}=Object.prototype,a=Function.prototype.toString,o=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;let o=r.call(t);if(o!==r.call(n))return!1;switch(o){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":{if(d(t,n))return!0;let r=c(t),a=c(n),o=r.length;if(o!==a.length)return!1;for(let e=0;e<o;++e)if(!i.call(n,r[e]))return!1;for(let i=0;i<o;++i){let a=r[i];if(!e(t[a],n[a]))return!1}return!0}case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==`${n}`;case"[object Map]":case"[object Set]":{if(t.size!==n.size)return!1;if(d(t,n))return!0;let r=t.entries(),i="[object Map]"===o;for(;;){let t=r.next();if(t.done)break;let[a,o]=t.value;if(!n.has(a)||i&&!e(o,n.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":{let e=t.byteLength;if(e===n.byteLength)for(;e--&&t[e]===n[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var s,u;let e,r=a.call(t);if(r!==a.call(n))return!1;return s=r,u=f,!((e=s.length-u.length)>=0)||s.indexOf(u,e)!==e}}return!1}(e,t)}finally{o.clear()}}let u=s;function c(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}let f="{ [native code] }";function d(e,t){let n=o.get(e);if(n){if(n.has(t))return!0}else o.set(e,n=new Set);return n.add(t),!1}},44592(e,t,n){n.r(t),n.d(t,{Trie:()=>s});let r=()=>Object.create(null),{forEach:i,slice:a}=Array.prototype,{hasOwnProperty:o}=Object.prototype;class s{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),o.call(t,"data")?t.data:t.data=this.makeData(a.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){let r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(a.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),n=t.get(e);return n||t.set(e,n=new s(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},3420(e,t,n){n.d(t,{MD:()=>i,TZ:()=>function e(t){return s(t)&&(t.kind===r.b.LIST?t.values.some(e):t.kind===r.b.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==r.b.VARIABLE)},VK:()=>o,_m:()=>a,a6:()=>l,aR:()=>s,dI:()=>u,fT:()=>f,gj:()=>p,i7:()=>d,xu:()=>c});var r=n(42455);function i(e){return a(e)||c(e)||f(e)}function a(e){return e.kind===r.b.OPERATION_DEFINITION||e.kind===r.b.FRAGMENT_DEFINITION}function o(e){return e.kind===r.b.FIELD||e.kind===r.b.FRAGMENT_SPREAD||e.kind===r.b.INLINE_FRAGMENT}function s(e){return e.kind===r.b.VARIABLE||e.kind===r.b.INT||e.kind===r.b.FLOAT||e.kind===r.b.STRING||e.kind===r.b.BOOLEAN||e.kind===r.b.NULL||e.kind===r.b.ENUM||e.kind===r.b.LIST||e.kind===r.b.OBJECT}function u(e){return e.kind===r.b.NAMED_TYPE||e.kind===r.b.LIST_TYPE||e.kind===r.b.NON_NULL_TYPE}function c(e){return e.kind===r.b.SCHEMA_DEFINITION||l(e)||e.kind===r.b.DIRECTIVE_DEFINITION}function l(e){return e.kind===r.b.SCALAR_TYPE_DEFINITION||e.kind===r.b.OBJECT_TYPE_DEFINITION||e.kind===r.b.INTERFACE_TYPE_DEFINITION||e.kind===r.b.UNION_TYPE_DEFINITION||e.kind===r.b.ENUM_TYPE_DEFINITION||e.kind===r.b.INPUT_OBJECT_TYPE_DEFINITION}function f(e){return e.kind===r.b.SCHEMA_EXTENSION||d(e)}function d(e){return e.kind===r.b.SCALAR_TYPE_EXTENSION||e.kind===r.b.OBJECT_TYPE_EXTENSION||e.kind===r.b.INTERFACE_TYPE_EXTENSION||e.kind===r.b.UNION_TYPE_EXTENSION||e.kind===r.b.ENUM_TYPE_EXTENSION||e.kind===r.b.INPUT_OBJECT_TYPE_EXTENSION}function p(e){return e.kind===r.b.TYPE_COORDINATE||e.kind===r.b.MEMBER_COORDINATE||e.kind===r.b.ARGUMENT_COORDINATE||e.kind===r.b.DIRECTIVE_COORDINATE||e.kind===r.b.DIRECTIVE_ARGUMENT_COORDINATE}},95818(e,t,n){n.d(t,{y:()=>u});var r=n(67714);let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return o[e.charCodeAt(0)]}let o=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s=n(90424);function u(e){return(0,s.YR)(e,c)}let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=h(e.variableDefinitions)?d("(\n",l(e.variableDefinitions,"\n"),"\n)"):d("(",l(e.variableDefinitions,", "),")"),n=d("",e.description,"\n")+l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>d("",i,"\n")+e+": "+t+d(" = ",n)+d(" ",l(r," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=d("",e,": ")+t,o=a+d("(",l(n,", "),")");return o.length>80&&(o=a+d("(\n",p(l(n,"\n")),"\n)")),l([o,l(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>l(["...",d("on ",e),l(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:a})=>d("",a,"\n")+`fragment ${e}${d("(",l(n,", "),")")} `+`on ${t} ${d("",l(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.yo)(e):`"${e.replace(i,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>d("",e,"\n")+l(["schema",l(t," "),f(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>d("",e,"\n")+l(["scalar",t,l(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>d("",e,"\n")+l(["type",t,d("implements ",l(n," & ")),l(r," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>d("",e,"\n")+t+(h(n)?d("(\n",p(l(n,"\n")),"\n)"):d("(",l(n,", "),")"))+": "+r+d(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>d("",e,"\n")+l([t+": "+n,d("= ",r),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>d("",e,"\n")+l(["interface",t,d("implements ",l(n," & ")),l(r," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>d("",e,"\n")+l(["union",t,l(n," "),d("= ",l(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>d("",e,"\n")+l(["enum",t,l(n," "),f(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>d("",e,"\n")+l([t,l(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>d("",e,"\n")+l(["input",t,l(n," "),f(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>d("",e,"\n")+"directive @"+t+(h(n)?d("(\n",p(l(n,"\n")),"\n)"):d("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend type",e,d("implements ",l(t," & ")),l(n," "),f(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend interface",e,d("implements ",l(t," & ")),l(n," "),f(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>l(["extend union",e,l(t," "),d("= ",l(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>l(["extend enum",e,l(t," "),f(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>l(["extend input",e,l(t," "),f(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>l([e,d(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>l([e,d(".",t),d("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>l(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>l(["@",e,d("(",t,":)")])}};function l(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function f(e){return d("{\n",p(l(e,"\n")),"\n}")}function d(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return d(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}},90424(e,t,n){n.d(t,{UY:()=>f,XO:()=>l,YR:()=>u,oP:()=>c,sP:()=>s});var r=n(93217),i=n(35198),a=n(59762),o=n(42455);let s=Object.freeze({});function u(e,t,n=a.aD){let c,f,d,p=new Map;for(let e of Object.values(o.b))p.set(e,l(t,e));let h=Array.isArray(e),v=[e],y=-1,m=[],g=e,_=[],b=[];do{var E,w,O;let e,o=++y===v.length,u=o&&0!==m.length;if(o){if(f=0===b.length?void 0:_[_.length-1],g=d,d=b.pop(),u)if(h){g=g.slice();let e=0;for(let[t,n]of m){let r=t-e;null===n?(g.splice(r,1),e++):g[r]=n}}else for(let[e,t]of(g={...g},m))g[e]=t;y=c.index,v=c.keys,m=c.edits,h=c.inArray,c=c.prev}else if(d){if(null==(g=d[f=h?y:v[y]]))continue;_.push(f)}if(!Array.isArray(g)){(0,a.Ll)(g)||(0,r.U)(!1,`Invalid AST Node: ${(0,i.N)(g)}.`);let n=o?null==(E=p.get(g.kind))?void 0:E.leave:null==(w=p.get(g.kind))?void 0:w.enter;if((e=null==n?void 0:n.call(t,g,f,d,_,b))===s)break;if(!1===e){if(!o){_.pop();continue}}else if(void 0!==e&&(m.push([f,e]),!o))if((0,a.Ll)(e))g=e;else{_.pop();continue}}void 0===e&&u&&m.push([f,g]),o?_.pop():(c={inArray:h,index:y,keys:v,edits:m,prev:c},v=(h=Array.isArray(g))?g:null!=(O=n[g.kind])?O:[],y=-1,m=[],d&&b.push(d),d=g)}while(void 0!==c);return 0!==m.length?m[m.length-1][1]:e}function c(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(o.b)){let i=!1,a=Array(e.length).fill(void 0),o=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:n,leave:s}=l(e[t],r);i||(i=null!=n||null!=s),a[t]=n,o[t]=s}if(!i)continue;let u={enter(...n){let r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let u=null==(i=a[o])?void 0:i.apply(e[o],n);if(!1===u)t[o]=r;else if(u===s)t[o]=s;else if(void 0!==u)return u}},leave(...n){let r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;let r=null==(i=o[a])?void 0:i.apply(e[a],n);if(r===s)t[a]=s;else if(void 0!==r&&!1!==r)return r}else t[a]===r&&(t[a]=null)}};n[r]=u}return n}function l(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function f(e,t,n){let{enter:r,leave:i}=l(e,t);return n?i:r}},60837(e,t,n){let r;n.r(t),n.d(t,{dep:()=>V,asyncFromGen:()=>y,Slot:()=>d,wrap:()=>q,nonReactive:()=>g,defaultMakeCacheKey:()=>z,bindContext:()=>p,setTimeout:()=>v,KeyTrie:()=>i.Trie,noContext:()=>h});var i=n(44592),a=n(31088);let o=null,s={},u=1;function c(e){try{return e()}catch(e){}}let l="@wry/context:Slot",f=c(()=>globalThis)||c(()=>global)||Object.create(null),d=f[l]||Array[l]||function(e){try{Object.defineProperty(f,l,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",u++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=o;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===s)break;return e!==o&&(o.slots[this.id]=t),!0}return o&&(o.slots[this.id]=s),!1}getValue(){if(this.hasValue())return o.slots[this.id]}withValue(e,t,n,r){let i={__proto__:null,[this.id]:e},a=o;o={parent:a,slots:i};try{return t.apply(r,n)}finally{o=a}}static bind(e){let t=o;return function(){let n=o;try{return o=t,e.apply(this,arguments)}finally{o=n}}}static noContext(e,t,n){if(!o)return e.apply(n,t);{let r=o;try{return o=null,e.apply(n,t)}finally{o=r}}}}),{bind:p,noContext:h}=d;function v(e,t){return setTimeout(p(e),t)}function y(e){return function(){let t=e.apply(this,arguments),n=p(t.next),r=p(t.throw);return new Promise((e,i)=>{function a(n,r){try{var a,u=n.call(t,r)}catch(e){return i(e)}let c=u.done?e:o;(a=u.value)&&"function"==typeof a.then?u.value.then(c,u.done?i:s):c(u.value)}let o=e=>a(n,e),s=e=>a(r,e);o()})}}let m=new d;function g(e){return m.withValue(void 0,e)}let{hasOwnProperty:_}=Object.prototype,b=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function E(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let w=[];function O(e,t){if(!e)throw Error(t||"assertion failure")}function S(e,t){let n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function k(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class T{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++T.count}peek(){if(1===this.value.length&&!j(this))return x(this),this.value[0]}recompute(e){var t,n,r;return O(!this.recomputing,"already recomputing"),x(this),j(this)?(t=this,n=e,F(t),m.withValue(t,A,[t,n]),function(e,t){if("function"==typeof e.subscribe)try{E(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,n)&&((r=t).dirty=!1,j(r)||function(e){I(e,N)}(r)),k(t.value)):k(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,I(e,D),E(this))}dispose(){this.setDirty(),F(this),I(this,(e,t)=>{e.setDirty(),C(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=w.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(b(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),w.push(this.deps),this.deps=null)}}function x(e){let t=m.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),j(e)?D(t,e):N(t,e),t}function A(e,t){let n;e.recomputing=!0;let{normalizeResult:r}=e;r&&1===e.value.length&&(n=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!S(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function j(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}T.count=0;function I(e,t){let n=e.parents.size;if(n){let r=b(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function D(e,t){O(e.childValues.has(t)),O(j(t));let n=!j(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=w.pop()||new Set;e.dirtyChildren.add(t),n&&I(e,D)}function N(e,t){O(e.childValues.has(t)),O(!j(t));let n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):S(n,t.value)||e.setDirty(),R(e,t),j(e)||I(e,N)}function R(e,t){let n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(w.length<100&&w.push(n),e.dirtyChildren=null))}function F(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{C(e,n)}),e.forgetDeps(),O(null===e.dirtyChildren)}function C(e,t){t.parents.delete(e),e.childValues.delete(t),R(e,t)}let M={setDirty:!0,dispose:!0,forget:!0};function V(e){let t=new Map,n=e&&e.subscribe;function r(e){let r=m.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(E(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){let r=t.get(e);if(r){let i=n&&_.call(M,n)?n:"setDirty";b(r).forEach(e=>e[i]()),t.delete(e),E(r)}},r}function z(...e){return(r||(r=new i.Trie("function"==typeof WeakMap))).lookupArray(e)}let P=new Set;function q(e,{max:t=65536,keyArgs:n,makeCacheKey:r=z,normalizeResult:i,subscribe:o,cache:s=a.C}=Object.create(null)){let u="function"==typeof s?new s(t,e=>e.dispose()):s,c=function(){let t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=u.get(t);a||(u.set(t,a=new T(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>u.delete(t));let s=a.recompute(Array.prototype.slice.call(arguments));return u.set(t,a),P.add(u),m.hasValue()||(P.forEach(e=>e.clean()),P.clear()),s};function l(e){let t=e&&u.get(e);t&&t.setDirty()}function f(e){let t=e&&u.get(e);if(t)return t.peek()}function d(e){return!!e&&u.delete(e)}return Object.defineProperty(c,"size",{get:()=>u.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:u}),c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))},c.peekKey=f,c.peek=function(){return f(r.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}},19371(e,t,n){n.r(t),n.d(t,{InvariantError:()=>u,default:()=>h,invariant:()=>c,setVerbosity:()=>p});var r,i=n(85608),a="Invariant Violation",o=Object.setPrototypeOf,s=void 0===o?function(e,t){return e.__proto__=t,e}:o,u=function(e){function t(n){void 0===n&&(n=a);var r=e.call(this,"number"==typeof n?a+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=a,s(r,t.prototype),r}return(0,i.__extends)(t,e),t}(Error);function c(e,t){if(!e)throw new u(t)}var l=["debug","log","warn","error","silent"],f=l.indexOf("log");function d(e){return function(){if(l.indexOf(e)>=f)return(console[e]||console.log).apply(console,arguments)}}function p(e){var t=l[f];return f=Math.max(0,l.indexOf(e)),t}(r=c||(c={})).debug=d("debug"),r.log=d("log"),r.warn=d("warn"),r.error=d("error");let h=c},36054(e,t,n){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{c:()=>w});var o=function(){return"function"==typeof Symbol},s=function(e){return o()&&!!Symbol[e]},u=function(e){return s(e)?Symbol[e]:"@@"+e};o()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function d(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:w}function h(e){h.log?h.log(e):setTimeout(function(){throw e})}function v(e){Promise.resolve().then(function(){try{e()}catch(e){h(e)}})}function y(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=d(t,"unsubscribe");n&&n.call(t)}}catch(e){h(e)}}function m(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,n){e._state="running";var r=e._observer;try{var i=d(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(m(e),i)i.call(r,n);else throw n;break;case"complete":m(e),i&&i.call(r)}}catch(e){h(e)}"closed"===e._state?y(e):"running"===e._state&&(e._state="ready")}function _(e,t,n){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:n});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],v(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(g(e,t[n].type,t[n].value),"closed"!==e._state);++n);}});return}g(e,t,n)}}var b=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new E(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(m(this),y(this))},a(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),E=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){_(this._subscription,"next",e)},t.error=function(e){_(this._subscription,"error",e)},t.complete=function(){_(this._subscription,"complete")},a(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),w=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new b(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"!=typeof e)return void r(TypeError(e+" is not a function"));function i(){a.unsubscribe(),n()}var a=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),a.unsubscribe()}},error:r,complete:n})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(p(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(p(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=p(this),r=arguments.length>1,i=!1,a=arguments[1],o=a;return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=p(this);return new i(function(t){var r,a=0;return!function e(o){r=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):e(i.from(n[a++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=p(this);return new n(function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})},t[l]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=d(t,l);if(i){var a=i.call(t);if(Object(a)!==a)throw TypeError(a+" is not an object");return a instanceof w&&a.constructor===n?a:new n(function(e){return a.subscribe(e)})}if(s("iterator")&&(i=d(t,c)))return new n(function(e){v(function(){if(!e.closed){for(var n,a=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(n=a()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){v(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){v(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},a(e,null,[{key:f,get:function(){return this}}]),e}();o()&&Object.defineProperty(w,Symbol("extensions"),{value:{symbol:l,hostReportError:h},configurable:!0})}};
package/lib/6818.js CHANGED
@@ -1 +1 @@
1
- export const __rspack_esm_id=6818;export const __rspack_esm_ids=[6818];export const __webpack_modules__={53241(e,t,r){r.r(t),r.d(t,{detectChannel:()=>i,detectInstallMethod:()=>o});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},i=({version:e,execPath:t}={})=>{var r=t||process.execPath;return r&&/[\\/]bricks-beta(?:\.exe)?$/i.test(r)||/-(beta|alpha|rc|next)\b/i.test(e||"2.26.0-beta.34")?"beta":"release"},o=({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:r=s.homedir(),realpath:a=l}={})=>{let i;var o=(i=e)?n.basename(i).replace(/\.exe$/i,""):"";if("bricks"===o||"bricks-beta"===o)return{method:"binary",execPath:e,installDir:n.dirname(e)};var c=a(t),p=((e,t)=>{if(!e)return null;var r=n.sep,a=`${r}node_modules${r}${t.replace(/\//g,r)}${r}`,s=e.indexOf(a);return -1===s?null:e.slice(0,s)})(c,"@fugood/bricks-cli");if(p){var b=n.sep,d=n.join(r,".bun","install","global");return p===d||p.startsWith(d+b)?{method:"bun",installRoot:p}:/[\\/](?:\.pnpm|pnpm[\\/]global)[\\/]/.test(p)?{method:"pnpm",installRoot:p}:/[\\/](?:\.yarn|yarn[\\/]global)(?:[\\/]|$)/.test(p)?{method:"yarn",installRoot:p}:{method:"npm",installRoot:p.endsWith(`${b}lib`)?p.slice(0,-`${b}lib`.length):p}}return{method:"unknown",execPath:e,scriptPath:c}}}};
1
+ export const __rspack_esm_id=6818;export const __rspack_esm_ids=[6818];export const __webpack_modules__={53241(e,t,r){r.r(t),r.d(t,{detectChannel:()=>i,detectInstallMethod:()=>o});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},i=({version:e,execPath:t}={})=>{var r=t||process.execPath;return r&&/[\\/]bricks-beta(?:\.exe)?$/i.test(r)||/-(beta|alpha|rc|next)\b/i.test(e||"2.26.0-beta.36")?"beta":"release"},o=({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:r=s.homedir(),realpath:a=l}={})=>{let i;var o=(i=e)?n.basename(i).replace(/\.exe$/i,""):"";if("bricks"===o||"bricks-beta"===o)return{method:"binary",execPath:e,installDir:n.dirname(e)};var c=a(t),p=((e,t)=>{if(!e)return null;var r=n.sep,a=`${r}node_modules${r}${t.replace(/\//g,r)}${r}`,s=e.indexOf(a);return -1===s?null:e.slice(0,s)})(c,"@fugood/bricks-cli");if(p){var b=n.sep,d=n.join(r,".bun","install","global");return p===d||p.startsWith(d+b)?{method:"bun",installRoot:p}:/[\\/](?:\.pnpm|pnpm[\\/]global)[\\/]/.test(p)?{method:"pnpm",installRoot:p}:/[\\/](?:\.yarn|yarn[\\/]global)(?:[\\/]|$)/.test(p)?{method:"yarn",installRoot:p}:{method:"npm",installRoot:p.endsWith(`${b}lib`)?p.slice(0,-`${b}lib`.length):p}}return{method:"unknown",execPath:e,scriptPath:c}}}};
package/lib/7511.js CHANGED
@@ -1,3 +1,3 @@
1
- export const __rspack_esm_id=7511;export const __rspack_esm_ids=[7511];export const __webpack_modules__={66422(e,t){let r=e=>`PROPERTY_BANK_DATA_NODE_${e}`,i={isLocalSyncMainDevice:{id:r("325068e3-89b6-4c6a-942b-126d38c84a62"),title:"SYSTEM: Is Local Sync Main Device",description:"The current device is main for local sync",type:"bool",value:!0},currentCanvasId:{id:r("2dfeb635-deb4-481a-9d17-ea7b1fe19f74"),title:"SYSTEM: Current Canvas ID",description:"ID for known current canvas",type:"string",value:""},previousCanvasId:{id:r("2971e463-0b0e-45b7-bbfb-a01d8fd49db3"),title:"SYSTEM: Previous Canvas ID",description:"ID for known previous canvas",type:"string",value:""},canvasIdHistory:{id:r("1a086f39-817d-40ed-92f0-5a999535d3dd"),title:"SYSTEM: Change Canvas History",description:"Change Canvas ID History (Limit: 10)",type:"array",schema:{type:"string",allowNewItem:!1,allowCustomProperty:!1},value:[]},rootSubspaceInfo:{id:r("c0817f4a-1ff3-40ed-9cbf-71d8cefd2cd9"),title:"SYSTEM: Root Subspace Info",description:"Root Subspace Information",type:"object",value:{}},subspaceInfo:{id:r("2657ec09-7323-46c3-a96e-3d8b5a0f79b3"),title:"SYSTEM: Current Subspace Info",description:"Current Subspace Information",type:"object",value:{}},uniqueID:{id:r("6f4a543f-a88a-4a83-bf53-223259263be3"),title:"SYSTEM: Unique ID",description:"Unique ID of current device",type:"string",value:"unknown"},appVersion:{id:r("d614a258-2a45-4f91-9f6b-3936038cb2b1"),title:"SYSTEM: App Version",description:"App Version of current installed BRICKS Foundation app",type:"string",value:"unknown"},lastUpdateTime:{id:r("956f3b3e-cb0b-47ca-8119-65663910d110"),title:"SYSTEM: Last Update Time",description:"Last update time of current installed BRICKS Foundation app",type:"string",value:"2019-07-09T03:32:27.058Z"},deviceName:{id:r("7b9d9ad4-e9a2-47cd-91d3-b64187895c16"),title:"SYSTEM: Device Name",description:"Name of current device",type:"string",value:"Default Device Name"},deviceType:{id:r("b0beae12-e45e-4870-ae15-858eeac566fa"),title:"SYSTEM: Device Type",description:"Type of current device (Handset, Tv, Tablet)",type:"string",value:"Tv"},operationMode:{id:r("2e715d3b-92bf-4761-b5c0-ca21f7c1ada8"),title:"SYSTEM: Operation Mode",description:"Operation Mode of current device (android, ios, ...)",type:"string",value:"android"},operationVersion:{id:r("fa886963-0a16-4b5f-b4ea-6c25b049db03"),title:"SYSTEM: Operation Version",description:"Operation Version of current device",type:"string",value:""},screenWidth:{id:r("2942470a-c3bc-413e-8f2c-30a89aded3f8"),title:"SYSTEM: Screen Width",description:"Width of current device main screen",type:"number",value:1280},screenHeight:{id:r("4f031e27-f67b-40e0-a317-9f6c5215d97d"),title:"SYSTEM: Screen Height",description:"Height of current device main screen",type:"number",value:768},screenScale:{id:r("c3c9b7aa-1dc1-4be1-8a4a-d9e299b9eeaa"),title:"SYSTEM: Screen Scale",description:"Scale of current device main screen",type:"number",value:2},screenFontScale:{id:r("0312f380-d525-4938-82d2-5b35ef8ef1e8"),title:"SYSTEM: Screen Font Scale",description:"Font scale of current device main screen",type:"number",value:1},orientation:{id:r("4f584f51-a250-4f97-a2f8-d5e6a3affb4f"),title:"SYSTEM: Orientation",description:"Orientation of current device main screen",type:"string",value:"landspace"},touchAvailable:{id:r("1fe7555f-df41-43ce-a268-3ea1b5efda6d"),title:"SYSTEM: Touch Available",description:"Is touch available of current device main screen?",type:"bool",value:!0},soundAvailable:{id:r("bf839498-f7d6-4212-ac3a-b409e3ad77a5"),title:"SYSTEM: Sound Available",description:"Is sound available of current device?",type:"bool",value:!0},cameraAvailable:{id:r("4878f3c2-8bb8-4c94-855c-06bda5a287d5"),title:"SYSTEM: Camera Available",description:"Is camera available of current device?",type:"bool",value:!0},audioInputAvailable:{id:r("4854b259-96c1-40d7-b17b-47156b4698dc"),title:"SYSTEM: Audio Input Available",description:"Is audio input available of current device?",type:"bool",value:!1},networkType:{id:r("1cbb1756-e53c-45a9-be23-5d84a214e144"),title:"SYSTEM: Network Type",description:"Network Type of current device",type:"string",value:"wifi"},networkConnected:{id:r("687b62fe-ead5-417a-b415-9bd5233784a4"),title:"SYSTEM: Network Connected",description:"Is Network connected of current device?",type:"bool",value:!0},networkIpAddress:{id:r("41971ba7-8294-4aa6-a425-ecd39853c3e6"),title:"SYSTEM: Network IP Address",description:"Current network IP address",type:"string",value:""},networkDetails:{id:r("9351fbfc-4ace-477a-b05d-41ac9b05087d"),title:"SYSTEM: Network Details",description:"Network details, provide different data depends on Network Type",type:"object",value:null},isInternetReachable:{id:r("e367ae7e-46ec-46d0-b87d-51e544591ff9"),title:"SYSTEM: Internet Reachable",description:"Is Internet reachable?",type:"bool",value:!0},isWifiEnabled:{id:r("be395305-fb85-4d05-8506-22a4ae8c7b9e"),title:"SYSTEM: Wifi Enabled",description:"Is WiFi enabled?",type:"bool",value:!0},deviceDisplayName:{id:r("76356a9a-fc46-11ec-9905-db53d6811cb7"),title:"SYSTEM: Device Display Name",description:"Current device display name",type:"string",value:""},workspaceName:{id:r("d857125e-0401-40f1-b768-56190aa8e147"),title:"SYSTEM: Workspace Name",description:"Current workspace name",type:"string",value:""},applicationInfo:{id:r("935d3322-84aa-4465-b1e7-241d1f024267"),title:"SYSTEM: Application Info",description:"Current application info",type:"object",value:{}},applicationName:{id:r("df395fd6-a754-4b60-8bac-1360933e6707"),title:"SYSTEM: Application Name",description:"Current application name",type:"string",value:""},deviceID:{id:r("8b5c2d9e-f0a1-4b2c-8d3e-4f5a6b7c8d9e"),title:"SYSTEM: Device ID",description:"Device ID of current device",type:"string",value:"unknown"},macAddress:{id:r("f01fcc78-0723-11ed-ac00-877339de1030"),title:"SYSTEM: MAC Address",description:"Network adapter MAC address of current device",type:"string",value:""},bindDeviceCode:{id:r("1ca90262-3584-11ed-8c9a-174949844872"),title:"SYSTEM: Bind Device Code",description:"The passcode to bind the device",type:"string",value:"",hide:!0},bindDeviceCodeExpire:{id:r("5b52d204-3584-11ed-bb5e-abb4d270daf1"),title:"SYSTEM: Bind Device Code Expire Time",description:"The expire time of bind passcode",type:"string",value:"",hide:!0},bindDeviceUrl:{id:r("833a7db2-3584-11ed-88dd-3b3d3ff58855"),title:"SYSTEM: Bind Device URL",description:"The URL to bind the device",type:"string",value:"",hide:!0},bindDeviceUseApplication:{id:r("631bbce8-9c90-4590-b8ec-8b27f4a0e50b"),title:"SYSTEM: Selected Application on Bind Device",description:"Current selected use application info on Bind Device",type:"object",value:null,hide:!0},isApplicationPreview:{id:r("c673967a-3996-11ed-96d9-efbc3f7eac53"),title:"SYSTEM: Is Preview Mode",description:"Is current in preview mode?",type:"bool",value:"",hide:!0},isSupportAuthInDevice:{id:r("beb2a666-3e18-11ed-bdab-6f0cb082fa67"),title:"SYSTEM: Is Support Auth In Device",description:"Is current device support auth in device?",type:"bool",value:"",hide:!0},env:{id:r("74e7a574-1099-4fe5-b193-8a9ea7d20ed0"),title:"SYSTEM: Environment Variables",description:"Environment Variables of the device",type:"object",value:{}},isViewDebugModeEnabled:{id:r("3f61c4f6-1e02-492e-8e4c-a8dc4a5bc101"),title:"SYSTEM: Is View Debug mode Enabled",description:"Is View Debug mode enabled?",type:"bool",value:!1},language:{id:r("f0ed0a03-6195-459f-9ffe-bca61923f94e"),title:"SYSTEM: Language",description:"Language of the device",type:"string",value:""},aiFilters:{id:r("3ffc1e98-8f65-4cc8-a949-3da8d2092ccb"),title:"SYSTEM: AI Filters",description:"AI filters configuration from the application",type:"array",value:[]},systemOpenAIApiKey:{id:r("a1b2c3d4-5e6f-7890-abcd-ef1234567890"),title:"SYSTEM: OpenAI API Key",description:"System OpenAI API Key (only available if application enabled)",type:"string",value:""},systemAnthropicApiKey:{id:r("b2c3d4e5-6f78-9012-bcde-f23456789012"),title:"SYSTEM: Anthropic API Key",description:"System Anthropic API Key (only available if application enabled)",type:"string",value:""},systemGeminiApiKey:{id:r("c3d4e5f6-7890-1234-cdef-345678901234"),title:"SYSTEM: Gemini API Key",description:"System Gemini API Key (only available if application enabled)",type:"string",value:""},ggmlBackendDevices:{id:r("9e8f7a6b-5c4d-3e2f-1a0b-9c8d7e6f5a4b"),title:"SYSTEM: GGML Backend Devices",description:"Available GGML backend devices with supported generators",type:"array",schema:{type:"object",allowNewItem:!1,allowCustomProperty:!1},value:[]}};t.idMap=Object.entries(i).reduce((e,[t,r])=>(e[t]=r.id,e),{}),Object.fromEntries(Object.entries(t.idMap).map(([e,t])=>[t,e])),t.MI=Object.entries(i).reduce((e,[t,r])=>{let{id:i,...a}=r;return e[t]=a,e},{}),Object.keys(t.MI)},18501(e,t,r){let{docs:i}=r(5867);t.isCommand=e=>!!(e&&e.type&&e.type.startsWith("command-node-")),t.isScriptCommand=e=>!!e&&"command-node-script"===e.type,t.getPorts=e=>e?Array.isArray(e)?e:[e]:[];let a=e=>i[e.type.replace("command-node-","")]?.commands?.[e.properties?.command];t.getCommandDoc=a,t.getCommandCallbackFromPort=(e,r)=>{let i=e[r];if(!t.isCommand(i))return null;let n=a(i);return n?.iterateeFrom||n?.invocationFrom||null};let n=e=>t.getPorts(e).some(e=>e?.disable_trigger_command);t.checkDisableTriggerCommand=(e,t)=>n(e[t.id]?.in?.[t.port]),t.findCircularReferenceIds=e=>{let r,i,a=(r=new Map,i=new Map,Object.keys(e).reduce((a,s)=>{let o=[];return Object.values(e[s]?.out||{}).forEach(a=>{t.getPorts(a).forEach(a=>{((e,r,i,a)=>{var s;if(!r||!e[r.id]||r.port===(s=r.id,i.has(s)||i.set(s,t.getCommandCallbackFromPort(e,s)),i.get(s)))return!1;let o=e[r.id]?.in?.[r.port];return!Array.isArray(o)||o.length<2?!n(o):(a.has(o)||a.set(o,n(o)),!a.get(o))})(e,a,r,i)&&o.push(a.id)})}),a[s]=o,a},{})),s=new Map;return Object.keys(e).filter(t=>e[t]?.type==="data-node").filter(e=>((e,t,r)=>{if(r.has(e))return r.get(e);let i=[{id:e,edgeIndex:0,reachesCycle:!1}],a=new Set([e]);for(;i.length>0;){let e=i[i.length-1],n=t[e.id]||[];if(e.reachesCycle||e.edgeIndex>=n.length){a.delete(e.id),r.set(e.id,e.reachesCycle),i.pop(),e.reachesCycle&&i.length>0&&(i[i.length-1].reachesCycle=!0);continue}let s=n[e.edgeIndex];if(e.edgeIndex+=1,r.has(s)){r.get(s)&&(e.reachesCycle=!0);continue}if(a.has(s)){e.reachesCycle=!0;continue}a.add(s),i.push({id:s,edgeIndex:0,reachesCycle:!1})}return r.get(e)||!1})(e,a,s))},t.hasCircularReference=e=>t.findCircularReferenceIds(e).length>0;let s=(e={})=>Object.entries(e).reduce((e,[t,r])=>(e[t]=Array.isArray(r)?r.slice():r,e),{}),o=new WeakSet,c=(e,t,r)=>{if(!r)return;let i=((e,t)=>{let r=e[t];if(!r)return e[t]=[],e[t];if(!Array.isArray(r))return e[t]=[r],e[t];if(!o.has(r)){let e=0;for(let t of r)t&&(r[e]=t,e+=1);r.length=e,o.add(r)}return r})(e,t);(Array.isArray(r)?r:[r]).forEach(e=>{e&&i.push(e)})};t.getCalcMap=e=>e?.script_map||e?.scriptMap||e?.map||{},t.composeMap=e=>Object.values(e).reduce((e,r)=>Object.entries(t.getCalcMap(r)).reduce((e,[r,i])=>{if(e[r]){if(t.isCommand(i))throw Error(`Doesn't allow same command id in another map, ${r}`);let a=e[r];Object.keys(i?.in||{}).forEach(e=>{c(a.in,e,i.in[e])}),Object.keys(i?.out||{}).forEach(e=>{c(a.out,e,i.out[e])})}else e[r]={...i,in:s(i?.in),out:s(i?.out)};return e},e),{}),t.isInputTriggerPort=(e,r)=>t.getPorts(r).some(r=>{let i;return r&&(i=e[r.id],i?.type==="data-node"&&!Object.values(i.in||{}).some(e=>t.getPorts(e).length>0))});let l=(e,r)=>Object.entries(e||{}).forEach(([i,a])=>{t.isCommand(a)&&Object.entries(a.in||{}).forEach(([a,n])=>{t.isInputTriggerPort(e,n)&&r(i,a,t.getPorts(n))})}),d=(e,r,i,a)=>{let n=e[r],s=t.getPorts(n.in[i]).map(e=>{if(!e)return e;let{disable_trigger_command:t,...r}=e;return a?{...r,disable_trigger_command:!0}:r});return{...e,[r]:{...n,in:{...n.in,[i]:s}}}};t.getDisabledInputTriggers=e=>{let t={};return l(e,(e,r,i)=>{i.some(e=>e?.disable_trigger_command)&&(t[e]={...t[e],[r]:!0})}),t},t.disableInputTriggers=e=>{let t=e;return l(e,(e,r,i)=>{i.every(e=>!e||e.disable_trigger_command)||(t=d(t,e,r,!0))}),t},t.restoreInputTriggers=(e,t={})=>{let r=e;return l(e,(e,i,a)=>{let n=!!t[e]?.[i];a.every(e=>!e||!!e.disable_trigger_command===n)||(r=d(r,e,i,n))}),r}},86343(e,t,r){let{v4:i}=r(45620),a=r(95479),n=r(56005),{nameMap:s,brickMapping:o,generatorMapping:c}=r(63981);t.idByItem=(e={})=>e.canvas_id||e.subspace_id||e.brick_id||e.generator_id||e.property_bank_id||e.property_bank_calc_id||e.bank_id||e.scene_id,t.getAnimationType=e=>e.type||e.compose_type||e.composeType,t.cleanUpAnimationMap=e=>Object.entries(e).reduce((e,[t,r])=>((r.type||r.compose_type)&&(e[t]=r),e),{}),t.matchItemByItem=(e,t)=>{let r;if(!e)return!1;switch("string"==typeof t&&(r=t),e.type){case"brick":return e.brick_id===(r||t.brick_id);case"subspace":return e.subspace_id===(r||t.subspace_id);case"canvas":return e.canvas_id===(r||t.canvas_id);case"generator":return e.generator_id===(r||t.generator_id);case"property_bank":return e.property_bank_id===(r||t.property_bank_id);default:return!1}},t.makePasscode=()=>i(),t.kindOneOfTypes={string:["color","datetime","id","graphql","rich-text-content","sandbox-script","llm-prompt","media-resource-image","media-resource-video","media-resource-audio","media-resource-file","lottie-file-uri","rive-file-uri","ggml-model-asset","gguf-model-asset","mlx-model-asset","binary-asset","scene3d-objects"],number:["unit"],object:["tts-speaker-config"],"array-object":["llm-tools","llm-messages","mcp-server-resources","mcp-server-tools","mcp-server-prompts"]},t.getKindOneOfTypes=(e,r)=>"array"===e?"object"===r?t.kindOneOfTypes[`${e}-${r}`]:void 0:t.kindOneOfTypes[e],t.unitOneOfTypes=["grid","px","ms"],t.idOneOfTypes=["canvas","brick","generator","animation","property_bank"],t.typeToName={brick:"Brick",generator:"Generator",subspace:"Subspace",canvas:"Canvas",animation:"Animation",property_bank:"Data",property_bank_calc:"Calculation"},t.getBrickName=(e,r,i)=>{let n;if(!r)return e.toUpperCase();if(r.title)return r.title;switch(e){case"bank":n="BANK";break;case"subspace":n="SUBSPACE";break;case"canvas":n="CANVAS";break;case"animation":n=`<${a(t.getAnimationType(r))}>`;break;case"property_bank":n="<Data>";break;case"property_bank_calc":n="<Map>";break;case"state_group":n="<Switch Case>";break;default:n=`<${s[r.template_key||r.templateKey]||"Unknown"}>`}return i&&i.length>10?n+=` (${i.replace(/[A-Z_]+/g,"").substr(0,6)}...)`:i&&(n+=` (${i})`),n},t.getEventLabel=(e,{templateKey:t,itemType:r}={})=>{if(!e)return"";let i=e;return"subspace"===r?i=e.replace("SUBSPACE_ACTION_",""):t&&(i=e.replace(`${t}_`,"").replace("CANVAS_","")),a(n(a(i)))},t.getCallInternalActions=e=>{let t=o[e]||c[e];if(t)return t.callInternalActions},t.mapToList=(e,r)=>Object.entries(r).reduce((r,[i,a])=>(r.push({id:i,...a,title:t.getBrickName(e,a,i)}),r),[]);let l={subspaceMap:"subspace",brickMap:"brick",generatorMap:"generator",propertyBankMap:"property_bank",propertyAvailableToAdd:"property_bank",canvasMap:"canvas",animationMap:"animation"},d={};t.mapToListForDerivedState=(e,r,i,a)=>{let n=i[e]||d;return n!==a[e]?{[e]:n,[r]:t.mapToList(l[e],n)}:{}},t.arrayTypePrefix="array of ",t.propertyBankTypes=["string","number","bool","object","any",`${t.arrayTypePrefix}string`,`${t.arrayTypePrefix}number`,`${t.arrayTypePrefix}bool`,`${t.arrayTypePrefix}object`],t.animationRunTypes=["once","loop"],t.stopPropagationOnKeyBackspace=e=>{8===e.keyCode&&e.stopPropagation()},t.nestedTypes=["object","array","any"],t.isPropertyBankTypeNested=e=>t.nestedTypes.includes(e),t.propertyTypeToSchema=e=>{let r=e.indexOf(t.arrayTypePrefix)>-1,i=e.replace(t.arrayTypePrefix,"");return{type:i,properties:"object"===i?{}:void 0,allowNewItem:r,allowCustomProperty:"object"===i}}},33770(e,t,r){let{idMap:i}=r(66422),{forEachEventAction:a,getActionParam:n}=r(78078),s="PROPERTY_BANK_DATA_NODE_",o=new Set(Object.values(i||{}).filter(e=>"string"==typeof e&&e.startsWith(s)));e.exports=function(e){let t,r,i=[],c=(t=new Set(o),Object.values(e.subspace_map||{}).forEach(e=>{e&&"object"==typeof e&&Object.keys(e.property_bank_map||{}).forEach(e=>t.add(e))}),t),l=(r=new Set,Object.values(e.subspace_map||{}).forEach(e=>{e&&"object"==typeof e&&Object.keys(e.canvas_map||{}).forEach(e=>r.add(e))}),r);return a(e,(e,t)=>{if("PROPERTY_BANK_EXPRESSION"===e.action){let r;Array.isArray(r=n(e,"VARIABLES"))&&r.forEach((e,r)=>{let a=e?.id;if("string"!=typeof a||!a.startsWith(s)||c.has(a))return;let n=e.key?`\`${e.key}\``:`at index ${r}`;i.push({field:`${t}.VARIABLES[${r}].id`,message:`PROPERTY_BANK_EXPRESSION variable ${n} references data node \`${a}\`, which is not defined in any subspace.`})})}else"CHANGE_CANVAS"===e.action&&((e,t,r,i)=>{if("SYSTEM"!==e.handler)return;let a=n(e,"CANVAS_ID");"string"!=typeof a||!a||a.startsWith("PROPERTY_BANK#")||a.startsWith("VARIABLE#")||!a.startsWith("CANVAS_")||r.has(a)||i.push({field:`${t}.CANVAS_ID`,message:`CHANGE_CANVAS references canvas \`${a}\`, which is not defined in any subspace.`})})(e,t,l,i)}),i}},37517(e,t,r){let{composeMap:i,findCircularReferenceIds:a}=r(18501);e.exports=function(e){let t=[];return Object.entries(e.subspace_map||{}).forEach(([e,r])=>{if(!r||"object"!=typeof r||r.module?.link)return;let n=r.property_bank_calc_map;if(!n||0===Object.keys(n).length)return;let s=`subspace_map.${e}.property_bank_calc_map`;try{let e=i(n),r=a(e);if(r.length>0){let i=r.slice(0,5).map(t=>e[t].title||t),a=r.length>5?` and ${r.length-5} more`:"";t.push({field:s,message:`Circular reference detected in data calculation. Affected nodes: ${i.join(", ")}${a}. Please check the data connections for loops.`})}}catch(e){t.push({field:s,message:e.message})}}),t}},41900(e){let t=e=>{if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some(t);if("FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type)return!1;if("AssignmentExpression"===e.type&&e.left?.type!=="Identifier"||"UpdateExpression"===e.type&&e.argument?.type!=="Identifier")return!0;for(let r of Object.keys(e))if("type"!==r&&t(e[r]))return!0;return!1};e.exports={expressionFoldAcornOptions:{ecmaVersion:2022,allowReturnOutsideFunction:!0,allowAwaitOutsideFunction:!0},getUnfoldableStatementDescription:(e,r=null)=>{for(let r=0;r<e.length;r+=1){let i=e[r];if(t(i))return"a write to a member or computed target";if("ExpressionStatement"!==i.type){if("VariableDeclaration"===i.type){if(i.declarations.some(e=>"Identifier"!==e.id.type||!e.init))return"a variable declaration with destructuring or no initializer";continue}if(r!==e.length-1||"ReturnStatement"!==i.type)return`an unsupported ${i.type}`}}return r},writesToNonIdentifierTarget:t}},78078(e,t,r){let{parse:i}=r(89236),{expressionFoldAcornOptions:a}=r(41900),n=(e,t)=>{let r=e.parameter_list||e.parameterList||[];if(!Array.isArray(r))return;let i=r.find(e=>(e?.input_to_receiver||e?.inputToReceiver)===t);return i?i.result_from_sender??i.resultFromSender:void 0},s=(e,t,r)=>{if(e&&"object"==typeof e){if(Array.isArray(e))return void e.forEach((e,i)=>s(e,`${t}[${i}]`,r));Object.entries(e).forEach(([e,i])=>{("event_map"===e||"eventMap"===e)&&i&&"object"==typeof i?Object.entries(i).forEach(([i,a])=>{Array.isArray(a)&&a.forEach((a,n)=>{a&&"object"==typeof a&&r(a,`${t}.${e}.${i}[${n}]`)})}):i&&"object"==typeof i&&s(i,`${t}.${e}`,r)})}},o=(e,t)=>{Object.entries(e.subspace_map||{}).forEach(([e,r])=>{!r||"object"!=typeof r||r.module?.link||s(r,`subspace_map.${e}`,t)})};e.exports=function(e){let t=[];return o(e,(e,r)=>{if("PROPERTY_BANK_EXPRESSION"!==e.action)return;let s=n(e,"EXPRESSION");if("string"!=typeof s||s.startsWith("PROPERTY_BANK#"))return;let o=(e=>{if(!e.trim())return"Expression is empty";try{i(e,a)}catch(e){return`Expression does not parse: ${e.message}`}return null})(s);o&&t.push({field:r,message:o})}),t},e.exports.forEachEventAction=o,e.exports.getActionParam=n},38890(e,t,r){let{getDocByTemplateKey:i}=r(63981),a=r(80211),n=r(45907),s=r(37517),o=r(78078),c=r(33770),l=r(69516),{lintConfig:d,lintRuleCodes:p}=r(9098),{getBrickName:u}=r(86343);t.lintConfig=d,t.lintRuleCodes=p;let f=(e,t,r,i)=>({id:e,name:"Used Deprecated Feature",data:`The \`${u("brick",t,e)}\` brick in \`${u("subspace",r,i)}\` have been deprecated, it may not work in the future, please consider to remove it. If you can't see the item, please enable \`Show Deprecated Features\` in setting.`});t.checkConfigDeprecatedFeatures=e=>{let t=[];return Object.entries(e.subspace_map||{}).forEach(([e,r])=>{r&&"object"==typeof r&&(Object.entries(r.brick_map||{}).forEach(([a,n])=>{(void 0!==n.property?.borderLeftWidth||void 0!==n.property?.borderRightWidth||void 0!==n.property?.borderTopWidth||void 0!==n.property?.borderBottomWidth)&&t.push({id:a,name:"Used Deprecated Feature",data:`In v2.16, we have been changed \`Border Width\` to \`Border Size\` (Unit \`px\` to \`grid\`). The \`${u("brick",n,a)}\` brick still used the border width. Please re-edit it to transfer to the new unit.`});let s=i(n.template_key);s?.brickMeta?.deprecated&&t.push(f(a,n,r,e))}),Object.entries(r.generator_map||{}).forEach(([a,n])=>{let s=i(n.template_key);s?.brickMeta?.deprecated&&t.push(f(a,n,r,e))}))}),t};let m=({instancePath:e,field:t,message:r})=>{let i=e||t;return i?`${i}: ${r}`:`${r??""}`};t.checkConfig=(e,t={})=>{let r={schema:a(e),ref:n(e,t),calc:t.checkCalc?s(e):[],expression:t.checkExpressions?o(e):[],actionRef:t.checkActionRefs?c(e):[],itemsEventMap:t.checkItemsEventMaps?l(e):[]};return r.valid=0===r.schema.length&&0===r.ref.length&&0===r.calc.length&&0===r.expression.length&&0===r.actionRef.length&&0===r.itemsEventMap.length,r.message=(e=>{let t="",r=0;for(let i of e){let e=0===r?i:`${t}
2
- ${i}`;if(e.length>65504){0===r&&(t=`${i.slice(0,65503)}…`,r=1);break}t=e,r+=1}let i=e.length-r;return i>0?`${t}
3
- …and ${i} more`:t})(r.schema.concat(r.ref).concat(r.calc).concat(r.expression).concat(r.actionRef).concat(r.itemsEventMap).map(m)),r}},69516(e,t,r){let i=r(80211),{templateSupportInnerRefs:a}=r(30302);e.exports=function(e){let t=[],r=i.ajv.getSchema("http://display.bricks.tools/event_map_camel.schema.json5");return Object.entries(e.subspace_map||{}).forEach(([e,i])=>{!i||"object"!=typeof i||i.module?.link||Object.entries(i.brick_map||{}).forEach(([i,n])=>{let s=a.find(e=>e.key===n?.template_key);s&&n.property&&s.listProps.forEach(a=>{let s=n.property[a];Array.isArray(s)&&s.forEach((n,s)=>{if(!n||"object"!=typeof n)return;let o=`subspace_map.${e}.brick_map.${i}.property.${a}[${s}]`;"event_map"in n&&t.push({field:`${o}.event_map`,message:"items-list entries store their event map in camelCase as `eventMap`; this snake_case `event_map` key is never read by the runtime or the editor (dead data, typically left by an old Short Edit write) — remove it."}),void 0!==n.eventMap&&null!==n.eventMap&&(r(n.eventMap)||r.errors.forEach(e=>{t.push({field:`${o}.eventMap${e.instancePath.split("/").filter(Boolean).map(e=>/^\d+$/.test(e)?`[${e}]`:`.${e}`).join("")}`,message:e.message})}))})})})}),t}},27899(e){let t=["x","y","width","height"],r=e=>"string"==typeof e&&e.startsWith("PROPERTY_BANK_"),i=/PROPERTY_BANK#(PROPERTY_BANK_[A-Za-z0-9_-]+)/g,a=/(?:BRICK|ANIMATION|SUBSPACE)_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/g,n=(e,t=new Set)=>{if("string"==typeof e){let r;for(i.lastIndex=0;r=i.exec(e);)t.add(r[1])}else Array.isArray(e)?e.forEach(e=>n(e,t)):e&&"object"==typeof e&&(r(e.id)&&t.add(e.id),Object.values(e).forEach(e=>n(e,t)));return t},s=(e,t)=>{if("string"==typeof e){let r;for(a.lastIndex=0;r=a.exec(e);)t.add(r[0])}else Array.isArray(e)?e.forEach(e=>s(e,t)):e&&"object"==typeof e&&Object.values(e).forEach(e=>s(e,t));return t},o=(e,t)=>{Object.entries(e.subspace_map||{}).forEach(([e,r])=>{!r||"object"!=typeof r||r.module?.link||t(e,r)})},c=(e,t)=>{o(e,(e,r)=>{Object.entries(r.canvas_map||{}).forEach(([i,a])=>{let n=Array.isArray(a?.item_list)?a.item_list:[];t({subspaceId:e,subspace:r,canvasId:i,canvas:a,items:n})})})},l=[["brick_map","brick"],["generator_map","generator"],["property_bank_map","property_bank"],["canvas_map","canvas"]],d=(e,t,r)=>{l.forEach(([i,a])=>{Object.entries(t[i]||{}).forEach(([t,n])=>{Object.entries(n?.event_map||{}).forEach(([n,s])=>{Array.isArray(s)&&r({ownerType:a,ownerId:t,eventKey:n,list:s,path:`subspace_map.${e}.${i}.${t}.event_map.${n}`})})})})},p=(e,t)=>{o(e,(e,r)=>{d(e,r,i=>{i.list.forEach((a,n)=>{t({subspaceId:e,subspace:r,...i,entry:a,index:n})})})})},u=(e,t)=>(e.parameter_list||[]).find(e=>e?.input_to_receiver===t)?.result_from_sender;e.exports={FRAME_KEYS:t,isBankNodeId:r,collectBankReads:n,forEachSubspace:o,forEachCanvas:c,forEachCanvasItem:(e,t)=>{c(e,e=>{e.items.forEach((r,i)=>{t({...e,item:r,index:i})})})},forEachEventList:d,forEachEventEntry:p,getParamValue:u,hasParamValue:(e,t)=>{let r=u(e,t);return null!=r&&""!==r},collectDynamicallyReferencedIds:e=>{let t=new Set;return p(e,({entry:e})=>{s(e?.parameter_list,t)}),s(e.automation_map,t),s(e.test_map,t),t},frameIsNumeric:e=>!!e&&t.every(t=>"number"==typeof e[t]),framesAlmostEqual:(e,r,i=.01)=>t.every(t=>Math.abs(e[t]-r[t])<=i),frameContains:(e,t,r=.01)=>e.x<=t.x+r&&e.y<=t.y+r&&e.x+e.width>=t.x+t.width-r&&e.y+e.height>=t.y+t.height-r,framesIntersect:(e,t)=>!(e.x+e.width<=t.x||t.x+t.width<=e.x||e.y+e.height<=t.y||t.y+t.height<=e.y),getItemId:e=>e?.brick_id||e?.subspace_id||null,itemHasAnimations:e=>!!e?.animations&&Object.keys(e.animations).length>0}},9098(e,t,r){let{collectDynamicallyReferencedIds:i}=r(27899),a=[r(98632),r(84223),r(92260),r(96810),r(60760),r(40566),r(31172),r(59707),r(39425),r(78899)],n=a.map(e=>e.code),s=e=>Array.isArray(e)?e:"string"==typeof e&&e?e.split(",").map(e=>e.trim()).filter(Boolean):null;e.exports={lintConfig:(e,t={})=>{let r,o=s(t.only),c=s(t.ignore),l=[...o||[],...c||[]].filter(e=>!n.includes(e));if(l.length>0)throw Error(`Unknown lint rule code(s): ${l.join(", ")}. Valid codes: ${n.join(", ")}`);if(!e||"object"!=typeof e)return[];let d=a.filter(e=>(!o||o.includes(e.code))&&(!c||!c.includes(e.code)));if(0===d.length)return[];let p={configType:"module"===t.configType?"module":"app",gridStep:"number"==typeof t.gridStep&&t.gridStep>0?t.gridStep:.5,get dynamicRefIds(){return r||(r=i(e)),r}},u=[];return d.forEach(t=>{try{t.check(e,p,e=>u.push({severity:t.severity,code:t.code,path:"",subspaceId:null,itemId:null,hint:null,...e}))}catch(e){u.push({severity:"warning",code:t.code,path:"",subspaceId:null,itemId:null,message:`Lint rule crashed: ${e.message}`,hint:null})}}),u},lintRuleCodes:n}},98632(e,t,r){let{composeMap:i}=r(18501),{forEachSubspace:a,forEachEventList:n,collectBankReads:s,isBankNodeId:o,getParamValue:c}=r(27899),l=(e,t)=>t.map(t=>c(e,t)).filter(o),d={PROPERTY_BANK:{waitable:!0,targets:e=>(e.parameter_list||[]).map(e=>e?.input_to_receiver).filter(o)},PROPERTY_BANK_EXPRESSION:{waitable:!0,targets:e=>l(e,["RESULT","ERROR_RESULT"])},PROPERTY_BANK_COMMAND:{waitable:!0,targets:(e,t)=>((e,t)=>{let r=t();if(!r)return[];let i=[],a=new Set,n=(e.parameter_list||[]).map(e=>e?.input_to_receiver).filter(o);for(let e=0;e<n.length;e+=1){let t=n[e];if(a.has(t))continue;a.add(t);let s=r[t];s&&Object.values(s.out||{}).forEach(e=>{(e||[]).forEach(e=>{e?.id&&(e.id.includes("DATA_NODE")&&i.push(e.id),n.push(e.id))})})}return i})(e,t)},STORAGE_RETRIEVE:{waitable:!0,targets:e=>l(e,["STORAGE_RETRIEVE_RESULT"])},OPEN_FILE:{waitable:!0,targets:e=>l(e,["SAVE_PROPERTY","SAVE_DETAIL_PROPERTY","ERROR_SAVE_PROPERTY"])},SAVE_UPDATE_SNAPSHOT:{waitable:!0,targets:e=>l(e,["SNAPSHOT_SAVE_RESULT","SNAPSHOT_ERROR_RESULT"])},TRIGGER_APPLICATION_FILTER:{waitable:!0,targets:e=>l(e,["RESULT","ERROR_RESULT"])},TAKE_SCREENSHOT:{waitable:!1,targets:e=>l(e,["TAKE_SCREENSHOT_SAVE_PROPERTY"])}},p=/(^|_)RESULT$|_SAVE_PROPERTY$/;e.exports={code:"data-update-race",severity:"warning",description:"A data node is written without wait_async and read by a later action in the same event",check(e,t,r){a(e,(e,t)=>{let a,c=()=>{if(void 0===a)try{a=i(t.property_bank_calc_map||{})}catch{a=null}return a};n(e,t,({path:t,list:i})=>{let a=new Map;i.forEach((i,n)=>{if(!i||"object"!=typeof i)return;if("SYSTEM"===i.handler&&"DELAY"===i.action)return void a.clear();let l=new Set;(i.parameter_list||[]).forEach(e=>s(e?.result_from_sender,l)),l.forEach(s=>{let o=a.get(s);o&&(r({path:`${t}.${n}`,subspaceId:e,itemId:s,message:`\`${s}\` is written by action #${o.index} (${o.action}) without waiting, then read by action #${n} (${i.action}) — the read can still see the previous value.`,hint:o.waitable?`Set \`wait_async: true\` on action #${o.index} (${o.action}).`:`${o.action} ignores \`wait_async\` for its data write — insert a SYSTEM DELAY action between the two, or move the read into the data node's value-change event.`}),a.delete(s))});let u=((e,t)=>{if("SYSTEM"===e.handler){let r=d[e.action];if(!r)return null;let i=r.targets(e,t);return i.length>0?{targets:i,waitable:r.waitable}:null}let r=(e.parameter_list||[]).filter(e=>"string"==typeof e?.input_to_receiver&&p.test(e.input_to_receiver)&&o(e.result_from_sender)).map(e=>e.result_from_sender);return r.length>0?{targets:r,waitable:!0}:null})(i,c);if(!u)return;let f=!0===i.wait_async&&u.waitable;u.targets.forEach(e=>{f?a.delete(e):a.set(e,{index:n,action:i.action,waitable:u.waitable})})})})})}}},39425(e,t,r){let{forEachEventEntry:i,getParamValue:a}=r(27899),n=new Set(["Math","Date","Object","Array","Number","String","Boolean","JSON","RegExp","Intl","isNaN","isFinite","parseInt","parseFloat","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","NaN","Infinity","undefined"]);e.exports={code:"expression-global-variable",severity:"error",description:"A PROPERTY_BANK_EXPRESSION variable is named after a JS global and is silently ignored at runtime",check(e,t,r){i(e,({subspaceId:e,path:t,entry:i,index:s})=>{if(i?.handler!=="SYSTEM"||"PROPERTY_BANK_EXPRESSION"!==i.action)return;let o=a(i,"VARIABLES");Array.isArray(o)&&o.forEach(i=>{let a=i?.key;"string"==typeof a&&n.has(a)&&r({path:`${t}.${s}`,subspaceId:e,itemId:null,message:`Expression variable "${a}" is named after the JS global \`${a}\` and is silently ignored — the global takes precedence in the expression scope, so the bound value is never used.`,hint:`Rename the variable (e.g. "${a}Value") so the expression reads the bound value.`})})})}}},78899(e,t,r){let{forEachEventEntry:i}=r(27899),a=/^(?:SUBSPACE|BRICK|GENERATOR|CANVAS|DATA)_[A-Z0-9_]+$/,n=/^PROPERTY_BANK#/;e.exports={code:"mapping-outside-items",severity:"warning",description:"An event action outside BRICK_ITEMS sets result_data_mapping (ctor `mapping`) on a value the runtime will write verbatim",check(e,t,r){i(e,({subspaceId:e,subspace:t,ownerType:i,ownerId:s,path:o,entry:c,index:l})=>{let d=c?.parameter_list;if(!Array.isArray(d))return;let p=t[`${i}_map`]?.[s];("brick"!==i||p?.template_key!=="BRICK_ITEMS")&&d.forEach((t,s)=>{let c;if(t?.result_data_mapping!==!0||"string"!=typeof(c=t.result_from_sender)||a.test(c)||n.test(c))return;let d=t.input_to_receiver||"the target",u=String(t.result_from_sender),f=u.length>80?`${u.slice(0,77)}…`:u;r({path:`${o}.${l}.parameter_list.${s}`,subspaceId:e,itemId:null,message:`result_data_mapping (ctor \`mapping\`) only resolves inside BRICK_ITEMS list entries, where it names a field of the item. On ${"brick"===i?p?.template_key||"this brick":"generator"===i?p?.template_key||"this generator":"property_bank"===i?"a data node event":"canvas"===i?"a canvas event":i} the runtime writes the mapping text \`${f}\` itself into ${d}.`,hint:'Forward the event payload by its property key (`value: "BRICK_…_PROP"` / `result_from_sender: "BRICK_…_PROP"`) into a scratch data node with waitAsync, then derive the final value with PROPERTY_BANK_EXPRESSION or a data calculation.'})})})}}},40566(e,t,r){let{forEachEventEntry:i,hasParamValue:a}=r(27899),n=[{action:"STORAGE_RETRIEVE",severity:"error",isMissing:e=>!a(e,"STORAGE_RETRIEVE_RESULT"),message:"STORAGE_RETRIEVE requires a STORAGE_RETRIEVE_RESULT parameter — without it the action throws at runtime.",hint:"Add a STORAGE_RETRIEVE_RESULT parameter pointing at a data node."},{action:"TAKE_SCREENSHOT",severity:"warning",isMissing:e=>!a(e,"TAKE_SCREENSHOT_SAVE_PROPERTY"),message:"TAKE_SCREENSHOT without TAKE_SCREENSHOT_SAVE_PROPERTY is silently skipped at runtime.",hint:"Add a TAKE_SCREENSHOT_SAVE_PROPERTY parameter pointing at a data node."},{action:"OPEN_FILE",severity:"warning",isMissing:e=>!a(e,"SAVE_PROPERTY")&&!a(e,"SAVE_DETAIL_PROPERTY"),message:"OPEN_FILE has no SAVE_PROPERTY / SAVE_DETAIL_PROPERTY — the picked file is discarded.",hint:"Add SAVE_PROPERTY (file uri) or SAVE_DETAIL_PROPERTY (file detail) parameters."},{action:"OPEN_URL",severity:"warning",isMissing:e=>!a(e,"URL"),message:"OPEN_URL has no URL parameter — the action does nothing.",hint:"Add a URL parameter."}];e.exports={code:"missing-result-param",severity:"warning",description:"An action is missing the parameter that receives or drives its effect",check(e,t,r){i(e,({subspaceId:e,path:t,entry:i,index:a})=>{if(i?.handler!=="SYSTEM")return;let s=n.find(e=>e.action===i.action);s&&s.isMissing(i)&&r({path:`${t}.${a}`,subspaceId:e,itemId:null,severity:s.severity,message:s.message,hint:s.hint})})}}},92260(e,t,r){let{forEachCanvasItem:i,frameIsNumeric:a,getItemId:n,FRAME_KEYS:s}=r(27899),o=["width","height"];e.exports={code:"off-grid-frame",severity:"warning",description:"Frame values should be multiples of the 0.5 grid step",check(e,t,r){let c=t.gridStep;i(e,({subspaceId:e,canvasId:t,item:i,index:l})=>{let d=i?.frame;if(!a(d))return;let p=s.filter(e=>{let t=d[e];return(!o.includes(e)||!(t<=c))&&Math.abs(t-Math.round(t/c)*c)>.001});0!==p.length&&r({path:`subspace_map.${e}.canvas_map.${t}.item_list.${l}.frame`,subspaceId:e,itemId:n(i),message:`Frame ${p.map(e=>`${e}=${d[e]}`).join(", ")} ${1===p.length?"is":"are"} not aligned to the ${c} grid step.`,hint:`Round frame values to multiples of ${c}.`})})}}},96810(e,t,r){let{forEachCanvasItem:i,frameIsNumeric:a,getItemId:n,itemHasAnimations:s}=r(27899);e.exports={code:"out-of-bounds-frame",severity:"warning",description:"An element is fully outside the subspace layout or has a non-positive size",check(e,t,r){i(e,({subspaceId:i,subspace:o,canvasId:c,item:l,index:d})=>{let p=o.layout;if("number"!=typeof p?.width||"number"!=typeof p?.height||p.width<=0||p.height<=0)return;let u=l?.frame;if(!a(u)||!0===u.exceed_boundary||u.standby_frame||s(l))return;let f=n(l);if(f&&t.dynamicRefIds.has(f))return;let m=`subspace_map.${i}.canvas_map.${c}.item_list.${d}.frame`;if(u.width<=0||u.height<=0)return void r({path:m,subspaceId:i,itemId:f,message:`Frame has a non-positive size (width=${u.width}, height=${u.height}) — the element renders nothing.`,hint:"Give the element a positive size, or remove it if unused."});let b=i===e.root_subspace_id,h=u.x>=p.width||u.x+u.width<=0,y=u.y>=p.height||u.y+u.height<=0;(h||!b&&y)&&r({path:m,subspaceId:i,itemId:f,message:`Frame (x=${u.x}, y=${u.y}, width=${u.width}, height=${u.height}) is fully outside the ${p.width}\xd7${p.height} layout — nothing is visible.`,hint:"Move the element back into the layout, or set `exceed_boundary` if the placement is intentional."})})}}},84223(e,t,r){let{FRAME_KEYS:i,forEachCanvas:a,frameIsNumeric:n,framesAlmostEqual:s,framesIntersect:o,itemHasAnimations:c}=r(27899),l=new Set(["BRICK_TEXT","BRICK_RICH_TEXT"]),d=["linearGradientEnabled","blurEnabled"],p=e=>Object.values(e?.event_map||{}).some(e=>Array.isArray(e)&&e.length>0),u=/^backgroundColor$|^border/,f=(e,t)=>{if(e?.type!=="brick")return null;let r=t[e.brick_id];return l.has(r?.template_key)?r:null},m=e=>i.map(t=>Math.floor(e[t]/.01)),b=e=>e.join(":"),h=(e,t,r,i)=>{if(!n(t?.frame)||!f(t,r))return;let a=b(m(t.frame)),s=(e.get(a)||0)+i;s>0?e.set(a,s):e.delete(a)};e.exports={code:"redundant-rect-overlay",severity:"info",description:"A plain Rect behind a same-frame Text/RichText can be folded into the text brick",check(e,t,r){a(e,({subspaceId:e,subspace:i,canvasId:a,items:l})=>{let y,_=i.brick_map||{},E=(y=new Map,l.forEach(e=>h(y,e,_,1)),y);l.forEach((i,y)=>{if(h(E,i,_,-1),i?.type!=="brick"||!n(i.frame))return;let g=_[i.brick_id];if(g?.template_key!=="BRICK_RECT"||c(i)||t.dynamicRefIds.has(i.brick_id))return;let v={...g.property,...i.property};if(d.some(e=>v[e])||!((e,t)=>{let[r,i,a,n]=m(t);for(let t=-1;t<=1;t+=1)for(let s=-1;s<=1;s+=1)for(let o=-1;o<=1;o+=1)for(let c=-1;c<=1;c+=1)if(e.has(b([r+t,i+s,a+o,n+c])))return!0;return!1})(E,i.frame))return;let S=p(g);for(let t=y+1;t<l.length;t+=1){let c=l[t];if(!n(c?.frame))continue;let d=f(c,_);if(d&&s(i.frame,c.frame,.01)){let t={...d.property,...c.property};if(Object.keys(t).some(e=>u.test(e)&&void 0!==t[e])||S&&p(d))return;r({path:`subspace_map.${e}.canvas_map.${a}.item_list.${y}`,subspaceId:e,itemId:i.brick_id,message:`Rect \`${g.title||i.brick_id}\` has the same frame as the ${d.template_key} above it and only uses base styles`+(S?", behind its press handler.":"."),hint:S?"Make the Text brick pressable, move backgroundColor / border / radius and the press handler onto it, then remove the Rect.":"Set backgroundColor / border / radius directly on the text brick and remove the Rect."});return}if(o(i.frame,c.frame))return}})})}}},31172(e,t,r){let{autoGeneratedItemIdKind:i}=r(99470),{forEachSubspace:a}=r(27899),n="PROPERTY_BANK_",s=()=>({children:Object.create(null),ids:null}),o=(e,t)=>{let r=e;for(let e of t)r.children[e]||(r.children[e]=s()),r=r.children[e];r.ids||(r.ids=[]),r.ids.push(t)},c=(e,t,r,i)=>{let a=r.children[e[i]];if(a){a.ids&&a.ids.forEach(e=>{t.set(e,t.get(e)+1)});for(let r=i+1;r<e.length&&(a=a.children[e[r]]);r+=1)a.ids&&a.ids.forEach(e=>{t.set(e,t.get(e)+1)})}};e.exports={code:"unused-data-node",severity:"info",description:"A data node is defined but never referenced anywhere in the config",check(e,t,r){let l=JSON.stringify(e),d=[];a(e,(r,a)=>{("module"!==t.configType||r!==e.root_subspace_id)&&Object.entries(a.property_bank_map||{}).forEach(([e,t])=>{!(!t||"object"!=typeof t||t.kind===i||t.enable_remote_update||t.global_remote_update_prop||t.linkedFrom||t.alias||t.preload||a.routing?.[e]?.enabled_routing)&&(Object.values(t?.event_map||{}).some(e=>Array.isArray(e)&&e.length>0)||d.push({subspaceId:r,nodeId:e,node:t}))})});let p=((e,t)=>{let r=[...new Set(t)];if(0===r.length)return new Map;let i=new Map(r.map(e=>[e,0])),a=s(),l=s(),d=!1,p=!1;if(r.forEach(e=>{e.startsWith(n)?(o(a,e),d=!0):(o(l,e),p=!0)}),d){let t=e.indexOf(n);for(;-1!==t;)c(e,i,a,t),t=e.indexOf(n,t+1)}if(p)for(let t=0;t<e.length;t+=1)c(e,i,l,t);return i})(l,d.map(({nodeId:e})=>e));d.forEach(({subspaceId:e,nodeId:t,node:i})=>{(p.get(t)||0)>1||r({path:`subspace_map.${e}.property_bank_map.${t}`,subspaceId:e,itemId:t,message:`Data node \`${i.title||t}\` is never referenced in the config.`,hint:"Remove it, or keep it if external tooling depends on it."})})}}},60760(e,t,r){let{forEachEventEntry:i}=r(27899),a=new Set(["MESSAGE","ALERT","POPUP_RESET","TAKE_SCREENSHOT","THROW_EXCEPTION","RESTART_FOUNDATION","DYNAMIC_BRICK","DYNAMIC_BRICK_RESET","DYNAMIC_ANIMATION","DYNAMIC_ANIMATION_RESET","DYNAMIC_ANIMATION_STOP","CHANNEL_SUBSCRIBE","CHANNEL_UNSUBSCRIBE","CHANNEL_PUBLISH","DISMISS_KEYBOARD","STORAGE_SET","STORAGE_DELETE","DELAY","USE_SHARE_APPLICATION","AUTH_IN_DEVICE","REFRESH_BINDCODE","STOP_APPLICATION_FILTER"]);e.exports={code:"wait-async-no-op",severity:"info",description:"wait_async is set on an action that ignores it",check(e,t,r){i(e,({subspaceId:e,path:t,entry:i,index:n})=>{i?.handler!=="SYSTEM"||!0!==i.wait_async||a.has(i.action)&&r({path:`${t}.${n}`,subspaceId:e,itemId:null,message:"DELAY"===i.action?"DELAY always waits for its timeout — `wait_async: true` is redundant.":`\`wait_async: true\` has no effect on ${i.action}; the action does not block the chain.`,hint:"DELAY"===i.action?"Remove the redundant flag.":"Remove the flag, or restructure if you relied on it for sequencing."})})}}},59707(e,t,r){let{forEachCanvas:i,frameIsNumeric:a,frameContains:n,itemHasAnimations:s}=r(27899);e.exports={code:"z-order-cover",severity:"info",description:"A later opaque element fully covers an earlier pressable element",check(e,t,r){i(e,({subspaceId:e,subspace:i,canvasId:o,items:c})=>{let l=i.brick_map||{},d=[];if(c.forEach((e,t)=>{if(e?.type!=="brick"||!a(e.frame))return;let r=l[e.brick_id];r&&Object.entries(r?.event_map||{}).some(([e,t])=>e.includes("_ON_PRESS")&&Array.isArray(t)&&t.length>0)&&d.push({item:e,index:t,brick:r})}),0===d.length)return;let p=t.dynamicRefIds,u=c.map((e,t)=>((e,t,r,i)=>{let n;if(e?.type!=="brick"||!a(e.frame)||s(e)||i.has(e.brick_id))return null;let o=r[e.brick_id],c={...o?.property,...e.property};return"string"==typeof(n=c.backgroundColor)&&(/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*1(?:\.0+)?\s*\)$/.test(n)||/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(n)||/^#[0-9a-fA-F]{6}$/.test(n))&&(void 0===c.opacity||1===c.opacity)?{index:t,item:e,brick:o,frame:e.frame}:null})(e,t,l,p)).filter(Boolean),f=(e=>{let t=Array(e.length),r=1/0,i=1/0,a=-1/0,n=-1/0,s=-1/0,o=-1/0;for(let c=e.length-1;c>=0;c-=1){let{frame:l}=e[c];r=Math.min(r,l.x),i=Math.min(i,l.y),a=Math.max(a,l.x+l.width),n=Math.max(n,l.y+l.height),s=Math.max(s,l.width),o=Math.max(o,l.height),t[c]={minX:r,minY:i,maxRight:a,maxBottom:n,maxWidth:s,maxHeight:o}}return t})(u),m=0;d.forEach(({item:t,index:i,brick:a})=>{let c,l;if(!(s(t)||p.has(t.brick_id))){for(;m<u.length&&u[m].index<=i;)m+=1;if(c=f[m],l=t.frame,c&&c.minX<=l.x+.01&&c.minY<=l.y+.01&&c.maxRight>=l.x+l.width-.01&&c.maxBottom>=l.y+l.height-.01&&c.maxWidth>=l.width-.02&&c.maxHeight>=l.height-.02)for(let s=m;s<u.length;s+=1){let c=u[s];if(n(c.frame,t.frame))return void r({path:`subspace_map.${e}.canvas_map.${o}.item_list.${i}`,subspaceId:e,itemId:t.brick_id,message:`Pressable \`${a.title||t.brick_id}\` is fully covered by the opaque \`${c.brick?.title||c.item.brick_id}\` later in the item list — it is invisible and untappable.`,hint:"Reorder the items, shrink the covering element, or remove the hidden one."})}}})})}}},30302(e,t){t.templateSupportInnerRefs=[{key:"BRICK_ITEMS",dataKey:"items",listProps:["brickList","brickDetails"]}]}};
1
+ export const __rspack_esm_id=7511;export const __rspack_esm_ids=[7511];export const __webpack_modules__={66422(e,t){let r=e=>`PROPERTY_BANK_DATA_NODE_${e}`,a={isLocalSyncMainDevice:{id:r("325068e3-89b6-4c6a-942b-126d38c84a62"),title:"SYSTEM: Is Local Sync Main Device",description:"The current device is main for local sync",type:"bool",value:!0},currentCanvasId:{id:r("2dfeb635-deb4-481a-9d17-ea7b1fe19f74"),title:"SYSTEM: Current Canvas ID",description:"ID for known current canvas",type:"string",value:""},previousCanvasId:{id:r("2971e463-0b0e-45b7-bbfb-a01d8fd49db3"),title:"SYSTEM: Previous Canvas ID",description:"ID for known previous canvas",type:"string",value:""},canvasIdHistory:{id:r("1a086f39-817d-40ed-92f0-5a999535d3dd"),title:"SYSTEM: Change Canvas History",description:"Change Canvas ID History (Limit: 10)",type:"array",schema:{type:"string",allowNewItem:!1,allowCustomProperty:!1},value:[]},rootSubspaceInfo:{id:r("c0817f4a-1ff3-40ed-9cbf-71d8cefd2cd9"),title:"SYSTEM: Root Subspace Info",description:"Root Subspace Information",type:"object",value:{}},subspaceInfo:{id:r("2657ec09-7323-46c3-a96e-3d8b5a0f79b3"),title:"SYSTEM: Current Subspace Info",description:"Current Subspace Information",type:"object",value:{}},uniqueID:{id:r("6f4a543f-a88a-4a83-bf53-223259263be3"),title:"SYSTEM: Unique ID",description:"Unique ID of current device",type:"string",value:"unknown"},appVersion:{id:r("d614a258-2a45-4f91-9f6b-3936038cb2b1"),title:"SYSTEM: App Version",description:"App Version of current installed BRICKS Foundation app",type:"string",value:"unknown"},lastUpdateTime:{id:r("956f3b3e-cb0b-47ca-8119-65663910d110"),title:"SYSTEM: Last Update Time",description:"Last update time of current installed BRICKS Foundation app",type:"string",value:"2019-07-09T03:32:27.058Z"},deviceName:{id:r("7b9d9ad4-e9a2-47cd-91d3-b64187895c16"),title:"SYSTEM: Device Name",description:"Name of current device",type:"string",value:"Default Device Name"},deviceType:{id:r("b0beae12-e45e-4870-ae15-858eeac566fa"),title:"SYSTEM: Device Type",description:"Type of current device (Handset, Tv, Tablet)",type:"string",value:"Tv"},operationMode:{id:r("2e715d3b-92bf-4761-b5c0-ca21f7c1ada8"),title:"SYSTEM: Operation Mode",description:"Operation Mode of current device (android, ios, ...)",type:"string",value:"android"},operationVersion:{id:r("fa886963-0a16-4b5f-b4ea-6c25b049db03"),title:"SYSTEM: Operation Version",description:"Operation Version of current device",type:"string",value:""},screenWidth:{id:r("2942470a-c3bc-413e-8f2c-30a89aded3f8"),title:"SYSTEM: Screen Width",description:"Width of current device main screen",type:"number",value:1280},screenHeight:{id:r("4f031e27-f67b-40e0-a317-9f6c5215d97d"),title:"SYSTEM: Screen Height",description:"Height of current device main screen",type:"number",value:768},screenScale:{id:r("c3c9b7aa-1dc1-4be1-8a4a-d9e299b9eeaa"),title:"SYSTEM: Screen Scale",description:"Scale of current device main screen",type:"number",value:2},screenFontScale:{id:r("0312f380-d525-4938-82d2-5b35ef8ef1e8"),title:"SYSTEM: Screen Font Scale",description:"Font scale of current device main screen",type:"number",value:1},orientation:{id:r("4f584f51-a250-4f97-a2f8-d5e6a3affb4f"),title:"SYSTEM: Orientation",description:"Orientation of current device main screen",type:"string",value:"landspace"},touchAvailable:{id:r("1fe7555f-df41-43ce-a268-3ea1b5efda6d"),title:"SYSTEM: Touch Available",description:"Is touch available of current device main screen?",type:"bool",value:!0},soundAvailable:{id:r("bf839498-f7d6-4212-ac3a-b409e3ad77a5"),title:"SYSTEM: Sound Available",description:"Is sound available of current device?",type:"bool",value:!0},cameraAvailable:{id:r("4878f3c2-8bb8-4c94-855c-06bda5a287d5"),title:"SYSTEM: Camera Available",description:"Is camera available of current device?",type:"bool",value:!0},audioInputAvailable:{id:r("4854b259-96c1-40d7-b17b-47156b4698dc"),title:"SYSTEM: Audio Input Available",description:"Is audio input available of current device?",type:"bool",value:!1},networkType:{id:r("1cbb1756-e53c-45a9-be23-5d84a214e144"),title:"SYSTEM: Network Type",description:"Network Type of current device",type:"string",value:"wifi"},networkConnected:{id:r("687b62fe-ead5-417a-b415-9bd5233784a4"),title:"SYSTEM: Network Connected",description:"Is Network connected of current device?",type:"bool",value:!0},networkIpAddress:{id:r("41971ba7-8294-4aa6-a425-ecd39853c3e6"),title:"SYSTEM: Network IP Address",description:"Current network IP address",type:"string",value:""},networkDetails:{id:r("9351fbfc-4ace-477a-b05d-41ac9b05087d"),title:"SYSTEM: Network Details",description:"Network details, provide different data depends on Network Type",type:"object",value:null},isInternetReachable:{id:r("e367ae7e-46ec-46d0-b87d-51e544591ff9"),title:"SYSTEM: Internet Reachable",description:"Is Internet reachable?",type:"bool",value:!0},isWifiEnabled:{id:r("be395305-fb85-4d05-8506-22a4ae8c7b9e"),title:"SYSTEM: Wifi Enabled",description:"Is WiFi enabled?",type:"bool",value:!0},deviceDisplayName:{id:r("76356a9a-fc46-11ec-9905-db53d6811cb7"),title:"SYSTEM: Device Display Name",description:"Current device display name",type:"string",value:""},workspaceName:{id:r("d857125e-0401-40f1-b768-56190aa8e147"),title:"SYSTEM: Workspace Name",description:"Current workspace name",type:"string",value:""},applicationInfo:{id:r("935d3322-84aa-4465-b1e7-241d1f024267"),title:"SYSTEM: Application Info",description:"Current application info",type:"object",value:{}},applicationName:{id:r("df395fd6-a754-4b60-8bac-1360933e6707"),title:"SYSTEM: Application Name",description:"Current application name",type:"string",value:""},deviceID:{id:r("8b5c2d9e-f0a1-4b2c-8d3e-4f5a6b7c8d9e"),title:"SYSTEM: Device ID",description:"Device ID of current device",type:"string",value:"unknown"},macAddress:{id:r("f01fcc78-0723-11ed-ac00-877339de1030"),title:"SYSTEM: MAC Address",description:"Network adapter MAC address of current device",type:"string",value:""},bindDeviceCode:{id:r("1ca90262-3584-11ed-8c9a-174949844872"),title:"SYSTEM: Bind Device Code",description:"The passcode to bind the device",type:"string",value:"",hide:!0},bindDeviceCodeExpire:{id:r("5b52d204-3584-11ed-bb5e-abb4d270daf1"),title:"SYSTEM: Bind Device Code Expire Time",description:"The expire time of bind passcode",type:"string",value:"",hide:!0},bindDeviceUrl:{id:r("833a7db2-3584-11ed-88dd-3b3d3ff58855"),title:"SYSTEM: Bind Device URL",description:"The URL to bind the device",type:"string",value:"",hide:!0},bindDeviceUseApplication:{id:r("631bbce8-9c90-4590-b8ec-8b27f4a0e50b"),title:"SYSTEM: Selected Application on Bind Device",description:"Current selected use application info on Bind Device",type:"object",value:null,hide:!0},isApplicationPreview:{id:r("c673967a-3996-11ed-96d9-efbc3f7eac53"),title:"SYSTEM: Is Preview Mode",description:"Is current in preview mode?",type:"bool",value:"",hide:!0},isSupportAuthInDevice:{id:r("beb2a666-3e18-11ed-bdab-6f0cb082fa67"),title:"SYSTEM: Is Support Auth In Device",description:"Is current device support auth in device?",type:"bool",value:"",hide:!0},env:{id:r("74e7a574-1099-4fe5-b193-8a9ea7d20ed0"),title:"SYSTEM: Environment Variables",description:"Environment Variables of the device",type:"object",value:{}},isViewDebugModeEnabled:{id:r("3f61c4f6-1e02-492e-8e4c-a8dc4a5bc101"),title:"SYSTEM: Is View Debug mode Enabled",description:"Is View Debug mode enabled?",type:"bool",value:!1},language:{id:r("f0ed0a03-6195-459f-9ffe-bca61923f94e"),title:"SYSTEM: Language",description:"Language of the device",type:"string",value:""},aiFilters:{id:r("3ffc1e98-8f65-4cc8-a949-3da8d2092ccb"),title:"SYSTEM: AI Filters",description:"AI filters configuration from the application",type:"array",value:[]},systemOpenAIApiKey:{id:r("a1b2c3d4-5e6f-7890-abcd-ef1234567890"),title:"SYSTEM: OpenAI API Key",description:"System OpenAI API Key (only available if application enabled)",type:"string",value:""},systemAnthropicApiKey:{id:r("b2c3d4e5-6f78-9012-bcde-f23456789012"),title:"SYSTEM: Anthropic API Key",description:"System Anthropic API Key (only available if application enabled)",type:"string",value:""},systemGeminiApiKey:{id:r("c3d4e5f6-7890-1234-cdef-345678901234"),title:"SYSTEM: Gemini API Key",description:"System Gemini API Key (only available if application enabled)",type:"string",value:""},ggmlBackendDevices:{id:r("9e8f7a6b-5c4d-3e2f-1a0b-9c8d7e6f5a4b"),title:"SYSTEM: GGML Backend Devices",description:"Available GGML backend devices with supported generators",type:"array",schema:{type:"object",allowNewItem:!1,allowCustomProperty:!1},value:[]}};t.idMap=Object.entries(a).reduce((e,[t,r])=>(e[t]=r.id,e),{}),Object.fromEntries(Object.entries(t.idMap).map(([e,t])=>[t,e])),t.MI=Object.entries(a).reduce((e,[t,r])=>{let{id:a,...i}=r;return e[t]=i,e},{}),Object.keys(t.MI)},18501(e,t,r){let{docs:a}=r(5867);t.isCommand=e=>!!(e&&e.type&&e.type.startsWith("command-node-")),t.isScriptCommand=e=>!!e&&"command-node-script"===e.type,t.getPorts=e=>e?Array.isArray(e)?e:[e]:[];let i=e=>a[e.type.replace("command-node-","")]?.commands?.[e.properties?.command];t.getCommandDoc=i,t.getCommandCallbackFromPort=(e,r)=>{let a=e[r];if(!t.isCommand(a))return null;let n=i(a);return n?.iterateeFrom||n?.invocationFrom||null};let n=e=>t.getPorts(e).some(e=>e?.disable_trigger_command);t.checkDisableTriggerCommand=(e,t)=>n(e[t.id]?.in?.[t.port]),t.findCircularReferenceIds=e=>{let r,a,i=(r=new Map,a=new Map,Object.keys(e).reduce((i,s)=>{let o=[];return Object.values(e[s]?.out||{}).forEach(i=>{t.getPorts(i).forEach(i=>{((e,r,a,i)=>{var s;if(!r||!e[r.id]||r.port===(s=r.id,a.has(s)||a.set(s,t.getCommandCallbackFromPort(e,s)),a.get(s)))return!1;let o=e[r.id]?.in?.[r.port];return!Array.isArray(o)||o.length<2?!n(o):(i.has(o)||i.set(o,n(o)),!i.get(o))})(e,i,r,a)&&o.push(i.id)})}),i[s]=o,i},{})),s=new Map;return Object.keys(e).filter(t=>e[t]?.type==="data-node").filter(e=>((e,t,r)=>{if(r.has(e))return r.get(e);let a=[{id:e,edgeIndex:0,reachesCycle:!1}],i=new Set([e]);for(;a.length>0;){let e=a[a.length-1],n=t[e.id]||[];if(e.reachesCycle||e.edgeIndex>=n.length){i.delete(e.id),r.set(e.id,e.reachesCycle),a.pop(),e.reachesCycle&&a.length>0&&(a[a.length-1].reachesCycle=!0);continue}let s=n[e.edgeIndex];if(e.edgeIndex+=1,r.has(s)){r.get(s)&&(e.reachesCycle=!0);continue}if(i.has(s)){e.reachesCycle=!0;continue}i.add(s),a.push({id:s,edgeIndex:0,reachesCycle:!1})}return r.get(e)||!1})(e,i,s))},t.hasCircularReference=e=>t.findCircularReferenceIds(e).length>0;let s=(e={})=>Object.entries(e).reduce((e,[t,r])=>(e[t]=Array.isArray(r)?r.slice():r,e),{}),o=new WeakSet,c=(e,t,r)=>{if(!r)return;let a=((e,t)=>{let r=e[t];if(!r)return e[t]=[],e[t];if(!Array.isArray(r))return e[t]=[r],e[t];if(!o.has(r)){let e=0;for(let t of r)t&&(r[e]=t,e+=1);r.length=e,o.add(r)}return r})(e,t);(Array.isArray(r)?r:[r]).forEach(e=>{e&&a.push(e)})};t.getCalcMap=e=>e?.script_map||e?.scriptMap||e?.map||{},t.composeMap=e=>Object.values(e).reduce((e,r)=>Object.entries(t.getCalcMap(r)).reduce((e,[r,a])=>{if(e[r]){if(t.isCommand(a))throw Error(`Doesn't allow same command id in another map, ${r}`);let i=e[r];Object.keys(a?.in||{}).forEach(e=>{c(i.in,e,a.in[e])}),Object.keys(a?.out||{}).forEach(e=>{c(i.out,e,a.out[e])})}else e[r]={...a,in:s(a?.in),out:s(a?.out)};return e},e),{}),t.isInputTriggerPort=(e,r)=>t.getPorts(r).some(r=>{let a;return r&&(a=e[r.id],a?.type==="data-node"&&!Object.values(a.in||{}).some(e=>t.getPorts(e).length>0))});let l=(e,r)=>Object.entries(e||{}).forEach(([a,i])=>{t.isCommand(i)&&Object.entries(i.in||{}).forEach(([i,n])=>{t.isInputTriggerPort(e,n)&&r(a,i,t.getPorts(n))})}),d=(e,t)=>{let r=e;return l(e,(a,i,n)=>{let s=t(a,i);n.every(e=>!e||!!e.disable_trigger_command===s)||(r===e&&(r={...e}),r[a]===e[a]&&(r[a]={...e[a],in:{...e[a].in}}),r[a].in[i]=n.map(e=>{if(!e)return e;let{disable_trigger_command:t,...r}=e;return s?{...r,disable_trigger_command:!0}:r}))}),r};t.getDisabledInputTriggers=e=>{let t={};return l(e,(e,r,a)=>{a.some(e=>e?.disable_trigger_command)&&(t[e]={...t[e],[r]:!0})}),t},t.disableInputTriggers=e=>d(e,()=>!0),t.restoreInputTriggers=(e,t={})=>d(e,(e,r)=>!!t[e]?.[r])},86343(e,t,r){let{v4:a}=r(45620),i=r(95479),n=r(56005),{nameMap:s,brickMapping:o,generatorMapping:c}=r(63981);t.idByItem=(e={})=>e.canvas_id||e.subspace_id||e.brick_id||e.generator_id||e.property_bank_id||e.property_bank_calc_id||e.bank_id||e.scene_id,t.getAnimationType=e=>e.type||e.compose_type||e.composeType,t.cleanUpAnimationMap=e=>Object.entries(e).reduce((e,[t,r])=>((r.type||r.compose_type)&&(e[t]=r),e),{}),t.matchItemByItem=(e,t)=>{let r;if(!e)return!1;switch("string"==typeof t&&(r=t),e.type){case"brick":return e.brick_id===(r||t.brick_id);case"subspace":return e.subspace_id===(r||t.subspace_id);case"canvas":return e.canvas_id===(r||t.canvas_id);case"generator":return e.generator_id===(r||t.generator_id);case"property_bank":return e.property_bank_id===(r||t.property_bank_id);default:return!1}},t.makePasscode=()=>a(),t.kindOneOfTypes={string:["color","datetime","id","graphql","rich-text-content","sandbox-script","llm-prompt","media-resource-image","media-resource-video","media-resource-audio","media-resource-file","lottie-file-uri","rive-file-uri","ggml-model-asset","gguf-model-asset","mlx-model-asset","binary-asset","scene3d-objects"],number:["unit"],object:["tts-speaker-config"],"array-object":["llm-tools","llm-messages","mcp-server-resources","mcp-server-tools","mcp-server-prompts"]},t.getKindOneOfTypes=(e,r)=>"array"===e?"object"===r?t.kindOneOfTypes[`${e}-${r}`]:void 0:t.kindOneOfTypes[e],t.unitOneOfTypes=["grid","px","ms"],t.idOneOfTypes=["canvas","brick","generator","animation","property_bank"],t.typeToName={brick:"Brick",generator:"Generator",subspace:"Subspace",canvas:"Canvas",animation:"Animation",property_bank:"Data",property_bank_calc:"Calculation"},t.getBrickName=(e,r,a)=>{let n;if(!r)return e.toUpperCase();if(r.title)return r.title;switch(e){case"bank":n="BANK";break;case"subspace":n="SUBSPACE";break;case"canvas":n="CANVAS";break;case"animation":n=`<${i(t.getAnimationType(r))}>`;break;case"property_bank":n="<Data>";break;case"property_bank_calc":n="<Map>";break;case"state_group":n="<Switch Case>";break;default:n=`<${s[r.template_key||r.templateKey]||"Unknown"}>`}return a&&a.length>10?n+=` (${a.replace(/[A-Z_]+/g,"").substr(0,6)}...)`:a&&(n+=` (${a})`),n},t.getEventLabel=(e,{templateKey:t,itemType:r}={})=>{if(!e)return"";let a=e;return"subspace"===r?a=e.replace("SUBSPACE_ACTION_",""):t&&(a=e.replace(`${t}_`,"").replace("CANVAS_","")),i(n(i(a)))},t.getCallInternalActions=e=>{let t=o[e]||c[e];if(t)return t.callInternalActions},t.mapToList=(e,r)=>Object.entries(r).reduce((r,[a,i])=>(r.push({id:a,...i,title:t.getBrickName(e,i,a)}),r),[]);let l={subspaceMap:"subspace",brickMap:"brick",generatorMap:"generator",propertyBankMap:"property_bank",propertyAvailableToAdd:"property_bank",canvasMap:"canvas",animationMap:"animation"},d={};t.mapToListForDerivedState=(e,r,a,i)=>{let n=a[e]||d;return n!==i[e]?{[e]:n,[r]:t.mapToList(l[e],n)}:{}},t.arrayTypePrefix="array of ",t.propertyBankTypes=["string","number","bool","object","any",`${t.arrayTypePrefix}string`,`${t.arrayTypePrefix}number`,`${t.arrayTypePrefix}bool`,`${t.arrayTypePrefix}object`],t.animationRunTypes=["once","loop"],t.stopPropagationOnKeyBackspace=e=>{8===e.keyCode&&e.stopPropagation()},t.nestedTypes=["object","array","any"],t.isPropertyBankTypeNested=e=>t.nestedTypes.includes(e),t.propertyTypeToSchema=e=>{let r=e.indexOf(t.arrayTypePrefix)>-1,a=e.replace(t.arrayTypePrefix,"");return{type:a,properties:"object"===a?{}:void 0,allowNewItem:r,allowCustomProperty:"object"===a}}},33770(e,t,r){let{idMap:a}=r(66422),{forEachEventAction:i,getActionParam:n}=r(78078),s="PROPERTY_BANK_DATA_NODE_",o=new Set(Object.values(a||{}).filter(e=>"string"==typeof e&&e.startsWith(s)));e.exports=function(e){let t,r,a=[],c=(t=new Set(o),Object.values(e.subspace_map||{}).forEach(e=>{e&&"object"==typeof e&&Object.keys(e.property_bank_map||{}).forEach(e=>t.add(e))}),t),l=(r=new Set,Object.values(e.subspace_map||{}).forEach(e=>{e&&"object"==typeof e&&Object.keys(e.canvas_map||{}).forEach(e=>r.add(e))}),r);return i(e,(e,t)=>{if("PROPERTY_BANK_EXPRESSION"===e.action){let r;Array.isArray(r=n(e,"VARIABLES"))&&r.forEach((e,r)=>{let i=e?.id;if("string"!=typeof i||!i.startsWith(s)||c.has(i))return;let n=e.key?`\`${e.key}\``:`at index ${r}`;a.push({field:`${t}.VARIABLES[${r}].id`,message:`PROPERTY_BANK_EXPRESSION variable ${n} references data node \`${i}\`, which is not defined in any subspace.`})})}else"CHANGE_CANVAS"===e.action&&((e,t,r,a)=>{if("SYSTEM"!==e.handler)return;let i=n(e,"CANVAS_ID");"string"!=typeof i||!i||i.startsWith("PROPERTY_BANK#")||i.startsWith("VARIABLE#")||!i.startsWith("CANVAS_")||r.has(i)||a.push({field:`${t}.CANVAS_ID`,message:`CHANGE_CANVAS references canvas \`${i}\`, which is not defined in any subspace.`})})(e,t,l,a)}),a}},37517(e,t,r){let{composeMap:a,findCircularReferenceIds:i}=r(18501);e.exports=function(e){let t=[];return Object.entries(e.subspace_map||{}).forEach(([e,r])=>{if(!r||"object"!=typeof r||r.module?.link)return;let n=r.property_bank_calc_map;if(!n||0===Object.keys(n).length)return;let s=`subspace_map.${e}.property_bank_calc_map`;try{let e=a(n),r=i(e);if(r.length>0){let a=r.slice(0,5).map(t=>e[t].title||t),i=r.length>5?` and ${r.length-5} more`:"";t.push({field:s,message:`Circular reference detected in data calculation. Affected nodes: ${a.join(", ")}${i}. Please check the data connections for loops.`})}}catch(e){t.push({field:s,message:e.message})}}),t}},41900(e){let t=e=>{if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some(t);if("FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type)return!1;if("AssignmentExpression"===e.type&&e.left?.type!=="Identifier"||"UpdateExpression"===e.type&&e.argument?.type!=="Identifier")return!0;for(let r of Object.keys(e))if("type"!==r&&t(e[r]))return!0;return!1},r=(e,t)=>"ExpressionStatement"===e.type?null:"VariableDeclaration"===e.type?e.declarations.some(e=>"Identifier"!==e.id.type||!e.init)?"a variable declaration with destructuring or no initializer":null:t&&"ReturnStatement"===e.type?null:`an unsupported ${e.type}`;e.exports={expressionFoldAcornOptions:{ecmaVersion:2022,allowReturnOutsideFunction:!0,allowAwaitOutsideFunction:!0},getUnfoldableStatementDescription:(e,a=null)=>{for(let a=0;a<e.length;a+=1){let i=e[a];if(t(i))return"a write to a member or computed target";let n=r(i,a===e.length-1);if(n)return n}return a},hasFoldShape:e=>e.every((t,a)=>!r(t,a===e.length-1)),writesToNonIdentifierTarget:t}},78078(e,t,r){let{parse:a}=r(89236),{expressionFoldAcornOptions:i}=r(41900),n=(e,t)=>{let r=e.parameter_list||e.parameterList||[];if(!Array.isArray(r))return;let a=r.find(e=>(e?.input_to_receiver||e?.inputToReceiver)===t);return a?a.result_from_sender??a.resultFromSender:void 0},s=(e,t,r)=>{if(e&&"object"==typeof e){if(Array.isArray(e))return void e.forEach((e,a)=>s(e,`${t}[${a}]`,r));Object.entries(e).forEach(([e,a])=>{("event_map"===e||"eventMap"===e)&&a&&"object"==typeof a?Object.entries(a).forEach(([a,i])=>{Array.isArray(i)&&i.forEach((i,n)=>{i&&"object"==typeof i&&r(i,`${t}.${e}.${a}[${n}]`)})}):a&&"object"==typeof a&&s(a,`${t}.${e}`,r)})}},o=(e,t)=>{Object.entries(e.subspace_map||{}).forEach(([e,r])=>{!r||"object"!=typeof r||r.module?.link||s(r,`subspace_map.${e}`,t)})};e.exports=function(e){let t=[];return o(e,(e,r)=>{if("PROPERTY_BANK_EXPRESSION"!==e.action)return;let s=n(e,"EXPRESSION");if("string"!=typeof s||s.startsWith("PROPERTY_BANK#"))return;let o=(e=>{if(!e.trim())return"Expression is empty";try{a(e,i)}catch(e){return`Expression does not parse: ${e.message}`}return null})(s);o&&t.push({field:r,message:o})}),t},e.exports.forEachEventAction=o,e.exports.getActionParam=n},38890(e,t,r){let{getDocByTemplateKey:a}=r(63981),i=r(80211),n=r(45907),s=r(37517),o=r(78078),c=r(33770),l=r(69516),{lintConfig:d,lintRuleCodes:p}=r(9098),{getBrickName:u}=r(86343);t.lintConfig=d,t.lintRuleCodes=p;let f=(e,t,r,a)=>({id:e,name:"Used Deprecated Feature",data:`The \`${u("brick",t,e)}\` brick in \`${u("subspace",r,a)}\` have been deprecated, it may not work in the future, please consider to remove it. If you can't see the item, please enable \`Show Deprecated Features\` in setting.`});t.checkConfigDeprecatedFeatures=e=>{let t=[];return Object.entries(e.subspace_map||{}).forEach(([e,r])=>{r&&"object"==typeof r&&(Object.entries(r.brick_map||{}).forEach(([i,n])=>{(void 0!==n.property?.borderLeftWidth||void 0!==n.property?.borderRightWidth||void 0!==n.property?.borderTopWidth||void 0!==n.property?.borderBottomWidth)&&t.push({id:i,name:"Used Deprecated Feature",data:`In v2.16, we have been changed \`Border Width\` to \`Border Size\` (Unit \`px\` to \`grid\`). The \`${u("brick",n,i)}\` brick still used the border width. Please re-edit it to transfer to the new unit.`});let s=a(n.template_key);s?.brickMeta?.deprecated&&t.push(f(i,n,r,e))}),Object.entries(r.generator_map||{}).forEach(([i,n])=>{let s=a(n.template_key);s?.brickMeta?.deprecated&&t.push(f(i,n,r,e))}))}),t};let m=({instancePath:e,field:t,message:r})=>{let a=e||t;return a?`${a}: ${r}`:`${r??""}`};t.checkConfig=(e,t={})=>{let r={schema:i(e),ref:n(e,t),calc:t.checkCalc?s(e):[],expression:t.checkExpressions?o(e):[],actionRef:t.checkActionRefs?c(e):[],itemsEventMap:t.checkItemsEventMaps?l(e):[]};return r.valid=0===r.schema.length&&0===r.ref.length&&0===r.calc.length&&0===r.expression.length&&0===r.actionRef.length&&0===r.itemsEventMap.length,r.message=(e=>{let t="",r=0;for(let a of e){let e=0===r?a:`${t}
2
+ ${a}`;if(e.length>65504){0===r&&(t=`${a.slice(0,65503)}…`,r=1);break}t=e,r+=1}let a=e.length-r;return a>0?`${t}
3
+ …and ${a} more`:t})(r.schema.concat(r.ref).concat(r.calc).concat(r.expression).concat(r.actionRef).concat(r.itemsEventMap).map(m)),r}},69516(e,t,r){let a=r(80211),{templateSupportInnerRefs:i}=r(30302);e.exports=function(e){let t=[],r=a.ajv.getSchema("http://display.bricks.tools/event_map_camel.schema.json5");return Object.entries(e.subspace_map||{}).forEach(([e,a])=>{!a||"object"!=typeof a||a.module?.link||Object.entries(a.brick_map||{}).forEach(([a,n])=>{let s=i.find(e=>e.key===n?.template_key);s&&n.property&&s.listProps.forEach(i=>{let s=n.property[i];Array.isArray(s)&&s.forEach((n,s)=>{if(!n||"object"!=typeof n)return;let o=`subspace_map.${e}.brick_map.${a}.property.${i}[${s}]`;"event_map"in n&&t.push({field:`${o}.event_map`,message:"items-list entries store their event map in camelCase as `eventMap`; this snake_case `event_map` key is never read by the runtime or the editor (dead data, typically left by an old Short Edit write) — remove it."}),void 0!==n.eventMap&&null!==n.eventMap&&(r(n.eventMap)||r.errors.forEach(e=>{t.push({field:`${o}.eventMap${e.instancePath.split("/").filter(Boolean).map(e=>/^\d+$/.test(e)?`[${e}]`:`.${e}`).join("")}`,message:e.message})}))})})})}),t}},27899(e){let t=["x","y","width","height"],r=e=>"string"==typeof e&&e.startsWith("PROPERTY_BANK_"),a=/PROPERTY_BANK#(PROPERTY_BANK_[A-Za-z0-9_-]+)/g,i=/(?:BRICK|ANIMATION|SUBSPACE)_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/g,n=(e,t=new Set)=>{if("string"==typeof e){let r;for(a.lastIndex=0;r=a.exec(e);)t.add(r[1])}else Array.isArray(e)?e.forEach(e=>n(e,t)):e&&"object"==typeof e&&(r(e.id)&&t.add(e.id),Object.values(e).forEach(e=>n(e,t)));return t},s=(e,t)=>{if("string"==typeof e){let r;for(i.lastIndex=0;r=i.exec(e);)t.add(r[0])}else Array.isArray(e)?e.forEach(e=>s(e,t)):e&&"object"==typeof e&&Object.values(e).forEach(e=>s(e,t));return t},o=(e,t)=>{Object.entries(e.subspace_map||{}).forEach(([e,r])=>{!r||"object"!=typeof r||r.module?.link||t(e,r)})},c=(e,t)=>{o(e,(e,r)=>{Object.entries(r.canvas_map||{}).forEach(([a,i])=>{let n=Array.isArray(i?.item_list)?i.item_list:[];t({subspaceId:e,subspace:r,canvasId:a,canvas:i,items:n})})})},l=[["brick_map","brick"],["generator_map","generator"],["property_bank_map","property_bank"],["canvas_map","canvas"]],d=(e,t,r)=>{l.forEach(([a,i])=>{Object.entries(t[a]||{}).forEach(([t,n])=>{Object.entries(n?.event_map||{}).forEach(([n,s])=>{Array.isArray(s)&&r({ownerType:i,ownerId:t,eventKey:n,list:s,path:`subspace_map.${e}.${a}.${t}.event_map.${n}`})})})})},p=(e,t)=>{o(e,(e,r)=>{d(e,r,a=>{a.list.forEach((i,n)=>{t({subspaceId:e,subspace:r,...a,entry:i,index:n})})})})},u=(e,t)=>(e.parameter_list||[]).find(e=>e?.input_to_receiver===t)?.result_from_sender;e.exports={FRAME_KEYS:t,isBankNodeId:r,collectBankReads:n,forEachSubspace:o,forEachCanvas:c,forEachCanvasItem:(e,t)=>{c(e,e=>{e.items.forEach((r,a)=>{t({...e,item:r,index:a})})})},forEachEventList:d,forEachEventEntry:p,getParamValue:u,hasParamValue:(e,t)=>{let r=u(e,t);return null!=r&&""!==r},collectDynamicallyReferencedIds:e=>{let t=new Set;return p(e,({entry:e})=>{s(e?.parameter_list,t)}),s(e.automation_map,t),s(e.test_map,t),t},frameIsNumeric:e=>!!e&&t.every(t=>"number"==typeof e[t]),framesAlmostEqual:(e,r,a=.01)=>t.every(t=>Math.abs(e[t]-r[t])<=a),frameContains:(e,t,r=.01)=>e.x<=t.x+r&&e.y<=t.y+r&&e.x+e.width>=t.x+t.width-r&&e.y+e.height>=t.y+t.height-r,framesIntersect:(e,t)=>!(e.x+e.width<=t.x||t.x+t.width<=e.x||e.y+e.height<=t.y||t.y+t.height<=e.y),getItemId:e=>e?.brick_id||e?.subspace_id||null,itemHasAnimations:e=>!!e?.animations&&Object.keys(e.animations).length>0}},9098(e,t,r){let{collectDynamicallyReferencedIds:a}=r(27899),i=[r(98632),r(84223),r(92260),r(96810),r(60760),r(40566),r(31172),r(59707),r(39425),r(78899)],n=i.map(e=>e.code),s=e=>Array.isArray(e)?e:"string"==typeof e&&e?e.split(",").map(e=>e.trim()).filter(Boolean):null;e.exports={lintConfig:(e,t={})=>{let r,o=s(t.only),c=s(t.ignore),l=[...o||[],...c||[]].filter(e=>!n.includes(e));if(l.length>0)throw Error(`Unknown lint rule code(s): ${l.join(", ")}. Valid codes: ${n.join(", ")}`);if(!e||"object"!=typeof e)return[];let d=i.filter(e=>(!o||o.includes(e.code))&&(!c||!c.includes(e.code)));if(0===d.length)return[];let p={configType:"module"===t.configType?"module":"app",gridStep:"number"==typeof t.gridStep&&t.gridStep>0?t.gridStep:.5,get dynamicRefIds(){return r||(r=a(e)),r}},u=[];return d.forEach(t=>{try{t.check(e,p,e=>u.push({severity:t.severity,code:t.code,path:"",subspaceId:null,itemId:null,hint:null,...e}))}catch(e){u.push({severity:"warning",code:t.code,path:"",subspaceId:null,itemId:null,message:`Lint rule crashed: ${e.message}`,hint:null})}}),u},lintRuleCodes:n}},98632(e,t,r){let{composeMap:a}=r(18501),{forEachSubspace:i,forEachEventList:n,collectBankReads:s,isBankNodeId:o,getParamValue:c}=r(27899),l=(e,t)=>t.map(t=>c(e,t)).filter(o),d={PROPERTY_BANK:{waitable:!0,targets:e=>(e.parameter_list||[]).map(e=>e?.input_to_receiver).filter(o)},PROPERTY_BANK_EXPRESSION:{waitable:!0,targets:e=>l(e,["RESULT","ERROR_RESULT"])},PROPERTY_BANK_COMMAND:{waitable:!0,targets:(e,t)=>((e,t)=>{let r=t();if(!r)return[];let a=[],i=new Set,n=(e.parameter_list||[]).map(e=>e?.input_to_receiver).filter(o);for(let e=0;e<n.length;e+=1){let t=n[e];if(i.has(t))continue;i.add(t);let s=r[t];s&&Object.values(s.out||{}).forEach(e=>{(e||[]).forEach(e=>{e?.id&&(e.id.includes("DATA_NODE")&&a.push(e.id),n.push(e.id))})})}return a})(e,t)},STORAGE_RETRIEVE:{waitable:!0,targets:e=>l(e,["STORAGE_RETRIEVE_RESULT"])},OPEN_FILE:{waitable:!0,targets:e=>l(e,["SAVE_PROPERTY","SAVE_DETAIL_PROPERTY","ERROR_SAVE_PROPERTY"])},SAVE_UPDATE_SNAPSHOT:{waitable:!0,targets:e=>l(e,["SNAPSHOT_SAVE_RESULT","SNAPSHOT_ERROR_RESULT"])},TRIGGER_APPLICATION_FILTER:{waitable:!0,targets:e=>l(e,["RESULT","ERROR_RESULT"])},TAKE_SCREENSHOT:{waitable:!1,targets:e=>l(e,["TAKE_SCREENSHOT_SAVE_PROPERTY"])}},p=/(^|_)RESULT$|_SAVE_PROPERTY$/;e.exports={code:"data-update-race",severity:"warning",description:"A data node is written without wait_async and read by a later action in the same event",check(e,t,r){i(e,(e,t)=>{let i,c=()=>{if(void 0===i)try{i=a(t.property_bank_calc_map||{})}catch{i=null}return i};n(e,t,({path:t,list:a})=>{let i=new Map;a.forEach((a,n)=>{if(!a||"object"!=typeof a)return;if("SYSTEM"===a.handler&&"DELAY"===a.action)return void i.clear();let l=new Set;(a.parameter_list||[]).forEach(e=>s(e?.result_from_sender,l)),l.forEach(s=>{let o=i.get(s);o&&(r({path:`${t}.${n}`,subspaceId:e,itemId:s,message:`\`${s}\` is written by action #${o.index} (${o.action}) without waiting, then read by action #${n} (${a.action}) — the read can still see the previous value.`,hint:o.waitable?`Set \`wait_async: true\` on action #${o.index} (${o.action}).`:`${o.action} ignores \`wait_async\` for its data write — insert a SYSTEM DELAY action between the two, or move the read into the data node's value-change event.`}),i.delete(s))});let u=((e,t)=>{if("SYSTEM"===e.handler){let r=d[e.action];if(!r)return null;let a=r.targets(e,t);return a.length>0?{targets:a,waitable:r.waitable}:null}let r=(e.parameter_list||[]).filter(e=>"string"==typeof e?.input_to_receiver&&p.test(e.input_to_receiver)&&o(e.result_from_sender)).map(e=>e.result_from_sender);return r.length>0?{targets:r,waitable:!0}:null})(a,c);if(!u)return;let f=!0===a.wait_async&&u.waitable;u.targets.forEach(e=>{f?i.delete(e):i.set(e,{index:n,action:a.action,waitable:u.waitable})})})})})}}},39425(e,t,r){let{forEachEventEntry:a,getParamValue:i}=r(27899),n=new Set(["Math","Date","Object","Array","Number","String","Boolean","JSON","RegExp","Intl","isNaN","isFinite","parseInt","parseFloat","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","NaN","Infinity","undefined"]);e.exports={code:"expression-global-variable",severity:"error",description:"A PROPERTY_BANK_EXPRESSION variable is named after a JS global and is silently ignored at runtime",check(e,t,r){a(e,({subspaceId:e,path:t,entry:a,index:s})=>{if(a?.handler!=="SYSTEM"||"PROPERTY_BANK_EXPRESSION"!==a.action)return;let o=i(a,"VARIABLES");Array.isArray(o)&&o.forEach(a=>{let i=a?.key;"string"==typeof i&&n.has(i)&&r({path:`${t}.${s}`,subspaceId:e,itemId:null,message:`Expression variable "${i}" is named after the JS global \`${i}\` and is silently ignored — the global takes precedence in the expression scope, so the bound value is never used.`,hint:`Rename the variable (e.g. "${i}Value") so the expression reads the bound value.`})})})}}},78899(e,t,r){let{forEachEventEntry:a}=r(27899),i=/^(?:SUBSPACE|BRICK|GENERATOR|CANVAS|DATA)_[A-Z0-9_]+$/,n=/^PROPERTY_BANK#/;e.exports={code:"mapping-outside-items",severity:"warning",description:"An event action outside BRICK_ITEMS sets result_data_mapping (ctor `mapping`) on a value the runtime will write verbatim",check(e,t,r){a(e,({subspaceId:e,subspace:t,ownerType:a,ownerId:s,path:o,entry:c,index:l})=>{let d=c?.parameter_list;if(!Array.isArray(d))return;let p=t[`${a}_map`]?.[s];("brick"!==a||p?.template_key!=="BRICK_ITEMS")&&d.forEach((t,s)=>{let c;if(t?.result_data_mapping!==!0||"string"!=typeof(c=t.result_from_sender)||i.test(c)||n.test(c))return;let d=t.input_to_receiver||"the target",u=String(t.result_from_sender),f=u.length>80?`${u.slice(0,77)}…`:u;r({path:`${o}.${l}.parameter_list.${s}`,subspaceId:e,itemId:null,message:`result_data_mapping (ctor \`mapping\`) only resolves inside BRICK_ITEMS list entries, where it names a field of the item. On ${"brick"===a?p?.template_key||"this brick":"generator"===a?p?.template_key||"this generator":"property_bank"===a?"a data node event":"canvas"===a?"a canvas event":a} the runtime writes the mapping text \`${f}\` itself into ${d}.`,hint:'Forward the event payload by its property key (`value: "BRICK_…_PROP"` / `result_from_sender: "BRICK_…_PROP"`) into a scratch data node with waitAsync, then derive the final value with PROPERTY_BANK_EXPRESSION or a data calculation.'})})})}}},40566(e,t,r){let{forEachEventEntry:a,hasParamValue:i}=r(27899),n=[{action:"STORAGE_RETRIEVE",severity:"error",isMissing:e=>!i(e,"STORAGE_RETRIEVE_RESULT"),message:"STORAGE_RETRIEVE requires a STORAGE_RETRIEVE_RESULT parameter — without it the action throws at runtime.",hint:"Add a STORAGE_RETRIEVE_RESULT parameter pointing at a data node."},{action:"TAKE_SCREENSHOT",severity:"warning",isMissing:e=>!i(e,"TAKE_SCREENSHOT_SAVE_PROPERTY"),message:"TAKE_SCREENSHOT without TAKE_SCREENSHOT_SAVE_PROPERTY is silently skipped at runtime.",hint:"Add a TAKE_SCREENSHOT_SAVE_PROPERTY parameter pointing at a data node."},{action:"OPEN_FILE",severity:"warning",isMissing:e=>!i(e,"SAVE_PROPERTY")&&!i(e,"SAVE_DETAIL_PROPERTY"),message:"OPEN_FILE has no SAVE_PROPERTY / SAVE_DETAIL_PROPERTY — the picked file is discarded.",hint:"Add SAVE_PROPERTY (file uri) or SAVE_DETAIL_PROPERTY (file detail) parameters."},{action:"OPEN_URL",severity:"warning",isMissing:e=>!i(e,"URL"),message:"OPEN_URL has no URL parameter — the action does nothing.",hint:"Add a URL parameter."}];e.exports={code:"missing-result-param",severity:"warning",description:"An action is missing the parameter that receives or drives its effect",check(e,t,r){a(e,({subspaceId:e,path:t,entry:a,index:i})=>{if(a?.handler!=="SYSTEM")return;let s=n.find(e=>e.action===a.action);s&&s.isMissing(a)&&r({path:`${t}.${i}`,subspaceId:e,itemId:null,severity:s.severity,message:s.message,hint:s.hint})})}}},92260(e,t,r){let{forEachCanvasItem:a,frameIsNumeric:i,getItemId:n,FRAME_KEYS:s}=r(27899),o=["width","height"];e.exports={code:"off-grid-frame",severity:"warning",description:"Frame values should be multiples of the 0.5 grid step",check(e,t,r){let c=t.gridStep;a(e,({subspaceId:e,canvasId:t,item:a,index:l})=>{let d=a?.frame;if(!i(d))return;let p=s.filter(e=>{let t=d[e];return(!o.includes(e)||!(t<=c))&&Math.abs(t-Math.round(t/c)*c)>.001});0!==p.length&&r({path:`subspace_map.${e}.canvas_map.${t}.item_list.${l}.frame`,subspaceId:e,itemId:n(a),message:`Frame ${p.map(e=>`${e}=${d[e]}`).join(", ")} ${1===p.length?"is":"are"} not aligned to the ${c} grid step.`,hint:`Round frame values to multiples of ${c}.`})})}}},96810(e,t,r){let{forEachCanvasItem:a,frameIsNumeric:i,getItemId:n,itemHasAnimations:s}=r(27899);e.exports={code:"out-of-bounds-frame",severity:"warning",description:"An element is fully outside the subspace layout or has a non-positive size",check(e,t,r){a(e,({subspaceId:a,subspace:o,canvasId:c,item:l,index:d})=>{let p=o.layout;if("number"!=typeof p?.width||"number"!=typeof p?.height||p.width<=0||p.height<=0)return;let u=l?.frame;if(!i(u)||!0===u.exceed_boundary||u.standby_frame||s(l))return;let f=n(l);if(f&&t.dynamicRefIds.has(f))return;let m=`subspace_map.${a}.canvas_map.${c}.item_list.${d}.frame`;if(u.width<=0||u.height<=0)return void r({path:m,subspaceId:a,itemId:f,message:`Frame has a non-positive size (width=${u.width}, height=${u.height}) — the element renders nothing.`,hint:"Give the element a positive size, or remove it if unused."});let h=a===e.root_subspace_id,b=u.x>=p.width||u.x+u.width<=0,y=u.y>=p.height||u.y+u.height<=0;(b||!h&&y)&&r({path:m,subspaceId:a,itemId:f,message:`Frame (x=${u.x}, y=${u.y}, width=${u.width}, height=${u.height}) is fully outside the ${p.width}\xd7${p.height} layout — nothing is visible.`,hint:"Move the element back into the layout, or set `exceed_boundary` if the placement is intentional."})})}}},84223(e,t,r){let{FRAME_KEYS:a,forEachCanvas:i,frameIsNumeric:n,framesAlmostEqual:s,framesIntersect:o,itemHasAnimations:c}=r(27899),l=new Set(["BRICK_TEXT","BRICK_RICH_TEXT"]),d=["linearGradientEnabled","blurEnabled"],p=e=>Object.values(e?.event_map||{}).some(e=>Array.isArray(e)&&e.length>0),u=/^backgroundColor$|^border/,f=(e,t)=>{if(e?.type!=="brick")return null;let r=t[e.brick_id];return l.has(r?.template_key)?r:null},m=e=>a.map(t=>Math.floor(e[t]/.01)),h=e=>e.join(":"),b=(e,t,r,a)=>{if(!n(t?.frame)||!f(t,r))return;let i=h(m(t.frame)),s=(e.get(i)||0)+a;s>0?e.set(i,s):e.delete(i)};e.exports={code:"redundant-rect-overlay",severity:"info",description:"A plain Rect behind a same-frame Text/RichText can be folded into the text brick",check(e,t,r){i(e,({subspaceId:e,subspace:a,canvasId:i,items:l})=>{let y,_=a.brick_map||{},E=(y=new Map,l.forEach(e=>b(y,e,_,1)),y);l.forEach((a,y)=>{if(b(E,a,_,-1),a?.type!=="brick"||!n(a.frame))return;let g=_[a.brick_id];if(g?.template_key!=="BRICK_RECT"||c(a)||t.dynamicRefIds.has(a.brick_id))return;let v={...g.property,...a.property};if(d.some(e=>v[e])||!((e,t)=>{let[r,a,i,n]=m(t);for(let t=-1;t<=1;t+=1)for(let s=-1;s<=1;s+=1)for(let o=-1;o<=1;o+=1)for(let c=-1;c<=1;c+=1)if(e.has(h([r+t,a+s,i+o,n+c])))return!0;return!1})(E,a.frame))return;let S=p(g);for(let t=y+1;t<l.length;t+=1){let c=l[t];if(!n(c?.frame))continue;let d=f(c,_);if(d&&s(a.frame,c.frame,.01)){let t={...d.property,...c.property};if(Object.keys(t).some(e=>u.test(e)&&void 0!==t[e])||S&&p(d))return;r({path:`subspace_map.${e}.canvas_map.${i}.item_list.${y}`,subspaceId:e,itemId:a.brick_id,message:`Rect \`${g.title||a.brick_id}\` has the same frame as the ${d.template_key} above it and only uses base styles`+(S?", behind its press handler.":"."),hint:S?"Make the Text brick pressable, move backgroundColor / border / radius and the press handler onto it, then remove the Rect.":"Set backgroundColor / border / radius directly on the text brick and remove the Rect."});return}if(o(a.frame,c.frame))return}})})}}},31172(e,t,r){let{autoGeneratedItemIdKind:a}=r(99470),{forEachSubspace:i}=r(27899),n="PROPERTY_BANK_",s=()=>({children:Object.create(null),ids:null}),o=(e,t)=>{let r=e;for(let e of t)r.children[e]||(r.children[e]=s()),r=r.children[e];r.ids||(r.ids=[]),r.ids.push(t)},c=(e,t,r,a)=>{let i=r.children[e[a]];if(i){i.ids&&i.ids.forEach(e=>{t.set(e,t.get(e)+1)});for(let r=a+1;r<e.length&&(i=i.children[e[r]]);r+=1)i.ids&&i.ids.forEach(e=>{t.set(e,t.get(e)+1)})}};e.exports={code:"unused-data-node",severity:"info",description:"A data node is defined but never referenced anywhere in the config",check(e,t,r){let l=JSON.stringify(e),d=[];i(e,(r,i)=>{("module"!==t.configType||r!==e.root_subspace_id)&&Object.entries(i.property_bank_map||{}).forEach(([e,t])=>{!(!t||"object"!=typeof t||t.kind===a||t.enable_remote_update||t.global_remote_update_prop||t.linkedFrom||t.alias||t.preload||i.routing?.[e]?.enabled_routing)&&(Object.values(t?.event_map||{}).some(e=>Array.isArray(e)&&e.length>0)||d.push({subspaceId:r,nodeId:e,node:t}))})});let p=((e,t)=>{let r=[...new Set(t)];if(0===r.length)return new Map;let a=new Map(r.map(e=>[e,0])),i=s(),l=s(),d=!1,p=!1;if(r.forEach(e=>{e.startsWith(n)?(o(i,e),d=!0):(o(l,e),p=!0)}),d){let t=e.indexOf(n);for(;-1!==t;)c(e,a,i,t),t=e.indexOf(n,t+1)}if(p)for(let t=0;t<e.length;t+=1)c(e,a,l,t);return a})(l,d.map(({nodeId:e})=>e));d.forEach(({subspaceId:e,nodeId:t,node:a})=>{(p.get(t)||0)>1||r({path:`subspace_map.${e}.property_bank_map.${t}`,subspaceId:e,itemId:t,message:`Data node \`${a.title||t}\` is never referenced in the config.`,hint:"Remove it, or keep it if external tooling depends on it."})})}}},60760(e,t,r){let{forEachEventEntry:a}=r(27899),i=new Set(["MESSAGE","ALERT","POPUP_RESET","TAKE_SCREENSHOT","THROW_EXCEPTION","RESTART_FOUNDATION","DYNAMIC_BRICK","DYNAMIC_BRICK_RESET","DYNAMIC_ANIMATION","DYNAMIC_ANIMATION_RESET","DYNAMIC_ANIMATION_STOP","CHANNEL_SUBSCRIBE","CHANNEL_UNSUBSCRIBE","CHANNEL_PUBLISH","DISMISS_KEYBOARD","STORAGE_SET","STORAGE_DELETE","DELAY","USE_SHARE_APPLICATION","AUTH_IN_DEVICE","REFRESH_BINDCODE","STOP_APPLICATION_FILTER"]);e.exports={code:"wait-async-no-op",severity:"info",description:"wait_async is set on an action that ignores it",check(e,t,r){a(e,({subspaceId:e,path:t,entry:a,index:n})=>{a?.handler!=="SYSTEM"||!0!==a.wait_async||i.has(a.action)&&r({path:`${t}.${n}`,subspaceId:e,itemId:null,message:"DELAY"===a.action?"DELAY always waits for its timeout — `wait_async: true` is redundant.":`\`wait_async: true\` has no effect on ${a.action}; the action does not block the chain.`,hint:"DELAY"===a.action?"Remove the redundant flag.":"Remove the flag, or restructure if you relied on it for sequencing."})})}}},59707(e,t,r){let{forEachCanvas:a,frameIsNumeric:i,frameContains:n,itemHasAnimations:s}=r(27899);e.exports={code:"z-order-cover",severity:"info",description:"A later opaque element fully covers an earlier pressable element",check(e,t,r){a(e,({subspaceId:e,subspace:a,canvasId:o,items:c})=>{let l=a.brick_map||{},d=[];if(c.forEach((e,t)=>{if(e?.type!=="brick"||!i(e.frame))return;let r=l[e.brick_id];r&&Object.entries(r?.event_map||{}).some(([e,t])=>e.includes("_ON_PRESS")&&Array.isArray(t)&&t.length>0)&&d.push({item:e,index:t,brick:r})}),0===d.length)return;let p=t.dynamicRefIds,u=c.map((e,t)=>((e,t,r,a)=>{let n;if(e?.type!=="brick"||!i(e.frame)||s(e)||a.has(e.brick_id))return null;let o=r[e.brick_id],c={...o?.property,...e.property};return"string"==typeof(n=c.backgroundColor)&&(/^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*1(?:\.0+)?\s*\)$/.test(n)||/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(n)||/^#[0-9a-fA-F]{6}$/.test(n))&&(void 0===c.opacity||1===c.opacity)?{index:t,item:e,brick:o,frame:e.frame}:null})(e,t,l,p)).filter(Boolean),f=(e=>{let t=Array(e.length),r=1/0,a=1/0,i=-1/0,n=-1/0,s=-1/0,o=-1/0;for(let c=e.length-1;c>=0;c-=1){let{frame:l}=e[c];r=Math.min(r,l.x),a=Math.min(a,l.y),i=Math.max(i,l.x+l.width),n=Math.max(n,l.y+l.height),s=Math.max(s,l.width),o=Math.max(o,l.height),t[c]={minX:r,minY:a,maxRight:i,maxBottom:n,maxWidth:s,maxHeight:o}}return t})(u),m=0;d.forEach(({item:t,index:a,brick:i})=>{let c,l;if(!(s(t)||p.has(t.brick_id))){for(;m<u.length&&u[m].index<=a;)m+=1;if(c=f[m],l=t.frame,c&&c.minX<=l.x+.01&&c.minY<=l.y+.01&&c.maxRight>=l.x+l.width-.01&&c.maxBottom>=l.y+l.height-.01&&c.maxWidth>=l.width-.02&&c.maxHeight>=l.height-.02)for(let s=m;s<u.length;s+=1){let c=u[s];if(n(c.frame,t.frame))return void r({path:`subspace_map.${e}.canvas_map.${o}.item_list.${a}`,subspaceId:e,itemId:t.brick_id,message:`Pressable \`${i.title||t.brick_id}\` is fully covered by the opaque \`${c.brick?.title||c.item.brick_id}\` later in the item list — it is invisible and untappable.`,hint:"Reorder the items, shrink the covering element, or remove the hidden one."})}}})})}}},30302(e,t){t.templateSupportInnerRefs=[{key:"BRICK_ITEMS",dataKey:"items",listProps:["brickList","brickDetails"]}]}};