@uniformdev/uniform-mcp 20.60.0 → 20.60.2
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/dist/index.mjs +141 -119
- package/dist/server.mjs +677 -655
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -94,7 +94,7 @@ See https://reactjs.org/docs/forms.html#controlled-components`),Z=k.initialPage?
|
|
|
94
94
|
`),r=[];for(let o of n)r.push("> "+o);return r.join(`
|
|
95
95
|
`)},regExp:Rne,replace:(t,e,n,r)=>{if(r){let i=t.getPreviousSibling();if(Fu(i))return i.splice(i.getChildrenSize(),0,[Gn(),...e]),void t.remove()}let o=Y4();o.append(...e),t.replace(o),r||o.select(0,0)},type:"element"},jne={dependencies:[Vl],export:t=>{if(!eg(t))return null;let e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
|
|
96
96
|
`+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:bO},regExpStart:Pne,replace:(t,e,n,r,o,i)=>{let s,a;if(!e&&o){if(o.length===1)r?(s=Rs(),a=n[1]+o[0]):(s=Rs(n[1]),a=o[0].startsWith(" ")?o[0].slice(1):o[0]);else{if(s=Rs(n[1]),o[0].trim().length===0)for(;o.length>0&&!o[0].length;)o.shift();else o[0]=o[0].startsWith(" ")?o[0].slice(1):o[0];for(;o.length>0&&!o[o.length-1].length;)o.pop();a=o.join(`
|
|
97
|
-
`)}let l=gt(a);s.append(l),t.append(s)}else e&&Fne(l=>Rs(l?l[1]:void 0))(t,e,n,i)},type:"multiline-element"},Vne={dependencies:[Na,$a],export:(t,e)=>Zr(t)?O5(t,e,0):null,regExp:Ine,replace:CO("bullet"),type:"element"},k_e={dependencies:[Na,$a],export:(t,e)=>Zr(t)?O5(t,e,0):null,regExp:kne,replace:CO("check"),type:"element"},Une={dependencies:[Na,$a],export:(t,e)=>Zr(t)?O5(t,e,0):null,regExp:One,replace:CO("number"),type:"element"},Hne={format:["code"],tag:"`",type:"text-format"},Kne={format:["highlight"],tag:"==",type:"text-format"},Wne={format:["bold","italic"],tag:"***",type:"text-format"},Gne={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Yne={format:["bold"],tag:"**",type:"text-format"},Zne={format:["bold"],intraword:!1,tag:"__",type:"text-format"},qne={format:["strikethrough"],tag:"~~",type:"text-format"},Jne={format:["italic"],tag:"*",type:"text-format"},Xne={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Qne={dependencies:[E5],export:(t,e,n)=>{if(!w5(t)||S5(t))return null;let r=t.getTitle(),o=e(t);return r?`[${o}](${t.getURL()} "${r}")`:`[${o}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{let[,n,r,o]=e,i=C5(r,{title:o}),s=n.split("[").length-1,a=n.split("]").length-1,l=n,c="";if(s<a)return;if(s>a){let d=n.split("[");c="["+d[0],l=d.slice(1).join("[")}let u=gt(l);return u.setFormat(t.getFormat()),i.append(u),t.replace(i),c&&i.insertBefore(gt(c)),u},trigger:")",type:"text-match"},ere=[Bne,zne,Vne,Une],tre=[jne],nre=[Hne,Wne,Gne,Yne,Zne,Kne,Jne,Xne,qne],rre=[Qne],I5=[...ere,...tre,...nre,...rre]});var Un,ogt,igt,sgt,agt,lgt,cgt,ugt,are,dgt,lre,fgt,pgt,mgt,ggt,cre,hgt,ure,dre,vgt,fre,ygt,bgt,pre,xgt,mre=de(async()=>{"use strict";Un=await(process.env.NODE_ENV!=="production"?_ne().then(()=>Tne):sre().then(()=>ire)),ogt=Un.$convertFromMarkdownString,igt=Un.$convertToMarkdownString,sgt=Un.BOLD_ITALIC_STAR,agt=Un.BOLD_ITALIC_UNDERSCORE,lgt=Un.BOLD_STAR,cgt=Un.BOLD_UNDERSCORE,ugt=Un.CHECK_LIST,are=Un.CODE,dgt=Un.ELEMENT_TRANSFORMERS,lre=Un.HEADING,fgt=Un.HIGHLIGHT,pgt=Un.INLINE_CODE,mgt=Un.ITALIC_STAR,ggt=Un.ITALIC_UNDERSCORE,cre=Un.LINK,hgt=Un.MULTILINE_ELEMENT_TRANSFORMERS,ure=Un.ORDERED_LIST,dre=Un.QUOTE,vgt=Un.STRIKETHROUGH,fre=Un.TEXT_FORMAT_TRANSFORMERS,ygt=Un.TEXT_MATCH_TRANSFORMERS,bgt=Un.TRANSFORMERS,pre=Un.UNORDERED_LIST,xgt=Un.registerMarkdownShortcuts});var Die=_e((
|
|
97
|
+
`)}let l=gt(a);s.append(l),t.append(s)}else e&&Fne(l=>Rs(l?l[1]:void 0))(t,e,n,i)},type:"multiline-element"},Vne={dependencies:[Na,$a],export:(t,e)=>Zr(t)?O5(t,e,0):null,regExp:Ine,replace:CO("bullet"),type:"element"},k_e={dependencies:[Na,$a],export:(t,e)=>Zr(t)?O5(t,e,0):null,regExp:kne,replace:CO("check"),type:"element"},Une={dependencies:[Na,$a],export:(t,e)=>Zr(t)?O5(t,e,0):null,regExp:One,replace:CO("number"),type:"element"},Hne={format:["code"],tag:"`",type:"text-format"},Kne={format:["highlight"],tag:"==",type:"text-format"},Wne={format:["bold","italic"],tag:"***",type:"text-format"},Gne={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Yne={format:["bold"],tag:"**",type:"text-format"},Zne={format:["bold"],intraword:!1,tag:"__",type:"text-format"},qne={format:["strikethrough"],tag:"~~",type:"text-format"},Jne={format:["italic"],tag:"*",type:"text-format"},Xne={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Qne={dependencies:[E5],export:(t,e,n)=>{if(!w5(t)||S5(t))return null;let r=t.getTitle(),o=e(t);return r?`[${o}](${t.getURL()} "${r}")`:`[${o}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{let[,n,r,o]=e,i=C5(r,{title:o}),s=n.split("[").length-1,a=n.split("]").length-1,l=n,c="";if(s<a)return;if(s>a){let d=n.split("[");c="["+d[0],l=d.slice(1).join("[")}let u=gt(l);return u.setFormat(t.getFormat()),i.append(u),t.replace(i),c&&i.insertBefore(gt(c)),u},trigger:")",type:"text-match"},ere=[Bne,zne,Vne,Une],tre=[jne],nre=[Hne,Wne,Gne,Yne,Zne,Kne,Jne,Xne,qne],rre=[Qne],I5=[...ere,...tre,...nre,...rre]});var Un,ogt,igt,sgt,agt,lgt,cgt,ugt,are,dgt,lre,fgt,pgt,mgt,ggt,cre,hgt,ure,dre,vgt,fre,ygt,bgt,pre,xgt,mre=de(async()=>{"use strict";Un=await(process.env.NODE_ENV!=="production"?_ne().then(()=>Tne):sre().then(()=>ire)),ogt=Un.$convertFromMarkdownString,igt=Un.$convertToMarkdownString,sgt=Un.BOLD_ITALIC_STAR,agt=Un.BOLD_ITALIC_UNDERSCORE,lgt=Un.BOLD_STAR,cgt=Un.BOLD_UNDERSCORE,ugt=Un.CHECK_LIST,are=Un.CODE,dgt=Un.ELEMENT_TRANSFORMERS,lre=Un.HEADING,fgt=Un.HIGHLIGHT,pgt=Un.INLINE_CODE,mgt=Un.ITALIC_STAR,ggt=Un.ITALIC_UNDERSCORE,cre=Un.LINK,hgt=Un.MULTILINE_ELEMENT_TRANSFORMERS,ure=Un.ORDERED_LIST,dre=Un.QUOTE,vgt=Un.STRIKETHROUGH,fre=Un.TEXT_FORMAT_TRANSFORMERS,ygt=Un.TEXT_MATCH_TRANSFORMERS,bgt=Un.TRANSFORMERS,pre=Un.UNORDERED_LIST,xgt=Un.registerMarkdownShortcuts});var Die=_e((zwt,Nie)=>{"use strict";var pLe=Object.prototype.hasOwnProperty,mLe=Object.prototype.toString;Nie.exports=function(e,n,r){if(mLe.call(n)!=="[object Function]")throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var i=0;i<o;i++)n.call(r,e[i],i,e);else for(var s in e)pLe.call(e,s)&&n.call(r,e[s],s,e)}});var QO=_e((jwt,Lie)=>{"use strict";var gLe=Die();Lie.exports=_n;function _n(t,e,n){if(arguments.length===3)return _n.set(t,e,n);if(arguments.length===2)return _n.get(t,e);var r=_n.bind(_n,t);for(var o in _n)_n.hasOwnProperty(o)&&(r[o]=_n[o].bind(r,t));return r}_n.get=function(e,n){for(var r=Array.isArray(n)?n:_n.parse(n),o=0;o<r.length;++o){var i=r[o];if(!(typeof e=="object"&&i in e))throw new Error("Invalid reference token: "+i);e=e[i]}return e};_n.set=function(e,n,r){var o=Array.isArray(n)?n:_n.parse(n),i=o[0];if(o.length===0)throw Error("Can not set the root object");for(var s=0;s<o.length-1;++s){var a=o[s];typeof a!="string"&&typeof a!="number"&&(a=String(a)),!(a==="__proto__"||a==="constructor"||a==="prototype")&&(a==="-"&&Array.isArray(e)&&(a=e.length),i=o[s+1],a in e||(i.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return i==="-"&&Array.isArray(e)&&(i=e.length),e[i]=r,this};_n.remove=function(t,e){var n=Array.isArray(e)?e:_n.parse(e),r=n[n.length-1];if(r===void 0)throw new Error('Invalid JSON pointer for remove: "'+e+'"');var o=_n.get(t,n.slice(0,-1));if(Array.isArray(o)){var i=+r;if(r===""&&isNaN(i))throw new Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(o,i,1)}else delete o[r]};_n.dict=function(e,n){var r={};return _n.walk(e,function(o,i){r[i]=o},n),r};_n.walk=function(e,n,r){var o=[];r=r||function(i){var s=Object.prototype.toString.call(i);return s==="[object Object]"||s==="[object Array]"},function i(s){gLe(s,function(a,l){o.push(String(l)),r(a)?i(a):n(a,_n.compile(o)),o.pop()})}(e)};_n.has=function(e,n){try{_n.get(e,n)}catch{return!1}return!0};_n.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")};_n.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};_n.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(_n.unescape)};_n.compile=function(e){return e.length===0?"":"/"+e.map(_n.escape).join("/")}});import{McpServer as cOe}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as uOe}from"@modelcontextprotocol/sdk/server/stdio.js";var xx={name:"@uniformdev/uniform-mcp",version:"20.60.2",description:"Uniform MCP Server",license:"SEE LICENSE IN LICENSE.txt",bin:{"uniform-mcp":"./dist/index.mjs"},exports:{".":{types:"./dist/index.d.mts",import:"./dist/index.mjs"},"./server":{types:"./dist/server.d.mts",import:"./dist/server.mjs"}},sideEffects:!1,scripts:{build:"run-p build:stdio build:server","build:stdio":"tsup --config tsup.stdio.config.ts","build:server":"tsup --config tsup.server.config.ts",dev:"tsup --watch --config tsup.stdio.config.ts",clean:"rimraf dist",lint:'eslint "src/**/*.{js,ts,tsx}"',format:'prettier --write "src/**/*.{js,ts,tsx}"',mcp:"node dist/index.mjs"},dependencies:{"@modelcontextprotocol/sdk":"1.25.2","@types/uuid":"9.0.4","@uniformdev/canvas":"workspace:*","@uniformdev/project-map":"workspace:*","fast-json-patch":"3.1.1",immer:"10.1.3",linkedom:"0.18.12",uuid:"9.0.1",zod:"3.25.76"},files:["/dist"],publishConfig:{access:"public"},devDependencies:{"@uniformdev/design-system":"workspace:*","@uniformdev/files":"workspace:*","@uniformdev/mesh-edgehancer-sdk":"workspace:*","@uniformdev/richtext":"workspace:*"}};var ik=I(ok());var sk=(0,ik.default)(6),Cx=class t extends Error{constructor(n,r,o,i,s,a){super(`${n}
|
|
98
98
|
${i}${s?" "+s:""} (${r} ${o}${a?` Request ID: ${a}`:""})`);this.errorMessage=n;this.fetchMethod=r;this.fetchUri=o;this.statusCode=i;this.statusText=s;this.requestId=a;Object.setPrototypeOf(this,t.prototype)}};var Sx=class t{options;constructor(e){if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");let n=e.fetch;if(!n)if(typeof window<"u")n=window.fetch.bind(window);else if(typeof fetch<"u")n=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...e,fetch:n,apiHost:this.ensureApiHost(e.apiHost),apiKey:e.apiKey??null,projectId:e.projectId??null,bearerToken:e.bearerToken??null,limitPolicy:e.limitPolicy??sk,bypassCache:e.bypassCache??!1}}async apiClient(e,n){return(await this.apiClientWithResponse(e,n)).body}async apiClientWithResponse(e,n){return this.options.limitPolicy(async()=>{let r=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(r["x-bypass-cache"]="true");let{fetch:o,signal:i}=this.options,a=await ble(()=>o(e.toString(),{...n,signal:i,headers:{...n?.headers,...r}}));if(!a.ok){let l="";try{let c=await a.text();try{let u=JSON.parse(c);u.errorMessage?l=Array.isArray(u.errorMessage)?u.errorMessage.join(", "):u.errorMessage:l=c}catch{l=c}}catch{l="General error"}throw new Cx(l,n?.method??"GET",e.toString(),a.status,a.statusText,t.getRequestId(a))}return n?.expectNoContent?{response:a,body:null}:{response:a,body:await a.json()}})}createUrl(e,n,r){let o=new URL(`${r??this.options.apiHost}${e}`);return Object.entries(n??{}).forEach(([i,s])=>{typeof s<"u"&&s!==null&&o.searchParams.append(i,Array.isArray(s)?s.join(","):s?.toString()??"")}),o}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let n=e.headers.get("apigw-requestid");if(n)return n}};async function ble(t){let n=5,r;for(;n>0&&(r=await t(),r.status===429);){let o=0;try{let a=r.clone(),l=a.headers.get("date"),c=l?new Date(l).getTime():void 0,d=(await a.json())?.info?.reset;typeof c=="number"&&typeof d=="number"&&(o=Math.max(0,Math.min(Math.round(1.1*(d-c)),1e4)))}catch{}let i=Math.pow(2,5-n)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(a=>setTimeout(a,Math.max(0,o+s))),n-=1}return r}var wx=class extends Sx{telemetryContext;constructor(e){e.apiHost||(e.apiHost="https://ai.uniform.global"),super(e),this.telemetryContext=e.telemetryContext}async invoke(e,n){let r={};if(this.telemetryContext){let{threadId:i,uniformClient:s,userAgent:a}=this.telemetryContext;i&&(r["x-thread-id"]=i),s&&(r["x-uniform-client"]=s),a&&(r["user-agent"]=a)}return(await this.apiClientWithResponse(new URL(`/projects/${this.options.projectId}/tools/${e}`,this.options.apiHost),{method:"POST",body:n?JSON.stringify(n):void 0,headers:Object.keys(r).length>0?r:void 0})).body}};var ck=process.env.UNIFORM_API_KEY,ZE=process.env.UNIFORM_PROJECT_ID,ak=process.env.UNIFORM_API_HOST??"https://uniform.app",xle=process.env.UNIFORM_AI_API_HOST??"https://ai.uniform.global";if(!ck&&process.env.NODE_ENV!=="test")throw new Error("UNIFORM_API_KEY is not set");if(!ZE&&process.env.NODE_ENV!=="test")throw new Error("UNIFORM_PROJECT_ID is not set");var lk={apiHost:ak,apiKey:ck,projectId:ZE,baseWebUrl:`${ak}/projects/${ZE}`},uk={...lk,toolInvoker:new wx({...lk,apiHost:xle,telemetryContext:{userAgent:`uniform-mcp/${xx.version}`,uniformClient:"mcp"}})};import{z as jp}from"zod";var dk={displayName:"Ask Una",description:"Ask the Uniform Docs assistant, Una, questions about Uniform features, usage, and best practices.",inputSchema:jp.object({question:jp.string().describe(`Prompt for the uniform docs AI assistant.
|
|
99
99
|
The prompt should describe the information you are looking for.
|
|
100
100
|
You may be detailed but do not use more than 100 words.
|
|
@@ -128,7 +128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
128
128
|
monaco.config({ paths: { vs: '...' } })
|
|
129
129
|
|
|
130
130
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
131
|
-
`},Uee=jee(SEe)(Hee),wEe={config:xEe},Kee=wEe;var EEe=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(i,s){return s(i)},o)}},Wee=EEe;function Gee(t,e){return Object.keys(e).forEach(function(n){e[n]instanceof Object&&t[n]&&Object.assign(e[n],Gee(t[n],e[n]))}),FM(FM({},t),e)}var Yee=Gee;var TEe={type:"cancelation",msg:"operation is manually canceled"};function _Ee(t){var e=!1,n=new Promise(function(r,o){t.then(function(i){return e?o(TEe):r(i)}),t.catch(o)});return n.cancel=function(){return e=!0},n}var n5=_Ee;var $Ee=Bee.create({config:zee,isInitialized:!1,resolve:null,reject:null,monaco:null}),Zee=Ree($Ee,2),ab=Zee[0],r5=Zee[1];function NEe(t){var e=Kee.config(t),n=e.monaco,r=kee(e,["monaco"]);r5(function(o){return{config:Yee(o.config,r),monaco:n}})}function DEe(){var t=ab(function(e){var n=e.monaco,r=e.isInitialized,o=e.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!t.isInitialized){if(r5({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),n5(BM);if(window.monaco&&window.monaco.editor)return qee(window.monaco),t.resolve(window.monaco),n5(BM);Wee(LEe,MEe)(OEe)}return n5(BM)}function LEe(t){return document.body.appendChild(t)}function AEe(t){var e=document.createElement("script");return t&&(e.src=t),e}function MEe(t){var e=ab(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=AEe("".concat(e.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=e.reject,n}function OEe(){var t=ab(function(n){var r=n.config,o=n.resolve,i=n.reject;return{config:r,resolve:o,reject:i}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(n){qee(n),t.resolve(n)},function(n){t.reject(n)})}function qee(t){ab().monaco||r5({monaco:t})}function IEe(){return ab(function(t){var e=t.monaco;return e})}var BM=new Promise(function(t,e){return r5({resolve:t,reject:e})}),kEe={config:NEe,init:DEe,__getMonacoInstance:IEe},vp=kEe;var Jee=I(V(),1),oo=I(V(),1);var Xee=I(V(),1),i5=I(V(),1),Qee=I(V(),1),tte=I(V(),1),s5=I(V(),1),qEe=I(V(),1);var ote=I(V(),1),tr=I(V(),1);var a5=I(V(),1),REe={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},zM=REe,PEe={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},FEe=PEe;function BEe({children:t}){return Qee.default.createElement("div",{style:FEe.container},t)}var zEe=BEe,jEe=zEe;function VEe({width:t,height:e,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:s}){return i5.default.createElement("section",{style:{...zM.wrapper,width:t,height:e},...s},!n&&i5.default.createElement(jEe,null,r),i5.default.createElement("div",{ref:o,style:{...zM.fullWidth,...!n&&zM.hide},className:i}))}var UEe=VEe,ete=(0,Xee.memo)(UEe);function HEe(t){(0,tte.useEffect)(t,[])}var nte=HEe;function KEe(t,e,n=!0){let r=(0,s5.useRef)(!0);(0,s5.useEffect)(r.current||!n?()=>{r.current=!1}:t,e)}var Ri=KEe;function lb(){}function Xh(t,e,n,r){return WEe(t,r)||GEe(t,e,n,r)}function WEe(t,e){return t.editor.getModel(rte(t,e))}function GEe(t,e,n,r){return t.editor.createModel(e,n,r?rte(t,r):void 0)}function rte(t,e){return t.Uri.parse(e)}function YEe({original:t,modified:e,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:f="100%",width:p="100%",className:m,wrapperProps:g={},beforeMount:h=lb,onMount:v=lb}){let[y,b]=(0,oo.useState)(!1),[S,C]=(0,oo.useState)(!0),w=(0,oo.useRef)(null),E=(0,oo.useRef)(null),T=(0,oo.useRef)(null),$=(0,oo.useRef)(v),_=(0,oo.useRef)(h),N=(0,oo.useRef)(!1);nte(()=>{let z=vp.init();return z.then(G=>(E.current=G)&&C(!1)).catch(G=>G?.type!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>w.current?P():z.cancel()}),Ri(()=>{if(w.current&&E.current){let z=w.current.getOriginalEditor(),G=Xh(E.current,t||"",r||n||"text",i||"");G!==z.getModel()&&z.setModel(G)}},[i],y),Ri(()=>{if(w.current&&E.current){let z=w.current.getModifiedEditor(),G=Xh(E.current,e||"",o||n||"text",s||"");G!==z.getModel()&&z.setModel(G)}},[s],y),Ri(()=>{let z=w.current.getModifiedEditor();z.getOption(E.current.editor.EditorOption.readOnly)?z.setValue(e||""):e!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[e],y),Ri(()=>{w.current?.getModel()?.original.setValue(t||"")},[t],y),Ri(()=>{let{original:z,modified:G}=w.current.getModel();E.current.editor.setModelLanguage(z,r||n||"text"),E.current.editor.setModelLanguage(G,o||n||"text")},[n,r,o],y),Ri(()=>{E.current?.editor.setTheme(c)},[c],y),Ri(()=>{w.current?.updateOptions(d)},[d],y);let R=(0,oo.useCallback)(()=>{if(!E.current)return;_.current(E.current);let z=Xh(E.current,t||"",r||n||"text",i||""),G=Xh(E.current,e||"",o||n||"text",s||"");w.current?.setModel({original:z,modified:G})},[n,e,o,t,r,i,s]),B=(0,oo.useCallback)(()=>{!N.current&&T.current&&(w.current=E.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...d}),R(),E.current?.editor.setTheme(c),b(!0),N.current=!0)},[d,c,R]);(0,oo.useEffect)(()=>{y&&$.current(w.current,E.current)},[y]),(0,oo.useEffect)(()=>{!S&&!y&&B()},[S,y,B]);function P(){let z=w.current?.getModel();a||z?.original?.dispose(),l||z?.modified?.dispose(),w.current?.dispose()}return oo.default.createElement(ete,{width:p,height:f,isEditorReady:y,loading:u,_ref:T,className:m,wrapperProps:g})}var ZEe=YEe,$pt=(0,Jee.memo)(ZEe);function JEe(t){let e=(0,a5.useRef)();return(0,a5.useEffect)(()=>{e.current=t},[t]),e.current}var XEe=JEe,o5=new Map;function QEe({defaultValue:t,defaultLanguage:e,defaultPath:n,value:r,language:o,path:i,theme:s="light",line:a,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:p="100%",height:m="100%",className:g,wrapperProps:h={},beforeMount:v=lb,onMount:y=lb,onChange:b,onValidate:S=lb}){let[C,w]=(0,tr.useState)(!1),[E,T]=(0,tr.useState)(!0),$=(0,tr.useRef)(null),_=(0,tr.useRef)(null),N=(0,tr.useRef)(null),R=(0,tr.useRef)(y),B=(0,tr.useRef)(v),P=(0,tr.useRef)(),z=(0,tr.useRef)(r),G=XEe(i),k=(0,tr.useRef)(!1),F=(0,tr.useRef)(!1);nte(()=>{let L=vp.init();return L.then(A=>($.current=A)&&T(!1)).catch(A=>A?.type!=="cancelation"&&console.error("Monaco initialization: error:",A)),()=>_.current?M():L.cancel()}),Ri(()=>{let L=Xh($.current,t||r||"",e||o||"",i||n||"");L!==_.current?.getModel()&&(d&&o5.set(G,_.current?.saveViewState()),_.current?.setModel(L),d&&_.current?.restoreViewState(o5.get(i)))},[i],C),Ri(()=>{_.current?.updateOptions(c)},[c],C),Ri(()=>{!_.current||r===void 0||(_.current.getOption($.current.editor.EditorOption.readOnly)?_.current.setValue(r):r!==_.current.getValue()&&(F.current=!0,_.current.executeEdits("",[{range:_.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),_.current.pushUndoStop(),F.current=!1))},[r],C),Ri(()=>{let L=_.current?.getModel();L&&o&&$.current?.editor.setModelLanguage(L,o)},[o],C),Ri(()=>{a!==void 0&&_.current?.revealLine(a)},[a],C),Ri(()=>{$.current?.editor.setTheme(s)},[s],C);let Z=(0,tr.useCallback)(()=>{if(!(!N.current||!$.current)&&!k.current){B.current($.current);let L=i||n,A=Xh($.current,r||t||"",e||o||"",L||"");_.current=$.current?.editor.create(N.current,{model:A,automaticLayout:!0,...c},u),d&&_.current.restoreViewState(o5.get(L)),$.current.editor.setTheme(s),a!==void 0&&_.current.revealLine(a),w(!0),k.current=!0}},[t,e,n,r,o,i,c,u,d,s,a]);(0,tr.useEffect)(()=>{C&&R.current(_.current,$.current)},[C]),(0,tr.useEffect)(()=>{!E&&!C&&Z()},[E,C,Z]),z.current=r,(0,tr.useEffect)(()=>{C&&b&&(P.current?.dispose(),P.current=_.current?.onDidChangeModelContent(L=>{F.current||b(_.current.getValue(),L)}))},[C,b]),(0,tr.useEffect)(()=>{if(C){let L=$.current.editor.onDidChangeMarkers(A=>{let K=_.current.getModel()?.uri;if(K&&A.find(J=>J.path===K.path)){let J=$.current.editor.getModelMarkers({resource:K});S?.(J)}});return()=>{L?.dispose()}}return()=>{}},[C,S]);function M(){P.current?.dispose(),f?d&&o5.set(i,_.current.saveViewState()):_.current.getModel()?.dispose(),_.current.dispose()}return tr.default.createElement(ete,{width:p,height:m,isEditorReady:C,loading:l,_ref:N,className:g,wrapperProps:h})}var eTe=QEe,Lpt=(0,ote.memo)(eTe);var Fi=I(V()),vte=I(Bs());var cb=I(V());var ite=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function l5(t){let e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function jM(t){return"nodeType"in t}function Pi(t){var e,n;return t?l5(t)?t:jM(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function VM(t){let{Document:e}=Pi(t);return t instanceof e}function UM(t){return l5(t)?!1:t instanceof Pi(t).HTMLElement}function HM(t){return t instanceof Pi(t).SVGElement}function Qh(t){return t?l5(t)?t.document:jM(t)?VM(t)?t:UM(t)||HM(t)?t.ownerDocument:document:document:document}function ste(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{let a=Object.entries(s);for(let[l,c]of a){let u=i[l];u!=null&&(i[l]=u+t*c)}return i},{...e})}}var ate=ste(1),ub=ste(-1);function tTe(t){return"clientX"in t&&"clientY"in t}function KM(t){if(!t)return!1;let{KeyboardEvent:e}=Pi(t.target);return e&&t instanceof e}function nTe(t){if(!t)return!1;let{TouchEvent:e}=Pi(t.target);return e&&t instanceof e}function c5(t){if(nTe(t)){if(t.touches&&t.touches.length){let{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){let{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return tTe(t)?{x:t.clientX,y:t.clientY}:null}var WM=I(V());var lte;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(lte||(lte={}));var db=Object.freeze({x:0,y:0});function iTe(t){if(t.startsWith("matrix3d(")){let e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){let e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function sTe(t,e,n){let r=iTe(e);if(!r)return t;let{scaleX:o,scaleY:i,x:s,y:a}=r,l=t.left-s-(1-o)*parseFloat(n),c=t.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?t.width/o:t.width,d=i?t.height/i:t.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}var aTe={ignoreTransform:!1};function f5(t,e){e===void 0&&(e=aTe);let n=t.getBoundingClientRect();if(e.ignoreTransform){let{transform:c,transformOrigin:u}=Pi(t).getComputedStyle(t);c&&(n=sTe(n,c,u))}let{top:r,left:o,width:i,height:s,bottom:a,right:l}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:l}}function cte(t){return f5(t,{ignoreTransform:!0})}function lTe(t,e){return e===void 0&&(e=Pi(t).getComputedStyle(t)),e.position==="fixed"}function cTe(t,e){e===void 0&&(e=Pi(t).getComputedStyle(t));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=e[o];return typeof i=="string"?n.test(i):!1})}function yte(t,e){let n=[];function r(o){if(e!=null&&n.length>=e||!o)return n;if(VM(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!UM(o)||HM(o)||n.includes(o))return n;let i=Pi(t).getComputedStyle(o);return o!==t&&cTe(o,i)&&n.push(o),lTe(o,i)?n:r(o.parentNode)}return t?r(t):n}function uTe(t){let[e]=yte(t,1);return e??null}var e0;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(e0||(e0={}));function dTe(t){return!ite||!t?!1:t===document.scrollingElement}function fTe(t){let e={x:0,y:0},n=dTe(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},r={x:t.scrollWidth-n.width,y:t.scrollHeight-n.height},o=t.scrollTop<=e.y,i=t.scrollLeft<=e.x,s=t.scrollTop>=r.y,a=t.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:e}}function pTe(t){if(t===document.scrollingElement){let{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}let{top:e,left:n,right:r,bottom:o}=t.getBoundingClientRect();return{top:e,left:n,right:r,bottom:o,width:t.clientWidth,height:t.clientHeight}}function mTe(t,e){if(e===void 0&&(e=f5),!t)return;let{top:n,left:r,bottom:o,right:i}=e(t);uTe(t)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}var yp=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=e}add(e,n,r){var o;(o=this.target)==null||o.addEventListener(e,n,r),this.listeners.push([e,n,r])}};function gTe(t){let{EventTarget:e}=Pi(t);return t instanceof e?t:Qh(t)}function GM(t,e){let n=Math.abs(t.x),r=Math.abs(t.y);return typeof e=="number"?Math.sqrt(n**2+r**2)>e:"x"in e&&"y"in e?n>e.x&&r>e.y:"x"in e?n>e.x:"y"in e?r>e.y:!1}var ds;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(ds||(ds={}));function ute(t){t.preventDefault()}function hTe(t){t.stopPropagation()}var Bt;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Bt||(Bt={}));var bte={start:[Bt.Space,Bt.Enter],cancel:[Bt.Esc],end:[Bt.Space,Bt.Enter,Bt.Tab]},vTe=(t,e)=>{let{currentCoordinates:n}=e;switch(t.code){case Bt.Right:return{...n,x:n.x+25};case Bt.Left:return{...n,x:n.x-25};case Bt.Down:return{...n,y:n.y+25};case Bt.Up:return{...n,y:n.y-25}}},u5=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:n}}=e;this.props=e,this.listeners=new yp(Qh(n)),this.windowListeners=new yp(Pi(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ds.Resize,this.handleCancel),this.windowListeners.add(ds.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ds.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:n}=this.props,r=e.node.current;r&&mTe(r),n(db)}handleKeyDown(e){if(KM(e)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=bte,coordinateGetter:s=vTe,scrollBehavior:a="smooth"}=o,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}let{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:db;this.referenceCoordinates||(this.referenceCoordinates=u);let d=s(e,{active:n,context:r.current,currentCoordinates:u});if(d){let f=ub(d,u),p={x:0,y:0},{scrollableAncestors:m}=r.current;for(let g of m){let h=e.code,{isTop:v,isRight:y,isLeft:b,isBottom:S,maxScroll:C,minScroll:w}=fTe(g),E=pTe(g),T={x:Math.min(h===Bt.Right?E.right-E.width/2:E.right,Math.max(h===Bt.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(h===Bt.Down?E.bottom-E.height/2:E.bottom,Math.max(h===Bt.Down?E.top:E.top+E.height/2,d.y))},$=h===Bt.Right&&!y||h===Bt.Left&&!b,_=h===Bt.Down&&!S||h===Bt.Up&&!v;if($&&T.x!==d.x){let N=g.scrollLeft+f.x,R=h===Bt.Right&&N<=C.x||h===Bt.Left&&N>=w.x;if(R&&!f.y){g.scrollTo({left:N,behavior:a});return}R?p.x=g.scrollLeft-N:p.x=h===Bt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,p.x&&g.scrollBy({left:-p.x,behavior:a});break}else if(_&&T.y!==d.y){let N=g.scrollTop+f.y,R=h===Bt.Down&&N<=C.y||h===Bt.Up&&N>=w.y;if(R&&!f.x){g.scrollTo({top:N,behavior:a});return}R?p.y=g.scrollTop-N:p.y=h===Bt.Down?g.scrollTop-C.y:g.scrollTop-w.y,p.y&&g.scrollBy({top:-p.y,behavior:a});break}}this.handleMove(e,ate(ub(d,this.referenceCoordinates),p))}}}handleMove(e,n){let{onMove:r}=this.props;e.preventDefault(),r(n)}handleEnd(e){let{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){let{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};u5.activators=[{eventName:"onKeyDown",handler:(t,e,n)=>{let{keyboardCodes:r=bte,onActivation:o}=e,{active:i}=n,{code:s}=t.nativeEvent;if(r.start.includes(s)){let a=i.activatorNode.current;return a&&t.target!==a?!1:(t.preventDefault(),o?.({event:t.nativeEvent}),!0)}return!1}}];function dte(t){return!!(t&&"distance"in t)}function fte(t){return!!(t&&"delay"in t)}var fb=class{constructor(e,n,r){var o;r===void 0&&(r=gTe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=n;let{event:i}=e,{target:s}=i;this.props=e,this.events=n,this.document=Qh(s),this.documentListeners=new yp(this.document),this.listeners=new yp(r),this.windowListeners=new yp(Pi(s)),this.initialCoordinates=(o=c5(i))!=null?o:db,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ds.Resize,this.handleCancel),this.windowListeners.add(ds.DragStart,ute),this.windowListeners.add(ds.VisibilityChange,this.handleCancel),this.windowListeners.add(ds.ContextMenu,ute),this.documentListeners.add(ds.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(fte(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(dte(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,n){let{active:r,onPending:o}=this.props;o(r,e,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(ds.Click,hTe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ds.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;let l=(n=c5(e))!=null?n:db,c=ub(o,l);if(!r&&a){if(dte(a)){if(a.tolerance!=null&&GM(c,a.tolerance))return this.handleCancel();if(GM(c,a.distance))return this.handleStart()}if(fte(a)&&GM(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}e.cancelable&&e.preventDefault(),s(l)}handleEnd(){let{onAbort:e,onEnd:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleCancel(){let{onAbort:e,onCancel:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleKeydown(e){e.code===Bt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},yTe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},d5=class extends fb{constructor(e){let{event:n}=e,r=Qh(n.target);super(e,yTe,r)}};d5.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var bTe={move:{name:"mousemove"},end:{name:"mouseup"}},ZM;(function(t){t[t.RightClick=2]="RightClick"})(ZM||(ZM={}));var qM=class extends fb{constructor(e){super(e,bTe,Qh(e.event.target))}};qM.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return n.button===ZM.RightClick?!1:(r?.({event:n}),!0)}}];var YM={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},JM=class extends fb{constructor(e){super(e,YM)}static setup(){return window.addEventListener(YM.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(YM.move.name,e)};function e(){}}};JM.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e,{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var pte;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(pte||(pte={}));var mte;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(mte||(mte={}));var Wpt={x:{[e0.Backward]:!1,[e0.Forward]:!1},y:{[e0.Backward]:!1,[e0.Forward]:!1}};var XM;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(XM||(XM={}));var QM;(function(t){t.Optimized="optimized"})(QM||(QM={}));var Gpt={draggable:{measure:cte},droppable:{measure:cte,strategy:XM.WhileDragging,frequency:QM.Optimized},dragOverlay:{measure:f5}};var Ypt=(0,Fi.createContext)({...db,scaleX:1,scaleY:1}),gte;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(gte||(gte={}));var t0=I(V());var smt=[Bt.Down,Bt.Right,Bt.Up,Bt.Left];var $b=I(V()),FO=I(V());Q();var BO=I(V());var zO=I(V());Q();Q();Q();var dNe=I(V());Q();Q();Q();Q();Q();var Voe=I(z8()),Gs=I(V());Q();var Hoe=I(V());var Koe=I(V());Q();Q();Q();var jO=I(V());Q();Q();Q();Q();var LNe=I(xte());Wg();Zg();Yg();function Cte(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Ste(t,e,n){var r=[],o=Gg(t,r,n);return r.length<2?n:o+e(r)}var wte=function(e){var n=rv(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Uu(c,n.registered,void 0);return ov(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Uu(c,n.registered),f="animation-"+d.name;return Cte(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Uu(c,n.registered);Cte(n,d)},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Ste(n.registered,r,xTe(c))};return{css:r,cx:s,injectGlobal:i,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Gg.bind(null,n.registered),merge:Ste.bind(null,n.registered,r)}},xTe=function t(e){for(var n="",r=0;r<e.length;r++){var o=e[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=t(o);else{i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(n&&(n+=" "),n+=i)}}return n};Wg();Zg();Yg();var Qa=wte({key:"css"}),hmt=Qa.flush,vmt=Qa.hydrate,ymt=Qa.cx,bmt=Qa.merge,xmt=Qa.getRegisteredStyles,Cmt=Qa.injectGlobal,Smt=Qa.keyframes,mt=Qa.css,wmt=Qa.sheet,Emt=Qa.cache;var Z5=I(V());Q();var ANe=I(V());Q();Q();var Goe=I(V());Q();var Nb=I(V()),Yoe=I(V()),Zoe=I(Bs());Q();Q();var qoe=I(V());Q();var eie=I(V());Q();var VO=I(V());var tie=I(V());var UO=I(V());var HO=I(V()),Dp=I(V()),u0=I(V());Q();Q();await mre();var{getOwnPropertyNames:B_e,getOwnPropertySymbols:z_e}=Object,{hasOwnProperty:j_e}=Object.prototype;function SO(t,e){return function(r,o,i){return t(r,o,i)&&e(r,o,i)}}function k5(t){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,o);let{cache:i}=o,s=i.get(n),a=i.get(r);if(s&&a)return s===r&&a===n;i.set(n,r),i.set(r,n);let l=t(n,r,o);return i.delete(n),i.delete(r),l}}function V_e(t){return t?.[Symbol.toStringTag]}function gre(t){return B_e(t).concat(z_e(t))}var U_e=Object.hasOwn||((t,e)=>j_e.call(t,e));function $p(t,e){return t===e||!t&&!e&&t!==t&&e!==e}var H_e="__v",K_e="__o",W_e="_owner",{getOwnPropertyDescriptor:hre,keys:vre}=Object;function G_e(t,e){return t.byteLength===e.byteLength&&R5(new Uint8Array(t),new Uint8Array(e))}function Y_e(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function Z_e(t,e){return t.byteLength===e.byteLength&&R5(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function q_e(t,e){return $p(t.getTime(),e.getTime())}function J_e(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function X_e(t,e){return t===e}function yre(t,e,n){let r=t.size;if(r!==e.size)return!1;if(!r)return!0;let o=new Array(r),i=t.entries(),s,a,l=0;for(;(s=i.next())&&!s.done;){let c=e.entries(),u=!1,d=0;for(;(a=c.next())&&!a.done;){if(o[d]){d++;continue}let f=s.value,p=a.value;if(n.equals(f[0],p[0],l,d,t,e,n)&&n.equals(f[1],p[1],f[0],p[0],t,e,n)){u=o[d]=!0;break}d++}if(!u)return!1;l++}return!0}var Q_e=$p;function e6e(t,e,n){let r=vre(t),o=r.length;if(vre(e).length!==o)return!1;for(;o-- >0;)if(!xre(t,e,n,r[o]))return!1;return!0}function xb(t,e,n){let r=gre(t),o=r.length;if(gre(e).length!==o)return!1;let i,s,a;for(;o-- >0;)if(i=r[o],!xre(t,e,n,i)||(s=hre(t,i),a=hre(e,i),(s||a)&&(!s||!a||s.configurable!==a.configurable||s.enumerable!==a.enumerable||s.writable!==a.writable)))return!1;return!0}function t6e(t,e){return $p(t.valueOf(),e.valueOf())}function n6e(t,e){return t.source===e.source&&t.flags===e.flags}function bre(t,e,n){let r=t.size;if(r!==e.size)return!1;if(!r)return!0;let o=new Array(r),i=t.values(),s,a;for(;(s=i.next())&&!s.done;){let l=e.values(),c=!1,u=0;for(;(a=l.next())&&!a.done;){if(!o[u]&&n.equals(s.value,a.value,s.value,a.value,t,e,n)){c=o[u]=!0;break}u++}if(!c)return!1}return!0}function R5(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function r6e(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function xre(t,e,n,r){return(r===W_e||r===K_e||r===H_e)&&(t.$$typeof||e.$$typeof)?!0:U_e(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}var o6e="[object ArrayBuffer]",i6e="[object Arguments]",s6e="[object Boolean]",a6e="[object DataView]",l6e="[object Date]",c6e="[object Error]",u6e="[object Map]",d6e="[object Number]",f6e="[object Object]",p6e="[object RegExp]",m6e="[object Set]",g6e="[object String]",h6e={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},v6e="[object URL]",y6e=Object.prototype.toString;function b6e({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,v,y){if(h===v)return!0;if(h==null||v==null)return!1;let b=typeof h;if(b!==typeof v)return!1;if(b!=="object")return b==="number"?a(h,v,y):b==="function"?i(h,v,y):!1;let S=h.constructor;if(S!==v.constructor)return!1;if(S===Object)return l(h,v,y);if(Array.isArray(h))return e(h,v,y);if(S===Date)return r(h,v,y);if(S===RegExp)return u(h,v,y);if(S===Map)return s(h,v,y);if(S===Set)return d(h,v,y);let C=y6e.call(h);if(C===l6e)return r(h,v,y);if(C===p6e)return u(h,v,y);if(C===u6e)return s(h,v,y);if(C===m6e)return d(h,v,y);if(C===f6e)return typeof h.then!="function"&&typeof v.then!="function"&&l(h,v,y);if(C===v6e)return p(h,v,y);if(C===c6e)return o(h,v,y);if(C===i6e)return l(h,v,y);if(h6e[C])return f(h,v,y);if(C===o6e)return t(h,v,y);if(C===a6e)return n(h,v,y);if(C===s6e||C===d6e||C===g6e)return c(h,v,y);if(m){let w=m[C];if(!w){let E=V_e(h);E&&(w=m[E])}if(w)return w(h,v,y)}return!1}}function x6e({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:G_e,areArraysEqual:n?xb:Y_e,areDataViewsEqual:Z_e,areDatesEqual:q_e,areErrorsEqual:J_e,areFunctionsEqual:X_e,areMapsEqual:n?SO(yre,xb):yre,areNumbersEqual:Q_e,areObjectsEqual:n?xb:e6e,arePrimitiveWrappersEqual:t6e,areRegExpsEqual:n6e,areSetsEqual:n?SO(bre,xb):bre,areTypedArraysEqual:n?SO(R5,xb):R5,areUrlsEqual:r6e,unknownTagComparators:void 0};if(e&&(r=Object.assign({},r,e(r))),t){let o=k5(r.areArraysEqual),i=k5(r.areMapsEqual),s=k5(r.areObjectsEqual),a=k5(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:a})}return r}function C6e(t){return function(e,n,r,o,i,s,a){return t(e,n,a)}}function S6e({circular:t,comparator:e,createState:n,equals:r,strict:o}){if(n)return function(a,l){let{cache:c=t?new WeakMap:void 0,meta:u}=n();return e(a,l,{cache:c,equals:r,meta:u,strict:o})};if(t)return function(a,l){return e(a,l,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};let i={cache:void 0,equals:r,meta:void 0,strict:o};return function(a,l){return e(a,l,i)}}var Cre=yd(),Sgt=yd({strict:!0}),wgt=yd({circular:!0}),Egt=yd({circular:!0,strict:!0}),Tgt=yd({createInternalComparator:()=>$p}),_gt=yd({strict:!0,createInternalComparator:()=>$p}),$gt=yd({circular:!0,createInternalComparator:()=>$p}),Ngt=yd({circular:!0,createInternalComparator:()=>$p,strict:!0});function yd(t={}){let{circular:e=!1,createInternalComparator:n,createState:r,strict:o=!1}=t,i=x6e(t),s=b6e(i),a=n?n(s):C6e(s);return S6e({circular:e,comparator:s,createState:r,equals:a,strict:o})}var rie=I(V());await tg();var L8e=I(V());var P8e=I(V());Q();await or();await ft();var q5=I(V());var iie=I(V());Q();var Ed=I(V());Q();var Lb=I(V()),U8e=I(Bs());var sie=I(V());Q();await tg();var aie=I(V()),lie=I(V());var YO=I(V());var Ap=I(V());var ZO=I(V());var qO=I(V());Q();var Z8e=I(V());Q();var Ab=I(V());Q();Q();var die=I(V());Q();var Wo=I(V());var Sb=I(V());Q();var J5=I(V());Q();Q();var Td=I(V());var hie=I(V());Q();Q();var i0=x`
|
|
131
|
+
`},Uee=jee(SEe)(Hee),wEe={config:xEe},Kee=wEe;var EEe=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(i,s){return s(i)},o)}},Wee=EEe;function Gee(t,e){return Object.keys(e).forEach(function(n){e[n]instanceof Object&&t[n]&&Object.assign(e[n],Gee(t[n],e[n]))}),FM(FM({},t),e)}var Yee=Gee;var TEe={type:"cancelation",msg:"operation is manually canceled"};function _Ee(t){var e=!1,n=new Promise(function(r,o){t.then(function(i){return e?o(TEe):r(i)}),t.catch(o)});return n.cancel=function(){return e=!0},n}var n5=_Ee;var $Ee=Bee.create({config:zee,isInitialized:!1,resolve:null,reject:null,monaco:null}),Zee=Ree($Ee,2),ab=Zee[0],r5=Zee[1];function NEe(t){var e=Kee.config(t),n=e.monaco,r=kee(e,["monaco"]);r5(function(o){return{config:Yee(o.config,r),monaco:n}})}function DEe(){var t=ab(function(e){var n=e.monaco,r=e.isInitialized,o=e.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!t.isInitialized){if(r5({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),n5(BM);if(window.monaco&&window.monaco.editor)return qee(window.monaco),t.resolve(window.monaco),n5(BM);Wee(LEe,MEe)(OEe)}return n5(BM)}function LEe(t){return document.body.appendChild(t)}function AEe(t){var e=document.createElement("script");return t&&(e.src=t),e}function MEe(t){var e=ab(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=AEe("".concat(e.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=e.reject,n}function OEe(){var t=ab(function(n){var r=n.config,o=n.resolve,i=n.reject;return{config:r,resolve:o,reject:i}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(n){qee(n),t.resolve(n)},function(n){t.reject(n)})}function qee(t){ab().monaco||r5({monaco:t})}function IEe(){return ab(function(t){var e=t.monaco;return e})}var BM=new Promise(function(t,e){return r5({resolve:t,reject:e})}),kEe={config:NEe,init:DEe,__getMonacoInstance:IEe},vp=kEe;var Jee=I(V(),1),oo=I(V(),1);var Xee=I(V(),1),i5=I(V(),1),Qee=I(V(),1),tte=I(V(),1),s5=I(V(),1),qEe=I(V(),1);var ote=I(V(),1),tr=I(V(),1);var a5=I(V(),1),REe={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},zM=REe,PEe={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},FEe=PEe;function BEe({children:t}){return Qee.default.createElement("div",{style:FEe.container},t)}var zEe=BEe,jEe=zEe;function VEe({width:t,height:e,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:s}){return i5.default.createElement("section",{style:{...zM.wrapper,width:t,height:e},...s},!n&&i5.default.createElement(jEe,null,r),i5.default.createElement("div",{ref:o,style:{...zM.fullWidth,...!n&&zM.hide},className:i}))}var UEe=VEe,ete=(0,Xee.memo)(UEe);function HEe(t){(0,tte.useEffect)(t,[])}var nte=HEe;function KEe(t,e,n=!0){let r=(0,s5.useRef)(!0);(0,s5.useEffect)(r.current||!n?()=>{r.current=!1}:t,e)}var Ri=KEe;function lb(){}function Xh(t,e,n,r){return WEe(t,r)||GEe(t,e,n,r)}function WEe(t,e){return t.editor.getModel(rte(t,e))}function GEe(t,e,n,r){return t.editor.createModel(e,n,r?rte(t,r):void 0)}function rte(t,e){return t.Uri.parse(e)}function YEe({original:t,modified:e,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:f="100%",width:p="100%",className:m,wrapperProps:g={},beforeMount:h=lb,onMount:v=lb}){let[y,b]=(0,oo.useState)(!1),[S,C]=(0,oo.useState)(!0),w=(0,oo.useRef)(null),E=(0,oo.useRef)(null),T=(0,oo.useRef)(null),$=(0,oo.useRef)(v),_=(0,oo.useRef)(h),N=(0,oo.useRef)(!1);nte(()=>{let z=vp.init();return z.then(G=>(E.current=G)&&C(!1)).catch(G=>G?.type!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>w.current?P():z.cancel()}),Ri(()=>{if(w.current&&E.current){let z=w.current.getOriginalEditor(),G=Xh(E.current,t||"",r||n||"text",i||"");G!==z.getModel()&&z.setModel(G)}},[i],y),Ri(()=>{if(w.current&&E.current){let z=w.current.getModifiedEditor(),G=Xh(E.current,e||"",o||n||"text",s||"");G!==z.getModel()&&z.setModel(G)}},[s],y),Ri(()=>{let z=w.current.getModifiedEditor();z.getOption(E.current.editor.EditorOption.readOnly)?z.setValue(e||""):e!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[e],y),Ri(()=>{w.current?.getModel()?.original.setValue(t||"")},[t],y),Ri(()=>{let{original:z,modified:G}=w.current.getModel();E.current.editor.setModelLanguage(z,r||n||"text"),E.current.editor.setModelLanguage(G,o||n||"text")},[n,r,o],y),Ri(()=>{E.current?.editor.setTheme(c)},[c],y),Ri(()=>{w.current?.updateOptions(d)},[d],y);let R=(0,oo.useCallback)(()=>{if(!E.current)return;_.current(E.current);let z=Xh(E.current,t||"",r||n||"text",i||""),G=Xh(E.current,e||"",o||n||"text",s||"");w.current?.setModel({original:z,modified:G})},[n,e,o,t,r,i,s]),B=(0,oo.useCallback)(()=>{!N.current&&T.current&&(w.current=E.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...d}),R(),E.current?.editor.setTheme(c),b(!0),N.current=!0)},[d,c,R]);(0,oo.useEffect)(()=>{y&&$.current(w.current,E.current)},[y]),(0,oo.useEffect)(()=>{!S&&!y&&B()},[S,y,B]);function P(){let z=w.current?.getModel();a||z?.original?.dispose(),l||z?.modified?.dispose(),w.current?.dispose()}return oo.default.createElement(ete,{width:p,height:f,isEditorReady:y,loading:u,_ref:T,className:m,wrapperProps:g})}var ZEe=YEe,$pt=(0,Jee.memo)(ZEe);function JEe(t){let e=(0,a5.useRef)();return(0,a5.useEffect)(()=>{e.current=t},[t]),e.current}var XEe=JEe,o5=new Map;function QEe({defaultValue:t,defaultLanguage:e,defaultPath:n,value:r,language:o,path:i,theme:s="light",line:a,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:p="100%",height:m="100%",className:g,wrapperProps:h={},beforeMount:v=lb,onMount:y=lb,onChange:b,onValidate:S=lb}){let[C,w]=(0,tr.useState)(!1),[E,T]=(0,tr.useState)(!0),$=(0,tr.useRef)(null),_=(0,tr.useRef)(null),N=(0,tr.useRef)(null),R=(0,tr.useRef)(y),B=(0,tr.useRef)(v),P=(0,tr.useRef)(),z=(0,tr.useRef)(r),G=XEe(i),k=(0,tr.useRef)(!1),F=(0,tr.useRef)(!1);nte(()=>{let L=vp.init();return L.then(A=>($.current=A)&&T(!1)).catch(A=>A?.type!=="cancelation"&&console.error("Monaco initialization: error:",A)),()=>_.current?M():L.cancel()}),Ri(()=>{let L=Xh($.current,t||r||"",e||o||"",i||n||"");L!==_.current?.getModel()&&(d&&o5.set(G,_.current?.saveViewState()),_.current?.setModel(L),d&&_.current?.restoreViewState(o5.get(i)))},[i],C),Ri(()=>{_.current?.updateOptions(c)},[c],C),Ri(()=>{!_.current||r===void 0||(_.current.getOption($.current.editor.EditorOption.readOnly)?_.current.setValue(r):r!==_.current.getValue()&&(F.current=!0,_.current.executeEdits("",[{range:_.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),_.current.pushUndoStop(),F.current=!1))},[r],C),Ri(()=>{let L=_.current?.getModel();L&&o&&$.current?.editor.setModelLanguage(L,o)},[o],C),Ri(()=>{a!==void 0&&_.current?.revealLine(a)},[a],C),Ri(()=>{$.current?.editor.setTheme(s)},[s],C);let Z=(0,tr.useCallback)(()=>{if(!(!N.current||!$.current)&&!k.current){B.current($.current);let L=i||n,A=Xh($.current,r||t||"",e||o||"",L||"");_.current=$.current?.editor.create(N.current,{model:A,automaticLayout:!0,...c},u),d&&_.current.restoreViewState(o5.get(L)),$.current.editor.setTheme(s),a!==void 0&&_.current.revealLine(a),w(!0),k.current=!0}},[t,e,n,r,o,i,c,u,d,s,a]);(0,tr.useEffect)(()=>{C&&R.current(_.current,$.current)},[C]),(0,tr.useEffect)(()=>{!E&&!C&&Z()},[E,C,Z]),z.current=r,(0,tr.useEffect)(()=>{C&&b&&(P.current?.dispose(),P.current=_.current?.onDidChangeModelContent(L=>{F.current||b(_.current.getValue(),L)}))},[C,b]),(0,tr.useEffect)(()=>{if(C){let L=$.current.editor.onDidChangeMarkers(A=>{let K=_.current.getModel()?.uri;if(K&&A.find(J=>J.path===K.path)){let J=$.current.editor.getModelMarkers({resource:K});S?.(J)}});return()=>{L?.dispose()}}return()=>{}},[C,S]);function M(){P.current?.dispose(),f?d&&o5.set(i,_.current.saveViewState()):_.current.getModel()?.dispose(),_.current.dispose()}return tr.default.createElement(ete,{width:p,height:m,isEditorReady:C,loading:l,_ref:N,className:g,wrapperProps:h})}var eTe=QEe,Lpt=(0,ote.memo)(eTe);var Fi=I(V()),vte=I(Bs());var cb=I(V());var ite=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function l5(t){let e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function jM(t){return"nodeType"in t}function Pi(t){var e,n;return t?l5(t)?t:jM(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function VM(t){let{Document:e}=Pi(t);return t instanceof e}function UM(t){return l5(t)?!1:t instanceof Pi(t).HTMLElement}function HM(t){return t instanceof Pi(t).SVGElement}function Qh(t){return t?l5(t)?t.document:jM(t)?VM(t)?t:UM(t)||HM(t)?t.ownerDocument:document:document:document}function ste(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{let a=Object.entries(s);for(let[l,c]of a){let u=i[l];u!=null&&(i[l]=u+t*c)}return i},{...e})}}var ate=ste(1),ub=ste(-1);function tTe(t){return"clientX"in t&&"clientY"in t}function KM(t){if(!t)return!1;let{KeyboardEvent:e}=Pi(t.target);return e&&t instanceof e}function nTe(t){if(!t)return!1;let{TouchEvent:e}=Pi(t.target);return e&&t instanceof e}function c5(t){if(nTe(t)){if(t.touches&&t.touches.length){let{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){let{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return tTe(t)?{x:t.clientX,y:t.clientY}:null}var WM=I(V());var lte;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(lte||(lte={}));var db=Object.freeze({x:0,y:0});function iTe(t){if(t.startsWith("matrix3d(")){let e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){let e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function sTe(t,e,n){let r=iTe(e);if(!r)return t;let{scaleX:o,scaleY:i,x:s,y:a}=r,l=t.left-s-(1-o)*parseFloat(n),c=t.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?t.width/o:t.width,d=i?t.height/i:t.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}var aTe={ignoreTransform:!1};function f5(t,e){e===void 0&&(e=aTe);let n=t.getBoundingClientRect();if(e.ignoreTransform){let{transform:c,transformOrigin:u}=Pi(t).getComputedStyle(t);c&&(n=sTe(n,c,u))}let{top:r,left:o,width:i,height:s,bottom:a,right:l}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:l}}function cte(t){return f5(t,{ignoreTransform:!0})}function lTe(t,e){return e===void 0&&(e=Pi(t).getComputedStyle(t)),e.position==="fixed"}function cTe(t,e){e===void 0&&(e=Pi(t).getComputedStyle(t));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=e[o];return typeof i=="string"?n.test(i):!1})}function yte(t,e){let n=[];function r(o){if(e!=null&&n.length>=e||!o)return n;if(VM(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!UM(o)||HM(o)||n.includes(o))return n;let i=Pi(t).getComputedStyle(o);return o!==t&&cTe(o,i)&&n.push(o),lTe(o,i)?n:r(o.parentNode)}return t?r(t):n}function uTe(t){let[e]=yte(t,1);return e??null}var e0;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(e0||(e0={}));function dTe(t){return!ite||!t?!1:t===document.scrollingElement}function fTe(t){let e={x:0,y:0},n=dTe(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},r={x:t.scrollWidth-n.width,y:t.scrollHeight-n.height},o=t.scrollTop<=e.y,i=t.scrollLeft<=e.x,s=t.scrollTop>=r.y,a=t.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:e}}function pTe(t){if(t===document.scrollingElement){let{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}let{top:e,left:n,right:r,bottom:o}=t.getBoundingClientRect();return{top:e,left:n,right:r,bottom:o,width:t.clientWidth,height:t.clientHeight}}function mTe(t,e){if(e===void 0&&(e=f5),!t)return;let{top:n,left:r,bottom:o,right:i}=e(t);uTe(t)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}var yp=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=e}add(e,n,r){var o;(o=this.target)==null||o.addEventListener(e,n,r),this.listeners.push([e,n,r])}};function gTe(t){let{EventTarget:e}=Pi(t);return t instanceof e?t:Qh(t)}function GM(t,e){let n=Math.abs(t.x),r=Math.abs(t.y);return typeof e=="number"?Math.sqrt(n**2+r**2)>e:"x"in e&&"y"in e?n>e.x&&r>e.y:"x"in e?n>e.x:"y"in e?r>e.y:!1}var ds;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(ds||(ds={}));function ute(t){t.preventDefault()}function hTe(t){t.stopPropagation()}var Bt;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Bt||(Bt={}));var bte={start:[Bt.Space,Bt.Enter],cancel:[Bt.Esc],end:[Bt.Space,Bt.Enter,Bt.Tab]},vTe=(t,e)=>{let{currentCoordinates:n}=e;switch(t.code){case Bt.Right:return{...n,x:n.x+25};case Bt.Left:return{...n,x:n.x-25};case Bt.Down:return{...n,y:n.y+25};case Bt.Up:return{...n,y:n.y-25}}},u5=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:n}}=e;this.props=e,this.listeners=new yp(Qh(n)),this.windowListeners=new yp(Pi(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ds.Resize,this.handleCancel),this.windowListeners.add(ds.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ds.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:n}=this.props,r=e.node.current;r&&mTe(r),n(db)}handleKeyDown(e){if(KM(e)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=bte,coordinateGetter:s=vTe,scrollBehavior:a="smooth"}=o,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}let{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:db;this.referenceCoordinates||(this.referenceCoordinates=u);let d=s(e,{active:n,context:r.current,currentCoordinates:u});if(d){let f=ub(d,u),p={x:0,y:0},{scrollableAncestors:m}=r.current;for(let g of m){let h=e.code,{isTop:v,isRight:y,isLeft:b,isBottom:S,maxScroll:C,minScroll:w}=fTe(g),E=pTe(g),T={x:Math.min(h===Bt.Right?E.right-E.width/2:E.right,Math.max(h===Bt.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(h===Bt.Down?E.bottom-E.height/2:E.bottom,Math.max(h===Bt.Down?E.top:E.top+E.height/2,d.y))},$=h===Bt.Right&&!y||h===Bt.Left&&!b,_=h===Bt.Down&&!S||h===Bt.Up&&!v;if($&&T.x!==d.x){let N=g.scrollLeft+f.x,R=h===Bt.Right&&N<=C.x||h===Bt.Left&&N>=w.x;if(R&&!f.y){g.scrollTo({left:N,behavior:a});return}R?p.x=g.scrollLeft-N:p.x=h===Bt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,p.x&&g.scrollBy({left:-p.x,behavior:a});break}else if(_&&T.y!==d.y){let N=g.scrollTop+f.y,R=h===Bt.Down&&N<=C.y||h===Bt.Up&&N>=w.y;if(R&&!f.x){g.scrollTo({top:N,behavior:a});return}R?p.y=g.scrollTop-N:p.y=h===Bt.Down?g.scrollTop-C.y:g.scrollTop-w.y,p.y&&g.scrollBy({top:-p.y,behavior:a});break}}this.handleMove(e,ate(ub(d,this.referenceCoordinates),p))}}}handleMove(e,n){let{onMove:r}=this.props;e.preventDefault(),r(n)}handleEnd(e){let{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){let{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};u5.activators=[{eventName:"onKeyDown",handler:(t,e,n)=>{let{keyboardCodes:r=bte,onActivation:o}=e,{active:i}=n,{code:s}=t.nativeEvent;if(r.start.includes(s)){let a=i.activatorNode.current;return a&&t.target!==a?!1:(t.preventDefault(),o?.({event:t.nativeEvent}),!0)}return!1}}];function dte(t){return!!(t&&"distance"in t)}function fte(t){return!!(t&&"delay"in t)}var fb=class{constructor(e,n,r){var o;r===void 0&&(r=gTe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=n;let{event:i}=e,{target:s}=i;this.props=e,this.events=n,this.document=Qh(s),this.documentListeners=new yp(this.document),this.listeners=new yp(r),this.windowListeners=new yp(Pi(s)),this.initialCoordinates=(o=c5(i))!=null?o:db,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ds.Resize,this.handleCancel),this.windowListeners.add(ds.DragStart,ute),this.windowListeners.add(ds.VisibilityChange,this.handleCancel),this.windowListeners.add(ds.ContextMenu,ute),this.documentListeners.add(ds.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(fte(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(dte(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,n){let{active:r,onPending:o}=this.props;o(r,e,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(ds.Click,hTe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ds.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;let l=(n=c5(e))!=null?n:db,c=ub(o,l);if(!r&&a){if(dte(a)){if(a.tolerance!=null&&GM(c,a.tolerance))return this.handleCancel();if(GM(c,a.distance))return this.handleStart()}if(fte(a)&&GM(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}e.cancelable&&e.preventDefault(),s(l)}handleEnd(){let{onAbort:e,onEnd:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleCancel(){let{onAbort:e,onCancel:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleKeydown(e){e.code===Bt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},yTe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},d5=class extends fb{constructor(e){let{event:n}=e,r=Qh(n.target);super(e,yTe,r)}};d5.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var bTe={move:{name:"mousemove"},end:{name:"mouseup"}},ZM;(function(t){t[t.RightClick=2]="RightClick"})(ZM||(ZM={}));var qM=class extends fb{constructor(e){super(e,bTe,Qh(e.event.target))}};qM.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return n.button===ZM.RightClick?!1:(r?.({event:n}),!0)}}];var YM={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},JM=class extends fb{constructor(e){super(e,YM)}static setup(){return window.addEventListener(YM.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(YM.move.name,e)};function e(){}}};JM.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e,{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var pte;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(pte||(pte={}));var mte;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(mte||(mte={}));var Wpt={x:{[e0.Backward]:!1,[e0.Forward]:!1},y:{[e0.Backward]:!1,[e0.Forward]:!1}};var XM;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(XM||(XM={}));var QM;(function(t){t.Optimized="optimized"})(QM||(QM={}));var Gpt={draggable:{measure:cte},droppable:{measure:cte,strategy:XM.WhileDragging,frequency:QM.Optimized},dragOverlay:{measure:f5}};var Ypt=(0,Fi.createContext)({...db,scaleX:1,scaleY:1}),gte;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(gte||(gte={}));var t0=I(V());var smt=[Bt.Down,Bt.Right,Bt.Up,Bt.Left];var $b=I(V()),FO=I(V());Q();var BO=I(V());var zO=I(V());Q();Q();Q();var dNe=I(V());Q();Q();Q();Q();Q();var Voe=I(z8()),Gs=I(V());Q();var Hoe=I(V());var Koe=I(V());Q();Q();Q();var jO=I(V());Q();Q();Q();Q();Q();var LNe=I(xte());Wg();Zg();Yg();function Cte(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Ste(t,e,n){var r=[],o=Gg(t,r,n);return r.length<2?n:o+e(r)}var wte=function(e){var n=rv(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Uu(c,n.registered,void 0);return ov(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Uu(c,n.registered),f="animation-"+d.name;return Cte(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Uu(c,n.registered);Cte(n,d)},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Ste(n.registered,r,xTe(c))};return{css:r,cx:s,injectGlobal:i,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Gg.bind(null,n.registered),merge:Ste.bind(null,n.registered,r)}},xTe=function t(e){for(var n="",r=0;r<e.length;r++){var o=e[r];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=t(o);else{i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(n&&(n+=" "),n+=i)}}return n};Wg();Zg();Yg();var Qa=wte({key:"css"}),hmt=Qa.flush,vmt=Qa.hydrate,ymt=Qa.cx,bmt=Qa.merge,xmt=Qa.getRegisteredStyles,Cmt=Qa.injectGlobal,Smt=Qa.keyframes,mt=Qa.css,wmt=Qa.sheet,Emt=Qa.cache;var Z5=I(V());Q();var ANe=I(V());Q();Q();var Goe=I(V());Q();var Nb=I(V()),Yoe=I(V()),Zoe=I(Bs());Q();Q();var qoe=I(V());Q();var eie=I(V());Q();var VO=I(V());var tie=I(V());var UO=I(V());var HO=I(V()),Dp=I(V()),u0=I(V());Q();Q();await mre();var{getOwnPropertyNames:B_e,getOwnPropertySymbols:z_e}=Object,{hasOwnProperty:j_e}=Object.prototype;function SO(t,e){return function(r,o,i){return t(r,o,i)&&e(r,o,i)}}function k5(t){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,o);let{cache:i}=o,s=i.get(n),a=i.get(r);if(s&&a)return s===r&&a===n;i.set(n,r),i.set(r,n);let l=t(n,r,o);return i.delete(n),i.delete(r),l}}function V_e(t){return t?.[Symbol.toStringTag]}function gre(t){return B_e(t).concat(z_e(t))}var U_e=Object.hasOwn||((t,e)=>j_e.call(t,e));function $p(t,e){return t===e||!t&&!e&&t!==t&&e!==e}var H_e="__v",K_e="__o",W_e="_owner",{getOwnPropertyDescriptor:hre,keys:vre}=Object;function G_e(t,e){return t.byteLength===e.byteLength&&R5(new Uint8Array(t),new Uint8Array(e))}function Y_e(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function Z_e(t,e){return t.byteLength===e.byteLength&&R5(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function q_e(t,e){return $p(t.getTime(),e.getTime())}function J_e(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function X_e(t,e){return t===e}function yre(t,e,n){let r=t.size;if(r!==e.size)return!1;if(!r)return!0;let o=new Array(r),i=t.entries(),s,a,l=0;for(;(s=i.next())&&!s.done;){let c=e.entries(),u=!1,d=0;for(;(a=c.next())&&!a.done;){if(o[d]){d++;continue}let f=s.value,p=a.value;if(n.equals(f[0],p[0],l,d,t,e,n)&&n.equals(f[1],p[1],f[0],p[0],t,e,n)){u=o[d]=!0;break}d++}if(!u)return!1;l++}return!0}var Q_e=$p;function e6e(t,e,n){let r=vre(t),o=r.length;if(vre(e).length!==o)return!1;for(;o-- >0;)if(!xre(t,e,n,r[o]))return!1;return!0}function xb(t,e,n){let r=gre(t),o=r.length;if(gre(e).length!==o)return!1;let i,s,a;for(;o-- >0;)if(i=r[o],!xre(t,e,n,i)||(s=hre(t,i),a=hre(e,i),(s||a)&&(!s||!a||s.configurable!==a.configurable||s.enumerable!==a.enumerable||s.writable!==a.writable)))return!1;return!0}function t6e(t,e){return $p(t.valueOf(),e.valueOf())}function n6e(t,e){return t.source===e.source&&t.flags===e.flags}function bre(t,e,n){let r=t.size;if(r!==e.size)return!1;if(!r)return!0;let o=new Array(r),i=t.values(),s,a;for(;(s=i.next())&&!s.done;){let l=e.values(),c=!1,u=0;for(;(a=l.next())&&!a.done;){if(!o[u]&&n.equals(s.value,a.value,s.value,a.value,t,e,n)){c=o[u]=!0;break}u++}if(!c)return!1}return!0}function R5(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function r6e(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function xre(t,e,n,r){return(r===W_e||r===K_e||r===H_e)&&(t.$$typeof||e.$$typeof)?!0:U_e(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}var o6e="[object ArrayBuffer]",i6e="[object Arguments]",s6e="[object Boolean]",a6e="[object DataView]",l6e="[object Date]",c6e="[object Error]",u6e="[object Map]",d6e="[object Number]",f6e="[object Object]",p6e="[object RegExp]",m6e="[object Set]",g6e="[object String]",h6e={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},v6e="[object URL]",y6e=Object.prototype.toString;function b6e({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,v,y){if(h===v)return!0;if(h==null||v==null)return!1;let b=typeof h;if(b!==typeof v)return!1;if(b!=="object")return b==="number"?a(h,v,y):b==="function"?i(h,v,y):!1;let S=h.constructor;if(S!==v.constructor)return!1;if(S===Object)return l(h,v,y);if(Array.isArray(h))return e(h,v,y);if(S===Date)return r(h,v,y);if(S===RegExp)return u(h,v,y);if(S===Map)return s(h,v,y);if(S===Set)return d(h,v,y);let C=y6e.call(h);if(C===l6e)return r(h,v,y);if(C===p6e)return u(h,v,y);if(C===u6e)return s(h,v,y);if(C===m6e)return d(h,v,y);if(C===f6e)return typeof h.then!="function"&&typeof v.then!="function"&&l(h,v,y);if(C===v6e)return p(h,v,y);if(C===c6e)return o(h,v,y);if(C===i6e)return l(h,v,y);if(h6e[C])return f(h,v,y);if(C===o6e)return t(h,v,y);if(C===a6e)return n(h,v,y);if(C===s6e||C===d6e||C===g6e)return c(h,v,y);if(m){let w=m[C];if(!w){let E=V_e(h);E&&(w=m[E])}if(w)return w(h,v,y)}return!1}}function x6e({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:G_e,areArraysEqual:n?xb:Y_e,areDataViewsEqual:Z_e,areDatesEqual:q_e,areErrorsEqual:J_e,areFunctionsEqual:X_e,areMapsEqual:n?SO(yre,xb):yre,areNumbersEqual:Q_e,areObjectsEqual:n?xb:e6e,arePrimitiveWrappersEqual:t6e,areRegExpsEqual:n6e,areSetsEqual:n?SO(bre,xb):bre,areTypedArraysEqual:n?SO(R5,xb):R5,areUrlsEqual:r6e,unknownTagComparators:void 0};if(e&&(r=Object.assign({},r,e(r))),t){let o=k5(r.areArraysEqual),i=k5(r.areMapsEqual),s=k5(r.areObjectsEqual),a=k5(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:a})}return r}function C6e(t){return function(e,n,r,o,i,s,a){return t(e,n,a)}}function S6e({circular:t,comparator:e,createState:n,equals:r,strict:o}){if(n)return function(a,l){let{cache:c=t?new WeakMap:void 0,meta:u}=n();return e(a,l,{cache:c,equals:r,meta:u,strict:o})};if(t)return function(a,l){return e(a,l,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};let i={cache:void 0,equals:r,meta:void 0,strict:o};return function(a,l){return e(a,l,i)}}var Cre=yd(),Sgt=yd({strict:!0}),wgt=yd({circular:!0}),Egt=yd({circular:!0,strict:!0}),Tgt=yd({createInternalComparator:()=>$p}),_gt=yd({strict:!0,createInternalComparator:()=>$p}),$gt=yd({circular:!0,createInternalComparator:()=>$p}),Ngt=yd({circular:!0,createInternalComparator:()=>$p,strict:!0});function yd(t={}){let{circular:e=!1,createInternalComparator:n,createState:r,strict:o=!1}=t,i=x6e(t),s=b6e(i),a=n?n(s):C6e(s);return S6e({circular:e,comparator:s,createState:r,equals:a,strict:o})}var rie=I(V());await tg();var L8e=I(V());var P8e=I(V());Q();await or();await ft();var q5=I(V());var iie=I(V());Q();var Ed=I(V());Q();var Lb=I(V()),U8e=I(Bs());var sie=I(V());Q();await tg();var aie=I(V()),lie=I(V());var YO=I(V());var Ap=I(V());var ZO=I(V());var qO=I(V());Q();var Z8e=I(V());Q();var Ab=I(V());Q();Q();var die=I(V());Q();var Wo=I(V());var Sb=I(V());Q();var J5=I(V());Q();Q();var Td=I(V());var hie=I(V());Q();Q();var i0=x`
|
|
132
132
|
--utility-caution-icon: #facc15;
|
|
133
133
|
--utility-caution-title: #854d0e;
|
|
134
134
|
--utility-caution-container: #fefce8;
|
|
@@ -1131,7 +1131,7 @@ to {
|
|
|
1131
1131
|
`,I7e=x`
|
|
1132
1132
|
${i0}
|
|
1133
1133
|
color: var(--utility-success-icon);
|
|
1134
|
-
`,k7e=(0,a0.createContext)({iconsMap:{},isLoading:!0});function R7e(){return(0,a0.useContext)(k7e)}var P7e=({icon:t,iconColor:e="default",size:n="1.5rem",...r})=>{let o=typeof t=="string",{iconsMap:i,isLoading:s}=R7e(),a={white:w7e,action:D7e,default:E7e,gray:_7e,gray300:$7e,red:T7e,accent:L7e,currentColor:N7e,"accent-dark":A7e,"accent-light":M7e,"accent-alt-dark":O7e,"utility-success":I7e};if(o&&s)return null;let l=o?i[t]:t;return o&&l===void 0?(console.error(`We don't seem to have the icon you're looking for ("${t}"). Make sure you're using <IconsProvider> and try an icon from our Storybook.`),null):O(l,{role:"img",size:n,...r,css:[S7e,e?i0:void 0,a[e]]})},Go=Jre.default.memo(P7e),F7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M2 16C2 17.6569 3.34315 19 5 19H19C20.6569 19 22 17.6569 22 16V8C22 6.34315 20.6569 5 19 5H5C3.34315 5 2 6.34315 2 8V16ZM5 17H19C19.5523 17 20 16.5523 20 16V8C20 7.44772 19.5523 7 19 7H5C4.44772 7 4 7.44771 4 8V16C4 16.5523 4.44772 17 5 17Z"},child:[]}]}),B7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M8.24953 3.8889C7.00689 3.8889 5.99953 4.85895 5.99953 6.05556C5.99953 7.25218 7.00689 8.22223 8.24953 8.22223C9.49217 8.22223 10.4995 7.25218 10.4995 6.05556C10.4995 4.85895 9.49217 3.8889 8.24953 3.8889ZM7.49953 6.05556C7.49953 5.65669 7.83531 5.33334 8.24953 5.33334C8.66374 5.33334 8.99953 5.65669 8.99953 6.05556C8.99953 6.45444 8.66374 6.77779 8.24953 6.77779C7.83531 6.77779 7.49953 6.45444 7.49953 6.05556Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M18 15.75C18 16.1642 17.6269 16.5 17.1667 16.5H6.83333C6.3731 16.5 6 16.1642 6 15.75C6 15.3358 6.3731 15 6.83333 15H17.1667C17.6269 15 18 15.3358 18 15.75Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M13.1667 18H6.83333C6.3731 18 6 18.3358 6 18.75C6 19.1642 6.3731 19.5 6.83333 19.5H13.1667C13.6269 19.5 14 19.1642 14 18.75C14 18.3358 13.6269 18 13.1667 18Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M3 20a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H6a3 3 0 0 0-3 3v16ZM5 4v8.56h3.48l5.16-4.97c.88-.85 2.3-.85 3.19 0L19 9.69V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1Zm.25 10H5v6a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-6H5.25Zm5.36-1.44H19v-.84l-3.23-3.11a.77.77 0 0 0-1.07 0l-4.1 3.95Z"},child:[]}]}),z7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fillOpacity:"0.5",fill:"currentColor",d:"M13 15C12.4477 15 12 15.4477 12 16C12 16.5523 12.4477 17 13 17H17C17.5523 17 18 16.5523 18 16C18 15.4477 17.5523 15 17 15H13Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M12 8C12 7.44772 12.4477 7 13 7H22C22.5523 7 23 7.44772 23 8C23 8.55228 22.5523 9 22 9H13C12.4477 9 12 8.55228 12 8Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fillOpacity:"0.75",fill:"currentColor",d:"M12 12C12 11.4477 12.4477 11 13 11H22C22.5523 11 23 11.4477 23 12C23 12.5523 22.5523 13 22 13H13C12.4477 13 12 12.5523 12 12Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M1 8.08791C1 7.48707 1.57563 7 2.28571 7H8.71429C9.42437 7 10 7.48707 10 8.08791V16.912C10 17.5129 9.42437 18 8.71429 18H2.28571C1.57563 18 1 17.5129 1 16.912V8.08791Z"},child:[]}]}),j7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",fillOpacity:"0.3",d:"M8 16H16V9L19 9L19 19L5 19L5 9L8 9V16Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M5 7L19 7V4L5 4L5 7Z"},child:[]}]}),V7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M11 17H4C2.34315 17 1 15.6569 1 14V6C1 4.34315 2.34315 3 4 3H20C21.6569 3 23 4.34315 23 6V14C23 15.6569 21.6569 17 20 17H13V19H16C16.5523 19 17 19.4477 17 20C17 20.5523 16.5523 21 16 21H8C7.44772 21 7 20.5523 7 20C7 19.4477 7.44772 19 8 19H11V17ZM4 5H20C20.5523 5 21 5.44772 21 6V14C21 14.5523 20.5523 15 20 15H4C3.44772 15 3 14.5523 3 14V6C3 5.44772 3.44772 5 4 5Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M16.0849 14L14.7516 12.6667L16.4581 10.9601L13.023 10.9601H11.062L7.62683 10.9601L9.33335 12.6667L8.00001 14L3.99998 10L7.99998 6L9.33332 7.33334L7.59214 9.07452H11.062H13.023H16.4928L14.7516 7.33334L16.085 6L20.085 10L16.0849 14Z"},child:[]}]}),U7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M8.048 19.552V18.208L9.968 17.752V5.848H7.232L6.584 8.512H5V4H18.272V8.512H16.688L16.04 5.848H13.376V17.752L15.296 18.208V19.552H8.048Z"},child:[]}]}),H7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 40 40"},child:[{tag:"path",attr:{fill:"currentColor",d:"M6.10121 28.0571V15.3039L3.3335 15.9254V13.6694L7.40084 11.9429H9.30214V28.0571H6.10121Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M11.6782 28.0571V25.9162C12.7051 25.1028 13.6998 24.2971 14.6625 23.4991C15.6413 22.701 16.5077 21.9107 17.2618 21.128C18.0319 20.3453 18.6416 19.5856 19.0909 18.849C19.5562 18.097 19.7888 17.368 19.7888 16.6621C19.7888 16.0021 19.5963 15.419 19.2112 14.9125C18.8422 14.4061 18.2245 14.1528 17.358 14.1528C16.4756 14.1528 15.8097 14.4291 15.3605 14.9816C14.9112 15.5341 14.6866 16.2016 14.6866 16.9843H11.7023C11.7344 15.8026 12.0071 14.8204 12.5206 14.0377C13.034 13.2397 13.7159 12.6489 14.5663 12.2652C15.4166 11.8662 16.3713 11.6667 17.4302 11.6667C19.147 11.6667 20.4787 12.1194 21.4254 13.0249C22.3881 13.915 22.8694 15.0737 22.8694 16.5009C22.8694 17.391 22.6528 18.2581 22.2196 19.1022C21.8024 19.9463 21.2489 20.7597 20.559 21.5423C19.869 22.325 19.123 23.0617 18.3207 23.7523C17.5185 24.4276 16.7403 25.0568 15.9862 25.64H23.2786V28.0571H11.6782Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M30.8667 28.3333C29.7596 28.3333 28.7568 28.1492 27.8583 27.7808C26.9598 27.3972 26.2377 26.814 25.6922 26.0313C25.1467 25.2486 24.8579 24.2664 24.8258 23.0847H27.8583C27.8743 23.8674 28.139 24.5273 28.6525 25.0644C29.182 25.5862 29.92 25.8471 30.8667 25.8471C31.7652 25.8471 32.4551 25.6093 32.9364 25.1335C33.4178 24.6578 33.6584 24.0592 33.6584 23.3379C33.6584 22.4939 33.3375 21.857 32.6958 21.4272C32.07 20.9822 31.2598 20.7597 30.265 20.7597H29.0135V18.3425H30.289C31.1073 18.3425 31.7892 18.1584 32.3347 17.79C32.8803 17.4217 33.153 16.8769 33.153 16.1556C33.153 15.5571 32.9445 15.0813 32.5273 14.7283C32.1262 14.36 31.5646 14.1759 30.8426 14.1759C30.0564 14.1759 29.4387 14.3984 28.9894 14.8435C28.5562 15.2885 28.3155 15.8333 28.2674 16.4779H25.259C25.3232 14.9892 25.8607 13.8152 26.8715 12.9558C27.8984 12.0964 29.2221 11.6667 30.8426 11.6667C31.9978 11.6667 32.9685 11.8662 33.7547 12.2652C34.5569 12.6489 35.1586 13.163 35.5597 13.8075C35.9769 14.4521 36.1855 15.1657 36.1855 15.9484C36.1855 16.8539 35.9207 17.6212 35.3913 18.2504C34.8778 18.8643 34.2361 19.2787 33.4659 19.4935C34.4125 19.6777 35.1827 20.1228 35.7763 20.8287C36.37 21.5193 36.6668 22.3941 36.6668 23.453C36.6668 24.3431 36.4422 25.1565 35.993 25.8932C35.5437 26.6298 34.8859 27.2207 34.0194 27.6657C33.1691 28.1108 32.1181 28.3333 30.8667 28.3333Z"},child:[]}]}),K7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M5.90406 22.3385C7.69061 23.3942 9.77456 24 12 24C18.6274 24 24 18.6274 24 12C24 9.77456 23.3942 7.69061 22.3385 5.90406L5.90406 22.3385ZM18.0959 1.66143C16.3093 0.60578 14.2254 0 12 0C5.37258 0 0 5.37258 0 12C0 14.2254 0.60578 16.3093 1.66144 18.0959L18.0959 1.66143Z"},child:[]}]}),W7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 22"},child:[{tag:"path",attr:{fill:"currentColor",d:"M13.3396 1.25C13.0651 0.785 12.5596 0.5 12.0091 0.5C11.4586 0.5 10.9546 0.785 10.6801 1.25L0.207143 19.2485C0.0721968 19.4757 0.000976562 19.735 0.000976562 19.9993C0.000976563 20.2635 0.0721968 20.5228 0.207143 20.75C0.496643 21.215 1.00214 21.5015 1.53614 21.5015H22.4821C23.0326 21.5015 23.5381 21.2165 23.7976 20.7515C23.9279 20.523 23.9976 20.265 24.0002 20.0019C24.0029 19.7389 23.9383 19.4796 23.8126 19.2485L13.3396 1.25ZM13.5391 18.4955H10.4806V15.491H13.5391V18.4955ZM13.5391 13.9895H10.4806V7.9805H13.5391V13.9895Z"},child:[]}]}),G7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"circle",attr:{fill:"currentColor",cx:"12",cy:"12",r:"12"},child:[]},{tag:"path",attr:{fill:"white",d:"M10.7999 10.7753C10.7999 10.1126 11.3371 9.57531 11.9999 9.57531C12.6626 9.57531 13.1998 10.1126 13.1998 10.7753V17.9754C13.1998 18.6381 12.6626 19.1754 11.9999 19.1754C11.3371 19.1754 10.7999 18.6381 10.7999 17.9754V10.7753Z"},child:[]},{tag:"path",attr:{fill:"white",d:"M11.9999 4.86141C11.3371 4.86141 10.7999 5.39867 10.7999 6.06142C10.7999 6.72416 11.3371 7.26143 11.9999 7.26143C12.6626 7.26143 13.1998 6.72416 13.1998 6.06142C13.1998 5.39867 12.6626 4.86141 11.9999 4.86141Z"},child:[]}]});var Y7e=t=>O(Go,{...t,icon:qre.MdSettings}),Z7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M6.23255 11.3213L6.32008 14.993H8.79253L8.85817 13.2128C9.86466 13.198 10.7472 13.0274 11.5057 12.701C12.2788 12.3746 12.8841 11.8776 13.3217 11.21C13.7739 10.5424 14 9.6968 14 8.67316C14 7.67918 13.7812 6.84098 13.3436 6.15855C12.9206 5.46129 12.3298 4.92721 11.5713 4.55633C10.8274 4.18544 9.96676 4 8.98945 4C7.9392 4 7.03483 4.20028 6.27631 4.60083C5.53239 5.00139 4.96351 5.5503 4.56966 6.24757C4.17582 6.94483 3.98619 7.73853 4.00078 8.62865H6.64828C6.64828 7.93139 6.85249 7.38248 7.26092 6.98192C7.66935 6.56653 8.23823 6.35883 8.96757 6.35883C9.66773 6.35883 10.2293 6.56653 10.6523 6.98192C11.0754 7.38248 11.2869 7.9388 11.2869 8.6509C11.2869 9.39267 11.1045 9.95642 10.7399 10.3421C10.3752 10.7279 9.88654 10.9875 9.27389 11.121C8.66125 11.2545 7.98296 11.3213 7.23904 11.3213H6.23255ZM6.29819 19.5104C6.63369 19.8368 7.05671 20 7.56724 20C8.07778 20 8.4935 19.8368 8.81441 19.5104C9.13532 19.1841 9.29577 18.7909 9.29577 18.331C9.29577 17.8563 9.13532 17.4557 8.81441 17.1293C8.4935 16.803 8.07778 16.6398 7.56724 16.6398C7.05671 16.6398 6.63369 16.803 6.29819 17.1293C5.97729 17.4557 5.81683 17.8563 5.81683 18.331C5.81683 18.7909 5.97729 19.1841 6.29819 19.5104ZM12 14V16.012H20V14H12ZM12 17.988V20H20V17.988H12Z"},child:[]}]}),Ght=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-14a1 1 0 0 1-1-1V5ZM7.5 11a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1v-2ZM7.5 17a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1v-2Z"},child:[]}]}),q7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{stroke:"currentColor",strokeWidth:"1.5",d:"M 6.9590764,5.7378392 H 8.375 V 19.078125 H 6.9590764 Z m 6.1482616,13.3327078 -4.7292032,10e-7 -0.011048,-1.333333 h 4.7402522 c 1.472733,0 2.666667,-1.193907 2.666667,-2.666667 0,-1.472733 -1.193934,-2.666667 -2.666667,-2.666667 H 9.1073387 v -1.333333 h 3.9999993 c 2.209133,-1e-6 4,1.790867 4,4 -10e-7,2.20914 -1.790867,3.999999 -4,3.999999 z m -2.148261,-6.666042 -4.0000007,10e-7 v -1.333333 h 4.0000007 c 1.472733,-10e-7 2.666667,-1.1939074 2.666667,-2.6666667 0,-1.4727336 -1.193934,-2.666667 -2.666667,-2.6666669 l -4.0000007,-3e-7 v -1.333333 h 4.0000007 c 2.209133,-7e-7 4,1.7908664 4,3.9999999 -1e-6,2.20914 -1.790867,3.999999 -4,3.999999 z"},child:[]}]}),J7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M11 15v2h6v-2h-6ZM17 13v-2h-6v2h6ZM17 7v2h-6V7h6ZM6.733 11.252V6.304l-1.027.241V5.67L7.215 5h.706v6.252H6.733ZM5 19v-.83c.381-.316.75-.629 1.107-.938.364-.31.685-.617.965-.92.286-.304.512-.599.679-.885.173-.291.259-.574.259-.848 0-.256-.072-.482-.214-.679-.137-.196-.367-.295-.688-.295-.328 0-.575.108-.741.322-.167.214-.25.473-.25.777H5.008c.012-.459.113-.84.304-1.143.19-.31.443-.54.759-.688.315-.155.67-.232 1.063-.232.637 0 1.131.175 1.482.527.358.345.536.795.536 1.348 0 .346-.08.682-.241 1.01-.155.327-.36.643-.616.946-.256.304-.533.59-.83.858-.299.262-.587.506-.867.732h2.706V19H5Z"},child:[]}]}),X7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"m9.953 16.912-1.36 1.449-6.562-6.16L8.19 5.64l1.458 1.369-4.79 5.104 5.094 4.781v.02ZM14.047 16.912l1.36 1.449 6.562-6.16L15.81 5.64l-1.458 1.369 4.79 5.104-5.094 4.781v.02Z"},child:[]}]}),Q7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M12.171 18.878c-.975 0-1.836-.165-2.584-.494-.747-.342-1.336-.823-1.767-1.444-.43-.633-.652-1.4-.665-2.299H9.72c.025.62.247 1.146.665 1.577.43.418 1.02.627 1.767.627.646 0 1.16-.152 1.54-.456.38-.317.57-.735.57-1.254 0-.545-.172-.969-.514-1.273a2.857 2.857 0 0 0-.41-.313h3.273c.156.403.234.874.234 1.415a3.72 3.72 0 0 1-.532 1.938c-.354.595-.88 1.077-1.577 1.444-.697.355-1.552.532-2.565.532ZM7.523 9.55a4.207 4.207 0 0 1-.045-.627c-.013-.785.171-1.457.551-2.014a3.789 3.789 0 0 1 1.596-1.31c.671-.318 1.444-.476 2.318-.476.887 0 1.666.158 2.337.475.684.317 1.216.76 1.596 1.33.393.57.602 1.248.627 2.033H13.9c-.013-.469-.196-.88-.55-1.235-.343-.367-.824-.55-1.445-.55-.532-.014-.981.12-1.349.398-.354.266-.532.659-.532 1.178 0 .31.068.575.203.798H7.523Zm11.71 1h-15v2h15v-2Z"},child:[]}]}),e$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16.192 8.058v.777h4.028v-.878h-2.532c.262-.211.532-.44.81-.685.28-.25.538-.518.778-.802.24-.285.432-.58.576-.886a2.12 2.12 0 0 0 .226-.945c0-.518-.167-.939-.501-1.262-.33-.329-.792-.493-1.388-.493-.368 0-.7.072-.994.217-.296.14-.533.354-.71.644-.18.284-.274.64-.285 1.07h1.036c0-.285.078-.527.234-.728.156-.2.388-.3.694-.3.301 0 .515.091.644.275.133.184.2.396.2.636 0 .256-.08.52-.242.794a4.639 4.639 0 0 1-.635.827c-.262.284-.563.571-.903.861-.334.29-.68.582-1.037.878Zm-8.194 3.716L3.838 18.5h2.735l2.736-4.693L12.33 18.5h2.793l-4.256-6.612L15.028 5.2h-2.736L9.556 9.836 6.573 5.2H3.78l4.218 6.574Z"},child:[]}]}),t$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.998 11.774 3.838 18.5h2.735l2.736-4.693L12.33 18.5h2.793l-4.256-6.612L15.028 5.2h-2.736L9.556 9.836 6.573 5.2H3.78l4.218 6.574Zm8.194 8.157v.777h4.028v-.877h-2.532c.262-.212.532-.44.81-.686.28-.25.538-.518.778-.802.24-.284.432-.58.576-.886a2.12 2.12 0 0 0 .226-.944c0-.519-.167-.94-.501-1.263-.33-.328-.792-.493-1.388-.493-.368 0-.7.073-.994.218-.296.139-.533.354-.71.643-.18.284-.274.641-.285 1.07h1.036c0-.284.078-.526.234-.727.156-.2.388-.301.694-.301.301 0 .515.092.644.276.133.184.2.395.2.635 0 .256-.08.521-.242.794a4.638 4.638 0 0 1-.635.828 10.4 10.4 0 0 1-.903.86c-.334.29-.68.583-1.037.878Z"},child:[]}]}),n$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 40 40"},child:[{tag:"path",attr:{fill:"currentColor",d:"M3.3335 20.0719V18.1118C4.82718 18.1118 5.87011 17.8113 6.46228 17.2102C7.05446 16.6005 7.35054 15.5943 7.35054 14.1918V10.4417C7.35054 9.10884 7.50079 7.98945 7.8013 7.08349C8.11064 6.16882 8.57908 5.43708 9.2066 4.88827C9.83413 4.33947 10.6296 3.94311 11.593 3.6992C12.5563 3.45528 13.6921 3.33333 15.0002 3.33333V6.43015C13.9749 6.43015 13.175 6.57824 12.6005 6.87442C12.026 7.1706 11.6239 7.6323 11.3941 8.2595C11.1731 8.878 11.0627 9.67071 11.0627 10.6377V15.394C11.0627 16.0647 10.961 16.6876 10.7577 17.2625C10.5545 17.8287 10.1788 18.3209 9.63084 18.7391C9.08286 19.1572 8.30067 19.4839 7.28425 19.7191C6.26784 19.9543 4.95092 20.0719 3.3335 20.0719ZM15.0002 36.6667C13.6921 36.6667 12.5563 36.5447 11.593 36.3008C10.6296 36.0569 9.83413 35.6605 9.2066 35.1117C8.57908 34.5629 8.11064 33.8312 7.8013 32.9165C7.50079 32.0105 7.35054 30.8911 7.35054 29.5583V25.7951C7.35054 24.4013 7.05446 23.3995 6.46228 22.7897C5.87011 22.18 4.82718 21.8751 3.3335 21.8751V19.9281C4.95092 19.9281 6.26784 20.0457 7.28425 20.2809C8.30067 20.5074 9.08286 20.8341 9.63084 21.2609C10.1788 21.6791 10.5545 22.1756 10.7577 22.7506C10.961 23.3168 11.0627 23.9353 11.0627 24.606V29.3623C11.0627 30.3206 11.1731 31.1089 11.3941 31.7274C11.6239 32.3546 12.026 32.8163 12.6005 33.1125C13.175 33.4174 13.9749 33.5698 15.0002 33.5698V36.6667ZM3.3335 21.8751V18.1118H7.00584V21.8751H3.3335Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M14.9998 20C14.9998 20.9205 14.2536 21.6667 13.3332 21.6667C12.4127 21.6667 11.6665 20.9205 11.6665 20C11.6665 19.0795 12.4127 18.3333 13.3332 18.3333C14.2536 18.3333 14.9998 19.0795 14.9998 20Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M21.6665 20C21.6665 20.9205 20.9203 21.6667 19.9998 21.6667C19.0794 21.6667 18.3332 20.9205 18.3332 20C18.3332 19.0795 19.0794 18.3333 19.9998 18.3333C20.9203 18.3333 21.6665 19.0795 21.6665 20Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M28.3332 20C28.3332 20.9205 27.587 21.6667 26.6665 21.6667C25.746 21.6667 24.9998 20.9205 24.9998 20C24.9998 19.0795 25.746 18.3333 26.6665 18.3333C27.587 18.3333 28.3332 19.0795 28.3332 20Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M36.6667 19.9281V21.8751C35.173 21.8751 34.1301 22.18 33.5379 22.7898C32.9457 23.3995 32.6496 24.4013 32.6496 25.7951V29.5583C32.6496 30.8912 32.4949 32.0105 32.1856 32.9165C31.8851 33.8312 31.4211 34.5629 30.7936 35.1117C30.166 35.6605 29.3706 36.0569 28.4072 36.3008C27.4438 36.5447 26.3081 36.6667 25 36.6667V33.5698C26.0253 33.5698 26.8251 33.4174 27.3996 33.1125C27.9741 32.8163 28.3718 32.3546 28.5928 31.7274C28.8226 31.1089 28.9375 30.3206 28.9375 29.3623V24.606C28.9375 23.9353 29.0391 23.3168 29.2424 22.7506C29.4457 22.1756 29.8213 21.6791 30.3693 21.2609C30.9173 20.8341 31.6995 20.5074 32.7159 20.2809C33.7323 20.0457 35.0492 19.9281 36.6667 19.9281ZM25 3.33333C26.3081 3.33333 27.4438 3.45528 28.4072 3.6992C29.3706 3.94311 30.166 4.33947 30.7936 4.88827C31.4211 5.43708 31.8851 6.16882 32.1856 7.08349C32.4949 7.98945 32.6496 9.10884 32.6496 10.4417V14.1918C32.6496 15.5943 32.9457 16.6005 33.5379 17.2102C34.1301 17.8113 35.173 18.1118 36.6667 18.1118V20.0719C35.0492 20.0719 33.7323 19.9543 32.7159 19.7191C31.6995 19.4839 30.9173 19.1572 30.3693 18.7391C29.8213 18.3209 29.4457 17.8287 29.2424 17.2625C29.0391 16.6876 28.9375 16.0647 28.9375 15.394V10.6377C28.9375 9.67071 28.8226 8.878 28.5928 8.2595C28.3718 7.6323 27.9741 7.1706 27.3996 6.87442C26.8251 6.57824 26.0253 6.43015 25 6.43015V3.33333ZM36.6667 18.1118V21.8751H32.9943V18.1118H36.6667Z"},child:[]}]}),r$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M4.904 12.75a1.67 1.67 0 0 0 0 2.362l3.22 3.22h-2.73a.835.835 0 0 0 0 1.67H18.75a.835.835 0 1 0 0-1.67h-7.622l7.943-7.942a1.67 1.67 0 0 0 0-2.362L15.53 4.487a1.67 1.67 0 0 0-2.362 0L4.904 12.75Zm3.611-1.25-2.43 2.431 3.542 3.542 2.43-2.43L8.515 11.5Zm1.181-1.18 3.542 3.542L17.89 9.21l-3.542-3.542-4.653 4.653Z"},child:[]}]}),o$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 40 40"},child:[{tag:"path",attr:{fill:"currentColor",d:"M8.9984 27.5V21.8919L4.00049 11.7342H7.08431L10.3808 19.009L13.656 11.7342H16.6973L11.7207 21.8919V27.5H8.9984Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M15.0085 30L20.3255 10H22.9839L17.6457 30H15.0085Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M24.8922 27.5V11.7342H27.6145L34.6116 22.8378V11.7342H37.3338V27.5H34.6116L27.6145 16.4189V27.5H24.8922Z"},child:[]}]}),i$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.99979 5.64298L5.64277 8L7.99979 10.357L10.3568 8L7.99979 5.64298ZM3.875 8L7.99979 12.1248L12.1246 8L7.99979 3.87521L3.875 8Z"},child:[]}]}),s$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3.875 8L7.99979 12.1248L12.1246 8L7.99979 3.87521L3.875 8Z"},child:[]}]}),a$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillOpacity:"0.5",d:"M12.6021 0.799316C12.5443 0.799316 12.487 0.802204 12.4305 0.807862C12.3484 1.91145 11.5902 2.79082 10.6387 2.88601C10.6338 2.9516 10.6313 3.01798 10.6313 3.08503C10.6313 3.15208 10.6338 3.21846 10.6387 3.28405C11.5902 3.37924 12.3484 4.25862 12.4305 5.3622C12.487 5.36786 12.5443 5.37074 12.6021 5.37074C12.6599 5.37074 12.7171 5.36786 12.7737 5.3622C12.8558 4.25862 13.614 3.37924 14.5655 3.28405C14.5704 3.21846 14.5729 3.15208 14.5729 3.08503C14.5729 3.01798 14.5704 2.9516 14.5655 2.88601C13.614 2.79082 12.8558 1.91145 12.7737 0.807862C12.7171 0.802204 12.6599 0.799316 12.6021 0.799316Z"},child:[]},{tag:"path",attr:{fill:"currentColor",fillOpacity:"0.5",d:"M17.8945 12.4247C17.8367 12.4247 17.7795 12.4276 17.7229 12.4332C17.6409 13.5368 16.8826 14.4162 15.9311 14.5114C15.9262 14.577 15.9237 14.6433 15.9237 14.7104C15.9237 14.7774 15.9262 14.8438 15.9311 14.9094C16.8826 15.0046 17.6409 15.884 17.7229 16.9876C17.7795 16.9932 17.8367 16.9961 17.8945 16.9961C17.9523 16.9961 18.0096 16.9932 18.0661 16.9876C18.1482 15.884 18.9064 15.0046 19.858 14.9094C19.8628 14.8438 19.8653 14.7774 19.8653 14.7104C19.8653 14.6433 19.8628 14.577 19.858 14.5114C18.9064 14.4162 18.1482 13.5368 18.0661 12.4332C18.0096 12.4276 17.9523 12.4247 17.8945 12.4247Z"},child:[]},{tag:"path",attr:{fill:"currentColor",fillOpacity:"0.5",d:"M21.571 1.6413C21.509 1.6413 21.4476 1.6449 21.387 1.65195C21.299 3.02718 20.4858 4.12302 19.4653 4.24164C19.4601 4.32337 19.4574 4.40609 19.4574 4.48965C19.4574 4.57321 19.4601 4.65592 19.4653 4.73766C20.4858 4.85628 21.299 5.95211 21.387 7.32734C21.4476 7.33439 21.509 7.33799 21.571 7.33799C21.633 7.33799 21.6944 7.33439 21.755 7.32734C21.8431 5.95211 22.6562 4.85628 23.6767 4.73766C23.6819 4.65592 23.6846 4.57321 23.6846 4.48965C23.6846 4.40609 23.6819 4.32337 23.6767 4.24164C22.6562 4.12302 21.8431 3.02718 21.755 1.65195C21.6944 1.6449 21.633 1.6413 21.571 1.6413Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M15.6875 11.9141L12.5116 8.73823L2.07262 19.1773C1.9166 19.3333 1.9166 19.5862 2.07262 19.7422L4.68354 22.3532C4.83956 22.5092 5.0925 22.5092 5.24852 22.3532L15.6875 11.9141Z"},child:[]},{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16.8929 4.92196L19.5038 7.53288L14.8688 12.1679L12.2578 9.55702L16.8929 4.92196ZM19.7863 7.2504C19.9423 7.40641 19.9423 7.65936 19.7863 7.81537L15.6875 11.9141L12.5116 8.73823L16.6104 4.63947C16.7664 4.48346 17.0194 4.48346 17.1754 4.63947L19.7863 7.2504Z"},child:[]}]}),l$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 10C2 9.44772 2.44772 9 3 9H21C21.5523 9 22 9.44772 22 10C22 10.5523 21.5523 11 21 11H3C2.44772 11 2 10.5523 2 10Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 14C2 13.4477 2.44772 13 3 13H21C21.5523 13 22 13.4477 22 14C22 14.5523 21.5523 15 21 15H3C2.44772 15 2 14.5523 2 14Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z"},child:[]}]}),c$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:'M2 4C2 3.44772 2.44772 3 3 3H21C21.5523 3 22 3.44772 22 4C22 4.55228 21.5523 5 21 5H3C2.44772 5 2 4.55228 2 4Z"'},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 8C2 7.44772 2.44772 7 3 7H21C21.5523 7 22 7.44772 22 8C22 8.55228 21.5523 9 21 9H3C2.44772 9 2 8.55228 2 8Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 16C2 15.4477 2.44772 15 3 15H21C21.5523 15 22 15.4477 22 16C22 16.5523 21.5523 17 21 17H3C2.44772 17 2 16.5523 2 16Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 20C2 19.4477 2.44772 19 3 19H21C21.5523 19 22 19.4477 22 20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20Z"},child:[]}]}),u$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 16 16",fill:"none",strokeWidth:""},child:[{tag:"path",attr:{stroke:"currentColor",d:"M8 13.3334L6 14V8.33335L3.01333 5.04802C2.7903 4.80264 2.6667 4.48295 2.66666 4.15135V2.66669H13.3333V4.11469C13.3333 4.46828 13.1927 4.80736 12.9427 5.05735L10 8.00002V10M10.6667 12.6667H14.6667M12.6667 10.6667V14.6667",strokeLinejoin:"round",strokeLinecap:"round"},child:[]}]}),d$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12"},child:[{tag:"path",attr:{d:"M8.27759 6C8.30628 6.15156 8.32129 6.30795 8.32129 6.46785C8.32129 7.84856 7.202 8.96785 5.82129 8.96785C5.27787 8.96785 4.77494 8.79447 4.36482 8.5H5.66057V7.5H2.66057V10.5H3.66057V9.22145C4.25557 9.689 5.00587 9.96785 5.82129 9.96785C7.75429 9.96785 9.32129 8.40085 9.32129 6.46785C9.32129 6.30921 9.31074 6.15304 9.29029 6H8.27759Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M8.16064 2H9.16064V5H6.16064V4L7.4564 4C7.04627 3.70553 6.54334 3.53215 5.99992 3.53215C4.61921 3.53215 3.49992 4.65144 3.49992 6.03215C3.49992 6.19205 3.51493 6.34844 3.54363 6.5H2.53092C2.51048 6.34696 2.49992 6.19079 2.49992 6.03215C2.49992 4.09915 4.06693 2.53215 5.99992 2.53215C6.81535 2.53215 7.56564 2.811 8.16064 3.27855V2Z",fill:"currentColor"},child:[]}]}),f$e=rt({tag:"svg",attr:{viewBox:"0 0 24 24",role:"img"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4C2 2.89543 2.89543 2 4 2H18C19.1046 2 20 2.89543 20 4V9H18V4H16V5C16 6.65685 14.6569 8 13 8H9C7.34315 8 6 6.65685 6 5V4H4L4 18H9V20H4C2.89543 20 2 19.1046 2 18V4ZM8 5V4H14V5C14 5.55228 13.5523 6 13 6H9C8.44772 6 8 5.55228 8 5Z"},child:[]},{tag:"path",attr:{d:"M9 14.0665V16.0665H7.04053C6.48824 16.0665 6.04053 15.6188 6.04053 15.0665C6.04053 14.5142 6.48824 14.0665 7.04053 14.0665H9Z"},child:[]},{tag:"path",attr:{d:"M9.26756 10C9.09739 10.2942 9 10.6357 9 11V12H7C6.44772 12 6 11.5523 6 11C6 10.4477 6.44772 10 7 10H9.26756Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M10 11.3333C10 10.597 10.597 10 11.3333 10H20.6667L22 11.3333V20.6667C22 21.403 21.403 22 20.6667 22H11.3333C10.597 22 10 21.403 10 20.6667V11.3333ZM11.3333 11.3333H12V12C12 13.1046 12.3333 14.6667 14 14.6667H16.6667C18.3333 14.6667 18.6667 13.1046 18.6667 12V11.3333H20.3333L20.6667 11.6667V20.6667H11.3333V11.3333ZM13.3333 12V11.3333H15.3333V11.973C15.3333 12.3412 15.6318 12.6396 16 12.6396C16.3682 12.6396 16.6667 12.3412 16.6667 11.973V11.3333H17.3333V12C17.3333 12.3682 17.3333 13.3333 16.6667 13.3333H14C13.3333 13.3333 13.3333 12.3682 13.3333 12Z"},child:[]},{tag:"path",attr:{d:"M13 16C13 15.7239 13.2239 15.5 13.5 15.5H18.5C18.7761 15.5 19 15.7239 19 16C19 16.2761 18.7761 16.5 18.5 16.5H13.5C13.2239 16.5 13 16.2761 13 16Z"},child:[]},{tag:"path",attr:{d:"M13 17.5C13 17.2239 13.2239 17 13.5 17H18.5C18.7761 17 19 17.2239 19 17.5C19 17.7761 18.7761 18 18.5 18H13.5C13.2239 18 13 17.7761 13 17.5Z"},child:[]},{tag:"path",attr:{d:"M13 19C13 18.7239 13.2239 18.5 13.5 18.5H18.5C18.7761 18.5 19 18.7239 19 19C19 19.2761 18.7761 19.5 18.5 19.5H13.5C13.2239 19.5 13 19.2761 13 19Z"},child:[]}]}),p$e=rt({tag:"svg",attr:{viewBox:"0 0 24 24",role:"img"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4C2 2.89543 2.89543 2 4 2H18C19.1046 2 20 2.89543 20 4V16.4593L18 14.9973V4H16V5C16 6.65685 14.6569 8 13 8H9C7.34315 8 6 6.65685 6 5V4H4L4 18H9V18.08C9 18.6748 9.0216 19.1889 9.06692 19.6126C9.08082 19.7426 9.09774 19.8726 9.11907 20H4C2.89543 20 2 19.1046 2 18V4ZM8 5V4H14V5C14 5.55228 13.5523 6 13 6H9C8.44772 6 8 5.55228 8 5Z"},child:[]},{tag:"path",attr:{d:"M20 17.698V18C20 19.1046 19.1046 20 18 20H10.1368C10.0476 19.5861 10 18.9441 10 18.08V18H18V16.236L20 17.698Z"},child:[]},{tag:"path",attr:{d:"M12.2024 16.0665H15C15.5523 16.0665 16 15.6188 16 15.0665C16 14.5142 15.5523 14.0665 15 14.0665H11.98V15C11.98 15.6484 12.0944 15.9269 12.1685 16.0282L12.1701 16.0304C12.1768 16.0396 12.1861 16.0525 12.2024 16.0665Z"},child:[]},{tag:"path",attr:{d:"M9 14.0665H7.04053C6.48824 14.0665 6.04053 14.5142 6.04053 15.0665C6.04053 15.6188 6.48824 16.0665 7.04053 16.0665H9V14.0665Z"},child:[]},{tag:"path",attr:{d:"M10 16.0665V15H10.98C10.98 15.1693 10.9866 15.3286 11 15.4778C11.0196 15.6953 11.0538 15.8915 11.1035 16.0665H10Z"},child:[]},{tag:"path",attr:{d:"M7 10C6.44772 10 6 10.4477 6 11C6 11.5523 6.44772 12 7 12H14.9595C15.5118 12 15.9595 11.5523 15.9595 11C15.9595 10.4477 15.5118 10 14.9595 10H7Z"},child:[]},{tag:"path",attr:{d:"M17.42 22.812V21.468H12.66C10.896 21.468 10.56 21.048 10.238 20.334C10.084 19.984 10 19.228 10 18.08V15H10.98C10.98 16.442 11.456 17.156 12.604 17.156H17.42V15.812L22.208 19.312L17.42 22.812Z"},child:[]}]}),m$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 11 4",fill:"none"},child:[{tag:"path",attr:{strokeWidth:"1",stroke:"currentColor",d:"M1 4.5L3.64645 1.85355C3.84171 1.65829 4.15829 1.65829 4.35355 1.85355L6.64645 4.14645C6.84171 4.34171 7.15829 4.34171 7.35355 4.14645L10 1.5"},child:[]}]}),g$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 11 6",fill:"none"},child:[{tag:"path",attr:{strokeWidth:"2",stroke:"currentColor",d:"M1 4.5L3.64645 1.85355C3.84171 1.65829 4.15829 1.65829 4.35355 1.85355L6.64645 4.14645C6.84171 4.34171 7.15829 4.34171 7.35355 4.14645L10 1.5"},child:[]}]}),h$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 20 20"},child:[{tag:"path",attr:{fill:"currentColor",d:"M10.0413 10.7257C10.4598 10.7258 10.799 11.0657 10.799 11.4842L10.799 11.4899C10.799 11.9084 10.4598 12.2475 10.0413 12.2476C9.62283 12.2475 9.28369 11.9084 9.28369 11.4899L9.28369 11.4842C9.28369 11.0657 9.62283 10.7258 10.0413 10.7257Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M10.0934 4.39274C10.4647 4.39383 10.8309 4.48096 11.1628 4.64746C11.4947 4.81402 11.783 5.05592 12.0059 5.35303C12.2287 5.65016 12.38 5.99518 12.4469 6.36051C12.5138 6.72571 12.4946 7.10163 12.3916 7.45833C12.2886 7.81505 12.1041 8.1428 11.8529 8.41618C11.6016 8.68953 11.2906 8.90118 10.9438 9.03385C10.9375 9.03629 10.9307 9.03892 10.9243 9.04118C10.8856 9.05478 10.8519 9.08032 10.8291 9.11442C10.8063 9.14858 10.7959 9.1898 10.7982 9.23079C10.8218 9.64848 10.5021 10.0061 10.0845 10.0299C9.66663 10.0536 9.30822 9.73409 9.28451 9.31624C9.26363 8.94732 9.36355 8.58123 9.56852 8.27376C9.76967 7.97218 10.0617 7.74296 10.4019 7.61865C10.5297 7.56978 10.6445 7.49153 10.7371 7.39079C10.8297 7.29005 10.8978 7.16906 10.9357 7.0376C10.9736 6.90619 10.9807 6.76766 10.9561 6.63314C10.9314 6.49859 10.8754 6.37148 10.7933 6.26204C10.7112 6.15269 10.6046 6.06376 10.4824 6.00244C10.3602 5.94119 10.2252 5.90924 10.0885 5.90885C9.95181 5.90852 9.8164 5.93936 9.69385 6C9.5714 6.06064 9.46479 6.14915 9.38216 6.25798C9.1292 6.59139 8.65357 6.65659 8.32015 6.40365C7.98702 6.15069 7.92177 5.67578 8.17448 5.34245C8.39897 5.04657 8.68958 4.80649 9.02246 4.64176C9.35526 4.47716 9.72214 4.39171 10.0934 4.39274Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M16.6665 1.6665C17.5832 1.66651 18.3332 2.41651 18.3332 3.33317L18.3332 13.3332C18.3332 14.2498 17.5832 14.9998 16.6665 14.9998L4.99984 14.9998L1.6665 18.3332L1.6665 3.33317C1.6665 2.4165 2.4165 1.6665 3.33317 1.6665L16.6665 1.6665ZM3.33317 3.33317L3.33317 14.9998L4.99984 13.3332L16.6665 13.3332L16.6665 3.33317L3.33317 3.33317Z"},child:[]},{tag:"path",attr:{stroke:"currentColor",d:"M10.0413 10.7257C10.4598 10.7258 10.799 11.0657 10.799 11.4842L10.799 11.4899C10.799 11.9084 10.4598 12.2475 10.0413 12.2476C9.62283 12.2475 9.28369 11.9084 9.28369 11.4899L9.28369 11.4842C9.28369 11.0657 9.62283 10.7258 10.0413 10.7257Z"},child:[]},{tag:"path",attr:{stroke:"currentColor",d:"M10.0934 4.39274C10.4647 4.39383 10.8309 4.48096 11.1628 4.64746C11.4947 4.81402 11.783 5.05592 12.0059 5.35303C12.2287 5.65016 12.38 5.99518 12.4469 6.36051C12.5138 6.72571 12.4946 7.10163 12.3916 7.45833C12.2886 7.81505 12.1041 8.1428 11.8529 8.41618C11.6016 8.68953 11.2906 8.90118 10.9438 9.03385C10.9375 9.03629 10.9307 9.03892 10.9243 9.04118C10.8856 9.05478 10.8519 9.08032 10.8291 9.11442C10.8063 9.14858 10.7959 9.1898 10.7982 9.23079C10.8218 9.64848 10.5021 10.0061 10.0845 10.0299C9.66663 10.0536 9.30822 9.73409 9.28451 9.31624C9.26363 8.94732 9.36355 8.58123 9.56852 8.27376C9.76967 7.97218 10.0617 7.74296 10.4019 7.61865C10.5297 7.56978 10.6445 7.49153 10.7371 7.39079C10.8297 7.29005 10.8978 7.16906 10.9357 7.0376C10.9736 6.90619 10.9807 6.76766 10.9561 6.63314C10.9314 6.49859 10.8754 6.37148 10.7933 6.26204C10.7112 6.15269 10.6046 6.06376 10.4824 6.00244C10.3602 5.94119 10.2252 5.90924 10.0885 5.90885C9.95181 5.90852 9.8164 5.93936 9.69385 6C9.5714 6.06064 9.46479 6.14915 9.38216 6.25798C9.1292 6.59139 8.65357 6.65659 8.32015 6.40365C7.98702 6.15069 7.92177 5.67578 8.17448 5.34245C8.39897 5.04657 8.68958 4.80649 9.02246 4.64176C9.35526 4.47716 9.72214 4.39171 10.0934 4.39274Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",stroke:"currentColor",d:"M16.6665 1.6665C17.5832 1.66651 18.3332 2.41651 18.3332 3.33317L18.3332 13.3332C18.3332 14.2498 17.5832 14.9998 16.6665 14.9998L4.99984 14.9998L1.6665 18.3332L1.6665 3.33317C1.6665 2.4165 2.4165 1.6665 3.33317 1.6665L16.6665 1.6665ZM3.33317 3.33317L3.33317 14.9998L4.99984 13.3332L16.6665 13.3332L16.6665 3.33317L3.33317 3.33317Z"},child:[]}]}),v$e={"rectangle-rounded":F7e,card:B7e,"image-text":z7e,"border-top":j7e,"full-width-screen":V7e,"text-input":U7e,"number-input":H7e,"canvas-alert":K7e,warning:W7e,"info-filled":G7e,settings:Y7e,"query-string":Z7e,json:n$e,"format-bold":q7e,"format-code":X7e,"format-strike":Q7e,"format-superscript":e$e,"format-subscript":t$e,"layout-list-numbered":J7e,"clear-formatting":r$e,"yes-no":o$e,"diamond-outline":i$e,"diamond-fill":s$e,"magic-wand":a$e,"list-view-short":l$e,"list-view-long":c$e,"filter-add":u$e,"clipboard-copy":f$e,"clipboard-paste":p$e,refresh:d$e,"zig-zag":m$e,"zig-zag-thick":g$e,"chat-icon":h$e};var Zht=v$e["magic-wand"];var qht=rt({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 24 24",role:"img"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M20.123 15.88A9 9 0 0 0 8.12 3.877l2.787 2.787c.03-.073.06-.145.092-.216.294-.661.592-1.073.823-1.292a.988.988 0 0 1 .178-.14.991.991 0 0 1 .178.14c.23.22.528.63.823 1.292.366.825.665 1.901.838 3.148l3.593 3.594a9.739 9.739 0 0 0 1.548-.665 6.968 6.968 0 0 1-.385 1.827l1.528 1.528ZM14.805 5.585c.691 1.53 1.136 3.62 1.19 5.945a9.939 9.939 0 0 0 1.557-.53c.6-.266.994-.536 1.226-.756a7.016 7.016 0 0 0-3.973-4.66ZM3.877 8.12A9 9 0 0 0 15.88 20.123l-2.787-2.787a7.89 7.89 0 0 1-.092.216c-.294.661-.593 1.073-.823 1.292a.996.996 0 0 1-.178.14.99.99 0 0 1-.178-.14c-.23-.22-.529-.63-.823-1.292-.367-.825-.666-1.901-.838-3.148L6.967 11.21a8.334 8.334 0 0 1-.519-.21c-.6-.266-.995-.536-1.226-.756a6.95 6.95 0 0 1 .183-.596L3.877 8.12Zm5.317 10.295c-.577-1.278-.982-2.947-1.131-4.817-1.183-.256-2.22-.624-3.044-1.073a7.004 7.004 0 0 0 4.175 5.89Z",clipRule:"evenodd"},child:[]},{tag:"path",attr:{d:"M20.031 20.031a1.5 1.5 0 0 1-2.121 0L3.06 5.182a1.5 1.5 0 0 1 2.122-2.121L20.03 17.91a1.5 1.5 0 0 1 0 2.121Z"},child:[]}]}),Jht=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M8.39503 10.7767L7.17163 12.0001L8.5 13.3284V17.4676L11.1491 15.9775L12.2505 17.079L8.1177 19.4037C7.88939 19.5321 7.61061 19.5321 7.3823 19.4037L1.3823 16.0287C1.14615 15.8958 1 15.646 1 15.375V8.625C1 8.35404 1.14615 8.10416 1.3823 7.97132L7.3823 4.59632C7.61061 4.46789 7.88939 4.46789 8.1177 4.59632L12.2506 6.92108L11.1492 8.02254L7.75 6.11051L3.2798 8.625L7.75 11.1395L8.39503 10.7767ZM2.5 9.90739L7 12.4386V17.4676L2.5 14.9364V9.90739ZM12.8284 12.0001L16.5997 8.22883L20.3709 12.0001L16.5997 15.7713L12.8284 12.0001ZM16.5997 18.5997L10 12.0001L16.5997 5.4004L23.1993 12.0001L16.5997 18.5997Z"},child:[]}]}),Xht=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M6.92163 12H4V13.5H8.42163L6.92163 12ZM12.7397 17.8181C12.6083 17.9314 12.4372 18 12.25 18H3.25C2.83579 18 2.5 17.6642 2.5 17.25V6.75C2.5 6.33579 2.83579 6 3.25 6H8.5V9.75H9.17163L10.6716 8.25H10V6.07501C10.7159 6.22033 11.3577 6.56957 11.8622 7.05945L12.9229 5.99871C11.9761 5.07158 10.6798 4.5 9.25 4.5H3.25C2.00736 4.5 1 5.50736 1 6.75V17.25C1 18.4926 2.00736 19.5 3.25 19.5H12.25C12.8514 19.5 13.3977 19.2641 13.8013 18.8797L12.7397 17.8181ZM11.4216 16.5H4V15H9.92163L11.4216 16.5ZM4 10.5H7V9H4V10.5ZM12.5784 12L16.3497 8.22876L20.1209 12L16.3497 15.7712L12.5784 12ZM16.3497 18.5997L9.75 12L16.3497 5.40034L22.9493 12L16.3497 18.5997Z"},child:[]}]});var Qht=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M9.42163 14.25H8.5C8.08579 14.25 7.75 14.5858 7.75 15C7.75 15.4142 8.08579 15.75 8.5 15.75H10.9216L9.42163 14.25ZM13.1716 18H3.25C2.83579 18 2.5 17.6642 2.5 17.25V6.75C2.5 6.33579 2.83579 6 3.25 6H13.1716L14.6716 4.5H3.25C2.00736 4.5 1 5.50736 1 6.75V17.25C1 18.4926 2.00736 19.5 3.25 19.5H14.6716L13.1716 18ZM17.4427 17.7567L16.5997 18.5997L16.5997 18.5996L16.5997 18.5997L10 12L16.5997 5.40034L16.5997 5.40037L16.5997 5.40034L17.4427 6.24334C17.4427 6.24337 17.4427 6.24339 17.4427 6.24342L23.1993 12L17.4427 17.7566C17.4427 17.7566 17.4427 17.7566 17.4427 17.7567ZM10.9216 8.25H8.5C8.08579 8.25 7.75 8.58579 7.75 9C7.75 9.41421 8.08579 9.75 8.5 9.75H9.42163L10.9216 8.25ZM6.25 8.25H4.75V9.75H6.25V8.25ZM4.75 11.25H6.25V12.75H4.75V11.25ZM4.75 14.25H6.25V15.75H4.75V14.25ZM12.8284 12L16.5997 8.22876L20.3709 12L16.5997 15.7712L12.8284 12Z"},child:[]}]}),e0t=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12",fill:"none"},child:[{tag:"circle",attr:{cx:"6",cy:"6",r:"5",stroke:"currentColor",strokeWidth:"2"},child:[]}]}),t0t=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12",fill:"var(--white)"},child:[{tag:"circle",attr:{cx:"6",cy:"6",r:"5.5",stroke:"currentColor",strokeWidth:"1"},child:[]},{tag:"path",attr:{clipRule:"evenodd",fillRule:"evenodd",d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0V12Z",fill:"currentColor"},child:[]}]}),n0t=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12"},child:[{tag:"circle",attr:{cx:"6",cy:"6",r:"6",fill:"currentColor"},child:[]}]}),r0t=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12",fill:"none"},child:[{tag:"path",attr:{fill:"currentColor",d:"M9.37501 7.12499C9.04355 7.12482 8.72146 7.23498 8.45954 7.43812L7.37626 6.59437C7.45804 6.40689 7.50017 6.20453 7.50001 5.99999C7.50001 5.96531 7.50001 5.93062 7.49626 5.8964L8.11641 5.68968C8.31261 5.99228 8.61126 6.21406 8.95766 6.3144C9.30406 6.41474 9.67501 6.38692 10.0026 6.23604C10.3301 6.08516 10.5924 5.82131 10.7412 5.49284C10.8901 5.16436 10.9157 4.79324 10.8132 4.44747C10.7107 4.10169 10.4871 3.8044 10.1833 3.61006C9.87954 3.41572 9.5159 3.33733 9.15902 3.38926C8.80214 3.44119 8.47592 3.61996 8.2401 3.89281C8.00429 4.16567 7.87468 4.51436 7.87501 4.87499C7.87501 4.90968 7.87501 4.94437 7.87876 4.97859L7.2586 5.18531C7.12265 4.97514 6.93627 4.80233 6.71644 4.68263C6.49661 4.56293 6.25031 4.50014 6.00001 4.49999C5.91724 4.50017 5.83462 4.50706 5.75297 4.52062L5.43235 3.79687C5.7092 3.57566 5.8988 3.26358 5.96753 2.91594C6.03626 2.5683 5.9797 2.20755 5.80786 1.89763C5.63602 1.58771 5.36 1.34863 5.02873 1.22278C4.69746 1.09693 4.33233 1.09243 3.99805 1.21007C3.66378 1.32771 3.38195 1.5599 3.20251 1.86549C3.02308 2.17108 2.95763 2.53032 3.01777 2.87956C3.07791 3.22879 3.25975 3.54545 3.53106 3.77342C3.80237 4.00139 4.14563 4.12594 4.50001 4.12499C4.58277 4.12482 4.66539 4.11792 4.74704 4.10437L5.06766 4.82624C4.79577 5.04144 4.60706 5.34439 4.53378 5.68331C4.46051 6.02223 4.50722 6.37608 4.66594 6.68437L3.46079 7.75499C3.1575 7.55053 2.79005 7.4637 2.42732 7.51078C2.06459 7.55785 1.73148 7.7356 1.49043 8.01071C1.24938 8.28581 1.11693 8.63939 1.11793 9.00516C1.11892 9.37093 1.25327 9.72379 1.49581 9.99758C1.73835 10.2714 2.07242 10.4473 2.4354 10.4924C2.79838 10.5375 3.16535 10.4487 3.46753 10.2426C3.7697 10.0365 3.98634 9.72728 4.07683 9.37288C4.16732 9.01847 4.12545 8.64323 3.95907 8.31749L5.16422 7.24687C5.42516 7.42256 5.73485 7.51152 6.04925 7.50108C6.36365 7.49064 6.66676 7.38135 6.91547 7.18874L7.99876 8.03249C7.91723 8.21939 7.8751 8.42109 7.87501 8.62499C7.87501 8.92167 7.96298 9.21168 8.1278 9.45835C8.29262 9.70502 8.52689 9.89728 8.80098 10.0108C9.07507 10.1243 9.37667 10.154 9.66764 10.0962C9.95861 10.0383 10.2259 9.89543 10.4357 9.68565C10.6454 9.47588 10.7883 9.2086 10.8462 8.91763C10.9041 8.62666 10.8744 8.32506 10.7608 8.05097C10.6473 7.77688 10.455 7.54261 10.2084 7.37779C9.96169 7.21297 9.67168 7.12499 9.37501 7.12499ZM9.37501 4.12499C9.52334 4.12499 9.66835 4.16898 9.79168 4.25139C9.91502 4.3338 10.0112 4.45094 10.0679 4.58798C10.1247 4.72503 10.1395 4.87583 10.1106 5.02131C10.0817 5.1668 10.0102 5.30044 9.90534 5.40532C9.80045 5.51021 9.66681 5.58164 9.52132 5.61058C9.37584 5.63952 9.22504 5.62467 9.08799 5.5679C8.95095 5.51114 8.83382 5.41501 8.7514 5.29167C8.66899 5.16833 8.62501 5.02333 8.62501 4.87499C8.62501 4.67608 8.70402 4.48532 8.84468 4.34466C8.98533 4.20401 9.17609 4.12499 9.37501 4.12499ZM3.75001 2.62499C3.75001 2.47666 3.79399 2.33165 3.8764 2.20832C3.95881 2.08498 4.07595 1.98885 4.21299 1.93208C4.35004 1.87532 4.50084 1.86047 4.64632 1.88941C4.79181 1.91834 4.92545 1.98978 5.03034 2.09466C5.13522 2.19955 5.20666 2.33319 5.23559 2.47868C5.26453 2.62416 5.24968 2.77496 5.19292 2.91201C5.13615 3.04905 5.04002 3.16619 4.91668 3.2486C4.79335 3.33101 4.64834 3.37499 4.50001 3.37499C4.30109 3.37499 4.11033 3.29598 3.96968 3.15532C3.82902 3.01467 3.75001 2.82391 3.75001 2.62499ZM2.62501 9.74999C2.47667 9.74999 2.33167 9.70601 2.20833 9.6236C2.08499 9.54119 1.98886 9.42405 1.9321 9.28701C1.87533 9.14996 1.86048 8.99916 1.88942 8.85368C1.91836 8.70819 1.98979 8.57455 2.09468 8.46966C2.19957 8.36478 2.3332 8.29334 2.47869 8.26441C2.62417 8.23547 2.77497 8.25032 2.91202 8.30708C3.04906 8.36385 3.1662 8.45998 3.24861 8.58332C3.33102 8.70665 3.37501 8.85166 3.37501 8.99999C3.37501 9.19891 3.29599 9.38967 3.15534 9.53032C3.01468 9.67098 2.82392 9.74999 2.62501 9.74999ZM9.37501 9.37499C9.22667 9.37499 9.08167 9.33101 8.95833 9.2486C8.83499 9.16619 8.73886 9.04905 8.6821 8.91201C8.62533 8.77496 8.61048 8.62416 8.63942 8.47868C8.66836 8.33319 8.73979 8.19955 8.84468 8.09466C8.94957 7.98978 9.0832 7.91834 9.22869 7.88941C9.37417 7.86047 9.52497 7.87532 9.66202 7.93208C9.79906 7.98885 9.9162 8.08498 9.99861 8.20832C10.081 8.33165 10.125 8.47666 10.125 8.62499C10.125 8.82391 10.046 9.01467 9.90534 9.15532C9.76468 9.29598 9.57392 9.37499 9.37501 9.37499Z"},child:[]}]}),i0t=x`
|
|
1134
|
+
`,k7e=(0,a0.createContext)({iconsMap:{},isLoading:!0});function R7e(){return(0,a0.useContext)(k7e)}var P7e=({icon:t,iconColor:e="default",size:n="1.5rem",...r})=>{let o=typeof t=="string",{iconsMap:i,isLoading:s}=R7e(),a={white:w7e,action:D7e,default:E7e,gray:_7e,gray300:$7e,red:T7e,accent:L7e,currentColor:N7e,"accent-dark":A7e,"accent-light":M7e,"accent-alt-dark":O7e,"utility-success":I7e};if(o&&s)return null;let l=o?i[t]:t;return o&&l===void 0?(console.error(`We don't seem to have the icon you're looking for ("${t}"). Make sure you're using <IconsProvider> and try an icon from our Storybook.`),null):O(l,{role:"img",size:n,...r,css:[S7e,e?i0:void 0,a[e]]})},Go=Jre.default.memo(P7e),F7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M2 16C2 17.6569 3.34315 19 5 19H19C20.6569 19 22 17.6569 22 16V8C22 6.34315 20.6569 5 19 5H5C3.34315 5 2 6.34315 2 8V16ZM5 17H19C19.5523 17 20 16.5523 20 16V8C20 7.44772 19.5523 7 19 7H5C4.44772 7 4 7.44771 4 8V16C4 16.5523 4.44772 17 5 17Z"},child:[]}]}),B7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M8.24953 3.8889C7.00689 3.8889 5.99953 4.85895 5.99953 6.05556C5.99953 7.25218 7.00689 8.22223 8.24953 8.22223C9.49217 8.22223 10.4995 7.25218 10.4995 6.05556C10.4995 4.85895 9.49217 3.8889 8.24953 3.8889ZM7.49953 6.05556C7.49953 5.65669 7.83531 5.33334 8.24953 5.33334C8.66374 5.33334 8.99953 5.65669 8.99953 6.05556C8.99953 6.45444 8.66374 6.77779 8.24953 6.77779C7.83531 6.77779 7.49953 6.45444 7.49953 6.05556Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M18 15.75C18 16.1642 17.6269 16.5 17.1667 16.5H6.83333C6.3731 16.5 6 16.1642 6 15.75C6 15.3358 6.3731 15 6.83333 15H17.1667C17.6269 15 18 15.3358 18 15.75Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M13.1667 18H6.83333C6.3731 18 6 18.3358 6 18.75C6 19.1642 6.3731 19.5 6.83333 19.5H13.1667C13.6269 19.5 14 19.1642 14 18.75C14 18.3358 13.6269 18 13.1667 18Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M3 20a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H6a3 3 0 0 0-3 3v16ZM5 4v8.56h3.48l5.16-4.97c.88-.85 2.3-.85 3.19 0L19 9.69V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1Zm.25 10H5v6a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-6H5.25Zm5.36-1.44H19v-.84l-3.23-3.11a.77.77 0 0 0-1.07 0l-4.1 3.95Z"},child:[]}]}),z7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fillOpacity:"0.5",fill:"currentColor",d:"M13 15C12.4477 15 12 15.4477 12 16C12 16.5523 12.4477 17 13 17H17C17.5523 17 18 16.5523 18 16C18 15.4477 17.5523 15 17 15H13Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M12 8C12 7.44772 12.4477 7 13 7H22C22.5523 7 23 7.44772 23 8C23 8.55228 22.5523 9 22 9H13C12.4477 9 12 8.55228 12 8Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fillOpacity:"0.75",fill:"currentColor",d:"M12 12C12 11.4477 12.4477 11 13 11H22C22.5523 11 23 11.4477 23 12C23 12.5523 22.5523 13 22 13H13C12.4477 13 12 12.5523 12 12Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M1 8.08791C1 7.48707 1.57563 7 2.28571 7H8.71429C9.42437 7 10 7.48707 10 8.08791V16.912C10 17.5129 9.42437 18 8.71429 18H2.28571C1.57563 18 1 17.5129 1 16.912V8.08791Z"},child:[]}]}),j7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",fillOpacity:"0.3",d:"M8 16H16V9L19 9L19 19L5 19L5 9L8 9V16Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M5 7L19 7V4L5 4L5 7Z"},child:[]}]}),V7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M11 17H4C2.34315 17 1 15.6569 1 14V6C1 4.34315 2.34315 3 4 3H20C21.6569 3 23 4.34315 23 6V14C23 15.6569 21.6569 17 20 17H13V19H16C16.5523 19 17 19.4477 17 20C17 20.5523 16.5523 21 16 21H8C7.44772 21 7 20.5523 7 20C7 19.4477 7.44772 19 8 19H11V17ZM4 5H20C20.5523 5 21 5.44772 21 6V14C21 14.5523 20.5523 15 20 15H4C3.44772 15 3 14.5523 3 14V6C3 5.44772 3.44772 5 4 5Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M16.0849 14L14.7516 12.6667L16.4581 10.9601L13.023 10.9601H11.062L7.62683 10.9601L9.33335 12.6667L8.00001 14L3.99998 10L7.99998 6L9.33332 7.33334L7.59214 9.07452H11.062H13.023H16.4928L14.7516 7.33334L16.085 6L20.085 10L16.0849 14Z"},child:[]}]}),U7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M8.048 19.552V18.208L9.968 17.752V5.848H7.232L6.584 8.512H5V4H18.272V8.512H16.688L16.04 5.848H13.376V17.752L15.296 18.208V19.552H8.048Z"},child:[]}]}),H7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 40 40"},child:[{tag:"path",attr:{fill:"currentColor",d:"M6.10121 28.0571V15.3039L3.3335 15.9254V13.6694L7.40084 11.9429H9.30214V28.0571H6.10121Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M11.6782 28.0571V25.9162C12.7051 25.1028 13.6998 24.2971 14.6625 23.4991C15.6413 22.701 16.5077 21.9107 17.2618 21.128C18.0319 20.3453 18.6416 19.5856 19.0909 18.849C19.5562 18.097 19.7888 17.368 19.7888 16.6621C19.7888 16.0021 19.5963 15.419 19.2112 14.9125C18.8422 14.4061 18.2245 14.1528 17.358 14.1528C16.4756 14.1528 15.8097 14.4291 15.3605 14.9816C14.9112 15.5341 14.6866 16.2016 14.6866 16.9843H11.7023C11.7344 15.8026 12.0071 14.8204 12.5206 14.0377C13.034 13.2397 13.7159 12.6489 14.5663 12.2652C15.4166 11.8662 16.3713 11.6667 17.4302 11.6667C19.147 11.6667 20.4787 12.1194 21.4254 13.0249C22.3881 13.915 22.8694 15.0737 22.8694 16.5009C22.8694 17.391 22.6528 18.2581 22.2196 19.1022C21.8024 19.9463 21.2489 20.7597 20.559 21.5423C19.869 22.325 19.123 23.0617 18.3207 23.7523C17.5185 24.4276 16.7403 25.0568 15.9862 25.64H23.2786V28.0571H11.6782Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M30.8667 28.3333C29.7596 28.3333 28.7568 28.1492 27.8583 27.7808C26.9598 27.3972 26.2377 26.814 25.6922 26.0313C25.1467 25.2486 24.8579 24.2664 24.8258 23.0847H27.8583C27.8743 23.8674 28.139 24.5273 28.6525 25.0644C29.182 25.5862 29.92 25.8471 30.8667 25.8471C31.7652 25.8471 32.4551 25.6093 32.9364 25.1335C33.4178 24.6578 33.6584 24.0592 33.6584 23.3379C33.6584 22.4939 33.3375 21.857 32.6958 21.4272C32.07 20.9822 31.2598 20.7597 30.265 20.7597H29.0135V18.3425H30.289C31.1073 18.3425 31.7892 18.1584 32.3347 17.79C32.8803 17.4217 33.153 16.8769 33.153 16.1556C33.153 15.5571 32.9445 15.0813 32.5273 14.7283C32.1262 14.36 31.5646 14.1759 30.8426 14.1759C30.0564 14.1759 29.4387 14.3984 28.9894 14.8435C28.5562 15.2885 28.3155 15.8333 28.2674 16.4779H25.259C25.3232 14.9892 25.8607 13.8152 26.8715 12.9558C27.8984 12.0964 29.2221 11.6667 30.8426 11.6667C31.9978 11.6667 32.9685 11.8662 33.7547 12.2652C34.5569 12.6489 35.1586 13.163 35.5597 13.8075C35.9769 14.4521 36.1855 15.1657 36.1855 15.9484C36.1855 16.8539 35.9207 17.6212 35.3913 18.2504C34.8778 18.8643 34.2361 19.2787 33.4659 19.4935C34.4125 19.6777 35.1827 20.1228 35.7763 20.8287C36.37 21.5193 36.6668 22.3941 36.6668 23.453C36.6668 24.3431 36.4422 25.1565 35.993 25.8932C35.5437 26.6298 34.8859 27.2207 34.0194 27.6657C33.1691 28.1108 32.1181 28.3333 30.8667 28.3333Z"},child:[]}]}),K7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M5.90406 22.3385C7.69061 23.3942 9.77456 24 12 24C18.6274 24 24 18.6274 24 12C24 9.77456 23.3942 7.69061 22.3385 5.90406L5.90406 22.3385ZM18.0959 1.66143C16.3093 0.60578 14.2254 0 12 0C5.37258 0 0 5.37258 0 12C0 14.2254 0.60578 16.3093 1.66144 18.0959L18.0959 1.66143Z"},child:[]}]}),W7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 22"},child:[{tag:"path",attr:{fill:"currentColor",d:"M13.3396 1.25C13.0651 0.785 12.5596 0.5 12.0091 0.5C11.4586 0.5 10.9546 0.785 10.6801 1.25L0.207143 19.2485C0.0721968 19.4757 0.000976562 19.735 0.000976562 19.9993C0.000976563 20.2635 0.0721968 20.5228 0.207143 20.75C0.496643 21.215 1.00214 21.5015 1.53614 21.5015H22.4821C23.0326 21.5015 23.5381 21.2165 23.7976 20.7515C23.9279 20.523 23.9976 20.265 24.0002 20.0019C24.0029 19.7389 23.9383 19.4796 23.8126 19.2485L13.3396 1.25ZM13.5391 18.4955H10.4806V15.491H13.5391V18.4955ZM13.5391 13.9895H10.4806V7.9805H13.5391V13.9895Z"},child:[]}]}),G7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"circle",attr:{fill:"currentColor",cx:"12",cy:"12",r:"12"},child:[]},{tag:"path",attr:{fill:"white",d:"M10.7999 10.7753C10.7999 10.1126 11.3371 9.57531 11.9999 9.57531C12.6626 9.57531 13.1998 10.1126 13.1998 10.7753V17.9754C13.1998 18.6381 12.6626 19.1754 11.9999 19.1754C11.3371 19.1754 10.7999 18.6381 10.7999 17.9754V10.7753Z"},child:[]},{tag:"path",attr:{fill:"white",d:"M11.9999 4.86141C11.3371 4.86141 10.7999 5.39867 10.7999 6.06142C10.7999 6.72416 11.3371 7.26143 11.9999 7.26143C12.6626 7.26143 13.1998 6.72416 13.1998 6.06142C13.1998 5.39867 12.6626 4.86141 11.9999 4.86141Z"},child:[]}]});var Y7e=t=>O(Go,{...t,icon:qre.MdSettings}),Z7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M6.23255 11.3213L6.32008 14.993H8.79253L8.85817 13.2128C9.86466 13.198 10.7472 13.0274 11.5057 12.701C12.2788 12.3746 12.8841 11.8776 13.3217 11.21C13.7739 10.5424 14 9.6968 14 8.67316C14 7.67918 13.7812 6.84098 13.3436 6.15855C12.9206 5.46129 12.3298 4.92721 11.5713 4.55633C10.8274 4.18544 9.96676 4 8.98945 4C7.9392 4 7.03483 4.20028 6.27631 4.60083C5.53239 5.00139 4.96351 5.5503 4.56966 6.24757C4.17582 6.94483 3.98619 7.73853 4.00078 8.62865H6.64828C6.64828 7.93139 6.85249 7.38248 7.26092 6.98192C7.66935 6.56653 8.23823 6.35883 8.96757 6.35883C9.66773 6.35883 10.2293 6.56653 10.6523 6.98192C11.0754 7.38248 11.2869 7.9388 11.2869 8.6509C11.2869 9.39267 11.1045 9.95642 10.7399 10.3421C10.3752 10.7279 9.88654 10.9875 9.27389 11.121C8.66125 11.2545 7.98296 11.3213 7.23904 11.3213H6.23255ZM6.29819 19.5104C6.63369 19.8368 7.05671 20 7.56724 20C8.07778 20 8.4935 19.8368 8.81441 19.5104C9.13532 19.1841 9.29577 18.7909 9.29577 18.331C9.29577 17.8563 9.13532 17.4557 8.81441 17.1293C8.4935 16.803 8.07778 16.6398 7.56724 16.6398C7.05671 16.6398 6.63369 16.803 6.29819 17.1293C5.97729 17.4557 5.81683 17.8563 5.81683 18.331C5.81683 18.7909 5.97729 19.1841 6.29819 19.5104ZM12 14V16.012H20V14H12ZM12 17.988V20H20V17.988H12Z"},child:[]}]}),Ght=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-14a1 1 0 0 1-1-1V5ZM7.5 11a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1v-2ZM7.5 17a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1v-2Z"},child:[]}]}),q7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{stroke:"currentColor",strokeWidth:"1.5",d:"M 6.9590764,5.7378392 H 8.375 V 19.078125 H 6.9590764 Z m 6.1482616,13.3327078 -4.7292032,10e-7 -0.011048,-1.333333 h 4.7402522 c 1.472733,0 2.666667,-1.193907 2.666667,-2.666667 0,-1.472733 -1.193934,-2.666667 -2.666667,-2.666667 H 9.1073387 v -1.333333 h 3.9999993 c 2.209133,-1e-6 4,1.790867 4,4 -10e-7,2.20914 -1.790867,3.999999 -4,3.999999 z m -2.148261,-6.666042 -4.0000007,10e-7 v -1.333333 h 4.0000007 c 1.472733,-10e-7 2.666667,-1.1939074 2.666667,-2.6666667 0,-1.4727336 -1.193934,-2.666667 -2.666667,-2.6666669 l -4.0000007,-3e-7 v -1.333333 h 4.0000007 c 2.209133,-7e-7 4,1.7908664 4,3.9999999 -1e-6,2.20914 -1.790867,3.999999 -4,3.999999 z"},child:[]}]}),J7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M11 15v2h6v-2h-6ZM17 13v-2h-6v2h6ZM17 7v2h-6V7h6ZM6.733 11.252V6.304l-1.027.241V5.67L7.215 5h.706v6.252H6.733ZM5 19v-.83c.381-.316.75-.629 1.107-.938.364-.31.685-.617.965-.92.286-.304.512-.599.679-.885.173-.291.259-.574.259-.848 0-.256-.072-.482-.214-.679-.137-.196-.367-.295-.688-.295-.328 0-.575.108-.741.322-.167.214-.25.473-.25.777H5.008c.012-.459.113-.84.304-1.143.19-.31.443-.54.759-.688.315-.155.67-.232 1.063-.232.637 0 1.131.175 1.482.527.358.345.536.795.536 1.348 0 .346-.08.682-.241 1.01-.155.327-.36.643-.616.946-.256.304-.533.59-.83.858-.299.262-.587.506-.867.732h2.706V19H5Z"},child:[]}]}),X7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"m9.953 16.912-1.36 1.449-6.562-6.16L8.19 5.64l1.458 1.369-4.79 5.104 5.094 4.781v.02ZM14.047 16.912l1.36 1.449 6.562-6.16L15.81 5.64l-1.458 1.369 4.79 5.104-5.094 4.781v.02Z"},child:[]}]}),Q7e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M12.171 18.878c-.975 0-1.836-.165-2.584-.494-.747-.342-1.336-.823-1.767-1.444-.43-.633-.652-1.4-.665-2.299H9.72c.025.62.247 1.146.665 1.577.43.418 1.02.627 1.767.627.646 0 1.16-.152 1.54-.456.38-.317.57-.735.57-1.254 0-.545-.172-.969-.514-1.273a2.857 2.857 0 0 0-.41-.313h3.273c.156.403.234.874.234 1.415a3.72 3.72 0 0 1-.532 1.938c-.354.595-.88 1.077-1.577 1.444-.697.355-1.552.532-2.565.532ZM7.523 9.55a4.207 4.207 0 0 1-.045-.627c-.013-.785.171-1.457.551-2.014a3.789 3.789 0 0 1 1.596-1.31c.671-.318 1.444-.476 2.318-.476.887 0 1.666.158 2.337.475.684.317 1.216.76 1.596 1.33.393.57.602 1.248.627 2.033H13.9c-.013-.469-.196-.88-.55-1.235-.343-.367-.824-.55-1.445-.55-.532-.014-.981.12-1.349.398-.354.266-.532.659-.532 1.178 0 .31.068.575.203.798H7.523Zm11.71 1h-15v2h15v-2Z"},child:[]}]}),e$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16.192 8.058v.777h4.028v-.878h-2.532c.262-.211.532-.44.81-.685.28-.25.538-.518.778-.802.24-.285.432-.58.576-.886a2.12 2.12 0 0 0 .226-.945c0-.518-.167-.939-.501-1.262-.33-.329-.792-.493-1.388-.493-.368 0-.7.072-.994.217-.296.14-.533.354-.71.644-.18.284-.274.64-.285 1.07h1.036c0-.285.078-.527.234-.728.156-.2.388-.3.694-.3.301 0 .515.091.644.275.133.184.2.396.2.636 0 .256-.08.52-.242.794a4.639 4.639 0 0 1-.635.827c-.262.284-.563.571-.903.861-.334.29-.68.582-1.037.878Zm-8.194 3.716L3.838 18.5h2.735l2.736-4.693L12.33 18.5h2.793l-4.256-6.612L15.028 5.2h-2.736L9.556 9.836 6.573 5.2H3.78l4.218 6.574Z"},child:[]}]}),t$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.998 11.774 3.838 18.5h2.735l2.736-4.693L12.33 18.5h2.793l-4.256-6.612L15.028 5.2h-2.736L9.556 9.836 6.573 5.2H3.78l4.218 6.574Zm8.194 8.157v.777h4.028v-.877h-2.532c.262-.212.532-.44.81-.686.28-.25.538-.518.778-.802.24-.284.432-.58.576-.886a2.12 2.12 0 0 0 .226-.944c0-.519-.167-.94-.501-1.263-.33-.328-.792-.493-1.388-.493-.368 0-.7.073-.994.218-.296.139-.533.354-.71.643-.18.284-.274.641-.285 1.07h1.036c0-.284.078-.526.234-.727.156-.2.388-.301.694-.301.301 0 .515.092.644.276.133.184.2.395.2.635 0 .256-.08.521-.242.794a4.638 4.638 0 0 1-.635.828 10.4 10.4 0 0 1-.903.86c-.334.29-.68.583-1.037.878Z"},child:[]}]}),n$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 40 40"},child:[{tag:"path",attr:{fill:"currentColor",d:"M3.3335 20.0719V18.1118C4.82718 18.1118 5.87011 17.8113 6.46228 17.2102C7.05446 16.6005 7.35054 15.5943 7.35054 14.1918V10.4417C7.35054 9.10884 7.50079 7.98945 7.8013 7.08349C8.11064 6.16882 8.57908 5.43708 9.2066 4.88827C9.83413 4.33947 10.6296 3.94311 11.593 3.6992C12.5563 3.45528 13.6921 3.33333 15.0002 3.33333V6.43015C13.9749 6.43015 13.175 6.57824 12.6005 6.87442C12.026 7.1706 11.6239 7.6323 11.3941 8.2595C11.1731 8.878 11.0627 9.67071 11.0627 10.6377V15.394C11.0627 16.0647 10.961 16.6876 10.7577 17.2625C10.5545 17.8287 10.1788 18.3209 9.63084 18.7391C9.08286 19.1572 8.30067 19.4839 7.28425 19.7191C6.26784 19.9543 4.95092 20.0719 3.3335 20.0719ZM15.0002 36.6667C13.6921 36.6667 12.5563 36.5447 11.593 36.3008C10.6296 36.0569 9.83413 35.6605 9.2066 35.1117C8.57908 34.5629 8.11064 33.8312 7.8013 32.9165C7.50079 32.0105 7.35054 30.8911 7.35054 29.5583V25.7951C7.35054 24.4013 7.05446 23.3995 6.46228 22.7897C5.87011 22.18 4.82718 21.8751 3.3335 21.8751V19.9281C4.95092 19.9281 6.26784 20.0457 7.28425 20.2809C8.30067 20.5074 9.08286 20.8341 9.63084 21.2609C10.1788 21.6791 10.5545 22.1756 10.7577 22.7506C10.961 23.3168 11.0627 23.9353 11.0627 24.606V29.3623C11.0627 30.3206 11.1731 31.1089 11.3941 31.7274C11.6239 32.3546 12.026 32.8163 12.6005 33.1125C13.175 33.4174 13.9749 33.5698 15.0002 33.5698V36.6667ZM3.3335 21.8751V18.1118H7.00584V21.8751H3.3335Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M14.9998 20C14.9998 20.9205 14.2536 21.6667 13.3332 21.6667C12.4127 21.6667 11.6665 20.9205 11.6665 20C11.6665 19.0795 12.4127 18.3333 13.3332 18.3333C14.2536 18.3333 14.9998 19.0795 14.9998 20Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M21.6665 20C21.6665 20.9205 20.9203 21.6667 19.9998 21.6667C19.0794 21.6667 18.3332 20.9205 18.3332 20C18.3332 19.0795 19.0794 18.3333 19.9998 18.3333C20.9203 18.3333 21.6665 19.0795 21.6665 20Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M28.3332 20C28.3332 20.9205 27.587 21.6667 26.6665 21.6667C25.746 21.6667 24.9998 20.9205 24.9998 20C24.9998 19.0795 25.746 18.3333 26.6665 18.3333C27.587 18.3333 28.3332 19.0795 28.3332 20Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M36.6667 19.9281V21.8751C35.173 21.8751 34.1301 22.18 33.5379 22.7898C32.9457 23.3995 32.6496 24.4013 32.6496 25.7951V29.5583C32.6496 30.8912 32.4949 32.0105 32.1856 32.9165C31.8851 33.8312 31.4211 34.5629 30.7936 35.1117C30.166 35.6605 29.3706 36.0569 28.4072 36.3008C27.4438 36.5447 26.3081 36.6667 25 36.6667V33.5698C26.0253 33.5698 26.8251 33.4174 27.3996 33.1125C27.9741 32.8163 28.3718 32.3546 28.5928 31.7274C28.8226 31.1089 28.9375 30.3206 28.9375 29.3623V24.606C28.9375 23.9353 29.0391 23.3168 29.2424 22.7506C29.4457 22.1756 29.8213 21.6791 30.3693 21.2609C30.9173 20.8341 31.6995 20.5074 32.7159 20.2809C33.7323 20.0457 35.0492 19.9281 36.6667 19.9281ZM25 3.33333C26.3081 3.33333 27.4438 3.45528 28.4072 3.6992C29.3706 3.94311 30.166 4.33947 30.7936 4.88827C31.4211 5.43708 31.8851 6.16882 32.1856 7.08349C32.4949 7.98945 32.6496 9.10884 32.6496 10.4417V14.1918C32.6496 15.5943 32.9457 16.6005 33.5379 17.2102C34.1301 17.8113 35.173 18.1118 36.6667 18.1118V20.0719C35.0492 20.0719 33.7323 19.9543 32.7159 19.7191C31.6995 19.4839 30.9173 19.1572 30.3693 18.7391C29.8213 18.3209 29.4457 17.8287 29.2424 17.2625C29.0391 16.6876 28.9375 16.0647 28.9375 15.394V10.6377C28.9375 9.67071 28.8226 8.878 28.5928 8.2595C28.3718 7.6323 27.9741 7.1706 27.3996 6.87442C26.8251 6.57824 26.0253 6.43015 25 6.43015V3.33333ZM36.6667 18.1118V21.8751H32.9943V18.1118H36.6667Z"},child:[]}]}),r$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M4.904 12.75a1.67 1.67 0 0 0 0 2.362l3.22 3.22h-2.73a.835.835 0 0 0 0 1.67H18.75a.835.835 0 1 0 0-1.67h-7.622l7.943-7.942a1.67 1.67 0 0 0 0-2.362L15.53 4.487a1.67 1.67 0 0 0-2.362 0L4.904 12.75Zm3.611-1.25-2.43 2.431 3.542 3.542 2.43-2.43L8.515 11.5Zm1.181-1.18 3.542 3.542L17.89 9.21l-3.542-3.542-4.653 4.653Z"},child:[]}]}),o$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 40 40"},child:[{tag:"path",attr:{fill:"currentColor",d:"M8.9984 27.5V21.8919L4.00049 11.7342H7.08431L10.3808 19.009L13.656 11.7342H16.6973L11.7207 21.8919V27.5H8.9984Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M15.0085 30L20.3255 10H22.9839L17.6457 30H15.0085Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M24.8922 27.5V11.7342H27.6145L34.6116 22.8378V11.7342H37.3338V27.5H34.6116L27.6145 16.4189V27.5H24.8922Z"},child:[]}]}),i$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.99979 5.64298L5.64277 8L7.99979 10.357L10.3568 8L7.99979 5.64298ZM3.875 8L7.99979 12.1248L12.1246 8L7.99979 3.87521L3.875 8Z"},child:[]}]}),s$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3.875 8L7.99979 12.1248L12.1246 8L7.99979 3.87521L3.875 8Z"},child:[]}]}),a$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",fillOpacity:"0.5",d:"M12.6021 0.799316C12.5443 0.799316 12.487 0.802204 12.4305 0.807862C12.3484 1.91145 11.5902 2.79082 10.6387 2.88601C10.6338 2.9516 10.6313 3.01798 10.6313 3.08503C10.6313 3.15208 10.6338 3.21846 10.6387 3.28405C11.5902 3.37924 12.3484 4.25862 12.4305 5.3622C12.487 5.36786 12.5443 5.37074 12.6021 5.37074C12.6599 5.37074 12.7171 5.36786 12.7737 5.3622C12.8558 4.25862 13.614 3.37924 14.5655 3.28405C14.5704 3.21846 14.5729 3.15208 14.5729 3.08503C14.5729 3.01798 14.5704 2.9516 14.5655 2.88601C13.614 2.79082 12.8558 1.91145 12.7737 0.807862C12.7171 0.802204 12.6599 0.799316 12.6021 0.799316Z"},child:[]},{tag:"path",attr:{fill:"currentColor",fillOpacity:"0.5",d:"M17.8945 12.4247C17.8367 12.4247 17.7795 12.4276 17.7229 12.4332C17.6409 13.5368 16.8826 14.4162 15.9311 14.5114C15.9262 14.577 15.9237 14.6433 15.9237 14.7104C15.9237 14.7774 15.9262 14.8438 15.9311 14.9094C16.8826 15.0046 17.6409 15.884 17.7229 16.9876C17.7795 16.9932 17.8367 16.9961 17.8945 16.9961C17.9523 16.9961 18.0096 16.9932 18.0661 16.9876C18.1482 15.884 18.9064 15.0046 19.858 14.9094C19.8628 14.8438 19.8653 14.7774 19.8653 14.7104C19.8653 14.6433 19.8628 14.577 19.858 14.5114C18.9064 14.4162 18.1482 13.5368 18.0661 12.4332C18.0096 12.4276 17.9523 12.4247 17.8945 12.4247Z"},child:[]},{tag:"path",attr:{fill:"currentColor",fillOpacity:"0.5",d:"M21.571 1.6413C21.509 1.6413 21.4476 1.6449 21.387 1.65195C21.299 3.02718 20.4858 4.12302 19.4653 4.24164C19.4601 4.32337 19.4574 4.40609 19.4574 4.48965C19.4574 4.57321 19.4601 4.65592 19.4653 4.73766C20.4858 4.85628 21.299 5.95211 21.387 7.32734C21.4476 7.33439 21.509 7.33799 21.571 7.33799C21.633 7.33799 21.6944 7.33439 21.755 7.32734C21.8431 5.95211 22.6562 4.85628 23.6767 4.73766C23.6819 4.65592 23.6846 4.57321 23.6846 4.48965C23.6846 4.40609 23.6819 4.32337 23.6767 4.24164C22.6562 4.12302 21.8431 3.02718 21.755 1.65195C21.6944 1.6449 21.633 1.6413 21.571 1.6413Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M15.6875 11.9141L12.5116 8.73823L2.07262 19.1773C1.9166 19.3333 1.9166 19.5862 2.07262 19.7422L4.68354 22.3532C4.83956 22.5092 5.0925 22.5092 5.24852 22.3532L15.6875 11.9141Z"},child:[]},{tag:"path",attr:{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16.8929 4.92196L19.5038 7.53288L14.8688 12.1679L12.2578 9.55702L16.8929 4.92196ZM19.7863 7.2504C19.9423 7.40641 19.9423 7.65936 19.7863 7.81537L15.6875 11.9141L12.5116 8.73823L16.6104 4.63947C16.7664 4.48346 17.0194 4.48346 17.1754 4.63947L19.7863 7.2504Z"},child:[]}]}),l$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 10C2 9.44772 2.44772 9 3 9H21C21.5523 9 22 9.44772 22 10C22 10.5523 21.5523 11 21 11H3C2.44772 11 2 10.5523 2 10Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 14C2 13.4477 2.44772 13 3 13H21C21.5523 13 22 13.4477 22 14C22 14.5523 21.5523 15 21 15H3C2.44772 15 2 14.5523 2 14Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z"},child:[]}]}),c$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"currentColor",d:"M2 4C2 3.44772 2.44772 3 3 3H21C21.5523 3 22 3.44772 22 4C22 4.55228 21.5523 5 21 5H3C2.44772 5 2 4.55228 2 4Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 8C2 7.44772 2.44772 7 3 7H21C21.5523 7 22 7.44772 22 8C22 8.55228 21.5523 9 21 9H3C2.44772 9 2 8.55228 2 8Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 16C2 15.4477 2.44772 15 3 15H21C21.5523 15 22 15.4477 22 16C22 16.5523 21.5523 17 21 17H3C2.44772 17 2 16.5523 2 16Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M2 20C2 19.4477 2.44772 19 3 19H21C21.5523 19 22 19.4477 22 20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20Z"},child:[]}]}),u$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 16 16",fill:"none",strokeWidth:""},child:[{tag:"path",attr:{stroke:"currentColor",d:"M8 13.3334L6 14V8.33335L3.01333 5.04802C2.7903 4.80264 2.6667 4.48295 2.66666 4.15135V2.66669H13.3333V4.11469C13.3333 4.46828 13.1927 4.80736 12.9427 5.05735L10 8.00002V10M10.6667 12.6667H14.6667M12.6667 10.6667V14.6667",strokeLinejoin:"round",strokeLinecap:"round"},child:[]}]}),d$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12"},child:[{tag:"path",attr:{d:"M8.27759 6C8.30628 6.15156 8.32129 6.30795 8.32129 6.46785C8.32129 7.84856 7.202 8.96785 5.82129 8.96785C5.27787 8.96785 4.77494 8.79447 4.36482 8.5H5.66057V7.5H2.66057V10.5H3.66057V9.22145C4.25557 9.689 5.00587 9.96785 5.82129 9.96785C7.75429 9.96785 9.32129 8.40085 9.32129 6.46785C9.32129 6.30921 9.31074 6.15304 9.29029 6H8.27759Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M8.16064 2H9.16064V5H6.16064V4L7.4564 4C7.04627 3.70553 6.54334 3.53215 5.99992 3.53215C4.61921 3.53215 3.49992 4.65144 3.49992 6.03215C3.49992 6.19205 3.51493 6.34844 3.54363 6.5H2.53092C2.51048 6.34696 2.49992 6.19079 2.49992 6.03215C2.49992 4.09915 4.06693 2.53215 5.99992 2.53215C6.81535 2.53215 7.56564 2.811 8.16064 3.27855V2Z",fill:"currentColor"},child:[]}]}),f$e=rt({tag:"svg",attr:{viewBox:"0 0 24 24",role:"img"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4C2 2.89543 2.89543 2 4 2H18C19.1046 2 20 2.89543 20 4V9H18V4H16V5C16 6.65685 14.6569 8 13 8H9C7.34315 8 6 6.65685 6 5V4H4L4 18H9V20H4C2.89543 20 2 19.1046 2 18V4ZM8 5V4H14V5C14 5.55228 13.5523 6 13 6H9C8.44772 6 8 5.55228 8 5Z"},child:[]},{tag:"path",attr:{d:"M9 14.0665V16.0665H7.04053C6.48824 16.0665 6.04053 15.6188 6.04053 15.0665C6.04053 14.5142 6.48824 14.0665 7.04053 14.0665H9Z"},child:[]},{tag:"path",attr:{d:"M9.26756 10C9.09739 10.2942 9 10.6357 9 11V12H7C6.44772 12 6 11.5523 6 11C6 10.4477 6.44772 10 7 10H9.26756Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M10 11.3333C10 10.597 10.597 10 11.3333 10H20.6667L22 11.3333V20.6667C22 21.403 21.403 22 20.6667 22H11.3333C10.597 22 10 21.403 10 20.6667V11.3333ZM11.3333 11.3333H12V12C12 13.1046 12.3333 14.6667 14 14.6667H16.6667C18.3333 14.6667 18.6667 13.1046 18.6667 12V11.3333H20.3333L20.6667 11.6667V20.6667H11.3333V11.3333ZM13.3333 12V11.3333H15.3333V11.973C15.3333 12.3412 15.6318 12.6396 16 12.6396C16.3682 12.6396 16.6667 12.3412 16.6667 11.973V11.3333H17.3333V12C17.3333 12.3682 17.3333 13.3333 16.6667 13.3333H14C13.3333 13.3333 13.3333 12.3682 13.3333 12Z"},child:[]},{tag:"path",attr:{d:"M13 16C13 15.7239 13.2239 15.5 13.5 15.5H18.5C18.7761 15.5 19 15.7239 19 16C19 16.2761 18.7761 16.5 18.5 16.5H13.5C13.2239 16.5 13 16.2761 13 16Z"},child:[]},{tag:"path",attr:{d:"M13 17.5C13 17.2239 13.2239 17 13.5 17H18.5C18.7761 17 19 17.2239 19 17.5C19 17.7761 18.7761 18 18.5 18H13.5C13.2239 18 13 17.7761 13 17.5Z"},child:[]},{tag:"path",attr:{d:"M13 19C13 18.7239 13.2239 18.5 13.5 18.5H18.5C18.7761 18.5 19 18.7239 19 19C19 19.2761 18.7761 19.5 18.5 19.5H13.5C13.2239 19.5 13 19.2761 13 19Z"},child:[]}]}),p$e=rt({tag:"svg",attr:{viewBox:"0 0 24 24",role:"img"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4C2 2.89543 2.89543 2 4 2H18C19.1046 2 20 2.89543 20 4V16.4593L18 14.9973V4H16V5C16 6.65685 14.6569 8 13 8H9C7.34315 8 6 6.65685 6 5V4H4L4 18H9V18.08C9 18.6748 9.0216 19.1889 9.06692 19.6126C9.08082 19.7426 9.09774 19.8726 9.11907 20H4C2.89543 20 2 19.1046 2 18V4ZM8 5V4H14V5C14 5.55228 13.5523 6 13 6H9C8.44772 6 8 5.55228 8 5Z"},child:[]},{tag:"path",attr:{d:"M20 17.698V18C20 19.1046 19.1046 20 18 20H10.1368C10.0476 19.5861 10 18.9441 10 18.08V18H18V16.236L20 17.698Z"},child:[]},{tag:"path",attr:{d:"M12.2024 16.0665H15C15.5523 16.0665 16 15.6188 16 15.0665C16 14.5142 15.5523 14.0665 15 14.0665H11.98V15C11.98 15.6484 12.0944 15.9269 12.1685 16.0282L12.1701 16.0304C12.1768 16.0396 12.1861 16.0525 12.2024 16.0665Z"},child:[]},{tag:"path",attr:{d:"M9 14.0665H7.04053C6.48824 14.0665 6.04053 14.5142 6.04053 15.0665C6.04053 15.6188 6.48824 16.0665 7.04053 16.0665H9V14.0665Z"},child:[]},{tag:"path",attr:{d:"M10 16.0665V15H10.98C10.98 15.1693 10.9866 15.3286 11 15.4778C11.0196 15.6953 11.0538 15.8915 11.1035 16.0665H10Z"},child:[]},{tag:"path",attr:{d:"M7 10C6.44772 10 6 10.4477 6 11C6 11.5523 6.44772 12 7 12H14.9595C15.5118 12 15.9595 11.5523 15.9595 11C15.9595 10.4477 15.5118 10 14.9595 10H7Z"},child:[]},{tag:"path",attr:{d:"M17.42 22.812V21.468H12.66C10.896 21.468 10.56 21.048 10.238 20.334C10.084 19.984 10 19.228 10 18.08V15H10.98C10.98 16.442 11.456 17.156 12.604 17.156H17.42V15.812L22.208 19.312L17.42 22.812Z"},child:[]}]}),m$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 11 4",fill:"none"},child:[{tag:"path",attr:{strokeWidth:"1",stroke:"currentColor",d:"M1 4.5L3.64645 1.85355C3.84171 1.65829 4.15829 1.65829 4.35355 1.85355L6.64645 4.14645C6.84171 4.34171 7.15829 4.34171 7.35355 4.14645L10 1.5"},child:[]}]}),g$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 11 6",fill:"none"},child:[{tag:"path",attr:{strokeWidth:"2",stroke:"currentColor",d:"M1 4.5L3.64645 1.85355C3.84171 1.65829 4.15829 1.65829 4.35355 1.85355L6.64645 4.14645C6.84171 4.34171 7.15829 4.34171 7.35355 4.14645L10 1.5"},child:[]}]}),h$e=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 20 20"},child:[{tag:"path",attr:{fill:"currentColor",d:"M10.0413 10.7257C10.4598 10.7258 10.799 11.0657 10.799 11.4842L10.799 11.4899C10.799 11.9084 10.4598 12.2475 10.0413 12.2476C9.62283 12.2475 9.28369 11.9084 9.28369 11.4899L9.28369 11.4842C9.28369 11.0657 9.62283 10.7258 10.0413 10.7257Z"},child:[]},{tag:"path",attr:{fill:"currentColor",d:"M10.0934 4.39274C10.4647 4.39383 10.8309 4.48096 11.1628 4.64746C11.4947 4.81402 11.783 5.05592 12.0059 5.35303C12.2287 5.65016 12.38 5.99518 12.4469 6.36051C12.5138 6.72571 12.4946 7.10163 12.3916 7.45833C12.2886 7.81505 12.1041 8.1428 11.8529 8.41618C11.6016 8.68953 11.2906 8.90118 10.9438 9.03385C10.9375 9.03629 10.9307 9.03892 10.9243 9.04118C10.8856 9.05478 10.8519 9.08032 10.8291 9.11442C10.8063 9.14858 10.7959 9.1898 10.7982 9.23079C10.8218 9.64848 10.5021 10.0061 10.0845 10.0299C9.66663 10.0536 9.30822 9.73409 9.28451 9.31624C9.26363 8.94732 9.36355 8.58123 9.56852 8.27376C9.76967 7.97218 10.0617 7.74296 10.4019 7.61865C10.5297 7.56978 10.6445 7.49153 10.7371 7.39079C10.8297 7.29005 10.8978 7.16906 10.9357 7.0376C10.9736 6.90619 10.9807 6.76766 10.9561 6.63314C10.9314 6.49859 10.8754 6.37148 10.7933 6.26204C10.7112 6.15269 10.6046 6.06376 10.4824 6.00244C10.3602 5.94119 10.2252 5.90924 10.0885 5.90885C9.95181 5.90852 9.8164 5.93936 9.69385 6C9.5714 6.06064 9.46479 6.14915 9.38216 6.25798C9.1292 6.59139 8.65357 6.65659 8.32015 6.40365C7.98702 6.15069 7.92177 5.67578 8.17448 5.34245C8.39897 5.04657 8.68958 4.80649 9.02246 4.64176C9.35526 4.47716 9.72214 4.39171 10.0934 4.39274Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M16.6665 1.6665C17.5832 1.66651 18.3332 2.41651 18.3332 3.33317L18.3332 13.3332C18.3332 14.2498 17.5832 14.9998 16.6665 14.9998L4.99984 14.9998L1.6665 18.3332L1.6665 3.33317C1.6665 2.4165 2.4165 1.6665 3.33317 1.6665L16.6665 1.6665ZM3.33317 3.33317L3.33317 14.9998L4.99984 13.3332L16.6665 13.3332L16.6665 3.33317L3.33317 3.33317Z"},child:[]},{tag:"path",attr:{stroke:"currentColor",d:"M10.0413 10.7257C10.4598 10.7258 10.799 11.0657 10.799 11.4842L10.799 11.4899C10.799 11.9084 10.4598 12.2475 10.0413 12.2476C9.62283 12.2475 9.28369 11.9084 9.28369 11.4899L9.28369 11.4842C9.28369 11.0657 9.62283 10.7258 10.0413 10.7257Z"},child:[]},{tag:"path",attr:{stroke:"currentColor",d:"M10.0934 4.39274C10.4647 4.39383 10.8309 4.48096 11.1628 4.64746C11.4947 4.81402 11.783 5.05592 12.0059 5.35303C12.2287 5.65016 12.38 5.99518 12.4469 6.36051C12.5138 6.72571 12.4946 7.10163 12.3916 7.45833C12.2886 7.81505 12.1041 8.1428 11.8529 8.41618C11.6016 8.68953 11.2906 8.90118 10.9438 9.03385C10.9375 9.03629 10.9307 9.03892 10.9243 9.04118C10.8856 9.05478 10.8519 9.08032 10.8291 9.11442C10.8063 9.14858 10.7959 9.1898 10.7982 9.23079C10.8218 9.64848 10.5021 10.0061 10.0845 10.0299C9.66663 10.0536 9.30822 9.73409 9.28451 9.31624C9.26363 8.94732 9.36355 8.58123 9.56852 8.27376C9.76967 7.97218 10.0617 7.74296 10.4019 7.61865C10.5297 7.56978 10.6445 7.49153 10.7371 7.39079C10.8297 7.29005 10.8978 7.16906 10.9357 7.0376C10.9736 6.90619 10.9807 6.76766 10.9561 6.63314C10.9314 6.49859 10.8754 6.37148 10.7933 6.26204C10.7112 6.15269 10.6046 6.06376 10.4824 6.00244C10.3602 5.94119 10.2252 5.90924 10.0885 5.90885C9.95181 5.90852 9.8164 5.93936 9.69385 6C9.5714 6.06064 9.46479 6.14915 9.38216 6.25798C9.1292 6.59139 8.65357 6.65659 8.32015 6.40365C7.98702 6.15069 7.92177 5.67578 8.17448 5.34245C8.39897 5.04657 8.68958 4.80649 9.02246 4.64176C9.35526 4.47716 9.72214 4.39171 10.0934 4.39274Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",stroke:"currentColor",d:"M16.6665 1.6665C17.5832 1.66651 18.3332 2.41651 18.3332 3.33317L18.3332 13.3332C18.3332 14.2498 17.5832 14.9998 16.6665 14.9998L4.99984 14.9998L1.6665 18.3332L1.6665 3.33317C1.6665 2.4165 2.4165 1.6665 3.33317 1.6665L16.6665 1.6665ZM3.33317 3.33317L3.33317 14.9998L4.99984 13.3332L16.6665 13.3332L16.6665 3.33317L3.33317 3.33317Z"},child:[]}]}),v$e={"rectangle-rounded":F7e,card:B7e,"image-text":z7e,"border-top":j7e,"full-width-screen":V7e,"text-input":U7e,"number-input":H7e,"canvas-alert":K7e,warning:W7e,"info-filled":G7e,settings:Y7e,"query-string":Z7e,json:n$e,"format-bold":q7e,"format-code":X7e,"format-strike":Q7e,"format-superscript":e$e,"format-subscript":t$e,"layout-list-numbered":J7e,"clear-formatting":r$e,"yes-no":o$e,"diamond-outline":i$e,"diamond-fill":s$e,"magic-wand":a$e,"list-view-short":l$e,"list-view-long":c$e,"filter-add":u$e,"clipboard-copy":f$e,"clipboard-paste":p$e,refresh:d$e,"zig-zag":m$e,"zig-zag-thick":g$e,"chat-icon":h$e};var Zht=v$e["magic-wand"];var qht=rt({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 24 24",role:"img"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M20.123 15.88A9 9 0 0 0 8.12 3.877l2.787 2.787c.03-.073.06-.145.092-.216.294-.661.592-1.073.823-1.292a.988.988 0 0 1 .178-.14.991.991 0 0 1 .178.14c.23.22.528.63.823 1.292.366.825.665 1.901.838 3.148l3.593 3.594a9.739 9.739 0 0 0 1.548-.665 6.968 6.968 0 0 1-.385 1.827l1.528 1.528ZM14.805 5.585c.691 1.53 1.136 3.62 1.19 5.945a9.939 9.939 0 0 0 1.557-.53c.6-.266.994-.536 1.226-.756a7.016 7.016 0 0 0-3.973-4.66ZM3.877 8.12A9 9 0 0 0 15.88 20.123l-2.787-2.787a7.89 7.89 0 0 1-.092.216c-.294.661-.593 1.073-.823 1.292a.996.996 0 0 1-.178.14.99.99 0 0 1-.178-.14c-.23-.22-.529-.63-.823-1.292-.367-.825-.666-1.901-.838-3.148L6.967 11.21a8.334 8.334 0 0 1-.519-.21c-.6-.266-.995-.536-1.226-.756a6.95 6.95 0 0 1 .183-.596L3.877 8.12Zm5.317 10.295c-.577-1.278-.982-2.947-1.131-4.817-1.183-.256-2.22-.624-3.044-1.073a7.004 7.004 0 0 0 4.175 5.89Z",clipRule:"evenodd"},child:[]},{tag:"path",attr:{d:"M20.031 20.031a1.5 1.5 0 0 1-2.121 0L3.06 5.182a1.5 1.5 0 0 1 2.122-2.121L20.03 17.91a1.5 1.5 0 0 1 0 2.121Z"},child:[]}]}),Jht=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M8.39503 10.7767L7.17163 12.0001L8.5 13.3284V17.4676L11.1491 15.9775L12.2505 17.079L8.1177 19.4037C7.88939 19.5321 7.61061 19.5321 7.3823 19.4037L1.3823 16.0287C1.14615 15.8958 1 15.646 1 15.375V8.625C1 8.35404 1.14615 8.10416 1.3823 7.97132L7.3823 4.59632C7.61061 4.46789 7.88939 4.46789 8.1177 4.59632L12.2506 6.92108L11.1492 8.02254L7.75 6.11051L3.2798 8.625L7.75 11.1395L8.39503 10.7767ZM2.5 9.90739L7 12.4386V17.4676L2.5 14.9364V9.90739ZM12.8284 12.0001L16.5997 8.22883L20.3709 12.0001L16.5997 15.7713L12.8284 12.0001ZM16.5997 18.5997L10 12.0001L16.5997 5.4004L23.1993 12.0001L16.5997 18.5997Z"},child:[]}]}),Xht=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M6.92163 12H4V13.5H8.42163L6.92163 12ZM12.7397 17.8181C12.6083 17.9314 12.4372 18 12.25 18H3.25C2.83579 18 2.5 17.6642 2.5 17.25V6.75C2.5 6.33579 2.83579 6 3.25 6H8.5V9.75H9.17163L10.6716 8.25H10V6.07501C10.7159 6.22033 11.3577 6.56957 11.8622 7.05945L12.9229 5.99871C11.9761 5.07158 10.6798 4.5 9.25 4.5H3.25C2.00736 4.5 1 5.50736 1 6.75V17.25C1 18.4926 2.00736 19.5 3.25 19.5H12.25C12.8514 19.5 13.3977 19.2641 13.8013 18.8797L12.7397 17.8181ZM11.4216 16.5H4V15H9.92163L11.4216 16.5ZM4 10.5H7V9H4V10.5ZM12.5784 12L16.3497 8.22876L20.1209 12L16.3497 15.7712L12.5784 12ZM16.3497 18.5997L9.75 12L16.3497 5.40034L22.9493 12L16.3497 18.5997Z"},child:[]}]});var Qht=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M9.42163 14.25H8.5C8.08579 14.25 7.75 14.5858 7.75 15C7.75 15.4142 8.08579 15.75 8.5 15.75H10.9216L9.42163 14.25ZM13.1716 18H3.25C2.83579 18 2.5 17.6642 2.5 17.25V6.75C2.5 6.33579 2.83579 6 3.25 6H13.1716L14.6716 4.5H3.25C2.00736 4.5 1 5.50736 1 6.75V17.25C1 18.4926 2.00736 19.5 3.25 19.5H14.6716L13.1716 18ZM17.4427 17.7567L16.5997 18.5997L16.5997 18.5996L16.5997 18.5997L10 12L16.5997 5.40034L16.5997 5.40037L16.5997 5.40034L17.4427 6.24334C17.4427 6.24337 17.4427 6.24339 17.4427 6.24342L23.1993 12L17.4427 17.7566C17.4427 17.7566 17.4427 17.7566 17.4427 17.7567ZM10.9216 8.25H8.5C8.08579 8.25 7.75 8.58579 7.75 9C7.75 9.41421 8.08579 9.75 8.5 9.75H9.42163L10.9216 8.25ZM6.25 8.25H4.75V9.75H6.25V8.25ZM4.75 11.25H6.25V12.75H4.75V11.25ZM4.75 14.25H6.25V15.75H4.75V14.25ZM12.8284 12L16.5997 8.22876L20.3709 12L16.5997 15.7712L12.8284 12Z"},child:[]}]}),e0t=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12",fill:"none"},child:[{tag:"circle",attr:{cx:"6",cy:"6",r:"5",stroke:"currentColor",strokeWidth:"2"},child:[]}]}),t0t=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12",fill:"var(--white)"},child:[{tag:"circle",attr:{cx:"6",cy:"6",r:"5.5",stroke:"currentColor",strokeWidth:"1"},child:[]},{tag:"path",attr:{clipRule:"evenodd",fillRule:"evenodd",d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0V12Z",fill:"currentColor"},child:[]}]}),n0t=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12"},child:[{tag:"circle",attr:{cx:"6",cy:"6",r:"6",fill:"currentColor"},child:[]}]}),r0t=rt({tag:"svg",attr:{role:"img",viewBox:"0 0 12 12",fill:"none"},child:[{tag:"path",attr:{fill:"currentColor",d:"M9.37501 7.12499C9.04355 7.12482 8.72146 7.23498 8.45954 7.43812L7.37626 6.59437C7.45804 6.40689 7.50017 6.20453 7.50001 5.99999C7.50001 5.96531 7.50001 5.93062 7.49626 5.8964L8.11641 5.68968C8.31261 5.99228 8.61126 6.21406 8.95766 6.3144C9.30406 6.41474 9.67501 6.38692 10.0026 6.23604C10.3301 6.08516 10.5924 5.82131 10.7412 5.49284C10.8901 5.16436 10.9157 4.79324 10.8132 4.44747C10.7107 4.10169 10.4871 3.8044 10.1833 3.61006C9.87954 3.41572 9.5159 3.33733 9.15902 3.38926C8.80214 3.44119 8.47592 3.61996 8.2401 3.89281C8.00429 4.16567 7.87468 4.51436 7.87501 4.87499C7.87501 4.90968 7.87501 4.94437 7.87876 4.97859L7.2586 5.18531C7.12265 4.97514 6.93627 4.80233 6.71644 4.68263C6.49661 4.56293 6.25031 4.50014 6.00001 4.49999C5.91724 4.50017 5.83462 4.50706 5.75297 4.52062L5.43235 3.79687C5.7092 3.57566 5.8988 3.26358 5.96753 2.91594C6.03626 2.5683 5.9797 2.20755 5.80786 1.89763C5.63602 1.58771 5.36 1.34863 5.02873 1.22278C4.69746 1.09693 4.33233 1.09243 3.99805 1.21007C3.66378 1.32771 3.38195 1.5599 3.20251 1.86549C3.02308 2.17108 2.95763 2.53032 3.01777 2.87956C3.07791 3.22879 3.25975 3.54545 3.53106 3.77342C3.80237 4.00139 4.14563 4.12594 4.50001 4.12499C4.58277 4.12482 4.66539 4.11792 4.74704 4.10437L5.06766 4.82624C4.79577 5.04144 4.60706 5.34439 4.53378 5.68331C4.46051 6.02223 4.50722 6.37608 4.66594 6.68437L3.46079 7.75499C3.1575 7.55053 2.79005 7.4637 2.42732 7.51078C2.06459 7.55785 1.73148 7.7356 1.49043 8.01071C1.24938 8.28581 1.11693 8.63939 1.11793 9.00516C1.11892 9.37093 1.25327 9.72379 1.49581 9.99758C1.73835 10.2714 2.07242 10.4473 2.4354 10.4924C2.79838 10.5375 3.16535 10.4487 3.46753 10.2426C3.7697 10.0365 3.98634 9.72728 4.07683 9.37288C4.16732 9.01847 4.12545 8.64323 3.95907 8.31749L5.16422 7.24687C5.42516 7.42256 5.73485 7.51152 6.04925 7.50108C6.36365 7.49064 6.66676 7.38135 6.91547 7.18874L7.99876 8.03249C7.91723 8.21939 7.8751 8.42109 7.87501 8.62499C7.87501 8.92167 7.96298 9.21168 8.1278 9.45835C8.29262 9.70502 8.52689 9.89728 8.80098 10.0108C9.07507 10.1243 9.37667 10.154 9.66764 10.0962C9.95861 10.0383 10.2259 9.89543 10.4357 9.68565C10.6454 9.47588 10.7883 9.2086 10.8462 8.91763C10.9041 8.62666 10.8744 8.32506 10.7608 8.05097C10.6473 7.77688 10.455 7.54261 10.2084 7.37779C9.96169 7.21297 9.67168 7.12499 9.37501 7.12499ZM9.37501 4.12499C9.52334 4.12499 9.66835 4.16898 9.79168 4.25139C9.91502 4.3338 10.0112 4.45094 10.0679 4.58798C10.1247 4.72503 10.1395 4.87583 10.1106 5.02131C10.0817 5.1668 10.0102 5.30044 9.90534 5.40532C9.80045 5.51021 9.66681 5.58164 9.52132 5.61058C9.37584 5.63952 9.22504 5.62467 9.08799 5.5679C8.95095 5.51114 8.83382 5.41501 8.7514 5.29167C8.66899 5.16833 8.62501 5.02333 8.62501 4.87499C8.62501 4.67608 8.70402 4.48532 8.84468 4.34466C8.98533 4.20401 9.17609 4.12499 9.37501 4.12499ZM3.75001 2.62499C3.75001 2.47666 3.79399 2.33165 3.8764 2.20832C3.95881 2.08498 4.07595 1.98885 4.21299 1.93208C4.35004 1.87532 4.50084 1.86047 4.64632 1.88941C4.79181 1.91834 4.92545 1.98978 5.03034 2.09466C5.13522 2.19955 5.20666 2.33319 5.23559 2.47868C5.26453 2.62416 5.24968 2.77496 5.19292 2.91201C5.13615 3.04905 5.04002 3.16619 4.91668 3.2486C4.79335 3.33101 4.64834 3.37499 4.50001 3.37499C4.30109 3.37499 4.11033 3.29598 3.96968 3.15532C3.82902 3.01467 3.75001 2.82391 3.75001 2.62499ZM2.62501 9.74999C2.47667 9.74999 2.33167 9.70601 2.20833 9.6236C2.08499 9.54119 1.98886 9.42405 1.9321 9.28701C1.87533 9.14996 1.86048 8.99916 1.88942 8.85368C1.91836 8.70819 1.98979 8.57455 2.09468 8.46966C2.19957 8.36478 2.3332 8.29334 2.47869 8.26441C2.62417 8.23547 2.77497 8.25032 2.91202 8.30708C3.04906 8.36385 3.1662 8.45998 3.24861 8.58332C3.33102 8.70665 3.37501 8.85166 3.37501 8.99999C3.37501 9.19891 3.29599 9.38967 3.15534 9.53032C3.01468 9.67098 2.82392 9.74999 2.62501 9.74999ZM9.37501 9.37499C9.22667 9.37499 9.08167 9.33101 8.95833 9.2486C8.83499 9.16619 8.73886 9.04905 8.6821 8.91201C8.62533 8.77496 8.61048 8.62416 8.63942 8.47868C8.66836 8.33319 8.73979 8.19955 8.84468 8.09466C8.94957 7.98978 9.0832 7.91834 9.22869 7.88941C9.37417 7.86047 9.52497 7.87532 9.66202 7.93208C9.79906 7.98885 9.9162 8.08498 9.99861 8.20832C10.081 8.33165 10.125 8.47666 10.125 8.62499C10.125 8.82391 10.046 9.01467 9.90534 9.15532C9.76468 9.29598 9.57392 9.37499 9.37501 9.37499Z"},child:[]}]}),i0t=x`
|
|
1135
1135
|
align-items: center;
|
|
1136
1136
|
background: transparent;
|
|
1137
1137
|
border: none;
|
|
@@ -3695,18 +3695,20 @@ to {
|
|
|
3695
3695
|
`,PCt=x`
|
|
3696
3696
|
align-items: center;
|
|
3697
3697
|
`,FCt=x`
|
|
3698
|
+
height: 100%;
|
|
3699
|
+
`,BCt=x`
|
|
3698
3700
|
display: grid;
|
|
3699
3701
|
gap: var(--spacing-sm);
|
|
3700
3702
|
justify-content: space-between;
|
|
3701
3703
|
flex-grow: 1;
|
|
3702
|
-
`,
|
|
3704
|
+
`,zCt=x`
|
|
3703
3705
|
display: flex;
|
|
3704
3706
|
gap: var(--spacing-sm);
|
|
3705
|
-
`,
|
|
3706
|
-
> [role='listitem']:not(:first-
|
|
3707
|
+
`,jCt=x`
|
|
3708
|
+
> [role='listitem']:not(:first-child) {
|
|
3707
3709
|
border-top: 1px solid var(--gray-200);
|
|
3708
3710
|
}
|
|
3709
|
-
`,
|
|
3711
|
+
`,VCt=x`
|
|
3710
3712
|
align-items: center;
|
|
3711
3713
|
background: var(--gray-100);
|
|
3712
3714
|
color: var(--gray-500);
|
|
@@ -3715,30 +3717,47 @@ to {
|
|
|
3715
3717
|
height: 45px;
|
|
3716
3718
|
text-align: center;
|
|
3717
3719
|
font-size: var(--fs-xs);
|
|
3718
|
-
`,
|
|
3720
|
+
`,UCt=x`
|
|
3721
|
+
position: relative;
|
|
3722
|
+
align-items: center;
|
|
3723
|
+
display: flex;
|
|
3724
|
+
width: 80px;
|
|
3725
|
+
height: 45px;
|
|
3726
|
+
text-align: center;
|
|
3727
|
+
font-size: var(--fs-xs);
|
|
3728
|
+
`,HCt=x`
|
|
3719
3729
|
object-fit: cover;
|
|
3720
3730
|
width: 100%;
|
|
3721
3731
|
height: 100%;
|
|
3722
|
-
`,
|
|
3732
|
+
`,KCt=x`
|
|
3723
3733
|
animation: ${U5} 1s linear infinite alternate;
|
|
3724
3734
|
background: var(--white);
|
|
3725
3735
|
display: flex;
|
|
3726
3736
|
gap: var(--spacing-sm);
|
|
3727
3737
|
flex-grow: 1;
|
|
3728
3738
|
padding: var(--spacing-sm);
|
|
3729
|
-
`,
|
|
3739
|
+
`,WCt=x`
|
|
3730
3740
|
flex-grow: 1;
|
|
3731
|
-
`;var
|
|
3741
|
+
`;var GCt=x`
|
|
3732
3742
|
animation: ${s0} 1s linear infinite alternate;
|
|
3733
3743
|
border-radius: var(--rounded-base);
|
|
3734
3744
|
background: var(--gray-300);
|
|
3735
3745
|
display: block;
|
|
3736
3746
|
width: 80px;
|
|
3737
3747
|
height: 55px;
|
|
3738
|
-
`,
|
|
3748
|
+
`,YCt=x`
|
|
3739
3749
|
display: flex;
|
|
3740
3750
|
gap: var(--spacing-xs);
|
|
3741
|
-
|
|
3751
|
+
`,ZCt=x`
|
|
3752
|
+
position: absolute;
|
|
3753
|
+
width: 40%;
|
|
3754
|
+
height: auto;
|
|
3755
|
+
aspect-ratio: 1;
|
|
3756
|
+
opacity: 0.05;
|
|
3757
|
+
transform: rotateZ(-15deg) translate(80%, 40%);
|
|
3758
|
+
`,qCt=x`
|
|
3759
|
+
transform: translate(40%, 0);
|
|
3760
|
+
`;var XCt=x`
|
|
3742
3761
|
display: flex;
|
|
3743
3762
|
flex-direction: column;
|
|
3744
3763
|
gap: var(--spacing-xs);
|
|
@@ -3747,27 +3766,30 @@ to {
|
|
|
3747
3766
|
align-items: center;
|
|
3748
3767
|
flex-direction: row;
|
|
3749
3768
|
}
|
|
3750
|
-
`,
|
|
3769
|
+
`,QCt=x`
|
|
3751
3770
|
line-height: 1.25;
|
|
3752
|
-
`;var
|
|
3771
|
+
`;var t2t=x`
|
|
3772
|
+
color: var(--gray-500);
|
|
3773
|
+
font-size: var(--fs-sm);
|
|
3774
|
+
`;var r2t=mt`
|
|
3753
3775
|
align-items: center;
|
|
3754
3776
|
display: flex;
|
|
3755
|
-
`,
|
|
3777
|
+
`,o2t=mt`
|
|
3756
3778
|
opacity: var(--opacity-50);
|
|
3757
|
-
`,
|
|
3779
|
+
`,i2t=mt`
|
|
3758
3780
|
cursor: pointer-default;
|
|
3759
|
-
`,
|
|
3781
|
+
`,s2t=mt`
|
|
3760
3782
|
display: block;
|
|
3761
3783
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
3762
|
-
`,
|
|
3784
|
+
`,a2t=mt`
|
|
3763
3785
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
3764
|
-
`,
|
|
3786
|
+
`,l2t=mt`
|
|
3765
3787
|
border-radius: var(--rounded-base);
|
|
3766
3788
|
background: var(--gray-200);
|
|
3767
|
-
`,
|
|
3789
|
+
`,c2t=mt`
|
|
3768
3790
|
margin-left: var(--spacing-xs);
|
|
3769
3791
|
margin-right: var(--spacing-xs);
|
|
3770
|
-
`;var Woe=(0,Z5.createContext)({id:"",label:"",hiddenLabel:void 0,errorMessage:void 0,handleManuallySetErrorMessage:()=>{}}),Cd=()=>{let{id:t,label:e,hiddenLabel:n,errorMessage:r,handleManuallySetErrorMessage:o}=(0,Z5.useContext)(Woe);return{id:t,label:e,hiddenLabel:n,errorMessage:r,handleManuallySetErrorMessage:o}},
|
|
3792
|
+
`;var Woe=(0,Z5.createContext)({id:"",label:"",hiddenLabel:void 0,errorMessage:void 0,handleManuallySetErrorMessage:()=>{}}),Cd=()=>{let{id:t,label:e,hiddenLabel:n,errorMessage:r,handleManuallySetErrorMessage:o}=(0,Z5.useContext)(Woe);return{id:t,label:e,hiddenLabel:n,errorMessage:r,handleManuallySetErrorMessage:o}},d2t=x`
|
|
3771
3793
|
align-items: center;
|
|
3772
3794
|
border: none;
|
|
3773
3795
|
border-radius: var(--rounded-base);
|
|
@@ -3792,7 +3814,7 @@ to {
|
|
|
3792
3814
|
&:focus {
|
|
3793
3815
|
outline: none;
|
|
3794
3816
|
}
|
|
3795
|
-
`;var
|
|
3817
|
+
`;var p2t=x`
|
|
3796
3818
|
--hover-color: var(--accent-dark-hover);
|
|
3797
3819
|
--active-color: var(--accent-dark-active);
|
|
3798
3820
|
border: 1px solid transparent;
|
|
@@ -3816,7 +3838,7 @@ to {
|
|
|
3816
3838
|
opacity: 0.5;
|
|
3817
3839
|
cursor: default;
|
|
3818
3840
|
}
|
|
3819
|
-
`,
|
|
3841
|
+
`,m2t=x`
|
|
3820
3842
|
--text-color: var(--typography-inverted);
|
|
3821
3843
|
&:hover,
|
|
3822
3844
|
&:focus,
|
|
@@ -3832,7 +3854,7 @@ to {
|
|
|
3832
3854
|
background: var(--active-color);
|
|
3833
3855
|
color: var(--text-color);
|
|
3834
3856
|
}
|
|
3835
|
-
`,
|
|
3857
|
+
`,g2t=x`
|
|
3836
3858
|
--text-color: var(--typography-light);
|
|
3837
3859
|
&:hover:not([aria-disabled='true']),
|
|
3838
3860
|
&:focus:not([aria-disabled='true']),
|
|
@@ -3844,7 +3866,7 @@ to {
|
|
|
3844
3866
|
&[aria-pressed='true']:not([aria-disabled='true']) {
|
|
3845
3867
|
border-color: var(--active-color);
|
|
3846
3868
|
}
|
|
3847
|
-
`,
|
|
3869
|
+
`,h2t=x`
|
|
3848
3870
|
--text-color: var(--typography-inverted);
|
|
3849
3871
|
box-shadow: inset 0 0 0 1px transparent;
|
|
3850
3872
|
&:hover,
|
|
@@ -3858,17 +3880,17 @@ to {
|
|
|
3858
3880
|
background: var(--active-color);
|
|
3859
3881
|
border-color: var(--active-color);
|
|
3860
3882
|
}
|
|
3861
|
-
`;var
|
|
3883
|
+
`;var y2t=x`
|
|
3862
3884
|
align-items: center;
|
|
3863
3885
|
display: flex;
|
|
3864
3886
|
gap: var(--spacing-base);
|
|
3865
3887
|
justify-content: space-between;
|
|
3866
3888
|
margin-bottom: var(--spacing-sm);
|
|
3867
|
-
`,
|
|
3889
|
+
`,b2t=x`
|
|
3868
3890
|
align-items: center;
|
|
3869
3891
|
display: flex;
|
|
3870
3892
|
gap: var(--spacing-sm);
|
|
3871
|
-
`,
|
|
3893
|
+
`,x2t=x`
|
|
3872
3894
|
text-overflow: ellipsis;
|
|
3873
3895
|
white-space: nowrap;
|
|
3874
3896
|
overflow: hidden;
|
|
@@ -3892,7 +3914,7 @@ to {
|
|
|
3892
3914
|
font-weight: var(--fw-medium);
|
|
3893
3915
|
margin-bottom: var(--spacing-base);
|
|
3894
3916
|
width: 100%;
|
|
3895
|
-
`,
|
|
3917
|
+
`,w2t=(0,Goe.forwardRef)(({legend:t,isDisabled:e,children:n,...r},o)=>ie("fieldset",{css:MNe,disabled:e,ref:o,...r,children:[O("legend",{css:ONe,children:t}),n]})),INe=x`
|
|
3896
3918
|
margin-top: var(--spacing-xs);
|
|
3897
3919
|
background: var(--gray-50);
|
|
3898
3920
|
padding: var(--spacing-sm);
|
|
@@ -3922,7 +3944,7 @@ to {
|
|
|
3922
3944
|
img {
|
|
3923
3945
|
max-height: 100%;
|
|
3924
3946
|
}
|
|
3925
|
-
`;function FNe({imageSrc:t}){let[e,n]=(0,Yoe.useState)(!1);return t?ie("div",{css:INe,children:[O(BNe,{open:e,imageSrc:t,onRequestClose:()=>n(!1)}),O("button",{css:kNe,onClick:()=>{n(!0)},children:O(Poe,{src:t,"data-testid":"parameter-image-preview"})})]}):null}var BNe=({open:t,onRequestClose:e,imageSrc:n})=>t?O($o,{children:(0,Zoe.createPortal)(O(Y5,{header:"Image Preview",onRequestClose:e,buttonGroup:O(r0,{buttonType:"secondary",onClick:e,children:"Ok"}),children:O("div",{css:RNe,children:O(Poe,{src:n,css:PNe,"data-testid":"parameter-image-preview"})})}),document.body)}):null,zNe=x`
|
|
3947
|
+
`;function FNe({imageSrc:t}){let[e,n]=(0,Yoe.useState)(!1);return t?ie("div",{css:INe,children:[O(BNe,{open:e,imageSrc:t,onRequestClose:()=>n(!1)}),O("button",{type:"button",css:kNe,onClick:()=>{n(!0)},children:O(Poe,{src:t,"data-testid":"parameter-image-preview"})})]}):null}var BNe=({open:t,onRequestClose:e,imageSrc:n})=>t?O($o,{children:(0,Zoe.createPortal)(O(Y5,{header:"Image Preview",onRequestClose:e,buttonGroup:O(r0,{buttonType:"secondary",onClick:e,children:"Ok"}),children:O("div",{css:RNe,children:O(Poe,{src:n,css:PNe,"data-testid":"parameter-image-preview"})})}),document.body)}):null,zNe=x`
|
|
3926
3948
|
[data-action-bar] {
|
|
3927
3949
|
opacity: 1;
|
|
3928
3950
|
transform: translateX(0);
|
|
@@ -4016,7 +4038,7 @@ to {
|
|
|
4016
4038
|
`,Xoe=x`
|
|
4017
4039
|
display: flex; // used to correct overflow with chrome textarea
|
|
4018
4040
|
position: relative;
|
|
4019
|
-
`,
|
|
4041
|
+
`,N2t=x`
|
|
4020
4042
|
align-items: center;
|
|
4021
4043
|
background: var(--white);
|
|
4022
4044
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -4145,7 +4167,7 @@ to {
|
|
|
4145
4167
|
`,ZNe=x`
|
|
4146
4168
|
resize: vertical;
|
|
4147
4169
|
min-height: 2rem;
|
|
4148
|
-
`,
|
|
4170
|
+
`,D2t=x`
|
|
4149
4171
|
align-items: center;
|
|
4150
4172
|
appearance: none;
|
|
4151
4173
|
box-sizing: border-box;
|
|
@@ -4227,12 +4249,12 @@ to {
|
|
|
4227
4249
|
&:active {
|
|
4228
4250
|
color: var(--primary-action-active);
|
|
4229
4251
|
}
|
|
4230
|
-
`,Pre=({id:t,asSpan:e,children:n,testId:r,...o})=>e?O("span",{"aria-labelledby":t,css:_O,children:n}):O("label",{...o,htmlFor:t,css:_O,"data-testid":r,children:n}),e8e=(0,eie.forwardRef)(({label:t,children:e,disabled:n,withoutPortal:r},o)=>O(z$e,{menuTrigger:O("button",{"data-action-bar":!0,className:"parameter-menu",css:[Qoe,YNe],type:"button","aria-label":`${t} options`,ref:o,disabled:n,children:O(Go,{icon:"more-alt",iconColor:"currentColor",size:"0.9rem"})}),withoutPortal:r,children:e})),t8e=x`
|
|
4252
|
+
`,Pre=({id:t,asSpan:e,children:n,testId:r,...o})=>e?O("span",{"aria-labelledby":t,css:_O,children:n}):O("label",{...o,htmlFor:t,css:_O,"data-testid":r,children:n}),e8e=(0,eie.forwardRef)(({label:t,children:e,disabled:n,withoutPortal:r},o)=>O(z$e,{menuTrigger:O("button",{"data-action-bar":!0,"data-testid":"parameter-menu-button",className:"parameter-menu",css:[Qoe,YNe],type:"button","aria-label":`${t} options`,ref:o,disabled:n,children:O(Go,{icon:"more-alt",iconColor:"currentColor",size:"0.9rem"})}),withoutPortal:r,children:e})),t8e=x`
|
|
4231
4253
|
border-radius: var(--rounded-sm);
|
|
4232
4254
|
flex-grow: 1;
|
|
4233
4255
|
position: relative;
|
|
4234
4256
|
max-width: 100%;
|
|
4235
|
-
|
|
4257
|
+
`,O2t=x`
|
|
4236
4258
|
background: var(--brand-secondary-6);
|
|
4237
4259
|
border-radius: var(--rounded-sm);
|
|
4238
4260
|
padding: var(--spacing-sm);
|
|
@@ -4249,7 +4271,7 @@ to {
|
|
|
4249
4271
|
right: 0;
|
|
4250
4272
|
`,Sd=t=>{let{id:e,label:n,caption:r,captionTestId:o,errorMessage:i,errorTestId:s,infoMessage:a,warningMessage:l,hiddenLabel:c,labelLeadingIcon:u,menuItems:d,title:f,hasOverriddenValue:p,onResetOverriddenValue:m,...g}=t;return{shellProps:{id:e,label:n,caption:r,captionTestId:o,errorMessage:i,infoMessage:a,warningMessage:l,errorTestId:s,hiddenLabel:c,labelLeadingIcon:u,menuItems:d,title:f,hasOverriddenValue:p,onResetOverriddenValue:m},innerProps:g}},wd=({label:t,labelLeadingIcon:e,labelTrailingIcon:n,hiddenLabel:r,id:o,errorMessage:i,warningMessage:s,infoMessage:a,caption:l,errorTestId:c,captionTestId:u,menuItems:d,actionItems:f,hasOverriddenValue:p,onResetOverriddenValue:m,title:g,children:h,isParameterGroup:v=!1,menuWithoutPortal:y,...b})=>{let[S,C]=(0,qoe.useState)(void 0),w=T=>C(T),E=i||S;return ie("div",{css:jNe,...b,id:o,children:[r||g?null:ie(Pre,{id:o,css:_O,children:[e??null,t,n??null]}),g?ie(Pre,{id:o,asSpan:!0,testId:"parameter-label",children:[e??null,g,n??null]}):null,ie("div",{css:Xoe,children:[f?O("div",{"data-action-bar":!0,css:[Qoe,GNe,d?x`
|
|
4251
4273
|
right: var(--spacing-md);
|
|
4252
|
-
`:void 0],children:f}):null,d?O(e8e,{label:`${t} menu`,disabled:b.disabled,withoutPortal:y,children:d}):null,O(Woe.Provider,{value:{id:o,label:t,hiddenLabel:r,errorMessage:E,handleManuallySetErrorMessage:T=>w(T)},children:v?O("div",{style:{flexGrow:1},children:h}):ie(r8e,{children:[h,p&&m?O(o8e,{onClick:m,tooltipProps:{portal:!y}}):null]})})]}),O(l0,{helperMessageTestId:u,helperMessage:l,errorTestId:c,errorMessage:E,warningMessage:s,infoMessage:a})]})},r8e=({children:t})=>O("div",{css:t8e,children:t}),o8e=t=>O(z5,{title:"The default value has been overridden",...t.tooltipProps,children:O("button",{type:"button",css:n8e,...t,children:O("span",{hidden:!0,children:"reset overridden value to default"})})}),
|
|
4274
|
+
`:void 0],children:f}):null,d?O(e8e,{label:`${t} menu`,disabled:b.disabled,withoutPortal:y,children:d}):null,O(Woe.Provider,{value:{id:o,label:t,hiddenLabel:r,errorMessage:E,handleManuallySetErrorMessage:T=>w(T)},children:v?O("div",{style:{flexGrow:1},children:h}):ie(r8e,{children:[h,p&&m?O(o8e,{onClick:m,tooltipProps:{portal:!y}}):null]})})]}),O(l0,{helperMessageTestId:u,helperMessage:l,errorTestId:c,errorMessage:E,warningMessage:s,infoMessage:a})]})},r8e=({children:t})=>O("div",{css:t8e,children:t}),o8e=t=>O(z5,{title:"The default value has been overridden",...t.tooltipProps,children:O("button",{type:"button",css:n8e,...t,children:O("span",{hidden:!0,children:"reset overridden value to default"})})}),R2t=(0,Nb.forwardRef)(({children:t,...e},n)=>{let{shellProps:r,innerProps:o}=Sd(e);return ie(wd,{"data-test-id":"parameter-image",...r,children:[O(i8e,{ref:n,...o}),t]})}),i8e=(0,Nb.forwardRef)((t,e)=>{let{value:n}=t,{id:r,label:o,hiddenLabel:i,errorMessage:s}=Cd(),a=(0,Nb.useDeferredValue)(n);return ie($o,{children:[O("input",{css:Db,type:"text",id:r,ref:e,"aria-label":i&&typeof o=="string"?o:void 0,autoComplete:"off",...t}),s||t.disablePreview?null:O(FNe,{imageSrc:a})]})}),F2t=(0,VO.forwardRef)((t,e)=>{let{shellProps:n,innerProps:r}=Sd(t);return O(wd,{"data-testid":"parameter-input",...n,children:O(s8e,{ref:e,...r})})}),s8e=(0,VO.forwardRef)(({enableMouseWheel:t=!1,...e},n)=>{let{id:r,label:o,hiddenLabel:i}=Cd(),s=t!==!0&&e.type==="number";return O("input",{css:Db,id:r,type:e.type||"text","aria-label":i&&typeof o=="string"?o:void 0,autoComplete:"off",ref:n,onWheel:s?doe:void 0,...e})});var z2t=(0,UO.forwardRef)(({disabled:t,onConnectLink:e,externalLink:n,...r},o)=>{let{shellProps:i,innerProps:s}=Sd(r);return O(wd,{"data-testid":"link-parameter-editor",...i,label:s.value?i.label:"",title:!s.value&&typeof i.label=="string"?i.label:void 0,children:O(a8e,{onConnectLink:e,externalLink:n,disabled:t,ref:o,...s})})}),a8e=(0,UO.forwardRef)(({externalLink:t,onConnectLink:e,disabled:n,buttonText:r="Select link",...o},i)=>{let{id:s,label:a,hiddenLabel:l}=Cd();return o.value?ie("div",{css:Xoe,children:[O("input",{type:"text",css:[Db,XNe(!!t)],readOnly:!!o.value,id:s,ref:i,"aria-label":l&&typeof a=="string"?a:void 0,...o}),ie("div",{css:JNe,children:[O(r0,{buttonType:"ghost",size:"sm",disabled:n,onClick:e,title:"edit current selection","data-testid":"edit-current-selection",children:"edit"}),t?O("a",{href:t,css:QNe,title:"Open link in new tab",target:"_blank",rel:"noopener noreferrer",children:O(Go,{icon:"arrows-expand-up-right",iconColor:"currentColor",size:"1rem"})}):null]})]}):O("div",{css:qNe,children:O(r0,{buttonType:"ghost",size:"sm",disabled:n,onClick:e,children:r})})});var Np="20px",P5=x`
|
|
4253
4275
|
background: var(--white);
|
|
4254
4276
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cline x1='4' y1='9' x2='16' y2='9' stroke='%236b7280' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
4255
4277
|
background-repeat: no-repeat;
|
|
@@ -4525,17 +4547,17 @@ to {
|
|
|
4525
4547
|
appearance: textfield;
|
|
4526
4548
|
-moz-appearance: textfield;
|
|
4527
4549
|
}
|
|
4528
|
-
`;function Cb(t){return Math.ceil(t.length*9.799999999999999+24)}function S8e(t){if(t<=0)return[];if(t===1)return[[0]];if(t===2)return[[0,t-1]];let e=[];if(e.push([0,t-1]),t%2===1)e.push([Math.floor(t/2)]);else{let r=Math.floor(t/2)-1,o=Math.floor(t/2);e.push([r,o])}let n=4;for(;n<=t;){let r=[];for(let o=1;o<n;o+=2){let i=Math.round(o/n*(t-1));i>0&&i<t-1&&r.push(i)}r.length>0&&e.push(r),n*=2}return e}function EO(t,e,n,r,o){let i=t/100*o,s=n/100*o,a=8,l=i-e/2-a/2,c=i+e/2+a/2,u=s-r/2-a/2,d=s+r/2+a/2;return!(c<u||d<l)}function w8e(t,e,n){let r=t.map((a,l)=>({tick:a,index:l})).filter(({tick:a})=>a.label);if(r.length===0)return[];let o=e!==void 0?r.findIndex(({tick:a})=>a.position===e):-1,i=S8e(r.length),s=new Set(i[0]||[]);o!==-1&&s.add(o);for(let a=1;a<i.length;a++){let l=new Set(s);for(let f of i[a])l.add(f);let c=Math.max(2,Math.floor(n/100));if(l.size>c)break;let u=Array.from(l).sort((f,p)=>f-p),d=!1;for(let f=0;f<u.length-1;f++){let p=r[u[f]],m=r[u[f+1]],g=Cb(p.tick.label||""),h=Cb(m.tick.label||"");if(EO(p.tick.percentage,g,m.tick.percentage,h,n)){d=!0;break}}if(!d)s=l;else break}if(o!==-1&&s.has(o)){let a=r[o].tick,l=Cb(a.label||""),c=Array.from(s).sort((d,f)=>d-f),u=c.indexOf(o);if(u>0){let d=c[u-1],f=r[d].tick,p=Cb(f.label||"");EO(f.percentage,p,a.percentage,l,n)&&s.delete(d)}if(u<c.length-1){let d=c[u+1],f=r[d].tick,p=Cb(f.label||"");EO(a.percentage,l,f.percentage,p,n)&&s.delete(d)}}return r.map(({index:a},l)=>({tickIndex:a,isVisible:s.has(l),priority:s.has(l)?1:10}))}function E8e({ticks:t,currentValue:e,containerWidth:n=300}){let r=(0,u0.useRef)(null),[o,i]=(0,u0.useState)(n);(0,u0.useEffect)(()=>{if(r.current){let l=new ResizeObserver(c=>{for(let u of c)i(u.contentRect.width)});return l.observe(r.current),i(r.current.offsetWidth),()=>l.disconnect()}},[]);let s=w8e(t,e,o),a=new Map(s.map(l=>[l.tickIndex,l.isVisible]));return O("div",{ref:r,css:y8e,children:t.map((l,c)=>({tick:l,index:c})).filter(({tick:l})=>l.label).map(({tick:l,index:c})=>{var u;let d=(u=a.get(c))!=null?u:!1;return O("div",{css:b8e,style:{left:`${l.percentage}%`,opacity:d?1:0,pointerEvents:d?"auto":"none"},"data-position":l.percentage===0?"0":l.percentage===100?"100":void 0,title:l.label,children:l.label},`label-${c}-${l.position}`)})})}var KO=(0,Dp.forwardRef)(({value:t,onChange:e,onBlur:n,min:r,max:o,step:i,options:s,showNumberInput:a=!s,disabled:l=!1,"aria-label":c,id:u,name:d},f)=>{let p=!!(s&&s.length>0),{min:m,max:g,step:h,smallTicks:v,largeTicks:y}=(0,Dp.useMemo)(()=>{if(p&&s){if(s.length===0)return{min:0,max:0,step:1,smallTicks:[],largeTicks:[]};let z=s.length-1,G=z>0?z:1;return{min:0,max:z,step:1,smallTicks:[],largeTicks:s.map((k,F)=>({position:F,percentage:F/G*100,label:k.text,isLarge:!0}))}}let T=r??0,$=o??100,_=i!=null&&i>0?i:$-T>20?Math.ceil(($-T)/20):1,N=$-T,R=_>0?Math.floor(N/_):0,B=[];if(R<=100)for(let z=0;z<=R;z++){let G=T+z*_,k=(G-T)/N*100;B.push({position:G,percentage:k,isLarge:!1})}else{let z=Math.ceil(R/100);for(let G=0;G<=R;G+=z){let k=T+G*_,F=(k-T)/N*100;B.push({position:k,percentage:F,isLarge:!1})}}let P=[{position:T,percentage:0,label:T.toString(),isLarge:!0},{position:$,percentage:100,label:$.toString(),isLarge:!0}];if(N>=20){let z=T+N/2;P.push({position:z,percentage:50,label:Math.round(z).toString(),isLarge:!0})}return{min:T,max:$,step:_,smallTicks:B,largeTicks:P}},[p,s,r,o,i]),b=t==null||typeof t=="number"&&isNaN(t),S=b?m:Math.min(Math.max(t,m),g),C=(0,Dp.useCallback)(T=>{let $=Number(T.target.value);e($)},[e]),w=(0,Dp.useCallback)(T=>{if(T.target.value==="")e(void 0);else{let $=Number(T.target.value);e(isNaN($)?void 0:$)}},[e]),E=g===m?0:(S-m)/(g-m)*100;return ie("div",{css:l8e,children:[ie("div",{css:c8e,children:[ie("div",{css:u8e,children:[ie("div",{css:d8e,children:[O("div",{css:f8e}),O("div",{css:p8e,style:{width:`${E}%`}})]}),O("input",{ref:f,type:"range",id:u,name:d,min:m,max:g,step:h,value:S,onChange:C,onBlur:n,disabled:l,"aria-label":c,"data-unset":b?"":void 0,css:v8e})]}),ie("div",{css:m8e,children:[v.map((T,$)=>O("div",{css:g8e,style:{left:`${T.percentage}%`}},`small-${$}`)),y.map((T,$)=>O("div",{css:h8e,style:{left:`${T.percentage}%`}},`large-${$}`))]}),y.some(T=>T.label)&&O(E8e,{ticks:y,currentValue:b?void 0:S})]}),a&&!p&&O("div",{css:x8e,children:O("input",{type:"number",value:b?"":t,onChange:w,onBlur:n,disabled:l,min:m,max:g,step:h,css:C8e})})]})});KO.displayName="Slider";var T8e=(0,HO.forwardRef)((t,e)=>{let{shellProps:n,innerProps:r}=Sd(t);return O(wd,{"data-testid":"parameter-number-slider",...n,children:O(nie,{ref:e,...r})})}),nie=(0,HO.forwardRef)(({...t},e)=>{let{id:n,label:r,hiddenLabel:o}=Cd();return O(KO,{ref:e,id:n,"aria-label":o&&typeof r=="string"?r:void 0,...t})});T8e.displayName="ParameterNumberSlider";nie.displayName="ParameterNumberSliderInner";var _8e=[{label:"Heading 1",type:"h1"},{label:"Heading 2",type:"h2"},{label:"Heading 3",type:"h3"},{label:"Heading 4",type:"h4"},{label:"Heading 5",type:"h5"},{label:"Heading 6",type:"h6"},{label:"Bullet List",type:"unorderedList"},{label:"Ordered List",type:"orderedList"},{label:"Link",type:"link"},{label:"Blockquote",type:"quote"},{label:"Code Block",type:"code"},{label:"Table",type:"table"},{label:"Asset",type:"asset"},{label:"Dynamic Token",type:"variable"}],$8e=[{label:"Bold",type:"bold"},{label:"Italic",type:"italic"},{label:"Underline",type:"underline"},{label:"Strikethrough",type:"strikethrough"},{label:"Code",type:"code"},{label:"Superscript",type:"superscript"},{label:"Subscript",type:"subscript"}];var
|
|
4550
|
+
`;function Cb(t){return Math.ceil(t.length*9.799999999999999+24)}function S8e(t){if(t<=0)return[];if(t===1)return[[0]];if(t===2)return[[0,t-1]];let e=[];if(e.push([0,t-1]),t%2===1)e.push([Math.floor(t/2)]);else{let r=Math.floor(t/2)-1,o=Math.floor(t/2);e.push([r,o])}let n=4;for(;n<=t;){let r=[];for(let o=1;o<n;o+=2){let i=Math.round(o/n*(t-1));i>0&&i<t-1&&r.push(i)}r.length>0&&e.push(r),n*=2}return e}function EO(t,e,n,r,o){let i=t/100*o,s=n/100*o,a=8,l=i-e/2-a/2,c=i+e/2+a/2,u=s-r/2-a/2,d=s+r/2+a/2;return!(c<u||d<l)}function w8e(t,e,n){let r=t.map((a,l)=>({tick:a,index:l})).filter(({tick:a})=>a.label);if(r.length===0)return[];let o=e!==void 0?r.findIndex(({tick:a})=>a.position===e):-1,i=S8e(r.length),s=new Set(i[0]||[]);o!==-1&&s.add(o);for(let a=1;a<i.length;a++){let l=new Set(s);for(let f of i[a])l.add(f);let c=Math.max(2,Math.floor(n/100));if(l.size>c)break;let u=Array.from(l).sort((f,p)=>f-p),d=!1;for(let f=0;f<u.length-1;f++){let p=r[u[f]],m=r[u[f+1]],g=Cb(p.tick.label||""),h=Cb(m.tick.label||"");if(EO(p.tick.percentage,g,m.tick.percentage,h,n)){d=!0;break}}if(!d)s=l;else break}if(o!==-1&&s.has(o)){let a=r[o].tick,l=Cb(a.label||""),c=Array.from(s).sort((d,f)=>d-f),u=c.indexOf(o);if(u>0){let d=c[u-1],f=r[d].tick,p=Cb(f.label||"");EO(f.percentage,p,a.percentage,l,n)&&s.delete(d)}if(u<c.length-1){let d=c[u+1],f=r[d].tick,p=Cb(f.label||"");EO(a.percentage,l,f.percentage,p,n)&&s.delete(d)}}return r.map(({index:a},l)=>({tickIndex:a,isVisible:s.has(l),priority:s.has(l)?1:10}))}function E8e({ticks:t,currentValue:e,containerWidth:n=300}){let r=(0,u0.useRef)(null),[o,i]=(0,u0.useState)(n);(0,u0.useEffect)(()=>{if(r.current){let l=new ResizeObserver(c=>{for(let u of c)i(u.contentRect.width)});return l.observe(r.current),i(r.current.offsetWidth),()=>l.disconnect()}},[]);let s=w8e(t,e,o),a=new Map(s.map(l=>[l.tickIndex,l.isVisible]));return O("div",{ref:r,css:y8e,children:t.map((l,c)=>({tick:l,index:c})).filter(({tick:l})=>l.label).map(({tick:l,index:c})=>{var u;let d=(u=a.get(c))!=null?u:!1;return O("div",{css:b8e,style:{left:`${l.percentage}%`,opacity:d?1:0,pointerEvents:d?"auto":"none"},"data-position":l.percentage===0?"0":l.percentage===100?"100":void 0,title:l.label,children:l.label},`label-${c}-${l.position}`)})})}var KO=(0,Dp.forwardRef)(({value:t,onChange:e,onBlur:n,min:r,max:o,step:i,options:s,showNumberInput:a=!s,disabled:l=!1,"aria-label":c,id:u,name:d},f)=>{let p=!!(s&&s.length>0),{min:m,max:g,step:h,smallTicks:v,largeTicks:y}=(0,Dp.useMemo)(()=>{if(p&&s){if(s.length===0)return{min:0,max:0,step:1,smallTicks:[],largeTicks:[]};let z=s.length-1,G=z>0?z:1;return{min:0,max:z,step:1,smallTicks:[],largeTicks:s.map((k,F)=>({position:F,percentage:F/G*100,label:k.text,isLarge:!0}))}}let T=r??0,$=o??100,_=i!=null&&i>0?i:$-T>20?Math.ceil(($-T)/20):1,N=$-T,R=_>0?Math.floor(N/_):0,B=[];if(R<=100)for(let z=0;z<=R;z++){let G=T+z*_,k=(G-T)/N*100;B.push({position:G,percentage:k,isLarge:!1})}else{let z=Math.ceil(R/100);for(let G=0;G<=R;G+=z){let k=T+G*_,F=(k-T)/N*100;B.push({position:k,percentage:F,isLarge:!1})}}let P=[{position:T,percentage:0,label:T.toString(),isLarge:!0},{position:$,percentage:100,label:$.toString(),isLarge:!0}];if(N>=20){let z=T+N/2;P.push({position:z,percentage:50,label:Math.round(z).toString(),isLarge:!0})}return{min:T,max:$,step:_,smallTicks:B,largeTicks:P}},[p,s,r,o,i]),b=t==null||typeof t=="number"&&isNaN(t),S=b?m:Math.min(Math.max(t,m),g),C=(0,Dp.useCallback)(T=>{let $=Number(T.target.value);e($)},[e]),w=(0,Dp.useCallback)(T=>{if(T.target.value==="")e(void 0);else{let $=Number(T.target.value);e(isNaN($)?void 0:$)}},[e]),E=g===m?0:(S-m)/(g-m)*100;return ie("div",{css:l8e,children:[ie("div",{css:c8e,children:[ie("div",{css:u8e,children:[ie("div",{css:d8e,children:[O("div",{css:f8e}),O("div",{css:p8e,style:{width:`${E}%`}})]}),O("input",{ref:f,type:"range",id:u,name:d,min:m,max:g,step:h,value:S,onChange:C,onBlur:n,disabled:l,"aria-label":c,"data-unset":b?"":void 0,css:v8e})]}),ie("div",{css:m8e,children:[v.map((T,$)=>O("div",{css:g8e,style:{left:`${T.percentage}%`}},`small-${$}`)),y.map((T,$)=>O("div",{css:h8e,style:{left:`${T.percentage}%`}},`large-${$}`))]}),y.some(T=>T.label)&&O(E8e,{ticks:y,currentValue:b?void 0:S})]}),a&&!p&&O("div",{css:x8e,children:O("input",{type:"number",value:b?"":t,onChange:w,onBlur:n,disabled:l,min:m,max:g,step:h,css:C8e})})]})});KO.displayName="Slider";var T8e=(0,HO.forwardRef)((t,e)=>{let{shellProps:n,innerProps:r}=Sd(t);return O(wd,{"data-testid":"parameter-number-slider",...n,children:O(nie,{ref:e,...r})})}),nie=(0,HO.forwardRef)(({...t},e)=>{let{id:n,label:r,hiddenLabel:o}=Cd();return O(KO,{ref:e,id:n,"aria-label":o&&typeof r=="string"?r:void 0,...t})});T8e.displayName="ParameterNumberSlider";nie.displayName="ParameterNumberSliderInner";var _8e=[{label:"Heading 1",type:"h1"},{label:"Heading 2",type:"h2"},{label:"Heading 3",type:"h3"},{label:"Heading 4",type:"h4"},{label:"Heading 5",type:"h5"},{label:"Heading 6",type:"h6"},{label:"Bullet List",type:"unorderedList"},{label:"Ordered List",type:"orderedList"},{label:"Link",type:"link"},{label:"Blockquote",type:"quote"},{label:"Code Block",type:"code"},{label:"Table",type:"table"},{label:"Asset",type:"asset"},{label:"Dynamic Token",type:"variable"}],$8e=[{label:"Bold",type:"bold"},{label:"Italic",type:"italic"},{label:"Underline",type:"underline"},{label:"Strikethrough",type:"strikethrough"},{label:"Code",type:"code"},{label:"Superscript",type:"superscript"},{label:"Subscript",type:"subscript"}];var G2t={required:!1,formatting:{builtIn:$8e.map(t=>t.type)},elements:{builtIn:_8e.map(t=>t.type)},elementsConfig:{asset:{allowedTypes:["image"]}}},N8e=Vl,WO=Vl.importDOM(),D8e=WO.pre;WO.pre=t=>t.childNodes.length===1&&Array.from(t.childNodes).some(e=>e.nodeName==="CODE")?null:D8e(t);N8e.importDOM=function(){return WO};var q2t=mt`
|
|
4529
4551
|
font-weight: 700;
|
|
4530
|
-
`,
|
|
4552
|
+
`,J2t=mt`
|
|
4531
4553
|
font-style: italic;
|
|
4532
|
-
`,
|
|
4554
|
+
`,X2t=mt`
|
|
4533
4555
|
text-decoration: underline;
|
|
4534
|
-
`,
|
|
4556
|
+
`,Q2t=mt`
|
|
4535
4557
|
text-decoration: line-through;
|
|
4536
|
-
`,
|
|
4558
|
+
`,e4t=mt`
|
|
4537
4559
|
text-decoration: underline line-through;
|
|
4538
|
-
`,
|
|
4560
|
+
`,t4t=mt`
|
|
4539
4561
|
background-color: var(--gray-100);
|
|
4540
4562
|
border-radius: var(--rounded-sm);
|
|
4541
4563
|
display: inline-block;
|
|
@@ -4545,13 +4567,13 @@ to {
|
|
|
4545
4567
|
font-size: var(--fs-sm);
|
|
4546
4568
|
padding-left: var(--spacing-xs);
|
|
4547
4569
|
padding-right: var(--spacing-xs);
|
|
4548
|
-
`,
|
|
4570
|
+
`,n4t=mt`
|
|
4549
4571
|
vertical-align: super;
|
|
4550
4572
|
font-size: smaller;
|
|
4551
|
-
`,
|
|
4573
|
+
`,r4t=mt`
|
|
4552
4574
|
vertical-align: sub;
|
|
4553
4575
|
font-size: smaller;
|
|
4554
|
-
`,
|
|
4576
|
+
`,o4t=mt`
|
|
4555
4577
|
${K5}
|
|
4556
4578
|
${kO}
|
|
4557
4579
|
text-decoration: underline;
|
|
@@ -4567,38 +4589,38 @@ to {
|
|
|
4567
4589
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
4568
4590
|
`,R8e=mt`
|
|
4569
4591
|
font-size: var(--fs-base);
|
|
4570
|
-
`,
|
|
4592
|
+
`,i4t=mt`
|
|
4571
4593
|
${A8e}
|
|
4572
4594
|
${c0(!0)}
|
|
4573
4595
|
${xd}
|
|
4574
|
-
`,
|
|
4596
|
+
`,s4t=mt`
|
|
4575
4597
|
${M8e}
|
|
4576
4598
|
${c0(!0)}
|
|
4577
4599
|
${xd}
|
|
4578
|
-
`,
|
|
4600
|
+
`,a4t=mt`
|
|
4579
4601
|
${O8e}
|
|
4580
4602
|
${c0(!0)}
|
|
4581
4603
|
${xd}
|
|
4582
|
-
`,
|
|
4604
|
+
`,l4t=mt`
|
|
4583
4605
|
${I8e}
|
|
4584
4606
|
${c0(!0)}
|
|
4585
4607
|
${xd}
|
|
4586
|
-
`,
|
|
4608
|
+
`,c4t=mt`
|
|
4587
4609
|
${k8e}
|
|
4588
4610
|
${c0(!0)}
|
|
4589
4611
|
${xd}
|
|
4590
|
-
`,
|
|
4612
|
+
`,u4t=mt`
|
|
4591
4613
|
${R8e}
|
|
4592
4614
|
${c0(!0)}
|
|
4593
4615
|
${xd}
|
|
4594
|
-
`,
|
|
4616
|
+
`,d4t=mt`
|
|
4595
4617
|
line-height: 1.5;
|
|
4596
4618
|
margin-bottom: var(--spacing-base);
|
|
4597
4619
|
|
|
4598
4620
|
&:last-child {
|
|
4599
4621
|
margin-bottom: 0;
|
|
4600
4622
|
}
|
|
4601
|
-
`,
|
|
4623
|
+
`,f4t=mt`
|
|
4602
4624
|
${xd}
|
|
4603
4625
|
display: block;
|
|
4604
4626
|
list-style: decimal;
|
|
@@ -4626,7 +4648,7 @@ to {
|
|
|
4626
4648
|
}
|
|
4627
4649
|
}
|
|
4628
4650
|
}
|
|
4629
|
-
`,
|
|
4651
|
+
`,p4t=mt`
|
|
4630
4652
|
${xd}
|
|
4631
4653
|
display: block;
|
|
4632
4654
|
list-style: disc;
|
|
@@ -4646,11 +4668,11 @@ to {
|
|
|
4646
4668
|
list-style-type: square;
|
|
4647
4669
|
}
|
|
4648
4670
|
}
|
|
4649
|
-
`,
|
|
4671
|
+
`,m4t=mt`
|
|
4650
4672
|
margin-left: var(--spacing-md);
|
|
4651
|
-
`,
|
|
4673
|
+
`,g4t=mt`
|
|
4652
4674
|
list-style-type: none;
|
|
4653
|
-
`,
|
|
4675
|
+
`,h4t=mt`
|
|
4654
4676
|
border-left: 0.25rem solid var(--gray-300);
|
|
4655
4677
|
color: var(--gray-600);
|
|
4656
4678
|
margin-bottom: var(--spacing-base);
|
|
@@ -4659,7 +4681,7 @@ to {
|
|
|
4659
4681
|
&:last-child {
|
|
4660
4682
|
margin-bottom: 0;
|
|
4661
4683
|
}
|
|
4662
|
-
`,
|
|
4684
|
+
`,v4t=mt`
|
|
4663
4685
|
background-color: var(--gray-100);
|
|
4664
4686
|
border-radius: var(--rounded-sm);
|
|
4665
4687
|
display: block;
|
|
@@ -4673,7 +4695,7 @@ to {
|
|
|
4673
4695
|
&:last-child {
|
|
4674
4696
|
margin-bottom: 0;
|
|
4675
4697
|
}
|
|
4676
|
-
`,
|
|
4698
|
+
`,y4t=mt`
|
|
4677
4699
|
border-collapse: collapse;
|
|
4678
4700
|
border-spacing: 0;
|
|
4679
4701
|
border-color: var(--gray-300);
|
|
@@ -4685,7 +4707,7 @@ to {
|
|
|
4685
4707
|
&:last-child {
|
|
4686
4708
|
margin-bottom: 0;
|
|
4687
4709
|
}
|
|
4688
|
-
`,
|
|
4710
|
+
`,b4t=mt`
|
|
4689
4711
|
background-color: var(--white);
|
|
4690
4712
|
border-color: var(--gray-300);
|
|
4691
4713
|
border-style: solid;
|
|
@@ -4720,7 +4742,7 @@ to {
|
|
|
4720
4742
|
left: 100%;
|
|
4721
4743
|
z-index: 1;
|
|
4722
4744
|
}
|
|
4723
|
-
`,
|
|
4745
|
+
`,x4t=mt`
|
|
4724
4746
|
background-color: var(--gray-100);
|
|
4725
4747
|
border-color: var(--gray-300);
|
|
4726
4748
|
border-style: solid;
|
|
@@ -4733,25 +4755,25 @@ to {
|
|
|
4733
4755
|
text-align: start;
|
|
4734
4756
|
vertical-align: top;
|
|
4735
4757
|
width: 7rem;
|
|
4736
|
-
`;var F8e=t=>t?.type==="projectMapNode"&&!!(t.nodeId&&t.path&&t.projectMapId),$O=t=>typeof t?.type=="string"&&["url","tel","email"].includes(t.type)&&!!t.path,B8e=t=>t.startsWith("http://")||t.startsWith("https://")?"url":t.startsWith("mailto:")||t.includes("@")?"email":t.startsWith("tel:")||t.startsWith("+")?"tel":"url";function z8e(t){let e=null;if(!Ea(t))return{node:e};let n=t.textContent;if(n===null||n==="")return{node:e};let r=t.getAttribute("data-link");if(r)try{r=JSON.parse(r)}catch{}let o=t.getAttribute("href"),i,s,a,l;if(r&&typeof r=="object"&&("path"in r&&typeof r.path=="string"&&(o=r.path),"type"in r&&typeof r.type=="string"&&(a=r.type),"projectMapId"in r&&typeof r.projectMapId=="string"&&(i=r.projectMapId),"nodeId"in r&&typeof r.nodeId=="string"&&(s=r.nodeId),"dynamicInputValues"in r&&typeof r.dynamicInputValues=="string"))try{l=JSON.parse(r.dynamicInputValues)}catch{}if(!o)return{node:null};a||(a=B8e(o)),a==="email"&&o.startsWith("mailto:")?o=o.replace("mailto:",""):a==="tel"&&o.startsWith("tel:")&&(o=o.replace("tel:",""));let c={type:a,path:o,projectMapId:i,nodeId:s,dynamicInputValues:l};return(F8e(c)||$O(c))&&(e=NO(c)),{node:e}}var GO=class oie extends At{static getType(){return"link"}getLink(){return this.getLatest().__link}setLink(e){let n=this.getWritable();n.__link=e}static clone(e){return new oie(e.__link,e.__key)}constructor(e,n){super(n),this.__link=e}static importJSON(e){let n=NO(e.link);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),link:this.getLink(),type:this.getType(),version:1}}createDOM(e){let n=document.createElement("a");return n.setAttribute("data-link",JSON.stringify(this.__link)),$O(this.__link)&&(this.__link.type==="url"?n.setAttribute("href",this.__link.path):this.__link.type==="tel"?n.setAttribute("href",`tel:${this.__link.path}`):this.__link.type==="email"&&n.setAttribute("href",`mailto:${this.__link.path}`)),Re(n,e.theme.link),n}updateDOM(e,n){return Cre(e.__link,this.__link)||(n.setAttribute("data-link",JSON.stringify(this.__link)),$O(this.__link)&&(this.__link.type==="url"?n.setAttribute("href",this.__link.path):this.__link.type==="tel"?n.setAttribute("href",`tel:${this.__link.path}`):this.__link.type==="email"&&n.setAttribute("href",`mailto:${this.__link.path}`))),!1}static importDOM(){return{a:()=>({conversion:z8e,priority:1})}}insertNewAfter(e,n=!0){let r=this.getParentOrThrow().insertNewAfter(e,n);if(Y(r)){let o=NO("nodeId"in this.__link?{nodeId:this.__link.nodeId,projectMapId:this.__link.projectMapId,path:this.__link.path,type:this.__link.type}:{path:this.__link.path,type:this.__link.type});return r.append(o),o}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}};function NO(t){return Dt(new GO(t))}var
|
|
4758
|
+
`;var F8e=t=>t?.type==="projectMapNode"&&!!(t.nodeId&&t.path&&t.projectMapId),$O=t=>typeof t?.type=="string"&&["url","tel","email"].includes(t.type)&&!!t.path,B8e=t=>t.startsWith("http://")||t.startsWith("https://")?"url":t.startsWith("mailto:")||t.includes("@")?"email":t.startsWith("tel:")||t.startsWith("+")?"tel":"url";function z8e(t){let e=null;if(!Ea(t))return{node:e};let n=t.textContent;if(n===null||n==="")return{node:e};let r=t.getAttribute("data-link");if(r)try{r=JSON.parse(r)}catch{}let o=t.getAttribute("href"),i,s,a,l;if(r&&typeof r=="object"&&("path"in r&&typeof r.path=="string"&&(o=r.path),"type"in r&&typeof r.type=="string"&&(a=r.type),"projectMapId"in r&&typeof r.projectMapId=="string"&&(i=r.projectMapId),"nodeId"in r&&typeof r.nodeId=="string"&&(s=r.nodeId),"dynamicInputValues"in r&&typeof r.dynamicInputValues=="string"))try{l=JSON.parse(r.dynamicInputValues)}catch{}if(!o)return{node:null};a||(a=B8e(o)),a==="email"&&o.startsWith("mailto:")?o=o.replace("mailto:",""):a==="tel"&&o.startsWith("tel:")&&(o=o.replace("tel:",""));let c={type:a,path:o,projectMapId:i,nodeId:s,dynamicInputValues:l};return(F8e(c)||$O(c))&&(e=NO(c)),{node:e}}var GO=class oie extends At{static getType(){return"link"}getLink(){return this.getLatest().__link}setLink(e){let n=this.getWritable();n.__link=e}static clone(e){return new oie(e.__link,e.__key)}constructor(e,n){super(n),this.__link=e}static importJSON(e){let n=NO(e.link);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),link:this.getLink(),type:this.getType(),version:1}}createDOM(e){let n=document.createElement("a");return n.setAttribute("data-link",JSON.stringify(this.__link)),$O(this.__link)&&(this.__link.type==="url"?n.setAttribute("href",this.__link.path):this.__link.type==="tel"?n.setAttribute("href",`tel:${this.__link.path}`):this.__link.type==="email"&&n.setAttribute("href",`mailto:${this.__link.path}`)),Re(n,e.theme.link),n}updateDOM(e,n){return Cre(e.__link,this.__link)||(n.setAttribute("data-link",JSON.stringify(this.__link)),$O(this.__link)&&(this.__link.type==="url"?n.setAttribute("href",this.__link.path):this.__link.type==="tel"?n.setAttribute("href",`tel:${this.__link.path}`):this.__link.type==="email"&&n.setAttribute("href",`mailto:${this.__link.path}`))),!1}static importDOM(){return{a:()=>({conversion:z8e,priority:1})}}insertNewAfter(e,n=!0){let r=this.getParentOrThrow().insertNewAfter(e,n);if(Y(r)){let o=NO("nodeId"in this.__link?{nodeId:this.__link.nodeId,projectMapId:this.__link.projectMapId,path:this.__link.path,type:this.__link.type}:{path:this.__link.path,type:this.__link.type});return r.append(o),o}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}};function NO(t){return Dt(new GO(t))}var T4t=xt("REMOVE_LINK_NODE_COMMAND"),_4t=xt("UPSERT_LINK_NODE_COMMAND"),$4t=xt("OPEN_LINK_NODE_MODAL_COMMAND");var N4t=x`
|
|
4737
4759
|
position: absolute;
|
|
4738
4760
|
z-index: 11;
|
|
4739
|
-
`,
|
|
4761
|
+
`,D4t=x`
|
|
4740
4762
|
${v9e};
|
|
4741
4763
|
${y9e};
|
|
4742
4764
|
${b9e};
|
|
4743
4765
|
align-items: center;
|
|
4744
4766
|
display: flex;
|
|
4745
|
-
`,
|
|
4767
|
+
`,L4t=x`
|
|
4746
4768
|
${K5}
|
|
4747
4769
|
${kO}
|
|
4748
4770
|
`;var j8e=x`
|
|
4749
4771
|
position: absolute;
|
|
4750
4772
|
transform: translate(calc(-100% - 1px), 1px);
|
|
4751
|
-
`,V8e=(0,Ed.forwardRef)((t,e)=>{let{tableCellEl:n,positioningAnchorEl:r,...o}=t,[i,s]=(0,Ed.useState)({x:0,y:0});return(0,Ed.useLayoutEffect)(()=>{let a=n.getBoundingClientRect(),l=r.getBoundingClientRect(),c=a.right-l.left+r.scrollLeft,u=a.top-l.top+r.scrollTop;s({x:c,y:u})},[n,r]),O(Roe,{ref:e,css:[j8e,{top:i.y,left:i.x}],size:"xs",buttonType:"unimportant",...o,children:O(Go,{icon:"chevron-down",size:"1rem",iconColor:"currentColor"})})});V8e.displayName="TableActionMenuTrigger";var
|
|
4773
|
+
`,V8e=(0,Ed.forwardRef)((t,e)=>{let{tableCellEl:n,positioningAnchorEl:r,...o}=t,[i,s]=(0,Ed.useState)({x:0,y:0});return(0,Ed.useLayoutEffect)(()=>{let a=n.getBoundingClientRect(),l=r.getBoundingClientRect(),c=a.right-l.left+r.scrollLeft,u=a.top-l.top+r.scrollTop;s({x:c,y:u})},[n,r]),O(Roe,{ref:e,css:[j8e,{top:i.y,left:i.x}],size:"xs",buttonType:"unimportant",...o,children:O(Go,{icon:"chevron-down",size:"1rem",iconColor:"currentColor"})})});V8e.displayName="TableActionMenuTrigger";var I4t=x`
|
|
4752
4774
|
position: absolute;
|
|
4753
4775
|
z-index: var(--z-10);
|
|
4754
|
-
`;var
|
|
4776
|
+
`;var P4t=x`
|
|
4755
4777
|
${fs}
|
|
4756
4778
|
background: var(--gray-50);
|
|
4757
4779
|
border-radius: var(--rounded-base);
|
|
@@ -4764,7 +4786,7 @@ to {
|
|
|
4764
4786
|
position: sticky;
|
|
4765
4787
|
top: calc(var(--spacing-sm) * -2);
|
|
4766
4788
|
z-index: 10;
|
|
4767
|
-
`,
|
|
4789
|
+
`,F4t=x`
|
|
4768
4790
|
display: flex;
|
|
4769
4791
|
flex-shrink: 0;
|
|
4770
4792
|
gap: var(--spacing-xs);
|
|
@@ -4780,7 +4802,7 @@ to {
|
|
|
4780
4802
|
top: 4px;
|
|
4781
4803
|
width: 1px;
|
|
4782
4804
|
}
|
|
4783
|
-
`,
|
|
4805
|
+
`,B4t=x`
|
|
4784
4806
|
align-items: center;
|
|
4785
4807
|
appearance: none;
|
|
4786
4808
|
border: 0;
|
|
@@ -4793,16 +4815,16 @@ to {
|
|
|
4793
4815
|
justify-content: center;
|
|
4794
4816
|
min-width: 32px;
|
|
4795
4817
|
padding: 0 var(--spacing-sm);
|
|
4796
|
-
`,
|
|
4818
|
+
`,z4t=x`
|
|
4797
4819
|
background: var(--gray-200);
|
|
4798
|
-
`,
|
|
4820
|
+
`,j4t=x`
|
|
4799
4821
|
justify-content: space-between;
|
|
4800
4822
|
min-width: 7rem;
|
|
4801
|
-
`,
|
|
4823
|
+
`,V4t=x`
|
|
4802
4824
|
color: inherit;
|
|
4803
|
-
`,
|
|
4825
|
+
`,U4t=x`
|
|
4804
4826
|
margin-left: var(--spacing-xs);
|
|
4805
|
-
`;var
|
|
4827
|
+
`;var H4t=x`
|
|
4806
4828
|
position: relative;
|
|
4807
4829
|
|
|
4808
4830
|
&::before {
|
|
@@ -4817,11 +4839,11 @@ to {
|
|
|
4817
4839
|
right: var(--spacing-sm);
|
|
4818
4840
|
z-index: 2;
|
|
4819
4841
|
}
|
|
4820
|
-
`,
|
|
4842
|
+
`,K4t=x`
|
|
4821
4843
|
display: flex;
|
|
4822
4844
|
flex-flow: column;
|
|
4823
4845
|
flex-grow: 1;
|
|
4824
|
-
`,
|
|
4846
|
+
`,W4t=x`
|
|
4825
4847
|
${fs}
|
|
4826
4848
|
background: var(--white);
|
|
4827
4849
|
border-radius: var(--rounded-sm);
|
|
@@ -4852,14 +4874,14 @@ to {
|
|
|
4852
4874
|
min-height: calc(3rem + (2 * var(--spacing-sm)));
|
|
4853
4875
|
max-height: unset;
|
|
4854
4876
|
}
|
|
4855
|
-
`,
|
|
4877
|
+
`,G4t=x`
|
|
4856
4878
|
overflow: hidden;
|
|
4857
4879
|
pointer-events: none;
|
|
4858
4880
|
|
|
4859
4881
|
& > * {
|
|
4860
4882
|
pointer-events: auto;
|
|
4861
4883
|
}
|
|
4862
|
-
`,
|
|
4884
|
+
`,Y4t=x`
|
|
4863
4885
|
color: var(--gray-500);
|
|
4864
4886
|
font-style: italic;
|
|
4865
4887
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -4869,7 +4891,7 @@ to {
|
|
|
4869
4891
|
position: absolute;
|
|
4870
4892
|
top: calc(1rem + var(--spacing-sm));
|
|
4871
4893
|
user-select: none;
|
|
4872
|
-
`,
|
|
4894
|
+
`,Z4t=x`
|
|
4873
4895
|
min-height: 100%;
|
|
4874
4896
|
flex-grow: 1;
|
|
4875
4897
|
|
|
@@ -4877,7 +4899,7 @@ to {
|
|
|
4877
4899
|
&:focus-within {
|
|
4878
4900
|
outline: none;
|
|
4879
4901
|
}
|
|
4880
|
-
`;var
|
|
4902
|
+
`;var q4t=[lre,ure,pre,cre,are,dre,...fre];var X4t=(0,YO.forwardRef)(({defaultOption:t,options:e,...n},r)=>{let{shellProps:o,innerProps:i}=Sd(n);return O(wd,{...o,children:O(H8e,{options:e,defaultOption:t,...i,ref:r})})}),H8e=(0,YO.forwardRef)(({defaultOption:t,options:e,...n},r)=>{let{id:o,label:i,hiddenLabel:s}=Cd();return ie("select",{css:[Db,VNe],id:o,"aria-label":s&&typeof i=="string"?i:void 0,ref:r,...n,children:[t?O("option",{value:"",children:t}):null,e.map(a=>{var l;return O("option",{value:(l=a.value)!=null?l:a.label,children:a.label},a.label)})]})}),K8e=(0,Ap.forwardRef)((t,e)=>{let{shellProps:n,innerProps:r}=Sd(t);return O(wd,{"data-testid":"parameter-select-slider",...n,children:O(cie,{ref:e,...r})})}),cie=(0,Ap.forwardRef)(({options:t,value:e,onChange:n,...r},o)=>{let{id:i,label:s,hiddenLabel:a}=Cd(),l=(0,Ap.useMemo)(()=>{if(e==null||e==="")return;let u=t.findIndex(d=>d.value===e);return u>=0?u:void 0},[t,e]),c=(0,Ap.useCallback)(u=>{var d;n(u===void 0||(d=t[u])==null?void 0:d.value)},[t,n]);return O(KO,{ref:o,id:i,"aria-label":a&&typeof s=="string"?s:void 0,value:l,onChange:c,options:t,showNumberInput:!1,...r})});K8e.displayName="ParameterSelectSlider";cie.displayName="ParameterSelectSliderInner";var t3t=(0,ZO.forwardRef)((t,e)=>{let{shellProps:n,innerProps:r}=Sd(t);return O(wd,{"data-testid":"parameter-textarea",...n,children:O(W8e,{ref:e,...r})})}),W8e=(0,ZO.forwardRef)(({...t},e)=>{let{id:n,label:r,hiddenLabel:o}=Cd();return O("textarea",{css:[Db,ZNe],id:n,ref:e,"aria-label":o&&typeof r=="string"?r:void 0,...t})}),G8e=(0,qO.forwardRef)((t,e)=>{let{shellProps:n,innerProps:r}=Sd(t);return O(wd,{...n,children:O(uie,{ref:e,...r})})});G8e.displayName="ParameterToggle";var uie=(0,qO.forwardRef)(({children:t,...e},n)=>{let{type:r,withoutIndeterminateState:o,...i}=e,{id:s,label:a}=Cd();return ie("label",{css:UNe,children:[O("input",{css:[HNe,e.withoutIndeterminateState?void 0:KNe],type:r,id:s,ref:n,...i}),O("span",{css:WNe,children:a}),t]})});uie.displayName="ParameterToggleInner";var o3t=x`
|
|
4881
4903
|
background: var(--gray-50);
|
|
4882
4904
|
margin-block: var(--spacing-sm);
|
|
4883
4905
|
position: relative;
|
|
@@ -4885,7 +4907,7 @@ to {
|
|
|
4885
4907
|
height: 1rem;
|
|
4886
4908
|
border-radius: var(--rounded-sm);
|
|
4887
4909
|
border: solid 1px var(--gray-300);
|
|
4888
|
-
`,
|
|
4910
|
+
`,i3t={primary:x`
|
|
4889
4911
|
--progress-color: var(--accent-light);
|
|
4890
4912
|
`,secondary:x`
|
|
4891
4913
|
--progress-color: var(--accent-alt-light);
|
|
@@ -4898,9 +4920,9 @@ to {
|
|
|
4898
4920
|
to {
|
|
4899
4921
|
background-position: 64px 0;
|
|
4900
4922
|
}
|
|
4901
|
-
`,
|
|
4923
|
+
`,s3t=x`
|
|
4902
4924
|
background-color: var(--progress-color);
|
|
4903
|
-
`,
|
|
4925
|
+
`,a3t=x`
|
|
4904
4926
|
background-image: linear-gradient(
|
|
4905
4927
|
45deg,
|
|
4906
4928
|
var(--progress-color) 25%,
|
|
@@ -4913,23 +4935,23 @@ to {
|
|
|
4913
4935
|
);
|
|
4914
4936
|
background-size: 64px 64px;
|
|
4915
4937
|
animation: ${Y8e} 1s linear infinite;
|
|
4916
|
-
`,
|
|
4938
|
+
`,l3t=x`
|
|
4917
4939
|
position: absolute;
|
|
4918
4940
|
inset: 0;
|
|
4919
4941
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
4920
4942
|
transform-origin: 0 center;
|
|
4921
|
-
`;var
|
|
4943
|
+
`;var u3t=x`
|
|
4922
4944
|
display: flex;
|
|
4923
4945
|
flex-direction: column;
|
|
4924
4946
|
gap: var(--spacing-sm);
|
|
4925
4947
|
list-style-type: none;
|
|
4926
|
-
`,
|
|
4948
|
+
`,d3t=x`
|
|
4927
4949
|
display: flex;
|
|
4928
4950
|
gap: var(--spacing-base);
|
|
4929
4951
|
align-items: center;
|
|
4930
|
-
`;var
|
|
4952
|
+
`;var p3t=x`
|
|
4931
4953
|
position: relative;
|
|
4932
|
-
`,
|
|
4954
|
+
`,m3t=x`
|
|
4933
4955
|
position: absolute;
|
|
4934
4956
|
inset: 0;
|
|
4935
4957
|
z-index: 1;
|
|
@@ -4956,15 +4978,15 @@ to {
|
|
|
4956
4978
|
transform-origin: right;
|
|
4957
4979
|
background: linear-gradient(to left, var(--background-color) 10%, transparent);
|
|
4958
4980
|
}
|
|
4959
|
-
`,
|
|
4981
|
+
`,g3t=x`
|
|
4960
4982
|
&::before {
|
|
4961
4983
|
opacity: 1;
|
|
4962
4984
|
}
|
|
4963
|
-
`,
|
|
4985
|
+
`,h3t=x`
|
|
4964
4986
|
&::after {
|
|
4965
4987
|
opacity: 1;
|
|
4966
4988
|
}
|
|
4967
|
-
`,
|
|
4989
|
+
`,v3t=x`
|
|
4968
4990
|
overflow-y: auto;
|
|
4969
4991
|
scroll-behavior: smooth;
|
|
4970
4992
|
scrollbar-width: none;
|
|
@@ -4972,7 +4994,7 @@ to {
|
|
|
4972
4994
|
width: 0px;
|
|
4973
4995
|
height: 0px;
|
|
4974
4996
|
}
|
|
4975
|
-
`,
|
|
4997
|
+
`,y3t=x`
|
|
4976
4998
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
4977
4999
|
--segmented-control-border-width: 1px;
|
|
4978
5000
|
--segmented-control-selected-color: var(--accent-dark);
|
|
@@ -4991,13 +5013,13 @@ to {
|
|
|
4991
5013
|
gap: 0;
|
|
4992
5014
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
4993
5015
|
font-size: var(--fs-xs);
|
|
4994
|
-
`,
|
|
5016
|
+
`,b3t=x`
|
|
4995
5017
|
flex-direction: column;
|
|
4996
5018
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
4997
5019
|
var(--segmented-control-rounded-value) 0 0;
|
|
4998
5020
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
4999
5021
|
var(--segmented-control-rounded-value);
|
|
5000
|
-
`,
|
|
5022
|
+
`,x3t=x`
|
|
5001
5023
|
position: relative;
|
|
5002
5024
|
|
|
5003
5025
|
&:first-of-type label {
|
|
@@ -5019,12 +5041,12 @@ to {
|
|
|
5019
5041
|
|
|
5020
5042
|
/* Hide separator before next item when next item is hovered or selected */
|
|
5021
5043
|
&:has(+ *:hover) label,
|
|
5022
|
-
&:has(+
|
|
5044
|
+
&:has(+ * :checked) label {
|
|
5023
5045
|
box-shadow: var(--segmented-control-border-width) 0 0 0 transparent;
|
|
5024
5046
|
}
|
|
5025
|
-
`,
|
|
5047
|
+
`,C3t=x`
|
|
5026
5048
|
${y7e}
|
|
5027
|
-
`,
|
|
5049
|
+
`,S3t=x`
|
|
5028
5050
|
position: relative;
|
|
5029
5051
|
display: flex;
|
|
5030
5052
|
align-items: center;
|
|
@@ -5058,25 +5080,25 @@ to {
|
|
|
5058
5080
|
color: var(--gray-50);
|
|
5059
5081
|
background-color: var(--gray-400);
|
|
5060
5082
|
}
|
|
5061
|
-
`,
|
|
5083
|
+
`,w3t=x`
|
|
5062
5084
|
padding-inline: 0.5em;
|
|
5063
|
-
`,
|
|
5085
|
+
`,E3t=x`
|
|
5064
5086
|
opacity: 0.5;
|
|
5065
|
-
`,
|
|
5087
|
+
`,T3t=x`
|
|
5066
5088
|
display: flex;
|
|
5067
5089
|
align-items: center;
|
|
5068
5090
|
justify-content: center;
|
|
5069
5091
|
gap: var(--spacing-sm);
|
|
5070
5092
|
height: 100%;
|
|
5071
|
-
`,
|
|
5093
|
+
`,_3t=x`
|
|
5072
5094
|
white-space: nowrap;
|
|
5073
5095
|
`;var q8e=Tn`
|
|
5074
5096
|
from { opacity: 0.1; }
|
|
5075
5097
|
to { opacity: 0.025; }
|
|
5076
|
-
`,
|
|
5098
|
+
`,N3t=x`
|
|
5077
5099
|
animation: ${q8e} 1s ease-out infinite alternate;
|
|
5078
5100
|
background-color: var(--gray-500);
|
|
5079
|
-
`;var
|
|
5101
|
+
`;var L3t=x`
|
|
5080
5102
|
--color: #00b4ff;
|
|
5081
5103
|
--speed: 5s;
|
|
5082
5104
|
--red: rgb(218, 63, 50);
|
|
@@ -5713,7 +5735,7 @@ to {
|
|
|
5713
5735
|
flex-direction: row;
|
|
5714
5736
|
`,ODe=x`
|
|
5715
5737
|
flex-direction: row-reverse;
|
|
5716
|
-
`,
|
|
5738
|
+
`,F3t=(0,J5.forwardRef)(({label:t,infoText:e,toggleText:n,children:r,switchSize:o="base",alignment:i="left",...s},a)=>{let l=e,{SwitchInputContainerAlignmentStyles:c,SwitchInputCheckedDirection:u,SwitchInputLabelAlignment:d}=(0,J5.useMemo)(()=>i==="left"?{SwitchInputContainerAlignmentStyles:MDe,SwitchInputCheckedDirection:wDe,SwitchInputLabelAlignment:_De(o)}:{SwitchInputContainerAlignmentStyles:ODe,SwitchInputCheckedDirection:EDe,SwitchInputLabelAlignment:$De(o)},[i,o]);return e&&n&&(l=s.checked?n:e),ie($o,{children:[ie("label",{css:[CDe,c,u,s.disabled?TDe:void 0],children:[O("input",{type:"checkbox",css:[SDe(o),u],...s,ref:a}),O("span",{css:[NDe(o),d],children:t})]}),l?O("p",{css:[ADe,i==="left"?DDe(o):LDe(o)],children:l}):null,r]})}),IDe=({cellPadding:t="var(--spacing-sm)"})=>x`
|
|
5717
5739
|
border-bottom: 1px solid var(--gray-400);
|
|
5718
5740
|
border-collapse: collapse;
|
|
5719
5741
|
min-width: 100%;
|
|
@@ -5743,7 +5765,7 @@ to {
|
|
|
5743
5765
|
font-weight: var(--fw-regular);
|
|
5744
5766
|
line-height: 1.2;
|
|
5745
5767
|
}
|
|
5746
|
-
`,
|
|
5768
|
+
`,z3t=x`
|
|
5747
5769
|
max-width: calc(100vw - var(--spacing-md) * 2);
|
|
5748
5770
|
overflow-x: auto;
|
|
5749
5771
|
${fs}
|
|
@@ -5759,7 +5781,7 @@ to {
|
|
|
5759
5781
|
white-space: initial;
|
|
5760
5782
|
}
|
|
5761
5783
|
}
|
|
5762
|
-
`;var
|
|
5784
|
+
`;var V3t=Td.forwardRef(({children:t,cellPadding:e,...n},r)=>O("table",{ref:r,css:IDe({cellPadding:e}),...n,children:t})),U3t=Td.forwardRef(({children:t,...e},n)=>O("thead",{ref:n,css:kDe,...e,children:t})),H3t=Td.forwardRef(({children:t,...e},n)=>O("tbody",{ref:n,...e,children:t})),K3t=Td.forwardRef(({children:t,...e},n)=>O("tfoot",{ref:n,...e,children:t})),W3t=Td.forwardRef(({children:t,...e},n)=>O("tr",{ref:n,css:RDe,...e,children:t})),G3t=Td.forwardRef(({children:t,...e},n)=>O("th",{ref:n,css:PDe,...e,children:t})),Y3t=Td.forwardRef(({children:t,...e},n)=>O("td",{ref:n,...e,children:t})),q3t=x`
|
|
5763
5785
|
align-items: center;
|
|
5764
5786
|
border: 0;
|
|
5765
5787
|
height: 2.5rem;
|
|
@@ -5775,11 +5797,11 @@ to {
|
|
|
5775
5797
|
&[aria-selected='true'] {
|
|
5776
5798
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
5777
5799
|
}
|
|
5778
|
-
`,
|
|
5800
|
+
`,J3t=x`
|
|
5779
5801
|
display: flex;
|
|
5780
5802
|
gap: var(--spacing-base);
|
|
5781
5803
|
border-bottom: 1px solid var(--gray-300);
|
|
5782
|
-
`;var
|
|
5804
|
+
`;var Q3t=x`
|
|
5783
5805
|
align-items: center;
|
|
5784
5806
|
align-self: center;
|
|
5785
5807
|
color: var(--gray-500);
|
|
@@ -5794,29 +5816,29 @@ to {
|
|
|
5794
5816
|
content: '';
|
|
5795
5817
|
display: block;
|
|
5796
5818
|
}
|
|
5797
|
-
`,
|
|
5819
|
+
`,eSt=x`
|
|
5798
5820
|
font-size: var(--fs-sm);
|
|
5799
5821
|
&:before {
|
|
5800
5822
|
width: var(--fs-xs);
|
|
5801
5823
|
height: var(--fs-xs);
|
|
5802
5824
|
}
|
|
5803
|
-
`,
|
|
5825
|
+
`,tSt=x`
|
|
5804
5826
|
font-size: var(--fs-xs);
|
|
5805
5827
|
&:before {
|
|
5806
5828
|
width: var(--fs-xxs);
|
|
5807
5829
|
height: var(--fs-xxs);
|
|
5808
5830
|
}
|
|
5809
|
-
`,
|
|
5831
|
+
`,nSt=x`
|
|
5810
5832
|
&:before {
|
|
5811
5833
|
background: var(--white);
|
|
5812
5834
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
5813
5835
|
}
|
|
5814
|
-
`,
|
|
5836
|
+
`,rSt=x`
|
|
5815
5837
|
&:before {
|
|
5816
5838
|
background: linear-gradient(to right, var(--white) 50%, var(--accent-dark) 50% 100%);
|
|
5817
5839
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
5818
5840
|
}
|
|
5819
|
-
`,
|
|
5841
|
+
`,oSt=x`
|
|
5820
5842
|
color: var(--error);
|
|
5821
5843
|
&:before {
|
|
5822
5844
|
/* TODO: replace this with an svg icon */
|
|
@@ -5828,30 +5850,30 @@ to {
|
|
|
5828
5850
|
var(--error) 59%
|
|
5829
5851
|
);
|
|
5830
5852
|
}
|
|
5831
|
-
`,
|
|
5853
|
+
`,iSt=x`
|
|
5832
5854
|
&:before {
|
|
5833
5855
|
background: var(--accent-dark);
|
|
5834
5856
|
}
|
|
5835
|
-
`,
|
|
5857
|
+
`,sSt=x`
|
|
5836
5858
|
&:before {
|
|
5837
5859
|
background: var(--brand-secondary-5);
|
|
5838
5860
|
}
|
|
5839
|
-
`,
|
|
5861
|
+
`,aSt=x`
|
|
5840
5862
|
&:before {
|
|
5841
5863
|
background: var(--gray-800);
|
|
5842
5864
|
}
|
|
5843
|
-
`,
|
|
5865
|
+
`,lSt=x`
|
|
5844
5866
|
&:before {
|
|
5845
5867
|
background: var(--error);
|
|
5846
5868
|
}
|
|
5847
5869
|
`;await ft();var X5=I(V());function JO(t){let[,e]=t.split(":");return e}var vie="${",yie="}";var bie=I(V());function xie({displayName:t,referenceIsValid:e,tooltip:n,reference:r,onClick:o,clickToEdit:i,isFresh:s,selected:a,disabled:l,errorMessage:c=`${r} is not defined.`}){let u=!!o,d=s?!0:e,f=d==="warning"?zDe:d==="info"?BDe:d?bie.Fragment:FDe,p=d?u&&i?"Click to edit":void 0:c,m=React.createElement(Eoe,{onClick:o,"aria-selected":a?!0:void 0,"aria-disabled":l},React.createElement(f,null,t||r));if(n){let h=(n?`${n}${p?`
|
|
5848
5870
|
|
|
5849
5871
|
${p}`:""}`:p??"").split(`
|
|
5850
|
-
`);return React.createElement(z5,{title:React.createElement(DO,{gap:"sm"},h.map((v,y)=>React.createElement("div",{key:y},v)))},React.createElement("span",null,m))}return m}function FDe({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--error)"}},t)}function BDe({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--primary-action-default)"}},t)}function zDe({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--alert)"}},t)}import{createVariableReference as dSt}from"@uniformdev/canvas";await ft();var Mb=I(V()),jDe=I(Bs());var bSt=xt("uniform:open-insert-variable"),Cie=xt("uniform:edit-variable"),xSt=xt("uniform:disconnect-variable"),CSt=xt("uniform:insert-variable");var d0=class t extends yu{constructor(n,r,o){super(o);this.reference=n;this.__variableState=r}__variableState;static getType(){return"variable"}static clone(n){return new t(n.reference,{...n.__variableState},n.__key)}static importJSON(n){return Sie(n.reference,{displayName:JO(n.reference),referenceIsValid:!0,isFresh:!1,hasClickEvent:void 0,tooltip:void 0,isLoading:!1})}getState(){return this.getLatest().__variableState}setState(n){this.getWritable().__variableState=n}exportJSON(){return{reference:this.reference,type:t.getType(),version:1}}getTextContent(){return VDe(this.reference)}createDOM(){return document.createElement("span")}updateDOM(){return!1}static importDOM(){return{binding:()=>({conversion:UDe,priority:0})}}decorate(){return React.createElement(KDe,{state:this.__variableState,reference:this.reference,nodeKey:this.__key})}};function UDe(t){let n=t.textContent.replace(vie,"").replace(yie,"");return{node:Sie(n,{displayName:JO(n),hasClickEvent:!0,referenceIsValid:!0,tooltip:void 0,isFresh:!0,isLoading:!1})}}function Sie(t,e){return new d0(t,e)}function HDe(t){return t instanceof d0}function KDe({state:t,reference:e,nodeKey:n}){let[r]=Ig(),[o,i,s]=bG(n),a=!r.isEditable(),l=(0,X5.useCallback)(c=>{if(o&&Je(H())){c.preventDefault();let u=it(n);HDe(u)&&u.remove()}return!1},[o,n]);return(0,X5.useEffect)(()=>st(r.registerCommand(ya,l,Oe),r.registerCommand(va,l,Oe),r.registerCommand(oi,c=>{let u=H();if(Je(u)){let d=u.getNodes();if(d.length>0)return c.preventDefault(),d[0].selectPrevious(),!0}if(!U(u))return!1;if(Pl(u,!0)){let d=c.shiftKey;return c.preventDefault(),Rl(u,d,!0),!0}return!1},pe),r.registerCommand(ha,c=>{let u=H();if(Je(u)&&!WDe(c.target)){let f=u.getNodes();if(f.length>0)return c.preventDefault(),f[0].selectNext(0,0),!0}if(!U(u))return!1;let d=c.shiftKey;return Pl(u,!1)?(c.preventDefault(),Rl(u,d,!1),!0):!1},pe)),[s,r,o,n,l,i]),React.createElement(xie,{...t,reference:e,displayName:t.isLoading?React.createElement(joe,{size:"sm"}):t.displayName,selected:o,disabled:a,clickToEdit:t.hasClickEvent,onClick:t.hasClickEvent?()=>{i(!o),r.dispatchCommand(Cie,{reference:e,sourceKey:n})}:()=>i(!o)})}function WDe(t){let e=dt(t);return Zn(e)}await ft();await ft();var Ob=class t extends yu{__asset;__assetQuery;__upload;__error;getAsset(){return this.getLatest().__asset}setAsset(e){let n=this.getWritable();n.__asset=e}getAssetQuery(){return this.getLatest().__assetQuery}setAssetQuery(e){let n=this.getWritable();n.__assetQuery=e}getUpload(){return this.getLatest().__upload}setUpload(e){let n=this.getWritable();n.__upload=e}getError(){return this.getLatest().__error}setError(e){let n=this.getWritable();n.__error=e}static getType(){return"asset"}constructor(e,n,r,o,i){super(i),this.__asset=e,this.__upload=n,this.__error=o,this.__assetQuery=r}static clone(e){return new t(e.__asset,e.__upload,e.__assetQuery,e.__error,e.__key)}exportJSON(){let e={type:"asset",version:1};if(this.__asset&&(e.__asset=this.__asset),this.__assetQuery&&(e.__assetQuery=this.__assetQuery),this.__upload&&"fileUrl"in this.__upload){let{fileUrl:n,suggestedAltText:r,suggestedCaption:o}=this.__upload;e.__upload={fileUrl:n,suggestedAltText:r,suggestedCaption:o}}return this.__error&&(e.__error=this.__error),e}static importJSON(e){return XO({asset:e.__asset,assetQuery:e.__assetQuery,upload:e.__upload,error:e.__error})}static importDOM(){return{img:()=>({conversion:e=>GDe(e,XO),priority:0}),figure:()=>({conversion:e=>YDe(e,XO),priority:0})}}createDOM(e){let n=document.createElement("span"),o=e.theme.image;return o!==void 0&&(n.className=o),n}updateDOM(){return!1}isInline(){return!1}};function XO({asset:t,upload:e,assetQuery:n,error:r}){return Dt(new Ob(t,e,n,r))}function wie(t){return t.parentElement!=null&&t.parentElement.tagName==="LI"&&t.previousSibling===null&&t.getAttribute("aria-roledescription")==="checkbox"}function GDe(t,e){let n=t;if(n.src.startsWith("file:///")||wie(n))return null;let{alt:r,src:o}=n;return{node:Eie({altText:r,src:o,createAssetNode:e})}}function YDe(t,e){let n=t,r=n.querySelector("img"),o=n.querySelector("figcaption");if(!r||r.src.startsWith("file:///")||wie(r))return null;let{alt:i,src:s}=r;return s.startsWith("uniform://")?{node:e({assetQuery:{id:r.src.split("uniform://")[1],suggestedAltText:i,suggestedCaption:o?.textContent??void 0}})}:{node:Eie({altText:i,src:s,caption:o?.textContent??void 0,createAssetNode:e})}}function Eie({altText:t,src:e,caption:n,createAssetNode:r}){return r({asset:void 0,upload:{fileUrl:e,suggestedAltText:t,suggestedCaption:n},assetQuery:void 0})}var ZDe=t=>new DOMParser().parseFromString(t,"text/html");function Tie(t,e=ZDe){let n=eU({nodes:[Na,$a,GO,Sg,wg,Vm,WW,KW,GW,Vl,Ob,d0]}),r=e(t);return n.update(()=>{C7("skip-dom-selection");let o=ng(n,r);Nt().select(),As(o)},{discrete:!0}),n.getEditorState().toJSON()}function _ie({twee:t,nodeId:e,propertyId:n,propertyType:r,locale:o,propertyEdit:i,conditionIndex:s=-1,definitionIndex:a,domParser:l}){let c=t.getNodeById(e);if(!c)throw new Error(`Node with ID ${e} not found`);if(i.action==="clearValue")t.updateNodeProperty({nodeId:e,property:n,value:null,source:"ai",locale:o,conditionIndex:-1});else if(i.action==="resetOverride")t.resetPatternPropertyOverride(e,n,o);else if(i.action==="setValue"){if(r==="contentReference"){oLe({twee:t,nodeId:e,targetNode:c,propertyId:n,propertyType:r,propertyEdit:i,locale:o,conditionIndex:s,definitionIndex:a});return}let u=rLe({twee:t,targetNode:c,propertyId:n,propertyType:r,propertyEdit:i,domParser:l}),d=t.getNodeProperty(e,n);if(!o&&d?.locales)throw new Error(`The ${n} property is localized in ${Object.keys(d.locales).join(", ")}, but no locale was provided when setting its value. Please provide an explicit locale.`);if(n===XDe){let f=t.getParentInfo(e);if(f?.parentId){let p=t.getNodeProperty(f.parentId,JDe);if(p?.value!==Ok)throw new Error(`Cannot edit personalization criteria when the parent personalization component is not using the Strongest Variation Match selection method. Current selection method: ${p?.value||"Top-down criteria matching"}.`)}}t.updateNodeProperty({nodeId:e,property:n,value:()=>u,source:"ai",locale:o,conditionIndex:s,type:r})}}var rLe=({twee:t,targetNode:e,propertyId:n,propertyType:r,propertyEdit:o,domParser:i})=>{if(r==="richText")return Tie(o.newValue??"",i);if(r==="number")return Number(o.newValue);if(n===qDe){if(nLe(e.value.type))throw new Error("Enrichment tags are not allowed in system components.");if(t.getParentInfo(e.nodeId)?.parentId===QDe)throw new Error("Enrichment tags are not allowed in personalization variants.")}return o.treatNewValueAsJson?JSON.parse(o.newValue):o.newValue};function oLe({twee:t,nodeId:e,targetNode:n,propertyId:r,propertyType:o,propertyEdit:i,locale:s,conditionIndex:a,definitionIndex:l}){let c=Hp(n.nodeId,r,s,a),u;try{u=i.treatNewValueAsJson?JSON.parse(i.newValue):i.newValue}catch(y){throw new Error(`Invalid reference field data: ${y instanceof Error?y.message:"Unknown error"}`)}if(!u||typeof u!="object"||u.type!==cl)throw new Error("Invalid reference field definition received from AI");let d=u.variables?.entryIds;if(!d||typeof d!="string"||d.length===0){t.updateNode({nodeId:n.nodeId,updateDataResources:[{type:"remove",name:c}]}),t.updateNodeProperty({nodeId:e,property:r,value:null,source:"ai",locale:s,conditionIndex:a,type:o});return}let m=l[n.value.type]?.parameters?.find(({id:y})=>y===r)?.typeConfig?.isMulti??!1,g=Nk(d,{targetLocale:s,enabledLocales:t.getNodeById(t.rootNodeId)?.value._locales??[]});t.updateNode({nodeId:n.nodeId,updateDataResources:[{type:"set",name:c,value:g}]});let h=`/${c}/entries${m?"":"/0"}`,v=tLe(eLe({syntax:"jptr",pointer:h}));t.updateNodeProperty({nodeId:e,property:r,value:()=>v,source:"ai",locale:s,conditionIndex:a,type:o})}import{validate as iLe}from"uuid";var $ie=t=>iLe(t)?t:btoa(t);function f0(t,e,n="Component instance"){let r=t.getNodeById(e);if(r)return r;let o=[];if(t.visitNodeAndDescendants(t.rootNodeId,i=>{i.nodeId!==e&&i.nodeId.includes(e)&&o.push(i.nodeId)}),o.length>0){let i=o.map(s=>`"${$ie(s)}"`).join(", ");throw new Error(`${n} with ID ${e} not found. You might have meant one of these IDs that does exist: ${i}. Component IDs should be used exactly as provided in the _id field.`)}throw new Error(`${n} with ID ${e} not found`)}async function Q5({twee:t,slotUpdates:e,propertyUpdates:n,dataResourceUpdates:r,localeUpdates:o,nameUpdate:i,slugUpdate:s,descriptionUpdate:a,currentEditorLocale:l,referenceData:c,dataSourceVariant:u,onStatusUpdate:d,isEditingPattern:f,domParser:p}){let m=[],g=(i?1:0)+(s?1:0)+(a?1:0)+(e.createComponentInstances?.length??0)+(e.moveComponentInstances?.length??0)+(e.duplicateComponentInstances?.length??0)+(e.deleteComponentInstances?.length??0)+(o?.enableLocales?.length??0)+(o?.disableLocales?.length??0)+n.length,h=0,v=C=>{m.push(C),h++,d?.({completed:h,total:g})};i&&(t.updateRootNode({update:{_name:i}}),v({summary:"Updated name",success:!0})),s&&(t.updateRootNode({update:{_slug:s}}),v({summary:"Updated slug",success:!0})),a&&(t.updateRootMetadata({description:a}),v({summary:"Updated description",success:!0}));let y=await c.fetchDefinitions();await cLe({slotUpdates:e,twee:t,definitions:y,referenceData:c,addResult:v,isEditingPattern:f});let b=m.some(C=>!C.success);if(b?e.moveComponentInstances?.forEach(C=>{m.push({summary:`Skipped moving component ${C.componentId} because previous actions failed`,success:!1})}):await uLe({slotUpdates:e,twee:t,definitions:y,addResult:v,isEditingPattern:f}),b=m.some(C=>!C.success),e.duplicateComponentInstances)for(let C of e.duplicateComponentInstances)if(b)v({summary:`Skipped duplicating component ${C} because previous actions failed`,success:!1});else{let w=await t.duplicateNode(C,c.resolvePatternData);v({summary:`Duplicated component ${C}. The new duplicate has ID ${w} and is placed immediately after the original component in the same slot.`,success:!0})}return b=m.some(C=>!C.success),e.deleteComponentInstances?.forEach(C=>{b?v({summary:`Skipped deleting component ${C} because previous actions failed`,success:!1}):(t.deleteNode(C,!1),v({summary:`Deleted component ${C}`,success:!0}))}),b=m.some(C=>!C.success),o?.enableLocales?.forEach(C=>{b?v({summary:`Skipped enabling locale ${C} because previous actions failed`,success:!1}):(t.enableLocale(C),v({summary:`Enabled locale ${C}`,success:!0}))}),b=m.some(C=>!C.success),o?.disableLocales?.forEach(C=>{b?v({summary:`Skipped disabling locale ${C} because previous actions failed`,success:!1}):(t.disableLocale(C),v({summary:`Disabled locale ${C}`,success:!0}))}),b=m.some(C=>!C.success),b?n.length>0&&v({summary:`Skipped ${n.length} property updates because previous actions failed`,success:!1}):(await dLe({propertyUpdates:n,twee:t,currentEditorLocale:l,referenceData:c,definitions:y,addResult:v})).forEach(w=>{if(!w.result.success)return;let E="componentId"in w.update?w.update.componentId:t.rootNodeId,T=eT({twee:t,nodeId:E,currentEditorLocale:w.currentLocale,definition:w.propertyDefinition}),$=(t.getNodeById(t.rootNodeId)?.value)._locales??[];if(T&&!$.includes(T)){v({summary:`The ${T} locale is not enabled on this entity. Please enable it before setting values in this locale.`,success:!1});return}if(w.result.action!=="nothing")try{_ie({twee:t,nodeId:E,propertyId:w.propertyDefinition.id,propertyType:w.propertyDefinition.type,locale:T,propertyEdit:w.result,definitionIndex:y,domParser:p}),v({summary:`Updated value of ${w.propertyDefinition.id} on ${E}${T?` in ${T}`:""}`,success:!0})}catch(_){v({summary:`Failed to update value of ${w.propertyDefinition.id} on ${E}${T?` in ${T}`:""}: ${_ instanceof Error?_.message:"Unknown error"}`,success:!1})}if("overridable"in w.update&&w.update.overridable!==void 0)if(w.propertyDefinition.type===sLe)v({summary:`Cannot set overridability for block property '${w.propertyDefinition.id}' - blocks do not support overrides`,success:!1});else{let _=w.update.overridable;t.updateNode({nodeId:E,updateComponent:N=>{N._overridability??={},N._overridability.parameters??={},N._overridability.parameters[w.propertyDefinition.id]=_}}),v({summary:`Updated overridability for ${E}`,success:!0})}}),b=m.some(C=>!C.success),b?r.length>0&&m.push({summary:`Skipped ${r.length} data resource updates because previous actions failed`,success:!1}):(await fLe({dataResourceUpdates:r,twee:t,referenceData:c,results:m,dataSourceVariant:u})).forEach(w=>{if(!w.result.success)return;let E=w.update.componentId;if(w.result.action==="resetOverride")t.updateNode({nodeId:E,updateDataResources:[{type:"reset",name:w.update.dataResourceName}]}),m.push({summary:`Reset data resource to pattern default for ${w.update.dataResourceName} on ${E}`,success:!0});else if(w.result.action==="setValue")try{Dk({twee:t,nodeId:E,dataResourceName:w.update.dataResourceName,dataType:w.dataType,dataResourceEdit:w.result}),m.push({summary:`Updated data resource ${w.update.dataResourceName} on ${E}`,success:!0})}catch(T){m.push({summary:`Failed to update data resource ${w.update.dataResourceName} on ${E}: ${T instanceof Error?T.message:"Unknown error"}`,success:!1})}}),{success:m.every(C=>C.success),actionsTaken:m}}async function cLe({slotUpdates:t,twee:e,definitions:n,referenceData:r,addResult:o,isEditingPattern:i}){(await Promise.allSettled(t.createComponentInstances?.map(async a=>{let l=f0(e,a.parentComponentId,"Parent component");if(!n[l.value.type])throw new Error(`Definition for parent component type ${l.value.type} not found`);let u=QE({twee:e,parentNodeId:a.parentComponentId,slotName:a.slotName,componentDefinitionsIndex:n});if(!u)throw new Error(`Can't find allowed components for slot ${a.slotName}`);if(a.instanceType==="component"){if(!a.componentType)throw new Error("componentType is required when inserting a component instance");if(!Ox({type:a.componentType},u,i))throw new Error(`Component type ${a.componentType} is not allowed in slot ${a.slotName}`);e.insertNode({node:{type:a.componentType},overrideNodeId:a.newComponentInstanceUuid,parentNodeId:a.parentComponentId,parentSlot:a.slotName,targetIndexInSlot:a.slotIndex}),o({summary:`Inserted component ${a.componentType} in slot ${a.slotName} ${a.slotIndex!==void 0?`at index ${a.slotIndex}`:""}`,success:!0})}else{if(!a.componentPatternId)throw new Error("componentPatternId is required when inserting a component pattern instance");let d=await r.resolvePatternData(a.componentPatternId);if(!d)throw new Error(`Pattern definition with ID ${a.componentPatternId} not found`);if(!Ox({type:d.type,_pattern:a.componentPatternId},u,!1))throw new Error(`Pattern ${a.componentPatternId} is not allowed in slot ${a.slotName}`);e.insertPattern({pattern:d,patternInstanceId:a.newComponentInstanceUuid,parentNodeId:a.parentComponentId,parentSlot:a.slotName,targetIndexInSlot:a.slotIndex}),o({summary:`Inserted pattern ${d._name} in slot ${a.slotName} ${a.slotIndex!==void 0?`at index ${a.slotIndex}`:""}`,success:!0})}})??[])).forEach((a,l)=>{if(a.status==="rejected"){let c=t.createComponentInstances?.[l];console.error("Error inserting component",a.reason),o({summary:`Failed to insert component ${c?.newComponentInstanceUuid}: ${"message"in a.reason?a.reason.message:"Unknown error"}`,success:!1})}})}async function uLe({slotUpdates:t,twee:e,definitions:n,addResult:r,isEditingPattern:o}){(await Promise.allSettled(t.moveComponentInstances?.map(async s=>{let a=f0(e,s.componentId,"Component to move"),l=f0(e,s.newParentComponentId,"Destination component");if(!n[l.value.type])throw new Error(`Definition for destination component type ${l.value.type} not found`);let u=QE({twee:e,parentNodeId:s.newParentComponentId,slotName:s.newSlotName,componentDefinitionsIndex:n});if(!u)throw new Error(`Can't find allowed components for slot ${s.newSlotName}`);if(!Ox({type:a.value.type,_pattern:a.value._pattern},u,o))throw new Error(a.value._pattern?`Pattern ${a.value._pattern} is not allowed in slot ${s.newSlotName}`:`Component ${a.value.type} is not allowed in slot ${s.newSlotName}`);e.moveNode({movedNodeId:s.componentId,parentNodeId:s.newParentComponentId,parentSlot:s.newSlotName,targetIndexInSlot:s.newSlotIndex}),r({summary:`Moved component ${s.componentId} to ${s.newParentComponentId} in slot ${s.newSlotName} at index ${s.newSlotIndex}`,success:!0})})??[])).forEach((s,a)=>{if(s.status==="rejected"){let l=t.moveComponentInstances?.[a];console.error("Error moving component",s.reason),r({summary:`Failed to move component ${l?.componentId}: ${"message"in s.reason?s.reason.message:"Unknown error"}`,success:!1})}})}async function dLe({propertyUpdates:t,twee:e,currentEditorLocale:n,referenceData:r,definitions:o,addResult:i}){if(t.length===0)return[];let[s,a]=await Promise.all([r.fetchProjectGuidance(),r.getToolClient()]),l=await Promise.allSettled(t.map(async c=>(async()=>{let u="componentId"in c?c.componentId:e.rootNodeId,d=f0(e,u),f=o[d.value.type];if(!f)throw new Error(`Definition with ID ${d.value.type} not found`);let p="fieldId"in c?c.fieldId:c.parameterId,m=f.parameters?.find(w=>w.id===p),g=c.fromLocale??c.locale??n,h=c.locale??n,v=m??{id:p,type:"unknown"};if(c.editInstructions===void 0)return{result:{success:!0,newValue:"",treatNewValueAsJson:!1,action:"nothing"},update:c,propertyDefinition:v};if(c.editInstructions==="")return{result:{success:!0,newValue:"",treatNewValueAsJson:!1,action:"clearValue"},update:c,propertyDefinition:v};if(!m)throw new Error(`Property with ID ${p} not found`);if(m.type==="contentReference"){let w=eT({definition:m,twee:e,nodeId:u,currentEditorLocale:n}),E=Hp(u,p,w,-1),T=d.value._dataResources?.[E],$=await a.invoke("createDataResourceEdit",{edit:c.editInstructions,dataType:cl,currentValue:T?.variables||{}});if(!$.success)throw new Error($.summary??"Failed to edit reference field data resource");return{result:{success:!0,newValue:JSON.stringify({type:cl,variables:$.newValue}),treatNewValueAsJson:!0,action:"setValue"},update:c,propertyDefinition:m,currentLocale:w}}let y=aLe({property:e.getNodeProperty(u,p),locale:g,conditionIndex:-1}),b,S=e.getNodeProperty(u,lLe);S?.value?.dim&&(b=await r.getDimensionGuidance(S.value.dim));let C=await a.invoke("createPropertyEdit",{edit:c.editInstructions,propertyDefinition:{id:p,name:m.name,type:m.type,guidance:m.guidance,typeConfig:m.typeConfig},outputLocale:h,documentContext:void 0,currentValue:y,projectGuidance:s,componentGuidance:f.description,audienceGuidance:b});if(!C.success)throw new Error(C.summary??"Failed to edit property");return{result:C,update:c,propertyDefinition:m,currentLocale:h}})()));return l.forEach((c,u)=>{if(c.status==="rejected"){let d=t[u],f="fieldId"in d?d.fieldId:d.parameterId;i({summary:`Failed to edit property ${f}: ${"message"in c.reason?c.reason.message:"Unknown error"}`,success:!1})}}),l.filter(c=>c.status==="fulfilled").map(c=>c.value)}async function fLe({dataResourceUpdates:t,twee:e,referenceData:n,results:r,dataSourceVariant:o}){if(t.length===0)return[];let i=await n.getToolClient(),s=await Promise.allSettled(t.map(async a=>(async()=>{let l=a.componentId,c=f0(e,l);if(a.editInstructions===void 0)return{result:{success:!0,newValue:{},action:"nothing"},update:a,dataType:"unknown"};if(a.editInstructions==="")return{result:{success:!0,newValue:{},action:"setValue"},update:a,dataType:"unknown"};let u=c.value._dataResources?.[a.dataResourceName],d=c.value._patternDataResources?.[a.dataResourceName];if(!d)throw new Error(`Pattern data resource ${a.dataResourceName} does not exist on the ${c.value._pattern} pattern`);let f=u?.variables??d.variables,p=d.type,m=await i.invoke("createDataResourceEdit",{edit:a.editInstructions,dataType:p,currentValue:f,dataSourceVariant:o});if(!m.success)throw new Error(m.summary??"Failed to edit data resource");return{result:m,update:a,dataType:p}})()));return s.forEach((a,l)=>{if(a.status==="rejected"){let c=t[l];r.push({summary:`Failed to edit data resource ${c.dataResourceName}: ${"message"in a.reason?a.reason.message:"Unknown error"}`,success:!1})}}),s.filter(a=>a.status==="fulfilled").map(a=>a.value)}import{CANVAS_BLOCK_PARAM_TYPE as Ys,CANVAS_ENRICHMENT_TAG_PARAM as lse,CANVAS_LOCALE_TAG_PARAM as Pb,CANVAS_LOCALIZATION_SLOT as cI,CANVAS_LOCALIZATION_TYPE as nAe,CANVAS_PERSONALIZATION_PARAM as Fb,CANVAS_PERSONALIZE_SLOT as cse,CANVAS_SLOT_SECTION_SLOT as rAe,CANVAS_SLOT_SECTION_TYPE as sE,CANVAS_TEST_SLOT as use,CANVAS_TEST_VARIANT_PARAM as dse,CANVAS_VIZ_CONTROL_PARAM as _d,convertToBindExpression as fse,createVariableReference as pse,getEffectivePropertyValue as mse,getPropertiesValue as oAe,parseVariableExpression as gse,walkNodeTree as Ec,walkPropertyValues as iAe}from"@uniformdev/canvas";var Ip=I(QO(),1),vse=I(D0(),1);import{produce as nr}from"immer";import{v4 as $d}from"uuid";import{v4 as hLe}from"uuid";async function Aie({projectMapClient:t,compositionId:e,compositionName:n,nodePathSegment:r,parentNodeId:o,localePathSegments:i,allowedQueryStrings:s}){let l=(await t.getProjectMapDefinition({}))?.projectMaps[0]?.id;if(!l)throw new Error("No project map found for this project");let c=r||i?.[0]?.pathSegment,u,d=0;if(o){let h=(await t.getNodes({id:o})).nodes?.[0];if(!h)throw new Error("Parent node not found");let v=h.path;d=((await t.getNodes({path:v,depth:1,expanded:!1})).nodes?.filter(C=>C.path!==v)??[]).reduce((C,w)=>Math.max(C,w.order??0),-1)+100,u=`${v==="/"?"":v}/${c}`}else u=`/${c}`;let f=i?.reduce((g,{locale:h,pathSegment:v})=>(g[h]={pathSegment:v,name:v},g),{}),p=s?.map(({name:g,defaultValue:h})=>({name:g,...h!==void 0&&{value:h}})),m=hLe();return await t.upsertProjectMapNodes({projectMapId:l,nodes:[{node:{id:m,name:n,path:u,type:"composition",compositionId:e,order:d,...f&&{locales:f},...p&&{data:{queryStrings:p}}}}]}),{path:u,nodeId:m}}import{bindVariablesToObject as vLe}from"@uniformdev/canvas";var Ib="Untitled",Mie=60;function Oie({value:t,isNew:e,contentType:n}){let{result:r}=vLe({value:t,handleBinding:()=>"{token}",variables:{}}),o=n.entryName??"",i=(n.fields??[]).find(s=>s.id===o);if(typeof r=="string"){if(i?.type==="image")return r.length>0?`Image: ${bLe(r)}`:`${Ib} image`;if(r.length>0)return i?.type==="date"?CLe(r)?SLe(r):"Invalid date":Mp(r)}else{if(typeof r=="number"||typeof r=="boolean")return r.toString();if(typeof r<"u"&&r!==null){if(i?.type==="link")return yLe(r);if(mk(r))return Mp(qE(r.root));if(i?.type==="datetime"&&r){let s=r;return s.datetime&&Iie(s.datetime)?wLe(s.datetime):"Invalid datetime"}else return Mp(ELe(r).description)}}return e?`New entry: ${n.name}`:Ib}function yLe(t){return t?t.type==="projectMapNode"?t.path.length>0?`Link to ${Mp(t.path)}`:`Link to project map node (${t.nodeId})`:t.path.length>0?`Link to ${Mp(t.path)}`:`${Ib} link`:`${Ib} link`}function bLe(t){try{let{pathname:e,hostname:n}=new URL(t),r=e.split("/").filter(o=>o);return r.length>2?`/${r[0]}/.../${r[r.length-1]} (${Mp(n)})`:`${e} (${Mp(n)})`}catch{return t}}function Mp(t){let e=t.split(" ").filter(i=>i).reverse();if(e.length<1)return Ib;let n="",r=e.pop(),o=()=>n.length+(r?.length??0)+(n.length>0?1:0);for(;r&&o()<Mie;)n+=n.length>0?` ${r}`:r,r=e.pop();return n.length<1?`${t.slice(0,Mie)}...`:e.length>0?`${n}...`:n}var xLe=/^[1-9][0-9]{3}-[0-1][0-9]-[0-3][0-9]$/;function CLe(t){return xLe.test(t)?Iie(t):!1}function Iie(t){let e=new Date(t);return e instanceof Date&&!isNaN(Number(e))}function SLe(t){return new Date(t).toLocaleDateString()}function wLe(t){return new Date(t).toLocaleString()}function ELe(t){let e=eI(t);return e?{description:e,named:!0}:{description:TLe(t).valuePreview,named:!1}}function TLe(t){if(typeof t>"u")return{valueIcon:"close-o",valuePreview:"undefined"};if(t===null)return{valueIcon:"close-o",valuePreview:"null"};if(Array.isArray(t))return{valuePreview:`array with ${t.length} item${t.length!==1?"s":""}`,valueIcon:"list"};if(typeof t=="boolean")return{valuePreview:t.toString(),valueIcon:t?"check-r":"close-r"};if(typeof t=="number"||typeof t=="bigint")return{valuePreview:t.toString(10),valueIcon:"number-input"};if(typeof t=="object"){let e=Object.keys(t);return{valuePreview:`object with ${e.length} ${e.length!==1?"properties":"property"}`,valueIcon:"shape-hexagon"}}return{valuePreview:t,valueIcon:"text-input"}}var _Le=["displayName","name","_name","title","heading","label","parameters","fields","properties","entry","slug","_slug","alt","alt_description","description","results","items","entries","hits","value","id","objectID","identifier"];function eI(t){if(typeof t=="string")return t;if(typeof t=="number")return t.toString(10);if(typeof t=="boolean")return t.toString();if(typeof t!="object"||t===null)return;if(Array.isArray(t)){if(t.length===0)return;let r=eI(t[0]);return r?t.length===1?r:`${r} and ${t.length-1} other${t.length>2?"s":""}`:void 0}let n=t;for(let r of _Le)if(r in n){let o=eI(n[r]);if(o)return o}}import{CANVAS_SLOT_SECTION_SLOT as $Le,walkNodeTree as NLe}from"@uniformdev/canvas";import{v4 as kie}from"uuid";var kb="|";function eE(t,e){if(!t)return e??kie();let n=t.split(kb),r=(e??kie()).split(kb);return n.at(-1)===r[0]&&n.pop(),n.concat(r).join(kb)}function Pie(t){let e=t.indexOf(kb);if(e<0)throw new Error(`Cannot remove pattern instance ID from ${t}`);return t.substring(e+1)}function tE(t,e,n=!1){NLe(t,({node:r,actions:{setDescendantsContext:o},context:i})=>{let s=!n&&!i?.currentParentPatternInstanceId,a="_pattern"in r&&!!r._pattern;if(i?.currentParentPatternInstanceId){let c=eE(i.currentParentPatternInstanceId,r._id);r._id=c}let l=i?.currentParentPatternInstanceId;a&&(l=r._id),"_overrides"in r&&r._overrides&&Rie(r._overrides,l,s),"_patternOverrides"in r&&r._patternOverrides&&Rie(r._patternOverrides,l,s),a&&o({currentParentPatternInstanceId:r._id})},{initialContext:{currentParentPatternInstanceId:e}})}var Rie=(t,e,n)=>{Object.entries(t).forEach(([r,o])=>{let i=n?r:eE(e,r);Object.entries(o.slots??{}).forEach(([s,a])=>{a.forEach(l=>{let{partOfNestedPattern:c}=nE(r??"");tE(l,s===$Le&&!c?void 0:e,!0)})}),i&&(delete t[r],t[i]=o)})};function nE(t){let e=t.split(kb);return e.length===1?{partOfPattern:void 0,partOfNestedPattern:void 0}:e.length===2?{partOfPattern:e[0],partOfNestedPattern:void 0}:{partOfPattern:e[0],partOfNestedPattern:e[e.length-2]}}import{CANVAS_SLOT_SECTION_SLOT as Uie}from"@uniformdev/canvas";import{CANVAS_VIZ_CONTROL_PARAM as OLe}from"@uniformdev/canvas";import{CANVAS_ENRICHMENT_TAG_PARAM as Fie,CANVAS_INTENT_TAG_PARAM as DLe,CANVAS_LOCALE_TAG_PARAM as LLe,CANVAS_PERSONALIZATION_PARAM as Bie,CANVAS_TEST_VARIANT_PARAM as ALe,CANVAS_VIZ_CONTROL_PARAM as zie}from"@uniformdev/canvas";var MLe="$internal_displayName",jie=[{id:MLe,name:"Display Name",type:"text"},{id:DLe,name:"Intent Tag",type:"intentTag"},{id:LLe,name:"Locale Visibility",type:"localeSelect"},{id:Bie,name:"Personalization Criteria",type:Bie},{id:Fie,name:"Enrichment Tags",type:Fie,helpText:"Seeing this component will increase a visitor's score in these enrichments."},{id:ALe,name:"A/B Test",type:"testVariant"},{id:zie,name:"Visibility Control",type:zie}];var ILe=jie.reduce((t,e)=>(e.id===OLe||t.add(e.id),t),new Set);function Op(t,e){return ILe.has(e)?"yes":t?.parameters?.[e]??"no"}function tI(t,e){e&&Object.entries(e).forEach(([n,r])=>{let o=t[n];if(r.parameters||o?.parameters){t[n]??={};let i={...r?.parameters};Object.entries(o?.parameters??{}).forEach(([s,a])=>{let l=i[s];if(!l)i[s]=a;else if(a.locales||a.localesConditions||l.locales||l.localesConditions){let c={...l,...a};(a.locales||l.locales)&&(c.locales={...l.locales,...a.locales}),(a.localesConditions||l.localesConditions)&&(c.localesConditions={...l.localesConditions,...a.localesConditions}),i[s]=c}else i[s]={...l,...a}}),t[n].parameters=i}if((r.dataResources||o?.dataResources)&&(t[n]??={},t[n].dataResources={...r?.dataResources,...o?.dataResources}),r.slots||o?.slots){t[n]??={};let i=Object.entries(o?.slots??{}).reduce((s,[a,l])=>(s[a]&&Array.isArray(s[a])?s[a]=[...l,...s[a]]:s[a]=l,s),r.slots??{});t[n].slots=i}(r.variant!==void 0||o?.variant!==void 0)&&(t[n]=t[n]??{},t[n].variant=o?.variant??r?.variant)})}function Vie({applyOverrideToNode:t}){let e=new Set,n={};return{visitNode(r){e.add(r._id),tI(n,r._overrides),tI(n,r._patternOverrides);let o=n[r._id];o&&(o.parameters&&Object.keys(o.parameters).forEach(i=>{Op(r._overridability,i)==="no"&&(console.log(`[Override] Cleaned override from ${r._id} parameter ${i} because it is not overridable`),delete n[r._id].parameters?.[i])}),o.dataResources&&Object.keys(o.dataResources).forEach(i=>{r._patternDataResources?.[i]?.isPatternParameter||(console.log(`[Override] Cleaned override from ${r._id} data resource ${i} because it is not overridable`),delete n[r._id].dataResources?.[i])}),o.variant!==void 0&&(r._overridability?.variants||delete o.variant),t({node:r,overrides:o}))},overrides:n}}function nI(t){let{beforeApplyParameterOverride:e,beforeApplyDataResourceOverride:n}=t??{};return Vie({applyOverrideToNode({node:r,overrides:o}){if(Object.entries(o.parameters??{}).map(([i,s])=>{r.parameters=r.parameters??{},e?.(r,i,s,r.parameters[i]);let a=r.parameters[i]??={type:s.type};s.locales||s.localesConditions?(a.locales??={},delete a.value,delete a.conditions,new Set([...Object.keys(s.locales??{}),...Object.keys(s.localesConditions??{})]).forEach(u=>{delete a.locales?.[u],delete a.localesConditions?.[u];let d=s.locales?.[u],f=s.localesConditions?.[u];d!=null&&(a.locales??={},a.locales[u]=d),f!=null&&(a.localesConditions??={},a.localesConditions[u]=f)}),a.locales&&Object.keys(a.locales).length===0&&delete a.locales,a.localesConditions&&Object.keys(a.localesConditions).length===0&&delete a.localesConditions):(delete a.locales,delete a.localesConditions,delete a.conditions,delete a.value,s.value!==null&&s.value!==void 0&&(a.value=s.value,a.connectedData=s.connectedData),s.conditions!==null&&s.conditions!==void 0&&(a.conditions=s.conditions)),!a.locales&&!a.localesConditions&&!a.conditions&&a.value===void 0&&delete r.parameters[i]}),Object.entries(o.dataResources??{}).forEach(([i,s])=>{n?.(r,i,s,r._dataResources?.[i]),r._dataResources??={},r._dataResources[i]=s}),o.variant!==void 0&&(r.variant=o.variant),o.slots){r.slots??={};let i=Object.keys(o.slots)[0];r.slots[Uie]??=[],r.slots[Uie]=[...o.slots[i]??[]]}}})}import{CANVAS_SLOT_SECTION_SLOT as kLe,CANVAS_SLOT_SECTION_TYPE as RLe}from"@uniformdev/canvas";var Hie=({preserveOwnSlotSections:t=!1,preserveChildrenSlotSections:e=!1}={})=>n=>{if(n.node.type!==RLe)return;let{partOfPattern:r,partOfNestedPattern:o}=nE(n.node._id??"");!r&&!o&&t||r&&!o&&e||PLe(n)},PLe=({node:t,type:e,actions:n})=>{e!=="entry"&&(n.insertAfter(t.slots?.[kLe]??[]),n.remove())};import{walkNodeTree as jLe}from"@uniformdev/canvas";import{produce as VLe}from"immer";import{v4 as ULe}from"uuid";import{CANVAS_SLOT_SECTION_SLOT as Kie,walkNodeTree as FLe}from"@uniformdev/canvas";import{produce as BLe}from"immer";import{v4 as zLe}from"uuid";function rE(t,e,n,r=zLe()){if(!t._pattern)throw new Error("Not a pattern");let o={};return FLe(t,({node:i,ancestorsAndSelf:s,actions:a})=>{let l=i._id,c=e[l];if(s.length===1)i._id=r;else{let d=s[0];d.type!=="slot"||d.parentSlot!==Kie?(i._id=Pie(l),i._id=eE(r,i._id)):(a.replace({...o[l],_id:o[l]._id}),a.stopProcessingDescendants())}if(c){let d=BLe(c,f=>{f.slots&&Object.entries(f.slots).forEach(([p,m])=>{if(p!==Kie)throw new Error("Only slot section items are supported for duplication");m.forEach((g,h)=>{if(!g._id)return;let v=oE(g,e,n);o[g._id]=v,m[h]=v})})});n?.(i._id,d,l)}}),r}function oE(t,e,n){return VLe(t,r=>{jLe(r,({type:o,node:i,actions:{stopProcessingDescendants:s}})=>{o==="component"&&i._pattern?(rE(i,e,n),s()):i._id=ULe()})})}import{produce as HLe}from"immer";import{v4 as KLe}from"uuid";function Wie(t,e=KLe()){return HLe(t,n=>(n._pattern?rE(n,n._overrides??{},(r,o,i)=>{delete n._overrides[i],n._overrides[r]=o},e):n._id=e,n))}import{bindExpressionPrefix as Gie}from"@uniformdev/canvas";var WLe=new Set(["t","a","p","c"]),GLe=new Set(["w","e","i"]);function Yie(t){if(!t.startsWith(Gie))return;let[n,r,...o]=t.substring(Gie.length).split(":");if(n==="jptr"){if(!r)throw new Error(`Missing JSON pointer in dynamic token binding '${t}'`);let i="t",s="w",a;for(let l of o){let[c,u]=l.split("=");if(c==="fa"){if(!WLe.has(u))throw new Error(`Invalid failure action '${u}' in dynamic token binding '${t}'`);i=u}else if(c==="fl"){if(!GLe.has(u))throw new Error(`Invalid failure log level '${u}' in dynamic token binding '${t}'`);s=u}else if(c==="fd")a=ZLe(u);else throw new Error(`Unsupported property '${l}' in dynamic token binding '${t}'`)}return{pointer:Zie(YLe(r)),syntax:n,failureAction:i,failureLogLevel:s,failureDefault:i==="t"?a:void 0}}throw new Error(`Unsupported dynamic token binding syntax '${n}'`)}function YLe(t){return t.replace(/\$\[([^}]+)\]/g,"${$1}")}function Zie(t){let e=t.split("\\");return e.map((n,r)=>{if(n==="")return r>0&&e[r-1]===""?"":"\\";let o=n[0],i=n.substring(1);return o===";"&&(o=":"),i?o+i:o}).join("")}function ZLe(t){return Zie(t.replace("\\+","="))}function qie(t){if(!t?.pointer)return;let e=t.pointer.indexOf("/",1);return e<0?{dataResource:t.pointer.substring(1)}:{dataResource:t.pointer.substring(1,e),dataExpression:t.pointer.substring(e)}}function iE({locale:t,conditionIndex:e,property:n}){if(t===void 0)if(e<0){if(delete n.value,!n.conditions?.length)return!1}else n.conditions?.splice(e,1);else e<0?delete n.locales?.[t]:n.localesConditions?.[t]?.splice(e,1);if(n.localesConditions){for(let[r,o]of Object.entries(n.localesConditions))if(o.length===0){delete n.localesConditions[r];break}Object.keys(n.localesConditions).length===0&&delete n.localesConditions}return n.locales&&Object.keys(n.locales).length===0&&delete n.locales,n.conditions&&n.conditions.length===0&&delete n.conditions,!!(n.value!==void 0||n.locales||n.conditions||n.localesConditions)}function rI({locale:t,conditionIndex:e,conditionDefinition:n,property:r,newPropertyValue:o}){t===void 0?e<0?r.value=o:(r.conditions??=[],Jie(r.conditions,e,n,o)):e<0?(r.locales??={},r.locales[t]=o):(r.localesConditions??={},r.localesConditions[t]??=[],Jie(r.localesConditions[t],e,n,o))}function Jie(t,e,n,r){if(e<0)throw new Error("Condition index must be greater than or equal to 0");let o=t[e];t[e]={when:n??o?.when??{clauses:[]},value:r===void 0?null:r,id:o?.id??qLe(t)}}function qLe(t){let e=new Set(t.map(r=>r.id)),n=0;for(;e.has(n);)n++;return n}function Xie(t){let e=!1,n={};return"_pattern"in t&&t._patternDataResources&&Object.entries(t._patternDataResources).forEach(([r,o])=>{e=!0,n[r]={...o,source:"patternDataResource"}}),t._dataResources&&Object.entries(t._dataResources).forEach(([r,o])=>{n[r]?n[r].isPatternParameter&&(e=!0,n[r]={...o,source:"dataResource"}):(e=!0,n[r]={...o,source:"dataResource"})}),e?n:void 0}import{CANVAS_DRAFT_STATE as JLe,convertEntryToPutEntry as rEt,getPropertiesValue as sEt}from"@uniformdev/canvas";function Qie(t){let{fields:e,entryName:n,type:r="contentType",thumbnailField:o,...i}=t;return{...i,titleParameter:n,thumbnailParameter:o,parameters:e,canBeComposition:r==="block",permissions:t.permissions,useTeamPermissions:t.useTeamPermissions??!0,workflowId:t.workflowId}}function ese(t){return{id:t.id,name:t.name,entryName:t.titleParameter,thumbnailField:t.thumbnailParameter,fields:t.parameters,icon:t.icon,description:t.description,slugSettings:t.slugSettings,type:t.canBeComposition?"block":"contentType",created:t.created,updated:t.updated,permissions:t.permissions,useTeamPermissions:t.useTeamPermissions,workflowId:t.workflowId||void 0}}function Rb(t){let{entry:{fields:e,...n},...r}=t;return{created:"",modified:"",composition:{_id:"",...n,_name:t.entry._name??"Untitled",parameters:e,_overridability:t.entry._overridability,_overrides:t.entry._overrides,_pattern:t.entry._pattern,_patternError:t.entry._patternError},pattern:!!t.pattern,previewImageUrl:t.entry._thumbnail,...r}}function tse(t,e,n,r,o,i,s){let a=s??e.projectId;if(!a)throw new Error("projectId is required in currentEntry or explicitly");return{created:e.created??"",modified:e.modified??"",projectId:a,state:r??e.state??JLe,releaseId:o??e.releaseId,workflowId:n?.workflowId??e.workflowId,workflowStageId:n?.workflowStageId??e.workflowStageId,editionId:i,editionName:n?.editionName??e.editionName,editionPriority:n?.editionPriority??e.editionPriority,pattern:e.pattern,entry:{type:t.type,_id:t._id,_name:t._name,_slug:t._slug??"",fields:t.parameters,_thumbnail:n?.previewImageUrl??void 0,_dataResources:t._dataResources,_pattern:t._pattern,_patternError:t._patternError,_overridability:t._overridability,_overrides:t._overrides,_locales:t._locales,_author:t._author,_authorSubject:t._authorSubject,_creator:t._creator,_creatorSubject:t._creatorSubject,_patternDataResources:t._patternDataResources}}}function oI(t,e){let{parameters:n,...r}=t;return{...r,_id:e??r._id??"unknown",fields:n}}function iI(t){let{fields:e,...n}=t;return{...n,parameters:e}}function sI(t){let e=Yie(t);if(e)switch(e.syntax){case"jptr":return qie(e);default:throw new Error(`Unsupported dynamic token binding syntax '${e.syntax}'`)}}import{CANVAS_VIZ_LOCALE_RULE as XLe}from"@uniformdev/canvas";import{produce as QLe}from"immer";function nse(t,e,n){let r=QLe(t.criteria,o=>rse(o,e,n));return r&&{...t,criteria:r}}function rse(t,e,n){if(!t)return t;let r=!1;for(let o of t.clauses)if("clauses"in o){let i=rse(o,e,n);if(i===null){if(t.op!=="|")return null;t.clauses.splice(t.clauses.indexOf(o),1),r=!0}else i!==void 0&&(t.clauses[t.clauses.indexOf(o)]=i,r=!0)}else if(o.rule===XLe){let i=Array.isArray(o.value)?o.value:[o.value],s=i.includes(e),a=i.includes(n);if(!s&&!a||s&&a)continue;if(i.length===1&&a&&!s)return null;s&&!a&&(o.value=i.concat(n),r=!0)}return r?t:void 0}var ose=I(QO(),1);function aI(t,e){try{return(0,ose.get)(t,e)}catch{return}}function lI(t,e,n=0){let r=t.slice(n*4,n*4+4);if(!r)throw new Error("Failed to generate a default variation name");return`${e.startsWith("$")?e.slice(1):e}-${r}`}import{CANVAS_VIZ_LOCALE_RULE as eAe}from"@uniformdev/canvas";import{produce as tAe}from"immer";function ise(t,e){let n=tAe(t.criteria,r=>sse(r,e));return n&&{...t,criteria:n}}function sse(t,e){if(!t)return t;for(let n=t.clauses.length-1;n>=0;n--){let r=t.clauses[n];if("clauses"in r){let o=sse(r,e);if(o)t.clauses[n]=o;else if(t.clauses.splice(n,1),o===null&&t.op!=="|")return null}else if(r.rule===eAe){let o=Array.isArray(r.value)?r.value:[r.value],i=o.indexOf(e);if(i!==-1)if(Array.isArray(r.value)&&r.value.length>1)o.splice(i,1);else if(r.op.startsWith("!"))t.clauses.splice(n,1);else return null}}if(t.clauses.length!==0)return t}function ase(t,e){let n=N0();if(process.env.NODE_ENV==="development"&&!e){let r=new Error().stack?.split(`
|
|
5872
|
+
`);return React.createElement(z5,{title:React.createElement(DO,{gap:"sm"},h.map((v,y)=>React.createElement("div",{key:y},v)))},React.createElement("span",null,m))}return m}function FDe({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--error)"}},t)}function BDe({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--primary-action-default)"}},t)}function zDe({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--alert)"}},t)}import{createVariableReference as vSt}from"@uniformdev/canvas";await ft();var Mb=I(V()),jDe=I(Bs());var TSt=xt("uniform:open-insert-variable"),Cie=xt("uniform:edit-variable"),_St=xt("uniform:disconnect-variable"),$St=xt("uniform:insert-variable");var d0=class t extends yu{constructor(n,r,o){super(o);this.reference=n;this.__variableState=r}__variableState;static getType(){return"variable"}static clone(n){return new t(n.reference,{...n.__variableState},n.__key)}static importJSON(n){return Sie(n.reference,{displayName:JO(n.reference),referenceIsValid:!0,isFresh:!1,hasClickEvent:void 0,tooltip:void 0,isLoading:!1})}getState(){return this.getLatest().__variableState}setState(n){this.getWritable().__variableState=n}exportJSON(){return{reference:this.reference,type:t.getType(),version:1}}getTextContent(){return VDe(this.reference)}createDOM(){return document.createElement("span")}updateDOM(){return!1}static importDOM(){return{binding:()=>({conversion:UDe,priority:0})}}decorate(){return React.createElement(KDe,{state:this.__variableState,reference:this.reference,nodeKey:this.__key})}};function UDe(t){let n=t.textContent.replace(vie,"").replace(yie,"");return{node:Sie(n,{displayName:JO(n),hasClickEvent:!0,referenceIsValid:!0,tooltip:void 0,isFresh:!0,isLoading:!1})}}function Sie(t,e){return new d0(t,e)}function HDe(t){return t instanceof d0}function KDe({state:t,reference:e,nodeKey:n}){let[r]=Ig(),[o,i,s]=bG(n),a=!r.isEditable(),l=(0,X5.useCallback)(c=>{if(o&&Je(H())){c.preventDefault();let u=it(n);HDe(u)&&u.remove()}return!1},[o,n]);return(0,X5.useEffect)(()=>st(r.registerCommand(ya,l,Oe),r.registerCommand(va,l,Oe),r.registerCommand(oi,c=>{let u=H();if(Je(u)){let d=u.getNodes();if(d.length>0)return c.preventDefault(),d[0].selectPrevious(),!0}if(!U(u))return!1;if(Pl(u,!0)){let d=c.shiftKey;return c.preventDefault(),Rl(u,d,!0),!0}return!1},pe),r.registerCommand(ha,c=>{let u=H();if(Je(u)&&!WDe(c.target)){let f=u.getNodes();if(f.length>0)return c.preventDefault(),f[0].selectNext(0,0),!0}if(!U(u))return!1;let d=c.shiftKey;return Pl(u,!1)?(c.preventDefault(),Rl(u,d,!1),!0):!1},pe)),[s,r,o,n,l,i]),React.createElement(xie,{...t,reference:e,displayName:t.isLoading?React.createElement(joe,{size:"sm"}):t.displayName,selected:o,disabled:a,clickToEdit:t.hasClickEvent,onClick:t.hasClickEvent?()=>{i(!o),r.dispatchCommand(Cie,{reference:e,sourceKey:n})}:()=>i(!o)})}function WDe(t){let e=dt(t);return Zn(e)}await ft();await ft();var Ob=class t extends yu{__asset;__assetQuery;__upload;__error;getAsset(){return this.getLatest().__asset}setAsset(e){let n=this.getWritable();n.__asset=e}getAssetQuery(){return this.getLatest().__assetQuery}setAssetQuery(e){let n=this.getWritable();n.__assetQuery=e}getUpload(){return this.getLatest().__upload}setUpload(e){let n=this.getWritable();n.__upload=e}getError(){return this.getLatest().__error}setError(e){let n=this.getWritable();n.__error=e}static getType(){return"asset"}constructor(e,n,r,o,i){super(i),this.__asset=e,this.__upload=n,this.__error=o,this.__assetQuery=r}static clone(e){return new t(e.__asset,e.__upload,e.__assetQuery,e.__error,e.__key)}exportJSON(){let e={type:"asset",version:1};if(this.__asset&&(e.__asset=this.__asset),this.__assetQuery&&(e.__assetQuery=this.__assetQuery),this.__upload&&"fileUrl"in this.__upload){let{fileUrl:n,suggestedAltText:r,suggestedCaption:o}=this.__upload;e.__upload={fileUrl:n,suggestedAltText:r,suggestedCaption:o}}return this.__error&&(e.__error=this.__error),e}static importJSON(e){return XO({asset:e.__asset,assetQuery:e.__assetQuery,upload:e.__upload,error:e.__error})}static importDOM(){return{img:()=>({conversion:e=>GDe(e,XO),priority:0}),figure:()=>({conversion:e=>YDe(e,XO),priority:0})}}createDOM(e){let n=document.createElement("span"),o=e.theme.image;return o!==void 0&&(n.className=o),n}updateDOM(){return!1}isInline(){return!1}};function XO({asset:t,upload:e,assetQuery:n,error:r}){return Dt(new Ob(t,e,n,r))}function wie(t){return t.parentElement!=null&&t.parentElement.tagName==="LI"&&t.previousSibling===null&&t.getAttribute("aria-roledescription")==="checkbox"}function GDe(t,e){let n=t;if(n.src.startsWith("file:///")||wie(n))return null;let{alt:r,src:o}=n;return{node:Eie({altText:r,src:o,createAssetNode:e})}}function YDe(t,e){let n=t,r=n.querySelector("img"),o=n.querySelector("figcaption");if(!r||r.src.startsWith("file:///")||wie(r))return null;let{alt:i,src:s}=r;return s.startsWith("uniform://")?{node:e({assetQuery:{id:r.src.split("uniform://")[1],suggestedAltText:i,suggestedCaption:o?.textContent??void 0}})}:{node:Eie({altText:i,src:s,caption:o?.textContent??void 0,createAssetNode:e})}}function Eie({altText:t,src:e,caption:n,createAssetNode:r}){return r({asset:void 0,upload:{fileUrl:e,suggestedAltText:t,suggestedCaption:n},assetQuery:void 0})}var ZDe=t=>new DOMParser().parseFromString(t,"text/html");function Tie(t,e=ZDe){let n=eU({nodes:[Na,$a,GO,Sg,wg,Vm,WW,KW,GW,Vl,Ob,d0]}),r=e(t);return n.update(()=>{C7("skip-dom-selection");let o=ng(n,r);Nt().select(),As(o)},{discrete:!0}),n.getEditorState().toJSON()}function _ie({twee:t,nodeId:e,propertyId:n,propertyType:r,locale:o,propertyEdit:i,conditionIndex:s=-1,definitionIndex:a,domParser:l}){let c=t.getNodeById(e);if(!c)throw new Error(`Node with ID ${e} not found`);if(i.action==="clearValue")t.updateNodeProperty({nodeId:e,property:n,value:null,source:"ai",locale:o,conditionIndex:-1});else if(i.action==="resetOverride")t.resetPatternPropertyOverride(e,n,o);else if(i.action==="setValue"){if(r==="contentReference"){oLe({twee:t,nodeId:e,targetNode:c,propertyId:n,propertyType:r,propertyEdit:i,locale:o,conditionIndex:s,definitionIndex:a});return}let u=rLe({twee:t,targetNode:c,propertyId:n,propertyType:r,propertyEdit:i,domParser:l}),d=t.getNodeProperty(e,n);if(!o&&d?.locales)throw new Error(`The ${n} property is localized in ${Object.keys(d.locales).join(", ")}, but no locale was provided when setting its value. Please provide an explicit locale.`);if(n===XDe){let f=t.getParentInfo(e);if(f?.parentId){let p=t.getNodeProperty(f.parentId,JDe);if(p?.value!==Ok)throw new Error(`Cannot edit personalization criteria when the parent personalization component is not using the Strongest Variation Match selection method. Current selection method: ${p?.value||"Top-down criteria matching"}.`)}}t.updateNodeProperty({nodeId:e,property:n,value:()=>u,source:"ai",locale:o,conditionIndex:s,type:r})}}var rLe=({twee:t,targetNode:e,propertyId:n,propertyType:r,propertyEdit:o,domParser:i})=>{if(r==="richText")return Tie(o.newValue??"",i);if(r==="number")return Number(o.newValue);if(n===qDe){if(nLe(e.value.type))throw new Error("Enrichment tags are not allowed in system components.");if(t.getParentInfo(e.nodeId)?.parentId===QDe)throw new Error("Enrichment tags are not allowed in personalization variants.")}return o.treatNewValueAsJson?JSON.parse(o.newValue):o.newValue};function oLe({twee:t,nodeId:e,targetNode:n,propertyId:r,propertyType:o,propertyEdit:i,locale:s,conditionIndex:a,definitionIndex:l}){let c=Hp(n.nodeId,r,s,a),u;try{u=i.treatNewValueAsJson?JSON.parse(i.newValue):i.newValue}catch(y){throw new Error(`Invalid reference field data: ${y instanceof Error?y.message:"Unknown error"}`)}if(!u||typeof u!="object"||u.type!==cl)throw new Error("Invalid reference field definition received from AI");let d=u.variables?.entryIds;if(!d||typeof d!="string"||d.length===0){t.updateNode({nodeId:n.nodeId,updateDataResources:[{type:"remove",name:c}]}),t.updateNodeProperty({nodeId:e,property:r,value:null,source:"ai",locale:s,conditionIndex:a,type:o});return}let m=l[n.value.type]?.parameters?.find(({id:y})=>y===r)?.typeConfig?.isMulti??!1,g=Nk(d,{targetLocale:s,enabledLocales:t.getNodeById(t.rootNodeId)?.value._locales??[]});t.updateNode({nodeId:n.nodeId,updateDataResources:[{type:"set",name:c,value:g}]});let h=`/${c}/entries${m?"":"/0"}`,v=tLe(eLe({syntax:"jptr",pointer:h}));t.updateNodeProperty({nodeId:e,property:r,value:()=>v,source:"ai",locale:s,conditionIndex:a,type:o})}import{validate as iLe}from"uuid";var $ie=t=>iLe(t)?t:btoa(t);function f0(t,e,n="Component instance"){let r=t.getNodeById(e);if(r)return r;let o=[];if(t.visitNodeAndDescendants(t.rootNodeId,i=>{i.nodeId!==e&&i.nodeId.includes(e)&&o.push(i.nodeId)}),o.length>0){let i=o.map(s=>`"${$ie(s)}"`).join(", ");throw new Error(`${n} with ID ${e} not found. You might have meant one of these IDs that does exist: ${i}. Component IDs should be used exactly as provided in the _id field.`)}throw new Error(`${n} with ID ${e} not found`)}async function Q5({twee:t,slotUpdates:e,propertyUpdates:n,dataResourceUpdates:r,localeUpdates:o,nameUpdate:i,slugUpdate:s,descriptionUpdate:a,currentEditorLocale:l,referenceData:c,dataSourceVariant:u,onStatusUpdate:d,isEditingPattern:f,domParser:p}){let m=[],g=(i?1:0)+(s?1:0)+(a?1:0)+(e.createComponentInstances?.length??0)+(e.moveComponentInstances?.length??0)+(e.duplicateComponentInstances?.length??0)+(e.deleteComponentInstances?.length??0)+(o?.enableLocales?.length??0)+(o?.disableLocales?.length??0)+n.length,h=0,v=C=>{m.push(C),h++,d?.({completed:h,total:g})};i&&(t.updateRootNode({update:{_name:i}}),v({summary:"Updated name",success:!0})),s&&(t.updateRootNode({update:{_slug:s}}),v({summary:"Updated slug",success:!0})),a&&(t.updateRootMetadata({description:a}),v({summary:"Updated description",success:!0}));let y=await c.fetchDefinitions();await cLe({slotUpdates:e,twee:t,definitions:y,referenceData:c,addResult:v,isEditingPattern:f});let b=m.some(C=>!C.success);if(b?e.moveComponentInstances?.forEach(C=>{m.push({summary:`Skipped moving component ${C.componentId} because previous actions failed`,success:!1})}):await uLe({slotUpdates:e,twee:t,definitions:y,addResult:v,isEditingPattern:f}),b=m.some(C=>!C.success),e.duplicateComponentInstances)for(let C of e.duplicateComponentInstances)if(b)v({summary:`Skipped duplicating component ${C} because previous actions failed`,success:!1});else{let w=await t.duplicateNode(C,c.resolvePatternData);v({summary:`Duplicated component ${C}. The new duplicate has ID ${w} and is placed immediately after the original component in the same slot.`,success:!0})}return b=m.some(C=>!C.success),e.deleteComponentInstances?.forEach(C=>{b?v({summary:`Skipped deleting component ${C} because previous actions failed`,success:!1}):(t.deleteNode(C,!1),v({summary:`Deleted component ${C}`,success:!0}))}),b=m.some(C=>!C.success),o?.enableLocales?.forEach(C=>{b?v({summary:`Skipped enabling locale ${C} because previous actions failed`,success:!1}):(t.enableLocale(C),v({summary:`Enabled locale ${C}`,success:!0}))}),b=m.some(C=>!C.success),o?.disableLocales?.forEach(C=>{b?v({summary:`Skipped disabling locale ${C} because previous actions failed`,success:!1}):(t.disableLocale(C),v({summary:`Disabled locale ${C}`,success:!0}))}),b=m.some(C=>!C.success),b?n.length>0&&v({summary:`Skipped ${n.length} property updates because previous actions failed`,success:!1}):(await dLe({propertyUpdates:n,twee:t,currentEditorLocale:l,referenceData:c,definitions:y,addResult:v})).forEach(w=>{if(!w.result.success)return;let E="componentId"in w.update?w.update.componentId:t.rootNodeId,T=eT({twee:t,nodeId:E,currentEditorLocale:w.currentLocale,definition:w.propertyDefinition}),$=(t.getNodeById(t.rootNodeId)?.value)._locales??[];if(T&&!$.includes(T)){v({summary:`The ${T} locale is not enabled on this entity. Please enable it before setting values in this locale.`,success:!1});return}if(w.result.action!=="nothing")try{_ie({twee:t,nodeId:E,propertyId:w.propertyDefinition.id,propertyType:w.propertyDefinition.type,locale:T,propertyEdit:w.result,definitionIndex:y,domParser:p}),v({summary:`Updated value of ${w.propertyDefinition.id} on ${E}${T?` in ${T}`:""}`,success:!0})}catch(_){v({summary:`Failed to update value of ${w.propertyDefinition.id} on ${E}${T?` in ${T}`:""}: ${_ instanceof Error?_.message:"Unknown error"}`,success:!1})}if("overridable"in w.update&&w.update.overridable!==void 0)if(w.propertyDefinition.type===sLe)v({summary:`Cannot set overridability for block property '${w.propertyDefinition.id}' - blocks do not support overrides`,success:!1});else{let _=w.update.overridable;t.updateNode({nodeId:E,updateComponent:N=>{N._overridability??={},N._overridability.parameters??={},N._overridability.parameters[w.propertyDefinition.id]=_}}),v({summary:`Updated overridability for ${E}`,success:!0})}}),b=m.some(C=>!C.success),b?r.length>0&&m.push({summary:`Skipped ${r.length} data resource updates because previous actions failed`,success:!1}):(await fLe({dataResourceUpdates:r,twee:t,referenceData:c,results:m,dataSourceVariant:u})).forEach(w=>{if(!w.result.success)return;let E=w.update.componentId;if(w.result.action==="resetOverride")t.updateNode({nodeId:E,updateDataResources:[{type:"reset",name:w.update.dataResourceName}]}),m.push({summary:`Reset data resource to pattern default for ${w.update.dataResourceName} on ${E}`,success:!0});else if(w.result.action==="setValue")try{Dk({twee:t,nodeId:E,dataResourceName:w.update.dataResourceName,dataType:w.dataType,dataResourceEdit:w.result}),m.push({summary:`Updated data resource ${w.update.dataResourceName} on ${E}`,success:!0})}catch(T){m.push({summary:`Failed to update data resource ${w.update.dataResourceName} on ${E}: ${T instanceof Error?T.message:"Unknown error"}`,success:!1})}}),{success:m.every(C=>C.success),actionsTaken:m}}async function cLe({slotUpdates:t,twee:e,definitions:n,referenceData:r,addResult:o,isEditingPattern:i}){(await Promise.allSettled(t.createComponentInstances?.map(async a=>{let l=f0(e,a.parentComponentId,"Parent component");if(!n[l.value.type])throw new Error(`Definition for parent component type ${l.value.type} not found`);let u=QE({twee:e,parentNodeId:a.parentComponentId,slotName:a.slotName,componentDefinitionsIndex:n});if(!u)throw new Error(`Can't find allowed components for slot ${a.slotName}`);if(a.instanceType==="component"){if(!a.componentType)throw new Error("componentType is required when inserting a component instance");if(!Ox({type:a.componentType},u,i))throw new Error(`Component type ${a.componentType} is not allowed in slot ${a.slotName}`);e.insertNode({node:{type:a.componentType},overrideNodeId:a.newComponentInstanceUuid,parentNodeId:a.parentComponentId,parentSlot:a.slotName,targetIndexInSlot:a.slotIndex}),o({summary:`Inserted component ${a.componentType} in slot ${a.slotName} ${a.slotIndex!==void 0?`at index ${a.slotIndex}`:""}`,success:!0})}else{if(!a.componentPatternId)throw new Error("componentPatternId is required when inserting a component pattern instance");let d=await r.resolvePatternData(a.componentPatternId);if(!d)throw new Error(`Pattern definition with ID ${a.componentPatternId} not found`);if(!Ox({type:d.type,_pattern:a.componentPatternId},u,!1))throw new Error(`Pattern ${a.componentPatternId} is not allowed in slot ${a.slotName}`);e.insertPattern({pattern:d,patternInstanceId:a.newComponentInstanceUuid,parentNodeId:a.parentComponentId,parentSlot:a.slotName,targetIndexInSlot:a.slotIndex}),o({summary:`Inserted pattern ${d._name} in slot ${a.slotName} ${a.slotIndex!==void 0?`at index ${a.slotIndex}`:""}`,success:!0})}})??[])).forEach((a,l)=>{if(a.status==="rejected"){let c=t.createComponentInstances?.[l];console.error("Error inserting component",a.reason),o({summary:`Failed to insert component ${c?.newComponentInstanceUuid}: ${"message"in a.reason?a.reason.message:"Unknown error"}`,success:!1})}})}async function uLe({slotUpdates:t,twee:e,definitions:n,addResult:r,isEditingPattern:o}){(await Promise.allSettled(t.moveComponentInstances?.map(async s=>{let a=f0(e,s.componentId,"Component to move"),l=f0(e,s.newParentComponentId,"Destination component");if(!n[l.value.type])throw new Error(`Definition for destination component type ${l.value.type} not found`);let u=QE({twee:e,parentNodeId:s.newParentComponentId,slotName:s.newSlotName,componentDefinitionsIndex:n});if(!u)throw new Error(`Can't find allowed components for slot ${s.newSlotName}`);if(!Ox({type:a.value.type,_pattern:a.value._pattern},u,o))throw new Error(a.value._pattern?`Pattern ${a.value._pattern} is not allowed in slot ${s.newSlotName}`:`Component ${a.value.type} is not allowed in slot ${s.newSlotName}`);e.moveNode({movedNodeId:s.componentId,parentNodeId:s.newParentComponentId,parentSlot:s.newSlotName,targetIndexInSlot:s.newSlotIndex}),r({summary:`Moved component ${s.componentId} to ${s.newParentComponentId} in slot ${s.newSlotName} at index ${s.newSlotIndex}`,success:!0})})??[])).forEach((s,a)=>{if(s.status==="rejected"){let l=t.moveComponentInstances?.[a];console.error("Error moving component",s.reason),r({summary:`Failed to move component ${l?.componentId}: ${"message"in s.reason?s.reason.message:"Unknown error"}`,success:!1})}})}async function dLe({propertyUpdates:t,twee:e,currentEditorLocale:n,referenceData:r,definitions:o,addResult:i}){if(t.length===0)return[];let[s,a]=await Promise.all([r.fetchProjectGuidance(),r.getToolClient()]),l=await Promise.allSettled(t.map(async c=>(async()=>{let u="componentId"in c?c.componentId:e.rootNodeId,d=f0(e,u),f=o[d.value.type];if(!f)throw new Error(`Definition with ID ${d.value.type} not found`);let p="fieldId"in c?c.fieldId:c.parameterId,m=f.parameters?.find(w=>w.id===p),g=c.fromLocale??c.locale??n,h=c.locale??n,v=m??{id:p,type:"unknown"};if(c.editInstructions===void 0)return{result:{success:!0,newValue:"",treatNewValueAsJson:!1,action:"nothing"},update:c,propertyDefinition:v};if(c.editInstructions==="")return{result:{success:!0,newValue:"",treatNewValueAsJson:!1,action:"clearValue"},update:c,propertyDefinition:v};if(!m)throw new Error(`Property with ID ${p} not found`);if(m.type==="contentReference"){let w=eT({definition:m,twee:e,nodeId:u,currentEditorLocale:n}),E=Hp(u,p,w,-1),T=d.value._dataResources?.[E],$=await a.invoke("createDataResourceEdit",{edit:c.editInstructions,dataType:cl,currentValue:T?.variables||{}});if(!$.success)throw new Error($.summary??"Failed to edit reference field data resource");return{result:{success:!0,newValue:JSON.stringify({type:cl,variables:$.newValue}),treatNewValueAsJson:!0,action:"setValue"},update:c,propertyDefinition:m,currentLocale:w}}let y=aLe({property:e.getNodeProperty(u,p),locale:g,conditionIndex:-1}),b,S=e.getNodeProperty(u,lLe);S?.value?.dim&&(b=await r.getDimensionGuidance(S.value.dim));let C=await a.invoke("createPropertyEdit",{edit:c.editInstructions,propertyDefinition:{id:p,name:m.name,type:m.type,guidance:m.guidance,typeConfig:m.typeConfig},outputLocale:h,documentContext:void 0,currentValue:y,projectGuidance:s,componentGuidance:f.description,audienceGuidance:b});if(!C.success)throw new Error(C.summary??"Failed to edit property");return{result:C,update:c,propertyDefinition:m,currentLocale:h}})()));return l.forEach((c,u)=>{if(c.status==="rejected"){let d=t[u],f="fieldId"in d?d.fieldId:d.parameterId;i({summary:`Failed to edit property ${f}: ${"message"in c.reason?c.reason.message:"Unknown error"}`,success:!1})}}),l.filter(c=>c.status==="fulfilled").map(c=>c.value)}async function fLe({dataResourceUpdates:t,twee:e,referenceData:n,results:r,dataSourceVariant:o}){if(t.length===0)return[];let i=await n.getToolClient(),s=await Promise.allSettled(t.map(async a=>(async()=>{let l=a.componentId,c=f0(e,l);if(a.editInstructions===void 0)return{result:{success:!0,newValue:{},action:"nothing"},update:a,dataType:"unknown"};if(a.editInstructions==="")return{result:{success:!0,newValue:{},action:"setValue"},update:a,dataType:"unknown"};let u=c.value._dataResources?.[a.dataResourceName],d=c.value._patternDataResources?.[a.dataResourceName];if(!d)throw new Error(`Pattern data resource ${a.dataResourceName} does not exist on the ${c.value._pattern} pattern`);let f=u?.variables??d.variables,p=d.type,m=await i.invoke("createDataResourceEdit",{edit:a.editInstructions,dataType:p,currentValue:f,dataSourceVariant:o});if(!m.success)throw new Error(m.summary??"Failed to edit data resource");return{result:m,update:a,dataType:p}})()));return s.forEach((a,l)=>{if(a.status==="rejected"){let c=t[l];r.push({summary:`Failed to edit data resource ${c.dataResourceName}: ${"message"in a.reason?a.reason.message:"Unknown error"}`,success:!1})}}),s.filter(a=>a.status==="fulfilled").map(a=>a.value)}import{CANVAS_BLOCK_PARAM_TYPE as Ys,CANVAS_ENRICHMENT_TAG_PARAM as lse,CANVAS_LOCALE_TAG_PARAM as Pb,CANVAS_LOCALIZATION_SLOT as cI,CANVAS_LOCALIZATION_TYPE as nAe,CANVAS_PERSONALIZATION_PARAM as Fb,CANVAS_PERSONALIZE_SLOT as cse,CANVAS_SLOT_SECTION_SLOT as rAe,CANVAS_SLOT_SECTION_TYPE as sE,CANVAS_TEST_SLOT as use,CANVAS_TEST_VARIANT_PARAM as dse,CANVAS_VIZ_CONTROL_PARAM as _d,convertToBindExpression as fse,createVariableReference as pse,getEffectivePropertyValue as mse,getPropertiesValue as oAe,parseVariableExpression as gse,walkNodeTree as Ec,walkPropertyValues as iAe}from"@uniformdev/canvas";var Ip=I(QO(),1),vse=I(D0(),1);import{produce as nr}from"immer";import{v4 as $d}from"uuid";import{v4 as hLe}from"uuid";async function Aie({projectMapClient:t,compositionId:e,compositionName:n,nodePathSegment:r,parentNodeId:o,localePathSegments:i,allowedQueryStrings:s}){let l=(await t.getProjectMapDefinition({}))?.projectMaps[0]?.id;if(!l)throw new Error("No project map found for this project");let c=r||i?.[0]?.pathSegment,u,d=0;if(o){let h=(await t.getNodes({id:o})).nodes?.[0];if(!h)throw new Error("Parent node not found");let v=h.path;d=((await t.getNodes({path:v,depth:1,expanded:!1})).nodes?.filter(C=>C.path!==v)??[]).reduce((C,w)=>Math.max(C,w.order??0),-1)+100,u=`${v==="/"?"":v}/${c}`}else u=`/${c}`;let f=i?.reduce((g,{locale:h,pathSegment:v})=>(g[h]={pathSegment:v,name:v},g),{}),p=s?.map(({name:g,defaultValue:h})=>({name:g,...h!==void 0&&{value:h}})),m=hLe();return await t.upsertProjectMapNodes({projectMapId:l,nodes:[{node:{id:m,name:n,path:u,type:"composition",compositionId:e,order:d,...f&&{locales:f},...p&&{data:{queryStrings:p}}}}]}),{path:u,nodeId:m}}import{bindVariablesToObject as vLe}from"@uniformdev/canvas";var Ib="Untitled",Mie=60;function Oie({value:t,isNew:e,contentType:n}){let{result:r}=vLe({value:t,handleBinding:()=>"{token}",variables:{}}),o=n.entryName??"",i=(n.fields??[]).find(s=>s.id===o);if(typeof r=="string"){if(i?.type==="image")return r.length>0?`Image: ${bLe(r)}`:`${Ib} image`;if(r.length>0)return i?.type==="date"?CLe(r)?SLe(r):"Invalid date":Mp(r)}else{if(typeof r=="number"||typeof r=="boolean")return r.toString();if(typeof r<"u"&&r!==null){if(i?.type==="link")return yLe(r);if(mk(r))return Mp(qE(r.root));if(i?.type==="datetime"&&r){let s=r;return s.datetime&&Iie(s.datetime)?wLe(s.datetime):"Invalid datetime"}else return Mp(ELe(r).description)}}return e?`New entry: ${n.name}`:Ib}function yLe(t){return t?t.type==="projectMapNode"?t.path.length>0?`Link to ${Mp(t.path)}`:`Link to project map node (${t.nodeId})`:t.path.length>0?`Link to ${Mp(t.path)}`:`${Ib} link`:`${Ib} link`}function bLe(t){try{let{pathname:e,hostname:n}=new URL(t),r=e.split("/").filter(o=>o);return r.length>2?`/${r[0]}/.../${r[r.length-1]} (${Mp(n)})`:`${e} (${Mp(n)})`}catch{return t}}function Mp(t){let e=t.split(" ").filter(i=>i).reverse();if(e.length<1)return Ib;let n="",r=e.pop(),o=()=>n.length+(r?.length??0)+(n.length>0?1:0);for(;r&&o()<Mie;)n+=n.length>0?` ${r}`:r,r=e.pop();return n.length<1?`${t.slice(0,Mie)}...`:e.length>0?`${n}...`:n}var xLe=/^[1-9][0-9]{3}-[0-1][0-9]-[0-3][0-9]$/;function CLe(t){return xLe.test(t)?Iie(t):!1}function Iie(t){let e=new Date(t);return e instanceof Date&&!isNaN(Number(e))}function SLe(t){return new Date(t).toLocaleDateString()}function wLe(t){return new Date(t).toLocaleString()}function ELe(t){let e=eI(t);return e?{description:e,named:!0}:{description:TLe(t).valuePreview,named:!1}}function TLe(t){if(typeof t>"u")return{valueIcon:"close-o",valuePreview:"undefined"};if(t===null)return{valueIcon:"close-o",valuePreview:"null"};if(Array.isArray(t))return{valuePreview:`array with ${t.length} item${t.length!==1?"s":""}`,valueIcon:"list"};if(typeof t=="boolean")return{valuePreview:t.toString(),valueIcon:t?"check-r":"close-r"};if(typeof t=="number"||typeof t=="bigint")return{valuePreview:t.toString(10),valueIcon:"number-input"};if(typeof t=="object"){let e=Object.keys(t);return{valuePreview:`object with ${e.length} ${e.length!==1?"properties":"property"}`,valueIcon:"shape-hexagon"}}return{valuePreview:t,valueIcon:"text-input"}}var _Le=["displayName","name","_name","title","heading","label","parameters","fields","properties","entry","slug","_slug","alt","alt_description","description","results","items","entries","hits","value","id","objectID","identifier"];function eI(t){if(typeof t=="string")return t;if(typeof t=="number")return t.toString(10);if(typeof t=="boolean")return t.toString();if(typeof t!="object"||t===null)return;if(Array.isArray(t)){if(t.length===0)return;let r=eI(t[0]);return r?t.length===1?r:`${r} and ${t.length-1} other${t.length>2?"s":""}`:void 0}let n=t;for(let r of _Le)if(r in n){let o=eI(n[r]);if(o)return o}}import{CANVAS_SLOT_SECTION_SLOT as $Le,walkNodeTree as NLe}from"@uniformdev/canvas";import{v4 as kie}from"uuid";var kb="|";function eE(t,e){if(!t)return e??kie();let n=t.split(kb),r=(e??kie()).split(kb);return n.at(-1)===r[0]&&n.pop(),n.concat(r).join(kb)}function Pie(t){let e=t.indexOf(kb);if(e<0)throw new Error(`Cannot remove pattern instance ID from ${t}`);return t.substring(e+1)}function tE(t,e,n=!1){NLe(t,({node:r,actions:{setDescendantsContext:o},context:i})=>{let s=!n&&!i?.currentParentPatternInstanceId,a="_pattern"in r&&!!r._pattern;if(i?.currentParentPatternInstanceId){let c=eE(i.currentParentPatternInstanceId,r._id);r._id=c}let l=i?.currentParentPatternInstanceId;a&&(l=r._id),"_overrides"in r&&r._overrides&&Rie(r._overrides,l,s),"_patternOverrides"in r&&r._patternOverrides&&Rie(r._patternOverrides,l,s),a&&o({currentParentPatternInstanceId:r._id})},{initialContext:{currentParentPatternInstanceId:e}})}var Rie=(t,e,n)=>{Object.entries(t).forEach(([r,o])=>{let i=n?r:eE(e,r);Object.entries(o.slots??{}).forEach(([s,a])=>{a.forEach(l=>{let{partOfNestedPattern:c}=nE(r??"");tE(l,s===$Le&&!c?void 0:e,!0)})}),i&&(delete t[r],t[i]=o)})};function nE(t){let e=t.split(kb);return e.length===1?{partOfPattern:void 0,partOfNestedPattern:void 0}:e.length===2?{partOfPattern:e[0],partOfNestedPattern:void 0}:{partOfPattern:e[0],partOfNestedPattern:e[e.length-2]}}import{CANVAS_SLOT_SECTION_SLOT as Uie}from"@uniformdev/canvas";import{CANVAS_VIZ_CONTROL_PARAM as OLe}from"@uniformdev/canvas";import{CANVAS_ENRICHMENT_TAG_PARAM as Fie,CANVAS_INTENT_TAG_PARAM as DLe,CANVAS_LOCALE_TAG_PARAM as LLe,CANVAS_PERSONALIZATION_PARAM as Bie,CANVAS_TEST_VARIANT_PARAM as ALe,CANVAS_VIZ_CONTROL_PARAM as zie}from"@uniformdev/canvas";var MLe="$internal_displayName",jie=[{id:MLe,name:"Display Name",type:"text"},{id:DLe,name:"Intent Tag",type:"intentTag"},{id:LLe,name:"Locale Visibility",type:"localeSelect"},{id:Bie,name:"Personalization Criteria",type:Bie},{id:Fie,name:"Enrichment Tags",type:Fie,helpText:"Seeing this component will increase a visitor's score in these enrichments."},{id:ALe,name:"A/B Test",type:"testVariant"},{id:zie,name:"Visibility Control",type:zie}];var ILe=jie.reduce((t,e)=>(e.id===OLe||t.add(e.id),t),new Set);function Op(t,e){return ILe.has(e)?"yes":t?.parameters?.[e]??"no"}function tI(t,e){e&&Object.entries(e).forEach(([n,r])=>{let o=t[n];if(r.parameters||o?.parameters){t[n]??={};let i={...r?.parameters};Object.entries(o?.parameters??{}).forEach(([s,a])=>{let l=i[s];if(!l)i[s]=a;else if(a.locales||a.localesConditions||l.locales||l.localesConditions){let c={...l,...a};(a.locales||l.locales)&&(c.locales={...l.locales,...a.locales}),(a.localesConditions||l.localesConditions)&&(c.localesConditions={...l.localesConditions,...a.localesConditions}),i[s]=c}else i[s]={...l,...a}}),t[n].parameters=i}if((r.dataResources||o?.dataResources)&&(t[n]??={},t[n].dataResources={...r?.dataResources,...o?.dataResources}),r.slots||o?.slots){t[n]??={};let i=Object.entries(o?.slots??{}).reduce((s,[a,l])=>(s[a]&&Array.isArray(s[a])?s[a]=[...l,...s[a]]:s[a]=l,s),r.slots??{});t[n].slots=i}(r.variant!==void 0||o?.variant!==void 0)&&(t[n]=t[n]??{},t[n].variant=o?.variant??r?.variant)})}function Vie({applyOverrideToNode:t}){let e=new Set,n={};return{visitNode(r){e.add(r._id),tI(n,r._overrides),tI(n,r._patternOverrides);let o=n[r._id];o&&(o.parameters&&Object.keys(o.parameters).forEach(i=>{Op(r._overridability,i)==="no"&&(console.log(`[Override] Cleaned override from ${r._id} parameter ${i} because it is not overridable`),delete n[r._id].parameters?.[i])}),o.dataResources&&Object.keys(o.dataResources).forEach(i=>{r._patternDataResources?.[i]?.isPatternParameter||(console.log(`[Override] Cleaned override from ${r._id} data resource ${i} because it is not overridable`),delete n[r._id].dataResources?.[i])}),o.variant!==void 0&&(r._overridability?.variants||delete o.variant),t({node:r,overrides:o}))},overrides:n}}function nI(t){let{beforeApplyParameterOverride:e,beforeApplyDataResourceOverride:n}=t??{};return Vie({applyOverrideToNode({node:r,overrides:o}){if(Object.entries(o.parameters??{}).map(([i,s])=>{r.parameters=r.parameters??{},e?.(r,i,s,r.parameters[i]);let a=r.parameters[i]??={type:s.type};s.locales||s.localesConditions?(a.locales??={},delete a.value,delete a.conditions,new Set([...Object.keys(s.locales??{}),...Object.keys(s.localesConditions??{})]).forEach(u=>{delete a.locales?.[u],delete a.localesConditions?.[u];let d=s.locales?.[u],f=s.localesConditions?.[u];d!=null&&(a.locales??={},a.locales[u]=d),f!=null&&(a.localesConditions??={},a.localesConditions[u]=f)}),a.locales&&Object.keys(a.locales).length===0&&delete a.locales,a.localesConditions&&Object.keys(a.localesConditions).length===0&&delete a.localesConditions):(delete a.locales,delete a.localesConditions,delete a.conditions,delete a.value,s.value!==null&&s.value!==void 0&&(a.value=s.value,a.connectedData=s.connectedData),s.conditions!==null&&s.conditions!==void 0&&(a.conditions=s.conditions)),!a.locales&&!a.localesConditions&&!a.conditions&&a.value===void 0&&delete r.parameters[i]}),Object.entries(o.dataResources??{}).forEach(([i,s])=>{n?.(r,i,s,r._dataResources?.[i]),r._dataResources??={},r._dataResources[i]=s}),o.variant!==void 0&&(r.variant=o.variant),o.slots){r.slots??={};let i=Object.keys(o.slots)[0];r.slots[Uie]??=[],r.slots[Uie]=[...o.slots[i]??[]]}}})}import{CANVAS_SLOT_SECTION_SLOT as kLe,CANVAS_SLOT_SECTION_TYPE as RLe}from"@uniformdev/canvas";var Hie=({preserveOwnSlotSections:t=!1,preserveChildrenSlotSections:e=!1}={})=>n=>{if(n.node.type!==RLe)return;let{partOfPattern:r,partOfNestedPattern:o}=nE(n.node._id??"");!r&&!o&&t||r&&!o&&e||PLe(n)},PLe=({node:t,type:e,actions:n})=>{e!=="entry"&&(n.insertAfter(t.slots?.[kLe]??[]),n.remove())};import{walkNodeTree as jLe}from"@uniformdev/canvas";import{produce as VLe}from"immer";import{v4 as ULe}from"uuid";import{CANVAS_SLOT_SECTION_SLOT as Kie,walkNodeTree as FLe}from"@uniformdev/canvas";import{produce as BLe}from"immer";import{v4 as zLe}from"uuid";function rE(t,e,n,r=zLe()){if(!t._pattern)throw new Error("Not a pattern");let o={};return FLe(t,({node:i,ancestorsAndSelf:s,actions:a})=>{let l=i._id,c=e[l];if(s.length===1)i._id=r;else{let d=s[0];d.type!=="slot"||d.parentSlot!==Kie?(i._id=Pie(l),i._id=eE(r,i._id)):(a.replace({...o[l],_id:o[l]._id}),a.stopProcessingDescendants())}if(c){let d=BLe(c,f=>{f.slots&&Object.entries(f.slots).forEach(([p,m])=>{if(p!==Kie)throw new Error("Only slot section items are supported for duplication");m.forEach((g,h)=>{if(!g._id)return;let v=oE(g,e,n);o[g._id]=v,m[h]=v})})});n?.(i._id,d,l)}}),r}function oE(t,e,n){return VLe(t,r=>{jLe(r,({type:o,node:i,actions:{stopProcessingDescendants:s}})=>{o==="component"&&i._pattern?(rE(i,e,n),s()):i._id=ULe()})})}import{produce as HLe}from"immer";import{v4 as KLe}from"uuid";function Wie(t,e=KLe()){return HLe(t,n=>(n._pattern?rE(n,n._overrides??{},(r,o,i)=>{delete n._overrides[i],n._overrides[r]=o},e):n._id=e,n))}import{bindExpressionPrefix as Gie}from"@uniformdev/canvas";var WLe=new Set(["t","a","p","c"]),GLe=new Set(["w","e","i"]);function Yie(t){if(!t.startsWith(Gie))return;let[n,r,...o]=t.substring(Gie.length).split(":");if(n==="jptr"){if(!r)throw new Error(`Missing JSON pointer in dynamic token binding '${t}'`);let i="t",s="w",a;for(let l of o){let[c,u]=l.split("=");if(c==="fa"){if(!WLe.has(u))throw new Error(`Invalid failure action '${u}' in dynamic token binding '${t}'`);i=u}else if(c==="fl"){if(!GLe.has(u))throw new Error(`Invalid failure log level '${u}' in dynamic token binding '${t}'`);s=u}else if(c==="fd")a=ZLe(u);else throw new Error(`Unsupported property '${l}' in dynamic token binding '${t}'`)}return{pointer:Zie(YLe(r)),syntax:n,failureAction:i,failureLogLevel:s,failureDefault:i==="t"?a:void 0}}throw new Error(`Unsupported dynamic token binding syntax '${n}'`)}function YLe(t){return t.replace(/\$\[([^}]+)\]/g,"${$1}")}function Zie(t){let e=t.split("\\");return e.map((n,r)=>{if(n==="")return r>0&&e[r-1]===""?"":"\\";let o=n[0],i=n.substring(1);return o===";"&&(o=":"),i?o+i:o}).join("")}function ZLe(t){return Zie(t.replace("\\+","="))}function qie(t){if(!t?.pointer)return;let e=t.pointer.indexOf("/",1);return e<0?{dataResource:t.pointer.substring(1)}:{dataResource:t.pointer.substring(1,e),dataExpression:t.pointer.substring(e)}}function iE({locale:t,conditionIndex:e,property:n}){if(t===void 0)if(e<0){if(delete n.value,!n.conditions?.length)return!1}else n.conditions?.splice(e,1);else e<0?delete n.locales?.[t]:n.localesConditions?.[t]?.splice(e,1);if(n.localesConditions){for(let[r,o]of Object.entries(n.localesConditions))if(o.length===0){delete n.localesConditions[r];break}Object.keys(n.localesConditions).length===0&&delete n.localesConditions}return n.locales&&Object.keys(n.locales).length===0&&delete n.locales,n.conditions&&n.conditions.length===0&&delete n.conditions,!!(n.value!==void 0||n.locales||n.conditions||n.localesConditions)}function rI({locale:t,conditionIndex:e,conditionDefinition:n,property:r,newPropertyValue:o}){t===void 0?e<0?r.value=o:(r.conditions??=[],Jie(r.conditions,e,n,o)):e<0?(r.locales??={},r.locales[t]=o):(r.localesConditions??={},r.localesConditions[t]??=[],Jie(r.localesConditions[t],e,n,o))}function Jie(t,e,n,r){if(e<0)throw new Error("Condition index must be greater than or equal to 0");let o=t[e];t[e]={when:n??o?.when??{clauses:[]},value:r===void 0?null:r,id:o?.id??qLe(t)}}function qLe(t){let e=new Set(t.map(r=>r.id)),n=0;for(;e.has(n);)n++;return n}function Xie(t){let e=!1,n={};return"_pattern"in t&&t._patternDataResources&&Object.entries(t._patternDataResources).forEach(([r,o])=>{e=!0,n[r]={...o,source:"patternDataResource"}}),t._dataResources&&Object.entries(t._dataResources).forEach(([r,o])=>{n[r]?n[r].isPatternParameter&&(e=!0,n[r]={...o,source:"dataResource"}):(e=!0,n[r]={...o,source:"dataResource"})}),e?n:void 0}import{CANVAS_DRAFT_STATE as JLe,convertEntryToPutEntry as cEt,getPropertiesValue as fEt}from"@uniformdev/canvas";function Qie(t){let{fields:e,entryName:n,type:r="contentType",thumbnailField:o,...i}=t;return{...i,titleParameter:n,thumbnailParameter:o,parameters:e,canBeComposition:r==="block",permissions:t.permissions,useTeamPermissions:t.useTeamPermissions??!0,workflowId:t.workflowId}}function ese(t){return{id:t.id,name:t.name,entryName:t.titleParameter,thumbnailField:t.thumbnailParameter,fields:t.parameters,icon:t.icon,description:t.description,slugSettings:t.slugSettings,type:t.canBeComposition?"block":"contentType",created:t.created,updated:t.updated,permissions:t.permissions,useTeamPermissions:t.useTeamPermissions,workflowId:t.workflowId||void 0}}function Rb(t){let{entry:{fields:e,...n},...r}=t;return{created:"",modified:"",composition:{_id:"",...n,_name:t.entry._name??"Untitled",parameters:e,_overridability:t.entry._overridability,_overrides:t.entry._overrides,_pattern:t.entry._pattern,_patternError:t.entry._patternError},pattern:!!t.pattern,previewImageUrl:t.entry._thumbnail,...r}}function tse(t,e,n,r,o,i,s){let a=s??e.projectId;if(!a)throw new Error("projectId is required in currentEntry or explicitly");return{created:e.created??"",modified:e.modified??"",projectId:a,state:r??e.state??JLe,releaseId:o??e.releaseId,workflowId:n?.workflowId??e.workflowId,workflowStageId:n?.workflowStageId??e.workflowStageId,editionId:i,editionName:n?.editionName??e.editionName,editionPriority:n?.editionPriority??e.editionPriority,pattern:e.pattern,entry:{type:t.type,_id:t._id,_name:t._name,_slug:t._slug??"",fields:t.parameters,_thumbnail:n?.previewImageUrl??void 0,_dataResources:t._dataResources,_pattern:t._pattern,_patternError:t._patternError,_overridability:t._overridability,_overrides:t._overrides,_locales:t._locales,_author:t._author,_authorSubject:t._authorSubject,_creator:t._creator,_creatorSubject:t._creatorSubject,_patternDataResources:t._patternDataResources}}}function oI(t,e){let{parameters:n,...r}=t;return{...r,_id:e??r._id??"unknown",fields:n}}function iI(t){let{fields:e,_thumbnail:n,...r}=t;return{...r,parameters:e}}function sI(t){let e=Yie(t);if(e)switch(e.syntax){case"jptr":return qie(e);default:throw new Error(`Unsupported dynamic token binding syntax '${e.syntax}'`)}}import{CANVAS_VIZ_LOCALE_RULE as XLe}from"@uniformdev/canvas";import{produce as QLe}from"immer";function nse(t,e,n){let r=QLe(t.criteria,o=>rse(o,e,n));return r&&{...t,criteria:r}}function rse(t,e,n){if(!t)return t;let r=!1;for(let o of t.clauses)if("clauses"in o){let i=rse(o,e,n);if(i===null){if(t.op!=="|")return null;t.clauses.splice(t.clauses.indexOf(o),1),r=!0}else i!==void 0&&(t.clauses[t.clauses.indexOf(o)]=i,r=!0)}else if(o.rule===XLe){let i=Array.isArray(o.value)?o.value:[o.value],s=i.includes(e),a=i.includes(n);if(!s&&!a||s&&a)continue;if(i.length===1&&a&&!s)return null;s&&!a&&(o.value=i.concat(n),r=!0)}return r?t:void 0}var ose=I(QO(),1);function aI(t,e){try{return(0,ose.get)(t,e)}catch{return}}function lI(t,e,n=0){let r=t.slice(n*4,n*4+4);if(!r)throw new Error("Failed to generate a default variation name");return`${e.startsWith("$")?e.slice(1):e}-${r}`}import{CANVAS_VIZ_LOCALE_RULE as eAe}from"@uniformdev/canvas";import{produce as tAe}from"immer";function ise(t,e){let n=tAe(t.criteria,r=>sse(r,e));return n&&{...t,criteria:n}}function sse(t,e){if(!t)return t;for(let n=t.clauses.length-1;n>=0;n--){let r=t.clauses[n];if("clauses"in r){let o=sse(r,e);if(o)t.clauses[n]=o;else if(t.clauses.splice(n,1),o===null&&t.op!=="|")return null}else if(r.rule===eAe){let o=Array.isArray(r.value)?r.value:[r.value],i=o.indexOf(e);if(i!==-1)if(Array.isArray(r.value)&&r.value.length>1)o.splice(i,1);else if(r.op.startsWith("!"))t.clauses.splice(n,1);else return null}}if(t.clauses.length!==0)return t}function ase(t,e){let n=N0();if(process.env.NODE_ENV==="development"&&!e){let r=new Error().stack?.split(`
|
|
5851
5873
|
`).slice(2).join(`
|
|
5852
|
-
`).trimStart();n.on("*",(o,i)=>{console.debug(`\u26A1\uFE0F ${t}:${String(o)}`,{args:i,stack:r,subs:n.all.get(String(o))?.length??0})})}return n}var ps=(0,vse.default)(),sAe=!0,aAe="Twee",il=class t{#e={};rootNodeId;#r={};#o={};#n;#i={};#t=ase(aAe,sAe);#c;#u;#g;#d;#a;#s;constructor(e,n){let{metadata:r,startDirty:o}=n||{};this.#a=r??{},this.#s={_name:e?._name??"",_slug:e?._slug??null},this.#d=!o;let i=nr(e,s=>{this.#v({composition:s,ignoreRootOverrides:!0,preserveChildrenSlotSections:!0}),delete s._author,delete s._authorSubject,delete s._creator,delete s._creatorSubject});this.rootNodeId=i._id??$d(),this.#c=this.rootNodeId,this.#l({componentTree:i,nodeId:this.rootNodeId}),this.#n=i._overrides??{}}events=this.#t;exportTree(e){return this.exportSubtree(this.rootNodeId,e)}exportMetadata(){return this.#a}exportRootNodeMetadata(){return this.#s}get pristine(){return this.#d}set pristine(e){this.#d!==e&&(this.#d=e,this.#t.emit("pristineChanged",{pristine:e}))}get selectedBlockIdStack(){return this.#u}set selectedBlockIdStack(e){this.#u=e,this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.#u})}get selectedNodeId(){return this.#c}set selectedNodeId(e){this.#c!==e&&(this.#c=e,this.selectedParameterId=void 0,this.#t.emit("selectedNodeChanged",{selectedNodeId:e}))}get selectedParameterId(){return this.#g}set selectedParameterId(e){this.#g!==e&&(this.#g=e,this.#t.emit("selectedParameterChanged",{selectedParameterId:e}))}pushSelectedBlockId(e){this.selectedBlockIdStack=this.selectedBlockIdStack??[],this.selectedBlockIdStack?.push(e),this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.selectedBlockIdStack})}popSelectedBlockId(){this.#u?.pop(),this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.selectedBlockIdStack})}getNodeById(e){return this.#e[e]}getNodesIndex(){return this.#e}getBlockNodeValueById(e){return oI(this.exportSubtree(e),e)}getNodeChildren(e){let n=this.#r[e];if(n)return n}getNodeProperty(e,n){return aI(this.#o,[e,n])}getNodeProperties(e){return this.#o[e]??{}}insertNode({node:e,parentNodeId:n,parentSlot:r,targetIndexInSlot:o,overrideNodeId:i}){let s=i??$d();if(!this.#T(n))throw new Error("Cannot insert component into a read-only pattern slot unless it is within a slot section");let l={nodeId:s,parentId:n,value:t.#E(e),isExpandedInUI:!0,propertyValueLocalizability:{}};return this.#S({node:l,parentNodeId:n,parentSlot:r,targetIndexInSlot:o}),this.#m({nodeId:s,destinationParentId:n,destinationSlotName:r}),this.pristine=!1,this.#t.emit("nodeChanged",{changedNode:l,oldValue:void 0,type:"new"}),this.#t.emit("childrenChanged",{parentId:n,slotOrBlockName:r,newChildIds:this.#r[n][r],type:"slot"}),s}upsertBlockNode({nodeId:e,property:n,index:r,entry:o}){let i=this.#w({nodeId:e,property:n,index:r,entry:o});return this.pristine=!1,this.#t.emit("childrenChanged",{parentId:e,slotOrBlockName:n,newChildIds:this.#o[e]?.[n]?.value,type:"block"}),i}updateRootMetadata(e){let n={...this.#a};this.#a={...this.#a,...e},this.pristine=!1,this.#t.emit("metadataChanged",{metadata:this.#a,oldValue:n})}updateRootNode({update:e,doNotSetDirty:n}){let r={...this.#s};this.#s={...this.#s,...e},n||(this.pristine=!1),this.#t.emit("rootNodeMetadataChanged",{metadata:this.#s,oldValue:r})}insertPattern({parentNodeId:e,parentSlot:n,pattern:r,targetIndexInSlot:o,patternInstanceId:i}){let s=i??$d();if(this.#e[s])throw new Error(`Node with ID '${s}' already exists. Pattern nodes must have unique IDs. Did you mean to move or duplicate this pattern instead?`);let a=this.#b(r,s,!1);return this.#f({nodeId:a,parentNodeId:e,parentSlot:n,targetIndexInSlot:o}),this.#m({nodeId:a,destinationParentId:e,destinationSlotName:n}),this.pristine=!1,this.visitNodeAndDescendants(a,l=>{this.#t.emit("nodeChanged",{changedNode:l,oldValue:void 0,type:"new"})}),this.#t.emit("childrenChanged",{parentId:e,slotOrBlockName:n,newChildIds:this.#r[e][n],type:"slot"}),a}unlinkPattern(e){let n=this.#e[e];if(!n)throw new Error(`Node ${e} does not exist`);if(!n.value._pattern)throw new Error(`Node ${e} is not a pattern`);let r=n.value._patternDataResources||n.value._dataResources,o=Xie(n.value),i=a=>{a.partOfNestedPattern||(this.updateNode({nodeId:a.nodeId,updateComponent:l=>{delete l._pattern,delete l._patternError,delete l._overrides},updateMetadata:l=>{delete l.partOfPattern,delete l.partOfNestedPattern},doNotSetDirty:!0,ignoreOverrides:!0}),this.#n[a.nodeId]&&(this.#n=nr(this.#n,l=>{delete l[a.nodeId]})))};this.visitNodeAndDescendants(e,i);let s=a=>{a.partOfNestedPattern&&this.updateNode({nodeId:a.nodeId,updateMetadata:l=>{l.partOfPattern=l.partOfNestedPattern,delete l.partOfNestedPattern},doNotSetDirty:!0,ignoreOverrides:!0})};this.visitNodeAndDescendants(e,s),r&&(this.updateNode({nodeId:this.rootNodeId,updateDataResources:a=>Object.entries(o??{}).filter(([l])=>!(l in(a??{}))).map(([l,c])=>{let{source:u,...d}=c;return{type:"set",name:l,value:d}})}),this.updateNode({nodeId:n.nodeId,updateComponent:a=>{delete a._patternDataResources},updateDataResources:"removeAll",doNotSetDirty:!0,ignoreOverrides:!0})),this.pristine=!1}convertToPattern({existingNodeId:e,pattern:n}){let r=this.#e[e],o=r?.parentId;if(!r)throw new Error(`Node ${e} does not exist`);let i=this.#b(n,e,!0);this.#e[i]=nr(this.#e[i],a=>{a.parentId=o}),this.pristine=!1;let s=this.#e[i];this.#t.emit("nodeChanged",{changedNode:s,oldValue:r,type:"new"}),Object.entries(this.#r[i]??{}).forEach(([a,l])=>{this.#t.emit("childrenChanged",{newChildIds:l,parentId:i,slotOrBlockName:a,type:"slot"})})}copyNodeToClipboard(e){let n=this.exportSubtree(e,{keepPatternData:!1}),r=this.exportSubtree(e,{keepPatternData:!0}),o=[];Ec(r,({node:a})=>{a._id&&o.push(a._id)}),Ec(n,({node:a})=>{a._id&&(a._overrides&&delete a._overrides,"_name"in a&&delete a._name,"_slug"in a&&delete a._slug)});let i=this.#h(),s=Object.entries(i??{}).reduce((a,[l,c])=>(o.some(u=>l.includes(u))&&(a[l]=c),a),{});return{format:"uniform/copied-component-subtree-1.0",componentData:n,overrides:Object.keys(s).length?s:void 0,pasteAs:this.getNodeById(e)?.isBlock?"block":void 0}}async pasteNodeFromClipboard({parentNodeId:e,parentSlot:n,targetIndexInParent:r,clipboard:o,resolvePattern:i}){let s=ps(o),a=async c=>{c._pattern&&l.push((async()=>{let u=await i(c._pattern);if(!u){console.debug(`Pasted pattern ${c._pattern} not found, skipping`);return}let d=this.#x(u,c._id);Object.assign(c,d)})())},l=[];return Ec(s.componentData,({node:c})=>{a(c)}),s.overrides&&Object.values(s.overrides).forEach(c=>{c.slots&&Object.values(c.slots).forEach(u=>{u.forEach(d=>{Ec(d,({node:f})=>{a(f)})})})}),await Promise.all(l),this.#_(s.componentData,{parentId:e,parentName:n,parentType:o.pasteAs==="block"?"block":"slot",targetIndexInParent:r},s.overrides)}enableLocale(e){this.updateNode({nodeId:this.rootNodeId,updateComponent:n=>{let r=n;r._locales??=[];let o=[...new Set([...r._locales,...Array.isArray(e)?e:[e]])];r._locales=o}})}disableLocale(e){this.updateNode({nodeId:this.rootNodeId,updateComponent:o=>{let i=o;i._locales=i._locales?.filter(s=>s!==e)}});let n=[],r=o=>{this.getNodeProperty(o.nodeId,Pb)?.value===e&&!o.partOfPattern&&n.push(o.nodeId);let s=this.getNodeProperties(o.nodeId);Object.entries(s).forEach(([l,c])=>{let u=c;l!==_d&&(o.partOfPattern?this.isPatternPropertyOverridden(o.nodeId,l,e)&&this.resetPatternPropertyOverride(o.nodeId,l,e):(u?.localesConditions?.[e]?.forEach((d,f)=>{this.updateNodeProperty({nodeId:o.nodeId,property:l,value:void 0,source:"other",locale:e,conditionIndex:f,conditionDefinition:null})}),u?.locales?.[e]!==void 0&&this.updateNodeProperty({nodeId:o.nodeId,property:l,value:void 0,source:"other",locale:e,conditionIndex:-1})))});let a=this.getNodeProperty(o.nodeId,_d);if(a?.value){let l=ise(a.value,e);if(l===null)n.push(o.nodeId);else if(l===void 0||!Dr(a.value,l)){let c=!o.partOfPattern,u=Op(o.value._overridability,_d)==="yes";(c||u)&&this.updateNodeProperty({nodeId:o.nodeId,property:_d,value:l?()=>l:void 0,source:"other",locale:void 0,conditionIndex:-1})}}};this.visitNodeAndDescendants(this.rootNodeId,r),n.forEach(o=>{this.deleteNode(o)})}copyValuesToLocalePlan({sourceLocale:e,destinationLocale:n,doNotCopyDescendants:r=!1,startingNodeId:o=this.rootNodeId,specificPropertyId:i}){let s=new Map,a=c=>{if(c.value.type===nAe&&!c.partOfPattern){let d=this.getNodeChildren(c.nodeId)?.[cI]??[],f=d.map(g=>this.getNodeProperty(g,Pb)),p=f.findIndex(g=>g?.value===n);if(p>=0){let g=d[p];Nd(s,g).actions.push({type:"deleteLocalizedNode"})}let m=f.findIndex(g=>g?.value===e);if(m>=0){let g=d[m];Nd(s,g).actions.push({type:"duplicateLocalizedNode",targetIndexInSlot:p})}}if(s.get(c.nodeId)?.actions.some(d=>d.type==="deleteLocalizedNode"))return;let u=i?{[i]:this.getNodeProperty(c.nodeId,i)}:this.getNodeProperties(c.nodeId);Object.entries(u).forEach(([d,f])=>{if(f===void 0)return;let p=!c.partOfPattern,m=Op(c.value._overridability,d)==="yes";if(!(p||m))return;if(d===_d){let w=nse(f.value,e,n);w===null?Nd(s,c.nodeId).actions.push({type:"deleteLocalizedNode"}):w&&Nd(s,c.nodeId).actions.push({type:"updateVisibilityCriteria",targetValue:w})}let h=f.locales?.[e],v=f.locales?.[n];(!h||!v||!Dr(h,v))&&(h!==void 0?Nd(s,c.nodeId).actions.push({type:"copyPropertyValue",propertyId:d,sourceValue:h,targetValue:v,conditionIndex:-1}):v!==void 0&&Nd(s,c.nodeId).actions.push({type:"deletePropertyValue",propertyId:d,sourceValue:h,targetValue:v,conditionIndex:-1}));let y=f.localesConditions?.[e],b=f.localesConditions?.[n];y?.forEach((w,E)=>{let T=f.localesConditions?.[n]?.[E];(!w||!T||!Dr(w,T))&&Nd(s,c.nodeId).actions.push({type:"copyPropertyValue",propertyId:d,sourceValue:w.value,targetValue:T,conditionIndex:E,conditionDefinition:w.when})});let S=y?.length??0,C=b?.length??0;if(S<C){let w=Nd(s,c.nodeId);for(let E=S;E<C;E++)w.actions.push({type:"deletePropertyValue",propertyId:d,sourceValue:y?.[E],targetValue:b?.[E],conditionIndex:E})}})},l=this.#e[o];if(!l)throw new Error(`Node ${o} does not exist`);return a(l),!i&&!r&&this.visitDescendants(l.nodeId,a),{nodePlans:Array.from(s.values()),sourceLocale:e,destinationLocale:n}}async copyValuesToLocaleExecute({resolvePattern:e,plan:{sourceLocale:n,destinationLocale:r,nodePlans:o}}){let i=`copyLocaleExecute: ${r}`;console.time(i);for(let{nodeId:s,actions:a}of o)for(let l of a)switch(l.type){case"copyPropertyValue":{let c=this.getNodeProperty(s,l.propertyId)?.type,u=l.sourceValue;c==="contentReference"&&(u=this.prepareContentReferenceWrite({nodeId:s,propertyId:l.propertyId,destinationLocale:r,conditionIndex:l.conditionIndex,sourceValue:l.sourceValue})),this.updateNodeProperty({nodeId:s,property:l.propertyId,source:"other",locale:r,value:()=>u,type:c,conditionIndex:l.conditionIndex,conditionDefinition:l.conditionDefinition});break}case"deletePropertyValue":{this.updateNodeProperty({nodeId:s,property:l.propertyId,source:"other",locale:r,value:void 0,conditionIndex:l.conditionIndex,conditionDefinition:null});break}case"deleteLocalizedNode":{this.deleteNode(s);break}case"duplicateLocalizedNode":{let c=await this.duplicateNode(s,e);this.updateNodeProperty({nodeId:c,locale:void 0,conditionIndex:-1,type:"localeSelect",property:Pb,source:"other",value:()=>r});let u=this.copyValuesToLocalePlan({sourceLocale:n,destinationLocale:r,startingNodeId:c});this.copyValuesToLocaleExecute({plan:u,resolvePattern:e}),l.targetIndexInSlot!==void 0&&this.moveNode({movedNodeId:c,parentNodeId:this.#e[s].parentId,parentSlot:cI,targetIndexInSlot:l.targetIndexInSlot});break}case"updateVisibilityCriteria":{this.updateNodeProperty({nodeId:s,property:_d,source:"other",locale:void 0,conditionIndex:-1,value:()=>l.targetValue});break}default:throw new Error(`Unhandled action type ${l.type}`)}console.timeEnd(i)}updateNode({nodeId:e,updateComponent:n,updateDataResources:r,updateMetadata:o,doNotSetDirty:i,ignoreOverrides:s}){let a=this.#e[e];if(!a)throw new Error(`Update target node ID ${e} did not exist!`);let l=nr(a,f=>{if(o&&(o(f),f.nodeId=e,f.value=a.value,f.parentId=a.parentId),n){if(n(f.value),"slots"in f.value)throw new Error("Do not set `slots` on a Twee node, insert child nodes instead.");if("parameters"in f.value)throw new Error("Do not set `parameters` on a Twee node, use updateProperties option instead.")}if(r){let p=typeof r=="function"?r(f.value._dataResources):r;if(p==="removeAll")delete f.value._dataResources;else for(let m of p){let g=s?!1:f.nodeId!==this.rootNodeId&&f.value._pattern;switch(m.type){case"set":g&&(this.#n=nr(this.#n,h=>{h[e]??={},h[e].dataResources??={},h[e].dataResources[m.name]=m.value})),f.value._dataResources??={},f.value._dataResources[m.name]=m.value;break;case"remove":g&&(this.#n=nr(this.#n,h=>{delete h[e]?.dataResources?.[m.name]})),delete f.value._dataResources?.[m.name];break;case"reset":{let h=this.#i[e]?.dataResources?.[m.name];f.value._dataResources&&(h&&Object.keys(h).length>0?f.value._dataResources[m.name]=h:delete f.value._dataResources[m.name]),this.#n=nr(this.#n,v=>{delete v[e]?.dataResources?.[m.name]})}break;default:throw new Error(`Unhandled data resource action ${m?.type}`)}}}}),c=!!(a.partOfPattern&&!a.value._patternError),u=a.value.variant!==l.value.variant,d=a.value._overridability?.variants??!1;!s&&c&&u&&d&&(this.#n=nr(this.#n,f=>{f[e]??={},f[e].variant=l.value.variant})),this.#e[e]=l,i||(this.pristine=!1),this.#t.emit("nodeChanged",{changedNode:l,type:"update",oldValue:a})}updateNodeProperty({nodeId:e,property:n,value:r,source:o,locale:i,type:s,doNotSetDirty:a=!1,ignoreOverrides:l=!1,conditionIndex:c,conditionDefinition:u}){let d=this.#e[e];if(!d)throw new Error(`Update target node ID ${e} did not exist!`);if(c<0&&u)throw new Error("Condition definition provided for non-conditional value");let f=!!(d.partOfPattern&&!d.value._patternError),p=[e,n],m=aI(this.#o,p);if(!m&&r==null)return;let g=mse({locale:i,property:m,conditionIndex:c}),h=i?m?.localesConditions?.[i]?.[c]:m?.conditions?.[c],v=typeof r=="function"?nr(g,w=>r(w)):r,y=s??m?.type;if(!y)throw new Error(`Cannot add parameter ${n} to node ${e} without specifying a type`);let b={...m,type:y},S=!1;b=nr(b,w=>{v===void 0&&c<0?S=!iE({locale:i,property:w,conditionIndex:c}):u===null&&c>=0?S=!iE({locale:i,property:w,conditionIndex:c}):rI({locale:i,property:w,newPropertyValue:v,conditionIndex:c,conditionDefinition:u??h?.when??{clauses:[]}})}),S&&(b=void 0);let C=f&&Op(d.value._overridability,n)==="yes";if(f&&!C&&!l)throw new Error(`Cannot override parameter ${n} on node ${e} because it is not marked as overridable on the pattern (${d.partOfPattern})`);if(C&&(this.#i[e]?.parameters?.[n]||(this.#i=nr(this.#i,E=>{E[e]??={parameters:{},dataResources:{}},E[e].parameters[n]=m??{type:y,value:null}}))),!l&&C){let w=this.#n[e]?.parameters?.[n];this.#n=nr(this.#n,E=>{let $=v==null||b===void 0?null:v,_=w??{type:b?.type??m?.type??"unknown",value:m?.value,conditions:m?.conditions,locales:i&&m?.locales?.[i]?{[i]:m.locales[i]}:void 0,localesConditions:i&&m?.localesConditions?.[i]?{[i]:m.localesConditions[i]}:void 0},N=nr(_,R=>{u===null&&c>=0?iE({locale:i,property:R,conditionIndex:c}):rI({locale:i,property:R,newPropertyValue:$,conditionIndex:c,conditionDefinition:u??h?.when??{clauses:[]}})});(0,Ip.set)(E,`/${e}/parameters/${n}`,N)}),w||this.#t.emit("propertyOverrideCreated",{nodeId:e,property:n})}v===null?(0,Ip.remove)(this.#o,p):(this.#o[e]??={},(0,Ip.set)(this.#o,p,b)),a||(this.pristine=!1),this.#t.emit("nodeParameterChanged",{nodeId:e,parameter:n,locale:i,conditionIndex:c,value:b,previousValue:m,type:r?m?"update":"new":"delete",conditionDefinition:u,source:o})}isPatternPropertyOverridden(e,n,r,o){let i=this.getNodeById(e);if(!i||Op(i.value._overridability,n)==="no")return!1;let s=this.#n[e]?.parameters?.[n];return s?r?(o===void 0||o===!0)&&s.localesConditions?.[r]!==void 0||(o===void 0||o===!1)&&s.locales?.[r]!==void 0:(o===void 0||o===!0)&&s.conditions!==void 0||(o===void 0||o===!1)&&s.value!==void 0:!1}getPatternPropertyOverrideDefaultValue(e,n,r){let o=this.#i[e]?.parameters?.[n];if(!o)return{exists:!1};if(r&&o.locales?.[r])return{exists:!0,value:o,sourceLocale:r};if(o.value!==void 0)return{exists:!0,value:o,sourceLocale:void 0};let i=Object.keys(o.locales??{})[0];return i?{exists:!0,value:o,sourceLocale:i}:{exists:!1}}resetPatternPropertyOverride(e,n,r){let o=[-1];this.#n=nr(this.#n,s=>{let a=s[e]?.parameters?.[n];if(a)if(r){delete a.locales?.[r];let l=a.localesConditions?.[r];l&&(l.forEach((c,u)=>{o.push(u)}),delete a.localesConditions?.[r]),a.locales&&Object.keys(a.locales).length===0&&delete a.locales,a.localesConditions&&Object.keys(a.localesConditions).length===0&&delete a.localesConditions,Object.keys(a.locales??{}).length===0&&Object.keys(a.localesConditions??{}).length===0&&delete s[e]?.parameters?.[n]}else{let l=a.conditions;l&&l.forEach((c,u)=>{o.push(u)}),delete s[e].parameters?.[n]}});let i=this.getPatternPropertyOverrideDefaultValue(e,n,r);!i.exists||i.value===null?this.updateNodeProperty({nodeId:e,property:n,value:void 0,source:"reset",locale:r,ignoreOverrides:!0,doNotSetDirty:!1,conditionIndex:-1}):o.forEach(s=>{let a=mse({locale:i.sourceLocale,property:i.value,conditionIndex:s,strict:!0});this.updateNodeProperty({nodeId:e,property:n,value:a===void 0?void 0:()=>a,source:"reset",locale:r,type:i.value?.type,ignoreOverrides:!0,doNotSetDirty:!1,conditionIndex:s,conditionDefinition:(r?i.value?.localesConditions?.[r]?.[s]?.when:i.value?.conditions?.[s]?.when)??null})}),this.#t.emit("propertyOverrideReset",{nodeId:e,property:n,usedPatternDefault:i!==void 0})}async duplicateNode(e,n){let r=this.getParentInfo(e);if(!r)throw new Error("Cannot duplicate root node or parentless block");let o=this.copyNodeToClipboard(e);return await this.pasteNodeFromClipboard({parentNodeId:r.parentId,parentSlot:r.parentName,resolvePattern:n,targetIndexInParent:r.targetIndexInParent+1,clipboard:o})}moveNode({movedNodeId:e,parentNodeId:n,parentSlot:r,targetIndexInSlot:o}){if(!this.#e[e])throw new Error(`Cannot move node ${e} - it does not exist`);let s=this.getParentInfo(e);if(!s)throw new Error("Cannot move root node");this.#r[s.parentId][s.parentName].splice(s.targetIndexInParent,1),this.#y(s.parentId,e),this.#f({nodeId:e,parentNodeId:n,parentSlot:r,targetIndexInSlot:o}),this.#m({nodeId:e,destinationParentId:n,destinationSlotName:r,sourceSlotName:s.parentName}),this.pristine=!1,this.#t.emit("childrenChanged",{parentId:n,slotOrBlockName:r,newChildIds:this.#r[n][r],type:"slot"}),this.#t.emit("childrenChanged",{parentId:s.parentId,slotOrBlockName:s.parentName,newChildIds:this.#r[s.parentId][s.parentName],type:"slot"})}deleteNode(e,n){let r=this.getParentInfo(e);if(!r&&!n)throw new Error("Cannot delete root node");r&&!n&&(this.#r[r.parentId][r.parentName].splice(r.targetIndexInParent,1),this.#r[r.parentId][r.parentName].length===0&&delete this.#r[r.parentId][r.parentName],this.selectedNodeId===e&&(this.selectedNodeId=r.parentId),this.#y(r.parentId,e),this.#t.emit("childrenChanged",{parentId:r.parentId,slotOrBlockName:r.parentName,newChildIds:this.#r[r.parentId][r.parentName]??[],type:"slot"})),delete this.#e[e],this.#t.emit("nodeDeleted",{deletedNodeId:e}),this.pristine=!1}#y(e,n){this.#n=nr(this.#n,r=>{let o=r[e]?.slots;o&&Object.keys(o).forEach(i=>{o[i]=o[i].filter(({_id:s})=>s!==n),o[i].length===0&&delete o[i]})})}#h(){if(Object.keys(this.#n).length>0){let e=ps(this.#n);return Object.entries(e).forEach(([r,o])=>{let i=!0;if(!this.#e[r]){delete e[r];return}if(o.parameters){let s=Object.entries(o.parameters);s.forEach(([a,l])=>{let c=hse(l);c?(o.parameters[a]=c,i=!1):delete o.parameters[a]}),s.length===0&&delete o.parameters}o.slots&&Object.entries(o.slots).forEach(([a,l])=>{if(l.length){let c=l.filter(u=>u._id).map(u=>this.exportSubtree(u._id));c?(o.slots[a]=c,i=!1):delete o.slots[a]}else delete o.slots[a]}),o.variant!==void 0&&(i=!1),o.dataResources&&Object.keys(o.dataResources).length>0&&(i=!1),i&&delete e[r]}),Object.keys(e).length===0&&(e=void 0),e}}exportSubtree(e,n){let{keepPatternData:r=!1}=n??{},o=this.#e[e];if(!o)throw new Error(`Node ${e} to export is not found`);let i=ps(o);if(e===this.rootNodeId){let l=this.#h();l?i.value._overrides=l:delete i.value._overrides;let c=i.value;c._name=this.#s._name,this.#s._slug&&(c._slug=this.#s._slug)}let s=[i],a=new Set;for(;s.length>0;){let l=s.pop();if(a.has(l.nodeId))throw new Error("Circular reference detected in the composition tree with node ID "+l.nodeId);if(a.add(l.nodeId),l.value._id=l.nodeId,!r&&(delete l.value._patternDataResources,delete l.value._patternOverrides,l.value._pattern&&l.value._dataResources)){let d=!1;Object.keys(l.value._dataResources).forEach(f=>{i.value._overrides?.[l.nodeId]?.dataResources?.[f]?delete l.value._dataResources[f]:d=!0}),d||delete l.value._dataResources}let c=this.#o[l.nodeId];if(c&&(r||!l.partOfPattern)){let d={},f=!1;Object.entries(c).forEach(([p,m])=>{if(m?.type===Ys&&Array.isArray(m.value)){let g=m.value,h=[];g.forEach(v=>{let y=this.exportSubtree(v,n);h.push(oI(y,v))}),d[p]={value:h,type:Ys},f=!0}else{let g=hse(m);g&&(d[p]=g,f=!0)}}),f&&(l.value.parameters=d)}let u=this.#r[l.nodeId];!u||l.partOfPattern&&!r||Object.entries(u).forEach(([d,f])=>{f.forEach((p,m)=>{let g=this.#e[p];if(!g)throw new Error("Insanity detected.");let h=ps(g),v=l.value;v.slots=v.slots||{},(0,Ip.set)(l,["value","slots",d,m.toString(10)],h.value),s.push(h)})})}return this.#D(i.value),i.value}#S({parentNodeId:e,parentSlot:n,targetIndexInSlot:r,node:o}){if(!this.#e[e])throw new Error("Parent ID to insert under did not exist!");if(this.#e[o.nodeId])throw new Error(`Node with ID '${o.nodeId}' already exists. Nodes must have unique IDs. Did you mean to move or duplicate this node instead?`);this.#e[o.nodeId]=o,this.#f({nodeId:o.nodeId,parentNodeId:e,parentSlot:n,targetIndexInSlot:r})}#f({nodeId:e,parentNodeId:n,parentSlot:r,targetIndexInSlot:o}){let i=this.#e[n],s=this.#r[n]??={},a=s[r]??=[];typeof o<"u"?a.splice(o,0,e):a.push(e),i?.value.type===sE&&(this.#n=nr(this.#n,l=>{l[n]=l[n]??{},l[n].slots={[rAe]:a.map(c=>({_id:c,type:this.#e[c].value.type}))}})),this.#e[e]=nr(this.#e[e],l=>{l.parentId=n})}#w({nodeId:e,property:n,index:r,entry:o}){let i=this.getNodeById(e);if(!i)throw new Error("Node doesn't exist");let a={nodeId:o._id??$d(),value:{type:o.type,_dataResources:o._dataResources},isBlock:!0,parentId:e,propertyValueLocalizability:{}},l=this.getNodeProperty(i.nodeId,n);if(l&&l.type!==Ys)throw new Error("Parameter already exists and isn't a block parameter");let c=this.#e[a.nodeId];this.#e[a.nodeId]=a;let u=ps(this.getNodeProperty(i.nodeId,n)?.value?.filter(d=>this.getNodeById(d))??[]);if(typeof r<"u"){if(r<0)throw new Error("parameter index cannot be less than 0");let d=-1;if(u.forEach((f,p)=>{f===a.nodeId&&(d=p)}),r>u.length+(d===-1?1:0))throw new Error(`Parameter index ${r} outside current index bounds.`);d>-1&&d!==r&&(u=u.filter(f=>f!==a.nodeId),u.splice(r,0,a.nodeId))}else u.push(a.nodeId);return Object.entries(o?.fields??{}).forEach(([d,f])=>{if(f.type===Ys&&Array.isArray(f.value)){let p=f.value,m=[];p.forEach(g=>{let h=g._id??$d();this.#l({nodeId:h,componentTree:iI(g)}),this.#e[h].isBlock=!0,this.#e[h].parentId=a.nodeId,m.push(h)}),this.updateNodeProperty({nodeId:a.nodeId,property:d,type:f.type,value:()=>m,source:"other",locale:void 0,conditionIndex:-1})}else this.updateNodeProperty({nodeId:a.nodeId,property:d,type:f.type,value:()=>f.value,source:"other",locale:void 0,conditionIndex:-1})}),this.updateNodeProperty({nodeId:i.nodeId,property:n,type:Ys,value:()=>u,source:"other",locale:void 0,conditionIndex:-1}),this.#t.emit("nodeChanged",{changedNode:i,oldValue:void 0,type:c?"update":"new"}),this.#t.emit("nodeParameterChanged",{nodeId:i.nodeId,parameter:n,previousValue:l,source:"other",type:c?"update":"new",locale:void 0,conditionIndex:-1,conditionDefinition:void 0,value:{type:Ys,value:u}}),{blockIds:u}}#l({componentTree:e,nodeId:n,partOfPattern:r,partOfNestedPattern:o,resetUids:i,isBlock:s,allowReplacement:a}){let{slots:l,parameters:c,_id:u,_overrides:d,...f}=e,p=r??f._pattern,m=f._pattern&&f._pattern!==p?f._pattern:o,g=n??(i?void 0:u)??$d();if(this.#e[g]&&!a)throw new Error(`Node with ID '${g}' already exists. Nodes must have unique IDs.`);let h={nodeId:g,value:f,partOfPattern:p,partOfNestedPattern:m,isBlock:s,propertyValueLocalizability:Object.entries(c??{}).reduce((v,[y,b])=>(v[y]=kx({definition:void 0,currentValue:b,lastUserChoice:void 0}),v),{})};return p&&(h.partOfPattern=p),this.#e[h.nodeId]=h,c&&Object.entries(c).forEach(([v,y])=>{let{connectedData:b,...S}=y,C=b?pse(fse(b)):y.value;if(y?.type===Ys&&Array.isArray(C)){let w=C,E=[];w?.forEach(T=>{let $={...T,_id:i?$d():T._id??$d()};if(this.#e[$._id])throw new Error(`Block node with ID '${$._id}' already exists. Block nodes must have unique IDs.`);return E.push($._id),this.#e[$._id]={nodeId:$._id,value:{type:Ys},propertyValueLocalizability:{}},this.#l({componentTree:iI($),nodeId:$._id,allowReplacement:!0,partOfPattern:p,partOfNestedPattern:m}),this.#e[$._id].isBlock=!0,this.#e[$._id].parentId=h.nodeId,this.#e[$._id]}),C=E}this.#o[h.nodeId]=this.#o[h.nodeId]??{},(0,Ip.set)(this.#o,[h.nodeId,v],{...S,value:C})}),l&&Object.entries(l).forEach(([v,y])=>{let b=y.map(S=>{if(this.#e[S._id??""]?.isBlock)return;let C=this.#l({componentTree:S,partOfPattern:f.type===sE?void 0:p,partOfNestedPattern:f.type===sE?void 0:m,resetUids:i});return this.#e[C].parentId=h.nodeId,C});this.#r[h.nodeId]=this.#r[h.nodeId]??{},this.#r[h.nodeId][v]=b.filter(S=>S)}),h.nodeId}#b(e,n,r){let o=this.#x(e,n);return this.#l({componentTree:o,nodeId:n,allowReplacement:r})}#x(e,n){let r=ps(e);return this.#v({composition:r}),tE(r,n),r._pattern=e._id,delete r._id,delete r._name,delete r._slug,delete r._overrides,delete r._locales,delete r._author,delete r._authorSubject,delete r._creator,delete r._creatorSubject,r._dataResources&&(r._patternDataResources=ps(r._dataResources),delete r._dataResources),r}getParentInfo(e){let{parentId:n,isBlock:r}=this.#e[e]??{};if(!n)return;let o=this.#e[n];if(o)if(r)for(let[i,s]of Object.entries(this.#o[n]??{})){if(s?.type!==Ys)continue;let a=Array.isArray(s.value)?s.value:[],l=a.indexOf(e);if(l>=0)return{value:o.value,parentId:n,parentName:i,targetIndexInParent:l,parentChildIds:a,parentType:"block"}}else{let i=this.#r[n];if(!i&&!r)throw new Error("Sanity failed; parent had no children!");for(let[s,a]of Object.entries(i??{})){let l=a.indexOf(e);if(l>=0)return{value:o.value,parentId:n,parentName:s,targetIndexInParent:l,parentChildIds:a,parentType:"slot"}}return}}static#E(e){return nr(e,r=>{delete r.slots,delete r.parameters})}#T(e){let n=e;for(;n;){let r=this.getNodeById(n);if(!r)break;if(r.value._pattern)return!1;if(r.value.type===sE||!r.partOfPattern)return!0;n=r.parentId}return!0}#_(e,n,r){let i={...this.#h(),...r},s;if(this.#n=nr(this.#n,l=>{this.#i=nr(this.#i,c=>{s=oE(e,i,(u,d,f)=>{l[u]=d,c[u]=this.#i[f]})})}),!s)throw new Error("Failed to duplicate component");s=nr(s,l=>{l._overrides=ps(this.#n),this.#v({composition:l,preserveChildrenSlotSections:!0})});let a=this.#l({componentTree:s,isBlock:n.parentType==="block"});if(n.parentType==="block"){let l=this.getNodeProperty(n.parentId,n.parentName)?.value??[],c=[...l.slice(0,n.targetIndexInParent),a,...l.slice(n.targetIndexInParent)];this.updateNodeProperty({nodeId:n.parentId,property:n.parentName,type:Ys,value:()=>c,locale:void 0,conditionIndex:-1,source:"other"}),this.#e[a].parentId=n.parentId,this.#t.emit("nodeChanged",{changedNode:this.getNodeById(a),type:"new",oldValue:void 0}),this.#t.emit("childrenChanged",{parentId:n.parentId,slotOrBlockName:n.parentName,newChildIds:c,type:"block"})}else{this.#f({nodeId:a,parentNodeId:n.parentId,parentSlot:n.parentName,targetIndexInSlot:n.targetIndexInParent}),this.#m({nodeId:a,destinationParentId:n.parentId,destinationSlotName:n.parentName}),this.#t.emit("childrenChanged",{parentId:n.parentId,slotOrBlockName:n.parentName,newChildIds:this.#r[n.parentId][n.parentName],type:"slot"});let l=c=>{this.#t.emit("nodeChanged",{changedNode:c,type:"new",oldValue:void 0})};this.visitNodeAndDescendants(a,l)}return this.pristine=!1,a}#v({composition:e,ignoreRootOverrides:n,preserveChildrenSlotSections:r}){this.#i=nr(this.#i,i=>{let s=nI({beforeApplyParameterOverride(c,u,d){i[c._id]??={parameters:{},dataResources:{}},i[c._id].parameters[u]=ps(d)},beforeApplyDataResourceOverride(c,u,d){c._dataResources?.[u]?.ignorePatternParameterDefault||(i[c._id]??={parameters:{},dataResources:{}},i[c._id].dataResources[u]=ps(d))}}),a=nI({beforeApplyParameterOverride(c,u,d,f){i[c._id]?.parameters[u]||(i[c._id]??={parameters:{},dataResources:{}},i[c._id].parameters[u]=ps(f??null))},beforeApplyDataResourceOverride(c,u,d,f){c._dataResources?.[u]?.ignorePatternParameterDefault||i[c._id]?.dataResources[u]||(i[c._id]??={parameters:{},dataResources:{}},i[c._id].dataResources[u]=ps(f))}});if(n){let{_overrides:c,...u}=e;Ec(u,({node:d})=>{s.visitNode(d)})}let l=n?a:s;Ec(e,({node:c})=>{l.visitNode(c)})});let o=Hie({preserveOwnSlotSections:!0,preserveChildrenSlotSections:r});Ec(e,i=>{o(i)})}visitNodeAndDescendants(e,n){let r=this.getNodeById(e);if(!r)throw new Error("Insanity detected.");n(r),this.visitDescendants(e,n)}visitDescendants(e,n){let r=this.#p(e,new Set);for(let o of r)n(...o)}async visitDescendantsAsync(e,n){let r=this.#p(e,new Set);for(let o of r)await n(...o)}*#p(e,n){let r=this.#e[e],o=this.#r[e]??{},i=Object.entries(this.#o[e]??{}).filter(([,s])=>s?.type===Ys)??[];if(!r)throw new Error("Insanity detected.");n.add(e);for(let[s,a]of i){let l=a.value??[];for(let c=0;c<l.length;c++){let u=l[c],d=this.#e[u];if(d){if(n.has(u)){console.error(`Detected parent/child cycle in composition, ID ${u} exists more than once. The traversal of descendants will be aborted for the cycle subtree.`);continue}yield[d,r,s,c];for(let f of this.#p(u,n))yield f}}}for(let[s,a]of Object.entries(o))for(let l=0;l<a.length;l++){let c=a[l],u=this.#e[c];if(u){if(n.has(c)){console.error(`Detected parent/child cycle in composition, ID ${c} exists more than once. The traversal of descendants will be aborted for the cycle subtree.`);continue}yield[u,r,s,l];for(let d of this.#p(c,n))yield d}}}#m({nodeId:e,destinationParentId:n,destinationSlotName:r,sourceSlotName:o}){let i=r,s=o===cse,a=i===cse,l=o===use,c=i===use,u=i===cI,d=this.getNodeProperty(e,lse);a&&d&&this.updateNodeProperty({nodeId:e,property:lse,value:void 0,source:"other",locale:void 0,conditionIndex:-1});let f=this.getNodeProperty(e,Fb);!a&&f&&this.updateNodeProperty({nodeId:e,property:Fb,value:void 0,source:"other",locale:void 0,conditionIndex:-1}),a&&!s&&this.#C({nodeId:e,siblingIds:this.getNodeChildren(n)?.[r]??[],selectExistingName:g=>this.getNodeProperty(g,Fb)?.value?.name,setName:g=>this.updateNodeProperty({nodeId:e,property:Fb,value:h=>h&&typeof h=="object"&&h!==null?{...h,name:g}:{name:g,crit:[]},source:"other",locale:void 0,conditionIndex:-1,type:Fb})}),c&&!l&&this.#C({nodeId:e,siblingIds:this.getNodeChildren(n)?.[r]??[],selectExistingName:g=>this.getNodeProperty(g,dse)?.value?.id,setName:g=>this.updateNodeProperty({nodeId:e,property:dse,value:h=>h&&typeof h=="object"&&h!==null?{...h,id:g}:{id:g},source:"other",locale:void 0,conditionIndex:-1,type:"testVariant"})});let p=this.getNodeProperty(e,Pb);!u&&p&&this.updateNodeProperty({nodeId:e,property:Pb,value:void 0,source:"other",locale:void 0,conditionIndex:-1});let m=this.getNodeProperty(e,_d);(a||u||c)&&m&&this.updateNodeProperty({nodeId:e,property:_d,value:void 0,source:"other",locale:void 0,conditionIndex:-1})}#C({nodeId:e,siblingIds:n,selectExistingName:r,setName:o}){let i=r(e),s=d=>n.some(f=>f===e?!1:r(f)===d),a=i&&s(i);if(i&&!a)return;let l=this.getNodeById(e)?.value.type;if(!l)throw new Error("Insanity detected.");let c=0,u=lI(e,l,c);do u=lI(e,l,c),c++;while(s(u));o(u)}prepareContentReferenceWrite({nodeId:e,propertyId:n,destinationLocale:r,conditionIndex:o,sourceValue:i}){let s=this.#$({value:i,dataResources:this.#e[e]?.value._dataResources});if(!s)return i;let{dataResource:a,isSingleEntryReference:l}=s,c=Hp(e,n,r==="${locale}"?void 0:r,o);this.updateNode({nodeId:e,updateDataResources:[{name:c,type:"set",value:{...a,variables:{...a?.variables,locale:r}}}]});let u=`/${c}/entries${l?"/0":""}`;return pse(fse({syntax:"jptr",pointer:u}))}#$({value:e,dataResources:n}){if(typeof e!="string")return;let r;gse(e,(a,l)=>{l==="variable"&&(r=a)});let o=r?sI(r):void 0;if(!o)return;let i=o.dataResource,s=n?.[i];if(s)return{dataResource:s,dataResourceName:i,isSingleEntryReference:o.dataExpression?.endsWith("/0")}}#N(e){if(typeof e!="string")return;let n;return gse(e,(o,i)=>{i==="variable"&&(n=o)}),(n?sI(n):void 0)?.dataResource}#D(e){let n=new Set,r=[],o=({node:i})=>{let s=oAe(i),a=i._dataResources;if(a)for(let[l,c]of Object.entries(a))c.type===cl&&r.push({dataResources:a,dataResourceKey:l});if(s)for(let l of Object.values(s))l.type==="contentReference"&&iAe(l,({value:c})=>{let u=this.#N(c);u&&n.add(u)})};if(Ec(e,o),"_overrides"in e&&e._overrides)for(let[,i]of Object.entries(e._overrides))Ec({type:e.type,...i,_dataResources:i.dataResources},o);for(let{dataResources:i,dataResourceKey:s}of r)n.has(s)||delete i[s]}};function hse(t){return t?.value===void 0&&!t?.conditions&&!t?.locales&&!t?.localesConditions?null:t}function Nd(t,e){return lAe(t,e,()=>({nodeId:e,actions:[]}))}function lAe(t,e,n){return t.has(e)||t.set(e,n()),t.get(e)}import{CANVAS_DRAFT_STATE as cE,CanvasClient as fAe}from"@uniformdev/canvas";import{ProjectMapClient as pAe}from"@uniformdev/project-map";import{produce as mAe}from"immer";function yse(t){return t.reduce((e,n)=>(e[n._id]={id:n._id,type:n.type,name:n._name},e),{})}import{CANVAS_DRAFT_STATE as bse,CanvasClient as uI,ContentClient as xse,ProjectClient as Cse}from"@uniformdev/canvas";function Sse(t){let e,n,r;return{fetchProjectGuidance:async()=>(e!==void 0||(e=(await new Cse(t).get({projectId:t.projectId}))?.guidance),e),fetchDefinitions:async()=>{if(n!==void 0)return n;let i=await new uI(t).getComponentDefinitions({limit:1e3,includeSystem:!0});return n=Object.fromEntries(i.componentDefinitions.map(s=>[s.id,s])),n},fetchPatterns:async()=>{if(r!==void 0)return r;let i=await new uI(t).getCompositionList({limit:1e3,pattern:!0,patternType:"component",resolveData:!1,skipPatternResolution:!0,skipOverridesResolution:!0,state:bse});return r=yse(i.compositions.map(s=>s.composition)),r},resolvePatternData:async o=>(await new uI(t).getCompositionById({compositionId:o,state:bse,skipPatternResolution:!1,skipOverridesResolution:!0,withComponentIDs:!0,skipDataResolution:!0,withWorkflowDefinition:!0,releaseId:void 0}))?.composition,getToolClient:async()=>t.toolInvoker,getDimensionGuidance:async()=>{}}}function wse(t){let e,n;return{fetchProjectGuidance:async()=>(e!==void 0||(e=(await new Cse(t).get({projectId:t.projectId}))?.guidance),e),fetchDefinitions:async()=>{if(n!==void 0)return n;let o=await new xse(t).getContentTypes({limit:1e3});return n=Object.fromEntries(o.contentTypes.map(i=>[i.id,Qie(i)])),n},fetchPatterns:async()=>({}),resolvePatternData:async r=>{let i=(await new xse(t).getEntries({entryIDs:[r],skipPatternResolution:!1,skipOverridesResolution:!0,withComponentIDs:!0,skipDataResolution:!0,withWorkflowDefinition:!0,releaseId:void 0}))?.entries[0];return Rb(i).composition},getToolClient:async()=>t.toolInvoker,getDimensionGuidance:async()=>{}}}import{parseHTML as cAe}from"linkedom/worker";function uAe(t){let e=Object.getPrototypeOf(t.body);for(;e&&!Object.getOwnPropertyDescriptor(e,"style");)e=Object.getPrototypeOf(e);let n=e?Object.getOwnPropertyDescriptor(e,"style"):void 0;if(!n?.get||e.__stylePatched)return;let r=n.get;Object.defineProperty(e,"style",{get(){let o=r.call(this);return new Proxy(o,{get(i,s){if(typeof s=="string"){let a=i[s];return typeof a=="function"?a.bind(i):a===void 0?"":a}return i[s]},set(i,s,a){return i[s]=a,!0}})},configurable:!0}),e.__stylePatched=!0}function aE(t){let e=`<!DOCTYPE html><html><body>${t}</body></html>`,{document:n}=cAe(e);return uAe(n),n}import{LocaleClient as dAe}from"@uniformdev/canvas";async function lE(t,e){if(!t||t.length===0)return;let o=(await new dAe(e).get()).results.map(s=>s.locale),i=t.filter(s=>!o.includes(s));if(i.length>0)throw new Error(`The following locales are not registered in your project: ${i.join(", ")}`)}async function uE({action:t,id:e,instructions:n,isPattern:r,patternId:o,projectMapNode:i,getEditUrl:s,env:a}){let l=new fAe(a),c,u,d=t==="update"?e:void 0,f={success:!0,actionsTaken:[]};if(t==="duplicate"){if(u=await l.getCompositionById({compositionId:e,state:cE,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0}),!u)throw new Error("Composition not found");let p=crypto.randomUUID(),m=Wie(u.composition,p),g=mAe(m,h=>{h._name=`${h._name} (copy)`,h._slug&&(h._slug=`${h._slug}-copy${h._slug?.endsWith("/")?"/":""}`)});c=new il(g),e=p}else if(t==="create"){if(!n)throw new Error("Instructions are required for create");if(!n.name)throw new Error("Name is required for create");if(!n.type)throw new Error("Type is required for create");if(!o)c=new il({_id:e,_name:n.name,type:n.type,_overridability:{hideLockedParameters:!0}});else{let p={composition:{_id:e,_name:n.name,type:n.type,_pattern:o},projectId:a.projectId,state:cE,pattern:!1};await l.updateComposition(p),d=e}}if(d){if(u=await l.getCompositionById({compositionId:e,state:cE,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0}),!u)throw new Error("Composition not found");c=new il(u.composition)}if(t==="delete"&&await l.removeComposition({compositionId:e}),c){await lE(n?.localeUpdates?.enableLocales,a),f=await Q5({twee:c,descriptionUpdate:void 0,slugUpdate:void 0,nameUpdate:n?.name,propertyUpdates:n?.parameterUpdates??[],dataResourceUpdates:n?.dataResourceUpdates??[],localeUpdates:n?.localeUpdates,slotUpdates:n??{},currentEditorLocale:void 0,referenceData:Sse(a),isEditingPattern:r,domParser:aE});let p=c.exportTree(),m=c.exportMetadata(),g={composition:p,projectId:a.projectId,state:cE,pattern:r,releaseId:u?.releaseId,editionId:u?.editionId,...m};await l.updateComposition(g)}if(t==="create"&&!r&&(i?.nodePathSegment||i?.localePathSegments)&&n?.name){let p=new pAe({apiKey:a.apiKey,apiHost:a.apiHost,projectId:a.projectId}),{path:m,nodeId:g}=await Aie({projectMapClient:p,compositionId:e,compositionName:n.name,nodePathSegment:i.nodePathSegment||"",parentNodeId:i.parentNodeId,localePathSegments:i.localePathSegments,allowedQueryStrings:i.allowedQueryStrings});return f.actionsTaken.push({success:!0,summary:`Created project map node at path: ${m}`}),{content:[{type:"text",text:JSON.stringify({...f,editUrl:s(e),projectMapNode:{path:m,nodeId:g}},null,2)}]}}return{content:[{type:"text",text:JSON.stringify({...f,editUrl:s(e)},null,2)}]}}function dE(t,e){return`${e.baseWebUrl}/dashboards/canvas/edit/${t}`}async function fE(t,e,n){return await n.toolInvoker.invoke("createFilterExpression",{...t,entityType:e})}var gAe={action:io.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:io.string().uuid().describe("UUID of the composition instance to create, update, delete, or duplicate"),patternId:io.string().uuid().describe("Composition pattern ID to create the composition from. Omit when not creating, or when creating a composition without a composition pattern.").optional(),instructions:wk.describe("Modification instructions for the composition. Omit for delete and duplicate.").optional(),projectMapNode:io.object({parentNodeId:io.string().uuid().describe("UUID of the parent node from searchProjectMapNodes. If omitted, the node will be a child of the root node.").optional(),nodePathSegment:io.string().describe('URL path segment for the node (e.g., "about-us", "products", ":productId" for dynamic matching). Use a slugified version of the name unless otherwise requested by the user. Omit if not creating a project map node.').optional(),localePathSegments:io.array(io.object({locale:io.string().describe('Locale code (e.g., "en-US", "fr-FR")'),pathSegment:io.string().describe("URL path segment for this locale")})).describe("Optional array of locale-specific path segments. Unspecified locales use the nodePathSegment. Do not use these for dynamic path segments.").optional(),allowedQueryStrings:io.array(io.object({name:io.string().describe("Query parameter name"),defaultValue:io.string().describe("Default value if not provided in the URL").optional()})).describe("Optional array of allowed query string parameters for this node").optional()}).describe("Attaches the new composition to a new node in the project map hierarchy. Omit to avoid creating a project map node, or if action is not create.").optional()};function Ese(t,e){t.tool("compositionAction","Creates, updates, or deletes a Uniform Composition",gAe,async n=>await uE({...n,isPattern:!1,getEditUrl:r=>dE(r,e),patternId:n.patternId,projectMapNode:n.projectMapNode,env:e}))}import*as In from"zod/v3";var hAe=In.object({field:In.string(),operator:In.string(),value:In.string().or(In.array(In.string()))}),vAe=In.object({filter:In.array(hAe),error:In.string().describe("An error message if the filter expression could not be created, otherwise an empty string"),sort:In.array(In.enum(["created_at_ASC","created_at_DESC","updated_at_ASC","updated_at_DESC","author_ASC","author_DESC","creator_ASC","creator_DESC","name_ASC","name_DESC","slug_ASC","slug_DESC"])),limit:In.number().min(1).max(100),offset:In.number().min(0),keyword:In.string(),locale:In.string().optional()}),Tc=In.object({searchExpressionPrompt:In.string().describe(`Describe what you are looking for, for example "created by me in the last week" or "type is article and headline contains breaking news" or "keyword search for breaking news".
|
|
5874
|
+
`).trimStart();n.on("*",(o,i)=>{console.debug(`\u26A1\uFE0F ${t}:${String(o)}`,{args:i,stack:r,subs:n.all.get(String(o))?.length??0})})}return n}var ps=(0,vse.default)(),sAe=!0,aAe="Twee",il=class t{#e={};rootNodeId;#r={};#o={};#n;#i={};#t=ase(aAe,sAe);#c;#u;#g;#d;#a;#s;constructor(e,n){let{metadata:r,startDirty:o}=n||{};this.#a=r??{},this.#s={_name:e?._name??"",_slug:e?._slug??null},this.#d=!o;let i=nr(e,s=>{this.#v({composition:s,ignoreRootOverrides:!0,preserveChildrenSlotSections:!0}),delete s._author,delete s._authorSubject,delete s._creator,delete s._creatorSubject});this.rootNodeId=i._id??$d(),this.#c=this.rootNodeId,this.#l({componentTree:i,nodeId:this.rootNodeId}),this.#n=i._overrides??{}}events=this.#t;exportTree(e){return this.exportSubtree(this.rootNodeId,e)}exportMetadata(){return this.#a}exportRootNodeMetadata(){return this.#s}get pristine(){return this.#d}set pristine(e){this.#d!==e&&(this.#d=e,this.#t.emit("pristineChanged",{pristine:e}))}get selectedBlockIdStack(){return this.#u}set selectedBlockIdStack(e){this.#u=e,this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.#u})}get selectedNodeId(){return this.#c}set selectedNodeId(e){this.#c!==e&&(this.#c=e,this.selectedParameterId=void 0,this.#t.emit("selectedNodeChanged",{selectedNodeId:e}))}get selectedParameterId(){return this.#g}set selectedParameterId(e){this.#g!==e&&(this.#g=e,this.#t.emit("selectedParameterChanged",{selectedParameterId:e}))}pushSelectedBlockId(e){this.selectedBlockIdStack=this.selectedBlockIdStack??[],this.selectedBlockIdStack?.push(e),this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.selectedBlockIdStack})}popSelectedBlockId(){this.#u?.pop(),this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.selectedBlockIdStack})}getNodeById(e){return this.#e[e]}getNodesIndex(){return this.#e}getBlockNodeValueById(e){let n=oI(this.exportSubtree(e),e),r=this.#e[e]?.thumbnailUrl;return r&&n&&(n._thumbnail=r),n}getNodeThumbnail(e){return this.#e[e]?.thumbnailUrl}updateNodeThumbnail(e,n){this.#e[e]&&this.updateNode({nodeId:e,updateMetadata:r=>{r.thumbnailUrl=n},doNotSetDirty:!0})}getNodeChildren(e){let n=this.#r[e];if(n)return n}getNodeProperty(e,n){return aI(this.#o,[e,n])}getNodeProperties(e){return this.#o[e]??{}}insertNode({node:e,parentNodeId:n,parentSlot:r,targetIndexInSlot:o,overrideNodeId:i}){let s=i??$d();if(!this.#T(n))throw new Error("Cannot insert component into a read-only pattern slot unless it is within a slot section");let l={nodeId:s,parentId:n,value:t.#E(e),isExpandedInUI:!0,propertyValueLocalizability:{}};return this.#S({node:l,parentNodeId:n,parentSlot:r,targetIndexInSlot:o}),this.#m({nodeId:s,destinationParentId:n,destinationSlotName:r}),this.pristine=!1,this.#t.emit("nodeChanged",{changedNode:l,oldValue:void 0,type:"new"}),this.#t.emit("childrenChanged",{parentId:n,slotOrBlockName:r,newChildIds:this.#r[n][r],type:"slot"}),s}upsertBlockNode({nodeId:e,property:n,index:r,entry:o}){let i=this.#w({nodeId:e,property:n,index:r,entry:o});return this.pristine=!1,this.#t.emit("childrenChanged",{parentId:e,slotOrBlockName:n,newChildIds:this.#o[e]?.[n]?.value,type:"block"}),i}updateRootMetadata(e){let n={...this.#a};this.#a={...this.#a,...e},this.pristine=!1,this.#t.emit("metadataChanged",{metadata:this.#a,oldValue:n})}updateRootNode({update:e,doNotSetDirty:n}){let r={...this.#s};this.#s={...this.#s,...e},n||(this.pristine=!1),this.#t.emit("rootNodeMetadataChanged",{metadata:this.#s,oldValue:r})}insertPattern({parentNodeId:e,parentSlot:n,pattern:r,targetIndexInSlot:o,patternInstanceId:i}){let s=i??$d();if(this.#e[s])throw new Error(`Node with ID '${s}' already exists. Pattern nodes must have unique IDs. Did you mean to move or duplicate this pattern instead?`);let a=this.#b(r,s,!1);return this.#f({nodeId:a,parentNodeId:e,parentSlot:n,targetIndexInSlot:o}),this.#m({nodeId:a,destinationParentId:e,destinationSlotName:n}),this.pristine=!1,this.visitNodeAndDescendants(a,l=>{this.#t.emit("nodeChanged",{changedNode:l,oldValue:void 0,type:"new"})}),this.#t.emit("childrenChanged",{parentId:e,slotOrBlockName:n,newChildIds:this.#r[e][n],type:"slot"}),a}unlinkPattern(e){let n=this.#e[e];if(!n)throw new Error(`Node ${e} does not exist`);if(!n.value._pattern)throw new Error(`Node ${e} is not a pattern`);let r=n.value._patternDataResources||n.value._dataResources,o=Xie(n.value),i=a=>{a.partOfNestedPattern||(this.updateNode({nodeId:a.nodeId,updateComponent:l=>{delete l._pattern,delete l._patternError,delete l._overrides},updateMetadata:l=>{delete l.partOfPattern,delete l.partOfNestedPattern},doNotSetDirty:!0,ignoreOverrides:!0}),this.#n[a.nodeId]&&(this.#n=nr(this.#n,l=>{delete l[a.nodeId]})))};this.visitNodeAndDescendants(e,i);let s=a=>{a.partOfNestedPattern&&this.updateNode({nodeId:a.nodeId,updateMetadata:l=>{l.partOfPattern=l.partOfNestedPattern,delete l.partOfNestedPattern},doNotSetDirty:!0,ignoreOverrides:!0})};this.visitNodeAndDescendants(e,s),r&&(this.updateNode({nodeId:this.rootNodeId,updateDataResources:a=>Object.entries(o??{}).filter(([l])=>!(l in(a??{}))).map(([l,c])=>{let{source:u,...d}=c;return{type:"set",name:l,value:d}})}),this.updateNode({nodeId:n.nodeId,updateComponent:a=>{delete a._patternDataResources},updateDataResources:"removeAll",doNotSetDirty:!0,ignoreOverrides:!0})),this.pristine=!1}convertToPattern({existingNodeId:e,pattern:n}){let r=this.#e[e],o=r?.parentId;if(!r)throw new Error(`Node ${e} does not exist`);let i=this.#b(n,e,!0);this.#e[i]=nr(this.#e[i],a=>{a.parentId=o}),this.pristine=!1;let s=this.#e[i];this.#t.emit("nodeChanged",{changedNode:s,oldValue:r,type:"new"}),Object.entries(this.#r[i]??{}).forEach(([a,l])=>{this.#t.emit("childrenChanged",{newChildIds:l,parentId:i,slotOrBlockName:a,type:"slot"})})}copyNodeToClipboard(e){let n=this.exportSubtree(e,{keepPatternData:!1}),r=this.exportSubtree(e,{keepPatternData:!0}),o=[];Ec(r,({node:a})=>{a._id&&o.push(a._id)}),Ec(n,({node:a})=>{a._id&&(a._overrides&&delete a._overrides,"_name"in a&&delete a._name,"_slug"in a&&delete a._slug)});let i=this.#h(),s=Object.entries(i??{}).reduce((a,[l,c])=>(o.some(u=>l.includes(u))&&(a[l]=c),a),{});return{format:"uniform/copied-component-subtree-1.0",componentData:n,overrides:Object.keys(s).length?s:void 0,pasteAs:this.getNodeById(e)?.isBlock?"block":void 0}}async pasteNodeFromClipboard({parentNodeId:e,parentSlot:n,targetIndexInParent:r,clipboard:o,resolvePattern:i}){let s=ps(o),a=async c=>{c._pattern&&l.push((async()=>{let u=await i(c._pattern);if(!u){console.debug(`Pasted pattern ${c._pattern} not found, skipping`);return}let d=this.#x(u,c._id);Object.assign(c,d)})())},l=[];return Ec(s.componentData,({node:c})=>{a(c)}),s.overrides&&Object.values(s.overrides).forEach(c=>{c.slots&&Object.values(c.slots).forEach(u=>{u.forEach(d=>{Ec(d,({node:f})=>{a(f)})})})}),await Promise.all(l),this.#_(s.componentData,{parentId:e,parentName:n,parentType:o.pasteAs==="block"?"block":"slot",targetIndexInParent:r},s.overrides)}enableLocale(e){this.updateNode({nodeId:this.rootNodeId,updateComponent:n=>{let r=n;r._locales??=[];let o=[...new Set([...r._locales,...Array.isArray(e)?e:[e]])];r._locales=o}})}disableLocale(e){this.updateNode({nodeId:this.rootNodeId,updateComponent:o=>{let i=o;i._locales=i._locales?.filter(s=>s!==e)}});let n=[],r=o=>{this.getNodeProperty(o.nodeId,Pb)?.value===e&&!o.partOfPattern&&n.push(o.nodeId);let s=this.getNodeProperties(o.nodeId);Object.entries(s).forEach(([l,c])=>{let u=c;l!==_d&&(o.partOfPattern?this.isPatternPropertyOverridden(o.nodeId,l,e)&&this.resetPatternPropertyOverride(o.nodeId,l,e):(u?.localesConditions?.[e]?.forEach((d,f)=>{this.updateNodeProperty({nodeId:o.nodeId,property:l,value:void 0,source:"other",locale:e,conditionIndex:f,conditionDefinition:null})}),u?.locales?.[e]!==void 0&&this.updateNodeProperty({nodeId:o.nodeId,property:l,value:void 0,source:"other",locale:e,conditionIndex:-1})))});let a=this.getNodeProperty(o.nodeId,_d);if(a?.value){let l=ise(a.value,e);if(l===null)n.push(o.nodeId);else if(l===void 0||!Dr(a.value,l)){let c=!o.partOfPattern,u=Op(o.value._overridability,_d)==="yes";(c||u)&&this.updateNodeProperty({nodeId:o.nodeId,property:_d,value:l?()=>l:void 0,source:"other",locale:void 0,conditionIndex:-1})}}};this.visitNodeAndDescendants(this.rootNodeId,r),n.forEach(o=>{this.deleteNode(o)})}copyValuesToLocalePlan({sourceLocale:e,destinationLocale:n,doNotCopyDescendants:r=!1,startingNodeId:o=this.rootNodeId,specificPropertyId:i}){let s=new Map,a=c=>{if(c.value.type===nAe&&!c.partOfPattern){let d=this.getNodeChildren(c.nodeId)?.[cI]??[],f=d.map(g=>this.getNodeProperty(g,Pb)),p=f.findIndex(g=>g?.value===n);if(p>=0){let g=d[p];Nd(s,g).actions.push({type:"deleteLocalizedNode"})}let m=f.findIndex(g=>g?.value===e);if(m>=0){let g=d[m];Nd(s,g).actions.push({type:"duplicateLocalizedNode",targetIndexInSlot:p})}}if(s.get(c.nodeId)?.actions.some(d=>d.type==="deleteLocalizedNode"))return;let u=i?{[i]:this.getNodeProperty(c.nodeId,i)}:this.getNodeProperties(c.nodeId);Object.entries(u).forEach(([d,f])=>{if(f===void 0)return;let p=!c.partOfPattern,m=Op(c.value._overridability,d)==="yes";if(!(p||m))return;if(d===_d){let w=nse(f.value,e,n);w===null?Nd(s,c.nodeId).actions.push({type:"deleteLocalizedNode"}):w&&Nd(s,c.nodeId).actions.push({type:"updateVisibilityCriteria",targetValue:w})}let h=f.locales?.[e],v=f.locales?.[n];(!h||!v||!Dr(h,v))&&(h!==void 0?Nd(s,c.nodeId).actions.push({type:"copyPropertyValue",propertyId:d,sourceValue:h,targetValue:v,conditionIndex:-1}):v!==void 0&&Nd(s,c.nodeId).actions.push({type:"deletePropertyValue",propertyId:d,sourceValue:h,targetValue:v,conditionIndex:-1}));let y=f.localesConditions?.[e],b=f.localesConditions?.[n];y?.forEach((w,E)=>{let T=f.localesConditions?.[n]?.[E];(!w||!T||!Dr(w,T))&&Nd(s,c.nodeId).actions.push({type:"copyPropertyValue",propertyId:d,sourceValue:w.value,targetValue:T,conditionIndex:E,conditionDefinition:w.when})});let S=y?.length??0,C=b?.length??0;if(S<C){let w=Nd(s,c.nodeId);for(let E=S;E<C;E++)w.actions.push({type:"deletePropertyValue",propertyId:d,sourceValue:y?.[E],targetValue:b?.[E],conditionIndex:E})}})},l=this.#e[o];if(!l)throw new Error(`Node ${o} does not exist`);return a(l),!i&&!r&&this.visitDescendants(l.nodeId,a),{nodePlans:Array.from(s.values()),sourceLocale:e,destinationLocale:n}}async copyValuesToLocaleExecute({resolvePattern:e,plan:{sourceLocale:n,destinationLocale:r,nodePlans:o}}){let i=`copyLocaleExecute: ${r}`;console.time(i);for(let{nodeId:s,actions:a}of o)for(let l of a)switch(l.type){case"copyPropertyValue":{let c=this.getNodeProperty(s,l.propertyId)?.type,u=l.sourceValue;c==="contentReference"&&(u=this.prepareContentReferenceWrite({nodeId:s,propertyId:l.propertyId,destinationLocale:r,conditionIndex:l.conditionIndex,sourceValue:l.sourceValue})),this.updateNodeProperty({nodeId:s,property:l.propertyId,source:"other",locale:r,value:()=>u,type:c,conditionIndex:l.conditionIndex,conditionDefinition:l.conditionDefinition});break}case"deletePropertyValue":{this.updateNodeProperty({nodeId:s,property:l.propertyId,source:"other",locale:r,value:void 0,conditionIndex:l.conditionIndex,conditionDefinition:null});break}case"deleteLocalizedNode":{this.deleteNode(s);break}case"duplicateLocalizedNode":{let c=await this.duplicateNode(s,e);this.updateNodeProperty({nodeId:c,locale:void 0,conditionIndex:-1,type:"localeSelect",property:Pb,source:"other",value:()=>r});let u=this.copyValuesToLocalePlan({sourceLocale:n,destinationLocale:r,startingNodeId:c});this.copyValuesToLocaleExecute({plan:u,resolvePattern:e}),l.targetIndexInSlot!==void 0&&this.moveNode({movedNodeId:c,parentNodeId:this.#e[s].parentId,parentSlot:cI,targetIndexInSlot:l.targetIndexInSlot});break}case"updateVisibilityCriteria":{this.updateNodeProperty({nodeId:s,property:_d,source:"other",locale:void 0,conditionIndex:-1,value:()=>l.targetValue});break}default:throw new Error(`Unhandled action type ${l.type}`)}console.timeEnd(i)}updateNode({nodeId:e,updateComponent:n,updateDataResources:r,updateMetadata:o,doNotSetDirty:i,ignoreOverrides:s}){let a=this.#e[e];if(!a)throw new Error(`Update target node ID ${e} did not exist!`);let l=nr(a,f=>{if(o&&(o(f),f.nodeId=e,f.value=a.value,f.parentId=a.parentId),n){if(n(f.value),"slots"in f.value)throw new Error("Do not set `slots` on a Twee node, insert child nodes instead.");if("parameters"in f.value)throw new Error("Do not set `parameters` on a Twee node, use updateProperties option instead.")}if(r){let p=typeof r=="function"?r(f.value._dataResources):r;if(p==="removeAll")delete f.value._dataResources;else for(let m of p){let g=s?!1:f.nodeId!==this.rootNodeId&&f.value._pattern;switch(m.type){case"set":g&&(this.#n=nr(this.#n,h=>{h[e]??={},h[e].dataResources??={},h[e].dataResources[m.name]=m.value})),f.value._dataResources??={},f.value._dataResources[m.name]=m.value;break;case"remove":g&&(this.#n=nr(this.#n,h=>{delete h[e]?.dataResources?.[m.name]})),delete f.value._dataResources?.[m.name];break;case"reset":{let h=this.#i[e]?.dataResources?.[m.name];f.value._dataResources&&(h&&Object.keys(h).length>0?f.value._dataResources[m.name]=h:delete f.value._dataResources[m.name]),this.#n=nr(this.#n,v=>{delete v[e]?.dataResources?.[m.name]})}break;default:throw new Error(`Unhandled data resource action ${m?.type}`)}}}}),c=!!(a.partOfPattern&&!a.value._patternError),u=a.value.variant!==l.value.variant,d=a.value._overridability?.variants??!1;!s&&c&&u&&d&&(this.#n=nr(this.#n,f=>{f[e]??={},f[e].variant=l.value.variant})),this.#e[e]=l,i||(this.pristine=!1),this.#t.emit("nodeChanged",{changedNode:l,type:"update",oldValue:a})}updateNodeProperty({nodeId:e,property:n,value:r,source:o,locale:i,type:s,doNotSetDirty:a=!1,ignoreOverrides:l=!1,conditionIndex:c,conditionDefinition:u}){let d=this.#e[e];if(!d)throw new Error(`Update target node ID ${e} did not exist!`);if(c<0&&u)throw new Error("Condition definition provided for non-conditional value");let f=!!(d.partOfPattern&&!d.value._patternError),p=[e,n],m=aI(this.#o,p);if(!m&&r==null)return;let g=mse({locale:i,property:m,conditionIndex:c}),h=i?m?.localesConditions?.[i]?.[c]:m?.conditions?.[c],v=typeof r=="function"?nr(g,w=>r(w)):r,y=s??m?.type;if(!y)throw new Error(`Cannot add parameter ${n} to node ${e} without specifying a type`);let b={...m,type:y},S=!1;b=nr(b,w=>{v===void 0&&c<0?S=!iE({locale:i,property:w,conditionIndex:c}):u===null&&c>=0?S=!iE({locale:i,property:w,conditionIndex:c}):rI({locale:i,property:w,newPropertyValue:v,conditionIndex:c,conditionDefinition:u??h?.when??{clauses:[]}})}),S&&(b=void 0);let C=f&&Op(d.value._overridability,n)==="yes";if(f&&!C&&!l)throw new Error(`Cannot override parameter ${n} on node ${e} because it is not marked as overridable on the pattern (${d.partOfPattern})`);if(C&&(this.#i[e]?.parameters?.[n]||(this.#i=nr(this.#i,E=>{E[e]??={parameters:{},dataResources:{}},E[e].parameters[n]=m??{type:y,value:null}}))),!l&&C){let w=this.#n[e]?.parameters?.[n];this.#n=nr(this.#n,E=>{let $=v==null||b===void 0?null:v,_=w??{type:b?.type??m?.type??"unknown",value:m?.value,conditions:m?.conditions,locales:i&&m?.locales?.[i]?{[i]:m.locales[i]}:void 0,localesConditions:i&&m?.localesConditions?.[i]?{[i]:m.localesConditions[i]}:void 0},N=nr(_,R=>{u===null&&c>=0?iE({locale:i,property:R,conditionIndex:c}):rI({locale:i,property:R,newPropertyValue:$,conditionIndex:c,conditionDefinition:u??h?.when??{clauses:[]}})});(0,Ip.set)(E,`/${e}/parameters/${n}`,N)}),w||this.#t.emit("propertyOverrideCreated",{nodeId:e,property:n})}v===null?(0,Ip.remove)(this.#o,p):(this.#o[e]??={},(0,Ip.set)(this.#o,p,b)),a||(this.pristine=!1),this.#t.emit("nodeParameterChanged",{nodeId:e,parameter:n,locale:i,conditionIndex:c,value:b,previousValue:m,type:r?m?"update":"new":"delete",conditionDefinition:u,source:o})}isPatternPropertyOverridden(e,n,r,o){let i=this.getNodeById(e);if(!i||Op(i.value._overridability,n)==="no")return!1;let s=this.#n[e]?.parameters?.[n];return s?r?(o===void 0||o===!0)&&s.localesConditions?.[r]!==void 0||(o===void 0||o===!1)&&s.locales?.[r]!==void 0:(o===void 0||o===!0)&&s.conditions!==void 0||(o===void 0||o===!1)&&s.value!==void 0:!1}getPatternPropertyOverrideDefaultValue(e,n,r){let o=this.#i[e]?.parameters?.[n];if(!o)return{exists:!1};if(r&&o.locales?.[r])return{exists:!0,value:o,sourceLocale:r};if(o.value!==void 0)return{exists:!0,value:o,sourceLocale:void 0};let i=Object.keys(o.locales??{})[0];return i?{exists:!0,value:o,sourceLocale:i}:{exists:!1}}resetPatternPropertyOverride(e,n,r){let o=[-1];this.#n=nr(this.#n,s=>{let a=s[e]?.parameters?.[n];if(a)if(r){delete a.locales?.[r];let l=a.localesConditions?.[r];l&&(l.forEach((c,u)=>{o.push(u)}),delete a.localesConditions?.[r]),a.locales&&Object.keys(a.locales).length===0&&delete a.locales,a.localesConditions&&Object.keys(a.localesConditions).length===0&&delete a.localesConditions,Object.keys(a.locales??{}).length===0&&Object.keys(a.localesConditions??{}).length===0&&delete s[e]?.parameters?.[n]}else{let l=a.conditions;l&&l.forEach((c,u)=>{o.push(u)}),delete s[e].parameters?.[n]}});let i=this.getPatternPropertyOverrideDefaultValue(e,n,r);!i.exists||i.value===null?this.updateNodeProperty({nodeId:e,property:n,value:void 0,source:"reset",locale:r,ignoreOverrides:!0,doNotSetDirty:!1,conditionIndex:-1}):o.forEach(s=>{let a=mse({locale:i.sourceLocale,property:i.value,conditionIndex:s,strict:!0});this.updateNodeProperty({nodeId:e,property:n,value:a===void 0?void 0:()=>a,source:"reset",locale:r,type:i.value?.type,ignoreOverrides:!0,doNotSetDirty:!1,conditionIndex:s,conditionDefinition:(r?i.value?.localesConditions?.[r]?.[s]?.when:i.value?.conditions?.[s]?.when)??null})}),this.#t.emit("propertyOverrideReset",{nodeId:e,property:n,usedPatternDefault:i!==void 0})}async duplicateNode(e,n){let r=this.getParentInfo(e);if(!r)throw new Error("Cannot duplicate root node or parentless block");let o=this.copyNodeToClipboard(e);return await this.pasteNodeFromClipboard({parentNodeId:r.parentId,parentSlot:r.parentName,resolvePattern:n,targetIndexInParent:r.targetIndexInParent+1,clipboard:o})}moveNode({movedNodeId:e,parentNodeId:n,parentSlot:r,targetIndexInSlot:o}){if(!this.#e[e])throw new Error(`Cannot move node ${e} - it does not exist`);let s=this.getParentInfo(e);if(!s)throw new Error("Cannot move root node");this.#r[s.parentId][s.parentName].splice(s.targetIndexInParent,1),this.#y(s.parentId,e),this.#f({nodeId:e,parentNodeId:n,parentSlot:r,targetIndexInSlot:o}),this.#m({nodeId:e,destinationParentId:n,destinationSlotName:r,sourceSlotName:s.parentName}),this.pristine=!1,this.#t.emit("childrenChanged",{parentId:n,slotOrBlockName:r,newChildIds:this.#r[n][r],type:"slot"}),this.#t.emit("childrenChanged",{parentId:s.parentId,slotOrBlockName:s.parentName,newChildIds:this.#r[s.parentId][s.parentName],type:"slot"})}deleteNode(e,n){let r=this.getParentInfo(e);if(!r&&!n)throw new Error("Cannot delete root node");r&&!n&&(this.#r[r.parentId][r.parentName].splice(r.targetIndexInParent,1),this.#r[r.parentId][r.parentName].length===0&&delete this.#r[r.parentId][r.parentName],this.selectedNodeId===e&&(this.selectedNodeId=r.parentId),this.#y(r.parentId,e),this.#t.emit("childrenChanged",{parentId:r.parentId,slotOrBlockName:r.parentName,newChildIds:this.#r[r.parentId][r.parentName]??[],type:"slot"})),delete this.#e[e],this.#t.emit("nodeDeleted",{deletedNodeId:e}),this.pristine=!1}#y(e,n){this.#n=nr(this.#n,r=>{let o=r[e]?.slots;o&&Object.keys(o).forEach(i=>{o[i]=o[i].filter(({_id:s})=>s!==n),o[i].length===0&&delete o[i]})})}#h(){if(Object.keys(this.#n).length>0){let e=ps(this.#n);return Object.entries(e).forEach(([r,o])=>{let i=!0;if(!this.#e[r]){delete e[r];return}if(o.parameters){let s=Object.entries(o.parameters);s.forEach(([a,l])=>{let c=hse(l);c?(o.parameters[a]=c,i=!1):delete o.parameters[a]}),s.length===0&&delete o.parameters}o.slots&&Object.entries(o.slots).forEach(([a,l])=>{if(l.length){let c=l.filter(u=>u._id).map(u=>this.exportSubtree(u._id));c?(o.slots[a]=c,i=!1):delete o.slots[a]}else delete o.slots[a]}),o.variant!==void 0&&(i=!1),o.dataResources&&Object.keys(o.dataResources).length>0&&(i=!1),i&&delete e[r]}),Object.keys(e).length===0&&(e=void 0),e}}exportSubtree(e,n){let{keepPatternData:r=!1}=n??{},o=this.#e[e];if(!o)throw new Error(`Node ${e} to export is not found`);let i=ps(o);if(e===this.rootNodeId){let l=this.#h();l?i.value._overrides=l:delete i.value._overrides;let c=i.value;c._name=this.#s._name,this.#s._slug&&(c._slug=this.#s._slug)}let s=[i],a=new Set;for(;s.length>0;){let l=s.pop();if(a.has(l.nodeId))throw new Error("Circular reference detected in the composition tree with node ID "+l.nodeId);if(a.add(l.nodeId),l.value._id=l.nodeId,!r&&(delete l.value._patternDataResources,delete l.value._patternOverrides,l.value._pattern&&l.value._dataResources)){let d=!1;Object.keys(l.value._dataResources).forEach(f=>{i.value._overrides?.[l.nodeId]?.dataResources?.[f]?delete l.value._dataResources[f]:d=!0}),d||delete l.value._dataResources}let c=this.#o[l.nodeId];if(c&&(r||!l.partOfPattern)){let d={},f=!1;Object.entries(c).forEach(([p,m])=>{if(m?.type===Ys&&Array.isArray(m.value)){let g=m.value,h=[];g.forEach(v=>{let y=this.exportSubtree(v,n),b=oI(y,v),S=this.#e[v]?.thumbnailUrl;S&&(b._thumbnail=S),h.push(b)}),d[p]={value:h,type:Ys},f=!0}else{let g=hse(m);g&&(d[p]=g,f=!0)}}),f&&(l.value.parameters=d)}let u=this.#r[l.nodeId];!u||l.partOfPattern&&!r||Object.entries(u).forEach(([d,f])=>{f.forEach((p,m)=>{let g=this.#e[p];if(!g)throw new Error("Insanity detected.");let h=ps(g),v=l.value;v.slots=v.slots||{},(0,Ip.set)(l,["value","slots",d,m.toString(10)],h.value),s.push(h)})})}return this.#D(i.value),i.value}#S({parentNodeId:e,parentSlot:n,targetIndexInSlot:r,node:o}){if(!this.#e[e])throw new Error("Parent ID to insert under did not exist!");if(this.#e[o.nodeId])throw new Error(`Node with ID '${o.nodeId}' already exists. Nodes must have unique IDs. Did you mean to move or duplicate this node instead?`);this.#e[o.nodeId]=o,this.#f({nodeId:o.nodeId,parentNodeId:e,parentSlot:n,targetIndexInSlot:r})}#f({nodeId:e,parentNodeId:n,parentSlot:r,targetIndexInSlot:o}){let i=this.#e[n],s=this.#r[n]??={},a=s[r]??=[];typeof o<"u"?a.splice(o,0,e):a.push(e),i?.value.type===sE&&(this.#n=nr(this.#n,l=>{l[n]=l[n]??{},l[n].slots={[rAe]:a.map(c=>({_id:c,type:this.#e[c].value.type}))}})),this.#e[e]=nr(this.#e[e],l=>{l.parentId=n})}#w({nodeId:e,property:n,index:r,entry:o}){let i=this.getNodeById(e);if(!i)throw new Error("Node doesn't exist");let a={nodeId:o._id??$d(),value:{type:o.type,_dataResources:o._dataResources},isBlock:!0,parentId:e,thumbnailUrl:o._thumbnail,propertyValueLocalizability:{}},l=this.getNodeProperty(i.nodeId,n);if(l&&l.type!==Ys)throw new Error("Parameter already exists and isn't a block parameter");let c=this.#e[a.nodeId];this.#e[a.nodeId]=a;let u=ps(this.getNodeProperty(i.nodeId,n)?.value?.filter(d=>this.getNodeById(d))??[]);if(typeof r<"u"){if(r<0)throw new Error("parameter index cannot be less than 0");let d=-1;if(u.forEach((f,p)=>{f===a.nodeId&&(d=p)}),r>u.length+(d===-1?1:0))throw new Error(`Parameter index ${r} outside current index bounds.`);d>-1&&d!==r&&(u=u.filter(f=>f!==a.nodeId),u.splice(r,0,a.nodeId))}else u.push(a.nodeId);return Object.entries(o?.fields??{}).forEach(([d,f])=>{if(f.type===Ys&&Array.isArray(f.value)){let p=f.value,m=[];p.forEach(g=>{let h=g._id??$d();this.#l({nodeId:h,componentTree:iI(g)}),this.#e[h].isBlock=!0,this.#e[h].parentId=a.nodeId,this.#e[h].thumbnailUrl=g._thumbnail,m.push(h)}),this.updateNodeProperty({nodeId:a.nodeId,property:d,type:f.type,value:()=>m,source:"other",locale:void 0,conditionIndex:-1})}else this.updateNodeProperty({nodeId:a.nodeId,property:d,type:f.type,value:()=>f.value,source:"other",locale:void 0,conditionIndex:-1})}),this.updateNodeProperty({nodeId:i.nodeId,property:n,type:Ys,value:()=>u,source:"other",locale:void 0,conditionIndex:-1}),this.#t.emit("nodeChanged",{changedNode:i,oldValue:void 0,type:c?"update":"new"}),this.#t.emit("nodeParameterChanged",{nodeId:i.nodeId,parameter:n,previousValue:l,source:"other",type:c?"update":"new",locale:void 0,conditionIndex:-1,conditionDefinition:void 0,value:{type:Ys,value:u}}),{blockIds:u}}#l({componentTree:e,nodeId:n,partOfPattern:r,partOfNestedPattern:o,resetUids:i,isBlock:s,allowReplacement:a}){let{slots:l,parameters:c,_id:u,_overrides:d,...f}=e,p=r??f._pattern,m=f._pattern&&f._pattern!==p?f._pattern:o,g=n??(i?void 0:u)??$d();if(this.#e[g]&&!a)throw new Error(`Node with ID '${g}' already exists. Nodes must have unique IDs.`);let h={nodeId:g,value:f,partOfPattern:p,partOfNestedPattern:m,isBlock:s,propertyValueLocalizability:Object.entries(c??{}).reduce((v,[y,b])=>(v[y]=kx({definition:void 0,currentValue:b,lastUserChoice:void 0}),v),{})};return p&&(h.partOfPattern=p),this.#e[h.nodeId]=h,c&&Object.entries(c).forEach(([v,y])=>{let{connectedData:b,...S}=y,C=b?pse(fse(b)):y.value;if(y?.type===Ys&&Array.isArray(C)){let w=C,E=[];w?.forEach(T=>{let $={...T,_id:i?$d():T._id??$d()};if(this.#e[$._id])throw new Error(`Block node with ID '${$._id}' already exists. Block nodes must have unique IDs.`);return E.push($._id),this.#e[$._id]={nodeId:$._id,value:{type:Ys},propertyValueLocalizability:{}},this.#l({componentTree:iI($),nodeId:$._id,allowReplacement:!0,partOfPattern:p,partOfNestedPattern:m}),this.#e[$._id].isBlock=!0,this.#e[$._id].parentId=h.nodeId,this.#e[$._id].thumbnailUrl=$._thumbnail,this.#e[$._id]}),C=E}this.#o[h.nodeId]=this.#o[h.nodeId]??{},(0,Ip.set)(this.#o,[h.nodeId,v],{...S,value:C})}),l&&Object.entries(l).forEach(([v,y])=>{let b=y.map(S=>{if(this.#e[S._id??""]?.isBlock)return;let C=this.#l({componentTree:S,partOfPattern:f.type===sE?void 0:p,partOfNestedPattern:f.type===sE?void 0:m,resetUids:i});return this.#e[C].parentId=h.nodeId,C});this.#r[h.nodeId]=this.#r[h.nodeId]??{},this.#r[h.nodeId][v]=b.filter(S=>S)}),h.nodeId}#b(e,n,r){let o=this.#x(e,n);return this.#l({componentTree:o,nodeId:n,allowReplacement:r})}#x(e,n){let r=ps(e);return this.#v({composition:r}),tE(r,n),r._pattern=e._id,delete r._id,delete r._name,delete r._slug,delete r._overrides,delete r._locales,delete r._author,delete r._authorSubject,delete r._creator,delete r._creatorSubject,r._dataResources&&(r._patternDataResources=ps(r._dataResources),delete r._dataResources),r}getParentInfo(e){let{parentId:n,isBlock:r}=this.#e[e]??{};if(!n)return;let o=this.#e[n];if(o)if(r)for(let[i,s]of Object.entries(this.#o[n]??{})){if(s?.type!==Ys)continue;let a=Array.isArray(s.value)?s.value:[],l=a.indexOf(e);if(l>=0)return{value:o.value,parentId:n,parentName:i,targetIndexInParent:l,parentChildIds:a,parentType:"block"}}else{let i=this.#r[n];if(!i&&!r)throw new Error("Sanity failed; parent had no children!");for(let[s,a]of Object.entries(i??{})){let l=a.indexOf(e);if(l>=0)return{value:o.value,parentId:n,parentName:s,targetIndexInParent:l,parentChildIds:a,parentType:"slot"}}return}}static#E(e){return nr(e,r=>{delete r.slots,delete r.parameters})}#T(e){let n=e;for(;n;){let r=this.getNodeById(n);if(!r)break;if(r.value._pattern)return!1;if(r.value.type===sE||!r.partOfPattern)return!0;n=r.parentId}return!0}#_(e,n,r){let i={...this.#h(),...r},s;if(this.#n=nr(this.#n,l=>{this.#i=nr(this.#i,c=>{s=oE(e,i,(u,d,f)=>{l[u]=d,c[u]=this.#i[f]})})}),!s)throw new Error("Failed to duplicate component");s=nr(s,l=>{l._overrides=ps(this.#n),this.#v({composition:l,preserveChildrenSlotSections:!0})});let a=this.#l({componentTree:s,isBlock:n.parentType==="block"});if(n.parentType==="block"){let l=this.getNodeProperty(n.parentId,n.parentName)?.value??[],c=[...l.slice(0,n.targetIndexInParent),a,...l.slice(n.targetIndexInParent)];this.updateNodeProperty({nodeId:n.parentId,property:n.parentName,type:Ys,value:()=>c,locale:void 0,conditionIndex:-1,source:"other"}),this.#e[a].parentId=n.parentId,this.#t.emit("nodeChanged",{changedNode:this.getNodeById(a),type:"new",oldValue:void 0}),this.#t.emit("childrenChanged",{parentId:n.parentId,slotOrBlockName:n.parentName,newChildIds:c,type:"block"})}else{this.#f({nodeId:a,parentNodeId:n.parentId,parentSlot:n.parentName,targetIndexInSlot:n.targetIndexInParent}),this.#m({nodeId:a,destinationParentId:n.parentId,destinationSlotName:n.parentName}),this.#t.emit("childrenChanged",{parentId:n.parentId,slotOrBlockName:n.parentName,newChildIds:this.#r[n.parentId][n.parentName],type:"slot"});let l=c=>{this.#t.emit("nodeChanged",{changedNode:c,type:"new",oldValue:void 0})};this.visitNodeAndDescendants(a,l)}return this.pristine=!1,a}#v({composition:e,ignoreRootOverrides:n,preserveChildrenSlotSections:r}){this.#i=nr(this.#i,i=>{let s=nI({beforeApplyParameterOverride(c,u,d){i[c._id]??={parameters:{},dataResources:{}},i[c._id].parameters[u]=ps(d)},beforeApplyDataResourceOverride(c,u,d){c._dataResources?.[u]?.ignorePatternParameterDefault||(i[c._id]??={parameters:{},dataResources:{}},i[c._id].dataResources[u]=ps(d))}}),a=nI({beforeApplyParameterOverride(c,u,d,f){i[c._id]?.parameters[u]||(i[c._id]??={parameters:{},dataResources:{}},i[c._id].parameters[u]=ps(f??null))},beforeApplyDataResourceOverride(c,u,d,f){c._dataResources?.[u]?.ignorePatternParameterDefault||i[c._id]?.dataResources[u]||(i[c._id]??={parameters:{},dataResources:{}},i[c._id].dataResources[u]=ps(f))}});if(n){let{_overrides:c,...u}=e;Ec(u,({node:d})=>{s.visitNode(d)})}let l=n?a:s;Ec(e,({node:c})=>{l.visitNode(c)})});let o=Hie({preserveOwnSlotSections:!0,preserveChildrenSlotSections:r});Ec(e,i=>{o(i)})}visitNodeAndDescendants(e,n){let r=this.getNodeById(e);if(!r)throw new Error("Insanity detected.");n(r),this.visitDescendants(e,n)}visitDescendants(e,n){let r=this.#p(e,new Set);for(let o of r)n(...o)}async visitDescendantsAsync(e,n){let r=this.#p(e,new Set);for(let o of r)await n(...o)}*#p(e,n){let r=this.#e[e],o=this.#r[e]??{},i=Object.entries(this.#o[e]??{}).filter(([,s])=>s?.type===Ys)??[];if(!r)throw new Error("Insanity detected.");n.add(e);for(let[s,a]of i){let l=a.value??[];for(let c=0;c<l.length;c++){let u=l[c],d=this.#e[u];if(d){if(n.has(u)){console.error(`Detected parent/child cycle in composition, ID ${u} exists more than once. The traversal of descendants will be aborted for the cycle subtree.`);continue}yield[d,r,s,c];for(let f of this.#p(u,n))yield f}}}for(let[s,a]of Object.entries(o))for(let l=0;l<a.length;l++){let c=a[l],u=this.#e[c];if(u){if(n.has(c)){console.error(`Detected parent/child cycle in composition, ID ${c} exists more than once. The traversal of descendants will be aborted for the cycle subtree.`);continue}yield[u,r,s,l];for(let d of this.#p(c,n))yield d}}}#m({nodeId:e,destinationParentId:n,destinationSlotName:r,sourceSlotName:o}){let i=r,s=o===cse,a=i===cse,l=o===use,c=i===use,u=i===cI,d=this.getNodeProperty(e,lse);a&&d&&this.updateNodeProperty({nodeId:e,property:lse,value:void 0,source:"other",locale:void 0,conditionIndex:-1});let f=this.getNodeProperty(e,Fb);!a&&f&&this.updateNodeProperty({nodeId:e,property:Fb,value:void 0,source:"other",locale:void 0,conditionIndex:-1}),a&&!s&&this.#C({nodeId:e,siblingIds:this.getNodeChildren(n)?.[r]??[],selectExistingName:g=>this.getNodeProperty(g,Fb)?.value?.name,setName:g=>this.updateNodeProperty({nodeId:e,property:Fb,value:h=>h&&typeof h=="object"&&h!==null?{...h,name:g}:{name:g,crit:[]},source:"other",locale:void 0,conditionIndex:-1,type:Fb})}),c&&!l&&this.#C({nodeId:e,siblingIds:this.getNodeChildren(n)?.[r]??[],selectExistingName:g=>this.getNodeProperty(g,dse)?.value?.id,setName:g=>this.updateNodeProperty({nodeId:e,property:dse,value:h=>h&&typeof h=="object"&&h!==null?{...h,id:g}:{id:g},source:"other",locale:void 0,conditionIndex:-1,type:"testVariant"})});let p=this.getNodeProperty(e,Pb);!u&&p&&this.updateNodeProperty({nodeId:e,property:Pb,value:void 0,source:"other",locale:void 0,conditionIndex:-1});let m=this.getNodeProperty(e,_d);(a||u||c)&&m&&this.updateNodeProperty({nodeId:e,property:_d,value:void 0,source:"other",locale:void 0,conditionIndex:-1})}#C({nodeId:e,siblingIds:n,selectExistingName:r,setName:o}){let i=r(e),s=d=>n.some(f=>f===e?!1:r(f)===d),a=i&&s(i);if(i&&!a)return;let l=this.getNodeById(e)?.value.type;if(!l)throw new Error("Insanity detected.");let c=0,u=lI(e,l,c);do u=lI(e,l,c),c++;while(s(u));o(u)}prepareContentReferenceWrite({nodeId:e,propertyId:n,destinationLocale:r,conditionIndex:o,sourceValue:i}){let s=this.#$({value:i,dataResources:this.#e[e]?.value._dataResources});if(!s)return i;let{dataResource:a,isSingleEntryReference:l}=s,c=Hp(e,n,r==="${locale}"?void 0:r,o);this.updateNode({nodeId:e,updateDataResources:[{name:c,type:"set",value:{...a,variables:{...a?.variables,locale:r}}}]});let u=`/${c}/entries${l?"/0":""}`;return pse(fse({syntax:"jptr",pointer:u}))}#$({value:e,dataResources:n}){if(typeof e!="string")return;let r;gse(e,(a,l)=>{l==="variable"&&(r=a)});let o=r?sI(r):void 0;if(!o)return;let i=o.dataResource,s=n?.[i];if(s)return{dataResource:s,dataResourceName:i,isSingleEntryReference:o.dataExpression?.endsWith("/0")}}#N(e){if(typeof e!="string")return;let n;return gse(e,(o,i)=>{i==="variable"&&(n=o)}),(n?sI(n):void 0)?.dataResource}#D(e){let n=new Set,r=[],o=({node:i})=>{let s=oAe(i),a=i._dataResources;if(a)for(let[l,c]of Object.entries(a))c.type===cl&&r.push({dataResources:a,dataResourceKey:l});if(s)for(let l of Object.values(s))l.type==="contentReference"&&iAe(l,({value:c})=>{let u=this.#N(c);u&&n.add(u)})};if(Ec(e,o),"_overrides"in e&&e._overrides)for(let[,i]of Object.entries(e._overrides))Ec({type:e.type,...i,_dataResources:i.dataResources},o);for(let{dataResources:i,dataResourceKey:s}of r)n.has(s)||delete i[s]}};function hse(t){return t?.value===void 0&&!t?.conditions&&!t?.locales&&!t?.localesConditions?null:t}function Nd(t,e){return lAe(t,e,()=>({nodeId:e,actions:[]}))}function lAe(t,e,n){return t.has(e)||t.set(e,n()),t.get(e)}import{CANVAS_DRAFT_STATE as cE,CanvasClient as fAe}from"@uniformdev/canvas";import{ProjectMapClient as pAe}from"@uniformdev/project-map";import{produce as mAe}from"immer";function yse(t){return t.reduce((e,n)=>(e[n._id]={id:n._id,type:n.type,name:n._name},e),{})}import{CANVAS_DRAFT_STATE as bse,CanvasClient as uI,ContentClient as xse,ProjectClient as Cse}from"@uniformdev/canvas";function Sse(t){let e,n,r;return{fetchProjectGuidance:async()=>(e!==void 0||(e=(await new Cse(t).get({projectId:t.projectId}))?.guidance),e),fetchDefinitions:async()=>{if(n!==void 0)return n;let i=await new uI(t).getComponentDefinitions({limit:1e3,includeSystem:!0});return n=Object.fromEntries(i.componentDefinitions.map(s=>[s.id,s])),n},fetchPatterns:async()=>{if(r!==void 0)return r;let i=await new uI(t).getCompositionList({limit:1e3,pattern:!0,patternType:"component",resolveData:!1,skipPatternResolution:!0,skipOverridesResolution:!0,state:bse});return r=yse(i.compositions.map(s=>s.composition)),r},resolvePatternData:async o=>(await new uI(t).getCompositionById({compositionId:o,state:bse,skipPatternResolution:!1,skipOverridesResolution:!0,withComponentIDs:!0,skipDataResolution:!0,withWorkflowDefinition:!0,releaseId:void 0}))?.composition,getToolClient:async()=>t.toolInvoker,getDimensionGuidance:async()=>{}}}function wse(t){let e,n;return{fetchProjectGuidance:async()=>(e!==void 0||(e=(await new Cse(t).get({projectId:t.projectId}))?.guidance),e),fetchDefinitions:async()=>{if(n!==void 0)return n;let o=await new xse(t).getContentTypes({limit:1e3});return n=Object.fromEntries(o.contentTypes.map(i=>[i.id,Qie(i)])),n},fetchPatterns:async()=>({}),resolvePatternData:async r=>{let i=(await new xse(t).getEntries({entryIDs:[r],skipPatternResolution:!1,skipOverridesResolution:!0,withComponentIDs:!0,skipDataResolution:!0,withWorkflowDefinition:!0,releaseId:void 0}))?.entries[0];return Rb(i).composition},getToolClient:async()=>t.toolInvoker,getDimensionGuidance:async()=>{}}}import{parseHTML as cAe}from"linkedom/worker";function uAe(t){let e=Object.getPrototypeOf(t.body);for(;e&&!Object.getOwnPropertyDescriptor(e,"style");)e=Object.getPrototypeOf(e);let n=e?Object.getOwnPropertyDescriptor(e,"style"):void 0;if(!n?.get||e.__stylePatched)return;let r=n.get;Object.defineProperty(e,"style",{get(){let o=r.call(this);return new Proxy(o,{get(i,s){if(typeof s=="string"){let a=i[s];return typeof a=="function"?a.bind(i):a===void 0?"":a}return i[s]},set(i,s,a){return i[s]=a,!0}})},configurable:!0}),e.__stylePatched=!0}function aE(t){let e=`<!DOCTYPE html><html><body>${t}</body></html>`,{document:n}=cAe(e);return uAe(n),n}import{LocaleClient as dAe}from"@uniformdev/canvas";async function lE(t,e){if(!t||t.length===0)return;let o=(await new dAe(e).get()).results.map(s=>s.locale),i=t.filter(s=>!o.includes(s));if(i.length>0)throw new Error(`The following locales are not registered in your project: ${i.join(", ")}`)}async function uE({action:t,id:e,instructions:n,isPattern:r,patternId:o,projectMapNode:i,getEditUrl:s,env:a}){let l=new fAe(a),c,u,d=t==="update"?e:void 0,f={success:!0,actionsTaken:[]};if(t==="duplicate"){if(u=await l.getCompositionById({compositionId:e,state:cE,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0}),!u)throw new Error("Composition not found");let p=crypto.randomUUID(),m=Wie(u.composition,p),g=mAe(m,h=>{h._name=`${h._name} (copy)`,h._slug&&(h._slug=`${h._slug}-copy${h._slug?.endsWith("/")?"/":""}`)});c=new il(g),e=p}else if(t==="create"){if(!n)throw new Error("Instructions are required for create");if(!n.name)throw new Error("Name is required for create");if(!n.type)throw new Error("Type is required for create");if(!o)c=new il({_id:e,_name:n.name,type:n.type,_overridability:{hideLockedParameters:!0}});else{let p={composition:{_id:e,_name:n.name,type:n.type,_pattern:o},projectId:a.projectId,state:cE,pattern:!1};await l.updateComposition(p),d=e}}if(d){if(u=await l.getCompositionById({compositionId:e,state:cE,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0}),!u)throw new Error("Composition not found");c=new il(u.composition)}if(t==="delete"&&await l.removeComposition({compositionId:e}),c){await lE(n?.localeUpdates?.enableLocales,a),f=await Q5({twee:c,descriptionUpdate:void 0,slugUpdate:void 0,nameUpdate:n?.name,propertyUpdates:n?.parameterUpdates??[],dataResourceUpdates:n?.dataResourceUpdates??[],localeUpdates:n?.localeUpdates,slotUpdates:n??{},currentEditorLocale:void 0,referenceData:Sse(a),isEditingPattern:r,domParser:aE});let p=c.exportTree(),m=c.exportMetadata(),g={composition:p,projectId:a.projectId,state:cE,pattern:r,releaseId:u?.releaseId,editionId:u?.editionId,...m};await l.updateComposition(g)}if(t==="create"&&!r&&(i?.nodePathSegment||i?.localePathSegments)&&n?.name){let p=new pAe({apiKey:a.apiKey,apiHost:a.apiHost,projectId:a.projectId}),{path:m,nodeId:g}=await Aie({projectMapClient:p,compositionId:e,compositionName:n.name,nodePathSegment:i.nodePathSegment||"",parentNodeId:i.parentNodeId,localePathSegments:i.localePathSegments,allowedQueryStrings:i.allowedQueryStrings});return f.actionsTaken.push({success:!0,summary:`Created project map node at path: ${m}`}),{content:[{type:"text",text:JSON.stringify({...f,editUrl:s(e),projectMapNode:{path:m,nodeId:g}},null,2)}]}}return{content:[{type:"text",text:JSON.stringify({...f,editUrl:s(e)},null,2)}]}}function dE(t,e){return`${e.baseWebUrl}/dashboards/canvas/edit/${t}`}async function fE(t,e,n){return await n.toolInvoker.invoke("createFilterExpression",{...t,entityType:e})}var gAe={action:io.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:io.string().uuid().describe("UUID of the composition instance to create, update, delete, or duplicate"),patternId:io.string().uuid().describe("Composition pattern ID to create the composition from. Omit when not creating, or when creating a composition without a composition pattern.").optional(),instructions:wk.describe("Modification instructions for the composition. Omit for delete and duplicate.").optional(),projectMapNode:io.object({parentNodeId:io.string().uuid().describe("UUID of the parent node from searchProjectMapNodes. If omitted, the node will be a child of the root node.").optional(),nodePathSegment:io.string().describe('URL path segment for the node (e.g., "about-us", "products", ":productId" for dynamic matching). Use a slugified version of the name unless otherwise requested by the user. Omit if not creating a project map node.').optional(),localePathSegments:io.array(io.object({locale:io.string().describe('Locale code (e.g., "en-US", "fr-FR")'),pathSegment:io.string().describe("URL path segment for this locale")})).describe("Optional array of locale-specific path segments. Unspecified locales use the nodePathSegment. Do not use these for dynamic path segments.").optional(),allowedQueryStrings:io.array(io.object({name:io.string().describe("Query parameter name"),defaultValue:io.string().describe("Default value if not provided in the URL").optional()})).describe("Optional array of allowed query string parameters for this node").optional()}).describe("Attaches the new composition to a new node in the project map hierarchy. Omit to avoid creating a project map node, or if action is not create.").optional()};function Ese(t,e){t.tool("compositionAction","Creates, updates, or deletes a Uniform Composition",gAe,async n=>await uE({...n,isPattern:!1,getEditUrl:r=>dE(r,e),patternId:n.patternId,projectMapNode:n.projectMapNode,env:e}))}import*as In from"zod/v3";var hAe=In.object({field:In.string(),operator:In.string(),value:In.string().or(In.array(In.string()))}),vAe=In.object({filter:In.array(hAe),error:In.string().describe("An error message if the filter expression could not be created, otherwise an empty string"),sort:In.array(In.enum(["created_at_ASC","created_at_DESC","updated_at_ASC","updated_at_DESC","author_ASC","author_DESC","creator_ASC","creator_DESC","name_ASC","name_DESC","slug_ASC","slug_DESC"])),limit:In.number().min(1).max(100),offset:In.number().min(0),keyword:In.string(),locale:In.string().optional()}),Tc=In.object({searchExpressionPrompt:In.string().describe(`Describe what you are looking for, for example "created by me in the last week" or "type is article and headline contains breaking news" or "keyword search for breaking news".
|
|
5853
5875
|
You can specify multiple criteria (AND only).
|
|
5854
|
-
You can filter by date, number, or string properties on the definition, as well as name, created, modified, author, slug, enabled locales, type, and publish status.`),username:In.string().describe("The username of the current user. If you do not know the username, use an empty string"),locale:In.string().describe("The current locale. If there is no current locale, use an empty string")}),LTt={displayName:"Create filter expression",description:"Creates a Uniform search filter expression for searching entries, patterns, or compositions from a user prompt. Meant to be a callable tool only.",inputSchema:Tc.extend({entityType:In.enum(["composition","entry","componentPattern","compositionPattern","entryPattern"]).describe("The entity type we are creating a filter for")}),outputSchema:vAe,runsAt:"server",timeout:10,callable:!0};import*as Rae from"zod/v3";var _c=class extends Error{},pE=class extends _c{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},mE=class extends _c{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},gE=class extends _c{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Zs=class extends _c{},p0=class extends _c{constructor(e){super(`Invalid unit ${e}`)}},xr=class extends _c{},qs=class extends _c{constructor(){super("Zone is an abstract class")}};var ge="numeric",Js="short",ji="long",Dd={year:ge,month:ge,day:ge},Bb={year:ge,month:Js,day:ge},dI={year:ge,month:Js,day:ge,weekday:Js},zb={year:ge,month:ji,day:ge},jb={year:ge,month:ji,day:ge,weekday:ji},Vb={hour:ge,minute:ge},Ub={hour:ge,minute:ge,second:ge},Hb={hour:ge,minute:ge,second:ge,timeZoneName:Js},Kb={hour:ge,minute:ge,second:ge,timeZoneName:ji},Wb={hour:ge,minute:ge,hourCycle:"h23"},Gb={hour:ge,minute:ge,second:ge,hourCycle:"h23"},Yb={hour:ge,minute:ge,second:ge,hourCycle:"h23",timeZoneName:Js},Zb={hour:ge,minute:ge,second:ge,hourCycle:"h23",timeZoneName:ji},qb={year:ge,month:ge,day:ge,hour:ge,minute:ge},Jb={year:ge,month:ge,day:ge,hour:ge,minute:ge,second:ge},Xb={year:ge,month:Js,day:ge,hour:ge,minute:ge},Qb={year:ge,month:Js,day:ge,hour:ge,minute:ge,second:ge},fI={year:ge,month:Js,day:ge,weekday:Js,hour:ge,minute:ge},ex={year:ge,month:ji,day:ge,hour:ge,minute:ge,timeZoneName:Js},tx={year:ge,month:ji,day:ge,hour:ge,minute:ge,second:ge,timeZoneName:Js},nx={year:ge,month:ji,day:ge,weekday:ji,hour:ge,minute:ge,timeZoneName:ji},rx={year:ge,month:ji,day:ge,weekday:ji,hour:ge,minute:ge,second:ge,timeZoneName:ji};var xi=class{get type(){throw new qs}get name(){throw new qs}get ianaName(){return this.name}get isUniversal(){throw new qs}offsetName(e,n){throw new qs}formatOffset(e,n){throw new qs}offset(e){throw new qs}equals(e){throw new qs}get isValid(){throw new qs}};var pI=null,Ld=class t extends xi{static get instance(){return pI===null&&(pI=new t),pI}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return vE(e,n,r)}formatOffset(e,n){return Ad(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var bE={};function yAe(t){return bE[t]||(bE[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),bE[t]}var bAe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function xAe(t,e){let n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,s,a,l,c,u]=r;return[s,o,i,a,l,c,u]}function CAe(t,e){let n=t.formatToParts(e),r=[];for(let o=0;o<n.length;o++){let{type:i,value:s}=n[o],a=bAe[i];i==="era"?r[a]=s:He(a)||(r[a]=parseInt(s,10))}return r}var yE={},Lo=class t extends xi{static create(e){return yE[e]||(yE[e]=new t(e)),yE[e]}static resetCache(){yE={},bE={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return vE(e,n,r,this.name)}formatOffset(e,n){return Ad(this.offset(e),n)}offset(e){let n=new Date(e);if(isNaN(n))return NaN;let r=yAe(this.name),[o,i,s,a,l,c,u]=r.formatToParts?CAe(r,n):xAe(r,n);a==="BC"&&(o=-Math.abs(o)+1);let f=m0({year:o,month:i,day:s,hour:l===24?0:l,minute:c,second:u,millisecond:0}),p=+n,m=p%1e3;return p-=m>=0?m:1e3+m,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var Tse={};function SAe(t,e={}){let n=JSON.stringify([t,e]),r=Tse[n];return r||(r=new Intl.ListFormat(t,e),Tse[n]=r),r}var mI={};function gI(t,e={}){let n=JSON.stringify([t,e]),r=mI[n];return r||(r=new Intl.DateTimeFormat(t,e),mI[n]=r),r}var hI={};function wAe(t,e={}){let n=JSON.stringify([t,e]),r=hI[n];return r||(r=new Intl.NumberFormat(t,e),hI[n]=r),r}var vI={};function EAe(t,e={}){let{base:n,...r}=e,o=JSON.stringify([t,r]),i=vI[o];return i||(i=new Intl.RelativeTimeFormat(t,e),vI[o]=i),i}var ox=null;function TAe(){return ox||(ox=new Intl.DateTimeFormat().resolvedOptions().locale,ox)}var _se={};function _Ae(t){let e=_se[t];if(!e){let n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,_se[t]=e}return e}function $Ae(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let n=t.indexOf("-u-");if(n===-1)return[t];{let r,o;try{r=gI(t).resolvedOptions(),o=t}catch{let l=t.substring(0,n);r=gI(l).resolvedOptions(),o=l}let{numberingSystem:i,calendar:s}=r;return[o,i,s]}}function NAe(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function DAe(t){let e=[];for(let n=1;n<=12;n++){let r=wt.utc(2009,n,1);e.push(t(r))}return e}function LAe(t){let e=[];for(let n=1;n<=7;n++){let r=wt.utc(2016,11,13+n);e.push(t(r))}return e}function xE(t,e,n,r){let o=t.listingMode();return o==="error"?null:o==="en"?n(e):r(e)}function AAe(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var yI=class{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:o,floor:i,...s}=r;if(!n||Object.keys(s).length>0){let a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=wAe(e,a)}}format(e){if(this.inf){let n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{let n=this.floor?Math.floor(e):g0(e,3);return Kn(n,this.padTo)}}},bI=class{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&Lo.create(a).valid?(o=a,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=gI(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){let r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},xI=class{constructor(e,n,r){this.opts={style:"long",...r},!n&&CE()&&(this.rtf=EAe(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):$se(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}},MAe={firstDay:1,minimalDays:4,weekend:[6,7]},nn=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,o,i=!1){let s=e||Kt.defaultLocale,a=s||(i?"en-US":TAe()),l=n||Kt.defaultNumberingSystem,c=r||Kt.defaultOutputCalendar,u=ix(o)||Kt.defaultWeekSettings;return new t(a,l,c,u,s)}static resetCache(){ox=null,mI={},hI={},vI={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return t.create(e,n,r,o)}constructor(e,n,r,o,i){let[s,a,l]=$Ae(e);this.locale=s,this.numberingSystem=n||a||null,this.outputCalendar=r||l||null,this.weekSettings=o,this.intl=NAe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=AAe(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ix(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return xE(this,e,CI,()=>{let r=n?{month:e,day:"numeric"}:{month:e},o=n?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=DAe(i=>this.extract(i,r,"month"))),this.monthsCache[o][e]})}weekdays(e,n=!1){return xE(this,e,SI,()=>{let r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=n?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=LAe(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return xE(this,void 0,()=>wI,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[wt.utc(2016,11,13,9),wt.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return xE(this,e,EI,()=>{let n={era:e};return this.eraCache[e]||(this.eraCache[e]=[wt.utc(-40,1,1),wt.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){let o=this.dtFormatter(e,n),i=o.formatToParts(),s=i.find(a=>a.type.toLowerCase()===r);return s?s.value:null}numberFormatter(e={}){return new yI(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new bI(e,this.intl,n)}relFormatter(e={}){return new xI(this.intl,this.isEnglish(),e)}listFormatter(e={}){return SAe(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:SE()?_Ae(this.locale):MAe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}};var _I=null,so=class t extends xi{static get utcInstance(){return _I===null&&(_I=new t(0)),_I}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(kp(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ad(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ad(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Ad(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var h0=class extends xi{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Xs(t,e){let n;if(He(t)||t===null)return e;if(t instanceof xi)return t;if(Nse(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Ld.instance:r==="utc"||r==="gmt"?so.utcInstance:so.parseSpecifier(r)||Lo.create(t)}else return sl(t)?so.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new h0(t)}var Dse=()=>Date.now(),Lse="system",Ase=null,Mse=null,Ose=null,Ise=60,kse,Rse=null,Kt=class{static get now(){return Dse}static set now(e){Dse=e}static set defaultZone(e){Lse=e}static get defaultZone(){return Xs(Lse,Ld.instance)}static get defaultLocale(){return Ase}static set defaultLocale(e){Ase=e}static get defaultNumberingSystem(){return Mse}static set defaultNumberingSystem(e){Mse=e}static get defaultOutputCalendar(){return Ose}static set defaultOutputCalendar(e){Ose=e}static get defaultWeekSettings(){return Rse}static set defaultWeekSettings(e){Rse=ix(e)}static get twoDigitCutoffYear(){return Ise}static set twoDigitCutoffYear(e){Ise=e%100}static get throwOnInvalid(){return kse}static set throwOnInvalid(e){kse=e}static resetCaches(){nn.resetCache(),Lo.resetCache()}};var ao=class{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var Pse=[0,31,59,90,120,151,181,212,243,273,304,334],Fse=[0,31,60,91,121,152,182,213,244,274,305,335];function ms(t,e){return new ao("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function wE(t,e,n){let r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let o=r.getUTCDay();return o===0?7:o}function Bse(t,e,n){return n+(Pp(t)?Fse:Pse)[e-1]}function zse(t,e){let n=Pp(t)?Fse:Pse,r=n.findIndex(i=>i<e),o=e-n[r];return{month:r+1,day:o}}function EE(t,e){return(t-e+7)%7+1}function sx(t,e=4,n=1){let{year:r,month:o,day:i}=t,s=Bse(r,o,i),a=EE(wE(r,o,i),n),l=Math.floor((s-a+14-e)/7),c;return l<1?(c=r-1,l=Rp(c,e,n)):l>Rp(r,e,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:a,...lx(t)}}function $I(t,e=4,n=1){let{weekYear:r,weekNumber:o,weekday:i}=t,s=EE(wE(r,1,e),n),a=Md(r),l=o*7+i-s-7+e,c;l<1?(c=r-1,l+=Md(c)):l>a?(c=r+1,l-=Md(r)):c=r;let{month:u,day:d}=zse(c,l);return{year:c,month:u,day:d,...lx(t)}}function TE(t){let{year:e,month:n,day:r}=t,o=Bse(e,n,r);return{year:e,ordinal:o,...lx(t)}}function NI(t){let{year:e,ordinal:n}=t,{month:r,day:o}=zse(e,n);return{year:e,month:r,day:o,...lx(t)}}function DI(t,e){if(!He(t.localWeekday)||!He(t.localWeekNumber)||!He(t.localWeekYear)){if(!He(t.weekday)||!He(t.weekNumber)||!He(t.weekYear))throw new Zs("Cannot mix locale-based week fields with ISO-based week fields");return He(t.localWeekday)||(t.weekday=t.localWeekday),He(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),He(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function jse(t,e=4,n=1){let r=ax(t.weekYear),o=Vi(t.weekNumber,1,Rp(t.weekYear,e,n)),i=Vi(t.weekday,1,7);return r?o?i?!1:ms("weekday",t.weekday):ms("week",t.weekNumber):ms("weekYear",t.weekYear)}function Vse(t){let e=ax(t.year),n=Vi(t.ordinal,1,Md(t.year));return e?n?!1:ms("ordinal",t.ordinal):ms("year",t.year)}function LI(t){let e=ax(t.year),n=Vi(t.month,1,12),r=Vi(t.day,1,v0(t.year,t.month));return e?n?r?!1:ms("day",t.day):ms("month",t.month):ms("year",t.year)}function AI(t){let{hour:e,minute:n,second:r,millisecond:o}=t,i=Vi(e,0,23)||e===24&&n===0&&r===0&&o===0,s=Vi(n,0,59),a=Vi(r,0,59),l=Vi(o,0,999);return i?s?a?l?!1:ms("millisecond",o):ms("second",r):ms("minute",n):ms("hour",e)}function He(t){return typeof t>"u"}function sl(t){return typeof t=="number"}function ax(t){return typeof t=="number"&&t%1===0}function Nse(t){return typeof t=="string"}function Hse(t){return Object.prototype.toString.call(t)==="[object Date]"}function CE(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function SE(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Kse(t){return Array.isArray(t)?t:[t]}function MI(t,e,n){if(t.length!==0)return t.reduce((r,o)=>{let i=[e(o),o];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Wse(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Od(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ix(t){if(t==null)return null;if(typeof t!="object")throw new xr("Week settings must be an object");if(!Vi(t.firstDay,1,7)||!Vi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Vi(e,1,7)))throw new xr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Vi(t,e,n){return ax(t)&&t>=e&&t<=n}function OAe(t,e){return t-e*Math.floor(t/e)}function Kn(t,e=2){let n=t<0,r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function $c(t){if(!(He(t)||t===null||t===""))return parseInt(t,10)}function Id(t){if(!(He(t)||t===null||t===""))return parseFloat(t)}function cx(t){if(!(He(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function g0(t,e,n=!1){let r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Pp(t){return t%4===0&&(t%100!==0||t%400===0)}function Md(t){return Pp(t)?366:365}function v0(t,e){let n=OAe(e-1,12)+1,r=t+(e-n)/12;return n===2?Pp(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function m0(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Use(t,e,n){return-EE(wE(t,1,e),n)+e-1}function Rp(t,e=4,n=1){let r=Use(t,e,n),o=Use(t+1,e,n);return(Md(t)-r+o)/7}function ux(t){return t>99?t:t>Kt.twoDigitCutoffYear?1900+t:2e3+t}function vE(t,e,n,r=null){let o=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);let s={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,s).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function kp(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);let r=parseInt(e,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function OI(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new xr(`Invalid unit value ${t}`);return e}function y0(t,e){let n={};for(let r in t)if(Od(t,r)){let o=t[r];if(o==null)continue;n[e(r)]=OI(o)}return n}function Ad(t,e){let n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${Kn(n,2)}:${Kn(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${Kn(n,2)}${Kn(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function lx(t){return Wse(t,["hour","minute","second","millisecond"])}var IAe=["January","February","March","April","May","June","July","August","September","October","November","December"],II=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kAe=["J","F","M","A","M","J","J","A","S","O","N","D"];function CI(t){switch(t){case"narrow":return[...kAe];case"short":return[...II];case"long":return[...IAe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var kI=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],RI=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],RAe=["M","T","W","T","F","S","S"];function SI(t){switch(t){case"narrow":return[...RAe];case"short":return[...RI];case"long":return[...kI];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var wI=["AM","PM"],PAe=["Before Christ","Anno Domini"],FAe=["BC","AD"],BAe=["B","A"];function EI(t){switch(t){case"narrow":return[...BAe];case"short":return[...FAe];case"long":return[...PAe];default:return null}}function Gse(t){return wI[t.hour<12?0:1]}function Yse(t,e){return SI(e)[t.weekday-1]}function Zse(t,e){return CI(e)[t.month-1]}function qse(t,e){return EI(e)[t.year<0?0:1]}function $se(t,e,n="always",r=!1){let o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){let d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${o[t][0]}`;case-1:return d?"yesterday":`last ${o[t][0]}`;case 0:return d?"today":`this ${o[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,c=o[t],u=r?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return s?`${a} ${u} ago`:`in ${a} ${u}`}function Jse(t,e){let n="";for(let r of t)r.literal?n+=r.val:n+=e(r.val);return n}var zAe={D:Dd,DD:Bb,DDD:zb,DDDD:jb,t:Vb,tt:Ub,ttt:Hb,tttt:Kb,T:Wb,TT:Gb,TTT:Yb,TTTT:Zb,f:qb,ff:Xb,fff:ex,ffff:nx,F:Jb,FF:Qb,FFF:tx,FFFF:rx},lo=class t{static create(e,n={}){return new t(e,n)}static parseFormat(e){let n=null,r="",o=!1,i=[];for(let s=0;s<e.length;s++){let a=e.charAt(s);a==="'"?(r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),n=null,r="",o=!o):o||a===n?r+=a:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return zAe[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Kn(e,n);let r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){let r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(p,m)=>this.loc.extract(e,p,m),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",a=()=>r?Gse(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,m)=>r?Zse(e,p):i(m?{month:p}:{month:p,day:"numeric"},"month"),c=(p,m)=>r?Yse(e,p):i(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{let m=t.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(e,m):p},d=p=>r?qse(e,p):i({era:p},"era"),f=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return o?i({day:"numeric"},"day"):this.num(e.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(e.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(e.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(p)}};return Jse(t.parseFormat(n),f)}formatDurationFromString(e,n){let r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{let u=r(c);return u?this.num(l.get(u),c.length):c},i=t.parseFormat(n),s=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),a=e.shiftTo(...s.map(r).filter(l=>l));return Jse(i,o(a))}};var Qse=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function x0(...t){let e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function C0(...t){return e=>t.reduce(([n,r,o],i)=>{let[s,a,l]=i(e,o);return[{...n,...s},a||r,l]},[{},null,1]).slice(0,2)}function S0(t,...e){if(t==null)return[null,null];for(let[n,r]of e){let o=n.exec(t);if(o)return r(o)}return[null,null]}function eae(...t){return(e,n)=>{let r={},o;for(o=0;o<t.length;o++)r[t[o]]=$c(e[n+o]);return[r,null,n+o]}}var tae=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,jAe=`(?:${tae.source}?(?:\\[(${Qse.source})\\])?)?`,PI=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,nae=RegExp(`${PI.source}${jAe}`),FI=RegExp(`(?:T${nae.source})?`),VAe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,UAe=/(\d{4})-?W(\d\d)(?:-?(\d))?/,HAe=/(\d{4})-?(\d{3})/,KAe=eae("weekYear","weekNumber","weekDay"),WAe=eae("year","ordinal"),GAe=/(\d{4})-(\d\d)-(\d\d)/,rae=RegExp(`${PI.source} ?(?:${tae.source}|(${Qse.source}))?`),YAe=RegExp(`(?: ${rae.source})?`);function b0(t,e,n){let r=t[e];return He(r)?n:$c(r)}function ZAe(t,e){return[{year:b0(t,e),month:b0(t,e+1,1),day:b0(t,e+2,1)},null,e+3]}function w0(t,e){return[{hours:b0(t,e,0),minutes:b0(t,e+1,0),seconds:b0(t,e+2,0),milliseconds:cx(t[e+3])},null,e+4]}function dx(t,e){let n=!t[e]&&!t[e+1],r=kp(t[e+1],t[e+2]),o=n?null:so.instance(r);return[{},o,e+3]}function fx(t,e){let n=t[e]?Lo.create(t[e]):null;return[{},n,e+1]}var qAe=RegExp(`^T?${PI.source}$`),JAe=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function XAe(t){let[e,n,r,o,i,s,a,l,c]=t,u=e[0]==="-",d=l&&l[0]==="-",f=(p,m=!1)=>p!==void 0&&(m||p&&u)?-p:p;return[{years:f(Id(n)),months:f(Id(r)),weeks:f(Id(o)),days:f(Id(i)),hours:f(Id(s)),minutes:f(Id(a)),seconds:f(Id(l),l==="-0"),milliseconds:f(cx(c),d)}]}var QAe={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function BI(t,e,n,r,o,i,s){let a={year:e.length===2?ux($c(e)):$c(e),month:II.indexOf(n)+1,day:$c(r),hour:$c(o),minute:$c(i)};return s&&(a.second=$c(s)),t&&(a.weekday=t.length>3?kI.indexOf(t)+1:RI.indexOf(t)+1),a}var eMe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tMe(t){let[,e,n,r,o,i,s,a,l,c,u,d]=t,f=BI(e,o,r,n,i,s,a),p;return l?p=QAe[l]:c?p=0:p=kp(u,d),[f,new so(p)]}function nMe(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var rMe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,oMe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,iMe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Xse(t){let[,e,n,r,o,i,s,a]=t;return[BI(e,o,r,n,i,s,a),so.utcInstance]}function sMe(t){let[,e,n,r,o,i,s,a]=t;return[BI(e,a,n,r,o,i,s),so.utcInstance]}var aMe=x0(VAe,FI),lMe=x0(UAe,FI),cMe=x0(HAe,FI),uMe=x0(nae),oae=C0(ZAe,w0,dx,fx),dMe=C0(KAe,w0,dx,fx),fMe=C0(WAe,w0,dx,fx),pMe=C0(w0,dx,fx);function iae(t){return S0(t,[aMe,oae],[lMe,dMe],[cMe,fMe],[uMe,pMe])}function sae(t){return S0(nMe(t),[eMe,tMe])}function aae(t){return S0(t,[rMe,Xse],[oMe,Xse],[iMe,sMe])}function lae(t){return S0(t,[JAe,XAe])}var mMe=C0(w0);function cae(t){return S0(t,[qAe,mMe])}var gMe=x0(GAe,YAe),hMe=x0(rae),vMe=C0(w0,dx,fx);function uae(t){return S0(t,[gMe,oae],[hMe,vMe])}var dae="Invalid Duration",pae={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},yMe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...pae},gs=146097/400,E0=146097/4800,bMe={years:{quarters:4,months:12,weeks:gs/7,days:gs,hours:gs*24,minutes:gs*24*60,seconds:gs*24*60*60,milliseconds:gs*24*60*60*1e3},quarters:{months:3,weeks:gs/28,days:gs/4,hours:gs*24/4,minutes:gs*24*60/4,seconds:gs*24*60*60/4,milliseconds:gs*24*60*60*1e3/4},months:{weeks:E0/7,days:E0,hours:E0*24,minutes:E0*24*60,seconds:E0*24*60*60,milliseconds:E0*24*60*60*1e3},...pae},Fp=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],xMe=Fp.slice(0).reverse();function kd(t,e,n=!1){let r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Wn(r)}function mae(t,e){let n=e.milliseconds??0;for(let r of xMe.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function fae(t,e){let n=mae(t,e)<0?-1:1;Fp.reduceRight((r,o)=>{if(He(e[o]))return r;if(r){let i=e[r]*n,s=t[o][r],a=Math.floor(i/s);e[o]+=a*n,e[r]-=a*s*n}return o},null),Fp.reduce((r,o)=>{if(He(e[o]))return r;if(r){let i=e[r]%1;e[r]-=i,e[o]+=i*t[r][o]}return o},null)}function CMe(t){let e={};for(let[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}var Wn=class t{constructor(e){let n=e.conversionAccuracy==="longterm"||!1,r=n?bMe:yMe;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||nn.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return t.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new xr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:y0(e,t.normalizeUnit),loc:nn.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(sl(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new xr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){let[r]=lae(e);return r?t.fromObject(r,n):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){let[r]=cae(e);return r?t.fromObject(r,n):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new xr("need to specify a reason the Duration is invalid");let r=e instanceof ao?e:new ao(e,n);if(Kt.throwOnInvalid)throw new gE(r);return new t({invalid:r})}static normalizeUnit(e){let n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new p0(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){let r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?lo.create(this.loc,r).formatDurationFromString(this,e):dae}toHuman(e={}){if(!this.isValid)return dae;let n=Fp.map(r=>{let o=this.values[r];return He(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=g0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},wt.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?mae(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let n=t.fromDurationLike(e),r={};for(let o of Fp)(Od(n.values,o)||Od(this.values,o))&&(r[o]=n.get(o)+this.get(o));return kd(this,{values:r},!0)}minus(e){if(!this.isValid)return this;let n=t.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;let n={};for(let r of Object.keys(this.values))n[r]=OI(e(this.values[r],r));return kd(this,{values:n},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let n={...this.values,...y0(e,t.normalizeUnit)};return kd(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:o,conversionAccuracy:r};return kd(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return fae(this.matrix,e),kd(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=CMe(this.normalize().shiftToAll().toObject());return kd(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let n={},r={},o=this.toObject(),i;for(let s of Fp)if(e.indexOf(s)>=0){i=s;let a=0;for(let c in r)a+=this.matrix[c][s]*r[c],r[c]=0;sl(o[s])&&(a+=o[s]);let l=Math.trunc(a);n[s]=l,r[s]=(a*1e3-l*1e3)/1e3}else sl(o[s])&&(r[s]=o[s]);for(let s in r)r[s]!==0&&(n[i]+=s===i?r[s]:r[s]/this.matrix[i][s]);return fae(this.matrix,n),kd(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return kd(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(let r of Fp)if(!n(this.values[r],e.values[r]))return!1;return!0}};var T0="Invalid Interval";function SMe(t,e){return!t||!t.isValid?Nc.invalid("missing or invalid start"):!e||!e.isValid?Nc.invalid("missing or invalid end"):e<t?Nc.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var Nc=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new xr("need to specify a reason the Interval is invalid");let r=e instanceof ao?e:new ao(e,n);if(Kt.throwOnInvalid)throw new mE(r);return new t({invalid:r})}static fromDateTimes(e,n){let r=_0(e),o=_0(n),i=SMe(r,o);return i??new t({start:r,end:o})}static after(e,n){let r=Wn.fromDurationLike(n),o=_0(e);return t.fromDateTimes(o,o.plus(r))}static before(e,n){let r=Wn.fromDurationLike(n),o=_0(e);return t.fromDateTimes(o.minus(r),o)}static fromISO(e,n){let[r,o]=(e||"").split("/",2);if(r&&o){let i,s;try{i=wt.fromISO(r,n),s=i.isValid}catch{s=!1}let a,l;try{a=wt.fromISO(o,n),l=a.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(i,a);if(s){let c=Wn.fromISO(o,n);if(c.isValid)return t.after(i,c)}else if(l){let c=Wn.fromISO(r,n);if(c.isValid)return t.before(a,c)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;let r=this.start.startOf(e,n),o;return n?.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(e,n),Math.floor(o.diff(r,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?t.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];let n=e.map(_0).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),r=[],{s:o}=this,i=0;for(;o<this.e;){let s=n[i]||this.e,a=+s>+this.e?this.e:s;r.push(t.fromDateTimes(o,a)),o=a,i+=1}return r}splitBy(e){let n=Wn.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,i,s=[];for(;r<this.e;){let a=this.start.plus(n.mapUnits(l=>l*o));i=+a>+this.e?this.e:a,s.push(t.fromDateTimes(r,i)),r=i,o+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:t.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;let n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return t.fromDateTimes(n,r)}static merge(e){let[n,r]=e.sort((o,i)=>o.s-i.s).reduce(([o,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[o,i.union(s)]:[o.concat([i]),s]:[o,s],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0,o=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),a=s.sort((l,c)=>l.time-c.time);for(let l of a)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&o.push(t.fromDateTimes(n,l.time)),n=null);return t.merge(o)}difference(...e){return t.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:T0}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Dd,n={}){return this.isValid?lo.create(this.s.loc.clone(n),e).formatInterval(this):T0}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:T0}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:T0}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:T0}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:T0}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Wn.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}};var Dc=class{static hasDST(e=Kt.defaultZone){let n=wt.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Lo.isValidZone(e)}static normalizeZone(e){return Xs(e,Kt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||nn.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||nn.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||nn.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||nn.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||nn.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||nn.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||nn.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return nn.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return nn.create(n,null,"gregory").eras(e)}static features(){return{relative:CE(),localeWeek:SE()}}};function gae(t,e){let n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Wn.fromMillis(r).as("days"))}function wMe(t,e,n){let r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let u=gae(l,c);return(u-u%7)/7}],["days",gae]],o={},i=t,s,a;for(let[l,c]of r)n.indexOf(l)>=0&&(s=l,o[l]=c(t,e),a=i.plus(o),a>e?(o[l]--,t=i.plus(o),t>e&&(a=t,o[l]--,t=i.plus(o))):t=a);return[t,o,a,s]}function hae(t,e,n,r){let[o,i,s,a]=wMe(t,e,n),l=e-o,c=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(s<e&&(s=o.plus({[a]:1})),s!==o&&(i[a]=(i[a]||0)+l/(s-o)));let u=Wn.fromObject(i,r);return c.length>0?Wn.fromMillis(l,r).shiftTo(...c).plus(u):u}var zI={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},vae={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},EMe=zI.hanidec.replace(/[\[|\]]/g,"").split("");function yae(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(t[n].search(zI.hanidec)!==-1)e+=EMe.indexOf(t[n]);else for(let o in vae){let[i,s]=vae[o];r>=i&&r<=s&&(e+=r-i)}}return parseInt(e,10)}else return e}function hs({numberingSystem:t},e=""){return new RegExp(`${zI[t||"latn"]}${e}`)}var TMe="missing Intl.DateTimeFormat.formatToParts support";function Wt(t,e=n=>n){return{regex:t,deser:([n])=>e(yae(n))}}var _Me="\xA0",Cae=`[ ${_Me}]`,Sae=new RegExp(Cae,"g");function $Me(t){return t.replace(/\./g,"\\.?").replace(Sae,Cae)}function bae(t){return t.replace(/\./g,"").replace(Sae," ").toLowerCase()}function Qs(t,e){return t===null?null:{regex:RegExp(t.map($Me).join("|")),deser:([n])=>t.findIndex(r=>bae(n)===bae(r))+e}}function xae(t,e){return{regex:t,deser:([,n,r])=>kp(n,r),groups:e}}function _E(t){return{regex:t,deser:([e])=>e}}function NMe(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function DMe(t,e){let n=hs(e),r=hs(e,"{2}"),o=hs(e,"{3}"),i=hs(e,"{4}"),s=hs(e,"{6}"),a=hs(e,"{1,2}"),l=hs(e,"{1,3}"),c=hs(e,"{1,6}"),u=hs(e,"{1,9}"),d=hs(e,"{2,4}"),f=hs(e,"{4,6}"),p=h=>({regex:RegExp(NMe(h.val)),deser:([v])=>v,literal:!0}),g=(h=>{if(t.literal)return p(h);switch(h.val){case"G":return Qs(e.eras("short"),0);case"GG":return Qs(e.eras("long"),0);case"y":return Wt(c);case"yy":return Wt(d,ux);case"yyyy":return Wt(i);case"yyyyy":return Wt(f);case"yyyyyy":return Wt(s);case"M":return Wt(a);case"MM":return Wt(r);case"MMM":return Qs(e.months("short",!0),1);case"MMMM":return Qs(e.months("long",!0),1);case"L":return Wt(a);case"LL":return Wt(r);case"LLL":return Qs(e.months("short",!1),1);case"LLLL":return Qs(e.months("long",!1),1);case"d":return Wt(a);case"dd":return Wt(r);case"o":return Wt(l);case"ooo":return Wt(o);case"HH":return Wt(r);case"H":return Wt(a);case"hh":return Wt(r);case"h":return Wt(a);case"mm":return Wt(r);case"m":return Wt(a);case"q":return Wt(a);case"qq":return Wt(r);case"s":return Wt(a);case"ss":return Wt(r);case"S":return Wt(l);case"SSS":return Wt(o);case"u":return _E(u);case"uu":return _E(a);case"uuu":return Wt(n);case"a":return Qs(e.meridiems(),0);case"kkkk":return Wt(i);case"kk":return Wt(d,ux);case"W":return Wt(a);case"WW":return Wt(r);case"E":case"c":return Wt(n);case"EEE":return Qs(e.weekdays("short",!1),1);case"EEEE":return Qs(e.weekdays("long",!1),1);case"ccc":return Qs(e.weekdays("short",!0),1);case"cccc":return Qs(e.weekdays("long",!0),1);case"Z":case"ZZ":return xae(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return xae(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return _E(/[a-z_+-/]{1,256}?/i);case" ":return _E(/[^\S\n\r]/);default:return p(h)}})(t)||{invalidReason:TMe};return g.token=t,g}var LMe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function AMe(t,e,n){let{type:r,value:o}=t;if(r==="literal"){let l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}let i=e[r],s=r;r==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let a=LMe[s];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function MMe(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function OMe(t,e,n){let r=t.match(e);if(r){let o={},i=1;for(let s in n)if(Od(n,s)){let a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(r.slice(i,i+l))),i+=l}return[r,o]}else return[r,{}]}function IMe(t){let e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null,r;return He(t.z)||(n=Lo.create(t.z)),He(t.Z)||(n||(n=new so(t.Z)),r=t.Z),He(t.q)||(t.M=(t.q-1)*3+1),He(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),He(t.u)||(t.S=cx(t.u)),[Object.keys(t).reduce((i,s)=>{let a=e(s);return a&&(i[a]=t[s]),i},{}),n,r]}var jI=null;function kMe(){return jI||(jI=wt.fromMillis(1555555555555)),jI}function RMe(t,e){if(t.literal)return t;let n=lo.macroTokenToFormatOpts(t.val),r=HI(n,e);return r==null||r.includes(void 0)?t:r}function VI(t,e){return Array.prototype.concat(...t.map(n=>RMe(n,e)))}function UI(t,e,n){let r=VI(lo.parseFormat(n),t),o=r.map(s=>DMe(s,t)),i=o.find(s=>s.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{let[s,a]=MMe(o),l=RegExp(s,"i"),[c,u]=OMe(e,l,a),[d,f,p]=u?IMe(u):[null,null,void 0];if(Od(u,"a")&&Od(u,"H"))throw new Zs("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:l,rawMatches:c,matches:u,result:d,zone:f,specificOffset:p}}}function wae(t,e,n){let{result:r,zone:o,specificOffset:i,invalidReason:s}=UI(t,e,n);return[r,o,i,s]}function HI(t,e){if(!t)return null;let r=lo.create(e,t).dtFormatter(kMe()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(s=>AMe(s,t,i))}var KI="Invalid DateTime",Eae=864e13;function $E(t){return new ao("unsupported zone",`the zone "${t.name}" is not supported`)}function WI(t){return t.weekData===null&&(t.weekData=sx(t.c)),t.weekData}function GI(t){return t.localWeekData===null&&(t.localWeekData=sx(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Bp(t,e){let n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new wt({...n,...e,old:n})}function Aae(t,e,n){let r=t-e*60*1e3,o=n.offset(r);if(e===o)return[r,e];r-=(o-e)*60*1e3;let i=n.offset(r);return o===i?[r,o]:[t-Math.min(o,i)*60*1e3,Math.max(o,i)]}function NE(t,e){t+=e*60*1e3;let n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function LE(t,e,n){return Aae(m0(t),e,n)}function Tae(t,e){let n=t.o,r=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:o,day:Math.min(t.c.day,v0(r,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Wn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=m0(i),[l,c]=Aae(a,n,t.zone);return s!==0&&(l+=s,c=t.zone.offset(l)),{ts:l,o:c}}function px(t,e,n,r,o,i){let{setZone:s,zone:a}=n;if(t&&Object.keys(t).length!==0||e){let l=e||a,c=wt.fromObject(t,{...n,zone:l,specificOffset:i});return s?c:c.setZone(a)}else return wt.invalid(new ao("unparsable",`the input "${o}" can't be parsed as ${r}`))}function DE(t,e,n=!0){return t.isValid?lo.create(nn.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function YI(t,e){let n=t.c.year>9999||t.c.year<0,r="";return n&&t.c.year>=0&&(r+="+"),r+=Kn(t.c.year,n?6:4),e?(r+="-",r+=Kn(t.c.month),r+="-",r+=Kn(t.c.day)):(r+=Kn(t.c.month),r+=Kn(t.c.day)),r}function _ae(t,e,n,r,o,i){let s=Kn(t.c.hour);return e?(s+=":",s+=Kn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(s+=":")):s+=Kn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(s+=Kn(t.c.second),(t.c.millisecond!==0||!r)&&(s+=".",s+=Kn(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!i?s+="Z":t.o<0?(s+="-",s+=Kn(Math.trunc(-t.o/60)),s+=":",s+=Kn(Math.trunc(-t.o%60))):(s+="+",s+=Kn(Math.trunc(t.o/60)),s+=":",s+=Kn(Math.trunc(t.o%60)))),i&&(s+="["+t.zone.ianaName+"]"),s}var Mae={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},PMe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},FMe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Oae=["year","month","day","hour","minute","second","millisecond"],BMe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],zMe=["year","ordinal","hour","minute","second","millisecond"];function jMe(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new p0(t);return e}function $ae(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return jMe(t)}}function Nae(t,e){let n=Xs(e.zone,Kt.defaultZone),r=nn.fromObject(e),o=Kt.now(),i,s;if(He(t.year))i=o;else{for(let c of Oae)He(t[c])&&(t[c]=Mae[c]);let a=LI(t)||AI(t);if(a)return wt.invalid(a);let l=n.offset(o);[i,s]=LE(t,l,n)}return new wt({ts:i,zone:n,loc:r,o:s})}function Dae(t,e,n){let r=He(n.round)?!0:n.round,o=(s,a)=>(s=g0(s,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(s,a)),i=s=>n.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(n.unit)return o(i(n.unit),n.unit);for(let s of n.units){let a=i(s);if(Math.abs(a)>=1)return o(a,s)}return o(t>e?-0:0,n.units[n.units.length-1])}function Lae(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}var wt=class t{constructor(e){let n=e.zone||Kt.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new ao("invalid input"):null)||(n.isValid?null:$E(n));this.ts=He(e.ts)?Kt.now():e.ts;let o=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[o,i]=[e.old.c,e.old.o];else{let a=n.offset(this.ts);o=NE(this.ts,a),r=Number.isNaN(o.year)?new ao("invalid input"):null,o=r?null:o,i=r?null:a}this._zone=n,this.loc=e.loc||nn.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,n]=Lae(arguments),[r,o,i,s,a,l,c]=n;return Nae({year:r,month:o,day:i,hour:s,minute:a,second:l,millisecond:c},e)}static utc(){let[e,n]=Lae(arguments),[r,o,i,s,a,l,c]=n;return e.zone=so.utcInstance,Nae({year:r,month:o,day:i,hour:s,minute:a,second:l,millisecond:c},e)}static fromJSDate(e,n={}){let r=Hse(e)?e.valueOf():NaN;if(Number.isNaN(r))return t.invalid("invalid input");let o=Xs(n.zone,Kt.defaultZone);return o.isValid?new t({ts:r,zone:o,loc:nn.fromObject(n)}):t.invalid($E(o))}static fromMillis(e,n={}){if(sl(e))return e<-Eae||e>Eae?t.invalid("Timestamp out of range"):new t({ts:e,zone:Xs(n.zone,Kt.defaultZone),loc:nn.fromObject(n)});throw new xr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(sl(e))return new t({ts:e*1e3,zone:Xs(n.zone,Kt.defaultZone),loc:nn.fromObject(n)});throw new xr("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};let r=Xs(n.zone,Kt.defaultZone);if(!r.isValid)return t.invalid($E(r));let o=nn.fromObject(n),i=y0(e,$ae),{minDaysInFirstWeek:s,startOfWeek:a}=DI(i,o),l=Kt.now(),c=He(n.specificOffset)?r.offset(l):n.specificOffset,u=!He(i.ordinal),d=!He(i.year),f=!He(i.month)||!He(i.day),p=d||f,m=i.weekYear||i.weekNumber;if((p||u)&&m)throw new Zs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Zs("Can't mix ordinal dates with month/day");let g=m||i.weekday&&!p,h,v,y=NE(l,c);g?(h=BMe,v=PMe,y=sx(y,s,a)):u?(h=zMe,v=FMe,y=TE(y)):(h=Oae,v=Mae);let b=!1;for(let _ of h){let N=i[_];He(N)?b?i[_]=v[_]:i[_]=y[_]:b=!0}let S=g?jse(i,s,a):u?Vse(i):LI(i),C=S||AI(i);if(C)return t.invalid(C);let w=g?$I(i,s,a):u?NI(i):i,[E,T]=LE(w,c,r),$=new t({ts:E,zone:r,o:T,loc:o});return i.weekday&&p&&e.weekday!==$.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${$.toISO()}`):$}static fromISO(e,n={}){let[r,o]=iae(e);return px(r,o,n,"ISO 8601",e)}static fromRFC2822(e,n={}){let[r,o]=sae(e);return px(r,o,n,"RFC 2822",e)}static fromHTTP(e,n={}){let[r,o]=aae(e);return px(r,o,n,"HTTP",n)}static fromFormat(e,n,r={}){if(He(e)||He(n))throw new xr("fromFormat requires an input string and a format");let{locale:o=null,numberingSystem:i=null}=r,s=nn.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[a,l,c,u]=wae(s,e,n);return u?t.invalid(u):px(a,l,r,`format ${n}`,e,c)}static fromString(e,n,r={}){return t.fromFormat(e,n,r)}static fromSQL(e,n={}){let[r,o]=uae(e);return px(r,o,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new xr("need to specify a reason the DateTime is invalid");let r=e instanceof ao?e:new ao(e,n);if(Kt.throwOnInvalid)throw new pE(r);return new t({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){let r=HI(e,nn.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(e,n={}){return VI(lo.parseFormat(e),nn.fromObject(n)).map(o=>o.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?WI(this).weekYear:NaN}get weekNumber(){return this.isValid?WI(this).weekNumber:NaN}get weekday(){return this.isValid?WI(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?GI(this).weekday:NaN}get localWeekNumber(){return this.isValid?GI(this).weekNumber:NaN}get localWeekYear(){return this.isValid?GI(this).weekYear:NaN}get ordinal(){return this.isValid?TE(this.c).ordinal:NaN}get monthShort(){return this.isValid?Dc.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Dc.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Dc.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Dc.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,n=6e4,r=m0(this.c),o=this.zone.offset(r-e),i=this.zone.offset(r+e),s=this.zone.offset(r-o*n),a=this.zone.offset(r-i*n);if(s===a)return[this];let l=r-s*n,c=r-a*n,u=NE(l,s),d=NE(c,a);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[Bp(this,{ts:l}),Bp(this,{ts:c})]:[this]}get isInLeapYear(){return Pp(this.year)}get daysInMonth(){return v0(this.year,this.month)}get daysInYear(){return this.isValid?Md(this.year):NaN}get weeksInWeekYear(){return this.isValid?Rp(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Rp(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:n,numberingSystem:r,calendar:o}=lo.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(e=0,n={}){return this.setZone(so.instance(e),n)}toLocal(){return this.setZone(Kt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=Xs(e,Kt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(n||r){let i=e.offset(this.ts),s=this.toObject();[o]=LE(s,i,e)}return Bp(this,{ts:o,zone:e})}else return t.invalid($E(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){let o=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Bp(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let n=y0(e,$ae),{minDaysInFirstWeek:r,startOfWeek:o}=DI(n,this.loc),i=!He(n.weekYear)||!He(n.weekNumber)||!He(n.weekday),s=!He(n.ordinal),a=!He(n.year),l=!He(n.month)||!He(n.day),c=a||l,u=n.weekYear||n.weekNumber;if((c||s)&&u)throw new Zs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Zs("Can't mix ordinal dates with month/day");let d;i?d=$I({...sx(this.c,r,o),...n},r,o):He(n.ordinal)?(d={...this.toObject(),...n},He(n.day)&&(d.day=Math.min(v0(d.year,d.month),d.day))):d=NI({...TE(this.c),...n});let[f,p]=LE(d,this.o,this.zone);return Bp(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let n=Wn.fromDurationLike(e);return Bp(this,Tae(this,n))}minus(e){if(!this.isValid)return this;let n=Wn.fromDurationLike(e).negate();return Bp(this,Tae(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;let r={},o=Wn.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(o==="weeks")if(n){let i=this.loc.getStartOfWeek(),{weekday:s}=this;s<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(o==="quarters"){let i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?lo.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):KI}toLocaleString(e=Dd,n={}){return this.isValid?lo.create(this.loc.clone(n),e).formatDateTime(this):KI}toLocaleParts(e={}){return this.isValid?lo.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;let s=e==="extended",a=YI(this,s);return a+="T",a+=_ae(this,s,n,r,o,i),a}toISODate({format:e="extended"}={}){return this.isValid?YI(this,e==="extended"):null}toISOWeekDate(){return DE(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:i=!1,format:s="extended"}={}){return this.isValid?(o?"T":"")+_ae(this,s==="extended",n,e,r,i):null}toRFC2822(){return DE(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return DE(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?YI(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(n||e)&&(r&&(o+=" "),n?o+="z":e&&(o+="ZZ")),DE(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():KI}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return Wn.invalid("created by diffing an invalid DateTime");let o={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Kse(n).map(Wn.normalizeUnit),s=e.valueOf()>this.valueOf(),a=s?this:e,l=s?e:this,c=hae(a,l,i,o);return s?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(t.now(),e,n)}until(e){return this.isValid?Nc.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;let o=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,r)<=o&&o<=i.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let n=e.base||t.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0,o=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(o=e.unit,i=void 0),Dae(n,this.plus(r),{...e,numeric:"always",units:o,unit:i})}toRelativeCalendar(e={}){return this.isValid?Dae(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new xr("min requires all arguments be DateTimes");return MI(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new xr("max requires all arguments be DateTimes");return MI(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){let{locale:o=null,numberingSystem:i=null}=r,s=nn.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return UI(s,e,n)}static fromStringExplain(e,n,r={}){return t.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Dd}static get DATE_MED(){return Bb}static get DATE_MED_WITH_WEEKDAY(){return dI}static get DATE_FULL(){return zb}static get DATE_HUGE(){return jb}static get TIME_SIMPLE(){return Vb}static get TIME_WITH_SECONDS(){return Ub}static get TIME_WITH_SHORT_OFFSET(){return Hb}static get TIME_WITH_LONG_OFFSET(){return Kb}static get TIME_24_SIMPLE(){return Wb}static get TIME_24_WITH_SECONDS(){return Gb}static get TIME_24_WITH_SHORT_OFFSET(){return Yb}static get TIME_24_WITH_LONG_OFFSET(){return Zb}static get DATETIME_SHORT(){return qb}static get DATETIME_SHORT_WITH_SECONDS(){return Jb}static get DATETIME_MED(){return Xb}static get DATETIME_MED_WITH_SECONDS(){return Qb}static get DATETIME_MED_WITH_WEEKDAY(){return fI}static get DATETIME_FULL(){return ex}static get DATETIME_FULL_WITH_SECONDS(){return tx}static get DATETIME_HUGE(){return nx}static get DATETIME_HUGE_WITH_SECONDS(){return rx}};function _0(t){if(wt.isDateTime(t))return t;if(t&&t.valueOf&&sl(t.valueOf()))return wt.fromJSDate(t);if(t&&typeof t=="object")return wt.fromObject(t);throw new xr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function AE(t){return t.reduce((e,{field:n,operator:r,value:o})=>{if(!n||!r)return e;if(n==="updated_at"&&(n="modified"),n==="created_at"&&(n="created"),r==="def")return{...e,[`${n}[def]`]:"true"};if(r==="ndef")return{...e,[`${n}[def]`]:"false"};if(r==="checked")return{...e,[`${n}[eq]`]:"true"};if(r==="nchecked")return{...e,[`${n}[eq]`]:"false"};if(typeof o>"u"||o===null||o===""||Array.isArray(o)&&o.length<1)return e;if(r==="between"||r==="sys-date-between")if(Array.isArray(o)&&o.length===2){if(r==="between")return{...e,[`${n}[gte]`]:o[0],[`${n}[lte]`]:o[1]};{let i=wt.fromISO(o[0],{zone:"system"}).setZone("utc").toISO(),s=wt.fromISO(o[1],{zone:"system"}).plus({day:1}).setZone("utc").toISO();return i&&s?{...e,[`${n}[gte]`]:i,[`${n}[lt]`]:s}:e}}else return e;if(r==="sys-date-eq")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).setZone("utc").toISO(),s=wt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return i&&s?{...e,[`${n}[gte]`]:i,[`${n}[lt]`]:s}:e}else return e;if(r==="sys-date-gt")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return i?{...e,[`${n}[gte]`]:i}:e}else return e;if(r==="sys-date-gte")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).setZone("utc").toISO();return i?{...e,[`${n}[gte]`]:i}:e}else return e;if(r==="sys-date-lt")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).setZone("utc").toISO();return i?{...e,[`${n}[lt]`]:i}:e}else return e;if(r==="sys-date-lte")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return i?{...e,[`${n}[lt]`]:i}:e}else return e;if(r==="starts"&&typeof o=="string")return{...e,[`${n}[starts]`]:o.replaceAll(/[^a-zA-Z0-9_.\s-]/g,"").toLowerCase()};if(n==="workflowStageId"){let i=t.some(s=>s.field==="workflowId");if(r==="eq"||r==="neq"){let s=[];return Array.isArray(o)?s=o.map(l=>l.split("_")[1]):s=o.split("_"),{...e,...i?{}:{"workflowId[eq]":s[0]},[`${n}[${r}]`]:s[1]}}if(Array.isArray(o)){let s=o.map(c=>{let u=c.split("_")[0],d=c.split("_")[1];return{workflowId:u,workflowStage:d}}),a=s.map(c=>c.workflowId).join(","),l=s.map(c=>c.workflowStage).join(",");return{...e,...i?{}:{[`workflowId[${r}]`]:a},[`${n}[${r}]`]:l}}}return{...e,[`${n}[${r}]`]:Array.isArray(o)?o.join(","):o}},{})}import{CANVAS_DRAFT_STATE as Iae,CanvasClient as kae}from"@uniformdev/canvas";async function ME({instanceType:t,searchExpressionPrompt:e,username:n,locale:r,getEditUrl:o,env:i}){let s=new kae(i),a=await fE({searchExpressionPrompt:e,username:n,locale:r},t,i),{limit:l,offset:c,keyword:u,sort:d,filter:f}=a,m=(await s.getCompositionList({patternType:t==="composition"?void 0:t==="componentPattern"?"component":"composition",pattern:t!=="composition",resolveData:!1,withComponentIDs:!0,skipOverridesResolution:!0,limit:l,offset:c,search:u,filters:f?AE(f):void 0,orderBy:Array.isArray(d)?d:d?[d]:void 0,locale:r,skipPatternResolution:!0,state:Iae})).compositions.map(g=>({id:g.composition._id,name:g.composition._name,componentType:g.composition.type,editUrl:o(g.composition._id)}));return{content:[{type:"text",text:JSON.stringify({results:m,criteria:a},null,2)}]}}async function OE({id:t,env:e}){let r=await new kae(e).getCompositionById({skipDataResolution:!0,withComponentIDs:!0,skipOverridesResolution:!0,skipPatternResolution:!1,compositionId:t,state:Iae});return{content:[{type:"text",text:JSON.stringify(r,null,2)}]}}var VMe={id:Rae.string()};function Pae(t,e){t.tool("compositionList","Lists available Uniform compositions",Tc.shape,async n=>await ME({...n,instanceType:"composition",getEditUrl:r=>dE(r,e),env:e})),t.tool("compositionGet","Gets the full contents of a Uniform composition",VMe,async n=>await OE({...n,env:e}))}import{autoFixParameterGroups as zae,ContentClient as UMe}from"@uniformdev/canvas";import*as kE from"zod/v3";import*as Rd from"zod/v3";var Fae=Rd.object({name:Rd.string().describe('Title-cased display name of the component. Ex: "Hero"'),id:Rd.string().describe("Public ID of the content type, the camelCase version of name, using only alphanumeric characters"),description:Rd.string().describe("Describe the purpose of the content type in 1-2 sentences."),fields:Rd.array($x).describe("The fields of the content type. The key is the publicId of the field.").optional()});function Bae(t){let e=t.fields?.find(r=>r.type==="asset"&&typeof r.typeConfig=="object"&&r.typeConfig!==null&&"allowedTypes"in r.typeConfig&&Array.isArray(r.typeConfig.allowedTypes)&&r.typeConfig.allowedTypes?.includes("image"))?.id,n=t.fields?.find(r=>r.type==="text")?.id;return{...t,thumbnailField:e,entryName:n}}function IE(t,e){return`${e.baseWebUrl}/dashboards/canvas/content-types/${t}`}var HMe={action:kE.enum(["create","update","delete"]).describe("The action to perform"),publicId:kE.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),contentType:Fae.describe("Full content type definition to create. Omit for update or delete.").optional(),patches:Tx.describe("JSON patch to apply to the existing component definition. Omit for create or delete.").optional()};function jae(t,e){t.tool("contentTypeAction","Creates, updates, or deletes a Uniform Content Type definition",HMe,async({publicId:n,action:r,contentType:o,patches:i})=>{let s=new UMe(e),a=!1;if(r==="create"){if(!o)throw new Error("Content type definition is required for create");let l=Bae(o);l.fields&&(a=zae(l.fields),Vp(l.fields)),await s.upsertContentType({contentType:l})}if(r==="update"){if(!i)throw new Error("Patches are required for update");let c=(await s.getContentTypes()).contentTypes.find(f=>f.id===n);if(!c)throw new Error(`Content Type with public ID ${n} does not exist, try creating it instead`);let u=c.fields?.filter(f=>f.type==="richText").map(f=>f.id),d=Ex(c,i);if(d.fields){a=zae(d.fields);let f=d.fields?.filter(p=>p.type==="richText").map(p=>p.id).filter(p=>!u?.includes(p));Vp(d.fields,f)}await s.upsertContentType({contentType:d})}return r==="delete"&&await s.deleteContentType({contentTypeId:n}),{content:[{type:"text",text:JSON.stringify({success:!0,editUrl:IE(n,e),warning:a?"Issues with field group order were fixed. Ensure definition data is re-fetched before any future updates.":void 0},null,2)}]}})}import{ContentClient as Vae}from"@uniformdev/canvas";import*as Uae from"zod/v3";var KMe={id:Uae.string()};function Hae(t,e){t.tool("contentTypeList","Lists all Uniform Content Type definitions",async()=>{let o=(await new Vae(e).getContentTypes()).contentTypes.map(i=>({id:i.id,name:i.name,description:i.description,editUrl:IE(i.id,e)}));return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}),t.tool("contentTypeGet","Gets a Uniform Content Type definition details (fields, etc.)",KMe,async({id:n})=>{let i=(await new Vae(e).getContentTypes()).contentTypes.find(s=>s.id===n);if(!i)throw new Error(`Content Type with ID ${n} not found`);return{content:[{type:"text",text:JSON.stringify(i,null,2)}]}})}import{v4 as WMe}from"uuid";function Kae(t,e){t.tool("createUuid","Creates a new random UUID",async()=>({content:[{type:"text",text:WMe()}]}))}import*as mx from"zod/v3";import{CANVAS_DRAFT_STATE as RE,ContentClient as GMe,convertEntryToPutEntry as YMe,getEffectivePropertyValue as ZMe}from"@uniformdev/canvas";async function qMe(t,e,n){let o=(await e.fetchDefinitions())[t.entry.type];if(!o)throw new Error("insanity");let i=ese(o),s;i.entryName&&(s=t.entry._overrides?.[t.entry._id].parameters?.[i.entryName]??t.entry.fields?.[i.entryName]);let a=ZMe({conditionIndex:-1,locale:"__any__",greedyLocaleMatching:!0,property:s}),l=Oie({value:a,isNew:n,contentType:i});t.entry._name=l}async function PE({action:t,id:e,instructions:n,isPattern:r,patternId:o,getEditUrl:i,env:s}){let a=new GMe(s),l,c,u=t==="update"?e:void 0,d={success:!0,actionsTaken:[]};if(t==="duplicate"){let p=(await a.getEntries({entryIDs:[e],pattern:r,state:RE,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0})).entries[0];if(!p)throw new Error("Entry not found");let m=crypto.randomUUID(),g={...p.entry,_id:m,_name:`${p.entry._name} (copy)`};g._slug&&(g._slug=`${g._slug}-copy${g._slug?.endsWith("/")?"/":""}`),delete g._thumbnail;let h=Rb({...p,entry:g});l=new il(h.composition),e=m}else if(t==="create"){if(!n)throw new Error("Instructions are required for create");if(!n.type)throw new Error("Type is required for create");o?(await a.upsertEntry({state:RE,entry:{type:n.type,_id:e,fields:{},_pattern:o}}),u=e):l=new il({_id:e,_name:"New Entry",type:n.type,_overridability:{hideLockedParameters:!0}})}if(u){if(c=(await a.getEntries({entryIDs:[e],pattern:r,state:RE,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0})).entries[0],!c)throw new Error("Entry not found");let p=Rb(c);l=new il(p.composition)}t==="delete"&&await a.deleteEntry({entryId:e});let f=wse(s);if(l){t!=="duplicate"&&(await lE(n?.localeUpdates?.enableLocales,s),d=await Q5({twee:l,descriptionUpdate:void 0,slugUpdate:n&&"slug"in n?n.slug:void 0,nameUpdate:n&&"name"in n?n.name:void 0,propertyUpdates:n?.fieldUpdates??[],dataResourceUpdates:(n&&"dataResourceUpdates"in n?n.dataResourceUpdates:[])??[],slotUpdates:{},localeUpdates:n?.localeUpdates,currentEditorLocale:void 0,referenceData:f,isEditingPattern:r,domParser:aE}));let p=l.exportTree(),m=l.exportMetadata(),g=YMe(tse(p,c??{projectId:s.projectId,pattern:r},m,RE,c?.releaseId,c?.editionId));r||await qMe(g,f,t==="create"),await a.upsertEntry(g)}return{content:[{type:"text",text:JSON.stringify({...d,editUrl:i(e)},null,2)}]}}function FE(t,e){return`${e.baseWebUrl}/dashboards/canvas/entries/${t}`}var JMe={action:mx.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:mx.string().uuid().describe("UUID of the entry to create, update, delete, or duplicate"),patternId:mx.string().uuid().describe("Entry pattern ID to create the entry from. Omit when not creating, or when creating an entry without an entry pattern.").optional(),instructions:Ek.describe("Modification instructions for the entry. Omit for delete and duplicate.").optional()};function Wae(t,e){t.tool("entryAction","Creates, updates, or deletes a Uniform Entry",JMe,async n=>await PE({...n,isPattern:!1,getEditUrl:r=>FE(r,e),patternId:n.patternId,env:e}))}import*as Zae from"zod/v3";import{CANVAS_DRAFT_STATE as Gae,ContentClient as Yae}from"@uniformdev/canvas";async function BE({isPattern:t,searchExpressionPrompt:e,username:n,locale:r,getEditUrl:o,env:i}){let s=new Yae(i),a=await fE({searchExpressionPrompt:e,username:n,locale:r},t?"entryPattern":"entry",i),{limit:l,offset:c,keyword:u,sort:d,filter:f}=a,m=(await s.getEntries({limit:l,offset:c,pattern:t,skipDataResolution:!0,withTotalCount:!0,skipPatternResolution:!0,skipOverridesResolution:!0,state:Gae,search:u,filters:f?AE(f):void 0,orderBy:Array.isArray(d)?d:d?[d]:void 0,locale:r})).entries.map(g=>({id:g.entry._id,name:g.entry._name??"",contentType:g.entry.type,editUrl:o(g.entry._id)}));return{content:[{type:"text",text:JSON.stringify({results:m,criteria:a},null,2)}]}}async function zE({id:t,isPattern:e,env:n}){let o=await new Yae(n).getEntries({skipDataResolution:!0,withComponentIDs:!0,skipOverridesResolution:!0,skipPatternResolution:!1,pattern:e,entryIDs:[t],state:Gae});if(o.entries.length===0)throw new Error(`Entry with ID ${t} not found`);return{content:[{type:"text",text:JSON.stringify(o.entries[0],null,2)}]}}var XMe={id:Zae.string()};function qae(t,e){t.tool("entryList","Lists available Uniform entries",Tc.shape,async n=>await BE({...n,isPattern:!1,getEditUrl:r=>FE(r,e),env:e})),t.tool("entryGet","Gets the full contents of a Uniform entry",XMe,async n=>await zE({...n,isPattern:!1,env:e}))}import*as VE from"zod/v3";function jE(t,e){return`${e.baseWebUrl}/dashboards/canvas/entry-patterns/${t}`}var QMe={action:VE.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:VE.string().uuid().describe("UUID of the entry pattern to create, update, delete, or duplicate"),instructions:Tk.describe("Modification instructions for the entry pattern. Omit for delete and duplicate.").optional()};function Jae(t,e){t.tool("entryPatternAction","Creates, updates, or deletes a Uniform Entry Pattern",QMe,async n=>await PE({...n,isPattern:!0,getEditUrl:r=>jE(r,e),patternId:void 0,env:e}))}import*as Xae from"zod/v3";var eOe={id:Xae.string()};function Qae(t,e){t.tool("entryPatternList","Lists available Uniform entry patterns",Tc.shape,async n=>await BE({...n,isPattern:!0,getEditUrl:r=>jE(r,e),env:e})),t.tool("entryPatternGet","Gets the full contents of a Uniform entry pattern",eOe,async n=>await zE({...n,isPattern:!0,env:e}))}import{ProjectClient as tOe}from"@uniformdev/canvas";async function nOe(t){let e=await fetch(`${t.apiHost}/api/v1/member-profile`,{headers:{"x-api-key":t.apiKey,"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to fetch user profile: ${e.status} ${e.statusText}`);return(await e.json()).name}function ele(t,e){t.tool("getUniformEnvironment","Get the connected Uniform Project name, edit URL, and current user",{},async()=>{try{let n=new tOe(e),[r,o]=await Promise.all([n.get({projectId:e.projectId}),nOe(e)]),i={projectName:r.name,teamName:r.teamName,projectUrl:e.baseWebUrl,currentIdentity:o};return{content:[{type:"text",text:JSON.stringify(i,null,2)}]}}catch(n){return{content:[{type:"text",text:JSON.stringify({error:"Failed to fetch project information",details:n instanceof Error?n.message:"Unknown error"},null,2)}]}}})}import{LocaleClient as rOe}from"@uniformdev/canvas";function tle(t,e){t.tool("localeList","Lists all registered Uniform locales",async()=>{let r=await new rOe(e).get();return{content:[{type:"text",text:JSON.stringify({locales:r.results,editUrl:`${e.baseWebUrl}/settings/localization`},null,2)}]}})}import*as HE from"zod/v3";function UE(t,e){return`${e.baseWebUrl}/dashboards/canvas/edit/${t}`}var oOe={action:HE.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:HE.string().uuid().describe("UUID of the pattern instance to create, update, delete, or duplicate"),instructions:Sk.describe("Modification instructions for the pattern. Omit for delete and duplicate.").optional()};function nle(t,e){t.tool("patternAction","Creates, updates, or deletes a Uniform Component Pattern or Composition Pattern",oOe,async n=>await uE({...n,isPattern:!0,getEditUrl:r=>UE(r,e),patternId:void 0,env:e}))}import*as KE from"zod/v3";var iOe={instanceType:KE.enum(["componentPattern","compositionPattern"]),...Tc.shape},sOe={id:KE.string()};function rle(t,e){t.tool("patternList","Lists available Uniform component patterns or composition patterns",iOe,async n=>await ME({...n,getEditUrl:r=>UE(r,e),env:e})),t.tool("patternGet","Gets the full contents of a Uniform component pattern or composition pattern",sOe,async n=>await OE({...n,env:e}))}import{ProjectMapClient as aOe}from"@uniformdev/project-map";import*as ole from"zod/v3";var lOe={query:ole.string().describe("Keyword to search for in node names and paths.")};function ile(t,e){t.tool("projectMapNodeSearch","Search for project map nodes by keyword. Use this to find the appropriate parent node when you need to create a composition attached to a specific location in the project map hierarchy.",lOe,async({query:n})=>{let r=new aOe({apiKey:e.apiKey,apiHost:e.apiHost,projectId:e.projectId}),i=(await r.getProjectMapDefinition({}))?.projectMaps[0]?.id;if(!i)throw new Error("No project map found for this project");let a=(await r.getNodes({search:n,includeAncestors:!1,expanded:!0,depth:1,projectMapId:i})).nodes?.map(l=>({id:l.id,name:l.name,path:l.path}))??[];return{content:[{type:"text",text:JSON.stringify({matches:a},null,2)}]}})}function sle(t,e){fk(t,e),yk(t,e),Ck(t,e),jae(t,e),Hae(t,e),Wae(t,e),qae(t,e),Qae(t,e),Jae(t,e),rle(t,e),nle(t,e),Ese(t,e),Pae(t,e),Kae(t,e),ele(t,e),tle(t,e),ile(t,e)}var ale=new cOe({name:"Uniform MCP",version:xx.version});sle(ale,uk);var dOe=new uOe;await ale.connect(dOe);process.stderr.write(`Uniform MCP server started
|
|
5876
|
+
You can filter by date, number, or string properties on the definition, as well as name, created, modified, author, slug, enabled locales, type, and publish status.`),username:In.string().describe("The username of the current user. If you do not know the username, use an empty string"),locale:In.string().describe("The current locale. If there is no current locale, use an empty string")}),RTt={displayName:"Create filter expression",description:"Creates a Uniform search filter expression for searching entries, patterns, or compositions from a user prompt. Meant to be a callable tool only.",inputSchema:Tc.extend({entityType:In.enum(["composition","entry","componentPattern","compositionPattern","entryPattern"]).describe("The entity type we are creating a filter for")}),outputSchema:vAe,runsAt:"server",timeout:10,callable:!0};import*as Rae from"zod/v3";var _c=class extends Error{},pE=class extends _c{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},mE=class extends _c{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},gE=class extends _c{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Zs=class extends _c{},p0=class extends _c{constructor(e){super(`Invalid unit ${e}`)}},xr=class extends _c{},qs=class extends _c{constructor(){super("Zone is an abstract class")}};var ge="numeric",Js="short",ji="long",Dd={year:ge,month:ge,day:ge},Bb={year:ge,month:Js,day:ge},dI={year:ge,month:Js,day:ge,weekday:Js},zb={year:ge,month:ji,day:ge},jb={year:ge,month:ji,day:ge,weekday:ji},Vb={hour:ge,minute:ge},Ub={hour:ge,minute:ge,second:ge},Hb={hour:ge,minute:ge,second:ge,timeZoneName:Js},Kb={hour:ge,minute:ge,second:ge,timeZoneName:ji},Wb={hour:ge,minute:ge,hourCycle:"h23"},Gb={hour:ge,minute:ge,second:ge,hourCycle:"h23"},Yb={hour:ge,minute:ge,second:ge,hourCycle:"h23",timeZoneName:Js},Zb={hour:ge,minute:ge,second:ge,hourCycle:"h23",timeZoneName:ji},qb={year:ge,month:ge,day:ge,hour:ge,minute:ge},Jb={year:ge,month:ge,day:ge,hour:ge,minute:ge,second:ge},Xb={year:ge,month:Js,day:ge,hour:ge,minute:ge},Qb={year:ge,month:Js,day:ge,hour:ge,minute:ge,second:ge},fI={year:ge,month:Js,day:ge,weekday:Js,hour:ge,minute:ge},ex={year:ge,month:ji,day:ge,hour:ge,minute:ge,timeZoneName:Js},tx={year:ge,month:ji,day:ge,hour:ge,minute:ge,second:ge,timeZoneName:Js},nx={year:ge,month:ji,day:ge,weekday:ji,hour:ge,minute:ge,timeZoneName:ji},rx={year:ge,month:ji,day:ge,weekday:ji,hour:ge,minute:ge,second:ge,timeZoneName:ji};var xi=class{get type(){throw new qs}get name(){throw new qs}get ianaName(){return this.name}get isUniversal(){throw new qs}offsetName(e,n){throw new qs}formatOffset(e,n){throw new qs}offset(e){throw new qs}equals(e){throw new qs}get isValid(){throw new qs}};var pI=null,Ld=class t extends xi{static get instance(){return pI===null&&(pI=new t),pI}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return vE(e,n,r)}formatOffset(e,n){return Ad(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var bE={};function yAe(t){return bE[t]||(bE[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),bE[t]}var bAe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function xAe(t,e){let n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,s,a,l,c,u]=r;return[s,o,i,a,l,c,u]}function CAe(t,e){let n=t.formatToParts(e),r=[];for(let o=0;o<n.length;o++){let{type:i,value:s}=n[o],a=bAe[i];i==="era"?r[a]=s:He(a)||(r[a]=parseInt(s,10))}return r}var yE={},Lo=class t extends xi{static create(e){return yE[e]||(yE[e]=new t(e)),yE[e]}static resetCache(){yE={},bE={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return vE(e,n,r,this.name)}formatOffset(e,n){return Ad(this.offset(e),n)}offset(e){let n=new Date(e);if(isNaN(n))return NaN;let r=yAe(this.name),[o,i,s,a,l,c,u]=r.formatToParts?CAe(r,n):xAe(r,n);a==="BC"&&(o=-Math.abs(o)+1);let f=m0({year:o,month:i,day:s,hour:l===24?0:l,minute:c,second:u,millisecond:0}),p=+n,m=p%1e3;return p-=m>=0?m:1e3+m,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var Tse={};function SAe(t,e={}){let n=JSON.stringify([t,e]),r=Tse[n];return r||(r=new Intl.ListFormat(t,e),Tse[n]=r),r}var mI={};function gI(t,e={}){let n=JSON.stringify([t,e]),r=mI[n];return r||(r=new Intl.DateTimeFormat(t,e),mI[n]=r),r}var hI={};function wAe(t,e={}){let n=JSON.stringify([t,e]),r=hI[n];return r||(r=new Intl.NumberFormat(t,e),hI[n]=r),r}var vI={};function EAe(t,e={}){let{base:n,...r}=e,o=JSON.stringify([t,r]),i=vI[o];return i||(i=new Intl.RelativeTimeFormat(t,e),vI[o]=i),i}var ox=null;function TAe(){return ox||(ox=new Intl.DateTimeFormat().resolvedOptions().locale,ox)}var _se={};function _Ae(t){let e=_se[t];if(!e){let n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,_se[t]=e}return e}function $Ae(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let n=t.indexOf("-u-");if(n===-1)return[t];{let r,o;try{r=gI(t).resolvedOptions(),o=t}catch{let l=t.substring(0,n);r=gI(l).resolvedOptions(),o=l}let{numberingSystem:i,calendar:s}=r;return[o,i,s]}}function NAe(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function DAe(t){let e=[];for(let n=1;n<=12;n++){let r=wt.utc(2009,n,1);e.push(t(r))}return e}function LAe(t){let e=[];for(let n=1;n<=7;n++){let r=wt.utc(2016,11,13+n);e.push(t(r))}return e}function xE(t,e,n,r){let o=t.listingMode();return o==="error"?null:o==="en"?n(e):r(e)}function AAe(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var yI=class{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:o,floor:i,...s}=r;if(!n||Object.keys(s).length>0){let a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=wAe(e,a)}}format(e){if(this.inf){let n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{let n=this.floor?Math.floor(e):g0(e,3);return Kn(n,this.padTo)}}},bI=class{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&Lo.create(a).valid?(o=a,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=gI(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){let r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},xI=class{constructor(e,n,r){this.opts={style:"long",...r},!n&&CE()&&(this.rtf=EAe(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):$se(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}},MAe={firstDay:1,minimalDays:4,weekend:[6,7]},nn=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,o,i=!1){let s=e||Kt.defaultLocale,a=s||(i?"en-US":TAe()),l=n||Kt.defaultNumberingSystem,c=r||Kt.defaultOutputCalendar,u=ix(o)||Kt.defaultWeekSettings;return new t(a,l,c,u,s)}static resetCache(){ox=null,mI={},hI={},vI={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return t.create(e,n,r,o)}constructor(e,n,r,o,i){let[s,a,l]=$Ae(e);this.locale=s,this.numberingSystem=n||a||null,this.outputCalendar=r||l||null,this.weekSettings=o,this.intl=NAe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=AAe(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ix(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return xE(this,e,CI,()=>{let r=n?{month:e,day:"numeric"}:{month:e},o=n?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=DAe(i=>this.extract(i,r,"month"))),this.monthsCache[o][e]})}weekdays(e,n=!1){return xE(this,e,SI,()=>{let r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=n?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=LAe(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return xE(this,void 0,()=>wI,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[wt.utc(2016,11,13,9),wt.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return xE(this,e,EI,()=>{let n={era:e};return this.eraCache[e]||(this.eraCache[e]=[wt.utc(-40,1,1),wt.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){let o=this.dtFormatter(e,n),i=o.formatToParts(),s=i.find(a=>a.type.toLowerCase()===r);return s?s.value:null}numberFormatter(e={}){return new yI(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new bI(e,this.intl,n)}relFormatter(e={}){return new xI(this.intl,this.isEnglish(),e)}listFormatter(e={}){return SAe(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:SE()?_Ae(this.locale):MAe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}};var _I=null,so=class t extends xi{static get utcInstance(){return _I===null&&(_I=new t(0)),_I}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(kp(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ad(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ad(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Ad(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var h0=class extends xi{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Xs(t,e){let n;if(He(t)||t===null)return e;if(t instanceof xi)return t;if(Nse(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Ld.instance:r==="utc"||r==="gmt"?so.utcInstance:so.parseSpecifier(r)||Lo.create(t)}else return sl(t)?so.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new h0(t)}var Dse=()=>Date.now(),Lse="system",Ase=null,Mse=null,Ose=null,Ise=60,kse,Rse=null,Kt=class{static get now(){return Dse}static set now(e){Dse=e}static set defaultZone(e){Lse=e}static get defaultZone(){return Xs(Lse,Ld.instance)}static get defaultLocale(){return Ase}static set defaultLocale(e){Ase=e}static get defaultNumberingSystem(){return Mse}static set defaultNumberingSystem(e){Mse=e}static get defaultOutputCalendar(){return Ose}static set defaultOutputCalendar(e){Ose=e}static get defaultWeekSettings(){return Rse}static set defaultWeekSettings(e){Rse=ix(e)}static get twoDigitCutoffYear(){return Ise}static set twoDigitCutoffYear(e){Ise=e%100}static get throwOnInvalid(){return kse}static set throwOnInvalid(e){kse=e}static resetCaches(){nn.resetCache(),Lo.resetCache()}};var ao=class{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var Pse=[0,31,59,90,120,151,181,212,243,273,304,334],Fse=[0,31,60,91,121,152,182,213,244,274,305,335];function ms(t,e){return new ao("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function wE(t,e,n){let r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let o=r.getUTCDay();return o===0?7:o}function Bse(t,e,n){return n+(Pp(t)?Fse:Pse)[e-1]}function zse(t,e){let n=Pp(t)?Fse:Pse,r=n.findIndex(i=>i<e),o=e-n[r];return{month:r+1,day:o}}function EE(t,e){return(t-e+7)%7+1}function sx(t,e=4,n=1){let{year:r,month:o,day:i}=t,s=Bse(r,o,i),a=EE(wE(r,o,i),n),l=Math.floor((s-a+14-e)/7),c;return l<1?(c=r-1,l=Rp(c,e,n)):l>Rp(r,e,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:a,...lx(t)}}function $I(t,e=4,n=1){let{weekYear:r,weekNumber:o,weekday:i}=t,s=EE(wE(r,1,e),n),a=Md(r),l=o*7+i-s-7+e,c;l<1?(c=r-1,l+=Md(c)):l>a?(c=r+1,l-=Md(r)):c=r;let{month:u,day:d}=zse(c,l);return{year:c,month:u,day:d,...lx(t)}}function TE(t){let{year:e,month:n,day:r}=t,o=Bse(e,n,r);return{year:e,ordinal:o,...lx(t)}}function NI(t){let{year:e,ordinal:n}=t,{month:r,day:o}=zse(e,n);return{year:e,month:r,day:o,...lx(t)}}function DI(t,e){if(!He(t.localWeekday)||!He(t.localWeekNumber)||!He(t.localWeekYear)){if(!He(t.weekday)||!He(t.weekNumber)||!He(t.weekYear))throw new Zs("Cannot mix locale-based week fields with ISO-based week fields");return He(t.localWeekday)||(t.weekday=t.localWeekday),He(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),He(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function jse(t,e=4,n=1){let r=ax(t.weekYear),o=Vi(t.weekNumber,1,Rp(t.weekYear,e,n)),i=Vi(t.weekday,1,7);return r?o?i?!1:ms("weekday",t.weekday):ms("week",t.weekNumber):ms("weekYear",t.weekYear)}function Vse(t){let e=ax(t.year),n=Vi(t.ordinal,1,Md(t.year));return e?n?!1:ms("ordinal",t.ordinal):ms("year",t.year)}function LI(t){let e=ax(t.year),n=Vi(t.month,1,12),r=Vi(t.day,1,v0(t.year,t.month));return e?n?r?!1:ms("day",t.day):ms("month",t.month):ms("year",t.year)}function AI(t){let{hour:e,minute:n,second:r,millisecond:o}=t,i=Vi(e,0,23)||e===24&&n===0&&r===0&&o===0,s=Vi(n,0,59),a=Vi(r,0,59),l=Vi(o,0,999);return i?s?a?l?!1:ms("millisecond",o):ms("second",r):ms("minute",n):ms("hour",e)}function He(t){return typeof t>"u"}function sl(t){return typeof t=="number"}function ax(t){return typeof t=="number"&&t%1===0}function Nse(t){return typeof t=="string"}function Hse(t){return Object.prototype.toString.call(t)==="[object Date]"}function CE(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function SE(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Kse(t){return Array.isArray(t)?t:[t]}function MI(t,e,n){if(t.length!==0)return t.reduce((r,o)=>{let i=[e(o),o];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Wse(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Od(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ix(t){if(t==null)return null;if(typeof t!="object")throw new xr("Week settings must be an object");if(!Vi(t.firstDay,1,7)||!Vi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Vi(e,1,7)))throw new xr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Vi(t,e,n){return ax(t)&&t>=e&&t<=n}function OAe(t,e){return t-e*Math.floor(t/e)}function Kn(t,e=2){let n=t<0,r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function $c(t){if(!(He(t)||t===null||t===""))return parseInt(t,10)}function Id(t){if(!(He(t)||t===null||t===""))return parseFloat(t)}function cx(t){if(!(He(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function g0(t,e,n=!1){let r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Pp(t){return t%4===0&&(t%100!==0||t%400===0)}function Md(t){return Pp(t)?366:365}function v0(t,e){let n=OAe(e-1,12)+1,r=t+(e-n)/12;return n===2?Pp(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function m0(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Use(t,e,n){return-EE(wE(t,1,e),n)+e-1}function Rp(t,e=4,n=1){let r=Use(t,e,n),o=Use(t+1,e,n);return(Md(t)-r+o)/7}function ux(t){return t>99?t:t>Kt.twoDigitCutoffYear?1900+t:2e3+t}function vE(t,e,n,r=null){let o=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);let s={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,s).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function kp(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);let r=parseInt(e,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function OI(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new xr(`Invalid unit value ${t}`);return e}function y0(t,e){let n={};for(let r in t)if(Od(t,r)){let o=t[r];if(o==null)continue;n[e(r)]=OI(o)}return n}function Ad(t,e){let n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${Kn(n,2)}:${Kn(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${Kn(n,2)}${Kn(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function lx(t){return Wse(t,["hour","minute","second","millisecond"])}var IAe=["January","February","March","April","May","June","July","August","September","October","November","December"],II=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kAe=["J","F","M","A","M","J","J","A","S","O","N","D"];function CI(t){switch(t){case"narrow":return[...kAe];case"short":return[...II];case"long":return[...IAe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var kI=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],RI=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],RAe=["M","T","W","T","F","S","S"];function SI(t){switch(t){case"narrow":return[...RAe];case"short":return[...RI];case"long":return[...kI];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var wI=["AM","PM"],PAe=["Before Christ","Anno Domini"],FAe=["BC","AD"],BAe=["B","A"];function EI(t){switch(t){case"narrow":return[...BAe];case"short":return[...FAe];case"long":return[...PAe];default:return null}}function Gse(t){return wI[t.hour<12?0:1]}function Yse(t,e){return SI(e)[t.weekday-1]}function Zse(t,e){return CI(e)[t.month-1]}function qse(t,e){return EI(e)[t.year<0?0:1]}function $se(t,e,n="always",r=!1){let o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){let d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${o[t][0]}`;case-1:return d?"yesterday":`last ${o[t][0]}`;case 0:return d?"today":`this ${o[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,c=o[t],u=r?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return s?`${a} ${u} ago`:`in ${a} ${u}`}function Jse(t,e){let n="";for(let r of t)r.literal?n+=r.val:n+=e(r.val);return n}var zAe={D:Dd,DD:Bb,DDD:zb,DDDD:jb,t:Vb,tt:Ub,ttt:Hb,tttt:Kb,T:Wb,TT:Gb,TTT:Yb,TTTT:Zb,f:qb,ff:Xb,fff:ex,ffff:nx,F:Jb,FF:Qb,FFF:tx,FFFF:rx},lo=class t{static create(e,n={}){return new t(e,n)}static parseFormat(e){let n=null,r="",o=!1,i=[];for(let s=0;s<e.length;s++){let a=e.charAt(s);a==="'"?(r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),n=null,r="",o=!o):o||a===n?r+=a:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return zAe[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Kn(e,n);let r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){let r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(p,m)=>this.loc.extract(e,p,m),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",a=()=>r?Gse(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,m)=>r?Zse(e,p):i(m?{month:p}:{month:p,day:"numeric"},"month"),c=(p,m)=>r?Yse(e,p):i(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{let m=t.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(e,m):p},d=p=>r?qse(e,p):i({era:p},"era"),f=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return o?i({day:"numeric"},"day"):this.num(e.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(e.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(e.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(p)}};return Jse(t.parseFormat(n),f)}formatDurationFromString(e,n){let r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{let u=r(c);return u?this.num(l.get(u),c.length):c},i=t.parseFormat(n),s=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),a=e.shiftTo(...s.map(r).filter(l=>l));return Jse(i,o(a))}};var Qse=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function x0(...t){let e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function C0(...t){return e=>t.reduce(([n,r,o],i)=>{let[s,a,l]=i(e,o);return[{...n,...s},a||r,l]},[{},null,1]).slice(0,2)}function S0(t,...e){if(t==null)return[null,null];for(let[n,r]of e){let o=n.exec(t);if(o)return r(o)}return[null,null]}function eae(...t){return(e,n)=>{let r={},o;for(o=0;o<t.length;o++)r[t[o]]=$c(e[n+o]);return[r,null,n+o]}}var tae=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,jAe=`(?:${tae.source}?(?:\\[(${Qse.source})\\])?)?`,PI=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,nae=RegExp(`${PI.source}${jAe}`),FI=RegExp(`(?:T${nae.source})?`),VAe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,UAe=/(\d{4})-?W(\d\d)(?:-?(\d))?/,HAe=/(\d{4})-?(\d{3})/,KAe=eae("weekYear","weekNumber","weekDay"),WAe=eae("year","ordinal"),GAe=/(\d{4})-(\d\d)-(\d\d)/,rae=RegExp(`${PI.source} ?(?:${tae.source}|(${Qse.source}))?`),YAe=RegExp(`(?: ${rae.source})?`);function b0(t,e,n){let r=t[e];return He(r)?n:$c(r)}function ZAe(t,e){return[{year:b0(t,e),month:b0(t,e+1,1),day:b0(t,e+2,1)},null,e+3]}function w0(t,e){return[{hours:b0(t,e,0),minutes:b0(t,e+1,0),seconds:b0(t,e+2,0),milliseconds:cx(t[e+3])},null,e+4]}function dx(t,e){let n=!t[e]&&!t[e+1],r=kp(t[e+1],t[e+2]),o=n?null:so.instance(r);return[{},o,e+3]}function fx(t,e){let n=t[e]?Lo.create(t[e]):null;return[{},n,e+1]}var qAe=RegExp(`^T?${PI.source}$`),JAe=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function XAe(t){let[e,n,r,o,i,s,a,l,c]=t,u=e[0]==="-",d=l&&l[0]==="-",f=(p,m=!1)=>p!==void 0&&(m||p&&u)?-p:p;return[{years:f(Id(n)),months:f(Id(r)),weeks:f(Id(o)),days:f(Id(i)),hours:f(Id(s)),minutes:f(Id(a)),seconds:f(Id(l),l==="-0"),milliseconds:f(cx(c),d)}]}var QAe={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function BI(t,e,n,r,o,i,s){let a={year:e.length===2?ux($c(e)):$c(e),month:II.indexOf(n)+1,day:$c(r),hour:$c(o),minute:$c(i)};return s&&(a.second=$c(s)),t&&(a.weekday=t.length>3?kI.indexOf(t)+1:RI.indexOf(t)+1),a}var eMe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tMe(t){let[,e,n,r,o,i,s,a,l,c,u,d]=t,f=BI(e,o,r,n,i,s,a),p;return l?p=QAe[l]:c?p=0:p=kp(u,d),[f,new so(p)]}function nMe(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var rMe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,oMe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,iMe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Xse(t){let[,e,n,r,o,i,s,a]=t;return[BI(e,o,r,n,i,s,a),so.utcInstance]}function sMe(t){let[,e,n,r,o,i,s,a]=t;return[BI(e,a,n,r,o,i,s),so.utcInstance]}var aMe=x0(VAe,FI),lMe=x0(UAe,FI),cMe=x0(HAe,FI),uMe=x0(nae),oae=C0(ZAe,w0,dx,fx),dMe=C0(KAe,w0,dx,fx),fMe=C0(WAe,w0,dx,fx),pMe=C0(w0,dx,fx);function iae(t){return S0(t,[aMe,oae],[lMe,dMe],[cMe,fMe],[uMe,pMe])}function sae(t){return S0(nMe(t),[eMe,tMe])}function aae(t){return S0(t,[rMe,Xse],[oMe,Xse],[iMe,sMe])}function lae(t){return S0(t,[JAe,XAe])}var mMe=C0(w0);function cae(t){return S0(t,[qAe,mMe])}var gMe=x0(GAe,YAe),hMe=x0(rae),vMe=C0(w0,dx,fx);function uae(t){return S0(t,[gMe,oae],[hMe,vMe])}var dae="Invalid Duration",pae={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},yMe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...pae},gs=146097/400,E0=146097/4800,bMe={years:{quarters:4,months:12,weeks:gs/7,days:gs,hours:gs*24,minutes:gs*24*60,seconds:gs*24*60*60,milliseconds:gs*24*60*60*1e3},quarters:{months:3,weeks:gs/28,days:gs/4,hours:gs*24/4,minutes:gs*24*60/4,seconds:gs*24*60*60/4,milliseconds:gs*24*60*60*1e3/4},months:{weeks:E0/7,days:E0,hours:E0*24,minutes:E0*24*60,seconds:E0*24*60*60,milliseconds:E0*24*60*60*1e3},...pae},Fp=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],xMe=Fp.slice(0).reverse();function kd(t,e,n=!1){let r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Wn(r)}function mae(t,e){let n=e.milliseconds??0;for(let r of xMe.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function fae(t,e){let n=mae(t,e)<0?-1:1;Fp.reduceRight((r,o)=>{if(He(e[o]))return r;if(r){let i=e[r]*n,s=t[o][r],a=Math.floor(i/s);e[o]+=a*n,e[r]-=a*s*n}return o},null),Fp.reduce((r,o)=>{if(He(e[o]))return r;if(r){let i=e[r]%1;e[r]-=i,e[o]+=i*t[r][o]}return o},null)}function CMe(t){let e={};for(let[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}var Wn=class t{constructor(e){let n=e.conversionAccuracy==="longterm"||!1,r=n?bMe:yMe;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||nn.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return t.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new xr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:y0(e,t.normalizeUnit),loc:nn.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(sl(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new xr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){let[r]=lae(e);return r?t.fromObject(r,n):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){let[r]=cae(e);return r?t.fromObject(r,n):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new xr("need to specify a reason the Duration is invalid");let r=e instanceof ao?e:new ao(e,n);if(Kt.throwOnInvalid)throw new gE(r);return new t({invalid:r})}static normalizeUnit(e){let n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new p0(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){let r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?lo.create(this.loc,r).formatDurationFromString(this,e):dae}toHuman(e={}){if(!this.isValid)return dae;let n=Fp.map(r=>{let o=this.values[r];return He(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=g0(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},wt.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?mae(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let n=t.fromDurationLike(e),r={};for(let o of Fp)(Od(n.values,o)||Od(this.values,o))&&(r[o]=n.get(o)+this.get(o));return kd(this,{values:r},!0)}minus(e){if(!this.isValid)return this;let n=t.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;let n={};for(let r of Object.keys(this.values))n[r]=OI(e(this.values[r],r));return kd(this,{values:n},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let n={...this.values,...y0(e,t.normalizeUnit)};return kd(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:o,conversionAccuracy:r};return kd(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return fae(this.matrix,e),kd(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=CMe(this.normalize().shiftToAll().toObject());return kd(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let n={},r={},o=this.toObject(),i;for(let s of Fp)if(e.indexOf(s)>=0){i=s;let a=0;for(let c in r)a+=this.matrix[c][s]*r[c],r[c]=0;sl(o[s])&&(a+=o[s]);let l=Math.trunc(a);n[s]=l,r[s]=(a*1e3-l*1e3)/1e3}else sl(o[s])&&(r[s]=o[s]);for(let s in r)r[s]!==0&&(n[i]+=s===i?r[s]:r[s]/this.matrix[i][s]);return fae(this.matrix,n),kd(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return kd(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(let r of Fp)if(!n(this.values[r],e.values[r]))return!1;return!0}};var T0="Invalid Interval";function SMe(t,e){return!t||!t.isValid?Nc.invalid("missing or invalid start"):!e||!e.isValid?Nc.invalid("missing or invalid end"):e<t?Nc.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var Nc=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new xr("need to specify a reason the Interval is invalid");let r=e instanceof ao?e:new ao(e,n);if(Kt.throwOnInvalid)throw new mE(r);return new t({invalid:r})}static fromDateTimes(e,n){let r=_0(e),o=_0(n),i=SMe(r,o);return i??new t({start:r,end:o})}static after(e,n){let r=Wn.fromDurationLike(n),o=_0(e);return t.fromDateTimes(o,o.plus(r))}static before(e,n){let r=Wn.fromDurationLike(n),o=_0(e);return t.fromDateTimes(o.minus(r),o)}static fromISO(e,n){let[r,o]=(e||"").split("/",2);if(r&&o){let i,s;try{i=wt.fromISO(r,n),s=i.isValid}catch{s=!1}let a,l;try{a=wt.fromISO(o,n),l=a.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(i,a);if(s){let c=Wn.fromISO(o,n);if(c.isValid)return t.after(i,c)}else if(l){let c=Wn.fromISO(r,n);if(c.isValid)return t.before(a,c)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;let r=this.start.startOf(e,n),o;return n?.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(e,n),Math.floor(o.diff(r,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?t.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];let n=e.map(_0).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),r=[],{s:o}=this,i=0;for(;o<this.e;){let s=n[i]||this.e,a=+s>+this.e?this.e:s;r.push(t.fromDateTimes(o,a)),o=a,i+=1}return r}splitBy(e){let n=Wn.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,i,s=[];for(;r<this.e;){let a=this.start.plus(n.mapUnits(l=>l*o));i=+a>+this.e?this.e:a,s.push(t.fromDateTimes(r,i)),r=i,o+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:t.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;let n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return t.fromDateTimes(n,r)}static merge(e){let[n,r]=e.sort((o,i)=>o.s-i.s).reduce(([o,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[o,i.union(s)]:[o.concat([i]),s]:[o,s],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0,o=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),a=s.sort((l,c)=>l.time-c.time);for(let l of a)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&o.push(t.fromDateTimes(n,l.time)),n=null);return t.merge(o)}difference(...e){return t.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:T0}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Dd,n={}){return this.isValid?lo.create(this.s.loc.clone(n),e).formatInterval(this):T0}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:T0}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:T0}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:T0}toFormat(e,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:T0}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Wn.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}};var Dc=class{static hasDST(e=Kt.defaultZone){let n=wt.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Lo.isValidZone(e)}static normalizeZone(e){return Xs(e,Kt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||nn.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||nn.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||nn.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||nn.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||nn.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||nn.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||nn.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return nn.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return nn.create(n,null,"gregory").eras(e)}static features(){return{relative:CE(),localeWeek:SE()}}};function gae(t,e){let n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Wn.fromMillis(r).as("days"))}function wMe(t,e,n){let r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let u=gae(l,c);return(u-u%7)/7}],["days",gae]],o={},i=t,s,a;for(let[l,c]of r)n.indexOf(l)>=0&&(s=l,o[l]=c(t,e),a=i.plus(o),a>e?(o[l]--,t=i.plus(o),t>e&&(a=t,o[l]--,t=i.plus(o))):t=a);return[t,o,a,s]}function hae(t,e,n,r){let[o,i,s,a]=wMe(t,e,n),l=e-o,c=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(s<e&&(s=o.plus({[a]:1})),s!==o&&(i[a]=(i[a]||0)+l/(s-o)));let u=Wn.fromObject(i,r);return c.length>0?Wn.fromMillis(l,r).shiftTo(...c).plus(u):u}var zI={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},vae={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},EMe=zI.hanidec.replace(/[\[|\]]/g,"").split("");function yae(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(t[n].search(zI.hanidec)!==-1)e+=EMe.indexOf(t[n]);else for(let o in vae){let[i,s]=vae[o];r>=i&&r<=s&&(e+=r-i)}}return parseInt(e,10)}else return e}function hs({numberingSystem:t},e=""){return new RegExp(`${zI[t||"latn"]}${e}`)}var TMe="missing Intl.DateTimeFormat.formatToParts support";function Wt(t,e=n=>n){return{regex:t,deser:([n])=>e(yae(n))}}var _Me="\xA0",Cae=`[ ${_Me}]`,Sae=new RegExp(Cae,"g");function $Me(t){return t.replace(/\./g,"\\.?").replace(Sae,Cae)}function bae(t){return t.replace(/\./g,"").replace(Sae," ").toLowerCase()}function Qs(t,e){return t===null?null:{regex:RegExp(t.map($Me).join("|")),deser:([n])=>t.findIndex(r=>bae(n)===bae(r))+e}}function xae(t,e){return{regex:t,deser:([,n,r])=>kp(n,r),groups:e}}function _E(t){return{regex:t,deser:([e])=>e}}function NMe(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function DMe(t,e){let n=hs(e),r=hs(e,"{2}"),o=hs(e,"{3}"),i=hs(e,"{4}"),s=hs(e,"{6}"),a=hs(e,"{1,2}"),l=hs(e,"{1,3}"),c=hs(e,"{1,6}"),u=hs(e,"{1,9}"),d=hs(e,"{2,4}"),f=hs(e,"{4,6}"),p=h=>({regex:RegExp(NMe(h.val)),deser:([v])=>v,literal:!0}),g=(h=>{if(t.literal)return p(h);switch(h.val){case"G":return Qs(e.eras("short"),0);case"GG":return Qs(e.eras("long"),0);case"y":return Wt(c);case"yy":return Wt(d,ux);case"yyyy":return Wt(i);case"yyyyy":return Wt(f);case"yyyyyy":return Wt(s);case"M":return Wt(a);case"MM":return Wt(r);case"MMM":return Qs(e.months("short",!0),1);case"MMMM":return Qs(e.months("long",!0),1);case"L":return Wt(a);case"LL":return Wt(r);case"LLL":return Qs(e.months("short",!1),1);case"LLLL":return Qs(e.months("long",!1),1);case"d":return Wt(a);case"dd":return Wt(r);case"o":return Wt(l);case"ooo":return Wt(o);case"HH":return Wt(r);case"H":return Wt(a);case"hh":return Wt(r);case"h":return Wt(a);case"mm":return Wt(r);case"m":return Wt(a);case"q":return Wt(a);case"qq":return Wt(r);case"s":return Wt(a);case"ss":return Wt(r);case"S":return Wt(l);case"SSS":return Wt(o);case"u":return _E(u);case"uu":return _E(a);case"uuu":return Wt(n);case"a":return Qs(e.meridiems(),0);case"kkkk":return Wt(i);case"kk":return Wt(d,ux);case"W":return Wt(a);case"WW":return Wt(r);case"E":case"c":return Wt(n);case"EEE":return Qs(e.weekdays("short",!1),1);case"EEEE":return Qs(e.weekdays("long",!1),1);case"ccc":return Qs(e.weekdays("short",!0),1);case"cccc":return Qs(e.weekdays("long",!0),1);case"Z":case"ZZ":return xae(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return xae(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return _E(/[a-z_+-/]{1,256}?/i);case" ":return _E(/[^\S\n\r]/);default:return p(h)}})(t)||{invalidReason:TMe};return g.token=t,g}var LMe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function AMe(t,e,n){let{type:r,value:o}=t;if(r==="literal"){let l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}let i=e[r],s=r;r==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let a=LMe[s];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function MMe(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function OMe(t,e,n){let r=t.match(e);if(r){let o={},i=1;for(let s in n)if(Od(n,s)){let a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(r.slice(i,i+l))),i+=l}return[r,o]}else return[r,{}]}function IMe(t){let e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},n=null,r;return He(t.z)||(n=Lo.create(t.z)),He(t.Z)||(n||(n=new so(t.Z)),r=t.Z),He(t.q)||(t.M=(t.q-1)*3+1),He(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),He(t.u)||(t.S=cx(t.u)),[Object.keys(t).reduce((i,s)=>{let a=e(s);return a&&(i[a]=t[s]),i},{}),n,r]}var jI=null;function kMe(){return jI||(jI=wt.fromMillis(1555555555555)),jI}function RMe(t,e){if(t.literal)return t;let n=lo.macroTokenToFormatOpts(t.val),r=HI(n,e);return r==null||r.includes(void 0)?t:r}function VI(t,e){return Array.prototype.concat(...t.map(n=>RMe(n,e)))}function UI(t,e,n){let r=VI(lo.parseFormat(n),t),o=r.map(s=>DMe(s,t)),i=o.find(s=>s.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{let[s,a]=MMe(o),l=RegExp(s,"i"),[c,u]=OMe(e,l,a),[d,f,p]=u?IMe(u):[null,null,void 0];if(Od(u,"a")&&Od(u,"H"))throw new Zs("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:l,rawMatches:c,matches:u,result:d,zone:f,specificOffset:p}}}function wae(t,e,n){let{result:r,zone:o,specificOffset:i,invalidReason:s}=UI(t,e,n);return[r,o,i,s]}function HI(t,e){if(!t)return null;let r=lo.create(e,t).dtFormatter(kMe()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(s=>AMe(s,t,i))}var KI="Invalid DateTime",Eae=864e13;function $E(t){return new ao("unsupported zone",`the zone "${t.name}" is not supported`)}function WI(t){return t.weekData===null&&(t.weekData=sx(t.c)),t.weekData}function GI(t){return t.localWeekData===null&&(t.localWeekData=sx(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Bp(t,e){let n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new wt({...n,...e,old:n})}function Aae(t,e,n){let r=t-e*60*1e3,o=n.offset(r);if(e===o)return[r,e];r-=(o-e)*60*1e3;let i=n.offset(r);return o===i?[r,o]:[t-Math.min(o,i)*60*1e3,Math.max(o,i)]}function NE(t,e){t+=e*60*1e3;let n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function LE(t,e,n){return Aae(m0(t),e,n)}function Tae(t,e){let n=t.o,r=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:o,day:Math.min(t.c.day,v0(r,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Wn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=m0(i),[l,c]=Aae(a,n,t.zone);return s!==0&&(l+=s,c=t.zone.offset(l)),{ts:l,o:c}}function px(t,e,n,r,o,i){let{setZone:s,zone:a}=n;if(t&&Object.keys(t).length!==0||e){let l=e||a,c=wt.fromObject(t,{...n,zone:l,specificOffset:i});return s?c:c.setZone(a)}else return wt.invalid(new ao("unparsable",`the input "${o}" can't be parsed as ${r}`))}function DE(t,e,n=!0){return t.isValid?lo.create(nn.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function YI(t,e){let n=t.c.year>9999||t.c.year<0,r="";return n&&t.c.year>=0&&(r+="+"),r+=Kn(t.c.year,n?6:4),e?(r+="-",r+=Kn(t.c.month),r+="-",r+=Kn(t.c.day)):(r+=Kn(t.c.month),r+=Kn(t.c.day)),r}function _ae(t,e,n,r,o,i){let s=Kn(t.c.hour);return e?(s+=":",s+=Kn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(s+=":")):s+=Kn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(s+=Kn(t.c.second),(t.c.millisecond!==0||!r)&&(s+=".",s+=Kn(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!i?s+="Z":t.o<0?(s+="-",s+=Kn(Math.trunc(-t.o/60)),s+=":",s+=Kn(Math.trunc(-t.o%60))):(s+="+",s+=Kn(Math.trunc(t.o/60)),s+=":",s+=Kn(Math.trunc(t.o%60)))),i&&(s+="["+t.zone.ianaName+"]"),s}var Mae={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},PMe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},FMe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Oae=["year","month","day","hour","minute","second","millisecond"],BMe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],zMe=["year","ordinal","hour","minute","second","millisecond"];function jMe(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new p0(t);return e}function $ae(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return jMe(t)}}function Nae(t,e){let n=Xs(e.zone,Kt.defaultZone),r=nn.fromObject(e),o=Kt.now(),i,s;if(He(t.year))i=o;else{for(let c of Oae)He(t[c])&&(t[c]=Mae[c]);let a=LI(t)||AI(t);if(a)return wt.invalid(a);let l=n.offset(o);[i,s]=LE(t,l,n)}return new wt({ts:i,zone:n,loc:r,o:s})}function Dae(t,e,n){let r=He(n.round)?!0:n.round,o=(s,a)=>(s=g0(s,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(s,a)),i=s=>n.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(n.unit)return o(i(n.unit),n.unit);for(let s of n.units){let a=i(s);if(Math.abs(a)>=1)return o(a,s)}return o(t>e?-0:0,n.units[n.units.length-1])}function Lae(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}var wt=class t{constructor(e){let n=e.zone||Kt.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new ao("invalid input"):null)||(n.isValid?null:$E(n));this.ts=He(e.ts)?Kt.now():e.ts;let o=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[o,i]=[e.old.c,e.old.o];else{let a=n.offset(this.ts);o=NE(this.ts,a),r=Number.isNaN(o.year)?new ao("invalid input"):null,o=r?null:o,i=r?null:a}this._zone=n,this.loc=e.loc||nn.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,n]=Lae(arguments),[r,o,i,s,a,l,c]=n;return Nae({year:r,month:o,day:i,hour:s,minute:a,second:l,millisecond:c},e)}static utc(){let[e,n]=Lae(arguments),[r,o,i,s,a,l,c]=n;return e.zone=so.utcInstance,Nae({year:r,month:o,day:i,hour:s,minute:a,second:l,millisecond:c},e)}static fromJSDate(e,n={}){let r=Hse(e)?e.valueOf():NaN;if(Number.isNaN(r))return t.invalid("invalid input");let o=Xs(n.zone,Kt.defaultZone);return o.isValid?new t({ts:r,zone:o,loc:nn.fromObject(n)}):t.invalid($E(o))}static fromMillis(e,n={}){if(sl(e))return e<-Eae||e>Eae?t.invalid("Timestamp out of range"):new t({ts:e,zone:Xs(n.zone,Kt.defaultZone),loc:nn.fromObject(n)});throw new xr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(sl(e))return new t({ts:e*1e3,zone:Xs(n.zone,Kt.defaultZone),loc:nn.fromObject(n)});throw new xr("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};let r=Xs(n.zone,Kt.defaultZone);if(!r.isValid)return t.invalid($E(r));let o=nn.fromObject(n),i=y0(e,$ae),{minDaysInFirstWeek:s,startOfWeek:a}=DI(i,o),l=Kt.now(),c=He(n.specificOffset)?r.offset(l):n.specificOffset,u=!He(i.ordinal),d=!He(i.year),f=!He(i.month)||!He(i.day),p=d||f,m=i.weekYear||i.weekNumber;if((p||u)&&m)throw new Zs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Zs("Can't mix ordinal dates with month/day");let g=m||i.weekday&&!p,h,v,y=NE(l,c);g?(h=BMe,v=PMe,y=sx(y,s,a)):u?(h=zMe,v=FMe,y=TE(y)):(h=Oae,v=Mae);let b=!1;for(let _ of h){let N=i[_];He(N)?b?i[_]=v[_]:i[_]=y[_]:b=!0}let S=g?jse(i,s,a):u?Vse(i):LI(i),C=S||AI(i);if(C)return t.invalid(C);let w=g?$I(i,s,a):u?NI(i):i,[E,T]=LE(w,c,r),$=new t({ts:E,zone:r,o:T,loc:o});return i.weekday&&p&&e.weekday!==$.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${$.toISO()}`):$}static fromISO(e,n={}){let[r,o]=iae(e);return px(r,o,n,"ISO 8601",e)}static fromRFC2822(e,n={}){let[r,o]=sae(e);return px(r,o,n,"RFC 2822",e)}static fromHTTP(e,n={}){let[r,o]=aae(e);return px(r,o,n,"HTTP",n)}static fromFormat(e,n,r={}){if(He(e)||He(n))throw new xr("fromFormat requires an input string and a format");let{locale:o=null,numberingSystem:i=null}=r,s=nn.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[a,l,c,u]=wae(s,e,n);return u?t.invalid(u):px(a,l,r,`format ${n}`,e,c)}static fromString(e,n,r={}){return t.fromFormat(e,n,r)}static fromSQL(e,n={}){let[r,o]=uae(e);return px(r,o,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new xr("need to specify a reason the DateTime is invalid");let r=e instanceof ao?e:new ao(e,n);if(Kt.throwOnInvalid)throw new pE(r);return new t({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){let r=HI(e,nn.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(e,n={}){return VI(lo.parseFormat(e),nn.fromObject(n)).map(o=>o.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?WI(this).weekYear:NaN}get weekNumber(){return this.isValid?WI(this).weekNumber:NaN}get weekday(){return this.isValid?WI(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?GI(this).weekday:NaN}get localWeekNumber(){return this.isValid?GI(this).weekNumber:NaN}get localWeekYear(){return this.isValid?GI(this).weekYear:NaN}get ordinal(){return this.isValid?TE(this.c).ordinal:NaN}get monthShort(){return this.isValid?Dc.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Dc.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Dc.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Dc.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,n=6e4,r=m0(this.c),o=this.zone.offset(r-e),i=this.zone.offset(r+e),s=this.zone.offset(r-o*n),a=this.zone.offset(r-i*n);if(s===a)return[this];let l=r-s*n,c=r-a*n,u=NE(l,s),d=NE(c,a);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[Bp(this,{ts:l}),Bp(this,{ts:c})]:[this]}get isInLeapYear(){return Pp(this.year)}get daysInMonth(){return v0(this.year,this.month)}get daysInYear(){return this.isValid?Md(this.year):NaN}get weeksInWeekYear(){return this.isValid?Rp(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Rp(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:n,numberingSystem:r,calendar:o}=lo.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(e=0,n={}){return this.setZone(so.instance(e),n)}toLocal(){return this.setZone(Kt.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=Xs(e,Kt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(n||r){let i=e.offset(this.ts),s=this.toObject();[o]=LE(s,i,e)}return Bp(this,{ts:o,zone:e})}else return t.invalid($E(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){let o=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Bp(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let n=y0(e,$ae),{minDaysInFirstWeek:r,startOfWeek:o}=DI(n,this.loc),i=!He(n.weekYear)||!He(n.weekNumber)||!He(n.weekday),s=!He(n.ordinal),a=!He(n.year),l=!He(n.month)||!He(n.day),c=a||l,u=n.weekYear||n.weekNumber;if((c||s)&&u)throw new Zs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Zs("Can't mix ordinal dates with month/day");let d;i?d=$I({...sx(this.c,r,o),...n},r,o):He(n.ordinal)?(d={...this.toObject(),...n},He(n.day)&&(d.day=Math.min(v0(d.year,d.month),d.day))):d=NI({...TE(this.c),...n});let[f,p]=LE(d,this.o,this.zone);return Bp(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let n=Wn.fromDurationLike(e);return Bp(this,Tae(this,n))}minus(e){if(!this.isValid)return this;let n=Wn.fromDurationLike(e).negate();return Bp(this,Tae(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;let r={},o=Wn.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(o==="weeks")if(n){let i=this.loc.getStartOfWeek(),{weekday:s}=this;s<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(o==="quarters"){let i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?lo.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):KI}toLocaleString(e=Dd,n={}){return this.isValid?lo.create(this.loc.clone(n),e).formatDateTime(this):KI}toLocaleParts(e={}){return this.isValid?lo.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;let s=e==="extended",a=YI(this,s);return a+="T",a+=_ae(this,s,n,r,o,i),a}toISODate({format:e="extended"}={}){return this.isValid?YI(this,e==="extended"):null}toISOWeekDate(){return DE(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:i=!1,format:s="extended"}={}){return this.isValid?(o?"T":"")+_ae(this,s==="extended",n,e,r,i):null}toRFC2822(){return DE(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return DE(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?YI(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(n||e)&&(r&&(o+=" "),n?o+="z":e&&(o+="ZZ")),DE(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():KI}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return Wn.invalid("created by diffing an invalid DateTime");let o={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Kse(n).map(Wn.normalizeUnit),s=e.valueOf()>this.valueOf(),a=s?this:e,l=s?e:this,c=hae(a,l,i,o);return s?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(t.now(),e,n)}until(e){return this.isValid?Nc.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;let o=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,r)<=o&&o<=i.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let n=e.base||t.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0,o=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(o=e.unit,i=void 0),Dae(n,this.plus(r),{...e,numeric:"always",units:o,unit:i})}toRelativeCalendar(e={}){return this.isValid?Dae(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new xr("min requires all arguments be DateTimes");return MI(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new xr("max requires all arguments be DateTimes");return MI(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){let{locale:o=null,numberingSystem:i=null}=r,s=nn.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return UI(s,e,n)}static fromStringExplain(e,n,r={}){return t.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Dd}static get DATE_MED(){return Bb}static get DATE_MED_WITH_WEEKDAY(){return dI}static get DATE_FULL(){return zb}static get DATE_HUGE(){return jb}static get TIME_SIMPLE(){return Vb}static get TIME_WITH_SECONDS(){return Ub}static get TIME_WITH_SHORT_OFFSET(){return Hb}static get TIME_WITH_LONG_OFFSET(){return Kb}static get TIME_24_SIMPLE(){return Wb}static get TIME_24_WITH_SECONDS(){return Gb}static get TIME_24_WITH_SHORT_OFFSET(){return Yb}static get TIME_24_WITH_LONG_OFFSET(){return Zb}static get DATETIME_SHORT(){return qb}static get DATETIME_SHORT_WITH_SECONDS(){return Jb}static get DATETIME_MED(){return Xb}static get DATETIME_MED_WITH_SECONDS(){return Qb}static get DATETIME_MED_WITH_WEEKDAY(){return fI}static get DATETIME_FULL(){return ex}static get DATETIME_FULL_WITH_SECONDS(){return tx}static get DATETIME_HUGE(){return nx}static get DATETIME_HUGE_WITH_SECONDS(){return rx}};function _0(t){if(wt.isDateTime(t))return t;if(t&&t.valueOf&&sl(t.valueOf()))return wt.fromJSDate(t);if(t&&typeof t=="object")return wt.fromObject(t);throw new xr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function AE(t){return t.reduce((e,{field:n,operator:r,value:o})=>{if(!n||!r)return e;if(n==="updated_at"&&(n="modified"),n==="created_at"&&(n="created"),r==="def")return{...e,[`${n}[def]`]:"true"};if(r==="ndef")return{...e,[`${n}[def]`]:"false"};if(r==="checked")return{...e,[`${n}[eq]`]:"true"};if(r==="nchecked")return{...e,[`${n}[eq]`]:"false"};if(typeof o>"u"||o===null||o===""||Array.isArray(o)&&o.length<1)return e;if(r==="between"||r==="sys-date-between")if(Array.isArray(o)&&o.length===2){if(r==="between")return{...e,[`${n}[gte]`]:o[0],[`${n}[lte]`]:o[1]};{let i=wt.fromISO(o[0],{zone:"system"}).setZone("utc").toISO(),s=wt.fromISO(o[1],{zone:"system"}).plus({day:1}).setZone("utc").toISO();return i&&s?{...e,[`${n}[gte]`]:i,[`${n}[lt]`]:s}:e}}else return e;if(r==="sys-date-eq")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).setZone("utc").toISO(),s=wt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return i&&s?{...e,[`${n}[gte]`]:i,[`${n}[lt]`]:s}:e}else return e;if(r==="sys-date-gt")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return i?{...e,[`${n}[gte]`]:i}:e}else return e;if(r==="sys-date-gte")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).setZone("utc").toISO();return i?{...e,[`${n}[gte]`]:i}:e}else return e;if(r==="sys-date-lt")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).setZone("utc").toISO();return i?{...e,[`${n}[lt]`]:i}:e}else return e;if(r==="sys-date-lte")if(typeof o=="string"){let i=wt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return i?{...e,[`${n}[lt]`]:i}:e}else return e;if(r==="starts"&&typeof o=="string")return{...e,[`${n}[starts]`]:o.replaceAll(/[^a-zA-Z0-9_.\s-]/g,"").toLowerCase()};if(n==="workflowStageId"){let i=t.some(s=>s.field==="workflowId");if(r==="eq"||r==="neq"){let s=[];return Array.isArray(o)?s=o.map(l=>l.split("_")[1]):s=o.split("_"),{...e,...i?{}:{"workflowId[eq]":s[0]},[`${n}[${r}]`]:s[1]}}if(Array.isArray(o)){let s=o.map(c=>{let u=c.split("_")[0],d=c.split("_")[1];return{workflowId:u,workflowStage:d}}),a=s.map(c=>c.workflowId).join(","),l=s.map(c=>c.workflowStage).join(",");return{...e,...i?{}:{[`workflowId[${r}]`]:a},[`${n}[${r}]`]:l}}}return{...e,[`${n}[${r}]`]:Array.isArray(o)?o.join(","):o}},{})}import{CANVAS_DRAFT_STATE as Iae,CanvasClient as kae}from"@uniformdev/canvas";async function ME({instanceType:t,searchExpressionPrompt:e,username:n,locale:r,getEditUrl:o,env:i}){let s=new kae(i),a=await fE({searchExpressionPrompt:e,username:n,locale:r},t,i),{limit:l,offset:c,keyword:u,sort:d,filter:f}=a,m=(await s.getCompositionList({patternType:t==="composition"?void 0:t==="componentPattern"?"component":"composition",pattern:t!=="composition",resolveData:!1,withComponentIDs:!0,skipOverridesResolution:!0,limit:l,offset:c,search:u,filters:f?AE(f):void 0,orderBy:Array.isArray(d)?d:d?[d]:void 0,locale:r,skipPatternResolution:!0,state:Iae})).compositions.map(g=>({id:g.composition._id,name:g.composition._name,componentType:g.composition.type,editUrl:o(g.composition._id)}));return{content:[{type:"text",text:JSON.stringify({results:m,criteria:a},null,2)}]}}async function OE({id:t,env:e}){let r=await new kae(e).getCompositionById({skipDataResolution:!0,withComponentIDs:!0,skipOverridesResolution:!0,skipPatternResolution:!1,compositionId:t,state:Iae});return{content:[{type:"text",text:JSON.stringify(r,null,2)}]}}var VMe={id:Rae.string()};function Pae(t,e){t.tool("compositionList","Lists available Uniform compositions",Tc.shape,async n=>await ME({...n,instanceType:"composition",getEditUrl:r=>dE(r,e),env:e})),t.tool("compositionGet","Gets the full contents of a Uniform composition",VMe,async n=>await OE({...n,env:e}))}import{autoFixParameterGroups as zae,ContentClient as UMe}from"@uniformdev/canvas";import*as kE from"zod/v3";import*as Rd from"zod/v3";var Fae=Rd.object({name:Rd.string().describe('Title-cased display name of the component. Ex: "Hero"'),id:Rd.string().describe("Public ID of the content type, the camelCase version of name, using only alphanumeric characters"),description:Rd.string().describe("Describe the purpose of the content type in 1-2 sentences."),fields:Rd.array($x).describe("The fields of the content type. The key is the publicId of the field.").optional()});function Bae(t){let e=t.fields?.find(r=>r.type==="asset"&&typeof r.typeConfig=="object"&&r.typeConfig!==null&&"allowedTypes"in r.typeConfig&&Array.isArray(r.typeConfig.allowedTypes)&&r.typeConfig.allowedTypes?.includes("image"))?.id,n=t.fields?.find(r=>r.type==="text")?.id;return{...t,thumbnailField:e,entryName:n}}function IE(t,e){return`${e.baseWebUrl}/dashboards/canvas/content-types/${t}`}var HMe={action:kE.enum(["create","update","delete"]).describe("The action to perform"),publicId:kE.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),contentType:Fae.describe("Full content type definition to create. Omit for update or delete.").optional(),patches:Tx.describe("JSON patch to apply to the existing component definition. Omit for create or delete.").optional()};function jae(t,e){t.tool("contentTypeAction","Creates, updates, or deletes a Uniform Content Type definition",HMe,async({publicId:n,action:r,contentType:o,patches:i})=>{let s=new UMe(e),a=!1;if(r==="create"){if(!o)throw new Error("Content type definition is required for create");let l=Bae(o);l.fields&&(a=zae(l.fields),Vp(l.fields)),await s.upsertContentType({contentType:l})}if(r==="update"){if(!i)throw new Error("Patches are required for update");let c=(await s.getContentTypes()).contentTypes.find(f=>f.id===n);if(!c)throw new Error(`Content Type with public ID ${n} does not exist, try creating it instead`);let u=c.fields?.filter(f=>f.type==="richText").map(f=>f.id),d=Ex(c,i);if(d.fields){a=zae(d.fields);let f=d.fields?.filter(p=>p.type==="richText").map(p=>p.id).filter(p=>!u?.includes(p));Vp(d.fields,f)}await s.upsertContentType({contentType:d})}return r==="delete"&&await s.deleteContentType({contentTypeId:n}),{content:[{type:"text",text:JSON.stringify({success:!0,editUrl:IE(n,e),warning:a?"Issues with field group order were fixed. Ensure definition data is re-fetched before any future updates.":void 0},null,2)}]}})}import{ContentClient as Vae}from"@uniformdev/canvas";import*as Uae from"zod/v3";var KMe={id:Uae.string()};function Hae(t,e){t.tool("contentTypeList","Lists all Uniform Content Type definitions",async()=>{let o=(await new Vae(e).getContentTypes()).contentTypes.map(i=>({id:i.id,name:i.name,description:i.description,editUrl:IE(i.id,e)}));return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}),t.tool("contentTypeGet","Gets a Uniform Content Type definition details (fields, etc.)",KMe,async({id:n})=>{let i=(await new Vae(e).getContentTypes()).contentTypes.find(s=>s.id===n);if(!i)throw new Error(`Content Type with ID ${n} not found`);return{content:[{type:"text",text:JSON.stringify(i,null,2)}]}})}import{v4 as WMe}from"uuid";function Kae(t,e){t.tool("createUuid","Creates a new random UUID",async()=>({content:[{type:"text",text:WMe()}]}))}import*as mx from"zod/v3";import{CANVAS_DRAFT_STATE as RE,ContentClient as GMe,convertEntryToPutEntry as YMe,getEffectivePropertyValue as ZMe}from"@uniformdev/canvas";async function qMe(t,e,n){let o=(await e.fetchDefinitions())[t.entry.type];if(!o)throw new Error("insanity");let i=ese(o),s;i.entryName&&(s=t.entry._overrides?.[t.entry._id].parameters?.[i.entryName]??t.entry.fields?.[i.entryName]);let a=ZMe({conditionIndex:-1,locale:"__any__",greedyLocaleMatching:!0,property:s}),l=Oie({value:a,isNew:n,contentType:i});t.entry._name=l}async function PE({action:t,id:e,instructions:n,isPattern:r,patternId:o,getEditUrl:i,env:s}){let a=new GMe(s),l,c,u=t==="update"?e:void 0,d={success:!0,actionsTaken:[]};if(t==="duplicate"){let p=(await a.getEntries({entryIDs:[e],pattern:r,state:RE,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0})).entries[0];if(!p)throw new Error("Entry not found");let m=crypto.randomUUID(),g={...p.entry,_id:m,_name:`${p.entry._name} (copy)`};g._slug&&(g._slug=`${g._slug}-copy${g._slug?.endsWith("/")?"/":""}`),delete g._thumbnail;let h=Rb({...p,entry:g});l=new il(h.composition),e=m}else if(t==="create"){if(!n)throw new Error("Instructions are required for create");if(!n.type)throw new Error("Type is required for create");o?(await a.upsertEntry({state:RE,entry:{type:n.type,_id:e,fields:{},_pattern:o}}),u=e):l=new il({_id:e,_name:"New Entry",type:n.type,_overridability:{hideLockedParameters:!0}})}if(u){if(c=(await a.getEntries({entryIDs:[e],pattern:r,state:RE,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0})).entries[0],!c)throw new Error("Entry not found");let p=Rb(c);l=new il(p.composition)}t==="delete"&&await a.deleteEntry({entryId:e});let f=wse(s);if(l){t!=="duplicate"&&(await lE(n?.localeUpdates?.enableLocales,s),d=await Q5({twee:l,descriptionUpdate:void 0,slugUpdate:n&&"slug"in n?n.slug:void 0,nameUpdate:n&&"name"in n?n.name:void 0,propertyUpdates:n?.fieldUpdates??[],dataResourceUpdates:(n&&"dataResourceUpdates"in n?n.dataResourceUpdates:[])??[],slotUpdates:{},localeUpdates:n?.localeUpdates,currentEditorLocale:void 0,referenceData:f,isEditingPattern:r,domParser:aE}));let p=l.exportTree(),m=l.exportMetadata(),g=YMe(tse(p,c??{projectId:s.projectId,pattern:r},m,RE,c?.releaseId,c?.editionId));r||await qMe(g,f,t==="create"),await a.upsertEntry(g)}return{content:[{type:"text",text:JSON.stringify({...d,editUrl:i(e)},null,2)}]}}function FE(t,e){return`${e.baseWebUrl}/dashboards/canvas/entries/${t}`}var JMe={action:mx.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:mx.string().uuid().describe("UUID of the entry to create, update, delete, or duplicate"),patternId:mx.string().uuid().describe("Entry pattern ID to create the entry from. Omit when not creating, or when creating an entry without an entry pattern.").optional(),instructions:Ek.describe("Modification instructions for the entry. Omit for delete and duplicate.").optional()};function Wae(t,e){t.tool("entryAction","Creates, updates, or deletes a Uniform Entry",JMe,async n=>await PE({...n,isPattern:!1,getEditUrl:r=>FE(r,e),patternId:n.patternId,env:e}))}import*as Zae from"zod/v3";import{CANVAS_DRAFT_STATE as Gae,ContentClient as Yae}from"@uniformdev/canvas";async function BE({isPattern:t,searchExpressionPrompt:e,username:n,locale:r,getEditUrl:o,env:i}){let s=new Yae(i),a=await fE({searchExpressionPrompt:e,username:n,locale:r},t?"entryPattern":"entry",i),{limit:l,offset:c,keyword:u,sort:d,filter:f}=a,m=(await s.getEntries({limit:l,offset:c,pattern:t,skipDataResolution:!0,withTotalCount:!0,skipPatternResolution:!0,skipOverridesResolution:!0,state:Gae,search:u,filters:f?AE(f):void 0,orderBy:Array.isArray(d)?d:d?[d]:void 0,locale:r})).entries.map(g=>({id:g.entry._id,name:g.entry._name??"",contentType:g.entry.type,editUrl:o(g.entry._id)}));return{content:[{type:"text",text:JSON.stringify({results:m,criteria:a},null,2)}]}}async function zE({id:t,isPattern:e,env:n}){let o=await new Yae(n).getEntries({skipDataResolution:!0,withComponentIDs:!0,skipOverridesResolution:!0,skipPatternResolution:!1,pattern:e,entryIDs:[t],state:Gae});if(o.entries.length===0)throw new Error(`Entry with ID ${t} not found`);return{content:[{type:"text",text:JSON.stringify(o.entries[0],null,2)}]}}var XMe={id:Zae.string()};function qae(t,e){t.tool("entryList","Lists available Uniform entries",Tc.shape,async n=>await BE({...n,isPattern:!1,getEditUrl:r=>FE(r,e),env:e})),t.tool("entryGet","Gets the full contents of a Uniform entry",XMe,async n=>await zE({...n,isPattern:!1,env:e}))}import*as VE from"zod/v3";function jE(t,e){return`${e.baseWebUrl}/dashboards/canvas/entry-patterns/${t}`}var QMe={action:VE.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:VE.string().uuid().describe("UUID of the entry pattern to create, update, delete, or duplicate"),instructions:Tk.describe("Modification instructions for the entry pattern. Omit for delete and duplicate.").optional()};function Jae(t,e){t.tool("entryPatternAction","Creates, updates, or deletes a Uniform Entry Pattern",QMe,async n=>await PE({...n,isPattern:!0,getEditUrl:r=>jE(r,e),patternId:void 0,env:e}))}import*as Xae from"zod/v3";var eOe={id:Xae.string()};function Qae(t,e){t.tool("entryPatternList","Lists available Uniform entry patterns",Tc.shape,async n=>await BE({...n,isPattern:!0,getEditUrl:r=>jE(r,e),env:e})),t.tool("entryPatternGet","Gets the full contents of a Uniform entry pattern",eOe,async n=>await zE({...n,isPattern:!0,env:e}))}import{ProjectClient as tOe}from"@uniformdev/canvas";async function nOe(t){let e=await fetch(`${t.apiHost}/api/v1/member-profile`,{headers:{"x-api-key":t.apiKey,"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to fetch user profile: ${e.status} ${e.statusText}`);return(await e.json()).name}function ele(t,e){t.tool("getUniformEnvironment","Get the connected Uniform Project name, edit URL, and current user",{},async()=>{try{let n=new tOe(e),[r,o]=await Promise.all([n.get({projectId:e.projectId}),nOe(e)]),i={projectName:r.name,teamName:r.teamName,projectUrl:e.baseWebUrl,currentIdentity:o};return{content:[{type:"text",text:JSON.stringify(i,null,2)}]}}catch(n){return{content:[{type:"text",text:JSON.stringify({error:"Failed to fetch project information",details:n instanceof Error?n.message:"Unknown error"},null,2)}]}}})}import{LocaleClient as rOe}from"@uniformdev/canvas";function tle(t,e){t.tool("localeList","Lists all registered Uniform locales",async()=>{let r=await new rOe(e).get();return{content:[{type:"text",text:JSON.stringify({locales:r.results,editUrl:`${e.baseWebUrl}/settings/localization`},null,2)}]}})}import*as HE from"zod/v3";function UE(t,e){return`${e.baseWebUrl}/dashboards/canvas/edit/${t}`}var oOe={action:HE.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:HE.string().uuid().describe("UUID of the pattern instance to create, update, delete, or duplicate"),instructions:Sk.describe("Modification instructions for the pattern. Omit for delete and duplicate.").optional()};function nle(t,e){t.tool("patternAction","Creates, updates, or deletes a Uniform Component Pattern or Composition Pattern",oOe,async n=>await uE({...n,isPattern:!0,getEditUrl:r=>UE(r,e),patternId:void 0,env:e}))}import*as KE from"zod/v3";var iOe={instanceType:KE.enum(["componentPattern","compositionPattern"]),...Tc.shape},sOe={id:KE.string()};function rle(t,e){t.tool("patternList","Lists available Uniform component patterns or composition patterns",iOe,async n=>await ME({...n,getEditUrl:r=>UE(r,e),env:e})),t.tool("patternGet","Gets the full contents of a Uniform component pattern or composition pattern",sOe,async n=>await OE({...n,env:e}))}import{ProjectMapClient as aOe}from"@uniformdev/project-map";import*as ole from"zod/v3";var lOe={query:ole.string().describe("Keyword to search for in node names and paths.")};function ile(t,e){t.tool("projectMapNodeSearch","Search for project map nodes by keyword. Use this to find the appropriate parent node when you need to create a composition attached to a specific location in the project map hierarchy.",lOe,async({query:n})=>{let r=new aOe({apiKey:e.apiKey,apiHost:e.apiHost,projectId:e.projectId}),i=(await r.getProjectMapDefinition({}))?.projectMaps[0]?.id;if(!i)throw new Error("No project map found for this project");let a=(await r.getNodes({search:n,includeAncestors:!1,expanded:!0,depth:1,projectMapId:i})).nodes?.map(l=>({id:l.id,name:l.name,path:l.path}))??[];return{content:[{type:"text",text:JSON.stringify({matches:a},null,2)}]}})}function sle(t,e){fk(t,e),yk(t,e),Ck(t,e),jae(t,e),Hae(t,e),Wae(t,e),qae(t,e),Qae(t,e),Jae(t,e),rle(t,e),nle(t,e),Ese(t,e),Pae(t,e),Kae(t,e),ele(t,e),tle(t,e),ile(t,e)}var ale=new cOe({name:"Uniform MCP",version:xx.version});sle(ale,uk);var dOe=new uOe;await ale.connect(dOe);process.stderr.write(`Uniform MCP server started
|
|
5855
5877
|
`);
|
|
5856
5878
|
/*! Bundled license information:
|
|
5857
5879
|
|