@bolttech/template-editor 0.0.1 → 0.0.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/README.md +2 -1
- package/dist/{DataSourceModal-CW1ZoE0O.js → DataSourceModal-DMKDsjhT.js} +1 -1
- package/dist/index-_5hb_xRw.js +24065 -0
- package/dist/template-editor.es.js +1 -1
- package/dist/template-editor.umd.js +107 -208
- package/package.json +18 -9
- package/dist/index-CmbewOaI.js +0 -26017
|
@@ -1,246 +1,145 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function($t,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-dom"),require("react-icons/fi"),require("htmlparser2"),require("@monaco-editor/react"),require("handlebars")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","react-icons/fi","htmlparser2","@monaco-editor/react","handlebars"],I):($t=typeof globalThis<"u"?globalThis:$t||self,I($t.TemplateEditor={},$t.React,$t.ReactDOM,$t.ReactIconsFi,$t.HTMLParser2,$t.MonacoEditor,$t.Handlebars))})(this,(function($t,I,Yn,ce,Ey,Fy,Sy){"use strict";var ik=Object.defineProperty;var ok=($t,I,Yn)=>I in $t?ik($t,I,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):$t[I]=Yn;var Xa=($t,I,Yn)=>ok($t,typeof I!="symbol"?I+"":I,Yn);function ky(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function Ty(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Al=ky(I);var Ru=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qc={exports:{}},Rl={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
let props = %s;
|
|
11
|
-
<%s {...props} />
|
|
12
|
-
React keys must be passed directly to JSX without using spread:
|
|
13
|
-
let props = %s;
|
|
14
|
-
<%s key={someKey} {...props} />`,_e,Ee,Be,Ee),Pe[Ee+_e]=!0)}if(Ee=null,Fe!==void 0&&(r(Fe),Ee=""+Fe),f(ne)&&(r(ne.key),Ee=""+ne.key),"key"in ne){Fe={};for(var ye in ne)ye!=="key"&&(Fe[ye]=ne[ye])}else Fe=ne;return Ee&&g(Fe,typeof j=="function"?j.displayName||j.name||"Unknown":j),m(j,Ee,Ae,De,i(),Fe,Oe,ze)}function E(j){typeof j=="object"&&j!==null&&j.$$typeof===F&&j._store&&(j._store.validated=1)}var A=L,F=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),ge=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qe=Object.prototype.hasOwnProperty,pe=Array.isArray,Ie=console.createTask?console.createTask:function(){return null};A={react_stack_bottom_frame:function(j){return j()}};var tt,rt={},Pt=A.react_stack_bottom_frame.bind(A,c)(),sr=Ie(n(c)),Pe={};ad.Fragment=N,ad.jsx=function(j,ne,Fe,_e,De){var Ae=1e4>ge.recentlyCreatedOwnerStacks++;return v(j,ne,Fe,!1,_e,De,Ae?Error("react-stack-top-frame"):Pt,Ae?Ie(n(j)):sr)},ad.jsxs=function(j,ne,Fe,_e,De){var Ae=1e4>ge.recentlyCreatedOwnerStacks++;return v(j,ne,Fe,!0,_e,De,Ae?Error("react-stack-top-frame"):Pt,Ae?Ie(n(j)):sr)}})(),ad}var vm;function Aw(){return vm||(vm=1,Kf.exports=Tw()),Kf.exports}var w=Aw(),Bl={},od={},bm;function _w(){if(bm)return od;bm=1;/**
|
|
9
|
+
*/var Op;function _y(){if(Op)return Rl;Op=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,i){var u=null;if(i!==void 0&&(u=""+i),a.key!==void 0&&(u=""+a.key),"key"in a){i={};for(var h in a)h!=="key"&&(i[h]=a[h])}else i=a;return a=i.ref,{$$typeof:e,type:n,key:u,ref:a!==void 0?a:null,props:i}}return Rl.Fragment=t,Rl.jsx=r,Rl.jsxs=r,Rl}var Bp;function Ay(){return Bp||(Bp=1,qc.exports=_y()),qc.exports}var m=Ay(),Bo={},Ol={};/**
|
|
15
10
|
* @license React
|
|
16
|
-
* react-dom-server-legacy.browser.
|
|
11
|
+
* react-dom-server-legacy.browser.production.js
|
|
17
12
|
*
|
|
18
13
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
14
|
*
|
|
20
15
|
* This source code is licensed under the MIT license found in the
|
|
21
16
|
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/return(function(){function e(o,u,h,C){return""+u+(h==="s"?"\\73 ":"\\53 ")+C}function t(o,u,h,C){return""+u+(h==="s"?"\\u0073":"\\u0053")+C}function r(o){return Object.prototype.toString.call(o).replace(/^\[object (.*)\]$/,function(u,h){return h})}function n(o){var u=JSON.stringify(o);return'"'+o+'"'===u?o:u}function i(o){switch(typeof o){case"string":return JSON.stringify(10>=o.length?o:o.slice(0,10)+"...");case"object":return Yn(o)?"[...]":o!==null&&o.$$typeof===ll?"client":(o=r(o),o==="Object"?"{...}":o);case"function":return o.$$typeof===ll?"client":(o=o.displayName||o.name)?"function "+o:"function";default:return String(o)}}function c(o){if(typeof o=="string")return o;switch(o){case xo:return"Suspense";case es:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Za:return c(o.render);case ts:return c(o.type);case Do:var u=o._payload;o=o._init;try{return c(o(u))}catch{}}return""}function f(o,u){var h=r(o);if(h!=="Object"&&h!=="Array")return h;var C=-1,k=0;if(Yn(o))if(mc.has(o)){var P=mc.get(o);h="<"+c(P)+">";for(var W=0;W<o.length;W++){var G=o[W];G=typeof G=="string"?G:typeof G=="object"&&G!==null?"{"+f(G)+"}":"{"+i(G)+"}",""+W===u?(C=h.length,k=G.length,h+=G):h=15>G.length&&40>h.length+G.length?h+G:h+"{...}"}h+="</"+c(P)+">"}else{for(h="[",P=0;P<o.length;P++)0<P&&(h+=", "),W=o[P],W=typeof W=="object"&&W!==null?f(W):i(W),""+P===u?(C=h.length,k=W.length,h+=W):h=10>W.length&&40>h.length+W.length?h+W:h+"...";h+="]"}else if(o.$$typeof===yo)h="<"+c(o.type)+"/>";else{if(o.$$typeof===ll)return"client";if(xa.has(o)){for(h=xa.get(o),h="<"+(c(h)||"..."),P=Object.keys(o),W=0;W<P.length;W++){h+=" ",G=P[W],h+=n(G)+"=";var ee=o[G],X=G===u&&typeof ee=="object"&&ee!==null?f(ee):i(ee);typeof ee!="string"&&(X="{"+X+"}"),G===u?(C=h.length,k=X.length,h+=X):h=10>X.length&&40>h.length+X.length?h+X:h+"..."}h+=">"}else{for(h="{",P=Object.keys(o),W=0;W<P.length;W++)0<W&&(h+=", "),G=P[W],h+=n(G)+": ",ee=o[G],ee=typeof ee=="object"&&ee!==null?f(ee):i(ee),G===u?(C=h.length,k=ee.length,h+=ee):h=10>ee.length&&40>h.length+ee.length?h+ee:h+"...";h+="}"}}return u===void 0?h:-1<C&&0<k?(o=" ".repeat(C)+"^".repeat(k),`
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
`+h}function g(o,u){var h=o.length&3,C=o.length-h,k=u;for(u=0;u<C;){var P=o.charCodeAt(u)&255|(o.charCodeAt(++u)&255)<<8|(o.charCodeAt(++u)&255)<<16|(o.charCodeAt(++u)&255)<<24;++u,P=3432918353*(P&65535)+((3432918353*(P>>>16)&65535)<<16)&4294967295,P=P<<15|P>>>17,P=461845907*(P&65535)+((461845907*(P>>>16)&65535)<<16)&4294967295,k^=P,k=k<<13|k>>>19,k=5*(k&65535)+((5*(k>>>16)&65535)<<16)&4294967295,k=(k&65535)+27492+(((k>>>16)+58964&65535)<<16)}switch(P=0,h){case 3:P^=(o.charCodeAt(u+2)&255)<<16;case 2:P^=(o.charCodeAt(u+1)&255)<<8;case 1:P^=o.charCodeAt(u)&255,P=3432918353*(P&65535)+((3432918353*(P>>>16)&65535)<<16)&4294967295,P=P<<15|P>>>17,k^=461845907*(P&65535)+((461845907*(P>>>16)&65535)<<16)&4294967295}return k^=o.length,k^=k>>>16,k=2246822507*(k&65535)+((2246822507*(k>>>16)&65535)<<16)&4294967295,k^=k>>>13,k=3266489909*(k&65535)+((3266489909*(k>>>16)&65535)<<16)&4294967295,(k^k>>>16)>>>0}function b(o){return typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object"}function m(o){try{return!1}catch{return!0}}function v(o){return""+o}function E(o,u){if(m())return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",u,b(o)),v(o)}function A(o,u){if(m())return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",u,b(o)),v(o)}function F(o){if(m())return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",b(o)),v(o)}function S(o){return st.call(Ja,o)?!0:st.call(su,o)?!1:kd.test(o)?Ja[o]=!0:(su[o]=!0,console.error("Invalid attribute name: `%s`",o),!1)}function N(o,u){uu[u.type]||u.onChange||u.onInput||u.readOnly||u.disabled||u.value==null||console.error(o==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),u.onChange||u.readOnly||u.disabled||u.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function O(o,u){if(st.call(Eo,u)&&Eo[u])return!0;if(di.test(u)){if(o="aria-"+u.slice(4).toLowerCase(),o=cu.hasOwnProperty(o)?o:null,o==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",u),Eo[u]=!0;if(u!==o)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",u,o),Eo[u]=!0}if(Td.test(u)){if(o=u.toLowerCase(),o=cu.hasOwnProperty(o)?o:null,o==null)return Eo[u]=!0,!1;u!==o&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",u,o),Eo[u]=!0)}return!0}function B(o,u){var h=[],C;for(C in u)O(o,C)||h.push(C);u=h.map(function(k){return"`"+k+"`"}).join(", "),h.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",u,o):1<h.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",u,o)}function z(o,u,h,C){if(st.call(Mr,u)&&Mr[u])return!0;var k=u.toLowerCase();if(k==="onfocusin"||k==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Mr[u]=!0;if(typeof h=="function"&&(o==="form"&&u==="action"||o==="input"&&u==="formAction"||o==="button"&&u==="formAction"))return!0;if(mt.test(u))return lt.test(u)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",u),Mr[u]=!0;if(Fo.test(u)||ul.test(u))return!0;if(k==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Mr[u]=!0;if(k==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Mr[u]=!0;if(k==="is"&&h!==null&&h!==void 0&&typeof h!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),Mr[u]=!0;if(typeof h=="number"&&isNaN(h))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",u),Mr[u]=!0;if(mr.hasOwnProperty(k)){if(k=mr[k],k!==u)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",u,k),Mr[u]=!0}else if(u!==k)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",u,k),Mr[u]=!0;switch(u){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof h){case"boolean":switch(u){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return k=u.toLowerCase().slice(0,5),k==="data-"||k==="aria-"?!0:(h?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',h,u,u,h,u):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',h,u,u,h,u,u,u),Mr[u]=!0)}case"function":case"symbol":return Mr[u]=!0,!1;case"string":if(h==="false"||h==="true"){switch(u){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,u,h==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',u,h),Mr[u]=!0}}return!0}function Z(o,u,h){var C=[],k;for(k in u)z(o,k,u[k])||C.push(k);u=C.map(function(P){return"`"+P+"`"}).join(", "),C.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",u,o):1<C.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",u,o)}function V(o){return o.replace(So,function(u,h){return h.toUpperCase()})}function J(o){if(typeof o=="boolean"||typeof o=="number"||typeof o=="bigint")return""+o;F(o),o=""+o;var u=wc.exec(o);if(u){var h="",C,k=0;for(C=u.index;C<o.length;C++){switch(o.charCodeAt(C)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}k!==C&&(h+=o.slice(k,C)),k=C+1,h+=u}o=k!==C?h+o.slice(k,C):h}return o}function $(o){return os.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function K(o){return F(o),(""+o).replace(Ad,t)}function ve(o,u,h,C,k){return{idPrefix:o===void 0?"":o,nextFormID:0,streamingFormat:0,bootstrapScriptContent:h,bootstrapScripts:C,bootstrapModules:k,instructions:ko,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function se(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:Cc}}function me(o,u,h){return{insertionMode:o,selectedValue:u,tagScope:h}}function ge(o,u,h){switch(u){case"noscript":return me(Hr,null,o.tagScope|1);case"select":return me(Hr,h.value!=null?h.value:h.defaultValue,o.tagScope);case"svg":return me(cr,null,o.tagScope);case"picture":return me(Hr,null,o.tagScope|2);case"math":return me(Vn,null,o.tagScope);case"foreignObject":return me(Hr,null,o.tagScope);case"table":return me(ls,null,o.tagScope);case"thead":case"tbody":case"tfoot":return me(gi,null,o.tagScope);case"colgroup":return me(Da,null,o.tagScope);case"tr":return me(us,null,o.tagScope);case"head":if(o.insertionMode<Hr)return me(cl,null,o.tagScope);break;case"html":if(o.insertionMode===pi)return me(ur,null,o.tagScope)}return o.insertionMode>=ls||o.insertionMode<Hr?me(Hr,null,o.tagScope):o}function Qe(o,u){if(typeof u!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var h=!0,C;for(C in u)if(st.call(u,C)){var k=u[C];if(k!=null&&typeof k!="boolean"&&k!==""){if(C.indexOf("--")===0){var P=J(C);A(k,C),k=J((""+k).trim())}else{P=C;var W=k;if(-1<P.indexOf("-")){var G=P;Tn.hasOwnProperty(G)&&Tn[G]||(Tn[G]=!0,console.error("Unsupported style property %s. Did you mean %s?",G,V(G.replace(bc,"ms-"))))}else if(fi.test(P))G=P,Tn.hasOwnProperty(G)&&Tn[G]||(Tn[G]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",G,G.charAt(0).toUpperCase()+G.slice(1)));else if(hi.test(W)){G=P;var ee=W;An.hasOwnProperty(ee)&&An[ee]||(An[ee]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,G,ee.replace(hi,"")))}typeof W=="number"&&(isNaN(W)?yc||(yc=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",P)):isFinite(W)||as||(as=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",P))),P=C,W=Et.get(P),W!==void 0||(W=J(P.replace(xc,"-$1").toLowerCase().replace(Tr,"-ms-")),Et.set(P,W)),P=W,typeof k=="number"?k=k===0||lu.has(C)?""+k:k+"px":(A(k,C),k=J((""+k).trim()))}h?(h=!1,o.push(Ar,P,Ec,k)):o.push(pu,P,Ec,k)}}h||o.push(Wr)}function pe(o,u,h){h&&typeof h!="function"&&typeof h!="symbol"&&o.push(_r,u,dl)}function Ie(o,u,h){typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&o.push(_r,u,dn,J(h),Wr)}function tt(o,u){this.push('<input type="hidden"'),rt(o),Ie(this,"name",u),Ie(this,"value",o),this.push(Ao)}function rt(o){if(typeof o!="string")throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function Pt(o,u){if(typeof u.$$FORM_ACTION=="function"){var h=o.nextFormID++;o=o.idPrefix+h;try{var C=u.$$FORM_ACTION(o);if(C){var k=C.data;k?.forEach(rt)}return C}catch(P){if(typeof P=="object"&&P!==null&&typeof P.then=="function")throw P;console.error(`Failed to serialize an action for progressive enhancement:
|
|
26
|
-
%s`,P)}}return null}function sr(o,u,h,C,k,P,W,G){var ee=null;if(typeof C=="function"){G===null||fn||(fn=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),k===null&&P===null||Xn||(Xn=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),W===null||Me||(Me=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var X=Pt(u,C);X!==null?(G=X.name,C=X.action||"",k=X.encType,P=X.method,W=X.target,ee=X.data):(o.push(_r,"formAction",dn,gu,Wr),W=P=k=C=G=null,_e(u,h))}return G!=null&&Pe(o,"name",G),C!=null&&Pe(o,"formAction",C),k!=null&&Pe(o,"formEncType",k),P!=null&&Pe(o,"formMethod",P),W!=null&&Pe(o,"formTarget",W),ee}function Pe(o,u,h){switch(u){case"className":Ie(o,"class",h);break;case"tabIndex":Ie(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Ie(o,u,h);break;case"style":Qe(o,h);break;case"src":case"href":if(h===""){console.error(u==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u);break}case"action":case"formAction":if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean")break;E(h,u),h=$(""+h),o.push(_r,u,dn,J(h),Wr);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":pe(o,u.toLowerCase(),h);break;case"xlinkHref":if(typeof h=="function"||typeof h=="symbol"||typeof h=="boolean")break;E(h,u),h=$(""+h),o.push(_r,"xlink:href",dn,J(h),Wr);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof h!="function"&&typeof h!="symbol"&&o.push(_r,u,dn,J(h),Wr);break;case"inert":h!==""||Dc[u]||(Dc[u]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",u));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"&&o.push(_r,u,dl);break;case"capture":case"download":h===!0?o.push(_r,u,dl):h!==!1&&typeof h!="function"&&typeof h!="symbol"&&o.push(_r,u,dn,J(h),Wr);break;case"cols":case"rows":case"size":case"span":typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h&&o.push(_r,u,dn,J(h),Wr);break;case"rowSpan":case"start":typeof h=="function"||typeof h=="symbol"||isNaN(h)||o.push(_r,u,dn,J(h),Wr);break;case"xlinkActuate":Ie(o,"xlink:actuate",h);break;case"xlinkArcrole":Ie(o,"xlink:arcrole",h);break;case"xlinkRole":Ie(o,"xlink:role",h);break;case"xlinkShow":Ie(o,"xlink:show",h);break;case"xlinkTitle":Ie(o,"xlink:title",h);break;case"xlinkType":Ie(o,"xlink:type",h);break;case"xmlBase":Ie(o,"xml:base",h);break;case"xmlLang":Ie(o,"xml:lang",h);break;case"xmlSpace":Ie(o,"xml:space",h);break;default:if((!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=vc.get(u)||u,S(u))){switch(typeof h){case"function":case"symbol":return;case"boolean":var C=u.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-")return}o.push(_r,u,dn,J(h),Wr)}}}function j(o,u,h){if(u!=null){if(h!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");u=u.__html,u!=null&&(F(u),o.push(""+u))}}function ne(o,u){var h=o[u];h!=null&&(h=Yn(h),o.multiple&&!h?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",u):!o.multiple&&h&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",u))}function Fe(o){var u="";return iu.Children.forEach(o,function(h){h!=null&&(u+=h,Ca||typeof h=="string"||typeof h=="number"||typeof h=="bigint"||(Ca=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),u}function _e(o,u){(o.instructions&16)===ko&&(o.instructions|=16,u.bootstrapChunks.unshift(u.startInlineScript,hl,"<\/script>"))}function De(o,u){o.push(Ce("link"));for(var h in u)if(st.call(u,h)){var C=u[h];if(C!=null)switch(h){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pe(o,h,C)}}return o.push(Ao),null}function Ae(o){return F(o),(""+o).replace(mu,e)}function Oe(o,u,h){o.push(Ce(h));for(var C in u)if(st.call(u,C)){var k=u[C];if(k!=null)switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(h+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pe(o,C,k)}}return o.push(Ao),null}function ze(o,u){o.push(Ce("title"));var h=null,C=null,k;for(k in u)if(st.call(u,k)){var P=u[k];if(P!=null)switch(k){case"children":h=P;break;case"dangerouslySetInnerHTML":C=P;break;default:Pe(o,k,P)}}return o.push(Ot),u=Array.isArray(h)?2>h.length?h[0]:null:h,typeof u!="function"&&typeof u!="symbol"&&u!==null&&u!==void 0&&o.push(J(""+u)),j(o,C,h),o.push(Kt("title")),null}function Ee(o,u){o.push(Ce("script"));var h=null,C=null,k;for(k in u)if(st.call(u,k)){var P=u[k];if(P!=null)switch(k){case"children":h=P;break;case"dangerouslySetInnerHTML":C=P;break;default:Pe(o,k,P)}}return o.push(Ot),h!=null&&typeof h!="string"&&(u=typeof h=="number"?"a number for children":Array.isArray(h)?"an array for children":"something unexpected for children",console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",u)),j(o,C,h),typeof h=="string"&&o.push(K(h)),o.push(Kt("script")),null}function Be(o,u,h){o.push(Ce(h));var C=h=null,k;for(k in u)if(st.call(u,k)){var P=u[k];if(P!=null)switch(k){case"children":h=P;break;case"dangerouslySetInnerHTML":C=P;break;default:Pe(o,k,P)}}return o.push(Ot),j(o,C,h),h}function ye(o,u,h){o.push(Ce(h));var C=h=null,k;for(k in u)if(st.call(u,k)){var P=u[k];if(P!=null)switch(k){case"children":h=P;break;case"dangerouslySetInnerHTML":C=P;break;default:Pe(o,k,P)}}return o.push(Ot),j(o,C,h),typeof h=="string"?(o.push(J(h)),null):h}function Ce(o){var u=vu.get(o);if(u===void 0){if(!Fa.test(o))throw Error("Invalid tag: "+o);u="<"+o,vu.set(o,u)}return u}function be(o,u,h,C,k,P,W,G,ee,X){B(u,h),u!=="input"&&u!=="textarea"&&u!=="select"||h==null||h.value!==null||lr||(lr=!0,u==="select"&&h.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",u):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",u));e:if(u.indexOf("-")===-1)var fe=!1;else switch(u){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":fe=!1;break e;default:fe=!0}switch(fe||typeof h.is=="string"||Z(u,h),!h.suppressContentEditableWarning&&h.contentEditable&&h.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),G.insertionMode!==cr&&G.insertionMode!==Vn&&u.indexOf("-")===-1&&u.toLowerCase()!==u&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",u),u){case"div":case"span":case"svg":case"path":break;case"a":o.push(Ce("a"));var le=null,he=null,xe;for(xe in h)if(st.call(h,xe)){var oe=h[xe];if(oe!=null)switch(xe){case"children":le=oe;break;case"dangerouslySetInnerHTML":he=oe;break;case"href":oe===""?Ie(o,"href",""):Pe(o,xe,oe);break;default:Pe(o,xe,oe)}}if(o.push(Ot),j(o,he,le),typeof le=="string"){o.push(J(le));var $e=null}else $e=le;return $e;case"g":case"p":case"li":break;case"select":N("select",h),ne(h,"value"),ne(h,"defaultValue"),h.value===void 0||h.defaultValue===void 0||ds||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),ds=!0),o.push(Ce("select"));var qe=null,Le=null,Ue;for(Ue in h)if(st.call(h,Ue)){var dr=h[Ue];if(dr!=null)switch(Ue){case"children":qe=dr;break;case"dangerouslySetInnerHTML":Le=dr;break;case"defaultValue":case"value":break;default:Pe(o,Ue,dr)}}return o.push(Ot),j(o,Le,qe),qe;case"option":var Re=G.selectedValue;o.push(Ce("option"));var et=null,ht=null,Pr=null,rr=null,nr;for(nr in h)if(st.call(h,nr)){var Lt=h[nr];if(Lt!=null)switch(nr){case"children":et=Lt;break;case"selected":Pr=Lt,Ur||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ur=!0);break;case"dangerouslySetInnerHTML":rr=Lt;break;case"value":ht=Lt;default:Pe(o,nr,Lt)}}if(Re!=null){if(ht!==null){E(ht,"value");var On=""+ht}else rr===null||mi||(mi=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),On=Fe(et);if(Yn(Re)){for(var nn=0;nn<Re.length;nn++)if(E(Re[nn],"value"),""+Re[nn]===On){o.push(' selected=""');break}}else E(Re,"select.value"),""+Re===On&&o.push(' selected=""')}else Pr&&o.push(' selected=""');return o.push(Ot),j(o,rr,et),et;case"textarea":N("textarea",h),h.value===void 0||h.defaultValue===void 0||fl||(console.error("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"),fl=!0),o.push(Ce("textarea"));var ot=null,a=null,s=null,p;for(p in h)if(st.call(h,p)){var D=h[p];if(D!=null)switch(p){case"children":s=D;break;case"value":ot=D;break;case"defaultValue":a=D;break;case"dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Pe(o,p,D)}}if(ot===null&&a!==null&&(ot=a),o.push(Ot),s!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),ot!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Yn(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");F(s[0]),ot=""+s[0]}F(s),ot=""+s}return typeof ot=="string"&&ot[0]===`
|
|
27
|
-
`&&o.push(fs),ot!==null&&(E(ot,"value"),o.push(J(""+ot))),null;case"input":N("input",h),o.push(Ce("input"));var T=null,R=null,M=null,H=null,Q=null,U=null,ie=null,re=null,de=null,ue;for(ue in h)if(st.call(h,ue)){var te=h[ue];if(te!=null)switch(ue){case"children":case"dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"name":T=te;break;case"formAction":R=te;break;case"formEncType":M=te;break;case"formMethod":H=te;break;case"formTarget":Q=te;break;case"defaultChecked":de=te;break;case"defaultValue":ie=te;break;case"checked":re=te;break;case"value":U=te;break;default:Pe(o,ue,te)}}R===null||h.type==="image"||h.type==="submit"||Ea||(Ea=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".'));var Ze=sr(o,C,k,R,M,H,Q,T);return re===null||de===null||Fc||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",h.type),Fc=!0),U===null||ie===null||cs||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",h.type),cs=!0),re!==null?pe(o,"checked",re):de!==null&&pe(o,"checked",de),U!==null?Pe(o,"value",U):ie!==null&&Pe(o,"value",ie),o.push(Ao),Ze?.forEach(tt,o),null;case"button":o.push(Ce("button"));var nt=null,je=null,ke=null,kt=null,it=null,Ge=null,ar=null,br;for(br in h)if(st.call(h,br)){var Rt=h[br];if(Rt!=null)switch(br){case"children":nt=Rt;break;case"dangerouslySetInnerHTML":je=Rt;break;case"name":ke=Rt;break;case"formAction":kt=Rt;break;case"formEncType":it=Rt;break;case"formMethod":Ge=Rt;break;case"formTarget":ar=Rt;break;default:Pe(o,br,Rt)}}kt===null||h.type==null||h.type==="submit"||Ea||(Ea=!0,console.error('A button can only specify a formAction along with type="submit" or no type.'));var Mt=sr(o,C,k,kt,it,Ge,ar,ke);if(o.push(Ot),Mt?.forEach(tt,o),j(o,je,nt),typeof nt=="string"){o.push(J(nt));var pt=null}else pt=nt;return pt;case"form":o.push(Ce("form"));var or=null,ir=null,Ke=null,bt=null,at=null,fr=null,hr;for(hr in h)if(st.call(h,hr)){var zt=h[hr];if(zt!=null)switch(hr){case"children":or=zt;break;case"dangerouslySetInnerHTML":ir=zt;break;case"action":Ke=zt;break;case"encType":bt=zt;break;case"method":at=zt;break;case"target":fr=zt;break;default:Pe(o,hr,zt)}}var gn=null,Or=null;if(typeof Ke=="function"){bt===null&&at===null||Xn||(Xn=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),fr===null||Me||(Me=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."));var mn=Pt(C,Ke);mn!==null?(Ke=mn.action||"",bt=mn.encType,at=mn.method,fr=mn.target,gn=mn.data,Or=mn.name):(o.push(_r,"action",dn,gu,Wr),fr=at=bt=Ke=null,_e(C,k))}if(Ke!=null&&Pe(o,"action",Ke),bt!=null&&Pe(o,"encType",bt),at!=null&&Pe(o,"method",at),fr!=null&&Pe(o,"target",fr),o.push(Ot),Or!==null&&(o.push('<input type="hidden"'),Ie(o,"name",Or),o.push(Ao),gn?.forEach(tt,o)),j(o,ir,or),typeof or=="string"){o.push(J(or));var eo=null}else eo=or;return eo;case"menuitem":o.push(Ce("menuitem"));for(var vn in h)if(st.call(h,vn)){var Aa=h[vn];if(Aa!=null)switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Pe(o,vn,Aa)}}return o.push(Ot),null;case"object":o.push(Ce("object"));var jr=null,to=null,pr;for(pr in h)if(st.call(h,pr)){var Ht=h[pr];if(Ht!=null)switch(pr){case"children":jr=Ht;break;case"dangerouslySetInnerHTML":to=Ht;break;case"data":E(Ht,"data");var wt=$(""+Ht);if(wt===""){console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',pr,pr);break}o.push(_r,"data",dn,J(wt),Wr);break;default:Pe(o,pr,Ht)}}if(o.push(Ot),j(o,to,jr),typeof jr=="string"){o.push(J(jr));var yr=null}else yr=jr;return yr;case"title":var Gr=G.insertionMode,_a=!!(G.tagScope&1);if(st.call(h,"children")){var Yr=h.children,bn=Array.isArray(Yr)?2>Yr.length?Yr[0]:null:Yr;Array.isArray(Yr)&&1<Yr.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",Yr.length):typeof bn=="function"||typeof bn=="symbol"?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof bn=="function"?"a Function":"a Sybmol"):bn&&bn.toString==={}.toString&&(bn.$$typeof!=null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."))}if(Gr===cr||_a||h.itemProp!=null)var Vr=ze(o,h);else X?Vr=null:(ze(k.hoistableChunks,h),Vr=void 0);return Vr;case"link":var Ti=h.rel,Nt=h.href,wr=h.precedence;if(G.insertionMode===cr||G.tagScope&1||h.itemProp!=null||typeof Ti!="string"||typeof Nt!="string"||Nt===""){Ti==="stylesheet"&&typeof h.precedence=="string"&&(typeof Nt=="string"&&Nt||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',Nt===null?"`null`":Nt===void 0?"`undefined`":Nt===""?"an empty string":'something with type "'+typeof Nt+'"')),De(o,h);var Bn=null}else if(h.rel==="stylesheet")if(typeof wr!="string"||h.disabled!=null||h.onLoad||h.onError){if(typeof wr=="string"){if(h.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(h.onLoad||h.onError){var In=h.onLoad&&h.onError?"`onLoad` and `onError` props":h.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',In,In)}}Bn=De(o,h)}else{var yn=k.styles.get(wr),Ra=C.styleResources.hasOwnProperty(Nt)?C.styleResources[Nt]:void 0;if(Ra!==Yt){C.styleResources[Nt]=Yt,yn||(yn={precedence:J(wr),rules:[],hrefs:[],sheets:new Map},k.styles.set(wr,yn));var an={state:Dl,props:At({},h,{"data-precedence":h.precedence,precedence:null})};if(Ra){Ra.length===2&&Gi(an.props,Ra);var $n=k.preloads.stylesheets.get(Nt);$n&&0<$n.length?$n.length=0:an.state=Su}yn.sheets.set(Nt,an),W&&W.stylesheets.add(an)}else if(yn){var ea=yn.sheets.get(Nt);ea&&W&&W.stylesheets.add(ea)}ee&&o.push("<!-- -->"),Bn=null}else h.onLoad||h.onError?Bn=De(o,h):(ee&&o.push("<!-- -->"),Bn=X?null:De(k.hoistableChunks,h));return Bn;case"script":var ta=h.async;if(typeof h.src!="string"||!h.src||!ta||typeof ta=="function"||typeof ta=="symbol"||h.onLoad||h.onError||G.insertionMode===cr||G.tagScope&1||h.itemProp!=null)var ra=Ee(o,h);else{var Xr=h.src;if(h.type==="module")var wn=C.moduleScriptResources,Ai=k.preloads.moduleScripts;else wn=C.scriptResources,Ai=k.preloads.scripts;var on=wn.hasOwnProperty(Xr)?wn[Xr]:void 0;if(on!==Yt){wn[Xr]=Yt;var ro=h;if(on){on.length===2&&(ro=At({},h),Gi(ro,on));var no=Ai.get(Xr);no&&(no.length=0)}var As=[];k.scripts.add(As),Ee(As,ro)}ee&&o.push("<!-- -->"),ra=null}return ra;case"style":var Ln=G.insertionMode,_i=!!(G.tagScope&1);if(st.call(h,"children")){var Br=h.children,xn=Array.isArray(Br)?2>Br.length?Br[0]:null:Br;(typeof xn=="function"||typeof xn=="symbol"||Array.isArray(xn))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof xn=="function"?"a Function":typeof xn=="symbol"?"a Sybmol":"an Array")}var xt=h.precedence,Zt=h.href;if(Ln===cr||_i||h.itemProp!=null||typeof xt!="string"||typeof Zt!="string"||Zt===""){o.push(Ce("style"));var xr=null,_s=null,Dn;for(Dn in h)if(st.call(h,Dn)){var na=h[Dn];if(na!=null)switch(Dn){case"children":xr=na;break;case"dangerouslySetInnerHTML":_s=na;break;default:Pe(o,Dn,na)}}o.push(Ot);var Na=Array.isArray(xr)?2>xr.length?xr[0]:null:xr;typeof Na!="function"&&typeof Na!="symbol"&&Na!==null&&Na!==void 0&&o.push(Ae(Na)),j(o,_s,xr),o.push(Kt("style"));var Nl=null}else{Zt.includes(" ")&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',Zt);var Wt=k.styles.get(xt),Po=C.styleResources.hasOwnProperty(Zt)?C.styleResources[Zt]:void 0;if(Po!==Yt){C.styleResources[Zt]=Yt,Po&&console.error('React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',Zt),Wt?Wt.hrefs.push(J(Zt)):(Wt={precedence:J(xt),rules:[],hrefs:[J(Zt)],sheets:new Map},k.styles.set(xt,Wt));var ao=Wt.rules,Pa=null,Oo=null,oo;for(oo in h)if(st.call(h,oo)){var Ri=h[oo];if(Ri!=null)switch(oo){case"children":Pa=Ri;break;case"dangerouslySetInnerHTML":Oo=Ri}}var Bo=Array.isArray(Pa)?2>Pa.length?Pa[0]:null:Pa;typeof Bo!="function"&&typeof Bo!="symbol"&&Bo!==null&&Bo!==void 0&&ao.push(Ae(Bo)),j(ao,Oo,Pa)}Wt&&W&&W.styles.add(Wt),ee&&o.push("<!-- -->"),Nl=void 0}return Nl;case"meta":if(G.insertionMode===cr||G.tagScope&1||h.itemProp!=null)var Lu=Oe(o,h,"meta");else ee&&o.push("<!-- -->"),Lu=X?null:typeof h.charSet=="string"?Oe(k.charsetChunks,h,"meta"):h.name==="viewport"?Oe(k.viewportChunks,h,"meta"):Oe(k.hoistableChunks,h,"meta");return Lu;case"listing":case"pre":o.push(Ce(u));var Io=null,io=null,Oa;for(Oa in h)if(st.call(h,Oa)){var Mn=h[Oa];if(Mn!=null)switch(Oa){case"children":Io=Mn;break;case"dangerouslySetInnerHTML":io=Mn;break;default:Pe(o,Oa,Mn)}}if(o.push(Ot),io!=null){if(Io!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof io!="object"||!("__html"in io))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var Ba=io.__html;Ba!=null&&(typeof Ba=="string"&&0<Ba.length&&Ba[0]===`
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`+(
|
|
31
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}
|
|
32
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Pn&&console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"),Nr}function Xs(){if(0<Cs)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Yi(){return ct===null?Ro===null?(qn=!1,Ro=ct=Xs()):(qn=!0,ct=Ro):ct.next===null?(qn=!1,ct=ct.next=Xs()):(qn=!0,ct=ct.next),ct}function $o(){var o=No;return No=null,o}function Ha(){Pn=!1,Tl=xs=ws=Nr=null,Ci=!1,Ro=null,Cs=0,ct=Ta=null}function fc(o){return Pn&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),o._currentValue2}function ei(o,u){return typeof u=="function"?u(o):u}function $l(o,u,h){if(o!==ei&&(Ei="useReducer"),Nr=kn(),ct=Yi(),qn){if(h=ct.queue,u=h.dispatch,Ta!==null){var C=Ta.get(h);if(C!==void 0){Ta.delete(h),h=ct.memoizedState;do{var k=C.action;Pn=!0,h=o(h,k),Pn=!1,C=C.next}while(C!==null);return ct.memoizedState=h,[h,u]}}return[ct.memoizedState,u]}return Pn=!0,o=o===ei?typeof u=="function"?u():u:h!==void 0?h(u):u,Pn=!1,ct.memoizedState=o,o=ct.queue={last:null,dispatch:null},o=o.dispatch=eu.bind(null,Nr,o),[ct.memoizedState,o]}function Un(o,u){if(Nr=kn(),ct=Yi(),u=u===void 0?null:u,ct!==null){var h=ct.memoizedState;if(h!==null&&u!==null){e:{var C=h[1];if(C===null)console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ei),C=!1;else{u.length!==C.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
39
|
-
|
|
40
|
-
Previous: %s
|
|
41
|
-
Incoming: %s`,Ei,"["+u.join(", ")+"]","["+C.join(", ")+"]");for(var k=0;k<C.length&&k<u.length;k++)if(!Ou(u[k],C[k])){C=!1;break e}C=!0}}if(C)return h[0]}}return Pn=!0,o=o(),Pn=!1,ct.memoizedState=[o,u],o}function eu(o,u,h){if(25<=Cs)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o===Nr)if(Ci=!0,o={action:h,next:null},Ta===null&&(Ta=new Map),h=Ta.get(u),h===void 0)Ta.set(u,o);else{for(u=h;u.next!==null;)u=u.next;u.next=o}}function tu(){throw Error("startTransition cannot be called during server rendering.")}function fa(){throw Error("Cannot update optimistic state while rendering.")}function ti(o,u,h){kn();var C=$a++,k=xs;if(typeof o.$$FORM_ACTION=="function"){var P=null,W=Tl;k=k.formState;var G=o.$$IS_SIGNATURE_EQUAL;if(k!==null&&typeof G=="function"){var ee=k[1];G.call(o,k[2],k[3])&&(P=h!==void 0?"p"+h:"k"+g(JSON.stringify([W,null,C]),0),ee===P&&(Nn=C,u=k[0]))}var X=o.bind(null,u);return o=function(le){X(le)},typeof X.$$FORM_ACTION=="function"&&(o.$$FORM_ACTION=function(le){le=X.$$FORM_ACTION(le),h!==void 0&&(E(h,"target"),h+="",le.action=h);var he=le.data;return he&&(P===null&&(P=h!==void 0?"p"+h:"k"+g(JSON.stringify([W,null,C]),0)),he.append("$ACTION_KEY",P)),le}),[u,o,!1]}var fe=o.bind(null,u);return[u,function(le){fe(le)},!1]}function Zs(o){var u=Ds;return Ds+=1,No===null&&(No=[]),Ql(No,o,u)}function ru(){throw Error("Cache cannot be refreshed during server rendering.")}function ho(){}function nu(){}function Vi(){if(Fi===0){Al=console.log,$c=console.info,Si=console.warn,Bu=console.error,ki=console.group,Kn=console.groupCollapsed,Ss=console.groupEnd;var o={configurable:!0,enumerable:!0,value:nu,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}Fi++}function Fd(){if(Fi--,Fi===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:At({},o,{value:Al}),info:At({},o,{value:$c}),warn:At({},o,{value:Si}),error:At({},o,{value:Bu}),group:At({},o,{value:ki}),groupCollapsed:At({},o,{value:Kn}),groupEnd:At({},o,{value:Ss})})}0>Fi&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ha(o){if(Iu===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\n( *(at )?)/);Iu=u&&u[1]||"",Qn=-1<h.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Iu+o+Qn}function Xi(o,u){if(!o||ks)return"";var h=Ts.get(o);if(h!==void 0)return h;ks=!0,h=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var C=null;C=Gt.H,Gt.H=null,Vi();try{var k={DetermineComponentFrameRoot:function(){try{if(u){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(oe){var xe=oe}Reflect.construct(o,[],he)}else{try{he.call()}catch(oe){xe=oe}o.call(he.prototype)}}else{try{throw Error()}catch(oe){xe=oe}(he=o())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(oe){if(oe&&xe&&typeof oe.stack=="string")return[oe.stack,xe.stack]}return[null,null]}};k.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var P=Object.getOwnPropertyDescriptor(k.DetermineComponentFrameRoot,"name");P&&P.configurable&&Object.defineProperty(k.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=k.DetermineComponentFrameRoot(),G=W[0],ee=W[1];if(G&&ee){var X=G.split(`
|
|
44
|
-
`),fe=ee.split(`
|
|
45
|
-
`);for(W=P=0;P<X.length&&!X[P].includes("DetermineComponentFrameRoot");)P++;for(;W<fe.length&&!fe[W].includes("DetermineComponentFrameRoot");)W++;if(P===X.length||W===fe.length)for(P=X.length-1,W=fe.length-1;1<=P&&0<=W&&X[P]!==fe[W];)W--;for(;1<=P&&0<=W;P--,W--)if(X[P]!==fe[W]){if(P!==1||W!==1)do if(P--,W--,0>W||X[P]!==fe[W]){var le=`
|
|
46
|
-
`+X[P].replace(" at new "," at ");return o.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",o.displayName)),typeof o=="function"&&Ts.set(o,le),le}while(1<=P&&0<=W);break}}}finally{ks=!1,Gt.H=C,Fd(),Error.prepareStackTrace=h}return X=(X=o?o.displayName||o.name:"")?ha(X):"",typeof o=="function"&&Ts.set(o,X),X}function Js(o){var u=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,o=o.stack,Error.prepareStackTrace=u,o.startsWith(`Error: react-stack-top-frame
|
|
47
|
-
`)&&(o=o.slice(29)),u=o.indexOf(`
|
|
48
|
-
`),u!==-1&&(o=o.slice(u+1)),u=o.indexOf("react_stack_bottom_frame"),u!==-1&&(u=o.lastIndexOf(`
|
|
49
|
-
`,u)),u!==-1)o=o.slice(0,u);else return"";return o}function ri(o){if(typeof o=="string")return ha(o);if(typeof o=="function")return o.prototype&&o.prototype.isReactComponent?Xi(o,!0):Xi(o,!1);if(typeof o=="object"&&o!==null){switch(o.$$typeof){case Za:return Xi(o.render,!1);case ts:return Xi(o.type,!1);case Do:var u=o,h=u._payload;u=u._init;try{o=u(h)}catch{return ha("Lazy")}return ri(o)}if(typeof o.name=="string")return h=o.env,ha(o.name+(h?" ["+h+"]":""))}switch(o){case es:return ha("SuspenseList");case xo:return ha("Suspense")}return""}function Zi(o){if(typeof o=="object"&&o!==null&&typeof o.environmentName=="string"){var u=o.environmentName;o=[o].slice(0),typeof o[0]=="string"?o.splice(0,1,"[%s] "+o[0]," "+u+" "):o.splice(0,0,"[%s] "," "+u+" "),o.unshift(console),u=Xd.apply(console.error,o),u()}else console.error(o);return null}function Qt(){}function pa(o,u,h,C,k,P,W,G,ee,X,fe){var le=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=o,this.renderState=u,this.rootFormatContext=h,this.progressiveChunkSize=C===void 0?12800:C,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=le,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=k===void 0?Zi:k,this.onPostpone=X===void 0?Qt:X,this.onAllReady=P===void 0?Qt:P,this.onShellReady=W===void 0?Qt:W,this.onShellError=G===void 0?Qt:G,this.onFatalError=ee===void 0?Qt:ee,this.formState=fe===void 0?null:fe,this.didWarnForKey=null}function Sd(o,u,h,C,k,P,W,G,ee,X,fe,le){var he=Y();return 1e3<he-_&&(Gt.recentlyCreatedOwnerStacks=0,_=he),u=new pa(u,h,C,k,P,W,G,ee,X,fe,le),h=ai(u,0,null,C,!1,!1),h.parentFlushed=!0,o=ni(u,null,o,-1,null,h,null,null,u.abortableTasks,null,C,null,Nu,null,!1,Zn,null),Wa(o),u.pingedTasks.push(o),u}function ga(o,u){o.pingedTasks.push(u),o.pingedTasks.length===1&&(o.flushScheduled=o.destination!==null,en(o))}function ma(o,u,h,C){return{status:we,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:u,errorDigest:null,contentState:qo(),fallbackState:qo(),contentPreamble:h,fallbackPreamble:C,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null}}function ni(o,u,h,C,k,P,W,G,ee,X,fe,le,he,xe,oe,$e,qe){o.allPendingTasks++,k===null?o.pendingRootTasks++:k.pendingTasks++;var Le={replay:null,node:h,childIndex:C,ping:function(){return ga(o,Le)},blockedBoundary:k,blockedSegment:P,blockedPreamble:W,hoistableState:G,abortSet:ee,keyPath:X,formatContext:fe,context:le,treeContext:he,componentStack:xe,thenableState:u,isFallback:oe};return Le.debugTask=qe,ee.add(Le),Le}function qs(o,u,h,C,k,P,W,G,ee,X,fe,le,he,xe,oe,$e){o.allPendingTasks++,P===null?o.pendingRootTasks++:P.pendingTasks++,h.pendingTasks++;var qe={replay:h,node:C,childIndex:k,ping:function(){return ga(o,qe)},blockedBoundary:P,blockedSegment:null,blockedPreamble:null,hoistableState:W,abortSet:G,keyPath:ee,formatContext:X,context:fe,treeContext:le,componentStack:he,thenableState:u,isFallback:xe};return qe.debugTask=$e,G.add(qe),qe}function ai(o,u,h,C,k,P){return{status:we,parentFlushed:!1,id:-1,index:u,chunks:[],children:[],preambleChildren:[],parentFormatContext:C,boundary:h,lastPushedText:k,textEmbedded:P}}function va(){if(pn===null||pn.componentStack===null)return"";var o=pn.componentStack;try{var u="";if(typeof o.type=="string")u+=ha(o.type);else if(typeof o.type=="function"){if(!o.owner){var h=u,C=o.type,k=C?C.displayName||C.name:"",P=k?ha(k):"";u=h+P}}else o.owner||(u+=ri(o.type));for(;o;)h=null,o.debugStack!=null?h=Js(o.debugStack):(P=o,P.stack!=null&&(h=typeof P.stack!="string"?P.stack=Js(P.stack):P.stack)),(o=o.owner)&&h&&(u+=`
|
|
50
|
-
`+h);var W=u}catch(G){W=`
|
|
51
|
-
Error generating stack: `+G.message+`
|
|
52
|
-
`+G.stack}return W}function Ks(o,u){if(u!=null)for(var h=0;h<u.length;h++){var C=u[h];typeof C.name=="string"&&C.debugStack!==void 0&&(o.componentStack={parent:o.componentStack,type:C,owner:C.owner,stack:C.debugStack},o.debugTask=C.debugTask)}}function Wa(o){var u=o.node;if(typeof u=="object"&&u!==null)switch(u.$$typeof){case yo:var h=u.type,C=u._owner,k=u._debugStack;Ks(o,u._debugInfo),o.debugTask=u._debugTask,o.componentStack={parent:o.componentStack,type:h,owner:C,stack:k};break;case Do:Ks(o,u._debugInfo);break;default:typeof u.then=="function"&&Ks(o,u._debugInfo)}}function ba(o){var u={};return o&&Object.defineProperty(u,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var h="",C=o;do h+=ri(C.type),C=C.parent;while(C);var k=h}catch(P){k=`
|
|
17
|
+
*/var Pp;function Ny(){if(Pp)return Ol;Pp=1;var e=I,t=Yn;function r(l){var f="https://react.dev/errors/"+l;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)f+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),p=Symbol.for("react.consumer"),b=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.scope"),_=Symbol.for("react.activity"),M=Symbol.for("react.legacy_hidden"),U=Symbol.for("react.memo_cache_sentinel"),H=Symbol.for("react.view_transition"),q=Symbol.iterator,Q=Array.isArray;function Y(l,f){var x=l.length&3,E=l.length-x,T=f;for(f=0;f<E;){var P=l.charCodeAt(f)&255|(l.charCodeAt(++f)&255)<<8|(l.charCodeAt(++f)&255)<<16|(l.charCodeAt(++f)&255)<<24;++f,P=3432918353*(P&65535)+((3432918353*(P>>>16)&65535)<<16)&4294967295,P=P<<15|P>>>17,P=461845907*(P&65535)+((461845907*(P>>>16)&65535)<<16)&4294967295,T^=P,T=T<<13|T>>>19,T=5*(T&65535)+((5*(T>>>16)&65535)<<16)&4294967295,T=(T&65535)+27492+(((T>>>16)+58964&65535)<<16)}switch(P=0,x){case 3:P^=(l.charCodeAt(f+2)&255)<<16;case 2:P^=(l.charCodeAt(f+1)&255)<<8;case 1:P^=l.charCodeAt(f)&255,P=3432918353*(P&65535)+((3432918353*(P>>>16)&65535)<<16)&4294967295,P=P<<15|P>>>17,T^=461845907*(P&65535)+((461845907*(P>>>16)&65535)<<16)&4294967295}return T^=l.length,T^=T>>>16,T=2246822507*(T&65535)+((2246822507*(T>>>16)&65535)<<16)&4294967295,T^=T>>>13,T=3266489909*(T&65535)+((3266489909*(T>>>16)&65535)<<16)&4294967295,(T^T>>>16)>>>0}var ie=Object.assign,ee=Object.prototype.hasOwnProperty,ve=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ge={},Ie={};function Ae(l){return ee.call(Ie,l)?!0:ee.call(ge,l)?!1:ve.test(l)?Ie[l]=!0:(ge[l]=!0,!1)}var Ge=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Ue=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),te=/["'&<>]/;function fe(l){if(typeof l=="boolean"||typeof l=="number"||typeof l=="bigint")return""+l;l=""+l;var f=te.exec(l);if(f){var x="",E,T=0;for(E=f.index;E<l.length;E++){switch(l.charCodeAt(E)){case 34:f=""";break;case 38:f="&";break;case 39:f="'";break;case 60:f="<";break;case 62:f=">";break;default:continue}T!==E&&(x+=l.slice(T,E)),T=E+1,x+=f}l=T!==E?x+l.slice(T,E):x}return l}var Ea=/([A-Z])/g,so=/^ms-/,le=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ne(l){return le.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var _n=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qt=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt={pending:!1,data:null,method:null,action:null},on=qt.d;qt.d={f:on.f,r:on.r,D:ns,C:su,L:nl,m:al,X:Pt,S:lu,M:il};var fr=[],lo=/(<\/|<)(s)(cript)/gi;function rr(l,f,x,E){return""+f+(x==="s"?"\\u0073":"\\u0053")+E}function Vr(l,f,x,E,T){return{idPrefix:l===void 0?"":l,nextFormID:0,streamingFormat:0,bootstrapScriptContent:x,bootstrapScripts:E,bootstrapModules:T,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Fa(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}}function We(l,f,x){return{insertionMode:l,selectedValue:f,tagScope:x}}function Oe(l,f,x){switch(f){case"noscript":return We(2,null,l.tagScope|1);case"select":return We(2,x.value!=null?x.value:x.defaultValue,l.tagScope);case"svg":return We(4,null,l.tagScope);case"picture":return We(2,null,l.tagScope|2);case"math":return We(5,null,l.tagScope);case"foreignObject":return We(2,null,l.tagScope);case"table":return We(6,null,l.tagScope);case"thead":case"tbody":case"tfoot":return We(7,null,l.tagScope);case"colgroup":return We(9,null,l.tagScope);case"tr":return We(8,null,l.tagScope);case"head":if(2>l.insertionMode)return We(3,null,l.tagScope);break;case"html":if(l.insertionMode===0)return We(1,null,l.tagScope)}return 6<=l.insertionMode||2>l.insertionMode?We(2,null,l.tagScope):l}var qs=new Map;function Zo(l,f){if(typeof f!="object")throw Error(r(62));var x=!0,E;for(E in f)if(ee.call(f,E)){var T=f[E];if(T!=null&&typeof T!="boolean"&&T!==""){if(E.indexOf("--")===0){var P=fe(E);T=fe((""+T).trim())}else P=qs.get(E),P===void 0&&(P=fe(E.replace(Ea,"-$1").toLowerCase().replace(so,"-ms-")),qs.set(E,P)),T=typeof T=="number"?T===0||Ge.has(E)?""+T:T+"px":fe((""+T).trim());x?(x=!1,l.push(' style="',P,":",T)):l.push(";",P,":",T)}}x||l.push('"')}function Sa(l,f,x){x&&typeof x!="function"&&typeof x!="symbol"&&l.push(" ",f,'=""')}function vt(l,f,x){typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&l.push(" ",f,'="',fe(x),'"')}var Ar=fe("javascript:throw new Error('React form unexpectedly submitted.')");function uo(l,f){this.push('<input type="hidden"'),Ks(l),vt(this,"name",f),vt(this,"value",l),this.push("/>")}function Ks(l){if(typeof l!="string")throw Error(r(480))}function Ye(l,f){if(typeof f.$$FORM_ACTION=="function"){var x=l.nextFormID++;l=l.idPrefix+x;try{var E=f.$$FORM_ACTION(l);if(E){var T=E.data;T?.forEach(Ks)}return E}catch(P){if(typeof P=="object"&&P!==null&&typeof P.then=="function")throw P}}return null}function Xe(l,f,x,E,T,P,j,re){var J=null;if(typeof E=="function"){var K=Ye(f,E);K!==null?(re=K.name,E=K.action||"",T=K.encType,P=K.method,j=K.target,J=K.data):(l.push(" ","formAction",'="',Ar,'"'),j=P=T=E=re=null,si(f,x))}return re!=null&&De(l,"name",re),E!=null&&De(l,"formAction",E),T!=null&&De(l,"formEncType",T),P!=null&&De(l,"formMethod",P),j!=null&&De(l,"formTarget",j),J}function De(l,f,x){switch(f){case"className":vt(l,"class",x);break;case"tabIndex":vt(l,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":vt(l,f,x);break;case"style":Zo(l,x);break;case"src":case"href":if(x==="")break;case"action":case"formAction":if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean")break;x=ne(""+x),l.push(" ",f,'="',fe(x),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Sa(l,f.toLowerCase(),x);break;case"xlinkHref":if(typeof x=="function"||typeof x=="symbol"||typeof x=="boolean")break;x=ne(""+x),l.push(" ","xlink:href",'="',fe(x),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof x!="function"&&typeof x!="symbol"&&l.push(" ",f,'="',fe(x),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"&&l.push(" ",f,'=""');break;case"capture":case"download":x===!0?l.push(" ",f,'=""'):x!==!1&&typeof x!="function"&&typeof x!="symbol"&&l.push(" ",f,'="',fe(x),'"');break;case"cols":case"rows":case"size":case"span":typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x&&l.push(" ",f,'="',fe(x),'"');break;case"rowSpan":case"start":typeof x=="function"||typeof x=="symbol"||isNaN(x)||l.push(" ",f,'="',fe(x),'"');break;case"xlinkActuate":vt(l,"xlink:actuate",x);break;case"xlinkArcrole":vt(l,"xlink:arcrole",x);break;case"xlinkRole":vt(l,"xlink:role",x);break;case"xlinkShow":vt(l,"xlink:show",x);break;case"xlinkTitle":vt(l,"xlink:title",x);break;case"xlinkType":vt(l,"xlink:type",x);break;case"xmlBase":vt(l,"xml:base",x);break;case"xmlLang":vt(l,"xml:lang",x);break;case"xmlSpace":vt(l,"xml:space",x);break;default:if((!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=Ue.get(f)||f,Ae(f))){switch(typeof x){case"function":case"symbol":return;case"boolean":var E=f.toLowerCase().slice(0,5);if(E!=="data-"&&E!=="aria-")return}l.push(" ",f,'="',fe(x),'"')}}}function nr(l,f,x){if(f!=null){if(x!=null)throw Error(r(60));if(typeof f!="object"||!("__html"in f))throw Error(r(61));f=f.__html,f!=null&&l.push(""+f)}}function ka(l){var f="";return e.Children.forEach(l,function(x){x!=null&&(f+=x)}),f}function si(l,f){(l.instructions&16)===0&&(l.instructions|=16,f.bootstrapChunks.unshift(f.startInlineScript,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>"))}function _t(l,f){l.push(at("link"));for(var x in f)if(ee.call(f,x)){var E=f[x];if(E!=null)switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:De(l,x,E)}}return l.push("/>"),null}var qo=/(<\/|<)(s)(tyle)/gi;function Ko(l,f,x,E){return""+f+(x==="s"?"\\73 ":"\\53 ")+E}function Kn(l,f,x){l.push(at(x));for(var E in f)if(ee.call(f,E)){var T=f[E];if(T!=null)switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,x));default:De(l,E,T)}}return l.push("/>"),null}function ar(l,f){l.push(at("title"));var x=null,E=null,T;for(T in f)if(ee.call(f,T)){var P=f[T];if(P!=null)switch(T){case"children":x=P;break;case"dangerouslySetInnerHTML":E=P;break;default:De(l,T,P)}}return l.push(">"),f=Array.isArray(x)?2>x.length?x[0]:null:x,typeof f!="function"&&typeof f!="symbol"&&f!==null&&f!==void 0&&l.push(fe(""+f)),nr(l,E,x),l.push(Rr("title")),null}function Ta(l,f){l.push(at("script"));var x=null,E=null,T;for(T in f)if(ee.call(f,T)){var P=f[T];if(P!=null)switch(T){case"children":x=P;break;case"dangerouslySetInnerHTML":E=P;break;default:De(l,T,P)}}return l.push(">"),nr(l,E,x),typeof x=="string"&&l.push((""+x).replace(lo,rr)),l.push(Rr("script")),null}function Qo(l,f,x){l.push(at(x));var E=x=null,T;for(T in f)if(ee.call(f,T)){var P=f[T];if(P!=null)switch(T){case"children":x=P;break;case"dangerouslySetInnerHTML":E=P;break;default:De(l,T,P)}}return l.push(">"),nr(l,E,x),x}function co(l,f,x){l.push(at(x));var E=x=null,T;for(T in f)if(ee.call(f,T)){var P=f[T];if(P!=null)switch(T){case"children":x=P;break;case"dangerouslySetInnerHTML":E=P;break;default:De(l,T,P)}}return l.push(">"),nr(l,E,x),typeof x=="string"?(l.push(fe(x)),null):x}var Qs=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Nr=new Map;function at(l){var f=Nr.get(l);if(f===void 0){if(!Qs.test(l))throw Error(r(65,l));f="<"+l,Nr.set(l,f)}return f}function ir(l,f,x,E,T,P,j,re,J,K){switch(f){case"div":case"span":case"svg":case"path":break;case"a":l.push(at("a"));var de=null,se=null,we;for(we in x)if(ee.call(x,we)){var Ce=x[we];if(Ce!=null)switch(we){case"children":de=Ce;break;case"dangerouslySetInnerHTML":se=Ce;break;case"href":Ce===""?vt(l,"href",""):De(l,we,Ce);break;default:De(l,we,Ce)}}if(l.push(">"),nr(l,se,de),typeof de=="string"){l.push(fe(de));var Fe=null}else Fe=de;return Fe;case"g":case"p":case"li":break;case"select":l.push(at("select"));var Se=null,qe=null,Ke;for(Ke in x)if(ee.call(x,Ke)){var Ze=x[Ke];if(Ze!=null)switch(Ke){case"children":Se=Ze;break;case"dangerouslySetInnerHTML":qe=Ze;break;case"defaultValue":case"value":break;default:De(l,Ke,Ze)}}return l.push(">"),nr(l,qe,Se),Se;case"option":var et=re.selectedValue;l.push(at("option"));var xe=null,nt=null,Le=null,Nt=null,Lt;for(Lt in x)if(ee.call(x,Lt)){var ke=x[Lt];if(ke!=null)switch(Lt){case"children":xe=ke;break;case"selected":Le=ke;break;case"dangerouslySetInnerHTML":Nt=ke;break;case"value":nt=ke;default:De(l,Lt,ke)}}if(et!=null){var Rt=nt!==null?""+nt:ka(xe);if(Q(et)){for(var Ln=0;Ln<et.length;Ln++)if(""+et[Ln]===Rt){l.push(' selected=""');break}}else""+et===Rt&&l.push(' selected=""')}else Le&&l.push(' selected=""');return l.push(">"),nr(l,Nt,xe),xe;case"textarea":l.push(at("textarea"));var It=null,pn=null,Kt=null,Ct;for(Ct in x)if(ee.call(x,Ct)){var Ot=x[Ct];if(Ot!=null)switch(Ct){case"children":Kt=Ot;break;case"value":It=Ot;break;case"defaultValue":pn=Ot;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:De(l,Ct,Ot)}}if(It===null&&pn!==null&&(It=pn),l.push(">"),Kt!=null){if(It!=null)throw Error(r(92));if(Q(Kt)){if(1<Kt.length)throw Error(r(93));It=""+Kt[0]}It=""+Kt}return typeof It=="string"&&It[0]===`
|
|
18
|
+
`&&l.push(`
|
|
19
|
+
`),It!==null&&l.push(fe(""+It)),null;case"input":l.push(at("input"));var Yt=null,Ir=null,Jt=null,In=null,gn=null,Mn=null,mn=null,Ni=null,Ne=null,vn;for(vn in x)if(ee.call(x,vn)){var Er=x[vn];if(Er!=null)switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"name":Yt=Er;break;case"formAction":Ir=Er;break;case"formEncType":Jt=Er;break;case"formMethod":In=Er;break;case"formTarget":gn=Er;break;case"defaultChecked":Ne=Er;break;case"defaultValue":mn=Er;break;case"checked":Ni=Er;break;case"value":Mn=Er;break;default:De(l,vn,Er)}}var Dl=Xe(l,E,T,Ir,Jt,In,gn,Yt);return Ni!==null?Sa(l,"checked",Ni):Ne!==null&&Sa(l,"checked",Ne),Mn!==null?De(l,"value",Mn):mn!==null&&De(l,"value",mn),l.push("/>"),Dl?.forEach(uo,l),null;case"button":l.push(at("button"));var Ri=null,ws=null,Ds=null,Cl=null,Ma=null,Cs=null,Oi=null,Bi;for(Bi in x)if(ee.call(x,Bi)){var Mr=x[Bi];if(Mr!=null)switch(Bi){case"children":Ri=Mr;break;case"dangerouslySetInnerHTML":ws=Mr;break;case"name":Ds=Mr;break;case"formAction":Cl=Mr;break;case"formEncType":Ma=Mr;break;case"formMethod":Cs=Mr;break;case"formTarget":Oi=Mr;break;default:De(l,Bi,Mr)}}var Es=Xe(l,E,T,Cl,Ma,Cs,Oi,Ds);if(l.push(">"),Es?.forEach(uo,l),nr(l,ws,Ri),typeof Ri=="string"){l.push(fe(Ri));var aa=null}else aa=Ri;return aa;case"form":l.push(at("form"));var ia=null,Pi=null,zn=null,Li=null,$r=null,Ii=null,oa;for(oa in x)if(ee.call(x,oa)){var bn=x[oa];if(bn!=null)switch(oa){case"children":ia=bn;break;case"dangerouslySetInnerHTML":Pi=bn;break;case"action":zn=bn;break;case"encType":Li=bn;break;case"method":$r=bn;break;case"target":Ii=bn;break;default:De(l,oa,bn)}}var Et=null,_o=null;if(typeof zn=="function"){var Fr=Ye(E,zn);Fr!==null?(zn=Fr.action||"",Li=Fr.encType,$r=Fr.method,Ii=Fr.target,Et=Fr.data,_o=Fr.name):(l.push(" ","action",'="',Ar,'"'),Ii=$r=Li=zn=null,si(E,T))}if(zn!=null&&De(l,"action",zn),Li!=null&&De(l,"encType",Li),$r!=null&&De(l,"method",$r),Ii!=null&&De(l,"target",Ii),l.push(">"),_o!==null&&(l.push('<input type="hidden"'),vt(l,"name",_o),l.push("/>"),Et?.forEach(uo,l)),nr(l,Pi,ia),typeof ia=="string"){l.push(fe(ia));var sa=null}else sa=ia;return sa;case"menuitem":l.push(at("menuitem"));for(var za in x)if(ee.call(x,za)){var Hn=x[za];if(Hn!=null)switch(za){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:De(l,za,Hn)}}return l.push(">"),null;case"object":l.push(at("object"));var zr=null,yn=null,it;for(it in x)if(ee.call(x,it)){var en=x[it];if(en!=null)switch(it){case"children":zr=en;break;case"dangerouslySetInnerHTML":yn=en;break;case"data":var mr=ne(""+en);if(mr==="")break;l.push(" ","data",'="',fe(mr),'"');break;default:De(l,it,en)}}if(l.push(">"),nr(l,yn,zr),typeof zr=="string"){l.push(fe(zr));var Ha=null}else Ha=zr;return Ha;case"title":if(re.insertionMode===4||re.tagScope&1||x.itemProp!=null)var la=ar(l,x);else K?la=null:(ar(T.hoistableChunks,x),la=void 0);return la;case"link":var Ao=x.rel,ut=x.href,xn=x.precedence;if(re.insertionMode===4||re.tagScope&1||x.itemProp!=null||typeof Ao!="string"||typeof ut!="string"||ut===""){_t(l,x);var tn=null}else if(x.rel==="stylesheet")if(typeof xn!="string"||x.disabled!=null||x.onLoad||x.onError)tn=_t(l,x);else{var wn=T.styles.get(xn),jn=E.styleResources.hasOwnProperty(ut)?E.styleResources[ut]:void 0;if(jn!==null){E.styleResources[ut]=null,wn||(wn={precedence:fe(xn),rules:[],hrefs:[],sheets:new Map},T.styles.set(xn,wn));var Mi={state:0,props:ie({},x,{"data-precedence":x.precedence,precedence:null})};if(jn){jn.length===2&&sn(Mi.props,jn);var vr=T.preloads.stylesheets.get(ut);vr&&0<vr.length?vr.length=0:Mi.state=1}wn.sheets.set(ut,Mi),j&&j.stylesheets.add(Mi)}else if(wn){var El=wn.sheets.get(ut);El&&j&&j.stylesheets.add(El)}J&&l.push("<!-- -->"),tn=null}else x.onLoad||x.onError?tn=_t(l,x):(J&&l.push("<!-- -->"),tn=K?null:_t(T.hoistableChunks,x));return tn;case"script":var ua=x.async;if(typeof x.src!="string"||!x.src||!ua||typeof ua=="function"||typeof ua=="symbol"||x.onLoad||x.onError||re.insertionMode===4||re.tagScope&1||x.itemProp!=null)var Fs=Ta(l,x);else{var ja=x.src;if(x.type==="module")var ca=E.moduleScriptResources,zi=T.preloads.moduleScripts;else ca=E.scriptResources,zi=T.preloads.scripts;var Un=ca.hasOwnProperty(ja)?ca[ja]:void 0;if(Un!==null){ca[ja]=null;var Hi=x;if(Un){Un.length===2&&(Hi=ie({},x),sn(Hi,Un));var Te=zi.get(ja);Te&&(Te.length=0)}var ji=[];T.scripts.add(ji),Ta(ji,Hi)}J&&l.push("<!-- -->"),Fs=null}return Fs;case"style":var Dn=x.precedence,br=x.href;if(re.insertionMode===4||re.tagScope&1||x.itemProp!=null||typeof Dn!="string"||typeof br!="string"||br===""){l.push(at("style"));var sr=null,Ua=null,da;for(da in x)if(ee.call(x,da)){var Ui=x[da];if(Ui!=null)switch(da){case"children":sr=Ui;break;case"dangerouslySetInnerHTML":Ua=Ui;break;default:De(l,da,Ui)}}l.push(">");var Wa=Array.isArray(sr)?2>sr.length?sr[0]:null:sr;typeof Wa!="function"&&typeof Wa!="symbol"&&Wa!==null&&Wa!==void 0&&l.push((""+Wa).replace(qo,Ko)),nr(l,Ua,sr),l.push(Rr("style"));var Wi=null}else{var Qt=T.styles.get(Dn);if((E.styleResources.hasOwnProperty(br)?E.styleResources[br]:void 0)!==null){E.styleResources[br]=null,Qt?Qt.hrefs.push(fe(br)):(Qt={precedence:fe(Dn),rules:[],hrefs:[fe(br)],sheets:new Map},T.styles.set(Dn,Qt));var Wn=Qt.rules,fa=null,Sr=null,Ga;for(Ga in x)if(ee.call(x,Ga)){var s=x[Ga];if(s!=null)switch(Ga){case"children":fa=s;break;case"dangerouslySetInnerHTML":Sr=s}}var c=Array.isArray(fa)?2>fa.length?fa[0]:null:fa;typeof c!="function"&&typeof c!="symbol"&&c!==null&&c!==void 0&&Wn.push((""+c).replace(qo,Ko)),nr(Wn,Sr,fa)}Qt&&j&&j.styles.add(Qt),J&&l.push("<!-- -->"),Wi=void 0}return Wi;case"meta":if(re.insertionMode===4||re.tagScope&1||x.itemProp!=null)var v=Kn(l,x,"meta");else J&&l.push("<!-- -->"),v=K?null:typeof x.charSet=="string"?Kn(T.charsetChunks,x,"meta"):x.name==="viewport"?Kn(T.viewportChunks,x,"meta"):Kn(T.hoistableChunks,x,"meta");return v;case"listing":case"pre":l.push(at(f));var C=null,k=null,B;for(B in x)if(ee.call(x,B)){var z=x[B];if(z!=null)switch(B){case"children":C=z;break;case"dangerouslySetInnerHTML":k=z;break;default:De(l,B,z)}}if(l.push(">"),k!=null){if(C!=null)throw Error(r(60));if(typeof k!="object"||!("__html"in k))throw Error(r(61));var X=k.__html;X!=null&&(typeof X=="string"&&0<X.length&&X[0]===`
|
|
20
|
+
`?l.push(`
|
|
21
|
+
`,X):l.push(""+X))}return typeof C=="string"&&C[0]===`
|
|
22
|
+
`&&l.push(`
|
|
23
|
+
`),C;case"img":var W=x.src,V=x.srcSet;if(!(x.loading==="lazy"||!W&&!V||typeof W!="string"&&W!=null||typeof V!="string"&&V!=null)&&x.fetchPriority!=="low"&&!(re.tagScope&3)&&(typeof W!="string"||W[4]!==":"||W[0]!=="d"&&W[0]!=="D"||W[1]!=="a"&&W[1]!=="A"||W[2]!=="t"&&W[2]!=="T"||W[3]!=="a"&&W[3]!=="A")&&(typeof V!="string"||V[4]!==":"||V[0]!=="d"&&V[0]!=="D"||V[1]!=="a"&&V[1]!=="A"||V[2]!=="t"&&V[2]!=="T"||V[3]!=="a"&&V[3]!=="A")){var oe=typeof x.sizes=="string"?x.sizes:void 0,ae=V?V+`
|
|
24
|
+
`+(oe||""):W,pe=T.preloads.images,me=pe.get(ae);if(me)(x.fetchPriority==="high"||10>T.highImagePreloads.size)&&(pe.delete(ae),T.highImagePreloads.add(me));else if(!E.imageResources.hasOwnProperty(ae)){E.imageResources[ae]=fr;var Ee=x.crossOrigin,_e=typeof Ee=="string"?Ee==="use-credentials"?Ee:"":void 0,Je=T.headers,ct;Je&&0<Je.remainingCapacity&&typeof x.srcSet!="string"&&(x.fetchPriority==="high"||500>Je.highImagePreloads.length)&&(ct=ln(W,"image",{imageSrcSet:x.srcSet,imageSizes:x.sizes,crossOrigin:_e,integrity:x.integrity,nonce:x.nonce,type:x.type,fetchPriority:x.fetchPriority,referrerPolicy:x.refererPolicy}),0<=(Je.remainingCapacity-=ct.length+2))?(T.resets.image[ae]=fr,Je.highImagePreloads&&(Je.highImagePreloads+=", "),Je.highImagePreloads+=ct):(me=[],_t(me,{rel:"preload",as:"image",href:V?void 0:W,imageSrcSet:V,imageSizes:oe,crossOrigin:_e,integrity:x.integrity,type:x.type,fetchPriority:x.fetchPriority,referrerPolicy:x.referrerPolicy}),x.fetchPriority==="high"||10>T.highImagePreloads.size?T.highImagePreloads.add(me):(T.bulkPreloads.add(me),pe.set(ae,me)))}}return Kn(l,x,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return Kn(l,x,f);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>re.insertionMode){var je=P||T.preamble;if(je.headChunks)throw Error(r(545,"`<head>`"));je.headChunks=[];var He=Qo(je.headChunks,x,"head")}else He=co(l,x,"head");return He;case"body":if(2>re.insertionMode){var dt=P||T.preamble;if(dt.bodyChunks)throw Error(r(545,"`<body>`"));dt.bodyChunks=[];var lr=Qo(dt.bodyChunks,x,"body")}else lr=co(l,x,"body");return lr;case"html":if(re.insertionMode===0){var Mt=P||T.preamble;if(Mt.htmlChunks)throw Error(r(545,"`<html>`"));Mt.htmlChunks=[""];var Cn=Qo(Mt.htmlChunks,x,"html")}else Cn=co(l,x,"html");return Cn;default:if(f.indexOf("-")!==-1){l.push(at(f));var kr=null,Ft=null,xt;for(xt in x)if(ee.call(x,xt)){var ot=x[xt];if(ot!=null){var zt=xt;switch(xt){case"children":kr=ot;break;case"dangerouslySetInnerHTML":Ft=ot;break;case"style":Zo(l,ot);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":zt="class";default:if(Ae(xt)&&typeof ot!="function"&&typeof ot!="symbol"&&ot!==!1){if(ot===!0)ot="";else if(typeof ot=="object")continue;l.push(" ",zt,'="',fe(ot),'"')}}}}return l.push(">"),nr(l,Ft,kr),kr}}return co(l,x,f)}var $o=new Map;function Rr(l){var f=$o.get(l);return f===void 0&&(f="</"+l+">",$o.set(l,f)),f}function Yr(l,f){l=l.preamble,l.htmlChunks===null&&f.htmlChunks&&(l.htmlChunks=f.htmlChunks,f.contribution|=1),l.headChunks===null&&f.headChunks&&(l.headChunks=f.headChunks,f.contribution|=4),l.bodyChunks===null&&f.bodyChunks&&(l.bodyChunks=f.bodyChunks,f.contribution|=2)}function es(l,f){f=f.bootstrapChunks;for(var x=0;x<f.length-1;x++)l.push(f[x]);return x<f.length?(x=f[x],f.length=0,l.push(x)):!0}function fo(l,f,x){if(l.push('<!--$?--><template id="'),x===null)throw Error(r(395));return l.push(f.boundaryPrefix),f=x.toString(16),l.push(f),l.push('"></template>')}function $s(l,f){f=f.contribution,f!==0&&(l.push("<!--"),l.push(""+f),l.push("-->"))}function el(l,f,x,E){switch(x.insertionMode){case 0:case 1:case 3:case 2:return l.push('<div hidden id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 4:return l.push('<svg aria-hidden="true" style="display:none" id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 5:return l.push('<math aria-hidden="true" style="display:none" id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 6:return l.push('<table hidden id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 7:return l.push('<table hidden><tbody id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 8:return l.push('<table hidden><tr id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');case 9:return l.push('<table hidden><colgroup id="'),l.push(f.segmentPrefix),f=E.toString(16),l.push(f),l.push('">');default:throw Error(r(397))}}function ou(l,f){switch(f.insertionMode){case 0:case 1:case 3:case 2:return l.push("</div>");case 4:return l.push("</svg>");case 5:return l.push("</math>");case 6:return l.push("</table>");case 7:return l.push("</tbody></table>");case 8:return l.push("</tr></table>");case 9:return l.push("</colgroup></table>");default:throw Error(r(397))}}var li=/[<\u2028\u2029]/g;function bt(l){return JSON.stringify(l).replace(li,function(f){switch(f){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var lt=/[&><\u2028\u2029]/g;function Bt(l){return JSON.stringify(l).replace(lt,function(f){switch(f){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var _a=!1,ui=!0;function Ut(l){var f=l.rules,x=l.hrefs,E=0;if(x.length){for(this.push('<style media="not all" data-precedence="'),this.push(l.precedence),this.push('" data-href="');E<x.length-1;E++)this.push(x[E]),this.push(" ");for(this.push(x[E]),this.push('">'),E=0;E<f.length;E++)this.push(f[E]);ui=this.push("</style>"),_a=!0,f.length=0,x.length=0}}function tl(l){return l.state!==2?_a=!0:!1}function ci(l,f,x){return _a=!1,ui=!0,f.styles.forEach(Ut,l),f.stylesheets.forEach(tl),_a&&(x.stylesToHoist=!0),ui}function or(l){for(var f=0;f<l.length;f++)this.push(l[f]);l.length=0}var Jr=[];function ts(l){_t(Jr,l.props);for(var f=0;f<Jr.length;f++)this.push(Jr[f]);Jr.length=0,l.state=2}function rs(l){var f=0<l.sheets.size;l.sheets.forEach(ts,this),l.sheets.clear();var x=l.rules,E=l.hrefs;if(!f||E.length){if(this.push('<style data-precedence="'),this.push(l.precedence),l=0,E.length){for(this.push('" data-href="');l<E.length-1;l++)this.push(E[l]),this.push(" ");this.push(E[l])}for(this.push('">'),l=0;l<x.length;l++)this.push(x[l]);this.push("</style>"),x.length=0,E.length=0}}function Ve(l){if(l.state===0){l.state=1;var f=l.props;for(_t(Jr,{rel:"preload",as:"style",href:l.props.href,crossOrigin:f.crossOrigin,fetchPriority:f.fetchPriority,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy}),l=0;l<Jr.length;l++)this.push(Jr[l]);Jr.length=0}}function Wt(l){l.sheets.forEach(Ve,this),l.sheets.clear()}function Aa(l,f){l.push("[");var x="[";f.stylesheets.forEach(function(E){if(E.state!==2)if(E.state===3)l.push(x),E=Bt(""+E.props.href),l.push(E),l.push("]"),x=",[";else{l.push(x);var T=E.props["data-precedence"],P=E.props,j=ne(""+E.props.href);j=Bt(j),l.push(j),T=""+T,l.push(","),T=Bt(T),l.push(T);for(var re in P)if(ee.call(P,re)&&(T=P[re],T!=null))switch(re){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:hr(l,re,T)}l.push("]"),x=",[",E.state=3}}),l.push("]")}function hr(l,f,x){var E=f.toLowerCase();switch(typeof x){case"function":case"symbol":return}switch(f){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":E="class",f=""+x;break;case"hidden":if(x===!1)return;f="";break;case"src":case"href":x=ne(x),f=""+x;break;default:if(2<f.length&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N")||!Ae(f))return;f=""+x}l.push(","),E=Bt(E),l.push(E),l.push(","),E=Bt(f),l.push(E)}function rl(){return{styles:new Set,stylesheets:new Set}}function ns(l){var f=At||null;if(f){var x=f.resumableState,E=f.renderState;if(typeof l=="string"&&l){if(!x.dnsResources.hasOwnProperty(l)){x.dnsResources[l]=null,x=E.headers;var T,P;(P=x&&0<x.remainingCapacity)&&(P=(T="<"+(""+l).replace(di,Na)+">; rel=dns-prefetch",0<=(x.remainingCapacity-=T.length+2))),P?(E.resets.dns[l]=null,x.preconnects&&(x.preconnects+=", "),x.preconnects+=T):(T=[],_t(T,{href:l,rel:"dns-prefetch"}),E.preconnects.add(T))}hn(f)}}else on.D(l)}function su(l,f){var x=At||null;if(x){var E=x.resumableState,T=x.renderState;if(typeof l=="string"&&l){var P=f==="use-credentials"?"credentials":typeof f=="string"?"anonymous":"default";if(!E.connectResources[P].hasOwnProperty(l)){E.connectResources[P][l]=null,E=T.headers;var j,re;if(re=E&&0<E.remainingCapacity){if(re="<"+(""+l).replace(di,Na)+">; rel=preconnect",typeof f=="string"){var J=(""+f).replace(Ra,Oa);re+='; crossorigin="'+J+'"'}re=(j=re,0<=(E.remainingCapacity-=j.length+2))}re?(T.resets.connect[P][l]=null,E.preconnects&&(E.preconnects+=", "),E.preconnects+=j):(P=[],_t(P,{rel:"preconnect",href:l,crossOrigin:f}),T.preconnects.add(P))}hn(x)}}else on.C(l,f)}function nl(l,f,x){var E=At||null;if(E){var T=E.resumableState,P=E.renderState;if(f&&l){switch(f){case"image":if(x)var j=x.imageSrcSet,re=x.imageSizes,J=x.fetchPriority;var K=j?j+`
|
|
25
|
+
`+(re||""):l;if(T.imageResources.hasOwnProperty(K))return;T.imageResources[K]=fr,T=P.headers;var de;T&&0<T.remainingCapacity&&typeof j!="string"&&J==="high"&&(de=ln(l,f,x),0<=(T.remainingCapacity-=de.length+2))?(P.resets.image[K]=fr,T.highImagePreloads&&(T.highImagePreloads+=", "),T.highImagePreloads+=de):(T=[],_t(T,ie({rel:"preload",href:j?void 0:l,as:f},x)),J==="high"?P.highImagePreloads.add(T):(P.bulkPreloads.add(T),P.preloads.images.set(K,T)));break;case"style":if(T.styleResources.hasOwnProperty(l))return;j=[],_t(j,ie({rel:"preload",href:l,as:f},x)),T.styleResources[l]=!x||typeof x.crossOrigin!="string"&&typeof x.integrity!="string"?fr:[x.crossOrigin,x.integrity],P.preloads.stylesheets.set(l,j),P.bulkPreloads.add(j);break;case"script":if(T.scriptResources.hasOwnProperty(l))return;j=[],P.preloads.scripts.set(l,j),P.bulkPreloads.add(j),_t(j,ie({rel:"preload",href:l,as:f},x)),T.scriptResources[l]=!x||typeof x.crossOrigin!="string"&&typeof x.integrity!="string"?fr:[x.crossOrigin,x.integrity];break;default:if(T.unknownResources.hasOwnProperty(f)){if(j=T.unknownResources[f],j.hasOwnProperty(l))return}else j={},T.unknownResources[f]=j;if(j[l]=fr,(T=P.headers)&&0<T.remainingCapacity&&f==="font"&&(K=ln(l,f,x),0<=(T.remainingCapacity-=K.length+2)))P.resets.font[l]=fr,T.fontPreloads&&(T.fontPreloads+=", "),T.fontPreloads+=K;else switch(T=[],l=ie({rel:"preload",href:l,as:f},x),_t(T,l),f){case"font":P.fontPreloads.add(T);break;default:P.bulkPreloads.add(T)}}hn(E)}}else on.L(l,f,x)}function al(l,f){var x=At||null;if(x){var E=x.resumableState,T=x.renderState;if(l){var P=f&&typeof f.as=="string"?f.as:"script";switch(P){case"script":if(E.moduleScriptResources.hasOwnProperty(l))return;P=[],E.moduleScriptResources[l]=!f||typeof f.crossOrigin!="string"&&typeof f.integrity!="string"?fr:[f.crossOrigin,f.integrity],T.preloads.moduleScripts.set(l,P);break;default:if(E.moduleUnknownResources.hasOwnProperty(P)){var j=E.unknownResources[P];if(j.hasOwnProperty(l))return}else j={},E.moduleUnknownResources[P]=j;P=[],j[l]=fr}_t(P,ie({rel:"modulepreload",href:l},f)),T.bulkPreloads.add(P),hn(x)}}else on.m(l,f)}function lu(l,f,x){var E=At||null;if(E){var T=E.resumableState,P=E.renderState;if(l){f=f||"default";var j=P.styles.get(f),re=T.styleResources.hasOwnProperty(l)?T.styleResources[l]:void 0;re!==null&&(T.styleResources[l]=null,j||(j={precedence:fe(f),rules:[],hrefs:[],sheets:new Map},P.styles.set(f,j)),f={state:0,props:ie({rel:"stylesheet",href:l,"data-precedence":f},x)},re&&(re.length===2&&sn(f.props,re),(P=P.preloads.stylesheets.get(l))&&0<P.length?P.length=0:f.state=1),j.sheets.set(l,f),hn(E))}}else on.S(l,f,x)}function Pt(l,f){var x=At||null;if(x){var E=x.resumableState,T=x.renderState;if(l){var P=E.scriptResources.hasOwnProperty(l)?E.scriptResources[l]:void 0;P!==null&&(E.scriptResources[l]=null,f=ie({src:l,async:!0},f),P&&(P.length===2&&sn(f,P),l=T.preloads.scripts.get(l))&&(l.length=0),l=[],T.scripts.add(l),Ta(l,f),hn(x))}}else on.X(l,f)}function il(l,f){var x=At||null;if(x){var E=x.resumableState,T=x.renderState;if(l){var P=E.moduleScriptResources.hasOwnProperty(l)?E.moduleScriptResources[l]:void 0;P!==null&&(E.moduleScriptResources[l]=null,f=ie({src:l,type:"module",async:!0},f),P&&(P.length===2&&sn(f,P),l=T.preloads.moduleScripts.get(l))&&(l.length=0),l=[],T.scripts.add(l),Ta(l,f),hn(x))}}else on.M(l,f)}function sn(l,f){l.crossOrigin==null&&(l.crossOrigin=f[0]),l.integrity==null&&(l.integrity=f[1])}function ln(l,f,x){l=(""+l).replace(di,Na),f=(""+f).replace(Ra,Oa),f="<"+l+'>; rel=preload; as="'+f+'"';for(var E in x)ee.call(x,E)&&(l=x[E],typeof l=="string"&&(f+="; "+E.toLowerCase()+'="'+(""+l).replace(Ra,Oa)+'"'));return f}var di=/[<>\r\n]/g;function Na(l){switch(l){case"<":return"%3C";case">":return"%3E";case`
|
|
26
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Ra=/["';,\r\n]/g;function Oa(l){switch(l){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
27
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function An(l){this.styles.add(l)}function ol(l){this.stylesheets.add(l)}function as(l,f){var x=l.idPrefix,E=[],T=l.bootstrapScriptContent,P=l.bootstrapScripts,j=l.bootstrapModules;T!==void 0&&E.push("<script>",(""+T).replace(lo,rr),"<\/script>"),T=x+"P:";var re=x+"S:";x+="B:";var J=Fa(),K=new Set,de=new Set,se=new Set,we=new Map,Ce=new Set,Fe=new Set,Se=new Set,qe={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(P!==void 0)for(var Ke=0;Ke<P.length;Ke++){var Ze=P[Ke],et,xe=void 0,nt=void 0,Le={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};typeof Ze=="string"?Le.href=et=Ze:(Le.href=et=Ze.src,Le.integrity=nt=typeof Ze.integrity=="string"?Ze.integrity:void 0,Le.crossOrigin=xe=typeof Ze=="string"||Ze.crossOrigin==null?void 0:Ze.crossOrigin==="use-credentials"?"use-credentials":""),Ze=l;var Nt=et;Ze.scriptResources[Nt]=null,Ze.moduleScriptResources[Nt]=null,Ze=[],_t(Ze,Le),Ce.add(Ze),E.push('<script src="',fe(et)),typeof nt=="string"&&E.push('" integrity="',fe(nt)),typeof xe=="string"&&E.push('" crossorigin="',fe(xe)),E.push('" async=""><\/script>')}if(j!==void 0)for(P=0;P<j.length;P++)Le=j[P],xe=et=void 0,nt={rel:"modulepreload",fetchPriority:"low",nonce:void 0},typeof Le=="string"?nt.href=Ke=Le:(nt.href=Ke=Le.src,nt.integrity=xe=typeof Le.integrity=="string"?Le.integrity:void 0,nt.crossOrigin=et=typeof Le=="string"||Le.crossOrigin==null?void 0:Le.crossOrigin==="use-credentials"?"use-credentials":""),Le=l,Ze=Ke,Le.scriptResources[Ze]=null,Le.moduleScriptResources[Ze]=null,Le=[],_t(Le,nt),Ce.add(Le),E.push('<script type="module" src="',fe(Ke)),typeof xe=="string"&&E.push('" integrity="',fe(xe)),typeof et=="string"&&E.push('" crossorigin="',fe(et)),E.push('" async=""><\/script>');return{placeholderPrefix:T,segmentPrefix:re,boundaryPrefix:x,startInlineScript:"<script>",preamble:J,externalRuntimeScript:null,bootstrapChunks:E,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:K,fontPreloads:de,highImagePreloads:se,styles:we,bootstrapScripts:Ce,scripts:Fe,bulkPreloads:Se,preloads:qe,stylesToHoist:!1,generateStaticMarkup:f}}function yt(l,f,x,E){return x.generateStaticMarkup?(l.push(fe(f)),!1):(f===""?l=E:(E&&l.push("<!-- -->"),l.push(fe(f)),l=!0),l)}function ho(l,f,x,E){f.generateStaticMarkup||x&&E&&l.push("<!-- -->")}var po=Function.prototype.bind,sl=Symbol.for("react.client.reference");function pt(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===sl?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case i:return"Fragment";case h:return"Profiler";case u:return"StrictMode";case F:return"Suspense";case S:return"SuspenseList";case _:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case a:return"Portal";case b:return(l.displayName||"Context")+".Provider";case p:return(l._context.displayName||"Context")+".Consumer";case D:var f=l.render;return l=l.displayName,l||(l=f.displayName||f.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case R:return f=l.displayName||null,f!==null?f:pt(l.type)||"Memo";case O:f=l._payload,l=l._init;try{return pt(l(f))}catch{}}return null}var Or={},Nn=null;function go(l,f){if(l!==f){l.context._currentValue2=l.parentValue,l=l.parent;var x=f.parent;if(l===null){if(x!==null)throw Error(r(401))}else{if(x===null)throw Error(r(401));go(l,x)}f.context._currentValue2=f.value}}function is(l){l.context._currentValue2=l.parentValue,l=l.parent,l!==null&&is(l)}function ll(l){var f=l.parent;f!==null&&ll(f),l.context._currentValue2=l.value}function ul(l,f){if(l.context._currentValue2=l.parentValue,l=l.parent,l===null)throw Error(r(402));l.depth===f.depth?go(l,f):ul(l,f)}function cl(l,f){var x=f.parent;if(x===null)throw Error(r(402));l.depth===x.depth?go(l,x):cl(l,x),f.context._currentValue2=f.value}function Br(l){var f=Nn;f!==l&&(f===null?ll(l):l===null?is(f):f.depth===l.depth?go(f,l):f.depth>l.depth?ul(f,l):cl(f,l),Nn=l)}var fi={enqueueSetState:function(l,f){l=l._reactInternals,l.queue!==null&&l.queue.push(f)},enqueueReplaceState:function(l,f){l=l._reactInternals,l.replace=!0,l.queue=[f]},enqueueForceUpdate:function(){}},dl={id:1,overflow:""};function hi(l,f,x){var E=l.id;l=l.overflow;var T=32-mo(E)-1;E&=~(1<<T),x+=1;var P=32-mo(f)+T;if(30<P){var j=T-T%5;return P=(E&(1<<j)-1).toString(32),E>>=j,T-=j,{id:1<<32-mo(f)+T|x<<T|E,overflow:P+l}}return{id:1<<P|x<<T|E,overflow:l}}var mo=Math.clz32?Math.clz32:hl,fl=Math.log,os=Math.LN2;function hl(l){return l>>>=0,l===0?32:31-(fl(l)/os|0)|0}var Rn=Error(r(460));function Qn(){}function uu(l,f,x){switch(x=l[x],x===void 0?l.push(f):x!==f&&(f.then(Qn,Qn),f=x),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(Qn,Qn):(l=f,l.status="pending",l.then(function(E){if(f.status==="pending"){var T=f;T.status="fulfilled",T.value=E}},function(E){if(f.status==="pending"){var T=f;T.status="rejected",T.reason=E}})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}throw pi=f,Rn}}var pi=null;function vo(){if(pi===null)throw Error(r(459));var l=pi;return pi=null,l}function cu(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var du=typeof Object.is=="function"?Object.is:cu,Xr=null,$n=null,ss=null,ls=null,bo=null,$e=null,gi=!1,un=!1,mi=0,vi=0,Ba=-1,yo=0,ea=null,cn=null,Pr=0;function dn(){if(Xr===null)throw Error(r(321));return Xr}function bi(){if(0<Pr)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function On(){return $e===null?bo===null?(gi=!1,bo=$e=bi()):(gi=!0,$e=bo):$e.next===null?(gi=!1,$e=$e.next=bi()):(gi=!0,$e=$e.next),$e}function Bn(){var l=ea;return ea=null,l}function yi(){ls=ss=$n=Xr=null,un=!1,bo=null,Pr=0,$e=cn=null}function pl(l,f){return typeof f=="function"?f(l):f}function us(l,f,x){if(Xr=dn(),$e=On(),gi){var E=$e.queue;if(f=E.dispatch,cn!==null&&(x=cn.get(E),x!==void 0)){cn.delete(E),E=$e.memoizedState;do E=l(E,x.action),x=x.next;while(x!==null);return $e.memoizedState=E,[E,f]}return[$e.memoizedState,f]}return l=l===pl?typeof f=="function"?f():f:x!==void 0?x(f):f,$e.memoizedState=l,l=$e.queue={last:null,dispatch:null},l=l.dispatch=gl.bind(null,Xr,l),[$e.memoizedState,l]}function cs(l,f){if(Xr=dn(),$e=On(),f=f===void 0?null:f,$e!==null){var x=$e.memoizedState;if(x!==null&&f!==null){var E=x[1];e:if(E===null)E=!1;else{for(var T=0;T<E.length&&T<f.length;T++)if(!du(f[T],E[T])){E=!1;break e}E=!0}if(E)return x[0]}}return l=l(),$e.memoizedState=[l,f],l}function gl(l,f,x){if(25<=Pr)throw Error(r(301));if(l===Xr)if(un=!0,l={action:x,next:null},cn===null&&(cn=new Map),x=cn.get(f),x===void 0)cn.set(f,l);else{for(f=x;f.next!==null;)f=f.next;f.next=l}}function fu(){throw Error(r(394))}function ds(){throw Error(r(479))}function ml(l,f,x){dn();var E=vi++,T=ss;if(typeof l.$$FORM_ACTION=="function"){var P=null,j=ls;T=T.formState;var re=l.$$IS_SIGNATURE_EQUAL;if(T!==null&&typeof re=="function"){var J=T[1];re.call(l,T[2],T[3])&&(P=x!==void 0?"p"+x:"k"+Y(JSON.stringify([j,null,E]),0),J===P&&(Ba=E,f=T[0]))}var K=l.bind(null,f);return l=function(se){K(se)},typeof K.$$FORM_ACTION=="function"&&(l.$$FORM_ACTION=function(se){se=K.$$FORM_ACTION(se),x!==void 0&&(x+="",se.action=x);var we=se.data;return we&&(P===null&&(P=x!==void 0?"p"+x:"k"+Y(JSON.stringify([j,null,E]),0)),we.append("$ACTION_KEY",P)),se}),[f,l,!1]}var de=l.bind(null,f);return[f,function(se){de(se)},!1]}function vl(l){var f=yo;return yo+=1,ea===null&&(ea=[]),uu(ea,l,f)}function hu(){throw Error(r(393))}function xi(){}var bl={readContext:function(l){return l._currentValue2},use:function(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return vl(l);if(l.$$typeof===b)return l._currentValue2}throw Error(r(438,String(l)))},useContext:function(l){return dn(),l._currentValue2},useMemo:cs,useReducer:us,useRef:function(l){Xr=dn(),$e=On();var f=$e.memoizedState;return f===null?(l={current:l},$e.memoizedState=l):f},useState:function(l){return us(pl,l)},useInsertionEffect:xi,useLayoutEffect:xi,useCallback:function(l,f){return cs(function(){return l},f)},useImperativeHandle:xi,useEffect:xi,useDebugValue:xi,useDeferredValue:function(l,f){return dn(),f!==void 0?f:l},useTransition:function(){return dn(),[!1,fu]},useId:function(){var l=$n.treeContext,f=l.overflow;l=l.id,l=(l&~(1<<32-mo(l)-1)).toString(32)+f;var x=xo;if(x===null)throw Error(r(404));return f=mi++,l="«"+x.idPrefix+"R"+l,0<f&&(l+="H"+f.toString(32)),l+"»"},useSyncExternalStore:function(l,f,x){if(x===void 0)throw Error(r(407));return x()},useOptimistic:function(l){return dn(),[l,ds]},useActionState:ml,useFormState:ml,useHostTransitionStatus:function(){return dn(),rt},useMemoCache:function(l){for(var f=Array(l),x=0;x<l;x++)f[x]=U;return f},useCacheRefresh:function(){return hu}},xo=null,pu={getCacheForType:function(){throw Error(r(248))}},wo,yl;function Pa(l){if(wo===void 0)try{throw Error()}catch(x){var f=x.stack.trim().match(/\n( *(at )?)/);wo=f&&f[1]||"",yl=-1<x.stack.indexOf(`
|
|
28
|
+
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
29
|
+
`+wo+l+yl}var fs=!1;function Do(l,f){if(!l||fs)return"";fs=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var E={DetermineComponentFrameRoot:function(){try{if(f){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Ce){var we=Ce}Reflect.construct(l,[],se)}else{try{se.call()}catch(Ce){we=Ce}l.call(se.prototype)}}else{try{throw Error()}catch(Ce){we=Ce}(se=l())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(Ce){if(Ce&&we&&typeof Ce.stack=="string")return[Ce.stack,we.stack]}return[null,null]}};E.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(E.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(E.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=E.DetermineComponentFrameRoot(),j=P[0],re=P[1];if(j&&re){var J=j.split(`
|
|
30
|
+
`),K=re.split(`
|
|
31
|
+
`);for(T=E=0;E<J.length&&!J[E].includes("DetermineComponentFrameRoot");)E++;for(;T<K.length&&!K[T].includes("DetermineComponentFrameRoot");)T++;if(E===J.length||T===K.length)for(E=J.length-1,T=K.length-1;1<=E&&0<=T&&J[E]!==K[T];)T--;for(;1<=E&&0<=T;E--,T--)if(J[E]!==K[T]){if(E!==1||T!==1)do if(E--,T--,0>T||J[E]!==K[T]){var de=`
|
|
32
|
+
`+J[E].replace(" at new "," at ");return l.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",l.displayName)),de}while(1<=E&&0<=T);break}}}finally{fs=!1,Error.prepareStackTrace=x}return(x=l?l.displayName||l.name:"")?Pa(x):""}function hs(l){if(typeof l=="string")return Pa(l);if(typeof l=="function")return l.prototype&&l.prototype.isReactComponent?Do(l,!0):Do(l,!1);if(typeof l=="object"&&l!==null){switch(l.$$typeof){case D:return Do(l.render,!1);case R:return Do(l.type,!1);case O:var f=l,x=f._payload;f=f._init;try{l=f(x)}catch{return Pa("Lazy")}return hs(l)}if(typeof l.name=="string")return x=l.env,Pa(l.name+(x?" ["+x+"]":""))}switch(l){case S:return Pa("SuspenseList");case F:return Pa("Suspense")}return""}function wi(l){if(typeof l=="object"&&l!==null&&typeof l.environmentName=="string"){var f=l.environmentName;l=[l].slice(0),typeof l[0]=="string"?l.splice(0,1,"[%s] "+l[0]," "+f+" "):l.splice(0,0,"[%s] "," "+f+" "),l.unshift(console),f=po.apply(console.error,l),f()}else console.error(l);return null}function La(){}function gu(l,f,x,E,T,P,j,re,J,K,de){var se=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=l,this.renderState=f,this.rootFormatContext=x,this.progressiveChunkSize=E===void 0?12800:E,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=se,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=T===void 0?wi:T,this.onPostpone=K===void 0?La:K,this.onAllReady=P===void 0?La:P,this.onShellReady=j===void 0?La:j,this.onShellError=re===void 0?La:re,this.onFatalError=J===void 0?La:J,this.formState=de===void 0?null:de}function mu(l,f,x,E,T,P,j,re,J,K,de,se){return f=new gu(f,x,E,T,P,j,re,J,K,de,se),x=fn(f,0,null,E,!1,!1),x.parentFlushed=!0,l=Ci(f,null,l,-1,null,x,null,null,f.abortableTasks,null,E,null,dl,null,!1),Gt(l),f.pingedTasks.push(l),f}var At=null;function Di(l,f){l.pingedTasks.push(f),l.pingedTasks.length===1&&(l.flushScheduled=l.destination!==null,Ia(l))}function ta(l,f,x,E){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:f,errorDigest:null,contentState:rl(),fallbackState:rl(),contentPreamble:x,fallbackPreamble:E,trackedContentKeyPath:null,trackedFallbackNode:null}}function Ci(l,f,x,E,T,P,j,re,J,K,de,se,we,Ce,Fe){l.allPendingTasks++,T===null?l.pendingRootTasks++:T.pendingTasks++;var Se={replay:null,node:x,childIndex:E,ping:function(){return Di(l,Se)},blockedBoundary:T,blockedSegment:P,blockedPreamble:j,hoistableState:re,abortSet:J,keyPath:K,formatContext:de,context:se,treeContext:we,componentStack:Ce,thenableState:f,isFallback:Fe};return J.add(Se),Se}function xl(l,f,x,E,T,P,j,re,J,K,de,se,we,Ce){l.allPendingTasks++,P===null?l.pendingRootTasks++:P.pendingTasks++,x.pendingTasks++;var Fe={replay:x,node:E,childIndex:T,ping:function(){return Di(l,Fe)},blockedBoundary:P,blockedSegment:null,blockedPreamble:null,hoistableState:j,abortSet:re,keyPath:J,formatContext:K,context:de,treeContext:se,componentStack:we,thenableState:f,isFallback:Ce};return re.add(Fe),Fe}function fn(l,f,x,E,T,P){return{status:0,parentFlushed:!1,id:-1,index:f,chunks:[],children:[],preambleChildren:[],parentFormatContext:E,boundary:x,lastPushedText:T,textEmbedded:P}}function Gt(l){var f=l.node;if(typeof f=="object"&&f!==null)switch(f.$$typeof){case n:l.componentStack={parent:l.componentStack,type:f.type}}}function Vt(l){var f={};return l&&Object.defineProperty(f,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var x="",E=l;do x+=hs(E.type),E=E.parent;while(E);var T=x}catch(P){T=`
|
|
53
33
|
Error generating stack: `+P.message+`
|
|
54
|
-
`+P.stack}return Object.defineProperty(u,"componentStack",{value:k}),k}}),u}function po(o,u,h,C,k){o.errorDigest=u,h instanceof Error?(u=String(h.message),h=String(h.stack)):(u=typeof h=="object"&&h!==null?f(h):String(h),h=null),k=k?`Switched to client rendering because the server rendering aborted due to:
|
|
55
|
-
|
|
56
|
-
`:`Switched to client rendering because the server rendering errored:
|
|
57
|
-
|
|
58
|
-
`,o.errorMessage=k+u,o.errorStack=h!==null?k+h:null,o.errorComponentStack=C.componentStack}function $t(o,u,h,C){if(o=o.onError,u=C?C.run(o.bind(null,u,h)):o(u,h),u!=null&&typeof u!="string")console.error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',typeof u);else return u}function jn(o,u,h,C){h=o.onShellError;var k=o.onFatalError;C?(C.run(h.bind(null,u)),C.run(k.bind(null,u))):(h(u),k(u)),o.destination!==null?(o.status=He,o.destination.destroy(u)):(o.status=13,o.fatalError=u)}function Qs(o,u,h,C,k,P){var W=u.thenableState;for(u.thenableState=null,Nr={},ws=u,xs=o,Tl=h,Pn=!1,$a=vr=0,Nn=-1,Ds=0,No=W,o=Rl(C,k,P);Ci;)Ci=!1,$a=vr=0,Nn=-1,Ds=0,Cs+=1,ct=null,o=C(k,P);return Ha(),o}function Ua(o,u,h,C,k,P,W){var G=!1;if(P!==0&&o.formState!==null){var ee=u.blockedSegment;if(ee!==null){G=!0,ee=ee.chunks;for(var X=0;X<P;X++)X===W?ee.push("<!--F!-->"):ee.push("<!--F-->")}}P=u.keyPath,u.keyPath=h,k?(h=u.treeContext,u.treeContext=za(h,1,0),kr(o,u,C,-1),u.treeContext=h):G?kr(o,u,C,-1):er(o,u,C,-1),u.keyPath=P}function go(o,u,h,C,k,P){if(typeof C=="function")if(C.prototype&&C.prototype.isReactComponent){var W=k;if("ref"in k){W={};for(var G in k)G!=="ref"&&(W[G]=k[G])}var ee=C.defaultProps;if(ee){W===k&&(W=At({},W,k));for(var X in ee)W[X]===void 0&&(W[X]=ee[X])}var fe=W,le=Zn,he=C.contextType;if("contextType"in C&&he!==null&&(he===void 0||he.$$typeof!==$i)&&!Sa.has(C)){Sa.add(C);var xe=he===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof he!="object"?" However, it is set to a "+typeof he+".":he.$$typeof===Qi?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(he).join(", ")+"}.";console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ut(C)||"Component",xe)}typeof he=="object"&&he!==null&&(le=he._currentValue2);var oe=new C(fe,le);if(typeof C.getDerivedStateFromProps=="function"&&(oe.state===null||oe.state===void 0)){var $e=ut(C)||"Component";Au.has($e)||(Au.add($e),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",$e,oe.state===null?"null":"undefined",$e))}if(typeof C.getDerivedStateFromProps=="function"||typeof oe.getSnapshotBeforeUpdate=="function"){var qe=null,Le=null,Ue=null;if(typeof oe.componentWillMount=="function"&&oe.componentWillMount.__suppressDeprecationWarning!==!0?qe="componentWillMount":typeof oe.UNSAFE_componentWillMount=="function"&&(qe="UNSAFE_componentWillMount"),typeof oe.componentWillReceiveProps=="function"&&oe.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Le="componentWillReceiveProps":typeof oe.UNSAFE_componentWillReceiveProps=="function"&&(Le="UNSAFE_componentWillReceiveProps"),typeof oe.componentWillUpdate=="function"&&oe.componentWillUpdate.__suppressDeprecationWarning!==!0?Ue="componentWillUpdate":typeof oe.UNSAFE_componentWillUpdate=="function"&&(Ue="UNSAFE_componentWillUpdate"),qe!==null||Le!==null||Ue!==null){var dr=ut(C)||"Component",Re=typeof C.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";_u.has(dr)||(_u.add(dr),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
59
|
-
|
|
60
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
61
|
-
|
|
62
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
63
|
-
https://react.dev/link/unsafe-component-lifecycles`,dr,Re,qe!==null?`
|
|
64
|
-
`+qe:"",Le!==null?`
|
|
65
|
-
`+Le:"",Ue!==null?`
|
|
66
|
-
`+Ue:""))}}var et=ut(C)||"Component";oe.render||(C.prototype&&typeof C.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",et):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",et)),!oe.getInitialState||oe.getInitialState.isReactClassApproved||oe.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",et),oe.getDefaultProps&&!oe.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",et),oe.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",et),C.childContextTypes&&!Sl.has(C)&&(Sl.add(C),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",et)),C.contextTypes&&!Xt.has(C)&&(Xt.add(C),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",et)),typeof oe.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",et),C.prototype&&C.prototype.isPureReactComponent&&typeof oe.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ut(C)||"A pure component"),typeof oe.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",et),typeof oe.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",et),typeof oe.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",et),typeof oe.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",et);var ht=oe.props!==fe;oe.props!==void 0&&ht&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",et),oe.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",et,et),typeof oe.getSnapshotBeforeUpdate!="function"||typeof oe.componentDidUpdate=="function"||Zc.has(C)||(Zc.add(C),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ut(C))),typeof oe.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",et),typeof oe.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",et),typeof C.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",et);var Pr=oe.state;Pr&&(typeof Pr!="object"||Yn(Pr))&&console.error("%s.state: must be set to an object or null",et),typeof oe.getChildContext=="function"&&typeof C.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",et);var rr=oe.state!==void 0?oe.state:null;oe.updater=Ru,oe.props=fe,oe.state=rr;var nr={queue:[],replace:!1};oe._reactInternals=nr;var Lt=C.contextType;if(oe.context=typeof Lt=="object"&&Lt!==null?Lt._currentValue2:Zn,oe.state===fe){var On=ut(C)||"Component";Jc.has(On)||(Jc.add(On),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",On))}var nn=C.getDerivedStateFromProps;if(typeof nn=="function"){var ot=nn(fe,rr);if(ot===void 0){var a=ut(C)||"Component";Fl.has(a)||(Fl.add(a),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))}var s=ot==null?rr:At({},rr,ot);oe.state=s}if(typeof C.getDerivedStateFromProps!="function"&&typeof oe.getSnapshotBeforeUpdate!="function"&&(typeof oe.UNSAFE_componentWillMount=="function"||typeof oe.componentWillMount=="function")){var p=oe.state;if(typeof oe.componentWillMount=="function"){if(oe.componentWillMount.__suppressDeprecationWarning!==!0){var D=ut(C)||"Unknown";Tu[D]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
67
|
-
|
|
68
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
69
|
-
|
|
70
|
-
Please update the following components: %s`,D),Tu[D]=!0)}oe.componentWillMount()}if(typeof oe.UNSAFE_componentWillMount=="function"&&oe.UNSAFE_componentWillMount(),p!==oe.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ut(C)||"Component"),Ru.enqueueReplaceState(oe,oe.state,null)),nr.queue!==null&&0<nr.queue.length){var T=nr.queue,R=nr.replace;if(nr.queue=null,nr.replace=!1,R&&T.length===1)oe.state=T[0];else{for(var M=R?T[0]:oe.state,H=!0,Q=R?1:0;Q<T.length;Q++){var U=T[Q],ie=typeof U=="function"?U.call(oe,M,fe,void 0):U;ie!=null&&(H?(H=!1,M=At({},M,ie)):At(M,ie))}oe.state=M}}else nr.queue=null}var re=d(oe);if(o.status===12)throw null;oe.props!==fe&&(Je||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ut(C)||"a component"),Je=!0);var de=u.keyPath;u.keyPath=h,er(o,u,re,-1),u.keyPath=de}else{if(C.prototype&&typeof C.prototype.render=="function"){var ue=ut(C)||"Unknown";It[ue]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",ue,ue),It[ue]=!0)}var te=Qs(o,u,h,C,k,void 0);if(o.status===12)throw null;var Ze=vr!==0,nt=$a,je=Nn;if(C.contextTypes){var ke=ut(C)||"Unknown";Ft[ke]||(Ft[ke]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",ke))}if(C&&C.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
71
|
-
%s.childContextTypes = ...`,C.displayName||C.name||"Component"),typeof C.getDerivedStateFromProps=="function"){var kt=ut(C)||"Unknown";Se[kt]||(console.error("%s: Function components do not support getDerivedStateFromProps.",kt),Se[kt]=!0)}if(typeof C.contextType=="object"&&C.contextType!==null){var it=ut(C)||"Unknown";tr[it]||(console.error("%s: Function components do not support contextType.",it),tr[it]=!0)}Ua(o,u,h,te,Ze,nt,je)}else if(typeof C=="string"){var Ge=u.blockedSegment;if(Ge===null){var ar=k.children,br=u.formatContext,Rt=u.keyPath;u.formatContext=ge(br,C,k),u.keyPath=h,kr(o,u,ar,-1),u.formatContext=br,u.keyPath=Rt}else{var Mt=be(Ge.chunks,C,k,o.resumableState,o.renderState,u.blockedPreamble,u.hoistableState,u.formatContext,Ge.lastPushedText,u.isFallback);Ge.lastPushedText=!1;var pt=u.formatContext,or=u.keyPath;if(u.keyPath=h,(u.formatContext=ge(pt,C,k)).insertionMode===cl){var ir=ai(o,0,null,u.formatContext,!1,!1);Ge.preambleChildren.push(ir);var Ke=ni(o,null,Mt,-1,u.blockedBoundary,ir,u.blockedPreamble,u.hoistableState,o.abortableTasks,u.keyPath,u.formatContext,u.context,u.treeContext,u.componentStack,u.isFallback,Zn,u.debugTask);Wa(Ke),o.pingedTasks.push(Ke)}else kr(o,u,Mt,-1);u.formatContext=pt,u.keyPath=or;e:{var bt=Ge.chunks,at=o.resumableState;switch(C){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(pt.insertionMode<=ur){at.hasBody=!0;break e}break;case"html":if(pt.insertionMode===pi){at.hasHtml=!0;break e}break;case"head":if(pt.insertionMode<=ur)break e}bt.push(Kt(C))}Ge.lastPushedText=!1}}else{switch(C){case rs:case ol:case wo:case Xa:var fr=u.keyPath;u.keyPath=h,er(o,u,k.children,-1),u.keyPath=fr;return;case il:if(k.mode!=="hidden"){var hr=u.keyPath;u.keyPath=h,er(o,u,k.children,-1),u.keyPath=hr}return;case es:var zt=u.keyPath;u.keyPath=h,er(o,u,k.children,-1),u.keyPath=zt;return;case ns:case gc:throw Error("ReactDOMServer does not yet support scope components.");case xo:e:if(u.replay!==null){var gn=u.keyPath;u.keyPath=h;var Or=k.children;try{kr(o,u,Or,-1)}finally{u.keyPath=gn}}else{var mn=u.keyPath,eo=u.blockedBoundary,vn=u.blockedPreamble,Aa=u.hoistableState,jr=u.blockedSegment,to=k.fallback,pr=k.children,Ht=new Set,wt=u.formatContext.insertionMode<Hr?ma(o,Ht,se(),se()):ma(o,Ht,null,null);o.trackedPostpones!==null&&(wt.trackedContentKeyPath=h);var yr=ai(o,jr.chunks.length,wt,u.formatContext,!1,!1);jr.children.push(yr),jr.lastPushedText=!1;var Gr=ai(o,0,null,u.formatContext,!1,!1);if(Gr.parentFlushed=!0,o.trackedPostpones!==null){var _a=[h[0],"Suspense Fallback",h[2]],Yr=[_a[1],_a[2],[],null];o.trackedPostpones.workingMap.set(_a,Yr),wt.trackedFallbackNode=Yr,u.blockedSegment=yr,u.blockedPreamble=wt.fallbackPreamble,u.keyPath=_a,yr.status=6;try{kr(o,u,to,-1),Gs(yr.chunks,o.renderState,yr.lastPushedText,yr.textEmbedded),yr.status=ce}catch(Br){throw yr.status=o.status===12?3:4,Br}finally{u.blockedSegment=jr,u.blockedPreamble=vn,u.keyPath=mn}var bn=ni(o,null,pr,-1,wt,Gr,wt.contentPreamble,wt.contentState,u.abortSet,h,u.formatContext,u.context,u.treeContext,u.componentStack,u.isFallback,Zn,u.debugTask);Wa(bn),o.pingedTasks.push(bn)}else{u.blockedBoundary=wt,u.blockedPreamble=wt.contentPreamble,u.hoistableState=wt.contentState,u.blockedSegment=Gr,u.keyPath=h,Gr.status=6;try{if(kr(o,u,pr,-1),Gs(Gr.chunks,o.renderState,Gr.lastPushedText,Gr.textEmbedded),Gr.status=ce,vo(wt,Gr),wt.pendingTasks===0&&wt.status===we){wt.status=ce,o.pendingRootTasks===0&&u.blockedPreamble&&li(o);break e}}catch(Br){if(wt.status=ae,o.status===12){Gr.status=3;var Vr=o.fatalError}else Gr.status=4,Vr=Br;var Ti=ba(u.componentStack),Nt=$t(o,Vr,Ti,u.debugTask);po(wt,Nt,Vr,Ti,!1),Ya(o,wt)}finally{u.blockedBoundary=eo,u.blockedPreamble=vn,u.hoistableState=Aa,u.blockedSegment=jr,u.keyPath=mn}var wr=ni(o,null,to,-1,eo,yr,wt.fallbackPreamble,wt.fallbackState,Ht,[h[0],"Suspense Fallback",h[2]],u.formatContext,u.context,u.treeContext,u.componentStack,!0,Zn,u.debugTask);Wa(wr),o.pingedTasks.push(wr)}}return}if(typeof C=="object"&&C!==null)switch(C.$$typeof){case Za:if("ref"in k){var Bn={};for(var In in k)In!=="ref"&&(Bn[In]=k[In])}else Bn=k;var yn=Qs(o,u,h,C.render,Bn,P);Ua(o,u,h,yn,vr!==0,$a,Nn);return;case ts:go(o,u,h,C.type,k,P);return;case pc:case $i:var Ra=k.value,an=k.children,$n=u.context,ea=u.keyPath,ta=C._currentValue2;C._currentValue2=Ra,C._currentRenderer2!==void 0&&C._currentRenderer2!==null&&C._currentRenderer2!==El&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),C._currentRenderer2=El;var ra=Jn,Xr={parent:ra,depth:ra===null?0:ra.depth+1,context:C,parentValue:ta,value:Ra};Jn=Xr,u.context=Xr,u.keyPath=h,er(o,u,an,-1);var wn=Jn;if(wn===null)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");wn.context!==C&&console.error("The parent context is not the expected context. This is probably a bug in React."),wn.context._currentValue2=wn.parentValue,C._currentRenderer2!==void 0&&C._currentRenderer2!==null&&C._currentRenderer2!==El&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),C._currentRenderer2=El;var Ai=Jn=wn.parent;u.context=Ai,u.keyPath=ea,$n!==u.context&&console.error("Popping the context provider did not return back to the original snapshot. This is a bug in React.");return;case Qi:var on=C._context,ro=k.children;typeof ro!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var no=ro(on._currentValue2),As=u.keyPath;u.keyPath=h,er(o,u,no,-1),u.keyPath=As;return;case Do:var Ln=x(C);if(o.status===12)throw null;go(o,u,h,Ln,k,P);return}var _i="";throw(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(_i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((C==null?C:typeof C)+"."+_i))}}function oi(o,u,h,C,k){var P=u.replay,W=u.blockedBoundary,G=ai(o,0,null,u.formatContext,!1,!1);G.id=h,G.parentFlushed=!0;try{u.replay=null,u.blockedSegment=G,kr(o,u,C,k),G.status=ce,W===null?o.completedRootSegment=G:(vo(W,G),W.parentFlushed&&o.partialBoundaries.push(W))}finally{u.replay=P,u.blockedSegment=null}}function ja(o,u,h,C,k,P,W,G,ee,X){P=X.nodes;for(var fe=0;fe<P.length;fe++){var le=P[fe];if(k===le[1]){if(le.length===4){if(C!==null&&C!==le[0])throw Error("Expected the resume to render <"+le[0]+"> in this slot but instead it rendered <"+C+">. The tree doesn't match so React will fallback to client rendering.");var he=le[2];le=le[3],C=u.node,u.replay={nodes:he,slots:le,pendingTasks:1};try{if(go(o,u,h,W,G,ee),u.replay.pendingTasks===1&&0<u.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");u.replay.pendingTasks--}catch(Re){if(typeof Re=="object"&&Re!==null&&(Re===ka||typeof Re.then=="function"))throw u.node===C&&(u.replay=X),Re;u.replay.pendingTasks--,W=ba(u.componentStack),G=o,o=u.blockedBoundary,h=Re,ee=le,le=$t(G,h,W,u.debugTask),ii(G,o,he,ee,h,le,W,!1)}u.replay=X}else{if(W!==xo)throw Error("Expected the resume to render <Suspense> in this slot but instead it rendered <"+(ut(W)||"Unknown")+">. The tree doesn't match so React will fallback to client rendering.");e:{X=void 0,W=le[5],ee=le[2],C=le[3],k=le[4]===null?[]:le[4][2],le=le[4]===null?null:le[4][3];var xe=u.keyPath,oe=u.replay,$e=u.blockedBoundary,qe=u.hoistableState,Le=G.children,Ue=G.fallback,dr=new Set;G=u.formatContext.insertionMode<Hr?ma(o,dr,se(),se()):ma(o,dr,null,null),G.parentFlushed=!0,G.rootSegmentID=W,u.blockedBoundary=G,u.hoistableState=G.contentState,u.keyPath=h,u.replay={nodes:ee,slots:C,pendingTasks:1};try{if(kr(o,u,Le,-1),u.replay.pendingTasks===1&&0<u.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");if(u.replay.pendingTasks--,G.pendingTasks===0&&G.status===we){G.status=ce,o.completedBoundaries.push(G);break e}}catch(Re){G.status=ae,he=ba(u.componentStack),X=$t(o,Re,he,u.debugTask),po(G,X,Re,he,!1),u.replay.pendingTasks--,o.clientRenderedBoundaries.push(G)}finally{u.blockedBoundary=$e,u.hoistableState=qe,u.replay=oe,u.keyPath=xe}G=qs(o,null,{nodes:k,slots:le,pendingTasks:0},Ue,-1,$e,G.fallbackState,dr,[h[0],"Suspense Fallback",h[2]],u.formatContext,u.context,u.treeContext,u.componentStack,!0,Zn,u.debugTask),Wa(G),o.pingedTasks.push(G)}}P.splice(fe,1);break}}}function er(o,u,h,C){u.replay!==null&&typeof u.replay.slots=="number"?oi(o,u,u.replay.slots,h,C):(u.node=h,u.childIndex=C,h=u.componentStack,C=u.debugTask,Wa(u),Ga(o,u),u.componentStack=h,u.debugTask=C)}function Ga(o,u){var h=u.node,C=u.childIndex;if(h!==null){if(typeof h=="object"){switch(h.$$typeof){case yo:var k=h.type,P=h.key;h=h.props;var W=h.ref;W=W!==void 0?W:null;var G=u.debugTask,ee=ut(k);P=P??(C===-1?0:C);var X=[u.keyPath,ee,P];u.replay!==null?G?G.run(ja.bind(null,o,u,X,ee,P,C,k,h,W,u.replay)):ja(o,u,X,ee,P,C,k,h,W,u.replay):G?G.run(go.bind(null,o,u,X,k,h,W)):go(o,u,X,k,h,W);return;case al:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Do:if(h=x(h),o.status===12)throw null;er(o,u,h,C);return}if(Yn(h)){Sr(o,u,h,C);return}if(h===null||typeof h!="object"?P=null:(k=Co&&h[Co]||h["@@iterator"],P=typeof k=="function"?k:null),P&&(k=P.call(h))){if(k===h?(C!==-1||u.componentStack===null||typeof u.componentStack.type!="function"||Object.prototype.toString.call(u.componentStack.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(k)!=="[object Generator]")&&(_t||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),_t=!0):h.entries!==P||St||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),St=!0),h=k.next(),!h.done){P=[];do P.push(h.value),h=k.next();while(!h.done);Sr(o,u,P,C)}return}if(typeof h.then=="function")return u.thenableState=null,er(o,u,Zs(h),C);if(h.$$typeof===$i)return er(o,u,h._currentValue2,C);throw o=Object.prototype.toString.call(h),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}typeof h=="string"?(u=u.blockedSegment,u!==null&&(u.lastPushedText=ql(u.chunks,h,o.renderState,u.lastPushedText))):typeof h=="number"||typeof h=="bigint"?(u=u.blockedSegment,u!==null&&(u.lastPushedText=ql(u.chunks,""+h,o.renderState,u.lastPushedText))):(typeof h=="function"&&(o=h.displayName||h.name||"Component",console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",o,o)),typeof h=="symbol"&&console.error(`Symbols are not valid as a React child.
|
|
72
|
-
%s`,String(h)))}}function Sr(o,u,h,C){var k=u.keyPath,P=u.componentStack,W=u.debugTask;if(Ks(u,u.node._debugInfo),C!==-1&&(u.keyPath=[u.keyPath,"Fragment",C],u.replay!==null)){for(var G=u.replay,ee=G.nodes,X=0;X<ee.length;X++){var fe=ee[X];if(fe[1]===C){C=fe[2],fe=fe[3],u.replay={nodes:C,slots:fe,pendingTasks:1};try{if(Sr(o,u,h,-1),u.replay.pendingTasks===1&&0<u.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");u.replay.pendingTasks--}catch(Le){if(typeof Le=="object"&&Le!==null&&(Le===ka||typeof Le.then=="function"))throw Le;u.replay.pendingTasks--;var le=ba(u.componentStack);h=u.blockedBoundary;var he=Le,xe=fe;fe=$t(o,he,le,u.debugTask),ii(o,h,C,xe,he,fe,le,!1)}u.replay=G,ee.splice(X,1);break}}u.keyPath=k,u.componentStack=P,u.debugTask=W;return}if(G=u.treeContext,ee=h.length,u.replay!==null&&(X=u.replay.slots,X!==null&&typeof X=="object")){for(C=0;C<ee;C++)fe=h[C],u.treeContext=za(G,ee,C),he=X[C],typeof he=="number"?(oi(o,u,he,fe,C),delete X[C]):kr(o,u,fe,C);u.treeContext=G,u.keyPath=k,u.componentStack=P,u.debugTask=W;return}for(X=0;X<ee;X++){if(C=h[X],xe=o,fe=u,he=C,he!==null&&typeof he=="object"&&(he.$$typeof===yo||he.$$typeof===al)&&he._store&&(!he._store.validated&&he.key==null||he._store.validated===2)){if(typeof he._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");if(he._store.validated=1,le=xe.didWarnForKey,le==null&&(le=xe.didWarnForKey=new WeakSet),xe=fe.componentStack,xe!==null&&!le.has(xe)){le.add(xe);var oe=ut(he.type);le=he._owner;var $e=xe.owner;if(xe="",$e&&typeof $e.type<"u"){var qe=ut($e.type);qe&&(xe=`
|
|
73
|
-
|
|
74
|
-
Check the render method of \``+qe+"`.")}xe||oe&&(xe=`
|
|
75
|
-
|
|
76
|
-
Check the top-level render call using <`+oe+">."),oe="",le!=null&&$e!==le&&($e=null,typeof le.type<"u"?$e=ut(le.type):typeof le.name=="string"&&($e=le.name),$e&&(oe=" It was passed a child from "+$e+".")),le=fe.componentStack,fe.componentStack={parent:fe.componentStack,type:he.type,owner:he._owner,stack:he._debugStack},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',xe,oe),fe.componentStack=le}}u.treeContext=za(G,ee,X),kr(o,u,C,X)}u.treeContext=G,u.keyPath=k,u.componentStack=P,u.debugTask=W}function Ya(o,u){o=o.trackedPostpones,o!==null&&(u=u.trackedContentKeyPath,u!==null&&(u=o.workingMap.get(u),u!==void 0&&(u.length=4,u[2]=[],u[3]=null)))}function mo(o,u,h){return qs(o,h,u.replay,u.node,u.childIndex,u.blockedBoundary,u.hoistableState,u.abortSet,u.keyPath,u.formatContext,u.context,u.treeContext,u.componentStack,u.isFallback,Zn,u.debugTask)}function au(o,u,h){var C=u.blockedSegment,k=ai(o,C.chunks.length,null,u.formatContext,C.lastPushedText,!0);return C.children.push(k),C.lastPushedText=!1,ni(o,h,u.node,u.childIndex,u.blockedBoundary,k,u.blockedPreamble,u.hoistableState,u.abortSet,u.keyPath,u.formatContext,u.context,u.treeContext,u.componentStack,u.isFallback,Zn,u.debugTask)}function kr(o,u,h,C){var k=u.formatContext,P=u.context,W=u.keyPath,G=u.treeContext,ee=u.componentStack,X=u.debugTask,fe=u.blockedSegment;if(fe===null)try{return er(o,u,h,C)}catch(xe){if(Ha(),h=xe===ka?Qo():xe,typeof h=="object"&&h!==null){if(typeof h.then=="function"){C=$o(),o=mo(o,u,C).ping,h.then(o,o),u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,u.componentStack=ee,u.debugTask=X,ca(P);return}if(h.message==="Maximum call stack size exceeded"){h=$o(),h=mo(o,u,h),o.pingedTasks.push(h),u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,u.componentStack=ee,u.debugTask=X,ca(P);return}}}else{var le=fe.children.length,he=fe.chunks.length;try{return er(o,u,h,C)}catch(xe){if(Ha(),fe.children.length=le,fe.chunks.length=he,h=xe===ka?Qo():xe,typeof h=="object"&&h!==null){if(typeof h.then=="function"){C=$o(),o=au(o,u,C).ping,h.then(o,o),u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,u.componentStack=ee,u.debugTask=X,ca(P);return}if(h.message==="Maximum call stack size exceeded"){h=$o(),h=au(o,u,h),o.pingedTasks.push(h),u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,u.componentStack=ee,u.debugTask=X,ca(P);return}}}}throw u.formatContext=k,u.context=P,u.keyPath=W,u.treeContext=G,ca(P),h}function ou(o){var u=o.blockedBoundary;o=o.blockedSegment,o!==null&&(o.status=3,$s(this,u,o))}function ii(o,u,h,C,k,P,W,G){for(var ee=0;ee<h.length;ee++){var X=h[ee];if(X.length===4)ii(o,u,X[2],X[3],k,P,W,G);else{var fe=o;X=X[5];var le=k,he=P,xe=W,oe=G,$e=ma(fe,new Set,null,null);$e.parentFlushed=!0,$e.rootSegmentID=X,$e.status=ae,po($e,he,le,xe,oe),$e.parentFlushed&&fe.clientRenderedBoundaries.push($e)}}if(h.length=0,C!==null){if(u===null)throw Error("We should not have any resumable nodes in the shell. This is a bug in React.");if(u.status!==ae&&(u.status=ae,po(u,P,k,W,G),u.parentFlushed&&o.clientRenderedBoundaries.push(u)),typeof C=="object")for(var qe in C)delete C[qe]}}function $r(o,u,h){var C=o.blockedBoundary,k=o.blockedSegment;if(k!==null){if(k.status===6)return;k.status=3}if(k=ba(o.componentStack),C===null){if(u.status!==13&&u.status!==He){if(C=o.replay,C===null){$t(u,h,k,null),jn(u,h,k,null);return}C.pendingTasks--,C.pendingTasks===0&&0<C.nodes.length&&(o=$t(u,h,k,null),ii(u,null,C.nodes,C.slots,h,o,k,!0)),u.pendingRootTasks--,u.pendingRootTasks===0&&Ji(u)}}else C.pendingTasks--,C.status!==ae&&(C.status=ae,o=$t(u,h,k,null),C.status=ae,po(C,o,h,k,!0),Ya(u,C),C.parentFlushed&&u.clientRenderedBoundaries.push(C)),C.fallbackAbortableTasks.forEach(function(P){return $r(P,u,h)}),C.fallbackAbortableTasks.clear();u.allPendingTasks--,u.allPendingTasks===0&&si(u)}function Gn(o,u){try{var h=o.renderState,C=h.onHeaders;if(C){var k=h.headers;if(k){h.headers=null;var P=k.preconnects;if(k.fontPreloads&&(P&&(P+=", "),P+=k.fontPreloads),k.highImagePreloads&&(P&&(P+=", "),P+=k.highImagePreloads),!u){var W=h.styles.values(),G=W.next();e:for(;0<k.remainingCapacity&&!G.done;G=W.next())for(var ee=G.value.sheets.values(),X=ee.next();0<k.remainingCapacity&&!X.done;X=ee.next()){var fe=X.value,le=fe.props,he=le.href,xe=fe.props,oe=Kr(xe.href,"style",{crossOrigin:xe.crossOrigin,integrity:xe.integrity,nonce:xe.nonce,type:xe.type,fetchPriority:xe.fetchPriority,referrerPolicy:xe.referrerPolicy,media:xe.media});if(0<=(k.remainingCapacity-=oe.length+2))h.resets.style[he]=zr,P&&(P+=", "),P+=oe,h.resets.style[he]=typeof le.crossOrigin=="string"||typeof le.integrity=="string"?[le.crossOrigin,le.integrity]:zr;else break e}}C(P?{Link:P}:{})}}}catch($e){$t(o,$e,{},null)}}function Ji(o){o.trackedPostpones===null&&Gn(o,!0),o.trackedPostpones===null&&li(o),o.onShellError=Qt,o=o.onShellReady,o()}function si(o){Gn(o,o.trackedPostpones===null?!0:o.completedRootSegment===null||o.completedRootSegment.status!==We),li(o),o=o.onAllReady,o()}function vo(o,u){if(u.chunks.length===0&&u.children.length===1&&u.children[0].boundary===null&&u.children[0].id===-1){var h=u.children[0];h.id=u.id,h.parentFlushed=!0,h.status===ce&&vo(o,h)}else o.completedSegments.push(u)}function $s(o,u,h){if(u===null){if(h!==null&&h.parentFlushed){if(o.completedRootSegment!==null)throw Error("There can only be one root segment. This is a bug in React.");o.completedRootSegment=h}o.pendingRootTasks--,o.pendingRootTasks===0&&Ji(o)}else u.pendingTasks--,u.status!==ae&&(u.pendingTasks===0?(u.status===we&&(u.status=ce),h!==null&&h.parentFlushed&&h.status===ce&&vo(u,h),u.parentFlushed&&o.completedBoundaries.push(u),u.status===ce&&(u.fallbackAbortableTasks.forEach(ou,o),u.fallbackAbortableTasks.clear(),o.pendingRootTasks===0&&o.trackedPostpones===null&&u.contentPreamble!==null&&li(o))):h!==null&&h.parentFlushed&&h.status===ce&&(vo(u,h),u.completedSegments.length===1&&u.parentFlushed&&o.partialBoundaries.push(u)));o.allPendingTasks--,o.allPendingTasks===0&&si(o)}function en(o){if(o.status!==He&&o.status!==13){var u=Jn,h=Gt.H;Gt.H=Es;var C=Gt.A;Gt.A=Qc;var k=Ne;Ne=o;var P=Gt.getCurrentStack;Gt.getCurrentStack=va;var W=Fs;Fs=o.resumableState;try{var G=o.pingedTasks,ee;for(ee=0;ee<G.length;ee++){var X=o,fe=G[ee],le=fe.blockedSegment;if(le===null){var he=void 0,xe=X;if(X=fe,X.replay.pendingTasks!==0){ca(X.context),he=pn,pn=X;try{if(typeof X.replay.slots=="number"?oi(xe,X,X.replay.slots,X.node,X.childIndex):Ga(xe,X),X.replay.pendingTasks===1&&0<X.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");X.replay.pendingTasks--,X.abortSet.delete(X),$s(xe,X.blockedBoundary,null)}catch(s){Ha();var oe=s===ka?Qo():s;if(typeof oe=="object"&&oe!==null&&typeof oe.then=="function"){var $e=X.ping;oe.then($e,$e),X.thenableState=$o()}else{X.replay.pendingTasks--,X.abortSet.delete(X);var qe=ba(X.componentStack),Le=void 0,Ue=xe,dr=X.blockedBoundary,Re=xe.status===12?xe.fatalError:oe,et=qe,ht=X.replay.nodes,Pr=X.replay.slots;Le=$t(Ue,Re,et,X.debugTask),ii(Ue,dr,ht,Pr,Re,Le,et,!1),xe.pendingRootTasks--,xe.pendingRootTasks===0&&Ji(xe),xe.allPendingTasks--,xe.allPendingTasks===0&&si(xe)}}finally{pn=he}}}else if(xe=he=void 0,Le=fe,Ue=le,Ue.status===we){Ue.status=6,ca(Le.context),xe=pn,pn=Le;var rr=Ue.children.length,nr=Ue.chunks.length;try{Ga(X,Le),Gs(Ue.chunks,X.renderState,Ue.lastPushedText,Ue.textEmbedded),Le.abortSet.delete(Le),Ue.status=ce,$s(X,Le.blockedBoundary,Ue)}catch(s){Ha(),Ue.children.length=rr,Ue.chunks.length=nr;var Lt=s===ka?Qo():X.status===12?X.fatalError:s;if(typeof Lt=="object"&&Lt!==null&&typeof Lt.then=="function"){Ue.status=we,Le.thenableState=$o();var On=Le.ping;Lt.then(On,On)}else{var nn=ba(Le.componentStack);Le.abortSet.delete(Le),Ue.status=4;var ot=Le.blockedBoundary,a=Le.debugTask;he=$t(X,Lt,nn,a),ot===null?jn(X,Lt,nn,a):(ot.pendingTasks--,ot.status!==ae&&(ot.status=ae,po(ot,he,Lt,nn,!1),Ya(X,ot),ot.parentFlushed&&X.clientRenderedBoundaries.push(ot),X.pendingRootTasks===0&&X.trackedPostpones===null&&ot.contentPreamble!==null&&li(X))),X.allPendingTasks--,X.allPendingTasks===0&&si(X)}}finally{pn=xe}}}G.splice(0,ee),o.destination!==null&&bo(o,o.destination)}catch(s){G={},$t(o,s,G,null),jn(o,s,G,null)}finally{Fs=W,Gt.H=h,Gt.A=C,Gt.getCurrentStack=P,h===Es&&ca(u),Ne=k}}}function el(o,u,h){u.preambleChildren.length&&h.push(u.preambleChildren);for(var C=!1,k=0;k<u.children.length;k++)C=tn(o,u.children[k],h)||C;return C}function tn(o,u,h){var C=u.boundary;if(C===null)return el(o,u,h);var k=C.contentPreamble,P=C.fallbackPreamble;if(k===null||P===null)return!1;switch(C.status){case ce:if(la(o.renderState,k),u=C.completedSegments[0],!u)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return el(o,u,h);case We:if(o.trackedPostpones!==null)return!0;case ae:if(u.status===ce)return la(o.renderState,P),el(o,u,h);default:return!0}}function li(o){if(o.completedRootSegment&&o.completedPreambleSegments===null){var u=[],h=tn(o,o.completedRootSegment,u),C=o.renderState.preamble;(h===!1||C.headChunks&&C.bodyChunks)&&(o.completedPreambleSegments=u)}}function ya(o,u,h,C){switch(h.parentFlushed=!0,h.status){case we:h.id=o.nextSegmentId++;case We:return C=h.id,h.lastPushedText=!1,h.textEmbedded=!1,o=o.renderState,u.push(kc),u.push(o.placeholderPrefix),o=C.toString(16),u.push(o),u.push(_d);case ce:h.status=Xe;var k=!0,P=h.chunks,W=0;h=h.children;for(var G=0;G<h.length;G++){for(k=h[G];W<k.index;W++)u.push(P[W]);k=cn(o,u,k,C)}for(;W<P.length-1;W++)u.push(P[W]);return W<P.length&&(k=u.push(P[W])),k;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function cn(o,u,h,C){var k=h.boundary;if(k===null)return ya(o,u,h,C);if(k.parentFlushed=!0,k.status===ae){if(!o.renderState.generateStaticMarkup){var P=k.errorDigest,W=k.errorMessage,G=k.errorStack,ee=k.errorComponentStack;u.push(bu),u.push(Tc),P&&(u.push(ps),P=J(P),u.push(P),u.push(Vt)),W&&(u.push(Ac),W=J(W),u.push(W),u.push(Vt)),G&&(u.push(_c),G=J(G),u.push(G),u.push(Vt)),ee&&(u.push(Rc),ee=J(ee),u.push(ee),u.push(Vt)),u.push(yu)}return ya(o,u,h,C),o.renderState.generateStaticMarkup?u=!0:((o=k.fallbackPreamble)&&Fn(u,o),u=u.push(hs)),u}if(k.status!==ce)return k.status===we&&(k.rootSegmentID=o.nextSegmentId++),0<k.completedSegments.length&&o.partialBoundaries.push(k),Xl(u,o.renderState,k.rootSegmentID),C&&(k=k.fallbackState,k.styles.forEach(lc,C),k.stylesheets.forEach(uc,C)),ya(o,u,h,C),u.push(hs);if(k.byteSize>o.progressiveChunkSize)return k.rootSegmentID=o.nextSegmentId++,o.completedBoundaries.push(k),Xl(u,o.renderState,k.rootSegmentID),ya(o,u,h,C),u.push(hs);if(C&&(h=k.contentState,h.styles.forEach(lc,C),h.stylesheets.forEach(uc,C)),o.renderState.generateStaticMarkup||u.push(Rr),h=k.completedSegments,h.length!==1)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return cn(o,u,h[0],C),o.renderState.generateStaticMarkup?u=!0:((o=k.contentPreamble)&&Fn(u,o),u=u.push(hs)),u}function Va(o,u,h,C){return ac(u,o.renderState,h.parentFormatContext,h.id),cn(o,u,h,C),Ws(u,h.parentFormatContext)}function ui(o,u,h){for(var C=h.completedSegments,k=0;k<C.length;k++)tl(o,u,h,C[k]);C.length=0,qr(u,h.contentState,o.renderState),C=o.resumableState,o=o.renderState,k=h.rootSegmentID,h=h.contentState;var P=o.stylesToHoist;return o.stylesToHoist=!1,u.push(o.startInlineScript),P?(C.instructions&is)===ko?(C.instructions=C.instructions|ss|is,u.push(Ld)):(C.instructions&ss)===ko?(C.instructions|=ss,u.push(Ve)):u.push(zc):(C.instructions&is)===ko?(C.instructions|=is,u.push(Bd)):u.push(Id),C=k.toString(16),u.push(o.boundaryPrefix),u.push(C),u.push(ys),u.push(o.segmentPrefix),u.push(C),P?(u.push(Cu),Sn(u,h)):u.push(bi),h=u.push(Md),Ct(u,o)&&h}function tl(o,u,h,C){if(C.status===Xe)return!0;var k=h.contentState,P=C.id;if(P===-1){if((C.id=h.rootSegmentID)===-1)throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return Va(o,u,C,k)}return P===h.rootSegmentID?Va(o,u,C,k):(Va(o,u,C,k),h=o.resumableState,o=o.renderState,u.push(o.startInlineScript),(h.instructions&hu)===ko?(h.instructions|=hu,u.push(bl)):u.push(Od),u.push(o.segmentPrefix),P=P.toString(16),u.push(P),u.push(yl),u.push(o.placeholderPrefix),u.push(P),u=u.push(Mc),u)}function bo(o,u){try{if(!(0<o.pendingRootTasks)){var h,C=o.completedRootSegment;if(C!==null){if(C.status===We)return;var k=o.completedPreambleSegments;if(k===null)return;var P=o.renderState,W=P.preamble,G=W.htmlChunks,ee=W.headChunks,X;if(G){for(X=0;X<G.length;X++)u.push(G[X]);if(ee)for(X=0;X<ee.length;X++)u.push(ee[X]);else{var fe=Ce("head");u.push(fe),u.push(Ot)}}else if(ee)for(X=0;X<ee.length;X++)u.push(ee[X]);var le=P.charsetChunks;for(X=0;X<le.length;X++)u.push(le[X]);le.length=0,P.preconnects.forEach(Fr,u),P.preconnects.clear();var he=P.viewportChunks;for(X=0;X<he.length;X++)u.push(he[X]);he.length=0,P.fontPreloads.forEach(Fr,u),P.fontPreloads.clear(),P.highImagePreloads.forEach(Fr,u),P.highImagePreloads.clear(),P.styles.forEach(oc,u);var xe=P.importMapChunks;for(X=0;X<xe.length;X++)u.push(xe[X]);xe.length=0,P.bootstrapScripts.forEach(Fr,u),P.scripts.forEach(Fr,u),P.scripts.clear(),P.bulkPreloads.forEach(Fr,u),P.bulkPreloads.clear();var oe=P.hoistableChunks;for(X=0;X<oe.length;X++)u.push(oe[X]);for(P=oe.length=0;P<k.length;P++){var $e=k[P];for(W=0;W<$e.length;W++)cn(o,u,$e[W],null)}var qe=o.renderState.preamble,Le=qe.headChunks;if(qe.htmlChunks||Le){var Ue=Kt("head");u.push(Ue)}var dr=qe.bodyChunks;if(dr)for(k=0;k<dr.length;k++)u.push(dr[k]);cn(o,u,C,null),o.completedRootSegment=null,Ct(u,o.renderState)}var Re=o.renderState;C=0;var et=Re.viewportChunks;for(C=0;C<et.length;C++)u.push(et[C]);et.length=0,Re.preconnects.forEach(Fr,u),Re.preconnects.clear(),Re.fontPreloads.forEach(Fr,u),Re.fontPreloads.clear(),Re.highImagePreloads.forEach(Fr,u),Re.highImagePreloads.clear(),Re.styles.forEach(Cd,u),Re.scripts.forEach(Fr,u),Re.scripts.clear(),Re.bulkPreloads.forEach(Fr,u),Re.bulkPreloads.clear();var ht=Re.hoistableChunks;for(C=0;C<ht.length;C++)u.push(ht[C]);ht.length=0;var Pr=o.clientRenderedBoundaries;for(h=0;h<Pr.length;h++){var rr=Pr[h];Re=u;var nr=o.resumableState,Lt=o.renderState,On=rr.rootSegmentID,nn=rr.errorDigest,ot=rr.errorMessage,a=rr.errorStack,s=rr.errorComponentStack;Re.push(Lt.startInlineScript),(nr.instructions&To)===ko?(nr.instructions|=To,Re.push(zd)):Re.push(Hd),Re.push(Lt.boundaryPrefix);var p=On.toString(16);if(Re.push(p),Re.push(Wd),nn||ot||a||s){Re.push(wl);var D=gt(nn||"");Re.push(D)}if(ot||a||s){Re.push(wl);var T=gt(ot||"");Re.push(T)}if(a||s){Re.push(wl);var R=gt(a||"");Re.push(R)}if(s){Re.push(wl);var M=gt(s);Re.push(M)}var H=Re.push(qa);if(!H){o.destination=null,h++,Pr.splice(0,h);return}}Pr.splice(0,h);var Q=o.completedBoundaries;for(h=0;h<Q.length;h++)if(!ui(o,u,Q[h])){o.destination=null,h++,Q.splice(0,h);return}Q.splice(0,h);var U=o.partialBoundaries;for(h=0;h<U.length;h++){e:{Pr=o,rr=u;var ie=U[h],re=ie.completedSegments;for(H=0;H<re.length;H++)if(!tl(Pr,rr,ie,re[H])){H++,re.splice(0,H);var de=!1;break e}re.splice(0,H),de=qr(rr,ie.contentState,Pr.renderState)}if(!de){o.destination=null,h++,U.splice(0,h);return}}U.splice(0,h);var ue=o.completedBoundaries;for(h=0;h<ue.length;h++)if(!ui(o,u,ue[h])){o.destination=null,h++,ue.splice(0,h);return}ue.splice(0,h)}}finally{o.allPendingTasks===0&&o.pingedTasks.length===0&&o.clientRenderedBoundaries.length===0&&o.completedBoundaries.length===0&&(o.flushScheduled=!1,h=o.resumableState,h.hasBody&&(U=Kt("body"),u.push(U)),h.hasHtml&&(h=Kt("html"),u.push(h)),o.abortableTasks.size!==0&&console.error("There was still abortable task at the root when we closed. This is a bug in React."),o.status=He,u.push(null),o.destination=null)}}function rl(o){o.flushScheduled=o.destination!==null,en(o),o.status===10&&(o.status=11),o.trackedPostpones===null&&Gn(o,o.pendingRootTasks===0)}function wa(o){if(o.flushScheduled===!1&&o.pingedTasks.length===0&&o.destination!==null){o.flushScheduled=!0;var u=o.destination;u?bo(o,u):o.flushScheduled=!1}}function qi(o,u){if(o.status===13)o.status=He,u.destroy(o.fatalError);else if(o.status!==He&&o.destination===null){o.destination=u;try{bo(o,u)}catch(h){u={},$t(o,h,u,null),jn(o,h,u,null)}}}function ci(o,u){(o.status===11||o.status===10)&&(o.status=12);try{var h=o.abortableTasks;if(0<h.size){var C=u===void 0?Error("The render was aborted by the server without a reason."):typeof u=="object"&&u!==null&&typeof u.then=="function"?Error("The render was aborted by the server with a promise."):u;o.fatalError=C,h.forEach(function(k){return $r(k,o,C)}),h.clear()}o.destination!==null&&bo(o,o.destination)}catch(k){u={},$t(o,k,u,null),jn(o,k,u,null)}}function Ki(){}function nl(o,u,h,C){var k=!1,P=null,W="",G=!1;if(u=ve(u?u.identifierPrefix:void 0),o=Sd(o,u,cc(u,h),me(pi,null,0),1/0,Ki,void 0,function(){G=!0},void 0,void 0,void 0),rl(o),ci(o,C),qi(o,{push:function(ee){return ee!==null&&(W+=ee),!0},destroy:function(ee){k=!0,P=ee}}),k&&P!==C)throw P;if(!G)throw Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return W}var iu=L,hc=Ho,yo=Symbol.for("react.transitional.element"),al=Symbol.for("react.portal"),Xa=Symbol.for("react.fragment"),ol=Symbol.for("react.strict_mode"),wo=Symbol.for("react.profiler"),pc=Symbol.for("react.provider"),Qi=Symbol.for("react.consumer"),$i=Symbol.for("react.context"),Za=Symbol.for("react.forward_ref"),xo=Symbol.for("react.suspense"),es=Symbol.for("react.suspense_list"),ts=Symbol.for("react.memo"),Do=Symbol.for("react.lazy"),gc=Symbol.for("react.scope"),il=Symbol.for("react.activity"),rs=Symbol.for("react.legacy_hidden"),sl=Symbol.for("react.memo_cache_sentinel"),ns=Symbol.for("react.view_transition"),Co=Symbol.iterator,Yn=Array.isArray,xa=new WeakMap,mc=new WeakMap,ll=Symbol.for("react.client.reference"),At=Object.assign,st=Object.prototype.hasOwnProperty,kd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),su={},Ja={},lu=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),vc=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),uu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},cu={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Eo={},Td=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),di=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lr=!1,mr={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Mr={},mt=/^on./,lt=/^on[^A-Z]/,Fo=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ul=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fi=/^(?:webkit|moz|o)[A-Z]/,bc=/^-ms-/,So=/-(.)/g,hi=/;\s*$/,Tn={},An={},yc=!1,as=!1,wc=/["'&<>]/,xc=/([A-Z])/g,Tr=/^ms-/,os=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Gt=iu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,du=hc.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fu=Object.freeze({pending:!1,data:null,method:null,action:null}),_n=du.d;du.d={f:_n.f,r:_n.r,D:function(o){var u=Ne||null;if(u){var h=u.resumableState,C=u.renderState;if(typeof o=="string"&&o){if(!h.dnsResources.hasOwnProperty(o)){h.dnsResources[o]=Yt,h=C.headers;var k,P;(P=h&&0<h.remainingCapacity)&&(P=(k="<"+Qr(o)+">; rel=dns-prefetch",0<=(h.remainingCapacity-=k.length+2))),P?(C.resets.dns[o]=Yt,h.preconnects&&(h.preconnects+=", "),h.preconnects+=k):(k=[],De(k,{href:o,rel:"dns-prefetch"}),C.preconnects.add(k))}wa(u)}}else _n.D(o)},C:function(o,u){var h=Ne||null;if(h){var C=h.resumableState,k=h.renderState;if(typeof o=="string"&&o){var P=u==="use-credentials"?"credentials":typeof u=="string"?"anonymous":"default";if(!C.connectResources[P].hasOwnProperty(o)){C.connectResources[P][o]=Yt,C=k.headers;var W,G;if(G=C&&0<C.remainingCapacity){if(G="<"+Qr(o)+">; rel=preconnect",typeof u=="string"){var ee=Jl(u,"crossOrigin");G+='; crossorigin="'+ee+'"'}G=(W=G,0<=(C.remainingCapacity-=W.length+2))}G?(k.resets.connect[P][o]=Yt,C.preconnects&&(C.preconnects+=", "),C.preconnects+=W):(P=[],De(P,{rel:"preconnect",href:o,crossOrigin:u}),k.preconnects.add(P))}wa(h)}}else _n.C(o,u)},L:function(o,u,h){var C=Ne||null;if(C){var k=C.resumableState,P=C.renderState;if(u&&o){switch(u){case"image":if(h)var W=h.imageSrcSet,G=h.imageSizes,ee=h.fetchPriority;var X=W?W+`
|
|
77
|
-
`+(G||""):o;if(k.imageResources.hasOwnProperty(X))return;k.imageResources[X]=zr,k=P.headers;var fe;k&&0<k.remainingCapacity&&typeof W!="string"&&ee==="high"&&(fe=Kr(o,u,h),0<=(k.remainingCapacity-=fe.length+2))?(P.resets.image[X]=zr,k.highImagePreloads&&(k.highImagePreloads+=", "),k.highImagePreloads+=fe):(k=[],De(k,At({rel:"preload",href:W?void 0:o,as:u},h)),ee==="high"?P.highImagePreloads.add(k):(P.bulkPreloads.add(k),P.preloads.images.set(X,k)));break;case"style":if(k.styleResources.hasOwnProperty(o))return;W=[],De(W,At({rel:"preload",href:o,as:u},h)),k.styleResources[o]=!h||typeof h.crossOrigin!="string"&&typeof h.integrity!="string"?zr:[h.crossOrigin,h.integrity],P.preloads.stylesheets.set(o,W),P.bulkPreloads.add(W);break;case"script":if(k.scriptResources.hasOwnProperty(o))return;W=[],P.preloads.scripts.set(o,W),P.bulkPreloads.add(W),De(W,At({rel:"preload",href:o,as:u},h)),k.scriptResources[o]=!h||typeof h.crossOrigin!="string"&&typeof h.integrity!="string"?zr:[h.crossOrigin,h.integrity];break;default:if(k.unknownResources.hasOwnProperty(u)){if(W=k.unknownResources[u],W.hasOwnProperty(o))return}else W={},k.unknownResources[u]=W;if(W[o]=zr,(k=P.headers)&&0<k.remainingCapacity&&u==="font"&&(X=Kr(o,u,h),0<=(k.remainingCapacity-=X.length+2)))P.resets.font[o]=zr,k.fontPreloads&&(k.fontPreloads+=", "),k.fontPreloads+=X;else switch(k=[],o=At({rel:"preload",href:o,as:u},h),De(k,o),u){case"font":P.fontPreloads.add(k);break;default:P.bulkPreloads.add(k)}}wa(C)}}else _n.L(o,u,h)},m:function(o,u){var h=Ne||null;if(h){var C=h.resumableState,k=h.renderState;if(o){var P=u&&typeof u.as=="string"?u.as:"script";switch(P){case"script":if(C.moduleScriptResources.hasOwnProperty(o))return;P=[],C.moduleScriptResources[o]=!u||typeof u.crossOrigin!="string"&&typeof u.integrity!="string"?zr:[u.crossOrigin,u.integrity],k.preloads.moduleScripts.set(o,P);break;default:if(C.moduleUnknownResources.hasOwnProperty(P)){var W=C.unknownResources[P];if(W.hasOwnProperty(o))return}else W={},C.moduleUnknownResources[P]=W;P=[],W[o]=zr}De(P,At({rel:"modulepreload",href:o},u)),k.bulkPreloads.add(P),wa(h)}}else _n.m(o,u)},X:function(o,u){var h=Ne||null;if(h){var C=h.resumableState,k=h.renderState;if(o){var P=C.scriptResources.hasOwnProperty(o)?C.scriptResources[o]:void 0;P!==Yt&&(C.scriptResources[o]=Yt,u=At({src:o,async:!0},u),P&&(P.length===2&&Gi(u,P),o=k.preloads.scripts.get(o))&&(o.length=0),o=[],k.scripts.add(o),Ee(o,u),wa(h))}}else _n.X(o,u)},S:function(o,u,h){var C=Ne||null;if(C){var k=C.resumableState,P=C.renderState;if(o){u=u||"default";var W=P.styles.get(u),G=k.styleResources.hasOwnProperty(o)?k.styleResources[o]:void 0;G!==Yt&&(k.styleResources[o]=Yt,W||(W={precedence:J(u),rules:[],hrefs:[],sheets:new Map},P.styles.set(u,W)),u={state:Dl,props:At({rel:"stylesheet",href:o,"data-precedence":u},h)},G&&(G.length===2&&Gi(u.props,G),(P=P.preloads.stylesheets.get(o))&&0<P.length?P.length=0:u.state=Su),W.sheets.set(o,u),wa(C))}}else _n.S(o,u,h)},M:function(o,u){var h=Ne||null;if(h){var C=h.resumableState,k=h.renderState;if(o){var P=C.moduleScriptResources.hasOwnProperty(o)?C.moduleScriptResources[o]:void 0;P!==Yt&&(C.moduleScriptResources[o]=Yt,u=At({src:o,type:"module",async:!0},u),P&&(P.length===2&&Gi(u,P),o=k.preloads.moduleScripts.get(o))&&(o.length=0),o=[],k.scripts.add(o),Ee(o,u),wa(h))}}else _n.M(o,u)}};var ko=0,hu=1,is=2,To=4,ss=8,Yt=null,zr=[];Object.freeze(zr);var Ad=/(<\/|<)(s)(cript)/gi,Dc={},Cc=0,pi=0,ur=1,Hr=2,cl=3,cr=4,Vn=5,ls=6,gi=7,us=8,Da=9,Et=new Map,Ar=' style="',Ec=":",pu=";",_r=" ",dn='="',Wr='"',dl='=""',gu=J("javascript:throw new Error('React form unexpectedly submitted.')"),Ot=">",Ao="/>",cs=!1,Fc=!1,ds=!1,fl=!1,Ca=!1,mi=!1,Ur=!1,Ea=!1,fn=!1,Me=!1,Xn=!1,hl=`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,mu=/(<\/|<)(s)(tyle)/gi,fs=`
|
|
78
|
-
`,Fa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vu=new Map,Sc=new Map,kc='<template id="',_d='"></template>',Rr="<!--$-->",hn='<!--$?--><template id="',rn='"></template>',bu="<!--$!-->",hs="<!--/$-->",Tc="<template",Vt='"',ps=' data-dgst="',Ac=' data-msg="',_c=' data-stck="',Rc=' data-cstck="',yu="></template>",wu="<!--",Nc="-->",Pc='<div hidden id="',gs='">',xu="</div>",ms='<svg aria-hidden="true" style="display:none" id="',vs='">',pl="</svg>",Oc='<math aria-hidden="true" style="display:none" id="',_o='">',Bc="</math>",Rn='<table hidden id="',vi='">',Ic="</table>",Du='<table hidden><tbody id="',gl='">',bs="</tbody></table>",ml='<table hidden><tr id="',Lc='">',vl="</tr></table>",Rd='<table hidden><colgroup id="',Nd='">',Pd="</colgroup></table>",bl='$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("',Od='$RS("',yl='","',Mc='")<\/script>',Bd='$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("',Id='$RC("',Ld=`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
|
|
34
|
+
`+P.stack}return Object.defineProperty(f,"componentStack",{value:T}),T}}),f}function pr(l,f,x){if(l=l.onError,f=l(f,x),f==null||typeof f=="string")return f}function Ei(l,f){var x=l.onShellError,E=l.onFatalError;x(f),E(f),l.destination!==null?(l.status=14,l.destination.destroy(f)):(l.status=13,l.fatalError=f)}function wl(l,f,x,E,T,P){var j=f.thenableState;for(f.thenableState=null,Xr={},$n=f,ss=l,ls=x,vi=mi=0,Ba=-1,yo=0,ea=j,l=E(T,P);un;)un=!1,vi=mi=0,Ba=-1,yo=0,Pr+=1,$e=null,l=E(T,P);return yi(),l}function ps(l,f,x,E,T,P,j){var re=!1;if(P!==0&&l.formState!==null){var J=f.blockedSegment;if(J!==null){re=!0,J=J.chunks;for(var K=0;K<P;K++)K===j?J.push("<!--F!-->"):J.push("<!--F-->")}}P=f.keyPath,f.keyPath=x,T?(x=f.treeContext,f.treeContext=hi(x,1,0),gr(l,f,E,-1),f.treeContext=x):re?gr(l,f,E,-1):wr(l,f,E,-1),f.keyPath=P}function Co(l,f,x,E,T,P){if(typeof E=="function")if(E.prototype&&E.prototype.isReactComponent){var j=T;if("ref"in T){j={};for(var re in T)re!=="ref"&&(j[re]=T[re])}var J=E.defaultProps;if(J){j===T&&(j=ie({},j,T));for(var K in J)j[K]===void 0&&(j[K]=J[K])}T=j,j=Or,J=E.contextType,typeof J=="object"&&J!==null&&(j=J._currentValue2),j=new E(T,j);var de=j.state!==void 0?j.state:null;if(j.updater=fi,j.props=T,j.state=de,J={queue:[],replace:!1},j._reactInternals=J,P=E.contextType,j.context=typeof P=="object"&&P!==null?P._currentValue2:Or,P=E.getDerivedStateFromProps,typeof P=="function"&&(P=P(T,de),de=P==null?de:ie({},de,P),j.state=de),typeof E.getDerivedStateFromProps!="function"&&typeof j.getSnapshotBeforeUpdate!="function"&&(typeof j.UNSAFE_componentWillMount=="function"||typeof j.componentWillMount=="function"))if(E=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),E!==j.state&&fi.enqueueReplaceState(j,j.state,null),J.queue!==null&&0<J.queue.length)if(E=J.queue,P=J.replace,J.queue=null,J.replace=!1,P&&E.length===1)j.state=E[0];else{for(J=P?E[0]:j.state,de=!0,P=P?1:0;P<E.length;P++)K=E[P],K=typeof K=="function"?K.call(j,J,T,void 0):K,K!=null&&(de?(de=!1,J=ie({},J,K)):ie(J,K));j.state=J}else J.queue=null;if(E=j.render(),l.status===12)throw null;T=f.keyPath,f.keyPath=x,wr(l,f,E,-1),f.keyPath=T}else{if(E=wl(l,f,x,E,T,void 0),l.status===12)throw null;ps(l,f,x,E,mi!==0,vi,Ba)}else if(typeof E=="string")if(j=f.blockedSegment,j===null)j=T.children,J=f.formatContext,de=f.keyPath,f.formatContext=Oe(J,E,T),f.keyPath=x,gr(l,f,j,-1),f.formatContext=J,f.keyPath=de;else{P=ir(j.chunks,E,T,l.resumableState,l.renderState,f.blockedPreamble,f.hoistableState,f.formatContext,j.lastPushedText,f.isFallback),j.lastPushedText=!1,J=f.formatContext,de=f.keyPath,f.keyPath=x,(f.formatContext=Oe(J,E,T)).insertionMode===3?(x=fn(l,0,null,f.formatContext,!1,!1),j.preambleChildren.push(x),x=Ci(l,null,P,-1,f.blockedBoundary,x,f.blockedPreamble,f.hoistableState,l.abortableTasks,f.keyPath,f.formatContext,f.context,f.treeContext,f.componentStack,f.isFallback),Gt(x),l.pingedTasks.push(x)):gr(l,f,P,-1),f.formatContext=J,f.keyPath=de;e:{switch(f=j.chunks,l=l.resumableState,E){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=J.insertionMode){l.hasBody=!0;break e}break;case"html":if(J.insertionMode===0){l.hasHtml=!0;break e}break;case"head":if(1>=J.insertionMode)break e}f.push(Rr(E))}j.lastPushedText=!1}else{switch(E){case M:case u:case h:case i:E=f.keyPath,f.keyPath=x,wr(l,f,T.children,-1),f.keyPath=E;return;case _:T.mode!=="hidden"&&(E=f.keyPath,f.keyPath=x,wr(l,f,T.children,-1),f.keyPath=E);return;case S:E=f.keyPath,f.keyPath=x,wr(l,f,T.children,-1),f.keyPath=E;return;case H:case N:throw Error(r(343));case F:e:if(f.replay!==null){E=f.keyPath,f.keyPath=x,x=T.children;try{gr(l,f,x,-1)}finally{f.keyPath=E}}else{E=f.keyPath;var se=f.blockedBoundary;P=f.blockedPreamble;var we=f.hoistableState;K=f.blockedSegment,re=T.fallback,T=T.children;var Ce=new Set,Fe=2>f.formatContext.insertionMode?ta(l,Ce,Fa(),Fa()):ta(l,Ce,null,null);l.trackedPostpones!==null&&(Fe.trackedContentKeyPath=x);var Se=fn(l,K.chunks.length,Fe,f.formatContext,!1,!1);K.children.push(Se),K.lastPushedText=!1;var qe=fn(l,0,null,f.formatContext,!1,!1);if(qe.parentFlushed=!0,l.trackedPostpones!==null){j=[x[0],"Suspense Fallback",x[2]],J=[j[1],j[2],[],null],l.trackedPostpones.workingMap.set(j,J),Fe.trackedFallbackNode=J,f.blockedSegment=Se,f.blockedPreamble=Fe.fallbackPreamble,f.keyPath=j,Se.status=6;try{gr(l,f,re,-1),ho(Se.chunks,l.renderState,Se.lastPushedText,Se.textEmbedded),Se.status=1}catch(Ke){throw Se.status=l.status===12?3:4,Ke}finally{f.blockedSegment=K,f.blockedPreamble=P,f.keyPath=E}f=Ci(l,null,T,-1,Fe,qe,Fe.contentPreamble,Fe.contentState,f.abortSet,x,f.formatContext,f.context,f.treeContext,f.componentStack,f.isFallback),Gt(f),l.pingedTasks.push(f)}else{f.blockedBoundary=Fe,f.blockedPreamble=Fe.contentPreamble,f.hoistableState=Fe.contentState,f.blockedSegment=qe,f.keyPath=x,qe.status=6;try{if(gr(l,f,T,-1),ho(qe.chunks,l.renderState,qe.lastPushedText,qe.textEmbedded),qe.status=1,Lr(Fe,qe),Fe.pendingTasks===0&&Fe.status===0){Fe.status=1,l.pendingRootTasks===0&&f.blockedPreamble&&Cr(l);break e}}catch(Ke){Fe.status=4,l.status===12?(qe.status=3,j=l.fatalError):(qe.status=4,j=Ke),J=Vt(f.componentStack),de=pr(l,j,J),Fe.errorDigest=de,Fo(l,Fe)}finally{f.blockedBoundary=se,f.blockedPreamble=P,f.hoistableState=we,f.blockedSegment=K,f.keyPath=E}f=Ci(l,null,re,-1,se,Se,Fe.fallbackPreamble,Fe.fallbackState,Ce,[x[0],"Suspense Fallback",x[2]],f.formatContext,f.context,f.treeContext,f.componentStack,!0),Gt(f),l.pingedTasks.push(f)}}return}if(typeof E=="object"&&E!==null)switch(E.$$typeof){case D:if("ref"in T)for(Fe in j={},T)Fe!=="ref"&&(j[Fe]=T[Fe]);else j=T;E=wl(l,f,x,E.render,j,P),ps(l,f,x,E,mi!==0,vi,Ba);return;case R:Co(l,f,x,E.type,T,P);return;case g:case b:if(J=T.children,j=f.keyPath,T=T.value,de=E._currentValue2,E._currentValue2=T,P=Nn,Nn=E={parent:P,depth:P===null?0:P.depth+1,context:E,parentValue:de,value:T},f.context=E,f.keyPath=x,wr(l,f,J,-1),l=Nn,l===null)throw Error(r(403));l.context._currentValue2=l.parentValue,l=Nn=l.parent,f.context=l,f.keyPath=j;return;case p:T=T.children,E=T(E._context._currentValue2),T=f.keyPath,f.keyPath=x,wr(l,f,E,-1),f.keyPath=T;return;case O:if(j=E._init,E=j(E._payload),l.status===12)throw null;Co(l,f,x,E,T,P);return}throw Error(r(130,E==null?E:typeof E,""))}}function gs(l,f,x,E,T){var P=f.replay,j=f.blockedBoundary,re=fn(l,0,null,f.formatContext,!1,!1);re.id=x,re.parentFlushed=!0;try{f.replay=null,f.blockedSegment=re,gr(l,f,E,T),re.status=1,j===null?l.completedRootSegment=re:(Lr(j,re),j.parentFlushed&&l.partialBoundaries.push(j))}finally{f.replay=P,f.blockedSegment=null}}function wr(l,f,x,E){f.replay!==null&&typeof f.replay.slots=="number"?gs(l,f,f.replay.slots,x,E):(f.node=x,f.childIndex=E,x=f.componentStack,Gt(f),Eo(l,f),f.componentStack=x)}function Eo(l,f){var x=f.node,E=f.childIndex;if(x!==null){if(typeof x=="object"){switch(x.$$typeof){case n:var T=x.type,P=x.key,j=x.props;x=j.ref;var re=x!==void 0?x:null,J=pt(T),K=P??(E===-1?0:E);if(P=[f.keyPath,J,K],f.replay!==null)e:{var de=f.replay;for(E=de.nodes,x=0;x<E.length;x++){var se=E[x];if(K===se[1]){if(se.length===4){if(J!==null&&J!==se[0])throw Error(r(490,se[0],J));var we=se[2];J=se[3],K=f.node,f.replay={nodes:we,slots:J,pendingTasks:1};try{if(Co(l,f,P,T,j,re),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(r(488));f.replay.pendingTasks--}catch(xe){if(typeof xe=="object"&&xe!==null&&(xe===Rn||typeof xe.then=="function"))throw f.node===K&&(f.replay=de),xe;f.replay.pendingTasks--,j=Vt(f.componentStack),P=f.blockedBoundary,T=xe,j=pr(l,T,j),Pn(l,P,we,J,T,j)}f.replay=de}else{if(T!==F)throw Error(r(490,"Suspense",pt(T)||"Unknown"));t:{de=void 0,T=se[5],re=se[2],J=se[3],K=se[4]===null?[]:se[4][2],se=se[4]===null?null:se[4][3];var Ce=f.keyPath,Fe=f.replay,Se=f.blockedBoundary,qe=f.hoistableState,Ke=j.children,Ze=j.fallback,et=new Set;j=2>f.formatContext.insertionMode?ta(l,et,Fa(),Fa()):ta(l,et,null,null),j.parentFlushed=!0,j.rootSegmentID=T,f.blockedBoundary=j,f.hoistableState=j.contentState,f.keyPath=P,f.replay={nodes:re,slots:J,pendingTasks:1};try{if(gr(l,f,Ke,-1),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(r(488));if(f.replay.pendingTasks--,j.pendingTasks===0&&j.status===0){j.status=1,l.completedBoundaries.push(j);break t}}catch(xe){j.status=4,we=Vt(f.componentStack),de=pr(l,xe,we),j.errorDigest=de,f.replay.pendingTasks--,l.clientRenderedBoundaries.push(j)}finally{f.blockedBoundary=Se,f.hoistableState=qe,f.replay=Fe,f.keyPath=Ce}f=xl(l,null,{nodes:K,slots:se,pendingTasks:0},Ze,-1,Se,j.fallbackState,et,[P[0],"Suspense Fallback",P[2]],f.formatContext,f.context,f.treeContext,f.componentStack,!0),Gt(f),l.pingedTasks.push(f)}}E.splice(x,1);break e}}}else Co(l,f,P,T,j,re);return;case a:throw Error(r(257));case O:if(we=x._init,x=we(x._payload),l.status===12)throw null;wr(l,f,x,E);return}if(Q(x)){ms(l,f,x,E);return}if(x===null||typeof x!="object"?we=null:(we=q&&x[q]||x["@@iterator"],we=typeof we=="function"?we:null),we&&(we=we.call(x))){if(x=we.next(),!x.done){j=[];do j.push(x.value),x=we.next();while(!x.done);ms(l,f,j,E)}return}if(typeof x.then=="function")return f.thenableState=null,wr(l,f,vl(x),E);if(x.$$typeof===b)return wr(l,f,x._currentValue2,E);throw E=Object.prototype.toString.call(x),Error(r(31,E==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":E))}typeof x=="string"?(E=f.blockedSegment,E!==null&&(E.lastPushedText=yt(E.chunks,x,l.renderState,E.lastPushedText))):(typeof x=="number"||typeof x=="bigint")&&(E=f.blockedSegment,E!==null&&(E.lastPushedText=yt(E.chunks,""+x,l.renderState,E.lastPushedText)))}}function ms(l,f,x,E){var T=f.keyPath;if(E!==-1&&(f.keyPath=[f.keyPath,"Fragment",E],f.replay!==null)){for(var P=f.replay,j=P.nodes,re=0;re<j.length;re++){var J=j[re];if(J[1]===E){E=J[2],J=J[3],f.replay={nodes:E,slots:J,pendingTasks:1};try{if(ms(l,f,x,-1),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(r(488));f.replay.pendingTasks--}catch(se){if(typeof se=="object"&&se!==null&&(se===Rn||typeof se.then=="function"))throw se;f.replay.pendingTasks--,x=Vt(f.componentStack);var K=f.blockedBoundary,de=se;x=pr(l,de,x),Pn(l,K,E,J,de,x)}f.replay=P,j.splice(re,1);break}}f.keyPath=T;return}if(P=f.treeContext,j=x.length,f.replay!==null&&(re=f.replay.slots,re!==null&&typeof re=="object")){for(E=0;E<j;E++)J=x[E],f.treeContext=hi(P,j,E),K=re[E],typeof K=="number"?(gs(l,f,K,J,E),delete re[E]):gr(l,f,J,E);f.treeContext=P,f.keyPath=T;return}for(re=0;re<j;re++)E=x[re],f.treeContext=hi(P,j,re),gr(l,f,E,re);f.treeContext=P,f.keyPath=T}function Fo(l,f){l=l.trackedPostpones,l!==null&&(f=f.trackedContentKeyPath,f!==null&&(f=l.workingMap.get(f),f!==void 0&&(f.length=4,f[2]=[],f[3]=null)))}function vs(l,f,x){return xl(l,x,f.replay,f.node,f.childIndex,f.blockedBoundary,f.hoistableState,f.abortSet,f.keyPath,f.formatContext,f.context,f.treeContext,f.componentStack,f.isFallback)}function So(l,f,x){var E=f.blockedSegment,T=fn(l,E.chunks.length,null,f.formatContext,E.lastPushedText,!0);return E.children.push(T),E.lastPushedText=!1,Ci(l,x,f.node,f.childIndex,f.blockedBoundary,T,f.blockedPreamble,f.hoistableState,f.abortSet,f.keyPath,f.formatContext,f.context,f.treeContext,f.componentStack,f.isFallback)}function gr(l,f,x,E){var T=f.formatContext,P=f.context,j=f.keyPath,re=f.treeContext,J=f.componentStack,K=f.blockedSegment;if(K===null)try{return wr(l,f,x,E)}catch(we){if(yi(),x=we===Rn?vo():we,typeof x=="object"&&x!==null){if(typeof x.then=="function"){E=Bn(),l=vs(l,f,E).ping,x.then(l,l),f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,f.componentStack=J,Br(P);return}if(x.message==="Maximum call stack size exceeded"){x=Bn(),x=vs(l,f,x),l.pingedTasks.push(x),f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,f.componentStack=J,Br(P);return}}}else{var de=K.children.length,se=K.chunks.length;try{return wr(l,f,x,E)}catch(we){if(yi(),K.children.length=de,K.chunks.length=se,x=we===Rn?vo():we,typeof x=="object"&&x!==null){if(typeof x.then=="function"){E=Bn(),l=So(l,f,E).ping,x.then(l,l),f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,f.componentStack=J,Br(P);return}if(x.message==="Maximum call stack size exceeded"){x=Bn(),x=So(l,f,x),l.pingedTasks.push(x),f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,f.componentStack=J,Br(P);return}}}}throw f.formatContext=T,f.context=P,f.keyPath=j,f.treeContext=re,Br(P),x}function Fi(l){var f=l.blockedBoundary;l=l.blockedSegment,l!==null&&(l.status=3,ki(this,f,l))}function Pn(l,f,x,E,T,P){for(var j=0;j<x.length;j++){var re=x[j];if(re.length===4)Pn(l,f,re[2],re[3],T,P);else{re=re[5];var J=l,K=P,de=ta(J,new Set,null,null);de.parentFlushed=!0,de.rootSegmentID=re,de.status=4,de.errorDigest=K,de.parentFlushed&&J.clientRenderedBoundaries.push(de)}}if(x.length=0,E!==null){if(f===null)throw Error(r(487));if(f.status!==4&&(f.status=4,f.errorDigest=P,f.parentFlushed&&l.clientRenderedBoundaries.push(f)),typeof E=="object")for(var se in E)delete E[se]}}function Si(l,f,x){var E=l.blockedBoundary,T=l.blockedSegment;if(T!==null){if(T.status===6)return;T.status=3}if(T=Vt(l.componentStack),E===null){if(f.status!==13&&f.status!==14){if(E=l.replay,E===null){pr(f,x,T),Ei(f,x);return}E.pendingTasks--,E.pendingTasks===0&&0<E.nodes.length&&(l=pr(f,x,T),Pn(f,null,E.nodes,E.slots,x,l)),f.pendingRootTasks--,f.pendingRootTasks===0&&ra(f)}}else E.pendingTasks--,E.status!==4&&(E.status=4,l=pr(f,x,T),E.status=4,E.errorDigest=l,Fo(f,E),E.parentFlushed&&f.clientRenderedBoundaries.push(E)),E.fallbackAbortableTasks.forEach(function(P){return Si(P,f,x)}),E.fallbackAbortableTasks.clear();f.allPendingTasks--,f.allPendingTasks===0&&ko(f)}function bs(l,f){try{var x=l.renderState,E=x.onHeaders;if(E){var T=x.headers;if(T){x.headers=null;var P=T.preconnects;if(T.fontPreloads&&(P&&(P+=", "),P+=T.fontPreloads),T.highImagePreloads&&(P&&(P+=", "),P+=T.highImagePreloads),!f){var j=x.styles.values(),re=j.next();e:for(;0<T.remainingCapacity&&!re.done;re=j.next())for(var J=re.value.sheets.values(),K=J.next();0<T.remainingCapacity&&!K.done;K=J.next()){var de=K.value,se=de.props,we=se.href,Ce=de.props,Fe=ln(Ce.href,"style",{crossOrigin:Ce.crossOrigin,integrity:Ce.integrity,nonce:Ce.nonce,type:Ce.type,fetchPriority:Ce.fetchPriority,referrerPolicy:Ce.referrerPolicy,media:Ce.media});if(0<=(T.remainingCapacity-=Fe.length+2))x.resets.style[we]=fr,P&&(P+=", "),P+=Fe,x.resets.style[we]=typeof se.crossOrigin=="string"||typeof se.integrity=="string"?[se.crossOrigin,se.integrity]:fr;else break e}}E(P?{Link:P}:{})}}}catch(Se){pr(l,Se,{})}}function ra(l){l.trackedPostpones===null&&bs(l,!0),l.trackedPostpones===null&&Cr(l),l.onShellError=La,l=l.onShellReady,l()}function ko(l){bs(l,l.trackedPostpones===null?!0:l.completedRootSegment===null||l.completedRootSegment.status!==5),Cr(l),l=l.onAllReady,l()}function Lr(l,f){if(f.chunks.length===0&&f.children.length===1&&f.children[0].boundary===null&&f.children[0].id===-1){var x=f.children[0];x.id=f.id,x.parentFlushed=!0,x.status===1&&Lr(l,x)}else l.completedSegments.push(f)}function ki(l,f,x){if(f===null){if(x!==null&&x.parentFlushed){if(l.completedRootSegment!==null)throw Error(r(389));l.completedRootSegment=x}l.pendingRootTasks--,l.pendingRootTasks===0&&ra(l)}else f.pendingTasks--,f.status!==4&&(f.pendingTasks===0?(f.status===0&&(f.status=1),x!==null&&x.parentFlushed&&x.status===1&&Lr(f,x),f.parentFlushed&&l.completedBoundaries.push(f),f.status===1&&(f.fallbackAbortableTasks.forEach(Fi,l),f.fallbackAbortableTasks.clear(),l.pendingRootTasks===0&&l.trackedPostpones===null&&f.contentPreamble!==null&&Cr(l))):x!==null&&x.parentFlushed&&x.status===1&&(Lr(f,x),f.completedSegments.length===1&&f.parentFlushed&&l.partialBoundaries.push(f)));l.allPendingTasks--,l.allPendingTasks===0&&ko(l)}function Ia(l){if(l.status!==14&&l.status!==13){var f=Nn,x=_n.H;_n.H=bl;var E=_n.A;_n.A=pu;var T=At;At=l;var P=xo;xo=l.resumableState;try{var j=l.pingedTasks,re;for(re=0;re<j.length;re++){var J=j[re],K=l,de=J.blockedSegment;if(de===null){var se=K;if(J.replay.pendingTasks!==0){Br(J.context);try{if(typeof J.replay.slots=="number"?gs(se,J,J.replay.slots,J.node,J.childIndex):Eo(se,J),J.replay.pendingTasks===1&&0<J.replay.nodes.length)throw Error(r(488));J.replay.pendingTasks--,J.abortSet.delete(J),ki(se,J.blockedBoundary,null)}catch(Rt){yi();var we=Rt===Rn?vo():Rt;if(typeof we=="object"&&we!==null&&typeof we.then=="function"){var Ce=J.ping;we.then(Ce,Ce),J.thenableState=Bn()}else{J.replay.pendingTasks--,J.abortSet.delete(J);var Fe=Vt(J.componentStack);K=void 0;var Se=se,qe=J.blockedBoundary,Ke=se.status===12?se.fatalError:we,Ze=J.replay.nodes,et=J.replay.slots;K=pr(Se,Ke,Fe),Pn(Se,qe,Ze,et,Ke,K),se.pendingRootTasks--,se.pendingRootTasks===0&&ra(se),se.allPendingTasks--,se.allPendingTasks===0&&ko(se)}}finally{}}}else if(se=void 0,Se=de,Se.status===0){Se.status=6,Br(J.context);var xe=Se.children.length,nt=Se.chunks.length;try{Eo(K,J),ho(Se.chunks,K.renderState,Se.lastPushedText,Se.textEmbedded),J.abortSet.delete(J),Se.status=1,ki(K,J.blockedBoundary,Se)}catch(Rt){yi(),Se.children.length=xe,Se.chunks.length=nt;var Le=Rt===Rn?vo():K.status===12?K.fatalError:Rt;if(typeof Le=="object"&&Le!==null&&typeof Le.then=="function"){Se.status=0,J.thenableState=Bn();var Nt=J.ping;Le.then(Nt,Nt)}else{var Lt=Vt(J.componentStack);J.abortSet.delete(J),Se.status=4;var ke=J.blockedBoundary;se=pr(K,Le,Lt),ke===null?Ei(K,Le):(ke.pendingTasks--,ke.status!==4&&(ke.status=4,ke.errorDigest=se,Fo(K,ke),ke.parentFlushed&&K.clientRenderedBoundaries.push(ke),K.pendingRootTasks===0&&K.trackedPostpones===null&&ke.contentPreamble!==null&&Cr(K))),K.allPendingTasks--,K.allPendingTasks===0&&ko(K)}}finally{}}}j.splice(0,re),l.destination!==null&&_i(l,l.destination)}catch(Rt){pr(l,Rt,{}),Ei(l,Rt)}finally{xo=P,_n.H=x,_n.A=E,x===bl&&Br(f),At=T}}}function To(l,f,x){f.preambleChildren.length&&x.push(f.preambleChildren);for(var E=!1,T=0;T<f.children.length;T++)E=Dr(l,f.children[T],x)||E;return E}function Dr(l,f,x){var E=f.boundary;if(E===null)return To(l,f,x);var T=E.contentPreamble,P=E.fallbackPreamble;if(T===null||P===null)return!1;switch(E.status){case 1:if(Yr(l.renderState,T),f=E.completedSegments[0],!f)throw Error(r(391));return To(l,f,x);case 5:if(l.trackedPostpones!==null)return!0;case 4:if(f.status===1)return Yr(l.renderState,P),To(l,f,x);default:return!0}}function Cr(l){if(l.completedRootSegment&&l.completedPreambleSegments===null){var f=[],x=Dr(l,l.completedRootSegment,f),E=l.renderState.preamble;(x===!1||E.headChunks&&E.bodyChunks)&&(l.completedPreambleSegments=f)}}function Zr(l,f,x,E){switch(x.parentFlushed=!0,x.status){case 0:x.id=l.nextSegmentId++;case 5:return E=x.id,x.lastPushedText=!1,x.textEmbedded=!1,l=l.renderState,f.push('<template id="'),f.push(l.placeholderPrefix),l=E.toString(16),f.push(l),f.push('"></template>');case 1:x.status=2;var T=!0,P=x.chunks,j=0;x=x.children;for(var re=0;re<x.length;re++){for(T=x[re];j<T.index;j++)f.push(P[j]);T=qr(l,f,T,E)}for(;j<P.length-1;j++)f.push(P[j]);return j<P.length&&(T=f.push(P[j])),T;default:throw Error(r(390))}}function qr(l,f,x,E){var T=x.boundary;if(T===null)return Zr(l,f,x,E);if(T.parentFlushed=!0,T.status===4){if(!l.renderState.generateStaticMarkup){var P=T.errorDigest;f.push("<!--$!-->"),f.push("<template"),P&&(f.push(' data-dgst="'),P=fe(P),f.push(P),f.push('"')),f.push("></template>")}return Zr(l,f,x,E),l.renderState.generateStaticMarkup?f=!0:((l=T.fallbackPreamble)&&$s(f,l),f=f.push("<!--/$-->")),f}if(T.status!==1)return T.status===0&&(T.rootSegmentID=l.nextSegmentId++),0<T.completedSegments.length&&l.partialBoundaries.push(T),fo(f,l.renderState,T.rootSegmentID),E&&(T=T.fallbackState,T.styles.forEach(An,E),T.stylesheets.forEach(ol,E)),Zr(l,f,x,E),f.push("<!--/$-->");if(T.byteSize>l.progressiveChunkSize)return T.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(T),fo(f,l.renderState,T.rootSegmentID),Zr(l,f,x,E),f.push("<!--/$-->");if(E&&(x=T.contentState,x.styles.forEach(An,E),x.stylesheets.forEach(ol,E)),l.renderState.generateStaticMarkup||f.push("<!--$-->"),x=T.completedSegments,x.length!==1)throw Error(r(391));return qr(l,f,x[0],E),l.renderState.generateStaticMarkup?f=!0:((l=T.contentPreamble)&&$s(f,l),f=f.push("<!--/$-->")),f}function Ti(l,f,x,E){return el(f,l.renderState,x.parentFormatContext,x.id),qr(l,f,x,E),ou(f,x.parentFormatContext)}function na(l,f,x){for(var E=x.completedSegments,T=0;T<E.length;T++)ys(l,f,x,E[T]);E.length=0,ci(f,x.contentState,l.renderState),E=l.resumableState,l=l.renderState,T=x.rootSegmentID,x=x.contentState;var P=l.stylesToHoist;return l.stylesToHoist=!1,f.push(l.startInlineScript),P?(E.instructions&2)===0?(E.instructions|=10,f.push(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
|
|
79
35
|
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
80
36
|
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
81
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("
|
|
37
|
+
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`)):(E.instructions&8)===0?(E.instructions|=8,f.push(`$RM=new Map;
|
|
82
38
|
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
83
39
|
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
84
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("
|
|
40
|
+
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`)):f.push('$RR("'):(E.instructions&2)===0?(E.instructions|=2,f.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("')):f.push('$RC("'),E=T.toString(16),f.push(l.boundaryPrefix),f.push(E),f.push('","'),f.push(l.segmentPrefix),f.push(E),P?(f.push('",'),Aa(f,x)):f.push('"'),x=f.push(")<\/script>"),es(f,l)&&x}function ys(l,f,x,E){if(E.status===2)return!0;var T=x.contentState,P=E.id;if(P===-1){if((E.id=x.rootSegmentID)===-1)throw Error(r(392));return Ti(l,f,E,T)}return P===x.rootSegmentID?Ti(l,f,E,T):(Ti(l,f,E,T),x=l.resumableState,l=l.renderState,f.push(l.startInlineScript),(x.instructions&1)===0?(x.instructions|=1,f.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')):f.push('$RS("'),f.push(l.segmentPrefix),P=P.toString(16),f.push(P),f.push('","'),f.push(l.placeholderPrefix),f.push(P),f=f.push('")<\/script>'),f)}function _i(l,f){try{if(!(0<l.pendingRootTasks)){var x,E=l.completedRootSegment;if(E!==null){if(E.status===5)return;var T=l.completedPreambleSegments;if(T===null)return;var P=l.renderState,j=P.preamble,re=j.htmlChunks,J=j.headChunks,K;if(re){for(K=0;K<re.length;K++)f.push(re[K]);if(J)for(K=0;K<J.length;K++)f.push(J[K]);else{var de=at("head");f.push(de),f.push(">")}}else if(J)for(K=0;K<J.length;K++)f.push(J[K]);var se=P.charsetChunks;for(K=0;K<se.length;K++)f.push(se[K]);se.length=0,P.preconnects.forEach(or,f),P.preconnects.clear();var we=P.viewportChunks;for(K=0;K<we.length;K++)f.push(we[K]);we.length=0,P.fontPreloads.forEach(or,f),P.fontPreloads.clear(),P.highImagePreloads.forEach(or,f),P.highImagePreloads.clear(),P.styles.forEach(rs,f);var Ce=P.importMapChunks;for(K=0;K<Ce.length;K++)f.push(Ce[K]);Ce.length=0,P.bootstrapScripts.forEach(or,f),P.scripts.forEach(or,f),P.scripts.clear(),P.bulkPreloads.forEach(or,f),P.bulkPreloads.clear();var Fe=P.hoistableChunks;for(K=0;K<Fe.length;K++)f.push(Fe[K]);for(P=Fe.length=0;P<T.length;P++){var Se=T[P];for(j=0;j<Se.length;j++)qr(l,f,Se[j],null)}var qe=l.renderState.preamble,Ke=qe.headChunks;if(qe.htmlChunks||Ke){var Ze=Rr("head");f.push(Ze)}var et=qe.bodyChunks;if(et)for(T=0;T<et.length;T++)f.push(et[T]);qr(l,f,E,null),l.completedRootSegment=null,es(f,l.renderState)}var xe=l.renderState;E=0;var nt=xe.viewportChunks;for(E=0;E<nt.length;E++)f.push(nt[E]);nt.length=0,xe.preconnects.forEach(or,f),xe.preconnects.clear(),xe.fontPreloads.forEach(or,f),xe.fontPreloads.clear(),xe.highImagePreloads.forEach(or,f),xe.highImagePreloads.clear(),xe.styles.forEach(Wt,f),xe.scripts.forEach(or,f),xe.scripts.clear(),xe.bulkPreloads.forEach(or,f),xe.bulkPreloads.clear();var Le=xe.hoistableChunks;for(E=0;E<Le.length;E++)f.push(Le[E]);Le.length=0;var Nt=l.clientRenderedBoundaries;for(x=0;x<Nt.length;x++){var Lt=Nt[x];xe=f;var ke=l.resumableState,Rt=l.renderState,Ln=Lt.rootSegmentID,It=Lt.errorDigest;xe.push(Rt.startInlineScript),(ke.instructions&4)===0?(ke.instructions|=4,xe.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')):xe.push('$RX("'),xe.push(Rt.boundaryPrefix);var pn=Ln.toString(16);if(xe.push(pn),xe.push('"'),It){xe.push(",");var Kt=bt(It||"");xe.push(Kt)}var Ct=xe.push(")<\/script>");if(!Ct){l.destination=null,x++,Nt.splice(0,x);return}}Nt.splice(0,x);var Ot=l.completedBoundaries;for(x=0;x<Ot.length;x++)if(!na(l,f,Ot[x])){l.destination=null,x++,Ot.splice(0,x);return}Ot.splice(0,x);var Yt=l.partialBoundaries;for(x=0;x<Yt.length;x++){var Ir=Yt[x];e:{Nt=l,Lt=f;var Jt=Ir.completedSegments;for(Ct=0;Ct<Jt.length;Ct++)if(!ys(Nt,Lt,Ir,Jt[Ct])){Ct++,Jt.splice(0,Ct);var In=!1;break e}Jt.splice(0,Ct),In=ci(Lt,Ir.contentState,Nt.renderState)}if(!In){l.destination=null,x++,Yt.splice(0,x);return}}Yt.splice(0,x);var gn=l.completedBoundaries;for(x=0;x<gn.length;x++)if(!na(l,f,gn[x])){l.destination=null,x++,gn.splice(0,x);return}gn.splice(0,x)}}finally{l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.flushScheduled=!1,x=l.resumableState,x.hasBody&&(Yt=Rr("body"),f.push(Yt)),x.hasHtml&&(x=Rr("html"),f.push(x)),l.status=14,f.push(null),l.destination=null)}}function hn(l){if(l.flushScheduled===!1&&l.pingedTasks.length===0&&l.destination!==null){l.flushScheduled=!0;var f=l.destination;f?_i(l,f):l.flushScheduled=!1}}function Ai(l,f){if(l.status===13)l.status=14,f.destroy(l.fatalError);else if(l.status!==14&&l.destination===null){l.destination=f;try{_i(l,f)}catch(x){pr(l,x,{}),Ei(l,x)}}}function Kr(l,f){(l.status===11||l.status===10)&&(l.status=12);try{var x=l.abortableTasks;if(0<x.size){var E=f===void 0?Error(r(432)):typeof f=="object"&&f!==null&&typeof f.then=="function"?Error(r(530)):f;l.fatalError=E,x.forEach(function(T){return Si(T,l,E)}),x.clear()}l.destination!==null&&_i(l,l.destination)}catch(T){pr(l,T,{}),Ei(l,T)}}function xs(){}function Qr(l,f,x,E){var T=!1,P=null,j="",re=!1;if(f=Vr(f?f.identifierPrefix:void 0),l=mu(l,f,as(f,x),We(0,null,0),1/0,xs,void 0,function(){re=!0},void 0,void 0,void 0),l.flushScheduled=l.destination!==null,Ia(l),l.status===10&&(l.status=11),l.trackedPostpones===null&&bs(l,l.pendingRootTasks===0),Kr(l,E),Ai(l,{push:function(J){return J!==null&&(j+=J),!0},destroy:function(J){T=!0,P=J}}),T&&P!==E)throw P;if(!re)throw Error(r(426));return j}return Ol.renderToStaticMarkup=function(l,f){return Qr(l,f,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Ol.renderToString=function(l,f){return Qr(l,f,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Ol.version="19.1.1",Ol}var Bl={};/**
|
|
85
41
|
* @license React
|
|
86
|
-
* react-dom-server.browser.
|
|
42
|
+
* react-dom-server.browser.production.js
|
|
87
43
|
*
|
|
88
44
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
89
45
|
*
|
|
90
46
|
* This source code is licensed under the MIT license found in the
|
|
91
47
|
* LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/return(function(){function e(a,s,p,D){return""+s+(p==="s"?"\\73 ":"\\53 ")+D}function t(a,s,p,D){return""+s+(p==="s"?"\\u0073":"\\u0053")+D}function r(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(s,p){return p})}function n(a){var s=JSON.stringify(a);return'"'+a+'"'===s?a:s}function i(a){switch(typeof a){case"string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case"object":return Ja(a)?"[...]":a!==null&&a.$$typeof===uu?"client":(a=r(a),a==="Object"?"{...}":a);case"function":return a.$$typeof===uu?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}function c(a){if(typeof a=="string")return a;switch(a){case ns:return"Suspense";case Co:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case sl:return c(a.render);case Yn:return c(a.type);case xa:var s=a._payload;a=a._init;try{return c(a(s))}catch{}}return""}function f(a,s){var p=r(a);if(p!=="Object"&&p!=="Array")return p;var D=-1,T=0;if(Ja(a))if(vc.has(a)){var R=vc.get(a);p="<"+c(R)+">";for(var M=0;M<a.length;M++){var H=a[M];H=typeof H=="string"?H:typeof H=="object"&&H!==null?"{"+f(H)+"}":"{"+i(H)+"}",""+M===s?(D=p.length,T=H.length,p+=H):p=15>H.length&&40>p.length+H.length?p+H:p+"{...}"}p+="</"+c(R)+">"}else{for(p="[",R=0;R<a.length;R++)0<R&&(p+=", "),M=a[R],M=typeof M=="object"&&M!==null?f(M):i(M),""+R===s?(D=p.length,T=M.length,p+=M):p=10>M.length&&40>p.length+M.length?p+M:p+"...";p+="]"}else if(a.$$typeof===Za)p="<"+c(a.type)+"/>";else{if(a.$$typeof===uu)return"client";if(lu.has(a)){for(p=lu.get(a),p="<"+(c(p)||"..."),R=Object.keys(a),M=0;M<R.length;M++){p+=" ",H=R[M],p+=n(H)+"=";var Q=a[H],U=H===s&&typeof Q=="object"&&Q!==null?f(Q):i(Q);typeof Q!="string"&&(U="{"+U+"}"),H===s?(D=p.length,T=U.length,p+=U):p=10>U.length&&40>p.length+U.length?p+U:p+"..."}p+=">"}else{for(p="{",R=Object.keys(a),M=0;M<R.length;M++)0<M&&(p+=", "),H=R[M],p+=n(H)+": ",Q=a[H],Q=typeof Q=="object"&&Q!==null?f(Q):i(Q),H===s?(D=p.length,T=Q.length,p+=Q):p=10>Q.length&&40>p.length+Q.length?p+Q:p+"...";p+="}"}}return s===void 0?p:-1<D&&0<T?(a=" ".repeat(D)+"^".repeat(T),`
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
`+p}function g(a,s){var p=a.length&3,D=a.length-p,T=s;for(s=0;s<D;){var R=a.charCodeAt(s)&255|(a.charCodeAt(++s)&255)<<8|(a.charCodeAt(++s)&255)<<16|(a.charCodeAt(++s)&255)<<24;++s,R=3432918353*(R&65535)+((3432918353*(R>>>16)&65535)<<16)&4294967295,R=R<<15|R>>>17,R=461845907*(R&65535)+((461845907*(R>>>16)&65535)<<16)&4294967295,T^=R,T=T<<13|T>>>19,T=5*(T&65535)+((5*(T>>>16)&65535)<<16)&4294967295,T=(T&65535)+27492+(((T>>>16)+58964&65535)<<16)}switch(R=0,p){case 3:R^=(a.charCodeAt(s+2)&255)<<16;case 2:R^=(a.charCodeAt(s+1)&255)<<8;case 1:R^=a.charCodeAt(s)&255,R=3432918353*(R&65535)+((3432918353*(R>>>16)&65535)<<16)&4294967295,R=R<<15|R>>>17,T^=461845907*(R&65535)+((461845907*(R>>>16)&65535)<<16)&4294967295}return T^=a.length,T^=T>>>16,T=2246822507*(T&65535)+((2246822507*(T>>>16)&65535)<<16)&4294967295,T^=T>>>13,T=3266489909*(T&65535)+((3266489909*(T>>>16)&65535)<<16)&4294967295,(T^T>>>16)>>>0}function b(a){Eo.push(a),cu.port2.postMessage(null)}function m(a){setTimeout(function(){throw a})}function v(a,s){if(s.byteLength!==0)if(2048<s.byteLength)0<mr&&(a.enqueue(new Uint8Array(lr.buffer,0,mr)),lr=new Uint8Array(2048),mr=0),a.enqueue(s);else{var p=lr.length-mr;p<s.byteLength&&(p===0?a.enqueue(lr):(lr.set(s.subarray(0,p),mr),a.enqueue(lr),s=s.subarray(p)),lr=new Uint8Array(2048),mr=0),lr.set(s,mr),mr+=s.byteLength}}function E(a,s){return v(a,s),!0}function A(a){lr&&0<mr&&(a.enqueue(new Uint8Array(lr.buffer,0,mr)),lr=null,mr=0)}function F(a){return Mr.encode(a)}function S(a){return a=Mr.encode(a),2048<a.byteLength&&console.error("precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."),a}function N(a,s){typeof a.error=="function"?a.error(s):a.close()}function O(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function B(a){try{return!1}catch{return!0}}function z(a){return""+a}function Z(a,s){if(B())return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",s,O(a)),z(a)}function V(a,s){if(B())return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",s,O(a)),z(a)}function J(a){if(B())return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",O(a)),z(a)}function $(a){return lt.call(fi,a)?!0:lt.call(ul,a)?!1:Fo.test(a)?fi[a]=!0:(ul[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function K(a,s){hi[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||console.error(a==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),s.onChange||s.readOnly||s.disabled||s.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ve(a,s){if(lt.call(An,s)&&An[s])return!0;if(as.test(s)){if(a="aria-"+s.slice(4).toLowerCase(),a=Tn.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),An[s]=!0;if(s!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,a),An[s]=!0}if(yc.test(s)){if(a=s.toLowerCase(),a=Tn.hasOwnProperty(a)?a:null,a==null)return An[s]=!0,!1;s!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,a),An[s]=!0)}return!0}function se(a,s){var p=[],D;for(D in s)ve(a,D)||p.push(D);s=p.map(function(T){return"`"+T+"`"}).join(", "),p.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",s,a):1<p.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",s,a)}function me(a,s,p,D){if(lt.call(Tr,s)&&Tr[s])return!0;var T=s.toLowerCase();if(T==="onfocusin"||T==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Tr[s]=!0;if(typeof p=="function"&&(a==="form"&&s==="action"||a==="input"&&s==="formAction"||a==="button"&&s==="formAction"))return!0;if(os.test(s))return Gt.test(s)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),Tr[s]=!0;if(du.test(s)||fu.test(s))return!0;if(T==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Tr[s]=!0;if(T==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Tr[s]=!0;if(T==="is"&&p!==null&&p!==void 0&&typeof p!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof p),Tr[s]=!0;if(typeof p=="number"&&isNaN(p))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),Tr[s]=!0;if(xc.hasOwnProperty(T)){if(T=xc[T],T!==s)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",s,T),Tr[s]=!0}else if(s!==T)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,T),Tr[s]=!0;switch(s){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof p){case"boolean":switch(s){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return T=s.toLowerCase().slice(0,5),T==="data-"||T==="aria-"?!0:(p?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',p,s,s,p,s):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',p,s,s,p,s,s,s),Tr[s]=!0)}case"function":case"symbol":return Tr[s]=!0,!1;case"string":if(p==="false"||p==="true"){switch(s){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",p,s,p==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,p),Tr[s]=!0}}return!0}function ge(a,s,p){var D=[],T;for(T in s)me(a,T,s[T])||D.push(T);s=D.map(function(R){return"`"+R+"`"}).join(", "),D.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",s,a):1<D.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",s,a)}function Qe(a){return a.replace(hu,function(s,p){return p.toUpperCase()})}function pe(a){if(typeof a=="boolean"||typeof a=="number"||typeof a=="bigint")return""+a;J(a),a=""+a;var s=Ad.exec(a);if(s){var p="",D,T=0;for(D=s.index;D<a.length;D++){switch(a.charCodeAt(D)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}T!==D&&(p+=a.slice(T,D)),T=D+1,p+=s}a=T!==D?p+a.slice(T,D):p}return a}function Ie(a){return pi.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function tt(a){return J(a),(""+a).replace(Ao,t)}function rt(a,s,p,D,T,R){var M=s===void 0?Ec:S('<script nonce="'+pe(s)+'">'),H=a.idPrefix;p=[];var Q=a.bootstrapScriptContent,U=a.bootstrapScripts,ie=a.bootstrapModules;if(Q!==void 0&&p.push(M,F(tt(Q)),pu),Q=[],D!==void 0&&(Q.push(cs),Q.push(F(tt(JSON.stringify(D)))),Q.push(Fc)),T&&typeof R=="number"&&0>=R&&console.error("React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",R===0?"zero":R),D=T?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof R=="number"?R:2e3)}:null,T={placeholderPrefix:S(H+"P:"),segmentPrefix:S(H+"S:"),boundaryPrefix:S(H+"B:"),startInlineScript:M,preamble:sr(),externalRuntimeScript:null,bootstrapChunks:p,importMapChunks:Q,onHeaders:T,headers:D,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:s,hoistableState:null,stylesToHoist:!1},U!==void 0)for(D=0;D<U.length;D++){R=U[D],Q=H=void 0;var re={rel:"preload",as:"script",fetchPriority:"low",nonce:s};typeof R=="string"?re.href=M=R:(re.href=M=R.src,re.integrity=Q=typeof R.integrity=="string"?R.integrity:void 0,re.crossOrigin=H=typeof R=="string"||R.crossOrigin==null?void 0:R.crossOrigin==="use-credentials"?"use-credentials":""),Gs(a,T,M,re),p.push(_r,F(pe(M))),s&&p.push(Wr,F(pe(s))),typeof Q=="string"&&p.push(dl,F(pe(Q))),typeof H=="string"&&p.push(gu,F(pe(H))),p.push(Ot)}if(ie!==void 0)for(U=0;U<ie.length;U++)D=ie[U],H=M=void 0,Q={rel:"modulepreload",fetchPriority:"low",nonce:s},typeof D=="string"?Q.href=R=D:(Q.href=R=D.src,Q.integrity=H=typeof D.integrity=="string"?D.integrity:void 0,Q.crossOrigin=M=typeof D=="string"||D.crossOrigin==null?void 0:D.crossOrigin==="use-credentials"?"use-credentials":""),Gs(a,T,R,Q),p.push(dn,F(pe(R))),s&&p.push(Wr,F(pe(s))),typeof H=="string"&&p.push(dl,F(pe(H))),typeof M=="string"&&p.push(gu,F(pe(M))),p.push(Ot);return T}function Pt(a,s,p,D,T){return{idPrefix:a===void 0?"":a,nextFormID:0,streamingFormat:0,bootstrapScriptContent:p,bootstrapScripts:D,bootstrapModules:T,instructions:Vn,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function sr(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:fl}}function Pe(a,s,p){return{insertionMode:a,selectedValue:s,tagScope:p}}function j(a){return Pe(a==="http://www.w3.org/2000/svg"?fn:a==="http://www.w3.org/1998/Math/MathML"?Me:Ca,null,0)}function ne(a,s,p){switch(s){case"noscript":return Pe(Ur,null,a.tagScope|1);case"select":return Pe(Ur,p.value!=null?p.value:p.defaultValue,a.tagScope);case"svg":return Pe(fn,null,a.tagScope);case"picture":return Pe(Ur,null,a.tagScope|2);case"math":return Pe(Me,null,a.tagScope);case"foreignObject":return Pe(Ur,null,a.tagScope);case"table":return Pe(Xn,null,a.tagScope);case"thead":case"tbody":case"tfoot":return Pe(hl,null,a.tagScope);case"colgroup":return Pe(fs,null,a.tagScope);case"tr":return Pe(mu,null,a.tagScope);case"head":if(a.insertionMode<Ur)return Pe(Ea,null,a.tagScope);break;case"html":if(a.insertionMode===Ca)return Pe(mi,null,a.tagScope)}return a.insertionMode>=Xn||a.insertionMode<Ur?Pe(Ur,null,a.tagScope):a}function Fe(a,s,p,D){return s===""?D:(D&&a.push(Fa),a.push(F(pe(s))),!0)}function _e(a,s){if(typeof s!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var p=!0,D;for(D in s)if(lt.call(s,D)){var T=s[D];if(T!=null&&typeof T!="boolean"&&T!==""){if(D.indexOf("--")===0){var R=F(pe(D));V(T,D),T=F(pe((""+T).trim()))}else{R=D;var M=T;if(-1<R.indexOf("-")){var H=R;To.hasOwnProperty(H)&&To[H]||(To[H]=!0,console.error("Unsupported style property %s. Did you mean %s?",H,Qe(H.replace(ko,"ms-"))))}else if(_n.test(R))H=R,To.hasOwnProperty(H)&&To[H]||(To[H]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",H,H.charAt(0).toUpperCase()+H.slice(1)));else if(is.test(M)){H=R;var Q=M;ss.hasOwnProperty(Q)&&ss[Q]||(ss[Q]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,H,Q.replace(is,"")))}typeof M=="number"&&(isNaN(M)?Yt||(Yt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",R)):isFinite(M)||zr||(zr=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",R))),R=D,M=vu.get(R),M!==void 0||(M=S(pe(R.replace(Dc,"-$1").toLowerCase().replace(Cc,"-ms-"))),vu.set(R,M)),R=M,typeof T=="number"?T=T===0||bc.has(D)?F(""+T):F(T+"px"):(V(T,D),T=F(pe((""+T).trim())))}p?(p=!1,a.push(Sc,R,kc,T)):a.push(_d,R,kc,T)}}p||a.push(rn)}function De(a,s,p){p&&typeof p!="function"&&typeof p!="symbol"&&a.push(Rr,F(s),bu)}function Ae(a,s,p){typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&a.push(Rr,F(s),hn,F(pe(p)),rn)}function Oe(a,s){this.push(Tc),ze(a),Ae(this,"name",s),Ae(this,"value",a),this.push(ps)}function ze(a){if(typeof a!="string")throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function Ee(a,s){if(typeof s.$$FORM_ACTION=="function"){var p=a.nextFormID++;a=a.idPrefix+p;try{var D=s.$$FORM_ACTION(a);if(D){var T=D.data;T?.forEach(ze)}return D}catch(R){if(typeof R=="object"&&R!==null&&typeof R.then=="function")throw R;console.error(`Failed to serialize an action for progressive enhancement:
|
|
96
|
-
%s`,R)}}return null}function Be(a,s,p,D,T,R,M,H){var Q=null;if(typeof D=="function"){H===null||xu||(xu=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),T===null&&R===null||vs||(vs=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),M===null||ms||(ms=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var U=Ee(s,D);U!==null?(H=U.name,D=U.action||"",T=U.encType,R=U.method,M=U.target,Q=U.data):(a.push(Rr,F("formAction"),hn,hs,rn),M=R=T=D=H=null,la(s,p))}return H!=null&&ye(a,"name",H),D!=null&&ye(a,"formAction",D),T!=null&&ye(a,"formEncType",T),R!=null&&ye(a,"formMethod",R),M!=null&&ye(a,"formTarget",M),Q}function ye(a,s,p){switch(s){case"className":Ae(a,"class",p);break;case"tabIndex":Ae(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Ae(a,s,p);break;case"style":_e(a,p);break;case"src":case"href":if(p===""){console.error(s==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',s,s);break}case"action":case"formAction":if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean")break;Z(p,s),p=Ie(""+p),a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":De(a,s.toLowerCase(),p);break;case"xlinkHref":if(typeof p=="function"||typeof p=="symbol"||typeof p=="boolean")break;Z(p,s),p=Ie(""+p),a.push(Rr,F("xlink:href"),hn,F(pe(p)),rn);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof p!="function"&&typeof p!="symbol"&&a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"inert":p!==""||ds[s]||(ds[s]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",s));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"&&a.push(Rr,F(s),bu);break;case"capture":case"download":p===!0?a.push(Rr,F(s),bu):p!==!1&&typeof p!="function"&&typeof p!="symbol"&&a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"cols":case"rows":case"size":case"span":typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p&&a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"rowSpan":case"start":typeof p=="function"||typeof p=="symbol"||isNaN(p)||a.push(Rr,F(s),hn,F(pe(p)),rn);break;case"xlinkActuate":Ae(a,"xlink:actuate",p);break;case"xlinkArcrole":Ae(a,"xlink:arcrole",p);break;case"xlinkRole":Ae(a,"xlink:role",p);break;case"xlinkShow":Ae(a,"xlink:show",p);break;case"xlinkTitle":Ae(a,"xlink:title",p);break;case"xlinkType":Ae(a,"xlink:type",p);break;case"xmlBase":Ae(a,"xml:base",p);break;case"xmlLang":Ae(a,"xml:lang",p);break;case"xmlSpace":Ae(a,"xml:space",p);break;default:if((!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=So.get(s)||s,$(s))){switch(typeof p){case"function":case"symbol":return;case"boolean":var D=s.toLowerCase().slice(0,5);if(D!=="data-"&&D!=="aria-")return}a.push(Rr,F(s),hn,F(pe(p)),rn)}}}function Ce(a,s,p){if(s!=null){if(p!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");s=s.__html,s!=null&&(J(s),a.push(F(""+s)))}}function be(a,s){var p=a[s];p!=null&&(p=Ja(p),a.multiple&&!p?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!a.multiple&&p&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s))}function Kt(a){var s="";return Qi.Children.forEach(a,function(p){p!=null&&(s+=p,wu||typeof p=="string"||typeof p=="number"||typeof p=="bigint"||(wu=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}function la(a,s){(a.instructions&16)===Vn&&(a.instructions|=16,s.bootstrapChunks.unshift(s.startInlineScript,Oc,pu))}function Ct(a,s){a.push(Ye("link"));for(var p in s)if(lt.call(s,p)){var D=s[p];if(D!=null)switch(p){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ye(a,p,D)}}return a.push(ps),null}function Xl(a){return J(a),(""+a).replace(Rn,e)}function Fn(a,s,p){a.push(Ye(p));for(var D in s)if(lt.call(s,D)){var T=s[D];if(T!=null)switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(p+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ye(a,D,T)}}return a.push(ps),null}function ac(a,s){a.push(Ye("title"));var p=null,D=null,T;for(T in s)if(lt.call(s,T)){var R=s[T];if(R!=null)switch(T){case"children":p=R;break;case"dangerouslySetInnerHTML":D=R;break;default:ye(a,T,R)}}return a.push(Vt),s=Array.isArray(p)?2>p.length?p[0]:null:p,typeof s!="function"&&typeof s!="symbol"&&s!==null&&s!==void 0&&a.push(F(pe(""+s))),Ce(a,D,p),a.push(qr("title")),null}function Ws(a,s){a.push(Ye("script"));var p=null,D=null,T;for(T in s)if(lt.call(s,T)){var R=s[T];if(R!=null)switch(T){case"children":p=R;break;case"dangerouslySetInnerHTML":D=R;break;default:ye(a,T,R)}}return a.push(Vt),p!=null&&typeof p!="string"&&(s=typeof p=="number"?"a number for children":Array.isArray(p)?"an array for children":"something unexpected for children",console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",s)),Ce(a,D,p),typeof p=="string"&&a.push(F(tt(p))),a.push(qr("script")),null}function gt(a,s,p){a.push(Ye(p));var D=p=null,T;for(T in s)if(lt.call(s,T)){var R=s[T];if(R!=null)switch(T){case"children":p=R;break;case"dangerouslySetInnerHTML":D=R;break;default:ye(a,T,R)}}return a.push(Vt),Ce(a,D,p),p}function yt(a,s,p){a.push(Ye(p));var D=p=null,T;for(T in s)if(lt.call(s,T)){var R=s[T];if(R!=null)switch(T){case"children":p=R;break;case"dangerouslySetInnerHTML":D=R;break;default:ye(a,T,R)}}return a.push(Vt),Ce(a,D,p),typeof p=="string"?(a.push(F(pe(p))),null):p}function Ye(a){var s=Du.get(a);if(s===void 0){if(!Ic.test(a))throw Error("Invalid tag: "+a);s=S("<"+a),Du.set(a,s)}return s}function Dd(a,s,p,D,T,R,M,H,Q,U){se(s,p),s!=="input"&&s!=="textarea"&&s!=="select"||p==null||p.value!==null||wc||(wc=!0,s==="select"&&p.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",s):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",s));e:if(s.indexOf("-")===-1)var ie=!1;else switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":ie=!1;break e;default:ie=!0}switch(ie||typeof p.is=="string"||ge(s,p),!p.suppressContentEditableWarning&&p.contentEditable&&p.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),H.insertionMode!==fn&&H.insertionMode!==Me&&s.indexOf("-")===-1&&s.toLowerCase()!==s&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),s){case"div":case"span":case"svg":case"path":break;case"a":a.push(Ye("a"));var re=null,de=null,ue;for(ue in p)if(lt.call(p,ue)){var te=p[ue];if(te!=null)switch(ue){case"children":re=te;break;case"dangerouslySetInnerHTML":de=te;break;case"href":te===""?Ae(a,"href",""):ye(a,ue,te);break;default:ye(a,ue,te)}}if(a.push(Vt),Ce(a,de,re),typeof re=="string"){a.push(F(pe(re)));var Ze=null}else Ze=re;return Ze;case"g":case"p":case"li":break;case"select":K("select",p),be(p,"value"),be(p,"defaultValue"),p.value===void 0||p.defaultValue===void 0||Rc||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Rc=!0),a.push(Ye("select"));var nt=null,je=null,ke;for(ke in p)if(lt.call(p,ke)){var kt=p[ke];if(kt!=null)switch(ke){case"children":nt=kt;break;case"dangerouslySetInnerHTML":je=kt;break;case"defaultValue":case"value":break;default:ye(a,ke,kt)}}return a.push(Vt),Ce(a,je,nt),nt;case"option":var it=H.selectedValue;a.push(Ye("option"));var Ge=null,ar=null,br=null,Rt=null,Mt;for(Mt in p)if(lt.call(p,Mt)){var pt=p[Mt];if(pt!=null)switch(Mt){case"children":Ge=pt;break;case"selected":br=pt,Pc||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pc=!0);break;case"dangerouslySetInnerHTML":Rt=pt;break;case"value":ar=pt;default:ye(a,Mt,pt)}}if(it!=null){if(ar!==null){Z(ar,"value");var or=""+ar}else Rt===null||Nc||(Nc=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),or=Kt(Ge);if(Ja(it)){for(var ir=0;ir<it.length;ir++)if(Z(it[ir],"value"),""+it[ir]===or){a.push(pl);break}}else Z(it,"select.value"),""+it===or&&a.push(pl)}else br&&a.push(pl);return a.push(Vt),Ce(a,Rt,Ge),Ge;case"textarea":K("textarea",p),p.value===void 0||p.defaultValue===void 0||yu||(console.error("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"),yu=!0),a.push(Ye("textarea"));var Ke=null,bt=null,at=null,fr;for(fr in p)if(lt.call(p,fr)){var hr=p[fr];if(hr!=null)switch(fr){case"children":at=hr;break;case"value":Ke=hr;break;case"defaultValue":bt=hr;break;case"dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ye(a,fr,hr)}}if(Ke===null&&bt!==null&&(Ke=bt),a.push(Vt),at!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),Ke!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ja(at)){if(1<at.length)throw Error("<textarea> can only have at most one child.");J(at[0]),Ke=""+at[0]}J(at),Ke=""+at}return typeof Ke=="string"&&Ke[0]===`
|
|
97
|
-
`&&a.push(vi),Ke!==null&&(Z(Ke,"value"),a.push(F(pe(""+Ke)))),null;case"input":K("input",p),a.push(Ye("input"));var zt=null,gn=null,Or=null,mn=null,eo=null,vn=null,Aa=null,jr=null,to=null,pr;for(pr in p)if(lt.call(p,pr)){var Ht=p[pr];if(Ht!=null)switch(pr){case"children":case"dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"name":zt=Ht;break;case"formAction":gn=Ht;break;case"formEncType":Or=Ht;break;case"formMethod":mn=Ht;break;case"formTarget":eo=Ht;break;case"defaultChecked":to=Ht;break;case"defaultValue":Aa=Ht;break;case"checked":jr=Ht;break;case"value":vn=Ht;break;default:ye(a,pr,Ht)}}gn===null||p.type==="image"||p.type==="submit"||gs||(gs=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".'));var wt=Be(a,D,T,gn,Or,mn,eo,zt);return jr===null||to===null||_c||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",p.type),_c=!0),vn===null||Aa===null||Ac||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",p.type),Ac=!0),jr!==null?De(a,"checked",jr):to!==null&&De(a,"checked",to),vn!==null?ye(a,"value",vn):Aa!==null&&ye(a,"value",Aa),a.push(ps),wt?.forEach(Oe,a),null;case"button":a.push(Ye("button"));var yr=null,Gr=null,_a=null,Yr=null,bn=null,Vr=null,Ti=null,Nt;for(Nt in p)if(lt.call(p,Nt)){var wr=p[Nt];if(wr!=null)switch(Nt){case"children":yr=wr;break;case"dangerouslySetInnerHTML":Gr=wr;break;case"name":_a=wr;break;case"formAction":Yr=wr;break;case"formEncType":bn=wr;break;case"formMethod":Vr=wr;break;case"formTarget":Ti=wr;break;default:ye(a,Nt,wr)}}Yr===null||p.type==null||p.type==="submit"||gs||(gs=!0,console.error('A button can only specify a formAction along with type="submit" or no type.'));var Bn=Be(a,D,T,Yr,bn,Vr,Ti,_a);if(a.push(Vt),Bn?.forEach(Oe,a),Ce(a,Gr,yr),typeof yr=="string"){a.push(F(pe(yr)));var In=null}else In=yr;return In;case"form":a.push(Ye("form"));var yn=null,Ra=null,an=null,$n=null,ea=null,ta=null,ra;for(ra in p)if(lt.call(p,ra)){var Xr=p[ra];if(Xr!=null)switch(ra){case"children":yn=Xr;break;case"dangerouslySetInnerHTML":Ra=Xr;break;case"action":an=Xr;break;case"encType":$n=Xr;break;case"method":ea=Xr;break;case"target":ta=Xr;break;default:ye(a,ra,Xr)}}var wn=null,Ai=null;if(typeof an=="function"){$n===null&&ea===null||vs||(vs=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),ta===null||ms||(ms=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."));var on=Ee(D,an);on!==null?(an=on.action||"",$n=on.encType,ea=on.method,ta=on.target,wn=on.data,Ai=on.name):(a.push(Rr,F("action"),hn,hs,rn),ta=ea=$n=an=null,la(D,T))}if(an!=null&&ye(a,"action",an),$n!=null&&ye(a,"encType",$n),ea!=null&&ye(a,"method",ea),ta!=null&&ye(a,"target",ta),a.push(Vt),Ai!==null&&(a.push(Tc),Ae(a,"name",Ai),a.push(ps),wn?.forEach(Oe,a)),Ce(a,Ra,yn),typeof yn=="string"){a.push(F(pe(yn)));var ro=null}else ro=yn;return ro;case"menuitem":a.push(Ye("menuitem"));for(var no in p)if(lt.call(p,no)){var As=p[no];if(As!=null)switch(no){case"children":case"dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ye(a,no,As)}}return a.push(Vt),null;case"object":a.push(Ye("object"));var Ln=null,_i=null,Br;for(Br in p)if(lt.call(p,Br)){var xn=p[Br];if(xn!=null)switch(Br){case"children":Ln=xn;break;case"dangerouslySetInnerHTML":_i=xn;break;case"data":Z(xn,"data");var xt=Ie(""+xn);if(xt===""){console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Br,Br);break}a.push(Rr,F("data"),hn,F(pe(xt)),rn);break;default:ye(a,Br,xn)}}if(a.push(Vt),Ce(a,_i,Ln),typeof Ln=="string"){a.push(F(pe(Ln)));var Zt=null}else Zt=Ln;return Zt;case"title":var xr=H.insertionMode,_s=!!(H.tagScope&1);if(lt.call(p,"children")){var Dn=p.children,na=Array.isArray(Dn)?2>Dn.length?Dn[0]:null:Dn;Array.isArray(Dn)&&1<Dn.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",Dn.length):typeof na=="function"||typeof na=="symbol"?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof na=="function"?"a Function":"a Sybmol"):na&&na.toString==={}.toString&&(na.$$typeof!=null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."))}if(xr===fn||_s||p.itemProp!=null)var Na=ac(a,p);else U?Na=null:(ac(T.hoistableChunks,p),Na=void 0);return Na;case"link":var Nl=p.rel,Wt=p.href,Po=p.precedence;if(H.insertionMode===fn||H.tagScope&1||p.itemProp!=null||typeof Nl!="string"||typeof Wt!="string"||Wt===""){Nl==="stylesheet"&&typeof p.precedence=="string"&&(typeof Wt=="string"&&Wt||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',Wt===null?"`null`":Wt===void 0?"`undefined`":Wt===""?"an empty string":'something with type "'+typeof Wt+'"')),Ct(a,p);var ao=null}else if(p.rel==="stylesheet")if(typeof Po!="string"||p.disabled!=null||p.onLoad||p.onError){if(typeof Po=="string"){if(p.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(p.onLoad||p.onError){var Pa=p.onLoad&&p.onError?"`onLoad` and `onError` props":p.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',Pa,Pa)}}ao=Ct(a,p)}else{var Oo=T.styles.get(Po),oo=D.styleResources.hasOwnProperty(Wt)?D.styleResources[Wt]:void 0;if(oo!==Et){D.styleResources[Wt]=Et,Oo||(Oo={precedence:F(pe(Po)),rules:[],hrefs:[],sheets:new Map},T.styles.set(Po,Oo));var Ri={state:Nr,props:mt({},p,{"data-precedence":p.precedence,precedence:null})};if(oo){oo.length===2&&ut(Ri.props,oo);var Bo=T.preloads.stylesheets.get(Wt);Bo&&0<Bo.length?Bo.length=0:Ri.state=ws}Oo.sheets.set(Wt,Ri),M&&M.stylesheets.add(Ri)}else if(Oo){var Lu=Oo.sheets.get(Wt);Lu&&M&&M.stylesheets.add(Lu)}Q&&a.push(Fa),ao=null}else p.onLoad||p.onError?ao=Ct(a,p):(Q&&a.push(Fa),ao=U?null:Ct(T.hoistableChunks,p));return ao;case"script":var Io=p.async;if(typeof p.src!="string"||!p.src||!Io||typeof Io=="function"||typeof Io=="symbol"||p.onLoad||p.onError||H.insertionMode===fn||H.tagScope&1||p.itemProp!=null)var io=Ws(a,p);else{var Oa=p.src;if(p.type==="module")var Mn=D.moduleScriptResources,Ba=T.preloads.moduleScripts;else Mn=D.scriptResources,Ba=T.preloads.scripts;var Jt=Mn.hasOwnProperty(Oa)?Mn[Oa]:void 0;if(Jt!==Et){Mn[Oa]=Et;var Ut=p;if(Jt){Jt.length===2&&(Ut=mt({},p),ut(Ut,Jt));var Mu=Ba.get(Oa);Mu&&(Mu.length=0)}var Lo=[];T.scripts.add(Lo),Ws(Lo,Ut)}Q&&a.push(Fa),io=null}return io;case"style":var zu=H.insertionMode,so=!!(H.tagScope&1);if(lt.call(p,"children")){var lo=p.children,Pl=Array.isArray(lo)?2>lo.length?lo[0]:null:lo;(typeof Pl=="function"||typeof Pl=="symbol"||Array.isArray(Pl))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof Pl=="function"?"a Function":typeof Pl=="symbol"?"a Sybmol":"an Array")}var uo=p.precedence,aa=p.href;if(zu===fn||so||p.itemProp!=null||typeof uo!="string"||typeof aa!="string"||aa===""){a.push(Ye("style"));var Ni=null,Jd=null,Rs;for(Rs in p)if(lt.call(p,Rs)){var Hu=p[Rs];if(Hu!=null)switch(Rs){case"children":Ni=Hu;break;case"dangerouslySetInnerHTML":Jd=Hu;break;default:ye(a,Rs,Hu)}}a.push(Vt);var Ns=Array.isArray(Ni)?2>Ni.length?Ni[0]:null:Ni;typeof Ns!="function"&&typeof Ns!="symbol"&&Ns!==null&&Ns!==void 0&&a.push(F(Xl(Ns))),Ce(a,Jd,Ni),a.push(qr("style"));var qd=null}else{aa.includes(" ")&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',aa);var Mo=T.styles.get(uo),Kd=D.styleResources.hasOwnProperty(aa)?D.styleResources[aa]:void 0;if(Kd!==Et){D.styleResources[aa]=Et,Kd&&console.error('React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',aa),Mo?Mo.hrefs.push(F(pe(aa))):(Mo={precedence:F(pe(uo)),rules:[],hrefs:[F(pe(aa))],sheets:new Map},T.styles.set(uo,Mo));var Ps=Mo.rules,Zr=null,Qd=null,Jf;for(Jf in p)if(lt.call(p,Jf)){var im=p[Jf];if(im!=null)switch(Jf){case"children":Zr=im;break;case"dangerouslySetInnerHTML":Qd=im}}var $d=Array.isArray(Zr)?2>Zr.length?Zr[0]:null:Zr;typeof $d!="function"&&typeof $d!="symbol"&&$d!==null&&$d!==void 0&&Ps.push(F(Xl($d))),Ce(Ps,Qd,Zr)}Mo&&M&&M.styles.add(Mo),Q&&a.push(Fa),qd=void 0}return qd;case"meta":if(H.insertionMode===fn||H.tagScope&1||p.itemProp!=null)var dw=Fn(a,p,"meta");else Q&&a.push(Fa),dw=U?null:typeof p.charSet=="string"?Fn(T.charsetChunks,p,"meta"):p.name==="viewport"?Fn(T.viewportChunks,p,"meta"):Fn(T.hoistableChunks,p,"meta");return dw;case"listing":case"pre":a.push(Ye(s));var ef=null,tf=null,rf;for(rf in p)if(lt.call(p,rf)){var qf=p[rf];if(qf!=null)switch(rf){case"children":ef=qf;break;case"dangerouslySetInnerHTML":tf=qf;break;default:ye(a,rf,qf)}}if(a.push(Vt),tf!=null){if(ef!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof tf!="object"||!("__html"in tf))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var Ol=tf.__html;Ol!=null&&(typeof Ol=="string"&&0<Ol.length&&Ol[0]===`
|
|
98
|
-
`?a.push(vi,F(Ol)):(J(Ol),a.push(F(""+Ol))))}return typeof ef=="string"&&ef[0]===`
|
|
99
|
-
`&&a.push(vi),ef;case"img":var Cn=p.src,sn=p.srcSet;if(!(p.loading==="lazy"||!Cn&&!sn||typeof Cn!="string"&&Cn!=null||typeof sn!="string"&&sn!=null)&&p.fetchPriority!=="low"&&!(H.tagScope&3)&&(typeof Cn!="string"||Cn[4]!==":"||Cn[0]!=="d"&&Cn[0]!=="D"||Cn[1]!=="a"&&Cn[1]!=="A"||Cn[2]!=="t"&&Cn[2]!=="T"||Cn[3]!=="a"&&Cn[3]!=="A")&&(typeof sn!="string"||sn[4]!==":"||sn[0]!=="d"&&sn[0]!=="D"||sn[1]!=="a"&&sn[1]!=="A"||sn[2]!=="t"&&sn[2]!=="T"||sn[3]!=="a"&&sn[3]!=="A")){var fw=typeof p.sizes=="string"?p.sizes:void 0,ed=sn?sn+`
|
|
100
|
-
`+(fw||""):Cn,sm=T.preloads.images,Wu=sm.get(ed);if(Wu)(p.fetchPriority==="high"||10>T.highImagePreloads.size)&&(sm.delete(ed),T.highImagePreloads.add(Wu));else if(!D.imageResources.hasOwnProperty(ed)){D.imageResources[ed]=Ar;var lm=p.crossOrigin,hw=typeof lm=="string"?lm==="use-credentials"?lm:"":void 0,Uu=T.headers,um;Uu&&0<Uu.remainingCapacity&&typeof p.srcSet!="string"&&(p.fetchPriority==="high"||500>Uu.highImagePreloads.length)&&(um=Wn(Cn,"image",{imageSrcSet:p.srcSet,imageSizes:p.sizes,crossOrigin:hw,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.refererPolicy}),0<=(Uu.remainingCapacity-=um.length+2))?(T.resets.image[ed]=Ar,Uu.highImagePreloads&&(Uu.highImagePreloads+=", "),Uu.highImagePreloads+=um):(Wu=[],Ct(Wu,{rel:"preload",as:"image",href:sn?void 0:Cn,imageSrcSet:sn,imageSizes:fw,crossOrigin:hw,integrity:p.integrity,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy}),p.fetchPriority==="high"||10>T.highImagePreloads.size?T.highImagePreloads.add(Wu):(T.bulkPreloads.add(Wu),sm.set(ed,Wu)))}}return Fn(a,p,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return Fn(a,p,s);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(H.insertionMode<Ur){var cm=R||T.preamble;if(cm.headChunks)throw Error("The `<head>` tag may only be rendered once.");cm.headChunks=[];var pw=gt(cm.headChunks,p,"head")}else pw=yt(a,p,"head");return pw;case"body":if(H.insertionMode<Ur){var dm=R||T.preamble;if(dm.bodyChunks)throw Error("The `<body>` tag may only be rendered once.");dm.bodyChunks=[];var gw=gt(dm.bodyChunks,p,"body")}else gw=yt(a,p,"body");return gw;case"html":if(H.insertionMode===Ca){var fm=R||T.preamble;if(fm.htmlChunks)throw Error("The `<html>` tag may only be rendered once.");fm.htmlChunks=[gl];var mw=gt(fm.htmlChunks,p,"html")}else mw=yt(a,p,"html");return mw;default:if(s.indexOf("-")!==-1){a.push(Ye(s));var hm=null,vw=null,td;for(td in p)if(lt.call(p,td)){var zo=p[td];if(zo!=null){var bw=td;switch(td){case"children":hm=zo;break;case"dangerouslySetInnerHTML":vw=zo;break;case"style":_e(a,zo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":bw="class";default:if($(td)&&typeof zo!="function"&&typeof zo!="symbol"&&zo!==!1){if(zo===!0)zo="";else if(typeof zo=="object")continue;a.push(Rr,F(bw),hn,F(pe(zo)),rn)}}}}return a.push(Vt),Ce(a,vw,hm),hm}}return yt(a,p,s)}function qr(a){var s=bs.get(a);return s===void 0&&(s=S("</"+a+">"),bs.set(a,s)),s}function Fr(a,s){a=a.preamble,a.htmlChunks===null&&s.htmlChunks&&(a.htmlChunks=s.htmlChunks,s.contribution|=1),a.headChunks===null&&s.headChunks&&(a.headChunks=s.headChunks,s.contribution|=4),a.bodyChunks===null&&s.bodyChunks&&(a.bodyChunks=s.bodyChunks,s.contribution|=2)}function Zl(a,s){s=s.bootstrapChunks;for(var p=0;p<s.length-1;p++)v(a,s[p]);return p<s.length?(p=s[p],s.length=0,E(a,p)):!0}function oc(a,s,p){if(v(a,Rd),p===null)throw Error("An ID must have been assigned before we can complete the boundary.");return v(a,s.boundaryPrefix),v(a,F(p.toString(16))),E(a,Nd)}function ic(a,s){s=s.contribution,s!==fl&&(v(a,zc),v(a,F(""+s)),v(a,ys))}function Cd(a,s,p,D){switch(p.insertionMode){case Ca:case mi:case Ea:case Ur:return v(a,Cu),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,bi);case fn:return v(a,zd),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,Hd);case Me:return v(a,wl),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,qa);case Xn:return v(a,jd),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,yi);case hl:return v(a,Wc),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,Uc);case mu:return v(a,wi),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,Ka);case fs:return v(a,Yd),v(a,s.segmentPrefix),v(a,F(D.toString(16))),E(a,jc);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function Sn(a,s){switch(s.insertionMode){case Ca:case mi:case Ea:case Ur:return E(a,Md);case fn:return E(a,Wd);case Me:return E(a,Ud);case Xn:return E(a,Hc);case hl:return E(a,xl);case mu:return E(a,Gd);case fs:return E(a,Gc);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function Us(a){return JSON.stringify(a).replace(Tu,function(s){switch(s){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function qo(a){return JSON.stringify(a).replace(Au,function(s){switch(s){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function sc(a){var s=a.rules,p=a.hrefs;0<s.length&&p.length===0&&console.error("React expected to have at least one href for an a hoistable style but found none. This is a bug in React.");var D=0;if(p.length){for(v(this,Zc),v(this,a.precedence),v(this,_u);D<p.length-1;D++)v(this,p[D]),v(this,Nu);for(v(this,p[D]),v(this,Jc),D=0;D<s.length;D++)v(this,s[D]);Sl=E(this,Fl),Xt=!0,s.length=0,p.length=0}}function Gi(a){return a.state!==xs?Xt=!0:!1}function Kr(a,s,p){return Xt=!1,Sl=!0,s.styles.forEach(sc,a),s.stylesheets.forEach(Gi),Xt&&(p.stylesToHoist=!0),Sl}function Qr(a){for(var s=0;s<a.length;s++)v(this,a[s]);a.length=0}function Ed(a){Ct(Sa,a.props);for(var s=0;s<Sa.length;s++)v(this,Sa[s]);Sa.length=0,a.state=xs}function Jl(a){var s=0<a.sheets.size;a.sheets.forEach(Ed,this),a.sheets.clear();var p=a.rules,D=a.hrefs;if(!s||D.length){if(v(this,qc),v(this,a.precedence),a=0,D.length){for(v(this,Ru);a<D.length-1;a++)v(this,D[a]),v(this,Nu);v(this,D[a])}for(v(this,kl),a=0;a<p.length;a++)v(this,p[a]);v(this,Pu),p.length=0,D.length=0}}function js(a){if(a.state===Nr){a.state=ws;var s=a.props;for(Ct(Sa,{rel:"preload",as:"style",href:a.props.href,crossOrigin:s.crossOrigin,fetchPriority:s.fetchPriority,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy}),a=0;a<Sa.length;a++)v(this,Sa[a]);Sa.length=0}}function lc(a){a.sheets.forEach(js,this),a.sheets.clear()}function uc(a,s){v(a,Kc);var p=Kc;s.stylesheets.forEach(function(D){if(D.state!==xs)if(D.state===Tl)v(a,p),D=D.props.href,Z(D,"href"),v(a,F(qo(""+D))),v(a,Ou),p=ka;else{v(a,p);var T=D.props["data-precedence"],R=D.props,M=Ie(""+D.props.href);v(a,F(qo(M))),Z(T,"precedence"),T=""+T,v(a,Di),v(a,F(qo(T)));for(var H in R)if(lt.call(R,H)&&(T=R[H],T!=null))switch(H){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:cc(a,H,T)}v(a,Ou),p=ka,D.state=Tl}}),v(a,Ou)}function cc(a,s,p){var D=s.toLowerCase();switch(typeof p){case"function":case"symbol":return}switch(s){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":D="class",Z(p,D),s=""+p;break;case"hidden":if(p===!1)return;s="";break;case"src":case"href":p=Ie(p),Z(p,D),s=""+p;break;default:if(2<s.length&&(s[0]==="o"||s[0]==="O")&&(s[1]==="n"||s[1]==="N")||!$(s))return;Z(p,D),s=""+p}v(a,Di),v(a,F(qo(D))),v(a,Di),v(a,F(qo(s)))}function ql(){return{styles:new Set,stylesheets:new Set}}function Gs(a,s,p,D){(a.scriptResources.hasOwnProperty(p)||a.moduleScriptResources.hasOwnProperty(p))&&console.error('Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',p),a.scriptResources[p]=Et,a.moduleScriptResources[p]=Et,a=[],Ct(a,D),s.bootstrapScripts.add(a)}function ut(a,s){a.crossOrigin==null&&(a.crossOrigin=s[0]),a.integrity==null&&(a.integrity=s[1])}function Wn(a,s,p){a=ua(a),s=Ys(s,"as"),s="<"+a+'>; rel=preload; as="'+s+'"';for(var D in p)lt.call(p,D)&&(a=p[D],typeof a=="string"&&(s+="; "+D.toLowerCase()+'="'+Ys(a,D)+'"'));return s}function ua(a){return Z(a,"href"),(""+a).replace(Ro,un)}function un(a){switch(a){case"<":return"%3C";case">":return"%3E";case`
|
|
101
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Ys(a,s){return B()&&(console.error("The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",s,O(a)),z(a)),(""+a).replace(ct,dc)}function dc(a){switch(a){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
102
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function ca(a){this.styles.add(a)}function Vs(a){this.stylesheets.add(a)}function vt(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Ci?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case es:return"Fragment";case Do:return"Profiler";case ts:return"StrictMode";case ns:return"Suspense";case Co:return"SuspenseList";case ll:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case xo:return"Portal";case rs:return(a.displayName||"Context")+".Provider";case il:return(a._context.displayName||"Context")+".Consumer";case sl:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Yn:return s=a.displayName||null,s!==null?s:vt(a.type)||"Memo";case xa:s=a._payload,a=a._init;try{return vt(a(s))}catch{}}return null}function za(a,s){if(a!==s){a.context._currentValue=a.parentValue,a=a.parent;var p=s.parent;if(a===null){if(p!==null)throw Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(p===null)throw Error("The stacks must reach the root at the same time. This is a bug in React.");za(a,p)}s.context._currentValue=s.value}}function Kl(a){a.context._currentValue=a.parentValue,a=a.parent,a!==null&&Kl(a)}function Ko(a){var s=a.parent;s!==null&&Ko(s),a.context._currentValue=a.value}function Ql(a,s){if(a.context._currentValue=a.parentValue,a=a.parent,a===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===s.depth?za(a,s):Ql(a,s)}function Qo(a,s){var p=s.parent;if(p===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===p.depth?za(a,p):Qo(a,p),s.context._currentValue=s.value}function da(a){var s=Nn;s!==a&&(s===null?Ko(a):a===null?Kl(s):s.depth===a.depth?za(s,a):s.depth>a.depth?Ql(s,a):Qo(s,a),Nn=a)}function kn(a){if(a!==null&&typeof a!="function"){var s=String(a);Fi.has(s)||(Fi.add(s),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function Xs(a,s){a=(a=a.constructor)&&vt(a)||"ReactClass";var p=a+"."+s;Ds[p]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
103
|
-
|
|
104
|
-
Please check the code for the %s component.`,s,a),Ds[p]=!0)}function Yi(a,s,p){var D=a.id;a=a.overflow;var T=32-Si(D)-1;D&=~(1<<T),p+=1;var R=32-Si(s)+T;if(30<R){var M=T-T%5;return R=(D&(1<<M)-1).toString(32),D>>=M,T-=M,{id:1<<32-Si(s)+T|p<<T|D,overflow:R+a}}return{id:1<<R|p<<T|D,overflow:a}}function $o(a){return a>>>=0,a===0?32:31-(Bu(a)/ki|0)|0}function Ha(){}function fc(a,s,p){switch(p=a[p],p===void 0?a.push(s):p!==s&&(s.then(Ha,Ha),s=p),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(Ha,Ha):(a=s,a.status="pending",a.then(function(D){if(s.status==="pending"){var T=s;T.status="fulfilled",T.value=D}},function(D){if(s.status==="pending"){var T=s;T.status="rejected",T.reason=D}})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}throw Ss=s,Kn}}function ei(){if(Ss===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Ss;return Ss=null,a}function $l(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}function Un(){if(Qn===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
105
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
106
|
-
2. You might be breaking the Rules of Hooks
|
|
107
|
-
3. You might have more than one copy of React in the same app
|
|
108
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return ce&&console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"),Qn}function eu(){if(0<we)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function tu(){return l===null?Rl===null?(d=!1,Rl=l=eu()):(d=!0,l=Rl):l.next===null?(d=!1,l=l.next=eu()):(d=!0,l=l.next),l}function fa(){var a=q;return q=null,a}function ti(){ce=!1,_l=Ts=ks=Qn=null,y=!1,Rl=null,we=0,l=ae=null}function Zs(a){return ce&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),a._currentValue}function ru(a,s){return typeof s=="function"?s(a):s}function ho(a,s,p){if(a!==ru&&(Xe="useReducer"),Qn=Un(),l=tu(),d){if(p=l.queue,s=p.dispatch,ae!==null){var D=ae.get(p);if(D!==void 0){ae.delete(p),p=l.memoizedState;do{var T=D.action;ce=!0,p=a(p,T),ce=!1,D=D.next}while(D!==null);return l.memoizedState=p,[p,s]}}return[l.memoizedState,s]}return ce=!0,a=a===ru?typeof s=="function"?s():s:p!==void 0?p(s):s,ce=!1,l.memoizedState=a,a=l.queue={last:null,dispatch:null},a=a.dispatch=Vi.bind(null,Qn,a),[l.memoizedState,a]}function nu(a,s){if(Qn=Un(),l=tu(),s=s===void 0?null:s,l!==null){var p=l.memoizedState;if(p!==null&&s!==null){e:{var D=p[1];if(D===null)console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Xe),D=!1;else{s.length!==D.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
109
|
-
|
|
110
|
-
Previous: %s
|
|
111
|
-
Incoming: %s`,Xe,"["+s.join(", ")+"]","["+D.join(", ")+"]");for(var T=0;T<D.length&&T<s.length;T++)if(!Iu(s[T],D[T])){D=!1;break e}D=!0}}if(D)return p[0]}}return ce=!0,a=a(),ce=!1,l.memoizedState=[a,s],a}function Vi(a,s,p){if(25<=we)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a===Qn)if(y=!0,a={action:p,next:null},ae===null&&(ae=new Map),p=ae.get(s),p===void 0)ae.set(s,a);else{for(s=p;s.next!==null;)s=s.next;s.next=a}}function Fd(){throw Error("startTransition cannot be called during server rendering.")}function ha(){throw Error("Cannot update optimistic state while rendering.")}function Xi(a,s,p){Un();var D=_++,T=Ts;if(typeof a.$$FORM_ACTION=="function"){var R=null,M=_l;T=T.formState;var H=a.$$IS_SIGNATURE_EQUAL;if(T!==null&&typeof H=="function"){var Q=T[1];H.call(a,T[2],T[3])&&(R=p!==void 0?"p"+p:"k"+g(JSON.stringify([M,null,D]),0),Q===R&&(I=D,s=T[0]))}var U=a.bind(null,s);return a=function(re){U(re)},typeof U.$$FORM_ACTION=="function"&&(a.$$FORM_ACTION=function(re){re=U.$$FORM_ACTION(re),p!==void 0&&(Z(p,"target"),p+="",re.action=p);var de=re.data;return de&&(R===null&&(R=p!==void 0?"p"+p:"k"+g(JSON.stringify([M,null,D]),0)),de.append("$ACTION_KEY",R)),re}),[s,a,!1]}var ie=a.bind(null,s);return[s,function(re){ie(re)},!1]}function Js(a){var s=Y;return Y+=1,q===null&&(q=[]),fc(q,a,s)}function ri(){throw Error("Cache cannot be refreshed during server rendering.")}function Zi(){}function Qt(){}function pa(){if(Ft===0){tr=console.log,Se=console.info,Je=console.warn,_t=console.error,St=console.group,o=console.groupCollapsed,u=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Qt,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Ft++}function Sd(){if(Ft--,Ft===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mt({},a,{value:tr}),info:mt({},a,{value:Se}),warn:mt({},a,{value:Je}),error:mt({},a,{value:_t}),group:mt({},a,{value:St}),groupCollapsed:mt({},a,{value:o}),groupEnd:mt({},a,{value:u})})}0>Ft&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ga(a){if(h===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);h=s&&s[1]||"",C=-1<p.stack.indexOf(`
|
|
112
|
-
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
113
|
-
`+h+a+C}function ma(a,s){if(!a||k)return"";var p=P.get(a);if(p!==void 0)return p;k=!0,p=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var D=null;D=ur.H,ur.H=null,pa();try{var T={DetermineComponentFrameRoot:function(){try{if(s){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(te){var ue=te}Reflect.construct(a,[],de)}else{try{de.call()}catch(te){ue=te}a.call(de.prototype)}}else{try{throw Error()}catch(te){ue=te}(de=a())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(te){if(te&&ue&&typeof te.stack=="string")return[te.stack,ue.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var R=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");R&&R.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=T.DetermineComponentFrameRoot(),H=M[0],Q=M[1];if(H&&Q){var U=H.split(`
|
|
114
|
-
`),ie=Q.split(`
|
|
115
|
-
`);for(M=R=0;R<U.length&&!U[R].includes("DetermineComponentFrameRoot");)R++;for(;M<ie.length&&!ie[M].includes("DetermineComponentFrameRoot");)M++;if(R===U.length||M===ie.length)for(R=U.length-1,M=ie.length-1;1<=R&&0<=M&&U[R]!==ie[M];)M--;for(;1<=R&&0<=M;R--,M--)if(U[R]!==ie[M]){if(R!==1||M!==1)do if(R--,M--,0>M||U[R]!==ie[M]){var re=`
|
|
116
|
-
`+U[R].replace(" at new "," at ");return a.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",a.displayName)),typeof a=="function"&&P.set(a,re),re}while(1<=R&&0<=M);break}}}finally{k=!1,ur.H=D,Sd(),Error.prepareStackTrace=p}return U=(U=a?a.displayName||a.name:"")?ga(U):"",typeof a=="function"&&P.set(a,U),U}function ni(a){var s=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=s,a.startsWith(`Error: react-stack-top-frame
|
|
117
|
-
`)&&(a=a.slice(29)),s=a.indexOf(`
|
|
118
|
-
`),s!==-1&&(a=a.slice(s+1)),s=a.indexOf("react_stack_bottom_frame"),s!==-1&&(s=a.lastIndexOf(`
|
|
119
|
-
`,s)),s!==-1)a=a.slice(0,s);else return"";return a}function qs(a){if(typeof a=="string")return ga(a);if(typeof a=="function")return a.prototype&&a.prototype.isReactComponent?ma(a,!0):ma(a,!1);if(typeof a=="object"&&a!==null){switch(a.$$typeof){case sl:return ma(a.render,!1);case Yn:return ma(a.type,!1);case xa:var s=a,p=s._payload;s=s._init;try{a=s(p)}catch{return ga("Lazy")}return qs(a)}if(typeof a.name=="string")return p=a.env,ga(a.name+(p?" ["+p+"]":""))}switch(a){case Co:return ga("SuspenseList");case ns:return ga("Suspense")}return""}function ai(a){if(typeof a=="object"&&a!==null&&typeof a.environmentName=="string"){var s=a.environmentName;a=[a].slice(0),typeof a[0]=="string"?a.splice(0,1,"%c%s%c "+a[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+s+" ",""):a.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+s+" ",""),a.unshift(console),s=qn.apply(console.error,a),s()}else console.error(a);return null}function va(){}function Ks(a,s,p,D,T,R,M,H,Q,U,ie){var re=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=a,this.renderState=s,this.rootFormatContext=p,this.progressiveChunkSize=D===void 0?12800:D,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=re,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=T===void 0?ai:T,this.onPostpone=U===void 0?va:U,this.onAllReady=R===void 0?va:R,this.onShellReady=M===void 0?va:M,this.onShellError=H===void 0?va:H,this.onFatalError=Q===void 0?va:Q,this.formState=ie===void 0?null:ie,this.didWarnForKey=null}function Wa(a,s,p,D,T,R,M,H,Q,U,ie,re){var de=oe();return 1e3<de-he&&(ur.recentlyCreatedOwnerStacks=0,he=de),s=new Ks(s,p,D,T,R,M,H,Q,U,ie,re),p=Ua(s,0,null,D,!1,!1),p.parentFlushed=!0,a=jn(s,null,a,-1,null,p,null,null,s.abortableTasks,null,D,null,$c,null,!1,vr,null),ja(a),s.pingedTasks.push(a),s}function ba(a,s,p,D,T,R,M,H,Q,U,ie){return a=Wa(a,s,p,D,T,R,M,H,Q,U,ie,void 0),a.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},a}function po(a,s){a.pingedTasks.push(s),a.pingedTasks.length===1&&(a.flushScheduled=a.destination!==null,a.trackedPostpones!==null||a.status===10?di(function(){return bo(a)}):b(function(){return bo(a)}))}function $t(a,s,p,D){return{status:Le,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null,contentState:ql(),fallbackState:ql(),contentPreamble:p,fallbackPreamble:D,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null}}function jn(a,s,p,D,T,R,M,H,Q,U,ie,re,de,ue,te,Ze,nt){a.allPendingTasks++,T===null?a.pendingRootTasks++:T.pendingTasks++;var je={replay:null,node:p,childIndex:D,ping:function(){return po(a,je)},blockedBoundary:T,blockedSegment:R,blockedPreamble:M,hoistableState:H,abortSet:Q,keyPath:U,formatContext:ie,context:re,treeContext:de,componentStack:ue,thenableState:s,isFallback:te};return je.debugTask=nt,Q.add(je),je}function Qs(a,s,p,D,T,R,M,H,Q,U,ie,re,de,ue,te,Ze){a.allPendingTasks++,R===null?a.pendingRootTasks++:R.pendingTasks++,p.pendingTasks++;var nt={replay:p,node:D,childIndex:T,ping:function(){return po(a,nt)},blockedBoundary:R,blockedSegment:null,blockedPreamble:null,hoistableState:M,abortSet:H,keyPath:Q,formatContext:U,context:ie,treeContext:re,componentStack:de,thenableState:s,isFallback:ue};return nt.debugTask=Ze,H.add(nt),nt}function Ua(a,s,p,D,T,R){return{status:Le,parentFlushed:!1,id:-1,index:s,chunks:[],children:[],preambleChildren:[],parentFormatContext:D,boundary:p,lastPushedText:T,textEmbedded:R}}function go(){if(Ne===null||Ne.componentStack===null)return"";var a=Ne.componentStack;try{var s="";if(typeof a.type=="string")s+=ga(a.type);else if(typeof a.type=="function"){if(!a.owner){var p=s,D=a.type,T=D?D.displayName||D.name:"",R=T?ga(T):"";s=p+R}}else a.owner||(s+=qs(a.type));for(;a;)p=null,a.debugStack!=null?p=ni(a.debugStack):(R=a,R.stack!=null&&(p=typeof R.stack!="string"?R.stack=ni(R.stack):R.stack)),(a=a.owner)&&p&&(s+=`
|
|
120
|
-
`+p);var M=s}catch(H){M=`
|
|
121
|
-
Error generating stack: `+H.message+`
|
|
122
|
-
`+H.stack}return M}function oi(a,s){if(s!=null)for(var p=0;p<s.length;p++){var D=s[p];typeof D.name=="string"&&D.debugStack!==void 0&&(a.componentStack={parent:a.componentStack,type:D,owner:D.owner,stack:D.debugStack},a.debugTask=D.debugTask)}}function ja(a){var s=a.node;if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Za:var p=s.type,D=s._owner,T=s._debugStack;oi(a,s._debugInfo),a.debugTask=s._debugTask,a.componentStack={parent:a.componentStack,type:p,owner:D,stack:T};break;case xa:oi(a,s._debugInfo);break;default:typeof s.then=="function"&&oi(a,s._debugInfo)}}function er(a){var s={};return a&&Object.defineProperty(s,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var p="",D=a;do p+=qs(D.type),D=D.parent;while(D);var T=p}catch(R){T=`
|
|
123
|
-
Error generating stack: `+R.message+`
|
|
124
|
-
`+R.stack}return Object.defineProperty(s,"componentStack",{value:T}),T}}),s}function Ga(a,s,p,D,T){a.errorDigest=s,p instanceof Error?(s=String(p.message),p=String(p.stack)):(s=typeof p=="object"&&p!==null?f(p):String(p),p=null),T=T?`Switched to client rendering because the server rendering aborted due to:
|
|
125
|
-
|
|
126
|
-
`:`Switched to client rendering because the server rendering errored:
|
|
127
|
-
|
|
128
|
-
`,a.errorMessage=T+s,a.errorStack=p!==null?T+p:null,a.errorComponentStack=D.componentStack}function Sr(a,s,p,D){if(a=a.onError,s=D?D.run(a.bind(null,s,p)):a(s,p),s!=null&&typeof s!="string")console.error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',typeof s);else return s}function Ya(a,s,p,D){p=a.onShellError;var T=a.onFatalError;D?(D.run(p.bind(null,s)),D.run(T.bind(null,s))):(p(s),T(s)),a.destination!==null?(a.status=et,N(a.destination,s)):(a.status=13,a.fatalError=s)}function mo(a,s,p,D,T,R){var M=s.thenableState;for(s.thenableState=null,Qn={},ks=s,Ts=a,_l=p,ce=!1,_=x=0,I=-1,Y=0,q=M,a=G(D,T,R);y;)y=!1,_=x=0,I=-1,Y=0,we+=1,l=null,a=D(T,R);return ti(),a}function au(a,s,p,D,T,R,M){var H=!1;if(R!==0&&a.formState!==null){var Q=s.blockedSegment;if(Q!==null){H=!0,Q=Q.chunks;for(var U=0;U<R;U++)U===M?Q.push(_o):Q.push(Bc)}}R=s.keyPath,s.keyPath=p,T?(p=s.treeContext,s.treeContext=Yi(p,1,0),en(a,s,D,-1),s.treeContext=p):H?en(a,s,D,-1):$r(a,s,D,-1),s.keyPath=R}function kr(a,s,p,D,T,R){if(typeof D=="function")if(D.prototype&&D.prototype.isReactComponent){var M=T;if("ref"in T){M={};for(var H in T)H!=="ref"&&(M[H]=T[H])}var Q=D.defaultProps;if(Q){M===T&&(M=mt({},M,T));for(var U in Q)M[U]===void 0&&(M[U]=Q[U])}var ie=M,re=vr,de=D.contextType;if("contextType"in D&&de!==null&&(de===void 0||de.$$typeof!==rs)&&!Qc.has(D)){Qc.add(D);var ue=de===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof de!="object"?" However, it is set to a "+typeof de+".":de.$$typeof===il?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(de).join(", ")+"}.";console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",vt(D)||"Component",ue)}typeof de=="object"&&de!==null&&(re=de._currentValue);var te=new D(ie,re);if(typeof D.getDerivedStateFromProps=="function"&&(te.state===null||te.state===void 0)){var Ze=vt(D)||"Component";Ta.has(Ze)||(Ta.add(Ze),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Ze,te.state===null?"null":"undefined",Ze))}if(typeof D.getDerivedStateFromProps=="function"||typeof te.getSnapshotBeforeUpdate=="function"){var nt=null,je=null,ke=null;if(typeof te.componentWillMount=="function"&&te.componentWillMount.__suppressDeprecationWarning!==!0?nt="componentWillMount":typeof te.UNSAFE_componentWillMount=="function"&&(nt="UNSAFE_componentWillMount"),typeof te.componentWillReceiveProps=="function"&&te.componentWillReceiveProps.__suppressDeprecationWarning!==!0?je="componentWillReceiveProps":typeof te.UNSAFE_componentWillReceiveProps=="function"&&(je="UNSAFE_componentWillReceiveProps"),typeof te.componentWillUpdate=="function"&&te.componentWillUpdate.__suppressDeprecationWarning!==!0?ke="componentWillUpdate":typeof te.UNSAFE_componentWillUpdate=="function"&&(ke="UNSAFE_componentWillUpdate"),nt!==null||je!==null||ke!==null){var kt=vt(D)||"Component",it=typeof D.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Pn.has(kt)||(Pn.add(kt),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
129
|
-
|
|
130
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
131
|
-
|
|
132
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
133
|
-
https://react.dev/link/unsafe-component-lifecycles`,kt,it,nt!==null?`
|
|
134
|
-
`+nt:"",je!==null?`
|
|
135
|
-
`+je:"",ke!==null?`
|
|
136
|
-
`+ke:""))}}var Ge=vt(D)||"Component";te.render||(D.prototype&&typeof D.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",Ge):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",Ge)),!te.getInitialState||te.getInitialState.isReactClassApproved||te.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",Ge),te.getDefaultProps&&!te.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",Ge),te.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",Ge),D.childContextTypes&&!pn.has(D)&&(pn.add(D),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",Ge)),D.contextTypes&&!Fs.has(D)&&(Fs.add(D),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",Ge)),typeof te.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",Ge),D.prototype&&D.prototype.isPureReactComponent&&typeof te.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",vt(D)||"A pure component"),typeof te.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",Ge),typeof te.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",Ge),typeof te.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",Ge),typeof te.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",Ge);var ar=te.props!==ie;te.props!==void 0&&ar&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",Ge),te.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",Ge,Ge),typeof te.getSnapshotBeforeUpdate!="function"||typeof te.componentDidUpdate=="function"||Cs.has(D)||(Cs.add(D),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",vt(D))),typeof te.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Ge),typeof te.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Ge),typeof D.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",Ge);var br=te.state;br&&(typeof br!="object"||Ja(br))&&console.error("%s.state: must be set to an object or null",Ge),typeof te.getChildContext=="function"&&typeof D.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",Ge);var Rt=te.state!==void 0?te.state:null;te.updater=Al,te.props=ie,te.state=Rt;var Mt={queue:[],replace:!1};te._reactInternals=Mt;var pt=D.contextType;if(te.context=typeof pt=="object"&&pt!==null?pt._currentValue:vr,te.state===ie){var or=vt(D)||"Component";Ei.has(or)||(Ei.add(or),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",or))}var ir=D.getDerivedStateFromProps;if(typeof ir=="function"){var Ke=ir(ie,Rt);if(Ke===void 0){var bt=vt(D)||"Component";Es.has(bt)||(Es.add(bt),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",bt))}var at=Ke==null?Rt:mt({},Rt,Ke);te.state=at}if(typeof D.getDerivedStateFromProps!="function"&&typeof te.getSnapshotBeforeUpdate!="function"&&(typeof te.UNSAFE_componentWillMount=="function"||typeof te.componentWillMount=="function")){var fr=te.state;if(typeof te.componentWillMount=="function"){if(te.componentWillMount.__suppressDeprecationWarning!==!0){var hr=vt(D)||"Unknown";No[hr]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
137
|
-
|
|
138
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
139
|
-
|
|
140
|
-
Please update the following components: %s`,hr),No[hr]=!0)}te.componentWillMount()}if(typeof te.UNSAFE_componentWillMount=="function"&&te.UNSAFE_componentWillMount(),fr!==te.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",vt(D)||"Component"),Al.enqueueReplaceState(te,te.state,null)),Mt.queue!==null&&0<Mt.queue.length){var zt=Mt.queue,gn=Mt.replace;if(Mt.queue=null,Mt.replace=!1,gn&&zt.length===1)te.state=zt[0];else{for(var Or=gn?zt[0]:te.state,mn=!0,eo=gn?1:0;eo<zt.length;eo++){var vn=zt[eo],Aa=typeof vn=="function"?vn.call(te,Or,ie,void 0):vn;Aa!=null&&(mn?(mn=!1,Or=mt({},Or,Aa)):mt(Or,Aa))}te.state=Or}}else Mt.queue=null}var jr=X(te);if(a.status===12)throw null;te.props!==ie&&(On||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",vt(D)||"a component"),On=!0);var to=s.keyPath;s.keyPath=p,$r(a,s,jr,-1),s.keyPath=to}else{if(D.prototype&&typeof D.prototype.render=="function"){var pr=vt(D)||"Unknown";Pr[pr]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",pr,pr),Pr[pr]=!0)}var Ht=mo(a,s,p,D,T,void 0);if(a.status===12)throw null;var wt=x!==0,yr=_,Gr=I;if(D.contextTypes){var _a=vt(D)||"Unknown";rr[_a]||(rr[_a]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",_a))}if(D&&D.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
141
|
-
%s.childContextTypes = ...`,D.displayName||D.name||"Component"),typeof D.getDerivedStateFromProps=="function"){var Yr=vt(D)||"Unknown";Lt[Yr]||(console.error("%s: Function components do not support getDerivedStateFromProps.",Yr),Lt[Yr]=!0)}if(typeof D.contextType=="object"&&D.contextType!==null){var bn=vt(D)||"Unknown";nr[bn]||(console.error("%s: Function components do not support contextType.",bn),nr[bn]=!0)}au(a,s,p,Ht,wt,yr,Gr)}else if(typeof D=="string"){var Vr=s.blockedSegment;if(Vr===null){var Ti=T.children,Nt=s.formatContext,wr=s.keyPath;s.formatContext=ne(Nt,D,T),s.keyPath=p,en(a,s,Ti,-1),s.formatContext=Nt,s.keyPath=wr}else{var Bn=Dd(Vr.chunks,D,T,a.resumableState,a.renderState,s.blockedPreamble,s.hoistableState,s.formatContext,Vr.lastPushedText,s.isFallback);Vr.lastPushedText=!1;var In=s.formatContext,yn=s.keyPath;if(s.keyPath=p,(s.formatContext=ne(In,D,T)).insertionMode===Ea){var Ra=Ua(a,0,null,s.formatContext,!1,!1);Vr.preambleChildren.push(Ra);var an=jn(a,null,Bn,-1,s.blockedBoundary,Ra,s.blockedPreamble,s.hoistableState,a.abortableTasks,s.keyPath,s.formatContext,s.context,s.treeContext,s.componentStack,s.isFallback,vr,s.debugTask);ja(an),a.pingedTasks.push(an)}else en(a,s,Bn,-1);s.formatContext=In,s.keyPath=yn;e:{var $n=Vr.chunks,ea=a.resumableState;switch(D){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(In.insertionMode<=mi){ea.hasBody=!0;break e}break;case"html":if(In.insertionMode===Ca){ea.hasHtml=!0;break e}break;case"head":if(In.insertionMode<=mi)break e}$n.push(qr(D))}Vr.lastPushedText=!1}}else{switch(D){case At:case ts:case Do:case es:var ta=s.keyPath;s.keyPath=p,$r(a,s,T.children,-1),s.keyPath=ta;return;case ll:if(T.mode!=="hidden"){var ra=s.keyPath;s.keyPath=p,$r(a,s,T.children,-1),s.keyPath=ra}return;case Co:var Xr=s.keyPath;s.keyPath=p,$r(a,s,T.children,-1),s.keyPath=Xr;return;case kd:case mc:throw Error("ReactDOMServer does not yet support scope components.");case ns:e:if(s.replay!==null){var wn=s.keyPath;s.keyPath=p;var Ai=T.children;try{en(a,s,Ai,-1)}finally{s.keyPath=wn}}else{var on=s.keyPath,ro=s.blockedBoundary,no=s.blockedPreamble,As=s.hoistableState,Ln=s.blockedSegment,_i=T.fallback,Br=T.children,xn=new Set,xt=s.formatContext.insertionMode<Ur?$t(a,xn,sr(),sr()):$t(a,xn,null,null);a.trackedPostpones!==null&&(xt.trackedContentKeyPath=p);var Zt=Ua(a,Ln.chunks.length,xt,s.formatContext,!1,!1);Ln.children.push(Zt),Ln.lastPushedText=!1;var xr=Ua(a,0,null,s.formatContext,!1,!1);if(xr.parentFlushed=!0,a.trackedPostpones!==null){var _s=[p[0],"Suspense Fallback",p[2]],Dn=[_s[1],_s[2],[],null];a.trackedPostpones.workingMap.set(_s,Dn),xt.trackedFallbackNode=Dn,s.blockedSegment=Zt,s.blockedPreamble=xt.fallbackPreamble,s.keyPath=_s,Zt.status=6;try{en(a,s,_i,-1),Zt.lastPushedText&&Zt.textEmbedded&&Zt.chunks.push(Fa),Zt.status=Ue}catch(lo){throw Zt.status=a.status===12?3:4,lo}finally{s.blockedSegment=Ln,s.blockedPreamble=no,s.keyPath=on}var na=jn(a,null,Br,-1,xt,xr,xt.contentPreamble,xt.contentState,s.abortSet,p,s.formatContext,s.context,s.treeContext,s.componentStack,s.isFallback,vr,s.debugTask);ja(na),a.pingedTasks.push(na)}else{s.blockedBoundary=xt,s.blockedPreamble=xt.contentPreamble,s.hoistableState=xt.contentState,s.blockedSegment=xr,s.keyPath=p,xr.status=6;try{if(en(a,s,Br,-1),xr.lastPushedText&&xr.textEmbedded&&xr.chunks.push(Fa),xr.status=Ue,ui(xt,xr),xt.pendingTasks===0&&xt.status===Le){xt.status=Ue,a.pendingRootTasks===0&&s.blockedPreamble&&qi(a);break e}}catch(lo){if(xt.status=qe,a.status===12){xr.status=3;var Na=a.fatalError}else xr.status=4,Na=lo;var Nl=er(s.componentStack),Wt=Sr(a,Na,Nl,s.debugTask);Ga(xt,Wt,Na,Nl,!1),si(a,xt)}finally{s.blockedBoundary=ro,s.blockedPreamble=no,s.hoistableState=As,s.blockedSegment=Ln,s.keyPath=on}var Po=jn(a,null,_i,-1,ro,Zt,xt.fallbackPreamble,xt.fallbackState,xn,[p[0],"Suspense Fallback",p[2]],s.formatContext,s.context,s.treeContext,s.componentStack,!0,vr,s.debugTask);ja(Po),a.pingedTasks.push(Po)}}return}if(typeof D=="object"&&D!==null)switch(D.$$typeof){case sl:if("ref"in T){var ao={};for(var Pa in T)Pa!=="ref"&&(ao[Pa]=T[Pa])}else ao=T;var Oo=mo(a,s,p,D.render,ao,R);au(a,s,p,Oo,x!==0,_,I);return;case Yn:kr(a,s,p,D.type,T,R);return;case gc:case rs:var oo=T.value,Ri=T.children,Bo=s.context,Lu=s.keyPath,Io=D._currentValue;D._currentValue=oo,D._currentRenderer!==void 0&&D._currentRenderer!==null&&D._currentRenderer!==$a&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),D._currentRenderer=$a;var io=Nn,Oa={parent:io,depth:io===null?0:io.depth+1,context:D,parentValue:Io,value:oo};Nn=Oa,s.context=Oa,s.keyPath=p,$r(a,s,Ri,-1);var Mn=Nn;if(Mn===null)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");Mn.context!==D&&console.error("The parent context is not the expected context. This is probably a bug in React."),Mn.context._currentValue=Mn.parentValue,D._currentRenderer!==void 0&&D._currentRenderer!==null&&D._currentRenderer!==$a&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),D._currentRenderer=$a;var Ba=Nn=Mn.parent;s.context=Ba,s.keyPath=Lu,Bo!==s.context&&console.error("Popping the context provider did not return back to the original snapshot. This is a bug in React.");return;case il:var Jt=D._context,Ut=T.children;typeof Ut!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var Mu=Ut(Jt._currentValue),Lo=s.keyPath;s.keyPath=p,$r(a,s,Mu,-1),s.keyPath=Lo;return;case xa:var zu=le(D);if(a.status===12)throw null;kr(a,s,p,zu,T,R);return}var so="";throw(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(so+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((D==null?D:typeof D)+"."+so))}}function ou(a,s,p,D,T){var R=s.replay,M=s.blockedBoundary,H=Ua(a,0,null,s.formatContext,!1,!1);H.id=p,H.parentFlushed=!0;try{s.replay=null,s.blockedSegment=H,en(a,s,D,T),H.status=Ue,M===null?a.completedRootSegment=H:(ui(M,H),M.parentFlushed&&a.partialBoundaries.push(M))}finally{s.replay=R,s.blockedSegment=null}}function ii(a,s,p,D,T,R,M,H,Q,U){R=U.nodes;for(var ie=0;ie<R.length;ie++){var re=R[ie];if(T===re[1]){if(re.length===4){if(D!==null&&D!==re[0])throw Error("Expected the resume to render <"+re[0]+"> in this slot but instead it rendered <"+D+">. The tree doesn't match so React will fallback to client rendering.");var de=re[2];re=re[3],D=s.node,s.replay={nodes:de,slots:re,pendingTasks:1};try{if(kr(a,s,p,M,H,Q),s.replay.pendingTasks===1&&0<s.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");s.replay.pendingTasks--}catch(it){if(typeof it=="object"&&it!==null&&(it===Kn||typeof it.then=="function"))throw s.node===D&&(s.replay=U),it;s.replay.pendingTasks--,M=er(s.componentStack),H=a,a=s.blockedBoundary,p=it,Q=re,re=Sr(H,p,M,s.debugTask),tn(H,a,de,Q,p,re,M,!1)}s.replay=U}else{if(M!==ns)throw Error("Expected the resume to render <Suspense> in this slot but instead it rendered <"+(vt(M)||"Unknown")+">. The tree doesn't match so React will fallback to client rendering.");e:{U=void 0,M=re[5],Q=re[2],D=re[3],T=re[4]===null?[]:re[4][2],re=re[4]===null?null:re[4][3];var ue=s.keyPath,te=s.replay,Ze=s.blockedBoundary,nt=s.hoistableState,je=H.children,ke=H.fallback,kt=new Set;H=s.formatContext.insertionMode<Ur?$t(a,kt,sr(),sr()):$t(a,kt,null,null),H.parentFlushed=!0,H.rootSegmentID=M,s.blockedBoundary=H,s.hoistableState=H.contentState,s.keyPath=p,s.replay={nodes:Q,slots:D,pendingTasks:1};try{if(en(a,s,je,-1),s.replay.pendingTasks===1&&0<s.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");if(s.replay.pendingTasks--,H.pendingTasks===0&&H.status===Le){H.status=Ue,a.completedBoundaries.push(H);break e}}catch(it){H.status=qe,de=er(s.componentStack),U=Sr(a,it,de,s.debugTask),Ga(H,U,it,de,!1),s.replay.pendingTasks--,a.clientRenderedBoundaries.push(H)}finally{s.blockedBoundary=Ze,s.hoistableState=nt,s.replay=te,s.keyPath=ue}H=Qs(a,null,{nodes:T,slots:re,pendingTasks:0},ke,-1,Ze,H.fallbackState,kt,[p[0],"Suspense Fallback",p[2]],s.formatContext,s.context,s.treeContext,s.componentStack,!0,vr,s.debugTask),ja(H),a.pingedTasks.push(H)}}R.splice(ie,1);break}}}function $r(a,s,p,D){s.replay!==null&&typeof s.replay.slots=="number"?ou(a,s,s.replay.slots,p,D):(s.node=p,s.childIndex=D,p=s.componentStack,D=s.debugTask,ja(s),Gn(a,s),s.componentStack=p,s.debugTask=D)}function Gn(a,s){var p=s.node,D=s.childIndex;if(p!==null){if(typeof p=="object"){switch(p.$$typeof){case Za:var T=p.type,R=p.key;p=p.props;var M=p.ref;M=M!==void 0?M:null;var H=s.debugTask,Q=vt(T);R=R??(D===-1?0:D);var U=[s.keyPath,Q,R];s.replay!==null?H?H.run(ii.bind(null,a,s,U,Q,R,D,T,p,M,s.replay)):ii(a,s,U,Q,R,D,T,p,M,s.replay):H?H.run(kr.bind(null,a,s,U,T,p,M)):kr(a,s,U,T,p,M);return;case xo:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case xa:if(p=le(p),a.status===12)throw null;$r(a,s,p,D);return}if(Ja(p)){Ji(a,s,p,D);return}if(p===null||typeof p!="object"?R=null:(T=su&&p[su]||p["@@iterator"],R=typeof T=="function"?T:null),R&&(T=R.call(p))){if(T===p?(D!==-1||s.componentStack===null||typeof s.componentStack.type!="function"||Object.prototype.toString.call(s.componentStack.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(T)!=="[object Generator]")&&(nn||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),nn=!0):p.entries!==R||ot||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ot=!0),p=T.next(),!p.done){R=[];do R.push(p.value),p=T.next();while(!p.done);Ji(a,s,R,D)}return}if(typeof p.then=="function")return s.thenableState=null,$r(a,s,Js(p),D);if(p.$$typeof===rs)return $r(a,s,p._currentValue,D);throw a=Object.prototype.toString.call(p),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}typeof p=="string"?(s=s.blockedSegment,s!==null&&(s.lastPushedText=Fe(s.chunks,p,a.renderState,s.lastPushedText))):typeof p=="number"||typeof p=="bigint"?(s=s.blockedSegment,s!==null&&(s.lastPushedText=Fe(s.chunks,""+p,a.renderState,s.lastPushedText))):(typeof p=="function"&&(a=p.displayName||p.name||"Component",console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",a,a)),typeof p=="symbol"&&console.error(`Symbols are not valid as a React child.
|
|
142
|
-
%s`,String(p)))}}function Ji(a,s,p,D){var T=s.keyPath,R=s.componentStack,M=s.debugTask;if(oi(s,s.node._debugInfo),D!==-1&&(s.keyPath=[s.keyPath,"Fragment",D],s.replay!==null)){for(var H=s.replay,Q=H.nodes,U=0;U<Q.length;U++){var ie=Q[U];if(ie[1]===D){D=ie[2],ie=ie[3],s.replay={nodes:D,slots:ie,pendingTasks:1};try{if(Ji(a,s,p,-1),s.replay.pendingTasks===1&&0<s.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");s.replay.pendingTasks--}catch(je){if(typeof je=="object"&&je!==null&&(je===Kn||typeof je.then=="function"))throw je;s.replay.pendingTasks--;var re=er(s.componentStack);p=s.blockedBoundary;var de=je,ue=ie;ie=Sr(a,de,re,s.debugTask),tn(a,p,D,ue,de,ie,re,!1)}s.replay=H,Q.splice(U,1);break}}s.keyPath=T,s.componentStack=R,s.debugTask=M;return}if(H=s.treeContext,Q=p.length,s.replay!==null&&(U=s.replay.slots,U!==null&&typeof U=="object")){for(D=0;D<Q;D++)ie=p[D],s.treeContext=Yi(H,Q,D),de=U[D],typeof de=="number"?(ou(a,s,de,ie,D),delete U[D]):en(a,s,ie,D);s.treeContext=H,s.keyPath=T,s.componentStack=R,s.debugTask=M;return}for(U=0;U<Q;U++){if(D=p[U],ue=a,ie=s,de=D,de!==null&&typeof de=="object"&&(de.$$typeof===Za||de.$$typeof===xo)&&de._store&&(!de._store.validated&&de.key==null||de._store.validated===2)){if(typeof de._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");if(de._store.validated=1,re=ue.didWarnForKey,re==null&&(re=ue.didWarnForKey=new WeakSet),ue=ie.componentStack,ue!==null&&!re.has(ue)){re.add(ue);var te=vt(de.type);re=de._owner;var Ze=ue.owner;if(ue="",Ze&&typeof Ze.type<"u"){var nt=vt(Ze.type);nt&&(ue=`
|
|
143
|
-
|
|
144
|
-
Check the render method of \``+nt+"`.")}ue||te&&(ue=`
|
|
145
|
-
|
|
146
|
-
Check the top-level render call using <`+te+">."),te="",re!=null&&Ze!==re&&(Ze=null,typeof re.type<"u"?Ze=vt(re.type):typeof re.name=="string"&&(Ze=re.name),Ze&&(te=" It was passed a child from "+Ze+".")),re=ie.componentStack,ie.componentStack={parent:ie.componentStack,type:de.type,owner:de._owner,stack:de._debugStack},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',ue,te),ie.componentStack=re}}s.treeContext=Yi(H,Q,U),en(a,s,D,U)}s.treeContext=H,s.keyPath=T,s.componentStack=R,s.debugTask=M}function si(a,s){a=a.trackedPostpones,a!==null&&(s=s.trackedContentKeyPath,s!==null&&(s=a.workingMap.get(s),s!==void 0&&(s.length=4,s[2]=[],s[3]=null)))}function vo(a,s,p){return Qs(a,p,s.replay,s.node,s.childIndex,s.blockedBoundary,s.hoistableState,s.abortSet,s.keyPath,s.formatContext,s.context,s.treeContext,s.componentStack,s.isFallback,vr,s.debugTask)}function $s(a,s,p){var D=s.blockedSegment,T=Ua(a,D.chunks.length,null,s.formatContext,D.lastPushedText,!0);return D.children.push(T),D.lastPushedText=!1,jn(a,p,s.node,s.childIndex,s.blockedBoundary,T,s.blockedPreamble,s.hoistableState,s.abortSet,s.keyPath,s.formatContext,s.context,s.treeContext,s.componentStack,s.isFallback,vr,s.debugTask)}function en(a,s,p,D){var T=s.formatContext,R=s.context,M=s.keyPath,H=s.treeContext,Q=s.componentStack,U=s.debugTask,ie=s.blockedSegment;if(ie===null)try{return $r(a,s,p,D)}catch(ue){if(ti(),p=ue===Kn?ei():ue,typeof p=="object"&&p!==null){if(typeof p.then=="function"){D=fa(),a=vo(a,s,D).ping,p.then(a,a),s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,s.componentStack=Q,s.debugTask=U,da(R);return}if(p.message==="Maximum call stack size exceeded"){p=fa(),p=vo(a,s,p),a.pingedTasks.push(p),s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,s.componentStack=Q,s.debugTask=U,da(R);return}}}else{var re=ie.children.length,de=ie.chunks.length;try{return $r(a,s,p,D)}catch(ue){if(ti(),ie.children.length=re,ie.chunks.length=de,p=ue===Kn?ei():ue,typeof p=="object"&&p!==null){if(typeof p.then=="function"){D=fa(),a=$s(a,s,D).ping,p.then(a,a),s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,s.componentStack=Q,s.debugTask=U,da(R);return}if(p.message==="Maximum call stack size exceeded"){p=fa(),p=$s(a,s,p),a.pingedTasks.push(p),s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,s.componentStack=Q,s.debugTask=U,da(R);return}}}}throw s.formatContext=T,s.context=R,s.keyPath=M,s.treeContext=H,da(R),p}function el(a){var s=a.blockedBoundary;a=a.blockedSegment,a!==null&&(a.status=3,tl(this,s,a))}function tn(a,s,p,D,T,R,M,H){for(var Q=0;Q<p.length;Q++){var U=p[Q];if(U.length===4)tn(a,s,U[2],U[3],T,R,M,H);else{var ie=a;U=U[5];var re=T,de=R,ue=M,te=H,Ze=$t(ie,new Set,null,null);Ze.parentFlushed=!0,Ze.rootSegmentID=U,Ze.status=qe,Ga(Ze,de,re,ue,te),Ze.parentFlushed&&ie.clientRenderedBoundaries.push(Ze)}}if(p.length=0,D!==null){if(s===null)throw Error("We should not have any resumable nodes in the shell. This is a bug in React.");if(s.status!==qe&&(s.status=qe,Ga(s,R,T,M,H),s.parentFlushed&&a.clientRenderedBoundaries.push(s)),typeof D=="object")for(var nt in D)delete D[nt]}}function li(a,s,p){var D=a.blockedBoundary,T=a.blockedSegment;if(T!==null){if(T.status===6)return;T.status=3}if(T=er(a.componentStack),D===null){if(s.status!==13&&s.status!==et){if(D=a.replay,D===null){Sr(s,p,T,null),Ya(s,p,T,null);return}D.pendingTasks--,D.pendingTasks===0&&0<D.nodes.length&&(a=Sr(s,p,T,null),tn(s,null,D.nodes,D.slots,p,a,T,!0)),s.pendingRootTasks--,s.pendingRootTasks===0&&cn(s)}}else D.pendingTasks--,D.status!==qe&&(D.status=qe,a=Sr(s,p,T,null),D.status=qe,Ga(D,a,p,T,!0),si(s,D),D.parentFlushed&&s.clientRenderedBoundaries.push(D)),D.fallbackAbortableTasks.forEach(function(R){return li(R,s,p)}),D.fallbackAbortableTasks.clear();s.allPendingTasks--,s.allPendingTasks===0&&Va(s)}function ya(a,s){try{var p=a.renderState,D=p.onHeaders;if(D){var T=p.headers;if(T){p.headers=null;var R=T.preconnects;if(T.fontPreloads&&(R&&(R+=", "),R+=T.fontPreloads),T.highImagePreloads&&(R&&(R+=", "),R+=T.highImagePreloads),!s){var M=p.styles.values(),H=M.next();e:for(;0<T.remainingCapacity&&!H.done;H=M.next())for(var Q=H.value.sheets.values(),U=Q.next();0<T.remainingCapacity&&!U.done;U=Q.next()){var ie=U.value,re=ie.props,de=re.href,ue=ie.props,te=Wn(ue.href,"style",{crossOrigin:ue.crossOrigin,integrity:ue.integrity,nonce:ue.nonce,type:ue.type,fetchPriority:ue.fetchPriority,referrerPolicy:ue.referrerPolicy,media:ue.media});if(0<=(T.remainingCapacity-=te.length+2))p.resets.style[de]=Ar,R&&(R+=", "),R+=te,p.resets.style[de]=typeof re.crossOrigin=="string"||typeof re.integrity=="string"?[re.crossOrigin,re.integrity]:Ar;else break e}}D(R?{Link:R}:{})}}}catch(Ze){Sr(a,Ze,{},null)}}function cn(a){a.trackedPostpones===null&&ya(a,!0),a.trackedPostpones===null&&qi(a),a.onShellError=va,a=a.onShellReady,a()}function Va(a){ya(a,a.trackedPostpones===null?!0:a.completedRootSegment===null||a.completedRootSegment.status!==Re),qi(a),a=a.onAllReady,a()}function ui(a,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null&&s.children[0].id===-1){var p=s.children[0];p.id=s.id,p.parentFlushed=!0,p.status===Ue&&ui(a,p)}else a.completedSegments.push(s)}function tl(a,s,p){if(s===null){if(p!==null&&p.parentFlushed){if(a.completedRootSegment!==null)throw Error("There can only be one root segment. This is a bug in React.");a.completedRootSegment=p}a.pendingRootTasks--,a.pendingRootTasks===0&&cn(a)}else s.pendingTasks--,s.status!==qe&&(s.pendingTasks===0?(s.status===Le&&(s.status=Ue),p!==null&&p.parentFlushed&&p.status===Ue&&ui(s,p),s.parentFlushed&&a.completedBoundaries.push(s),s.status===Ue&&(s.fallbackAbortableTasks.forEach(el,a),s.fallbackAbortableTasks.clear(),a.pendingRootTasks===0&&a.trackedPostpones===null&&s.contentPreamble!==null&&qi(a))):p!==null&&p.parentFlushed&&p.status===Ue&&(ui(s,p),s.completedSegments.length===1&&s.parentFlushed&&a.partialBoundaries.push(s)));a.allPendingTasks--,a.allPendingTasks===0&&Va(a)}function bo(a){if(a.status!==et&&a.status!==13){var s=Nn,p=ur.H;ur.H=We;var D=ur.A;ur.A=It;var T=ht;ht=a;var R=ur.getCurrentStack;ur.getCurrentStack=go;var M=He;He=a.resumableState;try{var H=a.pingedTasks,Q;for(Q=0;Q<H.length;Q++){var U=a,ie=H[Q],re=ie.blockedSegment;if(re===null){var de=void 0,ue=U;if(U=ie,U.replay.pendingTasks!==0){da(U.context),de=Ne,Ne=U;try{if(typeof U.replay.slots=="number"?ou(ue,U,U.replay.slots,U.node,U.childIndex):Gn(ue,U),U.replay.pendingTasks===1&&0<U.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");U.replay.pendingTasks--,U.abortSet.delete(U),tl(ue,U.blockedBoundary,null)}catch(at){ti();var te=at===Kn?ei():at;if(typeof te=="object"&&te!==null&&typeof te.then=="function"){var Ze=U.ping;te.then(Ze,Ze),U.thenableState=fa()}else{U.replay.pendingTasks--,U.abortSet.delete(U);var nt=er(U.componentStack),je=void 0,ke=ue,kt=U.blockedBoundary,it=ue.status===12?ue.fatalError:te,Ge=nt,ar=U.replay.nodes,br=U.replay.slots;je=Sr(ke,it,Ge,U.debugTask),tn(ke,kt,ar,br,it,je,Ge,!1),ue.pendingRootTasks--,ue.pendingRootTasks===0&&cn(ue),ue.allPendingTasks--,ue.allPendingTasks===0&&Va(ue)}}finally{Ne=de}}}else if(ue=de=void 0,je=ie,ke=re,ke.status===Le){ke.status=6,da(je.context),ue=Ne,Ne=je;var Rt=ke.children.length,Mt=ke.chunks.length;try{Gn(U,je),ke.lastPushedText&&ke.textEmbedded&&ke.chunks.push(Fa),je.abortSet.delete(je),ke.status=Ue,tl(U,je.blockedBoundary,ke)}catch(at){ti(),ke.children.length=Rt,ke.chunks.length=Mt;var pt=at===Kn?ei():U.status===12?U.fatalError:at;if(typeof pt=="object"&&pt!==null&&typeof pt.then=="function"){ke.status=Le,je.thenableState=fa();var or=je.ping;pt.then(or,or)}else{var ir=er(je.componentStack);je.abortSet.delete(je),ke.status=4;var Ke=je.blockedBoundary,bt=je.debugTask;de=Sr(U,pt,ir,bt),Ke===null?Ya(U,pt,ir,bt):(Ke.pendingTasks--,Ke.status!==qe&&(Ke.status=qe,Ga(Ke,de,pt,ir,!1),si(U,Ke),Ke.parentFlushed&&U.clientRenderedBoundaries.push(Ke),U.pendingRootTasks===0&&U.trackedPostpones===null&&Ke.contentPreamble!==null&&qi(U))),U.allPendingTasks--,U.allPendingTasks===0&&Va(U)}}finally{Ne=ue}}}H.splice(0,Q),a.destination!==null&&yo(a,a.destination)}catch(at){H={},Sr(a,at,H,null),Ya(a,at,H,null)}finally{He=M,ur.H=p,ur.A=D,ur.getCurrentStack=R,p===We&&da(s),ht=T}}}function rl(a,s,p){s.preambleChildren.length&&p.push(s.preambleChildren);for(var D=!1,T=0;T<s.children.length;T++)D=wa(a,s.children[T],p)||D;return D}function wa(a,s,p){var D=s.boundary;if(D===null)return rl(a,s,p);var T=D.contentPreamble,R=D.fallbackPreamble;if(T===null||R===null)return!1;switch(D.status){case Ue:if(Fr(a.renderState,T),s=D.completedSegments[0],!s)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return rl(a,s,p);case Re:if(a.trackedPostpones!==null)return!0;case qe:if(s.status===Ue)return Fr(a.renderState,R),rl(a,s,p);default:return!0}}function qi(a){if(a.completedRootSegment&&a.completedPreambleSegments===null){var s=[],p=wa(a,a.completedRootSegment,s),D=a.renderState.preamble;(p===!1||D.headChunks&&D.bodyChunks)&&(a.completedPreambleSegments=s)}}function ci(a,s,p,D){switch(p.parentFlushed=!0,p.status){case Le:p.id=a.nextSegmentId++;case Re:return D=p.id,p.lastPushedText=!1,p.textEmbedded=!1,a=a.renderState,v(s,ml),v(s,a.placeholderPrefix),a=F(D.toString(16)),v(s,a),E(s,Lc);case Ue:p.status=dr;var T=!0,R=p.chunks,M=0;p=p.children;for(var H=0;H<p.length;H++){for(T=p[H];M<T.index;M++)v(s,R[M]);T=Ki(a,s,T,D)}for(;M<R.length-1;M++)v(s,R[M]);return M<R.length&&(T=E(s,R[M])),T;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Ki(a,s,p,D){var T=p.boundary;if(T===null)return ci(a,s,p,D);if(T.parentFlushed=!0,T.status===qe){var R=T.errorDigest,M=T.errorMessage,H=T.errorStack,Q=T.errorComponentStack;return E(s,Pd),v(s,Od),R&&(v(s,Mc),v(s,F(pe(R))),v(s,yl)),M&&(v(s,Bd),v(s,F(pe(M))),v(s,yl)),H&&(v(s,Id),v(s,F(pe(H))),v(s,yl)),Q&&(v(s,Ld),v(s,F(pe(Q))),v(s,yl)),E(s,Ve),ci(a,s,p,D),(a=T.fallbackPreamble)&&ic(s,a),E(s,bl)}if(T.status!==Ue)return T.status===Le&&(T.rootSegmentID=a.nextSegmentId++),0<T.completedSegments.length&&a.partialBoundaries.push(T),oc(s,a.renderState,T.rootSegmentID),D&&(T=T.fallbackState,T.styles.forEach(ca,D),T.stylesheets.forEach(Vs,D)),ci(a,s,p,D),E(s,bl);if(T.byteSize>a.progressiveChunkSize)return T.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(T),oc(s,a.renderState,T.rootSegmentID),ci(a,s,p,D),E(s,bl);if(D&&(p=T.contentState,p.styles.forEach(ca,D),p.stylesheets.forEach(Vs,D)),E(s,vl),p=T.completedSegments,p.length!==1)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return Ki(a,s,p[0],D),(a=T.contentPreamble)&&ic(s,a),E(s,bl)}function nl(a,s,p,D){return Cd(s,a.renderState,p.parentFormatContext,p.id),Ki(a,s,p,D),Sn(s,p.parentFormatContext)}function iu(a,s,p){for(var D=p.completedSegments,T=0;T<D.length;T++)hc(a,s,p,D[T]);D.length=0,Kr(s,p.contentState,a.renderState),D=a.resumableState,a=a.renderState,T=p.rootSegmentID,p=p.contentState;var R=a.stylesToHoist;return a.stylesToHoist=!1,v(s,a.startInlineScript),R?(D.instructions&gi)===Vn?(D.instructions=D.instructions|Da|gi,v(s,Su)):(D.instructions&Da)===Vn?(D.instructions|=Da,v(s,xi)):v(s,Cl):(D.instructions&gi)===Vn?(D.instructions|=gi,v(s,Qa)):v(s,Dl),D=F(T.toString(16)),v(s,a.boundaryPrefix),v(s,D),v(s,Vd),v(s,a.segmentPrefix),v(s,D),R?(v(s,Bt),uc(s,p)):v(s,Xc),p=E(s,Xd),Zl(s,a)&&p}function hc(a,s,p,D){if(D.status===dr)return!0;var T=p.contentState,R=D.id;if(R===-1){if((D.id=p.rootSegmentID)===-1)throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return nl(a,s,D,T)}return R===p.rootSegmentID?nl(a,s,D,T):(nl(a,s,D,T),p=a.resumableState,a=a.renderState,v(s,a.startInlineScript),(p.instructions&ls)===Vn?(p.instructions|=ls,v(s,Eu)):v(s,Yc),v(s,a.segmentPrefix),R=F(R.toString(16)),v(s,R),v(s,Vc),v(s,a.placeholderPrefix),v(s,R),s=E(s,Fu),s)}function yo(a,s){lr=new Uint8Array(2048),mr=0;try{if(!(0<a.pendingRootTasks)){var p,D=a.completedRootSegment;if(D!==null){if(D.status===Re)return;var T=a.completedPreambleSegments;if(T===null)return;var R=a.renderState,M=R.preamble,H=M.htmlChunks,Q=M.headChunks,U;if(H){for(U=0;U<H.length;U++)v(s,H[U]);if(Q)for(U=0;U<Q.length;U++)v(s,Q[U]);else v(s,Ye("head")),v(s,Vt)}else if(Q)for(U=0;U<Q.length;U++)v(s,Q[U]);var ie=R.charsetChunks;for(U=0;U<ie.length;U++)v(s,ie[U]);ie.length=0,R.preconnects.forEach(Qr,s),R.preconnects.clear();var re=R.viewportChunks;for(U=0;U<re.length;U++)v(s,re[U]);re.length=0,R.fontPreloads.forEach(Qr,s),R.fontPreloads.clear(),R.highImagePreloads.forEach(Qr,s),R.highImagePreloads.clear(),R.styles.forEach(Jl,s);var de=R.importMapChunks;for(U=0;U<de.length;U++)v(s,de[U]);de.length=0,R.bootstrapScripts.forEach(Qr,s),R.scripts.forEach(Qr,s),R.scripts.clear(),R.bulkPreloads.forEach(Qr,s),R.bulkPreloads.clear();var ue=R.hoistableChunks;for(U=0;U<ue.length;U++)v(s,ue[U]);for(R=ue.length=0;R<T.length;R++){var te=T[R];for(M=0;M<te.length;M++)Ki(a,s,te[M],null)}var Ze=a.renderState.preamble,nt=Ze.headChunks;(Ze.htmlChunks||nt)&&v(s,qr("head"));var je=Ze.bodyChunks;if(je)for(T=0;T<je.length;T++)v(s,je[T]);Ki(a,s,D,null),a.completedRootSegment=null,Zl(s,a.renderState)}var ke=a.renderState;D=0;var kt=ke.viewportChunks;for(D=0;D<kt.length;D++)v(s,kt[D]);kt.length=0,ke.preconnects.forEach(Qr,s),ke.preconnects.clear(),ke.fontPreloads.forEach(Qr,s),ke.fontPreloads.clear(),ke.highImagePreloads.forEach(Qr,s),ke.highImagePreloads.clear(),ke.styles.forEach(lc,s),ke.scripts.forEach(Qr,s),ke.scripts.clear(),ke.bulkPreloads.forEach(Qr,s),ke.bulkPreloads.clear();var it=ke.hoistableChunks;for(D=0;D<it.length;D++)v(s,it[D]);it.length=0;var Ge=a.clientRenderedBoundaries;for(p=0;p<Ge.length;p++){var ar=Ge[p];ke=s;var br=a.resumableState,Rt=a.renderState,Mt=ar.rootSegmentID,pt=ar.errorDigest,or=ar.errorMessage,ir=ar.errorStack,Ke=ar.errorComponentStack;v(ke,Rt.startInlineScript),(br.instructions&us)===Vn?(br.instructions|=us,v(ke,Zd)):v(ke,Zn),v(ke,Rt.boundaryPrefix),v(ke,F(Mt.toString(16))),v(ke,El),(pt||or||ir||Ke)&&(v(ke,Jn),v(ke,F(Us(pt||"")))),(or||ir||Ke)&&(v(ke,Jn),v(ke,F(Us(or||"")))),(ir||Ke)&&(v(ke,Jn),v(ke,F(Us(ir||"")))),Ke&&(v(ke,Jn),v(ke,F(Us(Ke))));var bt=E(ke,ku);if(!bt){a.destination=null,p++,Ge.splice(0,p);return}}Ge.splice(0,p);var at=a.completedBoundaries;for(p=0;p<at.length;p++)if(!iu(a,s,at[p])){a.destination=null,p++,at.splice(0,p);return}at.splice(0,p),A(s),lr=new Uint8Array(2048),mr=0;var fr=a.partialBoundaries;for(p=0;p<fr.length;p++){e:{Ge=a,ar=s;var hr=fr[p],zt=hr.completedSegments;for(bt=0;bt<zt.length;bt++)if(!hc(Ge,ar,hr,zt[bt])){bt++,zt.splice(0,bt);var gn=!1;break e}zt.splice(0,bt),gn=Kr(ar,hr.contentState,Ge.renderState)}if(!gn){a.destination=null,p++,fr.splice(0,p);return}}fr.splice(0,p);var Or=a.completedBoundaries;for(p=0;p<Or.length;p++)if(!iu(a,s,Or[p])){a.destination=null,p++,Or.splice(0,p);return}Or.splice(0,p)}}finally{a.allPendingTasks===0&&a.pingedTasks.length===0&&a.clientRenderedBoundaries.length===0&&a.completedBoundaries.length===0?(a.flushScheduled=!1,p=a.resumableState,p.hasBody&&v(s,qr("body")),p.hasHtml&&v(s,qr("html")),A(s),a.abortableTasks.size!==0&&console.error("There was still abortable task at the root when we closed. This is a bug in React."),a.status=et,s.close(),a.destination=null):A(s)}}function al(a){a.flushScheduled=a.destination!==null,di(function(){return bo(a)}),b(function(){a.status===10&&(a.status=11),a.trackedPostpones===null&&ya(a,a.pendingRootTasks===0)})}function Xa(a){a.flushScheduled===!1&&a.pingedTasks.length===0&&a.destination!==null&&(a.flushScheduled=!0,b(function(){var s=a.destination;s?yo(a,s):a.flushScheduled=!1}))}function ol(a,s){if(a.status===13)a.status=et,N(s,a.fatalError);else if(a.status!==et&&a.destination===null){a.destination=s;try{yo(a,s)}catch(p){s={},Sr(a,p,s,null),Ya(a,p,s,null)}}}function wo(a,s){(a.status===11||a.status===10)&&(a.status=12);try{var p=a.abortableTasks;if(0<p.size){var D=s===void 0?Error("The render was aborted by the server without a reason."):typeof s=="object"&&s!==null&&typeof s.then=="function"?Error("The render was aborted by the server with a promise."):s;a.fatalError=D,p.forEach(function(T){return li(T,a,D)}),p.clear()}a.destination!==null&&yo(a,a.destination)}catch(T){s={},Sr(a,T,s,null),Ya(a,T,s,null)}}function pc(){var a=Qi.version;if(a!=="19.1.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
147
|
-
- react: `+(a+`
|
|
148
|
-
- react-dom: 19.1.1
|
|
149
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}var Qi=L,$i=Ho,Za=Symbol.for("react.transitional.element"),xo=Symbol.for("react.portal"),es=Symbol.for("react.fragment"),ts=Symbol.for("react.strict_mode"),Do=Symbol.for("react.profiler"),gc=Symbol.for("react.provider"),il=Symbol.for("react.consumer"),rs=Symbol.for("react.context"),sl=Symbol.for("react.forward_ref"),ns=Symbol.for("react.suspense"),Co=Symbol.for("react.suspense_list"),Yn=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),mc=Symbol.for("react.scope"),ll=Symbol.for("react.activity"),At=Symbol.for("react.legacy_hidden"),st=Symbol.for("react.memo_cache_sentinel"),kd=Symbol.for("react.view_transition"),su=Symbol.iterator,Ja=Array.isArray,lu=new WeakMap,vc=new WeakMap,uu=Symbol.for("react.client.reference"),cu=new MessageChannel,Eo=[];cu.port1.onmessage=function(){var a=Eo.shift();a&&a()};var Td=Promise,di=typeof queueMicrotask=="function"?queueMicrotask:function(a){Td.resolve(null).then(a).catch(m)},lr=null,mr=0,Mr=new TextEncoder,mt=Object.assign,lt=Object.prototype.hasOwnProperty,Fo=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ul={},fi={},bc=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),So=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),hi={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Tn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},An={},yc=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),as=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wc=!1,xc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Tr={},os=/^on./,Gt=/^on[^A-Z]/,du=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fu=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_n=/^(?:webkit|moz|o)[A-Z]/,ko=/^-ms-/,hu=/-(.)/g,is=/;\s*$/,To={},ss={},Yt=!1,zr=!1,Ad=/["'&<>]/,Dc=/([A-Z])/g,Cc=/^ms-/,pi=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,ur=Qi.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Hr=$i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,cl=Object.freeze({pending:!1,data:null,method:null,action:null}),cr=Hr.d;Hr.d={f:cr.f,r:cr.r,D:function(a){var s=ht||null;if(s){var p=s.resumableState,D=s.renderState;if(typeof a=="string"&&a){if(!p.dnsResources.hasOwnProperty(a)){p.dnsResources[a]=Et,p=D.headers;var T,R;(R=p&&0<p.remainingCapacity)&&(R=(T="<"+ua(a)+">; rel=dns-prefetch",0<=(p.remainingCapacity-=T.length+2))),R?(D.resets.dns[a]=Et,p.preconnects&&(p.preconnects+=", "),p.preconnects+=T):(T=[],Ct(T,{href:a,rel:"dns-prefetch"}),D.preconnects.add(T))}Xa(s)}}else cr.D(a)},C:function(a,s){var p=ht||null;if(p){var D=p.resumableState,T=p.renderState;if(typeof a=="string"&&a){var R=s==="use-credentials"?"credentials":typeof s=="string"?"anonymous":"default";if(!D.connectResources[R].hasOwnProperty(a)){D.connectResources[R][a]=Et,D=T.headers;var M,H;if(H=D&&0<D.remainingCapacity){if(H="<"+ua(a)+">; rel=preconnect",typeof s=="string"){var Q=Ys(s,"crossOrigin");H+='; crossorigin="'+Q+'"'}H=(M=H,0<=(D.remainingCapacity-=M.length+2))}H?(T.resets.connect[R][a]=Et,D.preconnects&&(D.preconnects+=", "),D.preconnects+=M):(R=[],Ct(R,{rel:"preconnect",href:a,crossOrigin:s}),T.preconnects.add(R))}Xa(p)}}else cr.C(a,s)},L:function(a,s,p){var D=ht||null;if(D){var T=D.resumableState,R=D.renderState;if(s&&a){switch(s){case"image":if(p)var M=p.imageSrcSet,H=p.imageSizes,Q=p.fetchPriority;var U=M?M+`
|
|
150
|
-
`+(H||""):a;if(T.imageResources.hasOwnProperty(U))return;T.imageResources[U]=Ar,T=R.headers;var ie;T&&0<T.remainingCapacity&&typeof M!="string"&&Q==="high"&&(ie=Wn(a,s,p),0<=(T.remainingCapacity-=ie.length+2))?(R.resets.image[U]=Ar,T.highImagePreloads&&(T.highImagePreloads+=", "),T.highImagePreloads+=ie):(T=[],Ct(T,mt({rel:"preload",href:M?void 0:a,as:s},p)),Q==="high"?R.highImagePreloads.add(T):(R.bulkPreloads.add(T),R.preloads.images.set(U,T)));break;case"style":if(T.styleResources.hasOwnProperty(a))return;M=[],Ct(M,mt({rel:"preload",href:a,as:s},p)),T.styleResources[a]=!p||typeof p.crossOrigin!="string"&&typeof p.integrity!="string"?Ar:[p.crossOrigin,p.integrity],R.preloads.stylesheets.set(a,M),R.bulkPreloads.add(M);break;case"script":if(T.scriptResources.hasOwnProperty(a))return;M=[],R.preloads.scripts.set(a,M),R.bulkPreloads.add(M),Ct(M,mt({rel:"preload",href:a,as:s},p)),T.scriptResources[a]=!p||typeof p.crossOrigin!="string"&&typeof p.integrity!="string"?Ar:[p.crossOrigin,p.integrity];break;default:if(T.unknownResources.hasOwnProperty(s)){if(M=T.unknownResources[s],M.hasOwnProperty(a))return}else M={},T.unknownResources[s]=M;if(M[a]=Ar,(T=R.headers)&&0<T.remainingCapacity&&s==="font"&&(U=Wn(a,s,p),0<=(T.remainingCapacity-=U.length+2)))R.resets.font[a]=Ar,T.fontPreloads&&(T.fontPreloads+=", "),T.fontPreloads+=U;else switch(T=[],a=mt({rel:"preload",href:a,as:s},p),Ct(T,a),s){case"font":R.fontPreloads.add(T);break;default:R.bulkPreloads.add(T)}}Xa(D)}}else cr.L(a,s,p)},m:function(a,s){var p=ht||null;if(p){var D=p.resumableState,T=p.renderState;if(a){var R=s&&typeof s.as=="string"?s.as:"script";switch(R){case"script":if(D.moduleScriptResources.hasOwnProperty(a))return;R=[],D.moduleScriptResources[a]=!s||typeof s.crossOrigin!="string"&&typeof s.integrity!="string"?Ar:[s.crossOrigin,s.integrity],T.preloads.moduleScripts.set(a,R);break;default:if(D.moduleUnknownResources.hasOwnProperty(R)){var M=D.unknownResources[R];if(M.hasOwnProperty(a))return}else M={},D.moduleUnknownResources[R]=M;R=[],M[a]=Ar}Ct(R,mt({rel:"modulepreload",href:a},s)),T.bulkPreloads.add(R),Xa(p)}}else cr.m(a,s)},X:function(a,s){var p=ht||null;if(p){var D=p.resumableState,T=p.renderState;if(a){var R=D.scriptResources.hasOwnProperty(a)?D.scriptResources[a]:void 0;R!==Et&&(D.scriptResources[a]=Et,s=mt({src:a,async:!0},s),R&&(R.length===2&&ut(s,R),a=T.preloads.scripts.get(a))&&(a.length=0),a=[],T.scripts.add(a),Ws(a,s),Xa(p))}}else cr.X(a,s)},S:function(a,s,p){var D=ht||null;if(D){var T=D.resumableState,R=D.renderState;if(a){s=s||"default";var M=R.styles.get(s),H=T.styleResources.hasOwnProperty(a)?T.styleResources[a]:void 0;H!==Et&&(T.styleResources[a]=Et,M||(M={precedence:F(pe(s)),rules:[],hrefs:[],sheets:new Map},R.styles.set(s,M)),s={state:Nr,props:mt({rel:"stylesheet",href:a,"data-precedence":s},p)},H&&(H.length===2&&ut(s.props,H),(R=R.preloads.stylesheets.get(a))&&0<R.length?R.length=0:s.state=ws),M.sheets.set(a,s),Xa(D))}}else cr.S(a,s,p)},M:function(a,s){var p=ht||null;if(p){var D=p.resumableState,T=p.renderState;if(a){var R=D.moduleScriptResources.hasOwnProperty(a)?D.moduleScriptResources[a]:void 0;R!==Et&&(D.moduleScriptResources[a]=Et,s=mt({src:a,type:"module",async:!0},s),R&&(R.length===2&&ut(s,R),a=T.preloads.moduleScripts.get(a))&&(a.length=0),a=[],T.scripts.add(a),Ws(a,s),Xa(p))}}else cr.M(a,s)}};var Vn=0,ls=1,gi=2,us=4,Da=8,Et=null,Ar=[];Object.freeze(Ar),S('"></template>');var Ec=S("<script>"),pu=S("<\/script>"),_r=S('<script src="'),dn=S('<script type="module" src="'),Wr=S('" nonce="'),dl=S('" integrity="'),gu=S('" crossorigin="'),Ot=S('" async=""><\/script>'),Ao=/(<\/|<)(s)(cript)/gi,cs=S('<script type="importmap">'),Fc=S("<\/script>"),ds={},fl=0,Ca=0,mi=1,Ur=2,Ea=3,fn=4,Me=5,Xn=6,hl=7,mu=8,fs=9,Fa=S("<!-- -->"),vu=new Map,Sc=S(' style="'),kc=S(":"),_d=S(";"),Rr=S(" "),hn=S('="'),rn=S('"'),bu=S('=""'),hs=S(pe("javascript:throw new Error('React form unexpectedly submitted.')")),Tc=S('<input type="hidden"'),Vt=S(">"),ps=S("/>"),Ac=!1,_c=!1,Rc=!1,yu=!1,wu=!1,Nc=!1,Pc=!1,gs=!1,xu=!1,ms=!1,vs=!1,pl=S(' selected=""'),Oc=S(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`),_o=S("<!--F!-->"),Bc=S("<!--F-->"),Rn=/(<\/|<)(s)(tyle)/gi,vi=S(`
|
|
151
|
-
`),Ic=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Du=new Map,gl=S("<!DOCTYPE html>"),bs=new Map,ml=S('<template id="'),Lc=S('"></template>'),vl=S("<!--$-->"),Rd=S('<!--$?--><template id="'),Nd=S('"></template>'),Pd=S("<!--$!-->"),bl=S("<!--/$-->"),Od=S("<template"),yl=S('"'),Mc=S(' data-dgst="'),Bd=S(' data-msg="'),Id=S(' data-stck="'),Ld=S(' data-cstck="'),Ve=S("></template>"),zc=S("<!--"),ys=S("-->"),Cu=S('<div hidden id="'),bi=S('">'),Md=S("</div>"),zd=S('<svg aria-hidden="true" style="display:none" id="'),Hd=S('">'),Wd=S("</svg>"),wl=S('<math aria-hidden="true" style="display:none" id="'),qa=S('">'),Ud=S("</math>"),jd=S('<table hidden id="'),yi=S('">'),Hc=S("</table>"),Wc=S('<table hidden><tbody id="'),Uc=S('">'),xl=S("</tbody></table>"),wi=S('<table hidden><tr id="'),Ka=S('">'),Gd=S("</tr></table>"),Yd=S('<table hidden><colgroup id="'),jc=S('">'),Gc=S("</colgroup></table>"),Eu=S('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Yc=S('$RS("'),Vc=S('","'),Fu=S('")<\/script>');S('<template data-rsi="" data-sid="'),S('" data-pid="');var Qa=S('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),Dl=S('$RC("'),Su=S(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
|
|
48
|
+
*/var Lp;function Ry(){if(Lp)return Bl;Lp=1;var e=I,t=Yn;function r(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)c+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),p=Symbol.for("react.consumer"),b=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.scope"),_=Symbol.for("react.activity"),M=Symbol.for("react.legacy_hidden"),U=Symbol.for("react.memo_cache_sentinel"),H=Symbol.for("react.view_transition"),q=Symbol.iterator,Q=Array.isArray;function Y(s,c){var v=s.length&3,C=s.length-v,k=c;for(c=0;c<C;){var B=s.charCodeAt(c)&255|(s.charCodeAt(++c)&255)<<8|(s.charCodeAt(++c)&255)<<16|(s.charCodeAt(++c)&255)<<24;++c,B=3432918353*(B&65535)+((3432918353*(B>>>16)&65535)<<16)&4294967295,B=B<<15|B>>>17,B=461845907*(B&65535)+((461845907*(B>>>16)&65535)<<16)&4294967295,k^=B,k=k<<13|k>>>19,k=5*(k&65535)+((5*(k>>>16)&65535)<<16)&4294967295,k=(k&65535)+27492+(((k>>>16)+58964&65535)<<16)}switch(B=0,v){case 3:B^=(s.charCodeAt(c+2)&255)<<16;case 2:B^=(s.charCodeAt(c+1)&255)<<8;case 1:B^=s.charCodeAt(c)&255,B=3432918353*(B&65535)+((3432918353*(B>>>16)&65535)<<16)&4294967295,B=B<<15|B>>>17,k^=461845907*(B&65535)+((461845907*(B>>>16)&65535)<<16)&4294967295}return k^=s.length,k^=k>>>16,k=2246822507*(k&65535)+((2246822507*(k>>>16)&65535)<<16)&4294967295,k^=k>>>13,k=3266489909*(k&65535)+((3266489909*(k>>>16)&65535)<<16)&4294967295,(k^k>>>16)>>>0}var ie=new MessageChannel,ee=[];ie.port1.onmessage=function(){var s=ee.shift();s&&s()};function ve(s){ee.push(s),ie.port2.postMessage(null)}function ge(s){setTimeout(function(){throw s})}var Ie=Promise,Ae=typeof queueMicrotask=="function"?queueMicrotask:function(s){Ie.resolve(null).then(s).catch(ge)},Ge=null,Ue=0;function te(s,c){if(c.byteLength!==0)if(2048<c.byteLength)0<Ue&&(s.enqueue(new Uint8Array(Ge.buffer,0,Ue)),Ge=new Uint8Array(2048),Ue=0),s.enqueue(c);else{var v=Ge.length-Ue;v<c.byteLength&&(v===0?s.enqueue(Ge):(Ge.set(c.subarray(0,v),Ue),s.enqueue(Ge),c=c.subarray(v)),Ge=new Uint8Array(2048),Ue=0),Ge.set(c,Ue),Ue+=c.byteLength}}function fe(s,c){return te(s,c),!0}function Ea(s){Ge&&0<Ue&&(s.enqueue(new Uint8Array(Ge.buffer,0,Ue)),Ge=null,Ue=0)}var so=new TextEncoder;function le(s){return so.encode(s)}function ne(s){return so.encode(s)}function _n(s,c){typeof s.error=="function"?s.error(c):s.close()}var qt=Object.assign,rt=Object.prototype.hasOwnProperty,on=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fr={},lo={};function rr(s){return rt.call(lo,s)?!0:rt.call(fr,s)?!1:on.test(s)?lo[s]=!0:(fr[s]=!0,!1)}var Vr=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Fa=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),We=/["'&<>]/;function Oe(s){if(typeof s=="boolean"||typeof s=="number"||typeof s=="bigint")return""+s;s=""+s;var c=We.exec(s);if(c){var v="",C,k=0;for(C=c.index;C<s.length;C++){switch(s.charCodeAt(C)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}k!==C&&(v+=s.slice(k,C)),k=C+1,v+=c}s=k!==C?v+s.slice(k,C):v}return s}var qs=/([A-Z])/g,Zo=/^ms-/,Sa=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vt(s){return Sa.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var Ar=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,uo=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ks={pending:!1,data:null,method:null,action:null},Ye=uo.d;uo.d={f:Ye.f,r:Ye.r,D:bs,C:ra,L:ko,m:Lr,X:Ia,S:ki,M:To};var Xe=[];ne('"></template>');var De=ne("<script>"),nr=ne("<\/script>"),ka=ne('<script src="'),si=ne('<script type="module" src="'),_t=ne('" nonce="'),qo=ne('" integrity="'),Ko=ne('" crossorigin="'),Kn=ne('" async=""><\/script>'),ar=/(<\/|<)(s)(cript)/gi;function Ta(s,c,v,C){return""+c+(v==="s"?"\\u0073":"\\u0053")+C}var Qo=ne('<script type="importmap">'),co=ne("<\/script>");function Qs(s,c,v,C,k,B){var z=c===void 0?De:ne('<script nonce="'+Oe(c)+'">'),X=s.idPrefix;v=[];var W=s.bootstrapScriptContent,V=s.bootstrapScripts,oe=s.bootstrapModules;if(W!==void 0&&v.push(z,le((""+W).replace(ar,Ta)),nr),W=[],C!==void 0&&(W.push(Qo),W.push(le((""+JSON.stringify(C)).replace(ar,Ta))),W.push(co)),C=k?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof B=="number"?B:2e3)}:null,k={placeholderPrefix:ne(X+"P:"),segmentPrefix:ne(X+"S:"),boundaryPrefix:ne(X+"B:"),startInlineScript:z,preamble:at(),externalRuntimeScript:null,bootstrapChunks:v,importMapChunks:W,onHeaders:k,headers:C,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:c,hoistableState:null,stylesToHoist:!1},V!==void 0)for(C=0;C<V.length;C++){var ae=V[C];X=z=void 0,W={rel:"preload",as:"script",fetchPriority:"low",nonce:c},typeof ae=="string"?W.href=B=ae:(W.href=B=ae.src,W.integrity=X=typeof ae.integrity=="string"?ae.integrity:void 0,W.crossOrigin=z=typeof ae=="string"||ae.crossOrigin==null?void 0:ae.crossOrigin==="use-credentials"?"use-credentials":""),ae=s;var pe=B;ae.scriptResources[pe]=null,ae.moduleScriptResources[pe]=null,ae=[],Pt(ae,W),k.bootstrapScripts.add(ae),v.push(ka,le(Oe(B))),c&&v.push(_t,le(Oe(c))),typeof X=="string"&&v.push(qo,le(Oe(X))),typeof z=="string"&&v.push(Ko,le(Oe(z))),v.push(Kn)}if(oe!==void 0)for(V=0;V<oe.length;V++)W=oe[V],z=B=void 0,X={rel:"modulepreload",fetchPriority:"low",nonce:c},typeof W=="string"?X.href=C=W:(X.href=C=W.src,X.integrity=z=typeof W.integrity=="string"?W.integrity:void 0,X.crossOrigin=B=typeof W=="string"||W.crossOrigin==null?void 0:W.crossOrigin==="use-credentials"?"use-credentials":""),W=s,ae=C,W.scriptResources[ae]=null,W.moduleScriptResources[ae]=null,W=[],Pt(W,X),k.bootstrapScripts.add(W),v.push(si,le(Oe(C))),c&&v.push(_t,le(Oe(c))),typeof z=="string"&&v.push(qo,le(Oe(z))),typeof B=="string"&&v.push(Ko,le(Oe(B))),v.push(Kn);return k}function Nr(s,c,v,C,k){return{idPrefix:s===void 0?"":s,nextFormID:0,streamingFormat:0,bootstrapScriptContent:v,bootstrapScripts:C,bootstrapModules:k,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function at(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}}function ir(s,c,v){return{insertionMode:s,selectedValue:c,tagScope:v}}function $o(s){return ir(s==="http://www.w3.org/2000/svg"?4:s==="http://www.w3.org/1998/Math/MathML"?5:0,null,0)}function Rr(s,c,v){switch(c){case"noscript":return ir(2,null,s.tagScope|1);case"select":return ir(2,v.value!=null?v.value:v.defaultValue,s.tagScope);case"svg":return ir(4,null,s.tagScope);case"picture":return ir(2,null,s.tagScope|2);case"math":return ir(5,null,s.tagScope);case"foreignObject":return ir(2,null,s.tagScope);case"table":return ir(6,null,s.tagScope);case"thead":case"tbody":case"tfoot":return ir(7,null,s.tagScope);case"colgroup":return ir(9,null,s.tagScope);case"tr":return ir(8,null,s.tagScope);case"head":if(2>s.insertionMode)return ir(3,null,s.tagScope);break;case"html":if(s.insertionMode===0)return ir(1,null,s.tagScope)}return 6<=s.insertionMode||2>s.insertionMode?ir(2,null,s.tagScope):s}var Yr=ne("<!-- -->");function es(s,c,v,C){return c===""?C:(C&&s.push(Yr),s.push(le(Oe(c))),!0)}var fo=new Map,$s=ne(' style="'),el=ne(":"),ou=ne(";");function li(s,c){if(typeof c!="object")throw Error(r(62));var v=!0,C;for(C in c)if(rt.call(c,C)){var k=c[C];if(k!=null&&typeof k!="boolean"&&k!==""){if(C.indexOf("--")===0){var B=le(Oe(C));k=le(Oe((""+k).trim()))}else B=fo.get(C),B===void 0&&(B=ne(Oe(C.replace(qs,"-$1").toLowerCase().replace(Zo,"-ms-"))),fo.set(C,B)),k=typeof k=="number"?k===0||Vr.has(C)?le(""+k):le(k+"px"):le(Oe((""+k).trim()));v?(v=!1,s.push($s,B,el,k)):s.push(ou,B,el,k)}}v||s.push(Bt)}var bt=ne(" "),lt=ne('="'),Bt=ne('"'),_a=ne('=""');function ui(s,c,v){v&&typeof v!="function"&&typeof v!="symbol"&&s.push(bt,le(c),_a)}function Ut(s,c,v){typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&s.push(bt,le(c),lt,le(Oe(v)),Bt)}var tl=ne(Oe("javascript:throw new Error('React form unexpectedly submitted.')")),ci=ne('<input type="hidden"');function or(s,c){this.push(ci),Jr(s),Ut(this,"name",c),Ut(this,"value",s),this.push(Aa)}function Jr(s){if(typeof s!="string")throw Error(r(480))}function ts(s,c){if(typeof c.$$FORM_ACTION=="function"){var v=s.nextFormID++;s=s.idPrefix+v;try{var C=c.$$FORM_ACTION(s);if(C){var k=C.data;k?.forEach(Jr)}return C}catch(B){if(typeof B=="object"&&B!==null&&typeof B.then=="function")throw B}}return null}function rs(s,c,v,C,k,B,z,X){var W=null;if(typeof C=="function"){var V=ts(c,C);V!==null?(X=V.name,C=V.action||"",k=V.encType,B=V.method,z=V.target,W=V.data):(s.push(bt,le("formAction"),lt,tl,Bt),z=B=k=C=X=null,nl(c,v))}return X!=null&&Ve(s,"name",X),C!=null&&Ve(s,"formAction",C),k!=null&&Ve(s,"formEncType",k),B!=null&&Ve(s,"formMethod",B),z!=null&&Ve(s,"formTarget",z),W}function Ve(s,c,v){switch(c){case"className":Ut(s,"class",v);break;case"tabIndex":Ut(s,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Ut(s,c,v);break;case"style":li(s,v);break;case"src":case"href":if(v==="")break;case"action":case"formAction":if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean")break;v=vt(""+v),s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":ui(s,c.toLowerCase(),v);break;case"xlinkHref":if(typeof v=="function"||typeof v=="symbol"||typeof v=="boolean")break;v=vt(""+v),s.push(bt,le("xlink:href"),lt,le(Oe(v)),Bt);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof v!="function"&&typeof v!="symbol"&&s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"&&s.push(bt,le(c),_a);break;case"capture":case"download":v===!0?s.push(bt,le(c),_a):v!==!1&&typeof v!="function"&&typeof v!="symbol"&&s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"cols":case"rows":case"size":case"span":typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v&&s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"rowSpan":case"start":typeof v=="function"||typeof v=="symbol"||isNaN(v)||s.push(bt,le(c),lt,le(Oe(v)),Bt);break;case"xlinkActuate":Ut(s,"xlink:actuate",v);break;case"xlinkArcrole":Ut(s,"xlink:arcrole",v);break;case"xlinkRole":Ut(s,"xlink:role",v);break;case"xlinkShow":Ut(s,"xlink:show",v);break;case"xlinkTitle":Ut(s,"xlink:title",v);break;case"xlinkType":Ut(s,"xlink:type",v);break;case"xmlBase":Ut(s,"xml:base",v);break;case"xmlLang":Ut(s,"xml:lang",v);break;case"xmlSpace":Ut(s,"xml:space",v);break;default:if((!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Fa.get(c)||c,rr(c))){switch(typeof v){case"function":case"symbol":return;case"boolean":var C=c.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-")return}s.push(bt,le(c),lt,le(Oe(v)),Bt)}}}var Wt=ne(">"),Aa=ne("/>");function hr(s,c,v){if(c!=null){if(v!=null)throw Error(r(60));if(typeof c!="object"||!("__html"in c))throw Error(r(61));c=c.__html,c!=null&&s.push(le(""+c))}}function rl(s){var c="";return e.Children.forEach(s,function(v){v!=null&&(c+=v)}),c}var ns=ne(' selected=""'),su=ne(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function nl(s,c){(s.instructions&16)===0&&(s.instructions|=16,c.bootstrapChunks.unshift(c.startInlineScript,su,nr))}var al=ne("<!--F!-->"),lu=ne("<!--F-->");function Pt(s,c){s.push(yt("link"));for(var v in c)if(rt.call(c,v)){var C=c[v];if(C!=null)switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:Ve(s,v,C)}}return s.push(Aa),null}var il=/(<\/|<)(s)(tyle)/gi;function sn(s,c,v,C){return""+c+(v==="s"?"\\73 ":"\\53 ")+C}function ln(s,c,v){s.push(yt(v));for(var C in c)if(rt.call(c,C)){var k=c[C];if(k!=null)switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,v));default:Ve(s,C,k)}}return s.push(Aa),null}function di(s,c){s.push(yt("title"));var v=null,C=null,k;for(k in c)if(rt.call(c,k)){var B=c[k];if(B!=null)switch(k){case"children":v=B;break;case"dangerouslySetInnerHTML":C=B;break;default:Ve(s,k,B)}}return s.push(Wt),c=Array.isArray(v)?2>v.length?v[0]:null:v,typeof c!="function"&&typeof c!="symbol"&&c!==null&&c!==void 0&&s.push(le(Oe(""+c))),hr(s,C,v),s.push(pt("title")),null}function Na(s,c){s.push(yt("script"));var v=null,C=null,k;for(k in c)if(rt.call(c,k)){var B=c[k];if(B!=null)switch(k){case"children":v=B;break;case"dangerouslySetInnerHTML":C=B;break;default:Ve(s,k,B)}}return s.push(Wt),hr(s,C,v),typeof v=="string"&&s.push(le((""+v).replace(ar,Ta))),s.push(pt("script")),null}function Ra(s,c,v){s.push(yt(v));var C=v=null,k;for(k in c)if(rt.call(c,k)){var B=c[k];if(B!=null)switch(k){case"children":v=B;break;case"dangerouslySetInnerHTML":C=B;break;default:Ve(s,k,B)}}return s.push(Wt),hr(s,C,v),v}function Oa(s,c,v){s.push(yt(v));var C=v=null,k;for(k in c)if(rt.call(c,k)){var B=c[k];if(B!=null)switch(k){case"children":v=B;break;case"dangerouslySetInnerHTML":C=B;break;default:Ve(s,k,B)}}return s.push(Wt),hr(s,C,v),typeof v=="string"?(s.push(le(Oe(v))),null):v}var An=ne(`
|
|
49
|
+
`),ol=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,as=new Map;function yt(s){var c=as.get(s);if(c===void 0){if(!ol.test(s))throw Error(r(65,s));c=ne("<"+s),as.set(s,c)}return c}var ho=ne("<!DOCTYPE html>");function po(s,c,v,C,k,B,z,X,W,V){switch(c){case"div":case"span":case"svg":case"path":break;case"a":s.push(yt("a"));var oe=null,ae=null,pe;for(pe in v)if(rt.call(v,pe)){var me=v[pe];if(me!=null)switch(pe){case"children":oe=me;break;case"dangerouslySetInnerHTML":ae=me;break;case"href":me===""?Ut(s,"href",""):Ve(s,pe,me);break;default:Ve(s,pe,me)}}if(s.push(Wt),hr(s,ae,oe),typeof oe=="string"){s.push(le(Oe(oe)));var Ee=null}else Ee=oe;return Ee;case"g":case"p":case"li":break;case"select":s.push(yt("select"));var _e=null,Je=null,ct;for(ct in v)if(rt.call(v,ct)){var je=v[ct];if(je!=null)switch(ct){case"children":_e=je;break;case"dangerouslySetInnerHTML":Je=je;break;case"defaultValue":case"value":break;default:Ve(s,ct,je)}}return s.push(Wt),hr(s,Je,_e),_e;case"option":var He=X.selectedValue;s.push(yt("option"));var dt=null,lr=null,Mt=null,Cn=null,kr;for(kr in v)if(rt.call(v,kr)){var Ft=v[kr];if(Ft!=null)switch(kr){case"children":dt=Ft;break;case"selected":Mt=Ft;break;case"dangerouslySetInnerHTML":Cn=Ft;break;case"value":lr=Ft;default:Ve(s,kr,Ft)}}if(He!=null){var xt=lr!==null?""+lr:rl(dt);if(Q(He)){for(var ot=0;ot<He.length;ot++)if(""+He[ot]===xt){s.push(ns);break}}else""+He===xt&&s.push(ns)}else Mt&&s.push(ns);return s.push(Wt),hr(s,Cn,dt),dt;case"textarea":s.push(yt("textarea"));var zt=null,Va=null,En=null,Gn;for(Gn in v)if(rt.call(v,Gn)){var Vn=v[Gn];if(Vn!=null)switch(Gn){case"children":En=Vn;break;case"value":zt=Vn;break;case"defaultValue":Va=Vn;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:Ve(s,Gn,Vn)}}if(zt===null&&Va!==null&&(zt=Va),s.push(Wt),En!=null){if(zt!=null)throw Error(r(92));if(Q(En)){if(1<En.length)throw Error(r(93));zt=""+En[0]}zt=""+En}return typeof zt=="string"&&zt[0]===`
|
|
50
|
+
`&&s.push(An),zt!==null&&s.push(le(Oe(""+zt))),null;case"input":s.push(yt("input"));var St=null,Pc=null,Lc=null,Ic=null,vu=null,Fl=null,bu=null,Ss=null,yu=null,No;for(No in v)if(rt.call(v,No)){var Fn=v[No];if(Fn!=null)switch(No){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"name":St=Fn;break;case"formAction":Pc=Fn;break;case"formEncType":Lc=Fn;break;case"formMethod":Ic=Fn;break;case"formTarget":vu=Fn;break;case"defaultChecked":yu=Fn;break;case"defaultValue":bu=Fn;break;case"checked":Ss=Fn;break;case"value":Fl=Fn;break;default:Ve(s,No,Fn)}}var Mc=rs(s,C,k,Pc,Lc,Ic,vu,St);return Ss!==null?ui(s,"checked",Ss):yu!==null&&ui(s,"checked",yu),Fl!==null?Ve(s,"value",Fl):bu!==null&&Ve(s,"value",bu),s.push(Aa),Mc?.forEach(or,s),null;case"button":s.push(yt("button"));var ha=null,zc=null,Hc=null,jc=null,ks=null,xu=null,Gi=null,Vi;for(Vi in v)if(rt.call(v,Vi)){var Sn=v[Vi];if(Sn!=null)switch(Vi){case"children":ha=Sn;break;case"dangerouslySetInnerHTML":zc=Sn;break;case"name":Hc=Sn;break;case"formAction":jc=Sn;break;case"formEncType":ks=Sn;break;case"formMethod":xu=Sn;break;case"formTarget":Gi=Sn;break;default:Ve(s,Vi,Sn)}}var Uc=rs(s,C,k,jc,ks,xu,Gi,Hc);if(s.push(Wt),Uc?.forEach(or,s),hr(s,zc,ha),typeof ha=="string"){s.push(le(Oe(ha)));var Wc=null}else Wc=ha;return Wc;case"form":s.push(yt("form"));var Ts=null,Gc=null,Yi=null,_s=null,As=null,Ns=null,Ji;for(Ji in v)if(rt.call(v,Ji)){var Ya=v[Ji];if(Ya!=null)switch(Ji){case"children":Ts=Ya;break;case"dangerouslySetInnerHTML":Gc=Ya;break;case"action":Yi=Ya;break;case"encType":_s=Ya;break;case"method":As=Ya;break;case"target":Ns=Ya;break;default:Ve(s,Ji,Ya)}}var wu=null,Du=null;if(typeof Yi=="function"){var Xi=ts(C,Yi);Xi!==null?(Yi=Xi.action||"",_s=Xi.encType,As=Xi.method,Ns=Xi.target,wu=Xi.data,Du=Xi.name):(s.push(bt,le("action"),lt,tl,Bt),Ns=As=_s=Yi=null,nl(C,k))}if(Yi!=null&&Ve(s,"action",Yi),_s!=null&&Ve(s,"encType",_s),As!=null&&Ve(s,"method",As),Ns!=null&&Ve(s,"target",Ns),s.push(Wt),Du!==null&&(s.push(ci),Ut(s,"name",Du),s.push(Aa),wu?.forEach(or,s)),hr(s,Gc,Ts),typeof Ts=="string"){s.push(le(Oe(Ts)));var Cu=null}else Cu=Ts;return Cu;case"menuitem":s.push(yt("menuitem"));for(var Sl in v)if(rt.call(v,Sl)){var Eu=v[Sl];if(Eu!=null)switch(Sl){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:Ve(s,Sl,Eu)}}return s.push(Wt),null;case"object":s.push(yt("object"));var Ro=null,Oo=null,Zi;for(Zi in v)if(rt.call(v,Zi)){var Rs=v[Zi];if(Rs!=null)switch(Zi){case"children":Ro=Rs;break;case"dangerouslySetInnerHTML":Oo=Rs;break;case"data":var Vc=vt(""+Rs);if(Vc==="")break;s.push(bt,le("data"),lt,le(Oe(Vc)),Bt);break;default:Ve(s,Zi,Rs)}}if(s.push(Wt),hr(s,Oo,Ro),typeof Ro=="string"){s.push(le(Oe(Ro)));var Yc=null}else Yc=Ro;return Yc;case"title":if(X.insertionMode===4||X.tagScope&1||v.itemProp!=null)var Fu=di(s,v);else V?Fu=null:(di(k.hoistableChunks,v),Fu=void 0);return Fu;case"link":var Dp=v.rel,Ja=v.href,kl=v.precedence;if(X.insertionMode===4||X.tagScope&1||v.itemProp!=null||typeof Dp!="string"||typeof Ja!="string"||Ja===""){Pt(s,v);var o=null}else if(v.rel==="stylesheet")if(typeof kl!="string"||v.disabled!=null||v.onLoad||v.onError)o=Pt(s,v);else{var d=k.styles.get(kl),y=C.styleResources.hasOwnProperty(Ja)?C.styleResources[Ja]:void 0;if(y!==null){C.styleResources[Ja]=null,d||(d={precedence:le(Oe(kl)),rules:[],hrefs:[],sheets:new Map},k.styles.set(kl,d));var w={state:0,props:qt({},v,{"data-precedence":v.precedence,precedence:null})};if(y){y.length===2&&Dr(w.props,y);var A=k.preloads.stylesheets.get(Ja);A&&0<A.length?A.length=0:w.state=1}d.sheets.set(Ja,w),z&&z.stylesheets.add(w)}else if(d){var L=d.sheets.get(Ja);L&&z&&z.stylesheets.add(L)}W&&s.push(Yr),o=null}else v.onLoad||v.onError?o=Pt(s,v):(W&&s.push(Yr),o=V?null:Pt(k.hoistableChunks,v));return o;case"script":var G=v.async;if(typeof v.src!="string"||!v.src||!G||typeof G=="function"||typeof G=="symbol"||v.onLoad||v.onError||X.insertionMode===4||X.tagScope&1||v.itemProp!=null)var Z=Na(s,v);else{var ue=v.src;if(v.type==="module")var be=C.moduleScriptResources,he=k.preloads.moduleScripts;else be=C.scriptResources,he=k.preloads.scripts;var Me=be.hasOwnProperty(ue)?be[ue]:void 0;if(Me!==null){be[ue]=null;var Re=v;if(Me){Me.length===2&&(Re=qt({},v),Dr(Re,Me));var ze=he.get(ue);ze&&(ze.length=0)}var tt=[];k.scripts.add(tt),Na(tt,Re)}W&&s.push(Yr),Z=null}return Z;case"style":var wt=v.precedence,gt=v.href;if(X.insertionMode===4||X.tagScope&1||v.itemProp!=null||typeof wt!="string"||typeof gt!="string"||gt===""){s.push(yt("style"));var kt=null,ye=null,Be;for(Be in v)if(rt.call(v,Be)){var Dt=v[Be];if(Dt!=null)switch(Be){case"children":kt=Dt;break;case"dangerouslySetInnerHTML":ye=Dt;break;default:Ve(s,Be,Dt)}}s.push(Wt);var ft=Array.isArray(kt)?2>kt.length?kt[0]:null:kt;typeof ft!="function"&&typeof ft!="symbol"&&ft!==null&&ft!==void 0&&s.push(le((""+ft).replace(il,sn))),hr(s,ye,kt),s.push(pt("style"));var ur=null}else{var rn=k.styles.get(wt);if((C.styleResources.hasOwnProperty(gt)?C.styleResources[gt]:void 0)!==null){C.styleResources[gt]=null,rn?rn.hrefs.push(le(Oe(gt))):(rn={precedence:le(Oe(wt)),rules:[],hrefs:[le(Oe(gt))],sheets:new Map},k.styles.set(wt,rn));var Jc=rn.rules,qi=null,Su=null,Xc;for(Xc in v)if(rt.call(v,Xc)){var Cp=v[Xc];if(Cp!=null)switch(Xc){case"children":qi=Cp;break;case"dangerouslySetInnerHTML":Su=Cp}}var ku=Array.isArray(qi)?2>qi.length?qi[0]:null:qi;typeof ku!="function"&&typeof ku!="symbol"&&ku!==null&&ku!==void 0&&Jc.push(le((""+ku).replace(il,sn))),hr(Jc,Su,qi)}rn&&z&&z.styles.add(rn),W&&s.push(Yr),ur=void 0}return ur;case"meta":if(X.insertionMode===4||X.tagScope&1||v.itemProp!=null)var fy=ln(s,v,"meta");else W&&s.push(Yr),fy=V?null:typeof v.charSet=="string"?ln(k.charsetChunks,v,"meta"):v.name==="viewport"?ln(k.viewportChunks,v,"meta"):ln(k.hoistableChunks,v,"meta");return fy;case"listing":case"pre":s.push(yt(c));var Tu=null,_u=null,Au;for(Au in v)if(rt.call(v,Au)){var Zc=v[Au];if(Zc!=null)switch(Au){case"children":Tu=Zc;break;case"dangerouslySetInnerHTML":_u=Zc;break;default:Ve(s,Au,Zc)}}if(s.push(Wt),_u!=null){if(Tu!=null)throw Error(r(60));if(typeof _u!="object"||!("__html"in _u))throw Error(r(61));var Os=_u.__html;Os!=null&&(typeof Os=="string"&&0<Os.length&&Os[0]===`
|
|
51
|
+
`?s.push(An,le(Os)):s.push(le(""+Os)))}return typeof Tu=="string"&&Tu[0]===`
|
|
52
|
+
`&&s.push(An),Tu;case"img":var Tr=v.src,yr=v.srcSet;if(!(v.loading==="lazy"||!Tr&&!yr||typeof Tr!="string"&&Tr!=null||typeof yr!="string"&&yr!=null)&&v.fetchPriority!=="low"&&!(X.tagScope&3)&&(typeof Tr!="string"||Tr[4]!==":"||Tr[0]!=="d"&&Tr[0]!=="D"||Tr[1]!=="a"&&Tr[1]!=="A"||Tr[2]!=="t"&&Tr[2]!=="T"||Tr[3]!=="a"&&Tr[3]!=="A")&&(typeof yr!="string"||yr[4]!==":"||yr[0]!=="d"&&yr[0]!=="D"||yr[1]!=="a"&&yr[1]!=="A"||yr[2]!=="t"&&yr[2]!=="T"||yr[3]!=="a"&&yr[3]!=="A")){var hy=typeof v.sizes=="string"?v.sizes:void 0,Tl=yr?yr+`
|
|
53
|
+
`+(hy||""):Tr,Ep=k.preloads.images,Bs=Ep.get(Tl);if(Bs)(v.fetchPriority==="high"||10>k.highImagePreloads.size)&&(Ep.delete(Tl),k.highImagePreloads.add(Bs));else if(!C.imageResources.hasOwnProperty(Tl)){C.imageResources[Tl]=Xe;var Fp=v.crossOrigin,py=typeof Fp=="string"?Fp==="use-credentials"?Fp:"":void 0,Ps=k.headers,Sp;Ps&&0<Ps.remainingCapacity&&typeof v.srcSet!="string"&&(v.fetchPriority==="high"||500>Ps.highImagePreloads.length)&&(Sp=Cr(Tr,"image",{imageSrcSet:v.srcSet,imageSizes:v.sizes,crossOrigin:py,integrity:v.integrity,nonce:v.nonce,type:v.type,fetchPriority:v.fetchPriority,referrerPolicy:v.refererPolicy}),0<=(Ps.remainingCapacity-=Sp.length+2))?(k.resets.image[Tl]=Xe,Ps.highImagePreloads&&(Ps.highImagePreloads+=", "),Ps.highImagePreloads+=Sp):(Bs=[],Pt(Bs,{rel:"preload",as:"image",href:yr?void 0:Tr,imageSrcSet:yr,imageSizes:hy,crossOrigin:py,integrity:v.integrity,type:v.type,fetchPriority:v.fetchPriority,referrerPolicy:v.referrerPolicy}),v.fetchPriority==="high"||10>k.highImagePreloads.size?k.highImagePreloads.add(Bs):(k.bulkPreloads.add(Bs),Ep.set(Tl,Bs)))}}return ln(s,v,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return ln(s,v,c);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>X.insertionMode){var kp=B||k.preamble;if(kp.headChunks)throw Error(r(545,"`<head>`"));kp.headChunks=[];var gy=Ra(kp.headChunks,v,"head")}else gy=Oa(s,v,"head");return gy;case"body":if(2>X.insertionMode){var Tp=B||k.preamble;if(Tp.bodyChunks)throw Error(r(545,"`<body>`"));Tp.bodyChunks=[];var my=Ra(Tp.bodyChunks,v,"body")}else my=Oa(s,v,"body");return my;case"html":if(X.insertionMode===0){var _p=B||k.preamble;if(_p.htmlChunks)throw Error(r(545,"`<html>`"));_p.htmlChunks=[ho];var vy=Ra(_p.htmlChunks,v,"html")}else vy=Oa(s,v,"html");return vy;default:if(c.indexOf("-")!==-1){s.push(yt(c));var Ap=null,by=null,_l;for(_l in v)if(rt.call(v,_l)){var pa=v[_l];if(pa!=null){var yy=_l;switch(_l){case"children":Ap=pa;break;case"dangerouslySetInnerHTML":by=pa;break;case"style":li(s,pa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":yy="class";default:if(rr(_l)&&typeof pa!="function"&&typeof pa!="symbol"&&pa!==!1){if(pa===!0)pa="";else if(typeof pa=="object")continue;s.push(bt,le(yy),lt,le(Oe(pa)),Bt)}}}}return s.push(Wt),hr(s,by,Ap),Ap}}return Oa(s,v,c)}var sl=new Map;function pt(s){var c=sl.get(s);return c===void 0&&(c=ne("</"+s+">"),sl.set(s,c)),c}function Or(s,c){s=s.preamble,s.htmlChunks===null&&c.htmlChunks&&(s.htmlChunks=c.htmlChunks,c.contribution|=1),s.headChunks===null&&c.headChunks&&(s.headChunks=c.headChunks,c.contribution|=4),s.bodyChunks===null&&c.bodyChunks&&(s.bodyChunks=c.bodyChunks,c.contribution|=2)}function Nn(s,c){c=c.bootstrapChunks;for(var v=0;v<c.length-1;v++)te(s,c[v]);return v<c.length?(v=c[v],c.length=0,fe(s,v)):!0}var go=ne('<template id="'),is=ne('"></template>'),ll=ne("<!--$-->"),ul=ne('<!--$?--><template id="'),cl=ne('"></template>'),Br=ne("<!--$!-->"),fi=ne("<!--/$-->"),dl=ne("<template"),hi=ne('"'),mo=ne(' data-dgst="');ne(' data-msg="'),ne(' data-stck="'),ne(' data-cstck="');var fl=ne("></template>");function os(s,c,v){if(te(s,ul),v===null)throw Error(r(395));return te(s,c.boundaryPrefix),te(s,le(v.toString(16))),fe(s,cl)}var hl=ne("<!--"),Rn=ne("-->");function Qn(s,c){c=c.contribution,c!==0&&(te(s,hl),te(s,le(""+c)),te(s,Rn))}var uu=ne('<div hidden id="'),pi=ne('">'),vo=ne("</div>"),cu=ne('<svg aria-hidden="true" style="display:none" id="'),du=ne('">'),Xr=ne("</svg>"),$n=ne('<math aria-hidden="true" style="display:none" id="'),ss=ne('">'),ls=ne("</math>"),bo=ne('<table hidden id="'),$e=ne('">'),gi=ne("</table>"),un=ne('<table hidden><tbody id="'),mi=ne('">'),vi=ne("</tbody></table>"),Ba=ne('<table hidden><tr id="'),yo=ne('">'),ea=ne("</tr></table>"),cn=ne('<table hidden><colgroup id="'),Pr=ne('">'),dn=ne("</colgroup></table>");function bi(s,c,v,C){switch(v.insertionMode){case 0:case 1:case 3:case 2:return te(s,uu),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,pi);case 4:return te(s,cu),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,du);case 5:return te(s,$n),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,ss);case 6:return te(s,bo),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,$e);case 7:return te(s,un),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,mi);case 8:return te(s,Ba),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,yo);case 9:return te(s,cn),te(s,c.segmentPrefix),te(s,le(C.toString(16))),fe(s,Pr);default:throw Error(r(397))}}function On(s,c){switch(c.insertionMode){case 0:case 1:case 3:case 2:return fe(s,vo);case 4:return fe(s,Xr);case 5:return fe(s,ls);case 6:return fe(s,gi);case 7:return fe(s,vi);case 8:return fe(s,ea);case 9:return fe(s,dn);default:throw Error(r(397))}}var Bn=ne('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),yi=ne('$RS("'),pl=ne('","'),us=ne('")<\/script>');ne('<template data-rsi="" data-sid="'),ne('" data-pid="');var cs=ne('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),gl=ne('$RC("'),fu=ne(`$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;
|
|
152
54
|
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
153
55
|
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
154
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),
|
|
56
|
+
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),ds=ne(`$RM=new Map;
|
|
155
57
|
$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=
|
|
156
58
|
d;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,
|
|
157
|
-
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
object-
|
|
166
|
-
|
|
167
|
-
@license MIT
|
|
168
|
-
*/var eh,Em;function Bw(){if(Em)return eh;Em=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function i(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},g=0;g<10;g++)f["_"+String.fromCharCode(g)]=g;var b=Object.getOwnPropertyNames(f).map(function(v){return f[v]});if(b.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return eh=i()?Object.assign:function(c,f){for(var g,b=n(c),m,v=1;v<arguments.length;v++){g=Object(arguments[v]);for(var E in g)t.call(g,E)&&(b[E]=g[E]);if(e){m=e(g);for(var A=0;A<m.length;A++)r.call(g,m[A])&&(b[m[A]]=g[m[A]])}}return b},eh}var th,Fm;function Sm(){if(Fm)return th;Fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return th=e,th}var rh,km;function Tm(){return km||(km=1,rh=Function.call.bind(Object.prototype.hasOwnProperty)),rh}var nh,Am;function Iw(){if(Am)return nh;Am=1;var e=function(){};{var t=Sm(),r={},n=Tm();e=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function i(c,f,g,b,m){for(var v in c)if(n(c,v)){var E;try{if(typeof c[v]!="function"){var A=Error((b||"React class")+": "+g+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}E=c[v](f,v,b,g,null,t)}catch(S){E=S}if(E&&!(E instanceof Error)&&e((b||"React class")+": type specification of "+g+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in r)){r[E.message]=!0;var F=m?m():"";e("Failed "+g+" type: "+E.message+(F??""))}}}return i.resetWarningCache=function(){r={}},nh=i,nh}var ah,_m;function Lw(){if(_m)return ah;_m=1;var e=Cm(),t=Bw(),r=Sm(),n=Tm(),i=Iw(),c=function(){};c=function(g){var b="Warning: "+g;typeof console<"u"&&console.error(b);try{throw new Error(b)}catch{}};function f(){return null}return ah=function(g,b){var m=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function E(j){var ne=j&&(m&&j[m]||j[v]);if(typeof ne=="function")return ne}var A="<<anonymous>>",F={array:B("array"),bigint:B("bigint"),bool:B("boolean"),func:B("function"),number:B("number"),object:B("object"),string:B("string"),symbol:B("symbol"),any:z(),arrayOf:Z,element:V(),elementType:J(),instanceOf:$,node:me(),objectOf:ve,oneOf:K,oneOfType:se,shape:Qe,exact:pe};function S(j,ne){return j===ne?j!==0||1/j===1/ne:j!==j&&ne!==ne}function N(j,ne){this.message=j,this.data=ne&&typeof ne=="object"?ne:{},this.stack=""}N.prototype=Error.prototype;function O(j){var ne={},Fe=0;function _e(Ae,Oe,ze,Ee,Be,ye,Ce){if(Ee=Ee||A,ye=ye||ze,Ce!==r){if(b){var be=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw be.name="Invariant Violation",be}else if(typeof console<"u"){var Kt=Ee+":"+ze;!ne[Kt]&&Fe<3&&(c("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+Ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ne[Kt]=!0,Fe++)}}return Oe[ze]==null?Ae?Oe[ze]===null?new N("The "+Be+" `"+ye+"` is marked as required "+("in `"+Ee+"`, but its value is `null`.")):new N("The "+Be+" `"+ye+"` is marked as required in "+("`"+Ee+"`, but its value is `undefined`.")):null:j(Oe,ze,Ee,Be,ye)}var De=_e.bind(null,!1);return De.isRequired=_e.bind(null,!0),De}function B(j){function ne(Fe,_e,De,Ae,Oe,ze){var Ee=Fe[_e],Be=rt(Ee);if(Be!==j){var ye=Pt(Ee);return new N("Invalid "+Ae+" `"+Oe+"` of type "+("`"+ye+"` supplied to `"+De+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return O(ne)}function z(){return O(f)}function Z(j){function ne(Fe,_e,De,Ae,Oe){if(typeof j!="function")return new N("Property `"+Oe+"` of component `"+De+"` has invalid PropType notation inside arrayOf.");var ze=Fe[_e];if(!Array.isArray(ze)){var Ee=rt(ze);return new N("Invalid "+Ae+" `"+Oe+"` of type "+("`"+Ee+"` supplied to `"+De+"`, expected an array."))}for(var Be=0;Be<ze.length;Be++){var ye=j(ze,Be,De,Ae,Oe+"["+Be+"]",r);if(ye instanceof Error)return ye}return null}return O(ne)}function V(){function j(ne,Fe,_e,De,Ae){var Oe=ne[Fe];if(!g(Oe)){var ze=rt(Oe);return new N("Invalid "+De+" `"+Ae+"` of type "+("`"+ze+"` supplied to `"+_e+"`, expected a single ReactElement."))}return null}return O(j)}function J(){function j(ne,Fe,_e,De,Ae){var Oe=ne[Fe];if(!e.isValidElementType(Oe)){var ze=rt(Oe);return new N("Invalid "+De+" `"+Ae+"` of type "+("`"+ze+"` supplied to `"+_e+"`, expected a single ReactElement type."))}return null}return O(j)}function $(j){function ne(Fe,_e,De,Ae,Oe){if(!(Fe[_e]instanceof j)){var ze=j.name||A,Ee=Pe(Fe[_e]);return new N("Invalid "+Ae+" `"+Oe+"` of type "+("`"+Ee+"` supplied to `"+De+"`, expected ")+("instance of `"+ze+"`."))}return null}return O(ne)}function K(j){if(!Array.isArray(j))return arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array."),f;function ne(Fe,_e,De,Ae,Oe){for(var ze=Fe[_e],Ee=0;Ee<j.length;Ee++)if(S(ze,j[Ee]))return null;var Be=JSON.stringify(j,function(Ce,be){var Kt=Pt(be);return Kt==="symbol"?String(be):be});return new N("Invalid "+Ae+" `"+Oe+"` of value `"+String(ze)+"` "+("supplied to `"+De+"`, expected one of "+Be+"."))}return O(ne)}function ve(j){function ne(Fe,_e,De,Ae,Oe){if(typeof j!="function")return new N("Property `"+Oe+"` of component `"+De+"` has invalid PropType notation inside objectOf.");var ze=Fe[_e],Ee=rt(ze);if(Ee!=="object")return new N("Invalid "+Ae+" `"+Oe+"` of type "+("`"+Ee+"` supplied to `"+De+"`, expected an object."));for(var Be in ze)if(n(ze,Be)){var ye=j(ze,Be,De,Ae,Oe+"."+Be,r);if(ye instanceof Error)return ye}return null}return O(ne)}function se(j){if(!Array.isArray(j))return c("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var ne=0;ne<j.length;ne++){var Fe=j[ne];if(typeof Fe!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+sr(Fe)+" at index "+ne+"."),f}function _e(De,Ae,Oe,ze,Ee){for(var Be=[],ye=0;ye<j.length;ye++){var Ce=j[ye],be=Ce(De,Ae,Oe,ze,Ee,r);if(be==null)return null;be.data&&n(be.data,"expectedType")&&Be.push(be.data.expectedType)}var Kt=Be.length>0?", expected one of type ["+Be.join(", ")+"]":"";return new N("Invalid "+ze+" `"+Ee+"` supplied to "+("`"+Oe+"`"+Kt+"."))}return O(_e)}function me(){function j(ne,Fe,_e,De,Ae){return Ie(ne[Fe])?null:new N("Invalid "+De+" `"+Ae+"` supplied to "+("`"+_e+"`, expected a ReactNode."))}return O(j)}function ge(j,ne,Fe,_e,De){return new N((j||"React class")+": "+ne+" type `"+Fe+"."+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+De+"`.")}function Qe(j){function ne(Fe,_e,De,Ae,Oe){var ze=Fe[_e],Ee=rt(ze);if(Ee!=="object")return new N("Invalid "+Ae+" `"+Oe+"` of type `"+Ee+"` "+("supplied to `"+De+"`, expected `object`."));for(var Be in j){var ye=j[Be];if(typeof ye!="function")return ge(De,Ae,Oe,Be,Pt(ye));var Ce=ye(ze,Be,De,Ae,Oe+"."+Be,r);if(Ce)return Ce}return null}return O(ne)}function pe(j){function ne(Fe,_e,De,Ae,Oe){var ze=Fe[_e],Ee=rt(ze);if(Ee!=="object")return new N("Invalid "+Ae+" `"+Oe+"` of type `"+Ee+"` "+("supplied to `"+De+"`, expected `object`."));var Be=t({},Fe[_e],j);for(var ye in Be){var Ce=j[ye];if(n(j,ye)&&typeof Ce!="function")return ge(De,Ae,Oe,ye,Pt(Ce));if(!Ce)return new N("Invalid "+Ae+" `"+Oe+"` key `"+ye+"` supplied to `"+De+"`.\nBad object: "+JSON.stringify(Fe[_e],null," ")+`
|
|
169
|
-
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var be=Ce(ze,ye,De,Ae,Oe+"."+ye,r);if(be)return be}return null}return O(ne)}function Ie(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(Ie);if(j===null||g(j))return!0;var ne=E(j);if(ne){var Fe=ne.call(j),_e;if(ne!==j.entries){for(;!(_e=Fe.next()).done;)if(!Ie(_e.value))return!1}else for(;!(_e=Fe.next()).done;){var De=_e.value;if(De&&!Ie(De[1]))return!1}}else return!1;return!0;default:return!1}}function tt(j,ne){return j==="symbol"?!0:ne?ne["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ne instanceof Symbol:!1}function rt(j){var ne=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":tt(ne,j)?"symbol":ne}function Pt(j){if(typeof j>"u"||j===null)return""+j;var ne=rt(j);if(ne==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return ne}function sr(j){var ne=Pt(j);switch(ne){case"array":case"object":return"an "+ne;case"boolean":case"date":case"regexp":return"a "+ne;default:return ne}}function Pe(j){return!j.constructor||!j.constructor.name?A:j.constructor.name}return F.checkPropTypes=i,F.resetWarningCache=i.resetWarningCache,F.PropTypes=F,F},ah}var Rm;function Mw(){if(Rm)return Qf.exports;Rm=1;{var e=Cm(),t=!0;Qf.exports=Lw()(e.isElement,t)}return Qf.exports}var zw=Mw();const co=nd(zw);var Hw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nm(e,t){return e(t={exports:{}},t.exports),t.exports}var Ww=Nm((function(e){(function(t){var r=function(O,B,z){if(!b(B)||v(B)||E(B)||A(B)||g(B))return B;var Z,V=0,J=0;if(m(B))for(Z=[],J=B.length;V<J;V++)Z.push(r(O,B[V],z));else for(var $ in Z={},B)Object.prototype.hasOwnProperty.call(B,$)&&(Z[O($,z)]=r(O,B[$],z));return Z},n=function(O){return F(O)?O:(O=O.replace(/[\-_\s]+(.)?/g,(function(B,z){return z?z.toUpperCase():""}))).substr(0,1).toLowerCase()+O.substr(1)},i=function(O){var B=n(O);return B.substr(0,1).toUpperCase()+B.substr(1)},c=function(O,B){return(function(z,Z){var V=(Z=Z||{}).separator||"_",J=Z.split||/(?=[A-Z])/;return z.split(J).join(V)})(O,B).toLowerCase()},f=Object.prototype.toString,g=function(O){return typeof O=="function"},b=function(O){return O===Object(O)},m=function(O){return f.call(O)=="[object Array]"},v=function(O){return f.call(O)=="[object Date]"},E=function(O){return f.call(O)=="[object RegExp]"},A=function(O){return f.call(O)=="[object Boolean]"},F=function(O){return(O-=0)==O},S=function(O,B){var z=B&&"process"in B?B.process:B;return typeof z!="function"?O:function(Z,V){return z(Z,O,V)}},N={camelize:n,decamelize:c,pascalize:i,depascalize:c,camelizeKeys:function(O,B){return r(S(n,B),O)},decamelizeKeys:function(O,B){return r(S(c,B),O,B)},pascalizeKeys:function(O,B){return r(S(i,B),O)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=N:t.humps=N})(Hw)})).decamelize,Uw=function(e){if(Array.isArray(e))return e},jw=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,c=void 0;try{for(var f,g=e[Symbol.iterator]();!(n=(f=g.next()).done)&&(r.push(f.value),r.length!==t);n=!0);}catch(b){i=!0,c=b}finally{try{n||g.return==null||g.return()}finally{if(i)throw c}}return r}},Pm=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},Gw=function(e,t){if(e){if(typeof e=="string")return Pm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pm(e,t):void 0}},Yw=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
170
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Vw=function(e,t){return Uw(e)||jw(e,t)||Gw(e,t)||Yw()},Om=Nm((function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},t.apply(this,arguments)}e.exports=t})),Xw=function(e,t){if(e==null)return{};var r,n,i={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},Bm=function(e,t){if(e==null)return{};var r,n,i=Xw(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},Zw=L.createContext(null);function Im(e){var t=e.children,r=t===void 0?"":t,n=Bm(e,["children"]);return typeof r!="string"&&(r=Pw.renderToString(r)),L.createElement("template",Om({},n,{dangerouslySetInnerHTML:{__html:r}}))}function Lm(e){var t=e.root,r=e.children;return Ho.createPortal(r===void 0?null:r,t)}function Jw(e){var t=L.forwardRef((function(r,n){var i,c,f=r.mode,g=f===void 0?"open":f,b=r.delegatesFocus,m=b!==void 0&&b,v=r.styleSheets,E=v===void 0?[]:v,A=r.ssr,F=A!==void 0&&A,S=r.children,N=Bm(r,["mode","delegatesFocus","styleSheets","ssr","children"]),O=(c=L.useRef((i=n)&&i.current),L.useEffect((function(){i&&(i.current=c.current)}),[i]),c),B=L.useState(null),z=Vw(B,2),Z=z[0],V=z[1],J="node_".concat(g).concat(m);return L.useLayoutEffect((function(){if(O.current)try{if(typeof n=="function"&&n(O.current),F){var $=O.current.shadowRoot;return void V($)}var K=O.current.attachShadow({mode:g,delegatesFocus:m});E.length>0&&(K.adoptedStyleSheets=E),V(K)}catch(ve){(function(se){var me=se.error,ge=se.styleSheets,Qe=se.root;switch(me.name){case"NotSupportedError":ge.length>0&&(Qe.adoptedStyleSheets=ge);break;default:throw me}})({error:ve,styleSheets:E,root:Z})}}),[n,O,E]),L.createElement(L.Fragment,null,L.createElement(e.tag,Om({key:J,ref:O},N),(Z||F)&&L.createElement(Zw.Provider,{value:Z},F?L.createElement(Im,{shadowroot:g,shadowrootmode:g},e.render({root:Z,ssr:F,children:S})):L.createElement(Lm,{root:Z},e.render({root:Z,ssr:F,children:S})))))}));return t.propTypes={mode:co.oneOf(["open","closed"]),delegatesFocus:co.bool,styleSheets:co.arrayOf(co.instanceOf(globalThis.CSSStyleSheet)),ssr:co.bool,children:co.node},t}Im.propTypes={children:co.oneOfType([co.string,co.node])},Lm.propTypes={root:co.object.isRequired,children:co.node};var oh=new Map;function qw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,i){var c=Ww(i,{separator:"-"}),f="".concat(t,"-").concat(c);return oh.has(f)||oh.set(f,Jw({tag:c,render:r})),oh.get(f)}})}var Kw=qw();function jt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];{var i=i2[e],c=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+c)}}function Il(e){return!!e&&!!e[ft]}function Uo(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===s2})(e)||Array.isArray(e)||!!e[ud]||!!(!((t=e.constructor)===null||t===void 0)&&t[ud])||sf(e)||lf(e))}function Ll(e,t,r){r===void 0&&(r=!1),Os(e)===0?(r?Object.keys:mh)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Os(e){var t=e[ft];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:sf(e)?2:lf(e)?3:0}function sd(e,t){return Os(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function of(e,t){return Os(e)===2?e.get(t):e[t]}function Mm(e,t,r){var n=Os(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Qw(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function sf(e){return a2&&e instanceof Map}function lf(e){return o2&&e instanceof Set}function Ir(e){return e.o||e.t}function ih(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=l2(e);delete t[ft];for(var r=mh(t),n=0;n<r.length;n++){var i=r[n],c=t[i];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[i]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function sh(e,t){return t===void 0&&(t=!1),lh(e)||Il(e)||!Uo(e)||(Os(e)>1&&(e.set=e.add=e.clear=e.delete=$w),Object.freeze(e),t&&Ll(e,(function(r,n){return sh(n,!0)}),!0)),e}function $w(){jt(2)}function lh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function jo(e){var t=vh[e];return t||jt(18,e),t}function zm(e,t){vh[e]||(vh[e]=t)}function uf(){return Gu||jt(0),Gu}function uh(e,t){t&&(jo("Patches"),e.u=[],e.s=[],e.v=t)}function cf(e){ch(e),e.p.forEach(e2),e.p=null}function ch(e){e===Gu&&(Gu=e.l)}function Hm(e){return Gu={p:[],l:Gu,h:e,m:!0,_:0}}function e2(e){var t=e[ft];t.i===0||t.i===1?t.j():t.g=!0}function dh(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||jo("ES5").S(t,e,n),n?(r[ft].P&&(cf(t),jt(4)),Uo(e)&&(e=df(t,e),t.l||ff(t,e)),t.u&&jo("Patches").M(r[ft].t,e,t.u,t.s)):e=df(t,r,[]),cf(t),t.u&&t.v(t.u,t.s),e!==gh?e:void 0}function df(e,t,r){if(lh(t))return t;var n=t[ft];if(!n)return Ll(t,(function(g,b){return Wm(e,n,t,g,b,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ff(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ih(n.k):n.o,c=i,f=!1;n.i===3&&(c=new Set(i),i.clear(),f=!0),Ll(c,(function(g,b){return Wm(e,n,i,g,b,r,f)})),ff(e,i,!1),r&&e.u&&jo("Patches").N(n,r,e.u,e.s)}return n.o}function Wm(e,t,r,n,i,c,f){if(i===r&&jt(5),Il(i)){var g=df(e,i,c&&t&&t.i!==3&&!sd(t.R,n)?c.concat(n):void 0);if(Mm(r,n,g),!Il(g))return;e.m=!1}else f&&r.add(i);if(Uo(i)&&!lh(i)){if(!e.h.D&&e._<1)return;df(e,i),t&&t.A.l||ff(e,i)}}function ff(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&sh(t,r)}function fh(e,t){var r=e[ft];return(r?Ir(r):e)[t]}function Um(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Pi(e){e.P||(e.P=!0,e.l&&Pi(e.l))}function hh(e){e.o||(e.o=ih(e.t))}function ld(e,t,r){var n=sf(t)?jo("MapSet").F(t,r):lf(t)?jo("MapSet").T(t,r):e.O?(function(i,c){var f=Array.isArray(i),g={i:f?1:0,A:c?c.A:uf(),P:!1,I:!1,R:{},l:c,t:i,k:null,o:null,j:null,C:!1},b=g,m=bh;f&&(b=[g],m=cd);var v=Proxy.revocable(b,m),E=v.revoke,A=v.proxy;return g.k=A,g.j=E,A})(t,r):jo("ES5").J(t,r);return(r?r.A:uf()).p.push(n),n}function t2(e){return Il(e)||jt(22,e),(function t(r){if(!Uo(r))return r;var n,i=r[ft],c=Os(r);if(i){if(!i.P&&(i.i<4||!jo("ES5").K(i)))return i.t;i.I=!0,n=jm(r,c),i.I=!1}else n=jm(r,c);return Ll(n,(function(f,g){i&&of(i.t,f)===g||Mm(n,f,t(g))})),c===3?new Set(n):n})(e)}function jm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ih(e)}function r2(){function e(n){if(!Uo(n))return n;if(Array.isArray(n))return n.map(e);if(sf(n))return new Map(Array.from(n.entries()).map((function(f){return[f[0],e(f[1])]})));if(lf(n))return new Set(Array.from(n).map(e));var i=Object.create(Object.getPrototypeOf(n));for(var c in n)i[c]=e(n[c]);return sd(n,ud)&&(i[ud]=n[ud]),i}function t(n){return Il(n)?e(n):n}var r="add";zm("Patches",{$:function(n,i){return i.forEach((function(c){for(var f=c.path,g=c.op,b=n,m=0;m<f.length-1;m++){var v=Os(b),E=f[m];typeof E!="string"&&typeof E!="number"&&(E=""+E),v!==0&&v!==1||E!=="__proto__"&&E!=="constructor"||jt(24),typeof b=="function"&&E==="prototype"&&jt(24),typeof(b=of(b,E))!="object"&&jt(15,f.join("/"))}var A=Os(b),F=e(c.value),S=f[f.length-1];switch(g){case"replace":switch(A){case 2:return b.set(S,F);case 3:jt(16);default:return b[S]=F}case r:switch(A){case 1:return S==="-"?b.push(F):b.splice(S,0,F);case 2:return b.set(S,F);case 3:return b.add(F);default:return b[S]=F}case"remove":switch(A){case 1:return b.splice(S,1);case 2:return b.delete(S);case 3:return b.delete(c.value);default:return delete b[S]}default:jt(17,g)}})),n},N:function(n,i,c,f){switch(n.i){case 0:case 4:case 2:return(function(g,b,m,v){var E=g.t,A=g.o;Ll(g.R,(function(F,S){var N=of(E,F),O=of(A,F),B=S?sd(E,F)?"replace":r:"remove";if(N!==O||B!=="replace"){var z=b.concat(F);m.push(B==="remove"?{op:B,path:z}:{op:B,path:z,value:O}),v.push(B===r?{op:"remove",path:z}:B==="remove"?{op:r,path:z,value:t(N)}:{op:"replace",path:z,value:t(N)})}}))})(n,i,c,f);case 5:case 1:return(function(g,b,m,v){var E=g.t,A=g.R,F=g.o;if(F.length<E.length){var S=[F,E];E=S[0],F=S[1];var N=[v,m];m=N[0],v=N[1]}for(var O=0;O<E.length;O++)if(A[O]&&F[O]!==E[O]){var B=b.concat([O]);m.push({op:"replace",path:B,value:t(F[O])}),v.push({op:"replace",path:B,value:t(E[O])})}for(var z=E.length;z<F.length;z++){var Z=b.concat([z]);m.push({op:r,path:Z,value:t(F[z])})}E.length<F.length&&v.push({op:"replace",path:b.concat(["length"]),value:E.length})})(n,i,c,f);case 3:return(function(g,b,m,v){var E=g.t,A=g.o,F=0;E.forEach((function(S){if(!A.has(S)){var N=b.concat([F]);m.push({op:"remove",path:N,value:S}),v.unshift({op:r,path:N,value:S})}F++})),F=0,A.forEach((function(S){if(!E.has(S)){var N=b.concat([F]);m.push({op:r,path:N,value:S}),v.unshift({op:"remove",path:N,value:S})}F++}))})(n,i,c,f)}},M:function(n,i,c,f){c.push({op:"replace",path:[],value:i===gh?void 0:i}),f.push({op:"replace",path:[],value:n})}})}function n2(){function e(g,b){function m(){this.constructor=g}i(g,b),g.prototype=(m.prototype=b.prototype,new m)}function t(g){g.o||(g.R=new Map,g.o=new Map(g.t))}function r(g){g.o||(g.o=new Set,g.t.forEach((function(b){if(Uo(b)){var m=ld(g.A.h,b,g);g.p.set(b,m),g.o.add(m)}else g.o.add(b)})))}function n(g){g.g&&jt(3,JSON.stringify(Ir(g)))}var i=function(g,b){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var E in v)v.hasOwnProperty(E)&&(m[E]=v[E])})(g,b)},c=(function(){function g(m,v){return this[ft]={i:2,l:v,A:v?v.A:uf(),P:!1,I:!1,o:void 0,R:void 0,t:m,k:this,C:!1,g:!1},this}e(g,Map);var b=g.prototype;return Object.defineProperty(b,"size",{get:function(){return Ir(this[ft]).size}}),b.has=function(m){return Ir(this[ft]).has(m)},b.set=function(m,v){var E=this[ft];return n(E),Ir(E).has(m)&&Ir(E).get(m)===v||(t(E),Pi(E),E.R.set(m,!0),E.o.set(m,v),E.R.set(m,!0)),this},b.delete=function(m){if(!this.has(m))return!1;var v=this[ft];return n(v),t(v),Pi(v),v.t.has(m)?v.R.set(m,!1):v.R.delete(m),v.o.delete(m),!0},b.clear=function(){var m=this[ft];n(m),Ir(m).size&&(t(m),Pi(m),m.R=new Map,Ll(m.t,(function(v){m.R.set(v,!1)})),m.o.clear())},b.forEach=function(m,v){var E=this;Ir(this[ft]).forEach((function(A,F){m.call(v,E.get(F),F,E)}))},b.get=function(m){var v=this[ft];n(v);var E=Ir(v).get(m);if(v.I||!Uo(E)||E!==v.t.get(m))return E;var A=ld(v.A.h,E,v);return t(v),v.o.set(m,A),A},b.keys=function(){return Ir(this[ft]).keys()},b.values=function(){var m,v=this,E=this.keys();return(m={})[hf]=function(){return v.values()},m.next=function(){var A=E.next();return A.done?A:{done:!1,value:v.get(A.value)}},m},b.entries=function(){var m,v=this,E=this.keys();return(m={})[hf]=function(){return v.entries()},m.next=function(){var A=E.next();if(A.done)return A;var F=v.get(A.value);return{done:!1,value:[A.value,F]}},m},b[hf]=function(){return this.entries()},g})(),f=(function(){function g(m,v){return this[ft]={i:3,l:v,A:v?v.A:uf(),P:!1,I:!1,o:void 0,t:m,k:this,p:new Map,g:!1,C:!1},this}e(g,Set);var b=g.prototype;return Object.defineProperty(b,"size",{get:function(){return Ir(this[ft]).size}}),b.has=function(m){var v=this[ft];return n(v),v.o?!!v.o.has(m)||!(!v.p.has(m)||!v.o.has(v.p.get(m))):v.t.has(m)},b.add=function(m){var v=this[ft];return n(v),this.has(m)||(r(v),Pi(v),v.o.add(m)),this},b.delete=function(m){if(!this.has(m))return!1;var v=this[ft];return n(v),r(v),Pi(v),v.o.delete(m)||!!v.p.has(m)&&v.o.delete(v.p.get(m))},b.clear=function(){var m=this[ft];n(m),Ir(m).size&&(r(m),Pi(m),m.o.clear())},b.values=function(){var m=this[ft];return n(m),r(m),m.o.values()},b.entries=function(){var m=this[ft];return n(m),r(m),m.o.entries()},b.keys=function(){return this.values()},b[hf]=function(){return this.values()},b.forEach=function(m,v){for(var E=this.values(),A=E.next();!A.done;)m.call(v,A.value,A.value,this),A=E.next()},g})();zm("MapSet",{F:function(g,b){return new c(g,b)},T:function(g,b){return new f(g,b)}})}var Gm,Gu,ph=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",a2=typeof Map<"u",o2=typeof Set<"u",Ym=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",gh=ph?Symbol.for("immer-nothing"):((Gm={})["immer-nothing"]=!0,Gm),ud=ph?Symbol.for("immer-draftable"):"__$immer_draftable",ft=ph?Symbol.for("immer-state"):"__$immer_state",hf=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",i2={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},s2=""+Object.prototype.constructor,mh=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,l2=Object.getOwnPropertyDescriptors||function(e){var t={};return mh(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},vh={},bh={get:function(e,t){if(t===ft)return e;var r=Ir(e);if(!sd(r,t))return(function(i,c,f){var g,b=Um(c,f);return b?"value"in b?b.value:(g=b.get)===null||g===void 0?void 0:g.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!Uo(n)?n:n===fh(e.t,t)?(hh(e),e.o[t]=ld(e.A.h,n,e)):n},has:function(e,t){return t in Ir(e)},ownKeys:function(e){return Reflect.ownKeys(Ir(e))},set:function(e,t,r){var n=Um(Ir(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=fh(Ir(e),t),c=i?.[ft];if(c&&c.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Qw(r,i)&&(r!==void 0||sd(e.t,t)))return!0;hh(e),Pi(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return fh(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,hh(e),Pi(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ir(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){jt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){jt(12)}},cd={};Ll(bh,(function(e,t){cd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),cd.deleteProperty=function(e,t){return isNaN(parseInt(t))&&jt(13),cd.set.call(this,e,t,void 0)},cd.set=function(e,t,r){return t!=="length"&&isNaN(parseInt(t))&&jt(14),bh.set.call(this,e[0],t,r,e[0])};var u2=(function(){function e(r){var n=this;this.O=Ym,this.D=!0,this.produce=function(i,c,f){if(typeof i=="function"&&typeof c!="function"){var g=c;c=i;var b=n;return function(N){var O=this;N===void 0&&(N=g);for(var B=arguments.length,z=Array(B>1?B-1:0),Z=1;Z<B;Z++)z[Z-1]=arguments[Z];return b.produce(N,(function(V){var J;return(J=c).call.apply(J,[O,V].concat(z))}))}}var m;if(typeof c!="function"&&jt(6),f!==void 0&&typeof f!="function"&&jt(7),Uo(i)){var v=Hm(n),E=ld(n,i,void 0),A=!0;try{m=c(E),A=!1}finally{A?cf(v):ch(v)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(N){return uh(v,f),dh(N,v)}),(function(N){throw cf(v),N})):(uh(v,f),dh(m,v))}if(!i||typeof i!="object"){if((m=c(i))===void 0&&(m=i),m===gh&&(m=void 0),n.D&&sh(m,!0),f){var F=[],S=[];jo("Patches").M(i,m,F,S),f(F,S)}return m}jt(21,i)},this.produceWithPatches=function(i,c){if(typeof i=="function")return function(m){for(var v=arguments.length,E=Array(v>1?v-1:0),A=1;A<v;A++)E[A-1]=arguments[A];return n.produceWithPatches(m,(function(F){return i.apply(void 0,[F].concat(E))}))};var f,g,b=n.produce(i,c,(function(m,v){f=m,g=v}));return typeof Promise<"u"&&b instanceof Promise?b.then((function(m){return[m,f,g]})):[b,f,g]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Uo(r)||jt(8),Il(r)&&(r=t2(r));var n=Hm(this),i=ld(this,r,void 0);return i[ft].C=!0,ch(n),i},t.finishDraft=function(r,n){var i=r&&r[ft];i&&i.C||jt(9),i.I&&jt(10);var c=i.A;return uh(c,n),dh(void 0,c)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Ym&&jt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var c=n[i];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}i>-1&&(n=n.slice(i+1));var f=jo("Patches").$;return Il(r)?f(r,n):this.produce(r,(function(g){return f(g,n)}))},e})(),oa=new u2,c2=oa.produce,Vm=oa.produceWithPatches.bind(oa);oa.setAutoFreeze.bind(oa),oa.setUseProxies.bind(oa);var Xm=oa.applyPatches.bind(oa);oa.createDraft.bind(oa),oa.finishDraft.bind(oa);var yh,Zm;function d2(){if(Zm)return yh;Zm=1;function e(){this.__data__=[],this.size=0}return yh=e,yh}var wh,Jm;function qm(){if(Jm)return wh;Jm=1;function e(t,r){return t===r||t!==t&&r!==r}return wh=e,wh}var xh,Km;function pf(){if(Km)return xh;Km=1;var e=qm();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return xh=t,xh}var Dh,Qm;function f2(){if(Qm)return Dh;Qm=1;var e=pf(),t=Array.prototype,r=t.splice;function n(i){var c=this.__data__,f=e(c,i);if(f<0)return!1;var g=c.length-1;return f==g?c.pop():r.call(c,f,1),--this.size,!0}return Dh=n,Dh}var Ch,$m;function h2(){if($m)return Ch;$m=1;var e=pf();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ch=t,Ch}var Eh,ev;function p2(){if(ev)return Eh;ev=1;var e=pf();function t(r){return e(this.__data__,r)>-1}return Eh=t,Eh}var Fh,tv;function g2(){if(tv)return Fh;tv=1;var e=pf();function t(r,n){var i=this.__data__,c=e(i,r);return c<0?(++this.size,i.push([r,n])):i[c][1]=n,this}return Fh=t,Fh}var Sh,rv;function gf(){if(rv)return Sh;rv=1;var e=d2(),t=f2(),r=h2(),n=p2(),i=g2();function c(f){var g=-1,b=f==null?0:f.length;for(this.clear();++g<b;){var m=f[g];this.set(m[0],m[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=n,c.prototype.set=i,Sh=c,Sh}var kh,nv;function m2(){if(nv)return kh;nv=1;var e=gf();function t(){this.__data__=new e,this.size=0}return kh=t,kh}var Th,av;function v2(){if(av)return Th;av=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Th=e,Th}var Ah,ov;function b2(){if(ov)return Ah;ov=1;function e(t){return this.__data__.get(t)}return Ah=e,Ah}var _h,iv;function y2(){if(iv)return _h;iv=1;function e(t){return this.__data__.has(t)}return _h=e,_h}var Rh,sv;function lv(){if(sv)return Rh;sv=1;var e=typeof af=="object"&&af&&af.Object===Object&⁡return Rh=e,Rh}var Nh,uv;function Oi(){if(uv)return Nh;uv=1;var e=lv(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Nh=r,Nh}var Ph,cv;function Oh(){if(cv)return Ph;cv=1;var e=Oi(),t=e.Symbol;return Ph=t,Ph}var Bh,dv;function w2(){if(dv)return Bh;dv=1;var e=Oh(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function c(f){var g=r.call(f,i),b=f[i];try{f[i]=void 0;var m=!0}catch{}var v=n.call(f);return m&&(g?f[i]=b:delete f[i]),v}return Bh=c,Bh}var Ih,fv;function x2(){if(fv)return Ih;fv=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ih=r,Ih}var Lh,hv;function mf(){if(hv)return Lh;hv=1;var e=Oh(),t=w2(),r=x2(),n="[object Null]",i="[object Undefined]",c=e?e.toStringTag:void 0;function f(g){return g==null?g===void 0?i:n:c&&c in Object(g)?t(g):r(g)}return Lh=f,Lh}var Mh,pv;function gv(){if(pv)return Mh;pv=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Mh=e,Mh}var zh,mv;function Hh(){if(mv)return zh;mv=1;var e=mf(),t=gv(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",c="[object Proxy]";function f(g){if(!t(g))return!1;var b=e(g);return b==n||b==i||b==r||b==c}return zh=f,zh}var Wh,vv;function D2(){if(vv)return Wh;vv=1;var e=Oi(),t=e["__core-js_shared__"];return Wh=t,Wh}var Uh,bv;function C2(){if(bv)return Uh;bv=1;var e=D2(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Uh=r,Uh}var jh,yv;function wv(){if(yv)return jh;yv=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return jh=r,jh}var Gh,xv;function E2(){if(xv)return Gh;xv=1;var e=Hh(),t=C2(),r=gv(),n=wv(),i=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,f=Function.prototype,g=Object.prototype,b=f.toString,m=g.hasOwnProperty,v=RegExp("^"+b.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(A){if(!r(A)||t(A))return!1;var F=e(A)?v:c;return F.test(n(A))}return Gh=E,Gh}var Yh,Dv;function F2(){if(Dv)return Yh;Dv=1;function e(t,r){return t?.[r]}return Yh=e,Yh}var Vh,Cv;function Yu(){if(Cv)return Vh;Cv=1;var e=E2(),t=F2();function r(n,i){var c=t(n,i);return e(c)?c:void 0}return Vh=r,Vh}var Xh,Ev;function Zh(){if(Ev)return Xh;Ev=1;var e=Yu(),t=Oi(),r=e(t,"Map");return Xh=r,Xh}var Jh,Fv;function vf(){if(Fv)return Jh;Fv=1;var e=Yu(),t=e(Object,"create");return Jh=t,Jh}var qh,Sv;function S2(){if(Sv)return qh;Sv=1;var e=vf();function t(){this.__data__=e?e(null):{},this.size=0}return qh=t,qh}var Kh,kv;function k2(){if(kv)return Kh;kv=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Kh=e,Kh}var Qh,Tv;function T2(){if(Tv)return Qh;Tv=1;var e=vf(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(c){var f=this.__data__;if(e){var g=f[c];return g===t?void 0:g}return n.call(f,c)?f[c]:void 0}return Qh=i,Qh}var $h,Av;function A2(){if(Av)return $h;Av=1;var e=vf(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var c=this.__data__;return e?c[i]!==void 0:r.call(c,i)}return $h=n,$h}var ep,_v;function _2(){if(_v)return ep;_v=1;var e=vf(),t="__lodash_hash_undefined__";function r(n,i){var c=this.__data__;return this.size+=this.has(n)?0:1,c[n]=e&&i===void 0?t:i,this}return ep=r,ep}var tp,Rv;function R2(){if(Rv)return tp;Rv=1;var e=S2(),t=k2(),r=T2(),n=A2(),i=_2();function c(f){var g=-1,b=f==null?0:f.length;for(this.clear();++g<b;){var m=f[g];this.set(m[0],m[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=n,c.prototype.set=i,tp=c,tp}var rp,Nv;function N2(){if(Nv)return rp;Nv=1;var e=R2(),t=gf(),r=Zh();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return rp=n,rp}var np,Pv;function P2(){if(Pv)return np;Pv=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return np=e,np}var ap,Ov;function bf(){if(Ov)return ap;Ov=1;var e=P2();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ap=t,ap}var op,Bv;function O2(){if(Bv)return op;Bv=1;var e=bf();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return op=t,op}var ip,Iv;function B2(){if(Iv)return ip;Iv=1;var e=bf();function t(r){return e(this,r).get(r)}return ip=t,ip}var sp,Lv;function I2(){if(Lv)return sp;Lv=1;var e=bf();function t(r){return e(this,r).has(r)}return sp=t,sp}var lp,Mv;function L2(){if(Mv)return lp;Mv=1;var e=bf();function t(r,n){var i=e(this,r),c=i.size;return i.set(r,n),this.size+=i.size==c?0:1,this}return lp=t,lp}var up,zv;function Hv(){if(zv)return up;zv=1;var e=N2(),t=O2(),r=B2(),n=I2(),i=L2();function c(f){var g=-1,b=f==null?0:f.length;for(this.clear();++g<b;){var m=f[g];this.set(m[0],m[1])}}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=r,c.prototype.has=n,c.prototype.set=i,up=c,up}var cp,Wv;function M2(){if(Wv)return cp;Wv=1;var e=gf(),t=Zh(),r=Hv(),n=200;function i(c,f){var g=this.__data__;if(g instanceof e){var b=g.__data__;if(!t||b.length<n-1)return b.push([c,f]),this.size=++g.size,this;g=this.__data__=new r(b)}return g.set(c,f),this.size=g.size,this}return cp=i,cp}var dp,Uv;function z2(){if(Uv)return dp;Uv=1;var e=gf(),t=m2(),r=v2(),n=b2(),i=y2(),c=M2();function f(g){var b=this.__data__=new e(g);this.size=b.size}return f.prototype.clear=t,f.prototype.delete=r,f.prototype.get=n,f.prototype.has=i,f.prototype.set=c,dp=f,dp}var fp,jv;function H2(){if(jv)return fp;jv=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return fp=t,fp}var hp,Gv;function W2(){if(Gv)return hp;Gv=1;function e(t){return this.__data__.has(t)}return hp=e,hp}var pp,Yv;function U2(){if(Yv)return pp;Yv=1;var e=Hv(),t=H2(),r=W2();function n(i){var c=-1,f=i==null?0:i.length;for(this.__data__=new e;++c<f;)this.add(i[c])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,pp=n,pp}var gp,Vv;function j2(){if(Vv)return gp;Vv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return gp=e,gp}var mp,Xv;function G2(){if(Xv)return mp;Xv=1;function e(t,r){return t.has(r)}return mp=e,mp}var vp,Zv;function Jv(){if(Zv)return vp;Zv=1;var e=U2(),t=j2(),r=G2(),n=1,i=2;function c(f,g,b,m,v,E){var A=b&n,F=f.length,S=g.length;if(F!=S&&!(A&&S>F))return!1;var N=E.get(f),O=E.get(g);if(N&&O)return N==g&&O==f;var B=-1,z=!0,Z=b&i?new e:void 0;for(E.set(f,g),E.set(g,f);++B<F;){var V=f[B],J=g[B];if(m)var $=A?m(J,V,B,g,f,E):m(V,J,B,f,g,E);if($!==void 0){if($)continue;z=!1;break}if(Z){if(!t(g,function(K,ve){if(!r(Z,ve)&&(V===K||v(V,K,b,m,E)))return Z.push(ve)})){z=!1;break}}else if(!(V===J||v(V,J,b,m,E))){z=!1;break}}return E.delete(f),E.delete(g),z}return vp=c,vp}var bp,qv;function Y2(){if(qv)return bp;qv=1;var e=Oi(),t=e.Uint8Array;return bp=t,bp}var yp,Kv;function V2(){if(Kv)return yp;Kv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,c){n[++r]=[c,i]}),n}return yp=e,yp}var wp,Qv;function X2(){if(Qv)return wp;Qv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return wp=e,wp}var xp,$v;function Z2(){if($v)return xp;$v=1;var e=Oh(),t=Y2(),r=qm(),n=Jv(),i=V2(),c=X2(),f=1,g=2,b="[object Boolean]",m="[object Date]",v="[object Error]",E="[object Map]",A="[object Number]",F="[object RegExp]",S="[object Set]",N="[object String]",O="[object Symbol]",B="[object ArrayBuffer]",z="[object DataView]",Z=e?e.prototype:void 0,V=Z?Z.valueOf:void 0;function J($,K,ve,se,me,ge,Qe){switch(ve){case z:if($.byteLength!=K.byteLength||$.byteOffset!=K.byteOffset)return!1;$=$.buffer,K=K.buffer;case B:return!($.byteLength!=K.byteLength||!ge(new t($),new t(K)));case b:case m:case A:return r(+$,+K);case v:return $.name==K.name&&$.message==K.message;case F:case N:return $==K+"";case E:var pe=i;case S:var Ie=se&f;if(pe||(pe=c),$.size!=K.size&&!Ie)return!1;var tt=Qe.get($);if(tt)return tt==K;se|=g,Qe.set($,K);var rt=n(pe($),pe(K),se,me,ge,Qe);return Qe.delete($),rt;case O:if(V)return V.call($)==V.call(K)}return!1}return xp=J,xp}var Dp,eb;function J2(){if(eb)return Dp;eb=1;function e(t,r){for(var n=-1,i=r.length,c=t.length;++n<i;)t[c+n]=r[n];return t}return Dp=e,Dp}var Cp,tb;function Ep(){if(tb)return Cp;tb=1;var e=Array.isArray;return Cp=e,Cp}var Fp,rb;function q2(){if(rb)return Fp;rb=1;var e=J2(),t=Ep();function r(n,i,c){var f=i(n);return t(n)?f:e(f,c(n))}return Fp=r,Fp}var Sp,nb;function K2(){if(nb)return Sp;nb=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,c=0,f=[];++n<i;){var g=t[n];r(g,n,t)&&(f[c++]=g)}return f}return Sp=e,Sp}var kp,ab;function Q2(){if(ab)return kp;ab=1;function e(){return[]}return kp=e,kp}var Tp,ob;function $2(){if(ob)return Tp;ob=1;var e=K2(),t=Q2(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,c=i?function(f){return f==null?[]:(f=Object(f),e(i(f),function(g){return n.call(f,g)}))}:t;return Tp=c,Tp}var Ap,ib;function ex(){if(ib)return Ap;ib=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ap=e,Ap}var _p,sb;function yf(){if(sb)return _p;sb=1;function e(t){return t!=null&&typeof t=="object"}return _p=e,_p}var Rp,lb;function tx(){if(lb)return Rp;lb=1;var e=mf(),t=yf(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Rp=n,Rp}var Np,ub;function rx(){if(ub)return Np;ub=1;var e=tx(),t=yf(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,c=e((function(){return arguments})())?e:function(f){return t(f)&&n.call(f,"callee")&&!i.call(f,"callee")};return Np=c,Np}var wf={exports:{}},Pp,cb;function nx(){if(cb)return Pp;cb=1;function e(){return!1}return Pp=e,Pp}var db;function fb(){return db||(db=1,(function(e,t){var r=Oi(),n=nx(),i=t&&!t.nodeType&&t,c=i&&!0&&e&&!e.nodeType&&e,f=c&&c.exports===i,g=f?r.Buffer:void 0,b=g?g.isBuffer:void 0,m=b||n;e.exports=m})(wf,wf.exports)),wf.exports}var Op,hb;function ax(){if(hb)return Op;hb=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var c=typeof n;return i=i??e,!!i&&(c=="number"||c!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Op=r,Op}var Bp,pb;function gb(){if(pb)return Bp;pb=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Bp=t,Bp}var Ip,mb;function ox(){if(mb)return Ip;mb=1;var e=mf(),t=gb(),r=yf(),n="[object Arguments]",i="[object Array]",c="[object Boolean]",f="[object Date]",g="[object Error]",b="[object Function]",m="[object Map]",v="[object Number]",E="[object Object]",A="[object RegExp]",F="[object Set]",S="[object String]",N="[object WeakMap]",O="[object ArrayBuffer]",B="[object DataView]",z="[object Float32Array]",Z="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",$="[object Int32Array]",K="[object Uint8Array]",ve="[object Uint8ClampedArray]",se="[object Uint16Array]",me="[object Uint32Array]",ge={};ge[z]=ge[Z]=ge[V]=ge[J]=ge[$]=ge[K]=ge[ve]=ge[se]=ge[me]=!0,ge[n]=ge[i]=ge[O]=ge[c]=ge[B]=ge[f]=ge[g]=ge[b]=ge[m]=ge[v]=ge[E]=ge[A]=ge[F]=ge[S]=ge[N]=!1;function Qe(pe){return r(pe)&&t(pe.length)&&!!ge[e(pe)]}return Ip=Qe,Ip}var Lp,vb;function ix(){if(vb)return Lp;vb=1;function e(t){return function(r){return t(r)}}return Lp=e,Lp}var xf={exports:{}},bb;function sx(){return bb||(bb=1,(function(e,t){var r=lv(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===n,f=c&&r.process,g=(function(){try{var b=i&&i.require&&i.require("util").types;return b||f&&f.binding&&f.binding("util")}catch{}})();e.exports=g})(xf,xf.exports)),xf.exports}var Mp,yb;function wb(){if(yb)return Mp;yb=1;var e=ox(),t=ix(),r=sx(),n=r&&r.isTypedArray,i=n?t(n):e;return Mp=i,Mp}var zp,xb;function lx(){if(xb)return zp;xb=1;var e=ex(),t=rx(),r=Ep(),n=fb(),i=ax(),c=wb(),f=Object.prototype,g=f.hasOwnProperty;function b(m,v){var E=r(m),A=!E&&t(m),F=!E&&!A&&n(m),S=!E&&!A&&!F&&c(m),N=E||A||F||S,O=N?e(m.length,String):[],B=O.length;for(var z in m)(v||g.call(m,z))&&!(N&&(z=="length"||F&&(z=="offset"||z=="parent")||S&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||i(z,B)))&&O.push(z);return O}return zp=b,zp}var Hp,Db;function ux(){if(Db)return Hp;Db=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Hp=t,Hp}var Wp,Cb;function cx(){if(Cb)return Wp;Cb=1;function e(t,r){return function(n){return t(r(n))}}return Wp=e,Wp}var Up,Eb;function dx(){if(Eb)return Up;Eb=1;var e=cx(),t=e(Object.keys,Object);return Up=t,Up}var jp,Fb;function fx(){if(Fb)return jp;Fb=1;var e=ux(),t=dx(),r=Object.prototype,n=r.hasOwnProperty;function i(c){if(!e(c))return t(c);var f=[];for(var g in Object(c))n.call(c,g)&&g!="constructor"&&f.push(g);return f}return jp=i,jp}var Gp,Sb;function hx(){if(Sb)return Gp;Sb=1;var e=Hh(),t=gb();function r(n){return n!=null&&t(n.length)&&!e(n)}return Gp=r,Gp}var Yp,kb;function px(){if(kb)return Yp;kb=1;var e=lx(),t=fx(),r=hx();function n(i){return r(i)?e(i):t(i)}return Yp=n,Yp}var Vp,Tb;function gx(){if(Tb)return Vp;Tb=1;var e=q2(),t=$2(),r=px();function n(i){return e(i,r,t)}return Vp=n,Vp}var Xp,Ab;function mx(){if(Ab)return Xp;Ab=1;var e=gx(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(c,f,g,b,m,v){var E=g&t,A=e(c),F=A.length,S=e(f),N=S.length;if(F!=N&&!E)return!1;for(var O=F;O--;){var B=A[O];if(!(E?B in f:n.call(f,B)))return!1}var z=v.get(c),Z=v.get(f);if(z&&Z)return z==f&&Z==c;var V=!0;v.set(c,f),v.set(f,c);for(var J=E;++O<F;){B=A[O];var $=c[B],K=f[B];if(b)var ve=E?b(K,$,B,f,c,v):b($,K,B,c,f,v);if(!(ve===void 0?$===K||m($,K,g,b,v):ve)){V=!1;break}J||(J=B=="constructor")}if(V&&!J){var se=c.constructor,me=f.constructor;se!=me&&"constructor"in c&&"constructor"in f&&!(typeof se=="function"&&se instanceof se&&typeof me=="function"&&me instanceof me)&&(V=!1)}return v.delete(c),v.delete(f),V}return Xp=i,Xp}var Zp,_b;function vx(){if(_b)return Zp;_b=1;var e=Yu(),t=Oi(),r=e(t,"DataView");return Zp=r,Zp}var Jp,Rb;function bx(){if(Rb)return Jp;Rb=1;var e=Yu(),t=Oi(),r=e(t,"Promise");return Jp=r,Jp}var qp,Nb;function yx(){if(Nb)return qp;Nb=1;var e=Yu(),t=Oi(),r=e(t,"Set");return qp=r,qp}var Kp,Pb;function wx(){if(Pb)return Kp;Pb=1;var e=Yu(),t=Oi(),r=e(t,"WeakMap");return Kp=r,Kp}var Qp,Ob;function xx(){if(Ob)return Qp;Ob=1;var e=vx(),t=Zh(),r=bx(),n=yx(),i=wx(),c=mf(),f=wv(),g="[object Map]",b="[object Object]",m="[object Promise]",v="[object Set]",E="[object WeakMap]",A="[object DataView]",F=f(e),S=f(t),N=f(r),O=f(n),B=f(i),z=c;return(e&&z(new e(new ArrayBuffer(1)))!=A||t&&z(new t)!=g||r&&z(r.resolve())!=m||n&&z(new n)!=v||i&&z(new i)!=E)&&(z=function(Z){var V=c(Z),J=V==b?Z.constructor:void 0,$=J?f(J):"";if($)switch($){case F:return A;case S:return g;case N:return m;case O:return v;case B:return E}return V}),Qp=z,Qp}var $p,Bb;function Dx(){if(Bb)return $p;Bb=1;var e=z2(),t=Jv(),r=Z2(),n=mx(),i=xx(),c=Ep(),f=fb(),g=wb(),b=1,m="[object Arguments]",v="[object Array]",E="[object Object]",A=Object.prototype,F=A.hasOwnProperty;function S(N,O,B,z,Z,V){var J=c(N),$=c(O),K=J?v:i(N),ve=$?v:i(O);K=K==m?E:K,ve=ve==m?E:ve;var se=K==E,me=ve==E,ge=K==ve;if(ge&&f(N)){if(!f(O))return!1;J=!0,se=!1}if(ge&&!se)return V||(V=new e),J||g(N)?t(N,O,B,z,Z,V):r(N,O,K,B,z,Z,V);if(!(B&b)){var Qe=se&&F.call(N,"__wrapped__"),pe=me&&F.call(O,"__wrapped__");if(Qe||pe){var Ie=Qe?N.value():N,tt=pe?O.value():O;return V||(V=new e),Z(Ie,tt,B,z,V)}}return ge?(V||(V=new e),n(N,O,B,z,Z,V)):!1}return $p=S,$p}var eg,Ib;function Cx(){if(Ib)return eg;Ib=1;var e=Dx(),t=yf();function r(n,i,c,f,g){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,c,f,r,g)}return eg=r,eg}var tg,Lb;function Ex(){if(Lb)return tg;Lb=1;var e=Cx();function t(r,n,i){i=typeof i=="function"?i:void 0;var c=i?i(r,n):void 0;return c===void 0?e(r,n,void 0,i):!!c}return tg=t,tg}var Fx=Ex();const Sx=nd(Fx);var rg,Mb;function kx(){return Mb||(Mb=1,rg=function(t,r,n,i){var c=n?n.call(i,t,r):void 0;if(c!==void 0)return!!c;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var f=Object.keys(t),g=Object.keys(r);if(f.length!==g.length)return!1;for(var b=Object.prototype.hasOwnProperty.bind(r),m=0;m<f.length;m++){var v=f[m];if(!b(v))return!1;var E=t[v],A=r[v];if(c=n?n.call(i,E,A,v):void 0,c===!1||c===void 0&&E!==A)return!1}return!0}),rg}var Tx=kx();const Ax=nd(Tx);let _x=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");var zb="Invariant failed";function Dt(e,t){if(!e){var r=typeof t=="function"?t():t,n=r?"".concat(zb,": ").concat(r):zb;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Go="ROOT",Hb="canvas-ROOT",Rx="Parent id cannot be ommited",Nx="Attempting to add a node with duplicated id",Wb="Node does not exist, it may have been removed",Px='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',Ox="Node cannot be dropped into target parent",Bx="Target parent rejects incoming node",Ix="Current parent rejects outgoing node",Ub="Cannot move node that is not a direct child of a Canvas node",Lx="Cannot move node into a non-Canvas parent",jb="A top-level Node cannot be moved",Mx="Cannot move node into a descendant",Df="The component type specified for this node (%node_type%) does not exist in the resolver",zx="The node has specified a canDrag() rule that prevents it from being dragged",Hx="Invalid parameter Node Id specified",Wx="Attempting to delete a top-level Node",Ux=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
|
|
171
|
-
|
|
172
|
-
More info: https://craft.js.org/r/docs/api/editor#props`,jx=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
|
|
59
|
+
t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),ml=ne('$RR("'),vl=ne('","'),hu=ne('",'),xi=ne('"'),bl=ne(")<\/script>");ne('<template data-rci="" data-bid="'),ne('<template data-rri="" data-bid="'),ne('" data-sid="'),ne('" data-sty="');var xo=ne('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),pu=ne('$RX("'),wo=ne('"'),yl=ne(","),Pa=ne(")<\/script>");ne('<template data-rxi="" data-bid="'),ne('" data-dgst="'),ne('" data-msg="'),ne('" data-stck="'),ne('" data-cstck="');var fs=/[<\u2028\u2029]/g;function Do(s){return JSON.stringify(s).replace(fs,function(c){switch(c){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var hs=/[&><\u2028\u2029]/g;function wi(s){return JSON.stringify(s).replace(hs,function(c){switch(c){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var La=ne('<style media="not all" data-precedence="'),gu=ne('" data-href="'),mu=ne('">'),At=ne("</style>"),Di=!1,ta=!0;function Ci(s){var c=s.rules,v=s.hrefs,C=0;if(v.length){for(te(this,La),te(this,s.precedence),te(this,gu);C<v.length-1;C++)te(this,v[C]),te(this,ps);for(te(this,v[C]),te(this,mu),C=0;C<c.length;C++)te(this,c[C]);ta=fe(this,At),Di=!0,c.length=0,v.length=0}}function xl(s){return s.state!==2?Di=!0:!1}function fn(s,c,v){return Di=!1,ta=!0,c.styles.forEach(Ci,s),c.stylesheets.forEach(xl),Di&&(v.stylesToHoist=!0),ta}function Gt(s){for(var c=0;c<s.length;c++)te(this,s[c]);s.length=0}var Vt=[];function pr(s){Pt(Vt,s.props);for(var c=0;c<Vt.length;c++)te(this,Vt[c]);Vt.length=0,s.state=2}var Ei=ne('<style data-precedence="'),wl=ne('" data-href="'),ps=ne(" "),Co=ne('">'),gs=ne("</style>");function wr(s){var c=0<s.sheets.size;s.sheets.forEach(pr,this),s.sheets.clear();var v=s.rules,C=s.hrefs;if(!c||C.length){if(te(this,Ei),te(this,s.precedence),s=0,C.length){for(te(this,wl);s<C.length-1;s++)te(this,C[s]),te(this,ps);te(this,C[s])}for(te(this,Co),s=0;s<v.length;s++)te(this,v[s]);te(this,gs),v.length=0,C.length=0}}function Eo(s){if(s.state===0){s.state=1;var c=s.props;for(Pt(Vt,{rel:"preload",as:"style",href:s.props.href,crossOrigin:c.crossOrigin,fetchPriority:c.fetchPriority,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy}),s=0;s<Vt.length;s++)te(this,Vt[s]);Vt.length=0}}function ms(s){s.sheets.forEach(Eo,this),s.sheets.clear()}var Fo=ne("["),vs=ne(",["),So=ne(","),gr=ne("]");function Fi(s,c){te(s,Fo);var v=Fo;c.stylesheets.forEach(function(C){if(C.state!==2)if(C.state===3)te(s,v),te(s,le(wi(""+C.props.href))),te(s,gr),v=vs;else{te(s,v);var k=C.props["data-precedence"],B=C.props,z=vt(""+C.props.href);te(s,le(wi(z))),k=""+k,te(s,So),te(s,le(wi(k)));for(var X in B)if(rt.call(B,X)&&(k=B[X],k!=null))switch(X){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:Pn(s,X,k)}te(s,gr),v=vs,C.state=3}}),te(s,gr)}function Pn(s,c,v){var C=c.toLowerCase();switch(typeof v){case"function":case"symbol":return}switch(c){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":C="class",c=""+v;break;case"hidden":if(v===!1)return;c="";break;case"src":case"href":v=vt(v),c=""+v;break;default:if(2<c.length&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N")||!rr(c))return;c=""+v}te(s,So),te(s,le(wi(C))),te(s,So),te(s,le(wi(c)))}function Si(){return{styles:new Set,stylesheets:new Set}}function bs(s){var c=Et||null;if(c){var v=c.resumableState,C=c.renderState;if(typeof s=="string"&&s){if(!v.dnsResources.hasOwnProperty(s)){v.dnsResources[s]=null,v=C.headers;var k,B;(B=v&&0<v.remainingCapacity)&&(B=(k="<"+(""+s).replace(Zr,qr)+">; rel=dns-prefetch",0<=(v.remainingCapacity-=k.length+2))),B?(C.resets.dns[s]=null,v.preconnects&&(v.preconnects+=", "),v.preconnects+=k):(k=[],Pt(k,{href:s,rel:"dns-prefetch"}),C.preconnects.add(k))}Wn(c)}}else Ye.D(s)}function ra(s,c){var v=Et||null;if(v){var C=v.resumableState,k=v.renderState;if(typeof s=="string"&&s){var B=c==="use-credentials"?"credentials":typeof c=="string"?"anonymous":"default";if(!C.connectResources[B].hasOwnProperty(s)){C.connectResources[B][s]=null,C=k.headers;var z,X;if(X=C&&0<C.remainingCapacity){if(X="<"+(""+s).replace(Zr,qr)+">; rel=preconnect",typeof c=="string"){var W=(""+c).replace(Ti,na);X+='; crossorigin="'+W+'"'}X=(z=X,0<=(C.remainingCapacity-=z.length+2))}X?(k.resets.connect[B][s]=null,C.preconnects&&(C.preconnects+=", "),C.preconnects+=z):(B=[],Pt(B,{rel:"preconnect",href:s,crossOrigin:c}),k.preconnects.add(B))}Wn(v)}}else Ye.C(s,c)}function ko(s,c,v){var C=Et||null;if(C){var k=C.resumableState,B=C.renderState;if(c&&s){switch(c){case"image":if(v)var z=v.imageSrcSet,X=v.imageSizes,W=v.fetchPriority;var V=z?z+`
|
|
60
|
+
`+(X||""):s;if(k.imageResources.hasOwnProperty(V))return;k.imageResources[V]=Xe,k=B.headers;var oe;k&&0<k.remainingCapacity&&typeof z!="string"&&W==="high"&&(oe=Cr(s,c,v),0<=(k.remainingCapacity-=oe.length+2))?(B.resets.image[V]=Xe,k.highImagePreloads&&(k.highImagePreloads+=", "),k.highImagePreloads+=oe):(k=[],Pt(k,qt({rel:"preload",href:z?void 0:s,as:c},v)),W==="high"?B.highImagePreloads.add(k):(B.bulkPreloads.add(k),B.preloads.images.set(V,k)));break;case"style":if(k.styleResources.hasOwnProperty(s))return;z=[],Pt(z,qt({rel:"preload",href:s,as:c},v)),k.styleResources[s]=!v||typeof v.crossOrigin!="string"&&typeof v.integrity!="string"?Xe:[v.crossOrigin,v.integrity],B.preloads.stylesheets.set(s,z),B.bulkPreloads.add(z);break;case"script":if(k.scriptResources.hasOwnProperty(s))return;z=[],B.preloads.scripts.set(s,z),B.bulkPreloads.add(z),Pt(z,qt({rel:"preload",href:s,as:c},v)),k.scriptResources[s]=!v||typeof v.crossOrigin!="string"&&typeof v.integrity!="string"?Xe:[v.crossOrigin,v.integrity];break;default:if(k.unknownResources.hasOwnProperty(c)){if(z=k.unknownResources[c],z.hasOwnProperty(s))return}else z={},k.unknownResources[c]=z;if(z[s]=Xe,(k=B.headers)&&0<k.remainingCapacity&&c==="font"&&(V=Cr(s,c,v),0<=(k.remainingCapacity-=V.length+2)))B.resets.font[s]=Xe,k.fontPreloads&&(k.fontPreloads+=", "),k.fontPreloads+=V;else switch(k=[],s=qt({rel:"preload",href:s,as:c},v),Pt(k,s),c){case"font":B.fontPreloads.add(k);break;default:B.bulkPreloads.add(k)}}Wn(C)}}else Ye.L(s,c,v)}function Lr(s,c){var v=Et||null;if(v){var C=v.resumableState,k=v.renderState;if(s){var B=c&&typeof c.as=="string"?c.as:"script";switch(B){case"script":if(C.moduleScriptResources.hasOwnProperty(s))return;B=[],C.moduleScriptResources[s]=!c||typeof c.crossOrigin!="string"&&typeof c.integrity!="string"?Xe:[c.crossOrigin,c.integrity],k.preloads.moduleScripts.set(s,B);break;default:if(C.moduleUnknownResources.hasOwnProperty(B)){var z=C.unknownResources[B];if(z.hasOwnProperty(s))return}else z={},C.moduleUnknownResources[B]=z;B=[],z[s]=Xe}Pt(B,qt({rel:"modulepreload",href:s},c)),k.bulkPreloads.add(B),Wn(v)}}else Ye.m(s,c)}function ki(s,c,v){var C=Et||null;if(C){var k=C.resumableState,B=C.renderState;if(s){c=c||"default";var z=B.styles.get(c),X=k.styleResources.hasOwnProperty(s)?k.styleResources[s]:void 0;X!==null&&(k.styleResources[s]=null,z||(z={precedence:le(Oe(c)),rules:[],hrefs:[],sheets:new Map},B.styles.set(c,z)),c={state:0,props:qt({rel:"stylesheet",href:s,"data-precedence":c},v)},X&&(X.length===2&&Dr(c.props,X),(B=B.preloads.stylesheets.get(s))&&0<B.length?B.length=0:c.state=1),z.sheets.set(s,c),Wn(C))}}else Ye.S(s,c,v)}function Ia(s,c){var v=Et||null;if(v){var C=v.resumableState,k=v.renderState;if(s){var B=C.scriptResources.hasOwnProperty(s)?C.scriptResources[s]:void 0;B!==null&&(C.scriptResources[s]=null,c=qt({src:s,async:!0},c),B&&(B.length===2&&Dr(c,B),s=k.preloads.scripts.get(s))&&(s.length=0),s=[],k.scripts.add(s),Na(s,c),Wn(v))}}else Ye.X(s,c)}function To(s,c){var v=Et||null;if(v){var C=v.resumableState,k=v.renderState;if(s){var B=C.moduleScriptResources.hasOwnProperty(s)?C.moduleScriptResources[s]:void 0;B!==null&&(C.moduleScriptResources[s]=null,c=qt({src:s,type:"module",async:!0},c),B&&(B.length===2&&Dr(c,B),s=k.preloads.moduleScripts.get(s))&&(s.length=0),s=[],k.scripts.add(s),Na(s,c),Wn(v))}}else Ye.M(s,c)}function Dr(s,c){s.crossOrigin==null&&(s.crossOrigin=c[0]),s.integrity==null&&(s.integrity=c[1])}function Cr(s,c,v){s=(""+s).replace(Zr,qr),c=(""+c).replace(Ti,na),c="<"+s+'>; rel=preload; as="'+c+'"';for(var C in v)rt.call(v,C)&&(s=v[C],typeof s=="string"&&(c+="; "+C.toLowerCase()+'="'+(""+s).replace(Ti,na)+'"'));return c}var Zr=/[<>\r\n]/g;function qr(s){switch(s){case"<":return"%3C";case">":return"%3E";case`
|
|
61
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Ti=/["';,\r\n]/g;function na(s){switch(s){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
62
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function ys(s){this.styles.add(s)}function _i(s){this.stylesheets.add(s)}var hn=Function.prototype.bind,Ai=Symbol.for("react.client.reference");function Kr(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===Ai?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case i:return"Fragment";case h:return"Profiler";case u:return"StrictMode";case F:return"Suspense";case S:return"SuspenseList";case _:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case a:return"Portal";case b:return(s.displayName||"Context")+".Provider";case p:return(s._context.displayName||"Context")+".Consumer";case D:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case R:return c=s.displayName||null,c!==null?c:Kr(s.type)||"Memo";case O:c=s._payload,s=s._init;try{return Kr(s(c))}catch{}}return null}var xs={},Qr=null;function l(s,c){if(s!==c){s.context._currentValue=s.parentValue,s=s.parent;var v=c.parent;if(s===null){if(v!==null)throw Error(r(401))}else{if(v===null)throw Error(r(401));l(s,v)}c.context._currentValue=c.value}}function f(s){s.context._currentValue=s.parentValue,s=s.parent,s!==null&&f(s)}function x(s){var c=s.parent;c!==null&&x(c),s.context._currentValue=s.value}function E(s,c){if(s.context._currentValue=s.parentValue,s=s.parent,s===null)throw Error(r(402));s.depth===c.depth?l(s,c):E(s,c)}function T(s,c){var v=c.parent;if(v===null)throw Error(r(402));s.depth===v.depth?l(s,v):T(s,v),c.context._currentValue=c.value}function P(s){var c=Qr;c!==s&&(c===null?x(s):s===null?f(c):c.depth===s.depth?l(c,s):c.depth>s.depth?E(c,s):T(c,s),Qr=s)}var j={enqueueSetState:function(s,c){s=s._reactInternals,s.queue!==null&&s.queue.push(c)},enqueueReplaceState:function(s,c){s=s._reactInternals,s.replace=!0,s.queue=[c]},enqueueForceUpdate:function(){}},re={id:1,overflow:""};function J(s,c,v){var C=s.id;s=s.overflow;var k=32-K(C)-1;C&=~(1<<k),v+=1;var B=32-K(c)+k;if(30<B){var z=k-k%5;return B=(C&(1<<z)-1).toString(32),C>>=z,k-=z,{id:1<<32-K(c)+k|v<<k|C,overflow:B+s}}return{id:1<<B|v<<k|C,overflow:s}}var K=Math.clz32?Math.clz32:we,de=Math.log,se=Math.LN2;function we(s){return s>>>=0,s===0?32:31-(de(s)/se|0)|0}var Ce=Error(r(460));function Fe(){}function Se(s,c,v){switch(v=s[v],v===void 0?s.push(c):v!==c&&(c.then(Fe,Fe),c=v),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(Fe,Fe):(s=c,s.status="pending",s.then(function(C){if(c.status==="pending"){var k=c;k.status="fulfilled",k.value=C}},function(C){if(c.status==="pending"){var k=c;k.status="rejected",k.reason=C}})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}throw qe=c,Ce}}var qe=null;function Ke(){if(qe===null)throw Error(r(459));var s=qe;return qe=null,s}function Ze(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var et=typeof Object.is=="function"?Object.is:Ze,xe=null,nt=null,Le=null,Nt=null,Lt=null,ke=null,Rt=!1,Ln=!1,It=0,pn=0,Kt=-1,Ct=0,Ot=null,Yt=null,Ir=0;function Jt(){if(xe===null)throw Error(r(321));return xe}function In(){if(0<Ir)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function gn(){return ke===null?Lt===null?(Rt=!1,Lt=ke=In()):(Rt=!0,ke=Lt):ke.next===null?(Rt=!1,ke=ke.next=In()):(Rt=!0,ke=ke.next),ke}function Mn(){var s=Ot;return Ot=null,s}function mn(){Nt=Le=nt=xe=null,Ln=!1,Lt=null,Ir=0,ke=Yt=null}function Ni(s,c){return typeof c=="function"?c(s):c}function Ne(s,c,v){if(xe=Jt(),ke=gn(),Rt){var C=ke.queue;if(c=C.dispatch,Yt!==null&&(v=Yt.get(C),v!==void 0)){Yt.delete(C),C=ke.memoizedState;do C=s(C,v.action),v=v.next;while(v!==null);return ke.memoizedState=C,[C,c]}return[ke.memoizedState,c]}return s=s===Ni?typeof c=="function"?c():c:v!==void 0?v(c):c,ke.memoizedState=s,s=ke.queue={last:null,dispatch:null},s=s.dispatch=Er.bind(null,xe,s),[ke.memoizedState,s]}function vn(s,c){if(xe=Jt(),ke=gn(),c=c===void 0?null:c,ke!==null){var v=ke.memoizedState;if(v!==null&&c!==null){var C=v[1];e:if(C===null)C=!1;else{for(var k=0;k<C.length&&k<c.length;k++)if(!et(c[k],C[k])){C=!1;break e}C=!0}if(C)return v[0]}}return s=s(),ke.memoizedState=[s,c],s}function Er(s,c,v){if(25<=Ir)throw Error(r(301));if(s===xe)if(Ln=!0,s={action:v,next:null},Yt===null&&(Yt=new Map),v=Yt.get(c),v===void 0)Yt.set(c,s);else{for(c=v;c.next!==null;)c=c.next;c.next=s}}function Dl(){throw Error(r(394))}function Ri(){throw Error(r(479))}function ws(s,c,v){Jt();var C=pn++,k=Le;if(typeof s.$$FORM_ACTION=="function"){var B=null,z=Nt;k=k.formState;var X=s.$$IS_SIGNATURE_EQUAL;if(k!==null&&typeof X=="function"){var W=k[1];X.call(s,k[2],k[3])&&(B=v!==void 0?"p"+v:"k"+Y(JSON.stringify([z,null,C]),0),W===B&&(Kt=C,c=k[0]))}var V=s.bind(null,c);return s=function(ae){V(ae)},typeof V.$$FORM_ACTION=="function"&&(s.$$FORM_ACTION=function(ae){ae=V.$$FORM_ACTION(ae),v!==void 0&&(v+="",ae.action=v);var pe=ae.data;return pe&&(B===null&&(B=v!==void 0?"p"+v:"k"+Y(JSON.stringify([z,null,C]),0)),pe.append("$ACTION_KEY",B)),ae}),[c,s,!1]}var oe=s.bind(null,c);return[c,function(ae){oe(ae)},!1]}function Ds(s){var c=Ct;return Ct+=1,Ot===null&&(Ot=[]),Se(Ot,s,c)}function Cl(){throw Error(r(393))}function Ma(){}var Cs={readContext:function(s){return s._currentValue},use:function(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Ds(s);if(s.$$typeof===b)return s._currentValue}throw Error(r(438,String(s)))},useContext:function(s){return Jt(),s._currentValue},useMemo:vn,useReducer:Ne,useRef:function(s){xe=Jt(),ke=gn();var c=ke.memoizedState;return c===null?(s={current:s},ke.memoizedState=s):c},useState:function(s){return Ne(Ni,s)},useInsertionEffect:Ma,useLayoutEffect:Ma,useCallback:function(s,c){return vn(function(){return s},c)},useImperativeHandle:Ma,useEffect:Ma,useDebugValue:Ma,useDeferredValue:function(s,c){return Jt(),c!==void 0?c:s},useTransition:function(){return Jt(),[!1,Dl]},useId:function(){var s=nt.treeContext,c=s.overflow;s=s.id,s=(s&~(1<<32-K(s)-1)).toString(32)+c;var v=Oi;if(v===null)throw Error(r(404));return c=It++,s="«"+v.idPrefix+"R"+s,0<c&&(s+="H"+c.toString(32)),s+"»"},useSyncExternalStore:function(s,c,v){if(v===void 0)throw Error(r(407));return v()},useOptimistic:function(s){return Jt(),[s,Ri]},useActionState:ws,useFormState:ws,useHostTransitionStatus:function(){return Jt(),Ks},useMemoCache:function(s){for(var c=Array(s),v=0;v<s;v++)c[v]=U;return c},useCacheRefresh:function(){return Cl}},Oi=null,Bi={getCacheForType:function(){throw Error(r(248))}},Mr,Es;function aa(s){if(Mr===void 0)try{throw Error()}catch(v){var c=v.stack.trim().match(/\n( *(at )?)/);Mr=c&&c[1]||"",Es=-1<v.stack.indexOf(`
|
|
63
|
+
at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
64
|
+
`+Mr+s+Es}var ia=!1;function Pi(s,c){if(!s||ia)return"";ia=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var C={DetermineComponentFrameRoot:function(){try{if(c){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(me){var pe=me}Reflect.construct(s,[],ae)}else{try{ae.call()}catch(me){pe=me}s.call(ae.prototype)}}else{try{throw Error()}catch(me){pe=me}(ae=s())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(me){if(me&&pe&&typeof me.stack=="string")return[me.stack,pe.stack]}return[null,null]}};C.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var k=Object.getOwnPropertyDescriptor(C.DetermineComponentFrameRoot,"name");k&&k.configurable&&Object.defineProperty(C.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var B=C.DetermineComponentFrameRoot(),z=B[0],X=B[1];if(z&&X){var W=z.split(`
|
|
65
|
+
`),V=X.split(`
|
|
66
|
+
`);for(k=C=0;C<W.length&&!W[C].includes("DetermineComponentFrameRoot");)C++;for(;k<V.length&&!V[k].includes("DetermineComponentFrameRoot");)k++;if(C===W.length||k===V.length)for(C=W.length-1,k=V.length-1;1<=C&&0<=k&&W[C]!==V[k];)k--;for(;1<=C&&0<=k;C--,k--)if(W[C]!==V[k]){if(C!==1||k!==1)do if(C--,k--,0>k||W[C]!==V[k]){var oe=`
|
|
67
|
+
`+W[C].replace(" at new "," at ");return s.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",s.displayName)),oe}while(1<=C&&0<=k);break}}}finally{ia=!1,Error.prepareStackTrace=v}return(v=s?s.displayName||s.name:"")?aa(v):""}function zn(s){if(typeof s=="string")return aa(s);if(typeof s=="function")return s.prototype&&s.prototype.isReactComponent?Pi(s,!0):Pi(s,!1);if(typeof s=="object"&&s!==null){switch(s.$$typeof){case D:return Pi(s.render,!1);case R:return Pi(s.type,!1);case O:var c=s,v=c._payload;c=c._init;try{s=c(v)}catch{return aa("Lazy")}return zn(s)}if(typeof s.name=="string")return v=s.env,aa(s.name+(v?" ["+v+"]":""))}switch(s){case S:return aa("SuspenseList");case F:return aa("Suspense")}return""}function Li(s){if(typeof s=="object"&&s!==null&&typeof s.environmentName=="string"){var c=s.environmentName;s=[s].slice(0),typeof s[0]=="string"?s.splice(0,1,"%c%s%c "+s[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+c+" ",""):s.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+c+" ",""),s.unshift(console),c=hn.apply(console.error,s),c()}else console.error(s);return null}function $r(){}function Ii(s,c,v,C,k,B,z,X,W,V,oe){var ae=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=s,this.renderState=c,this.rootFormatContext=v,this.progressiveChunkSize=C===void 0?12800:C,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=ae,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=k===void 0?Li:k,this.onPostpone=V===void 0?$r:V,this.onAllReady=B===void 0?$r:B,this.onShellReady=z===void 0?$r:z,this.onShellError=X===void 0?$r:X,this.onFatalError=W===void 0?$r:W,this.formState=oe===void 0?null:oe}function oa(s,c,v,C,k,B,z,X,W,V,oe,ae){return c=new Ii(c,v,C,k,B,z,X,W,V,oe,ae),v=Hn(c,0,null,C,!1,!1),v.parentFlushed=!0,s=sa(c,null,s,-1,null,v,null,null,c.abortableTasks,null,C,null,re,null,!1),zr(s),c.pingedTasks.push(s),c}function bn(s,c,v,C,k,B,z,X,W,V,oe){return s=oa(s,c,v,C,k,B,z,X,W,V,oe,void 0),s.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},s}var Et=null;function _o(s,c){s.pingedTasks.push(c),s.pingedTasks.length===1&&(s.flushScheduled=s.destination!==null,s.trackedPostpones!==null||s.status===10?Ae(function(){return Te(s)}):ve(function(){return Te(s)}))}function Fr(s,c,v,C){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:c,errorDigest:null,contentState:Si(),fallbackState:Si(),contentPreamble:v,fallbackPreamble:C,trackedContentKeyPath:null,trackedFallbackNode:null}}function sa(s,c,v,C,k,B,z,X,W,V,oe,ae,pe,me,Ee){s.allPendingTasks++,k===null?s.pendingRootTasks++:k.pendingTasks++;var _e={replay:null,node:v,childIndex:C,ping:function(){return _o(s,_e)},blockedBoundary:k,blockedSegment:B,blockedPreamble:z,hoistableState:X,abortSet:W,keyPath:V,formatContext:oe,context:ae,treeContext:pe,componentStack:me,thenableState:c,isFallback:Ee};return W.add(_e),_e}function za(s,c,v,C,k,B,z,X,W,V,oe,ae,pe,me){s.allPendingTasks++,B===null?s.pendingRootTasks++:B.pendingTasks++,v.pendingTasks++;var Ee={replay:v,node:C,childIndex:k,ping:function(){return _o(s,Ee)},blockedBoundary:B,blockedSegment:null,blockedPreamble:null,hoistableState:z,abortSet:X,keyPath:W,formatContext:V,context:oe,treeContext:ae,componentStack:pe,thenableState:c,isFallback:me};return X.add(Ee),Ee}function Hn(s,c,v,C,k,B){return{status:0,parentFlushed:!1,id:-1,index:c,chunks:[],children:[],preambleChildren:[],parentFormatContext:C,boundary:v,lastPushedText:k,textEmbedded:B}}function zr(s){var c=s.node;if(typeof c=="object"&&c!==null)switch(c.$$typeof){case n:s.componentStack={parent:s.componentStack,type:c.type}}}function yn(s){var c={};return s&&Object.defineProperty(c,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var v="",C=s;do v+=zn(C.type),C=C.parent;while(C);var k=v}catch(B){k=`
|
|
68
|
+
Error generating stack: `+B.message+`
|
|
69
|
+
`+B.stack}return Object.defineProperty(c,"componentStack",{value:k}),k}}),c}function it(s,c,v){if(s=s.onError,c=s(c,v),c==null||typeof c=="string")return c}function en(s,c){var v=s.onShellError,C=s.onFatalError;v(c),C(c),s.destination!==null?(s.status=14,_n(s.destination,c)):(s.status=13,s.fatalError=c)}function mr(s,c,v,C,k,B){var z=c.thenableState;for(c.thenableState=null,xe={},nt=c,Le=s,Nt=v,pn=It=0,Kt=-1,Ct=0,Ot=z,s=C(k,B);Ln;)Ln=!1,pn=It=0,Kt=-1,Ct=0,Ir+=1,ke=null,s=C(k,B);return mn(),s}function Ha(s,c,v,C,k,B,z){var X=!1;if(B!==0&&s.formState!==null){var W=c.blockedSegment;if(W!==null){X=!0,W=W.chunks;for(var V=0;V<B;V++)V===z?W.push(al):W.push(lu)}}B=c.keyPath,c.keyPath=v,k?(v=c.treeContext,c.treeContext=J(v,1,0),vr(s,c,C,-1),c.treeContext=v):X?vr(s,c,C,-1):ut(s,c,C,-1),c.keyPath=B}function la(s,c,v,C,k,B){if(typeof C=="function")if(C.prototype&&C.prototype.isReactComponent){var z=k;if("ref"in k){z={};for(var X in k)X!=="ref"&&(z[X]=k[X])}var W=C.defaultProps;if(W){z===k&&(z=qt({},z,k));for(var V in W)z[V]===void 0&&(z[V]=W[V])}k=z,z=xs,W=C.contextType,typeof W=="object"&&W!==null&&(z=W._currentValue),z=new C(k,z);var oe=z.state!==void 0?z.state:null;if(z.updater=j,z.props=k,z.state=oe,W={queue:[],replace:!1},z._reactInternals=W,B=C.contextType,z.context=typeof B=="object"&&B!==null?B._currentValue:xs,B=C.getDerivedStateFromProps,typeof B=="function"&&(B=B(k,oe),oe=B==null?oe:qt({},oe,B),z.state=oe),typeof C.getDerivedStateFromProps!="function"&&typeof z.getSnapshotBeforeUpdate!="function"&&(typeof z.UNSAFE_componentWillMount=="function"||typeof z.componentWillMount=="function"))if(C=z.state,typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount(),C!==z.state&&j.enqueueReplaceState(z,z.state,null),W.queue!==null&&0<W.queue.length)if(C=W.queue,B=W.replace,W.queue=null,W.replace=!1,B&&C.length===1)z.state=C[0];else{for(W=B?C[0]:z.state,oe=!0,B=B?1:0;B<C.length;B++)V=C[B],V=typeof V=="function"?V.call(z,W,k,void 0):V,V!=null&&(oe?(oe=!1,W=qt({},W,V)):qt(W,V));z.state=W}else W.queue=null;if(C=z.render(),s.status===12)throw null;k=c.keyPath,c.keyPath=v,ut(s,c,C,-1),c.keyPath=k}else{if(C=mr(s,c,v,C,k,void 0),s.status===12)throw null;Ha(s,c,v,C,It!==0,pn,Kt)}else if(typeof C=="string")if(z=c.blockedSegment,z===null)z=k.children,W=c.formatContext,oe=c.keyPath,c.formatContext=Rr(W,C,k),c.keyPath=v,vr(s,c,z,-1),c.formatContext=W,c.keyPath=oe;else{B=po(z.chunks,C,k,s.resumableState,s.renderState,c.blockedPreamble,c.hoistableState,c.formatContext,z.lastPushedText,c.isFallback),z.lastPushedText=!1,W=c.formatContext,oe=c.keyPath,c.keyPath=v,(c.formatContext=Rr(W,C,k)).insertionMode===3?(v=Hn(s,0,null,c.formatContext,!1,!1),z.preambleChildren.push(v),v=sa(s,null,B,-1,c.blockedBoundary,v,c.blockedPreamble,c.hoistableState,s.abortableTasks,c.keyPath,c.formatContext,c.context,c.treeContext,c.componentStack,c.isFallback),zr(v),s.pingedTasks.push(v)):vr(s,c,B,-1),c.formatContext=W,c.keyPath=oe;e:{switch(c=z.chunks,s=s.resumableState,C){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=W.insertionMode){s.hasBody=!0;break e}break;case"html":if(W.insertionMode===0){s.hasHtml=!0;break e}break;case"head":if(1>=W.insertionMode)break e}c.push(pt(C))}z.lastPushedText=!1}else{switch(C){case M:case u:case h:case i:C=c.keyPath,c.keyPath=v,ut(s,c,k.children,-1),c.keyPath=C;return;case _:k.mode!=="hidden"&&(C=c.keyPath,c.keyPath=v,ut(s,c,k.children,-1),c.keyPath=C);return;case S:C=c.keyPath,c.keyPath=v,ut(s,c,k.children,-1),c.keyPath=C;return;case H:case N:throw Error(r(343));case F:e:if(c.replay!==null){C=c.keyPath,c.keyPath=v,v=k.children;try{vr(s,c,v,-1)}finally{c.keyPath=C}}else{C=c.keyPath;var ae=c.blockedBoundary;B=c.blockedPreamble;var pe=c.hoistableState;V=c.blockedSegment,X=k.fallback,k=k.children;var me=new Set,Ee=2>c.formatContext.insertionMode?Fr(s,me,at(),at()):Fr(s,me,null,null);s.trackedPostpones!==null&&(Ee.trackedContentKeyPath=v);var _e=Hn(s,V.chunks.length,Ee,c.formatContext,!1,!1);V.children.push(_e),V.lastPushedText=!1;var Je=Hn(s,0,null,c.formatContext,!1,!1);if(Je.parentFlushed=!0,s.trackedPostpones!==null){z=[v[0],"Suspense Fallback",v[2]],W=[z[1],z[2],[],null],s.trackedPostpones.workingMap.set(z,W),Ee.trackedFallbackNode=W,c.blockedSegment=_e,c.blockedPreamble=Ee.fallbackPreamble,c.keyPath=z,_e.status=6;try{vr(s,c,X,-1),_e.lastPushedText&&_e.textEmbedded&&_e.chunks.push(Yr),_e.status=1}catch(ct){throw _e.status=s.status===12?3:4,ct}finally{c.blockedSegment=V,c.blockedPreamble=B,c.keyPath=C}c=sa(s,null,k,-1,Ee,Je,Ee.contentPreamble,Ee.contentState,c.abortSet,v,c.formatContext,c.context,c.treeContext,c.componentStack,c.isFallback),zr(c),s.pingedTasks.push(c)}else{c.blockedBoundary=Ee,c.blockedPreamble=Ee.contentPreamble,c.hoistableState=Ee.contentState,c.blockedSegment=Je,c.keyPath=v,Je.status=6;try{if(vr(s,c,k,-1),Je.lastPushedText&&Je.textEmbedded&&Je.chunks.push(Yr),Je.status=1,Un(Ee,Je),Ee.pendingTasks===0&&Ee.status===0){Ee.status=1,s.pendingRootTasks===0&&c.blockedPreamble&&br(s);break e}}catch(ct){Ee.status=4,s.status===12?(Je.status=3,z=s.fatalError):(Je.status=4,z=ct),W=yn(c.componentStack),oe=it(s,z,W),Ee.errorDigest=oe,wn(s,Ee)}finally{c.blockedBoundary=ae,c.blockedPreamble=B,c.hoistableState=pe,c.blockedSegment=V,c.keyPath=C}c=sa(s,null,X,-1,ae,_e,Ee.fallbackPreamble,Ee.fallbackState,me,[v[0],"Suspense Fallback",v[2]],c.formatContext,c.context,c.treeContext,c.componentStack,!0),zr(c),s.pingedTasks.push(c)}}return}if(typeof C=="object"&&C!==null)switch(C.$$typeof){case D:if("ref"in k)for(Ee in z={},k)Ee!=="ref"&&(z[Ee]=k[Ee]);else z=k;C=mr(s,c,v,C.render,z,B),Ha(s,c,v,C,It!==0,pn,Kt);return;case R:la(s,c,v,C.type,k,B);return;case g:case b:if(W=k.children,z=c.keyPath,k=k.value,oe=C._currentValue,C._currentValue=k,B=Qr,Qr=C={parent:B,depth:B===null?0:B.depth+1,context:C,parentValue:oe,value:k},c.context=C,c.keyPath=v,ut(s,c,W,-1),s=Qr,s===null)throw Error(r(403));s.context._currentValue=s.parentValue,s=Qr=s.parent,c.context=s,c.keyPath=z;return;case p:k=k.children,C=k(C._context._currentValue),k=c.keyPath,c.keyPath=v,ut(s,c,C,-1),c.keyPath=k;return;case O:if(z=C._init,C=z(C._payload),s.status===12)throw null;la(s,c,v,C,k,B);return}throw Error(r(130,C==null?C:typeof C,""))}}function Ao(s,c,v,C,k){var B=c.replay,z=c.blockedBoundary,X=Hn(s,0,null,c.formatContext,!1,!1);X.id=v,X.parentFlushed=!0;try{c.replay=null,c.blockedSegment=X,vr(s,c,C,k),X.status=1,z===null?s.completedRootSegment=X:(Un(z,X),z.parentFlushed&&s.partialBoundaries.push(z))}finally{c.replay=B,c.blockedSegment=null}}function ut(s,c,v,C){c.replay!==null&&typeof c.replay.slots=="number"?Ao(s,c,c.replay.slots,v,C):(c.node=v,c.childIndex=C,v=c.componentStack,zr(c),xn(s,c),c.componentStack=v)}function xn(s,c){var v=c.node,C=c.childIndex;if(v!==null){if(typeof v=="object"){switch(v.$$typeof){case n:var k=v.type,B=v.key,z=v.props;v=z.ref;var X=v!==void 0?v:null,W=Kr(k),V=B??(C===-1?0:C);if(B=[c.keyPath,W,V],c.replay!==null)e:{var oe=c.replay;for(C=oe.nodes,v=0;v<C.length;v++){var ae=C[v];if(V===ae[1]){if(ae.length===4){if(W!==null&&W!==ae[0])throw Error(r(490,ae[0],W));var pe=ae[2];W=ae[3],V=c.node,c.replay={nodes:pe,slots:W,pendingTasks:1};try{if(la(s,c,B,k,z,X),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error(r(488));c.replay.pendingTasks--}catch(dt){if(typeof dt=="object"&&dt!==null&&(dt===Ce||typeof dt.then=="function"))throw c.node===V&&(c.replay=oe),dt;c.replay.pendingTasks--,z=yn(c.componentStack),B=c.blockedBoundary,k=dt,z=it(s,k,z),ua(s,B,pe,W,k,z)}c.replay=oe}else{if(k!==F)throw Error(r(490,"Suspense",Kr(k)||"Unknown"));t:{oe=void 0,k=ae[5],X=ae[2],W=ae[3],V=ae[4]===null?[]:ae[4][2],ae=ae[4]===null?null:ae[4][3];var me=c.keyPath,Ee=c.replay,_e=c.blockedBoundary,Je=c.hoistableState,ct=z.children,je=z.fallback,He=new Set;z=2>c.formatContext.insertionMode?Fr(s,He,at(),at()):Fr(s,He,null,null),z.parentFlushed=!0,z.rootSegmentID=k,c.blockedBoundary=z,c.hoistableState=z.contentState,c.keyPath=B,c.replay={nodes:X,slots:W,pendingTasks:1};try{if(vr(s,c,ct,-1),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error(r(488));if(c.replay.pendingTasks--,z.pendingTasks===0&&z.status===0){z.status=1,s.completedBoundaries.push(z);break t}}catch(dt){z.status=4,pe=yn(c.componentStack),oe=it(s,dt,pe),z.errorDigest=oe,c.replay.pendingTasks--,s.clientRenderedBoundaries.push(z)}finally{c.blockedBoundary=_e,c.hoistableState=Je,c.replay=Ee,c.keyPath=me}c=za(s,null,{nodes:V,slots:ae,pendingTasks:0},je,-1,_e,z.fallbackState,He,[B[0],"Suspense Fallback",B[2]],c.formatContext,c.context,c.treeContext,c.componentStack,!0),zr(c),s.pingedTasks.push(c)}}C.splice(v,1);break e}}}else la(s,c,B,k,z,X);return;case a:throw Error(r(257));case O:if(pe=v._init,v=pe(v._payload),s.status===12)throw null;ut(s,c,v,C);return}if(Q(v)){tn(s,c,v,C);return}if(v===null||typeof v!="object"?pe=null:(pe=q&&v[q]||v["@@iterator"],pe=typeof pe=="function"?pe:null),pe&&(pe=pe.call(v))){if(v=pe.next(),!v.done){z=[];do z.push(v.value),v=pe.next();while(!v.done);tn(s,c,z,C)}return}if(typeof v.then=="function")return c.thenableState=null,ut(s,c,Ds(v),C);if(v.$$typeof===b)return ut(s,c,v._currentValue,C);throw C=Object.prototype.toString.call(v),Error(r(31,C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C))}typeof v=="string"?(C=c.blockedSegment,C!==null&&(C.lastPushedText=es(C.chunks,v,s.renderState,C.lastPushedText))):(typeof v=="number"||typeof v=="bigint")&&(C=c.blockedSegment,C!==null&&(C.lastPushedText=es(C.chunks,""+v,s.renderState,C.lastPushedText)))}}function tn(s,c,v,C){var k=c.keyPath;if(C!==-1&&(c.keyPath=[c.keyPath,"Fragment",C],c.replay!==null)){for(var B=c.replay,z=B.nodes,X=0;X<z.length;X++){var W=z[X];if(W[1]===C){C=W[2],W=W[3],c.replay={nodes:C,slots:W,pendingTasks:1};try{if(tn(s,c,v,-1),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error(r(488));c.replay.pendingTasks--}catch(ae){if(typeof ae=="object"&&ae!==null&&(ae===Ce||typeof ae.then=="function"))throw ae;c.replay.pendingTasks--,v=yn(c.componentStack);var V=c.blockedBoundary,oe=ae;v=it(s,oe,v),ua(s,V,C,W,oe,v)}c.replay=B,z.splice(X,1);break}}c.keyPath=k;return}if(B=c.treeContext,z=v.length,c.replay!==null&&(X=c.replay.slots,X!==null&&typeof X=="object")){for(C=0;C<z;C++)W=v[C],c.treeContext=J(B,z,C),V=X[C],typeof V=="number"?(Ao(s,c,V,W,C),delete X[C]):vr(s,c,W,C);c.treeContext=B,c.keyPath=k;return}for(X=0;X<z;X++)C=v[X],c.treeContext=J(B,z,X),vr(s,c,C,X);c.treeContext=B,c.keyPath=k}function wn(s,c){s=s.trackedPostpones,s!==null&&(c=c.trackedContentKeyPath,c!==null&&(c=s.workingMap.get(c),c!==void 0&&(c.length=4,c[2]=[],c[3]=null)))}function jn(s,c,v){return za(s,v,c.replay,c.node,c.childIndex,c.blockedBoundary,c.hoistableState,c.abortSet,c.keyPath,c.formatContext,c.context,c.treeContext,c.componentStack,c.isFallback)}function Mi(s,c,v){var C=c.blockedSegment,k=Hn(s,C.chunks.length,null,c.formatContext,C.lastPushedText,!0);return C.children.push(k),C.lastPushedText=!1,sa(s,v,c.node,c.childIndex,c.blockedBoundary,k,c.blockedPreamble,c.hoistableState,c.abortSet,c.keyPath,c.formatContext,c.context,c.treeContext,c.componentStack,c.isFallback)}function vr(s,c,v,C){var k=c.formatContext,B=c.context,z=c.keyPath,X=c.treeContext,W=c.componentStack,V=c.blockedSegment;if(V===null)try{return ut(s,c,v,C)}catch(pe){if(mn(),v=pe===Ce?Ke():pe,typeof v=="object"&&v!==null){if(typeof v.then=="function"){C=Mn(),s=jn(s,c,C).ping,v.then(s,s),c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,c.componentStack=W,P(B);return}if(v.message==="Maximum call stack size exceeded"){v=Mn(),v=jn(s,c,v),s.pingedTasks.push(v),c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,c.componentStack=W,P(B);return}}}else{var oe=V.children.length,ae=V.chunks.length;try{return ut(s,c,v,C)}catch(pe){if(mn(),V.children.length=oe,V.chunks.length=ae,v=pe===Ce?Ke():pe,typeof v=="object"&&v!==null){if(typeof v.then=="function"){C=Mn(),s=Mi(s,c,C).ping,v.then(s,s),c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,c.componentStack=W,P(B);return}if(v.message==="Maximum call stack size exceeded"){v=Mn(),v=Mi(s,c,v),s.pingedTasks.push(v),c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,c.componentStack=W,P(B);return}}}}throw c.formatContext=k,c.context=B,c.keyPath=z,c.treeContext=X,P(B),v}function El(s){var c=s.blockedBoundary;s=s.blockedSegment,s!==null&&(s.status=3,Hi(this,c,s))}function ua(s,c,v,C,k,B){for(var z=0;z<v.length;z++){var X=v[z];if(X.length===4)ua(s,c,X[2],X[3],k,B);else{X=X[5];var W=s,V=B,oe=Fr(W,new Set,null,null);oe.parentFlushed=!0,oe.rootSegmentID=X,oe.status=4,oe.errorDigest=V,oe.parentFlushed&&W.clientRenderedBoundaries.push(oe)}}if(v.length=0,C!==null){if(c===null)throw Error(r(487));if(c.status!==4&&(c.status=4,c.errorDigest=B,c.parentFlushed&&s.clientRenderedBoundaries.push(c)),typeof C=="object")for(var ae in C)delete C[ae]}}function Fs(s,c,v){var C=s.blockedBoundary,k=s.blockedSegment;if(k!==null){if(k.status===6)return;k.status=3}if(k=yn(s.componentStack),C===null){if(c.status!==13&&c.status!==14){if(C=s.replay,C===null){it(c,v,k),en(c,v);return}C.pendingTasks--,C.pendingTasks===0&&0<C.nodes.length&&(s=it(c,v,k),ua(c,null,C.nodes,C.slots,v,s)),c.pendingRootTasks--,c.pendingRootTasks===0&&ca(c)}}else C.pendingTasks--,C.status!==4&&(C.status=4,s=it(c,v,k),C.status=4,C.errorDigest=s,wn(c,C),C.parentFlushed&&c.clientRenderedBoundaries.push(C)),C.fallbackAbortableTasks.forEach(function(B){return Fs(B,c,v)}),C.fallbackAbortableTasks.clear();c.allPendingTasks--,c.allPendingTasks===0&&zi(c)}function ja(s,c){try{var v=s.renderState,C=v.onHeaders;if(C){var k=v.headers;if(k){v.headers=null;var B=k.preconnects;if(k.fontPreloads&&(B&&(B+=", "),B+=k.fontPreloads),k.highImagePreloads&&(B&&(B+=", "),B+=k.highImagePreloads),!c){var z=v.styles.values(),X=z.next();e:for(;0<k.remainingCapacity&&!X.done;X=z.next())for(var W=X.value.sheets.values(),V=W.next();0<k.remainingCapacity&&!V.done;V=W.next()){var oe=V.value,ae=oe.props,pe=ae.href,me=oe.props,Ee=Cr(me.href,"style",{crossOrigin:me.crossOrigin,integrity:me.integrity,nonce:me.nonce,type:me.type,fetchPriority:me.fetchPriority,referrerPolicy:me.referrerPolicy,media:me.media});if(0<=(k.remainingCapacity-=Ee.length+2))v.resets.style[pe]=Xe,B&&(B+=", "),B+=Ee,v.resets.style[pe]=typeof ae.crossOrigin=="string"||typeof ae.integrity=="string"?[ae.crossOrigin,ae.integrity]:Xe;else break e}}C(B?{Link:B}:{})}}}catch(_e){it(s,_e,{})}}function ca(s){s.trackedPostpones===null&&ja(s,!0),s.trackedPostpones===null&&br(s),s.onShellError=$r,s=s.onShellReady,s()}function zi(s){ja(s,s.trackedPostpones===null?!0:s.completedRootSegment===null||s.completedRootSegment.status!==5),br(s),s=s.onAllReady,s()}function Un(s,c){if(c.chunks.length===0&&c.children.length===1&&c.children[0].boundary===null&&c.children[0].id===-1){var v=c.children[0];v.id=c.id,v.parentFlushed=!0,v.status===1&&Un(s,v)}else s.completedSegments.push(c)}function Hi(s,c,v){if(c===null){if(v!==null&&v.parentFlushed){if(s.completedRootSegment!==null)throw Error(r(389));s.completedRootSegment=v}s.pendingRootTasks--,s.pendingRootTasks===0&&ca(s)}else c.pendingTasks--,c.status!==4&&(c.pendingTasks===0?(c.status===0&&(c.status=1),v!==null&&v.parentFlushed&&v.status===1&&Un(c,v),c.parentFlushed&&s.completedBoundaries.push(c),c.status===1&&(c.fallbackAbortableTasks.forEach(El,s),c.fallbackAbortableTasks.clear(),s.pendingRootTasks===0&&s.trackedPostpones===null&&c.contentPreamble!==null&&br(s))):v!==null&&v.parentFlushed&&v.status===1&&(Un(c,v),c.completedSegments.length===1&&c.parentFlushed&&s.partialBoundaries.push(c)));s.allPendingTasks--,s.allPendingTasks===0&&zi(s)}function Te(s){if(s.status!==14&&s.status!==13){var c=Qr,v=Ar.H;Ar.H=Cs;var C=Ar.A;Ar.A=Bi;var k=Et;Et=s;var B=Oi;Oi=s.resumableState;try{var z=s.pingedTasks,X;for(X=0;X<z.length;X++){var W=z[X],V=s,oe=W.blockedSegment;if(oe===null){var ae=V;if(W.replay.pendingTasks!==0){P(W.context);try{if(typeof W.replay.slots=="number"?Ao(ae,W,W.replay.slots,W.node,W.childIndex):xn(ae,W),W.replay.pendingTasks===1&&0<W.replay.nodes.length)throw Error(r(488));W.replay.pendingTasks--,W.abortSet.delete(W),Hi(ae,W.blockedBoundary,null)}catch(xt){mn();var pe=xt===Ce?Ke():xt;if(typeof pe=="object"&&pe!==null&&typeof pe.then=="function"){var me=W.ping;pe.then(me,me),W.thenableState=Mn()}else{W.replay.pendingTasks--,W.abortSet.delete(W);var Ee=yn(W.componentStack);V=void 0;var _e=ae,Je=W.blockedBoundary,ct=ae.status===12?ae.fatalError:pe,je=W.replay.nodes,He=W.replay.slots;V=it(_e,ct,Ee),ua(_e,Je,je,He,ct,V),ae.pendingRootTasks--,ae.pendingRootTasks===0&&ca(ae),ae.allPendingTasks--,ae.allPendingTasks===0&&zi(ae)}}finally{}}}else if(ae=void 0,_e=oe,_e.status===0){_e.status=6,P(W.context);var dt=_e.children.length,lr=_e.chunks.length;try{xn(V,W),_e.lastPushedText&&_e.textEmbedded&&_e.chunks.push(Yr),W.abortSet.delete(W),_e.status=1,Hi(V,W.blockedBoundary,_e)}catch(xt){mn(),_e.children.length=dt,_e.chunks.length=lr;var Mt=xt===Ce?Ke():V.status===12?V.fatalError:xt;if(typeof Mt=="object"&&Mt!==null&&typeof Mt.then=="function"){_e.status=0,W.thenableState=Mn();var Cn=W.ping;Mt.then(Cn,Cn)}else{var kr=yn(W.componentStack);W.abortSet.delete(W),_e.status=4;var Ft=W.blockedBoundary;ae=it(V,Mt,kr),Ft===null?en(V,Mt):(Ft.pendingTasks--,Ft.status!==4&&(Ft.status=4,Ft.errorDigest=ae,wn(V,Ft),Ft.parentFlushed&&V.clientRenderedBoundaries.push(Ft),V.pendingRootTasks===0&&V.trackedPostpones===null&&Ft.contentPreamble!==null&&br(V))),V.allPendingTasks--,V.allPendingTasks===0&&zi(V)}}finally{}}}z.splice(0,X),s.destination!==null&&Wi(s,s.destination)}catch(xt){it(s,xt,{}),en(s,xt)}finally{Oi=B,Ar.H=v,Ar.A=C,v===Cs&&P(c),Et=k}}}function ji(s,c,v){c.preambleChildren.length&&v.push(c.preambleChildren);for(var C=!1,k=0;k<c.children.length;k++)C=Dn(s,c.children[k],v)||C;return C}function Dn(s,c,v){var C=c.boundary;if(C===null)return ji(s,c,v);var k=C.contentPreamble,B=C.fallbackPreamble;if(k===null||B===null)return!1;switch(C.status){case 1:if(Or(s.renderState,k),c=C.completedSegments[0],!c)throw Error(r(391));return ji(s,c,v);case 5:if(s.trackedPostpones!==null)return!0;case 4:if(c.status===1)return Or(s.renderState,B),ji(s,c,v);default:return!0}}function br(s){if(s.completedRootSegment&&s.completedPreambleSegments===null){var c=[],v=Dn(s,s.completedRootSegment,c),C=s.renderState.preamble;(v===!1||C.headChunks&&C.bodyChunks)&&(s.completedPreambleSegments=c)}}function sr(s,c,v,C){switch(v.parentFlushed=!0,v.status){case 0:v.id=s.nextSegmentId++;case 5:return C=v.id,v.lastPushedText=!1,v.textEmbedded=!1,s=s.renderState,te(c,go),te(c,s.placeholderPrefix),s=le(C.toString(16)),te(c,s),fe(c,is);case 1:v.status=2;var k=!0,B=v.chunks,z=0;v=v.children;for(var X=0;X<v.length;X++){for(k=v[X];z<k.index;z++)te(c,B[z]);k=Ua(s,c,k,C)}for(;z<B.length-1;z++)te(c,B[z]);return z<B.length&&(k=fe(c,B[z])),k;default:throw Error(r(390))}}function Ua(s,c,v,C){var k=v.boundary;if(k===null)return sr(s,c,v,C);if(k.parentFlushed=!0,k.status===4){var B=k.errorDigest;return fe(c,Br),te(c,dl),B&&(te(c,mo),te(c,le(Oe(B))),te(c,hi)),fe(c,fl),sr(s,c,v,C),(s=k.fallbackPreamble)&&Qn(c,s),fe(c,fi)}if(k.status!==1)return k.status===0&&(k.rootSegmentID=s.nextSegmentId++),0<k.completedSegments.length&&s.partialBoundaries.push(k),os(c,s.renderState,k.rootSegmentID),C&&(k=k.fallbackState,k.styles.forEach(ys,C),k.stylesheets.forEach(_i,C)),sr(s,c,v,C),fe(c,fi);if(k.byteSize>s.progressiveChunkSize)return k.rootSegmentID=s.nextSegmentId++,s.completedBoundaries.push(k),os(c,s.renderState,k.rootSegmentID),sr(s,c,v,C),fe(c,fi);if(C&&(v=k.contentState,v.styles.forEach(ys,C),v.stylesheets.forEach(_i,C)),fe(c,ll),v=k.completedSegments,v.length!==1)throw Error(r(391));return Ua(s,c,v[0],C),(s=k.contentPreamble)&&Qn(c,s),fe(c,fi)}function da(s,c,v,C){return bi(c,s.renderState,v.parentFormatContext,v.id),Ua(s,c,v,C),On(c,v.parentFormatContext)}function Ui(s,c,v){for(var C=v.completedSegments,k=0;k<C.length;k++)Wa(s,c,v,C[k]);C.length=0,fn(c,v.contentState,s.renderState),C=s.resumableState,s=s.renderState,k=v.rootSegmentID,v=v.contentState;var B=s.stylesToHoist;return s.stylesToHoist=!1,te(c,s.startInlineScript),B?(C.instructions&2)===0?(C.instructions|=10,te(c,fu)):(C.instructions&8)===0?(C.instructions|=8,te(c,ds)):te(c,ml):(C.instructions&2)===0?(C.instructions|=2,te(c,cs)):te(c,gl),C=le(k.toString(16)),te(c,s.boundaryPrefix),te(c,C),te(c,vl),te(c,s.segmentPrefix),te(c,C),B?(te(c,hu),Fi(c,v)):te(c,xi),v=fe(c,bl),Nn(c,s)&&v}function Wa(s,c,v,C){if(C.status===2)return!0;var k=v.contentState,B=C.id;if(B===-1){if((C.id=v.rootSegmentID)===-1)throw Error(r(392));return da(s,c,C,k)}return B===v.rootSegmentID?da(s,c,C,k):(da(s,c,C,k),v=s.resumableState,s=s.renderState,te(c,s.startInlineScript),(v.instructions&1)===0?(v.instructions|=1,te(c,Bn)):te(c,yi),te(c,s.segmentPrefix),B=le(B.toString(16)),te(c,B),te(c,pl),te(c,s.placeholderPrefix),te(c,B),c=fe(c,us),c)}function Wi(s,c){Ge=new Uint8Array(2048),Ue=0;try{if(!(0<s.pendingRootTasks)){var v,C=s.completedRootSegment;if(C!==null){if(C.status===5)return;var k=s.completedPreambleSegments;if(k===null)return;var B=s.renderState,z=B.preamble,X=z.htmlChunks,W=z.headChunks,V;if(X){for(V=0;V<X.length;V++)te(c,X[V]);if(W)for(V=0;V<W.length;V++)te(c,W[V]);else te(c,yt("head")),te(c,Wt)}else if(W)for(V=0;V<W.length;V++)te(c,W[V]);var oe=B.charsetChunks;for(V=0;V<oe.length;V++)te(c,oe[V]);oe.length=0,B.preconnects.forEach(Gt,c),B.preconnects.clear();var ae=B.viewportChunks;for(V=0;V<ae.length;V++)te(c,ae[V]);ae.length=0,B.fontPreloads.forEach(Gt,c),B.fontPreloads.clear(),B.highImagePreloads.forEach(Gt,c),B.highImagePreloads.clear(),B.styles.forEach(wr,c);var pe=B.importMapChunks;for(V=0;V<pe.length;V++)te(c,pe[V]);pe.length=0,B.bootstrapScripts.forEach(Gt,c),B.scripts.forEach(Gt,c),B.scripts.clear(),B.bulkPreloads.forEach(Gt,c),B.bulkPreloads.clear();var me=B.hoistableChunks;for(V=0;V<me.length;V++)te(c,me[V]);for(B=me.length=0;B<k.length;B++){var Ee=k[B];for(z=0;z<Ee.length;z++)Ua(s,c,Ee[z],null)}var _e=s.renderState.preamble,Je=_e.headChunks;(_e.htmlChunks||Je)&&te(c,pt("head"));var ct=_e.bodyChunks;if(ct)for(k=0;k<ct.length;k++)te(c,ct[k]);Ua(s,c,C,null),s.completedRootSegment=null,Nn(c,s.renderState)}var je=s.renderState;C=0;var He=je.viewportChunks;for(C=0;C<He.length;C++)te(c,He[C]);He.length=0,je.preconnects.forEach(Gt,c),je.preconnects.clear(),je.fontPreloads.forEach(Gt,c),je.fontPreloads.clear(),je.highImagePreloads.forEach(Gt,c),je.highImagePreloads.clear(),je.styles.forEach(ms,c),je.scripts.forEach(Gt,c),je.scripts.clear(),je.bulkPreloads.forEach(Gt,c),je.bulkPreloads.clear();var dt=je.hoistableChunks;for(C=0;C<dt.length;C++)te(c,dt[C]);dt.length=0;var lr=s.clientRenderedBoundaries;for(v=0;v<lr.length;v++){var Mt=lr[v];je=c;var Cn=s.resumableState,kr=s.renderState,Ft=Mt.rootSegmentID,xt=Mt.errorDigest;te(je,kr.startInlineScript),(Cn.instructions&4)===0?(Cn.instructions|=4,te(je,xo)):te(je,pu),te(je,kr.boundaryPrefix),te(je,le(Ft.toString(16))),te(je,wo),xt&&(te(je,yl),te(je,le(Do(xt||""))));var ot=fe(je,Pa);if(!ot){s.destination=null,v++,lr.splice(0,v);return}}lr.splice(0,v);var zt=s.completedBoundaries;for(v=0;v<zt.length;v++)if(!Ui(s,c,zt[v])){s.destination=null,v++,zt.splice(0,v);return}zt.splice(0,v),Ea(c),Ge=new Uint8Array(2048),Ue=0;var Va=s.partialBoundaries;for(v=0;v<Va.length;v++){var En=Va[v];e:{lr=s,Mt=c;var Gn=En.completedSegments;for(ot=0;ot<Gn.length;ot++)if(!Wa(lr,Mt,En,Gn[ot])){ot++,Gn.splice(0,ot);var Vn=!1;break e}Gn.splice(0,ot),Vn=fn(Mt,En.contentState,lr.renderState)}if(!Vn){s.destination=null,v++,Va.splice(0,v);return}}Va.splice(0,v);var St=s.completedBoundaries;for(v=0;v<St.length;v++)if(!Ui(s,c,St[v])){s.destination=null,v++,St.splice(0,v);return}St.splice(0,v)}}finally{s.allPendingTasks===0&&s.pingedTasks.length===0&&s.clientRenderedBoundaries.length===0&&s.completedBoundaries.length===0?(s.flushScheduled=!1,v=s.resumableState,v.hasBody&&te(c,pt("body")),v.hasHtml&&te(c,pt("html")),Ea(c),s.status=14,c.close(),s.destination=null):Ea(c)}}function Qt(s){s.flushScheduled=s.destination!==null,Ae(function(){return Te(s)}),ve(function(){s.status===10&&(s.status=11),s.trackedPostpones===null&&ja(s,s.pendingRootTasks===0)})}function Wn(s){s.flushScheduled===!1&&s.pingedTasks.length===0&&s.destination!==null&&(s.flushScheduled=!0,ve(function(){var c=s.destination;c?Wi(s,c):s.flushScheduled=!1}))}function fa(s,c){if(s.status===13)s.status=14,_n(c,s.fatalError);else if(s.status!==14&&s.destination===null){s.destination=c;try{Wi(s,c)}catch(v){it(s,v,{}),en(s,v)}}}function Sr(s,c){(s.status===11||s.status===10)&&(s.status=12);try{var v=s.abortableTasks;if(0<v.size){var C=c===void 0?Error(r(432)):typeof c=="object"&&c!==null&&typeof c.then=="function"?Error(r(530)):c;s.fatalError=C,v.forEach(function(k){return Fs(k,s,C)}),v.clear()}s.destination!==null&&Wi(s,s.destination)}catch(k){it(s,k,{}),en(s,k)}}function Ga(){var s=e.version;if(s!=="19.1.1")throw Error(r(527,s,"19.1.1"))}return Ga(),Ga(),Bl.prerender=function(s,c){return new Promise(function(v,C){var k=c?c.onHeaders:void 0,B;k&&(B=function(oe){k(new Headers(oe))});var z=Nr(c?c.identifierPrefix:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.bootstrapScriptContent:void 0,c?c.bootstrapScripts:void 0,c?c.bootstrapModules:void 0),X=bn(s,z,Qs(z,void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.importMap:void 0,B,c?c.maxHeadersLength:void 0),$o(c?c.namespaceURI:void 0),c?c.progressiveChunkSize:void 0,c?c.onError:void 0,function(){var oe={prelude:new ReadableStream({type:"bytes",pull:function(ae){fa(X,ae)},cancel:function(ae){X.destination=null,Sr(X,ae)}},{highWaterMark:0})};v(oe)},void 0,void 0,C,c?c.onPostpone:void 0);if(c&&c.signal){var W=c.signal;if(W.aborted)Sr(X,W.reason);else{var V=function(){Sr(X,W.reason),W.removeEventListener("abort",V)};W.addEventListener("abort",V)}}Qt(X)})},Bl.renderToReadableStream=function(s,c){return new Promise(function(v,C){var k,B,z=new Promise(function(me,Ee){B=me,k=Ee}),X=c?c.onHeaders:void 0,W;X&&(W=function(me){X(new Headers(me))});var V=Nr(c?c.identifierPrefix:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.bootstrapScriptContent:void 0,c?c.bootstrapScripts:void 0,c?c.bootstrapModules:void 0),oe=oa(s,V,Qs(V,c?c.nonce:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.importMap:void 0,W,c?c.maxHeadersLength:void 0),$o(c?c.namespaceURI:void 0),c?c.progressiveChunkSize:void 0,c?c.onError:void 0,B,function(){var me=new ReadableStream({type:"bytes",pull:function(Ee){fa(oe,Ee)},cancel:function(Ee){oe.destination=null,Sr(oe,Ee)}},{highWaterMark:0});me.allReady=z,v(me)},function(me){z.catch(function(){}),C(me)},k,c?c.onPostpone:void 0,c?c.formState:void 0);if(c&&c.signal){var ae=c.signal;if(ae.aborted)Sr(oe,ae.reason);else{var pe=function(){Sr(oe,ae.reason),ae.removeEventListener("abort",pe)};ae.addEventListener("abort",pe)}}Qt(oe)})},Bl.version="19.1.1",Bl}var Ip;function Oy(){if(Ip)return Bo;Ip=1;var e,t;return e=Ny(),t=Ry(),Bo.version=e.version,Bo.renderToString=e.renderToString,Bo.renderToStaticMarkup=e.renderToStaticMarkup,Bo.renderToReadableStream=t.renderToReadableStream,t.resume&&(Bo.resume=t.resume),Bo}var By=Oy(),Kc={exports:{}},Qc,Mp;function Py(){if(Mp)return Qc;Mp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qc=e,Qc}var $c,zp;function Ly(){if(zp)return $c;zp=1;var e=Py();function t(){}function r(){}return r.resetWarningCache=t,$c=function(){function n(u,h,g,p,b,D){if(D!==e){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},$c}var Hp;function Iy(){return Hp||(Hp=1,Kc.exports=Ly()()),Kc.exports}var My=Iy();const Jn=Nl(My);var zy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jp(e,t){return e(t={exports:{}},t.exports),t.exports}var Hy=jp((function(e){(function(t){var r=function(N,_,M){if(!g(_)||b(_)||D(_)||F(_)||h(_))return _;var U,H=0,q=0;if(p(_))for(U=[],q=_.length;H<q;H++)U.push(r(N,_[H],M));else for(var Q in U={},_)Object.prototype.hasOwnProperty.call(_,Q)&&(U[N(Q,M)]=r(N,_[Q],M));return U},n=function(N){return S(N)?N:(N=N.replace(/[\-_\s]+(.)?/g,(function(_,M){return M?M.toUpperCase():""}))).substr(0,1).toLowerCase()+N.substr(1)},a=function(N){var _=n(N);return _.substr(0,1).toUpperCase()+_.substr(1)},i=function(N,_){return(function(M,U){var H=(U=U||{}).separator||"_",q=U.split||/(?=[A-Z])/;return M.split(q).join(H)})(N,_).toLowerCase()},u=Object.prototype.toString,h=function(N){return typeof N=="function"},g=function(N){return N===Object(N)},p=function(N){return u.call(N)=="[object Array]"},b=function(N){return u.call(N)=="[object Date]"},D=function(N){return u.call(N)=="[object RegExp]"},F=function(N){return u.call(N)=="[object Boolean]"},S=function(N){return(N-=0)==N},R=function(N,_){var M=_&&"process"in _?_.process:_;return typeof M!="function"?N:function(U,H){return M(U,N,H)}},O={camelize:n,decamelize:i,pascalize:a,depascalize:i,camelizeKeys:function(N,_){return r(R(n,_),N)},decamelizeKeys:function(N,_){return r(R(i,_),N,_)},pascalizeKeys:function(N,_){return r(R(a,_),N)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=O:t.humps=O})(zy)})).decamelize,jy=function(e){if(Array.isArray(e))return e},Uy=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var u,h=e[Symbol.iterator]();!(n=(u=h.next()).done)&&(r.push(u.value),r.length!==t);n=!0);}catch(g){a=!0,i=g}finally{try{n||h.return==null||h.return()}finally{if(a)throw i}}return r}},Up=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},Wy=function(e,t){if(e){if(typeof e=="string")return Up(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Up(e,t):void 0}},Gy=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
70
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Vy=function(e,t){return jy(e)||Uy(e,t)||Wy(e,t)||Gy()},Wp=jp((function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])}return r},t.apply(this,arguments)}e.exports=t})),Yy=function(e,t){if(e==null)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a},Gp=function(e,t){if(e==null)return{};var r,n,a=Yy(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a},Jy=I.createContext(null);function Vp(e){var t=e.children,r=t===void 0?"":t,n=Gp(e,["children"]);return typeof r!="string"&&(r=By.renderToString(r)),I.createElement("template",Wp({},n,{dangerouslySetInnerHTML:{__html:r}}))}function Yp(e){var t=e.root,r=e.children;return Yn.createPortal(r===void 0?null:r,t)}function Xy(e){var t=I.forwardRef((function(r,n){var a,i,u=r.mode,h=u===void 0?"open":u,g=r.delegatesFocus,p=g!==void 0&&g,b=r.styleSheets,D=b===void 0?[]:b,F=r.ssr,S=F!==void 0&&F,R=r.children,O=Gp(r,["mode","delegatesFocus","styleSheets","ssr","children"]),N=(i=I.useRef((a=n)&&a.current),I.useEffect((function(){a&&(a.current=i.current)}),[a]),i),_=I.useState(null),M=Vy(_,2),U=M[0],H=M[1],q="node_".concat(h).concat(p);return I.useLayoutEffect((function(){if(N.current)try{if(typeof n=="function"&&n(N.current),S){var Q=N.current.shadowRoot;return void H(Q)}var Y=N.current.attachShadow({mode:h,delegatesFocus:p});D.length>0&&(Y.adoptedStyleSheets=D),H(Y)}catch(ie){(function(ee){var ve=ee.error,ge=ee.styleSheets,Ie=ee.root;switch(ve.name){case"NotSupportedError":ge.length>0&&(Ie.adoptedStyleSheets=ge);break;default:throw ve}})({error:ie,styleSheets:D,root:U})}}),[n,N,D]),I.createElement(I.Fragment,null,I.createElement(e.tag,Wp({key:q,ref:N},O),(U||S)&&I.createElement(Jy.Provider,{value:U},S?I.createElement(Vp,{shadowroot:h,shadowrootmode:h},e.render({root:U,ssr:S,children:R})):I.createElement(Yp,{root:U},e.render({root:U,ssr:S,children:R})))))}));return t.propTypes={mode:Jn.oneOf(["open","closed"]),delegatesFocus:Jn.bool,styleSheets:Jn.arrayOf(Jn.instanceOf(globalThis.CSSStyleSheet)),ssr:Jn.bool,children:Jn.node},t}Vp.propTypes={children:Jn.oneOfType([Jn.string,Jn.node])},Yp.propTypes={root:Jn.object.isRequired,children:Jn.node};var ed=new Map;function Zy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,a){var i=Hy(a,{separator:"-"}),u="".concat(t,"-").concat(i);return ed.has(u)||ed.set(u,Xy({tag:i,render:r})),ed.get(u)}})}var qy=Zy();function cr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(a){return"'"+a+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Po(e){return!!e&&!!e[Qe]}function ga(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===i2})(e)||Array.isArray(e)||!!e[Ml]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ml])||Bu(e)||Pu(e))}function Lo(e,t,r){r===void 0&&(r=!1),Ki(e)===0?(r?Object.keys:dd)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,a){return t(a,n,e)}))}function Ki(e){var t=e[Qe];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Bu(e)?2:Pu(e)?3:0}function Pl(e,t){return Ki(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ou(e,t){return Ki(e)===2?e.get(t):e[t]}function Jp(e,t,r){var n=Ki(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ky(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Bu(e){return n2&&e instanceof Map}function Pu(e){return a2&&e instanceof Set}function er(e){return e.o||e.t}function td(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=o2(e);delete t[Qe];for(var r=dd(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function rd(e,t){return t===void 0&&(t=!1),nd(e)||Po(e)||!ga(e)||(Ki(e)>1&&(e.set=e.add=e.clear=e.delete=Qy),Object.freeze(e),t&&Lo(e,(function(r,n){return rd(n,!0)}),!0)),e}function Qy(){cr(2)}function nd(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ma(e){var t=fd[e];return t||cr(18,e),t}function Xp(e,t){fd[e]||(fd[e]=t)}function Lu(){return Il}function ad(e,t){t&&(ma("Patches"),e.u=[],e.s=[],e.v=t)}function Iu(e){id(e),e.p.forEach($y),e.p=null}function id(e){e===Il&&(Il=e.l)}function Zp(e){return Il={p:[],l:Il,h:e,m:!0,_:0}}function $y(e){var t=e[Qe];t.i===0||t.i===1?t.j():t.g=!0}function od(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ma("ES5").S(t,e,n),n?(r[Qe].P&&(Iu(t),cr(4)),ga(e)&&(e=Mu(t,e),t.l||zu(t,e)),t.u&&ma("Patches").M(r[Qe].t,e,t.u,t.s)):e=Mu(t,r,[]),Iu(t),t.u&&t.v(t.u,t.s),e!==cd?e:void 0}function Mu(e,t,r){if(nd(t))return t;var n=t[Qe];if(!n)return Lo(t,(function(h,g){return qp(e,n,t,h,g,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return zu(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=td(n.k):n.o,i=a,u=!1;n.i===3&&(i=new Set(a),a.clear(),u=!0),Lo(i,(function(h,g){return qp(e,n,a,h,g,r,u)})),zu(e,a,!1),r&&e.u&&ma("Patches").N(n,r,e.u,e.s)}return n.o}function qp(e,t,r,n,a,i,u){if(Po(a)){var h=Mu(e,a,i&&t&&t.i!==3&&!Pl(t.R,n)?i.concat(n):void 0);if(Jp(r,n,h),!Po(h))return;e.m=!1}else u&&r.add(a);if(ga(a)&&!nd(a)){if(!e.h.D&&e._<1)return;Mu(e,a),t&&t.A.l||zu(e,a)}}function zu(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&rd(t,r)}function sd(e,t){var r=e[Qe];return(r?er(r):e)[t]}function Kp(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Za(e){e.P||(e.P=!0,e.l&&Za(e.l))}function ld(e){e.o||(e.o=td(e.t))}function Ll(e,t,r){var n=Bu(t)?ma("MapSet").F(t,r):Pu(t)?ma("MapSet").T(t,r):e.O?(function(a,i){var u=Array.isArray(a),h={i:u?1:0,A:i?i.A:Lu(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},g=h,p=hd;u&&(g=[h],p=zl);var b=Proxy.revocable(g,p),D=b.revoke,F=b.proxy;return h.k=F,h.j=D,F})(t,r):ma("ES5").J(t,r);return(r?r.A:Lu()).p.push(n),n}function e2(e){return Po(e)||cr(22,e),(function t(r){if(!ga(r))return r;var n,a=r[Qe],i=Ki(r);if(a){if(!a.P&&(a.i<4||!ma("ES5").K(a)))return a.t;a.I=!0,n=Qp(r,i),a.I=!1}else n=Qp(r,i);return Lo(n,(function(u,h){a&&Ou(a.t,u)===h||Jp(n,u,t(h))})),i===3?new Set(n):n})(e)}function Qp(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return td(e)}function t2(){function e(n){if(!ga(n))return n;if(Array.isArray(n))return n.map(e);if(Bu(n))return new Map(Array.from(n.entries()).map((function(u){return[u[0],e(u[1])]})));if(Pu(n))return new Set(Array.from(n).map(e));var a=Object.create(Object.getPrototypeOf(n));for(var i in n)a[i]=e(n[i]);return Pl(n,Ml)&&(a[Ml]=n[Ml]),a}function t(n){return Po(n)?e(n):n}var r="add";Xp("Patches",{$:function(n,a){return a.forEach((function(i){for(var u=i.path,h=i.op,g=n,p=0;p<u.length-1;p++){var b=Ki(g),D=u[p];typeof D!="string"&&typeof D!="number"&&(D=""+D),b!==0&&b!==1||D!=="__proto__"&&D!=="constructor"||cr(24),typeof g=="function"&&D==="prototype"&&cr(24),typeof(g=Ou(g,D))!="object"&&cr(15,u.join("/"))}var F=Ki(g),S=e(i.value),R=u[u.length-1];switch(h){case"replace":switch(F){case 2:return g.set(R,S);case 3:cr(16);default:return g[R]=S}case r:switch(F){case 1:return R==="-"?g.push(S):g.splice(R,0,S);case 2:return g.set(R,S);case 3:return g.add(S);default:return g[R]=S}case"remove":switch(F){case 1:return g.splice(R,1);case 2:return g.delete(R);case 3:return g.delete(i.value);default:return delete g[R]}default:cr(17,h)}})),n},N:function(n,a,i,u){switch(n.i){case 0:case 4:case 2:return(function(h,g,p,b){var D=h.t,F=h.o;Lo(h.R,(function(S,R){var O=Ou(D,S),N=Ou(F,S),_=R?Pl(D,S)?"replace":r:"remove";if(O!==N||_!=="replace"){var M=g.concat(S);p.push(_==="remove"?{op:_,path:M}:{op:_,path:M,value:N}),b.push(_===r?{op:"remove",path:M}:_==="remove"?{op:r,path:M,value:t(O)}:{op:"replace",path:M,value:t(O)})}}))})(n,a,i,u);case 5:case 1:return(function(h,g,p,b){var D=h.t,F=h.R,S=h.o;if(S.length<D.length){var R=[S,D];D=R[0],S=R[1];var O=[b,p];p=O[0],b=O[1]}for(var N=0;N<D.length;N++)if(F[N]&&S[N]!==D[N]){var _=g.concat([N]);p.push({op:"replace",path:_,value:t(S[N])}),b.push({op:"replace",path:_,value:t(D[N])})}for(var M=D.length;M<S.length;M++){var U=g.concat([M]);p.push({op:r,path:U,value:t(S[M])})}D.length<S.length&&b.push({op:"replace",path:g.concat(["length"]),value:D.length})})(n,a,i,u);case 3:return(function(h,g,p,b){var D=h.t,F=h.o,S=0;D.forEach((function(R){if(!F.has(R)){var O=g.concat([S]);p.push({op:"remove",path:O,value:R}),b.unshift({op:r,path:O,value:R})}S++})),S=0,F.forEach((function(R){if(!D.has(R)){var O=g.concat([S]);p.push({op:r,path:O,value:R}),b.unshift({op:"remove",path:O,value:R})}S++}))})(n,a,i,u)}},M:function(n,a,i,u){i.push({op:"replace",path:[],value:a===cd?void 0:a}),u.push({op:"replace",path:[],value:n})}})}function r2(){function e(h,g){function p(){this.constructor=h}a(h,g),h.prototype=(p.prototype=g.prototype,new p)}function t(h){h.o||(h.R=new Map,h.o=new Map(h.t))}function r(h){h.o||(h.o=new Set,h.t.forEach((function(g){if(ga(g)){var p=Ll(h.A.h,g,h);h.p.set(g,p),h.o.add(p)}else h.o.add(g)})))}function n(h){h.g&&cr(3,JSON.stringify(er(h)))}var a=function(h,g){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,b){p.__proto__=b}||function(p,b){for(var D in b)b.hasOwnProperty(D)&&(p[D]=b[D])})(h,g)},i=(function(){function h(p,b){return this[Qe]={i:2,l:b,A:b?b.A:Lu(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(h,Map);var g=h.prototype;return Object.defineProperty(g,"size",{get:function(){return er(this[Qe]).size}}),g.has=function(p){return er(this[Qe]).has(p)},g.set=function(p,b){var D=this[Qe];return n(D),er(D).has(p)&&er(D).get(p)===b||(t(D),Za(D),D.R.set(p,!0),D.o.set(p,b),D.R.set(p,!0)),this},g.delete=function(p){if(!this.has(p))return!1;var b=this[Qe];return n(b),t(b),Za(b),b.t.has(p)?b.R.set(p,!1):b.R.delete(p),b.o.delete(p),!0},g.clear=function(){var p=this[Qe];n(p),er(p).size&&(t(p),Za(p),p.R=new Map,Lo(p.t,(function(b){p.R.set(b,!1)})),p.o.clear())},g.forEach=function(p,b){var D=this;er(this[Qe]).forEach((function(F,S){p.call(b,D.get(S),S,D)}))},g.get=function(p){var b=this[Qe];n(b);var D=er(b).get(p);if(b.I||!ga(D)||D!==b.t.get(p))return D;var F=Ll(b.A.h,D,b);return t(b),b.o.set(p,F),F},g.keys=function(){return er(this[Qe]).keys()},g.values=function(){var p,b=this,D=this.keys();return(p={})[Hu]=function(){return b.values()},p.next=function(){var F=D.next();return F.done?F:{done:!1,value:b.get(F.value)}},p},g.entries=function(){var p,b=this,D=this.keys();return(p={})[Hu]=function(){return b.entries()},p.next=function(){var F=D.next();if(F.done)return F;var S=b.get(F.value);return{done:!1,value:[F.value,S]}},p},g[Hu]=function(){return this.entries()},h})(),u=(function(){function h(p,b){return this[Qe]={i:3,l:b,A:b?b.A:Lu(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(h,Set);var g=h.prototype;return Object.defineProperty(g,"size",{get:function(){return er(this[Qe]).size}}),g.has=function(p){var b=this[Qe];return n(b),b.o?!!b.o.has(p)||!(!b.p.has(p)||!b.o.has(b.p.get(p))):b.t.has(p)},g.add=function(p){var b=this[Qe];return n(b),this.has(p)||(r(b),Za(b),b.o.add(p)),this},g.delete=function(p){if(!this.has(p))return!1;var b=this[Qe];return n(b),r(b),Za(b),b.o.delete(p)||!!b.p.has(p)&&b.o.delete(b.p.get(p))},g.clear=function(){var p=this[Qe];n(p),er(p).size&&(r(p),Za(p),p.o.clear())},g.values=function(){var p=this[Qe];return n(p),r(p),p.o.values()},g.entries=function(){var p=this[Qe];return n(p),r(p),p.o.entries()},g.keys=function(){return this.values()},g[Hu]=function(){return this.values()},g.forEach=function(p,b){for(var D=this.values(),F=D.next();!F.done;)p.call(b,F.value,F.value,this),F=D.next()},h})();Xp("MapSet",{F:function(h,g){return new i(h,g)},T:function(h,g){return new u(h,g)}})}var $p,Il,ud=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",n2=typeof Map<"u",a2=typeof Set<"u",eg=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",cd=ud?Symbol.for("immer-nothing"):(($p={})["immer-nothing"]=!0,$p),Ml=ud?Symbol.for("immer-draftable"):"__$immer_draftable",Qe=ud?Symbol.for("immer-state"):"__$immer_state",Hu=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",i2=""+Object.prototype.constructor,dd=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,o2=Object.getOwnPropertyDescriptors||function(e){var t={};return dd(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},fd={},hd={get:function(e,t){if(t===Qe)return e;var r=er(e);if(!Pl(r,t))return(function(a,i,u){var h,g=Kp(i,u);return g?"value"in g?g.value:(h=g.get)===null||h===void 0?void 0:h.call(a.k):void 0})(e,r,t);var n=r[t];return e.I||!ga(n)?n:n===sd(e.t,t)?(ld(e),e.o[t]=Ll(e.A.h,n,e)):n},has:function(e,t){return t in er(e)},ownKeys:function(e){return Reflect.ownKeys(er(e))},set:function(e,t,r){var n=Kp(er(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=sd(er(e),t),i=a?.[Qe];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Ky(r,a)&&(r!==void 0||Pl(e.t,t)))return!0;ld(e),Za(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return sd(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ld(e),Za(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=er(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){cr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){cr(12)}},zl={};Lo(hd,(function(e,t){zl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),zl.deleteProperty=function(e,t){return zl.set.call(this,e,t,void 0)},zl.set=function(e,t,r){return hd.set.call(this,e[0],t,r,e[0])};var s2=(function(){function e(r){var n=this;this.O=eg,this.D=!0,this.produce=function(a,i,u){if(typeof a=="function"&&typeof i!="function"){var h=i;i=a;var g=n;return function(O){var N=this;O===void 0&&(O=h);for(var _=arguments.length,M=Array(_>1?_-1:0),U=1;U<_;U++)M[U-1]=arguments[U];return g.produce(O,(function(H){var q;return(q=i).call.apply(q,[N,H].concat(M))}))}}var p;if(typeof i!="function"&&cr(6),u!==void 0&&typeof u!="function"&&cr(7),ga(a)){var b=Zp(n),D=Ll(n,a,void 0),F=!0;try{p=i(D),F=!1}finally{F?Iu(b):id(b)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(O){return ad(b,u),od(O,b)}),(function(O){throw Iu(b),O})):(ad(b,u),od(p,b))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===cd&&(p=void 0),n.D&&rd(p,!0),u){var S=[],R=[];ma("Patches").M(a,p,S,R),u(S,R)}return p}cr(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var b=arguments.length,D=Array(b>1?b-1:0),F=1;F<b;F++)D[F-1]=arguments[F];return n.produceWithPatches(p,(function(S){return a.apply(void 0,[S].concat(D))}))};var u,h,g=n.produce(a,i,(function(p,b){u=p,h=b}));return typeof Promise<"u"&&g instanceof Promise?g.then((function(p){return[p,u,h]})):[g,u,h]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ga(r)||cr(8),Po(r)&&(r=e2(r));var n=Zp(this),a=Ll(this,r,void 0);return a[Qe].C=!0,id(n),a},t.finishDraft=function(r,n){var a=r&&r[Qe],i=a.A;return ad(i,n),od(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!eg&&cr(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var u=ma("Patches").$;return Po(r)?u(r,n):this.produce(r,(function(h){return u(h,n)}))},e})(),nn=new s2,l2=nn.produce,tg=nn.produceWithPatches.bind(nn);nn.setAutoFreeze.bind(nn),nn.setUseProxies.bind(nn);var rg=nn.applyPatches.bind(nn);nn.createDraft.bind(nn),nn.finishDraft.bind(nn);var pd,ng;function u2(){if(ng)return pd;ng=1;function e(){this.__data__=[],this.size=0}return pd=e,pd}var gd,ag;function ig(){if(ag)return gd;ag=1;function e(t,r){return t===r||t!==t&&r!==r}return gd=e,gd}var md,og;function ju(){if(og)return md;og=1;var e=ig();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return md=t,md}var vd,sg;function c2(){if(sg)return vd;sg=1;var e=ju(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,u=e(i,a);if(u<0)return!1;var h=i.length-1;return u==h?i.pop():r.call(i,u,1),--this.size,!0}return vd=n,vd}var bd,lg;function d2(){if(lg)return bd;lg=1;var e=ju();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return bd=t,bd}var yd,ug;function f2(){if(ug)return yd;ug=1;var e=ju();function t(r){return e(this.__data__,r)>-1}return yd=t,yd}var xd,cg;function h2(){if(cg)return xd;cg=1;var e=ju();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return xd=t,xd}var wd,dg;function Uu(){if(dg)return wd;dg=1;var e=u2(),t=c2(),r=d2(),n=f2(),a=h2();function i(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var p=u[h];this.set(p[0],p[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,wd=i,wd}var Dd,fg;function p2(){if(fg)return Dd;fg=1;var e=Uu();function t(){this.__data__=new e,this.size=0}return Dd=t,Dd}var Cd,hg;function g2(){if(hg)return Cd;hg=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Cd=e,Cd}var Ed,pg;function m2(){if(pg)return Ed;pg=1;function e(t){return this.__data__.get(t)}return Ed=e,Ed}var Fd,gg;function v2(){if(gg)return Fd;gg=1;function e(t){return this.__data__.has(t)}return Fd=e,Fd}var Sd,mg;function vg(){if(mg)return Sd;mg=1;var e=typeof Ru=="object"&&Ru&&Ru.Object===Object&&Ru;return Sd=e,Sd}var kd,bg;function qa(){if(bg)return kd;bg=1;var e=vg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return kd=r,kd}var Td,yg;function _d(){if(yg)return Td;yg=1;var e=qa(),t=e.Symbol;return Td=t,Td}var Ad,xg;function b2(){if(xg)return Ad;xg=1;var e=_d(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(u){var h=r.call(u,a),g=u[a];try{u[a]=void 0;var p=!0}catch{}var b=n.call(u);return p&&(h?u[a]=g:delete u[a]),b}return Ad=i,Ad}var Nd,wg;function y2(){if(wg)return Nd;wg=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Nd=r,Nd}var Rd,Dg;function Wu(){if(Dg)return Rd;Dg=1;var e=_d(),t=b2(),r=y2(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function u(h){return h==null?h===void 0?a:n:i&&i in Object(h)?t(h):r(h)}return Rd=u,Rd}var Od,Cg;function Eg(){if(Cg)return Od;Cg=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Od=e,Od}var Bd,Fg;function Pd(){if(Fg)return Bd;Fg=1;var e=Wu(),t=Eg(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function u(h){if(!t(h))return!1;var g=e(h);return g==n||g==a||g==r||g==i}return Bd=u,Bd}var Ld,Sg;function x2(){if(Sg)return Ld;Sg=1;var e=qa(),t=e["__core-js_shared__"];return Ld=t,Ld}var Id,kg;function w2(){if(kg)return Id;kg=1;var e=x2(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Id=r,Id}var Md,Tg;function _g(){if(Tg)return Md;Tg=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Md=r,Md}var zd,Ag;function D2(){if(Ag)return zd;Ag=1;var e=Pd(),t=w2(),r=Eg(),n=_g(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,u=Function.prototype,h=Object.prototype,g=u.toString,p=h.hasOwnProperty,b=RegExp("^"+g.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D(F){if(!r(F)||t(F))return!1;var S=e(F)?b:i;return S.test(n(F))}return zd=D,zd}var Hd,Ng;function C2(){if(Ng)return Hd;Ng=1;function e(t,r){return t?.[r]}return Hd=e,Hd}var jd,Rg;function Ls(){if(Rg)return jd;Rg=1;var e=D2(),t=C2();function r(n,a){var i=t(n,a);return e(i)?i:void 0}return jd=r,jd}var Ud,Og;function Wd(){if(Og)return Ud;Og=1;var e=Ls(),t=qa(),r=e(t,"Map");return Ud=r,Ud}var Gd,Bg;function Gu(){if(Bg)return Gd;Bg=1;var e=Ls(),t=e(Object,"create");return Gd=t,Gd}var Vd,Pg;function E2(){if(Pg)return Vd;Pg=1;var e=Gu();function t(){this.__data__=e?e(null):{},this.size=0}return Vd=t,Vd}var Yd,Lg;function F2(){if(Lg)return Yd;Lg=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Yd=e,Yd}var Jd,Ig;function S2(){if(Ig)return Jd;Ig=1;var e=Gu(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var u=this.__data__;if(e){var h=u[i];return h===t?void 0:h}return n.call(u,i)?u[i]:void 0}return Jd=a,Jd}var Xd,Mg;function k2(){if(Mg)return Xd;Mg=1;var e=Gu(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return Xd=n,Xd}var Zd,zg;function T2(){if(zg)return Zd;zg=1;var e=Gu(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return Zd=r,Zd}var qd,Hg;function _2(){if(Hg)return qd;Hg=1;var e=E2(),t=F2(),r=S2(),n=k2(),a=T2();function i(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var p=u[h];this.set(p[0],p[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,qd=i,qd}var Kd,jg;function A2(){if(jg)return Kd;jg=1;var e=_2(),t=Uu(),r=Wd();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Kd=n,Kd}var Qd,Ug;function N2(){if(Ug)return Qd;Ug=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Qd=e,Qd}var $d,Wg;function Vu(){if(Wg)return $d;Wg=1;var e=N2();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return $d=t,$d}var ef,Gg;function R2(){if(Gg)return ef;Gg=1;var e=Vu();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ef=t,ef}var tf,Vg;function O2(){if(Vg)return tf;Vg=1;var e=Vu();function t(r){return e(this,r).get(r)}return tf=t,tf}var rf,Yg;function B2(){if(Yg)return rf;Yg=1;var e=Vu();function t(r){return e(this,r).has(r)}return rf=t,rf}var nf,Jg;function P2(){if(Jg)return nf;Jg=1;var e=Vu();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return nf=t,nf}var af,Xg;function Zg(){if(Xg)return af;Xg=1;var e=A2(),t=R2(),r=O2(),n=B2(),a=P2();function i(u){var h=-1,g=u==null?0:u.length;for(this.clear();++h<g;){var p=u[h];this.set(p[0],p[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,af=i,af}var of,qg;function L2(){if(qg)return of;qg=1;var e=Uu(),t=Wd(),r=Zg(),n=200;function a(i,u){var h=this.__data__;if(h instanceof e){var g=h.__data__;if(!t||g.length<n-1)return g.push([i,u]),this.size=++h.size,this;h=this.__data__=new r(g)}return h.set(i,u),this.size=h.size,this}return of=a,of}var sf,Kg;function I2(){if(Kg)return sf;Kg=1;var e=Uu(),t=p2(),r=g2(),n=m2(),a=v2(),i=L2();function u(h){var g=this.__data__=new e(h);this.size=g.size}return u.prototype.clear=t,u.prototype.delete=r,u.prototype.get=n,u.prototype.has=a,u.prototype.set=i,sf=u,sf}var lf,Qg;function M2(){if(Qg)return lf;Qg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return lf=t,lf}var uf,$g;function z2(){if($g)return uf;$g=1;function e(t){return this.__data__.has(t)}return uf=e,uf}var cf,em;function H2(){if(em)return cf;em=1;var e=Zg(),t=M2(),r=z2();function n(a){var i=-1,u=a==null?0:a.length;for(this.__data__=new e;++i<u;)this.add(a[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,cf=n,cf}var df,tm;function j2(){if(tm)return df;tm=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return df=e,df}var ff,rm;function U2(){if(rm)return ff;rm=1;function e(t,r){return t.has(r)}return ff=e,ff}var hf,nm;function am(){if(nm)return hf;nm=1;var e=H2(),t=j2(),r=U2(),n=1,a=2;function i(u,h,g,p,b,D){var F=g&n,S=u.length,R=h.length;if(S!=R&&!(F&&R>S))return!1;var O=D.get(u),N=D.get(h);if(O&&N)return O==h&&N==u;var _=-1,M=!0,U=g&a?new e:void 0;for(D.set(u,h),D.set(h,u);++_<S;){var H=u[_],q=h[_];if(p)var Q=F?p(q,H,_,h,u,D):p(H,q,_,u,h,D);if(Q!==void 0){if(Q)continue;M=!1;break}if(U){if(!t(h,function(Y,ie){if(!r(U,ie)&&(H===Y||b(H,Y,g,p,D)))return U.push(ie)})){M=!1;break}}else if(!(H===q||b(H,q,g,p,D))){M=!1;break}}return D.delete(u),D.delete(h),M}return hf=i,hf}var pf,im;function W2(){if(im)return pf;im=1;var e=qa(),t=e.Uint8Array;return pf=t,pf}var gf,om;function G2(){if(om)return gf;om=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,i){n[++r]=[i,a]}),n}return gf=e,gf}var mf,sm;function V2(){if(sm)return mf;sm=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return mf=e,mf}var vf,lm;function Y2(){if(lm)return vf;lm=1;var e=_d(),t=W2(),r=ig(),n=am(),a=G2(),i=V2(),u=1,h=2,g="[object Boolean]",p="[object Date]",b="[object Error]",D="[object Map]",F="[object Number]",S="[object RegExp]",R="[object Set]",O="[object String]",N="[object Symbol]",_="[object ArrayBuffer]",M="[object DataView]",U=e?e.prototype:void 0,H=U?U.valueOf:void 0;function q(Q,Y,ie,ee,ve,ge,Ie){switch(ie){case M:if(Q.byteLength!=Y.byteLength||Q.byteOffset!=Y.byteOffset)return!1;Q=Q.buffer,Y=Y.buffer;case _:return!(Q.byteLength!=Y.byteLength||!ge(new t(Q),new t(Y)));case g:case p:case F:return r(+Q,+Y);case b:return Q.name==Y.name&&Q.message==Y.message;case S:case O:return Q==Y+"";case D:var Ae=a;case R:var Ge=ee&u;if(Ae||(Ae=i),Q.size!=Y.size&&!Ge)return!1;var Ue=Ie.get(Q);if(Ue)return Ue==Y;ee|=h,Ie.set(Q,Y);var te=n(Ae(Q),Ae(Y),ee,ve,ge,Ie);return Ie.delete(Q),te;case N:if(H)return H.call(Q)==H.call(Y)}return!1}return vf=q,vf}var bf,um;function J2(){if(um)return bf;um=1;function e(t,r){for(var n=-1,a=r.length,i=t.length;++n<a;)t[i+n]=r[n];return t}return bf=e,bf}var yf,cm;function xf(){if(cm)return yf;cm=1;var e=Array.isArray;return yf=e,yf}var wf,dm;function X2(){if(dm)return wf;dm=1;var e=J2(),t=xf();function r(n,a,i){var u=a(n);return t(n)?u:e(u,i(n))}return wf=r,wf}var Df,fm;function Z2(){if(fm)return Df;fm=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=0,u=[];++n<a;){var h=t[n];r(h,n,t)&&(u[i++]=h)}return u}return Df=e,Df}var Cf,hm;function q2(){if(hm)return Cf;hm=1;function e(){return[]}return Cf=e,Cf}var Ef,pm;function K2(){if(pm)return Ef;pm=1;var e=Z2(),t=q2(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(u){return u==null?[]:(u=Object(u),e(a(u),function(h){return n.call(u,h)}))}:t;return Ef=i,Ef}var Ff,gm;function Q2(){if(gm)return Ff;gm=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return Ff=e,Ff}var Sf,mm;function Yu(){if(mm)return Sf;mm=1;function e(t){return t!=null&&typeof t=="object"}return Sf=e,Sf}var kf,vm;function $2(){if(vm)return kf;vm=1;var e=Wu(),t=Yu(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return kf=n,kf}var Tf,bm;function ex(){if(bm)return Tf;bm=1;var e=$2(),t=Yu(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(u){return t(u)&&n.call(u,"callee")&&!a.call(u,"callee")};return Tf=i,Tf}var Ju={exports:{}},_f,ym;function tx(){if(ym)return _f;ym=1;function e(){return!1}return _f=e,_f}var xm;function wm(){return xm||(xm=1,(function(e,t){var r=qa(),n=tx(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===a,h=u?r.Buffer:void 0,g=h?h.isBuffer:void 0,p=g||n;e.exports=p})(Ju,Ju.exports)),Ju.exports}var Af,Dm;function rx(){if(Dm)return Af;Dm=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return Af=r,Af}var Nf,Cm;function Em(){if(Cm)return Nf;Cm=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Nf=t,Nf}var Rf,Fm;function nx(){if(Fm)return Rf;Fm=1;var e=Wu(),t=Em(),r=Yu(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",u="[object Date]",h="[object Error]",g="[object Function]",p="[object Map]",b="[object Number]",D="[object Object]",F="[object RegExp]",S="[object Set]",R="[object String]",O="[object WeakMap]",N="[object ArrayBuffer]",_="[object DataView]",M="[object Float32Array]",U="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",Q="[object Int32Array]",Y="[object Uint8Array]",ie="[object Uint8ClampedArray]",ee="[object Uint16Array]",ve="[object Uint32Array]",ge={};ge[M]=ge[U]=ge[H]=ge[q]=ge[Q]=ge[Y]=ge[ie]=ge[ee]=ge[ve]=!0,ge[n]=ge[a]=ge[N]=ge[i]=ge[_]=ge[u]=ge[h]=ge[g]=ge[p]=ge[b]=ge[D]=ge[F]=ge[S]=ge[R]=ge[O]=!1;function Ie(Ae){return r(Ae)&&t(Ae.length)&&!!ge[e(Ae)]}return Rf=Ie,Rf}var Of,Sm;function ax(){if(Sm)return Of;Sm=1;function e(t){return function(r){return t(r)}}return Of=e,Of}var Xu={exports:{}},km;function ix(){return km||(km=1,(function(e,t){var r=vg(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,u=i&&r.process,h=(function(){try{var g=a&&a.require&&a.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}})();e.exports=h})(Xu,Xu.exports)),Xu.exports}var Bf,Tm;function _m(){if(Tm)return Bf;Tm=1;var e=nx(),t=ax(),r=ix(),n=r&&r.isTypedArray,a=n?t(n):e;return Bf=a,Bf}var Pf,Am;function ox(){if(Am)return Pf;Am=1;var e=Q2(),t=ex(),r=xf(),n=wm(),a=rx(),i=_m(),u=Object.prototype,h=u.hasOwnProperty;function g(p,b){var D=r(p),F=!D&&t(p),S=!D&&!F&&n(p),R=!D&&!F&&!S&&i(p),O=D||F||S||R,N=O?e(p.length,String):[],_=N.length;for(var M in p)(b||h.call(p,M))&&!(O&&(M=="length"||S&&(M=="offset"||M=="parent")||R&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||a(M,_)))&&N.push(M);return N}return Pf=g,Pf}var Lf,Nm;function sx(){if(Nm)return Lf;Nm=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return Lf=t,Lf}var If,Rm;function lx(){if(Rm)return If;Rm=1;function e(t,r){return function(n){return t(r(n))}}return If=e,If}var Mf,Om;function ux(){if(Om)return Mf;Om=1;var e=lx(),t=e(Object.keys,Object);return Mf=t,Mf}var zf,Bm;function cx(){if(Bm)return zf;Bm=1;var e=sx(),t=ux(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!e(i))return t(i);var u=[];for(var h in Object(i))n.call(i,h)&&h!="constructor"&&u.push(h);return u}return zf=a,zf}var Hf,Pm;function dx(){if(Pm)return Hf;Pm=1;var e=Pd(),t=Em();function r(n){return n!=null&&t(n.length)&&!e(n)}return Hf=r,Hf}var jf,Lm;function fx(){if(Lm)return jf;Lm=1;var e=ox(),t=cx(),r=dx();function n(a){return r(a)?e(a):t(a)}return jf=n,jf}var Uf,Im;function hx(){if(Im)return Uf;Im=1;var e=X2(),t=K2(),r=fx();function n(a){return e(a,r,t)}return Uf=n,Uf}var Wf,Mm;function px(){if(Mm)return Wf;Mm=1;var e=hx(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,u,h,g,p,b){var D=h&t,F=e(i),S=F.length,R=e(u),O=R.length;if(S!=O&&!D)return!1;for(var N=S;N--;){var _=F[N];if(!(D?_ in u:n.call(u,_)))return!1}var M=b.get(i),U=b.get(u);if(M&&U)return M==u&&U==i;var H=!0;b.set(i,u),b.set(u,i);for(var q=D;++N<S;){_=F[N];var Q=i[_],Y=u[_];if(g)var ie=D?g(Y,Q,_,u,i,b):g(Q,Y,_,i,u,b);if(!(ie===void 0?Q===Y||p(Q,Y,h,g,b):ie)){H=!1;break}q||(q=_=="constructor")}if(H&&!q){var ee=i.constructor,ve=u.constructor;ee!=ve&&"constructor"in i&&"constructor"in u&&!(typeof ee=="function"&&ee instanceof ee&&typeof ve=="function"&&ve instanceof ve)&&(H=!1)}return b.delete(i),b.delete(u),H}return Wf=a,Wf}var Gf,zm;function gx(){if(zm)return Gf;zm=1;var e=Ls(),t=qa(),r=e(t,"DataView");return Gf=r,Gf}var Vf,Hm;function mx(){if(Hm)return Vf;Hm=1;var e=Ls(),t=qa(),r=e(t,"Promise");return Vf=r,Vf}var Yf,jm;function vx(){if(jm)return Yf;jm=1;var e=Ls(),t=qa(),r=e(t,"Set");return Yf=r,Yf}var Jf,Um;function bx(){if(Um)return Jf;Um=1;var e=Ls(),t=qa(),r=e(t,"WeakMap");return Jf=r,Jf}var Xf,Wm;function yx(){if(Wm)return Xf;Wm=1;var e=gx(),t=Wd(),r=mx(),n=vx(),a=bx(),i=Wu(),u=_g(),h="[object Map]",g="[object Object]",p="[object Promise]",b="[object Set]",D="[object WeakMap]",F="[object DataView]",S=u(e),R=u(t),O=u(r),N=u(n),_=u(a),M=i;return(e&&M(new e(new ArrayBuffer(1)))!=F||t&&M(new t)!=h||r&&M(r.resolve())!=p||n&&M(new n)!=b||a&&M(new a)!=D)&&(M=function(U){var H=i(U),q=H==g?U.constructor:void 0,Q=q?u(q):"";if(Q)switch(Q){case S:return F;case R:return h;case O:return p;case N:return b;case _:return D}return H}),Xf=M,Xf}var Zf,Gm;function xx(){if(Gm)return Zf;Gm=1;var e=I2(),t=am(),r=Y2(),n=px(),a=yx(),i=xf(),u=wm(),h=_m(),g=1,p="[object Arguments]",b="[object Array]",D="[object Object]",F=Object.prototype,S=F.hasOwnProperty;function R(O,N,_,M,U,H){var q=i(O),Q=i(N),Y=q?b:a(O),ie=Q?b:a(N);Y=Y==p?D:Y,ie=ie==p?D:ie;var ee=Y==D,ve=ie==D,ge=Y==ie;if(ge&&u(O)){if(!u(N))return!1;q=!0,ee=!1}if(ge&&!ee)return H||(H=new e),q||h(O)?t(O,N,_,M,U,H):r(O,N,Y,_,M,U,H);if(!(_&g)){var Ie=ee&&S.call(O,"__wrapped__"),Ae=ve&&S.call(N,"__wrapped__");if(Ie||Ae){var Ge=Ie?O.value():O,Ue=Ae?N.value():N;return H||(H=new e),U(Ge,Ue,_,M,H)}}return ge?(H||(H=new e),n(O,N,_,M,U,H)):!1}return Zf=R,Zf}var qf,Vm;function wx(){if(Vm)return qf;Vm=1;var e=xx(),t=Yu();function r(n,a,i,u,h){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,i,u,r,h)}return qf=r,qf}var Kf,Ym;function Dx(){if(Ym)return Kf;Ym=1;var e=wx();function t(r,n,a){a=typeof a=="function"?a:void 0;var i=a?a(r,n):void 0;return i===void 0?e(r,n,void 0,a):!!i}return Kf=t,Kf}var Cx=Dx();const Ex=Nl(Cx);var Qf,Jm;function Fx(){return Jm||(Jm=1,Qf=function(t,r,n,a){var i=n?n.call(a,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var u=Object.keys(t),h=Object.keys(r);if(u.length!==h.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(r),p=0;p<u.length;p++){var b=u[p];if(!g(b))return!1;var D=t[b],F=r[b];if(i=n?n.call(a,D,F,b):void 0,i===!1||i===void 0&&D!==F)return!1}return!0}),Qf}var Sx=Fx();const kx=Nl(Sx);let Tx=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");var _x="Invariant failed";function st(e,t){if(!e)throw new Error(_x)}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var va="ROOT",Xm="canvas-ROOT",Zm="The component type specified for this node (%node_type%) does not exist in the resolver",Ax=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
|
|
173
71
|
|
|
174
72
|
Available components in resolver: %availableComponents%
|
|
175
73
|
|
|
176
|
-
More info: https://craft.js.org/r/docs/api/editor#props
|
|
177
|
-
|
|
178
|
-
Please only use useEditor in components that are children of the <Editor /> component.`,Yx=`You can only use useNode in the context of <Editor />.
|
|
179
|
-
|
|
180
|
-
Please only use useNode in components that are children of the <Editor /> component.`;function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach((function(n){Cr(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Vu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jb(n.key),n)}}function Xu(e,t,r){return t&&Vx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cr(e,t,r){return(t=Jb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zu(e)}function ng(e,t){return ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ng(e,t)}function ag(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function og(){return og=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=(function(c,f){for(;!Object.prototype.hasOwnProperty.call(c,f)&&(c=Zu(c))!==null;);return c})(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},og.apply(this,arguments)}function Yb(e,t){return Vb(e)||(function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var c,f,g,b,m=[],v=!0,E=!1;try{if(g=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;v=!1}else for(;!(v=(c=g.call(i)).done)&&(m.push(c.value),m.length!==n);v=!0);}catch(A){E=!0,f=A}finally{try{if(!v&&i.return!=null&&(b=i.return(),Object(b)!==b))return}finally{if(E)throw f}}return m}})(e,t)||ig(e,t)||Zb()}function En(e){return(function(t){if(Array.isArray(t))return sg(t)})(e)||Xb(e)||ig(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
181
|
-
|
|
182
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jb(e){var t=(function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var c=i.call(r,"string");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(e);return typeof t=="symbol"?t:String(t)}var qt={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Xx=(function(){function e(){Vu(this,e),Cr(this,"timeline",[]),Cr(this,"pointer",-1)}return Xu(e,[{key:"add",value:function(t,r){t.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:t,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(t.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var i=this.timeline[this.pointer],c=i.patches,f=i.inversePatches,g=i.timestamp;if(new Date().getTime()-g<n)return void(this.timeline[this.pointer]={timestamp:g,patches:[].concat(En(c),En(t)),inversePatches:[].concat(En(r),En(f))})}this.add(t,r)}}},{key:"merge",value:function(t,r){if(t.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],i=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(En(n.patches),En(t)),inversePatches:[].concat(En(r),En(i))}}else this.add(t,r)}},{key:"clear",value:function(){this.timeline=[],this.pointer=-1}},{key:"canUndo",value:function(){return this.pointer>=0}},{key:"canRedo",value:function(){return this.pointer<this.timeline.length-1}},{key:"undo",value:function(t){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,Xm(t,r)}}},{key:"redo",value:function(t){if(this.canRedo())return this.pointer=this.pointer+1,Xm(t,this.timeline[this.pointer].patches)}}]),e})();function Zx(e,t,r,n){var i,c=L.useMemo((function(){return new Xx}),[]),f=L.useRef([]),g=L.useRef((function(){}));typeof e=="function"?i=e:(i=e.methods,f.current=e.ignoreHistoryForActions,g.current=e.normalizeHistory);var b=L.useRef(n);b.current=n;var m=L.useRef(t),v=L.useMemo((function(){var O=g.current,B=f.current,z=b.current;return function(Z,V){var J,$=r&&qb(r,(function(){return Z}),c),K=Yb(Vm(Z,(function(ge){var Qe,pe;switch(V.type){case qt.UNDO:return c.undo(ge);case qt.REDO:return c.redo(ge);case qt.CLEAR:return c.clear(),Ia({},ge);case qt.IGNORE:case qt.MERGE:case qt.THROTTLE:var Ie,tt=Vb(pe=V.payload)||Xb(pe)||ig(pe)||Zb(),rt=tt[0],Pt=tt.slice(1);(Ie=i(ge,$))[rt].apply(Ie,En(Pt));break;default:(Qe=i(ge,$))[V.type].apply(Qe,En(V.payload))}})),3),ve=K[0],se=K[1],me=K[2];return J=ve,z&&z(ve,Z,{type:V.type,params:V.payload,patches:se},$,(function(ge){var Qe=Vm(ve,ge);J=Qe[0],se=[].concat(En(se),En(Qe[1])),me=[].concat(En(Qe[2]),En(me))})),[qt.UNDO,qt.REDO].includes(V.type)&&O&&(J=c2(J,O)),[].concat(En(B),[qt.UNDO,qt.REDO,qt.IGNORE,qt.CLEAR]).includes(V.type)||(V.type===qt.THROTTLE?c.throttleAdd(se,me,V.config&&V.config.rate):V.type===qt.MERGE?c.merge(se,me):c.add(se,me)),J}}),[c,i,r]),E=L.useCallback((function(){return m.current}),[]),A=L.useMemo((function(){return new Jx(E)}),[E]),F=L.useCallback((function(O){var B=v(m.current,O);m.current=B,A.notify()}),[v,A]);L.useEffect((function(){A.notify()}),[A]);var S=L.useMemo((function(){return r?qb(r,(function(){return m.current}),c):[]}),[c,r]),N=L.useMemo((function(){var O=Object.keys(i(null,null)),B=f.current;return Ia(Ia({},O.reduce((function(z,Z){return z[Z]=function(){for(var V=arguments.length,J=new Array(V),$=0;$<V;$++)J[$]=arguments[$];return F({type:Z,payload:J})},z}),{})),{},{history:{undo:function(){return F({type:qt.UNDO})},redo:function(){return F({type:qt.REDO})},clear:function(){return F({type:qt.CLEAR})},throttle:function(z){return Ia({},O.filter((function(Z){return!B.includes(Z)})).reduce((function(Z,V){return Z[V]=function(){for(var J=arguments.length,$=new Array(J),K=0;K<J;K++)$[K]=arguments[K];return F({type:qt.THROTTLE,payload:[V].concat($),config:{rate:z}})},Z}),{}))},ignore:function(){return Ia({},O.filter((function(z){return!B.includes(z)})).reduce((function(z,Z){return z[Z]=function(){for(var V=arguments.length,J=new Array(V),$=0;$<V;$++)J[$]=arguments[$];return F({type:qt.IGNORE,payload:[Z].concat(J)})},z}),{}))},merge:function(){return Ia({},O.filter((function(z){return!B.includes(z)})).reduce((function(z,Z){return z[Z]=function(){for(var V=arguments.length,J=new Array(V),$=0;$<V;$++)J[$]=arguments[$];return F({type:qt.MERGE,payload:[Z].concat(J)})},z}),{}))}}})}),[F,i]);return L.useMemo((function(){return{getState:E,subscribe:function(O,B,z){return A.subscribe(O,B,z)},actions:N,query:S,history:c}}),[N,S,A,E,c])}function qb(e,t,r){var n=Object.keys(e()).reduce((function(i,c){return Ia(Ia({},i),{},Cr({},c,(function(){var f;return(f=e(t()))[c].apply(f,arguments)})))}),{});return Ia(Ia({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}n2(),r2();var Jx=(function(){function e(t){Vu(this,e),Cr(this,"getState",void 0),Cr(this,"subscribers",[]),this.getState=t}return Xu(e,[{key:"subscribe",value:function(t,r,n){var i=this,c=new qx((function(){return t(i.getState())}),r,n);return this.subscribers.push(c),this.unsubscribe.bind(this,c)}},{key:"unsubscribe",value:function(t){if(this.subscribers.length){var r=this.subscribers.indexOf(t);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach((function(t){return t.collect()}))}}]),e})(),qx=(function(){function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Vu(this,e),Cr(this,"collected",void 0),Cr(this,"collector",void 0),Cr(this,"onChange",void 0),Cr(this,"id",void 0),this.collector=t,this.onChange=r,n&&this.collect()}return Xu(e,[{key:"collect",value:function(){try{var t=this.collector();Sx(t,this.collected)||(this.collected=t,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),e})(),dd=function(e){var t=e.getBoundingClientRect(),r=t.x,n=t.y,i=t.top,c=t.left,f=t.bottom,g=t.right,b=t.width,m=t.height,v=window.getComputedStyle(e),E={left:parseInt(v.marginLeft),right:parseInt(v.marginRight),bottom:parseInt(v.marginBottom),top:parseInt(v.marginTop)},A={left:parseInt(v.paddingLeft),right:parseInt(v.paddingRight),bottom:parseInt(v.paddingBottom),top:parseInt(v.paddingTop)};return{x:r,y:n,top:i,left:c,bottom:f,right:g,width:b,height:m,outerWidth:Math.round(b+E.left+E.right),outerHeight:Math.round(m+E.top+E.bottom),margin:E,padding:A,inFlow:e.parentElement&&!!(function(F){var S=getComputedStyle(F);if(!(v.overflow&&v.overflow!=="visible"||S.float!=="none"||S.display==="grid"||S.display==="flex"&&S["flex-direction"]!=="column")){switch(v.position){case"static":case"relative":break;default:return}switch(e.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(v.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}})(e.parentElement)}};function Kx(e,t){const{subscribe:r,getState:n,actions:i,query:c}=e,f=L.useRef(!0),g=L.useRef(null),b=L.useRef(t);b.current=t;const m=L.useCallback((A=>({...A,actions:i,query:c})),[i,c]);f.current&&t&&(g.current=t(n(),c),f.current=!1);const[v,E]=L.useState(m(g.current));return L.useEffect((()=>{let A;return b.current&&(A=r((F=>b.current(F,c)),(F=>{E(m(F))}))),()=>{A&&A()}}),[m,c,r]),v}var Ju,Kb=function(){return _x(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Qx=(function(){function e(){Vu(this,e),Cr(this,"isEnabled",!0),Cr(this,"elementIdMap",new WeakMap),Cr(this,"registry",new Map)}return Xu(e,[{key:"getElementId",value:function(t){var r=this.elementIdMap.get(t);if(r)return r;var n=Kb();return this.elementIdMap.set(t,n),n}},{key:"getConnectorId",value:function(t,r){var n=this.getElementId(t);return"".concat(r,"--").concat(n)}},{key:"register",value:function(t,r){var n=this,i=this.getByElement(t,r.name);if(i){if(Ax(r.required,i.required))return i;this.getByElement(t,r.name).disable()}var c=null,f=this.getConnectorId(t,r.name);return this.registry.set(f,{id:f,required:r.required,enable:function(){c&&c(),c=r.connector(t,r.required,r.options)},disable:function(){c&&c()},remove:function(){return n.remove(f)}}),this.isEnabled&&this.registry.get(f).enable(),this.registry.get(f)}},{key:"get",value:function(t){return this.registry.get(t)}},{key:"remove",value:function(t){var r=this.get(t);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach((function(t){t.enable()}))}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach((function(t){t.disable()}))}},{key:"getByElement",value:function(t,r){return this.get(this.getConnectorId(t,r))}},{key:"removeByElement",value:function(t,r){return this.remove(this.getConnectorId(t,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),e})();(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(Ju||(Ju={}));var Qb=(function(){function e(t){Vu(this,e),Cr(this,"options",void 0),Cr(this,"registry",new Qx),Cr(this,"subscribers",new Set),this.options=t}return Xu(e,[{key:"listen",value:function(t){var r=this;return this.subscribers.add(t),function(){return r.subscribers.delete(t)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach((function(t){t(Ju.HandlerDisabled)}))}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach((function(t){t(Ju.HandlerEnabled)}))}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(t,r,n,i){var c=function(f){(function(g,b,m){g.craft||(g.craft={stopPropagation:function(){},blockedEvents:{}});for(var v=g.craft&&g.craft.blockedEvents[b]||[],E=0;E<v.length;E++){var A=v[E];if(m!==A&&m.contains(A))return!0}return!1})(f,r,t)||(f.craft.stopPropagation=function(){f.craft.blockedEvents[r]||(f.craft.blockedEvents[r]=[]),f.craft.blockedEvents[r].push(t)},n(f))};return t.addEventListener(r,c,i),function(){return t.removeEventListener(r,c,i)}}},{key:"createConnectorsUsage",value:function(){var t=this,r=this.handlers(),n=new Set,i=!1,c=new Map;return{connectors:Object.entries(r).reduce((function(f,g){var b=Yb(g,2),m=b[0],v=b[1];return Ia(Ia({},f),{},Cr({},m,(function(E,A,F){var S=function(){var N=t.registry.register(E,{required:A,name:m,options:F,connector:v});return n.add(N.id),N};return c.set(t.registry.getConnectorId(E,m),S),i&&S(),E})))}),{}),register:function(){i=!0,c.forEach((function(f){f()}))},cleanup:function(){i=!1,n.forEach((function(f){return t.registry.remove(f)}))}}}},{key:"derive",value:function(t,r){return new t(this,r)}},{key:"createProxyHandlers",value:function(t,r){var n=[],i=t.handlers(),c=new Proxy(i,{get:function(f,g,b){return g in i==0?Reflect.get(f,g,b):function(m){for(var v=arguments.length,E=new Array(v>1?v-1:0),A=1;A<v;A++)E[A-1]=arguments[A];var F=i[g].apply(i,[m].concat(E));F&&n.push(F)}}});return r(c),function(){n.forEach((function(f){f()}))}}},{key:"reflect",value:function(t){return this.createProxyHandlers(this,t)}}]),e})(),$x=(function(e){(function(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(f&&f.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),f&&ng(c,f)})(i,Qb);var t,r,n=(t=i,r=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var c,f=Zu(t);if(r){var g=Zu(this).constructor;c=Reflect.construct(f,arguments,g)}else c=f.apply(this,arguments);return(function(b,m){if(m&&(typeof m=="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ag(b)})(this,c)});function i(c,f){var g;return Vu(this,i),Cr(ag(g=n.call(this,f)),"derived",void 0),Cr(ag(g),"unsubscribeParentHandlerListener",void 0),g.derived=c,g.options=f,g.unsubscribeParentHandlerListener=g.derived.listen((function(b){switch(b){case Ju.HandlerEnabled:return g.enable();case Ju.HandlerDisabled:return g.disable();default:return}})),g}return Xu(i,[{key:"inherit",value:function(c){return this.createProxyHandlers(this.derived,c)}},{key:"cleanup",value:function(){og(Zu(i.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),i})();function $b(e,t){t&&(typeof e=="function"?e(t):e.current=t)}function eD(e,t){const r=e.ref;return Dt(typeof r!="string","Cannot connect to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),L.cloneElement(e,r?{ref:n=>{$b(r,n),$b(t,n)}}:{ref:t})}function tD(e){return(t=null,...r)=>{if(!L.isValidElement(t)){if(!t)return;const i=t;return i&&e(i,...r),i}const n=t;return(function(i){if(typeof i.type!="string")throw new Error})(n),eD(n,e)}}function ey(e){return Object.keys(e).reduce(((t,r)=>(t[r]=tD(((...n)=>e[r](...n))),t)),{})}const rD=({style:e,className:t,parentDom:r})=>{const n=L.createElement("div",{className:t,style:{position:"fixed",display:"block",opacity:1,borderStyle:"solid",borderWidth:"1px",borderColor:"transparent",zIndex:99999,...e}});return r&&r.ownerDocument!==document?Ho.createPortal(n,r.ownerDocument.body):n};var Bs=function(e,t){var r="Deprecation warning: ".concat(e," will be deprecated in future relases."),n=t.suggest,i=t.doc;n&&(r+=" Please use ".concat(n," instead.")),i&&(r+="(".concat(i,")")),console.warn(r)},ty=function(){return typeof window<"u"},nD=function(){return ty()&&/Linux/i.test(window.navigator.userAgent)},aD=function(){return ty()&&/Chrome/i.test(window.navigator.userAgent)},oD=Hh();const iD=nd(oD);typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const ry=L.createContext(null),lg=({id:e,related:t=!1,children:r})=>L.createElement(ry.Provider,{value:{id:e,related:t}},r);function ny(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach((function(n){Er(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function ug(e){return ug=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ug(e)}function Cf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iy(n.key),n)}}function Ef(e,t,r){return t&&sD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Er(e,t,r){return(t=iy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cg(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dg(e,t)}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ff(e)}function dg(e,t){return dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},dg(e,t)}function fg(e,t){if(e==null)return{};var r,n,i=(function(f,g){if(f==null)return{};var b,m,v={},E=Object.keys(f);for(m=0;m<E.length;m++)g.indexOf(b=E[m])>=0||(v[b]=f[b]);return v})(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)t.indexOf(r=c[n])>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hg(e){var t=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var r,n=Ff(e);if(t){var i=Ff(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(function(c,f){if(f&&(typeof f=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fd(c)})(this,r)}}function ay(e,t){return(function(r){if(Array.isArray(r))return r})(e)||(function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var c,f,g,b,m=[],v=!0,E=!1;try{if(g=(i=i.call(r)).next,n!==0)for(;!(v=(c=g.call(i)).done)&&(m.push(c.value),m.length!==n);v=!0);}catch(A){E=!0,f=A}finally{try{if(!v&&i.return!=null&&(b=i.return(),Object(b)!==b))return}finally{if(E)throw f}}return m}})(e,t)||oy(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
183
|
-
|
|
184
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function oy(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pg(e,t):void 0}}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iy(e){var t=(function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var c=i.call(r,"string");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(e);return typeof t=="symbol"?t:String(t)}const gg=L.createContext(null);var sy=L.createContext(null),ly=function(){return L.useContext(sy)};function Ml(e){var t=ly(),r=L.useContext(gg);Dt(r,Gx);var n=Kx(r,e),i=L.useMemo((function(){return t&&t.createConnectorsUsage()}),[t]);L.useEffect((function(){return i.register(),function(){i.cleanup()}}),[i]);var c=L.useMemo((function(){return i&&ey(i.connectors)}),[i]);return Tt(Tt({},n),{},{connectors:c,inContext:!!r,store:r})}var lD=["actions","query","connectors"];function Sf(e){var t=L.useContext(ry);Dt(t,Yx);var r=t.id,n=t.related,i=Ml((function(v){return r&&v.nodes[r]&&e&&e(v.nodes[r])})),c=i.actions,f=i.connectors,g=fg(i,lD),b=L.useMemo((function(){return ey({connect:function(v){return f.connect(v,r)},drag:function(v){return f.drag(v,r)}})}),[f,r]),m=L.useMemo((function(){return{setProp:function(v,E){E?c.history.throttle(E).setProp(r,v):c.setProp(r,v)},setCustom:function(v,E){E?c.history.throttle(E).setCustom(r,v):c.setCustom(r,v)},setHidden:function(v){return c.setHidden(r,v)}}}),[c,r]);return Tt(Tt({},g),{},{id:r,related:n,inNodeContext:!!t,actions:m,connectors:b})}var uD=["id","related","actions","inNodeContext","connectors"];function ln(e){var t=Sf(e),r=t.id,n=t.related,i=t.actions,c=t.inNodeContext,f=t.connectors;return Tt(Tt({},fg(t,uD)),{},{actions:i,id:r,related:n,setProp:function(g,b){return Bs("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),i.setProp(g,b)},inNodeContext:c,connectors:f})}const cD=({render:e})=>{const{connectors:{connect:t,drag:r}}=ln();return typeof e.type=="string"?t(r(L.cloneElement(e))):e},dD=()=>{const{type:e,props:t,nodes:r,hydrationTimestamp:n}=Sf((i=>({type:i.data.type,props:i.data.props,nodes:i.data.nodes,hydrationTimestamp:i._hydrationTimestamp})));return L.useMemo((()=>{let i=t.children;r&&r.length>0&&(i=L.createElement(L.Fragment,null,r.map((f=>L.createElement(mg,{id:f,key:f})))));const c=L.createElement(e,t,i);return typeof e=="string"?L.createElement(cD,{render:c}):c}),[e,t,n,r])},fD=({render:e})=>{const{hidden:t}=Sf((n=>({hidden:n.data.hidden}))),{onRender:r}=Ml((n=>({onRender:n.options.onRender})));return t?null:L.createElement(r,{render:e||L.createElement(dD,null)})},mg=({id:e,render:t})=>L.createElement(lg,{id:e},L.createElement(fD,{render:t})),vg={is:"div",canvas:!1,custom:{},hidden:!1},hD={is:"type",canvas:"isCanvas"};function kf({id:e,children:t,...r}){const{is:n}={...vg,...r},{query:i,actions:c}=Ml(),{id:f,inNodeContext:g}=Sf(),[b]=L.useState((()=>{Dt(!!e,Px);const m=i.node(f).get();if(g){const v=m.data.linkedNodes[e]?i.node(m.data.linkedNodes[e]).get():null;if(v&&v.data.type===n)return v.id;const E=L.createElement(kf,r,t),A=i.parseReactElement(E).toNodeTree();return c.history.ignore().addLinkedNodeFromTree(A,f,e),A.rootNodeId}return null}));return b?L.createElement(mg,{id:b}):null}const uy=()=>Bs("<Canvas />",{suggest:"<Element canvas={true} />"});function bg({...e}){return L.useEffect((()=>uy()),[]),L.createElement(kf,{...e,canvas:!0})}const pD=()=>{const{timestamp:e}=Ml((t=>({timestamp:t.nodes[Go]&&t.nodes[Go]._hydrationTimestamp})));return e?L.createElement(mg,{id:Go,key:e}):null},gD=({children:e,json:t,data:r})=>{const{actions:n,query:i}=Ml();t&&Bs("<Frame json={...} />",{suggest:"<Frame data={...} />"});const c=L.useRef(!1);if(!c.current){const f=r||t;if(f)n.history.ignore().deserialize(f);else if(e){const g=L.Children.only(e),b=i.parseReactElement(g).toNodeTree(((m,v)=>(v===g&&(m.id=Go),m)));n.history.ignore().addNodeTree(b)}c.current=!0}return L.createElement(pD,null)};var cy;(function(e){e[e.Any=0]="Any",e[e.Id=1]="Id",e[e.Obj=2]="Obj"})(cy||(cy={}));const yg=e=>{const{addLinkedNodeFromTree:t,setDOM:r,setNodeEvent:n,replaceNodes:i,reset:c,...f}=e;return f};function La(e){const{connectors:t,actions:r,query:n,store:i,...c}=Ml(e),f=yg(r);return{connectors:t,actions:L.useMemo((()=>({...f,history:{...f.history,ignore:(...g)=>yg(f.history.ignore(...g)),throttle:(...g)=>yg(f.history.throttle(...g))}})),[f]),query:n,store:i,...c}}var dy=function(e){return Object.fromEntries?Object.fromEntries(e):e.reduce((function(t,r){var n=ay(r,2),i=n[0],c=n[1];return Tt(Tt({},t),{},Er({},i,c))}),{})},Bi=function(e,t,r){var n=Array.isArray(t)?t:[t],i=Tt({existOnly:!1,idOnly:!1},r||{}),c=n.filter((function(f){return!!f})).map((function(f){return typeof f=="string"?{node:e[f],exists:!!e[f]}:ug(f)!=="object"||i.idOnly?{node:null,exists:!1}:{node:f,exists:!!e[f.id]}}));return i.existOnly&&Dt(c.filter((function(f){return!f.exists})).length===0,Wb),c},mD=["history"],qu=null,Tf=function(e,t){if(typeof t=="string")return t;var r,n=(function(i,c){var f=(function(g){if(qu&&qu.resolver===g)return qu.reversed;qu={resolver:g,reversed:new Map};for(var b=0,m=Object.entries(g);b<m.length;b++){var v=ay(m[b],2);qu.reversed.set(v[1],v[0])}return qu.reversed})(i).get(c);return f!==void 0?f:null})(e,t);return Dt(n,Df.replace("%node_type%",(r=t).name||r.displayName)),n};const vD=(e,t)=>typeof e=="string"?e:{resolvedName:Tf(t,e)},wg=(e,t)=>{let{type:r,isCanvas:n,props:i}=e;return i=Object.keys(i).reduce(((c,f)=>{const g=i[f];return g==null||typeof g=="function"||(c[f]=f==="children"&&typeof g!="string"?L.Children.map(g,(b=>typeof b=="string"?b:wg(b,t))):typeof g.type=="function"?wg(g,t):g),c}),{}),{type:vD(r,t),isCanvas:!!n,props:i}},bD=(e,t)=>{const{type:r,props:n,isCanvas:i,name:c,...f}=e;return{...wg({type:r,isCanvas:i,props:n},t),...f}};function xg(e,t){Dt(typeof t=="string",Hx);var r=e.nodes[t],n=function(i){return xg(e,i)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===Go},isLinkedNode:function(){return r.data.parent&&n(r.data.parent).linkedNodes().includes(r.id)},isTopLevelNode:function(){return this.isRoot()||this.isLinkedNode()},isDeletable:function(){return!this.isTopLevelNode()},isParentOfTopLevelNodes:function(){return r.data.linkedNodes&&Object.keys(r.data.linkedNodes).length>0},isParentOfTopLevelCanvas:function(){return Bs("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return e.events.selected.has(t)},isHovered:function(){return e.events.hovered.has(t)},isDragged:function(){return e.events.dragged.has(t)},get:function(){return r},ancestors:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return(function c(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=e.nodes[f];return m?(g.push(f),m.data.parent&&(i||!i&&b===0)&&(g=c(m.data.parent,g,b+1)),g):g})(r.data.parent)},descendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],c=arguments.length>1?arguments[1]:void 0;return(function f(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(i||!i&&m===0)&&e.nodes[g]&&(c!=="childNodes"&&n(g).linkedNodes().forEach((function(v){b.push(v),b=f(v,b,m+1)})),c!=="linkedNodes"&&n(g).childNodes().forEach((function(v){b.push(v),b=f(v,b,m+1)}))),b})(t)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(i){try{var c=r;return Dt(!this.isTopLevelNode(),jb),Dt(xg(e,c.data.parent).isCanvas(),Ub),Dt(c.rules.canDrag(c,n),zx),!0}catch(f){return i&&i(f),!1}},isDroppable:function(i,c){var f=Bi(e.nodes,i),g=r;try{Dt(this.isCanvas(),Lx),Dt(g.rules.canMoveIn(f.map((function(m){return m.node})),g,n),Bx);var b={};return f.forEach((function(m){var v=m.node,E=m.exists;if(Dt(v.rules.canDrop(g,v,n),Ox),E){Dt(!n(v.id).isTopLevelNode(),jb);var A=n(v.id).descendants(!0);Dt(!A.includes(g.id)&&g.id!==v.id,Mx);var F=v.data.parent&&e.nodes[v.data.parent];Dt(F.data.isCanvas,Ub),Dt(F||!F&&!e.nodes[v.id],Nx),F.id!==g.id&&(b[F.id]||(b[F.id]=[]),b[F.id].push(v))}})),Object.keys(b).forEach((function(m){var v=e.nodes[m];Dt(v.rules.canMoveOut(b[m],v,n),Ix)})),!0}catch(m){return c&&c(m),!1}},toSerializedNode:function(){return bD(r.data,e.options.resolver)},toNodeTree:function(i){var c=[t].concat(hd(this.descendants(!0,i))).reduce((function(f,g){return f[g]=n(g).get(),f}),{});return{rootNodeId:t,nodes:c}},decendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return Bs("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(i)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function fy(e,t,r,n){for(var i={parent:e,index:0,where:"before"},c=0,f=0,g=0,b=0,m=0,v=0,E=0,A=t.length;E<A;E++){var F=t[E];if(v=F.top+F.outerHeight,b=F.left+F.outerWidth/2,m=F.top+F.outerHeight/2,!(f&&F.left>f||g&&m>=g||c&&F.left+F.outerWidth<c))if(i.index=E,F.inFlow){if(n<m){i.where="before";break}i.where="after"}else n<v&&(g=v),r<b?(f=b,i.where="before"):(c=b,i.where="after")}return i}var Af=function(e){return typeof e=="string"?e:e.name};function hy(e,t){var r=e.data.type,n={id:e.id||Kb(),_hydrationTimestamp:Date.now(),data:Tt({type:r,name:Af(r),displayName:Af(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},e.data),info:{},related:{},events:{selected:!1,dragged:!1,hovered:!1},rules:{canDrag:function(){return!0},canDrop:function(){return!0},canMoveIn:function(){return!0},canMoveOut:function(){return!0}},dom:null};if(n.data.type===kf||n.data.type===bg){var i=Tt(Tt({},vg),n.data.props);n.data.props=Object.keys(n.data.props).reduce((function(g,b){return Object.keys(vg).includes(b)?n.data[hD[b]||b]=i[b]:g[b]=n.data.props[b],g}),{}),n.data.name=Af(r=n.data.type),n.data.displayName=Af(r),n.data.type===bg&&(n.data.isCanvas=!0,uy())}t&&t(n);var c=r.craft;if(c){if(n.data.displayName=c.displayName||c.name||n.data.displayName,n.data.props=Tt(Tt({},c.props||c.defaultProps||{}),n.data.props),n.data.custom=Tt(Tt({},c.custom||{}),n.data.custom),c.isCanvas!=null&&(n.data.isCanvas=c.isCanvas),c.rules&&Object.keys(c.rules).forEach((function(g){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(g)&&(n.rules[g]=c.rules[g])})),c.related){var f={id:n.id,related:!0};Object.keys(c.related).forEach((function(g){n.related[g]=function(b){return L.createElement(lg,f,L.createElement(c.related[g],b))}}))}c.info&&(n.info=c.info)}return n}const Dg=(e,t,r)=>{let{type:n,props:i}=e;const c=((g,b)=>typeof g=="object"&&g.resolvedName?g.resolvedName==="Canvas"?bg:b[g.resolvedName]:typeof g=="string"?g:null)(n,t);if(!c)return;i=Object.keys(i).reduce(((g,b)=>{const m=i[b];return g[b]=m==null?null:typeof m=="object"&&m.resolvedName?Dg(m,t):b==="children"&&Array.isArray(m)?m.map((v=>typeof v=="string"?v:Dg(v,t))):m,g}),{});const f={...L.createElement(c,{...i})};return{...f,name:Tf(t,f.type)}},yD=(e,t)=>{const{type:r,props:n,...i}=e;Dt(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,jx.replace("%displayName%",e.displayName).replace("%availableComponents%",Object.keys(t).join(", ")));const{type:c,name:f,props:g}=Dg(e,t),{parent:b,custom:m,displayName:v,isCanvas:E,nodes:A,hidden:F}=i;return{type:c,name:f,displayName:v||f,props:g,custom:m||{},isCanvas:!!E,hidden:!!F,parent:b,linkedNodes:i.linkedNodes||i._childCanvas||{},nodes:A||[]}},wD=(e,t)=>{if(t.length<1)return{[e.id]:e};const r=t.map((({rootNodeId:i})=>i)),n={...e,data:{...e.data,nodes:r}};return t.reduce(((i,c)=>{const f=c.nodes[c.rootNodeId];return{...i,...c.nodes,[f.id]:{...f,data:{...f.data,parent:e.id}}}}),{[e.id]:n})},xD=(e,t)=>({rootNodeId:e.id,nodes:wD(e,t)});function py(e){const t=e&&e.options,r=()=>py(e);return{getDropPlaceholder:(n,i,c,f=(g=>e.nodes[g.id].dom))=>{const g=e.nodes[i],b=r().node(g.id).isCanvas()?g:e.nodes[g.data.parent];if(!b)return;const m=b.data.nodes||[],v=fy(b,m?m.reduce(((F,S)=>{const N=f(e.nodes[S]);if(N){const O={id:S,...dd(N)};F.push(O)}return F}),[]):[],c.x,c.y),E=m.length&&e.nodes[m[v.index]],A={placement:{...v,currentNode:E},error:null};return Bi(e.nodes,n).forEach((({node:F,exists:S})=>{S&&r().node(F.id).isDraggable((N=>A.error=N))})),r().node(b.id).isDroppable(n,(F=>A.error=F)),A},getOptions:()=>t,getNodes:()=>e.nodes,node:n=>xg(e,n),getSerializedNodes(){const n=Object.keys(e.nodes).map((i=>[i,this.node(i).toSerializedNode()]));return dy(n)},getEvent:n=>(function(i,c){var f=i.events[c];return{contains:function(g){return f.has(g)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var g=this.all();return g[g.length-1]},all:function(){return Array.from(f)},size:function(){return this.all().length},at:function(g){return this.all()[g]},raw:function(){return f}}})(e,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(i){let c=(function(g,b){let m=g;return typeof m=="string"&&(m=L.createElement(L.Fragment,{},m)),hy({data:{type:m.type,props:{...m.props}}},(v=>{b&&b(v,m)}))})(n,((g,b)=>{const m=Tf(e.options.resolver,g.data.type);g.data.displayName=g.data.displayName||m,g.data.name=m,i&&i(g,b)})),f=[];return n.props&&n.props.children&&(f=L.Children.toArray(n.props.children).reduce(((g,b)=>(L.isValidElement(b)&&g.push(r().parseReactElement(b).toNodeTree(i)),g)),[])),xD(c,f)}}),parseSerializedNode:n=>({toNode(i){const c=yD(n,e.options.resolver);Dt(c.type,Df);const f=typeof i=="string"&&i;return f&&Bs("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...f?{id:f}:{},data:c}).toNode(!f&&i)}}),parseFreshNode:n=>({toNode:i=>hy(n,(c=>{c.data.parent===Hb&&(c.data.parent=Go);const f=Tf(e.options.resolver,c.data.type);Dt(f!==null,Df),c.data.displayName=c.data.displayName||f,c.data.name=f,i&&i(c)}))}),createNode(n,i){Bs(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const c=this.parseReactElement(n).toNodeTree(),f=c.nodes[c.rootNodeId];return i&&(i.id&&(f.id=i.id),i.data&&(f.data={...f.data,...i.data})),f},getState:()=>e}}var DD=(function(e){cg(r,Qb);var t=hg(r);function r(){return Cf(this,r),t.apply(this,arguments)}return Ef(r,[{key:"handlers",value:function(){return{connect:function(n,i){},select:function(n,i){},hover:function(n,i){},drag:function(n,i){},drop:function(n,i){},create:function(n,i,c){}}}}]),r})();(function(e){cg(r,$x);var t=hg(r);function r(){return Cf(this,r),t.apply(this,arguments)}return Ef(r)})();var gy=function(e){e.preventDefault()},Cg=(function(){function e(t,r){Cf(this,e),Er(this,"store",void 0),Er(this,"dragTarget",void 0),Er(this,"currentDropTargetId",void 0),Er(this,"currentDropTargetCanvasAncestorId",void 0),Er(this,"currentIndicator",null),Er(this,"currentTargetId",void 0),Er(this,"currentTargetChildDimensions",void 0),Er(this,"dragError",void 0),Er(this,"draggedNodes",void 0),Er(this,"onScrollListener",void 0),this.store=t,this.dragTarget=r,this.currentDropTargetId=null,this.currentDropTargetCanvasAncestorId=null,this.currentTargetId=null,this.currentTargetChildDimensions=null,this.currentIndicator=null,this.dragError=null,this.draggedNodes=this.getDraggedNodes(),this.validateDraggedNodes(),this.onScrollListener=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollListener,!0),window.addEventListener("dragover",gy,!1)}return Ef(e,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",gy,!1)}},{key:"onScroll",value:function(t){var r=t.target,n=this.store.query.node(Go).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Bi(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var t=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach((function(r){r.exists&&t.store.query.node(r.node.id).isDraggable((function(n){t.dragError=n}))}))}},{key:"isNearBorders",value:function(t,r,n){return t.top+e.BORDER_OFFSET>n||t.bottom-e.BORDER_OFFSET<n||t.left+e.BORDER_OFFSET>r||t.right-e.BORDER_OFFSET<r}},{key:"isDiff",value:function(t){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==t.parent.id||this.currentIndicator.placement.index!==t.index||this.currentIndicator.placement.where!==t.where}},{key:"getChildDimensions",value:function(t){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===t.id&&n?n:t.data.nodes.reduce((function(i,c){var f=r.store.query.node(c).get().dom;return f&&i.push(Tt({id:c},dd(f))),i}),[])}},{key:"getCanvasAncestor",value:function(t){var r=this;if(t===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return(function i(c){var f=r.store.query.node(c).get();return f&&f.data.isCanvas?f:f.data.parent?i(f.data.parent):null})(t)}},{key:"computeIndicator",value:function(t,r,n){var i=this.getCanvasAncestor(t);if(i&&(this.currentDropTargetId=t,this.currentDropTargetCanvasAncestorId=i.id,i.data.parent&&this.isNearBorders(dd(i.dom),r,n)&&!this.store.query.node(i.id).isLinkedNode()&&(i=this.store.query.node(i.data.parent).get()),i)){this.currentTargetChildDimensions=this.getChildDimensions(i),this.currentTargetId=i.id;var c=fy(i,this.currentTargetChildDimensions,r,n);if(this.isDiff(c)){var f=this.dragError;f||this.store.query.node(i.id).isDroppable(this.draggedNodes.map((function(m){return m.node})),(function(m){f=m}));var g=i.data.nodes[c.index],b=g&&this.store.query.node(g).get();return this.currentIndicator={placement:Tt(Tt({},c),{},{currentNode:b}),error:f},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),e})();Er(Cg,"BORDER_OFFSET",10);var my=function(e,t){if(t.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=t[0].getBoundingClientRect(),n=r.width,i=r.height,c=t[0].cloneNode(!0);return c.style.position="absolute",c.style.left="-100%",c.style.top="-100%",c.style.width="".concat(n,"px"),c.style.height="".concat(i,"px"),c.style.pointerEvents="none",c.classList.add("drag-shadow"),document.body.appendChild(c),e.dataTransfer.setDragImage(c,0,0),c}var f=document.createElement("div");return f.style.position="absolute",f.style.left="-100%",f.style.top="-100%",f.style.width="100%",f.style.height="100%",f.style.pointerEvents="none",f.classList.add("drag-shadow-container"),t.forEach((function(g){var b=g.getBoundingClientRect(),m=b.width,v=b.height,E=b.top,A=b.left,F=g.cloneNode(!0);F.style.position="absolute",F.style.left="".concat(A,"px"),F.style.top="".concat(E,"px"),F.style.width="".concat(m,"px"),F.style.height="".concat(v,"px"),F.classList.add("drag-shadow"),f.appendChild(F)})),document.body.appendChild(f),e.dataTransfer.setDragImage(f,e.clientX,e.clientY),f},vy=(function(e){cg(r,DD);var t=hg(r);function r(){var n;Cf(this,r);for(var i=arguments.length,c=new Array(i),f=0;f<i;f++)c[f]=arguments[f];return Er(fd(n=t.call.apply(t,[this].concat(c))),"draggedElementShadow",void 0),Er(fd(n),"dragTarget",void 0),Er(fd(n),"positioner",null),Er(fd(n),"currentSelectedElementIds",[]),n}return Ef(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,i=this.options.store;return{connect:function(c,f){return i.actions.setDOM(f,c),n.reflect((function(g){g.select(c,f),g.hover(c,f),g.drop(c,f)}))},select:function(c,f){var g=n.addCraftEventListener(c,"mousedown",(function(m){m.craft.stopPropagation();var v=[];if(f){var E=i.query,A=E.getEvent("selected").all();(n.options.isMultiSelectEnabled(m)||A.includes(f))&&(v=A.filter((function(F){var S=E.node(F).descendants(!0),N=E.node(F).ancestors(!0);return!S.includes(f)&&!N.includes(f)}))),v.includes(f)||v.push(f)}i.actions.setNodeEvent("selected",v)})),b=n.addCraftEventListener(c,"click",(function(m){m.craft.stopPropagation();var v=i.query.getEvent("selected").all(),E=n.options.isMultiSelectEnabled(m),A=n.currentSelectedElementIds.includes(f),F=hd(v);E&&A?(F.splice(F.indexOf(f),1),i.actions.setNodeEvent("selected",F)):!E&&v.length>1&&i.actions.setNodeEvent("selected",F=[f]),n.currentSelectedElementIds=F}));return function(){g(),b()}},hover:function(c,f){var g=n.addCraftEventListener(c,"mouseover",(function(m){m.craft.stopPropagation(),i.actions.setNodeEvent("hovered",f)})),b=null;return n.options.removeHoverOnMouseleave&&(b=n.addCraftEventListener(c,"mouseleave",(function(m){m.craft.stopPropagation(),i.actions.setNodeEvent("hovered",null)}))),function(){g(),b&&b()}},drop:function(c,f){var g=n.addCraftEventListener(c,"dragover",(function(m){if(m.craft.stopPropagation(),m.preventDefault(),n.positioner){var v=n.positioner.computeIndicator(f,m.clientX,m.clientY);v&&i.actions.setIndicator(v)}})),b=n.addCraftEventListener(c,"dragenter",(function(m){m.craft.stopPropagation(),m.preventDefault()}));return function(){b(),g()}},drag:function(c,f){if(!i.query.node(f).isDraggable())return function(){};c.setAttribute("draggable","true");var g=n.addCraftEventListener(c,"dragstart",(function(m){m.craft.stopPropagation();var v=i.query,E=i.actions,A=v.getEvent("selected").all(),F=n.options.isMultiSelectEnabled(m);n.currentSelectedElementIds.includes(f)||(A=F?[].concat(hd(A),[f]):[f],i.actions.setNodeEvent("selected",A)),E.setNodeEvent("dragged",A);var S=A.map((function(N){return v.node(N).get().dom}));n.draggedElementShadow=my(m,S,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:A},n.positioner=new Cg(n.options.store,n.dragTarget)})),b=n.addCraftEventListener(c,"dragend",(function(m){m.craft.stopPropagation(),n.dropElement((function(v,E){v.type!=="new"&&i.actions.move(v.nodes,E.placement.parent.id,E.placement.index+(E.placement.where==="after"?1:0))}))}));return function(){c.setAttribute("draggable","false"),g(),b()}},create:function(c,f,g){c.setAttribute("draggable","true");var b=n.addCraftEventListener(c,"dragstart",(function(v){var E;if(v.craft.stopPropagation(),typeof f=="function"){var A=f();E=L.isValidElement(A)?i.query.parseReactElement(A).toNodeTree():A}else E=i.query.parseReactElement(f).toNodeTree();n.draggedElementShadow=my(v,[v.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:E},n.positioner=new Cg(n.options.store,n.dragTarget)})),m=n.addCraftEventListener(c,"dragend",(function(v){v.craft.stopPropagation(),n.dropElement((function(E,A){E.type!=="existing"&&(i.actions.addNodeTree(E.tree,A.placement.parent.id,A.placement.index+(A.placement.where==="after"?1:0)),g&&iD(g.onCreate)&&g.onCreate(E.tree))}))}));return function(){c.removeAttribute("draggable"),b(),m()}}}}},{key:"dropElement",value:function(n){var i=this.options.store;if(this.positioner){var c=this.draggedElementShadow,f=this.positioner.getIndicator();this.dragTarget&&f&&!f.error&&n(this.dragTarget,f),c&&(c.parentNode.removeChild(c),this.draggedElementShadow=null),this.dragTarget=null,i.actions.setIndicator(null),i.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r})();function CD(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,i=0,c=0,f=0,g=0,b=e.where;return r?r.inFlow?(f=r.outerWidth,g=n,i=b==="before"?r.top:r.bottom,c=r.left):(f=n,g=r.outerHeight,i=r.top,c=b==="before"?r.left:r.left+r.outerWidth):t&&(i=t.top+t.padding.top,c=t.left+t.padding.left,f=t.outerWidth-t.padding.right-t.padding.left-t.margin.left-t.margin.right,g=n),{top:"".concat(i,"px"),left:"".concat(c,"px"),width:"".concat(f,"px"),height:"".concat(g,"px")}}Er(vy,"forceSingleDragShadow",aD()&&nD());const ED=()=>{const{indicator:e,indicatorOptions:t,enabled:r}=Ml((i=>({indicator:i.indicator,indicatorOptions:i.options.indicator,enabled:i.options.enabled}))),n=ly();return L.useEffect((()=>{n&&(r?n.enable():n.disable())}),[r,n]),e?L.createElement(rD,{className:t.className,style:{...CD(e.placement,dd(e.placement.parent.dom),e.placement.currentNode&&dd(e.placement.currentNode.dom),t.thickness),backgroundColor:e.error?t.error:t.success,transition:t.transition||"0.2s ease-in",...t.style??{}},parentDom:e.placement.parent.dom}):null},FD=({children:e})=>{const t=L.useContext(gg),r=L.useMemo((()=>t.query.getOptions().handlers(t)),[t]);return r?L.createElement(sy.Provider,{value:r},L.createElement(ED,null),e):null},by={nodes:{},events:{dragged:new Set,selected:new Set,hovered:new Set},indicator:null,options:{onNodesChange:()=>null,onRender:({render:e})=>e,onBeforeMoveEnd:()=>null,resolver:{},enabled:!0,indicator:{error:"red",success:"rgb(98, 196, 98)"},handlers:e=>new vy({store:e,removeHoverOnMouseleave:!1,isMultiSelectEnabled:t=>!!t.metaKey}),normalizeNodes:()=>{}}},SD={methods:function(e,t){return Tt(Tt({},(function(r,n){var i=function(g,b,m){if((function A(F,S){var N=g.nodes[F];typeof N.data.type!="string"&&Dt(r.options.resolver[N.data.name],Df.replace("%node_type%","".concat(N.data.type.name))),r.nodes[F]=Tt(Tt({},N),{},{data:Tt(Tt({},N.data),{},{parent:S})}),N.data.nodes.length>0&&(delete r.nodes[F].data.props.children,N.data.nodes.forEach((function(O){return A(O,N.id)}))),Object.values(N.data.linkedNodes).forEach((function(O){return A(O,N.id)}))})(g.rootNodeId,b),b||g.rootNodeId!==Go){var v=c(b);if(m.type!=="child")v.data.linkedNodes[m.id]=g.rootNodeId;else{var E=m.index;E!=null?v.data.nodes.splice(E,0,g.rootNodeId):v.data.nodes.push(g.rootNodeId)}}},c=function(g){Dt(g,Rx);var b=r.nodes[g];return Dt(b,Wb),b},f=function g(b){var m=r.nodes[b],v=r.nodes[m.data.parent];if(m.data.nodes&&hd(m.data.nodes).forEach((function(F){return g(F)})),m.data.linkedNodes&&Object.values(m.data.linkedNodes).map((function(F){return g(F)})),v.data.nodes.includes(b)){var E=v.data.nodes;E.splice(E.indexOf(b),1)}else{var A=Object.keys(v.data.linkedNodes).find((function(F){return v.data.linkedNodes[F]===F}));A&&delete v.data.linkedNodes[A]}(function(F,S){Object.keys(F.events).forEach((function(N){var O=F.events[N];O&&O.has&&O.has(S)&&(F.events[N]=new Set(Array.from(O).filter((function(B){return S!==B}))))}))})(r,b),delete r.nodes[b]};return{addLinkedNodeFromTree:function(g,b,m){var v=c(b).data.linkedNodes[m];v&&f(v),i(g,b,{type:"linked",id:m})},add:function(g,b,m){var v=[g];Array.isArray(g)&&(Bs("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),v=g),v.forEach((function(E){i({nodes:Er({},E.id,E),rootNodeId:E.id},b,{type:"child",index:m})}))},addNodeTree:function(g,b,m){i(g,b,{type:"child",index:m})},delete:function(g){Bi(r.nodes,g,{existOnly:!0,idOnly:!0}).forEach((function(b){var m=b.node;Dt(!n.node(m.id).isTopLevelNode(),Wx),f(m.id)}))},deserialize:function(g){var b=typeof g=="string"?JSON.parse(g):g,m=Object.keys(b).map((function(v){var E=v;return v===Hb&&(E=Go),[E,n.parseSerializedNode(b[v]).toNode((function(A){return A.id=E}))]}));this.replaceNodes(dy(m))},move:function(g,b,m){var v=Bi(r.nodes,g,{existOnly:!0}),E=r.nodes[b],A=new Set;v.forEach((function(F,S){var N=F.node,O=N.id,B=N.data.parent;n.node(b).isDroppable([O],(function(V){throw new Error(V)})),r.options.onBeforeMoveEnd(N,E,r.nodes[B]);var z=r.nodes[B].data.nodes;A.add(z);var Z=z.indexOf(O);z[Z]="$$",E.data.nodes.splice(m+S,0,O),r.nodes[O].data.parent=b})),A.forEach((function(F){var S=F.length;hd(F).reverse().forEach((function(N,O){N==="$$"&&F.splice(S-1-O,1)}))}))},replaceNodes:function(g){this.clearEvents(),r.nodes=g},clearEvents:function(){this.setNodeEvent("selected",null),this.setNodeEvent("hovered",null),this.setNodeEvent("dragged",null),this.setIndicator(null)},reset:function(){this.clearEvents(),this.replaceNodes({})},setOptions:function(g){g(r.options)},setNodeEvent:function(g,b){if(r.events[g].forEach((function(E){r.nodes[E]&&(r.nodes[E].events[g]=!1)})),r.events[g]=new Set,b){var m=Bi(r.nodes,b,{idOnly:!0,existOnly:!0}),v=new Set(m.map((function(E){return E.node.id})));v.forEach((function(E){r.nodes[E].events[g]=!0})),r.events[g]=v}},setCustom:function(g,b){Bi(r.nodes,g,{idOnly:!0,existOnly:!0}).forEach((function(m){return b(r.nodes[m.node.id].data.custom)}))},setDOM:function(g,b){r.nodes[g]&&(r.nodes[g].dom=b)},setIndicator:function(g){g&&(!g.placement.parent.dom||g.placement.currentNode&&!g.placement.currentNode.dom)||(r.indicator=g)},setHidden:function(g,b){r.nodes[g].data.hidden=b},setProp:function(g,b){Bi(r.nodes,g,{idOnly:!0,existOnly:!0}).forEach((function(m){return b(r.nodes[m.node.id].data.props)}))},selectNode:function(g){if(g){var b=Bi(r.nodes,g,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",b.map((function(m){return m.node.id})))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}})(e,t)),{},{setState:function(r){var n=fg(this,mD);r(e,n)}})},ignoreHistoryForActions:["setDOM","setNodeEvent","selectNode","clearEvents","setOptions","setIndicator"],normalizeHistory:e=>{Object.keys(e.events).forEach((t=>{Array.from(e.events[t]||[]).forEach((r=>{e.nodes[r]||e.events[t].delete(r)}))})),Object.keys(e.nodes).forEach((t=>{const r=e.nodes[t];Object.keys(r.events).forEach((n=>{r.events[n]&&e.events[n]&&!e.events[n].has(r.id)&&(r.events[n]=!1)}))}))}},kD=(e,t)=>Zx(SD,{...by,options:{...by.options,...e}},py,t),TD=({children:e,...t})=>{t.resolver!==void 0&&Dt(typeof t.resolver=="object"&&!Array.isArray(t.resolver)&&t.resolver!==null,Ux);const r=rd.useRef(t),n=kD(r.current,((i,c,f,g,b)=>{if(!f)return;const{patches:m,...v}=f;for(let E=0;E<m.length;E++){const{path:A}=m[E],F=A.length>2&&A[0]==="nodes"&&A[2]==="data";if([qt.IGNORE,qt.THROTTLE].includes(v.type)&&v.params&&(v.type=v.params[0]),["setState","deserialize"].includes(v.type)||F){b((S=>{i.options.normalizeNodes&&i.options.normalizeNodes(S,c,v,g)}));break}}}));return rd.useEffect((()=>{n&&t.enabled!==void 0&&n.query.getOptions().enabled!==t.enabled&&n.actions.setOptions((i=>{i.enabled=t.enabled}))}),[n,t.enabled]),rd.useEffect((()=>{n.subscribe((i=>({json:n.query.serialize()})),(()=>{n.query.getOptions().onNodesChange(n.query)}))}),[n]),n?rd.createElement(gg.Provider,{value:n},rd.createElement(FD,null,e)):null};var yy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wy=L.createContext&&L.createContext(yy),AD=["attr","size","title"];function _D(e,t){if(e==null)return{};var r=RD(e,t),n,i;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(i=0;i<c.length;i++)n=c[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_f.apply(this,arguments)}function xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xy(Object(r),!0).forEach(function(n){ND(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ND(e,t,r){return t=PD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PD(e){var t=OD(e,"string");return typeof t=="symbol"?t:t+""}function OD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dy(e){return e&&e.map((t,r)=>L.createElement(t.tag,Rf({key:r},t.attr),Dy(t.child)))}function fo(e){return t=>L.createElement(BD,_f({attr:Rf({},e.attr)},t),Dy(e.child))}function BD(e){var t=r=>{var{attr:n,size:i,title:c}=e,f=_D(e,AD),g=i||r.size||"1em",b;return r.className&&(b=r.className),e.className&&(b=(b?b+" ":"")+e.className),L.createElement("svg",_f({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,f,{className:b,style:Rf(Rf({color:e.color||r.color},r.style),e.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),c&&L.createElement("title",null,c),e.children)};return wy!==void 0?L.createElement(wy.Consumer,null,r=>t(r)):t(yy)}function ID(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5Z"},child:[]}]})(e)}function LD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"},child:[]}]})(e)}function MD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 11H4V13H2V11ZM6 11H18V13H6V11ZM20 11H22V13H20V11Z"},child:[]}]})(e)}function zD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 6V21H11V6H5V4H19V6H13Z"},child:[]}]})(e)}function HD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z"},child:[]}]})(e)}function WD(e){return fo({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 1L21.5 6.5V17.5L12 23L2.5 17.5V6.5L12 1ZM5.49388 7.0777L12.0001 10.8444L18.5062 7.07774L12 3.311L5.49388 7.0777ZM4.5 8.81329V16.3469L11.0001 20.1101V12.5765L4.5 8.81329ZM13.0001 20.11L19.5 16.3469V8.81337L13.0001 12.5765V20.11Z"},child:[]}]})(e)}const Cy=({children:e,style:t,...r})=>{const{connectors:{connect:n,drag:i}}=ln(f=>({selected:f.events.selected})),c={...t,display:"block",overflow:"visible",boxSizing:"border-box",...t?.height==="auto"&&{height:"auto",minHeight:t?.minHeight||"50px"}};return w.jsx("div",{ref:f=>{f&&n(i(f))},style:c,...r,children:e})},UD={displayName:"Box",isCanvas:!0,custom:{resizable:!0,tagHtml:"div",settings:["default"]},props:{style:{padding:"16px",margin:"0px",border:"none",borderRadius:"0px",width:"100%",height:"auto",minHeight:"50px"}}};Cy.craft={...UD};const Ey=({text:e="Button",variant:t="primary",size:r="md",onClick:n,...i})=>{const{connectors:{connect:c,drag:f},selected:g}=ln(m=>({selected:m.events.selected})),b=()=>{const m={fontFamily:"inherit",fontWeight:"500",border:"none",cursor:g?"pointer":"default",transition:"all 0.2s"},v={sm:{padding:"6px 12px",fontSize:"14px"},md:{padding:"8px 16px",fontSize:"16px"},lg:{padding:"12px 24px",fontSize:"18px"}},E={primary:{backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px"},secondary:{backgroundColor:"#6b7280",color:"#ffffff",borderRadius:"8px"},outline:{backgroundColor:"transparent",color:"#374151",border:"1px solid #d1d5db",borderRadius:"8px"}};return{...m,...v[r],...E[t]}};return w.jsx("button",{ref:m=>{m&&c(f(m))},style:b(),className:`${g?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"} transition-all duration-200`,onClick:n,...i,children:e})},jD={props:{text:"Button",variant:"primary",size:"md"},displayName:"Button",custom:{displayName:"Button"}};function Fy(){const{actions:{setProp:e},text:t,variant:r,size:n}=ln(i=>({text:i.data.props.text,variant:i.data.props.variant,size:i.data.props.size}));return w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Button text"}),w.jsx("input",{type:"text",value:t,onChange:i=>e(c=>c.text=i.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Variant"}),w.jsxs("select",{value:r,onChange:i=>e(c=>c.variant=i.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",children:[w.jsx("option",{value:"primary",children:"Primary"}),w.jsx("option",{value:"secondary",children:"Secondary"}),w.jsx("option",{value:"outline",children:"Outline"})]})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Size"}),w.jsxs("select",{value:n,onChange:i=>e(c=>c.size=i.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",children:[w.jsx("option",{value:"sm",children:"Small"}),w.jsx("option",{value:"md",children:"Medium"}),w.jsx("option",{value:"lg",children:"Large"})]})]})]})}Ey.craft={...jD,related:{settings:Fy}};function Sy(){const{actions:{setProp:e},color:t,height:r,width:n,margin:i}=ln(c=>({color:c.data.props.color,height:c.data.props.height,width:c.data.props.width,margin:c.data.props.margin}));return w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Color"}),w.jsx("input",{type:"color",value:t,onChange:c=>e(f=>f.color=c.target.value),className:"focus:ring-primary-500 h-10 w-full rounded-md border border-gray-300 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Height"}),w.jsx("input",{type:"text",value:r,onChange:c=>e(f=>f.height=c.target.value),placeholder:"1px",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Width"}),w.jsx("input",{type:"text",value:n,onChange:c=>e(f=>f.width=c.target.value),placeholder:"100%",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Margin"}),w.jsx("input",{type:"text",value:i,onChange:c=>e(f=>f.margin=c.target.value),placeholder:"16px 0",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}const ky=({color:e="#e5e7eb",height:t="1px",width:r="100%",margin:n="16px 0",...i})=>{const{connectors:{connect:c,drag:f},selected:g}=ln(m=>({selected:m.events.selected})),b={backgroundColor:e,height:t,width:r,margin:n,cursor:g?"pointer":"default"};return w.jsx("div",{ref:m=>{m&&c(f(m))},style:b,className:`${g?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"} transition-all duration-200`,...i})};ky.craft={props:{color:"#e5e7eb",height:"1px",width:"100%",margin:"16px 0"},related:{settings:Sy}};var gr=function(){return gr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},gr.apply(this,arguments)},Ty={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Ay={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Nf={width:"20px",height:"20px",position:"absolute",zIndex:1},GD={top:gr(gr({},Ty),{top:"-5px"}),right:gr(gr({},Ay),{left:void 0,right:"-5px"}),bottom:gr(gr({},Ty),{top:void 0,bottom:"-5px"}),left:gr(gr({},Ay),{left:"-5px"}),topRight:gr(gr({},Nf),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:gr(gr({},Nf),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:gr(gr({},Nf),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:gr(gr({},Nf),{left:"-10px",top:"-10px",cursor:"nw-resize"})},YD=L.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,i=e.replaceStyles,c=e.className,f=L.useCallback(function(m){t(m,r)},[t,r]),g=L.useCallback(function(m){t(m,r)},[t,r]),b=L.useMemo(function(){return gr(gr({position:"absolute",userSelect:"none"},GD[r]),i??{})},[i,r]);return w.jsx("div",{className:c||void 0,style:b,onMouseDown:f,onTouchStart:g,children:n})}),VD=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Yo=function(){return Yo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yo.apply(this,arguments)},XD={width:"auto",height:"auto"},Pf=function(e,t,r){return Math.max(Math.min(e,r),t)},_y=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},Ku=function(e,t){return new RegExp(e,"i").test(t)},Of=function(e){return!!(e.touches&&e.touches.length)},ZD=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Ry=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(c,f,g){return Math.abs(f-e)<Math.abs(t[c]-e)?g:c},0),i=Math.abs(t[n]-e);return r===0||i<r?t[n]:e},Eg=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Bf=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return r*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return n*i}}return e},JD=function(e,t,r,n,i,c,f){return n=Bf(n,e.width,t,r),i=Bf(i,e.height,t,r),c=Bf(c,e.width,t,r),f=Bf(f,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof c>"u"?void 0:Number(c),minHeight:typeof f>"u"?void 0:Number(f)}},qD=function(e){return Array.isArray(e)?e:[e,e]},KD=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Ny="__resizable_base__",QD=(function(e){VD(t,e);function t(r){var n,i,c,f,g=e.call(this,r)||this;return g.ratio=1,g.resizable=null,g.parentLeft=0,g.parentTop=0,g.resizableLeft=0,g.resizableRight=0,g.resizableTop=0,g.resizableBottom=0,g.targetLeft=0,g.targetTop=0,g.delta={width:0,height:0},g.appendBase=function(){if(!g.resizable||!g.window)return null;var b=g.parentNode;if(!b)return null;var m=g.window.document.createElement("div");return m.style.width="100%",m.style.height="100%",m.style.position="absolute",m.style.transform="scale(0, 0)",m.style.left="0",m.style.flex="0 0 100%",m.classList?m.classList.add(Ny):m.className+=Ny,b.appendChild(m),m},g.removeBase=function(b){var m=g.parentNode;m&&m.removeChild(b)},g.state={isResizing:!1,width:(i=(n=g.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(f=(c=g.propsSize)===null||c===void 0?void 0:c.height)!==null&&f!==void 0?f:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},g.onResizeStart=g.onResizeStart.bind(g),g.onMouseMove=g.onMouseMove.bind(g),g.onMouseUp=g.onMouseUp.bind(g),g}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||XD},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,c=this.resizable.offsetHeight,f=this.resizable.style.position;f!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:c,this.resizable.style.position=f}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,i=function(g){var b;if(typeof r.state[g]>"u"||r.state[g]==="auto")return"auto";if(r.propsSize&&r.propsSize[g]&&(!((b=r.propsSize[g])===null||b===void 0)&&b.toString().endsWith("%"))){if(r.state[g].toString().endsWith("%"))return r.state[g].toString();var m=r.getParentSize(),v=Number(r.state[g].toString().replace("px","")),E=v/m[g]*100;return"".concat(E,"%")}return Eg(r.state[g])},c=n&&typeof n.width<"u"&&!this.state.isResizing?Eg(n.width):i("width"),f=n&&typeof n.height<"u"&&!this.state.isResizing?Eg(n.height):i("height");return{width:c,height:f}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var c={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(r),c},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof i>"u"||i==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var i=this.props.boundsByDirection,c=this.state.direction,f=i&&Ku("left",c),g=i&&Ku("top",c),b,m;if(this.props.bounds==="parent"){var v=this.parentNode;v&&(b=f?this.resizableRight-this.parentLeft:v.offsetWidth+(this.parentLeft-this.resizableLeft),m=g?this.resizableBottom-this.parentTop:v.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(b=f?this.resizableRight:this.window.innerWidth-this.resizableLeft,m=g?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(b=f?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),m=g?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return b&&Number.isFinite(b)&&(r=r&&r<b?r:b),m&&Number.isFinite(m)&&(n=n&&n<m?n:m),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var i=this.props.scale||1,c=qD(this.props.resizeRatio||1),f=c[0],g=c[1],b=this.state,m=b.direction,v=b.original,E=this.props,A=E.lockAspectRatio,F=E.lockAspectRatioExtraHeight,S=E.lockAspectRatioExtraWidth,N=v.width,O=v.height,B=F||0,z=S||0;return Ku("right",m)&&(N=v.width+(r-v.x)*f/i,A&&(O=(N-z)/this.ratio+B)),Ku("left",m)&&(N=v.width-(r-v.x)*f/i,A&&(O=(N-z)/this.ratio+B)),Ku("bottom",m)&&(O=v.height+(n-v.y)*g/i,A&&(N=(O-B)*this.ratio+z)),Ku("top",m)&&(O=v.height-(n-v.y)*g/i,A&&(N=(O-B)*this.ratio+z)),{newWidth:N,newHeight:O}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,i,c){var f=this.props,g=f.lockAspectRatio,b=f.lockAspectRatioExtraHeight,m=f.lockAspectRatioExtraWidth,v=typeof c.width>"u"?10:c.width,E=typeof i.width>"u"||i.width<0?r:i.width,A=typeof c.height>"u"?10:c.height,F=typeof i.height>"u"||i.height<0?n:i.height,S=b||0,N=m||0;if(g){var O=(A-S)*this.ratio+N,B=(F-S)*this.ratio+N,z=(v-N)/this.ratio+S,Z=(E-N)/this.ratio+S,V=Math.max(v,O),J=Math.min(E,B),$=Math.max(A,z),K=Math.min(F,Z);r=Pf(r,V,J),n=Pf(n,$,K)}else r=Pf(r,v,E),n=Pf(n,A,F);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*r,this.parentTop=i.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var c=this.props.bounds.getBoundingClientRect();this.targetLeft=c.left*r,this.targetTop=c.top*r}if(this.resizable){var f=this.resizable.getBoundingClientRect(),g=f.left,b=f.top,m=f.right,v=f.bottom;this.resizableLeft=g*r,this.resizableRight=m*r,this.resizableTop=b*r,this.resizableBottom=v*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var i=0,c=0;if(r.nativeEvent&&ZD(r.nativeEvent)?(i=r.nativeEvent.clientX,c=r.nativeEvent.clientY):r.nativeEvent&&Of(r.nativeEvent)&&(i=r.nativeEvent.touches[0].clientX,c=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var f=this.props.onResizeStart(r,n,this.resizable);if(f===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var g,b=this.window.getComputedStyle(this.resizable);if(b.flexBasis!=="auto"){var m=this.parentNode;if(m){var v=this.window.getComputedStyle(m).flexDirection;this.flexDir=v.startsWith("row")?"row":"column",g=b.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var E={original:{x:i,y:c,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Yo(Yo({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:g};this.setState(E)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Of(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,c=i.maxWidth,f=i.maxHeight,g=i.minWidth,b=i.minHeight,m=Of(r)?r.touches[0].clientX:r.clientX,v=Of(r)?r.touches[0].clientY:r.clientY,E=this.state,A=E.direction,F=E.original,S=E.width,N=E.height,O=this.getParentSize(),B=JD(O,this.window.innerWidth,this.window.innerHeight,c,f,g,b);c=B.maxWidth,f=B.maxHeight,g=B.minWidth,b=B.minHeight;var z=this.calculateNewSizeFromDirection(m,v),Z=z.newHeight,V=z.newWidth,J=this.calculateNewMaxFromBoundary(c,f);this.props.snap&&this.props.snap.x&&(V=Ry(V,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(Z=Ry(Z,this.props.snap.y,this.props.snapGap));var $=this.calculateNewSizeFromAspectRatio(V,Z,{width:J.maxWidth,height:J.maxHeight},{width:g,height:b});if(V=$.newWidth,Z=$.newHeight,this.props.grid){var K=_y(V,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),ve=_y(Z,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),se=this.props.snapGap||0,me=se===0||Math.abs(K-V)<=se?K:V,ge=se===0||Math.abs(ve-Z)<=se?ve:Z;V=me,Z=ge}var Qe={width:V-F.width,height:Z-F.height};if(this.delta=Qe,S&&typeof S=="string"){if(S.endsWith("%")){var pe=V/O.width*100;V="".concat(pe,"%")}else if(S.endsWith("vw")){var Ie=V/this.window.innerWidth*100;V="".concat(Ie,"vw")}else if(S.endsWith("vh")){var tt=V/this.window.innerHeight*100;V="".concat(tt,"vh")}}if(N&&typeof N=="string"){if(N.endsWith("%")){var pe=Z/O.height*100;Z="".concat(pe,"%")}else if(N.endsWith("vw")){var Ie=Z/this.window.innerWidth*100;Z="".concat(Ie,"vw")}else if(N.endsWith("vh")){var tt=Z/this.window.innerHeight*100;Z="".concat(tt,"vh")}}var rt={width:this.createSizeForCssProperty(V,"width"),height:this.createSizeForCssProperty(Z,"height")};this.flexDir==="row"?rt.flexBasis=rt.width:this.flexDir==="column"&&(rt.flexBasis=rt.height);var Pt=this.state.width!==rt.width,sr=this.state.height!==rt.height,Pe=this.state.flexBasis!==rt.flexBasis,j=Pt||sr||Pe;j&&Ho.flushSync(function(){n.setState(rt)}),this.props.onResize&&j&&this.props.onResize(r,A,this.resizable,Qe)}},t.prototype.onMouseUp=function(r){var n,i,c=this.state,f=c.isResizing,g=c.direction;!f||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(r,g,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Yo(Yo({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,i;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(i=r.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,i=n.enable,c=n.handleStyles,f=n.handleClasses,g=n.handleWrapperStyle,b=n.handleWrapperClass,m=n.handleComponent;if(!i)return null;var v=Object.keys(i).map(function(E){return i[E]!==!1?w.jsx(YD,{direction:E,onResizeStart:r.onResizeStart,replaceStyles:c&&c[E],className:f&&f[E],children:m&&m[E]?m[E]:null},E):null});return w.jsx("div",{className:b,style:g,children:v})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(f,g){return KD.indexOf(g)!==-1||(f[g]=r.props[g]),f},{}),i=Yo(Yo(Yo({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var c=this.props.as||"div";return w.jsxs(c,Yo({style:i,className:this.props.className},n,{ref:function(f){f&&(r.resizable=f)},children:[this.state.isResizing&&w.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(L.PureComponent);const Py=({children:e,isHover:t,isSelected:r,name:n,showIndicator:i=!0,width:c,height:f})=>{const g=t&&!r&&i,b=r&&i,m=g||b,v={outline:b?"1px solid #170f4fff":g?"1px dashed #00BAC7":"1px solid transparent",background:b?"rgba(23,15,79,0.03)":g?"rgba(0,186,199,0.02)":"transparent",position:"relative",width:c||"min-content",height:f||"min-content",cursor:"pointer",overflow:"visible"};return w.jsxs("div",{style:v,children:[m&&w.jsxs("div",{className:`absolute left-0 top-0 flex items-center gap-1.5 px-2 py-1 text-xs font-medium backdrop-blur-sm ${b?"border border-[#170F4F] bg-[#170F4F] text-white shadow-lg":"border border-[#00BAC7] bg-[#00BAC7] text-white shadow-md"} `,style:{borderRadius:"4px",transform:"translateY(-100%)",transformOrigin:"left bottom",marginTop:"-2px",zIndex:99999,position:"absolute",transition:"all 0.15s ease-out"},onClick:E=>{E.stopPropagation(),E.preventDefault()},onMouseDown:E=>{E.stopPropagation(),E.preventDefault()},children:[w.jsx("div",{className:"flex h-3 w-3 items-center justify-center",children:b?w.jsx("div",{className:"h-2 w-2 rounded-full bg-white"}):w.jsx("div",{className:"h-2 w-2 rounded-full bg-white opacity-70"})}),w.jsx("span",{className:"select-none whitespace-nowrap leading-none",children:n})]}),e]})},Oy=6,Is=-3,$D={position:"absolute",width:`${Oy}px`,height:`${Oy}px`,background:"#170F4F",display:"block",pointerEvents:"none",boxShadow:"0 2px 8px rgba(23,15,79,0.3)",border:"0.5px solid #CCF1F4"},e1={topLeft:{left:`${Is}px`,top:`${Is}px`},topRight:{right:`${Is}px`,top:`${Is}px`},bottomLeft:{left:`${Is}px`,bottom:`${Is}px`},bottomRight:{right:`${Is}px`,bottom:`${Is}px`}},By=({children:e,propKey:t={width:"width",height:"height"},maxWidth:r})=>{const{actions:n,connectors:{connect:i}}=ln(),{isSelected:c,isHover:f,nodeWidth:g,nodeHeight:b,name:m}=ln(B=>({isSelected:B.events.selected,isHover:B.events.hovered,nodeWidth:B.data.props.style?.[t.width]||B.data.props[t.width]||200,nodeHeight:B.data.props.style?.[t.height]||B.data.props[t.height]||100,name:B.data.custom?.displayName||B.data.displayName})),v=L.useRef(null),E=L.useRef(null),A=L.useMemo(()=>{const B=()=>typeof g=="number"?Math.round(g):typeof g=="string"&&g||200,z=()=>b==="auto"?"auto":typeof b=="number"?Math.round(b):typeof b=="string"&&b||100;return{width:B(),height:z()}},[g,b]),[F,S]=L.useState(A),N=L.useCallback(()=>{S(A)},[A]),O=L.useCallback((B,z)=>{if(!E.current)return A;const{width:Z,height:V}=E.current;let J=Math.round(Z+B),$=Math.round(V+z);return r&&J>r&&(J=r),J=Math.max(J,50),$=Math.max($,20),{width:J,height:$}},[A,r]);return L.useEffect(()=>{N(),n.setCustom(B=>{B.resizable=!0})},[g,b,N,n]),w.jsx(Py,{isHover:f,isSelected:c,name:m||"Component",showIndicator:!0,width:F.width,height:F.height,children:w.jsxs(QD,{ref:B=>{B&&B.resizable&&(v.current=B,i(B.resizable))},enable:{top:c,right:c,bottom:c,left:c,topLeft:c,topRight:c,bottomLeft:c,bottomRight:c},size:F,onResizeStart:B=>{B.preventDefault(),B.stopPropagation();const z=v.current?.resizable;if(!z)return;const Z=z.getBoundingClientRect();E.current={width:Math.round(Z.width),height:Math.round(Z.height)}},onResize:(B,z,Z,V)=>{const J=O(V.width,V.height);n.setProp($=>{$.style||($.style={}),$.style[t.width]=J.width,$.style[t.height]=J.height}),N()},onResizeStop:(B,z,Z,V)=>{const J=O(V.width,V.height);n.setProp($=>{$.style||($.style={}),$.style[t.width]=J.width,$.style[t.height]=J.height}),N()},handleStyles:{topLeft:{display:"block"},topRight:{display:"block"},bottomLeft:{display:"block"},bottomRight:{display:"block"}},children:[e,w.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:99999},children:c&&Object.entries(e1).map(([B,z])=>w.jsx("span",{style:{...$D,...z}},B))})]})})},Iy=({src:e="https://via.placeholder.com/400x300",alt:t="Image",width:r="200px",height:n="200px",borderRadius:i="0px",objectFit:c="cover",...f})=>{const{connectors:{connect:g,drag:b},selected:m}=ln(E=>({selected:E.events.selected})),v={width:r,height:n,borderRadius:i,objectFit:c,cursor:m?"pointer":"default"};return w.jsx(By,{children:w.jsx("img",{ref:E=>{E&&g(b(E))},src:e,alt:t,style:v,className:`${m?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"}`,...f})})},t1={props:{src:"https://picsum.photos/id/1/1200/1200",alt:"Image",width:"200px",height:"200px",borderRadius:"0px",objectFit:"cover"},custom:{resizable:!1},related:{settings:"ImageSettings"}};function Ly(){const{actions:{setProp:e},src:t,alt:r,width:n,height:i,borderRadius:c,objectFit:f}=ln(g=>({src:g.data.props.src,alt:g.data.props.alt,width:g.data.props.width,height:g.data.props.height,borderRadius:g.data.props.borderRadius,objectFit:g.data.props.objectFit}));return w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Image URL"}),w.jsx("input",{type:"text",value:t,onChange:g=>e(b=>b.src=g.target.value),placeholder:"https://example.com/image.jpg",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Alt Text"}),w.jsx("input",{type:"text",value:r,onChange:g=>e(b=>b.alt=g.target.value),placeholder:"Image description",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Width"}),w.jsx("input",{type:"text",value:n,onChange:g=>e(b=>b.width=g.target.value),placeholder:"100%",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Height"}),w.jsx("input",{type:"text",value:i,onChange:g=>e(b=>b.height=g.target.value),placeholder:"auto",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Border Radius"}),w.jsx("input",{type:"text",value:c,onChange:g=>e(b=>b.borderRadius=g.target.value),placeholder:"0px",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Object Fit"}),w.jsxs("select",{value:f,onChange:g=>e(b=>b.objectFit=g.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",children:[w.jsx("option",{value:"cover",children:"Cover"}),w.jsx("option",{value:"contain",children:"Contain"}),w.jsx("option",{value:"fill",children:"Fill"}),w.jsx("option",{value:"none",children:"None"}),w.jsx("option",{value:"scale-down",children:"Scale Down"})]})]})]})}Iy.craft={...t1,related:{settings:Ly}};function r1(e){const t=document.createTextNode("");e.appendChild(t);const r=document.activeElement===e;if(t!==null&&t.nodeValue!==null&&r){const n=window.getSelection();if(n!==null){const i=document.createRange();i.setStart(t,t.nodeValue.length),i.collapse(!0),n.removeAllRanges(),n.addRange(i)}e instanceof HTMLElement&&e.focus()}}function n1({tagName:e,html:t,innerRef:r,onChange:n,disabled:i,editable:c=!0,onBlur:f,onKeyUp:g,onKeyDown:b,...m}){const v=L.useRef(t),E=L.useRef(null),A=()=>(r&&typeof r!="function"?r:E).current,F=L.useCallback(N=>{const O=A();if(!O)return;const B=O.innerHTML;if(n&&B!==v.current){const z=Object.assign({},N,{target:{value:B}});n(z)}v.current=B},[n]);L.useEffect(()=>{const N=A();N&&(t!==N.innerHTML&&(N.innerHTML=t),v.current=t,r1(N))},[t]);const S=L.useCallback(N=>{typeof r=="function"&&r(N),E.current=N},[r]);return L.createElement(e||"div",{...m,ref:typeof r=="function"?S:r||E,onInput:c?F:void 0,onBlur:c?f||F:f,onKeyUp:c?g||F:g,onKeyDown:c?b||F:b,contentEditable:!i&&c,dangerouslySetInnerHTML:{__html:t}})}const a1=[{name:"userName",label:"User Name",value:"John Doe"},{name:"userEmail",label:"User Email",value:"john@example.com"},{name:"companyName",label:"Company Name",value:"Acme Corp"},{name:"currentDate",label:"Current Date",value:new Date().toLocaleDateString()},{name:"currentTime",label:"Current Time",value:new Date().toLocaleTimeString()}],o1=({editableRef:e,position:t,onVariableInsert:r})=>{const[n,i]=L.useState(!1),[c,f]=L.useState(!1),g=(m,v)=>{e.current&&(e.current.focus(),document.execCommand(m,!1,v),setTimeout(()=>{e.current?.focus()},0))},b=m=>{if(e.current){e.current.focus();const v=window.getSelection();if(v&&v.rangeCount>0){const E=v.getRangeAt(0);E.deleteContents();const A=document.createElement("span");A.className="variable-tag",A.style.cssText="background: #e3f2fd; border: 1px solid #90caf9; border-radius: 4px; padding: 2px 6px; margin: 0 2px; color: #1976d2; font-size: 0.9em; cursor: pointer;",A.setAttribute("data-variable",m.name),A.textContent=`{{${m.label}}}`,E.insertNode(A),E.setStartAfter(A),E.collapse(!0),v.removeAllRanges(),v.addRange(E)}}i(!1),r(m.name)};return w.jsxs("div",{className:"toolbar-container flex flex-wrap gap-2 rounded-lg border border-gray-300 bg-white p-3 shadow-md",style:{position:"absolute",left:"50%",transform:"translateX(-50%)",zIndex:9999,top:t==="top"?"-80px":void 0,bottom:t==="bottom"?"-80px":void 0},children:[w.jsxs("div",{className:"flex gap-2",children:[w.jsx("button",{className:"toolbar-btn",title:"Bold",onMouseDown:m=>{m.preventDefault(),g("bold")},children:w.jsx(Te.FiBold,{size:16})}),w.jsx("button",{className:"toolbar-btn",title:"Italic",onMouseDown:m=>{m.preventDefault(),g("italic")},children:w.jsx(Te.FiItalic,{size:16})}),w.jsx("button",{className:"toolbar-btn",title:"Underline",onMouseDown:m=>{m.preventDefault(),g("underline")},children:w.jsx(Te.FiUnderline,{size:16})})]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("button",{className:"toolbar-btn",title:"Text Color",onMouseDown:m=>{m.preventDefault(),f(!c)},children:w.jsx(Te.FiEdit3,{size:16})}),c&&w.jsx("input",{type:"color",className:"color-picker",onChange:m=>g("foreColor",m.target.value)})]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("button",{className:"toolbar-btn",title:"Insert Variable",onMouseDown:m=>{m.preventDefault(),i(!n)},children:w.jsx(Te.FiCode,{size:16})}),n&&w.jsx("div",{className:"variable-dropdown",children:a1.map(m=>w.jsx("button",{className:"variable-item",onMouseDown:v=>{v.preventDefault(),b(m)},children:m.label},m.name))})]})]})},My=({isEditing:e=!1,children:t="Double-click to edit text...",style:r={}})=>{const{actions:n,setProp:i}=ln(),[c,f]=L.useState("top"),g=L.useRef(null),b=L.useRef(null),m=L.useCallback(N=>{i(O=>{O.children=N})},[i]),v=L.useCallback(N=>{i(O=>{O.isEditing=N})},[i]);L.useEffect(()=>{e&&g.current&&setTimeout(()=>{g.current?.focus();const N=window.getSelection();if(N&&g.current){const O=document.createRange();O.selectNodeContents(g.current),O.collapse(!1),N.removeAllRanges(),N.addRange(O)}},0)},[e]),L.useEffect(()=>{const N=O=>{e&&b.current&&!b.current.contains(O.target)&&v(!1)};return e&&document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[e]);const E=N=>{N.preventDefault(),N.stopPropagation(),v(!0),b.current&&(b.current.getBoundingClientRect().top<100?f("bottom"):f("top"))},A=L.useCallback(N=>{const O=N.target.value;O!==t&&m(O)},[t]),F=N=>{if(g.current){const O=window.getSelection();if(O&&O.rangeCount>0){const B=O.getRangeAt(0),z=document.createElement("span");z.setAttribute("data-variable",N),z.style.cssText="background: #e8f5e8; border: 1px solid #4caf50; border-radius: 4px; padding: 2px 6px; margin: 0 2px; color: #2e7d32; font-size: 0.9em;",z.textContent=`{{${N}}}`,B.deleteContents(),B.insertNode(z),B.setStartAfter(z),B.collapse(!0),O.removeAllRanges(),O.addRange(B);const Z=g.current.innerHTML;n.setProp(V=>{V.text=Z})}}},S={fontSize:"16px",fontWeight:"normal",color:"#000000",textAlign:"left",minHeight:"50px",height:"100%",width:"100%",padding:"8px",border:"none",outline:"none",cursor:e?"text":"pointer",overflow:"scroll",position:"relative",userSelect:e?"text":"none",...r};return w.jsxs("div",{ref:b,onDoubleClick:E,style:{position:"relative",width:"100%",height:"100%"},children:[e&&w.jsx(o1,{editableRef:g,position:c,onVariableInsert:F}),w.jsx(n1,{innerRef:N=>{g.current=N},tagName:"p",html:t,editable:e,onChange:A,style:S})]})},i1={displayName:"Text",custom:{resizable:!0,tagHtml:"p",settings:["typography","default"]},props:{children:"Double click to edit text 2",isEditing:!1,style:{fontSize:16,fontWeight:"normal",color:"#000000",textAlign:"left",width:200,height:100}}};My.craft={...i1};function zy(){const{actions:{setProp:e},variableId:t,fallback:r}=ln(n=>({variableId:n.data.props.variableId,fallback:n.data.props.fallback}));return w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Variable ID"}),w.jsx("input",{type:"text",value:t,onChange:n=>e(i=>i.variableId=n.target.value),placeholder:"ex: nome_usuario",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Default value"}),w.jsx("input",{type:"text",value:r,onChange:n=>e(i=>i.fallback=n.target.value),placeholder:"ex: Usuário",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}const s1=({data:e,onSelect:t,selectedPath:r})=>!e||typeof e!="object"?null:w.jsx("div",{className:"space-y-2",children:Object.entries(e).map(([n,i])=>w.jsxs("button",{onClick:()=>t(n,i),className:`block w-full rounded px-3 py-2 text-left transition-colors ${r===n?"bg-blue-100 text-blue-800":"bg-gray-50 text-gray-700 hover:bg-gray-100"}`,children:[w.jsxs("span",{className:"font-medium",children:[n,":"]})," ",w.jsx("span",{className:"text-sm",children:JSON.stringify(i)})]},n))}),l1=({isOpen:e,onClose:t,value:r,onSelect:n})=>{const[i,c]=L.useState(r||""),[f,g]=L.useState(null);return L.useEffect(()=>{const b=localStorage.getItem("bolttech_datasource");if(b)try{const m=JSON.parse(b);m&&typeof m=="object"&&m.data&&g({root:m.data})}catch{}},[e]),e?w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-40",children:w.jsxs("div",{className:"flex w-full max-w-[40vw] flex-col rounded bg-white shadow-xl",children:[w.jsxs("div",{className:"flex items-center justify-between border-b border-gray-200 p-4",children:[w.jsx("h2",{className:"text-lg font-bold text-[#170f4f]",children:"Selecionar variável do DataSource"}),w.jsx("button",{onClick:t,className:"p-2 text-gray-400 hover:text-gray-600",children:w.jsx(Te.FiX,{size:18})})]}),w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-sm font-medium text-gray-700",children:"Path da variável"}),w.jsx("input",{type:"text",value:i,onChange:b=>c(b.target.value),className:"focus:ring-primary-500 w-full rounded border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",placeholder:"Ex: root.user.name"})]}),f&&w.jsx("div",{children:w.jsx(s1,{data:f,onSelect:b=>c(b),selectedPath:i})}),w.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[w.jsx("button",{onClick:t,className:"rounded bg-gray-100 px-4 py-2 text-gray-700 transition-colors duration-200 hover:bg-gray-200",children:"Cancelar"}),w.jsx("button",{onClick:()=>{n(i),t()},className:"rounded bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3]",children:"Salvar"})]})]})]})}):null},Hy=({variableId:e="variable",fallback:t="Default value",...r})=>{const{connectors:{connect:n,drag:i},selected:c,actions:{setProp:f}}=ln(A=>({selected:A.events.selected})),[g,b]=L.useState(!1),m=`{{${e}}}`;let v;try{const A=localStorage.getItem("bolttech_datasource");if(A){const F=JSON.parse(A),S=F&&F.data;S&&e&&(v=e.split(".").reduce((O,B)=>O&&O[B]!==void 0?O[B]:void 0,{root:S}))}}catch{}const E={display:"inline-block",padding:"4px 8px",backgroundColor:"#fef3c7",border:"1px solid #f59e0b",borderRadius:"4px",color:"#92400e",fontFamily:"monospace",fontSize:"14px",cursor:c?"pointer":"default",transition:"all 0.2s"};return w.jsxs(w.Fragment,{children:[w.jsx("span",{ref:A=>{A&&n(i(A))},style:E,className:`${c?"ring-2 ring-yellow-400":"hover:ring-2 hover:ring-yellow-300 hover:ring-opacity-50"} transition-all duration-200`,title:`Variable: ${e}`,onClick:()=>b(!0),...r,children:v!=null?String(v):t||m}),w.jsx(l1,{isOpen:g,onClose:()=>b(!1),value:e,onSelect:A=>f(F=>F.variableId=A)})]})};Hy.craft={props:{variableId:"variavel",fallback:"Valor padrão"},related:{settings:zy}};const pd=[{id:"box",label:"Box",icon:w.jsx(WD,{size:16}),category:"layout",component:Cy,tags:["div"]},{id:"text",label:"Text",icon:w.jsx(zD,{size:16}),category:"content",component:My,tags:["p","span","h1","h2","h3","h4","h5","h6"]},{id:"button",label:"Button",icon:w.jsx(ID,{size:16}),category:"interactive",component:Ey,settings:Fy,tags:["button","a"]},{id:"image",label:"Image",icon:w.jsx(HD,{size:16}),category:"media",component:Iy,settings:Ly,tags:["img"]},{id:"divider",label:"Divider",icon:w.jsx(MD,{size:16}),category:"layout",component:ky,settings:Sy,tags:["hr","div"]},{id:"variable",label:"Variable",icon:w.jsx(LD,{size:16}),category:"dynamic",component:Hy,settings:zy,tags:["span"]}];function Wy(){const[e,t]=L.useState(!1),[r,n]=L.useState(!1),[i,c]=L.useState(!0);return{showPreview:e,togglePreview:()=>{t(N=>!N)},openPreview:()=>{t(!0)},closePreview:()=>{t(!1)},showCodePanel:r,toggleCodePanel:()=>{n(N=>!N)},openCodePanel:()=>{n(!0)},closeCodePanel:()=>{n(!1)},showSidebar:i,toggleSidebar:()=>{c(N=>!N)},isEditorEnabled:!(e||r),setIsEditorEnabled:N=>{t(!N),n(!N)}}}const Uy={mobile:{width:375,height:667},tablet:{width:768,height:1024},desktop:{width:1200,height:800}};class u1{constructor(t={}){ju(this,"options");this.options={inlineStyles:!0,prettify:!1,includeComments:!1,customComponentMap:{},styleTransformers:[],...t}}convert(t){try{const r=t.ROOT;if(!r||!r.nodes)return"";const n=this.buildHTMLFromNodes(r.nodes,t);return this.options.prettify?this.prettifyHTML(n):n}catch(r){return console.error("Error converting CraftJS to HTML:",r),""}}buildHTMLFromNodes(t,r){return t.map(n=>this.buildHTMLFromNode(n,r)).filter(n=>n.trim()!=="").join("")}buildHTMLFromNode(t,r){const n=r[t];if(!n||n.hidden)return"";const{type:i,props:c={},nodes:f=[]}=n;if(i==="text"||i==="Text")return this.escapeHTML(c.text||"");const g=this.getTagName(i,n),b=this.buildAttributes(c);let m=this.buildHTMLFromNodes(f,r);return c.children&&typeof c.children=="string"&&(m+=c.children),this.isSelfClosingTag(g)?`<${g}${b} />`:`${this.options.includeComments?`<!-- ${i} -->`:""}<${g}${b}>${m}</${g}>`}getTagName(t,r){return console.log("Node custom properties:",r.custom),r.custom?.tagHtml&&typeof r.custom.tagHtml=="string"?r.custom.tagHtml.toLowerCase():this.options.customComponentMap?.[t]?this.options.customComponentMap[t]:["div","span","p","h1","h2","h3","h4","h5","h6","a","img","button","input","textarea","select","option","ul","ol","li","table","tr","td","th","thead","tbody","section","article","header","footer","nav","main","aside"].includes(t.toLowerCase())?t.toLowerCase():"div"}buildAttributes(t){const r=[];if(["id","className","title","alt","src","href","target","rel"].forEach(i=>{if(t[i]){const c=i==="className"?"class":i;r.push(`${c}="${this.escapeHTML(t[i])}"`)}}),t.style&&this.options.inlineStyles){const i=this.convertStyleObjectToCSS(t.style);i&&r.push(`style="${i}"`)}return Object.keys(t).forEach(i=>{i.startsWith("data-")&&typeof t[i]=="string"&&r.push(`${i}="${this.escapeHTML(t[i])}"`)}),r.length>0?` ${r.join(" ")}`:""}convertStyleObjectToCSS(t){if(!t||typeof t!="object")return"";const r=[];return Object.entries(t).forEach(([n,i])=>{if(i==null)return;const c=this.camelToKebabCase(n);let f=this.applStyleTransformers(n,i);f=this.addUnitIfNeeded(c,f),r.push(`${c}: ${f}`)}),r.join("; ")}camelToKebabCase(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}applStyleTransformers(t,r){const n=this.options.styleTransformers?.find(i=>i.property===t);return n?n.transform(r):String(r)}addUnitIfNeeded(t,r){const n=["width","height","min-width","min-height","max-width","max-height","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","font-size","line-height","letter-spacing","word-spacing","top","right","bottom","left","text-indent","text-decoration-thickness"],i=parseFloat(r);return!isNaN(i)&&n.includes(t)&&!r.includes("px")&&!r.includes("%")&&!r.includes("em")&&!r.includes("rem")&&!r.includes("vh")&&!r.includes("vw")?`${i}px`:r}isSelfClosingTag(t){return["img","br","hr","input","meta","link","area","base","col","embed","source","track","wbr"].includes(t.toLowerCase())}escapeHTML(t){const r=document.createElement("div");return r.textContent=t,r.innerHTML}prettifyHTML(t){let r="",n=0;const i=" ";return t.split(/>\s*</).forEach((c,f)=>{f!==0&&(c=`<${c}`),f!==t.split(/>\s*</).length-1&&(c=`${c}>`),c.match(/^<\/\w/)&&n--,r+=`${i.repeat(Math.max(0,n))+c}
|
|
185
|
-
`,c.match(/^<\w[^>]*[^/]$/)&&n++}),r.trim()}}function c1(e,t){return new u1(t).convert(e)}function gd(){const{setIsEditorEnabled:e}=Wy(),{query:t,actions:r}=La(),{nodes:n}=La(b=>({nodes:b.nodes})),i=L.useMemo(()=>Object.keys(n).length>1,[n]),[c,f]=L.useState("desktop");return L.useEffect(()=>{const b=t.node("ROOT").get();b&&r.setProp(b.id,m=>{m.style={...m.style||{},maxWidth:Uy[c].width||"100%"}})},[c]),{device:c,isEmpty:i,setDevice:f,getHtml:()=>{e(!1);try{const b=t.getSerializedNodes();if(b&&b.ROOT){const m=c1(b,{inlineStyles:!0,prettify:!1,includeComments:!1});if(m&&m.trim())return m}return""}catch(b){return console.warn("Erro na serialização CraftJS:",b),""}finally{e(!0)}}}}function d1(){L.useMemo(()=>{Wo.registerHelper("formatDate",(i,c)=>{if(!i)return"";const f=new Date(i);if(isNaN(f.getTime()))return i;switch(c){case"short":return f.toLocaleDateString();case"long":return f.toLocaleDateString("pt-BR",{weekday:"long",year:"numeric",month:"long",day:"numeric"});case"time":return f.toLocaleTimeString();default:return f.toLocaleString()}}),Wo.registerHelper("currency",(i,c="BRL")=>typeof i!="number"?i:new Intl.NumberFormat("pt-BR",{style:"currency",currency:c}).format(i)),Wo.registerHelper("upper",i=>typeof i!="string"?i:i.toUpperCase()),Wo.registerHelper("lower",i=>typeof i!="string"?i:i.toLowerCase()),Wo.registerHelper("capitalize",i=>typeof i!="string"?i:i.charAt(0).toUpperCase()+i.slice(1).toLowerCase()),Wo.registerHelper("truncate",(i,c=50)=>typeof i!="string"||i.length<=c?i:`${i.slice(0,c)}...`),Wo.registerHelper("ifExists",function(i,c){return i!=null&&i!==""?c.fn(this):c.inverse(this)}),Wo.registerHelper("math",(i,c,f)=>{if(typeof i!="number"||typeof f!="number")return"";switch(c){case"+":return i+f;case"-":return i-f;case"*":return i*f;case"/":return f!==0?i/f:0;case"%":return i%f;default:return""}})},[]);const e=L.useCallback((i,c)=>{try{return Wo.compile(i)(c)}catch(f){return console.error("Erro ao renderizar template:",f),i}},[]),t=L.useCallback(i=>{const c=/\{\{\s*([^}]+)\s*\}\}/g,f=[];let g;for(;(g=c.exec(i))!==null;){const m=g[1].trim().split(" ")[0].replace(/^[#^/]/,"").replace(/\.[^.]*$/,"");m&&!f.includes(m)&&f.push(m)}return f},[]),r=L.useCallback(i=>{try{return Wo.compile(i),{isValid:!0}}catch(c){return{isValid:!1,error:c instanceof Error?c.message:"Template inválido"}}},[]),n=L.useCallback((i,c={})=>i.map(f=>{const g=c[f]||"";let b="text";return typeof g=="number"?b="number":typeof g=="boolean"?b="boolean":f.toLowerCase().includes("date")||f.toLowerCase().includes("time")?b="date":(f.toLowerCase().includes("price")||f.toLowerCase().includes("valor")||f.toLowerCase().includes("amount"))&&(b="number"),{key:f,label:f.charAt(0).toUpperCase()+f.slice(1).replace(/([A-Z])/g," $1"),value:g,type:b}}),[]);return{renderTemplate:e,extractPlaceholders:t,validateTemplate:r,generateSchema:n}}var Fg={exports:{}},jy;function f1(){return jy||(jy=1,(function(e,t){(function(r){function n(){var i=r();return i.default||i}e.exports=n()})(function(){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=l=>{throw TypeError(l)},g=(l,d,y)=>d in l?r(l,d,{enumerable:!0,configurable:!0,writable:!0,value:y}):l[d]=y,b=(l,d)=>{for(var y in d)r(l,y,{get:d[y],enumerable:!0})},m=(l,d,y,x)=>{if(d&&typeof d=="object"||typeof d=="function")for(let _ of i(d))!c.call(l,_)&&_!==y&&r(l,_,{get:()=>d[_],enumerable:!(x=n(d,_))||x.enumerable});return l},v=l=>m(r({},"__esModule",{value:!0}),l),E=(l,d,y)=>g(l,typeof d!="symbol"?d+"":d,y),A=(l,d,y)=>d.has(l)||f("Cannot "+y),F=(l,d,y)=>(A(l,d,"read from private field"),y?y.call(l):d.get(l)),S=(l,d,y)=>d.has(l)?f("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(l):d.set(l,y),N=(l,d,y,x)=>(A(l,d,"write to private field"),d.set(l,y),y),O={};b(O,{languages:()=>Rc,options:()=>Pc,parsers:()=>gs,printers:()=>Rl});var B=(l,d,y,x)=>{if(!(l&&d==null))return d.replaceAll?d.replaceAll(y,x):y.global?d.replace(y,x):d.split(y).join(x)},z=B,Z="string",V="array",J="cursor",$="indent",K="align",ve="trim",se="group",me="fill",ge="if-break",Qe="indent-if-break",pe="line-suffix",Ie="line-suffix-boundary",tt="line",rt="label",Pt="break-parent",sr=new Set([J,$,K,ve,se,me,ge,Qe,pe,Ie,tt,rt,Pt]),Pe=(l,d,y)=>{if(!(l&&d==null))return Array.isArray(d)||typeof d=="string"?d[y<0?d.length+y:y]:d.at(y)},j=Pe;function ne(l){if(typeof l=="string")return Z;if(Array.isArray(l))return V;if(!l)return;let{type:d}=l;if(sr.has(d))return d}var Fe=ne,_e=l=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(l);function De(l){let d=l===null?"null":typeof l;if(d!=="string"&&d!=="object")return`Unexpected doc '${d}',
|
|
186
|
-
|
|
187
|
-
Expected it to be ${x}.`}var Ae=class extends Error{constructor(d){super(De(d));ju(this,"name","InvalidDocError");this.doc=d}},Oe=Ae;function ze(l,d){if(typeof l=="string")return d(l);let y=new Map;return x(l);function x(I){if(y.has(I))return y.get(I);let Y=_(I);return y.set(I,Y),Y}function _(I){switch(Fe(I)){case V:return d(I.map(x));case me:return d({...I,parts:I.parts.map(x)});case ge:return d({...I,breakContents:x(I.breakContents),flatContents:x(I.flatContents)});case se:{let{expandedStates:Y,contents:q}=I;return Y?(Y=Y.map(x),q=Y[0]):q=x(q),d({...I,contents:q,expandedStates:Y})}case K:case $:case Qe:case rt:case pe:return d({...I,contents:x(I.contents)});case Z:case J:case ve:case Ie:case tt:case Pt:return d(I);default:throw new Oe(I)}}}function Ee(l,d=Dd){return ze(l,y=>typeof y=="string"?qr(d,y.split(`
|
|
188
|
-
`)):y)}function Be(l){return{type:$,contents:l}}function ye(l,d){return{type:K,contents:d,n:l}}function Ce(l,d={}){return{type:se,id:d.id,contents:l,break:!!d.shouldBreak,expandedStates:d.expandedStates}}function be(l){return ye(Number.NEGATIVE_INFINITY,l)}function Kt(l){return ye({type:"root"},l)}function la(l){return{type:me,parts:l}}function Ct(l,d="",y={}){return{type:ge,breakContents:l,flatContents:d,groupId:y.groupId}}function Xl(l,d){return{type:Qe,contents:l,groupId:d.groupId,negate:d.negate}}var Fn={type:Pt},ac={type:tt,hard:!0},Ws={type:tt,hard:!0,literal:!0},gt={type:tt},yt={type:tt,soft:!0},Ye=[ac,Fn],Dd=[Ws,Fn];function qr(l,d){let y=[];for(let x=0;x<d.length;x++)x!==0&&y.push(l),y.push(d[x]);return y}var Fr="'",Zl='"';function oc(l,d){let y=d===!0||d===Fr?Fr:Zl,x=y===Fr?Zl:Fr,_=0,I=0;for(let Y of l)Y===y?_++:Y===x&&I++;return _>I?x:y}var ic=oc;function Cd(l){if(typeof l!="string")throw new TypeError("Expected a string");return l.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Sn,Us=class{constructor(l){S(this,Sn),N(this,Sn,new Set(l))}getLeadingWhitespaceCount(l){let d=F(this,Sn),y=0;for(let x=0;x<l.length&&d.has(l.charAt(x));x++)y++;return y}getTrailingWhitespaceCount(l){let d=F(this,Sn),y=0;for(let x=l.length-1;x>=0&&d.has(l.charAt(x));x--)y++;return y}getLeadingWhitespace(l){let d=this.getLeadingWhitespaceCount(l);return l.slice(0,d)}getTrailingWhitespace(l){let d=this.getTrailingWhitespaceCount(l);return l.slice(l.length-d)}hasLeadingWhitespace(l){return F(this,Sn).has(l.charAt(0))}hasTrailingWhitespace(l){return F(this,Sn).has(j(!1,l,-1))}trimStart(l){let d=this.getLeadingWhitespaceCount(l);return l.slice(d)}trimEnd(l){let d=this.getTrailingWhitespaceCount(l);return l.slice(0,l.length-d)}trim(l){return this.trimEnd(this.trimStart(l))}split(l,d=!1){let y=`[${Cd([...F(this,Sn)].join(""))}]+`,x=new RegExp(d?`(${y})`:y,"u");return l.split(x)}hasWhitespaceCharacter(l){let d=F(this,Sn);return Array.prototype.some.call(l,y=>d.has(y))}hasNonWhitespaceCharacter(l){let d=F(this,Sn);return Array.prototype.some.call(l,y=>!d.has(y))}isWhitespaceOnly(l){let d=F(this,Sn);return Array.prototype.every.call(l,y=>d.has(y))}};Sn=new WeakMap;var qo=Us,sc=[" ",`
|
|
189
|
-
`,"\f","\r"," "],Gi=new qo(sc),Kr=Gi,Qr=class extends Error{constructor(d,y,x="type"){super(`Unexpected ${y} node ${x}: ${JSON.stringify(d[x])}.`);ju(this,"name","UnexpectedNodeError");this.node=d}},Ed=Qr;function Jl(l){return l?.type==="front-matter"}var js=Jl,lc=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),uc=new Set(["if","else if","for","switch","case"]);function cc(l,d){var y;if(l.type==="text"||l.type==="comment"||js(l)||l.type==="yaml"||l.type==="toml")return null;if(l.type==="attribute"&&delete d.value,l.type==="docType"&&delete d.value,l.type==="angularControlFlowBlock"&&(y=l.parameters)!=null&&y.children)for(let x of d.parameters.children)uc.has(l.name)?delete x.expression:x.expression=x.expression.trim();l.type==="angularIcuExpression"&&(d.switchValue=l.switchValue.trim()),l.type==="angularLetDeclarationInitializer"&&delete d.value}cc.ignoredProperties=lc;var ql=cc;async function Gs(l,d){if(l.language==="yaml"){let y=l.value.trim(),x=y?await d(y,{parser:"yaml"}):"";return Kt([l.startDelimiter,l.explicitLanguage,Ye,x,x?Ye:"",l.endDelimiter])}}var ut=Gs;function Wn(l,d=!0){return[Be([yt,l]),d?yt:""]}function ua(l,d){let y=l.type==="NGRoot"?l.node.type==="NGMicrosyntax"&&l.node.body.length===1&&l.node.body[0].type==="NGMicrosyntaxExpression"?l.node.body[0].expression:l.node:l.type==="JsExpressionRoot"?l.node:l;return y&&(y.type==="ObjectExpression"||y.type==="ArrayExpression"||(d.parser==="__vue_expression"||d.parser==="__vue_ts_expression")&&(y.type==="TemplateLiteral"||y.type==="StringLiteral"))}async function un(l,d,y,x){y={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...y};let _=!0;x&&(y.__onHtmlBindingRoot=(Y,q)=>{_=x(Y,q)});let I=await d(l,y,d);return _?Ce(I):Wn(I)}function Ys(l,d,y,x){let{node:_}=y,I=x.originalText.slice(_.sourceSpan.start.offset,_.sourceSpan.end.offset);return/^\s*$/u.test(I)?"":un(I,l,{parser:"__ng_directive",__isInHtmlAttribute:!1},ua)}var dc=Ys,ca=(l,d)=>{if(!(l&&d==null))return d.toReversed||!Array.isArray(d)?d.toReversed():[...d].reverse()},Vs=ca;function vt(l){return Array.isArray(l)&&l.length>0}var za=vt,Kl,Ko,Ql,Qo,da,kn=((Kl=globalThis.Deno)==null?void 0:Kl.build.os)==="windows"||((Ql=(Ko=globalThis.navigator)==null?void 0:Ko.platform)==null?void 0:Ql.startsWith("Win"))||((da=(Qo=globalThis.process)==null?void 0:Qo.platform)==null?void 0:da.startsWith("win"))||!1;function Xs(l){if(l=l instanceof URL?l:new URL(l),l.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${l.protocol}"`);return l}function Yi(l){return l=Xs(l),decodeURIComponent(l.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function $o(l){l=Xs(l);let d=decodeURIComponent(l.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return l.hostname!==""&&(d=`\\\\${l.hostname}${d}`),d}function Ha(l){return kn?$o(l):Yi(l)}var fc=Ha,ei=l=>String(l).split(/[/\\]/u).pop();function $l(l,d){if(!d)return;let y=ei(d).toLowerCase();return l.find(({filenames:x})=>x?.some(_=>_.toLowerCase()===y))??l.find(({extensions:x})=>x?.some(_=>y.endsWith(_)))}function Un(l,d){if(d)return l.find(({name:y})=>y.toLowerCase()===d)??l.find(({aliases:y})=>y?.includes(d))??l.find(({extensions:y})=>y?.includes(`.${d}`))}function eu(l,d){if(d){if(String(d).startsWith("file:"))try{d=fc(d)}catch{return}if(typeof d=="string")return l.find(({isSupported:y})=>y?.({filepath:d}))}}function tu(l,d){let y=Vs(!1,l.plugins).flatMap(_=>_.languages??[]),x=Un(y,d.language)??$l(y,d.physicalFile)??$l(y,d.file)??eu(y,d.physicalFile)??eu(y,d.file)??void 0;return x?.parsers[0]}var fa=tu,ti="inline",Zs={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},ru="normal",ho={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function nu(l){return l.type==="element"&&!l.hasExplicitNamespace&&!["html","svg"].includes(l.namespace)}var Vi=nu,Fd=l=>z(!1,l,/^[\t\f\r ]*\n/gu,""),ha=l=>Fd(Kr.trimEnd(l)),Xi=l=>{let d=l,y=Kr.getLeadingWhitespace(d);y&&(d=d.slice(y.length));let x=Kr.getTrailingWhitespace(d);return x&&(d=d.slice(0,-x.length)),{leadingWhitespace:y,trailingWhitespace:x,text:d}};function Js(l,d){return!!(l.type==="ieConditionalComment"&&l.lastChild&&!l.lastChild.isSelfClosing&&!l.lastChild.endSourceSpan||l.type==="ieConditionalComment"&&!l.complete||Gn(l)&&l.children.some(y=>y.type!=="text"&&y.type!=="interpolation")||Va(l,d)&&!pa(l,d)&&l.type!=="interpolation")}function ri(l){return l.type==="attribute"||!l.parent||!l.prev?!1:Zi(l.prev)}function Zi(l){return l.type==="comment"&&l.value.trim()==="prettier-ignore"}function Qt(l){return l.type==="text"||l.type==="comment"}function pa(l,d){return l.type==="element"&&(l.fullName==="script"||l.fullName==="style"||l.fullName==="svg:style"||l.fullName==="svg:script"||l.fullName==="mj-style"&&d.parser==="mjml"||Vi(l)&&(l.name==="script"||l.name==="style"))}function Sd(l,d){return l.children&&!pa(l,d)}function ga(l,d){return pa(l,d)||l.type==="interpolation"||ma(l)}function ma(l){return vo(l).startsWith("pre")}function ni(l,d){var y,x;let _=I();if(_&&!l.prev&&(x=(y=l.parent)==null?void 0:y.tagDefinition)!=null&&x.ignoreFirstLf)return l.type==="interpolation";return _;function I(){return js(l)||l.type==="angularControlFlowBlock"?!1:(l.type==="text"||l.type==="interpolation")&&l.prev&&(l.prev.type==="text"||l.prev.type==="interpolation")?!0:!l.parent||l.parent.cssDisplay==="none"?!1:Gn(l.parent)?!0:!(!l.prev&&(l.parent.type==="root"||Gn(l)&&l.parent||pa(l.parent,d)||ya(l.parent,d)||!au(l.parent.cssDisplay))||l.prev&&!ii(l.prev.cssDisplay))}}function qs(l,d){return js(l)||l.type==="angularControlFlowBlock"?!1:(l.type==="text"||l.type==="interpolation")&&l.next&&(l.next.type==="text"||l.next.type==="interpolation")?!0:!l.parent||l.parent.cssDisplay==="none"?!1:Gn(l.parent)?!0:!(!l.next&&(l.parent.type==="root"||Gn(l)&&l.parent||pa(l.parent,d)||ya(l.parent,d)||!kr(l.parent.cssDisplay))||l.next&&!ou(l.next.cssDisplay))}function ai(l,d){return $r(l.cssDisplay)&&!pa(l,d)}function va(l){return js(l)||l.next&&l.sourceSpan.end&&l.sourceSpan.end.line+1<l.next.sourceSpan.start.line}function Ks(l){return Wa(l)||l.type==="element"&&l.children.length>0&&(["body","script","style"].includes(l.name)||l.children.some(d=>oi(d)))||l.firstChild&&l.firstChild===l.lastChild&&l.firstChild.type!=="text"&&jn(l.firstChild)&&(!l.lastChild.isTrailingSpaceSensitive||Qs(l.lastChild))}function Wa(l){return l.type==="element"&&l.children.length>0&&(["html","head","ul","ol","select"].includes(l.name)||l.cssDisplay.startsWith("table")&&l.cssDisplay!=="table-cell")}function ba(l){return Ua(l)||l.prev&&po(l.prev)||$t(l)}function po(l){return Ua(l)||l.type==="element"&&l.fullName==="br"||$t(l)}function $t(l){return jn(l)&&Qs(l)}function jn(l){return l.hasLeadingSpaces&&(l.prev?l.prev.sourceSpan.end.line<l.sourceSpan.start.line:l.parent.type==="root"||l.parent.startSourceSpan.end.line<l.sourceSpan.start.line)}function Qs(l){return l.hasTrailingSpaces&&(l.next?l.next.sourceSpan.start.line>l.sourceSpan.end.line:l.parent.type==="root"||l.parent.endSourceSpan&&l.parent.endSourceSpan.start.line>l.sourceSpan.end.line)}function Ua(l){switch(l.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(l.name)}return!1}function go(l){return l.lastChild?go(l.lastChild):l}function oi(l){var d;return(d=l.children)==null?void 0:d.some(y=>y.type!=="text")}function ja(l){if(l)switch(l){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(l.endsWith("json")||l.endsWith("importmap")||l==="speculationrules")return"json"}}function er(l,d){let{name:y,attrMap:x}=l;if(y!=="script"||Object.prototype.hasOwnProperty.call(x,"src"))return;let{type:_,lang:I}=l.attrMap;return!I&&!_?"babel":fa(d,{language:I})??ja(_)}function Ga(l,d){if(!Va(l,d))return;let{attrMap:y}=l;if(Object.prototype.hasOwnProperty.call(y,"src"))return;let{type:x,lang:_}=y;return fa(d,{language:_})??ja(x)}function Sr(l,d){if(l.name==="style"){let{lang:y}=l.attrMap;return y?fa(d,{language:y}):"css"}if(l.name==="mj-style"&&d.parser==="mjml")return"css"}function Ya(l,d){return er(l,d)??Sr(l,d)??Ga(l,d)}function mo(l){return l==="block"||l==="list-item"||l.startsWith("table")}function au(l){return!mo(l)&&l!=="inline-block"}function kr(l){return!mo(l)&&l!=="inline-block"}function ou(l){return!mo(l)}function ii(l){return!mo(l)}function $r(l){return!mo(l)&&l!=="inline-block"}function Gn(l){return vo(l).startsWith("pre")}function Ji(l,d){let y=l;for(;y;){if(d(y))return!0;y=y.parent}return!1}function si(l,d){var y;if(cn(l,d))return"block";if(((y=l.prev)==null?void 0:y.type)==="comment"){let _=l.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(_)return _[1]}let x=!1;if(l.type==="element"&&l.namespace==="svg")if(Ji(l,_=>_.fullName==="svg:foreignObject"))x=!0;else return l.name==="svg"?"inline-block":"block";switch(d.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(l.type==="element"&&(!l.namespace||x||Vi(l))&&Object.prototype.hasOwnProperty.call(Zs,l.name))return Zs[l.name]}return ti}function vo(l){return l.type==="element"&&(!l.namespace||Vi(l))&&Object.prototype.hasOwnProperty.call(ho,l.name)?ho[l.name]:ru}function $s(l){let d=Number.POSITIVE_INFINITY;for(let y of l.split(`
|
|
190
|
-
`)){if(y.length===0)continue;let x=Kr.getLeadingWhitespaceCount(y);if(x===0)return 0;y.length!==x&&x<d&&(d=x)}return d===Number.POSITIVE_INFINITY?0:d}function en(l,d=$s(l)){return d===0?l:l.split(`
|
|
74
|
+
More info: https://craft.js.org/r/docs/api/editor#props`;function qm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(r),!0).forEach((function(n){Xt(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qm(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tv(n.key),n)}}function Ms(e,t,r){return t&&Nx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xt(e,t,r){return(t=tv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zs(e)}function $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},$f(e,t)}function eh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function th(){return th=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=(function(i,u){for(;!Object.prototype.hasOwnProperty.call(i,u)&&(i=zs(i))!==null;);return i})(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(arguments.length<3?e:r):a.value}},th.apply(this,arguments)}function Km(e,t){return Qm(e)||(function(r,n){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var i,u,h,g,p=[],b=!0,D=!1;try{if(h=(a=a.call(r)).next,n===0){if(Object(a)!==a)return;b=!1}else for(;!(b=(i=h.call(a)).done)&&(p.push(i.value),p.length!==n);b=!0);}catch(F){D=!0,u=F}finally{try{if(!b&&a.return!=null&&(g=a.return(),Object(g)!==g))return}finally{if(D)throw u}}return p}})(e,t)||rh(e,t)||ev()}function _r(e){return(function(t){if(Array.isArray(t))return nh(t)})(e)||$m(e)||rh(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
75
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Qm(e){if(Array.isArray(e))return e}function $m(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rh(e,t){if(e){if(typeof e=="string")return nh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nh(e,t):void 0}}function nh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ev(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
76
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tv(e){var t=(function(r,n){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(e);return typeof t=="symbol"?t:String(t)}var Tt={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Rx=(function(){function e(){Is(this,e),Xt(this,"timeline",[]),Xt(this,"pointer",-1)}return Ms(e,[{key:"add",value:function(t,r){t.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:t,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(t.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var a=this.timeline[this.pointer],i=a.patches,u=a.inversePatches,h=a.timestamp;if(new Date().getTime()-h<n)return void(this.timeline[this.pointer]={timestamp:h,patches:[].concat(_r(i),_r(t)),inversePatches:[].concat(_r(r),_r(u))})}this.add(t,r)}}},{key:"merge",value:function(t,r){if(t.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],a=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(_r(n.patches),_r(t)),inversePatches:[].concat(_r(r),_r(a))}}else this.add(t,r)}},{key:"clear",value:function(){this.timeline=[],this.pointer=-1}},{key:"canUndo",value:function(){return this.pointer>=0}},{key:"canRedo",value:function(){return this.pointer<this.timeline.length-1}},{key:"undo",value:function(t){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,rg(t,r)}}},{key:"redo",value:function(t){if(this.canRedo())return this.pointer=this.pointer+1,rg(t,this.timeline[this.pointer].patches)}}]),e})();function Ox(e,t,r,n){var a,i=I.useMemo((function(){return new Rx}),[]),u=I.useRef([]),h=I.useRef((function(){}));typeof e=="function"?a=e:(a=e.methods,u.current=e.ignoreHistoryForActions,h.current=e.normalizeHistory);var g=I.useRef(n);g.current=n;var p=I.useRef(t),b=I.useMemo((function(){var N=h.current,_=u.current,M=g.current;return function(U,H){var q,Q=r&&rv(r,(function(){return U}),i),Y=Km(tg(U,(function(ge){var Ie,Ae;switch(H.type){case Tt.UNDO:return i.undo(ge);case Tt.REDO:return i.redo(ge);case Tt.CLEAR:return i.clear(),kn({},ge);case Tt.IGNORE:case Tt.MERGE:case Tt.THROTTLE:var Ge,Ue=Qm(Ae=H.payload)||$m(Ae)||rh(Ae)||ev(),te=Ue[0],fe=Ue.slice(1);(Ge=a(ge,Q))[te].apply(Ge,_r(fe));break;default:(Ie=a(ge,Q))[H.type].apply(Ie,_r(H.payload))}})),3),ie=Y[0],ee=Y[1],ve=Y[2];return q=ie,M&&M(ie,U,{type:H.type,params:H.payload,patches:ee},Q,(function(ge){var Ie=tg(ie,ge);q=Ie[0],ee=[].concat(_r(ee),_r(Ie[1])),ve=[].concat(_r(Ie[2]),_r(ve))})),[Tt.UNDO,Tt.REDO].includes(H.type)&&N&&(q=l2(q,N)),[].concat(_r(_),[Tt.UNDO,Tt.REDO,Tt.IGNORE,Tt.CLEAR]).includes(H.type)||(H.type===Tt.THROTTLE?i.throttleAdd(ee,ve,H.config&&H.config.rate):H.type===Tt.MERGE?i.merge(ee,ve):i.add(ee,ve)),q}}),[i,a,r]),D=I.useCallback((function(){return p.current}),[]),F=I.useMemo((function(){return new Bx(D)}),[D]),S=I.useCallback((function(N){var _=b(p.current,N);p.current=_,F.notify()}),[b,F]);I.useEffect((function(){F.notify()}),[F]);var R=I.useMemo((function(){return r?rv(r,(function(){return p.current}),i):[]}),[i,r]),O=I.useMemo((function(){var N=Object.keys(a(null,null)),_=u.current;return kn(kn({},N.reduce((function(M,U){return M[U]=function(){for(var H=arguments.length,q=new Array(H),Q=0;Q<H;Q++)q[Q]=arguments[Q];return S({type:U,payload:q})},M}),{})),{},{history:{undo:function(){return S({type:Tt.UNDO})},redo:function(){return S({type:Tt.REDO})},clear:function(){return S({type:Tt.CLEAR})},throttle:function(M){return kn({},N.filter((function(U){return!_.includes(U)})).reduce((function(U,H){return U[H]=function(){for(var q=arguments.length,Q=new Array(q),Y=0;Y<q;Y++)Q[Y]=arguments[Y];return S({type:Tt.THROTTLE,payload:[H].concat(Q),config:{rate:M}})},U}),{}))},ignore:function(){return kn({},N.filter((function(M){return!_.includes(M)})).reduce((function(M,U){return M[U]=function(){for(var H=arguments.length,q=new Array(H),Q=0;Q<H;Q++)q[Q]=arguments[Q];return S({type:Tt.IGNORE,payload:[U].concat(q)})},M}),{}))},merge:function(){return kn({},N.filter((function(M){return!_.includes(M)})).reduce((function(M,U){return M[U]=function(){for(var H=arguments.length,q=new Array(H),Q=0;Q<H;Q++)q[Q]=arguments[Q];return S({type:Tt.MERGE,payload:[U].concat(q)})},M}),{}))}}})}),[S,a]);return I.useMemo((function(){return{getState:D,subscribe:function(N,_,M){return F.subscribe(N,_,M)},actions:O,query:R,history:i}}),[O,R,F,D,i])}function rv(e,t,r){var n=Object.keys(e()).reduce((function(a,i){return kn(kn({},a),{},Xt({},i,(function(){var u;return(u=e(t()))[i].apply(u,arguments)})))}),{});return kn(kn({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}r2(),t2();var Bx=(function(){function e(t){Is(this,e),Xt(this,"getState",void 0),Xt(this,"subscribers",[]),this.getState=t}return Ms(e,[{key:"subscribe",value:function(t,r,n){var a=this,i=new Px((function(){return t(a.getState())}),r,n);return this.subscribers.push(i),this.unsubscribe.bind(this,i)}},{key:"unsubscribe",value:function(t){if(this.subscribers.length){var r=this.subscribers.indexOf(t);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach((function(t){return t.collect()}))}}]),e})(),Px=(function(){function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Is(this,e),Xt(this,"collected",void 0),Xt(this,"collector",void 0),Xt(this,"onChange",void 0),Xt(this,"id",void 0),this.collector=t,this.onChange=r,n&&this.collect()}return Ms(e,[{key:"collect",value:function(){try{var t=this.collector();Ex(t,this.collected)||(this.collected=t,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),e})(),Hl=function(e){var t=e.getBoundingClientRect(),r=t.x,n=t.y,a=t.top,i=t.left,u=t.bottom,h=t.right,g=t.width,p=t.height,b=window.getComputedStyle(e),D={left:parseInt(b.marginLeft),right:parseInt(b.marginRight),bottom:parseInt(b.marginBottom),top:parseInt(b.marginTop)},F={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight),bottom:parseInt(b.paddingBottom),top:parseInt(b.paddingTop)};return{x:r,y:n,top:a,left:i,bottom:u,right:h,width:g,height:p,outerWidth:Math.round(g+D.left+D.right),outerHeight:Math.round(p+D.top+D.bottom),margin:D,padding:F,inFlow:e.parentElement&&!!(function(S){var R=getComputedStyle(S);if(!(b.overflow&&b.overflow!=="visible"||R.float!=="none"||R.display==="grid"||R.display==="flex"&&R["flex-direction"]!=="column")){switch(b.position){case"static":case"relative":break;default:return}switch(e.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(b.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}})(e.parentElement)}};function Lx(e,t){const{subscribe:r,getState:n,actions:a,query:i}=e,u=I.useRef(!0),h=I.useRef(null),g=I.useRef(t);g.current=t;const p=I.useCallback((F=>({...F,actions:a,query:i})),[a,i]);u.current&&t&&(h.current=t(n(),i),u.current=!1);const[b,D]=I.useState(p(h.current));return I.useEffect((()=>{let F;return g.current&&(F=r((S=>g.current(S,i)),(S=>{D(p(S))}))),()=>{F&&F()}}),[p,i,r]),b}var Hs,nv=function(){return Tx(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Ix=(function(){function e(){Is(this,e),Xt(this,"isEnabled",!0),Xt(this,"elementIdMap",new WeakMap),Xt(this,"registry",new Map)}return Ms(e,[{key:"getElementId",value:function(t){var r=this.elementIdMap.get(t);if(r)return r;var n=nv();return this.elementIdMap.set(t,n),n}},{key:"getConnectorId",value:function(t,r){var n=this.getElementId(t);return"".concat(r,"--").concat(n)}},{key:"register",value:function(t,r){var n=this,a=this.getByElement(t,r.name);if(a){if(kx(r.required,a.required))return a;this.getByElement(t,r.name).disable()}var i=null,u=this.getConnectorId(t,r.name);return this.registry.set(u,{id:u,required:r.required,enable:function(){i&&i(),i=r.connector(t,r.required,r.options)},disable:function(){i&&i()},remove:function(){return n.remove(u)}}),this.isEnabled&&this.registry.get(u).enable(),this.registry.get(u)}},{key:"get",value:function(t){return this.registry.get(t)}},{key:"remove",value:function(t){var r=this.get(t);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach((function(t){t.enable()}))}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach((function(t){t.disable()}))}},{key:"getByElement",value:function(t,r){return this.get(this.getConnectorId(t,r))}},{key:"removeByElement",value:function(t,r){return this.remove(this.getConnectorId(t,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),e})();(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(Hs||(Hs={}));var av=(function(){function e(t){Is(this,e),Xt(this,"options",void 0),Xt(this,"registry",new Ix),Xt(this,"subscribers",new Set),this.options=t}return Ms(e,[{key:"listen",value:function(t){var r=this;return this.subscribers.add(t),function(){return r.subscribers.delete(t)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach((function(t){t(Hs.HandlerDisabled)}))}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach((function(t){t(Hs.HandlerEnabled)}))}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(t,r,n,a){var i=function(u){(function(h,g,p){h.craft||(h.craft={stopPropagation:function(){},blockedEvents:{}});for(var b=h.craft&&h.craft.blockedEvents[g]||[],D=0;D<b.length;D++){var F=b[D];if(p!==F&&p.contains(F))return!0}return!1})(u,r,t)||(u.craft.stopPropagation=function(){u.craft.blockedEvents[r]||(u.craft.blockedEvents[r]=[]),u.craft.blockedEvents[r].push(t)},n(u))};return t.addEventListener(r,i,a),function(){return t.removeEventListener(r,i,a)}}},{key:"createConnectorsUsage",value:function(){var t=this,r=this.handlers(),n=new Set,a=!1,i=new Map;return{connectors:Object.entries(r).reduce((function(u,h){var g=Km(h,2),p=g[0],b=g[1];return kn(kn({},u),{},Xt({},p,(function(D,F,S){var R=function(){var O=t.registry.register(D,{required:F,name:p,options:S,connector:b});return n.add(O.id),O};return i.set(t.registry.getConnectorId(D,p),R),a&&R(),D})))}),{}),register:function(){a=!0,i.forEach((function(u){u()}))},cleanup:function(){a=!1,n.forEach((function(u){return t.registry.remove(u)}))}}}},{key:"derive",value:function(t,r){return new t(this,r)}},{key:"createProxyHandlers",value:function(t,r){var n=[],a=t.handlers(),i=new Proxy(a,{get:function(u,h,g){return h in a==0?Reflect.get(u,h,g):function(p){for(var b=arguments.length,D=new Array(b>1?b-1:0),F=1;F<b;F++)D[F-1]=arguments[F];var S=a[h].apply(a,[p].concat(D));S&&n.push(S)}}});return r(i),function(){n.forEach((function(u){u()}))}}},{key:"reflect",value:function(t){return this.createProxyHandlers(this,t)}}]),e})(),Mx=(function(e){(function(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(u&&u.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),u&&$f(i,u)})(a,av);var t,r,n=(t=a,r=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})(),function(){var i,u=zs(t);if(r){var h=zs(this).constructor;i=Reflect.construct(u,arguments,h)}else i=u.apply(this,arguments);return(function(g,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eh(g)})(this,i)});function a(i,u){var h;return Is(this,a),Xt(eh(h=n.call(this,u)),"derived",void 0),Xt(eh(h),"unsubscribeParentHandlerListener",void 0),h.derived=i,h.options=u,h.unsubscribeParentHandlerListener=h.derived.listen((function(g){switch(g){case Hs.HandlerEnabled:return h.enable();case Hs.HandlerDisabled:return h.disable();default:return}})),h}return Ms(a,[{key:"inherit",value:function(i){return this.createProxyHandlers(this.derived,i)}},{key:"cleanup",value:function(){th(zs(a.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),a})();function iv(e,t){t&&(typeof e=="function"?e(t):e.current=t)}function zx(e,t){const r=e.ref;return st(typeof r!="string"),I.cloneElement(e,r?{ref:n=>{iv(r,n),iv(t,n)}}:{ref:t})}function Hx(e){return(t=null,...r)=>{if(!I.isValidElement(t)){if(!t)return;const a=t;return a&&e(a,...r),a}const n=t;return(function(a){if(typeof a.type!="string")throw new Error})(n),zx(n,e)}}function ov(e){return Object.keys(e).reduce(((t,r)=>(t[r]=Hx(((...n)=>e[r](...n))),t)),{})}const jx=({style:e,className:t,parentDom:r})=>{const n=I.createElement("div",{className:t,style:{position:"fixed",display:"block",opacity:1,borderStyle:"solid",borderWidth:"1px",borderColor:"transparent",zIndex:99999,...e}});return r&&r.ownerDocument!==document?Yn.createPortal(n,r.ownerDocument.body):n};var Qi=function(e,t){var r="Deprecation warning: ".concat(e," will be deprecated in future relases."),n=t.suggest,a=t.doc;n&&(r+=" Please use ".concat(n," instead.")),a&&(r+="(".concat(a,")")),console.warn(r)},sv=function(){return typeof window<"u"},Ux=function(){return sv()&&/Linux/i.test(window.navigator.userAgent)},Wx=function(){return sv()&&/Chrome/i.test(window.navigator.userAgent)},Gx=Pd();const Vx=Nl(Gx);typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const lv=I.createContext(null),ah=({id:e,related:t=!1,children:r})=>I.createElement(lv.Provider,{value:{id:e,related:t}},r);function uv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uv(Object(r),!0).forEach((function(n){Zt(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uv(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function ih(e){return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}function Zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fv(n.key),n)}}function qu(e,t,r){return t&&Yx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zt(e,t,r){return(t=fv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sh(e,t)}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ku(e)}function sh(e,t){return sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},sh(e,t)}function lh(e,t){if(e==null)return{};var r,n,a=(function(u,h){if(u==null)return{};var g,p,b={},D=Object.keys(u);for(p=0;p<D.length;p++)h.indexOf(g=D[p])>=0||(b[g]=u[g]);return b})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function jl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uh(e){var t=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var r,n=Ku(e);if(t){var a=Ku(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(function(i,u){if(u&&(typeof u=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jl(i)})(this,r)}}function cv(e,t){return(function(r){if(Array.isArray(r))return r})(e)||(function(r,n){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var i,u,h,g,p=[],b=!0,D=!1;try{if(h=(a=a.call(r)).next,n!==0)for(;!(b=(i=h.call(a)).done)&&(p.push(i.value),p.length!==n);b=!0);}catch(F){D=!0,u=F}finally{try{if(!b&&a.return!=null&&(g=a.return(),Object(g)!==g))return}finally{if(D)throw u}}return p}})(e,t)||dv(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Ul(e){return(function(t){if(Array.isArray(t))return ch(t)})(e)||(function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||dv(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function dv(e,t){if(e){if(typeof e=="string")return ch(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ch(e,t):void 0}}function ch(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fv(e){var t=(function(r,n){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var i=a.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(e);return typeof t=="symbol"?t:String(t)}const dh=I.createContext(null);var hv=I.createContext(null),pv=function(){return I.useContext(hv)};function Io(e){var t=pv(),r=I.useContext(dh);st(r);var n=Lx(r,e),a=I.useMemo((function(){return t&&t.createConnectorsUsage()}),[t]);I.useEffect((function(){return a.register(),function(){a.cleanup()}}),[a]);var i=I.useMemo((function(){return a&&ov(a.connectors)}),[a]);return ht(ht({},n),{},{connectors:i,inContext:!!r,store:r})}var Jx=["actions","query","connectors"];function Qu(e){var t=I.useContext(lv);st(t);var r=t.id,n=t.related,a=Io((function(b){return r&&b.nodes[r]&&e&&e(b.nodes[r])})),i=a.actions,u=a.connectors,h=lh(a,Jx),g=I.useMemo((function(){return ov({connect:function(b){return u.connect(b,r)},drag:function(b){return u.drag(b,r)}})}),[u,r]),p=I.useMemo((function(){return{setProp:function(b,D){D?i.history.throttle(D).setProp(r,b):i.setProp(r,b)},setCustom:function(b,D){D?i.history.throttle(D).setCustom(r,b):i.setCustom(r,b)},setHidden:function(b){return i.setHidden(r,b)}}}),[i,r]);return ht(ht({},h),{},{id:r,related:n,inNodeContext:!!t,actions:p,connectors:g})}var Xx=["id","related","actions","inNodeContext","connectors"];function mt(e){var t=Qu(e),r=t.id,n=t.related,a=t.actions,i=t.inNodeContext,u=t.connectors;return ht(ht({},lh(t,Xx)),{},{actions:a,id:r,related:n,setProp:function(h,g){return Qi("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),a.setProp(h,g)},inNodeContext:i,connectors:u})}const Zx=({render:e})=>{const{connectors:{connect:t,drag:r}}=mt();return typeof e.type=="string"?t(r(I.cloneElement(e))):e},qx=()=>{const{type:e,props:t,nodes:r,hydrationTimestamp:n}=Qu((a=>({type:a.data.type,props:a.data.props,nodes:a.data.nodes,hydrationTimestamp:a._hydrationTimestamp})));return I.useMemo((()=>{let a=t.children;r&&r.length>0&&(a=I.createElement(I.Fragment,null,r.map((u=>I.createElement(fh,{id:u,key:u})))));const i=I.createElement(e,t,a);return typeof e=="string"?I.createElement(Zx,{render:i}):i}),[e,t,n,r])},Kx=({render:e})=>{const{hidden:t}=Qu((n=>({hidden:n.data.hidden}))),{onRender:r}=Io((n=>({onRender:n.options.onRender})));return t?null:I.createElement(r,{render:e||I.createElement(qx,null)})},fh=({id:e,render:t})=>I.createElement(ah,{id:e},I.createElement(Kx,{render:t})),hh={is:"div",canvas:!1,custom:{},hidden:!1},Qx={is:"type",canvas:"isCanvas"};function $u({id:e,children:t,...r}){const{is:n}={...hh,...r},{query:a,actions:i}=Io(),{id:u,inNodeContext:h}=Qu(),[g]=I.useState((()=>{st(!!e);const p=a.node(u).get();if(h){const b=p.data.linkedNodes[e]?a.node(p.data.linkedNodes[e]).get():null;if(b&&b.data.type===n)return b.id;const D=I.createElement($u,r,t),F=a.parseReactElement(D).toNodeTree();return i.history.ignore().addLinkedNodeFromTree(F,u,e),F.rootNodeId}return null}));return g?I.createElement(fh,{id:g}):null}const gv=()=>Qi("<Canvas />",{suggest:"<Element canvas={true} />"});function ph({...e}){return I.useEffect((()=>gv()),[]),I.createElement($u,{...e,canvas:!0})}const $x=()=>{const{timestamp:e}=Io((t=>({timestamp:t.nodes[va]&&t.nodes[va]._hydrationTimestamp})));return e?I.createElement(fh,{id:va,key:e}):null},ew=({children:e,json:t,data:r})=>{const{actions:n,query:a}=Io();t&&Qi("<Frame json={...} />",{suggest:"<Frame data={...} />"});const i=I.useRef(!1);if(!i.current){const u=r||t;if(u)n.history.ignore().deserialize(u);else if(e){const h=I.Children.only(e),g=a.parseReactElement(h).toNodeTree(((p,b)=>(b===h&&(p.id=va),p)));n.history.ignore().addNodeTree(g)}i.current=!0}return I.createElement($x,null)};var mv;(function(e){e[e.Any=0]="Any",e[e.Id=1]="Id",e[e.Obj=2]="Obj"})(mv||(mv={}));const gh=e=>{const{addLinkedNodeFromTree:t,setDOM:r,setNodeEvent:n,replaceNodes:a,reset:i,...u}=e;return u};function Hr(e){const{connectors:t,actions:r,query:n,store:a,...i}=Io(e),u=gh(r);return{connectors:t,actions:I.useMemo((()=>({...u,history:{...u.history,ignore:(...h)=>gh(u.history.ignore(...h)),throttle:(...h)=>gh(u.history.throttle(...h))}})),[u]),query:n,store:a,...i}}var vv=function(e){return Object.fromEntries?Object.fromEntries(e):e.reduce((function(t,r){var n=cv(r,2),a=n[0],i=n[1];return ht(ht({},t),{},Zt({},a,i))}),{})},Ka=function(e,t,r){var n=Array.isArray(t)?t:[t],a=ht({existOnly:!1,idOnly:!1},r||{}),i=n.filter((function(u){return!!u})).map((function(u){return typeof u=="string"?{node:e[u],exists:!!e[u]}:ih(u)!=="object"||a.idOnly?{node:null,exists:!1}:{node:u,exists:!!e[u.id]}}));return a.existOnly&&st(i.filter((function(u){return!u.exists})).length===0),i},tw=["history"],js=null,ec=function(e,t){if(typeof t=="string")return t;var r,n=(function(a,i){var u=(function(h){if(js&&js.resolver===h)return js.reversed;js={resolver:h,reversed:new Map};for(var g=0,p=Object.entries(h);g<p.length;g++){var b=cv(p[g],2);js.reversed.set(b[1],b[0])}return js.reversed})(a).get(i);return u!==void 0?u:null})(e,t);return st(n,Zm.replace("%node_type%",(r=t).name||r.displayName)),n};const rw=(e,t)=>typeof e=="string"?e:{resolvedName:ec(t,e)},mh=(e,t)=>{let{type:r,isCanvas:n,props:a}=e;return a=Object.keys(a).reduce(((i,u)=>{const h=a[u];return h==null||typeof h=="function"||(i[u]=u==="children"&&typeof h!="string"?I.Children.map(h,(g=>typeof g=="string"?g:mh(g,t))):typeof h.type=="function"?mh(h,t):h),i}),{}),{type:rw(r,t),isCanvas:!!n,props:a}},nw=(e,t)=>{const{type:r,props:n,isCanvas:a,name:i,...u}=e;return{...mh({type:r,isCanvas:a,props:n},t),...u}};function vh(e,t){st(typeof t=="string");var r=e.nodes[t],n=function(a){return vh(e,a)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===va},isLinkedNode:function(){return r.data.parent&&n(r.data.parent).linkedNodes().includes(r.id)},isTopLevelNode:function(){return this.isRoot()||this.isLinkedNode()},isDeletable:function(){return!this.isTopLevelNode()},isParentOfTopLevelNodes:function(){return r.data.linkedNodes&&Object.keys(r.data.linkedNodes).length>0},isParentOfTopLevelCanvas:function(){return Qi("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return e.events.selected.has(t)},isHovered:function(){return e.events.hovered.has(t)},isDragged:function(){return e.events.dragged.has(t)},get:function(){return r},ancestors:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return(function i(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,p=e.nodes[u];return p?(h.push(u),p.data.parent&&(a||!a&&g===0)&&(h=i(p.data.parent,h,g+1)),h):h})(r.data.parent)},descendants:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=arguments.length>1?arguments[1]:void 0;return(function u(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(a||!a&&p===0)&&e.nodes[h]&&(i!=="childNodes"&&n(h).linkedNodes().forEach((function(b){g.push(b),g=u(b,g,p+1)})),i!=="linkedNodes"&&n(h).childNodes().forEach((function(b){g.push(b),g=u(b,g,p+1)}))),g})(t)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(a){try{var i=r;return st(!this.isTopLevelNode()),st(vh(e,i.data.parent).isCanvas()),st(i.rules.canDrag(i,n)),!0}catch(u){return a&&a(u),!1}},isDroppable:function(a,i){var u=Ka(e.nodes,a),h=r;try{st(this.isCanvas()),st(h.rules.canMoveIn(u.map((function(p){return p.node})),h,n));var g={};return u.forEach((function(p){var b=p.node,D=p.exists;if(st(b.rules.canDrop(h,b,n)),D){st(!n(b.id).isTopLevelNode());var F=n(b.id).descendants(!0);st(!F.includes(h.id)&&h.id!==b.id);var S=b.data.parent&&e.nodes[b.data.parent];st(S.data.isCanvas),st(S||!S&&!e.nodes[b.id]),S.id!==h.id&&(g[S.id]||(g[S.id]=[]),g[S.id].push(b))}})),Object.keys(g).forEach((function(p){var b=e.nodes[p];st(b.rules.canMoveOut(g[p],b,n))})),!0}catch(p){return i&&i(p),!1}},toSerializedNode:function(){return nw(r.data,e.options.resolver)},toNodeTree:function(a){var i=[t].concat(Ul(this.descendants(!0,a))).reduce((function(u,h){return u[h]=n(h).get(),u}),{});return{rootNodeId:t,nodes:i}},decendants:function(){var a=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return Qi("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(a)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function bv(e,t,r,n){for(var a={parent:e,index:0,where:"before"},i=0,u=0,h=0,g=0,p=0,b=0,D=0,F=t.length;D<F;D++){var S=t[D];if(b=S.top+S.outerHeight,g=S.left+S.outerWidth/2,p=S.top+S.outerHeight/2,!(u&&S.left>u||h&&p>=h||i&&S.left+S.outerWidth<i))if(a.index=D,S.inFlow){if(n<p){a.where="before";break}a.where="after"}else n<b&&(h=b),r<g?(u=g,a.where="before"):(i=g,a.where="after")}return a}var tc=function(e){return typeof e=="string"?e:e.name};function yv(e,t){var r=e.data.type,n={id:e.id||nv(),_hydrationTimestamp:Date.now(),data:ht({type:r,name:tc(r),displayName:tc(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},e.data),info:{},related:{},events:{selected:!1,dragged:!1,hovered:!1},rules:{canDrag:function(){return!0},canDrop:function(){return!0},canMoveIn:function(){return!0},canMoveOut:function(){return!0}},dom:null};if(n.data.type===$u||n.data.type===ph){var a=ht(ht({},hh),n.data.props);n.data.props=Object.keys(n.data.props).reduce((function(h,g){return Object.keys(hh).includes(g)?n.data[Qx[g]||g]=a[g]:h[g]=n.data.props[g],h}),{}),n.data.name=tc(r=n.data.type),n.data.displayName=tc(r),n.data.type===ph&&(n.data.isCanvas=!0,gv())}t&&t(n);var i=r.craft;if(i){if(n.data.displayName=i.displayName||i.name||n.data.displayName,n.data.props=ht(ht({},i.props||i.defaultProps||{}),n.data.props),n.data.custom=ht(ht({},i.custom||{}),n.data.custom),i.isCanvas!=null&&(n.data.isCanvas=i.isCanvas),i.rules&&Object.keys(i.rules).forEach((function(h){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(h)&&(n.rules[h]=i.rules[h])})),i.related){var u={id:n.id,related:!0};Object.keys(i.related).forEach((function(h){n.related[h]=function(g){return I.createElement(ah,u,I.createElement(i.related[h],g))}}))}i.info&&(n.info=i.info)}return n}const bh=(e,t,r)=>{let{type:n,props:a}=e;const i=((h,g)=>typeof h=="object"&&h.resolvedName?h.resolvedName==="Canvas"?ph:g[h.resolvedName]:typeof h=="string"?h:null)(n,t);if(!i)return;a=Object.keys(a).reduce(((h,g)=>{const p=a[g];return h[g]=p==null?null:typeof p=="object"&&p.resolvedName?bh(p,t):g==="children"&&Array.isArray(p)?p.map((b=>typeof b=="string"?b:bh(b,t))):p,h}),{});const u={...I.createElement(i,{...a})};return{...u,name:ec(t,u.type)}},aw=(e,t)=>{const{type:r,props:n,...a}=e;st(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Ax.replace("%displayName%",e.displayName).replace("%availableComponents%",Object.keys(t).join(", ")));const{type:i,name:u,props:h}=bh(e,t),{parent:g,custom:p,displayName:b,isCanvas:D,nodes:F,hidden:S}=a;return{type:i,name:u,displayName:b||u,props:h,custom:p||{},isCanvas:!!D,hidden:!!S,parent:g,linkedNodes:a.linkedNodes||a._childCanvas||{},nodes:F||[]}},iw=(e,t)=>{if(t.length<1)return{[e.id]:e};const r=t.map((({rootNodeId:a})=>a)),n={...e,data:{...e.data,nodes:r}};return t.reduce(((a,i)=>{const u=i.nodes[i.rootNodeId];return{...a,...i.nodes,[u.id]:{...u,data:{...u.data,parent:e.id}}}}),{[e.id]:n})},ow=(e,t)=>({rootNodeId:e.id,nodes:iw(e,t)});function xv(e){const t=e&&e.options,r=()=>xv(e);return{getDropPlaceholder:(n,a,i,u=(h=>e.nodes[h.id].dom))=>{const h=e.nodes[a],g=r().node(h.id).isCanvas()?h:e.nodes[h.data.parent];if(!g)return;const p=g.data.nodes||[],b=bv(g,p?p.reduce(((S,R)=>{const O=u(e.nodes[R]);if(O){const N={id:R,...Hl(O)};S.push(N)}return S}),[]):[],i.x,i.y),D=p.length&&e.nodes[p[b.index]],F={placement:{...b,currentNode:D},error:null};return Ka(e.nodes,n).forEach((({node:S,exists:R})=>{R&&r().node(S.id).isDraggable((O=>F.error=O))})),r().node(g.id).isDroppable(n,(S=>F.error=S)),F},getOptions:()=>t,getNodes:()=>e.nodes,node:n=>vh(e,n),getSerializedNodes(){const n=Object.keys(e.nodes).map((a=>[a,this.node(a).toSerializedNode()]));return vv(n)},getEvent:n=>(function(a,i){var u=a.events[i];return{contains:function(h){return u.has(h)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var h=this.all();return h[h.length-1]},all:function(){return Array.from(u)},size:function(){return this.all().length},at:function(h){return this.all()[h]},raw:function(){return u}}})(e,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(a){let i=(function(h,g){let p=h;return typeof p=="string"&&(p=I.createElement(I.Fragment,{},p)),yv({data:{type:p.type,props:{...p.props}}},(b=>{g&&g(b,p)}))})(n,((h,g)=>{const p=ec(e.options.resolver,h.data.type);h.data.displayName=h.data.displayName||p,h.data.name=p,a&&a(h,g)})),u=[];return n.props&&n.props.children&&(u=I.Children.toArray(n.props.children).reduce(((h,g)=>(I.isValidElement(g)&&h.push(r().parseReactElement(g).toNodeTree(a)),h)),[])),ow(i,u)}}),parseSerializedNode:n=>({toNode(a){const i=aw(n,e.options.resolver);st(i.type);const u=typeof a=="string"&&a;return u&&Qi("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...u?{id:u}:{},data:i}).toNode(!u&&a)}}),parseFreshNode:n=>({toNode:a=>yv(n,(i=>{i.data.parent===Xm&&(i.data.parent=va);const u=ec(e.options.resolver,i.data.type);st(u!==null),i.data.displayName=i.data.displayName||u,i.data.name=u,a&&a(i)}))}),createNode(n,a){Qi(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const i=this.parseReactElement(n).toNodeTree(),u=i.nodes[i.rootNodeId];return a&&(a.id&&(u.id=a.id),a.data&&(u.data={...u.data,...a.data})),u},getState:()=>e}}var sw=(function(e){oh(r,av);var t=uh(r);function r(){return Zu(this,r),t.apply(this,arguments)}return qu(r,[{key:"handlers",value:function(){return{connect:function(n,a){},select:function(n,a){},hover:function(n,a){},drag:function(n,a){},drop:function(n,a){},create:function(n,a,i){}}}}]),r})();(function(e){oh(r,Mx);var t=uh(r);function r(){return Zu(this,r),t.apply(this,arguments)}return qu(r)})();var wv=function(e){e.preventDefault()},yh=(function(){function e(t,r){Zu(this,e),Zt(this,"store",void 0),Zt(this,"dragTarget",void 0),Zt(this,"currentDropTargetId",void 0),Zt(this,"currentDropTargetCanvasAncestorId",void 0),Zt(this,"currentIndicator",null),Zt(this,"currentTargetId",void 0),Zt(this,"currentTargetChildDimensions",void 0),Zt(this,"dragError",void 0),Zt(this,"draggedNodes",void 0),Zt(this,"onScrollListener",void 0),this.store=t,this.dragTarget=r,this.currentDropTargetId=null,this.currentDropTargetCanvasAncestorId=null,this.currentTargetId=null,this.currentTargetChildDimensions=null,this.currentIndicator=null,this.dragError=null,this.draggedNodes=this.getDraggedNodes(),this.validateDraggedNodes(),this.onScrollListener=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollListener,!0),window.addEventListener("dragover",wv,!1)}return qu(e,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",wv,!1)}},{key:"onScroll",value:function(t){var r=t.target,n=this.store.query.node(va).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Ka(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var t=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach((function(r){r.exists&&t.store.query.node(r.node.id).isDraggable((function(n){t.dragError=n}))}))}},{key:"isNearBorders",value:function(t,r,n){return t.top+e.BORDER_OFFSET>n||t.bottom-e.BORDER_OFFSET<n||t.left+e.BORDER_OFFSET>r||t.right-e.BORDER_OFFSET<r}},{key:"isDiff",value:function(t){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==t.parent.id||this.currentIndicator.placement.index!==t.index||this.currentIndicator.placement.where!==t.where}},{key:"getChildDimensions",value:function(t){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===t.id&&n?n:t.data.nodes.reduce((function(a,i){var u=r.store.query.node(i).get().dom;return u&&a.push(ht({id:i},Hl(u))),a}),[])}},{key:"getCanvasAncestor",value:function(t){var r=this;if(t===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return(function a(i){var u=r.store.query.node(i).get();return u&&u.data.isCanvas?u:u.data.parent?a(u.data.parent):null})(t)}},{key:"computeIndicator",value:function(t,r,n){var a=this.getCanvasAncestor(t);if(a&&(this.currentDropTargetId=t,this.currentDropTargetCanvasAncestorId=a.id,a.data.parent&&this.isNearBorders(Hl(a.dom),r,n)&&!this.store.query.node(a.id).isLinkedNode()&&(a=this.store.query.node(a.data.parent).get()),a)){this.currentTargetChildDimensions=this.getChildDimensions(a),this.currentTargetId=a.id;var i=bv(a,this.currentTargetChildDimensions,r,n);if(this.isDiff(i)){var u=this.dragError;u||this.store.query.node(a.id).isDroppable(this.draggedNodes.map((function(p){return p.node})),(function(p){u=p}));var h=a.data.nodes[i.index],g=h&&this.store.query.node(h).get();return this.currentIndicator={placement:ht(ht({},i),{},{currentNode:g}),error:u},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),e})();Zt(yh,"BORDER_OFFSET",10);var Dv=function(e,t){if(t.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=t[0].getBoundingClientRect(),n=r.width,a=r.height,i=t[0].cloneNode(!0);return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="".concat(n,"px"),i.style.height="".concat(a,"px"),i.style.pointerEvents="none",i.classList.add("drag-shadow"),document.body.appendChild(i),e.dataTransfer.setDragImage(i,0,0),i}var u=document.createElement("div");return u.style.position="absolute",u.style.left="-100%",u.style.top="-100%",u.style.width="100%",u.style.height="100%",u.style.pointerEvents="none",u.classList.add("drag-shadow-container"),t.forEach((function(h){var g=h.getBoundingClientRect(),p=g.width,b=g.height,D=g.top,F=g.left,S=h.cloneNode(!0);S.style.position="absolute",S.style.left="".concat(F,"px"),S.style.top="".concat(D,"px"),S.style.width="".concat(p,"px"),S.style.height="".concat(b,"px"),S.classList.add("drag-shadow"),u.appendChild(S)})),document.body.appendChild(u),e.dataTransfer.setDragImage(u,e.clientX,e.clientY),u},Cv=(function(e){oh(r,sw);var t=uh(r);function r(){var n;Zu(this,r);for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return Zt(jl(n=t.call.apply(t,[this].concat(i))),"draggedElementShadow",void 0),Zt(jl(n),"dragTarget",void 0),Zt(jl(n),"positioner",null),Zt(jl(n),"currentSelectedElementIds",[]),n}return qu(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,a=this.options.store;return{connect:function(i,u){return a.actions.setDOM(u,i),n.reflect((function(h){h.select(i,u),h.hover(i,u),h.drop(i,u)}))},select:function(i,u){var h=n.addCraftEventListener(i,"mousedown",(function(p){p.craft.stopPropagation();var b=[];if(u){var D=a.query,F=D.getEvent("selected").all();(n.options.isMultiSelectEnabled(p)||F.includes(u))&&(b=F.filter((function(S){var R=D.node(S).descendants(!0),O=D.node(S).ancestors(!0);return!R.includes(u)&&!O.includes(u)}))),b.includes(u)||b.push(u)}a.actions.setNodeEvent("selected",b)})),g=n.addCraftEventListener(i,"click",(function(p){p.craft.stopPropagation();var b=a.query.getEvent("selected").all(),D=n.options.isMultiSelectEnabled(p),F=n.currentSelectedElementIds.includes(u),S=Ul(b);D&&F?(S.splice(S.indexOf(u),1),a.actions.setNodeEvent("selected",S)):!D&&b.length>1&&a.actions.setNodeEvent("selected",S=[u]),n.currentSelectedElementIds=S}));return function(){h(),g()}},hover:function(i,u){var h=n.addCraftEventListener(i,"mouseover",(function(p){p.craft.stopPropagation(),a.actions.setNodeEvent("hovered",u)})),g=null;return n.options.removeHoverOnMouseleave&&(g=n.addCraftEventListener(i,"mouseleave",(function(p){p.craft.stopPropagation(),a.actions.setNodeEvent("hovered",null)}))),function(){h(),g&&g()}},drop:function(i,u){var h=n.addCraftEventListener(i,"dragover",(function(p){if(p.craft.stopPropagation(),p.preventDefault(),n.positioner){var b=n.positioner.computeIndicator(u,p.clientX,p.clientY);b&&a.actions.setIndicator(b)}})),g=n.addCraftEventListener(i,"dragenter",(function(p){p.craft.stopPropagation(),p.preventDefault()}));return function(){g(),h()}},drag:function(i,u){if(!a.query.node(u).isDraggable())return function(){};i.setAttribute("draggable","true");var h=n.addCraftEventListener(i,"dragstart",(function(p){p.craft.stopPropagation();var b=a.query,D=a.actions,F=b.getEvent("selected").all(),S=n.options.isMultiSelectEnabled(p);n.currentSelectedElementIds.includes(u)||(F=S?[].concat(Ul(F),[u]):[u],a.actions.setNodeEvent("selected",F)),D.setNodeEvent("dragged",F);var R=F.map((function(O){return b.node(O).get().dom}));n.draggedElementShadow=Dv(p,R,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:F},n.positioner=new yh(n.options.store,n.dragTarget)})),g=n.addCraftEventListener(i,"dragend",(function(p){p.craft.stopPropagation(),n.dropElement((function(b,D){b.type!=="new"&&a.actions.move(b.nodes,D.placement.parent.id,D.placement.index+(D.placement.where==="after"?1:0))}))}));return function(){i.setAttribute("draggable","false"),h(),g()}},create:function(i,u,h){i.setAttribute("draggable","true");var g=n.addCraftEventListener(i,"dragstart",(function(b){var D;if(b.craft.stopPropagation(),typeof u=="function"){var F=u();D=I.isValidElement(F)?a.query.parseReactElement(F).toNodeTree():F}else D=a.query.parseReactElement(u).toNodeTree();n.draggedElementShadow=Dv(b,[b.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:D},n.positioner=new yh(n.options.store,n.dragTarget)})),p=n.addCraftEventListener(i,"dragend",(function(b){b.craft.stopPropagation(),n.dropElement((function(D,F){D.type!=="existing"&&(a.actions.addNodeTree(D.tree,F.placement.parent.id,F.placement.index+(F.placement.where==="after"?1:0)),h&&Vx(h.onCreate)&&h.onCreate(D.tree))}))}));return function(){i.removeAttribute("draggable"),g(),p()}}}}},{key:"dropElement",value:function(n){var a=this.options.store;if(this.positioner){var i=this.draggedElementShadow,u=this.positioner.getIndicator();this.dragTarget&&u&&!u.error&&n(this.dragTarget,u),i&&(i.parentNode.removeChild(i),this.draggedElementShadow=null),this.dragTarget=null,a.actions.setIndicator(null),a.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r})();function lw(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,a=0,i=0,u=0,h=0,g=e.where;return r?r.inFlow?(u=r.outerWidth,h=n,a=g==="before"?r.top:r.bottom,i=r.left):(u=n,h=r.outerHeight,a=r.top,i=g==="before"?r.left:r.left+r.outerWidth):t&&(a=t.top+t.padding.top,i=t.left+t.padding.left,u=t.outerWidth-t.padding.right-t.padding.left-t.margin.left-t.margin.right,h=n),{top:"".concat(a,"px"),left:"".concat(i,"px"),width:"".concat(u,"px"),height:"".concat(h,"px")}}Zt(Cv,"forceSingleDragShadow",Wx()&&Ux());const uw=()=>{const{indicator:e,indicatorOptions:t,enabled:r}=Io((a=>({indicator:a.indicator,indicatorOptions:a.options.indicator,enabled:a.options.enabled}))),n=pv();return I.useEffect((()=>{n&&(r?n.enable():n.disable())}),[r,n]),e?I.createElement(jx,{className:t.className,style:{...lw(e.placement,Hl(e.placement.parent.dom),e.placement.currentNode&&Hl(e.placement.currentNode.dom),t.thickness),backgroundColor:e.error?t.error:t.success,transition:t.transition||"0.2s ease-in",...t.style??{}},parentDom:e.placement.parent.dom}):null},cw=({children:e})=>{const t=I.useContext(dh),r=I.useMemo((()=>t.query.getOptions().handlers(t)),[t]);return r?I.createElement(hv.Provider,{value:r},I.createElement(uw,null),e):null},Ev={nodes:{},events:{dragged:new Set,selected:new Set,hovered:new Set},indicator:null,options:{onNodesChange:()=>null,onRender:({render:e})=>e,onBeforeMoveEnd:()=>null,resolver:{},enabled:!0,indicator:{error:"red",success:"rgb(98, 196, 98)"},handlers:e=>new Cv({store:e,removeHoverOnMouseleave:!1,isMultiSelectEnabled:t=>!!t.metaKey}),normalizeNodes:()=>{}}},dw={methods:function(e,t){return ht(ht({},(function(r,n){var a=function(h,g,p){if((function F(S,R){var O=h.nodes[S];typeof O.data.type!="string"&&st(r.options.resolver[O.data.name],Zm.replace("%node_type%","".concat(O.data.type.name))),r.nodes[S]=ht(ht({},O),{},{data:ht(ht({},O.data),{},{parent:R})}),O.data.nodes.length>0&&(delete r.nodes[S].data.props.children,O.data.nodes.forEach((function(N){return F(N,O.id)}))),Object.values(O.data.linkedNodes).forEach((function(N){return F(N,O.id)}))})(h.rootNodeId,g),g||h.rootNodeId!==va){var b=i(g);if(p.type!=="child")b.data.linkedNodes[p.id]=h.rootNodeId;else{var D=p.index;D!=null?b.data.nodes.splice(D,0,h.rootNodeId):b.data.nodes.push(h.rootNodeId)}}},i=function(h){st(h);var g=r.nodes[h];return st(g),g},u=function h(g){var p=r.nodes[g],b=r.nodes[p.data.parent];if(p.data.nodes&&Ul(p.data.nodes).forEach((function(S){return h(S)})),p.data.linkedNodes&&Object.values(p.data.linkedNodes).map((function(S){return h(S)})),b.data.nodes.includes(g)){var D=b.data.nodes;D.splice(D.indexOf(g),1)}else{var F=Object.keys(b.data.linkedNodes).find((function(S){return b.data.linkedNodes[S]===S}));F&&delete b.data.linkedNodes[F]}(function(S,R){Object.keys(S.events).forEach((function(O){var N=S.events[O];N&&N.has&&N.has(R)&&(S.events[O]=new Set(Array.from(N).filter((function(_){return R!==_}))))}))})(r,g),delete r.nodes[g]};return{addLinkedNodeFromTree:function(h,g,p){var b=i(g).data.linkedNodes[p];b&&u(b),a(h,g,{type:"linked",id:p})},add:function(h,g,p){var b=[h];Array.isArray(h)&&(Qi("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),b=h),b.forEach((function(D){a({nodes:Zt({},D.id,D),rootNodeId:D.id},g,{type:"child",index:p})}))},addNodeTree:function(h,g,p){a(h,g,{type:"child",index:p})},delete:function(h){Ka(r.nodes,h,{existOnly:!0,idOnly:!0}).forEach((function(g){var p=g.node;st(!n.node(p.id).isTopLevelNode()),u(p.id)}))},deserialize:function(h){var g=typeof h=="string"?JSON.parse(h):h,p=Object.keys(g).map((function(b){var D=b;return b===Xm&&(D=va),[D,n.parseSerializedNode(g[b]).toNode((function(F){return F.id=D}))]}));this.replaceNodes(vv(p))},move:function(h,g,p){var b=Ka(r.nodes,h,{existOnly:!0}),D=r.nodes[g],F=new Set;b.forEach((function(S,R){var O=S.node,N=O.id,_=O.data.parent;n.node(g).isDroppable([N],(function(H){throw new Error(H)})),r.options.onBeforeMoveEnd(O,D,r.nodes[_]);var M=r.nodes[_].data.nodes;F.add(M);var U=M.indexOf(N);M[U]="$$",D.data.nodes.splice(p+R,0,N),r.nodes[N].data.parent=g})),F.forEach((function(S){var R=S.length;Ul(S).reverse().forEach((function(O,N){O==="$$"&&S.splice(R-1-N,1)}))}))},replaceNodes:function(h){this.clearEvents(),r.nodes=h},clearEvents:function(){this.setNodeEvent("selected",null),this.setNodeEvent("hovered",null),this.setNodeEvent("dragged",null),this.setIndicator(null)},reset:function(){this.clearEvents(),this.replaceNodes({})},setOptions:function(h){h(r.options)},setNodeEvent:function(h,g){if(r.events[h].forEach((function(D){r.nodes[D]&&(r.nodes[D].events[h]=!1)})),r.events[h]=new Set,g){var p=Ka(r.nodes,g,{idOnly:!0,existOnly:!0}),b=new Set(p.map((function(D){return D.node.id})));b.forEach((function(D){r.nodes[D].events[h]=!0})),r.events[h]=b}},setCustom:function(h,g){Ka(r.nodes,h,{idOnly:!0,existOnly:!0}).forEach((function(p){return g(r.nodes[p.node.id].data.custom)}))},setDOM:function(h,g){r.nodes[h]&&(r.nodes[h].dom=g)},setIndicator:function(h){h&&(!h.placement.parent.dom||h.placement.currentNode&&!h.placement.currentNode.dom)||(r.indicator=h)},setHidden:function(h,g){r.nodes[h].data.hidden=g},setProp:function(h,g){Ka(r.nodes,h,{idOnly:!0,existOnly:!0}).forEach((function(p){return g(r.nodes[p.node.id].data.props)}))},selectNode:function(h){if(h){var g=Ka(r.nodes,h,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",g.map((function(p){return p.node.id})))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}})(e,t)),{},{setState:function(r){var n=lh(this,tw);r(e,n)}})},ignoreHistoryForActions:["setDOM","setNodeEvent","selectNode","clearEvents","setOptions","setIndicator"],normalizeHistory:e=>{Object.keys(e.events).forEach((t=>{Array.from(e.events[t]||[]).forEach((r=>{e.nodes[r]||e.events[t].delete(r)}))})),Object.keys(e.nodes).forEach((t=>{const r=e.nodes[t];Object.keys(r.events).forEach((n=>{r.events[n]&&e.events[n]&&!e.events[n].has(r.id)&&(r.events[n]=!1)}))}))}},fw=(e,t)=>Ox(dw,{...Ev,options:{...Ev.options,...e}},xv,t),hw=({children:e,...t})=>{t.resolver!==void 0&&st(typeof t.resolver=="object"&&!Array.isArray(t.resolver)&&t.resolver!==null);const r=Al.useRef(t),n=fw(r.current,((a,i,u,h,g)=>{if(!u)return;const{patches:p,...b}=u;for(let D=0;D<p.length;D++){const{path:F}=p[D],S=F.length>2&&F[0]==="nodes"&&F[2]==="data";if([Tt.IGNORE,Tt.THROTTLE].includes(b.type)&&b.params&&(b.type=b.params[0]),["setState","deserialize"].includes(b.type)||S){g((R=>{a.options.normalizeNodes&&a.options.normalizeNodes(R,i,b,h)}));break}}}));return Al.useEffect((()=>{n&&t.enabled!==void 0&&n.query.getOptions().enabled!==t.enabled&&n.actions.setOptions((a=>{a.enabled=t.enabled}))}),[n,t.enabled]),Al.useEffect((()=>{n.subscribe((a=>({json:n.query.serialize()})),(()=>{n.query.getOptions().onNodesChange(n.query)}))}),[n]),n?Al.createElement(dh.Provider,{value:n},Al.createElement(cw,null,e)):null};var Fv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Sv=I.createContext&&I.createContext(Fv),pw=["attr","size","title"];function gw(e,t){if(e==null)return{};var r=mw(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}function kv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kv(Object(r),!0).forEach(function(n){vw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vw(e,t,r){return t=bw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bw(e){var t=yw(e,"string");return typeof t=="symbol"?t:t+""}function yw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tv(e){return e&&e.map((t,r)=>I.createElement(t.tag,nc({key:r},t.attr),Tv(t.child)))}function Xn(e){return t=>I.createElement(xw,rc({attr:nc({},e.attr)},t),Tv(e.child))}function xw(e){var t=r=>{var{attr:n,size:a,title:i}=e,u=gw(e,pw),h=a||r.size||"1em",g;return r.className&&(g=r.className),e.className&&(g=(g?g+" ":"")+e.className),I.createElement("svg",rc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,u,{className:g,style:nc(nc({color:e.color||r.color},r.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),i&&I.createElement("title",null,i),e.children)};return Sv!==void 0?I.createElement(Sv.Consumer,null,r=>t(r)):t(Fv)}function _v(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5Z"},child:[]}]})(e)}function ww(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"},child:[]}]})(e)}function Dw(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 11H4V13H2V11ZM6 11H18V13H6V11ZM20 11H22V13H20V11Z"},child:[]}]})(e)}function Cw(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 6V21H11V6H5V4H19V6H13Z"},child:[]}]})(e)}function Ew(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z"},child:[]}]})(e)}function Fw(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 1L21.5 6.5V17.5L12 23L2.5 17.5V6.5L12 1ZM5.49388 7.0777L12.0001 10.8444L18.5062 7.07774L12 3.311L5.49388 7.0777ZM4.5 8.81329V16.3469L11.0001 20.1101V12.5765L4.5 8.81329ZM13.0001 20.11L19.5 16.3469V8.81337L13.0001 12.5765V20.11Z"},child:[]}]})(e)}const Av=({text:e="Text",style:t,href:r,...n})=>{const{connectors:{connect:a,drag:i},selected:u}=mt(p=>({selected:p.events.selected})),{isEnabled:h}=Hr(p=>({isEnabled:p.options.enabled})),g=()=>({...{fontFamily:"inherit",fontWeight:"500",cursor:u?"pointer":"default",transition:"all 0.2s",padding:"8px 16px",fontSize:"16px",backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px",borderStyle:"none",whiteSpace:"nowrap",display:"inline-flex",textDecoration:"none",lineHeight:"1.5",alignItems:"center",justifyContent:"center"},...t});return m.jsx("a",{ref:p=>{p&&a(i(p))},style:g(),href:h?void 0:r,target:"_blank",...n,children:e})},Sw={props:{text:"Text",target:"_blank",style:{fontFamily:"inherit",fontWeight:"500",cursor:"pointer",transition:"all 0.2s",padding:"8px 16px",fontSize:"16px",backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px",borderStyle:"none",whiteSpace:"nowrap",display:"inline-flex",textDecoration:"none",lineHeight:"1.5",alignItems:"center",justifyContent:"center"}},displayName:"Anchor",custom:{displayName:"Anchor",settings:["anchor","typography","background","border","spacing"]}};function xh(){const{actions:{setProp:e},text:t,href:r}=mt(n=>({text:n.data.props.text,href:n.data.props.href}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Text"}),m.jsx("input",{type:"text",value:t,onChange:n=>e(a=>a.text=n.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Link"}),m.jsx("input",{type:"text",value:r||"",onChange:n=>{e(a=>a.href=n.target.value)},className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}Av.craft={...Sw,related:{settings:xh}};const Nv=({children:e,style:t,...r})=>{const{connectors:{connect:n,drag:a}}=mt(u=>({selected:u.events.selected})),i={...t,overflow:"visible",boxSizing:"border-box",...t?.height==="auto"&&{height:"auto",minHeight:t?.minHeight||"50px"}};return m.jsx("div",{ref:u=>{u&&n(a(u))},style:i,...r,children:e})},kw={displayName:"Box",isCanvas:!0,custom:{resizable:!0,settings:["box","default"]},props:{style:{border:"none",borderRadius:"0px",width:"100%",height:"auto",minHeight:"50px"}}};Nv.craft={...kw};const $i=({options:e,value:t,onChange:r,placeholder:n="Select an option",disabled:a=!1,className:i=""})=>m.jsxs("div",{className:`relative ${i}`,children:[m.jsxs("select",{value:t||"",onChange:u=>r?.(u.target.value),disabled:a,className:`w-full appearance-none rounded-none border border-[#E8E7EE] bg-white px-3 py-2 pr-10 text-sm text-gray-700 transition-all duration-200 hover:border-[#170F4F]/30 hover:bg-gray-50 focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]/20 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-400 ${t?"text-gray-700":"text-gray-500"} `,children:[n&&m.jsx("option",{value:"",disabled:!0,hidden:!0,children:n}),e.map(u=>m.jsx("option",{value:u.value,children:u.label},u.value))]}),m.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:m.jsx(ce.FiChevronDown,{size:16,className:`transition-colors duration-200 ${a?"text-gray-400":"text-gray-500"}`})})]});function Rv(){const{actions:{setProp:e},style:t}=mt(n=>({style:n.data.props.style})),r=t.display==="block"?"block":t.flexDirection;return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Layout direction"}),m.jsx($i,{options:[{value:"row",label:"Row"},{value:"column",label:"Column"},{value:"block",label:"Block"}],value:r,onChange:n=>{e(n==="block"?a=>{a.style.display="block",delete a.style.flexDirection}:a=>{a.style.display="flex",a.style.flexDirection=n})},placeholder:"Choose alignament"})]}),t.display!=="block"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Alignament"}),m.jsx($i,{options:[{value:"flex-start",label:"Flex Start"},{value:"flex-end",label:"Flex End"},{value:"center",label:"Center"},{value:"space-between",label:"Space Between"},{value:"space-around",label:"Space Around"},{value:"space-evenly",label:"Space Evenly"}],value:t.justifyContent,onChange:n=>e(a=>a.style.justifyContent=n),placeholder:"Choose alignament"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Gap"}),m.jsx($i,{options:[{value:"0px",label:"0"},{value:"4px",label:"4"},{value:"8px",label:"8"},{value:"12px",label:"12"},{value:"16px",label:"16"},{value:"24px",label:"24"},{value:"32px",label:"32"},{value:"48px",label:"48"},{value:"64px",label:"64"}],value:t.gap,onChange:n=>e(a=>a.style.gap=n),placeholder:"Choose gap"})]})]})]})}const Ov=({text:e="Button",onClick:t,style:r,...n})=>{const{connectors:{connect:a,drag:i},selected:u}=mt(g=>({selected:g.events.selected})),h=()=>({...{fontFamily:"inherit",fontWeight:"500",cursor:u?"pointer":"default",transition:"all 0.2s",padding:"8px 16px",fontSize:"16px",backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px",borderStyle:"none",whiteSpace:"nowrap"},...r});return m.jsx("button",{ref:g=>{g&&a(i(g))},style:h(),className:`${u?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"} transition-all duration-200`,onClick:t,...n,children:e})},Tw={props:{text:"Button",style:{fontFamily:"inherit",fontWeight:"500",cursor:"pointer",transition:"all 0.2s",padding:"8px 16px",fontSize:"16",backgroundColor:"#3b82f6",color:"#ffffff",borderRadius:"8px",borderStyle:"none",whiteSpace:"nowrap"}},displayName:"Button",custom:{displayName:"Button",settings:["button","typography","background","border","spacing"]}};function wh(){const{actions:{setProp:e},text:t,href:r}=mt(n=>({text:n.data.props.text,href:n.data.props.href}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Button text"}),m.jsx("input",{type:"text",value:t,onChange:n=>e(a=>a.text=n.target.value),className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Link"}),m.jsx("input",{type:"text",value:r||"",onChange:n=>{e(a=>a.onClick=()=>{window.open(n.target.value,"_blank")}),e(a=>a.href=n.target.value)},className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}Ov.craft={...Tw,related:{settings:wh}};function Bv(){const{actions:{setProp:e},color:t,height:r,width:n,margin:a}=mt(i=>({color:i.data.props.color,height:i.data.props.height,width:i.data.props.width,margin:i.data.props.margin}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Color"}),m.jsx("input",{type:"color",value:t,onChange:i=>e(u=>u.color=i.target.value),className:"focus:ring-primary-500 h-10 w-full rounded-md border border-gray-300 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Height"}),m.jsx("input",{type:"text",value:r,onChange:i=>e(u=>u.height=i.target.value),placeholder:"1px",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Width"}),m.jsx("input",{type:"text",value:n,onChange:i=>e(u=>u.width=i.target.value),placeholder:"100%",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Margin"}),m.jsx("input",{type:"text",value:a,onChange:i=>e(u=>u.margin=i.target.value),placeholder:"16px 0",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}const Pv=({color:e="#e5e7eb",height:t="1px",width:r="100%",margin:n="16px 0",...a})=>{const{connectors:{connect:i,drag:u},selected:h}=mt(p=>({selected:p.events.selected})),g={backgroundColor:e,height:t,width:r,margin:n,cursor:h?"pointer":"default"};return m.jsx("hr",{ref:p=>{p&&i(u(p))},style:g,className:`${h?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"} transition-all duration-200`,...a})};Pv.craft={props:{color:"#e5e7eb",height:"1px",width:"100%",margin:"16px 0"},related:{settings:Bv}};const Lv=({src:e="https://picsum.photos/id/1/1200/1200",alt:t="Image",style:r,...n})=>{const{connectors:{connect:a,drag:i},selected:u}=mt(g=>({selected:g.events.selected})),h={...r,cursor:u?"pointer":"default"};return m.jsx("img",{ref:g=>{g&&a(i(g))},src:e,alt:t,style:h,className:`${u?"ring-primary-500 ring-2 ring-opacity-50":"hover:ring-2 hover:ring-gray-300 hover:ring-opacity-50"}`,...n})},_w={props:{src:"https://picsum.photos/id/1/1200/1200",alt:"Image",style:{width:"200px",height:"200px",objectFit:"cover",borderRadius:"0px"}},custom:{resizable:!0,settings:["image","border"]},related:{settings:"ImageSettings"}};function Dh(){const{actions:{setProp:e},src:t,alt:r,style:n}=mt(a=>({src:a.data.props.src,alt:a.data.props.alt,style:a.data.props.style}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Image URL"}),m.jsx("input",{type:"text",value:t,onChange:a=>e(i=>i.src=a.target.value),placeholder:"https://example.com/image.jpg",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Alt Text"}),m.jsx("input",{type:"text",value:r,onChange:a=>e(i=>i.alt=a.target.value),placeholder:"Image description",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Width"}),m.jsx("input",{type:"text",value:n.width,onChange:a=>e(i=>i.style.width=a.target.value),placeholder:"100%",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Height"}),m.jsx("input",{type:"text",value:n.height,onChange:a=>e(i=>i.style.height=a.target.value),placeholder:"auto",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Object Fit"}),m.jsx($i,{options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"},{value:"scale-down",label:"Scale Down"}],value:n.objectFit,onChange:a=>e(i=>i.style.objectFit=a),placeholder:"Choose object fit"})]})]})}Lv.craft={..._w,related:{settings:Dh}};const Aw=new Set(["Delete","Backspace","Escape","Enter","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]);function Nw({tagName:e="div",html:t,innerRef:r,onChange:n,disabled:a=!1,editable:i=!0,onBlur:u,onKeyUp:h,onKeyDown:g,...p}){const b=I.useRef(null),D=I.useRef(t),F=I.useRef(!1),S=I.useRef(t),R=I.useCallback(()=>(r&&typeof r!="function"?r:b).current,[r]),O=I.useCallback((Y,ie)=>Object.assign({},Y,{target:{value:ie}}),[]),N=I.useCallback(Y=>{const ie=R();if(!ie||!n)return;const ee=ie.innerHTML;ee!==D.current&&(S.current=ee,F.current=!0,D.current=ee,n(O(Y,ee)))},[R,n,O]),_=I.useCallback((Y,ie)=>{if(document.activeElement!==Y){ie();return}const ee=window.getSelection();if(!ee||ee.rangeCount===0){ie();return}const ge=ee.getRangeAt(0).startOffset;ie();try{const Ie=document.createRange(),Ae=Y.firstChild||Y,Ge=Math.min(ge,Ae.textContent?.length||0);Ie.setStart(Ae,Ge),Ie.collapse(!0),ee.removeAllRanges(),ee.addRange(Ie)}catch{}},[]);I.useEffect(()=>{const Y=R();Y&&t!==D.current&&!F.current&&_(Y,()=>{Y.innerHTML=t,S.current=t,D.current=t})},[t,R,_]),I.useEffect(()=>{const Y=R();Y&&t!==Y.innerHTML&&(Y.innerHTML=t),S.current=t,D.current=t},[R,t]),I.useEffect(()=>{i||(F.current=!1)},[i]);const M=I.useCallback(Y=>{i&&Aw.has(Y.key)&&Y.stopPropagation(),g?.(Y),i&&N(Y)},[i,g,N]),U=I.useCallback(Y=>{i&&Y.stopPropagation(),h?.(Y),i&&N(Y)},[i,h,N]),H=I.useCallback(Y=>{i&&(Y.stopPropagation(),N(Y))},[i,N]),q=I.useCallback(Y=>{F.current=!1,u?.(Y),i&&N(Y)},[i,u,N]),Q=I.useCallback(Y=>{typeof r=="function"&&r(Y),b.current=Y},[r]);return I.createElement(e,{...p,ref:typeof r=="function"?Q:r||b,contentEditable:!a&&i,suppressContentEditableWarning:!0,onInput:H,onBlur:q,onKeyUp:U,onKeyDown:M,dangerouslySetInnerHTML:{__html:t}})}const Iv=I.memo(Nw,(e,t)=>!(t.editable===!1||e.editable!==t.editable||e.disabled!==t.disabled||e.tagName!==t.tagName||JSON.stringify(e.style)!==JSON.stringify(t.style)));Iv.displayName="ContentEditable";const Rw=[{name:"userName",label:"User Name",value:"John Doe"},{name:"userEmail",label:"User Email",value:"john@example.com"},{name:"companyName",label:"Company Name",value:"Acme Corp"},{name:"currentDate",label:"Current Date",value:new Date().toLocaleDateString()},{name:"currentTime",label:"Current Time",value:new Date().toLocaleTimeString()}],Ow=({ref:e,editableRef:t,position:r,onVariableInsert:n})=>{const{actions:a,style:i={}}=mt(N=>({style:N.data.props.style||{}})),[u,h]=I.useState(!1),[g,p]=I.useState(!1),b=N=>{a.setProp(_=>{_.style={..._.style,...N}})},D=()=>{const _=(i.fontWeight||"normal")==="bold"?"normal":"bold";b({fontWeight:_})},F=()=>{const _=(i.fontStyle||"normal")==="italic"?"normal":"italic";b({fontStyle:_})},S=()=>{const N=i.textDecoration||"none",_=String(N).includes("underline")?"none":"underline";b({textDecoration:_})},R=N=>{b({color:N})},O=N=>{if(t.current){t.current.focus();const _=window.getSelection();if(_&&_.rangeCount>0){const M=_.getRangeAt(0);M.deleteContents();const U=document.createElement("span");U.className="variable-tag",U.style.cssText="background: #e3f2fd; border: 1px solid #90caf9; border-radius: 4px; padding: 2px 6px; margin: 0 2px; color: #1976d2; font-size: 0.9em; cursor: pointer;",U.setAttribute("data-variable",N.name),U.textContent=`{{${N.label}}}`,M.insertNode(U),M.setStartAfter(U),M.collapse(!0),_.removeAllRanges(),_.addRange(M)}}h(!1),n(N.name)};return m.jsx("div",{ref:e,className:"flex flex-wrap gap-2 rounded-lg border border-[#E8E7EE] bg-white p-3 shadow-lg",onMouseDown:N=>N.stopPropagation(),style:{position:"absolute",left:"50%",transform:"translateX(-50%)",zIndex:9999,top:r==="top"?"-70px":void 0,bottom:r==="bottom"?"-70px":void 0},children:m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{className:`flex items-center justify-center border p-2 transition-all duration-200 ${i.fontWeight==="bold"?"border-[#00BAC7] bg-[#CCF1F4] text-[#170F4F]":"border-[#E8E7EE] bg-white text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,title:"Bold",onClick:N=>{N.preventDefault(),N.stopPropagation(),D()},children:m.jsx(ce.FiBold,{size:14})}),m.jsx("button",{className:`flex items-center justify-center border p-2 transition-all duration-200 ${i.fontStyle==="italic"?"border-[#00BAC7] bg-[#CCF1F4] text-[#170F4F]":"border-[#E8E7EE] bg-white text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,title:"Italic",onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),F()},children:m.jsx(ce.FiItalic,{size:14})}),m.jsx("button",{className:`flex items-center justify-center border p-2 transition-all duration-200 ${String(i.textDecoration).includes("underline")?"border-[#00BAC7] bg-[#CCF1F4] text-[#170F4F]":"border-[#E8E7EE] bg-white text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,title:"Underline",onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),S()},children:m.jsx(ce.FiUnderline,{size:14})}),m.jsx("button",{className:"ml-2 flex items-center justify-center border border-[#E8E7EE] bg-white p-2 text-[#170F4F] transition-all duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",title:"Text Color",onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),p(!g)},children:m.jsx(ce.FiEdit3,{size:14})}),g&&m.jsx("input",{type:"color",className:"h-8 w-8 cursor-pointer border border-[#E8E7EE] bg-white hover:border-[#00BAC7]",value:i.color?.toString()||"#000000",onChange:N=>{R(N.target.value),p(!1)}}),m.jsx("button",{className:"flex items-center justify-center border border-[#E8E7EE] bg-white p-2 text-[#170F4F] transition-all duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",title:"Insert Variable",onMouseDown:N=>{N.preventDefault(),N.stopPropagation(),h(!u)},children:m.jsx(ce.FiCode,{size:14})}),u&&m.jsx("div",{className:"absolute left-0 top-full z-10 mt-1 border border-[#E8E7EE] bg-white shadow-lg",children:Rw.map(N=>m.jsx("button",{className:"block w-full border-none px-3 py-2 text-left text-[#170F4F] transition-colors hover:bg-[#CCF1F4]",onMouseDown:_=>{_.preventDefault(),_.stopPropagation(),O(N)},children:N.label},N.name))})]})})},Bw=({isEditing:e=!1,children:t="Double-click to edit text...",style:r={}})=>{const{setProp:n}=mt(),[a,i]=I.useState("top"),u=I.useRef(null),h=I.useRef(null),g=I.useRef(null),p=I.useCallback(O=>{n(N=>{N.children=O})},[n]),b=I.useCallback(O=>{n(N=>(N.isEditing=O,N))},[n]),D=I.useCallback(O=>{O.preventDefault(),O.stopPropagation(),b(!0),h.current&&(h.current.getBoundingClientRect().top<window.innerHeight*.1?i("bottom"):i("top"))},[h]),F=I.useCallback(O=>{const N=O.target.value;N!==t&&p(N)},[t,p]),S=O=>{if(u.current){const N=window.getSelection();if(N&&N.rangeCount>0){const _=N.getRangeAt(0),M=document.createElement("span");M.setAttribute("data-variable",O),M.style.cssText="background: #e8f5e8; border: 1px solid #4caf50; border-radius: 4px; padding: 2px 6px; margin: 0 2px; color: #2e7d32; font-size: 0.9em;",M.textContent=`{{${O}}}`,_.deleteContents(),_.insertNode(M),_.setStartAfter(M),_.collapse(!0),N.removeAllRanges(),N.addRange(_);const U=u.current.innerHTML;p(U)}}};I.useEffect(()=>{const O=N=>{if(!e||!h.current)return;const _=N.target;h.current.contains(_)||g.current&&g.current.contains(_)||b(!1)};return e&&document.addEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O)}},[e,b]);const R={cursor:e?"text":"pointer",userSelect:e?"text":"none",...r};return m.jsxs("div",{ref:h,onDoubleClick:D,style:{position:"relative",width:"100%",height:"100%"},children:[e&&m.jsx(Ow,{ref:g,editableRef:u,position:a,onVariableInsert:S}),m.jsx(Iv,{innerRef:O=>{u.current=O},tagName:"p",html:t,editable:e,onChange:F,style:R})]})},Mv=I.memo(Bw,(e,t)=>!(e.isEditing!==t.isEditing||e.children!==t.children||JSON.stringify(e.style)!==JSON.stringify(t.style))),Pw={displayName:"Text",custom:{resizable:!0,tagHtml:"p",settings:["text","typography","default"]},props:{children:"Double click to edit text 2",isEditing:!1,style:{width:300,height:200,fontSize:16,fontWeight:"normal",color:"#000000",textAlign:"left",minHeight:"50px",padding:"8px",border:"none",outline:"none",overflow:"auto",position:"relative",wordWrap:"break-word",whiteSpace:"pre-wrap"}}};Mv.craft={...Pw};function zv(){const{actions:{setProp:e},variableId:t,fallback:r}=mt(n=>({variableId:n.data.props.variableId,fallback:n.data.props.fallback}));return m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Variable ID"}),m.jsx("input",{type:"text",value:t,onChange:n=>e(a=>a.variableId=n.target.value),placeholder:"ex: nome_usuario",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Default value"}),m.jsx("input",{type:"text",value:r,onChange:n=>e(a=>a.fallback=n.target.value),placeholder:"ex: Usuário",className:"focus:ring-primary-500 w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})]})}const Lw=({data:e,onSelect:t,selectedPath:r})=>!e||typeof e!="object"?null:m.jsx("div",{className:"space-y-2",children:Object.entries(e).map(([n,a])=>m.jsxs("button",{onClick:()=>t(n,a),className:`block w-full rounded px-3 py-2 text-left transition-colors ${r===n?"bg-blue-100 text-blue-800":"bg-gray-50 text-gray-700 hover:bg-gray-100"}`,children:[m.jsxs("span",{className:"font-medium",children:[n,":"]})," ",m.jsx("span",{className:"text-sm",children:JSON.stringify(a)})]},n))}),Iw=({isOpen:e,onClose:t,value:r,onSelect:n})=>{const[a,i]=I.useState(r||""),[u,h]=I.useState(null);return I.useEffect(()=>{const g=localStorage.getItem("bolttech_datasource");if(g)try{const p=JSON.parse(g);p&&typeof p=="object"&&p.data&&h({root:p.data})}catch{}},[e]),e?m.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-40",children:m.jsxs("div",{className:"flex w-full max-w-[40vw] flex-col rounded bg-white shadow-xl",children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-gray-200 p-4",children:[m.jsx("h2",{className:"text-lg font-bold text-[#170f4f]",children:"Selecionar variável do DataSource"}),m.jsx("button",{onClick:t,className:"p-2 text-gray-400 hover:text-gray-600",children:m.jsx(ce.FiX,{size:18})})]}),m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-sm font-medium text-gray-700",children:"Path da variável"}),m.jsx("input",{type:"text",value:a,onChange:g=>i(g.target.value),className:"focus:ring-primary-500 w-full rounded border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2",placeholder:"Ex: root.user.name"})]}),u&&m.jsx("div",{children:m.jsx(Lw,{data:u,onSelect:g=>i(g),selectedPath:a})}),m.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[m.jsx("button",{onClick:t,className:"rounded bg-gray-100 px-4 py-2 text-gray-700 transition-colors duration-200 hover:bg-gray-200",children:"Cancelar"}),m.jsx("button",{onClick:()=>{n(a),t()},className:"rounded bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3]",children:"Salvar"})]})]})]})}):null},Hv=({variableId:e="variable",fallback:t="Default value",...r})=>{const{connectors:{connect:n,drag:a},selected:i,actions:{setProp:u}}=mt(F=>({selected:F.events.selected})),[h,g]=I.useState(!1),p=`{{${e}}}`;let b;try{const F=localStorage.getItem("bolttech_datasource");if(F){const S=JSON.parse(F),R=S&&S.data;R&&e&&(b=e.split(".").reduce((N,_)=>N&&N[_]!==void 0?N[_]:void 0,{root:R}))}}catch{}const D={display:"inline-block",padding:"4px 8px",backgroundColor:"#fef3c7",border:"1px solid #f59e0b",borderRadius:"4px",color:"#92400e",fontFamily:"monospace",fontSize:"14px",cursor:i?"pointer":"default",transition:"all 0.2s"};return m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:F=>{F&&n(a(F))},style:D,className:`${i?"ring-2 ring-yellow-400":"hover:ring-2 hover:ring-yellow-300 hover:ring-opacity-50"} transition-all duration-200`,title:`Variable: ${e}`,onClick:()=>g(!0),...r,children:b!=null?String(b):t||p}),m.jsx(Iw,{isOpen:h,onClose:()=>g(!1),value:e,onSelect:F=>u(S=>S.variableId=F)})]})};Hv.craft={props:{variableId:"variavel",fallback:"Valor padrão"},related:{settings:zv}};const Wl=[{id:"box",label:"Box",icon:m.jsx(Fw,{size:16}),category:"layout",component:Nv,htmlTags:["div"],settings:Rv},{id:"text",label:"Text",icon:m.jsx(Cw,{size:16}),category:"content",component:Mv,htmlTags:["p","span","h1","h2","h3","h4","h5","h6"]},{id:"button",label:"Button",icon:m.jsx(_v,{size:16}),category:"interactive",component:Ov,settings:wh,htmlTags:["button"]},{id:"a",label:"Anchor",icon:m.jsx(_v,{size:16}),category:"interactive",component:Av,settings:xh,htmlTags:["a"]},{id:"image",label:"Image",icon:m.jsx(Ew,{size:16}),category:"media",component:Lv,settings:Dh,htmlTags:["img"]},{id:"divider",label:"Divider",icon:m.jsx(Dw,{size:16}),category:"layout",component:Pv,settings:Bv,htmlTags:["hr"]},{id:"variable",label:"Variable",icon:m.jsx(ww,{size:16}),category:"dynamic",component:Hv,settings:zv,htmlTags:["span"]}];function jv(){const[e,t]=I.useState(!1),[r,n]=I.useState(!1),[a,i]=I.useState(!0);return{showPreview:e,togglePreview:()=>{t(O=>!O)},openPreview:()=>{t(!0)},closePreview:()=>{t(!1)},showCodePanel:r,toggleCodePanel:()=>{n(O=>!O)},openCodePanel:()=>{n(!0)},closeCodePanel:()=>{n(!1)},showSidebar:a,toggleSidebar:()=>{i(O=>!O)},isEditorEnabled:!(e||r),setIsEditorEnabled:O=>{t(!O),n(!O)}}}const Uv={mobile:{width:375,height:667},tablet:{width:768,height:1024},desktop:{width:1200,height:800}},Mw=new Set(["div","span","p","h1","h2","h3","h4","h5","h6","a","img","button","input","textarea","select","option","ul","ol","li","table","tr","td","th","thead","tbody","section","article","header","footer","nav","main","aside"]),zw=new Set(["img","input","br","hr","meta","link","area","base","col","embed","source","track","wbr"]),Hw=new Set(["id","className","title","alt","src","href","target","rel"]),jw=new Set(["width","height","min-width","min-height","max-width","max-height","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","top","right","bottom","left","font-size","line-height","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","letter-spacing","word-spacing","text-indent","text-decoration-thickness"]);class Uw{constructor(t={}){Xa(this,"options");this.options={inlineStyles:!0,prettify:!1,includeComments:!1,customComponentMap:{},styleTransformers:[],...t}}convert(t){try{const r=t.ROOT;if(!r||!r.nodes)return"";const n=this.buildHTMLFromNodes(r.nodes,t);return this.options.prettify?this.prettifyHTML(n):n}catch(r){return console.error("craftJSToHTML - Error during conversion:",r),""}}buildHTMLFromNodes(t,r){return t.map(n=>this.buildHTMLFromNode(n,r)).filter(n=>n.trim()!=="").join("")}buildHTMLFromNode(t,r){const n=r[t];if(!n||n.hidden)return"";const{type:a,props:i={},nodes:u=[]}=n,h=typeof a=="object"&&a&&"resolvedName"in a?a.resolvedName:a,g=this.getTagName(h,n),p=this.buildAttributes(i);let b=this.buildHTMLFromNodes(u,r);return i.children&&typeof i.children=="string"&&(b+=i.children),["button","a"].includes(g)&&i.text&&(b+=i.text),this.isSelfClosingTag(g)?`<${g}${p} />`:`${this.options.includeComments?`<!-- ${h} -->`:""}<${g}${p}>${b}</${g}>`}getTagName(t,r){if(r.custom?.tagName&&typeof r.custom.tagName=="string")return r.custom.tagName.toLowerCase();if(r.custom?.tagHtml&&typeof r.custom.tagHtml=="string")return r.custom.tagHtml.toLowerCase();if(this.options.customComponentMap?.[t])return this.options.customComponentMap[t];const n={image:"img",button:"button",text:"p",divider:"hr",variable:"span",box:"div"};if(n[t])return n[t];const a=t.toLowerCase();return Mw.has(a)?a:"div"}buildAttributes(t){const r=[];for(const n of Hw)if(t[n]){const a=n==="className"?"class":n;r.push(`${a}="${this.escapeHTML(t[n])}"`)}if(t.style&&this.options.inlineStyles){const n=this.convertStyleObjectToCSS(t.style);n&&r.push(`style="${n}"`)}for(const[n,a]of Object.entries(t))n.startsWith("data-")&&typeof a=="string"&&r.push(`${n}="${this.escapeHTML(a)}"`);return r.length>0?` ${r.join(" ")}`:""}convertStyleObjectToCSS(t){if(!t||typeof t!="object")return"";const r=[];for(const[n,a]of Object.entries(t)){if(a==null)continue;const i=this.camelToKebabCase(n);let u=this.applStyleTransformers(n,a);u=this.addUnitIfNeeded(i,u),r.push(`${i}: ${u}`)}return r.join("; ")}camelToKebabCase(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}applStyleTransformers(t,r){const n=this.options.styleTransformers?.find(a=>a.property===t);return n?n.transform(r):String(r)}addUnitIfNeeded(t,r){const n=parseFloat(r);return!isNaN(n)&&jw.has(t)&&!r.includes("px")&&!r.includes("%")&&!r.includes("em")&&!r.includes("rem")&&!r.includes("vh")&&!r.includes("vw")?`${n}px`:r}isSelfClosingTag(t){return zw.has(t.toLowerCase())}escapeHTML(t){const r=document.createElement("div");return r.textContent=t,r.innerHTML}prettifyHTML(t){let r="",n=0;const a=" ";return t.split(/>\s*</).forEach((i,u)=>{u!==0&&(i=`<${i}`),u!==t.split(/>\s*</).length-1&&(i=`${i}>`),i.match(/^<\/\w/)&&n--,r+=`${a.repeat(Math.max(0,n))+i}
|
|
79
|
+
`,i.match(/^<\w[^>]*[^/]$/)&&n++}),r.trim()}}function Wv(e,t){return new Uw(t).convert(e)}const Ch={id:"canvas",className:"relative flex-1 border border-gray-300 bg-white shadow-lg",style:{zIndex:1,minHeight:"100%",overflow:"visible",position:"relative",maxWidth:1200}},Eh=new Set(["p","span","h1","h2","h3","h4","h5","h6","strong","em","small","mark","del","ins","sub","sup"]);class Ww{constructor(t,r={}){Xa(this,"options");Xa(this,"tagLookupMap");Xa(this,"idCounter");this.options={rootCanvasProps:Ch,...r},this.tagLookupMap=this.createTagLookupMap(t),this.idCounter=1}convert(t){if(!t?.trim())return this.createEmptyRoot();try{const r=Ey.parseDocument(t),n={},a=r.children.filter(h=>h.type==="tag"||h.type==="text"),i="ROOT",u=[];for(const h of a){const g=this.traverseNode(h,i,n);g&&u.push(g)}return n[i]=this.createRootNode(u),this.convertToCraftJSFormat(n)}catch(r){return console.error("Error converting HTML to CraftJS:",r),this.createEmptyRoot()}}createTagLookupMap(t){const r=new Map;for(const n of t)for(const a of n.htmlTags)r.set(a.toLowerCase(),n);return r}getNextId(){return`node-${this.idCounter++}`}traverseNode(t,r,n){return t.type==="text"?this.processTextNode(t,r,n):t.type==="tag"?this.processTagNode(t,r,n):null}processTextNode(t,r,n){const a=t.data?.trim();if(!a)return null;if(r&&n[r]&&Eh.has(n[r].tagName?.toLowerCase()))return n[r].props.children=(n[r].props.children||"")+a,null;const i=Array.from(this.tagLookupMap.values()).find(h=>h.htmlTags.some(g=>Eh.has(g)));if(!i)return null;const u=this.getNextId();return n[u]={id:u,type:i.id,props:{children:a},parent:r,isCanvas:!1,displayName:i.id,custom:{},hidden:!1,nodes:[],linkedNodes:{},tagName:"text"},u}processTagNode(t,r,n){const a=t.name?.toLowerCase();if(!a)return null;const i=this.tagLookupMap.get(a)||null;if(!i)return null;const u=this.getNextId(),h=[];let g="";const p=Eh.has(a);if(t.children?.length>0)for(const D of t.children)if(D.type==="text"&&p||["button","a"].includes(a)){const F=D.data?.trim();F&&(g+=F)}else{const F=this.traverseNode(D,u,n);F&&h.push(F)}const b=this.processAttributes(t.attribs||{});return p&&g&&(b.children=g),["button","a"].includes(a)&&g&&(b.text=g),n[u]={id:u,type:i.id,props:b,nodes:h,parent:r,displayName:i.id,isCanvas:i.isCanvas!==!1,custom:{},hidden:!1,linkedNodes:{},tagName:a},u}processAttributes(t){const r={...t};if(r.style&&typeof r.style=="string"){const n=this.parseStyleString(r.style);r.style=n}return r}parseStyleString(t){const r={};return t.split(";").filter(Boolean).forEach(n=>{const[a,i]=n.split(":").map(h=>h?.trim());if(!a||!i)return;const u=a.replace(/-([a-z])/g,h=>h[1].toUpperCase());r[u]=i}),r}createEmptyRoot(){return{ROOT:{type:"div",isCanvas:!0,props:this.options.rootCanvasProps,displayName:"div",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}}createRootNode(t){return{id:"ROOT",type:"div",props:this.options.rootCanvasProps,nodes:t,isCanvas:!0,displayName:"div",custom:{},hidden:!1,linkedNodes:{}}}convertToCraftJSFormat(t){const r={};return Object.entries(t).forEach(([n,a])=>{n==="ROOT"?r[n]={type:a.type,isCanvas:a.isCanvas,props:a.props||{},displayName:a.displayName||a.type,custom:a.custom||{},hidden:a.hidden||!1,nodes:a.nodes||[],linkedNodes:a.linkedNodes||{}}:r[n]={type:{resolvedName:a.type},isCanvas:a.isCanvas,props:a.props||{},displayName:a.displayName||a.type,custom:a.custom||{},hidden:a.hidden||!1,nodes:a.nodes||[],linkedNodes:a.linkedNodes||{},parent:a.parent||"ROOT"}}),r}}function Gw(e,t,r){return new Ww(t,r).convert(e)}function Fh(){const{query:e,actions:t}=Hr();return{import:(a,i={})=>{const{replace:u=!0,...h}=i,g=Gw(a,Wl,h);if(u)t.deserialize(g);else{const p=e.serialize();if(typeof p=="string"){t.deserialize(g);return}const b=p,D=b.ROOT;if(!D){t.deserialize(g);return}const{ROOT:F,...S}=g,R=Object.keys(S);Object.assign(b,S),D.nodes=[...D.nodes||[],...R],R.forEach(O=>{b[O]&&(b[O].parent="ROOT")}),t.deserialize(b)}},export:(a={})=>{const i=e.serialize();if(typeof i=="string")try{const h=JSON.parse(i);return Wv(h,a)}catch(h){return console.error("Error parsing JSON:",h),""}return Wv(i,a)}}}function ac(){const{setIsEditorEnabled:e}=jv(),{query:t,actions:r}=Hr(),{export:n,import:a}=Fh(),{nodes:i}=Hr(D=>({nodes:D.nodes})),u=I.useMemo(()=>Object.keys(i).length>1,[i]),[h,g]=I.useState("desktop");return I.useEffect(()=>{const D=t.node("ROOT").get();D&&r.setProp(D.id,F=>{F.style={...F.style||{},maxWidth:Uv[h].width||"100%"}})},[h]),{device:h,isEmpty:u,setDevice:g,getHtml:()=>{e(!1);try{return n({inlineStyles:!0,prettify:!1,includeComments:!1})||""}catch(D){return console.warn("Error exporting HTML:",D),""}finally{e(!0)}},loadTemplate:D=>{try{a(D,{replace:!0})}catch(F){console.error("Error loading template into canvas:",F)}}}}var Sh={exports:{}},Gv;function Vw(){return Gv||(Gv=1,(function(e,t){(function(r){function n(){var a=r();return a.default||a}e.exports=n()})(function(){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,u=o=>{throw TypeError(o)},h=(o,d,y)=>d in o?r(o,d,{enumerable:!0,configurable:!0,writable:!0,value:y}):o[d]=y,g=(o,d)=>{for(var y in d)r(o,y,{get:d[y],enumerable:!0})},p=(o,d,y,w)=>{if(d&&typeof d=="object"||typeof d=="function")for(let A of a(d))!i.call(o,A)&&A!==y&&r(o,A,{get:()=>d[A],enumerable:!(w=n(d,A))||w.enumerable});return o},b=o=>p(r({},"__esModule",{value:!0}),o),D=(o,d,y)=>h(o,typeof d!="symbol"?d+"":d,y),F=(o,d,y)=>d.has(o)||u("Cannot "+y),S=(o,d,y)=>(F(o,d,"read from private field"),y?y.call(o):d.get(o)),R=(o,d,y)=>d.has(o)?u("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(o):d.set(o,y),O=(o,d,y,w)=>(F(o,d,"write to private field"),d.set(o,y),y),N={};g(N,{languages:()=>Ii,options:()=>_o,parsers:()=>Fr,printers:()=>kl});var _=(o,d,y,w)=>{if(!(o&&d==null))return d.replaceAll?d.replaceAll(y,w):y.global?d.replace(y,w):d.split(y).join(w)},M=_,U="string",H="array",q="cursor",Q="indent",Y="align",ie="trim",ee="group",ve="fill",ge="if-break",Ie="indent-if-break",Ae="line-suffix",Ge="line-suffix-boundary",Ue="line",te="label",fe="break-parent",Ea=new Set([q,Q,Y,ie,ee,ve,ge,Ie,Ae,Ge,Ue,te,fe]),so=(o,d,y)=>{if(!(o&&d==null))return Array.isArray(d)||typeof d=="string"?d[y<0?d.length+y:y]:d.at(y)},le=so;function ne(o){if(typeof o=="string")return U;if(Array.isArray(o))return H;if(!o)return;let{type:d}=o;if(Ea.has(d))return d}var _n=ne,qt=o=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(o);function rt(o){let d=o===null?"null":typeof o;if(d!=="string"&&d!=="object")return`Unexpected doc '${d}',
|
|
80
|
+
Expected it to be 'string' or 'object'.`;if(_n(o))throw new Error("doc is valid.");let y=Object.prototype.toString.call(o);if(y!=="[object Object]")return`Unexpected doc '${y}'.`;let w=qt([...Ea].map(A=>`'${A}'`));return`Unexpected doc.type '${o.type}'.
|
|
81
|
+
Expected it to be ${w}.`}var on=class extends Error{constructor(d){super(rt(d));Xa(this,"name","InvalidDocError");this.doc=d}},fr=on;function lo(o,d){if(typeof o=="string")return d(o);let y=new Map;return w(o);function w(L){if(y.has(L))return y.get(L);let G=A(L);return y.set(L,G),G}function A(L){switch(_n(L)){case H:return d(L.map(w));case ve:return d({...L,parts:L.parts.map(w)});case ge:return d({...L,breakContents:w(L.breakContents),flatContents:w(L.flatContents)});case ee:{let{expandedStates:G,contents:Z}=L;return G?(G=G.map(w),Z=G[0]):Z=w(Z),d({...L,contents:Z,expandedStates:G})}case Y:case Q:case Ie:case te:case Ae:return d({...L,contents:w(L.contents)});case U:case q:case ie:case Ge:case Ue:case fe:return d(L);default:throw new fr(L)}}}function rr(o,d=nr){return lo(o,y=>typeof y=="string"?ka(d,y.split(`
|
|
82
|
+
`)):y)}function Vr(o){return{type:Q,contents:o}}function Fa(o,d){return{type:Y,contents:d,n:o}}function We(o,d={}){return{type:ee,id:d.id,contents:o,break:!!d.shouldBreak,expandedStates:d.expandedStates}}function Oe(o){return Fa(Number.NEGATIVE_INFINITY,o)}function qs(o){return Fa({type:"root"},o)}function Zo(o){return{type:ve,parts:o}}function Sa(o,d="",y={}){return{type:ge,breakContents:o,flatContents:d,groupId:y.groupId}}function vt(o,d){return{type:Ie,contents:o,groupId:d.groupId,negate:d.negate}}var Ar={type:fe},uo={type:Ue,hard:!0},Ks={type:Ue,hard:!0,literal:!0},Ye={type:Ue},Xe={type:Ue,soft:!0},De=[uo,Ar],nr=[Ks,Ar];function ka(o,d){let y=[];for(let w=0;w<d.length;w++)w!==0&&y.push(o),y.push(d[w]);return y}var si="'",_t='"';function qo(o,d){let y=d===!0||d===si?si:_t,w=y===si?_t:si,A=0,L=0;for(let G of o)G===y?A++:G===w&&L++;return A>L?w:y}var Ko=qo;function Kn(o){if(typeof o!="string")throw new TypeError("Expected a string");return o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ar,Ta=class{constructor(o){R(this,ar),O(this,ar,new Set(o))}getLeadingWhitespaceCount(o){let d=S(this,ar),y=0;for(let w=0;w<o.length&&d.has(o.charAt(w));w++)y++;return y}getTrailingWhitespaceCount(o){let d=S(this,ar),y=0;for(let w=o.length-1;w>=0&&d.has(o.charAt(w));w--)y++;return y}getLeadingWhitespace(o){let d=this.getLeadingWhitespaceCount(o);return o.slice(0,d)}getTrailingWhitespace(o){let d=this.getTrailingWhitespaceCount(o);return o.slice(o.length-d)}hasLeadingWhitespace(o){return S(this,ar).has(o.charAt(0))}hasTrailingWhitespace(o){return S(this,ar).has(le(!1,o,-1))}trimStart(o){let d=this.getLeadingWhitespaceCount(o);return o.slice(d)}trimEnd(o){let d=this.getTrailingWhitespaceCount(o);return o.slice(0,o.length-d)}trim(o){return this.trimEnd(this.trimStart(o))}split(o,d=!1){let y=`[${Kn([...S(this,ar)].join(""))}]+`,w=new RegExp(d?`(${y})`:y,"u");return o.split(w)}hasWhitespaceCharacter(o){let d=S(this,ar);return Array.prototype.some.call(o,y=>d.has(y))}hasNonWhitespaceCharacter(o){let d=S(this,ar);return Array.prototype.some.call(o,y=>!d.has(y))}isWhitespaceOnly(o){let d=S(this,ar);return Array.prototype.every.call(o,y=>d.has(y))}};ar=new WeakMap;var Qo=Ta,co=[" ",`
|
|
83
|
+
`,"\f","\r"," "],Qs=new Qo(co),Nr=Qs,at=class extends Error{constructor(d,y,w="type"){super(`Unexpected ${y} node ${w}: ${JSON.stringify(d[w])}.`);Xa(this,"name","UnexpectedNodeError");this.node=d}},ir=at;function $o(o){return o?.type==="front-matter"}var Rr=$o,Yr=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),es=new Set(["if","else if","for","switch","case"]);function fo(o,d){var y;if(o.type==="text"||o.type==="comment"||Rr(o)||o.type==="yaml"||o.type==="toml")return null;if(o.type==="attribute"&&delete d.value,o.type==="docType"&&delete d.value,o.type==="angularControlFlowBlock"&&(y=o.parameters)!=null&&y.children)for(let w of d.parameters.children)es.has(o.name)?delete w.expression:w.expression=w.expression.trim();o.type==="angularIcuExpression"&&(d.switchValue=o.switchValue.trim()),o.type==="angularLetDeclarationInitializer"&&delete d.value}fo.ignoredProperties=Yr;var $s=fo;async function el(o,d){if(o.language==="yaml"){let y=o.value.trim(),w=y?await d(y,{parser:"yaml"}):"";return qs([o.startDelimiter,o.explicitLanguage,De,w,w?De:"",o.endDelimiter])}}var ou=el;function li(o,d=!0){return[Vr([Xe,o]),d?Xe:""]}function bt(o,d){let y=o.type==="NGRoot"?o.node.type==="NGMicrosyntax"&&o.node.body.length===1&&o.node.body[0].type==="NGMicrosyntaxExpression"?o.node.body[0].expression:o.node:o.type==="JsExpressionRoot"?o.node:o;return y&&(y.type==="ObjectExpression"||y.type==="ArrayExpression"||(d.parser==="__vue_expression"||d.parser==="__vue_ts_expression")&&(y.type==="TemplateLiteral"||y.type==="StringLiteral"))}async function lt(o,d,y,w){y={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...y};let A=!0;w&&(y.__onHtmlBindingRoot=(G,Z)=>{A=w(G,Z)});let L=await d(o,y,d);return A?We(L):li(L)}function Bt(o,d,y,w){let{node:A}=y,L=w.originalText.slice(A.sourceSpan.start.offset,A.sourceSpan.end.offset);return/^\s*$/u.test(L)?"":lt(L,o,{parser:"__ng_directive",__isInHtmlAttribute:!1},bt)}var _a=Bt,ui=(o,d)=>{if(!(o&&d==null))return d.toReversed||!Array.isArray(d)?d.toReversed():[...d].reverse()},Ut=ui;function tl(o){return Array.isArray(o)&&o.length>0}var ci=tl,or,Jr,ts,rs,Ve,Wt=((or=globalThis.Deno)==null?void 0:or.build.os)==="windows"||((ts=(Jr=globalThis.navigator)==null?void 0:Jr.platform)==null?void 0:ts.startsWith("Win"))||((Ve=(rs=globalThis.process)==null?void 0:rs.platform)==null?void 0:Ve.startsWith("win"))||!1;function Aa(o){if(o=o instanceof URL?o:new URL(o),o.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${o.protocol}"`);return o}function hr(o){return o=Aa(o),decodeURIComponent(o.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function rl(o){o=Aa(o);let d=decodeURIComponent(o.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return o.hostname!==""&&(d=`\\\\${o.hostname}${d}`),d}function ns(o){return Wt?rl(o):hr(o)}var su=ns,nl=o=>String(o).split(/[/\\]/u).pop();function al(o,d){if(!d)return;let y=nl(d).toLowerCase();return o.find(({filenames:w})=>w?.some(A=>A.toLowerCase()===y))??o.find(({extensions:w})=>w?.some(A=>y.endsWith(A)))}function lu(o,d){if(d)return o.find(({name:y})=>y.toLowerCase()===d)??o.find(({aliases:y})=>y?.includes(d))??o.find(({extensions:y})=>y?.includes(`.${d}`))}function Pt(o,d){if(d){if(String(d).startsWith("file:"))try{d=su(d)}catch{return}if(typeof d=="string")return o.find(({isSupported:y})=>y?.({filepath:d}))}}function il(o,d){let y=Ut(!1,o.plugins).flatMap(A=>A.languages??[]),w=lu(y,d.language)??al(y,d.physicalFile)??al(y,d.file)??Pt(y,d.physicalFile)??Pt(y,d.file)??void 0;return w?.parsers[0]}var sn=il,ln="inline",di={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Na="normal",Ra={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Oa(o){return o.type==="element"&&!o.hasExplicitNamespace&&!["html","svg"].includes(o.namespace)}var An=Oa,ol=o=>M(!1,o,/^[\t\f\r ]*\n/gu,""),as=o=>ol(Nr.trimEnd(o)),yt=o=>{let d=o,y=Nr.getLeadingWhitespace(d);y&&(d=d.slice(y.length));let w=Nr.getTrailingWhitespace(d);return w&&(d=d.slice(0,-w.length)),{leadingWhitespace:y,trailingWhitespace:w,text:d}};function ho(o,d){return!!(o.type==="ieConditionalComment"&&o.lastChild&&!o.lastChild.isSelfClosing&&!o.lastChild.endSourceSpan||o.type==="ieConditionalComment"&&!o.complete||un(o)&&o.children.some(y=>y.type!=="text"&&y.type!=="interpolation")||Bn(o,d)&&!Or(o,d)&&o.type!=="interpolation")}function po(o){return o.type==="attribute"||!o.parent||!o.prev?!1:sl(o.prev)}function sl(o){return o.type==="comment"&&o.value.trim()==="prettier-ignore"}function pt(o){return o.type==="text"||o.type==="comment"}function Or(o,d){return o.type==="element"&&(o.fullName==="script"||o.fullName==="style"||o.fullName==="svg:style"||o.fullName==="svg:script"||o.fullName==="mj-style"&&d.parser==="mjml"||An(o)&&(o.name==="script"||o.name==="style"))}function Nn(o,d){return o.children&&!Or(o,d)}function go(o,d){return Or(o,d)||o.type==="interpolation"||is(o)}function is(o){return Ba(o).startsWith("pre")}function ll(o,d){var y,w;let A=L();if(A&&!o.prev&&(w=(y=o.parent)==null?void 0:y.tagDefinition)!=null&&w.ignoreFirstLf)return o.type==="interpolation";return A;function L(){return Rr(o)||o.type==="angularControlFlowBlock"?!1:(o.type==="text"||o.type==="interpolation")&&o.prev&&(o.prev.type==="text"||o.prev.type==="interpolation")?!0:!o.parent||o.parent.cssDisplay==="none"?!1:un(o.parent)?!0:!(!o.prev&&(o.parent.type==="root"||un(o)&&o.parent||Or(o.parent,d)||bi(o.parent,d)||!ss(o.parent.cssDisplay))||o.prev&&!$e(o.prev.cssDisplay))}}function ul(o,d){return Rr(o)||o.type==="angularControlFlowBlock"?!1:(o.type==="text"||o.type==="interpolation")&&o.next&&(o.next.type==="text"||o.next.type==="interpolation")?!0:!o.parent||o.parent.cssDisplay==="none"?!1:un(o.parent)?!0:!(!o.next&&(o.parent.type==="root"||un(o)&&o.parent||Or(o.parent,d)||bi(o.parent,d)||!ls(o.parent.cssDisplay))||o.next&&!bo(o.next.cssDisplay))}function cl(o,d){return gi(o.cssDisplay)&&!Or(o,d)}function Br(o){return Rr(o)||o.next&&o.sourceSpan.end&&o.sourceSpan.end.line+1<o.next.sourceSpan.start.line}function fi(o){return dl(o)||o.type==="element"&&o.children.length>0&&(["body","script","style"].includes(o.name)||o.children.some(d=>uu(d)))||o.firstChild&&o.firstChild===o.lastChild&&o.firstChild.type!=="text"&&os(o.firstChild)&&(!o.lastChild.isTrailingSpaceSensitive||hl(o.lastChild))}function dl(o){return o.type==="element"&&o.children.length>0&&(["html","head","ul","ol","select"].includes(o.name)||o.cssDisplay.startsWith("table")&&o.cssDisplay!=="table-cell")}function hi(o){return Rn(o)||o.prev&&mo(o.prev)||fl(o)}function mo(o){return Rn(o)||o.type==="element"&&o.fullName==="br"||fl(o)}function fl(o){return os(o)&&hl(o)}function os(o){return o.hasLeadingSpaces&&(o.prev?o.prev.sourceSpan.end.line<o.sourceSpan.start.line:o.parent.type==="root"||o.parent.startSourceSpan.end.line<o.sourceSpan.start.line)}function hl(o){return o.hasTrailingSpaces&&(o.next?o.next.sourceSpan.start.line>o.sourceSpan.end.line:o.parent.type==="root"||o.parent.endSourceSpan&&o.parent.endSourceSpan.start.line>o.sourceSpan.end.line)}function Rn(o){switch(o.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(o.name)}return!1}function Qn(o){return o.lastChild?Qn(o.lastChild):o}function uu(o){var d;return(d=o.children)==null?void 0:d.some(y=>y.type!=="text")}function pi(o){if(o)switch(o){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(o.endsWith("json")||o.endsWith("importmap")||o==="speculationrules")return"json"}}function vo(o,d){let{name:y,attrMap:w}=o;if(y!=="script"||Object.prototype.hasOwnProperty.call(w,"src"))return;let{type:A,lang:L}=o.attrMap;return!L&&!A?"babel":sn(d,{language:L})??pi(A)}function cu(o,d){if(!Bn(o,d))return;let{attrMap:y}=o;if(Object.prototype.hasOwnProperty.call(y,"src"))return;let{type:w,lang:A}=y;return sn(d,{language:A})??pi(w)}function du(o,d){if(o.name==="style"){let{lang:y}=o.attrMap;return y?sn(d,{language:y}):"css"}if(o.name==="mj-style"&&d.parser==="mjml")return"css"}function Xr(o,d){return vo(o,d)??du(o,d)??cu(o,d)}function $n(o){return o==="block"||o==="list-item"||o.startsWith("table")}function ss(o){return!$n(o)&&o!=="inline-block"}function ls(o){return!$n(o)&&o!=="inline-block"}function bo(o){return!$n(o)}function $e(o){return!$n(o)}function gi(o){return!$n(o)&&o!=="inline-block"}function un(o){return Ba(o).startsWith("pre")}function mi(o,d){let y=o;for(;y;){if(d(y))return!0;y=y.parent}return!1}function vi(o,d){var y;if(On(o,d))return"block";if(((y=o.prev)==null?void 0:y.type)==="comment"){let A=o.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(A)return A[1]}let w=!1;if(o.type==="element"&&o.namespace==="svg")if(mi(o,A=>A.fullName==="svg:foreignObject"))w=!0;else return o.name==="svg"?"inline-block":"block";switch(d.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(o.type==="element"&&(!o.namespace||w||An(o))&&Object.prototype.hasOwnProperty.call(di,o.name))return di[o.name]}return ln}function Ba(o){return o.type==="element"&&(!o.namespace||An(o))&&Object.prototype.hasOwnProperty.call(Ra,o.name)?Ra[o.name]:Na}function yo(o){let d=Number.POSITIVE_INFINITY;for(let y of o.split(`
|
|
84
|
+
`)){if(y.length===0)continue;let w=Nr.getLeadingWhitespaceCount(y);if(w===0)return 0;y.length!==w&&w<d&&(d=w)}return d===Number.POSITIVE_INFINITY?0:d}function ea(o,d=yo(o)){return d===0?o:o.split(`
|
|
191
85
|
`).map(y=>y.slice(d)).join(`
|
|
192
|
-
`)}function
|
|
193
|
-
`||l==="\f"||l==="\r"||l===" "}var wo=/^[ \t\n\r\u000c]+/,pc=/^[, \t\n\r\u000c]+/,Qi=/^[^ \t\n\r\u000c]+/,$i=/[,]+$/,Za=/^\d+$/,xo=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function es(l){let d=l.length,y,x,_,I,Y,q=0,ae;function we(He){let Ne,It=He.exec(l.substring(q));if(It)return[Ne]=It,q+=Ne.length,Ne}let ce=[];for(;;){if(we(pc),q>=d){if(ce.length===0)throw new Error("Must contain one or more image candidate strings.");return ce}ae=q,y=we(Qi),x=[],y.slice(-1)===","?(y=y.replace($i,""),We()):Xe()}function Xe(){for(we(wo),_="",I="in descriptor";;){if(Y=l.charAt(q),I==="in descriptor")if(ol(Y))_&&(x.push(_),_="",I="after descriptor");else if(Y===","){q+=1,_&&x.push(_),We();return}else if(Y==="(")_+=Y,I="in parens";else if(Y===""){_&&x.push(_),We();return}else _+=Y;else if(I==="in parens")if(Y===")")_+=Y,I="in descriptor";else if(Y===""){x.push(_),We();return}else _+=Y;else if(I==="after descriptor"&&!ol(Y))if(Y===""){We();return}else I="in descriptor",q-=1;q+=1}}function We(){let He=!1,Ne,It,Ft,tr,Se={},Je,_t,St,o,u;for(tr=0;tr<x.length;tr++)Je=x[tr],_t=Je[Je.length-1],St=Je.substring(0,Je.length-1),o=parseInt(St,10),u=parseFloat(St),Za.test(St)&&_t==="w"?((Ne||It)&&(He=!0),o===0?He=!0:Ne=o):xo.test(St)&&_t==="x"?((Ne||It||Ft)&&(He=!0),u<0?He=!0:It=u):Za.test(St)&&_t==="h"?((Ft||It)&&(He=!0),o===0?He=!0:Ft=o):He=!0;if(!He)Se.source={value:y,startOffset:ae},Ne&&(Se.width={value:Ne}),It&&(Se.density={value:It}),Ft&&(Se.height={value:Ft}),ce.push(Se);else throw new Error(`Invalid srcset descriptor found in "${l}" at "${Je}".`)}}var ts=es;function Do(l){if(l.node.fullName==="srcset"&&(l.parent.fullName==="img"||l.parent.fullName==="source"))return()=>rs(tn(l.node))}var gc={width:"w",height:"h",density:"x"},il=Object.keys(gc);function rs(l){let d=ts(l),y=il.filter(ce=>d.some(Xe=>Object.prototype.hasOwnProperty.call(Xe,ce)));if(y.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[x]=y,_=gc[x],I=d.map(ce=>ce.source.value),Y=Math.max(...I.map(ce=>ce.length)),q=d.map(ce=>ce[x]?String(ce[x].value):""),ae=q.map(ce=>{let Xe=ce.indexOf(".");return Xe===-1?ce.length:Xe}),we=Math.max(...ae);return Wn(qr([",",gt],I.map((ce,Xe)=>{let We=[ce],He=q[Xe];if(He){let Ne=Y-ce.length+1,It=we-ae[Xe],Ft=" ".repeat(Ne+It);We.push(Ct(Ft," "),He+_)}return We})))}var sl=Do;function ns(l,d){let{node:y}=l,x=tn(l.node).trim();if(y.fullName==="style"&&!d.parentParser&&!x.includes("{{"))return async _=>Wn(await _(x,{parser:"css",__isHTMLStyleAttribute:!0}))}var Co=new WeakMap;function Yn(l,d){let{root:y}=l;return Co.has(y)||Co.set(y,y.children.some(x=>rl(x,d)&&["ts","typescript"].includes(x.attrMap.lang))),Co.get(y)}var xa=Yn;function mc(l,d,y){let{node:x}=y,_=tn(x);return un(`type T<${_}> = any`,l,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ua)}function ll(l,d,{parseWithTs:y}){return un(`function _(${l}) {}`,d,{parser:y?"babel-ts":"babel",__isVueBindings:!0})}async function At(l,d,y,x){let _=tn(y.node),{left:I,operator:Y,right:q}=st(_),ae=xa(y,x);return[Ce(await un(`function _(${I}) {}`,l,{parser:ae?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",Y," ",await un(q,l,{parser:ae?"__ts_expression":"__js_expression"})]}function st(l){let d=/(.*?)\s+(in|of)\s+(.*)/su,y=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,x=/^\(|\)$/gu,_=l.match(d);if(!_)return;let I={};if(I.for=_[3].trim(),!I.for)return;let Y=z(!1,_[1].trim(),x,""),q=Y.match(y);q?(I.alias=Y.replace(y,""),I.iterator1=q[1].trim(),q[2]&&(I.iterator2=q[2].trim())):I.alias=Y;let ae=[I.alias,I.iterator1,I.iterator2];if(!ae.some((we,ce)=>!we&&(ce===0||ae.slice(ce+1).some(Boolean))))return{left:ae.filter(Boolean).join(","),operator:_[2],right:I.for}}function kd(l,d){if(d.parser!=="vue")return;let{node:y}=l,x=y.fullName;if(x==="v-for")return At;if(x==="generic"&&rl(y.parent,d))return mc;let _=tn(y),I=xa(l,d);if(ui(y)||tl(y,d))return Y=>ll(_,Y,{parseWithTs:I});if(x.startsWith("@")||x.startsWith("v-on:"))return Y=>su(_,Y,{parseWithTs:I});if(x.startsWith(":")||x.startsWith(".")||x.startsWith("v-bind:"))return Y=>Ja(_,Y,{parseWithTs:I});if(x.startsWith("v-"))return Y=>lu(_,Y,{parseWithTs:I})}async function su(l,d,{parseWithTs:y}){var x;try{return await lu(l,d,{parseWithTs:y})}catch(_){if(((x=_.cause)==null?void 0:x.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw _}return un(l,d,{parser:y?"__vue_ts_event_binding":"__vue_event_binding"},ua)}function Ja(l,d,{parseWithTs:y}){return un(l,d,{parser:y?"__vue_ts_expression":"__vue_expression"},ua)}function lu(l,d,{parseWithTs:y}){return un(l,d,{parser:y?"__ts_expression":"__js_expression"},ua)}var vc=kd;function uu(l,d){let{node:y}=l;if(y.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(d.originalText.slice(y.valueSpan.start.offset,y.valueSpan.end.offset))||d.parser==="lwc"&&y.value.startsWith("{")&&y.value.endsWith("}"))return[y.rawName,"=",y.value];for(let x of[sl,ns,Xa,vc,yo]){let _=x(l,d);if(_)return cu(_)}}}function cu(l){return async(d,y,x,_)=>{let I=await l(d,y,x,_);if(I)return I=ze(I,Y=>typeof Y=="string"?z(!1,Y,'"',"""):Y),[x.node.rawName,'="',Ce(I),'"']}}var Eo=uu,Td=new Proxy(()=>{},{get:()=>Td});function di(l){return l.sourceSpan.start.offset}function lr(l){return l.sourceSpan.end.offset}function mr(l,d){return[l.isSelfClosing?"":Mr(l,d),mt(l,d)]}function Mr(l,d){return l.lastChild&&Tn(l.lastChild)?"":[lt(l,d),ul(l,d)]}function mt(l,d){return(l.next?So(l.next):hi(l.parent))?"":[fi(l,d),Fo(l,d)]}function lt(l,d){return hi(l)?fi(l.lastChild,d):""}function Fo(l,d){return Tn(l)?ul(l.parent,d):An(l)?fu(l.next,d):""}function ul(l,d){if(bc(l,d))return"";switch(l.type){case"ieConditionalComment":return"<!";case"element":if(l.hasHtmComponentClosingTag)return"<//";default:return`</${l.rawName}`}}function fi(l,d){if(bc(l,d))return"";switch(l.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(l.isSelfClosing)return"/>";default:return">"}}function bc(l,d){return!l.isSelfClosing&&!l.endSourceSpan&&(ri(l)||Js(l.parent,d))}function So(l){return l.prev&&l.prev.type!=="docType"&&l.type!=="angularControlFlowBlock"&&!Qt(l.prev)&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces}function hi(l){var d;return((d=l.lastChild)==null?void 0:d.isTrailingSpaceSensitive)&&!l.lastChild.hasTrailingSpaces&&!Qt(go(l.lastChild))&&!Gn(l)}function Tn(l){return!l.next&&!l.hasTrailingSpaces&&l.isTrailingSpaceSensitive&&Qt(go(l))}function An(l){return l.next&&!Qt(l.next)&&Qt(l)&&l.isTrailingSpaceSensitive&&!l.hasTrailingSpaces}function yc(l){let d=l.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return d?d[1]?d[1].split(/\s+/u):!0:!1}function as(l){return!l.prev&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces}function wc(l,d,y){var x;let{node:_}=l;if(!za(_.attrs))return _.isSelfClosing?" ":"";let I=((x=_.prev)==null?void 0:x.type)==="comment"&&yc(_.prev.value),Y=typeof I=="boolean"?()=>I:Array.isArray(I)?Xe=>I.includes(Xe.rawName):()=>!1,q=l.map(({node:Xe})=>Y(Xe)?Ee(d.originalText.slice(di(Xe),lr(Xe))):y(),"attrs"),ae=_.type==="element"&&_.fullName==="script"&&_.attrs.length===1&&_.attrs[0].fullName==="src"&&_.children.length===0,we=d.singleAttributePerLine&&_.attrs.length>1&&!cn(_,d)?Ye:gt,ce=[Be([ae?" ":gt,qr(we,q)])];return _.firstChild&&as(_.firstChild)||_.isSelfClosing&&hi(_.parent)||ae?ce.push(_.isSelfClosing?" ":""):ce.push(d.bracketSameLine?_.isSelfClosing?" ":"":_.isSelfClosing?gt:yt),ce}function xc(l){return l.firstChild&&as(l.firstChild)?"":_n(l)}function Tr(l,d,y){let{node:x}=l;return[os(x,d),wc(l,d,y),x.isSelfClosing?"":xc(x)]}function os(l,d){return l.prev&&An(l.prev)?"":[Gt(l,d),fu(l,d)]}function Gt(l,d){return as(l)?_n(l.parent):So(l)?fi(l.prev,d):""}var du="<!doctype";function fu(l,d){switch(l.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${l.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(l.value==="html"){let{filepath:x}=d;if(x&&/\.html?$/u.test(x))return du}let y=di(l);return d.originalText.slice(y,y+du.length)}case"angularIcuExpression":return"{";case"element":if(l.condition)return`<!--[if ${l.condition}]><!--><${l.rawName}`;default:return`<${l.rawName}`}}function _n(l){switch(l.type){case"ieConditionalComment":return"]>";case"element":if(l.condition)return"><!--<![endif]-->";default:return">"}}function ko(l,d){if(!l.endSourceSpan)return"";let y=l.startSourceSpan.end.offset;l.firstChild&&as(l.firstChild)&&(y-=_n(l).length);let x=l.endSourceSpan.start.offset;return l.lastChild&&Tn(l.lastChild)?x+=ul(l,d).length:hi(l)&&(x-=fi(l.lastChild,d).length),d.originalText.slice(y,x)}var hu=ko,is=new Set(["if","else if","for","switch","case"]);function To(l,d){let{node:y}=l;switch(y.type){case"element":if(pa(y,d)||y.type==="interpolation")return;if(!y.isSelfClosing&&Va(y,d)){let x=Ya(y,d);return x?async(_,I)=>{let Y=hu(y,d),q=/^\s*$/u.test(Y),ae="";return q||(ae=await _(ha(Y),{parser:x,__embeddedInHtml:!0}),q=ae===""),[Gt(y,d),Ce(Tr(l,d,I)),q?"":Ye,ae,q?"":Ye,mr(y,d),Fo(y,d)]}:void 0}break;case"text":if(pa(y.parent,d)){let x=Ya(y.parent,d);if(x)return async _=>{let I=x==="markdown"?en(y.value.replace(/^[^\S\n]*\n/u,"")):y.value,Y={parser:x,__embeddedInHtml:!0};if(d.parser==="html"&&x==="babel"){let q="script",{attrMap:ae}=y.parent;ae&&(ae.type==="module"||(ae.type==="text/babel"||ae.type==="text/jsx")&&ae["data-type"]==="module")&&(q="module"),Y.__babelSourceType=q}return[Fn,Gt(y,d),await _(I,Y),Fo(y,d)]}}else if(y.parent.type==="interpolation")return async x=>{let _={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return d.parser==="angular"?_.parser="__ng_interpolation":d.parser==="vue"?_.parser=xa(l,d)?"__vue_ts_expression":"__vue_expression":_.parser="__js_expression",[Be([gt,await x(y.value,_)]),y.parent.next&&So(y.parent.next)?" ":gt]};break;case"attribute":return Eo(l,d);case"front-matter":return x=>ut(y,x);case"angularControlFlowBlockParameters":return is.has(l.parent.name)?dc:void 0;case"angularLetDeclarationInitializer":return x=>un(y.value,x,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var ss=To;function Yt(l,d="type"){function y(x){let _=x[d],I=l[_];if(!Array.isArray(I))throw Object.assign(new Error(`Missing visitor keys for '${_}'.`),{node:x});return I}return y}var zr=Yt,Ad={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},Dc=Ad,Cc=zr(Dc),pi=Cc,ur="format",Hr=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,cl=/^\s*<!--\s*@(?:format|prettier)\s*-->/u;function cr(l){return cl.test(l)}function Vn(l){return Hr.test(l)}function ls(l){return`<!-- @${ur} -->
|
|
194
|
-
|
|
195
|
-
${
|
|
196
|
-
`);
|
|
197
|
-
`&&++
|
|
198
|
-
`&&++
|
|
199
|
-
`){let y=d.children[0];y.value.length===1?d.removeChild(y):y.value=y.value.slice(1)}})}function vu(l){let d=y=>{var x,_;return y.type==="element"&&((x=y.prev)==null?void 0:x.type)==="ieConditionalStartComment"&&y.prev.sourceSpan.end.offset===y.startSourceSpan.start.offset&&((_=y.firstChild)==null?void 0:_.type)==="ieConditionalEndComment"&&y.firstChild.sourceSpan.start.offset===y.startSourceSpan.end.offset};l.walk(y=>{if(y.children)for(let x=0;x<y.children.length;x++){let _=y.children[x];if(!d(_))continue;let I=_.prev,Y=_.firstChild;y.removeChild(I),x--;let q=new Me(I.sourceSpan.start,Y.sourceSpan.end),ae=new Me(q.start,_.sourceSpan.end);_.condition=I.condition,_.sourceSpan=ae,_.startSourceSpan=q,_.removeChild(Y)}})}function Sc(l,d,y){l.walk(x=>{if(x.children)for(let _=0;_<x.children.length;_++){let I=x.children[_];if(I.type!=="text"&&!d(I))continue;I.type!=="text"&&(I.type="text",I.value=y(I));let Y=I.prev;!Y||Y.type!=="text"||(Y.value+=I.value,Y.sourceSpan=new Me(Y.sourceSpan.start,I.sourceSpan.end),x.removeChild(I),_--)}})}function kc(l){return Sc(l,d=>d.type==="cdata",d=>`<![CDATA[${d.value}]]>`)}function _d(l){let d=y=>{var x,_;return y.type==="element"&&y.attrs.length===0&&y.children.length===1&&y.firstChild.type==="text"&&!Kr.hasWhitespaceCharacter(y.children[0].value)&&!y.firstChild.hasLeadingSpaces&&!y.firstChild.hasTrailingSpaces&&y.isLeadingSpaceSensitive&&!y.hasLeadingSpaces&&y.isTrailingSpaceSensitive&&!y.hasTrailingSpaces&&((x=y.prev)==null?void 0:x.type)==="text"&&((_=y.next)==null?void 0:_.type)==="text"};l.walk(y=>{if(y.children)for(let x=0;x<y.children.length;x++){let _=y.children[x];if(!d(_))continue;let I=_.prev,Y=_.next;I.value+=`<${_.rawName}>`+_.firstChild.value+`</${_.rawName}>`+Y.value,I.sourceSpan=new Me(I.sourceSpan.start,Y.sourceSpan.end),I.isTrailingSpaceSensitive=Y.isTrailingSpaceSensitive,I.hasTrailingSpaces=Y.hasTrailingSpaces,y.removeChild(_),x--,y.removeChild(Y)}})}function Rr(l,d){if(d.parser==="html")return;let y=/\{\{(.+?)\}\}/su;l.walk(x=>{if(Sd(x,d))for(let _ of x.children){if(_.type!=="text")continue;let I=_.sourceSpan.start,Y=null,q=_.value.split(y);for(let ae=0;ae<q.length;ae++,I=Y){let we=q[ae];if(ae%2===0){Y=I.moveBy(we.length),we.length>0&&x.insertChildBefore(_,{type:"text",value:we,sourceSpan:new Me(I,Y)});continue}Y=I.moveBy(we.length+4),x.insertChildBefore(_,{type:"interpolation",sourceSpan:new Me(I,Y),children:we.length===0?[]:[{type:"text",value:we,sourceSpan:new Me(I.moveBy(2),Y.moveBy(-2))}]})}x.removeChild(_)}})}function hn(l,d){l.walk(y=>{let x=y.$children;if(!x)return;if(x.length===0||x.length===1&&x[0].type==="text"&&Kr.trim(x[0].value).length===0){y.hasDanglingSpaces=x.length>0,y.$children=[];return}let _=ga(y,d),I=ma(y);if(!_)for(let Y=0;Y<x.length;Y++){let q=x[Y];if(q.type!=="text")continue;let{leadingWhitespace:ae,text:we,trailingWhitespace:ce}=Xi(q.value),Xe=q.prev,We=q.next;we?(q.value=we,q.sourceSpan=new Me(q.sourceSpan.start.moveBy(ae.length),q.sourceSpan.end.moveBy(-ce.length)),ae&&(Xe&&(Xe.hasTrailingSpaces=!0),q.hasLeadingSpaces=!0),ce&&(q.hasTrailingSpaces=!0,We&&(We.hasLeadingSpaces=!0))):(y.removeChild(q),Y--,(ae||ce)&&(Xe&&(Xe.hasTrailingSpaces=!0),We&&(We.hasLeadingSpaces=!0)))}y.isWhitespaceSensitive=_,y.isIndentationSensitive=I})}function rn(l){l.walk(d=>{d.isSelfClosing=!d.children||d.type==="element"&&(d.tagDefinition.isVoid||d.endSourceSpan&&d.startSourceSpan.start===d.endSourceSpan.start&&d.startSourceSpan.end===d.endSourceSpan.end)})}function bu(l,d){l.walk(y=>{y.type==="element"&&(y.hasHtmComponentClosingTag=y.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(d.originalText.slice(y.endSourceSpan.start.offset,y.endSourceSpan.end.offset)))})}function hs(l,d){l.walk(y=>{y.cssDisplay=si(y,d)})}function Tc(l,d){l.walk(y=>{let{children:x}=y;if(x){if(x.length===0){y.isDanglingSpaceSensitive=ai(y,d);return}for(let _ of x)_.isLeadingSpaceSensitive=ni(_,d),_.isTrailingSpaceSensitive=qs(_,d);for(let _=0;_<x.length;_++){let I=x[_];I.isLeadingSpaceSensitive=(_===0||I.prev.isTrailingSpaceSensitive)&&I.isLeadingSpaceSensitive,I.isTrailingSpaceSensitive=(_===x.length-1||I.next.isLeadingSpaceSensitive)&&I.isTrailingSpaceSensitive}}})}var Vt=fs;function ps(l,d,y){let{node:x}=l;switch(x.type){case"front-matter":return Ee(x.raw);case"root":return d.__onHtmlRoot&&d.__onHtmlRoot(x),[Ce(Ar(l,d,y)),Ye];case"element":case"ieConditionalComment":return gu(l,d,y);case"angularControlFlowBlock":return Ec(l,d,y);case"angularControlFlowBlockParameters":return dn(l,d,y);case"angularControlFlowBlockParameter":return Kr.trim(x.expression);case"angularLetDeclaration":return Ce(["@let ",Ce([x.id," =",Ce(Be([gt,y("init")]))]),";"]);case"angularLetDeclarationInitializer":return x.value;case"angularIcuExpression":return Wr(l,d,y);case"angularIcuCase":return dl(l,d,y);case"ieConditionalStartComment":case"ieConditionalEndComment":return[os(x),mt(x)];case"interpolation":return[os(x,d),...l.map(y,"children"),mt(x,d)];case"text":{if(x.parent.type==="interpolation"){let q=/\n[^\S\n]*$/u,ae=q.test(x.value),we=ae?x.value.replace(q,""):x.value;return[Ee(we),ae?Ye:""]}let _=Gt(x,d),I=bo(x),Y=Fo(x,d);return I[0]=[_,I[0]],I.push([I.pop(),Y]),la(I)}case"docType":return[Ce([os(x,d)," ",z(!1,x.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),mt(x,d)];case"comment":return[Gt(x,d),Ee(d.originalText.slice(di(x),lr(x))),Fo(x,d)];case"attribute":{if(x.value===null)return x.rawName;let _=el(x.value),I=ic(_,'"');return[x.rawName,"=",I,Ee(I==='"'?z(!1,_,'"',"""):z(!1,_,"'","'")),I]}case"cdata":default:throw new Ed(x,"HTML")}}var Ac={preprocess:Vt,print:ps,insertPragma:ls,massageAstNode:ql,embed:ss,getVisitorKeys:pi},_c=Ac,Rc=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],yu={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},wu="HTML",Nc={bracketSameLine:yu.bracketSameLine,htmlWhitespaceSensitivity:{category:wu,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:yu.singleAttributePerLine,vueIndentScriptAndStyle:{category:wu,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Pc=Nc,gs={};b(gs,{angular:()=>ks,html:()=>Ss,lwc:()=>_l,mjml:()=>Qn,vue:()=>Ts});var xu;(function(l){l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom"})(xu||(xu={}));var ms;(function(l){l[l.OnPush=0]="OnPush",l[l.Default=1]="Default"})(ms||(ms={}));var vs;(function(l){l[l.None=0]="None",l[l.SignalBased=1]="SignalBased",l[l.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(vs||(vs={}));var pl={name:"custom-elements"},Oc={name:"no-errors-schema"},_o;(function(l){l[l.NONE=0]="NONE",l[l.HTML=1]="HTML",l[l.STYLE=2]="STYLE",l[l.SCRIPT=3]="SCRIPT",l[l.URL=4]="URL",l[l.RESOURCE_URL=5]="RESOURCE_URL"})(_o||(_o={}));var Bc;(function(l){l[l.Error=0]="Error",l[l.Warning=1]="Warning",l[l.Ignore=2]="Ignore"})(Bc||(Bc={}));var Rn;(function(l){l[l.RAW_TEXT=0]="RAW_TEXT",l[l.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",l[l.PARSABLE_DATA=2]="PARSABLE_DATA"})(Rn||(Rn={}));function vi(l,d=!0){if(l[0]!=":")return[null,l];let y=l.indexOf(":",1);if(y===-1){if(d)throw new Error(`Unsupported format "${l}" expecting ":namespace:name"`);return[null,l]}return[l.slice(1,y),l.slice(y+1)]}function Ic(l){return vi(l)[1]==="ng-container"}function Du(l){return vi(l)[1]==="ng-content"}function gl(l){return l===null?null:vi(l)[0]}function bs(l,d){return l?`:${l}:${d}`:d}var ml;function Lc(){return ml||(ml={},vl(_o.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),vl(_o.STYLE,["*|style"]),vl(_o.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),vl(_o.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),ml}function vl(l,d){for(let y of d)ml[y.toLowerCase()]=l}var Rd=class{},Nd="boolean",Pd="number",bl="string",Od="object",yl=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Mc=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Bd=Array.from(Mc).reduce((l,[d,y])=>(l.set(d,y),l),new Map),Id=class extends Rd{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,yl.forEach(l=>{let d=new Map,y=new Set,[x,_]=l.split("|"),I=_.split(","),[Y,q]=x.split("^");Y.split(",").forEach(we=>{this._schema.set(we.toLowerCase(),d),this._eventSchema.set(we.toLowerCase(),y)});let ae=q&&this._schema.get(q.toLowerCase());if(ae){for(let[we,ce]of ae)d.set(we,ce);for(let we of this._eventSchema.get(q.toLowerCase()))y.add(we)}I.forEach(we=>{if(we.length>0)switch(we[0]){case"*":y.add(we.substring(1));break;case"!":d.set(we.substring(1),Nd);break;case"#":d.set(we.substring(1),Pd);break;case"%":d.set(we.substring(1),Od);break;default:d.set(we,bl)}})})}hasProperty(l,d,y){if(y.some(x=>x.name===Oc.name))return!0;if(l.indexOf("-")>-1){if(Ic(l)||Du(l))return!1;if(y.some(x=>x.name===pl.name))return!0}return(this._schema.get(l.toLowerCase())||this._schema.get("unknown")).has(d)}hasElement(l,d){return d.some(y=>y.name===Oc.name)||l.indexOf("-")>-1&&(Ic(l)||Du(l)||d.some(y=>y.name===pl.name))?!0:this._schema.has(l.toLowerCase())}securityContext(l,d,y){y&&(d=this.getMappedPropName(d)),l=l.toLowerCase(),d=d.toLowerCase();let x=Lc()[l+"|"+d];return x||(x=Lc()["*|"+d],x||_o.NONE)}getMappedPropName(l){return Mc.get(l)??l}getDefaultComponentElementName(){return"ng-component"}validateProperty(l){return l.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${l}' is disallowed for security reasons, please use (${l.slice(2)})=...
|
|
200
|
-
If '${l}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(l){return l.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${l}' is disallowed for security reasons, please use (${l.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(l){let d=this._schema.get(l.toLowerCase())||this._schema.get("unknown");return Array.from(d.keys()).map(y=>Bd.get(y)??y)}allKnownEventsOfElement(l){return Array.from(this._eventSchema.get(l.toLowerCase())??[])}normalizeAnimationStyleProperty(l){return Ur(l)}normalizeAnimationStyleValue(l,d,y){let x="",_=y.toString().trim(),I=null;if(Ld(l)&&y!==0&&y!=="0")if(typeof y=="number")x="px";else{let Y=y.match(/^[+-]?[\d\.]+([a-z]*)$/);Y&&Y[1].length==0&&(I=`Please provide a CSS unit value for ${d}:${y}`)}return{error:I,value:_+x}}};function Ld(l){switch(l){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var Ve=class{constructor({closedByChildren:l,implicitNamespacePrefix:d,contentType:y=Rn.PARSABLE_DATA,closedByParent:x=!1,isVoid:_=!1,ignoreFirstLf:I=!1,preventNamespaceInheritance:Y=!1,canSelfClose:q=!1}={}){this.closedByChildren={},this.closedByParent=!1,l&&l.length>0&&l.forEach(ae=>this.closedByChildren[ae]=!0),this.isVoid=_,this.closedByParent=x||_,this.implicitNamespacePrefix=d||null,this.contentType=y,this.ignoreFirstLf=I,this.preventNamespaceInheritance=Y,this.canSelfClose=q??_}isClosedByChild(l){return this.isVoid||l.toLowerCase()in this.closedByChildren}getContentType(l){return typeof this.contentType=="object"?(l===void 0?void 0:this.contentType[l])??this.contentType.default:this.contentType}},zc,ys;function Cu(l){return ys||(zc=new Ve({canSelfClose:!0}),ys=Object.assign(Object.create(null),{base:new Ve({isVoid:!0}),meta:new Ve({isVoid:!0}),area:new Ve({isVoid:!0}),embed:new Ve({isVoid:!0}),link:new Ve({isVoid:!0}),img:new Ve({isVoid:!0}),input:new Ve({isVoid:!0}),param:new Ve({isVoid:!0}),hr:new Ve({isVoid:!0}),br:new Ve({isVoid:!0}),source:new Ve({isVoid:!0}),track:new Ve({isVoid:!0}),wbr:new Ve({isVoid:!0}),p:new Ve({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Ve({closedByChildren:["tbody","tfoot"]}),tbody:new Ve({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Ve({closedByChildren:["tbody"],closedByParent:!0}),tr:new Ve({closedByChildren:["tr"],closedByParent:!0}),td:new Ve({closedByChildren:["td","th"],closedByParent:!0}),th:new Ve({closedByChildren:["td","th"],closedByParent:!0}),col:new Ve({isVoid:!0}),svg:new Ve({implicitNamespacePrefix:"svg"}),foreignObject:new Ve({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Ve({implicitNamespacePrefix:"math"}),li:new Ve({closedByChildren:["li"],closedByParent:!0}),dt:new Ve({closedByChildren:["dt","dd"]}),dd:new Ve({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Ve({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Ve({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Ve({closedByChildren:["optgroup"],closedByParent:!0}),option:new Ve({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Ve({ignoreFirstLf:!0}),listing:new Ve({ignoreFirstLf:!0}),style:new Ve({contentType:Rn.RAW_TEXT}),script:new Ve({contentType:Rn.RAW_TEXT}),title:new Ve({contentType:{default:Rn.ESCAPABLE_RAW_TEXT,svg:Rn.PARSABLE_DATA}}),textarea:new Ve({contentType:Rn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Id().allKnownElementNames().forEach(d=>{!ys[d]&&gl(d)===null&&(ys[d]=new Ve({canSelfClose:!1}))})),ys[l]??zc}var bi=class{constructor(l,d){this.sourceSpan=l,this.i18n=d}},Md=class extends bi{constructor(l,d,y,x){super(d,x),this.value=l,this.tokens=y,this.type="text"}visit(l,d){return l.visitText(this,d)}},zd=class extends bi{constructor(l,d,y,x){super(d,x),this.value=l,this.tokens=y,this.type="cdata"}visit(l,d){return l.visitCdata(this,d)}},Hd=class extends bi{constructor(l,d,y,x,_,I){super(x,I),this.switchValue=l,this.type=d,this.cases=y,this.switchValueSourceSpan=_}visit(l,d){return l.visitExpansion(this,d)}},Wd=class{constructor(l,d,y,x,_){this.value=l,this.expression=d,this.sourceSpan=y,this.valueSourceSpan=x,this.expSourceSpan=_,this.type="expansionCase"}visit(l,d){return l.visitExpansionCase(this,d)}},wl=class extends bi{constructor(l,d,y,x,_,I,Y){super(y,Y),this.name=l,this.value=d,this.keySpan=x,this.valueSpan=_,this.valueTokens=I,this.type="attribute"}visit(l,d){return l.visitAttribute(this,d)}get nameSpan(){return this.keySpan}},qa=class extends bi{constructor(l,d,y,x,_,I=null,Y=null,q){super(x,q),this.name=l,this.attrs=d,this.children=y,this.startSourceSpan=_,this.endSourceSpan=I,this.nameSpan=Y,this.type="element"}visit(l,d){return l.visitElement(this,d)}},Ud=class{constructor(l,d){this.value=l,this.sourceSpan=d,this.type="comment"}visit(l,d){return l.visitComment(this,d)}},jd=class{constructor(l,d){this.value=l,this.sourceSpan=d,this.type="docType"}visit(l,d){return l.visitDocType(this,d)}},yi=class extends bi{constructor(l,d,y,x,_,I,Y=null,q){super(x,q),this.name=l,this.parameters=d,this.children=y,this.nameSpan=_,this.startSourceSpan=I,this.endSourceSpan=Y,this.type="block"}visit(l,d){return l.visitBlock(this,d)}},Hc=class{constructor(l,d){this.expression=l,this.sourceSpan=d,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(l,d){return l.visitBlockParameter(this,d)}},Wc=class{constructor(l,d,y,x,_){this.name=l,this.value=d,this.sourceSpan=y,this.nameSpan=x,this.valueSpan=_,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(l,d){return l.visitLetDeclaration(this,d)}};function Uc(l,d,y=null){let x=[],_=l.visit?I=>l.visit(I,y)||I.visit(l,y):I=>I.visit(l,y);return d.forEach(I=>{let Y=_(I);Y&&x.push(Y)}),x}var xl=class{constructor(){}visitElement(l,d){this.visitChildren(d,y=>{y(l.attrs),y(l.children)})}visitAttribute(l,d){}visitText(l,d){}visitCdata(l,d){}visitComment(l,d){}visitDocType(l,d){}visitExpansion(l,d){return this.visitChildren(d,y=>{y(l.cases)})}visitExpansionCase(l,d){}visitBlock(l,d){this.visitChildren(d,y=>{y(l.parameters),y(l.children)})}visitBlockParameter(l,d){}visitLetDeclaration(l,d){}visitChildren(l,d){let y=[],x=this;function _(I){I&&y.push(Uc(x,I,l))}return d(_),Array.prototype.concat.apply([],y)}},wi={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",af:"",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"",ic:"",InvisibleTimes:"",it:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",ZeroWidthSpace:"",NewLine:`
|
|
201
|
-
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Ka="";wi.ngsp=Ka;var Gd=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Yd(l,d){if(d!=null&&!(Array.isArray(d)&&d.length==2))throw new Error(`Expected '${l}' to be an array, [start, end].`);if(d!=null){let y=d[0],x=d[1];Gd.forEach(_=>{if(_.test(y)||_.test(x))throw new Error(`['${y}', '${x}'] contains unusable interpolation symbol.`)})}}var jc=class ww{static fromArray(d){return d?(Yd("interpolation",d),new ww(d[0],d[1])):Gc}constructor(d,y){this.start=d,this.end=y}},Gc=new jc("{{","}}"),Eu=class extends hl{constructor(l,d,y){super(y,l),this.tokenType=d}},Yc=class{constructor(l,d,y){this.tokens=l,this.errors=d,this.nonNormalizedIcuExpressions=y}};function Vc(l,d,y,x={}){let _=new Vd(new fn(l,d),y,x);return _.tokenize(),new Yc(Zc(_.tokens),_.errors,_.nonNormalizedIcuExpressions)}var Fu=/\r\n?/g;function Qa(l){return`Unexpected character "${l===0?"EOF":String.fromCharCode(l)}"`}function Dl(l){return`Unknown entity "${l}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function Su(l,d){return`Unable to parse entity "${d}" - ${l} character reference entities must end with ";"`}var xi;(function(l){l.HEX="hexadecimal",l.DEC="decimal"})(xi||(xi={}));var Cl=class{constructor(l){this.error=l}},Vd=class{constructor(l,d,y){this._getTagContentType=d,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=y.tokenizeExpansionForms||!1,this._interpolationConfig=y.interpolationConfig||Gc,this._leadingTriviaCodePoints=y.leadingTriviaChars&&y.leadingTriviaChars.map(_=>_.codePointAt(0)||0),this._canSelfClose=y.canSelfClose||!1,this._allowHtmComponentClosingTags=y.allowHtmComponentClosingTags||!1;let x=y.range||{endPos:l.content.length,startPos:0,startLine:0,startCol:0};this._cursor=y.escapedString?new Jc(l,x):new _u(l,x),this._preserveLineEndings=y.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=y.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=y.tokenizeBlocks??!0,this._tokenizeLet=y.tokenizeLet??!0;try{this._cursor.init()}catch(_){this.handleError(_)}}_processCarriageReturns(l){return this._preserveLineEndings?l:l.replace(Fu,`
|
|
202
|
-
`)}tokenize(){for(;this._cursor.peek()!==0;){let l=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(l):this._attemptStr("--")?this._consumeComment(l):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(l):this._consumeBogusComment(l);else if(this._attemptCharCode(47))this._consumeTagClose(l);else{let d=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=d,this._consumeBogusComment(l)):this._consumeTagOpen(l)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(l):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(l):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(l):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(d){this.handleError(d)}}this._beginToken(34),this._endToken([])}_getBlockName(){let l=!1,d=this._cursor.clone();return this._attemptCharCodeUntilFn(y=>Ot(y)?!l:Tu(y)?(l=!0,!1):!0),this._cursor.getChars(d).trim()}_consumeBlockStart(l){this._beginToken(25,l);let d=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Bt),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Bt);else{d.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):d.type=29}_consumeBlockEnd(l){this._beginToken(27,l),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Au);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let l=this._cursor.clone(),d=null,y=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||d!==null;){let x=this._cursor.peek();if(x===92)this._cursor.advance();else if(x===d)d=null;else if(d===null&&Ca(x))d=x;else if(x===40&&d===null)y++;else if(x===41&&d===null){if(y===0)break;y>0&&y--}this._cursor.advance()}this._endToken([this._cursor.getChars(l)]),this._attemptCharCodeUntilFn(Au)}}_consumeLetDeclaration(l){if(this._beginToken(30,l),Ot(this._cursor.peek()))this._attemptCharCodeUntilFn(Bt);else{let y=this._endToken([this._cursor.getChars(l)]);y.type=33;return}let d=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Bt),!this._attemptCharCode(61)){d.type=33;return}this._attemptCharCodeUntilFn(y=>Bt(y)&&!ds(y)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(d.type=33,d.sourceSpan=this._cursor.getSpan(l))}_getLetDeclarationName(){let l=this._cursor.clone(),d=!1;return this._attemptCharCodeUntilFn(y=>cs(y)||y===36||y===95||d&&Ao(y)?(d=!0,!1):!0),this._cursor.getChars(l).trim()}_consumeLetDeclarationValue(){let l=this._cursor.clone();for(this._beginToken(31,l);this._cursor.peek()!==0;){let d=this._cursor.peek();if(d===59)break;Ca(d)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(y=>y===92?(this._cursor.advance(),!1):y===d)),this._cursor.advance()}this._endToken([this._cursor.getChars(l)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(El(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(l,d=this._cursor.clone()){this._currentTokenStart=d,this._currentTokenType=l}_endToken(l,d){if(this._currentTokenStart===null)throw new Eu("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(d));if(this._currentTokenType===null)throw new Eu("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let y={type:this._currentTokenType,parts:l,sourceSpan:(d??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(y),this._currentTokenStart=null,this._currentTokenType=null,y}_createError(l,d){this._isInExpansionForm()&&(l+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let y=new Eu(l,this._currentTokenType,d);return this._currentTokenStart=null,this._currentTokenType=null,new Cl(y)}handleError(l){if(l instanceof Fl&&(l=this._createError(l.msg,this._cursor.getSpan(l.cursor))),l instanceof Cl)this.errors.push(l.error);else throw l}_attemptCharCode(l){return this._cursor.peek()===l?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(l){return Jn(this._cursor.peek(),l)?(this._cursor.advance(),!0):!1}_requireCharCode(l){let d=this._cursor.clone();if(!this._attemptCharCode(l))throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(d))}_attemptStr(l){let d=l.length;if(this._cursor.charsLeft()<d)return!1;let y=this._cursor.clone();for(let x=0;x<d;x++)if(!this._attemptCharCode(l.charCodeAt(x)))return this._cursor=y,!1;return!0}_attemptStrCaseInsensitive(l){for(let d=0;d<l.length;d++)if(!this._attemptCharCodeCaseInsensitive(l.charCodeAt(d)))return!1;return!0}_requireStr(l){let d=this._cursor.clone();if(!this._attemptStr(l))throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(d))}_requireStrCaseInsensitive(l){let d=this._cursor.clone();if(!this._attemptStrCaseInsensitive(l))throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(d))}_attemptCharCodeUntilFn(l){for(;!l(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(l,d){let y=this._cursor.clone();if(this._attemptCharCodeUntilFn(l),this._cursor.diff(y)<d)throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(y))}_attemptUntilChar(l){for(;this._cursor.peek()!==l;)this._cursor.advance()}_readChar(){let l=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),l}_consumeEntity(l){this._beginToken(9);let d=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let y=this._attemptCharCode(120)||this._attemptCharCode(88),x=this._cursor.clone();if(this._attemptCharCodeUntilFn(Zd),this._cursor.peek()!=59){this._cursor.advance();let I=y?xi.HEX:xi.DEC;throw this._createError(Su(I,this._cursor.getChars(d)),this._cursor.getSpan())}let _=this._cursor.getChars(x);this._cursor.advance();try{let I=parseInt(_,y?16:10);this._endToken([String.fromCharCode(I),this._cursor.getChars(d)])}catch{throw this._createError(Dl(this._cursor.getChars(d)),this._cursor.getSpan())}}else{let y=this._cursor.clone();if(this._attemptCharCodeUntilFn(Zn),this._cursor.peek()!=59)this._beginToken(l,d),this._cursor=y,this._endToken(["&"]);else{let x=this._cursor.getChars(y);this._cursor.advance();let _=wi[x];if(!_)throw this._createError(Dl(x),this._cursor.getSpan(d));this._endToken([_,`&${x};`])}}}_consumeRawText(l,d){this._beginToken(l?6:7);let y=[];for(;;){let x=this._cursor.clone(),_=d();if(this._cursor=x,_)break;l&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(y.join(""))]),y.length=0,this._consumeEntity(6),this._beginToken(6)):y.push(this._readChar())}this._endToken([this._processCarriageReturns(y.join(""))])}_consumeComment(l){this._beginToken(10,l),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(l){this._beginToken(10,l),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(l){this._beginToken(12,l),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(l){this._beginToken(18,l),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let l=this._cursor.clone(),d="";for(;this._cursor.peek()!==58&&!Xd(this._cursor.peek());)this._cursor.advance();let y;this._cursor.peek()===58?(d=this._cursor.getChars(l),this._cursor.advance(),y=this._cursor.clone()):y=l,this._requireCharCodeUntilFn(Xc,d===""?0:1);let x=this._cursor.getChars(y);return[d,x]}_consumeTagOpen(l){let d,y,x,_=[];try{if(!cs(this._cursor.peek()))throw this._createError(Qa(this._cursor.peek()),this._cursor.getSpan(l));for(x=this._consumeTagOpenStart(l),y=x.parts[0],d=x.parts[1],this._attemptCharCodeUntilFn(Bt);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[Y,q]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(Bt),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(Bt);let ae=this._consumeAttributeValue();_.push({prefix:Y,name:q,value:ae})}else _.push({prefix:Y,name:q});this._attemptCharCodeUntilFn(Bt)}this._consumeTagOpenEnd()}catch(Y){if(Y instanceof Cl){x?x.type=4:(this._beginToken(5,l),this._endToken(["<"]));return}throw Y}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let I=this._getTagContentType(d,y,this._fullNameStack.length>0,_);this._handleFullNameStackForTagOpen(y,d),I===Rn.RAW_TEXT?this._consumeRawTextWithTagClose(y,d,!1):I===Rn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(y,d,!0)}_consumeRawTextWithTagClose(l,d,y){this._consumeRawText(y,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Bt),!this._attemptStrCaseInsensitive(l?`${l}:${d}`:d))?!1:(this._attemptCharCodeUntilFn(Bt),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(x=>x===62,3),this._cursor.advance(),this._endToken([l,d]),this._handleFullNameStackForTagClose(l,d)}_consumeTagOpenStart(l){this._beginToken(0,l);let d=this._consumePrefixAndName();return this._endToken(d)}_consumeAttributeName(){let l=this._cursor.peek();if(l===39||l===34)throw this._createError(Qa(l),this._cursor.getSpan());this._beginToken(14);let d=this._consumePrefixAndName();return this._endToken(d),d}_consumeAttributeValue(){let l;if(this._cursor.peek()===39||this._cursor.peek()===34){let d=this._cursor.peek();this._consumeQuote(d);let y=()=>this._cursor.peek()===d;l=this._consumeWithInterpolation(16,17,y,y),this._consumeQuote(d)}else{let d=()=>Xc(this._cursor.peek());l=this._consumeWithInterpolation(16,17,d,d)}return l}_consumeQuote(l){this._beginToken(15),this._requireCharCode(l),this._endToken([String.fromCodePoint(l)])}_consumeTagOpenEnd(){let l=this._attemptCharCode(47)?2:1;this._beginToken(l),this._requireCharCode(62),this._endToken([])}_consumeTagClose(l){if(this._beginToken(3,l),this._attemptCharCodeUntilFn(Bt),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Bt),this._requireCharCode(62),this._endToken([]);else{let[d,y]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Bt),this._requireCharCode(62),this._endToken([d,y]),this._handleFullNameStackForTagClose(d,y)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let l=this._readUntil(44),d=this._processCarriageReturns(l);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([d]);else{let x=this._endToken([l]);d!==l&&this.nonNormalizedIcuExpressions.push(x)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Bt),this._beginToken(7);let y=this._readUntil(44);this._endToken([y]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Bt)}_consumeExpansionCaseStart(){this._beginToken(21);let l=this._readUntil(123).trim();this._endToken([l]),this._attemptCharCodeUntilFn(Bt),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Bt),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Bt),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(l,d,y,x){this._beginToken(l);let _=[];for(;!y();){let Y=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(_.join(""))],Y),_.length=0,this._consumeInterpolation(d,Y,x),this._beginToken(l)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(_.join(""))]),_.length=0,this._consumeEntity(l),this._beginToken(l)):_.push(this._readChar())}this._inInterpolation=!1;let I=this._processCarriageReturns(_.join(""));return this._endToken([I]),I}_consumeInterpolation(l,d,y){let x=[];this._beginToken(l,d),x.push(this._interpolationConfig.start);let _=this._cursor.clone(),I=null,Y=!1;for(;this._cursor.peek()!==0&&(y===null||!y());){let q=this._cursor.clone();if(this._isTagStart()){this._cursor=q,x.push(this._getProcessedChars(_,q)),this._endToken(x);return}if(I===null)if(this._attemptStr(this._interpolationConfig.end)){x.push(this._getProcessedChars(_,q)),x.push(this._interpolationConfig.end),this._endToken(x);return}else this._attemptStr("//")&&(Y=!0);let ae=this._cursor.peek();this._cursor.advance(),ae===92?this._cursor.advance():ae===I?I=null:!Y&&I===null&&Ca(ae)&&(I=ae)}x.push(this._getProcessedChars(_,this._cursor)),this._endToken(x)}_getProcessedChars(l,d){return this._processCarriageReturns(d.getChars(l))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let l=this._cursor.clone();l.advance();let d=l.peek();if(97<=d&&d<=122||65<=d&&d<=90||d===47||d===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let l=this._cursor.clone();if(l.advance(),Tu(l.peek()))return!0}return!1}_readUntil(l){let d=this._cursor.clone();return this._attemptUntilChar(l),this._cursor.getChars(d)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let l=this._cursor.clone(),d=this._attemptStr(this._interpolationConfig.start);return this._cursor=l,!d}return!0}_handleFullNameStackForTagOpen(l,d){let y=bs(l,d);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===y)&&this._fullNameStack.push(y)}_handleFullNameStackForTagClose(l,d){let y=bs(l,d);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===y&&this._fullNameStack.pop()}};function Bt(l){return!Ot(l)||l===0}function Xc(l){return Ot(l)||l===62||l===60||l===47||l===39||l===34||l===61||l===0}function Xd(l){return(l<97||122<l)&&(l<65||90<l)&&(l<48||l>57)}function Zd(l){return l===59||l===0||!Fc(l)}function Zn(l){return l===59||l===0||!cs(l)}function El(l){return l!==125}function Jn(l,d){return ku(l)===ku(d)}function ku(l){return l>=97&&l<=122?l-97+65:l}function Tu(l){return cs(l)||Ao(l)||l===95}function Au(l){return l!==59&&Bt(l)}function Zc(l){let d=[],y;for(let x=0;x<l.length;x++){let _=l[x];y&&y.type===5&&_.type===5||y&&y.type===16&&_.type===16?(y.parts[0]+=_.parts[0],y.sourceSpan.end=_.sourceSpan.end):(y=_,d.push(y))}return d}var _u=class pm{constructor(d,y){if(d instanceof pm){this.file=d.file,this.input=d.input,this.end=d.end;let x=d.state;this.state={peek:x.peek,offset:x.offset,line:x.line,column:x.column}}else{if(!y)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=d,this.input=d.content,this.end=y.endPos,this.state={peek:-1,offset:y.startPos,line:y.startLine,column:y.startCol}}}clone(){return new pm(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(d){return this.state.offset-d.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(d,y){d=d||this;let x=d;if(y)for(;this.diff(d)>0&&y.indexOf(d.peek())!==-1;)x===d&&(d=d.clone()),d.advance();let _=this.locationFromCursor(d),I=this.locationFromCursor(this),Y=x!==d?this.locationFromCursor(x):_;return new Me(_,I,Y)}getChars(d){return this.input.substring(d.state.offset,this.state.offset)}charAt(d){return this.input.charCodeAt(d)}advanceState(d){if(d.offset>=this.end)throw this.state=d,new Fl('Unexpected character "EOF"',this);let y=this.charAt(d.offset);y===10?(d.line++,d.column=0):ds(y)||d.column++,d.offset++,this.updatePeek(d)}updatePeek(d){d.peek=d.offset>=this.end?0:this.charAt(d.offset)}locationFromCursor(d){return new Ea(d.file,d.state.offset,d.state.line,d.state.column)}},Jc=class gm extends _u{constructor(d,y){d instanceof gm?(super(d),this.internalState={...d.internalState}):(super(d,y),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new gm(this)}getChars(d){let y=d.clone(),x="";for(;y.internalState.offset<this.internalState.offset;)x+=String.fromCodePoint(y.peek()),y.advance();return x}processEscapeSequence(){let d=()=>this.internalState.peek;if(d()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),d()===110)this.state.peek=10;else if(d()===114)this.state.peek=13;else if(d()===118)this.state.peek=11;else if(d()===116)this.state.peek=9;else if(d()===98)this.state.peek=8;else if(d()===102)this.state.peek=12;else if(d()===117)if(this.advanceState(this.internalState),d()===123){this.advanceState(this.internalState);let y=this.clone(),x=0;for(;d()!==125;)this.advanceState(this.internalState),x++;this.state.peek=this.decodeHexDigits(y,x)}else{let y=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(y,4)}else if(d()===120){this.advanceState(this.internalState);let y=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(y,2)}else if(fl(d())){let y="",x=0,_=this.clone();for(;fl(d())&&x<3;)_=this.clone(),y+=String.fromCodePoint(d()),this.advanceState(this.internalState),x++;this.state.peek=parseInt(y,8),this.internalState=_.internalState}else ds(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(d,y){let x=this.input.slice(d.internalState.offset,d.internalState.offset+y),_=parseInt(x,16);if(isNaN(_))throw d.state=d.internalState,new Fl("Invalid hexadecimal escape sequence",d);return _}},Fl=class{constructor(l,d){this.msg=l,this.cursor=d}},Xt=class xw extends hl{static create(d,y,x){return new xw(d,y,x)}constructor(d,y,x){super(y,x),this.elementName=d}},Sl=class{constructor(l,d){this.rootNodes=l,this.errors=d}},Sa=class{constructor(l){this.getTagDefinition=l}parse(l,d,y,x=!1,_){let I=He=>(Ne,...It)=>He(Ne.toLowerCase(),...It),Y=x?this.getTagDefinition:I(this.getTagDefinition),q=He=>Y(He).getContentType(),ae=x?_:I(_),we=Vc(l,d,_?(He,Ne,It,Ft)=>{let tr=ae(He,Ne,It,Ft);return tr!==void 0?tr:q(He)}:q,y),ce=y&&y.canSelfClose||!1,Xe=y&&y.allowHtmComponentClosingTags||!1,We=new qc(we.tokens,Y,ce,Xe,x);return We.build(),new Sl(We.rootNodes,we.errors.concat(We.errors))}},qc=class Dw{constructor(d,y,x,_,I){this.tokens=d,this.getTagDefinition=y,this.canSelfClose=x,this.allowHtmComponentClosingTags=_,this.isTagNameCaseSensitive=I,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let d of this._containerStack)d instanceof yi&&this.errors.push(Xt.create(d.name,d.sourceSpan,`Unclosed block "${d.name}"`))}_advance(){let d=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],d}_advanceIf(d){return this._peek.type===d?this._advance():null}_consumeCdata(d){let y=this._advance(),x=this._getText(y),_=this._advanceIf(13);this._addToParent(new zd(x,new Me(d.sourceSpan.start,(_||y).sourceSpan.end),[y]))}_consumeComment(d){let y=this._advanceIf(7),x=this._advanceIf(11),_=y!=null?y.parts[0].trim():null,I=x==null?d.sourceSpan:new Me(d.sourceSpan.start,x.sourceSpan.end,d.sourceSpan.fullStart);this._addToParent(new Ud(_,I))}_consumeDocType(d){let y=this._advanceIf(7),x=this._advanceIf(19),_=y!=null?y.parts[0].trim():null,I=new Me(d.sourceSpan.start,(x||y||d).sourceSpan.end);this._addToParent(new jd(_,I))}_consumeExpansion(d){let y=this._advance(),x=this._advance(),_=[];for(;this._peek.type===21;){let Y=this._parseExpansionCase();if(!Y)return;_.push(Y)}if(this._peek.type!==24){this.errors.push(Xt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let I=new Me(d.sourceSpan.start,this._peek.sourceSpan.end,d.sourceSpan.fullStart);this._addToParent(new Hd(y.parts[0],x.parts[0],_,I,y.sourceSpan)),this._advance()}_parseExpansionCase(){let d=this._advance();if(this._peek.type!==22)return this.errors.push(Xt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let y=this._advance(),x=this._collectExpansionExpTokens(y);if(!x)return null;let _=this._advance();x.push({type:34,parts:[],sourceSpan:_.sourceSpan});let I=new Dw(x,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(I.build(),I.errors.length>0)return this.errors=this.errors.concat(I.errors),null;let Y=new Me(d.sourceSpan.start,_.sourceSpan.end,d.sourceSpan.fullStart),q=new Me(y.sourceSpan.start,_.sourceSpan.end,y.sourceSpan.fullStart);return new Wd(d.parts[0],I.rootNodes,Y,d.sourceSpan,q)}_collectExpansionExpTokens(d){let y=[],x=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&x.push(this._peek.type),this._peek.type===23)if(Ru(x,22)){if(x.pop(),x.length===0)return y}else return this.errors.push(Xt.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Ru(x,20))x.pop();else return this.errors.push(Xt.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(Xt.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;y.push(this._advance())}}_getText(d){let y=d.parts[0];if(y.length>0&&y[0]==`
|
|
203
|
-
`){let
|
|
204
|
-
`){let
|
|
205
|
-
`,
|
|
206
|
-
${d}`,y),
|
|
207
|
-
...`,y)),_===-1)return;let Y=_+1+Nr,q=l.charAt(Y+1);if(!/\s?/u.test(q))return;let ae=l.slice(0,Y);return{type:"front-matter",language:I,explicitLanguage:x,value:l.slice(y+1,_),startDelimiter:d,endDelimiter:ae.slice(-Nr),raw:ae}}function xs(l){let d=ws(l);if(!d)return{content:l};let{raw:y}=d;return{frontMatter:d,content:z(!1,y,/[^\n]/gu," ")+l.slice(y.length)}}var Tl=xs,Ro={attrs:!0,children:!0,cases:!0,expression:!0},ct=new Set(["parent"]),qn,Ci,vr,$a=class nf{constructor(d={}){S(this,qn),E(this,"type"),E(this,"parent");for(let y of new Set([...ct,...Object.keys(d)]))this.setProperty(y,d[y])}setProperty(d,y){if(this[d]!==y){if(d in Ro&&(y=y.map(x=>this.createChild(x))),!ct.has(d)){this[d]=y;return}Object.defineProperty(this,d,{value:y,enumerable:!1,configurable:!0})}}map(d){let y;for(let x in Ro){let _=this[x];if(_){let I=Ds(_,Y=>Y.map(d));y!==_&&(y||(y=new nf({parent:this.parent})),y.setProperty(x,I))}}if(y)for(let x in this)x in Ro||(y[x]=this[x]);return d(y||this)}walk(d){for(let y in Ro){let x=this[y];if(x)for(let _=0;_<x.length;_++)x[_].walk(d)}d(this)}createChild(d){let y=d instanceof nf?d.clone():new nf(d);return y.setProperty("parent",this),y}insertChildBefore(d,y){let x=this.$children;x.splice(x.indexOf(d),0,this.createChild(y))}removeChild(d){let y=this.$children;y.splice(y.indexOf(d),1)}replaceChild(d,y){let x=this.$children;x[x.indexOf(d)]=this.createChild(y)}clone(){return new nf(this)}get $children(){return this[F(this,qn,Ci)]}set $children(d){this[F(this,qn,Ci)]=d}get firstChild(){var d;return(d=this.$children)==null?void 0:d[0]}get lastChild(){return j(!0,this.$children,-1)}get prev(){let d=F(this,qn,vr);return d[d.indexOf(this)-1]}get next(){let d=F(this,qn,vr);return d[d.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(d=>[d.fullName,d.value]))}};qn=new WeakSet,Ci=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},vr=function(){var l;return((l=this.parent)==null?void 0:l.$children)??[]};var Nn=$a;function Ds(l,d){let y=l.map(d);return y.some((x,_)=>x!==l[_])?y:l}var No=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Cs},{regex:/^\[if([^\]]*)\]><!$/u,parse:Pn},{regex:/^<!\s*\[endif\]$/u,parse:Ei}];function Ta(l,d){if(l.value)for(let{regex:y,parse:x}of No){let _=l.value.match(y);if(_)return x(l,d,_)}return null}function Cs(l,d,y){let[,x,_,I]=y,Y=4+x.length,q=l.sourceSpan.start.moveBy(Y),ae=q.moveBy(I.length),[we,ce]=(()=>{try{return[!0,d(I,q).children]}catch{return[!1,[{type:"text",value:I,sourceSpan:new Me(q,ae)}]]}})();return{type:"ieConditionalComment",complete:we,children:ce,condition:z(!1,_.trim(),/\s+/gu," "),sourceSpan:l.sourceSpan,startSourceSpan:new Me(l.sourceSpan.start,q),endSourceSpan:new Me(ae,l.sourceSpan.end)}}function Pn(l,d,y){let[,x]=y;return{type:"ieConditionalStartComment",condition:z(!1,x.trim(),/\s+/gu," "),sourceSpan:l.sourceSpan}}function Ei(l){return{type:"ieConditionalEndComment",sourceSpan:l.sourceSpan}}var Es=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Fs=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function pn(l){if(l.type==="block"){if(l.name=z(!1,l.name.toLowerCase(),/\s+/gu," ").trim(),l.type="angularControlFlowBlock",!za(l.parameters)){delete l.parameters;return}for(let d of l.parameters)d.type="angularControlFlowBlockParameter";l.parameters={type:"angularControlFlowBlockParameters",children:l.parameters,sourceSpan:new Me(l.parameters[0].sourceSpan.start,j(!1,l.parameters,-1).sourceSpan.end)}}}function Qc(l){l.type==="letDeclaration"&&(l.type="angularLetDeclaration",l.id=l.name,l.init={type:"angularLetDeclarationInitializer",sourceSpan:new Me(l.valueSpan.start,l.valueSpan.end),value:l.value},delete l.name,delete l.value)}function Fi(l){(l.type==="plural"||l.type==="select")&&(l.clause=l.type,l.type="angularIcuExpression"),l.type==="expansionCase"&&(l.type="angularIcuCase")}function Al(l,d,y){let{name:x,canSelfClose:_=!0,normalizeTagName:I=!1,normalizeAttributeName:Y=!1,allowHtmComponentClosingTags:q=!1,isTagNameCaseSensitive:ae=!1,shouldParseAsRawText:we}=d,{rootNodes:ce,errors:Xe}=ka(l,{canSelfClose:_,allowHtmComponentClosingTags:q,isTagNameCaseSensitive:ae,getTagContentType:we?(...Se)=>we(...Se)?Rn.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:x==="angular"?!0:void 0,tokenizeAngularLetDeclaration:x==="angular"?!0:void 0});if(x==="vue"){if(ce.some(St=>St.type==="docType"&&St.value==="html"||St.type==="element"&&St.name.toLowerCase()==="html"))return Al(l,Kn,y);let Se,Je=()=>Se??(Se=ka(l,{canSelfClose:_,allowHtmComponentClosingTags:q,isTagNameCaseSensitive:ae})),_t=St=>Je().rootNodes.find(({startSourceSpan:o})=>o&&o.start.offset===St.startSourceSpan.start.offset)??St;for(let[St,o]of ce.entries()){let{endSourceSpan:u,startSourceSpan:h}=o;if(u===null)Xe=Je().errors,ce[St]=_t(o);else if($c(o,y)){let C=Je().errors.find(k=>k.span.start.offset>h.start.offset&&k.span.start.offset<u.end.offset);C&&Si(C),ce[St]=_t(o)}}}Xe.length>0&&Si(Xe[0]);let We=Se=>{let Je=Se.name.startsWith(":")?Se.name.slice(1).split(":")[0]:null,_t=Se.nameSpan.toString(),St=Je!==null&&_t.startsWith(`${Je}:`),o=St?_t.slice(Je.length+1):_t;Se.name=o,Se.namespace=Je,Se.hasExplicitNamespace=St},He=Se=>{switch(Se.type){case"element":We(Se);for(let Je of Se.attrs)We(Je),Je.valueSpan?(Je.value=Je.valueSpan.toString(),/["']/u.test(Je.value[0])&&(Je.value=Je.value.slice(1,-1))):Je.value=null;break;case"comment":Se.value=Se.sourceSpan.toString().slice(4,-3);break;case"text":Se.value=Se.sourceSpan.toString();break}},Ne=(Se,Je)=>{let _t=Se.toLowerCase();return Je(_t)?_t:Se},It=Se=>{if(Se.type==="element"&&(I&&(!Se.namespace||Se.namespace===Se.tagDefinition.implicitNamespacePrefix||Vi(Se))&&(Se.name=Ne(Se.name,Je=>Fs.has(Je))),Y))for(let Je of Se.attrs)Je.namespace||(Je.name=Ne(Je.name,_t=>Es.has(Se.name)&&(Es.get("*").has(_t)||Es.get(Se.name).has(_t))))},Ft=Se=>{Se.sourceSpan&&Se.endSourceSpan&&(Se.sourceSpan=new Me(Se.sourceSpan.start,Se.endSourceSpan.end))},tr=Se=>{if(Se.type==="element"){let Je=Cu(ae?Se.name:Se.name.toLowerCase());!Se.namespace||Se.namespace===Je.implicitNamespacePrefix||Vi(Se)?Se.tagDefinition=Je:Se.tagDefinition=Cu("")}};return Uc(new class extends xl{visitExpansionCase(Se,Je){x==="angular"&&this.visitChildren(Je,_t=>{_t(Se.expression)})}visit(Se){He(Se),tr(Se),It(Se),Ft(Se)}},ce),ce}function $c(l,d){var y;if(l.type!=="element"||l.name!=="template")return!1;let x=(y=l.attrs.find(_=>_.name==="lang"))==null?void 0:y.value;return!x||fa(d,{language:x})==="html"}function Si(l){let{msg:d,span:{start:y,end:x}}=l;throw Ou(d,{loc:{start:{line:y.line+1,column:y.col+1},end:{line:x.line+1,column:x.col+1}},cause:l})}function Bu(l,d,y={},x=!0){let{frontMatter:_,content:I}=x?Tl(l):{frontMatter:null,content:l},Y=new fn(l,y.filepath),q=new Ea(Y,0,0,0),ae=q.moveBy(l.length),we={type:"root",sourceSpan:new Me(q,ae),children:Al(I,d,y)};if(_){let We=new Ea(Y,0,0,0),He=We.moveBy(_.raw.length);_.sourceSpan=new Me(We,He),we.children.unshift(_)}let ce=new Nn(we),Xe=(We,He)=>{let{offset:Ne}=He,It=z(!1,l.slice(0,Ne),/[^\n\r]/gu," "),Ft=Bu(It+We,d,y,!1);Ft.sourceSpan=new Me(He,j(!1,Ft.children,-1).sourceSpan.end);let tr=Ft.children[0];return tr.length===Ne?Ft.children.shift():(tr.sourceSpan=new Me(tr.sourceSpan.start.moveBy(Ne),tr.sourceSpan.end),tr.value=tr.value.slice(Ne)),Ft};return ce.walk(We=>{if(We.type==="comment"){let He=Ta(We,Xe);He&&We.parent.replaceChild(We,He)}pn(We),Qc(We),Fi(We)}),ce}function ki(l){return{parse:(d,y)=>Bu(d,l,y),hasPragma:cr,hasIgnorePragma:Vn,astFormat:"html",locStart:di,locEnd:lr}}var Kn={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Ss=ki(Kn),Iu=new Set(["mj-style","mj-raw"]),Qn=ki({...Kn,name:"mjml",shouldParseAsRawText:l=>Iu.has(l)}),ks=ki({name:"angular"}),Ts=ki({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(l,d,y,x){return l.toLowerCase()!=="html"&&!y&&(l!=="template"||x.some(({name:_,value:I})=>_==="lang"&&I!=="html"&&I!==""&&I!==void 0))}}),_l=ki({name:"lwc",canSelfClose:!1}),Rl={html:_c};return v(O)})})(Fg)),Fg.exports}var Gy=f1();const h1=kw({__proto__:null,default:nd(Gy)},[Gy]);var p1=Object.create,Sg=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,m1=Object.getOwnPropertyNames,v1=Object.getPrototypeOf,b1=Object.prototype.hasOwnProperty,Yy=e=>{throw TypeError(e)},y1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kg=(e,t)=>{for(var r in t)Sg(e,r,{get:t[r],enumerable:!0})},w1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of m1(t))!b1.call(e,i)&&i!==r&&Sg(e,i,{get:()=>t[i],enumerable:!(n=g1(t,i))||n.enumerable});return e},x1=(e,t,r)=>(r=e!=null?p1(v1(e)):{},w1(Sg(r,"default",{value:e,enumerable:!0}),e)),D1=(e,t,r)=>t.has(e)||Yy("Cannot "+r),C1=(e,t,r)=>t.has(e)?Yy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),md=(e,t,r)=>(D1(e,t,"access private method"),r),E1=y1(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(){return new Proxy({},{get:()=>c=>c})}var r=/\r\n|[\n\r\u2028\u2029]/;function n(c,f,g){let b=Object.assign({column:0,line:-1},c.start),m=Object.assign({},b,c.end),{linesAbove:v=2,linesBelow:E=3}=g||{},A=b.line,F=b.column,S=m.line,N=m.column,O=Math.max(A-(v+1),0),B=Math.min(f.length,S+E);A===-1&&(O=0),S===-1&&(B=f.length);let z=S-A,Z={};if(z)for(let V=0;V<=z;V++){let J=V+A;if(!F)Z[J]=!0;else if(V===0){let $=f[J-1].length;Z[J]=[F,$-F+1]}else if(V===z)Z[J]=[0,N];else{let $=f[J-V].length;Z[J]=[0,$]}}else F===N?F?Z[A]=[F,0]:Z[A]=!0:Z[A]=[F,N-F];return{start:O,end:B,markerLines:Z}}function i(c,f,g={}){let b=t(),m=c.split(r),{start:v,end:E,markerLines:A}=n(f,m,g),F=f.start&&typeof f.start.column=="number",S=String(E).length,N=c.split(r,E).slice(v,E).map((O,B)=>{let z=v+1+B,Z=` ${` ${z}`.slice(-S)} |`,V=A[z],J=!A[z+1];if(V){let $="";if(Array.isArray(V)){let K=O.slice(0,Math.max(V[0]-1,0)).replace(/[^\t]/g," "),ve=V[1]||1;$=[`
|
|
208
|
-
`,
|
|
209
|
-
`);return
|
|
210
|
-
${
|
|
211
|
-
`?"crlf":"cr":"lf"}function
|
|
86
|
+
`)}function cn(o){return M(!1,M(!1,o,"'","'"),""",'"')}function Pr(o){return cn(o.value)}var dn=new Set(["template","style","script"]);function bi(o,d){return On(o,d)&&!dn.has(o.fullName)}function On(o,d){return d.parser==="vue"&&o.type==="element"&&o.parent.type==="root"&&o.fullName.toLowerCase()!=="html"}function Bn(o,d){return On(o,d)&&(bi(o,d)||o.attrMap.lang&&o.attrMap.lang!=="html")}function yi(o){let d=o.fullName;return d.charAt(0)==="#"||d==="slot-scope"||d==="v-slot"||d.startsWith("v-slot:")}function pl(o,d){let y=o.parent;if(!On(y,d))return!1;let w=y.fullName,A=o.fullName;return w==="script"&&A==="setup"||w==="style"&&A==="vars"}function us(o,d=o.value){return o.parent.isWhitespaceSensitive?o.parent.isIndentationSensitive?rr(d):rr(ea(as(d)),De):ka(Ye,Nr.split(d))}function cs(o,d){return On(o,d)&&o.name==="script"}var gl=/\{\{(.+?)\}\}/su;async function fu(o,d){let y=[];for(let[w,A]of o.split(gl).entries())if(w%2===0)y.push(rr(A));else try{y.push(We(["{{",Vr([Ye,await lt(A,d,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),Ye,"}}"]))}catch{y.push("{{",rr(A),"}}")}return y}function ds({parser:o}){return(d,y,w)=>lt(Pr(w.node),d,{parser:o},bt)}var ml=ds({parser:"__ng_action"}),vl=ds({parser:"__ng_binding"}),hu=ds({parser:"__ng_directive"});function xi(o,d){if(d.parser!=="angular")return;let{node:y}=o,w=y.fullName;if(w.startsWith("(")&&w.endsWith(")")||w.startsWith("on-"))return ml;if(w.startsWith("[")&&w.endsWith("]")||/^bind(?:on)?-/u.test(w)||/^ng-(?:if|show|hide|class|style)$/u.test(w))return vl;if(w.startsWith("*"))return hu;let A=Pr(y);if(/^i18n(?:-.+)?$/u.test(w))return()=>li(Zo(us(y,A.trim())),!A.includes("@@"));if(gl.test(A))return L=>fu(A,L)}var bl=xi;function xo(o,d){let{node:y}=o,w=Pr(y);if(y.fullName==="class"&&!d.parentParser&&!w.includes("{{"))return()=>w.trim().split(/\s+/u).join(" ")}var pu=xo;function wo(o){return o===" "||o===`
|
|
87
|
+
`||o==="\f"||o==="\r"||o===" "}var yl=/^[ \t\n\r\u000c]+/,Pa=/^[, \t\n\r\u000c]+/,fs=/^[^ \t\n\r\u000c]+/,Do=/[,]+$/,hs=/^\d+$/,wi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function La(o){let d=o.length,y,w,A,L,G,Z=0,ue;function be(ze){let tt,wt=ze.exec(o.substring(Z));if(wt)return[tt]=wt,Z+=tt.length,tt}let he=[];for(;;){if(be(Pa),Z>=d){if(he.length===0)throw new Error("Must contain one or more image candidate strings.");return he}ue=Z,y=be(fs),w=[],y.slice(-1)===","?(y=y.replace(Do,""),Re()):Me()}function Me(){for(be(yl),A="",L="in descriptor";;){if(G=o.charAt(Z),L==="in descriptor")if(wo(G))A&&(w.push(A),A="",L="after descriptor");else if(G===","){Z+=1,A&&w.push(A),Re();return}else if(G==="(")A+=G,L="in parens";else if(G===""){A&&w.push(A),Re();return}else A+=G;else if(L==="in parens")if(G===")")A+=G,L="in descriptor";else if(G===""){w.push(A),Re();return}else A+=G;else if(L==="after descriptor"&&!wo(G))if(G===""){Re();return}else L="in descriptor",Z-=1;Z+=1}}function Re(){let ze=!1,tt,wt,gt,kt,ye={},Be,Dt,ft,ur,rn;for(kt=0;kt<w.length;kt++)Be=w[kt],Dt=Be[Be.length-1],ft=Be.substring(0,Be.length-1),ur=parseInt(ft,10),rn=parseFloat(ft),hs.test(ft)&&Dt==="w"?((tt||wt)&&(ze=!0),ur===0?ze=!0:tt=ur):wi.test(ft)&&Dt==="x"?((tt||wt||gt)&&(ze=!0),rn<0?ze=!0:wt=rn):hs.test(ft)&&Dt==="h"?((gt||wt)&&(ze=!0),ur===0?ze=!0:gt=ur):ze=!0;if(!ze)ye.source={value:y,startOffset:ue},tt&&(ye.width={value:tt}),wt&&(ye.density={value:wt}),gt&&(ye.height={value:gt}),he.push(ye);else throw new Error(`Invalid srcset descriptor found in "${o}" at "${Be}".`)}}var gu=La;function mu(o){if(o.node.fullName==="srcset"&&(o.parent.fullName==="img"||o.parent.fullName==="source"))return()=>ta(Pr(o.node))}var At={width:"w",height:"h",density:"x"},Di=Object.keys(At);function ta(o){let d=gu(o),y=Di.filter(he=>d.some(Me=>Object.prototype.hasOwnProperty.call(Me,he)));if(y.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[w]=y,A=At[w],L=d.map(he=>he.source.value),G=Math.max(...L.map(he=>he.length)),Z=d.map(he=>he[w]?String(he[w].value):""),ue=Z.map(he=>{let Me=he.indexOf(".");return Me===-1?he.length:Me}),be=Math.max(...ue);return li(ka([",",Ye],L.map((he,Me)=>{let Re=[he],ze=Z[Me];if(ze){let tt=G-he.length+1,wt=be-ue[Me],gt=" ".repeat(tt+wt);Re.push(Sa(gt," "),ze+A)}return Re})))}var Ci=mu;function xl(o,d){let{node:y}=o,w=Pr(o.node).trim();if(y.fullName==="style"&&!d.parentParser&&!w.includes("{{"))return async A=>li(await A(w,{parser:"css",__isHTMLStyleAttribute:!0}))}var fn=new WeakMap;function Gt(o,d){let{root:y}=o;return fn.has(y)||fn.set(y,y.children.some(w=>cs(w,d)&&["ts","typescript"].includes(w.attrMap.lang))),fn.get(y)}var Vt=Gt;function pr(o,d,y){let{node:w}=y,A=Pr(w);return lt(`type T<${A}> = any`,o,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},bt)}function Ei(o,d,{parseWithTs:y}){return lt(`function _(${o}) {}`,d,{parser:y?"babel-ts":"babel",__isVueBindings:!0})}async function wl(o,d,y,w){let A=Pr(y.node),{left:L,operator:G,right:Z}=ps(A),ue=Vt(y,w);return[We(await lt(`function _(${L}) {}`,o,{parser:ue?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",G," ",await lt(Z,o,{parser:ue?"__ts_expression":"__js_expression"})]}function ps(o){let d=/(.*?)\s+(in|of)\s+(.*)/su,y=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,w=/^\(|\)$/gu,A=o.match(d);if(!A)return;let L={};if(L.for=A[3].trim(),!L.for)return;let G=M(!1,A[1].trim(),w,""),Z=G.match(y);Z?(L.alias=G.replace(y,""),L.iterator1=Z[1].trim(),Z[2]&&(L.iterator2=Z[2].trim())):L.alias=G;let ue=[L.alias,L.iterator1,L.iterator2];if(!ue.some((be,he)=>!be&&(he===0||ue.slice(he+1).some(Boolean))))return{left:ue.filter(Boolean).join(","),operator:A[2],right:L.for}}function Co(o,d){if(d.parser!=="vue")return;let{node:y}=o,w=y.fullName;if(w==="v-for")return wl;if(w==="generic"&&cs(y.parent,d))return pr;let A=Pr(y),L=Vt(o,d);if(yi(y)||pl(y,d))return G=>Ei(A,G,{parseWithTs:L});if(w.startsWith("@")||w.startsWith("v-on:"))return G=>gs(A,G,{parseWithTs:L});if(w.startsWith(":")||w.startsWith(".")||w.startsWith("v-bind:"))return G=>wr(A,G,{parseWithTs:L});if(w.startsWith("v-"))return G=>Eo(A,G,{parseWithTs:L})}async function gs(o,d,{parseWithTs:y}){var w;try{return await Eo(o,d,{parseWithTs:y})}catch(A){if(((w=A.cause)==null?void 0:w.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw A}return lt(o,d,{parser:y?"__vue_ts_event_binding":"__vue_event_binding"},bt)}function wr(o,d,{parseWithTs:y}){return lt(o,d,{parser:y?"__vue_ts_expression":"__vue_expression"},bt)}function Eo(o,d,{parseWithTs:y}){return lt(o,d,{parser:y?"__ts_expression":"__js_expression"},bt)}var ms=Co;function Fo(o,d){let{node:y}=o;if(y.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(d.originalText.slice(y.valueSpan.start.offset,y.valueSpan.end.offset))||d.parser==="lwc"&&y.value.startsWith("{")&&y.value.endsWith("}"))return[y.rawName,"=",y.value];for(let w of[Ci,xl,pu,ms,bl]){let A=w(o,d);if(A)return vs(A)}}}function vs(o){return async(d,y,w,A)=>{let L=await o(d,y,w,A);if(L)return L=lo(L,G=>typeof G=="string"?M(!1,G,'"',"""):G),[w.node.rawName,'="',We(L),'"']}}var So=Fo,gr=new Proxy(()=>{},{get:()=>gr});function Fi(o){return o.sourceSpan.start.offset}function Pn(o){return o.sourceSpan.end.offset}function Si(o,d){return[o.isSelfClosing?"":bs(o,d),ra(o,d)]}function bs(o,d){return o.lastChild&&Zr(o.lastChild)?"":[ko(o,d),ki(o,d)]}function ra(o,d){return(o.next?Dr(o.next):Cr(o.parent))?"":[Ia(o,d),Lr(o,d)]}function ko(o,d){return Cr(o)?Ia(o.lastChild,d):""}function Lr(o,d){return Zr(o)?ki(o.parent,d):qr(o)?Qr(o.next,d):""}function ki(o,d){if(To(o,d))return"";switch(o.type){case"ieConditionalComment":return"<!";case"element":if(o.hasHtmComponentClosingTag)return"<//";default:return`</${o.rawName}`}}function Ia(o,d){if(To(o,d))return"";switch(o.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(o.isSelfClosing)return"/>";default:return">"}}function To(o,d){return!o.isSelfClosing&&!o.endSourceSpan&&(po(o)||ho(o.parent,d))}function Dr(o){return o.prev&&o.prev.type!=="docType"&&o.type!=="angularControlFlowBlock"&&!pt(o.prev)&&o.isLeadingSpaceSensitive&&!o.hasLeadingSpaces}function Cr(o){var d;return((d=o.lastChild)==null?void 0:d.isTrailingSpaceSensitive)&&!o.lastChild.hasTrailingSpaces&&!pt(Qn(o.lastChild))&&!un(o)}function Zr(o){return!o.next&&!o.hasTrailingSpaces&&o.isTrailingSpaceSensitive&&pt(Qn(o))}function qr(o){return o.next&&!pt(o.next)&&pt(o)&&o.isTrailingSpaceSensitive&&!o.hasTrailingSpaces}function Ti(o){let d=o.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return d?d[1]?d[1].split(/\s+/u):!0:!1}function na(o){return!o.prev&&o.isLeadingSpaceSensitive&&!o.hasLeadingSpaces}function ys(o,d,y){var w;let{node:A}=o;if(!ci(A.attrs))return A.isSelfClosing?" ":"";let L=((w=A.prev)==null?void 0:w.type)==="comment"&&Ti(A.prev.value),G=typeof L=="boolean"?()=>L:Array.isArray(L)?Me=>L.includes(Me.rawName):()=>!1,Z=o.map(({node:Me})=>G(Me)?rr(d.originalText.slice(Fi(Me),Pn(Me))):y(),"attrs"),ue=A.type==="element"&&A.fullName==="script"&&A.attrs.length===1&&A.attrs[0].fullName==="src"&&A.children.length===0,be=d.singleAttributePerLine&&A.attrs.length>1&&!On(A,d)?De:Ye,he=[Vr([ue?" ":Ye,ka(be,Z)])];return A.firstChild&&na(A.firstChild)||A.isSelfClosing&&Cr(A.parent)||ue?he.push(A.isSelfClosing?" ":""):he.push(d.bracketSameLine?A.isSelfClosing?" ":"":A.isSelfClosing?Ye:Xe),he}function _i(o){return o.firstChild&&na(o.firstChild)?"":l(o)}function hn(o,d,y){let{node:w}=o;return[Ai(w,d),ys(o,d,y),w.isSelfClosing?"":_i(w)]}function Ai(o,d){return o.prev&&qr(o.prev)?"":[Kr(o,d),Qr(o,d)]}function Kr(o,d){return na(o)?l(o.parent):Dr(o)?Ia(o.prev,d):""}var xs="<!doctype";function Qr(o,d){switch(o.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${o.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(o.value==="html"){let{filepath:w}=d;if(w&&/\.html?$/u.test(w))return xs}let y=Fi(o);return d.originalText.slice(y,y+xs.length)}case"angularIcuExpression":return"{";case"element":if(o.condition)return`<!--[if ${o.condition}]><!--><${o.rawName}`;default:return`<${o.rawName}`}}function l(o){switch(o.type){case"ieConditionalComment":return"]>";case"element":if(o.condition)return"><!--<![endif]-->";default:return">"}}function f(o,d){if(!o.endSourceSpan)return"";let y=o.startSourceSpan.end.offset;o.firstChild&&na(o.firstChild)&&(y-=l(o).length);let w=o.endSourceSpan.start.offset;return o.lastChild&&Zr(o.lastChild)?w+=ki(o,d).length:Cr(o)&&(w-=Ia(o.lastChild,d).length),d.originalText.slice(y,w)}var x=f,E=new Set(["if","else if","for","switch","case"]);function T(o,d){let{node:y}=o;switch(y.type){case"element":if(Or(y,d)||y.type==="interpolation")return;if(!y.isSelfClosing&&Bn(y,d)){let w=Xr(y,d);return w?async(A,L)=>{let G=x(y,d),Z=/^\s*$/u.test(G),ue="";return Z||(ue=await A(as(G),{parser:w,__embeddedInHtml:!0}),Z=ue===""),[Kr(y,d),We(hn(o,d,L)),Z?"":De,ue,Z?"":De,Si(y,d),Lr(y,d)]}:void 0}break;case"text":if(Or(y.parent,d)){let w=Xr(y.parent,d);if(w)return async A=>{let L=w==="markdown"?ea(y.value.replace(/^[^\S\n]*\n/u,"")):y.value,G={parser:w,__embeddedInHtml:!0};if(d.parser==="html"&&w==="babel"){let Z="script",{attrMap:ue}=y.parent;ue&&(ue.type==="module"||(ue.type==="text/babel"||ue.type==="text/jsx")&&ue["data-type"]==="module")&&(Z="module"),G.__babelSourceType=Z}return[Ar,Kr(y,d),await A(L,G),Lr(y,d)]}}else if(y.parent.type==="interpolation")return async w=>{let A={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return d.parser==="angular"?A.parser="__ng_interpolation":d.parser==="vue"?A.parser=Vt(o,d)?"__vue_ts_expression":"__vue_expression":A.parser="__js_expression",[Vr([Ye,await w(y.value,A)]),y.parent.next&&Dr(y.parent.next)?" ":Ye]};break;case"attribute":return So(o,d);case"front-matter":return w=>ou(y,w);case"angularControlFlowBlockParameters":return E.has(o.parent.name)?_a:void 0;case"angularLetDeclarationInitializer":return w=>lt(y.value,w,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var P=T;function j(o,d="type"){function y(w){let A=w[d],L=o[A];if(!Array.isArray(L))throw Object.assign(new Error(`Missing visitor keys for '${A}'.`),{node:w});return L}return y}var re=j,J={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},K=J,de=re(K),se=de,we="format",Ce=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,Fe=/^\s*<!--\s*@(?:format|prettier)\s*-->/u;function Se(o){return Fe.test(o)}function qe(o){return Ce.test(o)}function Ke(o){return`<!-- @${we} -->
|
|
88
|
+
|
|
89
|
+
${o}`}var Ze=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function et(o){let d=Pn(o);return o.type==="element"&&!o.endSourceSpan&&ci(o.children)?Math.max(d,et(le(!1,o.children,-1))):d}function xe(o,d,y){let w=o.node;if(po(w)){let A=et(w);return[Kr(w,d),rr(Nr.trimEnd(d.originalText.slice(Fi(w)+(w.prev&&qr(w.prev)?Qr(w).length:0),A-(w.next&&Dr(w.next)?Ia(w,d).length:0)))),Lr(w,d)]}return y()}function nt(o,d){return pt(o)&&pt(d)?o.isTrailingSpaceSensitive?o.hasTrailingSpaces?hi(d)?De:Ye:"":hi(d)?De:Xe:qr(o)&&(po(d)||d.firstChild||d.isSelfClosing||d.type==="element"&&d.attrs.length>0)||o.type==="element"&&o.isSelfClosing&&Dr(d)?"":!d.isLeadingSpaceSensitive||hi(d)||Dr(d)&&o.lastChild&&Zr(o.lastChild)&&o.lastChild.lastChild&&Zr(o.lastChild.lastChild)?De:d.hasLeadingSpaces?Ye:Xe}function Le(o,d,y){let{node:w}=o;if(dl(w))return[Ar,...o.map(L=>{let G=L.node,Z=G.prev?nt(G.prev,G):"";return[Z?[Z,Br(G.prev)?De:""]:"",xe(L,d,y)]},"children")];let A=w.children.map(()=>Symbol(""));return o.map((L,G)=>{let Z=L.node;if(pt(Z)){if(Z.prev&&pt(Z.prev)){let tt=nt(Z.prev,Z);if(tt)return Br(Z.prev)?[De,De,xe(L,d,y)]:[tt,xe(L,d,y)]}return xe(L,d,y)}let ue=[],be=[],he=[],Me=[],Re=Z.prev?nt(Z.prev,Z):"",ze=Z.next?nt(Z,Z.next):"";return Re&&(Br(Z.prev)?ue.push(De,De):Re===De?ue.push(De):pt(Z.prev)?be.push(Re):be.push(Sa("",Xe,{groupId:A[G-1]}))),ze&&(Br(Z)?pt(Z.next)&&Me.push(De,De):ze===De?pt(Z.next)&&Me.push(De):he.push(ze)),[...ue,We([...be,We([xe(L,d,y),...he],{id:A[G]})]),...Me]},"children")}function Nt(o,d,y){let{node:w}=o,A=[];ke(o)&&A.push("} "),A.push("@",w.name),w.parameters&&A.push(" (",We(y("parameters")),")"),A.push(" {");let L=Lt(w);return w.children.length>0?(w.firstChild.hasLeadingSpaces=!0,w.lastChild.hasTrailingSpaces=!0,A.push(Vr([De,Le(o,d,y)])),L&&A.push(De,"}")):L&&A.push("}"),We(A,{shouldBreak:!0})}function Lt(o){var d,y;return!(((d=o.next)==null?void 0:d.type)==="angularControlFlowBlock"&&(y=Ze.get(o.name))!=null&&y.has(o.next.name))}function ke(o){let{previous:d}=o;return d?.type==="angularControlFlowBlock"&&!po(d)&&!Lt(d)}function Rt(o,d,y){return[Vr([Xe,ka([";",Ye],o.map(y,"children"))]),Xe]}function Ln(o,d,y){let{node:w}=o;return[Ai(w,d),We([w.switchValue.trim(),", ",w.clause,w.cases.length>0?[",",Vr([Ye,ka(Ye,o.map(y,"cases"))])]:"",Xe]),ra(w,d)]}function It(o,d,y){let{node:w}=o;return[w.value," {",We([Vr([Xe,o.map(({node:A,isLast:L})=>{let G=[y()];return A.type==="text"&&(A.hasLeadingSpaces&&G.unshift(Ye),A.hasTrailingSpaces&&!L&&G.push(Ye)),G},"expression")]),Xe]),"}"]}function pn(o,d,y){let{node:w}=o;if(ho(w,d))return[Kr(w,d),We(hn(o,d,y)),rr(x(w,d)),...Si(w,d),Lr(w,d)];let A=w.children.length===1&&(w.firstChild.type==="interpolation"||w.firstChild.type==="angularIcuExpression")&&w.firstChild.isLeadingSpaceSensitive&&!w.firstChild.hasLeadingSpaces&&w.lastChild.isTrailingSpaceSensitive&&!w.lastChild.hasTrailingSpaces,L=Symbol("element-attr-group-id"),G=he=>We([We(hn(o,d,y),{id:L}),he,Si(w,d)]),Z=he=>A?vt(he,{groupId:L}):(Or(w,d)||bi(w,d))&&w.parent.type==="root"&&d.parser==="vue"&&!d.vueIndentScriptAndStyle?he:Vr(he),ue=()=>A?Sa(Xe,"",{groupId:L}):w.firstChild.hasLeadingSpaces&&w.firstChild.isLeadingSpaceSensitive?Ye:w.firstChild.type==="text"&&w.isWhitespaceSensitive&&w.isIndentationSensitive?Oe(Xe):Xe,be=()=>(w.next?Dr(w.next):Cr(w.parent))?w.lastChild.hasTrailingSpaces&&w.lastChild.isTrailingSpaceSensitive?" ":"":A?Sa(Xe,"",{groupId:L}):w.lastChild.hasTrailingSpaces&&w.lastChild.isTrailingSpaceSensitive?Ye:(w.lastChild.type==="comment"||w.lastChild.type==="text"&&w.isWhitespaceSensitive&&w.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${d.tabWidth*(o.ancestors.length-1)}}$`,"u").test(w.lastChild.value)?"":Xe;return w.children.length===0?G(w.hasDanglingSpaces&&w.isDanglingSpaceSensitive?Ye:""):G([fi(w)?Ar:"",Z([ue(),Le(o,d,y)]),be()])}function Kt(o){return o>=9&&o<=32||o==160}function Ct(o){return 48<=o&&o<=57}function Ot(o){return o>=97&&o<=122||o>=65&&o<=90}function Yt(o){return o>=97&&o<=102||o>=65&&o<=70||Ct(o)}function Ir(o){return o===10||o===13}function Jt(o){return 48<=o&&o<=55}function In(o){return o===39||o===34||o===96}var gn=/-+([a-z0-9])/g;function Mn(o){return o.replace(gn,(...d)=>d[1].toUpperCase())}var mn=class xy{constructor(d,y,w,A){this.file=d,this.offset=y,this.line=w,this.col=A}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(d){let y=this.file.content,w=y.length,A=this.offset,L=this.line,G=this.col;for(;A>0&&d<0;)if(A--,d++,y.charCodeAt(A)==10){L--;let Z=y.substring(0,A-1).lastIndexOf(`
|
|
90
|
+
`);G=Z>0?A-Z:A}else G--;for(;A<w&&d>0;){let Z=y.charCodeAt(A);A++,d--,Z==10?(L++,G=0):G++}return new xy(this.file,A,L,G)}getContext(d,y){let w=this.file.content,A=this.offset;if(A!=null){A>w.length-1&&(A=w.length-1);let L=A,G=0,Z=0;for(;G<d&&A>0&&(A--,G++,!(w[A]==`
|
|
91
|
+
`&&++Z==y)););for(G=0,Z=0;G<d&&L<w.length-1&&(L++,G++,!(w[L]==`
|
|
92
|
+
`&&++Z==y)););return{before:w.substring(A,this.offset),after:w.substring(this.offset,L+1)}}return null}},Ni=class{constructor(o,d){this.content=o,this.url=d}},Ne=class{constructor(o,d,y=o,w=null){this.start=o,this.end=d,this.fullStart=y,this.details=w}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},vn;(function(o){o[o.WARNING=0]="WARNING",o[o.ERROR=1]="ERROR"})(vn||(vn={}));var Er=class{constructor(o,d,y=vn.ERROR,w){this.span=o,this.msg=d,this.level=y,this.relatedError=w}contextualMessage(){let o=this.span.start.getContext(100,3);return o?`${this.msg} ("${o.before}[${vn[this.level]} ->]${o.after}")`:this.msg}toString(){let o=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${o}`}},Dl=[ws,Ds,Ma,Oi,Bi,aa,Mr,Es,ia,Cs];function Ri(o,d){for(let y of Dl)y(o,d);return o}function ws(o){o.walk(d=>{if(d.type==="element"&&d.tagDefinition.ignoreFirstLf&&d.children.length>0&&d.children[0].type==="text"&&d.children[0].value[0]===`
|
|
93
|
+
`){let y=d.children[0];y.value.length===1?d.removeChild(y):y.value=y.value.slice(1)}})}function Ds(o){let d=y=>{var w,A;return y.type==="element"&&((w=y.prev)==null?void 0:w.type)==="ieConditionalStartComment"&&y.prev.sourceSpan.end.offset===y.startSourceSpan.start.offset&&((A=y.firstChild)==null?void 0:A.type)==="ieConditionalEndComment"&&y.firstChild.sourceSpan.start.offset===y.startSourceSpan.end.offset};o.walk(y=>{if(y.children)for(let w=0;w<y.children.length;w++){let A=y.children[w];if(!d(A))continue;let L=A.prev,G=A.firstChild;y.removeChild(L),w--;let Z=new Ne(L.sourceSpan.start,G.sourceSpan.end),ue=new Ne(Z.start,A.sourceSpan.end);A.condition=L.condition,A.sourceSpan=ue,A.startSourceSpan=Z,A.removeChild(G)}})}function Cl(o,d,y){o.walk(w=>{if(w.children)for(let A=0;A<w.children.length;A++){let L=w.children[A];if(L.type!=="text"&&!d(L))continue;L.type!=="text"&&(L.type="text",L.value=y(L));let G=L.prev;!G||G.type!=="text"||(G.value+=L.value,G.sourceSpan=new Ne(G.sourceSpan.start,L.sourceSpan.end),w.removeChild(L),A--)}})}function Ma(o){return Cl(o,d=>d.type==="cdata",d=>`<![CDATA[${d.value}]]>`)}function Cs(o){let d=y=>{var w,A;return y.type==="element"&&y.attrs.length===0&&y.children.length===1&&y.firstChild.type==="text"&&!Nr.hasWhitespaceCharacter(y.children[0].value)&&!y.firstChild.hasLeadingSpaces&&!y.firstChild.hasTrailingSpaces&&y.isLeadingSpaceSensitive&&!y.hasLeadingSpaces&&y.isTrailingSpaceSensitive&&!y.hasTrailingSpaces&&((w=y.prev)==null?void 0:w.type)==="text"&&((A=y.next)==null?void 0:A.type)==="text"};o.walk(y=>{if(y.children)for(let w=0;w<y.children.length;w++){let A=y.children[w];if(!d(A))continue;let L=A.prev,G=A.next;L.value+=`<${A.rawName}>`+A.firstChild.value+`</${A.rawName}>`+G.value,L.sourceSpan=new Ne(L.sourceSpan.start,G.sourceSpan.end),L.isTrailingSpaceSensitive=G.isTrailingSpaceSensitive,L.hasTrailingSpaces=G.hasTrailingSpaces,y.removeChild(A),w--,y.removeChild(G)}})}function Oi(o,d){if(d.parser==="html")return;let y=/\{\{(.+?)\}\}/su;o.walk(w=>{if(Nn(w,d))for(let A of w.children){if(A.type!=="text")continue;let L=A.sourceSpan.start,G=null,Z=A.value.split(y);for(let ue=0;ue<Z.length;ue++,L=G){let be=Z[ue];if(ue%2===0){G=L.moveBy(be.length),be.length>0&&w.insertChildBefore(A,{type:"text",value:be,sourceSpan:new Ne(L,G)});continue}G=L.moveBy(be.length+4),w.insertChildBefore(A,{type:"interpolation",sourceSpan:new Ne(L,G),children:be.length===0?[]:[{type:"text",value:be,sourceSpan:new Ne(L.moveBy(2),G.moveBy(-2))}]})}w.removeChild(A)}})}function Bi(o,d){o.walk(y=>{let w=y.$children;if(!w)return;if(w.length===0||w.length===1&&w[0].type==="text"&&Nr.trim(w[0].value).length===0){y.hasDanglingSpaces=w.length>0,y.$children=[];return}let A=go(y,d),L=is(y);if(!A)for(let G=0;G<w.length;G++){let Z=w[G];if(Z.type!=="text")continue;let{leadingWhitespace:ue,text:be,trailingWhitespace:he}=yt(Z.value),Me=Z.prev,Re=Z.next;be?(Z.value=be,Z.sourceSpan=new Ne(Z.sourceSpan.start.moveBy(ue.length),Z.sourceSpan.end.moveBy(-he.length)),ue&&(Me&&(Me.hasTrailingSpaces=!0),Z.hasLeadingSpaces=!0),he&&(Z.hasTrailingSpaces=!0,Re&&(Re.hasLeadingSpaces=!0))):(y.removeChild(Z),G--,(ue||he)&&(Me&&(Me.hasTrailingSpaces=!0),Re&&(Re.hasLeadingSpaces=!0)))}y.isWhitespaceSensitive=A,y.isIndentationSensitive=L})}function Mr(o){o.walk(d=>{d.isSelfClosing=!d.children||d.type==="element"&&(d.tagDefinition.isVoid||d.endSourceSpan&&d.startSourceSpan.start===d.endSourceSpan.start&&d.startSourceSpan.end===d.endSourceSpan.end)})}function Es(o,d){o.walk(y=>{y.type==="element"&&(y.hasHtmComponentClosingTag=y.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(d.originalText.slice(y.endSourceSpan.start.offset,y.endSourceSpan.end.offset)))})}function aa(o,d){o.walk(y=>{y.cssDisplay=vi(y,d)})}function ia(o,d){o.walk(y=>{let{children:w}=y;if(w){if(w.length===0){y.isDanglingSpaceSensitive=cl(y,d);return}for(let A of w)A.isLeadingSpaceSensitive=ll(A,d),A.isTrailingSpaceSensitive=ul(A,d);for(let A=0;A<w.length;A++){let L=w[A];L.isLeadingSpaceSensitive=(A===0||L.prev.isTrailingSpaceSensitive)&&L.isLeadingSpaceSensitive,L.isTrailingSpaceSensitive=(A===w.length-1||L.next.isLeadingSpaceSensitive)&&L.isTrailingSpaceSensitive}}})}var Pi=Ri;function zn(o,d,y){let{node:w}=o;switch(w.type){case"front-matter":return rr(w.raw);case"root":return d.__onHtmlRoot&&d.__onHtmlRoot(w),[We(Le(o,d,y)),De];case"element":case"ieConditionalComment":return pn(o,d,y);case"angularControlFlowBlock":return Nt(o,d,y);case"angularControlFlowBlockParameters":return Rt(o,d,y);case"angularControlFlowBlockParameter":return Nr.trim(w.expression);case"angularLetDeclaration":return We(["@let ",We([w.id," =",We(Vr([Ye,y("init")]))]),";"]);case"angularLetDeclarationInitializer":return w.value;case"angularIcuExpression":return Ln(o,d,y);case"angularIcuCase":return It(o,d,y);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ai(w),ra(w)];case"interpolation":return[Ai(w,d),...o.map(y,"children"),ra(w,d)];case"text":{if(w.parent.type==="interpolation"){let Z=/\n[^\S\n]*$/u,ue=Z.test(w.value),be=ue?w.value.replace(Z,""):w.value;return[rr(be),ue?De:""]}let A=Kr(w,d),L=us(w),G=Lr(w,d);return L[0]=[A,L[0]],L.push([L.pop(),G]),Zo(L)}case"docType":return[We([Ai(w,d)," ",M(!1,w.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),ra(w,d)];case"comment":return[Kr(w,d),rr(d.originalText.slice(Fi(w),Pn(w))),Lr(w,d)];case"attribute":{if(w.value===null)return w.rawName;let A=cn(w.value),L=Ko(A,'"');return[w.rawName,"=",L,rr(L==='"'?M(!1,A,'"',"""):M(!1,A,"'","'")),L]}case"cdata":default:throw new ir(w,"HTML")}}var Li={preprocess:Pi,print:zn,insertPragma:Ke,massageAstNode:$s,embed:P,getVisitorKeys:se},$r=Li,Ii=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],oa={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},bn="HTML",Et={bracketSameLine:oa.bracketSameLine,htmlWhitespaceSensitivity:{category:bn,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:oa.singleAttributePerLine,vueIndentScriptAndStyle:{category:bn,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},_o=Et,Fr={};g(Fr,{angular:()=>Fu,html:()=>Rs,lwc:()=>Ja,mjml:()=>Yc,vue:()=>Dp});var sa;(function(o){o[o.Emulated=0]="Emulated",o[o.None=2]="None",o[o.ShadowDom=3]="ShadowDom"})(sa||(sa={}));var za;(function(o){o[o.OnPush=0]="OnPush",o[o.Default=1]="Default"})(za||(za={}));var Hn;(function(o){o[o.None=0]="None",o[o.SignalBased=1]="SignalBased",o[o.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Hn||(Hn={}));var zr={name:"custom-elements"},yn={name:"no-errors-schema"},it;(function(o){o[o.NONE=0]="NONE",o[o.HTML=1]="HTML",o[o.STYLE=2]="STYLE",o[o.SCRIPT=3]="SCRIPT",o[o.URL=4]="URL",o[o.RESOURCE_URL=5]="RESOURCE_URL"})(it||(it={}));var en;(function(o){o[o.Error=0]="Error",o[o.Warning=1]="Warning",o[o.Ignore=2]="Ignore"})(en||(en={}));var mr;(function(o){o[o.RAW_TEXT=0]="RAW_TEXT",o[o.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",o[o.PARSABLE_DATA=2]="PARSABLE_DATA"})(mr||(mr={}));function Ha(o,d=!0){if(o[0]!=":")return[null,o];let y=o.indexOf(":",1);if(y===-1){if(d)throw new Error(`Unsupported format "${o}" expecting ":namespace:name"`);return[null,o]}return[o.slice(1,y),o.slice(y+1)]}function la(o){return Ha(o)[1]==="ng-container"}function Ao(o){return Ha(o)[1]==="ng-content"}function ut(o){return o===null?null:Ha(o)[0]}function xn(o,d){return o?`:${o}:${d}`:d}var tn;function wn(){return tn||(tn={},jn(it.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),jn(it.STYLE,["*|style"]),jn(it.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),jn(it.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),tn}function jn(o,d){for(let y of d)tn[y.toLowerCase()]=o}var Mi=class{},vr="boolean",El="number",ua="string",Fs="object",ja=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],ca=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),zi=Array.from(ca).reduce((o,[d,y])=>(o.set(d,y),o),new Map),Un=class extends Mi{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,ja.forEach(o=>{let d=new Map,y=new Set,[w,A]=o.split("|"),L=A.split(","),[G,Z]=w.split("^");G.split(",").forEach(be=>{this._schema.set(be.toLowerCase(),d),this._eventSchema.set(be.toLowerCase(),y)});let ue=Z&&this._schema.get(Z.toLowerCase());if(ue){for(let[be,he]of ue)d.set(be,he);for(let be of this._eventSchema.get(Z.toLowerCase()))y.add(be)}L.forEach(be=>{if(be.length>0)switch(be[0]){case"*":y.add(be.substring(1));break;case"!":d.set(be.substring(1),vr);break;case"#":d.set(be.substring(1),El);break;case"%":d.set(be.substring(1),Fs);break;default:d.set(be,ua)}})})}hasProperty(o,d,y){if(y.some(w=>w.name===yn.name))return!0;if(o.indexOf("-")>-1){if(la(o)||Ao(o))return!1;if(y.some(w=>w.name===zr.name))return!0}return(this._schema.get(o.toLowerCase())||this._schema.get("unknown")).has(d)}hasElement(o,d){return d.some(y=>y.name===yn.name)||o.indexOf("-")>-1&&(la(o)||Ao(o)||d.some(y=>y.name===zr.name))?!0:this._schema.has(o.toLowerCase())}securityContext(o,d,y){y&&(d=this.getMappedPropName(d)),o=o.toLowerCase(),d=d.toLowerCase();let w=wn()[o+"|"+d];return w||(w=wn()["*|"+d],w||it.NONE)}getMappedPropName(o){return ca.get(o)??o}getDefaultComponentElementName(){return"ng-component"}validateProperty(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${o}' is disallowed for security reasons, please use (${o.slice(2)})=...
|
|
94
|
+
If '${o}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${o}' is disallowed for security reasons, please use (${o.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(o){let d=this._schema.get(o.toLowerCase())||this._schema.get("unknown");return Array.from(d.keys()).map(y=>zi.get(y)??y)}allKnownEventsOfElement(o){return Array.from(this._eventSchema.get(o.toLowerCase())??[])}normalizeAnimationStyleProperty(o){return Mn(o)}normalizeAnimationStyleValue(o,d,y){let w="",A=y.toString().trim(),L=null;if(Hi(o)&&y!==0&&y!=="0")if(typeof y=="number")w="px";else{let G=y.match(/^[+-]?[\d\.]+([a-z]*)$/);G&&G[1].length==0&&(L=`Please provide a CSS unit value for ${d}:${y}`)}return{error:L,value:A+w}}};function Hi(o){switch(o){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var Te=class{constructor({closedByChildren:o,implicitNamespacePrefix:d,contentType:y=mr.PARSABLE_DATA,closedByParent:w=!1,isVoid:A=!1,ignoreFirstLf:L=!1,preventNamespaceInheritance:G=!1,canSelfClose:Z=!1}={}){this.closedByChildren={},this.closedByParent=!1,o&&o.length>0&&o.forEach(ue=>this.closedByChildren[ue]=!0),this.isVoid=A,this.closedByParent=w||A,this.implicitNamespacePrefix=d||null,this.contentType=y,this.ignoreFirstLf=L,this.preventNamespaceInheritance=G,this.canSelfClose=Z??A}isClosedByChild(o){return this.isVoid||o.toLowerCase()in this.closedByChildren}getContentType(o){return typeof this.contentType=="object"?(o===void 0?void 0:this.contentType[o])??this.contentType.default:this.contentType}},ji,Dn;function br(o){return Dn||(ji=new Te({canSelfClose:!0}),Dn=Object.assign(Object.create(null),{base:new Te({isVoid:!0}),meta:new Te({isVoid:!0}),area:new Te({isVoid:!0}),embed:new Te({isVoid:!0}),link:new Te({isVoid:!0}),img:new Te({isVoid:!0}),input:new Te({isVoid:!0}),param:new Te({isVoid:!0}),hr:new Te({isVoid:!0}),br:new Te({isVoid:!0}),source:new Te({isVoid:!0}),track:new Te({isVoid:!0}),wbr:new Te({isVoid:!0}),p:new Te({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Te({closedByChildren:["tbody","tfoot"]}),tbody:new Te({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Te({closedByChildren:["tbody"],closedByParent:!0}),tr:new Te({closedByChildren:["tr"],closedByParent:!0}),td:new Te({closedByChildren:["td","th"],closedByParent:!0}),th:new Te({closedByChildren:["td","th"],closedByParent:!0}),col:new Te({isVoid:!0}),svg:new Te({implicitNamespacePrefix:"svg"}),foreignObject:new Te({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Te({implicitNamespacePrefix:"math"}),li:new Te({closedByChildren:["li"],closedByParent:!0}),dt:new Te({closedByChildren:["dt","dd"]}),dd:new Te({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Te({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Te({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Te({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Te({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Te({closedByChildren:["optgroup"],closedByParent:!0}),option:new Te({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Te({ignoreFirstLf:!0}),listing:new Te({ignoreFirstLf:!0}),style:new Te({contentType:mr.RAW_TEXT}),script:new Te({contentType:mr.RAW_TEXT}),title:new Te({contentType:{default:mr.ESCAPABLE_RAW_TEXT,svg:mr.PARSABLE_DATA}}),textarea:new Te({contentType:mr.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Un().allKnownElementNames().forEach(d=>{!Dn[d]&&ut(d)===null&&(Dn[d]=new Te({canSelfClose:!1}))})),Dn[o]??ji}var sr=class{constructor(o,d){this.sourceSpan=o,this.i18n=d}},Ua=class extends sr{constructor(o,d,y,w){super(d,w),this.value=o,this.tokens=y,this.type="text"}visit(o,d){return o.visitText(this,d)}},da=class extends sr{constructor(o,d,y,w){super(d,w),this.value=o,this.tokens=y,this.type="cdata"}visit(o,d){return o.visitCdata(this,d)}},Ui=class extends sr{constructor(o,d,y,w,A,L){super(w,L),this.switchValue=o,this.type=d,this.cases=y,this.switchValueSourceSpan=A}visit(o,d){return o.visitExpansion(this,d)}},Wa=class{constructor(o,d,y,w,A){this.value=o,this.expression=d,this.sourceSpan=y,this.valueSourceSpan=w,this.expSourceSpan=A,this.type="expansionCase"}visit(o,d){return o.visitExpansionCase(this,d)}},Wi=class extends sr{constructor(o,d,y,w,A,L,G){super(y,G),this.name=o,this.value=d,this.keySpan=w,this.valueSpan=A,this.valueTokens=L,this.type="attribute"}visit(o,d){return o.visitAttribute(this,d)}get nameSpan(){return this.keySpan}},Qt=class extends sr{constructor(o,d,y,w,A,L=null,G=null,Z){super(w,Z),this.name=o,this.attrs=d,this.children=y,this.startSourceSpan=A,this.endSourceSpan=L,this.nameSpan=G,this.type="element"}visit(o,d){return o.visitElement(this,d)}},Wn=class{constructor(o,d){this.value=o,this.sourceSpan=d,this.type="comment"}visit(o,d){return o.visitComment(this,d)}},fa=class{constructor(o,d){this.value=o,this.sourceSpan=d,this.type="docType"}visit(o,d){return o.visitDocType(this,d)}},Sr=class extends sr{constructor(o,d,y,w,A,L,G=null,Z){super(w,Z),this.name=o,this.parameters=d,this.children=y,this.nameSpan=A,this.startSourceSpan=L,this.endSourceSpan=G,this.type="block"}visit(o,d){return o.visitBlock(this,d)}},Ga=class{constructor(o,d){this.expression=o,this.sourceSpan=d,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(o,d){return o.visitBlockParameter(this,d)}},s=class{constructor(o,d,y,w,A){this.name=o,this.value=d,this.sourceSpan=y,this.nameSpan=w,this.valueSpan=A,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(o,d){return o.visitLetDeclaration(this,d)}};function c(o,d,y=null){let w=[],A=o.visit?L=>o.visit(L,y)||L.visit(o,y):L=>L.visit(o,y);return d.forEach(L=>{let G=A(L);G&&w.push(G)}),w}var v=class{constructor(){}visitElement(o,d){this.visitChildren(d,y=>{y(o.attrs),y(o.children)})}visitAttribute(o,d){}visitText(o,d){}visitCdata(o,d){}visitComment(o,d){}visitDocType(o,d){}visitExpansion(o,d){return this.visitChildren(d,y=>{y(o.cases)})}visitExpansionCase(o,d){}visitBlock(o,d){this.visitChildren(d,y=>{y(o.parameters),y(o.children)})}visitBlockParameter(o,d){}visitLetDeclaration(o,d){}visitChildren(o,d){let y=[],w=this;function A(L){L&&y.push(c(w,L,o))}return d(A),Array.prototype.concat.apply([],y)}},C={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",af:"",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"",ic:"",InvisibleTimes:"",it:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",ZeroWidthSpace:"",NewLine:`
|
|
95
|
+
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},k="";C.ngsp=k;var B=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function z(o,d){if(d!=null&&!(Array.isArray(d)&&d.length==2))throw new Error(`Expected '${o}' to be an array, [start, end].`);if(d!=null){let y=d[0],w=d[1];B.forEach(A=>{if(A.test(y)||A.test(w))throw new Error(`['${y}', '${w}'] contains unusable interpolation symbol.`)})}}var X=class wy{static fromArray(d){return d?(z("interpolation",d),new wy(d[0],d[1])):W}constructor(d,y){this.start=d,this.end=y}},W=new X("{{","}}"),V=class extends Er{constructor(o,d,y){super(y,o),this.tokenType=d}},oe=class{constructor(o,d,y){this.tokens=o,this.errors=d,this.nonNormalizedIcuExpressions=y}};function ae(o,d,y,w={}){let A=new je(new Ni(o,d),y,w);return A.tokenize(),new oe(Va(A.tokens),A.errors,A.nonNormalizedIcuExpressions)}var pe=/\r\n?/g;function me(o){return`Unexpected character "${o===0?"EOF":String.fromCharCode(o)}"`}function Ee(o){return`Unknown entity "${o}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function _e(o,d){return`Unable to parse entity "${d}" - ${o} character reference entities must end with ";"`}var Je;(function(o){o.HEX="hexadecimal",o.DEC="decimal"})(Je||(Je={}));var ct=class{constructor(o){this.error=o}},je=class{constructor(o,d,y){this._getTagContentType=d,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=y.tokenizeExpansionForms||!1,this._interpolationConfig=y.interpolationConfig||W,this._leadingTriviaCodePoints=y.leadingTriviaChars&&y.leadingTriviaChars.map(A=>A.codePointAt(0)||0),this._canSelfClose=y.canSelfClose||!1,this._allowHtmComponentClosingTags=y.allowHtmComponentClosingTags||!1;let w=y.range||{endPos:o.content.length,startPos:0,startLine:0,startCol:0};this._cursor=y.escapedString?new Gn(o,w):new En(o,w),this._preserveLineEndings=y.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=y.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=y.tokenizeBlocks??!0,this._tokenizeLet=y.tokenizeLet??!0;try{this._cursor.init()}catch(A){this.handleError(A)}}_processCarriageReturns(o){return this._preserveLineEndings?o:o.replace(pe,`
|
|
96
|
+
`)}tokenize(){for(;this._cursor.peek()!==0;){let o=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(o):this._attemptStr("--")?this._consumeComment(o):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(o):this._consumeBogusComment(o);else if(this._attemptCharCode(47))this._consumeTagClose(o);else{let d=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=d,this._consumeBogusComment(o)):this._consumeTagOpen(o)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(o):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(o):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(o):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(d){this.handleError(d)}}this._beginToken(34),this._endToken([])}_getBlockName(){let o=!1,d=this._cursor.clone();return this._attemptCharCodeUntilFn(y=>Kt(y)?!o:ot(y)?(o=!0,!1):!0),this._cursor.getChars(d).trim()}_consumeBlockStart(o){this._beginToken(25,o);let d=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(He),this._attemptCharCode(41))this._attemptCharCodeUntilFn(He);else{d.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):d.type=29}_consumeBlockEnd(o){this._beginToken(27,o),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(zt);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let o=this._cursor.clone(),d=null,y=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||d!==null;){let w=this._cursor.peek();if(w===92)this._cursor.advance();else if(w===d)d=null;else if(d===null&&In(w))d=w;else if(w===40&&d===null)y++;else if(w===41&&d===null){if(y===0)break;y>0&&y--}this._cursor.advance()}this._endToken([this._cursor.getChars(o)]),this._attemptCharCodeUntilFn(zt)}}_consumeLetDeclaration(o){if(this._beginToken(30,o),Kt(this._cursor.peek()))this._attemptCharCodeUntilFn(He);else{let y=this._endToken([this._cursor.getChars(o)]);y.type=33;return}let d=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(He),!this._attemptCharCode(61)){d.type=33;return}this._attemptCharCodeUntilFn(y=>He(y)&&!Ir(y)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(d.type=33,d.sourceSpan=this._cursor.getSpan(o))}_getLetDeclarationName(){let o=this._cursor.clone(),d=!1;return this._attemptCharCodeUntilFn(y=>Ot(y)||y===36||y===95||d&&Ct(y)?(d=!0,!1):!0),this._cursor.getChars(o).trim()}_consumeLetDeclarationValue(){let o=this._cursor.clone();for(this._beginToken(31,o);this._cursor.peek()!==0;){let d=this._cursor.peek();if(d===59)break;In(d)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(y=>y===92?(this._cursor.advance(),!1):y===d)),this._cursor.advance()}this._endToken([this._cursor.getChars(o)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(kr(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(o,d=this._cursor.clone()){this._currentTokenStart=d,this._currentTokenType=o}_endToken(o,d){if(this._currentTokenStart===null)throw new V("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(d));if(this._currentTokenType===null)throw new V("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let y={type:this._currentTokenType,parts:o,sourceSpan:(d??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(y),this._currentTokenStart=null,this._currentTokenType=null,y}_createError(o,d){this._isInExpansionForm()&&(o+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let y=new V(o,this._currentTokenType,d);return this._currentTokenStart=null,this._currentTokenType=null,new ct(y)}handleError(o){if(o instanceof Vn&&(o=this._createError(o.msg,this._cursor.getSpan(o.cursor))),o instanceof ct)this.errors.push(o.error);else throw o}_attemptCharCode(o){return this._cursor.peek()===o?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(o){return Ft(this._cursor.peek(),o)?(this._cursor.advance(),!0):!1}_requireCharCode(o){let d=this._cursor.clone();if(!this._attemptCharCode(o))throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(d))}_attemptStr(o){let d=o.length;if(this._cursor.charsLeft()<d)return!1;let y=this._cursor.clone();for(let w=0;w<d;w++)if(!this._attemptCharCode(o.charCodeAt(w)))return this._cursor=y,!1;return!0}_attemptStrCaseInsensitive(o){for(let d=0;d<o.length;d++)if(!this._attemptCharCodeCaseInsensitive(o.charCodeAt(d)))return!1;return!0}_requireStr(o){let d=this._cursor.clone();if(!this._attemptStr(o))throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(d))}_requireStrCaseInsensitive(o){let d=this._cursor.clone();if(!this._attemptStrCaseInsensitive(o))throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(d))}_attemptCharCodeUntilFn(o){for(;!o(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(o,d){let y=this._cursor.clone();if(this._attemptCharCodeUntilFn(o),this._cursor.diff(y)<d)throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(y))}_attemptUntilChar(o){for(;this._cursor.peek()!==o;)this._cursor.advance()}_readChar(){let o=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),o}_consumeEntity(o){this._beginToken(9);let d=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let y=this._attemptCharCode(120)||this._attemptCharCode(88),w=this._cursor.clone();if(this._attemptCharCodeUntilFn(Mt),this._cursor.peek()!=59){this._cursor.advance();let L=y?Je.HEX:Je.DEC;throw this._createError(_e(L,this._cursor.getChars(d)),this._cursor.getSpan())}let A=this._cursor.getChars(w);this._cursor.advance();try{let L=parseInt(A,y?16:10);this._endToken([String.fromCharCode(L),this._cursor.getChars(d)])}catch{throw this._createError(Ee(this._cursor.getChars(d)),this._cursor.getSpan())}}else{let y=this._cursor.clone();if(this._attemptCharCodeUntilFn(Cn),this._cursor.peek()!=59)this._beginToken(o,d),this._cursor=y,this._endToken(["&"]);else{let w=this._cursor.getChars(y);this._cursor.advance();let A=C[w];if(!A)throw this._createError(Ee(w),this._cursor.getSpan(d));this._endToken([A,`&${w};`])}}}_consumeRawText(o,d){this._beginToken(o?6:7);let y=[];for(;;){let w=this._cursor.clone(),A=d();if(this._cursor=w,A)break;o&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(y.join(""))]),y.length=0,this._consumeEntity(6),this._beginToken(6)):y.push(this._readChar())}this._endToken([this._processCarriageReturns(y.join(""))])}_consumeComment(o){this._beginToken(10,o),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(o){this._beginToken(10,o),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(o){this._beginToken(12,o),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(o){this._beginToken(18,o),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let o=this._cursor.clone(),d="";for(;this._cursor.peek()!==58&&!lr(this._cursor.peek());)this._cursor.advance();let y;this._cursor.peek()===58?(d=this._cursor.getChars(o),this._cursor.advance(),y=this._cursor.clone()):y=o,this._requireCharCodeUntilFn(dt,d===""?0:1);let w=this._cursor.getChars(y);return[d,w]}_consumeTagOpen(o){let d,y,w,A=[];try{if(!Ot(this._cursor.peek()))throw this._createError(me(this._cursor.peek()),this._cursor.getSpan(o));for(w=this._consumeTagOpenStart(o),y=w.parts[0],d=w.parts[1],this._attemptCharCodeUntilFn(He);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[G,Z]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(He),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(He);let ue=this._consumeAttributeValue();A.push({prefix:G,name:Z,value:ue})}else A.push({prefix:G,name:Z});this._attemptCharCodeUntilFn(He)}this._consumeTagOpenEnd()}catch(G){if(G instanceof ct){w?w.type=4:(this._beginToken(5,o),this._endToken(["<"]));return}throw G}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let L=this._getTagContentType(d,y,this._fullNameStack.length>0,A);this._handleFullNameStackForTagOpen(y,d),L===mr.RAW_TEXT?this._consumeRawTextWithTagClose(y,d,!1):L===mr.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(y,d,!0)}_consumeRawTextWithTagClose(o,d,y){this._consumeRawText(y,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(He),!this._attemptStrCaseInsensitive(o?`${o}:${d}`:d))?!1:(this._attemptCharCodeUntilFn(He),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(w=>w===62,3),this._cursor.advance(),this._endToken([o,d]),this._handleFullNameStackForTagClose(o,d)}_consumeTagOpenStart(o){this._beginToken(0,o);let d=this._consumePrefixAndName();return this._endToken(d)}_consumeAttributeName(){let o=this._cursor.peek();if(o===39||o===34)throw this._createError(me(o),this._cursor.getSpan());this._beginToken(14);let d=this._consumePrefixAndName();return this._endToken(d),d}_consumeAttributeValue(){let o;if(this._cursor.peek()===39||this._cursor.peek()===34){let d=this._cursor.peek();this._consumeQuote(d);let y=()=>this._cursor.peek()===d;o=this._consumeWithInterpolation(16,17,y,y),this._consumeQuote(d)}else{let d=()=>dt(this._cursor.peek());o=this._consumeWithInterpolation(16,17,d,d)}return o}_consumeQuote(o){this._beginToken(15),this._requireCharCode(o),this._endToken([String.fromCodePoint(o)])}_consumeTagOpenEnd(){let o=this._attemptCharCode(47)?2:1;this._beginToken(o),this._requireCharCode(62),this._endToken([])}_consumeTagClose(o){if(this._beginToken(3,o),this._attemptCharCodeUntilFn(He),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(He),this._requireCharCode(62),this._endToken([]);else{let[d,y]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(He),this._requireCharCode(62),this._endToken([d,y]),this._handleFullNameStackForTagClose(d,y)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let o=this._readUntil(44),d=this._processCarriageReturns(o);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([d]);else{let w=this._endToken([o]);d!==o&&this.nonNormalizedIcuExpressions.push(w)}this._requireCharCode(44),this._attemptCharCodeUntilFn(He),this._beginToken(7);let y=this._readUntil(44);this._endToken([y]),this._requireCharCode(44),this._attemptCharCodeUntilFn(He)}_consumeExpansionCaseStart(){this._beginToken(21);let o=this._readUntil(123).trim();this._endToken([o]),this._attemptCharCodeUntilFn(He),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(He),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(He),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(o,d,y,w){this._beginToken(o);let A=[];for(;!y();){let G=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(A.join(""))],G),A.length=0,this._consumeInterpolation(d,G,w),this._beginToken(o)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(A.join(""))]),A.length=0,this._consumeEntity(o),this._beginToken(o)):A.push(this._readChar())}this._inInterpolation=!1;let L=this._processCarriageReturns(A.join(""));return this._endToken([L]),L}_consumeInterpolation(o,d,y){let w=[];this._beginToken(o,d),w.push(this._interpolationConfig.start);let A=this._cursor.clone(),L=null,G=!1;for(;this._cursor.peek()!==0&&(y===null||!y());){let Z=this._cursor.clone();if(this._isTagStart()){this._cursor=Z,w.push(this._getProcessedChars(A,Z)),this._endToken(w);return}if(L===null)if(this._attemptStr(this._interpolationConfig.end)){w.push(this._getProcessedChars(A,Z)),w.push(this._interpolationConfig.end),this._endToken(w);return}else this._attemptStr("//")&&(G=!0);let ue=this._cursor.peek();this._cursor.advance(),ue===92?this._cursor.advance():ue===L?L=null:!G&&L===null&&In(ue)&&(L=ue)}w.push(this._getProcessedChars(A,this._cursor)),this._endToken(w)}_getProcessedChars(o,d){return this._processCarriageReturns(d.getChars(o))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let o=this._cursor.clone();o.advance();let d=o.peek();if(97<=d&&d<=122||65<=d&&d<=90||d===47||d===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let o=this._cursor.clone();if(o.advance(),ot(o.peek()))return!0}return!1}_readUntil(o){let d=this._cursor.clone();return this._attemptUntilChar(o),this._cursor.getChars(d)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let o=this._cursor.clone(),d=this._attemptStr(this._interpolationConfig.start);return this._cursor=o,!d}return!0}_handleFullNameStackForTagOpen(o,d){let y=xn(o,d);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===y)&&this._fullNameStack.push(y)}_handleFullNameStackForTagClose(o,d){let y=xn(o,d);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===y&&this._fullNameStack.pop()}};function He(o){return!Kt(o)||o===0}function dt(o){return Kt(o)||o===62||o===60||o===47||o===39||o===34||o===61||o===0}function lr(o){return(o<97||122<o)&&(o<65||90<o)&&(o<48||o>57)}function Mt(o){return o===59||o===0||!Yt(o)}function Cn(o){return o===59||o===0||!Ot(o)}function kr(o){return o!==125}function Ft(o,d){return xt(o)===xt(d)}function xt(o){return o>=97&&o<=122?o-97+65:o}function ot(o){return Ot(o)||Ct(o)||o===95}function zt(o){return o!==59&&He(o)}function Va(o){let d=[],y;for(let w=0;w<o.length;w++){let A=o[w];y&&y.type===5&&A.type===5||y&&y.type===16&&A.type===16?(y.parts[0]+=A.parts[0],y.sourceSpan.end=A.sourceSpan.end):(y=A,d.push(y))}return d}var En=class Np{constructor(d,y){if(d instanceof Np){this.file=d.file,this.input=d.input,this.end=d.end;let w=d.state;this.state={peek:w.peek,offset:w.offset,line:w.line,column:w.column}}else{if(!y)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=d,this.input=d.content,this.end=y.endPos,this.state={peek:-1,offset:y.startPos,line:y.startLine,column:y.startCol}}}clone(){return new Np(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(d){return this.state.offset-d.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(d,y){d=d||this;let w=d;if(y)for(;this.diff(d)>0&&y.indexOf(d.peek())!==-1;)w===d&&(d=d.clone()),d.advance();let A=this.locationFromCursor(d),L=this.locationFromCursor(this),G=w!==d?this.locationFromCursor(w):A;return new Ne(A,L,G)}getChars(d){return this.input.substring(d.state.offset,this.state.offset)}charAt(d){return this.input.charCodeAt(d)}advanceState(d){if(d.offset>=this.end)throw this.state=d,new Vn('Unexpected character "EOF"',this);let y=this.charAt(d.offset);y===10?(d.line++,d.column=0):Ir(y)||d.column++,d.offset++,this.updatePeek(d)}updatePeek(d){d.peek=d.offset>=this.end?0:this.charAt(d.offset)}locationFromCursor(d){return new mn(d.file,d.state.offset,d.state.line,d.state.column)}},Gn=class Rp extends En{constructor(d,y){d instanceof Rp?(super(d),this.internalState={...d.internalState}):(super(d,y),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Rp(this)}getChars(d){let y=d.clone(),w="";for(;y.internalState.offset<this.internalState.offset;)w+=String.fromCodePoint(y.peek()),y.advance();return w}processEscapeSequence(){let d=()=>this.internalState.peek;if(d()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),d()===110)this.state.peek=10;else if(d()===114)this.state.peek=13;else if(d()===118)this.state.peek=11;else if(d()===116)this.state.peek=9;else if(d()===98)this.state.peek=8;else if(d()===102)this.state.peek=12;else if(d()===117)if(this.advanceState(this.internalState),d()===123){this.advanceState(this.internalState);let y=this.clone(),w=0;for(;d()!==125;)this.advanceState(this.internalState),w++;this.state.peek=this.decodeHexDigits(y,w)}else{let y=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(y,4)}else if(d()===120){this.advanceState(this.internalState);let y=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(y,2)}else if(Jt(d())){let y="",w=0,A=this.clone();for(;Jt(d())&&w<3;)A=this.clone(),y+=String.fromCodePoint(d()),this.advanceState(this.internalState),w++;this.state.peek=parseInt(y,8),this.internalState=A.internalState}else Ir(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(d,y){let w=this.input.slice(d.internalState.offset,d.internalState.offset+y),A=parseInt(w,16);if(isNaN(A))throw d.state=d.internalState,new Vn("Invalid hexadecimal escape sequence",d);return A}},Vn=class{constructor(o,d){this.msg=o,this.cursor=d}},St=class Dy extends Er{static create(d,y,w){return new Dy(d,y,w)}constructor(d,y,w){super(y,w),this.elementName=d}},Pc=class{constructor(o,d){this.rootNodes=o,this.errors=d}},Lc=class{constructor(o){this.getTagDefinition=o}parse(o,d,y,w=!1,A){let L=ze=>(tt,...wt)=>ze(tt.toLowerCase(),...wt),G=w?this.getTagDefinition:L(this.getTagDefinition),Z=ze=>G(ze).getContentType(),ue=w?A:L(A),be=ae(o,d,A?(ze,tt,wt,gt)=>{let kt=ue(ze,tt,wt,gt);return kt!==void 0?kt:Z(ze)}:Z,y),he=y&&y.canSelfClose||!1,Me=y&&y.allowHtmComponentClosingTags||!1,Re=new Ic(be.tokens,G,he,Me,w);return Re.build(),new Pc(Re.rootNodes,be.errors.concat(Re.errors))}},Ic=class Cy{constructor(d,y,w,A,L){this.tokens=d,this.getTagDefinition=y,this.canSelfClose=w,this.allowHtmComponentClosingTags=A,this.isTagNameCaseSensitive=L,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let d of this._containerStack)d instanceof Sr&&this.errors.push(St.create(d.name,d.sourceSpan,`Unclosed block "${d.name}"`))}_advance(){let d=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],d}_advanceIf(d){return this._peek.type===d?this._advance():null}_consumeCdata(d){let y=this._advance(),w=this._getText(y),A=this._advanceIf(13);this._addToParent(new da(w,new Ne(d.sourceSpan.start,(A||y).sourceSpan.end),[y]))}_consumeComment(d){let y=this._advanceIf(7),w=this._advanceIf(11),A=y!=null?y.parts[0].trim():null,L=w==null?d.sourceSpan:new Ne(d.sourceSpan.start,w.sourceSpan.end,d.sourceSpan.fullStart);this._addToParent(new Wn(A,L))}_consumeDocType(d){let y=this._advanceIf(7),w=this._advanceIf(19),A=y!=null?y.parts[0].trim():null,L=new Ne(d.sourceSpan.start,(w||y||d).sourceSpan.end);this._addToParent(new fa(A,L))}_consumeExpansion(d){let y=this._advance(),w=this._advance(),A=[];for(;this._peek.type===21;){let G=this._parseExpansionCase();if(!G)return;A.push(G)}if(this._peek.type!==24){this.errors.push(St.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let L=new Ne(d.sourceSpan.start,this._peek.sourceSpan.end,d.sourceSpan.fullStart);this._addToParent(new Ui(y.parts[0],w.parts[0],A,L,y.sourceSpan)),this._advance()}_parseExpansionCase(){let d=this._advance();if(this._peek.type!==22)return this.errors.push(St.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let y=this._advance(),w=this._collectExpansionExpTokens(y);if(!w)return null;let A=this._advance();w.push({type:34,parts:[],sourceSpan:A.sourceSpan});let L=new Cy(w,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(L.build(),L.errors.length>0)return this.errors=this.errors.concat(L.errors),null;let G=new Ne(d.sourceSpan.start,A.sourceSpan.end,d.sourceSpan.fullStart),Z=new Ne(y.sourceSpan.start,A.sourceSpan.end,y.sourceSpan.fullStart);return new Wa(d.parts[0],L.rootNodes,G,d.sourceSpan,Z)}_collectExpansionExpTokens(d){let y=[],w=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&w.push(this._peek.type),this._peek.type===23)if(vu(w,22)){if(w.pop(),w.length===0)return y}else return this.errors.push(St.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(vu(w,20))w.pop();else return this.errors.push(St.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(St.create(null,d.sourceSpan,"Invalid ICU message. Missing '}'.")),null;y.push(this._advance())}}_getText(d){let y=d.parts[0];if(y.length>0&&y[0]==`
|
|
97
|
+
`){let w=this._getClosestParentElement();w!=null&&w.children.length==0&&this.getTagDefinition(w.name).ignoreFirstLf&&(y=y.substring(1))}return y}_consumeText(d){let y=[d],w=d.sourceSpan,A=d.parts[0];if(A.length>0&&A[0]===`
|
|
98
|
+
`){let L=this._getContainer();L!=null&&L.children.length===0&&this.getTagDefinition(L.name).ignoreFirstLf&&(A=A.substring(1),y[0]={type:d.type,sourceSpan:d.sourceSpan,parts:[A]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)d=this._advance(),y.push(d),d.type===8?A+=d.parts.join("").replace(/&([^;]+);/g,Fl):d.type===9?A+=d.parts[0]:A+=d.parts.join("");if(A.length>0){let L=d.sourceSpan;this._addToParent(new Ua(A,new Ne(w.start,L.end,w.fullStart,w.details),y))}}_closeVoidElement(){let d=this._getContainer();d instanceof Qt&&this.getTagDefinition(d.name).isVoid&&this._containerStack.pop()}_consumeStartTag(d){let[y,w]=d.parts,A=[];for(;this._peek.type===14;)A.push(this._consumeAttr(this._advance()));let L=this._getElementFullName(y,w,this._getClosestParentElement()),G=!1;if(this._peek.type===2){this._advance(),G=!0;let ze=this.getTagDefinition(L);this.canSelfClose||ze.canSelfClose||ut(L)!==null||ze.isVoid||this.errors.push(St.create(L,d.sourceSpan,`Only void, custom and foreign elements can be self closed "${d.parts[1]}"`))}else this._peek.type===1&&(this._advance(),G=!1);let Z=this._peek.sourceSpan.fullStart,ue=new Ne(d.sourceSpan.start,Z,d.sourceSpan.fullStart),be=new Ne(d.sourceSpan.start,Z,d.sourceSpan.fullStart),he=new Ne(d.sourceSpan.start.moveBy(1),d.sourceSpan.end),Me=new Qt(L,A,[],ue,be,void 0,he),Re=this._getContainer();this._pushContainer(Me,Re instanceof Qt&&this.getTagDefinition(Re.name).isClosedByChild(Me.name)),G?this._popContainer(L,Qt,ue):d.type===4&&(this._popContainer(L,Qt,null),this.errors.push(St.create(L,ue,`Opening tag "${L}" not terminated.`)))}_pushContainer(d,y){y&&this._containerStack.pop(),this._addToParent(d),this._containerStack.push(d)}_consumeEndTag(d){let y=this.allowHtmComponentClosingTags&&d.parts.length===0?null:this._getElementFullName(d.parts[0],d.parts[1],this._getClosestParentElement());if(y&&this.getTagDefinition(y).isVoid)this.errors.push(St.create(y,d.sourceSpan,`Void elements do not have end tags "${d.parts[1]}"`));else if(!this._popContainer(y,Qt,d.sourceSpan)){let w=`Unexpected closing tag "${y}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(St.create(y,d.sourceSpan,w))}}_popContainer(d,y,w){let A=!1;for(let L=this._containerStack.length-1;L>=0;L--){let G=this._containerStack[L];if(ut(G.name)?G.name===d:(d==null||G.name.toLowerCase()===d.toLowerCase())&&G instanceof y)return G.endSourceSpan=w,G.sourceSpan.end=w!==null?w.end:G.sourceSpan.end,this._containerStack.splice(L,this._containerStack.length-L),!A;(G instanceof Sr||G instanceof Qt&&!this.getTagDefinition(G.name).closedByParent)&&(A=!0)}return!1}_consumeAttr(d){let y=xn(d.parts[0],d.parts[1]),w=d.sourceSpan.end,A;this._peek.type===15&&(A=this._advance());let L="",G=[],Z,ue;if(this._peek.type===16)for(Z=this._peek.sourceSpan,ue=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let he=this._advance();G.push(he),he.type===17?L+=he.parts.join("").replace(/&([^;]+);/g,Fl):he.type===9?L+=he.parts[0]:L+=he.parts.join(""),ue=w=he.sourceSpan.end}this._peek.type===15&&(ue=w=this._advance().sourceSpan.end);let be=Z&&ue&&new Ne(A?.sourceSpan.start??Z.start,ue,A?.sourceSpan.fullStart??Z.fullStart);return new Wi(y,L,new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),d.sourceSpan,be,G.length>0?G:void 0,void 0)}_consumeBlockOpen(d){let y=[];for(;this._peek.type===28;){let Z=this._advance();y.push(new Ga(Z.parts[0],Z.sourceSpan))}this._peek.type===26&&this._advance();let w=this._peek.sourceSpan.fullStart,A=new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),L=new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),G=new Sr(d.parts[0],y,[],A,d.sourceSpan,L);this._pushContainer(G,!1)}_consumeBlockClose(d){this._popContainer(null,Sr,d.sourceSpan)||this.errors.push(St.create(null,d.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(d){let y=[];for(;this._peek.type===28;){let Z=this._advance();y.push(new Ga(Z.parts[0],Z.sourceSpan))}let w=this._peek.sourceSpan.fullStart,A=new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),L=new Ne(d.sourceSpan.start,w,d.sourceSpan.fullStart),G=new Sr(d.parts[0],y,[],A,d.sourceSpan,L);this._pushContainer(G,!1),this._popContainer(null,Sr,null),this.errors.push(St.create(d.parts[0],A,`Incomplete block "${d.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(d){let y=d.parts[0],w,A;if(this._peek.type!==31){this.errors.push(St.create(d.parts[0],d.sourceSpan,`Invalid @let declaration "${y}". Declaration must have a value.`));return}else w=this._advance();if(this._peek.type!==32){this.errors.push(St.create(d.parts[0],d.sourceSpan,`Unterminated @let declaration "${y}". Declaration must be terminated with a semicolon.`));return}else A=this._advance();let L=A.sourceSpan.fullStart,G=new Ne(d.sourceSpan.start,L,d.sourceSpan.fullStart),Z=d.sourceSpan.toString().lastIndexOf(y),ue=d.sourceSpan.start.moveBy(Z),be=new Ne(ue,d.sourceSpan.end),he=new s(y,w.parts[0],G,be,w.sourceSpan);this._addToParent(he)}_consumeIncompleteLet(d){let y=d.parts[0]??"",w=y?` "${y}"`:"";if(y.length>0){let A=d.sourceSpan.toString().lastIndexOf(y),L=d.sourceSpan.start.moveBy(A),G=new Ne(L,d.sourceSpan.end),Z=new Ne(d.sourceSpan.start,d.sourceSpan.start.moveBy(0)),ue=new s(y,"",d.sourceSpan,G,Z);this._addToParent(ue)}this.errors.push(St.create(d.parts[0],d.sourceSpan,`Incomplete @let declaration${w}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let d=this._containerStack.length-1;d>-1;d--)if(this._containerStack[d]instanceof Qt)return this._containerStack[d];return null}_addToParent(d){let y=this._getContainer();y===null?this.rootNodes.push(d):y.children.push(d)}_getElementFullName(d,y,w){if(d===""&&(d=this.getTagDefinition(y).implicitNamespacePrefix||"",d===""&&w!=null)){let A=Ha(w.name)[1];this.getTagDefinition(A).preventNamespaceInheritance||(d=ut(w.name))}return xn(d,y)}};function vu(o,d){return o.length>0&&o[o.length-1]===d}function Fl(o,d){return C[d]!==void 0?C[d]||o:/^#x[a-f0-9]+$/i.test(d)?String.fromCodePoint(parseInt(d.slice(2),16)):/^#\d+$/.test(d)?String.fromCodePoint(parseInt(d.slice(1),10)):o}var bu=class extends Lc{constructor(){super(br)}parse(o,d,y,w=!1,A){return super.parse(o,d,y,w,A)}},Ss=null,yu=()=>(Ss||(Ss=new bu),Ss);function No(o,d={}){let{canSelfClose:y=!1,allowHtmComponentClosingTags:w=!1,isTagNameCaseSensitive:A=!1,getTagContentType:L,tokenizeAngularBlocks:G=!1,tokenizeAngularLetDeclaration:Z=!1}=d;return yu().parse(o,"angular-html-parser",{tokenizeExpansionForms:G,interpolationConfig:void 0,canSelfClose:y,allowHtmComponentClosingTags:w,tokenizeBlocks:G,tokenizeLet:Z},A,L)}function Fn(o,d){let y=new SyntaxError(o+" ("+d.loc.start.line+":"+d.loc.start.column+")");return Object.assign(y,d)}var Mc=Fn,ha=3;function zc(o){let d=o.slice(0,ha);if(d!=="---"&&d!=="+++")return;let y=o.indexOf(`
|
|
99
|
+
`,ha);if(y===-1)return;let w=o.slice(ha,y).trim(),A=o.indexOf(`
|
|
100
|
+
${d}`,y),L=w;if(L||(L=d==="+++"?"toml":"yaml"),A===-1&&d==="---"&&L==="yaml"&&(A=o.indexOf(`
|
|
101
|
+
...`,y)),A===-1)return;let G=A+1+ha,Z=o.charAt(G+1);if(!/\s?/u.test(Z))return;let ue=o.slice(0,G);return{type:"front-matter",language:L,explicitLanguage:w,value:o.slice(y+1,A),startDelimiter:d,endDelimiter:ue.slice(-ha),raw:ue}}function Hc(o){let d=zc(o);if(!d)return{content:o};let{raw:y}=d;return{frontMatter:d,content:M(!1,y,/[^\n]/gu," ")+o.slice(y.length)}}var jc=Hc,ks={attrs:!0,children:!0,cases:!0,expression:!0},xu=new Set(["parent"]),Gi,Vi,Sn,Uc=class Nu{constructor(d={}){R(this,Gi),D(this,"type"),D(this,"parent");for(let y of new Set([...xu,...Object.keys(d)]))this.setProperty(y,d[y])}setProperty(d,y){if(this[d]!==y){if(d in ks&&(y=y.map(w=>this.createChild(w))),!xu.has(d)){this[d]=y;return}Object.defineProperty(this,d,{value:y,enumerable:!1,configurable:!0})}}map(d){let y;for(let w in ks){let A=this[w];if(A){let L=Ts(A,G=>G.map(d));y!==A&&(y||(y=new Nu({parent:this.parent})),y.setProperty(w,L))}}if(y)for(let w in this)w in ks||(y[w]=this[w]);return d(y||this)}walk(d){for(let y in ks){let w=this[y];if(w)for(let A=0;A<w.length;A++)w[A].walk(d)}d(this)}createChild(d){let y=d instanceof Nu?d.clone():new Nu(d);return y.setProperty("parent",this),y}insertChildBefore(d,y){let w=this.$children;w.splice(w.indexOf(d),0,this.createChild(y))}removeChild(d){let y=this.$children;y.splice(y.indexOf(d),1)}replaceChild(d,y){let w=this.$children;w[w.indexOf(d)]=this.createChild(y)}clone(){return new Nu(this)}get $children(){return this[S(this,Gi,Vi)]}set $children(d){this[S(this,Gi,Vi)]=d}get firstChild(){var d;return(d=this.$children)==null?void 0:d[0]}get lastChild(){return le(!0,this.$children,-1)}get prev(){let d=S(this,Gi,Sn);return d[d.indexOf(this)-1]}get next(){let d=S(this,Gi,Sn);return d[d.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(d=>[d.fullName,d.value]))}};Gi=new WeakSet,Vi=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},Sn=function(){var o;return((o=this.parent)==null?void 0:o.$children)??[]};var Wc=Uc;function Ts(o,d){let y=o.map(d);return y.some((w,A)=>w!==o[A])?y:o}var Gc=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:_s},{regex:/^\[if([^\]]*)\]><!$/u,parse:As},{regex:/^<!\s*\[endif\]$/u,parse:Ns}];function Yi(o,d){if(o.value)for(let{regex:y,parse:w}of Gc){let A=o.value.match(y);if(A)return w(o,d,A)}return null}function _s(o,d,y){let[,w,A,L]=y,G=4+w.length,Z=o.sourceSpan.start.moveBy(G),ue=Z.moveBy(L.length),[be,he]=(()=>{try{return[!0,d(L,Z).children]}catch{return[!1,[{type:"text",value:L,sourceSpan:new Ne(Z,ue)}]]}})();return{type:"ieConditionalComment",complete:be,children:he,condition:M(!1,A.trim(),/\s+/gu," "),sourceSpan:o.sourceSpan,startSourceSpan:new Ne(o.sourceSpan.start,Z),endSourceSpan:new Ne(ue,o.sourceSpan.end)}}function As(o,d,y){let[,w]=y;return{type:"ieConditionalStartComment",condition:M(!1,w.trim(),/\s+/gu," "),sourceSpan:o.sourceSpan}}function Ns(o){return{type:"ieConditionalEndComment",sourceSpan:o.sourceSpan}}var Ji=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Ya=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function wu(o){if(o.type==="block"){if(o.name=M(!1,o.name.toLowerCase(),/\s+/gu," ").trim(),o.type="angularControlFlowBlock",!ci(o.parameters)){delete o.parameters;return}for(let d of o.parameters)d.type="angularControlFlowBlockParameter";o.parameters={type:"angularControlFlowBlockParameters",children:o.parameters,sourceSpan:new Ne(o.parameters[0].sourceSpan.start,le(!1,o.parameters,-1).sourceSpan.end)}}}function Du(o){o.type==="letDeclaration"&&(o.type="angularLetDeclaration",o.id=o.name,o.init={type:"angularLetDeclarationInitializer",sourceSpan:new Ne(o.valueSpan.start,o.valueSpan.end),value:o.value},delete o.name,delete o.value)}function Xi(o){(o.type==="plural"||o.type==="select")&&(o.clause=o.type,o.type="angularIcuExpression"),o.type==="expansionCase"&&(o.type="angularIcuCase")}function Cu(o,d,y){let{name:w,canSelfClose:A=!0,normalizeTagName:L=!1,normalizeAttributeName:G=!1,allowHtmComponentClosingTags:Z=!1,isTagNameCaseSensitive:ue=!1,shouldParseAsRawText:be}=d,{rootNodes:he,errors:Me}=No(o,{canSelfClose:A,allowHtmComponentClosingTags:Z,isTagNameCaseSensitive:ue,getTagContentType:be?(...ye)=>be(...ye)?mr.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:w==="angular"?!0:void 0,tokenizeAngularLetDeclaration:w==="angular"?!0:void 0});if(w==="vue"){if(he.some(ft=>ft.type==="docType"&&ft.value==="html"||ft.type==="element"&&ft.name.toLowerCase()==="html"))return Cu(o,Zi,y);let ye,Be=()=>ye??(ye=No(o,{canSelfClose:A,allowHtmComponentClosingTags:Z,isTagNameCaseSensitive:ue})),Dt=ft=>Be().rootNodes.find(({startSourceSpan:ur})=>ur&&ur.start.offset===ft.startSourceSpan.start.offset)??ft;for(let[ft,ur]of he.entries()){let{endSourceSpan:rn,startSourceSpan:Jc}=ur;if(rn===null)Me=Be().errors,he[ft]=Dt(ur);else if(Sl(ur,y)){let qi=Be().errors.find(Su=>Su.span.start.offset>Jc.start.offset&&Su.span.start.offset<rn.end.offset);qi&&Eu(qi),he[ft]=Dt(ur)}}}Me.length>0&&Eu(Me[0]);let Re=ye=>{let Be=ye.name.startsWith(":")?ye.name.slice(1).split(":")[0]:null,Dt=ye.nameSpan.toString(),ft=Be!==null&&Dt.startsWith(`${Be}:`),ur=ft?Dt.slice(Be.length+1):Dt;ye.name=ur,ye.namespace=Be,ye.hasExplicitNamespace=ft},ze=ye=>{switch(ye.type){case"element":Re(ye);for(let Be of ye.attrs)Re(Be),Be.valueSpan?(Be.value=Be.valueSpan.toString(),/["']/u.test(Be.value[0])&&(Be.value=Be.value.slice(1,-1))):Be.value=null;break;case"comment":ye.value=ye.sourceSpan.toString().slice(4,-3);break;case"text":ye.value=ye.sourceSpan.toString();break}},tt=(ye,Be)=>{let Dt=ye.toLowerCase();return Be(Dt)?Dt:ye},wt=ye=>{if(ye.type==="element"&&(L&&(!ye.namespace||ye.namespace===ye.tagDefinition.implicitNamespacePrefix||An(ye))&&(ye.name=tt(ye.name,Be=>Ya.has(Be))),G))for(let Be of ye.attrs)Be.namespace||(Be.name=tt(Be.name,Dt=>Ji.has(ye.name)&&(Ji.get("*").has(Dt)||Ji.get(ye.name).has(Dt))))},gt=ye=>{ye.sourceSpan&&ye.endSourceSpan&&(ye.sourceSpan=new Ne(ye.sourceSpan.start,ye.endSourceSpan.end))},kt=ye=>{if(ye.type==="element"){let Be=br(ue?ye.name:ye.name.toLowerCase());!ye.namespace||ye.namespace===Be.implicitNamespacePrefix||An(ye)?ye.tagDefinition=Be:ye.tagDefinition=br("")}};return c(new class extends v{visitExpansionCase(ye,Be){w==="angular"&&this.visitChildren(Be,Dt=>{Dt(ye.expression)})}visit(ye){ze(ye),kt(ye),wt(ye),gt(ye)}},he),he}function Sl(o,d){var y;if(o.type!=="element"||o.name!=="template")return!1;let w=(y=o.attrs.find(A=>A.name==="lang"))==null?void 0:y.value;return!w||sn(d,{language:w})==="html"}function Eu(o){let{msg:d,span:{start:y,end:w}}=o;throw Mc(d,{loc:{start:{line:y.line+1,column:y.col+1},end:{line:w.line+1,column:w.col+1}},cause:o})}function Ro(o,d,y={},w=!0){let{frontMatter:A,content:L}=w?jc(o):{frontMatter:null,content:o},G=new Ni(o,y.filepath),Z=new mn(G,0,0,0),ue=Z.moveBy(o.length),be={type:"root",sourceSpan:new Ne(Z,ue),children:Cu(L,d,y)};if(A){let Re=new mn(G,0,0,0),ze=Re.moveBy(A.raw.length);A.sourceSpan=new Ne(Re,ze),be.children.unshift(A)}let he=new Wc(be),Me=(Re,ze)=>{let{offset:tt}=ze,wt=M(!1,o.slice(0,tt),/[^\n\r]/gu," "),gt=Ro(wt+Re,d,y,!1);gt.sourceSpan=new Ne(ze,le(!1,gt.children,-1).sourceSpan.end);let kt=gt.children[0];return kt.length===tt?gt.children.shift():(kt.sourceSpan=new Ne(kt.sourceSpan.start.moveBy(tt),kt.sourceSpan.end),kt.value=kt.value.slice(tt)),gt};return he.walk(Re=>{if(Re.type==="comment"){let ze=Yi(Re,Me);ze&&Re.parent.replaceChild(Re,ze)}wu(Re),Du(Re),Xi(Re)}),he}function Oo(o){return{parse:(d,y)=>Ro(d,o,y),hasPragma:Se,hasIgnorePragma:qe,astFormat:"html",locStart:Fi,locEnd:Pn}}var Zi={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},Rs=Oo(Zi),Vc=new Set(["mj-style","mj-raw"]),Yc=Oo({...Zi,name:"mjml",shouldParseAsRawText:o=>Vc.has(o)}),Fu=Oo({name:"angular"}),Dp=Oo({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(o,d,y,w){return o.toLowerCase()!=="html"&&!y&&(o!=="template"||w.some(({name:A,value:L})=>A==="lang"&&L!=="html"&&L!==""&&L!==void 0))}}),Ja=Oo({name:"lwc",canSelfClose:!1}),kl={html:$r};return b(N)})})(Sh)),Sh.exports}var Vv=Vw();const Yw=Ty({__proto__:null,default:Nl(Vv)},[Vv]);var Jw=Object.create,kh=Object.defineProperty,Xw=Object.getOwnPropertyDescriptor,Zw=Object.getOwnPropertyNames,qw=Object.getPrototypeOf,Kw=Object.prototype.hasOwnProperty,Yv=e=>{throw TypeError(e)},Qw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Th=(e,t)=>{for(var r in t)kh(e,r,{get:t[r],enumerable:!0})},$w=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zw(t))!Kw.call(e,a)&&a!==r&&kh(e,a,{get:()=>t[a],enumerable:!(n=Xw(t,a))||n.enumerable});return e},eD=(e,t,r)=>(r=e!=null?Jw(qw(e)):{},$w(kh(r,"default",{value:e,enumerable:!0}),e)),tD=(e,t,r)=>t.has(e)||Yv("Cannot "+r),rD=(e,t,r)=>t.has(e)?Yv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Gl=(e,t,r)=>(tD(e,t,"access private method"),r),nD=Qw(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(){return new Proxy({},{get:()=>i=>i})}var r=/\r\n|[\n\r\u2028\u2029]/;function n(i,u,h){let g=Object.assign({column:0,line:-1},i.start),p=Object.assign({},g,i.end),{linesAbove:b=2,linesBelow:D=3}=h||{},F=g.line,S=g.column,R=p.line,O=p.column,N=Math.max(F-(b+1),0),_=Math.min(u.length,R+D);F===-1&&(N=0),R===-1&&(_=u.length);let M=R-F,U={};if(M)for(let H=0;H<=M;H++){let q=H+F;if(!S)U[q]=!0;else if(H===0){let Q=u[q-1].length;U[q]=[S,Q-S+1]}else if(H===M)U[q]=[0,O];else{let Q=u[q-H].length;U[q]=[0,Q]}}else S===O?S?U[F]=[S,0]:U[F]=!0:U[F]=[S,O-S];return{start:N,end:_,markerLines:U}}function a(i,u,h={}){let g=t(),p=i.split(r),{start:b,end:D,markerLines:F}=n(u,p,h),S=u.start&&typeof u.start.column=="number",R=String(D).length,O=i.split(r,D).slice(b,D).map((N,_)=>{let M=b+1+_,U=` ${` ${M}`.slice(-R)} |`,H=F[M],q=!F[M+1];if(H){let Q="";if(Array.isArray(H)){let Y=N.slice(0,Math.max(H[0]-1,0)).replace(/[^\t]/g," "),ie=H[1]||1;Q=[`
|
|
102
|
+
`,g.gutter(U.replace(/\d/g," "))," ",Y,g.marker("^").repeat(ie)].join(""),q&&h.message&&(Q+=" "+g.message(h.message))}return[g.marker(">"),g.gutter(U),N.length>0?` ${N}`:"",Q].join("")}else return` ${g.gutter(U)}${N.length>0?` ${N}`:""}`}).join(`
|
|
103
|
+
`);return h.message&&!S&&(O=`${" ".repeat(R+1)}${h.message}
|
|
104
|
+
${O}`),O}e.codeFrameColumns=a}),aD={};Th(aD,{__debug:()=>gE,check:()=>hE,doc:()=>a0,format:()=>np,formatWithCursor:()=>s0,getSupportInfo:()=>pE,util:()=>i0,version:()=>jC});var iD=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ic=iD,oD=class{diff(e,t,r={}){let n;typeof r=="function"?(n=r,r={}):"callback"in r&&(n=r.callback);let a=this.castInput(e,r),i=this.castInput(t,r),u=this.removeEmpty(this.tokenize(a,r)),h=this.removeEmpty(this.tokenize(i,r));return this.diffWithOptionsObj(u,h,r,n)}diffWithOptionsObj(e,t,r,n){var a;let i=_=>{if(_=this.postProcess(_,r),n){setTimeout(function(){n(_)},0);return}else return _},u=t.length,h=e.length,g=1,p=u+h;r.maxEditLength!=null&&(p=Math.min(p,r.maxEditLength));let b=(a=r.timeout)!==null&&a!==void 0?a:1/0,D=Date.now()+b,F=[{oldPos:-1,lastComponent:void 0}],S=this.extractCommon(F[0],t,e,0,r);if(F[0].oldPos+1>=h&&S+1>=u)return i(this.buildValues(F[0].lastComponent,t,e));let R=-1/0,O=1/0,N=()=>{for(let _=Math.max(R,-g);_<=Math.min(O,g);_+=2){let M,U=F[_-1],H=F[_+1];U&&(F[_-1]=void 0);let q=!1;if(H){let Y=H.oldPos-_;q=H&&0<=Y&&Y<u}let Q=U&&U.oldPos+1<h;if(!q&&!Q){F[_]=void 0;continue}if(!Q||q&&U.oldPos<H.oldPos?M=this.addToPath(H,!0,!1,0,r):M=this.addToPath(U,!1,!0,1,r),S=this.extractCommon(M,t,e,_,r),M.oldPos+1>=h&&S+1>=u)return i(this.buildValues(M.lastComponent,t,e))||!0;F[_]=M,M.oldPos+1>=h&&(O=Math.min(O,_-1)),S+1>=u&&(R=Math.max(R,_+1))}g++};if(n)(function _(){setTimeout(function(){if(g>p||Date.now()>D)return n(void 0);N()||_()},0)})();else for(;g<=p&&Date.now()<=D;){let _=N();if(_)return _}}addToPath(e,t,r,n,a){let i=e.lastComponent;return i&&!a.oneChangePerToken&&i.added===t&&i.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:i.count+1,added:t,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:i}}}extractCommon(e,t,r,n,a){let i=t.length,u=r.length,h=e.oldPos,g=h-n,p=0;for(;g+1<i&&h+1<u&&this.equals(r[h+1],t[g+1],a);)g++,h++,p++,a.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return p&&!a.oneChangePerToken&&(e.lastComponent={count:p,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=h,g}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){let n=[],a;for(;e;)n.push(e),a=e.previousComponent,delete e.previousComponent,e=a;n.reverse();let i=n.length,u=0,h=0,g=0;for(;u<i;u++){let p=n[u];if(p.removed)p.value=this.join(r.slice(g,g+p.count)),g+=p.count;else{if(!p.added&&this.useLongestToken){let b=t.slice(h,h+p.count);b=b.map(function(D,F){let S=r[g+F];return S.length>D.length?S:D}),p.value=this.join(b)}else p.value=this.join(t.slice(h,h+p.count));h+=p.count,p.added||(g+=p.count)}}return n}},sD=class extends oD{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},lD=new sD;function uD(e,t,r){return lD.diff(e,t,r)}function cD(e){let t=e.indexOf("\r");return t!==-1?e.charAt(t+1)===`
|
|
105
|
+
`?"crlf":"cr":"lf"}function _h(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
212
106
|
`;default:return`
|
|
213
|
-
`}}function
|
|
107
|
+
`}}function Jv(e,t){let r;switch(t){case`
|
|
214
108
|
`:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r
|
|
215
|
-
`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function
|
|
216
|
-
`)}var
|
|
217
|
-
`);)t--;return t<e.length?e.slice(0,t):e}function
|
|
218
|
-
Expected it to be 'string' or 'object'.`;if(
|
|
219
|
-
Expected it to be ${n}.`}var
|
|
220
|
-
`)):r)}function Z1(e){if(e.type===Jr)return!0}function J1(e){return _g(e,Z1,!1)}function Mf(e,t){return e.type===Xo?{...e,contents:t(e.contents)}:t(e)}function zf(e){return{type:Li,contents:e}}function $u(e,t){return{type:Mi,contents:t,n:e}}function Qy(e,t={}){return{type:zn,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function q1(e){return $u(Number.NEGATIVE_INFINITY,e)}function K1(e){return $u({type:"root"},e)}function Q1(e){return $u(-1,e)}function $1(e,t){return Qy(e[0],{...t,expandedStates:e})}function eC(e){return{type:Vo,parts:e}}function tC(e,t="",r={}){return{type:ia,breakContents:e,flatContents:t,groupId:r.groupId}}function rC(e,t){return{type:Hi,contents:e,groupId:t.groupId,negate:t.negate}}function Rg(e){return{type:Wi,contents:e}}var nC={type:Ui},Hf={type:Ma},aC={type:zi},Ng={type:Jr,hard:!0},$y={type:Jr,hard:!0,literal:!0},e0={type:Jr},oC={type:Jr,soft:!0},Wl=[Ng,Hf],t0=[$y,Hf],Ul={type:Ls};function r0(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function n0(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=zf(n);n=$u(t%r,n),n=$u(Number.NEGATIVE_INFINITY,n)}return n}function iC(e,t){return e?{type:Xo,label:e,contents:t}:t}function ji(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...ji(n));else{let i=ji(n);i!==""&&r.push(i)}return r}return e.type===ia?{...e,breakContents:ji(e.breakContents),flatContents:ji(e.flatContents)}:e.type===zn?{...e,contents:ji(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(ji)}:e.type===Vo?{type:"fill",parts:e.parts.map(ji)}:e.contents?{...e,contents:ji(e.contents)}:e}function sC(e){let t=Object.create(null),r=new Set;return n(ji(e));function n(c,f,g){var b,m;if(typeof c=="string")return JSON.stringify(c);if(Array.isArray(c)){let v=c.map(n).filter(Boolean);return v.length===1?v[0]:`[${v.join(", ")}]`}if(c.type===Jr){let v=((b=g?.[f+1])==null?void 0:b.type)===Ma;return c.literal?v?"literalline":"literallineWithoutBreakParent":c.hard?v?"hardline":"hardlineWithoutBreakParent":c.soft?"softline":"line"}if(c.type===Ma)return((m=g?.[f-1])==null?void 0:m.type)===Jr&&g[f-1].hard?void 0:"breakParent";if(c.type===zi)return"trim";if(c.type===Li)return"indent("+n(c.contents)+")";if(c.type===Mi)return c.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(c.contents)+")":c.n<0?"dedent("+n(c.contents)+")":c.n.type==="root"?"markAsRoot("+n(c.contents)+")":"align("+JSON.stringify(c.n)+", "+n(c.contents)+")";if(c.type===ia)return"ifBreak("+n(c.breakContents)+(c.flatContents?", "+n(c.flatContents):"")+(c.groupId?(c.flatContents?"":', ""')+`, { groupId: ${i(c.groupId)} }`:"")+")";if(c.type===Hi){let v=[];c.negate&&v.push("negate: true"),c.groupId&&v.push(`groupId: ${i(c.groupId)}`);let E=v.length>0?`, { ${v.join(", ")} }`:"";return`indentIfBreak(${n(c.contents)}${E})`}if(c.type===zn){let v=[];c.break&&c.break!=="propagated"&&v.push("shouldBreak: true"),c.id&&v.push(`id: ${i(c.id)}`);let E=v.length>0?`, { ${v.join(", ")} }`:"";return c.expandedStates?`conditionalGroup([${c.expandedStates.map(A=>n(A)).join(",")}]${E})`:`group(${n(c.contents)}${E})`}if(c.type===Vo)return`fill([${c.parts.map(v=>n(v)).join(", ")}])`;if(c.type===Wi)return"lineSuffix("+n(c.contents)+")";if(c.type===Ui)return"lineSuffixBoundary";if(c.type===Xo)return`label(${JSON.stringify(c.label)}, ${n(c.contents)})`;if(c.type===Ls)return"cursor";throw new Error("Unknown doc type "+c.type)}function i(c){if(typeof c!="symbol")return JSON.stringify(String(c));if(c in t)return t[c];let f=c.description||"symbol";for(let g=0;;g++){let b=f+(g>0?` #${g}`:"");if(!r.has(b))return r.add(b),t[c]=`Symbol.for(${JSON.stringify(b)})`}}}var lC=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function uC(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function cC(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var dC=e=>!(uC(e)||cC(e)),fC=/[^\x20-\x7F]/u;function hC(e){if(!e)return 0;if(!fC.test(e))return e.length;e=e.replace(lC()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=dC(n)?1:2)}return t}var Pg=hC,Hn=Symbol("MODE_BREAK"),Zo=Symbol("MODE_FLAT"),ec=Symbol("cursor"),Og=Symbol("DOC_FILL_PRINTED_LENGTH");function a0(){return{value:"",length:0,queue:[]}}function pC(e,t){return Bg(e,{type:"indent"},t)}function gC(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||a0():t<0?Bg(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Bg(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Bg(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",c=0,f=0,g=0;for(let S of n)switch(S.type){case"indent":v(),r.useTabs?b(1):m(r.tabWidth);break;case"stringAlign":v(),i+=S.n,c+=S.n.length;break;case"numberAlign":f+=1,g+=S.n;break;default:throw new Error(`Unexpected type '${S.type}'`)}return A(),{...e,value:i,length:c,queue:n};function b(S){i+=" ".repeat(S),c+=r.tabWidth*S}function m(S){i+=" ".repeat(S),c+=S}function v(){r.useTabs?E():A()}function E(){f>0&&b(f),F()}function A(){g>0&&m(g),F()}function F(){f=0,g=0}}function Ig(e){let t=0,r=0,n=e.length;e:for(;n--;){let i=e[n];if(i===ec){r++;continue}for(let c=i.length-1;c>=0;c--){let f=i[c];if(f===" "||f===" ")t++;else{e[n]=i.slice(0,c+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(ec);return t}function Wf(e,t,r,n,i,c){if(r===Number.POSITIVE_INFINITY)return!0;let f=t.length,g=[e],b=[];for(;r>=0;){if(g.length===0){if(f===0)return!0;g.push(t[--f]);continue}let{mode:m,doc:v}=g.pop(),E=Hl(v);switch(E){case zl:b.push(v),r-=Pg(v);break;case Ii:case Vo:{let A=E===Ii?v:v.parts,F=v[Og]??0;for(let S=A.length-1;S>=F;S--)g.push({mode:m,doc:A[S]});break}case Li:case Mi:case Hi:case Xo:g.push({mode:m,doc:v.contents});break;case zi:r+=Ig(b);break;case zn:{if(c&&v.break)return!1;let A=v.break?Hn:m,F=v.expandedStates&&A===Hn?Lr(!1,v.expandedStates,-1):v.contents;g.push({mode:A,doc:F});break}case ia:{let A=(v.groupId?i[v.groupId]||Zo:m)===Hn?v.breakContents:v.flatContents;A&&g.push({mode:m,doc:A});break}case Jr:if(m===Hn||v.hard)return!0;v.soft||(b.push(" "),r--);break;case Wi:n=!0;break;case Ui:if(n)return!1;break}}return!1}function Uf(e,t){let r={},n=t.printWidth,i=Tg(t.endOfLine),c=0,f=[{ind:a0(),mode:Hn,doc:e}],g=[],b=!1,m=[],v=0;for(U1(e);f.length>0;){let{ind:A,mode:F,doc:S}=f.pop();switch(Hl(S)){case zl:{let N=i!==`
|
|
221
|
-
`?
|
|
222
|
-
`,
|
|
223
|
-
`)return t-2;if(
|
|
224
|
-
`||
|
|
225
|
-
`)return t+2;if(
|
|
226
|
-
`||
|
|
109
|
+
`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function dD(e){return ic(!1,e,/\r\n?/gu,`
|
|
110
|
+
`)}var Mo="string",Qa="array",eo="cursor",$a="indent",ei="align",ti="trim",jr="group",ba="fill",an="if-break",ri="indent-if-break",ni="line-suffix",ai="line-suffix-boundary",dr="line",ya="label",Tn="break-parent",Xv=new Set([eo,$a,ei,ti,jr,ba,an,ri,ni,ai,dr,ya,Tn]),fD=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},tr=fD;function hD(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
|
|
111
|
+
`);)t--;return t<e.length?e.slice(0,t):e}function pD(e){if(typeof e=="string")return Mo;if(Array.isArray(e))return Qa;if(!e)return;let{type:t}=e;if(Xv.has(t))return t}var zo=pD,gD=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function mD(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
112
|
+
Expected it to be 'string' or 'object'.`;if(zo(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=gD([...Xv].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
|
|
113
|
+
Expected it to be ${n}.`}var vD=class extends Error{constructor(t){super(mD(t));Xa(this,"name","InvalidDocError");this.doc=t}},Us=vD,Zv={};function bD(e,t,r,n){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Zv){r(a.pop());continue}r&&a.push(i,Zv);let u=zo(i);if(!u)throw new Us(i);if(t?.(i)!==!1)switch(u){case Qa:case ba:{let h=u===Qa?i:i.parts;for(let g=h.length,p=g-1;p>=0;--p)a.push(h[p]);break}case an:a.push(i.flatContents,i.breakContents);break;case jr:if(n&&i.expandedStates)for(let h=i.expandedStates.length,g=h-1;g>=0;--g)a.push(i.expandedStates[g]);else a.push(i.contents);break;case ei:case $a:case ri:case ya:case ni:a.push(i.contents);break;case Mo:case eo:case ti:case ai:case dr:case Tn:break;default:throw new Us(i)}}}var Ah=bD;function oc(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let u=a(i);return r.set(i,u),u}function a(i){switch(zo(i)){case Qa:return t(i.map(n));case ba:return t({...i,parts:i.parts.map(n)});case an:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case jr:{let{expandedStates:u,contents:h}=i;return u?(u=u.map(n),h=u[0]):h=n(h),t({...i,contents:h,expandedStates:u})}case ei:case $a:case ri:case ya:case ni:return t({...i,contents:n(i.contents)});case Mo:case eo:case ti:case ai:case dr:case Tn:return t(i);default:throw new Us(i)}}}function Nh(e,t,r){let n=r,a=!1;function i(u){if(a)return!1;let h=t(u);h!==void 0&&(a=!0,n=h)}return Ah(e,i),n}function yD(e){if(e.type===jr&&e.break||e.type===dr&&e.hard||e.type===Tn)return!0}function xD(e){return Nh(e,yD,!1)}function qv(e){if(e.length>0){let t=tr(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function wD(e){let t=new Set,r=[];function n(i){if(i.type===Tn&&qv(r),i.type===jr){if(r.push(i),t.has(i))return!1;t.add(i)}}function a(i){i.type===jr&&r.pop().break&&qv(r)}Ah(e,n,a,!0)}function DD(e){return e.type===dr&&!e.hard?e.soft?"":" ":e.type===an?e.flatContents:e}function CD(e){return oc(e,DD)}function Kv(e){for(e=[...e];e.length>=2&&tr(!1,e,-2).type===dr&&tr(!1,e,-1).type===Tn;)e.length-=2;if(e.length>0){let t=Vl(tr(!1,e,-1));e[e.length-1]=t}return e}function Vl(e){switch(zo(e)){case $a:case ri:case jr:case ni:case ya:{let t=Vl(e.contents);return{...e,contents:t}}case an:return{...e,breakContents:Vl(e.breakContents),flatContents:Vl(e.flatContents)};case ba:return{...e,parts:Kv(e.parts)};case Qa:return Kv(e);case Mo:return hD(e);case ei:case eo:case ti:case ai:case dr:case Tn:break;default:throw new Us(e)}return e}function Qv(e){return Vl(FD(e))}function ED(e){switch(zo(e)){case ba:if(e.parts.every(t=>t===""))return"";break;case jr:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===jr&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case ei:case $a:case ri:case ni:if(!e.contents)return"";break;case an:if(!e.flatContents&&!e.breakContents)return"";break;case Qa:{let t=[];for(let r of e){if(!r)continue;let[n,...a]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof tr(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...a)}return t.length===0?"":t.length===1?t[0]:t}case Mo:case eo:case ti:case ai:case dr:case ya:case Tn:break;default:throw new Us(e)}return e}function FD(e){return oc(e,t=>ED(t))}function SD(e,t=rb){return oc(e,r=>typeof r=="string"?nb(t,r.split(`
|
|
114
|
+
`)):r)}function kD(e){if(e.type===dr)return!0}function TD(e){return Nh(e,kD,!1)}function sc(e,t){return e.type===ya?{...e,contents:t(e.contents)}:t(e)}function lc(e){return{type:$a,contents:e}}function Ws(e,t){return{type:ei,contents:t,n:e}}function $v(e,t={}){return{type:jr,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function _D(e){return Ws(Number.NEGATIVE_INFINITY,e)}function AD(e){return Ws({type:"root"},e)}function ND(e){return Ws(-1,e)}function RD(e,t){return $v(e[0],{...t,expandedStates:e})}function OD(e){return{type:ba,parts:e}}function BD(e,t="",r={}){return{type:an,breakContents:e,flatContents:t,groupId:r.groupId}}function PD(e,t){return{type:ri,contents:e,groupId:t.groupId,negate:t.negate}}function Rh(e){return{type:ni,contents:e}}var LD={type:ai},uc={type:Tn},ID={type:ti},Oh={type:dr,hard:!0},eb={type:dr,hard:!0,literal:!0},tb={type:dr},MD={type:dr,soft:!0},Ho=[Oh,uc],rb=[eb,uc],jo={type:eo};function nb(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function ab(e,t,r){let n=e;if(t>0){for(let a=0;a<Math.floor(t/r);++a)n=lc(n);n=Ws(t%r,n),n=Ws(Number.NEGATIVE_INFINITY,n)}return n}function zD(e,t){return e?{type:ya,label:e,contents:t}:t}function ii(e){var t;if(!e)return"";if(Array.isArray(e)){let r=[];for(let n of e)if(Array.isArray(n))r.push(...ii(n));else{let a=ii(n);a!==""&&r.push(a)}return r}return e.type===an?{...e,breakContents:ii(e.breakContents),flatContents:ii(e.flatContents)}:e.type===jr?{...e,contents:ii(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(ii)}:e.type===ba?{type:"fill",parts:e.parts.map(ii)}:e.contents?{...e,contents:ii(e.contents)}:e}function HD(e){let t=Object.create(null),r=new Set;return n(ii(e));function n(i,u,h){var g,p;if(typeof i=="string")return JSON.stringify(i);if(Array.isArray(i)){let b=i.map(n).filter(Boolean);return b.length===1?b[0]:`[${b.join(", ")}]`}if(i.type===dr){let b=((g=h?.[u+1])==null?void 0:g.type)===Tn;return i.literal?b?"literalline":"literallineWithoutBreakParent":i.hard?b?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type===Tn)return((p=h?.[u-1])==null?void 0:p.type)===dr&&h[u-1].hard?void 0:"breakParent";if(i.type===ti)return"trim";if(i.type===$a)return"indent("+n(i.contents)+")";if(i.type===ei)return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(i.contents)+")":i.n<0?"dedent("+n(i.contents)+")":i.n.type==="root"?"markAsRoot("+n(i.contents)+")":"align("+JSON.stringify(i.n)+", "+n(i.contents)+")";if(i.type===an)return"ifBreak("+n(i.breakContents)+(i.flatContents?", "+n(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+`, { groupId: ${a(i.groupId)} }`:"")+")";if(i.type===ri){let b=[];i.negate&&b.push("negate: true"),i.groupId&&b.push(`groupId: ${a(i.groupId)}`);let D=b.length>0?`, { ${b.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${D})`}if(i.type===jr){let b=[];i.break&&i.break!=="propagated"&&b.push("shouldBreak: true"),i.id&&b.push(`id: ${a(i.id)}`);let D=b.length>0?`, { ${b.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(F=>n(F)).join(",")}]${D})`:`group(${n(i.contents)}${D})`}if(i.type===ba)return`fill([${i.parts.map(b=>n(b)).join(", ")}])`;if(i.type===ni)return"lineSuffix("+n(i.contents)+")";if(i.type===ai)return"lineSuffixBoundary";if(i.type===ya)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;if(i.type===eo)return"cursor";throw new Error("Unknown doc type "+i.type)}function a(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let u=i.description||"symbol";for(let h=0;;h++){let g=u+(h>0?` #${h}`:"");if(!r.has(g))return r.add(g),t[i]=`Symbol.for(${JSON.stringify(g)})`}}}var jD=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function UD(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function WD(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var GD=e=>!(UD(e)||WD(e)),VD=/[^\x20-\x7F]/u;function YD(e){if(!e)return 0;if(!VD.test(e))return e.length;e=e.replace(jD()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=GD(n)?1:2)}return t}var Bh=YD,Ur=Symbol("MODE_BREAK"),xa=Symbol("MODE_FLAT"),Gs=Symbol("cursor"),Ph=Symbol("DOC_FILL_PRINTED_LENGTH");function ib(){return{value:"",length:0,queue:[]}}function JD(e,t){return Lh(e,{type:"indent"},t)}function XD(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||ib():t<0?Lh(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Lh(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Lh(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],a="",i=0,u=0,h=0;for(let R of n)switch(R.type){case"indent":b(),r.useTabs?g(1):p(r.tabWidth);break;case"stringAlign":b(),a+=R.n,i+=R.n.length;break;case"numberAlign":u+=1,h+=R.n;break;default:throw new Error(`Unexpected type '${R.type}'`)}return F(),{...e,value:a,length:i,queue:n};function g(R){a+=" ".repeat(R),i+=r.tabWidth*R}function p(R){a+=" ".repeat(R),i+=R}function b(){r.useTabs?D():F()}function D(){u>0&&g(u),S()}function F(){h>0&&p(h),S()}function S(){u=0,h=0}}function Ih(e){let t=0,r=0,n=e.length;e:for(;n--;){let a=e[n];if(a===Gs){r++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")t++;else{e[n]=a.slice(0,i+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Gs);return t}function cc(e,t,r,n,a,i){if(r===Number.POSITIVE_INFINITY)return!0;let u=t.length,h=[e],g=[];for(;r>=0;){if(h.length===0){if(u===0)return!0;h.push(t[--u]);continue}let{mode:p,doc:b}=h.pop(),D=zo(b);switch(D){case Mo:g.push(b),r-=Bh(b);break;case Qa:case ba:{let F=D===Qa?b:b.parts,S=b[Ph]??0;for(let R=F.length-1;R>=S;R--)h.push({mode:p,doc:F[R]});break}case $a:case ei:case ri:case ya:h.push({mode:p,doc:b.contents});break;case ti:r+=Ih(g);break;case jr:{if(i&&b.break)return!1;let F=b.break?Ur:p,S=b.expandedStates&&F===Ur?tr(!1,b.expandedStates,-1):b.contents;h.push({mode:F,doc:S});break}case an:{let F=(b.groupId?a[b.groupId]||xa:p)===Ur?b.breakContents:b.flatContents;F&&h.push({mode:p,doc:F});break}case dr:if(p===Ur||b.hard)return!0;b.soft||(g.push(" "),r--);break;case ni:n=!0;break;case ai:if(n)return!1;break}}return!1}function dc(e,t){let r={},n=t.printWidth,a=_h(t.endOfLine),i=0,u=[{ind:ib(),mode:Ur,doc:e}],h=[],g=!1,p=[],b=0;for(wD(e);u.length>0;){let{ind:F,mode:S,doc:R}=u.pop();switch(zo(R)){case Mo:{let O=a!==`
|
|
115
|
+
`?ic(!1,R,`
|
|
116
|
+
`,a):R;h.push(O),u.length>0&&(i+=Bh(O));break}case Qa:for(let O=R.length-1;O>=0;O--)u.push({ind:F,mode:S,doc:R[O]});break;case eo:if(b>=2)throw new Error("There are too many 'cursor' in doc.");h.push(Gs),b++;break;case $a:u.push({ind:JD(F,t),mode:S,doc:R.contents});break;case ei:u.push({ind:XD(F,R.n,t),mode:S,doc:R.contents});break;case ti:i-=Ih(h);break;case jr:switch(S){case xa:if(!g){u.push({ind:F,mode:R.break?Ur:xa,doc:R.contents});break}case Ur:{g=!1;let O={ind:F,mode:xa,doc:R.contents},N=n-i,_=p.length>0;if(!R.break&&cc(O,u,N,_,r))u.push(O);else if(R.expandedStates){let M=tr(!1,R.expandedStates,-1);if(R.break){u.push({ind:F,mode:Ur,doc:M});break}else for(let U=1;U<R.expandedStates.length+1;U++)if(U>=R.expandedStates.length){u.push({ind:F,mode:Ur,doc:M});break}else{let H=R.expandedStates[U],q={ind:F,mode:xa,doc:H};if(cc(q,u,N,_,r)){u.push(q);break}}}else u.push({ind:F,mode:Ur,doc:R.contents});break}}R.id&&(r[R.id]=tr(!1,u,-1).mode);break;case ba:{let O=n-i,N=R[Ph]??0,{parts:_}=R,M=_.length-N;if(M===0)break;let U=_[N+0],H=_[N+1],q={ind:F,mode:xa,doc:U},Q={ind:F,mode:Ur,doc:U},Y=cc(q,[],O,p.length>0,r,!0);if(M===1){Y?u.push(q):u.push(Q);break}let ie={ind:F,mode:xa,doc:H},ee={ind:F,mode:Ur,doc:H};if(M===2){Y?u.push(ie,q):u.push(ee,Q);break}let ve=_[N+2],ge={ind:F,mode:S,doc:{...R,[Ph]:N+2}};cc({ind:F,mode:xa,doc:[U,H,ve]},[],O,p.length>0,r,!0)?u.push(ge,ie,q):Y?u.push(ge,ee,q):u.push(ge,ee,Q);break}case an:case ri:{let O=R.groupId?r[R.groupId]:S;if(O===Ur){let N=R.type===an?R.breakContents:R.negate?R.contents:lc(R.contents);N&&u.push({ind:F,mode:S,doc:N})}if(O===xa){let N=R.type===an?R.flatContents:R.negate?lc(R.contents):R.contents;N&&u.push({ind:F,mode:S,doc:N})}break}case ni:p.push({ind:F,mode:S,doc:R.contents});break;case ai:p.length>0&&u.push({ind:F,mode:S,doc:Oh});break;case dr:switch(S){case xa:if(R.hard)g=!0;else{R.soft||(h.push(" "),i+=1);break}case Ur:if(p.length>0){u.push({ind:F,mode:S,doc:R},...p.reverse()),p.length=0;break}R.literal?F.root?(h.push(a,F.root.value),i=F.root.length):(h.push(a),i=0):(i-=Ih(h),h.push(a+F.value),i=F.length);break}break;case ya:u.push({ind:F,mode:S,doc:R.contents});break;case Tn:break;default:throw new Us(R)}u.length===0&&p.length>0&&(u.push(...p.reverse()),p.length=0)}let D=h.indexOf(Gs);if(D!==-1){let F=h.indexOf(Gs,D+1);if(F===-1)return{formatted:h.filter(N=>N!==Gs).join("")};let S=h.slice(0,D).join(""),R=h.slice(D+1,F).join(""),O=h.slice(F+1).join("");return{formatted:S+R+O,cursorNodeStart:S.length,cursorNodeText:R}}return{formatted:h.join("")}}function ZD(e,t,r=0){let n=0;for(let a=r;a<e.length;++a)e[a]===" "?n=n+t-n%t:n++;return n}var Mh=ZD,Uo,zh,fc,qD=class{constructor(e){rD(this,Uo),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return tr(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:tr(!1,this.stack,-2)}get node(){return tr(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=tr(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Gl(this,Uo,fc).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?tr(!1,e,-2):null}getValue(){return tr(!1,this.stack,-1)}getNode(e=0){let t=Gl(this,Uo,zh).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,a=tr(!1,r,-1);for(let i of t)a=a[i],r.push(i,a);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=Gl(this,Uo,zh).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,a=tr(!1,r,-1);for(let i of t)a=a[i],r.push(i,a);try{for(let i=0;i<a.length;++i)r.push(i,a[i]),e(this,i,a),r.length-=2}finally{r.length=n}}map(e,...t){let r=[];return this.each((n,a,i)=>{r[a]=e(n,a,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let a of e){if(n===void 0)return!1;let i=null;if(typeof r=="number"&&(i=r,r=this.stack[t--],n=this.stack[t--]),a&&!a(n,r,i))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of Gl(this,Uo,fc).call(this))if(e(t))return t}hasAncestor(e){for(let t of Gl(this,Uo,fc).call(this))if(e(t))return!0;return!1}};Uo=new WeakSet,zh=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},fc=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var KD=qD,ob=new Proxy(()=>{},{get:()=>ob}),Hh=ob;function QD(e){return e!==null&&typeof e=="object"}var $D=QD;function*hc(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,a=i=>$D(i)&&n(i);for(let i of r(e)){let u=e[i];if(Array.isArray(u))for(let h of u)a(h)&&(yield h);else a(u)&&(yield u)}}function*e1(e,t){let r=[e];for(let n=0;n<r.length;n++){let a=r[n];for(let i of hc(a,t))yield i,r.push(i)}}function t1(e,t){return hc(e,t).next().done}function Yl(e){return(t,r,n)=>{let a=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:i}=t,u=r;for(;u>=0&&u<i;){let h=t.charAt(u);if(e instanceof RegExp){if(!e.test(h))return u}else if(!e.includes(h))return u;a?u--:u++}return u===-1||u===i?u:!1}}var r1=Yl(/\s/u),to=Yl(" "),sb=Yl(",; "),lb=Yl(/[^\n\r]/u);function n1(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let a=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&a===`
|
|
117
|
+
`)return t-2;if(a===`
|
|
118
|
+
`||a==="\r"||a==="\u2028"||a==="\u2029")return t-1}else{if(a==="\r"&&e.charAt(t+1)===`
|
|
119
|
+
`)return t+2;if(a===`
|
|
120
|
+
`||a==="\r"||a==="\u2028"||a==="\u2029")return t+1}return t}var Wo=n1;function a1(e,t,r={}){let n=to(e,r.backwards?t-1:t,r),a=Wo(e,n,r);return n!==a}var ro=a1;function i1(e){return Array.isArray(e)&&e.length>0}var o1=i1,ub=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),s1=e=>Object.keys(e).filter(t=>!ub.has(t));function l1(e){return e?t=>e(t,ub):s1}var pc=l1;function u1(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function jh(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=u1(e)}function Jl(e,t){t.leading=!0,t.trailing=!1,jh(e,t)}function Go(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),jh(e,t)}function Xl(e,t){t.leading=!1,t.trailing=!0,jh(e,t)}var Uh=new WeakMap;function Wh(e,t){if(Uh.has(e))return Uh.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:a},locStart:i,locEnd:u}=t;if(!n)return[];let h=(r?.(e,t)??[...hc(e,{getVisitorKeys:pc(a)})]).flatMap(g=>n(g)?[g]:Wh(g,t));return h.sort((g,p)=>i(g)-i(p)||u(g)-u(p)),Uh.set(e,h),h}function cb(e,t,r,n){let{locStart:a,locEnd:i}=r,u=a(t),h=i(t),g=Wh(e,r),p,b,D=0,F=g.length;for(;D<F;){let S=D+F>>1,R=g[S],O=a(R),N=i(R);if(O<=u&&h<=N)return cb(R,t,r,R);if(N<=u){p=R,D=S+1;continue}if(h<=O){b=R,F=S;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:S}=n,R=Vh(S,t,r);p&&Vh(S,p,r)!==R&&(p=null),b&&Vh(S,b,r)!==R&&(b=null)}return{enclosingNode:n,precedingNode:p,followingNode:b}}var Gh=()=>!1;function c1(e,t){let{comments:r}=e;if(delete e.comments,!o1(r)||!t.printer.canAttachComment)return;let n=[],{printer:{experimentalFeatures:{avoidAstMutation:a=!1}={},handleComments:i={}},originalText:u}=t,{ownLine:h=Gh,endOfLine:g=Gh,remaining:p=Gh}=i,b=r.map((D,F)=>({...cb(e,D,t),comment:D,text:u,options:t,ast:e,isLastComment:r.length-1===F}));for(let[D,F]of b.entries()){let{comment:S,precedingNode:R,enclosingNode:O,followingNode:N,text:_,options:M,ast:U,isLastComment:H}=F,q;if(a?q=[F]:(S.enclosingNode=O,S.precedingNode=R,S.followingNode=N,q=[S,_,M,U,H]),d1(_,M,b,D))S.placement="ownLine",h(...q)||(N?Jl(N,S):R?Xl(R,S):Go(O||U,S));else if(f1(_,M,b,D))S.placement="endOfLine",g(...q)||(R?Xl(R,S):N?Jl(N,S):Go(O||U,S));else if(S.placement="remaining",!p(...q))if(R&&N){let Q=n.length;Q>0&&n[Q-1].followingNode!==N&&fb(n,M),n.push(F)}else R?Xl(R,S):N?Jl(N,S):Go(O||U,S)}if(fb(n,t),!a)for(let D of r)delete D.precedingNode,delete D.enclosingNode,delete D.followingNode}var db=e=>!/[\S\n\u2028\u2029]/u.test(e);function d1(e,t,r,n){let{comment:a,precedingNode:i}=r[n],{locStart:u,locEnd:h}=t,g=u(a);if(i)for(let p=n-1;p>=0;p--){let{comment:b,precedingNode:D}=r[p];if(D!==i||!db(e.slice(h(b),g)))break;g=u(b)}return ro(e,g,{backwards:!0})}function f1(e,t,r,n){let{comment:a,followingNode:i}=r[n],{locStart:u,locEnd:h}=t,g=h(a);if(i)for(let p=n+1;p<r.length;p++){let{comment:b,followingNode:D}=r[p];if(D!==i||!db(e.slice(g,u(b))))break;g=h(b)}return ro(e,g)}function fb(e,t){var r,n;let a=e.length;if(a===0)return;let{precedingNode:i,followingNode:u}=e[0],h=t.locStart(u),g;for(g=a;g>0;--g){let{comment:p,precedingNode:b,followingNode:D}=e[g-1];Hh.strictEqual(b,i),Hh.strictEqual(D,u);let F=t.originalText.slice(t.locEnd(p),h);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,F,t))??/^[\s(]*$/u.test(F))h=t.locStart(p);else break}for(let[p,{comment:b}]of e.entries())p<g?Xl(i,b):Jl(u,b);for(let p of[i,u])p.comments&&p.comments.length>1&&p.comments.sort((b,D)=>t.locStart(b)-t.locStart(D));e.length=0}function Vh(e,t,r){let n=r.locStart(t)-1;for(let a=1;a<e.length;++a)if(n<r.locStart(e[a]))return a-1;return 0}function h1(e,t){let r=t-1;r=to(e,r,{backwards:!0}),r=Wo(e,r,{backwards:!0}),r=to(e,r,{backwards:!0});let n=Wo(e,r,{backwards:!0});return r!==n}var Yh=h1;function hb(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function p1(e,t){var r;let n=e.node,a=[hb(e,t)],{printer:i,originalText:u,locStart:h,locEnd:g}=t;if((r=i.isBlockComment)!=null&&r.call(i,n)){let b=ro(u,g(n))?ro(u,h(n),{backwards:!0})?Ho:tb:" ";a.push(b)}else a.push(Ho);let p=Wo(u,to(u,g(n)));return p!==!1&&ro(u,p)&&a.push(Ho),a}function g1(e,t,r){var n;let a=e.node,i=hb(e,t),{printer:u,originalText:h,locStart:g}=t,p=(n=u.isBlockComment)==null?void 0:n.call(u,a);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||ro(h,g(a),{backwards:!0})){let b=Yh(h,g(a));return{doc:Rh([Ho,b?Ho:"",i]),isBlock:p,hasLineSuffix:!0}}return!p||r!=null&&r.hasLineSuffix?{doc:[Rh([" ",i]),uc],isBlock:p,hasLineSuffix:!0}:{doc:[" ",i],isBlock:p,hasLineSuffix:!1}}function m1(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(h=>!n.has(h)).length===0)return{leading:"",trailing:""};let a=[],i=[],u;return e.each(()=>{let h=e.node;if(n!=null&&n.has(h))return;let{leading:g,trailing:p}=h;g?a.push(p1(e,t)):p&&(u=g1(e,t,u),i.push(u.doc))},"comments"),{leading:a,trailing:i}}function v1(e,t,r){let{leading:n,trailing:a}=m1(e,r);return!n&&!a?t:sc(t,i=>[n,i,a])}function b1(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var pb=class extends Error{constructor(){super(...arguments);Xa(this,"name","ConfigError")}},gb=class extends Error{constructor(){super(...arguments);Xa(this,"name","UndefinedParserError")}},y1={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
227
121
|
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
228
122
|
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
229
|
-
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function
|
|
230
|
-
`)),
|
|
231
|
-
`)),
|
|
232
|
-
`,1)[0].length);return i>t&&i>c?n:r}var Vg=[],_0=[];function rE(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let c=0;for(;c<n&&e.charCodeAt(c)===t.charCodeAt(c);)c++;if(n-=c,i-=c,n===0)return i;let f,g,b,m,v=0,E=0;for(;v<n;)_0[v]=e.charCodeAt(c+v),Vg[v]=++v;for(;E<i;)for(f=t.charCodeAt(c+E),b=E++,g=E,v=0;v<n;v++)m=f===_0[v]?b:b+1,b=Vg[v],g=Vg[v]=b>g?m>g?g+1:m:m>b?b+1:m;return g}var R0=(e,t,{descriptor:r,logger:n,schemas:i})=>{let c=[`Ignored unknown option ${Jo.yellow(r.pair({key:e,value:t}))}.`],f=Object.keys(i).sort().find(g=>rE(e,g)<3);f&&c.push(`Did you mean ${Jo.blue(r.key(f))}?`),n.warn(c.join(" "))},nE=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function aE(e,t){let r=new e(t),n=Object.create(r);for(let i of nE)i in t&&(n[i]=oE(t[i],r,Hs.prototype[i].length));return n}var Hs=class{static create(e){return aE(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return Vf}};function oE(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var iE=class extends Hs{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},sE=class extends Hs{expected(){return"anything"}validate(){return!0}},lE=class extends Hs{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let i=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);i!==!0&&r.push(i.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);i!==!1&&r.push(...i.map(({value:c})=>({value:[c]})))}return r}forward(e,t){let r=[];for(let n of e){let i=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...i.map(N0))}return r}redirect(e,t){let r=[],n=[];for(let i of e){let c=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in c&&r.push(c.remain),n.push(...c.redirect.map(N0))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function N0({from:e,to:t}){return{from:[e],to:t}}var uE=class extends Hs{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function cE(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function dE(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function fE(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function hE(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function pE(e){return e===Math.floor(e)}function gE(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function mE(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function P0(e){return e===void 0?{}:e}function O0(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return vE((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(O0)}}:{text:t}}function B0(e,t){return e===!0?!0:e===!1?{value:t}:e}function I0(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function L0(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Xg(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>L0(r,t)):[L0(e,t)]}function M0(e,t){let r=Xg(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function vE(e,t){if(!e)throw new Error(t)}var bE=class extends Hs{constructor(e){super(e),this._choices=dE(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(gE).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},yE=class extends Hs{expected(){return"a number"}validate(e,t){return typeof e=="number"}},wE=class extends yE{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&pE(e)}},z0=class extends Hs{expected(){return"a string"}validate(e){return typeof e=="string"}},xE=tc,DE=R0,CE=tE,EE=eE,FE=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:i=xE,unknown:c=DE,invalid:f=CE,deprecated:g=EE,missing:b=()=>!1,required:m=()=>!1,preprocess:v=A=>A,postprocess:E=()=>Vf}=t||{};this._utils={descriptor:i,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:cE(e,"name"),normalizeDefaultResult:P0,normalizeExpectedResult:O0,normalizeDeprecatedResult:I0,normalizeForwardResult:Xg,normalizeRedirectResult:M0,normalizeValidateResult:B0},this._unknownHandler=c,this._invalidHandler=mE(f),this._deprecatedHandler=g,this._identifyMissing=(A,F)=>!(A in F)||b(A,F),this._identifyRequired=m,this._preprocess=v,this._postprocess=E,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=fE()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let i=r.shift(),c=this._applyNormalization(i,t);r.push(...c)}};n();for(let i of Object.keys(this._utils.schemas)){let c=this._utils.schemas[i];if(!(i in t)){let f=P0(c.default(this._utils));"value"in f&&r.push({[i]:f.value})}}n();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let c=this._utils.schemas[i],f=t[i],g=c.postprocess(f,this._utils);g!==Vf&&(this._applyValidation(g,i,c),t[i]=g)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(let c of n){let f=this._utils.schemas[c],g=f.preprocess(e[c],this._utils);this._applyValidation(g,c,f);let b=({from:E,to:A})=>{r.push(typeof A=="string"?{[A]:E}:{[A.key]:A.value})},m=({value:E,redirectTo:A})=>{let F=I0(f.deprecated(E,this._utils),g,!0);if(F!==!1)if(F===!0)this._hasDeprecationWarned(c)||this._utils.logger.warn(this._deprecatedHandler(c,A,this._utils));else for(let{value:S}of F){let N={key:c,value:S};if(!this._hasDeprecationWarned(N)){let O=typeof A=="string"?{key:A,value:S}:A;this._utils.logger.warn(this._deprecatedHandler(N,O,this._utils))}}};Xg(f.forward(g,this._utils),g).forEach(b);let v=M0(f.redirect(g,this._utils),g);if(v.redirect.forEach(b),"remain"in v){let E=v.remain;t[c]=c in t?f.overlap(t[c],E,this._utils):E,m({value:E})}for(let{from:E,to:A}of v.redirect)m({value:E,redirectTo:A})}for(let c of i){let f=e[c];this._applyUnknownHandler(c,f,t,(g,b)=>{r.push({[g]:b})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,F0,this._utils)}_partitionOptionKeys(e){let[t,r]=hE(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=B0(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let i=this._unknownHandler(e,t,this._utils);if(i)for(let c of Object.keys(i)){if(this._identifyMissing(c,i))continue;let f=i[c];c in this._utils.schemas?n(c,f):r[c]=f}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Vf){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let i of r){let c=t.override[i];this._applyValidation(c,i,this._utils.schemas[i]),e[i]=c}for(let i of n){let c=t.override[i];this._applyUnknownHandler(i,c,e,(f,g)=>{let b=this._utils.schemas[f];this._applyValidation(g,f,b),e[f]=g})}}}}},Zg;function SE(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:c,descriptor:f}={}){if(n){if(!c)throw new Error("'FlagSchema' option is required.");if(!f)throw new Error("'descriptor' option is required.")}else f=tc;let g=i?Array.isArray(i)?(A,F)=>i.includes(A)?{[A]:F}:void 0:(A,F)=>({[A]:F}):(A,F,S)=>{let{_:N,...O}=S.schemas;return R0(A,F,{...S,schemas:O})},b=kE(t,{isCLI:n,FlagSchema:c}),m=new FE(b,{logger:r,unknown:g,descriptor:f}),v=r!==!1;v&&Zg&&(m._hasDeprecationWarned=Zg);let E=m.normalize(e);return v&&(Zg=m._hasDeprecationWarned),E}function kE(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(sE.create({name:"_"}));for(let i of e)n.push(TE(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(iE.create({name:i.alias,sourceName:i.name}));return n}function TE(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,c={name:i},f,g={};switch(e.type){case"int":f=wE,t&&(c.preprocess=Number);break;case"string":f=z0;break;case"choice":f=bE,c.choices=e.choices.map(b=>b!=null&&b.redirect?{...b,redirect:{to:{key:e.name,value:b.redirect}}}:b);break;case"boolean":f=uE;break;case"flag":f=n,c.flags=r.flatMap(b=>[b.alias,b.description&&b.name,b.oppositeDescription&&`no-${b.name}`].filter(Boolean));break;case"path":f=z0;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?c.validate=(b,m,v)=>e.exception(b)||m.validate(b,v):c.validate=(b,m,v)=>b===void 0||m.validate(b,v),e.redirect&&(g.redirect=b=>b?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(g.deprecated=!0),t&&!e.array){let b=c.preprocess||(m=>m);c.preprocess=(m,v,E)=>v.preprocess(b(Array.isArray(m)?Lr(!1,m,-1):m),E)}return e.array?lE.create({...t?{preprocess:b=>Array.isArray(b)?b:[b]}:{},...g,valueSchema:f.create(c)}):f.create({...c,...g})}var AE=SE,_E=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let i=t[n];if(r(i,n,t))return i}}},H0=_E;function W0(e,t){if(!t)throw new Error("parserName is required.");let r=H0(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new h0(n)}function RE(e,t){if(!t)throw new Error("astFormat is required.");let r=H0(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new h0(n)}function Jg({plugins:e,parser:t}){let r=W0(e,t);return U0(r,t)}function U0(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function NE(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var j0={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function PE(e,t={}){var r;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=$C(n,{physicalFile:n.filepath}),!n.parser)throw new p0(`No parser could be inferred for file "${n.filepath}".`)}else throw new p0("No parser and no file path given, couldn't infer a parser.");let i=g0({plugins:e.plugins,showDeprecated:!0}).options,c={...j0,...Object.fromEntries(i.filter(A=>A.default!==void 0).map(A=>[A.name,A.default]))},f=W0(n.plugins,n.parser),g=await U0(f,n.parser);n.astFormat=g.astFormat,n.locEnd=g.locEnd,n.locStart=g.locStart;let b=(r=f.printers)!=null&&r[g.astFormat]?f:RE(n.plugins,g.astFormat),m=await NE(b,g.astFormat);n.printer=m;let v=b.defaultOptions?Object.fromEntries(Object.entries(b.defaultOptions).filter(([,A])=>A!==void 0)):{},E={...c,...v};for(let[A,F]of Object.entries(E))(n[A]===null||n[A]===void 0)&&(n[A]=F);return n.parser==="json"&&(n.trailingComma="none"),AE(n,i,{passThrough:Object.keys(j0),...t})}var rc=PE,OE=x1(E1());async function BE(e,t){let r=await Jg(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(c){IE(c,e)}return{text:n,ast:i}}function IE(e,t){let{loc:r}=e;if(r){let n=(0,OE.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
|
|
233
|
-
`+n,e.codeFrame=n,e}throw e}var
|
|
234
|
-
`,
|
|
235
|
-
`&&(
|
|
236
|
-
`)),
|
|
237
|
-
`,
|
|
238
|
-
`);r-=
|
|
239
|
-
`);return r===-1?0:
|
|
240
|
-
`)return!0;return!1}var
|
|
123
|
+
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function mb({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(a=>a.languages??[]),n=[];for(let a of w1(Object.assign({},...e.map(({options:i})=>i),y1)))!t&&a.deprecated||(Array.isArray(a.choices)&&(t||(a.choices=a.choices.filter(i=>!i.deprecated)),a.name==="parser"&&(a.choices=[...a.choices,...x1(a.choices,r,e)])),a.pluginDefaults=Object.fromEntries(e.filter(i=>{var u;return((u=i.defaultOptions)==null?void 0:u[a.name])!==void 0}).map(i=>[i.name,i.defaultOptions[a.name]])),n.push(a));return{languages:r,options:n}}function*x1(e,t,r){let n=new Set(e.map(a=>a.value));for(let a of t)if(a.parsers){for(let i of a.parsers)if(!n.has(i)){n.add(i);let u=r.find(g=>g.parsers&&Object.prototype.hasOwnProperty.call(g.parsers,i)),h=a.name;u!=null&&u.name&&(h+=` (plugin: ${u.name})`),yield{value:i,description:h}}}}function w1(e){let t=[];for(let[r,n]of Object.entries(e)){let a={name:r,...n};Array.isArray(a.default)&&(a.default=tr(!1,a.default,-1).value),t.push(a)}return t}var D1=(e,t)=>{if(!(e&&t==null))return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()},C1=D1,vb,bb,yb,xb,wb,E1=((vb=globalThis.Deno)==null?void 0:vb.build.os)==="windows"||((yb=(bb=globalThis.navigator)==null?void 0:bb.platform)==null?void 0:yb.startsWith("Win"))||((wb=(xb=globalThis.process)==null?void 0:xb.platform)==null?void 0:wb.startsWith("win"))||!1;function Db(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function F1(e){return e=Db(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function S1(e){e=Db(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function k1(e){return E1?S1(e):F1(e)}var T1=k1,_1=e=>String(e).split(/[/\\]/u).pop();function Cb(e,t){if(!t)return;let r=_1(t).toLowerCase();return e.find(({filenames:n})=>n?.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(a=>r.endsWith(a)))}function A1(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}function Eb(e,t){if(t){if(String(t).startsWith("file:"))try{t=T1(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function N1(e,t){let r=C1(!1,e.plugins).flatMap(a=>a.languages??[]),n=A1(r,t.language)??Cb(r,t.physicalFile)??Cb(r,t.file)??Eb(r,t.physicalFile)??Eb(r,t.file)??void 0;return n?.parsers[0]}var R1=N1,Vs={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Vs.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Vs.key(r)}: ${Vs.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Vs.value({[e]:t})},Fb=new Proxy(String,{get:()=>Fb}),wa=Fb,O1=(e,t,{descriptor:r})=>{let n=[`${wa.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${wa.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},Sb=Symbol.for("vnopts.VALUE_NOT_EXIST"),gc=Symbol.for("vnopts.VALUE_UNCHANGED"),kb=" ".repeat(2),B1=(e,t,r)=>{let{text:n,list:a}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(Tb(e,t,n,r.descriptor)),a&&i.push([Tb(e,t,a.title,r.descriptor)].concat(a.values.map(u=>_b(u,r.loggerPrintWidth))).join(`
|
|
124
|
+
`)),Ab(i,r.loggerPrintWidth)};function Tb(e,t,r,n){return[`Invalid ${wa.red(n.key(e))} value.`,`Expected ${wa.blue(r)},`,`but received ${t===Sb?wa.gray("nothing"):wa.red(n.value(t))}.`].join(" ")}function _b({text:e,list:t},r){let n=[];return e&&n.push(`- ${wa.blue(e)}`),t&&n.push([`- ${wa.blue(t.title)}:`].concat(t.values.map(a=>_b(a,r-kb.length).replace(/^|\n/g,`$&${kb}`))).join(`
|
|
125
|
+
`)),Ab(n,r)}function Ab(e,t){if(e.length===1)return e[0];let[r,n]=e,[a,i]=e.map(u=>u.split(`
|
|
126
|
+
`,1)[0].length);return a>t&&a>i?n:r}var Jh=[],Nb=[];function P1(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,a=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;let i=0;for(;i<n&&e.charCodeAt(i)===t.charCodeAt(i);)i++;if(n-=i,a-=i,n===0)return a;let u,h,g,p,b=0,D=0;for(;b<n;)Nb[b]=e.charCodeAt(i+b),Jh[b]=++b;for(;D<a;)for(u=t.charCodeAt(i+D),g=D++,h=D,b=0;b<n;b++)p=u===Nb[b]?g:g+1,g=Jh[b],h=Jh[b]=g>h?p>h?h+1:p:p>g?g+1:p;return h}var Rb=(e,t,{descriptor:r,logger:n,schemas:a})=>{let i=[`Ignored unknown option ${wa.yellow(r.pair({key:e,value:t}))}.`],u=Object.keys(a).sort().find(h=>P1(e,h)<3);u&&i.push(`Did you mean ${wa.blue(r.key(u))}?`),n.warn(i.join(" "))},L1=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function I1(e,t){let r=new e(t),n=Object.create(r);for(let a of L1)a in t&&(n[a]=M1(t[a],r,no.prototype[a].length));return n}var no=class{static create(e){return I1(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return gc}};function M1(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var z1=class extends no{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},H1=class extends no{expected(){return"anything"}validate(){return!0}},j1=class extends no{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let a=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);a!==!0&&r.push(a.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let a=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);a!==!1&&r.push(...a.map(({value:i})=>({value:[i]})))}return r}forward(e,t){let r=[];for(let n of e){let a=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...a.map(Ob))}return r}redirect(e,t){let r=[],n=[];for(let a of e){let i=t.normalizeRedirectResult(this._valueSchema.redirect(a,t),a);"remain"in i&&r.push(i.remain),n.push(...i.redirect.map(Ob))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function Ob({from:e,to:t}){return{from:[e],to:t}}var U1=class extends no{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function W1(e,t){let r=Object.create(null);for(let n of e){let a=n[t];if(r[a])throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);r[a]=n}return r}function G1(e,t){let r=new Map;for(let n of e){let a=n[t];if(r.has(a))throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);r.set(a,n)}return r}function V1(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function Y1(e,t){let r=[],n=[];for(let a of e)t(a)?r.push(a):n.push(a);return[r,n]}function J1(e){return e===Math.floor(e)}function X1(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,a=["undefined","object","boolean","number","string"];return r!==n?a.indexOf(r)-a.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Z1(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Bb(e){return e===void 0?{}:e}function Pb(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return q1((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(Pb)}}:{text:t}}function Lb(e,t){return e===!0?!0:e===!1?{value:t}:e}function Ib(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Mb(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Xh(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Mb(r,t)):[Mb(e,t)]}function zb(e,t){let r=Xh(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function q1(e,t){if(!e)throw new Error(t)}var K1=class extends no{constructor(e){super(e),this._choices=G1(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(a=>this._choices.get(a)).filter(({hidden:a})=>!a).map(a=>a.value).sort(X1).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Q1=class extends no{expected(){return"a number"}validate(e,t){return typeof e=="number"}},$1=class extends Q1{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&J1(e)}},Hb=class extends no{expected(){return"a string"}validate(e){return typeof e=="string"}},eC=Vs,tC=Rb,rC=B1,nC=O1,aC=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:a=eC,unknown:i=tC,invalid:u=rC,deprecated:h=nC,missing:g=()=>!1,required:p=()=>!1,preprocess:b=F=>F,postprocess:D=()=>gc}=t||{};this._utils={descriptor:a,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:W1(e,"name"),normalizeDefaultResult:Bb,normalizeExpectedResult:Pb,normalizeDeprecatedResult:Ib,normalizeForwardResult:Xh,normalizeRedirectResult:zb,normalizeValidateResult:Lb},this._unknownHandler=i,this._invalidHandler=Z1(u),this._deprecatedHandler=h,this._identifyMissing=(F,S)=>!(F in S)||g(F,S),this._identifyRequired=p,this._preprocess=b,this._postprocess=D,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=V1()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;r.length!==0;){let a=r.shift(),i=this._applyNormalization(a,t);r.push(...i)}};n();for(let a of Object.keys(this._utils.schemas)){let i=this._utils.schemas[a];if(!(a in t)){let u=Bb(i.default(this._utils));"value"in u&&r.push({[a]:u.value})}}n();for(let a of Object.keys(this._utils.schemas)){if(!(a in t))continue;let i=this._utils.schemas[a],u=t[a],h=i.postprocess(u,this._utils);h!==gc&&(this._applyValidation(h,a,i),t[a]=h)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:a}=this._partitionOptionKeys(e);for(let i of n){let u=this._utils.schemas[i],h=u.preprocess(e[i],this._utils);this._applyValidation(h,i,u);let g=({from:D,to:F})=>{r.push(typeof F=="string"?{[F]:D}:{[F.key]:F.value})},p=({value:D,redirectTo:F})=>{let S=Ib(u.deprecated(D,this._utils),h,!0);if(S!==!1)if(S===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,F,this._utils));else for(let{value:R}of S){let O={key:i,value:R};if(!this._hasDeprecationWarned(O)){let N=typeof F=="string"?{key:F,value:R}:F;this._utils.logger.warn(this._deprecatedHandler(O,N,this._utils))}}};Xh(u.forward(h,this._utils),h).forEach(g);let b=zb(u.redirect(h,this._utils),h);if(b.redirect.forEach(g),"remain"in b){let D=b.remain;t[i]=i in t?u.overlap(t[i],D,this._utils):D,p({value:D})}for(let{from:D,to:F}of b.redirect)p({value:D,redirectTo:F})}for(let i of a){let u=e[i];this._applyUnknownHandler(i,u,t,(h,g)=>{r.push({[h]:g})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,Sb,this._utils)}_partitionOptionKeys(e){let[t,r]=Y1(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Lb(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let a=this._unknownHandler(e,t,this._utils);if(a)for(let i of Object.keys(a)){if(this._identifyMissing(i,a))continue;let u=a[i];i in this._utils.schemas?n(i,u):r[i]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==gc){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let a of r){let i=t.override[a];this._applyValidation(i,a,this._utils.schemas[a]),e[a]=i}for(let a of n){let i=t.override[a];this._applyUnknownHandler(a,i,e,(u,h)=>{let g=this._utils.schemas[u];this._applyValidation(h,u,g),e[u]=h})}}}}},Zh;function iC(e,t,{logger:r=!1,isCLI:n=!1,passThrough:a=!1,FlagSchema:i,descriptor:u}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=Vs;let h=a?Array.isArray(a)?(F,S)=>a.includes(F)?{[F]:S}:void 0:(F,S)=>({[F]:S}):(F,S,R)=>{let{_:O,...N}=R.schemas;return Rb(F,S,{...R,schemas:N})},g=oC(t,{isCLI:n,FlagSchema:i}),p=new aC(g,{logger:r,unknown:h,descriptor:u}),b=r!==!1;b&&Zh&&(p._hasDeprecationWarned=Zh);let D=p.normalize(e);return b&&(Zh=p._hasDeprecationWarned),D}function oC(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(H1.create({name:"_"}));for(let a of e)n.push(sC(a,{isCLI:t,optionInfos:e,FlagSchema:r})),a.alias&&t&&n.push(z1.create({name:a.alias,sourceName:a.name}));return n}function sC(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:a}=e,i={name:a},u,h={};switch(e.type){case"int":u=$1,t&&(i.preprocess=Number);break;case"string":u=Hb;break;case"choice":u=K1,i.choices=e.choices.map(g=>g!=null&&g.redirect?{...g,redirect:{to:{key:e.name,value:g.redirect}}}:g);break;case"boolean":u=U1;break;case"flag":u=n,i.flags=r.flatMap(g=>[g.alias,g.description&&g.name,g.oppositeDescription&&`no-${g.name}`].filter(Boolean));break;case"path":u=Hb;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(g,p,b)=>e.exception(g)||p.validate(g,b):i.validate=(g,p,b)=>g===void 0||p.validate(g,b),e.redirect&&(h.redirect=g=>g?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(h.deprecated=!0),t&&!e.array){let g=i.preprocess||(p=>p);i.preprocess=(p,b,D)=>b.preprocess(g(Array.isArray(p)?tr(!1,p,-1):p),D)}return e.array?j1.create({...t?{preprocess:g=>Array.isArray(g)?g:[g]}:{},...h,valueSchema:u.create(i)}):u.create({...i,...h})}var lC=iC,uC=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let a=t[n];if(r(a,n,t))return a}}},jb=uC;function Ub(e,t){if(!t)throw new Error("parserName is required.");let r=jb(!1,e,a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new pb(n)}function cC(e,t){if(!t)throw new Error("astFormat is required.");let r=jb(!1,e,a=>a.printers&&Object.prototype.hasOwnProperty.call(a.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new pb(n)}function qh({plugins:e,parser:t}){let r=Ub(e,t);return Wb(r,t)}function Wb(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function dC(e,t){let r=e.printers[t];return typeof r=="function"?r():r}var Gb={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function fC(e,t={}){var r;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=R1(n,{physicalFile:n.filepath}),!n.parser)throw new gb(`No parser could be inferred for file "${n.filepath}".`)}else throw new gb("No parser and no file path given, couldn't infer a parser.");let a=mb({plugins:e.plugins,showDeprecated:!0}).options,i={...Gb,...Object.fromEntries(a.filter(F=>F.default!==void 0).map(F=>[F.name,F.default]))},u=Ub(n.plugins,n.parser),h=await Wb(u,n.parser);n.astFormat=h.astFormat,n.locEnd=h.locEnd,n.locStart=h.locStart;let g=(r=u.printers)!=null&&r[h.astFormat]?u:cC(n.plugins,h.astFormat),p=await dC(g,h.astFormat);n.printer=p;let b=g.defaultOptions?Object.fromEntries(Object.entries(g.defaultOptions).filter(([,F])=>F!==void 0)):{},D={...i,...b};for(let[F,S]of Object.entries(D))(n[F]===null||n[F]===void 0)&&(n[F]=S);return n.parser==="json"&&(n.trailingComma="none"),lC(n,a,{passThrough:Object.keys(Gb),...t})}var Ys=fC,hC=eD(nD());async function pC(e,t){let r=await qh(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let a;try{a=await r.parse(n,t,t)}catch(i){gC(i,e)}return{text:n,ast:a}}function gC(e,t){let{loc:r}=e;if(r){let n=(0,hC.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
|
|
127
|
+
`+n,e.codeFrame=n,e}throw e}var Zl=pC;async function mC(e,t,r,n,a){let{embeddedLanguageFormatting:i,printer:{embed:u,hasPrettierIgnore:h=()=>!1,getVisitorKeys:g}}=r;if(!u||i!=="auto")return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let p=pc(u.getVisitorKeys??g),b=[];S();let D=e.stack;for(let{print:R,node:O,pathStack:N}of b)try{e.stack=N;let _=await R(F,t,e,r);_&&a.set(O,_)}catch(_){if(globalThis.PRETTIER_DEBUG)throw _}e.stack=D;function F(R,O){return vC(R,O,r,n)}function S(){let{node:R}=e;if(R===null||typeof R!="object"||h(e))return;for(let N of p(R))Array.isArray(R[N])?e.each(S,N):e.call(S,N);let O=u(e,r);if(O){if(typeof O=="function"){b.push({print:O,node:R,pathStack:[...e.stack]});return}a.set(R,O)}}}async function vC(e,t,r,n){let a=await Ys({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:i}=await Zl(e,a),u=await n(i,a);return Qv(u)}function bC(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:a,locEnd:i,[Symbol.for("printedComments")]:u}=t,{node:h}=e,g=a(h),p=i(h);for(let b of n)a(b)>=g&&i(b)<=p&&u.add(b);return r.slice(g,p)}var yC=bC;async function mc(e,t){({ast:e}=await Yb(e,t));let r=new Map,n=new KD(e),a=new Map;await mC(n,u,t,mc,a);let i=await Vb(n,t,u,void 0,a);if(b1(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[jo,i];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[i,jo]}return i;function u(g,p){return g===void 0||g===n?h(p):Array.isArray(g)?n.call(()=>h(p),...g):n.call(()=>h(p),g)}function h(g){let p=n.node;if(p==null)return"";let b=p&&typeof p=="object"&&g===void 0;if(b&&r.has(p))return r.get(p);let D=Vb(n,t,u,g,a);return b&&r.set(p,D),D}}function Vb(e,t,r,n,a){var i;let{node:u}=e,{printer:h}=t,g;switch((i=h.hasPrettierIgnore)!=null&&i.call(h,e)?g=yC(e,t):a.has(u)?g=a.get(u):g=h.print(e,t,r,n),u){case t.cursorNode:g=sc(g,p=>[jo,p,jo]);break;case t.nodeBeforeCursor:g=sc(g,p=>[p,jo]);break;case t.nodeAfterCursor:g=sc(g,p=>[jo,p]);break}return h.printComment&&(!h.willPrintOwnComments||!h.willPrintOwnComments(e,t))&&(g=v1(e,g,t)),g}async function Yb(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,c1(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function xC(e,t){let{cursorOffset:r,locStart:n,locEnd:a}=t,i=pc(t.printer.getVisitorKeys),u=S=>n(S)<=r&&a(S)>=r,h=e,g=[e];for(let S of e1(e,{getVisitorKeys:i,filter:u}))g.push(S),h=S;if(t1(h,{getVisitorKeys:i}))return{cursorNode:h};let p,b,D=-1,F=Number.POSITIVE_INFINITY;for(;g.length>0&&(p===void 0||b===void 0);){h=g.pop();let S=p!==void 0,R=b!==void 0;for(let O of hc(h,{getVisitorKeys:i})){if(!S){let N=a(O);N<=r&&N>D&&(p=O,D=N)}if(!R){let N=n(O);N>=r&&N<F&&(b=O,F=N)}}}return{nodeBeforeCursor:p,nodeAfterCursor:b}}var Jb=xC;function wC(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let a=pc(n),i=r.ignoredProperties??new Set;return u(e);function u(h,g){if(!(h!==null&&typeof h=="object"))return h;if(Array.isArray(h))return h.map(F=>u(F,g)).filter(Boolean);let p={},b=new Set(a(h));for(let F in h)!Object.prototype.hasOwnProperty.call(h,F)||i.has(F)||(b.has(F)?p[F]=u(h[F],h):p[F]=h[F]);let D=r(h,p,g);if(D!==null)return D??p}}var DC=wC,CC=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){let a=t[n];if(r(a,n,t))return n}return-1}},EC=CC,FC=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function SC(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(a=>Zb.has(a.type)&&n.has(a))}function Xb(e){let t=EC(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function kC(e,t,{locStart:r,locEnd:n}){let a=e.node,i=t.node;if(a===i)return{startNode:a,endNode:i};let u=r(e.node);for(let g of Xb(t.parentNodes))if(r(g)>=u)i=g;else break;let h=n(t.node);for(let g of Xb(e.parentNodes)){if(n(g)<=h)a=g;else break;if(a===i)break}return{startNode:a,endNode:i}}function Kh(e,t,r,n,a=[],i){let{locStart:u,locEnd:h}=r,g=u(e),p=h(e);if(!(t>p||t<g||i==="rangeEnd"&&t===g||i==="rangeStart"&&t===p)){for(let b of Wh(e,r)){let D=Kh(b,t,r,n,[e,...a],i);if(D)return D}if(!n||n(e,a[0]))return{node:e,parentNodes:a}}}function TC(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var Zb=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),_C=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function qb(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return TC(t.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Zb.has(t.type);case"graphql":return _C.has(t.kind);case"vue":return t.tag!=="root"}return!1}function AC(e,t,r){let{rangeStart:n,rangeEnd:a,locStart:i,locEnd:u}=t;Hh.ok(a>n);let h=e.slice(n,a).search(/\S/u),g=h===-1;if(!g)for(n+=h;a>n&&!/\S/u.test(e[a-1]);--a);let p=Kh(r,n,t,(S,R)=>qb(t,S,R),[],"rangeStart"),b=g?p:Kh(r,a,t,S=>qb(t,S),[],"rangeEnd");if(!p||!b)return{rangeStart:0,rangeEnd:0};let D,F;if(FC(t)){let S=SC(p,b);D=S,F=S}else({startNode:D,endNode:F}=kC(p,b,t));return{rangeStart:Math.min(i(D),i(F)),rangeEnd:Math.max(u(D),u(F))}}var Kb="\uFEFF",Qb=Symbol("cursor");async function $b(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:a}=await Zl(e,t);t.cursorOffset>=0&&(t={...t,...Jb(n,t)});let i=await mc(n,t);r>0&&(i=ab([Ho,i],r,t.tabWidth));let u=dc(i,t);if(r>0){let g=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(g),u.cursorNodeStart<0&&(u.cursorNodeStart=0,u.cursorNodeText=u.cursorNodeText.trimStart()),u.cursorNodeStart+u.cursorNodeText.length>g.length&&(u.cursorNodeText=u.cursorNodeText.trimEnd())),u.formatted=g+_h(t.endOfLine)}let h=t[Symbol.for("comments")];if(t.cursorOffset>=0){let g,p,b,D;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&u.cursorNodeText)if(b=u.cursorNodeStart,D=u.cursorNodeText,t.cursorNode)g=t.locStart(t.cursorNode),p=a.slice(g,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");g=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let _=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):a.length;p=a.slice(g,_)}else g=0,p=a,b=0,D=u.formatted;let F=t.cursorOffset-g;if(p===D)return{formatted:u.formatted,cursorOffset:b+F,comments:h};let S=p.split("");S.splice(F,0,Qb);let R=D.split(""),O=uD(S,R),N=b;for(let _ of O)if(_.removed){if(_.value.includes(Qb))break}else N+=_.count;return{formatted:u.formatted,cursorOffset:N,comments:h}}return{formatted:u.formatted,cursorOffset:-1,comments:h}}async function NC(e,t){let{ast:r,text:n}=await Zl(e,t),{rangeStart:a,rangeEnd:i}=AC(n,t,r),u=n.slice(a,i),h=Math.min(a,n.lastIndexOf(`
|
|
128
|
+
`,a)+1),g=n.slice(h,a).match(/^\s*/u)[0],p=Mh(g,t.tabWidth),b=await $b(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>a&&t.cursorOffset<=i?t.cursorOffset-a:-1,endOfLine:"lf"},p),D=b.formatted.trimEnd(),{cursorOffset:F}=t;F>i?F+=D.length-u.length:b.cursorOffset>=0&&(F=b.cursorOffset+a);let S=n.slice(0,a)+D+n.slice(i);if(t.endOfLine!=="lf"){let R=_h(t.endOfLine);F>=0&&R===`\r
|
|
129
|
+
`&&(F+=Jv(S.slice(0,F),`
|
|
130
|
+
`)),S=ic(!1,S,`
|
|
131
|
+
`,R)}return{formatted:S,cursorOffset:F,comments:b.comments}}function Qh(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function e0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a}=t;return r=Qh(e,r,-1),n=Qh(e,n,0),a=Qh(e,a,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:a}}function t0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:i}=e0(e,t),u=e.charAt(0)===Kb;if(u&&(e=e.slice(1),r--,n--,a--),i==="auto"&&(i=cD(e)),e.includes("\r")){let h=g=>Jv(e.slice(0,Math.max(g,0)),`\r
|
|
132
|
+
`);r-=h(r),n-=h(n),a-=h(a),e=dD(e)}return{hasBOM:u,text:e,options:e0(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:i})}}async function r0(e,t){let r=await qh(t);return!r.hasPragma||r.hasPragma(e)}async function RC(e,t){var r;let n=await qh(t);return(r=n.hasIgnorePragma)==null?void 0:r.call(n,e)}async function n0(e,t){let{hasBOM:r,text:n,options:a}=t0(e,await Ys(t));if(a.rangeStart>=a.rangeEnd&&n!==""||a.requirePragma&&!await r0(n,a)||a.checkIgnorePragma&&await RC(n,a))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return a.rangeStart>0||a.rangeEnd<n.length?i=await NC(n,a):(!a.requirePragma&&a.insertPragma&&a.printer.insertPragma&&!await r0(n,a)&&(n=a.printer.insertPragma(n)),i=await $b(n,a)),r&&(i.formatted=Kb+i.formatted,i.cursorOffset>=0&&i.cursorOffset++),i}async function OC(e,t,r){let{text:n,options:a}=t0(e,await Ys(t)),i=await Zl(n,a);return r&&(r.preprocessForPrint&&(i.ast=await Yb(i.ast,a)),r.massage&&(i.ast=DC(i.ast,a))),i}async function BC(e,t){t=await Ys(t);let r=await mc(e,t);return dc(r,t)}async function PC(e,t){let r=HD(e),{formatted:n}=await n0(r,{...t,parser:"__js_expression"});return n}async function LC(e,t){t=await Ys(t);let{ast:r}=await Zl(e,t);return t.cursorOffset>=0&&(t={...t,...Jb(r,t)}),mc(r,t)}async function IC(e,t){return dc(e,await Ys(t))}var a0={};Th(a0,{builders:()=>MC,printer:()=>zC,utils:()=>HC});var MC={join:nb,line:tb,softline:MD,hardline:Ho,literalline:rb,group:$v,conditionalGroup:RD,fill:OD,lineSuffix:Rh,lineSuffixBoundary:LD,cursor:jo,breakParent:uc,ifBreak:BD,trim:ID,indent:lc,indentIfBreak:PD,align:Ws,addAlignmentToDoc:ab,markAsRoot:AD,dedentToRoot:_D,dedent:ND,hardlineWithoutBreakParent:Oh,literallineWithoutBreakParent:eb,label:zD,concat:e=>e},zC={printDocToString:dc},HC={willBreak:xD,traverseDoc:Ah,findInDoc:Nh,mapDoc:oc,removeLines:CD,stripTrailingHardline:Qv,replaceEndOfLine:SD,canBreak:TD},jC="3.6.2",i0={};Th(i0,{addDanglingComment:()=>Go,addLeadingComment:()=>Jl,addTrailingComment:()=>Xl,getAlignmentSize:()=>Mh,getIndentSize:()=>JC,getMaxContinuousCount:()=>qC,getNextNonSpaceNonCommentCharacter:()=>QC,getNextNonSpaceNonCommentCharacterIndex:()=>lE,getPreferredQuote:()=>eE,getStringWidth:()=>Bh,hasNewline:()=>ro,hasNewlineInRange:()=>rE,hasSpaces:()=>aE,isNextLineEmpty:()=>fE,isNextLineEmptyAfterIndex:()=>rp,isPreviousLineEmpty:()=>cE,makeString:()=>oE,skip:()=>Yl,skipEverythingButNewLine:()=>lb,skipInlineComment:()=>$h,skipNewline:()=>Wo,skipSpaces:()=>to,skipToLineEnd:()=>sb,skipTrailingComment:()=>ep,skipWhitespace:()=>r1});function UC(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var $h=UC;function WC(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?lb(e,t):t}var ep=WC;function GC(e,t){let r=null,n=t;for(;n!==r;)r=n,n=to(e,n),n=$h(e,n),n=ep(e,n),n=Wo(e,n);return n}var tp=GC;function VC(e,t){let r=null,n=t;for(;n!==r;)r=n,n=sb(e,n),n=$h(e,n),n=to(e,n);return n=ep(e,n),n=Wo(e,n),n!==!1&&ro(e,n)}var rp=VC;function YC(e,t){let r=e.lastIndexOf(`
|
|
133
|
+
`);return r===-1?0:Mh(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var JC=YC;function XC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ZC(e,t){let r=e.match(new RegExp(`(${XC(t)})+`,"gu"));return r===null?0:r.reduce((n,a)=>Math.max(n,a.length/t.length),0)}var qC=ZC;function KC(e,t){let r=tp(e,t);return r===!1?"":e.charAt(r)}var QC=KC,vc="'",o0='"';function $C(e,t){let r=t===!0||t===vc?vc:o0,n=r===vc?o0:vc,a=0,i=0;for(let u of e)u===r?a++:u===n&&i++;return a>i?n:r}var eE=$C;function tE(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
134
|
+
`)return!0;return!1}var rE=tE;function nE(e,t,r={}){return to(e,r.backwards?t-1:t,r)!==t}var aE=nE;function iE(e,t,r){let n=t==='"'?"'":'"',a=ic(!1,e,/\\(.)|(["'])/gsu,(i,u,h)=>u===n?u:h===t?"\\"+h:h||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return t+a+t}var oE=iE;function sE(e,t,r){return tp(e,r(t))}function lE(e,t){return arguments.length===2||typeof t=="number"?tp(e,t):sE(...arguments)}function uE(e,t,r){return Yh(e,r(t))}function cE(e,t){return arguments.length===2||typeof t=="number"?Yh(e,t):uE(...arguments)}function dE(e,t,r){return rp(e,r(t))}function fE(e,t){return arguments.length===2||typeof t=="number"?rp(e,t):dE(...arguments)}function Vo(e,t=1){return async(...r)=>{let n=r[t]??{},a=n.plugins??[];return r[t]={...n,plugins:Array.isArray(a)?a:Object.values(a)},e(...r)}}var s0=Vo(n0);async function np(e,t){let{formatted:r}=await s0(e,{...t,cursorOffset:-1});return r}async function hE(e,t){return await np(e,t)===e}var pE=Vo(mb,0),gE={parse:Vo(OC),formatAST:Vo(BC),formatDoc:Vo(PC),printToDoc:Vo(LC),printDocToString:Vo(IC)};function mE(e=""){const{actions:t,query:r}=Hr(),{getHtml:n}=ac(),{import:a}=Fh(),[i,u]=I.useState(e),[h,g]=I.useState(e),[p,b]=I.useState("idle"),[D,F]=I.useState(""),[S,R]=I.useState(!1),O=I.useCallback(async()=>{if(i.trim()){R(!0);try{const ie=await np(i,{parser:"html",plugins:[Yw],printWidth:80,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!1,trailingComma:"none",bracketSpacing:!0,htmlWhitespaceSensitivity:"css"});u(ie)}catch(ie){console.error("Error formatting HTML:",ie);const ee=i.replace(/>\s*</g,"><").replace(/\n\s*\n/g,`
|
|
241
135
|
`).split(`
|
|
242
|
-
`).map(
|
|
243
|
-
`);c(ve)}finally{F(!1)}}},[i]),N=L.useRef(null),O=L.useRef(!1),B=i!==f;L.useEffect(()=>{if(!O.current&&t&&r)try{const K=n();K&&K.trim()&&(c(K),g(K)),O.current=!0}catch(K){console.warn("Could not initialize code from canvas:",K)}},[t,r,n]);const z=L.useCallback(async()=>{if(!(!t||!i.trim())){m("processing"),E("");try{await new Promise(K=>setTimeout(K,500)),m("success")}catch(K){console.error("Error applying code to canvas:",K),m("error"),E(K instanceof Error?K.message:"Unknown error occurred")}}},[t,i]),Z=L.useCallback(K=>{c(K),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{K.trim()?z():m("idle")},1e3)},[z]),V=L.useCallback(()=>{g(i),m("success");try{localStorage.setItem("editor_saved_code",i)}catch(K){console.warn("Could not save to localStorage:",K)}},[i]),J=L.useCallback(()=>{c(f),m("idle"),E(""),N.current&&clearTimeout(N.current)},[f]),$=L.useCallback(()=>{N.current&&clearTimeout(N.current),m("idle"),E("")},[]);return L.useEffect(()=>()=>{N.current&&clearTimeout(N.current)},[]),{codeValue:i,savedCodeValue:f,conversionStatus:b,hasUnsavedChanges:B,errorMessage:v,isFormattingCode:A,handleCodeChange:Z,handleSave:V,handleRevert:J,handleClose:$,applyCodeToCanvas:z,formatCode:S}}const MF=({onClose:e,onFormat:t,onSave:r,isFormattingCode:n,codeValue:i,hasUnsavedChanges:c,conversionStatus:f})=>w.jsxs("div",{className:"flex items-center justify-between border-b border-gray-700 bg-[#23272f] px-4 py-2",children:[w.jsxs("div",{className:"flex items-center space-x-3",children:[w.jsx("div",{className:"group relative",children:w.jsx("button",{className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white",onClick:e,"aria-label":"Close Code Panel",children:w.jsx(Te.FiX,{size:18})})}),w.jsx("span",{className:"text-base font-semibold text-white",children:"Code Editor"}),w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx("div",{className:`h-2 w-2 rounded-full ${c?"bg-yellow-500":"bg-green-500"}`}),w.jsx("span",{className:`text-xs font-medium ${c?"text-yellow-400":"text-green-400"}`,children:c?"Unsaved":"Saved"})]})]}),w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsxs("div",{className:"group relative",children:[w.jsx("button",{onClick:t,disabled:n||!i.trim(),className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white disabled:cursor-not-allowed disabled:text-gray-600","aria-label":"Format HTML",children:n?w.jsx(Te.FiLoader,{size:18,className:"animate-spin"}):w.jsx(Te.FiFileText,{size:18})}),w.jsx("span",{className:"absolute bottom-full left-1/2 z-10 mb-2 -translate-x-1/2 transform whitespace-nowrap rounded bg-gray-900 px-2 py-1 text-xs text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:n?"Formatting HTML...":"Format HTML"})]}),w.jsxs("div",{className:"group relative",children:[w.jsx("button",{onClick:r,disabled:f==="processing"||!c,className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white disabled:cursor-not-allowed disabled:text-gray-600","aria-label":"Save HTML",children:w.jsx(Te.FiSave,{size:18})}),w.jsx("span",{className:"absolute bottom-full left-1/2 z-10 mb-2 -translate-x-1/2 transform whitespace-nowrap rounded bg-gray-900 px-2 py-1 text-xs text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:"Save"})]})]})]});function zF({onClose:e}){const{codeValue:t,conversionStatus:r,hasUnsavedChanges:n,handleCodeChange:i,handleSave:c,handleClose:f,formatCode:g,isFormattingCode:b}=LF();return w.jsxs("div",{className:"flex h-full w-1/2 flex-col border-r border-gray-200 bg-[#181c24]",children:[w.jsx(MF,{onClose:()=>{f(),e()},onFormat:g,onSave:c,isFormattingCode:b,codeValue:t,hasUnsavedChanges:n,conversionStatus:r}),w.jsx("div",{className:"flex-1 p-0",children:w.jsx(Cw,{height:"100%",defaultLanguage:"html",theme:"vs-dark",value:t,onChange:m=>i(m||""),options:{fontSize:16,padding:{top:10},minimap:{enabled:!1},wordWrap:"on",scrollBeyondLastLine:!1,formatOnPaste:!0,formatOnType:!0,autoIndent:"full",tabSize:2,insertSpaces:!0,automaticLayout:!0,folding:!0,lineNumbers:"on",renderWhitespace:"selection",bracketPairColorization:{enabled:!0},guides:{bracketPairs:!0,indentation:!0},suggest:{showKeywords:!0,showSnippets:!0}}})})]})}const HF={DELETE_NODE:{keys:["Backspace","Delete"],description:"Remove o bloco selecionado"},COPY:{keys:["Meta+c","Ctrl+c"],description:"Copiar conteúdo"},PASTE:{keys:["Meta+v","Ctrl+v"],description:"Colar conteúdo"},UNDO:{keys:["Meta+z","Ctrl+z"],description:"Desfazer ação"},REDO:{keys:["Meta+Shift+Z","Ctrl+Shift+Z"],description:"Refazer ação"},SAVE:{keys:["Meta+S","Ctrl+S"],description:"Salvar template"}},WF=(e,t)=>({onDeleteNode:()=>{const r=t.getEvent("selected").last();r&&e.delete(r)},onCopy:()=>{const r=t.getEvent("selected").last();if(!r){console.warn("[Copy] No node selected");return}try{const n=t.node(r).toNodeTree();console.log("[Copy] Node tree:",n);const i={type:"craftjs-copy",nodeTree:n,selectedId:r,timestamp:Date.now()};console.log("[Copy] Copy data:",i);const c=JSON.stringify(i,(f,g)=>{if(!["dom","rules","_hydrationTimestamp","events"].includes(f))return f==="type"&&typeof g=="function"?{resolvedName:g.name||g.displayName||"Unknown"}:g});navigator.clipboard.writeText(c),console.log("[Copy] Successfully copied to clipboard")}catch(n){console.error("[Copy] Failed to copy node:",n)}},onPaste:async()=>{console.log("[Paste] Starting paste operation...");try{const r=await navigator.clipboard.readText();if(console.log("[Paste] Clipboard text:",r),!r){console.warn("[Paste] Clipboard is empty");return}let n;try{n=JSON.parse(r),console.log("[Paste] Parsed clipboard data:",n)}catch(E){console.warn("[Paste] Invalid clipboard data:",E);return}if(!n||n.type!=="craftjs-copy"||!n.nodeTree){console.warn("[Paste] Clipboard does not contain valid node data");return}const i=n.nodeTree;console.log("[Paste] Node tree to paste:",i);const f=(E=>{const A={...E},F={},S=()=>Math.random().toString(36).substring(2,15);if(A.nodes&&(Object.keys(A.nodes).forEach(N=>{F[N]=S()}),A.rootNodeId&&F[A.rootNodeId]&&(A.rootNodeId=F[A.rootNodeId])),A.nodes){const N={};Object.keys(A.nodes).forEach(O=>{const B={...A.nodes[O]},z=F[O];if(B.id=z,B.events=B.events||{selected:!1,dragged:!1,hovered:!1},B.dom=null,B.rules=B.rules||{canDrag:()=>!0,canDrop:()=>!0,canMoveIn:()=>!0,canMoveOut:()=>!0},B.data){if(B.data.props=B.data.props||{},B.data.custom=B.data.custom||{},B.data.hidden=B.data.hidden||!1,B.data.isCanvas=B.data.isCanvas||!1,B.data.nodes=B.data.nodes||[],B.data.linkedNodes=B.data.linkedNodes||{},B.data.displayName=B.data.displayName||B.data.type?.displayName||"Component",B.data.parent&&F[B.data.parent]&&(B.data.parent=F[B.data.parent]),B.data.nodes&&Array.isArray(B.data.nodes)&&(B.data.nodes=B.data.nodes.map(Z=>F[Z]||Z)),B.data.linkedNodes){const Z={};Object.keys(B.data.linkedNodes).forEach(V=>{const J=B.data.linkedNodes[V];Z[V]=F[J]||J}),B.data.linkedNodes=Z}if(B.data.type&&typeof B.data.type=="object"&&B.data.type.resolvedName){const Z=pd.find(V=>{const J=typeof V.component=="function"?V.component.name||V.component.displayName:"";return V.id===B.data.type.resolvedName||J===B.data.type.resolvedName});Z?(B.data.type=Z.component,console.log("[Paste] Resolved component:",B.data.type.resolvedName,"to",Z.component)):console.warn("[Paste] Could not resolve component:",B.data.type.resolvedName)}}N[z]=B}),A.nodes=N}return A})(i);console.log("[Paste] Reconstructed node tree:",f);const g=t.getEvent("selected").last();let b="ROOT",m;if(g){const E=t.node(g).get();if(console.log("[Paste] Selected node data:",E),E.data.isCanvas)b=g,m=(E.data.nodes||[]).length,console.log("[Paste] Inserting as child of canvas node:",g,"at index:",m);else{const A=E.data.parent;A?(b=A,m=t.node(b).get().data.nodes.indexOf(g)+1,console.log("[Paste] Inserting after selected node in parent:",b,"at index:",m)):(b="ROOT",m=t.node("ROOT").get().data.nodes.indexOf(g)+1,console.log("[Paste] Inserting after selected node in ROOT at index:",m))}}else m=t.node("ROOT").get().data.nodes.length,console.log("[Paste] No selection, adding to end of ROOT at index:",m);console.log("[Paste] Will insert at parent:",b,"index:",m),console.log("[Paste] Using addNodeTree with reconstructed nodeTree:",f),e.addNodeTree(f,b,m);const v=f.rootNodeId;v&&(console.log("[Paste] Selecting newly pasted node:",v),e.selectNode(v)),console.log("[Paste] Node pasted successfully")}catch(r){console.error("[Paste] Failed to paste:",r),r instanceof Error&&console.error("[Paste] Error stack:",r.stack)}},onUndo:()=>e.history.undo(),onRedo:()=>e.history.redo(),onSave:()=>{const r=t.serialize();console.log("Saving JSON:",r)}});function UF(){const{actions:e,query:t}=La(),r=i=>i.toLowerCase().charAt(0).toUpperCase()+i.toLowerCase().slice(1),n=i=>i.includes("_")?`on${i.split("_").map(r).join("")}`:`on${r(i)}`;L.useEffect(()=>{const i=WF(e,t),c=f=>{const g=navigator.platform.includes("Mac"),b=[];(g&&f.metaKey||!g&&f.ctrlKey)&&b.push(g?"Meta":"Ctrl"),f.shiftKey&&b.push("Shift"),b.push(f.key);const m=b.join("+");Object.entries(HF).forEach(([v,E])=>{if(E.keys.includes(m)){f.preventDefault();const A=i[n(v)];console.log("Executing shortcut:",v,n(v)),A?.()}})};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[e,t])}function jF({hasSelectedComponent:e}){return w.jsx("div",{className:"border-b border-[#e8e7ee] bg-white p-4",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("h2",{className:"font-semibent text-lg text-[#170f4f]",children:"Properties"}),e&&w.jsx("button",{className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-gray-50 hover:text-gray-600",children:w.jsx(Te.FiX,{size:18})})]})})}const GF=({name:e})=>w.jsx("div",{className:"border-b border-[#e8e7ee] bg-gray-50 p-4",children:w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded bg-[#170f4f]",children:w.jsx("span",{className:"text-xs font-medium text-white",children:e.charAt(0).toUpperCase()})}),w.jsx("div",{className:"flex-1",children:w.jsx("h3",{className:"text-sm font-medium text-[#170f4f]",children:e})})]})});function YF(){const{selected:e,actions:t,query:r}=La(m=>({selected:m.events.selected})),n=()=>{if(e&&e.size>0){const m=Array.from(e)[0];t.delete(m)}},i=()=>{if(e&&e.size>0){const m=Array.from(e)[0];console.log("Clone component:",m)}},c=()=>{if(e&&e.size>0){const m=Array.from(e)[0];console.log("Move up component:",m)}},f=()=>{if(e&&e.size>0){const m=Array.from(e)[0];console.log("Move down component:",m)}};L.useEffect(()=>{const m=v=>{if(e&&e.size>0){const E=v.target;!(E.tagName==="INPUT"||E.tagName==="TEXTAREA"||E.contentEditable==="true")&&(v.key==="Backspace"||v.key==="Delete")&&(v.preventDefault(),n())}};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[e]);const b=(()=>{if(!e||e.size===0)return null;const m=Array.from(e)[0],v=r.node(m).get();return v?{id:m,type:v.data.type,displayName:v.data.displayName||String(v.data.type),props:v.data.props,isCanvas:v.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:v.data.parent}:null})();return b?w.jsxs("div",{className:"space-y-3 p-4",children:[w.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxs("button",{onClick:i,disabled:!b.isDuplicateable,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50",children:[w.jsx(Te.FiCopy,{size:14}),"Duplicate"]}),w.jsxs("button",{onClick:n,disabled:!b.isDeletable,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:border-red-300 hover:bg-red-50 hover:text-red-600 disabled:cursor-not-allowed disabled:opacity-50",children:[w.jsx(Te.FiTrash2,{size:14}),"Delete"]})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxs("button",{onClick:c,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[w.jsx(Te.FiArrowUp,{size:14}),"Move Up"]}),w.jsxs("button",{onClick:f,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[w.jsx(Te.FiArrowDown,{size:14}),"Move Down"]})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxs("button",{className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[w.jsx(Te.FiLock,{size:14}),"Lock"]}),w.jsxs("button",{className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[w.jsx(Te.FiEyeOff,{size:14}),"Hide"]})]})]}):null}function VF(){const{selected:e,query:t}=La(m=>({selected:m.events.selected})),[r,n]=L.useState(""),i=L.useRef(null),c=()=>{if(i.current){const m=i.current.textContent||"";navigator.clipboard.writeText(m).then(()=>{console.log("HTML copied to clipboard")})}},f=m=>{try{const v=t.node(m).get();return v&&v.dom?v.dom.outerHTML.replace(/data-cy="[^"]*"/g,"").replace(/data-craft-id="[^"]*"/g,"").replace(/data-node-id="[^"]*"/g,"").replace(/class="[^"]*craft[^"]*"/g,'class=""').replace(/class="[^"]*ring-[^"]*"/g,'class=""').replace(/class="[^"]*hover:[^"]*"/g,'class=""').replace(/class="[^"]*transition-[^"]*"/g,'class=""').replace(/class="[^"]*duration-[^"]*"/g,'class=""').replace(/class="[^"]*opacity-[^"]*"/g,'class=""').replace(/class="[^"]*cursor-[^"]*"/g,'class=""').replace(/class="[^"]*min-h-screen[^"]*"/g,'class=""').replace(/class="[^"]*bg-white[^"]*"/g,'class=""').replace(/class=""/g,"").replace(/\s+/g," ").trim()||"<!-- No HTML available -->":"<!-- Component not found in DOM -->"}catch(v){return console.error("Error getting component HTML:",v),"<!-- Error getting component HTML -->"}};L.useEffect(()=>{if(e&&e.size>0){const m=Array.from(e)[0];if(t.node(m).get()){const E=f(m);n(E)}}else n("")},[e,t]);const b=(()=>{if(!e||e.size===0)return null;const m=Array.from(e)[0],v=t.node(m).get();return v?{id:m,type:v.data.type,displayName:v.data.displayName||String(v.data.type),props:v.data.props,isCanvas:v.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:v.data.parent}:null})();return b?w.jsxs("div",{className:"space-y-4 p-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Component ID"}),w.jsx("input",{type:"text",value:b.id,readOnly:!0,className:"w-full rounded-none border border-[#e8e7ee] bg-gray-50 px-3 py-2 text-xs focus:outline-none"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Component Parent"}),w.jsx("input",{type:"text",value:String(b.parent),readOnly:!0,className:"w-full rounded-none border border-[#e8e7ee] bg-gray-50 px-3 py-2 text-xs focus:outline-none"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Properties"}),w.jsx("div",{className:"rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:w.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-600",children:JSON.stringify(b?.props,null,2)})})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[w.jsx("label",{className:"block text-xs font-medium text-gray-700",children:"Component HTML"}),w.jsx("button",{onClick:c,className:"rounded-none p-1 text-gray-400 transition-colors duration-200 hover:bg-gray-100 hover:text-gray-600",title:"Copy HTML to clipboard",children:w.jsx(Te.FiClipboard,{size:14})})]}),w.jsx("div",{className:"rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:w.jsx("pre",{ref:i,className:"whitespace-pre-wrap font-mono text-xs text-gray-600",children:r||"<!-- No HTML available -->"})})]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("span",{className:"inline-flex items-center rounded bg-blue-100 px-2 py-1 text-xs font-medium text-blue-800",children:b.isCanvas?"Canvas":"Component"}),b.isDeletable&&w.jsx("span",{className:"inline-flex items-center rounded bg-green-100 px-2 py-1 text-xs font-medium text-green-800",children:"Deletable"}),b.isDuplicateable&&w.jsx("span",{className:"inline-flex items-center rounded bg-purple-100 px-2 py-1 text-xs font-medium text-purple-800",children:"Duplicatable"})]})]}):null}const nc=({title:e,icon:t,children:r,defaultOpen:n=!1,className:i=""})=>{const c=L.useRef(null),[f,g]=L.useState(n),[b,m]=L.useState(n?void 0:0),v=L.useRef(null);L.useEffect(()=>{c.current&&c.current.parentElement&&c.current.parentElement.firstElementChild===c.current&&!n&&(g(!0),m(void 0))},[n]),L.useEffect(()=>{if(v.current)if(f){const A=v.current.scrollHeight;m(A)}else m(0)},[f]);const E=()=>{g(!f)};return w.jsxs("div",{ref:c,className:`overflow-hidden border border-[#E8E7EE] ${i}`,children:[w.jsxs("button",{onClick:E,className:"flex w-full items-center justify-between border-b border-[#E8E7EE] bg-white px-4 py-3 transition-colors hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[#170F4F]",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[t,w.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:e})]}),w.jsx(Te.FiChevronDown,{size:16,className:`text-[#A29FB9] transition-transform duration-200 ${f?"rotate-0":"-rotate-90"}`})]}),w.jsx("div",{ref:v,style:{height:b,overflow:"hidden",transition:"height 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},"data-testid":`collapse-content-${e.replace(/\s+/g,"-").toLowerCase()}`,children:f&&w.jsx("div",{className:"bg-white p-4",children:r})})]})};function XF(){const{actions:{setProp:e},style:{backgroundColor:t="#ffffff",padding:r=16,margin:n=8,columns:i=1,columnSpacing:c=16,alignment:f="left",minHeight:g=100,border:b="",borderRadius:m="",width:v="",height:E=""}={}}=ln(S=>({style:S.data.props.style||{}})),A=()=>{i<6&&e(S=>S.style.columns=i+1)},F=()=>{i>1&&e(S=>S.style.columns=i-1)};return w.jsxs(w.Fragment,{children:[w.jsx(nc,{title:"Background",icon:w.jsx(Te.FiEdit3,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("input",{type:"color",value:t,onChange:S=>e(N=>N.style.backgroundColor=S.target.value),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Background color"}),w.jsx("input",{type:"text",value:t,onChange:S=>e(N=>N.style.backgroundColor=S.target.value),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#ffffff"})]})}),w.jsx(nc,{title:"Spacing",icon:w.jsx(Te.FiMove,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Padding"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[r,"px"]})]}),w.jsx("input",{type:"range",min:"0",max:"80",step:"4",value:r,onChange:S=>e(N=>N.style.padding=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${r/80*100}%, #E8E7EE ${r/80*100}%, #E8E7EE 100%)`}})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Margin"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[n,"px"]})]}),w.jsx("input",{type:"range",min:"0",max:"60",step:"4",value:n,onChange:S=>e(N=>N.style.margin=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${n/60*100}%, #E8E7EE ${n/60*100}%, #E8E7EE 100%)`}})]})]})}),w.jsx(nc,{title:"Layout",icon:w.jsx(Te.FiLayout,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Columns"}),w.jsx("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:i})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("button",{onClick:F,disabled:i<=1,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:w.jsx(Te.FiMinus,{size:14})}),w.jsx("div",{className:"flex flex-1 justify-center py-1",children:w.jsx("div",{className:"flex gap-1",children:Array.from({length:i},(S,N)=>w.jsx("div",{className:"h-8 w-4 border border-[#170F4F] bg-[#170F4F]"},N))})}),w.jsx("button",{onClick:A,disabled:i>=6,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:w.jsx(Te.FiPlus,{size:14})})]})]}),i>1&&w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Column Gap"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[c,"px"]})]}),w.jsx("input",{type:"range",min:"0",max:"40",step:"2",value:c,onChange:S=>e(N=>N.style.columnSpacing=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${c/40*100}%, #E8E7EE ${c/40*100}%, #E8E7EE 100%)`}})]}),w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Alignment"}),w.jsx("div",{className:"grid grid-cols-3 gap-1",children:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}].map(S=>w.jsx("button",{onClick:()=>e(N=>N.style.alignment=S.value),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${f===S.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:S.label},S.value))})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Min Height"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[g,"px"]})]}),w.jsx("input",{type:"range",min:"50",max:"400",step:"25",value:g,onChange:S=>e(N=>N.style.minHeight=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${(g-50)/350*100}%, #E8E7EE ${(g-50)/350*100}%, #E8E7EE 100%)`}})]})]})}),w.jsx(nc,{title:"Border & Size",icon:w.jsx(Te.FiSquare,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border Radius"}),w.jsx("div",{className:"grid grid-cols-4 gap-1",children:[{value:"",label:"0"},{value:"4px",label:"4px"},{value:"8px",label:"8px"},{value:"16px",label:"16px"}].map(S=>w.jsx("button",{onClick:()=>e(N=>N.style.borderRadius=S.value),className:`border border-[#E8E7EE] px-2 py-2 text-xs transition-all ${m===S.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:S.label},S.value))})]}),w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border"}),w.jsxs("div",{className:"mb-2 grid grid-cols-2 gap-2",children:[w.jsx("button",{onClick:()=>e(S=>S.style.border=""),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${b?"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]":"border-[#170F4F] bg-[#170F4F] text-white"}`,children:"None"}),w.jsx("button",{onClick:()=>e(S=>S.style.border="1px solid #E8E7EE"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${b?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"Light"})]}),w.jsx("input",{type:"text",value:b,onChange:S=>e(N=>N.style.border=S.target.value),placeholder:"Custom (e.g., 2px solid #170F4F)",className:"w-full border border-[#E8E7EE] px-3 py-2 text-xs transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]"})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Width"}),w.jsxs("select",{value:v||"100%",onChange:S=>e(N=>N.style.width=S.target.value),className:"w-full border border-[#E8E7EE] px-2 py-2 text-xs transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",children:[w.jsx("option",{value:"100%",children:"Full"}),w.jsx("option",{value:"75%",children:"3/4"}),w.jsx("option",{value:"50%",children:"1/2"}),w.jsx("option",{value:"25%",children:"1/4"}),w.jsx("option",{value:"auto",children:"Auto"})]})]}),w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Height"}),w.jsxs("select",{value:E||"auto",onChange:S=>e(N=>N.style.height=S.target.value),className:"w-full border border-[#E8E7EE] px-2 py-2 text-xs transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",children:[w.jsx("option",{value:"auto",children:"Auto"}),w.jsx("option",{value:"200px",children:"Small"}),w.jsx("option",{value:"400px",children:"Medium"}),w.jsx("option",{value:"600px",children:"Large"}),w.jsx("option",{value:"100vh",children:"Full"})]})]})]})]})}),w.jsx(nc,{title:"Layout",icon:w.jsx(Te.FiLayout,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Columns"}),w.jsx("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:i})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("button",{onClick:F,disabled:i<=1,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:w.jsx(Te.FiMinus,{size:14})}),w.jsx("div",{className:"flex flex-1 justify-center py-1",children:w.jsx("div",{className:"flex gap-1",children:Array.from({length:i},(S,N)=>w.jsx("div",{className:"h-8 w-4 border border-[#170F4F] bg-[#170F4F]"},N))})}),w.jsx("button",{onClick:A,disabled:i>=6,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:w.jsx(Te.FiPlus,{size:14})})]})]}),i>1&&w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Column Gap"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[c,"px"]})]}),w.jsx("input",{type:"range",min:"0",max:"40",step:"2",value:c,onChange:S=>e(N=>N.style.columnSpacing=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${c/40*100}%, #E8E7EE ${c/40*100}%, #E8E7EE 100%)`}})]}),w.jsxs("div",{children:[w.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Alignment"}),w.jsx("div",{className:"grid grid-cols-3 gap-1",children:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}].map(S=>w.jsx("button",{onClick:()=>e(N=>N.style.alignment=S.value),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${f===S.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:S.label},S.value))})]}),w.jsxs("div",{children:[w.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[w.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Min Height"}),w.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[g,"px"]})]}),w.jsx("input",{type:"range",min:"50",max:"400",step:"25",value:g,onChange:S=>e(N=>N.style.minHeight=parseInt(S.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${(g-50)/350*100}%, #E8E7EE ${(g-50)/350*100}%, #E8E7EE 100%)`}})]})]})})]})}function ZF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"},child:[]}]})(e)}function JF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",x2:"10",y1:"4",y2:"4"},child:[]},{tag:"line",attr:{x1:"14",x2:"5",y1:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"15",x2:"9",y1:"4",y2:"20"},child:[]}]})(e)}function qF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 7V4h16v3"},child:[]},{tag:"path",attr:{d:"M5 20h6"},child:[]},{tag:"path",attr:{d:"M13 4 8 20"},child:[]},{tag:"path",attr:{d:"m15 15 5 5"},child:[]},{tag:"path",attr:{d:"m20 15-5 5"},child:[]}]})(e)}function KF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 7 4 4 20 4 20 7"},child:[]},{tag:"line",attr:{x1:"9",x2:"15",y1:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"4",y2:"20"},child:[]}]})(e)}function QF(e){return fo({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 4v6a6 6 0 0 0 12 0V4"},child:[]},{tag:"line",attr:{x1:"4",x2:"20",y1:"20",y2:"20"},child:[]}]})(e)}const $F=["Inter","Roboto","Arial","Georgia","Times New Roman","Montserrat","Lato","Oswald","Poppins"],eS=[{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}];function tS(){const{actions:{setProp:e},style:t={}}=ln(n=>({style:n.data.props.style})),r=L.useCallback(n=>{e(i=>{i.style={...i.style,...n}})},[e]);return w.jsx(nc,{title:"Typography",icon:w.jsx(KF,{size:14,className:"text-[#170F4F]"}),defaultOpen:!0,children:w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Font"}),w.jsx("select",{value:t.fontFamily||"Inter",onChange:n=>r({fontFamily:n.target.value}),className:"w-full border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",children:$F.map(n=>w.jsx("option",{value:n,style:{fontFamily:n},children:n},n))})]}),w.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Size"}),w.jsx("input",{type:"number",min:8,max:96,value:t.fontSize||20,onChange:n=>r({fontSize:Number(n.target.value)}),className:"w-full border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Weight"}),w.jsx("select",{value:t.fontWeight||"normal",onChange:n=>r({fontWeight:n.target.value}),className:"w-full border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",children:eS.map(({label:n,value:i})=>w.jsx("option",{value:i,children:n},i))})]})]})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Te.FiMove,{size:14,className:"text-[#170F4F]"}),w.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Alignment"})]}),w.jsx("div",{className:"flex gap-2",children:["left","center","right","justify"].map(n=>w.jsx("button",{className:`rounded border px-3 py-2 text-xs font-medium transition-all focus:outline-none focus:ring-2 focus:ring-[#170F4F] ${t.textAlign===n?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({textAlign:n}),children:n.charAt(0).toUpperCase()+n.slice(1)},n))})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(qF,{size:14,className:"text-[#170F4F]"}),w.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Formatting"})]}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("button",{className:`rounded border px-3 py-2 text-xs font-bold ${t?.fontWeight==="bold"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({fontWeight:t?.fontWeight==="bold"?"normal":"bold"}),children:w.jsx(ZF,{size:14,className:"text-[#170F4F]"})}),w.jsx("button",{className:`rounded border px-3 py-2 text-xs italic ${t?.fontStyle==="italic"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({fontStyle:t?.fontStyle==="italic"?"normal":"italic"}),children:w.jsx(JF,{size:14,className:"text-[#170F4F]"})}),w.jsx("button",{className:`rounded border px-3 py-2 text-xs underline ${t?.textDecoration==="underline"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({textDecoration:t?.textDecoration==="underline"?"none":"underline"}),children:w.jsx(QF,{size:14,className:"text-[#170F4F]"})})]})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Te.FiEdit3,{size:14,className:"text-[#170F4F]"}),w.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Text Color"})]}),w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("input",{type:"color",value:t.color||"#000000",onChange:n=>r({color:n.target.value}),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Text color"}),w.jsx("input",{type:"text",value:t.color||"#000000",onChange:n=>r({color:n.target.value}),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#000000"})]})]})]})})}const rS=[{id:"typography",component:tS},{id:"default",component:XF}];function nS(){const{selected:e,query:t}=La(i=>({selected:i.events.selected}));if(!e||e.size===0)return w.jsx("div",{className:"flex h-full items-center justify-center text-gray-500",children:w.jsxs("div",{className:"text-center",children:[w.jsx(Te.FiSettings,{size:48,className:"mx-auto mb-4 text-gray-300"}),w.jsx("p",{className:"text-sm",children:"Select a component to see its settings"})]})});const r=Array.from(e)[0],n=t.node(r).get();if(!n)return null;if(n&&n.data.custom&&n.data.custom.settings){const i=n.data.custom.settings,f=(Array.isArray(i)?i:[i]).map(g=>rS.find(b=>b.id===g)).filter(Boolean);if(f.length>0)return w.jsx(w.Fragment,{children:f.map(g=>{const b=g.component;return L.createElement(lg,{id:r,related:!0},w.jsx(b,{}))})})}return w.jsx("div",{className:"p-4",children:w.jsx("p",{className:"text-sm text-gray-500",children:"No custom settings available for this component."})})}const aS=[{id:"settings",label:"Settings",icon:Te.FiSettings},{id:"info",label:"Info",icon:Te.FiInfo},{id:"actions",label:"Actions",icon:Te.FiEye}];function oS(){const{selected:e,query:t}=La(f=>({selected:f.events.selected})),[r,n]=L.useState("settings"),i=L.useMemo(()=>({settings:w.jsx(nS,{}),info:w.jsx(VF,{}),actions:w.jsx(YF,{})}),[]),c=L.useMemo(()=>{if(!e||e.size===0)return null;const f=Array.from(e)[0],g=t.node(f).get();return g?{id:f,type:g.data.type,displayName:g.data.displayName||String(g.data.type),props:g.data.props,isCanvas:g.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:g.data.parent}:null},[e,t]);return w.jsxs("div",{className:"flex h-full w-80 flex-col border-l border-[#e8e7ee] bg-white",children:[w.jsx(jF,{hasSelectedComponent:e&&e.size>0}),c&&w.jsx(GF,{name:String(c.displayName)}),c&&w.jsx("div",{className:"flex border-b border-[#e8e7ee]",children:aS.map(f=>{const g=f.icon;return w.jsxs("button",{onClick:()=>n(f.id),className:`flex flex-1 items-center justify-center gap-2 px-3 py-2 text-xs font-medium transition-colors duration-200 ${r===f.id?"border-b-2 border-[#170f4f] bg-white text-[#170f4f]":"text-gray-500 hover:bg-gray-50 hover:text-[#170f4f]"}`,children:[w.jsx(g,{size:14}),f.label]},f.id)})}),w.jsx("div",{className:"flex-1 overflow-y-auto",children:i[r]})]})}var sa=(e=>(e.CONTAINER="Container",e.TEXT="Text",e.BUTTON="Button",e))(sa||{});const nm={[sa.TEXT]:{tags:["p","h1","h2","h3","h4","h5","h6","span","label","small","strong","em","b","i","u"],defaultTag:"span"},[sa.CONTAINER]:{tags:["div","section","article"],defaultTag:"div"},[sa.BUTTON]:{tags:["button","a"],defaultTag:"button"}};function iS(e){if(console.log("Minifying HTML:",e),!e)return"";let t=e;return t=t.replace(/<!--([\s\S]*?)-->/g,""),t=t.replace(/>\s+</g,"><"),t=t.replace(/\s{2,}/g," "),t=t.trim(),t=t.replace(/\s+(\w+)=""/g,""),t=t.replace(/\s+(\w+)="\1"/g,""),t=t.replace(/<(?!img|br|hr|input|meta|link|div)([a-zA-Z0-9]+)(\s*)><\/\1>/g,""),t=t.replace(/\s+>/g,">"),t=t.replace(/<\s+/g,"<"),t=t.replace(/ /g," "),t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,'"'),t=t.replace(/'/g,"'"),t=t.replace(/^\s*\n/gm,""),t=t.replace(/>([^<]*)</g,(r,n)=>n.trim().length===0?"><":`>${n.replace(/^\s+|\s+$/g,"")}<`),console.log("Minified HTML:",t),t}function sS(e){for(const t in nm)if(nm[t].tags.includes(e))return t;return null}function lS(e,t){const n={[sa.CONTAINER]:"box",[sa.TEXT]:"text",[sa.BUTTON]:"button"}[e];return t.find(i=>i.id===n)}function uS(e,t){console.log("ImportHtml input:",e);const r=Object.values(nm).flatMap(S=>S.tags),n=Fw(e,{allowedTags:r,allowedAttributes:{"*":["style","class","src","alt"]},allowedSchemes:["http","https","data"]});console.log("Sanitized HTML:",n);const i=iS(n),c=Ew.parseDocument(i);console.log("Parsed DOM:",c);const f={};let g=1;function b(){return`node-${g++}`}function m(S,N=null){if(S.type==="text"){const O=S?.data?.trim();if(!O)return null;if(N&&f[N]&&f[N].__componentKey===sa.TEXT)return f[N].props.text=(f[N].props.text||"")+O,null;const B=b();return f[B]={id:B,type:sa.TEXT,props:{text:O},parent:N,isCanvas:!1,displayName:sa.TEXT,custom:{},hidden:!1,nodes:[],linkedNodes:{},__componentKey:sa.TEXT},B}if(S.type==="tag"){const O=S,B=O.name?.toLowerCase();console.log("Processing tag:",B);let z=sS(B);console.log("Component key found:",z),z||(z=sa.CONTAINER),console.log("Final component key:",z);const Z=lS(z,t);if(console.log("Config found:",Z),!Z)return console.log("No config found, returning null"),null;const V=b();console.log("Generated ID:",V);const J=[];let $="";const K=z===sa.TEXT;if(O.children&&O.children.length>0)for(const me of O.children)if(me.type==="text"&&K){const ge=me?.data?.trim();ge&&($+=ge)}else{const ge=m(me,V);ge&&J.push(ge)}const ve=Object.fromEntries(Object.entries(O.attribs??{}));if(ve.style&&typeof ve.style=="string"){const me={};ve.style.split(";").filter(Boolean).forEach(ge=>{const[Qe,pe]=ge.split(":").map(tt=>tt&&tt.trim());if(!Qe||!pe)return;const Ie=Qe.replace(/-([a-z])/g,tt=>tt[1].toUpperCase());me[Ie]=pe}),Object.keys(me).length>0?ve.style=me:delete ve.style}else typeof ve.style!="object"&&delete ve.style;K&&$&&(ve.text=$);const se=Z.id;return f[V]={id:V,type:se,props:ve,nodes:J,parent:N,displayName:se,isCanvas:Z.isCanvas??!0,custom:{},hidden:!1,linkedNodes:{},__componentKey:z},V}return null}const v=c.children.filter(S=>S.type==="tag"||S.type==="text");console.log("Root elements found:",v);const E="ROOT",A=[];for(const S of v){console.log("Processing root element:",S);const N=m(S,E);console.log("Child ID returned:",N),N&&A.push(N)}console.log("Root child IDs:",A),f[E]={id:E,type:"div",props:{"data-cy":"canvas",className:"bg-white h-full",style:{overflow:"visible",position:"relative",minHeight:"100%",zIndex:1,maxWidth:1200,width:"100%"}},nodes:A,isCanvas:!0,displayName:"div",custom:{},hidden:!1,linkedNodes:{},__componentKey:"ROOT"},console.log("Final nodesMap:",f);const F={};return Object.entries(f).forEach(([S,N])=>{console.log(`Processing node ${S}:`,N);const{...O}=N;S==="ROOT"?F[S]={type:O.type,isCanvas:O.isCanvas,props:O.props||{},displayName:O.displayName||O.type,custom:O.custom||{},hidden:O.hidden||!1,nodes:O.nodes||[],linkedNodes:O.linkedNodes||{}}:F[S]={type:{resolvedName:O.type},isCanvas:O.isCanvas,props:O.props||{},displayName:O.displayName||O.type,custom:O.custom||{},hidden:O.hidden||!1,nodes:O.nodes||[],linkedNodes:O.linkedNodes||{},parent:O.parent||"ROOT"},console.log(`Serialized node ${S}:`,F[S])}),console.log("Final craftSerialized:",F),F}const cS=({isOpen:e,onClose:t,onImport:r})=>{const[n,i]=L.useState(""),c=()=>{const f=uS(n,pd);r(f),i(""),t()};return e?w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",children:w.jsxs("div",{className:"flex w-full max-w-lg flex-col rounded-lg bg-white p-6 shadow-xl",children:[w.jsx("h2",{className:"mb-4 text-xl font-semibold text-gray-900",children:"Importar HTML"}),w.jsx("textarea",{className:"mb-4 h-40 w-full rounded border border-gray-300 p-2 font-mono text-sm",placeholder:"Cole seu HTML aqui...",value:n,onChange:f=>i(f.target.value)}),w.jsxs("div",{className:"flex justify-end gap-2",children:[w.jsx("button",{onClick:t,className:"rounded bg-gray-100 px-4 py-2 text-gray-700 hover:bg-gray-200",children:"Cancelar"}),w.jsx("button",{onClick:c,className:"bg-primary-600 hover:bg-primary-700 rounded px-4 py-2 text-white",children:"Importar"})]})]})}):null};function dS({blocks:e}){const{connectors:t}=La(),[r,n]=L.useState(""),[i,c]=L.useState(new Set),f=L.useMemo(()=>r.trim()?e.filter(E=>E.label.toLowerCase().includes(r.toLowerCase())||E.category?.toLowerCase().includes(r.toLowerCase())):e,[e,r]),g=E=>{c(A=>{const F=new Set(A);return F.has(E)?F.delete(E):F.add(E),F})},b=E=>w.jsxs("div",{ref:A=>{A&&t.create(A,L.createElement(E.component,{}),{})},className:"group flex cursor-move flex-col items-center gap-2 border border-[#E8E7EE] bg-white p-3 text-center transition-all duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",draggable:!0,onDragStart:A=>{A.currentTarget.style.opacity="0.5"},onDragEnd:A=>{A.currentTarget.style.opacity="1"},title:`Drag to add ${E.label} component`,children:[w.jsx("div",{className:"flex h-10 w-10 items-center justify-center bg-[#E8E7EE] text-lg font-medium text-[#170F4F] transition-all duration-200 group-hover:bg-[#00BAC7] group-hover:text-white",children:E.icon}),w.jsx("span",{className:"text-xs font-medium leading-tight text-[#170F4F] transition-colors duration-200",children:E.label})]},E.id),m=f.reduce((E,A)=>{const F=A.category||"other";return E[F]||(E[F]=[]),E[F].push(A),E},{}),v={layout:"Layout",content:"Content",interactive:"Interactive",media:"Media",dynamic:"Dynamic",other:"Other"};return w.jsxs("div",{className:"flex h-full flex-col",children:[w.jsx("div",{className:"border-b border-[#E8E7EE] bg-[#F5F5F7] p-3",children:w.jsxs("div",{className:"relative",children:[w.jsx("input",{type:"text",placeholder:"Search components...",value:r,onChange:E=>n(E.target.value),className:"w-full border border-[#E8E7EE] bg-white px-3 py-2 pl-10 text-sm text-[#170F4F] placeholder-[#A29FB9] transition-all duration-200 focus:border-[#00BAC7] focus:bg-[#CCF1F4] focus:outline-none"}),w.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 transform text-sm text-[#A29FB9]",children:"🔍"}),r&&w.jsx("button",{onClick:()=>n(""),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-[#A29FB9] transition-colors duration-200 hover:text-[#170F4F]",children:"✕"})]})}),w.jsxs("div",{className:"flex-1 overflow-y-auto p-3",children:[Object.entries(m).map(([E,A])=>{const F=i.has(E);return w.jsxs("div",{className:"mb-5 last:mb-0",children:[w.jsxs("button",{onClick:()=>g(E),className:"mb-3 flex w-full items-center gap-3 border border-[#E8E7EE] bg-[#F5F5F7] p-2 text-[#170F4F] transition-all duration-200 hover:bg-[#E8E7EE]",children:[w.jsx("div",{className:"flex h-4 w-4 items-center justify-center text-current",children:w.jsx("span",{className:`transition-transform duration-200 ${F?"rotate-0":"rotate-90"}`,children:"▶"})}),w.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wide",children:v[E]||E}),w.jsx("div",{className:"h-px flex-1 bg-current opacity-30"}),w.jsx("span",{className:"text-xs font-medium",children:A.length})]}),!F&&w.jsx("div",{className:"grid grid-cols-2 gap-2",children:A.map(b)})]},E)}),Object.entries(m).length===0&&w.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[w.jsx("div",{className:"mb-3 flex h-12 w-12 items-center justify-center border border-[#170F4F] bg-[#E8E7EE]",children:w.jsx("span",{className:"text-lg text-[#170F4F]",children:"📦"})}),w.jsx("h3",{className:"mb-1 text-sm font-medium text-[#170F4F]",children:r?"No components found":"No blocks available"}),w.jsx("p",{className:"text-xs text-[#A29FB9]",children:r?"Try different search terms":"Add components to get started"})]})]})]})}const fS=e=>pd.find(r=>{const n=r.label.toLowerCase(),i=r.id.toLowerCase(),c=e.toLowerCase();return n===c||i===c})?.icon||w.jsx(Te.FiMousePointer,{size:16});function hS(){const[e,t]=L.useState(new Set),{nodes:r,actions:n,selected:i}=La(m=>({nodes:m.nodes,selected:m.events.selected})),c=m=>{const v=new Set(e);v.has(m)?v.delete(m):v.add(m),t(v)},f=(m,v=0)=>{const E=r[m];if(!E)return null;const A=E.data.isCanvas,F=E.data.nodes||[],S=E.data.displayName||(typeof E.data.type=="string"?E.data.type:E.data.type?.displayName)||m,N=i&&i.has(m),O=typeof E.data.name=="string"?E.data.name:E.data?.displayName||"",B=F.length>0,z=e.has(m);return w.jsxs("div",{className:"flex flex-col",children:[w.jsxs("div",{className:"flex w-full items-center",children:[B&&w.jsx("button",{onClick:()=>c(m),className:"mr-1 flex h-5 w-5 items-center justify-center rounded transition-colors hover:bg-gray-100",style:{marginLeft:v*8},children:z?w.jsx(Te.FiChevronRight,{size:12,className:"text-gray-400"}):w.jsx(Te.FiChevronDown,{size:12,className:"text-gray-400"})}),w.jsxs("button",{style:{marginLeft:B?0:v*8+20},className:`group flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-left transition-all duration-200 ${N?"bg-[#170f4f] text-white shadow-sm":"text-gray-700 hover:bg-gray-50 hover:text-[#170f4f]"} `,onClick:()=>n.selectNode(m),children:[w.jsx("div",{className:`flex h-5 w-5 items-center justify-center rounded transition-all duration-200 ${N?"text-white":"text-[#170f4f] group-hover:text-[#170f4f]"}`,children:fS(O)}),w.jsx("span",{className:"truncate text-xs font-medium",children:S}),B&&w.jsx("span",{className:`ml-auto rounded px-1 py-0.5 text-xs ${N?"bg-white/20 text-white":"bg-gray-200 text-gray-500 group-hover:bg-[#170f4f]/20 group-hover:text-[#170f4f]"}`,children:F.length})]})]}),A&&B&&!z&&w.jsx("div",{className:"ml-2",children:F.map(Z=>f(Z,v+1))})]},m)},b=r.ROOT?.data?.nodes||[];return w.jsxs("div",{className:"flex h-full flex-col",children:[w.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-100 p-3",children:[w.jsx(Te.FiLayers,{size:14,className:"text-[#170f4f]"}),w.jsx("h3",{className:"text-sm font-medium text-gray-900",children:"Layers"}),w.jsx("div",{className:"h-px flex-1 bg-gray-200"})]}),w.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:b.length===0?w.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[w.jsx("div",{className:"mb-2 flex h-10 w-10 items-center justify-center rounded-lg bg-gray-100",children:w.jsx(Te.FiLayers,{size:16,className:"text-gray-400"})}),w.jsx("p",{className:"mb-1 text-xs text-gray-500",children:"No layers yet"}),w.jsx("p",{className:"text-xs text-gray-400",children:"Add components to see them here"})]}):w.jsx("div",{className:"space-y-0.5",children:b.map(m=>f(m,0))})})]})}const pS=({onExportHTML:e,onDataSource:t,blocks:r=pd})=>{const{actions:n}=La(),[i,c]=L.useState("blocks"),[f,g]=L.useState(!1);return w.jsxs("div",{className:"flex h-full w-64 flex-col overflow-hidden border-r border-[#E8E7EE] bg-white",children:[w.jsxs("div",{className:"flex-shrink-0 border-gray-200",children:[w.jsx("h2",{className:"border-b border-[#E8E7EE] p-3 text-sm font-semibold text-[#170F4F]",children:"Actions"}),w.jsxs("div",{className:"space-y-1 border-b border-[#E8E7EE] p-3",children:[w.jsxs("button",{onClick:e,className:"flex w-full items-center gap-2 border border-[#E8E7EE] px-3 py-2 text-sm text-[#170F4F] transition-colors duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",children:[w.jsx(Te.FiDownload,{size:14}),"Export HTML"]}),w.jsxs("button",{onClick:t,className:"flex w-full items-center gap-2 border border-[#E8E7EE] px-3 py-2 text-sm text-[#170F4F] transition-colors duration-200 hover:border-[#00BAC7] hover:bg-[#CCF1F4]",children:[w.jsx(Te.FiDatabase,{size:14}),"DataSource"]})]}),w.jsxs("div",{className:"flex border-b border-[#E8E7EE]",children:[w.jsx("button",{className:`flex-1 border-b py-2 text-sm font-medium transition-colors duration-200 ${i==="blocks"?"border-[#170F4F] text-[#170F4F]":"border-transparent text-[#A29FB9] hover:text-[#00BAC7]"}`,onClick:()=>c("blocks"),children:"Blocks"}),w.jsx("button",{className:`flex-1 border-b py-2 text-sm font-medium transition-colors duration-200 ${i==="layers"?"border-[#170F4F] text-[#170F4F]":"border-transparent text-[#A29FB9] hover:text-[#00BAC7]"}`,onClick:()=>c("layers"),children:"Layers"})]})]}),w.jsx("div",{className:"flex-1 overflow-hidden",children:i==="blocks"?w.jsx(dS,{blocks:r}):w.jsx(hS,{})}),w.jsx(cS,{isOpen:f,onClose:()=>g(!1),onImport:b=>n.deserialize(b)})]})};function sw(e){let t=`<!DOCTYPE html>
|
|
136
|
+
`).map(ve=>ve.trim()).filter(ve=>ve).join(`
|
|
137
|
+
`);u(ee)}finally{R(!1)}}},[i]),N=I.useRef(null),_=I.useRef(!1),M=i!==h;I.useEffect(()=>{if(!_.current&&t&&r)try{const ie=n();ie&&ie.trim()&&(u(ie),g(ie)),_.current=!0}catch(ie){console.warn("Could not initialize code from canvas:",ie)}},[t,r,n]);const U=I.useCallback(async()=>{if(i.trim()){b("processing"),F("");try{a(i,{replace:!0}),b("success")}catch(ie){console.error("Error applying code to canvas:",ie),b("error"),F(ie instanceof Error?ie.message:"Unknown error occurred")}}},[a,i]),H=I.useCallback(ie=>{u(ie),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{ie.trim()?U():b("idle")},1e3)},[U]),q=I.useCallback(()=>{g(i),b("success");try{localStorage.setItem("editor_saved_code",i)}catch(ie){console.warn("Could not save to localStorage:",ie)}},[i]),Q=I.useCallback(()=>{u(h),b("idle"),F(""),N.current&&clearTimeout(N.current)},[h]),Y=I.useCallback(()=>{N.current&&clearTimeout(N.current),b("idle"),F("")},[]);return I.useEffect(()=>()=>{N.current&&clearTimeout(N.current)},[]),{codeValue:i,savedCodeValue:h,conversionStatus:p,hasUnsavedChanges:M,errorMessage:D,isFormattingCode:S,handleCodeChange:H,handleSave:q,handleRevert:Q,handleClose:Y,applyCodeToCanvas:U,formatCode:O}}const vE=({onClose:e,onFormat:t,onSave:r,isFormattingCode:n,codeValue:a,hasUnsavedChanges:i,conversionStatus:u})=>m.jsxs("div",{className:"flex items-center justify-between border-b border-gray-700 bg-[#23272f] px-4 py-2",children:[m.jsxs("div",{className:"flex items-center space-x-3",children:[m.jsx("div",{className:"group relative",children:m.jsx("button",{className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white",onClick:e,"aria-label":"Close Code Panel",children:m.jsx(ce.FiX,{size:18})})}),m.jsx("span",{className:"text-base font-semibold text-white",children:"Code Editor"}),m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsx("div",{className:`h-2 w-2 rounded-full ${i?"bg-yellow-500":"bg-green-500"}`}),m.jsx("span",{className:`text-xs font-medium ${i?"text-yellow-400":"text-green-400"}`,children:i?"Unsaved":"Saved"})]})]}),m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsxs("div",{className:"group relative",children:[m.jsx("button",{onClick:t,disabled:n||!a.trim(),className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white disabled:cursor-not-allowed disabled:text-gray-600","aria-label":"Format HTML",children:n?m.jsx(ce.FiLoader,{size:18,className:"animate-spin"}):m.jsx(ce.FiFileText,{size:18})}),m.jsx("span",{className:"absolute bottom-full left-1/2 z-10 mb-2 -translate-x-1/2 transform whitespace-nowrap rounded bg-gray-900 px-2 py-1 text-xs text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:n?"Formatting HTML...":"Format HTML"})]}),m.jsxs("div",{className:"group relative",children:[m.jsx("button",{onClick:r,disabled:u==="processing"||!i,className:"rounded p-1 text-gray-400 transition-colors duration-200 hover:text-white disabled:cursor-not-allowed disabled:text-gray-600","aria-label":"Save HTML",children:m.jsx(ce.FiSave,{size:18})}),m.jsx("span",{className:"absolute bottom-full left-1/2 z-10 mb-2 -translate-x-1/2 transform whitespace-nowrap rounded bg-gray-900 px-2 py-1 text-xs text-white opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:"Save"})]})]})]});function bE({height:e="100%",defaultLanguage:t="html",theme:r="vs-dark",value:n,onChange:a,options:i}){const u=I.useRef(null),[h,g]=I.useState(null);return I.useEffect(()=>{const p=document.createElement("div");return p.style.position="fixed",p.style.top="0",p.style.left="0",p.style.width="100%",p.style.height="100%",p.style.pointerEvents="none",p.style.zIndex="9999",document.body.appendChild(p),g(p),()=>{p.parentNode&&p.parentNode.removeChild(p)}},[]),I.useEffect(()=>{if(!u.current||!h)return;const p=()=>{if(!u.current||!h)return;const F=u.current.getBoundingClientRect(),S=h.firstChild;S&&(S.style.position="absolute",S.style.top=`${F.top}px`,S.style.left=`${F.left}px`,S.style.width=`${F.width}px`,S.style.height=`${F.height}px`,S.style.pointerEvents="auto")};p();const b=()=>{requestAnimationFrame(p)};window.addEventListener("resize",b),window.addEventListener("scroll",b,!0);let D;return window.ResizeObserver&&(D=new ResizeObserver(b),D.observe(u.current)),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b,!0),D&&D.disconnect()}},[h]),m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:u,style:{width:"100%",height:e}}),h&&Yn.createPortal(m.jsx("div",{style:{backgroundColor:"#1e1e1e"},children:m.jsx(Fy,{height:e,defaultLanguage:t,theme:r,value:n,onChange:a,options:i})}),h)]})}function yE({onClose:e}){const{codeValue:t,conversionStatus:r,hasUnsavedChanges:n,handleCodeChange:a,handleSave:i,handleClose:u,formatCode:h,isFormattingCode:g}=mE();return m.jsxs("div",{className:"flex h-full w-1/2 flex-col border-r border-gray-200 bg-[#181c24]",children:[m.jsx(vE,{onClose:()=>{u(),e()},onFormat:h,onSave:i,isFormattingCode:g,codeValue:t,hasUnsavedChanges:n,conversionStatus:r}),m.jsx("div",{className:"flex-1 p-0",style:{width:"100%",height:"100%"},children:m.jsx(bE,{height:"100%",defaultLanguage:"html",theme:"vs-dark",value:t,onChange:p=>a(p||""),options:{fontSize:16,padding:{top:10},minimap:{enabled:!1},wordWrap:"on",scrollBeyondLastLine:!1,formatOnPaste:!0,formatOnType:!0,autoIndent:"full",tabSize:2,insertSpaces:!0,automaticLayout:!0,folding:!0,lineNumbers:"on",renderWhitespace:"selection",bracketPairColorization:{enabled:!0},guides:{bracketPairs:!0,indentation:!0},suggest:{showKeywords:!0,showSnippets:!0}}})})]})}const xE={loading:!1,template:{}},l0=I.createContext(xE);function u0(){const e=I.useContext(l0);if(!e)throw new Error("useTemplate must be used within a TemplateProvider");return e}const wE={},DE=(e,t)=>({onDeleteNode:()=>{const r=t.getEvent("selected").last();r&&e.delete(r)},onCopy:()=>{const r=t.getEvent("selected").last();if(!r){console.warn("[Copy] No node selected");return}try{const n=t.node(r).toNodeTree();console.log("[Copy] Node tree:",n);const a={type:"craftjs-copy",nodeTree:n,selectedId:r,timestamp:Date.now()};console.log("[Copy] Copy data:",a);const i=JSON.stringify(a,(u,h)=>{if(!["dom","rules","_hydrationTimestamp","events"].includes(u))return u==="type"&&typeof h=="function"?{resolvedName:h.name||h.displayName||"Unknown"}:h});navigator.clipboard.writeText(i),console.log("[Copy] Successfully copied to clipboard")}catch(n){console.error("[Copy] Failed to copy node:",n)}},onPaste:async()=>{console.log("[Paste] Starting paste operation...");try{const r=await navigator.clipboard.readText();if(console.log("[Paste] Clipboard text:",r),!r){console.warn("[Paste] Clipboard is empty");return}let n;try{n=JSON.parse(r),console.log("[Paste] Parsed clipboard data:",n)}catch(D){console.warn("[Paste] Invalid clipboard data:",D);return}if(!n||n.type!=="craftjs-copy"||!n.nodeTree){console.warn("[Paste] Clipboard does not contain valid node data");return}const a=n.nodeTree;console.log("[Paste] Node tree to paste:",a);const u=(D=>{const F={...D},S={},R=()=>Math.random().toString(36).substring(2,15);if(F.nodes&&(Object.keys(F.nodes).forEach(O=>{S[O]=R()}),F.rootNodeId&&S[F.rootNodeId]&&(F.rootNodeId=S[F.rootNodeId])),F.nodes){const O={};Object.keys(F.nodes).forEach(N=>{const _={...F.nodes[N]},M=S[N];if(_.id=M,_.events=_.events||{selected:!1,dragged:!1,hovered:!1},_.dom=null,_.rules=_.rules||{canDrag:()=>!0,canDrop:()=>!0,canMoveIn:()=>!0,canMoveOut:()=>!0},_.data){if(_.data.props=_.data.props||{},_.data.custom=_.data.custom||{},_.data.hidden=_.data.hidden||!1,_.data.isCanvas=_.data.isCanvas||!1,_.data.nodes=_.data.nodes||[],_.data.linkedNodes=_.data.linkedNodes||{},_.data.displayName=_.data.displayName||_.data.type?.displayName||"Component",_.data.parent&&S[_.data.parent]&&(_.data.parent=S[_.data.parent]),_.data.nodes&&Array.isArray(_.data.nodes)&&(_.data.nodes=_.data.nodes.map(U=>S[U]||U)),_.data.linkedNodes){const U={};Object.keys(_.data.linkedNodes).forEach(H=>{const q=_.data.linkedNodes[H];U[H]=S[q]||q}),_.data.linkedNodes=U}if(_.data.type&&typeof _.data.type=="object"&&_.data.type.resolvedName){const U=Wl.find(H=>{const q=typeof H.component=="function"?H.component.name||H.component.displayName:"";return H.id===_.data.type.resolvedName||q===_.data.type.resolvedName});U?(_.data.type=U.component,console.log("[Paste] Resolved component:",_.data.type.resolvedName,"to",U.component)):console.warn("[Paste] Could not resolve component:",_.data.type.resolvedName)}}O[M]=_}),F.nodes=O}return F})(a);console.log("[Paste] Reconstructed node tree:",u);const h=t.getEvent("selected").last();let g="ROOT",p;if(h){const D=t.node(h).get();if(console.log("[Paste] Selected node data:",D),D.data.isCanvas)g=h,p=(D.data.nodes||[]).length,console.log("[Paste] Inserting as child of canvas node:",h,"at index:",p);else{const F=D.data.parent;F?(g=F,p=t.node(g).get().data.nodes.indexOf(h)+1,console.log("[Paste] Inserting after selected node in parent:",g,"at index:",p)):(g="ROOT",p=t.node("ROOT").get().data.nodes.indexOf(h)+1,console.log("[Paste] Inserting after selected node in ROOT at index:",p))}}else p=t.node("ROOT").get().data.nodes.length,console.log("[Paste] No selection, adding to end of ROOT at index:",p);console.log("[Paste] Will insert at parent:",g,"index:",p),console.log("[Paste] Using addNodeTree with reconstructed nodeTree:",u),e.addNodeTree(u,g,p);const b=u.rootNodeId;b&&(console.log("[Paste] Selecting newly pasted node:",b),e.selectNode(b)),console.log("[Paste] Node pasted successfully")}catch(r){console.error("[Paste] Failed to paste:",r),r instanceof Error&&console.error("[Paste] Error stack:",r.stack)}},onUndo:()=>e.history.undo(),onRedo:()=>e.history.redo(),onSave:()=>{const r=t.serialize();console.log("Saving JSON:",r)}});function CE(){const{actions:e,query:t}=Hr(),r=a=>a.toLowerCase().charAt(0).toUpperCase()+a.toLowerCase().slice(1),n=a=>a.includes("_")?`on${a.split("_").map(r).join("")}`:`on${r(a)}`;I.useEffect(()=>{const a=DE(e,t),i=u=>{const h=navigator.platform.includes("Mac"),g=[];(h&&u.metaKey||!h&&u.ctrlKey)&&g.push(h?"Meta":"Ctrl"),u.shiftKey&&g.push("Shift"),g.push(u.key);const p=g.join("+");Object.entries(wE).forEach(([b,D])=>{if(D.keys.includes(p)){u.preventDefault();const F=a[n(b)];console.log("Executing shortcut:",b,n(b)),F?.()}})};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[e,t])}const EE=({name:e})=>m.jsx("div",{className:"border-b border-[#e8e7ee] bg-gray-50 p-4",children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded bg-[#170f4f]",children:m.jsx("span",{className:"text-xs font-medium text-white",children:e.charAt(0).toUpperCase()})}),m.jsx("div",{className:"flex-1",children:m.jsx("h3",{className:"text-sm font-medium text-[#170f4f]",children:e})})]})});function FE(){const{selected:e,actions:t,query:r}=Hr(p=>({selected:p.events.selected})),n=()=>{if(e&&e.size>0){const p=Array.from(e)[0];t.delete(p)}},a=()=>{if(e&&e.size>0){const p=Array.from(e)[0];console.log("Clone component:",p)}},i=()=>{if(e&&e.size>0){const p=Array.from(e)[0];console.log("Move up component:",p)}},u=()=>{if(e&&e.size>0){const p=Array.from(e)[0];console.log("Move down component:",p)}};I.useEffect(()=>{const p=b=>{if(e&&e.size>0){const D=b.target;!(D.tagName==="INPUT"||D.tagName==="TEXTAREA"||D.contentEditable==="true")&&(b.key==="Backspace"||b.key==="Delete")&&(b.preventDefault(),n())}};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[e]);const g=(()=>{if(!e||e.size===0)return null;const p=Array.from(e)[0],b=r.node(p).get();return b?{id:p,type:b.data.type,displayName:b.data.displayName||String(b.data.type),props:b.data.props,isCanvas:b.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:b.data.parent}:null})();return g?m.jsxs("div",{className:"space-y-3 p-4",children:[m.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[m.jsxs("button",{onClick:a,disabled:!g.isDuplicateable,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50",children:[m.jsx(ce.FiCopy,{size:14}),"Duplicate"]}),m.jsxs("button",{onClick:n,disabled:!g.isDeletable,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:border-red-300 hover:bg-red-50 hover:text-red-600 disabled:cursor-not-allowed disabled:opacity-50",children:[m.jsx(ce.FiTrash2,{size:14}),"Delete"]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[m.jsxs("button",{onClick:i,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[m.jsx(ce.FiArrowUp,{size:14}),"Move Up"]}),m.jsxs("button",{onClick:u,className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[m.jsx(ce.FiArrowDown,{size:14}),"Move Down"]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[m.jsxs("button",{className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[m.jsx(ce.FiLock,{size:14}),"Lock"]}),m.jsxs("button",{className:"flex items-center justify-center gap-2 border border-[#e8e7ee] bg-white px-3 py-2 text-xs font-medium transition-colors duration-200 hover:bg-gray-50",children:[m.jsx(ce.FiEyeOff,{size:14}),"Hide"]})]})]}):null}function SE(){const{selected:e,query:t}=Hr(p=>({selected:p.events.selected})),[r,n]=I.useState(""),a=I.useRef(null),i=()=>{if(a.current){const p=a.current.textContent||"";navigator.clipboard.writeText(p).then(()=>{console.log("HTML copied to clipboard")})}},u=p=>{try{const b=t.node(p).get();return b&&b.dom?b.dom.outerHTML.replace(/data-cy="[^"]*"/g,"").replace(/data-craft-id="[^"]*"/g,"").replace(/data-node-id="[^"]*"/g,"").replace(/class="[^"]*craft[^"]*"/g,'class=""').replace(/class="[^"]*ring-[^"]*"/g,'class=""').replace(/class="[^"]*hover:[^"]*"/g,'class=""').replace(/class="[^"]*transition-[^"]*"/g,'class=""').replace(/class="[^"]*duration-[^"]*"/g,'class=""').replace(/class="[^"]*opacity-[^"]*"/g,'class=""').replace(/class="[^"]*cursor-[^"]*"/g,'class=""').replace(/class="[^"]*min-h-screen[^"]*"/g,'class=""').replace(/class="[^"]*bg-white[^"]*"/g,'class=""').replace(/class=""/g,"").replace(/\s+/g," ").trim()||"<!-- No HTML available -->":"<!-- Component not found in DOM -->"}catch(b){return console.error("Error getting component HTML:",b),"<!-- Error getting component HTML -->"}};I.useEffect(()=>{if(e&&e.size>0){const p=Array.from(e)[0];if(t.node(p).get()){const D=u(p);n(D)}}else n("")},[e,t]);const g=(()=>{if(!e||e.size===0)return null;const p=Array.from(e)[0],b=t.node(p).get();return b?{id:p,type:b.data.type,displayName:b.data.displayName||String(b.data.type),props:b.data.props,isCanvas:b.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:b.data.parent}:null})();return g?m.jsxs("div",{className:"space-y-4 p-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Component ID"}),m.jsx("input",{type:"text",value:g.id,readOnly:!0,className:"w-full rounded-none border border-[#e8e7ee] bg-gray-50 px-3 py-2 text-xs focus:outline-none"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Component Parent"}),m.jsx("input",{type:"text",value:String(g.parent),readOnly:!0,className:"w-full rounded-none border border-[#e8e7ee] bg-gray-50 px-3 py-2 text-xs focus:outline-none"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-700",children:"Properties"}),m.jsx("div",{className:"rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:m.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-600",children:JSON.stringify(g?.props,null,2)})})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[m.jsx("label",{className:"block text-xs font-medium text-gray-700",children:"Component HTML"}),m.jsx("button",{onClick:i,className:"rounded-none p-1 text-gray-400 transition-colors duration-200 hover:bg-gray-100 hover:text-gray-600",title:"Copy HTML to clipboard",children:m.jsx(ce.FiClipboard,{size:14})})]}),m.jsx("div",{className:"rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:m.jsx("pre",{ref:a,className:"whitespace-pre-wrap font-mono text-xs text-gray-600",children:r||"<!-- No HTML available -->"})})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("span",{className:"inline-flex items-center rounded bg-blue-100 px-2 py-1 text-xs font-medium text-blue-800",children:g.isCanvas?"Canvas":"Component"}),g.isDeletable&&m.jsx("span",{className:"inline-flex items-center rounded bg-green-100 px-2 py-1 text-xs font-medium text-green-800",children:"Deletable"}),g.isDuplicateable&&m.jsx("span",{className:"inline-flex items-center rounded bg-purple-100 px-2 py-1 text-xs font-medium text-purple-800",children:"Duplicatable"})]})]}):null}function kE(){const{actions:{setProp:e},text:t}=mt(r=>({text:r.data.props.children}));return m.jsx("div",{className:"space-y-4 p-4",children:m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Text"}),m.jsx("textarea",{rows:5,value:t,onChange:r=>e(n=>n.children=r.target.value),className:"focus:ring-primary-500 min-h-fit w-full rounded-md border border-gray-300 px-3 py-2 focus:outline-none focus:ring-2"})]})})}const ql=({title:e,icon:t,children:r,defaultOpen:n=!1,className:a=""})=>{const i=I.useRef(null),[u,h]=I.useState(n),[g,p]=I.useState(n?void 0:0),b=I.useRef(null);I.useEffect(()=>{i.current&&i.current.parentElement&&i.current.parentElement.firstElementChild===i.current&&!n&&(h(!0),p(void 0))},[n]),I.useEffect(()=>{if(b.current)if(u){const F=b.current.scrollHeight;p(F)}else p(0)},[u]);const D=()=>{h(!u)};return m.jsxs("div",{ref:i,className:`overflow-hidden border border-[#E8E7EE] ${a}`,children:[m.jsxs("button",{onClick:D,className:"flex w-full items-center justify-between border-b border-[#E8E7EE] bg-white px-4 py-3 transition-colors hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[#170F4F]",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[t,m.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:e})]}),m.jsx(ce.FiChevronDown,{size:16,className:`text-[#A29FB9] transition-transform duration-200 ${u?"rotate-0":"-rotate-90"}`})]}),m.jsx("div",{ref:b,style:{height:g,overflow:"hidden",transition:"height 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},"data-testid":`collapse-content-${e.replace(/\s+/g,"-").toLowerCase()}`,children:u&&m.jsx("div",{className:"bg-white p-4",children:r})})]})};function c0(){const{actions:{setProp:e},style:{backgroundColor:t}={}}=mt(r=>({style:r.data.props.style||{}}));return m.jsx(ql,{title:"Background",icon:m.jsx(ce.FiEdit3,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("input",{type:"color",value:t,onChange:r=>e(n=>n.style.backgroundColor=r.target.value),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Background color"}),m.jsx("input",{type:"text",value:t,onChange:r=>e(n=>n.style.backgroundColor=r.target.value),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#ffffff"})]})})}function d0(){const{actions:{setProp:e},style:{borderStyle:t,borderRadius:r,borderColor:n,borderWidth:a}={}}=mt(i=>({style:i.data.props.style||{}}));return m.jsx(ql,{title:"Border",icon:m.jsx(ce.FiSquare,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border Radius"}),m.jsx("div",{className:"grid grid-cols-4 gap-1",children:[{value:"",label:"0"},{value:"4px",label:"4px"},{value:"8px",label:"8px"},{value:"9999px",label:"1/2"}].map(i=>m.jsx("button",{onClick:()=>e(u=>u.style.borderRadius=i.value),className:`border border-[#E8E7EE] px-2 py-2 text-xs transition-all ${r===i.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:i.label},i.value))})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border Width"}),m.jsx("div",{className:"grid grid-cols-4 gap-1",children:[{value:"0px",label:"0"},{value:"1px",label:"1px"},{value:"2px",label:"2px"},{value:"4px",label:"4px"}].map(i=>m.jsx("button",{onClick:()=>e(u=>u.style.borderWidth=i.value),className:`border border-[#E8E7EE] px-2 py-2 text-xs transition-all ${a===i.value?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:i.label},i.value))})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border type"}),m.jsxs("div",{className:"mb-2 grid grid-cols-2 gap-2",children:[m.jsx("button",{onClick:()=>e(i=>i.style.borderStyle="none"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${t==="none"?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"None"}),m.jsx("button",{onClick:()=>e(i=>i.style.borderStyle="solid"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${t==="solid"?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"Light"}),m.jsx("button",{onClick:()=>e(i=>i.style.borderStyle="dotted"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${t==="dotted"?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"Dotted"}),m.jsx("button",{onClick:()=>e(i=>i.style.borderStyle="dashed"),className:`border border-[#E8E7EE] px-3 py-2 text-xs transition-all ${t==="dashed"?"border-[#170F4F] bg-[#170F4F] text-white":"text-[#A29FB9] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,children:"Dashed"})]}),m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Border Color"}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("input",{type:"color",value:n,onChange:i=>e(u=>u.style.borderColor=i.target.value),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Background color"}),m.jsx("input",{type:"text",value:n,onChange:i=>e(u=>u.style.borderColor=i.target.value),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#ffffff"})]})]})]})})}const Zn=I.forwardRef(({value:e,onChange:t,min:r,max:n,defaultUnit:a="px",allowedUnits:i=[],className:u="",...h},g)=>{const[p,b]=I.useState(""),[D,F]=I.useState(!1),S=I.useCallback(H=>{if(typeof H=="number")return{value:H,unit:a,text:`${H}${a}`};if(typeof H=="string"&&H.trim()){const q=H.trim(),Q=q.match(/^(-?\d*\.?\d+)(.*)$/);if(!Q)return{value:0,unit:a,text:""};const[,Y,ie]=Q,ee=parseFloat(Y),ve=ie.trim()||a,ge=i.length>0&&!i.includes(ve)?a:ve;return{value:ee,unit:ge,text:q}}return{value:0,unit:a,text:""}},[a,i]),R=I.useMemo(()=>{if(!e||typeof e=="string"&&e.trim()==="")return"";const H=S(e);return`${H.value}${H.unit}`},[e,S]),O=I.useCallback(H=>{b(H.target.value)},[]),N=I.useCallback(H=>{if(H.key==="Enter"){H.currentTarget.blur();return}if(H.key==="ArrowUp"||H.key==="ArrowDown"){H.preventDefault();const q=D?p:R;if(!q.trim())return;const Q=S(q);if(isNaN(Q.value))return;const Y=H.shiftKey?10:H.ctrlKey||H.metaKey?.1:1,ie=H.key==="ArrowUp"?Q.value+Y:Q.value-Y,ee=Math.min(n??ie,Math.max(r??ie,ie)),ve=`${ee}${Q.unit}`;b(ve),t?.({value:ee,unit:Q.unit,text:ve})}},[D,p,R,S,r,n,t]),_=I.useCallback(()=>{F(!0),!p&&e&&b(typeof e=="string"?e:R)},[p,e,R]),M=I.useCallback(()=>{if(F(!1),!p.trim()){b(""),t?.({value:0,unit:a,text:""});return}const H=S(p),q=Math.min(n??H.value,Math.max(r??H.value,H.value)),Q=`${q}${H.unit}`;b(Q),t?.({value:q,unit:H.unit,text:Q})},[p,t,a,S,r,n]),U=`border border-[#E8E7EE] bg-white text-center text-xs transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F] disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-400 ${u.includes("px-")||u.includes("py-")?"":"px-1 py-0.5"}`;return m.jsx("input",{ref:g,type:"text",value:D?p:R,onChange:O,onFocus:_,onBlur:M,onKeyDown:N,className:`${U} ${u}`.trim(),...h})});Zn.displayName="DimensionInput";const f0={min:0,defaultUnit:"px",allowedUnits:["px","rem","%","vh","vw"],placeholder:"auto",className:"w-20 px-2 py-1 text-xs"};function h0(){const{actions:{setProp:e},style:{columns:t,columnSpacing:r,alignment:n,minHeight:a,width:i,height:u}={}}=mt(p=>({style:p.data.props.style||{}})),h=()=>{t<6&&e(p=>p.style.columns=t+1)},g=()=>{t>1&&e(p=>p.style.columns=t-1)};return m.jsx(ql,{title:"Layout",icon:m.jsx(ce.FiLayout,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Width"}),m.jsx(Zn,{value:i,onChange:p=>e(b=>b.style.width=p.text),...f0})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Height"}),m.jsx(Zn,{value:u,onChange:p=>e(b=>b.style.height=p.text),...f0})]})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Min Height"}),m.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[a,"px"]})]}),m.jsx("input",{type:"range",min:"50",max:"400",step:"25",value:a,onChange:p=>e(b=>b.style.minHeight=parseInt(p.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${(a-50)/350*100}%, #E8E7EE ${(a-50)/350*100}%, #E8E7EE 100%)`}})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Columns"}),m.jsx("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:t})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:g,disabled:t<=1,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:m.jsx(ce.FiMinus,{size:14})}),m.jsx("div",{className:"flex flex-1 justify-center py-1",children:m.jsx("div",{className:"flex gap-1",children:Array.from({length:t},(p,b)=>m.jsx("div",{className:"h-8 w-4 border border-[#170F4F] bg-[#170F4F]"},b))})}),m.jsx("button",{onClick:h,disabled:t>=6,className:"flex h-8 w-8 items-center justify-center border border-[#E8E7EE] bg-[#E8E7EE] text-[#A29FB9] transition-all hover:border-[#00BAC7] hover:bg-[#CCF1F4] disabled:cursor-not-allowed disabled:opacity-30",children:m.jsx(ce.FiPlus,{size:14})})]})]}),t>1&&m.jsxs("div",{children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-[#A29FB9]",children:"Column Gap"}),m.jsxs("span",{className:"bg-[#E8E7EE] px-2 py-1 font-mono text-xs text-[#170F4F]",children:[r,"px"]})]}),m.jsx("input",{type:"range",min:"0",max:"40",step:"2",value:r,onChange:p=>e(b=>b.style.columnSpacing=parseInt(p.target.value)),className:"slider-modern h-2 w-full cursor-pointer appearance-none bg-[#E8E7EE]",style:{background:`linear-gradient(to right, #170F4F 0%, #170F4F ${r/40*100}%, #E8E7EE ${r/40*100}%, #E8E7EE 100%)`}})]}),m.jsxs("div",{children:[m.jsx("span",{className:"mb-2 block text-xs text-[#A29FB9]",children:"Alignment"}),m.jsx($i,{options:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],value:n,onChange:p=>e(b=>b.style.alignment=p),placeholder:"Choose alignment"})]})]})})}function Kl(e){if(e!=null){if(typeof e=="number")return e===0?"0":void 0;if(typeof e=="string"){const t=e.trim();return t==="0"?"0":/^-?\d+(\.\d+)?(px|em|rem|%|vh|vw|vmin|vmax|ch|ex|cm|mm|in|pt|pc)$/i.test(t)?t:void 0}}}function p0(e={},t){const r=Kl(e[t]),n=Kl(e[`${t}Top`]),a=Kl(e[`${t}Right`]),i=Kl(e[`${t}Bottom`]),u=Kl(e[`${t}Left`]);if(r){const h=r.trim().split(/\s+/);switch(h.length){case 1:return{top:h[0],right:h[0],bottom:h[0],left:h[0]};case 2:return{top:h[0],right:h[1],bottom:h[0],left:h[1]};case 3:return{top:h[0],right:h[1],bottom:h[2],left:h[1]};case 4:return{top:h[0],right:h[1],bottom:h[2],left:h[3]}}}return{top:n,right:a,bottom:i,left:u}}const ao={min:0,defaultUnit:"px",allowedUnits:["px","rem","%"],placeholder:"none",className:"w-10 px-0.5 py-0.5 text-xs"};function g0(){const{actions:{setProp:e},style:t={}}=mt(a=>({style:a.data.props.style||{}})),r=I.useMemo(()=>p0(t,"margin"),[t]),n=I.useMemo(()=>p0(t,"padding"),[t]);return m.jsx(ql,{title:"Spacing",icon:m.jsx(ce.FiMove,{size:14,className:"text-[#170F4F]"}),defaultOpen:!1,children:m.jsx("div",{className:"space-y-3",children:m.jsx("div",{children:m.jsxs("div",{className:"relative border border-[#dce7fe] bg-[#F9FAFB] p-2",children:[m.jsx("div",{className:"absolute left-1 top-[-2px] -translate-y-1/2",children:m.jsx("span",{className:"bg-[#F9FAFB] px-1 text-xs text-[#A29FB9]",style:{background:"linear-gradient(to bottom,transparent 0%,transparent 50%, #F9FAFB 50%, #F9FAFB 100%)"},children:"Margin"})}),m.jsx("div",{className:"mb-1 flex justify-center",children:m.jsx(Zn,{value:r.top,onChange:a=>e(i=>i.style.marginTop=a.text),...ao})}),m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsx(Zn,{value:r.left,onChange:a=>e(i=>i.style.marginLeft=a.text),...ao}),m.jsxs("div",{className:"relative mx-2 my-1 flex-1 border-2 border-dashed border-[#3B82F6] bg-[#EFF6FF] p-2",children:[m.jsx("div",{className:"absolute left-1 top-[-3px] -translate-y-1/2",children:m.jsx("span",{className:"bg-[#EFF6FF] px-1 text-xs text-[#3B82F6]",style:{background:"linear-gradient(to bottom, transparent 0%, transparent 50%, #EFF6FF 50%, #EFF6FF 100%)"},children:"Padding"})}),m.jsx("div",{className:"mb-1 flex justify-center",children:m.jsx(Zn,{value:n.top,onChange:a=>e(i=>i.style.paddingTop=a.text),...ao})}),m.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[m.jsx(Zn,{value:n.left,onChange:a=>e(i=>i.style.paddingLeft=a.text),...ao}),m.jsx("div",{className:"mx-2 my-1 flex h-6 flex-1 items-center justify-center border border-[#D1D5DB] bg-white px-2 py-1",children:m.jsx("span",{className:"text-[10px] font-medium text-[#6B7280] opacity-60",children:"Content"})}),m.jsx(Zn,{value:n.right,onChange:a=>e(i=>i.style.paddingRight=a.text),...ao})]}),m.jsx("div",{className:"flex justify-center",children:m.jsx(Zn,{value:n.bottom,onChange:a=>e(i=>i.style.paddingBottom=a.text),...ao})})]}),m.jsx(Zn,{value:r.right,onChange:a=>e(i=>i.style.marginRight=a.text),...ao})]}),m.jsx("div",{className:"flex justify-center",children:m.jsx(Zn,{value:r.bottom,onChange:a=>e(i=>i.style.marginBottom=a.text),...ao})})]})})})})}function TE(){return m.jsxs(m.Fragment,{children:[m.jsx(h0,{}),m.jsx(g0,{}),m.jsx(c0,{}),m.jsx(d0,{})]})}function _E(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"},child:[]}]})(e)}function AE(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",x2:"10",y1:"4",y2:"4"},child:[]},{tag:"line",attr:{x1:"14",x2:"5",y1:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"15",x2:"9",y1:"4",y2:"20"},child:[]}]})(e)}function NE(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 7V4h16v3"},child:[]},{tag:"path",attr:{d:"M5 20h6"},child:[]},{tag:"path",attr:{d:"M13 4 8 20"},child:[]},{tag:"path",attr:{d:"m15 15 5 5"},child:[]},{tag:"path",attr:{d:"m20 15-5 5"},child:[]}]})(e)}function RE(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 7 4 4 20 4 20 7"},child:[]},{tag:"line",attr:{x1:"9",x2:"15",y1:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"4",y2:"20"},child:[]}]})(e)}function OE(e){return Xn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 4v6a6 6 0 0 0 12 0V4"},child:[]},{tag:"line",attr:{x1:"4",x2:"20",y1:"20",y2:"20"},child:[]}]})(e)}const BE=["Inter","Roboto","Arial","Georgia","Times New Roman","Montserrat","Lato","Oswald","Poppins"],PE=[{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}],LE=[{label:"Normal",value:"normal"},{label:"No wrapped",value:"nowrap"}];function IE(){const{actions:{setProp:e},style:t={}}=mt(n=>({style:n.data.props.style})),r=I.useCallback(n=>{e(a=>{a.style={...a.style,...n}})},[e]);return m.jsx(ql,{title:"Typography",icon:m.jsx(RE,{size:14,className:"text-[#170F4F]"}),defaultOpen:!0,children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Font"}),m.jsx($i,{options:BE.map(n=>({value:n,label:n})),value:t.fontFamily||"Inter",onChange:n=>r({fontFamily:n}),placeholder:"Choose font family"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Size"}),m.jsx("input",{type:"number",min:8,max:96,value:t.fontSize||20,onChange:n=>r({fontSize:Number(n.target.value)}),className:"w-full border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Weight"}),m.jsx($i,{options:PE,value:t.fontWeight||"normal",onChange:n=>r({fontWeight:n}),placeholder:"Choose font weight"})]})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ce.FiMove,{size:14,className:"text-[#170F4F]"}),m.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Alignment"})]}),m.jsx("div",{className:"flex gap-2",children:["left","center","right","justify"].map(n=>m.jsx("button",{className:`rounded border px-3 py-2 text-xs font-medium transition-all focus:outline-none focus:ring-2 focus:ring-[#170F4F] ${t.textAlign===n?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({textAlign:n}),children:n.charAt(0).toUpperCase()+n.slice(1)},n))}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-xs text-[#A29FB9]",children:"Line Break"}),m.jsx($i,{options:LE,value:t.whiteSpace||"normal",onChange:n=>r({whiteSpace:n}),placeholder:"Choose whiteSpace"})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(NE,{size:14,className:"text-[#170F4F]"}),m.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Formatting"})]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{className:`rounded border px-3 py-2 text-xs font-bold ${t?.fontWeight==="bold"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({fontWeight:t?.fontWeight==="bold"?"normal":"bold"}),children:m.jsx(_E,{size:14,className:"text-[#170F4F]"})}),m.jsx("button",{className:`rounded border px-3 py-2 text-xs italic ${t?.fontStyle==="italic"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({fontStyle:t?.fontStyle==="italic"?"normal":"italic"}),children:m.jsx(AE,{size:14,className:"text-[#170F4F]"})}),m.jsx("button",{className:`rounded border px-3 py-2 text-xs underline ${t?.textDecoration==="underline"?"border-[#00BAC7] bg-[#CCF1F4]":"border-[#E8E7EE] bg-white"}`,onClick:()=>r({textDecoration:t?.textDecoration==="underline"?"none":"underline"}),children:m.jsx(OE,{size:14,className:"text-[#170F4F]"})})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ce.FiEdit3,{size:14,className:"text-[#170F4F]"}),m.jsx("h3",{className:"text-sm font-medium text-[#170F4F]",children:"Text Color"})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("input",{type:"color",value:t.color||"#000000",onChange:n=>r({color:n.target.value}),className:"h-10 w-10 cursor-pointer border border-[#E8E7EE] transition-colors hover:border-[#170F4F]","aria-label":"Text color"}),m.jsx("input",{type:"text",value:t.color||"#000000",onChange:n=>r({color:n.target.value}),className:"flex-1 border border-[#E8E7EE] px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",placeholder:"#000000"})]})]})]})})}const ME=Object.entries({default:TE,typography:IE,layout:h0,spacing:g0,background:c0,border:d0,box:Rv,text:kE,button:wh,image:Dh,anchor:xh}).map(([e,t])=>({id:e,component:t}));function zE(){const{selected:e,query:t}=Hr(a=>({selected:a.events.selected}));if(!e||e.size===0)return m.jsx("div",{className:"flex h-full items-center justify-center text-gray-500",children:m.jsxs("div",{className:"text-center",children:[m.jsx(ce.FiSettings,{size:48,className:"mx-auto mb-4 text-gray-300"}),m.jsx("p",{className:"text-sm",children:"Select a component to see its settings"})]})});const r=Array.from(e)[0],n=t.node(r).get();if(!n)return null;if(n&&n.data.custom&&n.data.custom.settings){const a=n.data.custom.settings,u=(Array.isArray(a)?a:[a]).map(h=>ME.find(g=>g.id===h)).filter(Boolean);if(u.length>0)return m.jsx(m.Fragment,{children:u.map(h=>{const g=h.component;return I.createElement(ah,{id:r,related:!0,key:h.id},m.jsx(g,{}))})})}return m.jsx("div",{className:"p-4",children:m.jsx("p",{className:"text-sm text-gray-500",children:"No custom settings available for this component."})})}const HE=[{id:"settings",label:"Settings",icon:ce.FiSettings},{id:"info",label:"Info",icon:ce.FiInfo},{id:"actions",label:"Actions",icon:ce.FiEye}];function jE(){const{selected:e,query:t}=Hr(u=>({selected:u.events.selected})),[r,n]=I.useState("settings"),a=I.useMemo(()=>({settings:m.jsx(zE,{}),info:m.jsx(SE,{}),actions:m.jsx(FE,{})}),[]),i=I.useMemo(()=>{if(!e||e.size===0)return null;const u=Array.from(e)[0],h=t.node(u).get();return h?{id:u,type:h.data.type,displayName:h.data.displayName||String(h.data.type),props:h.data.props,isCanvas:h.data.isCanvas,isDeletable:!0,isDuplicateable:!0,parent:h.data.parent}:null},[e,t]);return m.jsxs("div",{className:"flex h-full w-80 flex-col border-l border-[#e8e7ee] bg-white",children:[i&&m.jsx(EE,{name:String(i.displayName)}),i&&m.jsx("div",{className:"flex border-b border-[#e8e7ee]",children:HE.map(u=>{const h=u.icon;return m.jsxs("button",{onClick:()=>n(u.id),className:`flex flex-1 items-center justify-center gap-2 px-3 py-2 text-xs font-medium transition-colors duration-200 ${r===u.id?"border-b-2 border-[#170f4f] bg-white text-[#170f4f]":"text-gray-500 hover:bg-gray-50 hover:text-[#170f4f]"}`,children:[m.jsx(h,{size:14}),u.label]},u.id)})}),m.jsx("div",{className:"flex-1 overflow-y-auto",children:a[r]})]})}function UE({blocks:e,searchTerm:t}){const{connectors:r,query:n}=Hr(),[a,i]=I.useState(new Set),u=I.useRef({}),[h,g]=I.useState({}),p=I.useMemo(()=>t.trim()?e.filter(_=>_.label.toLowerCase().includes(t.toLowerCase())||_.category?.toLowerCase().includes(t.toLowerCase())):e,[e,t]),b=p.reduce((_,M)=>{const U=M.category||"other";return _[U]||(_[U]=[]),_[U].push(M),_},{}),D=_=>{i(M=>{const U=new Set(M);return U.has(_)?U.delete(_):U.add(_),U})};I.useEffect(()=>{const _=Object.keys(b);if(_[0]&&a.size===0){const U=new Set(_.slice(1));i(U)}},[b]),I.useEffect(()=>{Object.keys(u.current).forEach(_=>{const M=u.current[_];if(M){const U=a.has(_);g(U?H=>({...H,[_]:0}):H=>({...H,[_]:M.scrollHeight}))}})},[a,p]);const F=_=>m.jsxs("div",{ref:M=>{M&&r.create(M,I.createElement(_.component,{}),{})},className:"group flex cursor-move flex-col items-center gap-1.5 rounded-md bg-white p-2.5 text-center transition-all duration-200 hover:bg-gray-50",draggable:!0,onDragStart:M=>{M.currentTarget.style.opacity="0.5"},onDragEnd:M=>{M.currentTarget.style.opacity="1"},title:`Drag to add ${_.label} component`,children:[m.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded bg-[#170F4F] text-sm text-white",children:_.icon}),m.jsx("span",{className:"text-xs font-medium leading-tight text-gray-700",children:_.label})]},_.id),S={layout:"Layout",content:"Content",interactive:"Interactive",media:"Media",dynamic:"Dynamic",other:"Other"},R={layout:m.jsx(ce.FiGrid,{size:14}),content:m.jsx(ce.FiType,{size:14}),interactive:m.jsx(ce.FiMousePointer,{size:14}),media:m.jsx(ce.FiImage,{size:14}),dynamic:m.jsx(ce.FiCode,{size:14}),other:m.jsx(ce.FiPackage,{size:14})},O=n.node("ROOT").get(),N=O&&O.data.nodes&&O.data.nodes.length>0;return m.jsxs("div",{className:"flex h-full flex-col",children:[!N&&m.jsx("div",{className:"border-b border-[#E8E7EE] bg-gray-50/50 px-3 py-2",children:m.jsx("p",{className:"text-xs text-gray-500",children:"Drag components to the canvas to add them"})}),m.jsxs("div",{className:"flex-1 overflow-y-auto p-3",children:[Object.entries(b).map(([_,M])=>{const U=a.has(_);return m.jsxs("div",{className:"last:mb-0",children:[m.jsxs("button",{onClick:()=>D(_),className:"mb-3 flex w-full items-center gap-2 rounded p-2 text-gray-700 transition-all duration-200 hover:bg-gray-50",children:[m.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded transition-colors hover:bg-gray-100",children:U?m.jsx(ce.FiChevronRight,{size:12,className:"text-gray-400"}):m.jsx(ce.FiChevronDown,{size:12,className:"text-gray-400"})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"text-gray-600",children:R[_]||R.other}),m.jsx("h3",{className:"text-sm font-medium text-gray-900",children:S[_]||_})]}),m.jsx("div",{className:"h-px flex-1 bg-gray-200"}),m.jsx("span",{className:"text-xs font-medium text-gray-500",children:M.length})]}),m.jsx("div",{ref:H=>{u.current[_]=H},style:{height:h[_],overflow:"hidden",transition:"height 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},children:!U&&m.jsx("div",{className:"pb-1",children:m.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:M.map(F)})})})]},_)}),Object.entries(b).length===0&&m.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[m.jsx("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-gray-100",children:m.jsx("span",{className:"text-lg",children:"📦"})}),m.jsx("h3",{className:"mb-1 text-sm font-medium text-gray-900",children:t?"No components found":"No blocks available"}),m.jsx("p",{className:"text-xs text-gray-500",children:t?"Try different search terms":"Add components to get started"})]})]})]})}const WE=e=>Wl.find(r=>{const n=r.label.toLowerCase(),a=r.id.toLowerCase(),i=e.toLowerCase();return n===i||a===i})?.icon||m.jsx(ce.FiMousePointer,{size:16});function GE({searchTerm:e}){const[t,r]=I.useState(new Set),{nodes:n,actions:a,selected:i}=Hr(S=>({nodes:S.nodes,selected:S.events.selected})),u=S=>{const R=new Set(t);R.has(S)?R.delete(S):R.add(S),r(R)},h=(S,R)=>{if(!R.trim())return S;const O=new RegExp(`(${R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");return S.split(O).map((_,M)=>O.test(_)?m.jsx("span",{className:"rounded bg-yellow-200 px-0.5 text-yellow-900",children:_},M):_)},g=(S,R=0,O=!1,N=[])=>{const _=n[S];if(!_)return null;const M=_.data.isCanvas,U=_.data.nodes||[],H=_.data.displayName||(typeof _.data.type=="string"?_.data.type:_.data.type?.displayName)||S,q=i&&i.has(S),Q=typeof _.data.name=="string"?_.data.name:_.data?.displayName||"",Y=U.length>0,ie=t.has(S),ee=e.trim()===""||H.toLowerCase().includes(e.toLowerCase())||Q.toLowerCase().includes(e.toLowerCase()),ve=e.trim()!==""&&U.some(Ie=>{const Ae=n[Ie];if(!Ae)return!1;const Ge=Ae.data.displayName||(typeof Ae.data.type=="string"?Ae.data.type:Ae.data.type?.displayName)||Ie,Ue=typeof Ae.data.name=="string"?Ae.data.name:Ae.data?.displayName||"";return Ge.toLowerCase().includes(e.toLowerCase())||Ue.toLowerCase().includes(e.toLowerCase())});return ee||ve?m.jsxs("div",{className:"flex flex-col",children:[m.jsxs("div",{className:"flex w-full items-center",children:[R>0&&m.jsx("div",{style:{width:R*20}}),m.jsxs("div",{className:`group flex w-full items-center rounded-md px-2 py-1.5 transition-colors ${q?"bg-[#170F4F]/10 hover:bg-[#170F4F]/15":"hover:bg-gray-50"} ${ee&&e.trim()?"ring-1 ring-yellow-300":""}`,children:[Y?m.jsx("button",{onClick:()=>u(S),className:"mr-1.5 flex h-4 w-4 items-center justify-center rounded opacity-0 transition-opacity hover:bg-gray-200 group-hover:opacity-100",children:ie?m.jsx(ce.FiChevronRight,{size:12,className:"text-gray-500"}):m.jsx(ce.FiChevronDown,{size:12,className:"text-gray-500"})}):m.jsx("div",{className:"w-6"}),m.jsx("div",{className:`mr-2.5 flex h-5 w-5 items-center justify-center ${q?"text-[#170F4F]":"text-gray-600"}`,children:WE(Q)}),m.jsx("button",{className:`flex-1 text-left text-sm font-medium transition-colors ${q?"text-[#170F4F]":"text-gray-700 group-hover:text-[#170F4F]"}`,onClick:()=>a.selectNode(S),children:h(H,e)})]})]}),M&&Y&&(!ie||e.trim()!=="")&&m.jsx("div",{className:"ml-0",children:U.map((Ie,Ae)=>g(Ie,R+1,Ae===U.length-1,[...N,O]))})]},S):null},b=n.ROOT?.data?.nodes||[],D=b.length>0,F=t.has("canvas");return m.jsx("div",{className:"flex h-full flex-col",children:m.jsxs("div",{className:"flex-1 space-y-0.5 overflow-y-auto p-2",children:[m.jsxs("div",{className:"flex flex-col",children:[m.jsx("div",{className:"flex w-full items-center",children:m.jsxs("div",{className:`group flex w-full items-center rounded-md px-2 py-1.5 transition-colors ${i&&i.has("ROOT")?"bg-[#170F4F]/10 hover:bg-[#170F4F]/15":"hover:bg-gray-50"}`,children:[D?m.jsx("button",{onClick:()=>u("canvas"),className:"mr-1.5 flex h-4 w-4 items-center justify-center rounded opacity-0 transition-opacity hover:bg-gray-200 group-hover:opacity-100",children:F?m.jsx(ce.FiChevronRight,{size:12,className:"text-gray-500"}):m.jsx(ce.FiChevronDown,{size:12,className:"text-gray-500"})}):m.jsx("div",{className:"w-6"}),m.jsx("div",{className:"mr-2.5 flex h-5 w-5 items-center justify-center text-[#170F4F]",children:m.jsx(ce.FiFile,{size:14})}),m.jsx("button",{className:`flex-1 text-left text-sm font-medium transition-colors ${i&&i.has("ROOT")?"text-[#170F4F]":"text-gray-800 group-hover:text-[#170F4F]"}`,onClick:()=>a.selectNode("ROOT"),children:"Template"})]})}),D&&(!F||e.trim()!=="")&&m.jsx("div",{children:b.map((S,R)=>g(S,1,R===b.length-1,[!0]))})]}),!D&&m.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[m.jsx("div",{className:"mb-2 flex h-10 w-10 items-center justify-center rounded-lg bg-gray-100",children:m.jsx(ce.FiLayers,{size:16,className:"text-gray-400"})}),m.jsx("p",{className:"mb-1 text-xs text-gray-500",children:"No layers yet"}),m.jsx("p",{className:"text-xs text-gray-400",children:"Add components to see them here"})]})]})})}const VE=({blocks:e=Wl})=>{const[t,r]=I.useState("blocks"),[n,a]=I.useState("");return m.jsxs("div",{className:"flex h-full w-64 flex-col overflow-hidden border-r border-[#E8E7EE] bg-white",children:[m.jsx("div",{className:"border-b border-[#E8E7EE] bg-gray-50 p-3",children:m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:"text",placeholder:"Search components...",value:n,onChange:i=>a(i.target.value),className:"w-full border border-[#E8E7EE] bg-white px-3 py-2 pl-9 pr-9 text-sm text-gray-900 placeholder-gray-500 transition-all duration-200 focus:border-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]/20"}),m.jsx(ce.FiSearch,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),n&&m.jsx("button",{onClick:()=>a(""),className:"absolute right-3 top-1/2 -translate-y-1/2 rounded p-0.5 text-gray-400 transition-colors duration-200 hover:bg-gray-100 hover:text-gray-600",children:m.jsx(ce.FiX,{size:14})})]})}),m.jsxs("div",{className:"flex border-b border-[#E8E7EE]",children:[m.jsx("button",{className:`flex-1 border-b py-3 text-sm font-medium transition-colors duration-200 ${t==="blocks"?"border-[#170F4F] text-[#170F4F]":"border-transparent text-[#A29FB9] hover:text-[#00BAC7]"}`,onClick:()=>r("blocks"),children:"Blocks"}),m.jsx("button",{className:`flex-1 border-b py-3 text-sm font-medium transition-colors duration-200 ${t==="layers"?"border-[#170F4F] text-[#170F4F]":"border-transparent text-[#A29FB9] hover:text-[#00BAC7]"}`,onClick:()=>r("layers"),children:"Layers"})]}),m.jsx("div",{className:"flex-1 overflow-hidden",children:t==="blocks"?m.jsx(UE,{blocks:e,searchTerm:n}):m.jsx(GE,{searchTerm:n})})]})};function YE(e,t=300){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}}const JE=({hasChildren:e})=>{const{device:t}=ac();return e?null:m.jsx("div",{className:`pointer-events-none absolute inset-0 left-auto right-auto z-10 flex items-center justify-center ${t==="mobile"?"w-[10%]":"w-[20%]"}`,children:m.jsxs("div",{className:"mx-auto p-6 text-center",children:[m.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center border border-[#170F4F] bg-[#E8E7EE]",children:m.jsx("span",{className:"text-2xl text-[#170F4F]",children:"📄"})}),m.jsx("h3",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"Start building your page"}),m.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Drag components from the sidebar to create your page layout."})]})})},XE=({hasCanvasContent:e,showCodePanel:t})=>m.jsxs("div",{className:`${t?"w-1/2":"w-full"} mx-auto flex h-full flex-1 items-start justify-center overflow-scroll bg-gradient-to-br from-gray-100 to-gray-200 p-6 transition-all duration-300`,style:{maxHeight:"calc(100vh - 72px)"},children:[m.jsx(JE,{hasChildren:e}),m.jsx(ew,{children:m.jsx($u,{canvas:!0,is:"div",...Ch,style:{...Ch.style,maxWidth:Uv.desktop.width}})})]}),ZE=()=>{const[e,t]=I.useState(!1),r=()=>{console.log("Export HTML clicked"),t(!1)},n=()=>{console.log("Data Source clicked"),t(!1)};return I.useEffect(()=>{const a=i=>{e&&t(!1)};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[e]),m.jsxs("div",{className:"relative",children:[m.jsx("button",{onClick:()=>t(!e),className:"rounded p-1.5 text-[#6B7280] transition-all duration-200 hover:bg-[#F5F5F7] hover:text-[#170F4F]",title:"Menu options",children:m.jsx(ce.FiMenu,{size:16})}),e&&m.jsxs("div",{className:"absolute left-0 top-full z-50 mt-1 w-48 rounded-md border border-[#E8E7EE] bg-white py-1 shadow-lg",children:[m.jsxs("button",{onClick:r,className:"flex w-full items-center gap-3 px-4 py-2 text-sm text-gray-700 hover:bg-gray-50",children:[m.jsx(ce.FiDownload,{size:14}),"Export HTML"]}),m.jsxs("button",{onClick:n,className:"flex w-full items-center gap-3 px-4 py-2 text-sm text-gray-700 hover:bg-gray-50",children:[m.jsx(ce.FiDatabase,{size:14}),"Data Source"]})]})]})},qE=({canvasSize:e,showCodePanel:t,onPreviewModeToggle:r,onCanvasSizeChange:n,onCodePanelToggle:a,onSave:i,templateIsModified:u=!1,templateName:h,onTemplateNameChange:g,templateReference:p})=>{const[b,D]=I.useState(!1),F=I.useRef(null);I.useEffect(()=>{b&&F.current&&(F.current.focus(),F.current.select())},[b]);const S=()=>{D(!1)},R=_=>{_.key==="Enter"&&D(!1),_.key==="Escape"&&D(!1)},O=_=>{g?.(_.target.value)},N=async _=>{try{await navigator.clipboard.writeText(_)}catch(M){console.error("Failed to copy slug:",M)}};return m.jsx("div",{className:"border-b border-[#E8E7EE] bg-white",children:m.jsx("div",{className:"px-3 py-3 sm:px-8",children:m.jsxs("div",{className:"relative flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ZE,{}),m.jsx("div",{className:"group",children:b?m.jsx("input",{ref:F,className:"w-full truncate rounded border-none bg-transparent px-1.5 text-base font-bold text-[#170F4F] focus:outline-none focus:ring-1 focus:ring-[#170F4F]",value:h,onChange:O,onBlur:S,onKeyDown:R,placeholder:"Untitled Template","aria-label":"Template name"}):m.jsxs("div",{className:"flex items-center",children:[m.jsxs("h1",{className:"cursor-pointer rounded px-1.5 py-1 text-base font-bold text-[#170F4F] hover:bg-gray-50",title:"Double-click to edit",onDoubleClick:()=>D(!0),children:[m.jsx("span",{className:"truncate",children:h||"Untitled Template"}),p&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"mx-1.5 text-gray-300",children:"•"}),m.jsx("span",{className:"rounded-sm bg-gray-100 px-1 py-0.5 font-mono text-[10px] font-medium text-gray-600",children:p})]})]}),p&&m.jsx("button",{onClick:()=>N(p),className:"rounded p-0.5 opacity-0 transition-opacity hover:bg-gray-50 hover:text-[#170F4F] group-hover:opacity-100",title:"Copy slug to clipboard",children:m.jsx(ce.FiCopy,{size:9,className:"text-gray-400"})})]})})]}),m.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:m.jsx("div",{className:"flex items-center gap-1 border border-[#E8E7EE] bg-white p-1",children:["desktop","tablet","mobile"].map(_=>{const M={desktop:m.jsx(ce.FiMonitor,{size:16}),tablet:m.jsx(ce.FiTablet,{size:16}),mobile:m.jsx(ce.FiSmartphone,{size:16})};return m.jsxs("button",{className:`flex items-center gap-1.5 px-2 py-1 text-xs font-medium transition-all duration-200 ${e===_?"bg-[#170F4F] text-white":"text-[#170F4F] hover:bg-[#F5F5F7]"}`,onClick:()=>n(_),title:`Switch to ${_} view`,children:[m.jsx("span",{className:"inline sm:hidden",children:M[_]}),m.jsx("span",{className:"hidden sm:inline",children:_.charAt(0).toUpperCase()+_.slice(1)})]},_)})})}),m.jsxs("div",{className:"flex items-center gap-2",children:[u?m.jsxs("div",{className:"flex items-center gap-1 text-orange-600",children:[m.jsx("div",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-orange-500"}),m.jsx("span",{className:"text-xs font-medium",children:"Unsaved"})]}):m.jsxs("div",{className:"flex items-center gap-1 text-green-600",children:[m.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500"}),m.jsx("span",{className:"text-xs font-medium",children:"Saved"})]}),m.jsx("button",{className:`p-1.5 transition-all duration-200 ${t?"bg-[#170F4F] text-white":"text-[#6B7280] hover:bg-[#F5F5F7] hover:text-[#170F4F]"}`,onClick:a,title:"Toggle Code Editor",children:m.jsx(ce.FiCode,{size:16})}),m.jsx("button",{onClick:r,className:"p-1.5 text-[#6B7280] transition-all duration-200 hover:bg-[#F5F5F7] hover:text-[#170F4F]",title:"Preview template",children:m.jsx(ce.FiEye,{size:16})}),i&&m.jsxs("button",{className:"relative flex items-center gap-1.5 bg-[#170F4F] px-3 py-1.5 text-xs font-medium text-white transition-all duration-200 hover:bg-[#009CA8]",onClick:i,title:"Save changes",children:[m.jsx(ce.FiSave,{size:14}),"Save",u&&m.jsx("span",{className:"absolute -right-0.5 -top-0.5 h-2 w-2 animate-pulse bg-orange-500"})]})]})]})})})},KE=I.lazy(()=>Promise.resolve().then(()=>ak).then(e=>({default:e.DataSourceModal}))),QE=({showCodePanel:e=!1,onPreviewToggle:t,onCodePanelToggle:r,codePanelChildren:n})=>{CE();const a=ac(),{query:i,store:u}=Hr(),{template:h,updateTemplate:g,saveTemplate:p}=u0(),{export:b}=Fh(),[D,F]=I.useState(!1),[S,R]=I.useState(!1),O=I.useCallback(()=>{if(!h)return"";const M=i.serialize();return!M||typeof M=="object"&&Object.keys(M).length<=1?"":b({inlineStyles:!0,prettify:!0,includeComments:!1})},[h,i,b]),N=async()=>{if(!h){alert("No template loaded to save");return}try{g({content:O()}),await p(),alert("Template saved successfully!")}catch(M){console.error("Error saving template:",M),alert("Error saving template. Please try again.")}},_=()=>{};return I.useEffect(()=>{if(!S&&h&&h?.content)try{a.loadTemplate(h.content)}catch(M){console.error("Error loading template into canvas:",M)}finally{R(!0)}},[h?.id]),I.useEffect(()=>{u.subscribe(YE(()=>{g({content:O()})},500),()=>{})},[]),m.jsxs("div",{className:"flex h-screen flex-col",children:[m.jsx(qE,{canvasSize:a.device,showCodePanel:e,onPreviewModeToggle:t||(()=>{}),onCanvasSizeChange:a.setDevice,onCodePanelToggle:r||(()=>{}),onSave:N,templateIsModified:h?.isModified,templateName:h?.title,onTemplateNameChange:M=>{g({title:M})},templateReference:h?.slug}),m.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!e&&m.jsx(VE,{}),m.jsxs("div",{className:`flex flex-1 ${e?"flex-row":"flex-col"}`,children:[e?n:null,m.jsx(XE,{canvasSize:a.device,hasCanvasContent:a.isEmpty,showCodePanel:e})]}),!e&&m.jsx(jE,{})]}),D&&m.jsx(I.Suspense,{fallback:m.jsx("div",{children:"Loading..."}),children:m.jsx(KE,{isOpen:D,onClose:()=>F(!1),onDataImport:_})})]})},m0=({children:e,isHover:t,isSelected:r,name:n,showIndicator:a=!0,width:i,height:u})=>{const h=t&&!r&&a,g=r&&a,p=h||g,b={outline:g?"1px solid #170f4fff":h?"1px dashed #00BAC7":"1px solid transparent",background:g?"rgba(23,15,79,0.03)":h?"rgba(0,186,199,0.02)":"transparent",cursor:"pointer",overflow:"visible",position:"relative",width:i,height:u};return m.jsxs("div",{style:b,className:r?"avoid-transition":"",children:[p&&m.jsxs("div",{className:`absolute left-0 top-0 flex items-center gap-1.5 px-2 py-1 text-xs font-medium backdrop-blur-sm ${g?"border border-[#170F4F] bg-[#170F4F] text-white shadow-lg":"border border-[#00BAC7] bg-[#00BAC7] text-white shadow-md"} `,style:{borderRadius:"4px",transform:"translateY(-100%)",transformOrigin:"left bottom",marginTop:"-2px",zIndex:99999,position:"absolute",transition:"all 0.15s ease-out"},onClick:D=>{D.stopPropagation(),D.preventDefault()},onMouseDown:D=>{D.stopPropagation(),D.preventDefault()},children:[m.jsx("div",{className:"flex h-3 w-3 items-center justify-center",children:g?m.jsx("div",{className:"h-2 w-2 rounded-full bg-white"}):m.jsx("div",{className:"h-2 w-2 rounded-full bg-white opacity-70"})}),m.jsx("span",{className:"select-none whitespace-nowrap leading-none",children:n})]}),e]})};var Ht=function(){return Ht=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ht.apply(this,arguments)},v0={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},b0={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},bc={width:"20px",height:"20px",position:"absolute",zIndex:1},$E={top:Ht(Ht({},v0),{top:"-5px"}),right:Ht(Ht({},b0),{left:void 0,right:"-5px"}),bottom:Ht(Ht({},v0),{top:void 0,bottom:"-5px"}),left:Ht(Ht({},b0),{left:"-5px"}),topRight:Ht(Ht({},bc),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Ht(Ht({},bc),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Ht(Ht({},bc),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Ht(Ht({},bc),{left:"-10px",top:"-10px",cursor:"nw-resize"})},eF=I.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,a=e.replaceStyles,i=e.className,u=I.useCallback(function(p){t(p,r)},[t,r]),h=I.useCallback(function(p){t(p,r)},[t,r]),g=I.useMemo(function(){return Ht(Ht({position:"absolute",userSelect:"none"},$E[r]),a??{})},[a,r]);return m.jsx("div",{className:i||void 0,style:g,onMouseDown:u,onTouchStart:h,children:n})}),tF=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Da=function(){return Da=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Da.apply(this,arguments)},rF={width:"auto",height:"auto"},yc=function(e,t,r){return Math.max(Math.min(e,r),t)},y0=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},Js=function(e,t){return new RegExp(e,"i").test(t)},xc=function(e){return!!(e.touches&&e.touches.length)},nF=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},x0=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(i,u,h){return Math.abs(u-e)<Math.abs(t[i]-e)?h:i},0),a=Math.abs(t[n]-e);return r===0||a<r?t[n]:e},ap=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},wc=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var a=Number(e.replace("%",""))/100;return t*a}if(e.endsWith("vw")){var a=Number(e.replace("vw",""))/100;return r*a}if(e.endsWith("vh")){var a=Number(e.replace("vh",""))/100;return n*a}}return e},aF=function(e,t,r,n,a,i,u){return n=wc(n,e.width,t,r),a=wc(a,e.height,t,r),i=wc(i,e.width,t,r),u=wc(u,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof a>"u"?void 0:Number(a),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof u>"u"?void 0:Number(u)}},iF=function(e){return Array.isArray(e)?e:[e,e]},oF=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],w0="__resizable_base__",sF=(function(e){tF(t,e);function t(r){var n,a,i,u,h=e.call(this,r)||this;return h.ratio=1,h.resizable=null,h.parentLeft=0,h.parentTop=0,h.resizableLeft=0,h.resizableRight=0,h.resizableTop=0,h.resizableBottom=0,h.targetLeft=0,h.targetTop=0,h.delta={width:0,height:0},h.appendBase=function(){if(!h.resizable||!h.window)return null;var g=h.parentNode;if(!g)return null;var p=h.window.document.createElement("div");return p.style.width="100%",p.style.height="100%",p.style.position="absolute",p.style.transform="scale(0, 0)",p.style.left="0",p.style.flex="0 0 100%",p.classList?p.classList.add(w0):p.className+=w0,g.appendChild(p),p},h.removeBase=function(g){var p=h.parentNode;p&&p.removeChild(g)},h.state={isResizing:!1,width:(a=(n=h.propsSize)===null||n===void 0?void 0:n.width)!==null&&a!==void 0?a:"auto",height:(u=(i=h.propsSize)===null||i===void 0?void 0:i.height)!==null&&u!==void 0?u:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},h.onResizeStart=h.onResizeStart.bind(h),h.onMouseMove=h.onMouseMove.bind(h),h.onMouseUp=h.onMouseUp.bind(h),h}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||rF},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var a=this.resizable.offsetWidth,i=this.resizable.offsetHeight,u=this.resizable.style.position;u!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:a,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=u}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,a=function(h){var g;if(typeof r.state[h]>"u"||r.state[h]==="auto")return"auto";if(r.propsSize&&r.propsSize[h]&&(!((g=r.propsSize[h])===null||g===void 0)&&g.toString().endsWith("%"))){if(r.state[h].toString().endsWith("%"))return r.state[h].toString();var p=r.getParentSize(),b=Number(r.state[h].toString().replace("px","")),D=b/p[h]*100;return"".concat(D,"%")}return ap(r.state[h])},i=n&&typeof n.width<"u"&&!this.state.isResizing?ap(n.width):a("width"),u=n&&typeof n.height<"u"&&!this.state.isResizing?ap(n.height):a("height");return{width:i,height:u}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,a=this.parentNode.style.flexWrap;a!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=a),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var a=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof a>"u"||a==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var a=this.props.boundsByDirection,i=this.state.direction,u=a&&Js("left",i),h=a&&Js("top",i),g,p;if(this.props.bounds==="parent"){var b=this.parentNode;b&&(g=u?this.resizableRight-this.parentLeft:b.offsetWidth+(this.parentLeft-this.resizableLeft),p=h?this.resizableBottom-this.parentTop:b.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(g=u?this.resizableRight:this.window.innerWidth-this.resizableLeft,p=h?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(g=u?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),p=h?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return g&&Number.isFinite(g)&&(r=r&&r<g?r:g),p&&Number.isFinite(p)&&(n=n&&n<p?n:p),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var a=this.props.scale||1,i=iF(this.props.resizeRatio||1),u=i[0],h=i[1],g=this.state,p=g.direction,b=g.original,D=this.props,F=D.lockAspectRatio,S=D.lockAspectRatioExtraHeight,R=D.lockAspectRatioExtraWidth,O=b.width,N=b.height,_=S||0,M=R||0;return Js("right",p)&&(O=b.width+(r-b.x)*u/a,F&&(N=(O-M)/this.ratio+_)),Js("left",p)&&(O=b.width-(r-b.x)*u/a,F&&(N=(O-M)/this.ratio+_)),Js("bottom",p)&&(N=b.height+(n-b.y)*h/a,F&&(O=(N-_)*this.ratio+M)),Js("top",p)&&(N=b.height-(n-b.y)*h/a,F&&(O=(N-_)*this.ratio+M)),{newWidth:O,newHeight:N}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,a,i){var u=this.props,h=u.lockAspectRatio,g=u.lockAspectRatioExtraHeight,p=u.lockAspectRatioExtraWidth,b=typeof i.width>"u"?10:i.width,D=typeof a.width>"u"||a.width<0?r:a.width,F=typeof i.height>"u"?10:i.height,S=typeof a.height>"u"||a.height<0?n:a.height,R=g||0,O=p||0;if(h){var N=(F-R)*this.ratio+O,_=(S-R)*this.ratio+O,M=(b-O)/this.ratio+R,U=(D-O)/this.ratio+R,H=Math.max(b,N),q=Math.min(D,_),Q=Math.max(F,M),Y=Math.min(S,U);r=yc(r,H,q),n=yc(n,Q,Y)}else r=yc(r,b,D),n=yc(n,F,S);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var a=n.getBoundingClientRect();this.parentLeft=a.left*r,this.parentTop=a.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left*r,this.targetTop=i.top*r}if(this.resizable){var u=this.resizable.getBoundingClientRect(),h=u.left,g=u.top,p=u.right,b=u.bottom;this.resizableLeft=h*r,this.resizableRight=p*r,this.resizableTop=g*r,this.resizableBottom=b*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var a=0,i=0;if(r.nativeEvent&&nF(r.nativeEvent)?(a=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&xc(r.nativeEvent)&&(a=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var u=this.props.onResizeStart(r,n,this.resizable);if(u===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var h,g=this.window.getComputedStyle(this.resizable);if(g.flexBasis!=="auto"){var p=this.parentNode;if(p){var b=this.window.getComputedStyle(p).flexDirection;this.flexDir=b.startsWith("row")?"row":"column",h=g.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var D={original:{x:a,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Da(Da({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:h};this.setState(D)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&xc(r))try{r.preventDefault(),r.stopPropagation()}catch{}var a=this.props,i=a.maxWidth,u=a.maxHeight,h=a.minWidth,g=a.minHeight,p=xc(r)?r.touches[0].clientX:r.clientX,b=xc(r)?r.touches[0].clientY:r.clientY,D=this.state,F=D.direction,S=D.original,R=D.width,O=D.height,N=this.getParentSize(),_=aF(N,this.window.innerWidth,this.window.innerHeight,i,u,h,g);i=_.maxWidth,u=_.maxHeight,h=_.minWidth,g=_.minHeight;var M=this.calculateNewSizeFromDirection(p,b),U=M.newHeight,H=M.newWidth,q=this.calculateNewMaxFromBoundary(i,u);this.props.snap&&this.props.snap.x&&(H=x0(H,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(U=x0(U,this.props.snap.y,this.props.snapGap));var Q=this.calculateNewSizeFromAspectRatio(H,U,{width:q.maxWidth,height:q.maxHeight},{width:h,height:g});if(H=Q.newWidth,U=Q.newHeight,this.props.grid){var Y=y0(H,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),ie=y0(U,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),ee=this.props.snapGap||0,ve=ee===0||Math.abs(Y-H)<=ee?Y:H,ge=ee===0||Math.abs(ie-U)<=ee?ie:U;H=ve,U=ge}var Ie={width:H-S.width,height:U-S.height};if(this.delta=Ie,R&&typeof R=="string"){if(R.endsWith("%")){var Ae=H/N.width*100;H="".concat(Ae,"%")}else if(R.endsWith("vw")){var Ge=H/this.window.innerWidth*100;H="".concat(Ge,"vw")}else if(R.endsWith("vh")){var Ue=H/this.window.innerHeight*100;H="".concat(Ue,"vh")}}if(O&&typeof O=="string"){if(O.endsWith("%")){var Ae=U/N.height*100;U="".concat(Ae,"%")}else if(O.endsWith("vw")){var Ge=U/this.window.innerWidth*100;U="".concat(Ge,"vw")}else if(O.endsWith("vh")){var Ue=U/this.window.innerHeight*100;U="".concat(Ue,"vh")}}var te={width:this.createSizeForCssProperty(H,"width"),height:this.createSizeForCssProperty(U,"height")};this.flexDir==="row"?te.flexBasis=te.width:this.flexDir==="column"&&(te.flexBasis=te.height);var fe=this.state.width!==te.width,Ea=this.state.height!==te.height,so=this.state.flexBasis!==te.flexBasis,le=fe||Ea||so;le&&Yn.flushSync(function(){n.setState(te)}),this.props.onResize&&le&&this.props.onResize(r,F,this.resizable,Ie)}},t.prototype.onMouseUp=function(r){var n,a,i=this.state,u=i.isResizing,h=i.direction;!u||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(r,h,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(a=this.props.size.height)!==null&&a!==void 0?a:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Da(Da({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,a;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(a=r.height)!==null&&a!==void 0?a:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,a=n.enable,i=n.handleStyles,u=n.handleClasses,h=n.handleWrapperStyle,g=n.handleWrapperClass,p=n.handleComponent;if(!a)return null;var b=Object.keys(a).map(function(D){return a[D]!==!1?m.jsx(eF,{direction:D,onResizeStart:r.onResizeStart,replaceStyles:i&&i[D],className:u&&u[D],children:p&&p[D]?p[D]:null},D):null});return m.jsx("div",{className:g,style:h,children:b})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(u,h){return oF.indexOf(h)!==-1||(u[h]=r.props[h]),u},{}),a=Da(Da(Da({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(a.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return m.jsxs(i,Da({style:a,className:this.props.className},n,{ref:function(u){u&&(r.resizable=u)},children:[this.state.isResizing&&m.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(I.PureComponent);const D0=6,io=-3,lF={position:"absolute",width:`${D0}px`,height:`${D0}px`,background:"#170F4F",display:"block",pointerEvents:"none",boxShadow:"0 2px 8px rgba(23,15,79,0.3)",border:"0.5px solid #CCF1F4"},uF={topLeft:{left:`${io}px`,top:`${io}px`},topRight:{right:`${io}px`,top:`${io}px`},bottomLeft:{left:`${io}px`,bottom:`${io}px`},bottomRight:{right:`${io}px`,bottom:`${io}px`}},cF=({children:e,propKey:t={width:"width",height:"height"}})=>{const{actions:r,connectors:{connect:n}}=mt(),{isSelected:a,isHover:i,nodeWidth:u,nodeHeight:h,name:g}=mt(_=>({isSelected:_.events.selected,isHover:_.events.hovered,nodeWidth:_.data.props.style?.[t.width]||_.data.props[t.width]||200,nodeHeight:_.data.props.style?.[t.height]||_.data.props[t.height]||100,name:_.data.custom?.displayName||_.data.displayName})),{maxWidth:p}=Hr(_=>{const U=_.nodes.ROOT?.data?.props?.style||{},H=U.maxWidth||U.width||1200;return{maxWidth:typeof H=="string"?parseInt(H):H}}),b=I.useRef(null),D=I.useRef(null),F=I.useMemo(()=>{const _=()=>{if(typeof u=="number")return Math.round(u);if(typeof u=="string"){if(u.includes("%")&&p){const U=parseFloat(u)/100;return Math.round(p*U)}return u||200}return 200},M=()=>h==="auto"?"auto":typeof h=="number"?Math.round(h):typeof h=="string"?h.includes("%")?h:h||100:100;return{width:_(),height:M()}},[u,h,p]),[S,R]=I.useState(F),O=I.useCallback(()=>{R(F)},[F]);I.useEffect(()=>{if(!p)return;const _=typeof u=="number"?u:parseFloat(u)||0;if(_>p){const M=p/_,U=Math.floor(_*M);r.setProp(H=>{H.style||(H.style={}),H.style[t.width]=U})}},[p,u,r,t.width]);const N=I.useCallback((_,M)=>{if(!D.current)return F;const{width:U,height:H}=D.current;let q=Math.round(U+_),Q=Math.round(H+M);return p&&(q=Math.min(q,p)),q=Math.max(q,50),Q=Math.max(Q,20),{width:q,height:Q}},[F,p]);return I.useEffect(()=>{O(),r.setCustom(_=>{_.resizable=!0})},[u,h,O,r]),m.jsx(m0,{isHover:i,isSelected:a,name:g||"Component",showIndicator:!0,width:S.width,height:S.height,children:m.jsxs(sF,{ref:_=>{_&&_.resizable&&(b.current=_,n(_.resizable))},enable:{top:a,right:a,bottom:a,left:a,topLeft:a,topRight:a,bottomLeft:a,bottomRight:a},size:S,onResizeStart:_=>{_.preventDefault(),_.stopPropagation();const M=b.current?.resizable;if(!M)return;const U=M.getBoundingClientRect();D.current={width:Math.round(U.width),height:Math.round(U.height)}},onResize:(_,M,U,H)=>{const q=N(H.width,H.height);r.setProp(Q=>{Q.style||(Q.style={}),Q.style[t.width]=q.width,Q.style[t.height]=q.height}),O()},onResizeStop:(_,M,U,H)=>{const q=N(H.width,H.height);r.setProp(Q=>{Q.style||(Q.style={}),Q.style[t.width]=q.width,Q.style[t.height]=q.height}),O()},handleStyles:{topLeft:{display:"block"},topRight:{display:"block"},bottomLeft:{display:"block"},bottomRight:{display:"block"}},children:[e,m.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:99999},children:a&&Object.entries(uF).map(([_,M])=>m.jsx("span",{style:{...lF,...M}},_))})]})})},dF=({render:e})=>{const{id:t,isHover:r,isActive:n,name:a,isResizable:i,nodeWidth:u,nodeHeight:h}=mt(p=>({isHover:p.events.hovered,isActive:p.events.selected,name:p.data.custom?.displayName||p.data.displayName,isResizable:p.data.custom.resizable===!0,nodeWidth:p.data.props.style?.width||p.data.props.width||"min-content",nodeHeight:p.data.props.style?.height||p.data.props.height||"min-content"}));return t===va?m.jsx(m.Fragment,{children:e}):i?m.jsx(cF,{children:e}):m.jsx(m0,{isHover:r,isSelected:n,name:a,width:u,height:h,children:e})};function C0(e,t){return function(){return e.apply(t,arguments)}}const{toString:fF}=Object.prototype,{getPrototypeOf:ip}=Object,{iterator:Dc,toStringTag:E0}=Symbol,Cc=(e=>t=>{const r=fF.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qn=e=>(e=e.toLowerCase(),t=>Cc(t)===e),Ec=e=>t=>typeof t===e,{isArray:Xs}=Array,Ql=Ec("undefined");function $l(e){return e!==null&&!Ql(e)&&e.constructor!==null&&!Ql(e.constructor)&&Wr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F0=qn("ArrayBuffer");function hF(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&F0(e.buffer),t}const pF=Ec("string"),Wr=Ec("function"),S0=Ec("number"),eu=e=>e!==null&&typeof e=="object",gF=e=>e===!0||e===!1,Fc=e=>{if(Cc(e)!=="object")return!1;const t=ip(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(E0 in e)&&!(Dc in e)},mF=e=>{if(!eu(e)||$l(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},vF=qn("Date"),bF=qn("File"),yF=qn("Blob"),xF=qn("FileList"),wF=e=>eu(e)&&Wr(e.pipe),DF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wr(e.append)&&((t=Cc(e))==="formdata"||t==="object"&&Wr(e.toString)&&e.toString()==="[object FormData]"))},CF=qn("URLSearchParams"),[EF,FF,SF,kF]=["ReadableStream","Request","Response","Headers"].map(qn),TF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Xs(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if($l(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),u=i.length;let h;for(n=0;n<u;n++)h=i[n],t.call(null,e[h],h,e)}}function k0(e,t){if($l(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,T0=e=>!Ql(e)&&e!==Yo;function op(){const{caseless:e}=T0(this)&&this||{},t={},r=(n,a)=>{const i=e&&k0(t,a)||a;Fc(t[i])&&Fc(n)?t[i]=op(t[i],n):Fc(n)?t[i]=op({},n):Xs(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&tu(arguments[n],r);return t}const _F=(e,t,r,{allOwnKeys:n}={})=>(tu(t,(a,i)=>{r&&Wr(a)?e[i]=C0(a,r):e[i]=a},{allOwnKeys:n}),e),AF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),NF=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},RF=(e,t,r,n)=>{let a,i,u;const h={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)u=a[i],(!n||n(u,e,t))&&!h[u]&&(t[u]=e[u],h[u]=!0);e=r!==!1&&ip(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},OF=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},BF=e=>{if(!e)return null;if(Xs(e))return e;let t=e.length;if(!S0(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},PF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ip(Uint8Array)),LF=(e,t)=>{const n=(e&&e[Dc]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},IF=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},MF=qn("HTMLFormElement"),zF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),_0=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),HF=qn("RegExp"),A0=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};tu(r,(a,i)=>{let u;(u=t(a,i,e))!==!1&&(n[i]=u||a)}),Object.defineProperties(e,n)},jF=e=>{A0(e,(t,r)=>{if(Wr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Wr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},UF=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Xs(e)?n(e):n(String(e).split(t)),r},WF=()=>{},GF=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function VF(e){return!!(e&&Wr(e.append)&&e[E0]==="FormData"&&e[Dc])}const YF=e=>{const t=new Array(10),r=(n,a)=>{if(eu(n)){if(t.indexOf(n)>=0)return;if($l(n))return n;if(!("toJSON"in n)){t[a]=n;const i=Xs(n)?[]:{};return tu(n,(u,h)=>{const g=r(u,a+1);!Ql(g)&&(i[h]=g)}),t[a]=void 0,i}}return n};return r(e,0)},JF=qn("AsyncFunction"),XF=e=>e&&(eu(e)||Wr(e))&&Wr(e.then)&&Wr(e.catch),N0=((e,t)=>e?setImmediate:t?((r,n)=>(Yo.addEventListener("message",({source:a,data:i})=>{a===Yo&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Yo.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Wr(Yo.postMessage)),ZF=typeof queueMicrotask<"u"?queueMicrotask.bind(Yo):typeof process<"u"&&process.nextTick||N0,$={isArray:Xs,isArrayBuffer:F0,isBuffer:$l,isFormData:DF,isArrayBufferView:hF,isString:pF,isNumber:S0,isBoolean:gF,isObject:eu,isPlainObject:Fc,isEmptyObject:mF,isReadableStream:EF,isRequest:FF,isResponse:SF,isHeaders:kF,isUndefined:Ql,isDate:vF,isFile:bF,isBlob:yF,isRegExp:HF,isFunction:Wr,isStream:wF,isURLSearchParams:CF,isTypedArray:PF,isFileList:xF,forEach:tu,merge:op,extend:_F,trim:TF,stripBOM:AF,inherits:NF,toFlatObject:RF,kindOf:Cc,kindOfTest:qn,endsWith:OF,toArray:BF,forEachEntry:LF,matchAll:IF,isHTMLForm:MF,hasOwnProperty:_0,hasOwnProp:_0,reduceDescriptors:A0,freezeMethods:jF,toObjectSet:UF,toCamelCase:zF,noop:WF,toFiniteNumber:GF,findKey:k0,global:Yo,isContextDefined:T0,isSpecCompliantForm:VF,toJSONObject:YF,isAsyncFn:JF,isThenable:XF,setImmediate:N0,asap:ZF,isIterable:e=>e!=null&&Wr(e[Dc])};function Pe(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}$.inherits(Pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const R0=Pe.prototype,O0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{O0[e]={value:e}}),Object.defineProperties(Pe,O0),Object.defineProperty(R0,"isAxiosError",{value:!0}),Pe.from=(e,t,r,n,a,i)=>{const u=Object.create(R0);return $.toFlatObject(e,u,function(g){return g!==Error.prototype},h=>h!=="isAxiosError"),Pe.call(u,e.message,t,r,n,a),u.cause=e,u.name=e.name,i&&Object.assign(u,i),u};const qF=null;function sp(e){return $.isPlainObject(e)||$.isArray(e)}function B0(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function P0(e,t,r){return e?e.concat(t).map(function(a,i){return a=B0(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function KF(e){return $.isArray(e)&&!e.some(sp)}const QF=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Sc(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,N){return!$.isUndefined(N[O])});const n=r.metaTokens,a=r.visitor||b,i=r.dots,u=r.indexes,g=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(a))throw new TypeError("visitor must be a function");function p(R){if(R===null)return"";if($.isDate(R))return R.toISOString();if($.isBoolean(R))return R.toString();if(!g&&$.isBlob(R))throw new Pe("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(R)||$.isTypedArray(R)?g&&typeof Blob=="function"?new Blob([R]):Buffer.from(R):R}function b(R,O,N){let _=R;if(R&&!N&&typeof R=="object"){if($.endsWith(O,"{}"))O=n?O:O.slice(0,-2),R=JSON.stringify(R);else if($.isArray(R)&&KF(R)||($.isFileList(R)||$.endsWith(O,"[]"))&&(_=$.toArray(R)))return O=B0(O),_.forEach(function(U,H){!($.isUndefined(U)||U===null)&&t.append(u===!0?P0([O],H,i):u===null?O:O+"[]",p(U))}),!1}return sp(R)?!0:(t.append(P0(N,O,i),p(R)),!1)}const D=[],F=Object.assign(QF,{defaultVisitor:b,convertValue:p,isVisitable:sp});function S(R,O){if(!$.isUndefined(R)){if(D.indexOf(R)!==-1)throw Error("Circular reference detected in "+O.join("."));D.push(R),$.forEach(R,function(_,M){(!($.isUndefined(_)||_===null)&&a.call(t,_,$.isString(M)?M.trim():M,O,F))===!0&&S(_,O?O.concat(M):[M])}),D.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return S(e),t}function L0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function lp(e,t){this._pairs=[],e&&Sc(e,this,t)}const I0=lp.prototype;I0.append=function(t,r){this._pairs.push([t,r])},I0.toString=function(t){const r=t?function(n){return t.call(this,n,L0)}:L0;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function $F(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M0(e,t,r){if(!t)return e;const n=r&&r.encode||$F;$.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=$.isURLSearchParams(t)?t.toString():new lp(t,r).toString(n),i){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class z0{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(n){n!==null&&t(n)})}}const H0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eS={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:lp,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},up=typeof window<"u"&&typeof document<"u",cp=typeof navigator=="object"&&navigator||void 0,tS=up&&(!cp||["ReactNative","NativeScript","NS"].indexOf(cp.product)<0),rS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nS=up&&window.location.href||"http://localhost",xr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:up,hasStandardBrowserEnv:tS,hasStandardBrowserWebWorkerEnv:rS,navigator:cp,origin:nS},Symbol.toStringTag,{value:"Module"})),...eS};function aS(e,t){return Sc(e,new xr.classes.URLSearchParams,{visitor:function(r,n,a,i){return xr.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function iS(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oS(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function j0(e){function t(r,n,a,i){let u=r[i++];if(u==="__proto__")return!0;const h=Number.isFinite(+u),g=i>=r.length;return u=!u&&$.isArray(a)?a.length:u,g?($.hasOwnProp(a,u)?a[u]=[a[u],n]:a[u]=n,!h):((!a[u]||!$.isObject(a[u]))&&(a[u]=[]),t(r,n,a[u],i)&&$.isArray(a[u])&&(a[u]=oS(a[u])),!h)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(n,a)=>{t(iS(n),a,r,0)}),r}return null}function sS(e,t,r){if($.isString(e))try{return(0,JSON.parse)(e),$.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ru={transitional:H0,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return a?JSON.stringify(j0(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let h;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return aS(t,this.formSerializer).toString();if((h=$.isFileList(t))||n.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Sc(h?{"files[]":t}:t,g&&new g,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),sS(t)):t}],transformResponse:[function(t){const r=this.transitional||ru.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(n&&!this.responseType||a)){const u=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(h){if(u)throw h.name==="SyntaxError"?Pe.from(h,Pe.ERR_BAD_RESPONSE,this,null,this.response):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{ru.headers[e]={}});const lS=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uS=e=>{const t={};let r,n,a;return e&&e.split(`
|
|
138
|
+
`).forEach(function(u){a=u.indexOf(":"),r=u.substring(0,a).trim().toLowerCase(),n=u.substring(a+1).trim(),!(!r||t[r]&&lS[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},U0=Symbol("internals");function nu(e){return e&&String(e).trim().toLowerCase()}function kc(e){return e===!1||e==null?e:$.isArray(e)?e.map(kc):String(e)}function cS(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const dS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dp(e,t,r,n,a){if($.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!$.isString(t)){if($.isString(n))return t.indexOf(n)!==-1;if($.isRegExp(n))return n.test(t)}}function fS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function hS(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,u){return this[n].call(this,t,a,i,u)},configurable:!0})})}class Gr{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(h,g,p){const b=nu(g);if(!b)throw new Error("header name must be a non-empty string");const D=$.findKey(a,b);(!D||a[D]===void 0||p===!0||p===void 0&&a[D]!==!1)&&(a[D||g]=kc(h))}const u=(h,g)=>$.forEach(h,(p,b)=>i(p,b,g));if($.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if($.isString(t)&&(t=t.trim())&&!dS(t))u(uS(t),r);else if($.isObject(t)&&$.isIterable(t)){let h={},g,p;for(const b of t){if(!$.isArray(b))throw TypeError("Object iterator must return a key-value pair");h[p=b[0]]=(g=h[p])?$.isArray(g)?[...g,b[1]]:[g,b[1]]:b[1]}u(h,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=nu(t),t){const n=$.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return cS(a);if($.isFunction(r))return r.call(this,a,n);if($.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=nu(t),t){const n=$.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||dp(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(u){if(u=nu(u),u){const h=$.findKey(n,u);h&&(!r||dp(n,n[h],h,r))&&(delete n[h],a=!0)}}return $.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||dp(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return $.forEach(this,(a,i)=>{const u=$.findKey(n,i);if(u){r[u]=kc(a),delete r[i];return}const h=t?fS(i):String(i).trim();h!==i&&delete r[i],r[h]=kc(a),n[h]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
139
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[U0]=this[U0]={accessors:{}}).accessors,a=this.prototype;function i(u){const h=nu(u);n[h]||(hS(a,u),n[h]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}Gr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(Gr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),$.freezeMethods(Gr);function fp(e,t){const r=this||ru,n=t||r,a=Gr.from(n.headers);let i=n.data;return $.forEach(e,function(h){i=h.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function W0(e){return!!(e&&e.__CANCEL__)}function Zs(e,t,r){Pe.call(this,e??"canceled",Pe.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(Zs,Pe,{__CANCEL__:!0});function G0(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Pe("Request failed with status code "+r.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function pS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gS(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,u;return t=t!==void 0?t:1e3,function(g){const p=Date.now(),b=n[i];u||(u=p),r[a]=g,n[a]=p;let D=i,F=0;for(;D!==a;)F+=r[D++],D=D%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),p-u<t)return;const S=b&&p-b;return S?Math.round(F*1e3/S):void 0}}function mS(e,t){let r=0,n=1e3/t,a,i;const u=(p,b=Date.now())=>{r=b,a=null,i&&(clearTimeout(i),i=null),e(...p)};return[(...p)=>{const b=Date.now(),D=b-r;D>=n?u(p,b):(a=p,i||(i=setTimeout(()=>{i=null,u(a)},n-D)))},()=>a&&u(a)]}const Tc=(e,t,r=3)=>{let n=0;const a=gS(50,250);return mS(i=>{const u=i.loaded,h=i.lengthComputable?i.total:void 0,g=u-n,p=a(g),b=u<=h;n=u;const D={loaded:u,total:h,progress:h?u/h:void 0,bytes:g,rate:p||void 0,estimated:p&&h&&b?(h-u)/p:void 0,event:i,lengthComputable:h!=null,[t?"download":"upload"]:!0};e(D)},r)},V0=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Y0=e=>(...t)=>$.asap(()=>e(...t)),vS=xr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,xr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(xr.origin),xr.navigator&&/(msie|trident)/i.test(xr.navigator.userAgent)):()=>!0,bS=xr.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const u=[e+"="+encodeURIComponent(t)];$.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),$.isString(n)&&u.push("path="+n),$.isString(a)&&u.push("domain="+a),i===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function J0(e,t,r){let n=!yS(t);return e&&(n||r==!1)?xS(e,t):t}const X0=e=>e instanceof Gr?{...e}:e;function Jo(e,t){t=t||{};const r={};function n(p,b,D,F){return $.isPlainObject(p)&&$.isPlainObject(b)?$.merge.call({caseless:F},p,b):$.isPlainObject(b)?$.merge({},b):$.isArray(b)?b.slice():b}function a(p,b,D,F){if($.isUndefined(b)){if(!$.isUndefined(p))return n(void 0,p,D,F)}else return n(p,b,D,F)}function i(p,b){if(!$.isUndefined(b))return n(void 0,b)}function u(p,b){if($.isUndefined(b)){if(!$.isUndefined(p))return n(void 0,p)}else return n(void 0,b)}function h(p,b,D){if(D in t)return n(p,b);if(D in e)return n(void 0,p)}const g={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:h,headers:(p,b,D)=>a(X0(p),X0(b),D,!0)};return $.forEach(Object.keys({...e,...t}),function(b){const D=g[b]||a,F=D(e[b],t[b],b);$.isUndefined(F)&&D!==h||(r[b]=F)}),r}const Z0=e=>{const t=Jo({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:u,auth:h}=t;t.headers=u=Gr.from(u),t.url=M0(J0(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),h&&u.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):"")));let g;if($.isFormData(r)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((g=u.getContentType())!==!1){const[p,...b]=g?g.split(";").map(D=>D.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...b].join("; "))}}if(xr.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(t)),n||n!==!1&&vS(t.url))){const p=a&&i&&bS.read(i);p&&u.set(a,p)}return t},wS=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const a=Z0(e);let i=a.data;const u=Gr.from(a.headers).normalize();let{responseType:h,onUploadProgress:g,onDownloadProgress:p}=a,b,D,F,S,R;function O(){S&&S(),R&&R(),a.cancelToken&&a.cancelToken.unsubscribe(b),a.signal&&a.signal.removeEventListener("abort",b)}let N=new XMLHttpRequest;N.open(a.method.toUpperCase(),a.url,!0),N.timeout=a.timeout;function _(){if(!N)return;const U=Gr.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),q={data:!h||h==="text"||h==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:U,config:e,request:N};G0(function(Y){r(Y),O()},function(Y){n(Y),O()},q),N=null}"onloadend"in N?N.onloadend=_:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(_)},N.onabort=function(){N&&(n(new Pe("Request aborted",Pe.ECONNABORTED,e,N)),N=null)},N.onerror=function(){n(new Pe("Network Error",Pe.ERR_NETWORK,e,N)),N=null},N.ontimeout=function(){let H=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const q=a.transitional||H0;a.timeoutErrorMessage&&(H=a.timeoutErrorMessage),n(new Pe(H,q.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,N)),N=null},i===void 0&&u.setContentType(null),"setRequestHeader"in N&&$.forEach(u.toJSON(),function(H,q){N.setRequestHeader(q,H)}),$.isUndefined(a.withCredentials)||(N.withCredentials=!!a.withCredentials),h&&h!=="json"&&(N.responseType=a.responseType),p&&([F,R]=Tc(p,!0),N.addEventListener("progress",F)),g&&N.upload&&([D,S]=Tc(g),N.upload.addEventListener("progress",D),N.upload.addEventListener("loadend",S)),(a.cancelToken||a.signal)&&(b=U=>{N&&(n(!U||U.type?new Zs(null,e,N):U),N.abort(),N=null)},a.cancelToken&&a.cancelToken.subscribe(b),a.signal&&(a.signal.aborted?b():a.signal.addEventListener("abort",b)));const M=pS(a.url);if(M&&xr.protocols.indexOf(M)===-1){n(new Pe("Unsupported protocol "+M+":",Pe.ERR_BAD_REQUEST,e));return}N.send(i||null)})},DS=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(p){if(!a){a=!0,h();const b=p instanceof Error?p:this.reason;n.abort(b instanceof Pe?b:new Zs(b instanceof Error?b.message:b))}};let u=t&&setTimeout(()=>{u=null,i(new Pe(`timeout ${t} of ms exceeded`,Pe.ETIMEDOUT))},t);const h=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(i):p.removeEventListener("abort",i)}),e=null)};e.forEach(p=>p.addEventListener("abort",i));const{signal:g}=n;return g.unsubscribe=()=>$.asap(h),g}},CS=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},ES=async function*(e,t){for await(const r of FS(e))yield*CS(r,t)},FS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},q0=(e,t,r,n)=>{const a=ES(e,t);let i=0,u,h=g=>{u||(u=!0,n&&n(g))};return new ReadableStream({async pull(g){try{const{done:p,value:b}=await a.next();if(p){h(),g.close();return}let D=b.byteLength;if(r){let F=i+=D;r(F)}g.enqueue(new Uint8Array(b))}catch(p){throw h(p),p}},cancel(g){return h(g),a.return()}},{highWaterMark:2})},_c=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",K0=_c&&typeof ReadableStream=="function",SS=_c&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Q0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kS=K0&&Q0(()=>{let e=!1;const t=new Request(xr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$0=64*1024,hp=K0&&Q0(()=>$.isReadableStream(new Response("").body)),Ac={stream:hp&&(e=>e.body)};_c&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ac[t]&&(Ac[t]=$.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Pe(`Response type '${t}' is not supported`,Pe.ERR_NOT_SUPPORT,n)})})})(new Response);const TS=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(xr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await SS(e)).byteLength},_S=async(e,t)=>{const r=$.toFiniteNumber(e.getContentLength());return r??TS(t)},pp={http:qF,xhr:wS,fetch:_c&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:u,onDownloadProgress:h,onUploadProgress:g,responseType:p,headers:b,withCredentials:D="same-origin",fetchOptions:F}=Z0(e);p=p?(p+"").toLowerCase():"text";let S=DS([a,i&&i.toAbortSignal()],u),R;const O=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let N;try{if(g&&kS&&r!=="get"&&r!=="head"&&(N=await _S(b,n))!==0){let q=new Request(t,{method:"POST",body:n,duplex:"half"}),Q;if($.isFormData(n)&&(Q=q.headers.get("content-type"))&&b.setContentType(Q),q.body){const[Y,ie]=V0(N,Tc(Y0(g)));n=q0(q.body,$0,Y,ie)}}$.isString(D)||(D=D?"include":"omit");const _="credentials"in Request.prototype;R=new Request(t,{...F,signal:S,method:r.toUpperCase(),headers:b.normalize().toJSON(),body:n,duplex:"half",credentials:_?D:void 0});let M=await fetch(R,F);const U=hp&&(p==="stream"||p==="response");if(hp&&(h||U&&O)){const q={};["status","statusText","headers"].forEach(ee=>{q[ee]=M[ee]});const Q=$.toFiniteNumber(M.headers.get("content-length")),[Y,ie]=h&&V0(Q,Tc(Y0(h),!0))||[];M=new Response(q0(M.body,$0,Y,()=>{ie&&ie(),O&&O()}),q)}p=p||"text";let H=await Ac[$.findKey(Ac,p)||"text"](M,e);return!U&&O&&O(),await new Promise((q,Q)=>{G0(q,Q,{data:H,headers:Gr.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:R})})}catch(_){throw O&&O(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new Pe("Network Error",Pe.ERR_NETWORK,e,R),{cause:_.cause||_}):Pe.from(_,_&&_.code,e,R)}})};$.forEach(pp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ey=e=>`- ${e}`,AS=e=>$.isFunction(e)||e===null||e===!1,ty={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let u;if(n=r,!AS(r)&&(n=pp[(u=String(r)).toLowerCase()],n===void 0))throw new Pe(`Unknown adapter '${u}'`);if(n)break;a[u||"#"+i]=n}if(!n){const i=Object.entries(a).map(([h,g])=>`adapter ${h} `+(g===!1?"is not supported by the environment":"is not available in the build"));let u=t?i.length>1?`since :
|
|
140
|
+
`+i.map(ey).join(`
|
|
141
|
+
`):" "+ey(i[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n},adapters:pp};function gp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zs(null,e)}function ry(e){return gp(e),e.headers=Gr.from(e.headers),e.data=fp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ty.getAdapter(e.adapter||ru.adapter)(e).then(function(n){return gp(e),n.data=fp.call(e,e.transformResponse,n),n.headers=Gr.from(n.headers),n},function(n){return W0(n)||(gp(e),n&&n.response&&(n.response.data=fp.call(e,e.transformResponse,n.response),n.response.headers=Gr.from(n.response.headers))),Promise.reject(n)})}const ny="1.11.0",Nc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ay={};Nc.transitional=function(t,r,n){function a(i,u){return"[Axios v"+ny+"] Transitional option '"+i+"'"+u+(n?". "+n:"")}return(i,u,h)=>{if(t===!1)throw new Pe(a(u," has been removed"+(r?" in "+r:"")),Pe.ERR_DEPRECATED);return r&&!ay[u]&&(ay[u]=!0,console.warn(a(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,u,h):!0}},Nc.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function NS(e,t,r){if(typeof e!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],u=t[i];if(u){const h=e[i],g=h===void 0||u(h,i,e);if(g!==!0)throw new Pe("option "+i+" must be "+g,Pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Pe("Unknown option "+i,Pe.ERR_BAD_OPTION)}}const Rc={assertOptions:NS,validators:Nc},Ca=Rc.validators;class Xo{constructor(t){this.defaults=t||{},this.interceptors={request:new z0,response:new z0}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
142
|
+
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Jo(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&Rc.assertOptions(n,{silentJSONParsing:Ca.transitional(Ca.boolean),forcedJSONParsing:Ca.transitional(Ca.boolean),clarifyTimeoutError:Ca.transitional(Ca.boolean)},!1),a!=null&&($.isFunction(a)?r.paramsSerializer={serialize:a}:Rc.assertOptions(a,{encode:Ca.function,serialize:Ca.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Rc.assertOptions(r,{baseUrl:Ca.spelling("baseURL"),withXsrfToken:Ca.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=i&&$.merge(i.common,i[r.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],R=>{delete i[R]}),r.headers=Gr.concat(u,i);const h=[];let g=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(r)===!1||(g=g&&O.synchronous,h.unshift(O.fulfilled,O.rejected))});const p=[];this.interceptors.response.forEach(function(O){p.push(O.fulfilled,O.rejected)});let b,D=0,F;if(!g){const R=[ry.bind(this),void 0];for(R.unshift(...h),R.push(...p),F=R.length,b=Promise.resolve(r);D<F;)b=b.then(R[D++],R[D++]);return b}F=h.length;let S=r;for(D=0;D<F;){const R=h[D++],O=h[D++];try{S=R(S)}catch(N){O.call(this,N);break}}try{b=ry.call(this,S)}catch(R){return Promise.reject(R)}for(D=0,F=p.length;D<F;)b=b.then(p[D++],p[D++]);return b}getUri(t){t=Jo(this.defaults,t);const r=J0(t.baseURL,t.url,t.allowAbsoluteUrls);return M0(r,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){Xo.prototype[t]=function(r,n){return this.request(Jo(n||{},{method:t,url:r,data:(n||{}).data}))}}),$.forEach(["post","put","patch"],function(t){function r(n){return function(i,u,h){return this.request(Jo(h||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:u}))}}Xo.prototype[t]=r(),Xo.prototype[t+"Form"]=r(!0)});class mp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const u=new Promise(h=>{n.subscribe(h),i=h}).then(a);return u.cancel=function(){n.unsubscribe(i)},u},t(function(i,u,h){n.reason||(n.reason=new Zs(i,u,h),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new mp(function(a){t=a}),cancel:t}}}function RS(e){return function(r){return e.apply(null,r)}}function OS(e){return $.isObject(e)&&e.isAxiosError===!0}const vp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vp).forEach(([e,t])=>{vp[t]=e});function iy(e){const t=new Xo(e),r=C0(Xo.prototype.request,t);return $.extend(r,Xo.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return iy(Jo(e,a))},r}const jt=iy(ru);jt.Axios=Xo,jt.CanceledError=Zs,jt.CancelToken=mp,jt.isCancel=W0,jt.VERSION=ny,jt.toFormData=Sc,jt.AxiosError=Pe,jt.Cancel=jt.CanceledError,jt.all=function(t){return Promise.all(t)},jt.spread=RS,jt.isAxiosError=OS,jt.mergeConfig=Jo,jt.AxiosHeaders=Gr,jt.formToJSON=e=>j0($.isHTMLForm(e)?new FormData(e):e),jt.getAdapter=ty.getAdapter,jt.HttpStatusCode=vp,jt.default=jt;function au(e,t,r,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function BS(e,t,r,n,a){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}typeof SuppressedError=="function"&&SuppressedError;var oo;class iu{constructor(t,r,n,a=!1,i){oo.set(this,void 0),this._template=Object.freeze({...t}),this._engine=r,this._isModified=a,this._originalTemplate=i||{...t},BS(this,oo,n)}get id(){return this._template._id}get slug(){return this._template.slug}get title(){return this._template.title}get format(){return this._template.format}get content(){return this._template.content}get tenant(){return this._template.tenant}get createdAt(){return new Date(this._template.createdAt)}get updatedAt(){return new Date(this._template.updatedAt)}get isModified(){return this._isModified}render(t={},r={}){return this._engine.render(this._template.content,t,r)}update(t){const r={...this._template,...t};if(!this._hasChangesFromOriginal(r))return new iu(r,this._engine,au(this,oo,"f"),!1,this._originalTemplate);const n={...r,updatedAt:new Date().toISOString()};return new iu(n,this._engine,au(this,oo,"f"),!0,this._originalTemplate)}async save(){if(!au(this,oo,"f"))throw new Error("Cannot save template: SDK instance not available. Template must be created through TemplatingSdk.");if(!this.isModified)return this;this._validate();try{const t=await au(this,oo,"f").update(this.id,{title:this.title,format:this.format,content:this.content,slug:this.slug});return Object.assign(this,new iu(t._template,t._engine,au(this,oo,"f"),!1,t._template)),this}catch(t){throw new Error(`Failed to save template: ${t instanceof Error?t.message:"Unknown error"}`)}}_validate(){if(this.title!==void 0&&(!this.title||this.title.trim().length===0))throw new Error("Template title cannot be empty");if(this.format!==void 0&&(!this.format||this.format.trim().length===0))throw new Error("Template format cannot be empty");if(this.slug!==void 0&&this.slug!==null&&!/^[a-z0-9-]+$/.test(this.slug))throw new Error("Template slug must contain only lowercase letters, numbers, and hyphens")}_hasChangesFromOriginal(t){return["title","content","format","slug"].some(n=>this._originalTemplate[n]!==t[n])}}oo=new WeakMap;class oy{}class oi extends Error{constructor(t,r,n){super(t),this.statusCode=r,this.metadata=n,this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}toJSON(){return{name:this.name,message:this.message,code:this.code,statusCode:this.statusCode,metadata:this.metadata,stack:this.stack}}}class PS extends oi{constructor(t,r,n,a){super(`Template render failed: ${r.message}`,void 0,{format:t,templateContent:n,placeholders:a,originalError:r.message}),this.code="TEMPLATE_RENDER_ERROR"}}class LS extends oi{constructor(t,r){super(`Unsupported template format: ${t}. Supported formats: ${r.join(", ")}`,void 0,{format:t,supportedFormats:r}),this.code="UNSUPPORTED_FORMAT_ERROR"}}class Oc extends oi{constructor(t,r,n){super(t,r,{response:n}),this.response=n,this.code="TEMPLATING_ERROR"}}class IS extends oi{constructor(t){super(`Template not found: ${t}`,404,{identifier:t}),this.code="TEMPLATE_NOT_FOUND"}}class sy extends oi{constructor(t,r){super(t,400,{validationErrors:r}),this.code="TEMPLATE_VALIDATION_ERROR"}}class MS extends oi{constructor(t="Authentication failed"){super(t,401),this.code="AUTHENTICATION_ERROR"}}class zS extends oi{constructor(t="Access denied"){super(t,403),this.code="AUTHORIZATION_ERROR"}}class bp extends oi{constructor(t,r){super(t,void 0,{originalError:r?.message}),this.code="NETWORK_ERROR"}}class ly extends oi{constructor(t){super(`Request timeout after ${t}ms`),this.code="TIMEOUT_ERROR"}}class HS{static handleAxiosError(t){if(t.code==="ECONNABORTED")throw new ly(parseInt(t.config?.timeout?.toString()||"0"));if(!t.response)throw new bp(t.message,t);const{status:r,data:n}=t.response,a=n?.metadata?.message||t.message;switch(r){case 400:throw n?.metadata?.error?new sy(a,n.metadata.error):new Oc(a,r,n);case 401:throw new MS(a);case 403:throw new zS(a);case 404:throw new IS(jS(t,a));case 422:throw new sy(a,n?.metadata?.error);case 500:case 502:case 503:case 504:throw new bp(a,t);default:throw new Oc(a,r,n)}}static isTemplatingError(t){return t instanceof Oc}static isRetryableError(t){return t instanceof bp||t instanceof ly}static getErrorDetails(t){return t instanceof Oc?{name:t.name,code:t.code,message:t.message,statusCode:t.statusCode,metadata:t.metadata}:t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:{error:String(t)}}}function jS(e,t){const r=e.config?.url?.match(/\/templates\/([^\/]+)/);if(r)return r[1];const n=t.match(/Template not found: (.+)/);return n?n[1]:"unknown"}class US extends oy{constructor(){super(),this.instance=Sy.create(),this.setupDefaultHelpers()}render(t,r={},n={}){try{return this.instance.compile(t)(r)}catch(a){throw new PS("handlebars",a,t,r)}}setupDefaultHelpers(){this.instance.registerHelper("formatDate",function(t,r){const n=new Date(t);if(isNaN(n.getTime()))return"";switch(r){case"short":return n.toLocaleDateString();case"long":return n.toLocaleDateString("pt-BR",{year:"numeric",month:"long",day:"numeric"});case"time":return n.toLocaleTimeString();case"iso":return n.toISOString();default:return n.toLocaleDateString()}}),this.instance.registerHelper("currency",function(t,r="BRL"){return typeof t!="number"?"":new Intl.NumberFormat("pt-BR",{style:"currency",currency:r}).format(t)}),this.instance.registerHelper("capitalize",function(t){return typeof t!="string"?"":t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}),this.instance.registerHelper("eq",function(t,r){return t===r}),this.instance.registerHelper("ne",function(t,r){return t!==r}),this.instance.registerHelper("gt",function(t,r){return t>r}),this.instance.registerHelper("lt",function(t,r){return t<r}),this.instance.registerHelper("default",function(t,r){return t||r})}}class WS extends oy{render(t,r={},n={}){return t}}class yp{static getEngine(t){const r=this.formatToEngineMap[t.format.toLowerCase()]||"raw",n=this.engines.get(r);if(!n)throw new LS(t.format,Object.keys(this.formatToEngineMap));return n}static getAvailableEngines(){return Array.from(this.engines.keys())}}yp.engines=new Map([["handlebars",new US],["raw",new WS]]),yp.formatToEngineMap={html:"handlebars",text:"raw"};class Bc{static create(t,r){const n=yp.getEngine(t);return new iu(t,n,r)}}class GS{constructor(t,r,n={}){this.config={baseUrl:t.replace(/\/$/,""),tenantId:r,timeout:n.timeout||3e4,headers:n.headers||{}},this.client=jt.create({baseURL:this.config.baseUrl,timeout:this.config.timeout,headers:{"Content-Type":"application/json","x-tenant":this.config.tenantId,...this.config.headers}}),this.client.interceptors.response.use(a=>a,a=>{HS.handleAxiosError(a)})}async get(t){const r=await this.client.get(`/v1/templates/${t}`);return Bc.create(r.data.payload,this)}async getAll(){return(await this.client.get("/v1/templates")).data.payload.map(r=>Bc.create(r,this))}async create(t){const r=await this.client.post("/v1/templates",t);return Bc.create(r.data.payload,this)}async update(t,r){const n=await this.client.put(`/v1/templates/${t}`,r);return Bc.create(n.data.payload,this)}async delete(t){return await this.client.delete(`/v1/templates/${t}`),!0}async healthCheck(){try{return(await this.client.get("/healthcheck")).status===200}catch{return!1}}updateConfig(t){this.config={...this.config,...t},this.client.defaults.baseURL=this.config.baseUrl,this.client.defaults.timeout=this.config.timeout,this.client.defaults.headers["x-tenant"]=this.config.tenantId,this.config.headers&&Object.assign(this.client.defaults.headers,this.config.headers)}getConfig(){return{...this.config}}}const VS=({templateId:e,baseUrl:t="http://localhost:3000",tenant:r="demo",children:n})=>{const[a,i]=I.useState(!1),[u,h]=I.useState({}),g=I.useMemo(()=>(t||console.warn("[TemplateProvider] baseUrl was not provided"),r||console.warn("[TemplateProvider] tenant was not provided"),new GS(t,r)),[t,r]),p=I.useCallback(async S=>{if(S)try{i(!0);const R=await g.get(S);h(R)}finally{i(!1)}},[g]),b=I.useCallback(S=>h(R=>R?.update?.(S)),[h]),D=I.useCallback(async()=>{if(!u?.id){console.warn("No template loaded to save");return}try{i(!0);const S=await u.save();h(S)}catch(S){console.error("Error saving template:",S)}finally{i(!1)}},[u]);I.useEffect(()=>{e&&p(e)},[e,p]);const F=I.useMemo(()=>({loading:a,template:u,loadTemplate:p,updateTemplate:b,saveTemplate:D}),[a,u,p,b]);return m.jsx(l0.Provider,{value:F,children:n})},uy={desktop:{width:1200,height:800,name:"Desktop"},tablet:{width:768,height:1024,name:"Tablet"},mobile:{width:375,height:667,name:"Mobile"}},YS=({canvasSize:e,hasCanvasContent:t,onZoomChange:r,placeholderData:n={}})=>{const{template:a}=u0(),[i,u]=I.useState(100),[h,g]=I.useState(""),p=I.useMemo(()=>uy[e]||uy.desktop,[e]);return I.useEffect(()=>{const b=()=>{const D=window.innerWidth-100,F=window.innerHeight-200,S=D/p.width,R=F/p.height,O=Math.min(S,R,1)*100,N=Math.max(25,Math.min(100,O));u(N),r&&r(N)};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[e,p.width,p.height,r]),I.useEffect(()=>{if(!t){g("");return}try{if(a&&a.render){const b=a.render(n);g(b)}else g("")}catch(b){console.error("Error rendering template:",b),g("")}},[t,n,a]),m.jsx("div",{className:"relative flex flex-1 items-center justify-center overflow-auto bg-[#F5F5F7] p-8",children:m.jsx("div",{className:"flex h-full w-full items-center justify-center",children:m.jsxs("div",{className:"relative overflow-hidden rounded-lg border border-[#E8E7EE] bg-white shadow-lg",style:{width:p.width*(i/100),height:p.height*(i/100),maxWidth:"100%",maxHeight:"100%"},children:[e==="mobile"&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"absolute inset-x-0 top-0 z-10 flex h-6 items-center justify-center rounded-t-lg bg-black",children:m.jsx("div",{className:"h-1 w-12 rounded-full bg-gray-600"})}),m.jsx("div",{className:"absolute inset-x-0 bottom-1 z-10 flex justify-center",children:m.jsx("div",{className:"h-1 w-16 rounded-full bg-black opacity-30"})})]}),m.jsxs("div",{className:"h-full w-full overflow-hidden",style:{transform:`scale(${i/100})`,transformOrigin:"top left",width:`${100/(i/100)}%`,height:`${100/(i/100)}%`},children:[!t&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50",children:m.jsxs("div",{className:"p-8 text-center",children:[m.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-lg border-2 border-dashed border-[#E8E7EE] bg-[#F5F5F7]",children:m.jsx("span",{className:"text-2xl text-[#A29FB9]",children:"📄"})}),m.jsx("h3",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"No content to preview"}),m.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Add components to see the preview"})]})}),m.jsx("div",{className:"h-full min-h-screen bg-white",style:{overflow:"visible",position:"relative",minHeight:"100%"},dangerouslySetInnerHTML:{__html:h}})]})]})})})},cy={desktop:{width:1200,height:800,name:"Desktop",icon:ce.FiMonitor},tablet:{width:768,height:1024,name:"Tablet",icon:ce.FiTablet},mobile:{width:375,height:667,name:"Mobile",icon:ce.FiSmartphone}},JS=({canvasSize:e,onCanvasSizeChange:t,onExitPreview:r,onDownloadHTML:n,onOpenInNewTab:a,showPlayground:i=!1,onTogglePlayground:u})=>{const[h,g]=I.useState(!1),[p,b]=I.useState(100);return m.jsx("div",{className:"border-b border-[#E8E7EE] bg-white px-6 py-3",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsxs("button",{onClick:r,className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-[#170F4F] transition-colors hover:bg-[#F5F5F7]",children:[m.jsx(ce.FiX,{className:"h-4 w-4"}),"Exit Preview"]}),m.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ce.FiEye,{className:"h-4 w-4 text-[#00BAC7]"}),m.jsx("span",{className:"text-sm font-medium text-[#170F4F]",children:"Preview Mode"})]})]}),m.jsx("div",{className:"flex items-center gap-2",children:Object.keys(cy).map(D=>{const F=cy[D],S=F.icon,R=e===D;return m.jsxs("button",{onClick:()=>t(D),className:`flex items-center gap-2 px-3 py-1.5 text-sm font-medium transition-all duration-200 ${R?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:F.name,children:[m.jsx(S,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline",children:F.name})]},D)})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("div",{className:"flex items-center overflow-hidden border border-[#E8E7EE]",children:[m.jsx("button",{onClick:()=>b(Math.max(25,p-25)),className:"px-3 py-1.5 text-[#170F4F] transition-colors hover:bg-[#F5F5F7] disabled:cursor-not-allowed disabled:opacity-50",disabled:p<=25,children:"−"}),m.jsxs("div",{className:"min-w-[60px] border-x border-[#E8E7EE] bg-[#F5F5F7] px-3 py-1.5 text-center text-sm font-medium text-[#170F4F]",children:[p,"%"]}),m.jsx("button",{onClick:()=>b(Math.min(200,p+25)),className:"px-3 py-1.5 text-[#170F4F] transition-colors hover:bg-[#F5F5F7] disabled:cursor-not-allowed disabled:opacity-50",disabled:p>=200,children:"+"})]}),m.jsx("button",{onClick:()=>g(!h),className:`p-1.5 transition-all duration-200 ${h?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:"Toggle Rulers",children:m.jsx(ce.FiEyeOff,{className:"h-4 w-4"})}),m.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),u&&m.jsxs("button",{onClick:u,className:`flex items-center gap-2 px-3 py-1.5 text-sm font-medium transition-all duration-200 ${i?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:"Toggle Data Playground",children:[m.jsx(ce.FiDatabase,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline",children:"Data"})]}),m.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),m.jsxs("button",{onClick:n,className:"flex items-center gap-2 border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium text-[#170F4F] transition-colors hover:bg-[#F5F5F7]",title:"Download HTML",children:[m.jsx(ce.FiDownload,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline",children:"Download"})]}),m.jsxs("button",{onClick:a,className:"flex items-center gap-2 bg-[#170F4F] px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-[#00BAC7]",title:"Open in New Tab",children:[m.jsx(ce.FiExternalLink,{className:"h-4 w-4"}),m.jsx("span",{className:"hidden sm:inline",children:"Open"})]})]})]})})},XS=350,ZS=700,qS=450,KS=({placeholders:e,placeholderSchema:t,onPlaceholdersChange:r,onSchemaChange:n,width:a=qS,onWidthChange:i})=>{const[u,h]=I.useState({type:"text"}),[g,p]=I.useState(!1),[b,D]=I.useState(!1),F=I.useRef(null),S=I.useRef(0),R=I.useRef(0),O=I.useCallback(Y=>{D(!0),S.current=Y.clientX,R.current=a,Y.preventDefault()},[a]),N=I.useCallback(Y=>{if(!b)return;const ie=S.current-Y.clientX,ee=Math.min(ZS,Math.max(XS,R.current+ie));i&&i(ee)},[b,i]),_=I.useCallback(()=>{D(!1)},[]);I.useEffect(()=>{if(b)return document.addEventListener("mousemove",N),document.addEventListener("mouseup",_),document.body.style.cursor="col-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",_),document.body.style.cursor="",document.body.style.userSelect=""}},[b,N,_]);const M=(Y,ie)=>{r({...e,[Y]:ie})},U=()=>{if(!u.key||!u.label||!u.type)return;const Y={key:u.key,label:u.label,type:u.type,value:u.value||H(u.type),options:u.options};n([...t,Y]),r({...e,[Y.key]:Y.value||""}),h({type:"text"}),p(!1)},H=Y=>{switch(Y){case"text":return"Sample text";case"number":return 0;case"boolean":return!1;case"date":return new Date().toISOString().split("T")[0];case"enum":return"";default:return""}},q=Y=>{n(t.filter(ee=>ee.key!==Y));const ie={...e};delete ie[Y],r(ie)},Q=Y=>{const ie=e[Y.key]||Y.value||"";switch(Y.type){case"text":return m.jsx("input",{type:"text",value:String(ie),onChange:ee=>M(Y.key,ee.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",placeholder:"Enter text here..."});case"number":return m.jsx("input",{type:"number",value:Number(ie),onChange:ee=>M(Y.key,parseFloat(ee.target.value)||0),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",placeholder:"Enter a number..."});case"boolean":return m.jsxs("div",{className:"flex items-center gap-4 rounded-none border border-[#E8E7EE] bg-white p-3",children:[m.jsxs("label",{className:"flex cursor-pointer items-center",children:[m.jsx("input",{type:"radio",name:`${Y.key}-bool`,checked:!!ie,onChange:()=>M(Y.key,!0),className:"h-4 w-4 border-[#E8E7EE] text-[#170F4F] focus:ring-2 focus:ring-[#170F4F]"}),m.jsx("span",{className:"ml-2 text-sm font-medium text-[#170F4F]",children:"Yes"})]}),m.jsxs("label",{className:"flex cursor-pointer items-center",children:[m.jsx("input",{type:"radio",name:`${Y.key}-bool`,checked:!ie,onChange:()=>M(Y.key,!1),className:"h-4 w-4 border-[#E8E7EE] text-[#170F4F] focus:ring-2 focus:ring-[#170F4F]"}),m.jsx("span",{className:"ml-2 text-sm font-medium text-[#170F4F]",children:"No"})]})]});case"enum":return m.jsxs("select",{value:String(ie),onChange:ee=>M(Y.key,ee.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",children:[m.jsx("option",{value:"",children:"Choose an option..."}),Y.options?.map((ee,ve)=>typeof ee=="string"?m.jsx("option",{value:ee,children:ee},ve):m.jsx("option",{value:String(ee.value),children:ee.label},ve))]});case"date":return m.jsx("input",{type:"date",value:String(ie),onChange:ee=>M(Y.key,ee.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]"});default:return null}};return m.jsxs("div",{className:"relative flex animate-slide-in-right flex-col border-l border-[#E8E7EE] bg-white transition-all duration-300 ease-in-out",style:{width:`${a}px`},children:[m.jsx("div",{ref:F,className:`absolute bottom-0 left-0 top-0 w-1 cursor-col-resize transition-colors duration-200 hover:bg-[#00BAC7] ${b?"bg-[#00BAC7]":"bg-transparent"} group`,onMouseDown:O,children:m.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform opacity-0 transition-opacity group-hover:opacity-100",children:m.jsx(ce.FiMoreVertical,{className:"h-3 w-3 text-[#A29FB9]"})})}),m.jsxs("div",{className:"border-b border-[#E8E7EE] bg-gradient-to-r from-[#F9F8FE] to-white p-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"mb-1 text-lg font-semibold text-[#170F4F]",children:"Placeholders"}),m.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Customize the content that appears in your template"})]}),m.jsxs("button",{onClick:()=>p(!0),className:"flex items-center gap-2 rounded-none bg-[#170F4F] px-4 py-2 text-sm font-medium text-white shadow-sm transition-all duration-200 hover:bg-[#00BAC7] hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-[#170F4F] disabled:hover:shadow-sm",disabled:g,children:[m.jsx(ce.FiPlus,{className:"h-4 w-4"}),"Add"]})]}),g&&m.jsxs("div",{className:"mt-4 animate-fade-in rounded-none border border-[#E8E7EE] bg-white p-4 shadow-sm",children:[m.jsx("h4",{className:"mb-4 text-sm font-semibold text-[#170F4F]",children:"Add New Placeholder"}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-xs font-medium text-[#170F4F]",children:"Field Name"}),m.jsx("input",{type:"text",placeholder:"e.g., Customer Name",value:u.label||"",onChange:Y=>{const ie=Y.target.value,ee=ie.replace(/[^a-zA-Z0-9\s]/g,"").replace(/\s+/g,"_").replace(/^_+|_+$/g,"");h({...u,label:ie,key:ee})},className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"mb-2 block text-xs font-medium text-[#170F4F]",children:"Data Type"}),m.jsxs("select",{value:u.type||"text",onChange:Y=>h({...u,type:Y.target.value}),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",children:[m.jsx("option",{value:"text",children:"Text"}),m.jsx("option",{value:"number",children:"Number"}),m.jsx("option",{value:"boolean",children:"True/False"}),m.jsx("option",{value:"enum",children:"Multiple Choice"}),m.jsx("option",{value:"date",children:"Date"})]})]})]}),m.jsxs("div",{className:"mt-6 flex gap-2 border-t border-[#E8E7EE] pt-4",children:[m.jsx("button",{onClick:U,disabled:!u.key||!u.label,className:"rounded-none bg-[#170F4F] px-4 py-2 text-sm font-medium text-white shadow-sm transition-colors duration-200 hover:bg-[#00BAC7] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-[#170F4F]",children:"Confirm"}),m.jsx("button",{onClick:()=>p(!1),className:"rounded-none border border-[#E8E7EE] px-4 py-2 text-sm font-medium text-[#A29FB9] transition-colors duration-200 hover:bg-[#F9F8FE] hover:text-[#170F4F]",children:"Cancel"})]})]})]}),m.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:t.length===0?m.jsxs("div",{className:"py-12 text-center text-[#A29FB9]",children:[m.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-none border border-[#E8E7EE] bg-[#F9F8FE]",children:m.jsx(ce.FiPlus,{className:"h-8 w-8 text-[#170F4F]"})}),m.jsx("h4",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"No data fields yet"}),m.jsx("p",{className:"mb-4 text-sm",children:"Add data fields to make your template dynamic"}),m.jsx("button",{onClick:()=>p(!0),className:"text-sm font-medium text-[#170F4F] transition-colors duration-200 hover:text-[#00BAC7]",children:"Add your first field"})]}):m.jsx("div",{className:"space-y-4",children:t.map(Y=>m.jsxs("div",{className:"rounded-none border border-[#E8E7EE] bg-white p-4 transition-all duration-200 hover:border-[#170F4F] hover:shadow-sm",children:[m.jsxs("div",{className:"mb-3 flex items-start justify-between",children:[m.jsxs("div",{className:"flex-1",children:[m.jsx("h4",{className:"mb-1 text-sm font-semibold text-[#170F4F]",children:Y.label}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"inline-flex items-center rounded-none border border-[#E8E7EE] bg-[#F9F8FE] px-2 py-1 text-xs font-medium text-[#170F4F]",children:Y.type==="boolean"?"True/False":Y.type==="enum"?"Multiple Choice":Y.type.charAt(0).toUpperCase()+Y.type.slice(1)}),m.jsx("span",{className:"font-mono text-xs text-[#A29FB9]",children:Y.key})]})]}),m.jsx("button",{onClick:()=>q(Y.key),className:"rounded-none p-1 text-[#A29FB9] transition-colors duration-200 hover:bg-red-50 hover:text-red-500",title:"Remove field",children:m.jsx(ce.FiTrash2,{className:"h-4 w-4"})})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("label",{className:"block text-xs font-medium text-[#170F4F]",children:"Current Value:"}),m.jsx("div",{className:"w-full",children:Q(Y)})]})]},Y.key))})})]})};function QS(e){let t=`<!DOCTYPE html>
|
|
244
143
|
<html lang="en">
|
|
245
144
|
<head>
|
|
246
145
|
<meta charset="UTF-8">
|
|
@@ -269,4 +168,4 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
269
168
|
${e}
|
|
270
169
|
</div>
|
|
271
170
|
</body>
|
|
272
|
-
</html>`;t=t.replace(/\s+/g," ").replace(/>\s+</g,"><").trim();const r=new Blob([t],{type:"text/html"}),n=URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.download="bolttech-page.html",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)}const gS=({hasChildren:e})=>{const{device:t}=gd();return e?null:w.jsx("div",{className:`pointer-events-none absolute inset-0 left-auto right-auto z-10 flex items-center justify-center ${t==="mobile"?"w-[10%]":"w-[20%]"}`,children:w.jsxs("div",{className:"mx-auto p-6 text-center",children:[w.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center border border-[#170F4F] bg-[#E8E7EE]",children:w.jsx("span",{className:"text-2xl text-[#170F4F]",children:"📄"})}),w.jsx("h3",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"Start building your page"}),w.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Drag components from the sidebar to create your page layout."})]})})},mS=({hasCanvasContent:e,showCodePanel:t})=>w.jsxs("div",{className:`${t?"w-1/2":"w-full"} mx-auto flex h-full flex-1 items-start justify-center overflow-scroll bg-gradient-to-br from-gray-100 to-gray-200 p-6 transition-all duration-300`,style:{maxHeight:"calc(100vh - 72px)"},children:[w.jsx(gS,{hasChildren:e}),w.jsx(gD,{children:w.jsx(kf,{canvas:!0,id:"canvas",is:"div","data-cy":"canvas",className:"relative flex-1 border border-gray-300 bg-white shadow-lg",style:{zIndex:1,minHeight:"85vh",height:"min-content",maxWidth:Uy.desktop.width,transition:"max-width 0.2s"}})})]}),vS=({canvasSize:e,showCodePanel:t,onPreviewModeToggle:r,onCanvasSizeChange:n,onCodePanelToggle:i,templateName:c,setTemplateName:f})=>{const[g,b]=L.useState(!1),m=L.useRef(null);L.useEffect(()=>{g&&m.current&&(m.current.focus(),m.current.select())},[g]);const v=()=>b(!1),E=A=>{A.key==="Enter"&&b(!1)};return w.jsx("div",{className:"max-h-[72px] border-b border-[#E8E7EE] bg-white px-6 py-3",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsx("div",{className:"flex min-w-0 items-center gap-3",children:w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("div",{className:"flex h-8 w-8 items-center justify-center bg-[#170F4F]",children:w.jsx("span",{className:"text-sm font-bold text-white",children:"B"})}),w.jsxs("div",{className:"",children:[g?w.jsx("input",{ref:m,className:"truncate border-none bg-transparent px-1 text-lg font-semibold text-[#170F4F] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",style:{minWidth:80,maxWidth:300},value:c,onChange:A=>f(A.target.value),onBlur:v,onKeyDown:E,placeholder:"Untitled","aria-label":"Template name"}):w.jsx("h1",{className:"cursor-pointer truncate text-lg font-semibold text-[#170F4F]",style:{minWidth:80,maxWidth:300},title:"Double click to edit",onDoubleClick:()=>b(!0),children:c||"Untitled"}),w.jsxs("p",{className:`flex items-center gap-2 truncate text-xs text-[#A29FB9] ${g?"pt-2":""}`,children:[w.jsx("span",{className:"rounded bg-[#F3F2F7] px-2 py-0.5 text-[10px] text-[#A29FB9]",title:"Template ID",children:"ID: 2af28e2c-e81a-4dde-bfd4-7d7567574b6d"}),w.jsx("span",{className:"ml-1",children:"• unsaved"})]})]})]})}),w.jsx("div",{className:"flex flex-1 justify-center",children:w.jsxs("div",{className:"flex items-center gap-1",children:[w.jsx("button",{className:`border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium transition-all duration-200 ${e==="desktop"?"bg-[#170F4F] text-white":"text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,onClick:()=>n("desktop"),children:"Desktop"}),w.jsx("button",{className:`border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium transition-all duration-200 ${e==="tablet"?"bg-[#170F4F] text-white":"text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,onClick:()=>n("tablet"),children:"Tablet"}),w.jsx("button",{className:`border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium transition-all duration-200 ${e==="mobile"?"bg-[#170F4F] text-white":"text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,onClick:()=>n("mobile"),children:"Mobile"})]})}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsxs("button",{className:`flex items-center gap-2 border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium transition-all duration-200 ${t?"bg-[#170F4F] text-white":"text-[#170F4F] hover:border-[#00BAC7] hover:bg-[#CCF1F4]"}`,onClick:i,title:"Toggle Code Editor",children:[w.jsx(Te.FiCode,{size:14}),"Code"]}),w.jsx("button",{onClick:r,className:"border border-[#E8E7EE] bg-[#170F4F] px-4 py-1.5 text-sm font-medium text-white transition-all duration-200 hover:border-[#00BAC7] hover:bg-[#00BAC7]",children:"Preview"})]})]})})},bS=L.lazy(()=>Promise.resolve().then(()=>NS).then(e=>({default:e.DataSourceModal}))),yS=({showCodePanel:e=!1,onPreviewToggle:t,onCodePanelToggle:r,codePanelChildren:n})=>{UF();const i=gd(),[c,f]=L.useState(!1),[g,b]=L.useState(""),m=()=>{r?.()},v=()=>{const F=i.getHtml();sw(F)},E=()=>{f(!0)},A=()=>{};return w.jsxs("div",{className:"flex h-screen",children:[!e&&w.jsx(pS,{onPreviewMode:t||(()=>{}),onExportHTML:v,onViewCode:m,onDataSource:E}),w.jsxs("div",{className:"flex flex-1 flex-col",children:[w.jsx(vS,{canvasSize:i.device,showCodePanel:e,onPreviewModeToggle:t||(()=>{}),onCanvasSizeChange:i.setDevice,onCodePanelToggle:r||(()=>{}),templateName:g,setTemplateName:b}),w.jsxs("div",{className:`flex w-full flex-1 overflow-visible ${e?"flex-row":"flex-col"}`,children:[e?n:null,w.jsx(mS,{canvasSize:i.device,hasCanvasContent:i.isEmpty,showCodePanel:e})]})]}),!e&&w.jsx(oS,{}),c&&w.jsx(L.Suspense,{fallback:w.jsx("div",{children:"Loading..."}),children:w.jsx(bS,{isOpen:c,onClose:()=>f(!1),onDataImport:A})})]})},wS=({render:e})=>{const{id:t,isHover:r,isActive:n,name:i,isResizable:c,nodeWidth:f,nodeHeight:g}=ln(v=>({isHover:v.events.hovered,isActive:v.events.selected,name:v.data.custom?.displayName||v.data.displayName,isResizable:v.data.custom.resizable===!0,nodeWidth:v.data.props.style?.width||v.data.props.width||"min-content",nodeHeight:v.data.props.style?.height||v.data.props.height||"min-content"})),{canvasMaxWidth:b}=La(v=>({canvasMaxWidth:(v.nodes.ROOT?.data?.props?.style||{}).maxWidth}));return t===Go?w.jsx(w.Fragment,{children:e}):c?w.jsx(By,{maxWidth:b,children:e}):w.jsx(Py,{isHover:r,isSelected:n,name:i,width:f,height:g,children:e})},lw={desktop:{width:1200,height:800,name:"Desktop"},tablet:{width:768,height:1024,name:"Tablet"},mobile:{width:375,height:667,name:"Mobile"}},xS=({canvasSize:e,hasCanvasContent:t,onZoomChange:r,placeholderData:n={}})=>{console.log(n);const[i,c]=L.useState(100),[f,g]=L.useState(""),b=lw[e]||lw.desktop,{getHtml:m}=gd(),{renderTemplate:v}=d1();return L.useEffect(()=>{const E=()=>{const A=window.innerWidth-100,F=window.innerHeight-200,S=A/b.width,N=F/b.height,O=Math.min(S,N,1)*100,B=Math.max(25,Math.min(100,O));c(B),r&&r(B)};return E(),window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[e,b.width,b.height,r]),L.useEffect(()=>{if(!t){g("");return}let E=m();if(Object.keys(n).length>0)try{E=v(E,n)}catch(A){console.error("Erro ao processar template:",A)}g(E)},[t,n]),w.jsx("div",{className:"force-cursor-default relative flex flex-1 items-center justify-center overflow-auto bg-[#F5F5F7] p-8",children:w.jsx("div",{className:"flex h-full w-full items-center justify-center",children:w.jsxs("div",{className:"relative overflow-hidden rounded-lg border border-[#E8E7EE] bg-white shadow-lg",style:{width:b.width*(i/100),height:b.height*(i/100),maxWidth:"100%",maxHeight:"100%"},children:[e==="mobile"&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"absolute inset-x-0 top-0 z-10 flex h-6 items-center justify-center rounded-t-lg bg-black",children:w.jsx("div",{className:"h-1 w-12 rounded-full bg-gray-600"})}),w.jsx("div",{className:"absolute inset-x-0 bottom-1 z-10 flex justify-center",children:w.jsx("div",{className:"h-1 w-16 rounded-full bg-black opacity-30"})})]}),w.jsxs("div",{className:"h-full w-full overflow-hidden",style:{transform:`scale(${i/100})`,transformOrigin:"top left",width:`${100/(i/100)}%`,height:`${100/(i/100)}%`},children:[!t&&w.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50",children:w.jsxs("div",{className:"p-8 text-center",children:[w.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-lg border-2 border-dashed border-[#E8E7EE] bg-[#F5F5F7]",children:w.jsx("span",{className:"text-2xl text-[#A29FB9]",children:"📄"})}),w.jsx("h3",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"No content to preview"}),w.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Add components to see the preview"})]})}),w.jsx("div",{className:"h-full min-h-screen bg-white",style:{overflow:"visible",position:"relative",minHeight:"100%"},dangerouslySetInnerHTML:{__html:f}})]})]})})})},uw={desktop:{width:1200,height:800,name:"Desktop",icon:Te.FiMonitor},tablet:{width:768,height:1024,name:"Tablet",icon:Te.FiTablet},mobile:{width:375,height:667,name:"Mobile",icon:Te.FiSmartphone}},DS=({canvasSize:e,onCanvasSizeChange:t,onExitPreview:r,onDownloadHTML:n,onOpenInNewTab:i,showPlayground:c=!1,onTogglePlayground:f})=>{const[g,b]=L.useState(!1),[m,v]=L.useState(100);return w.jsx("div",{className:"border-b border-[#E8E7EE] bg-white px-6 py-3",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsxs("button",{onClick:r,className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-[#170F4F] transition-colors hover:bg-[#F5F5F7]",children:[w.jsx(Te.FiX,{className:"h-4 w-4"}),"Exit Preview"]}),w.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Te.FiEye,{className:"h-4 w-4 text-[#00BAC7]"}),w.jsx("span",{className:"text-sm font-medium text-[#170F4F]",children:"Preview Mode"})]})]}),w.jsx("div",{className:"flex items-center gap-2",children:Object.keys(uw).map(E=>{const A=uw[E],F=A.icon,S=e===E;return w.jsxs("button",{onClick:()=>t(E),className:`flex items-center gap-2 px-3 py-1.5 text-sm font-medium transition-all duration-200 ${S?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:A.name,children:[w.jsx(F,{className:"h-4 w-4"}),w.jsx("span",{className:"hidden sm:inline",children:A.name})]},E)})}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsxs("div",{className:"flex items-center overflow-hidden border border-[#E8E7EE]",children:[w.jsx("button",{onClick:()=>v(Math.max(25,m-25)),className:"px-3 py-1.5 text-[#170F4F] transition-colors hover:bg-[#F5F5F7] disabled:cursor-not-allowed disabled:opacity-50",disabled:m<=25,children:"−"}),w.jsxs("div",{className:"min-w-[60px] border-x border-[#E8E7EE] bg-[#F5F5F7] px-3 py-1.5 text-center text-sm font-medium text-[#170F4F]",children:[m,"%"]}),w.jsx("button",{onClick:()=>v(Math.min(200,m+25)),className:"px-3 py-1.5 text-[#170F4F] transition-colors hover:bg-[#F5F5F7] disabled:cursor-not-allowed disabled:opacity-50",disabled:m>=200,children:"+"})]}),w.jsx("button",{onClick:()=>b(!g),className:`p-1.5 transition-all duration-200 ${g?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:"Toggle Rulers",children:w.jsx(Te.FiEyeOff,{className:"h-4 w-4"})}),w.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),f&&w.jsxs("button",{onClick:f,className:`flex items-center gap-2 px-3 py-1.5 text-sm font-medium transition-all duration-200 ${c?"bg-[#170F4F] text-white":"border border-[#E8E7EE] text-[#170F4F] hover:bg-[#F5F5F7]"} `,title:"Toggle Data Playground",children:[w.jsx(Te.FiDatabase,{className:"h-4 w-4"}),w.jsx("span",{className:"hidden sm:inline",children:"Data"})]}),w.jsx("div",{className:"h-6 w-px bg-[#E8E7EE]"}),w.jsxs("button",{onClick:n,className:"flex items-center gap-2 border border-[#E8E7EE] px-3 py-1.5 text-sm font-medium text-[#170F4F] transition-colors hover:bg-[#F5F5F7]",title:"Download HTML",children:[w.jsx(Te.FiDownload,{className:"h-4 w-4"}),w.jsx("span",{className:"hidden sm:inline",children:"Download"})]}),w.jsxs("button",{onClick:i,className:"flex items-center gap-2 bg-[#170F4F] px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-[#00BAC7]",title:"Open in New Tab",children:[w.jsx(Te.FiExternalLink,{className:"h-4 w-4"}),w.jsx("span",{className:"hidden sm:inline",children:"Open"})]})]})]})})},CS=350,ES=700,FS=450,SS=({placeholders:e,placeholderSchema:t,onPlaceholdersChange:r,onSchemaChange:n,width:i=FS,onWidthChange:c})=>{const[f,g]=L.useState({type:"text"}),[b,m]=L.useState(!1),[v,E]=L.useState(!1),A=L.useRef(null),F=L.useRef(0),S=L.useRef(0),N=L.useCallback(K=>{E(!0),F.current=K.clientX,S.current=i,K.preventDefault()},[i]),O=L.useCallback(K=>{if(!v)return;const ve=F.current-K.clientX,se=Math.min(ES,Math.max(CS,S.current+ve));c&&c(se)},[v,c]),B=L.useCallback(()=>{E(!1)},[]);L.useEffect(()=>{if(v)return document.addEventListener("mousemove",O),document.addEventListener("mouseup",B),document.body.style.cursor="col-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",B),document.body.style.cursor="",document.body.style.userSelect=""}},[v,O,B]);const z=(K,ve)=>{r({...e,[K]:ve})},Z=()=>{if(!f.key||!f.label||!f.type)return;const K={key:f.key,label:f.label,type:f.type,value:f.value||V(f.type),options:f.options};n([...t,K]),r({...e,[K.key]:K.value||""}),g({type:"text"}),m(!1)},V=K=>{switch(K){case"text":return"Sample text";case"number":return 0;case"boolean":return!1;case"date":return new Date().toISOString().split("T")[0];case"enum":return"";default:return""}},J=K=>{n(t.filter(se=>se.key!==K));const ve={...e};delete ve[K],r(ve)},$=K=>{const ve=e[K.key]||K.value||"";switch(K.type){case"text":return w.jsx("input",{type:"text",value:String(ve),onChange:se=>z(K.key,se.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",placeholder:"Enter text here..."});case"number":return w.jsx("input",{type:"number",value:Number(ve),onChange:se=>z(K.key,parseFloat(se.target.value)||0),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",placeholder:"Enter a number..."});case"boolean":return w.jsxs("div",{className:"flex items-center gap-4 rounded-none border border-[#E8E7EE] bg-white p-3",children:[w.jsxs("label",{className:"flex cursor-pointer items-center",children:[w.jsx("input",{type:"radio",name:`${K.key}-bool`,checked:!!ve,onChange:()=>z(K.key,!0),className:"h-4 w-4 border-[#E8E7EE] text-[#170F4F] focus:ring-2 focus:ring-[#170F4F]"}),w.jsx("span",{className:"ml-2 text-sm font-medium text-[#170F4F]",children:"Yes"})]}),w.jsxs("label",{className:"flex cursor-pointer items-center",children:[w.jsx("input",{type:"radio",name:`${K.key}-bool`,checked:!ve,onChange:()=>z(K.key,!1),className:"h-4 w-4 border-[#E8E7EE] text-[#170F4F] focus:ring-2 focus:ring-[#170F4F]"}),w.jsx("span",{className:"ml-2 text-sm font-medium text-[#170F4F]",children:"No"})]})]});case"enum":return w.jsxs("select",{value:String(ve),onChange:se=>z(K.key,se.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",children:[w.jsx("option",{value:"",children:"Choose an option..."}),K.options?.map((se,me)=>typeof se=="string"?w.jsx("option",{value:se,children:se},me):w.jsx("option",{value:String(se.value),children:se.label},me))]});case"date":return w.jsx("input",{type:"date",value:String(ve),onChange:se=>z(K.key,se.target.value),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]"});default:return null}};return w.jsxs("div",{className:"relative flex animate-slide-in-right flex-col border-l border-[#E8E7EE] bg-white transition-all duration-300 ease-in-out",style:{width:`${i}px`},children:[w.jsx("div",{ref:A,className:`absolute bottom-0 left-0 top-0 w-1 cursor-col-resize transition-colors duration-200 hover:bg-[#00BAC7] ${v?"bg-[#00BAC7]":"bg-transparent"} group`,onMouseDown:N,children:w.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform opacity-0 transition-opacity group-hover:opacity-100",children:w.jsx(Te.FiMoreVertical,{className:"h-3 w-3 text-[#A29FB9]"})})}),w.jsxs("div",{className:"border-b border-[#E8E7EE] bg-gradient-to-r from-[#F9F8FE] to-white p-6",children:[w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs("div",{children:[w.jsx("h3",{className:"mb-1 text-lg font-semibold text-[#170F4F]",children:"Placeholders"}),w.jsx("p",{className:"text-sm text-[#A29FB9]",children:"Customize the content that appears in your template"})]}),w.jsxs("button",{onClick:()=>m(!0),className:"flex items-center gap-2 rounded-none bg-[#170F4F] px-4 py-2 text-sm font-medium text-white shadow-sm transition-all duration-200 hover:bg-[#00BAC7] hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-[#170F4F] disabled:hover:shadow-sm",disabled:b,children:[w.jsx(Te.FiPlus,{className:"h-4 w-4"}),"Add"]})]}),b&&w.jsxs("div",{className:"mt-4 animate-fade-in rounded-none border border-[#E8E7EE] bg-white p-4 shadow-sm",children:[w.jsx("h4",{className:"mb-4 text-sm font-semibold text-[#170F4F]",children:"Add New Placeholder"}),w.jsxs("div",{className:"space-y-4",children:[w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-xs font-medium text-[#170F4F]",children:"Field Name"}),w.jsx("input",{type:"text",placeholder:"e.g., Customer Name",value:f.label||"",onChange:K=>{const ve=K.target.value,se=ve.replace(/[^a-zA-Z0-9\s]/g,"").replace(/\s+/g,"_").replace(/^_+|_+$/g,"");g({...f,label:ve,key:se})},className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]"})]}),w.jsxs("div",{children:[w.jsx("label",{className:"mb-2 block text-xs font-medium text-[#170F4F]",children:"Data Type"}),w.jsxs("select",{value:f.type||"text",onChange:K=>g({...f,type:K.target.value}),className:"w-full rounded-none border border-[#E8E7EE] bg-white px-3 py-2 text-sm transition-all focus:border-[#170F4F] focus:bg-[#F9F8FE] focus:outline-none focus:ring-2 focus:ring-[#170F4F]",children:[w.jsx("option",{value:"text",children:"Text"}),w.jsx("option",{value:"number",children:"Number"}),w.jsx("option",{value:"boolean",children:"True/False"}),w.jsx("option",{value:"enum",children:"Multiple Choice"}),w.jsx("option",{value:"date",children:"Date"})]})]})]}),w.jsxs("div",{className:"mt-6 flex gap-2 border-t border-[#E8E7EE] pt-4",children:[w.jsx("button",{onClick:Z,disabled:!f.key||!f.label,className:"rounded-none bg-[#170F4F] px-4 py-2 text-sm font-medium text-white shadow-sm transition-colors duration-200 hover:bg-[#00BAC7] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-[#170F4F]",children:"Confirm"}),w.jsx("button",{onClick:()=>m(!1),className:"rounded-none border border-[#E8E7EE] px-4 py-2 text-sm font-medium text-[#A29FB9] transition-colors duration-200 hover:bg-[#F9F8FE] hover:text-[#170F4F]",children:"Cancel"})]})]})]}),w.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:t.length===0?w.jsxs("div",{className:"py-12 text-center text-[#A29FB9]",children:[w.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-none border border-[#E8E7EE] bg-[#F9F8FE]",children:w.jsx(Te.FiPlus,{className:"h-8 w-8 text-[#170F4F]"})}),w.jsx("h4",{className:"mb-2 text-lg font-medium text-[#170F4F]",children:"No data fields yet"}),w.jsx("p",{className:"mb-4 text-sm",children:"Add data fields to make your template dynamic"}),w.jsx("button",{onClick:()=>m(!0),className:"text-sm font-medium text-[#170F4F] transition-colors duration-200 hover:text-[#00BAC7]",children:"Add your first field"})]}):w.jsx("div",{className:"space-y-4",children:t.map(K=>w.jsxs("div",{className:"rounded-none border border-[#E8E7EE] bg-white p-4 transition-all duration-200 hover:border-[#170F4F] hover:shadow-sm",children:[w.jsxs("div",{className:"mb-3 flex items-start justify-between",children:[w.jsxs("div",{className:"flex-1",children:[w.jsx("h4",{className:"mb-1 text-sm font-semibold text-[#170F4F]",children:K.label}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("span",{className:"inline-flex items-center rounded-none border border-[#E8E7EE] bg-[#F9F8FE] px-2 py-1 text-xs font-medium text-[#170F4F]",children:K.type==="boolean"?"True/False":K.type==="enum"?"Multiple Choice":K.type.charAt(0).toUpperCase()+K.type.slice(1)}),w.jsx("span",{className:"font-mono text-xs text-[#A29FB9]",children:K.key})]})]}),w.jsx("button",{onClick:()=>J(K.key),className:"rounded-none p-1 text-[#A29FB9] transition-colors duration-200 hover:bg-red-50 hover:text-red-500",title:"Remove field",children:w.jsx(Te.FiTrash2,{className:"h-4 w-4"})})]}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("label",{className:"block text-xs font-medium text-[#170F4F]",children:"Current Value:"}),w.jsx("div",{className:"w-full",children:$(K)})]})]},K.key))})})]})},am={desktop:{width:1200,height:800,name:"Desktop"},tablet:{width:768,height:1024,name:"Tablet"},mobile:{width:375,height:667,name:"Mobile"}},kS=({isPreviewMode:e,onExitPreview:t,initialPlaceholders:r={},initialPlaceholderSchema:n=[]})=>{const{getHtml:i,device:c,setDevice:f,isEmpty:g}=gd(),[b,m]=L.useState(!1),[v,E]=L.useState(100),[A,F]=L.useState(!0),[S,N]=L.useState(450),[O,B]=L.useState(r),[z,Z]=L.useState(n),V=()=>{m(!0),setTimeout(()=>{t(),m(!1)},300)},J=()=>{const K=i();sw(K)},$=()=>{F(!A)};return e?w.jsxs("div",{className:`fixed inset-0 z-50 bg-[#F5F5F7] ${b?"animate-fade-out":"animate-fade-in"}`,children:[w.jsx("div",{className:b?"animate-slide-up-out":"animate-slide-down",children:w.jsx(DS,{canvasSize:c,onCanvasSizeChange:f,onExitPreview:V,onDownloadHTML:J,onOpenInNewTab:()=>{const K=i();window.open()?.document.write(K)},showPlayground:A,onTogglePlayground:$})}),w.jsxs("div",{className:"flex h-full",children:[w.jsx("div",{className:b?"animate-slide-down-out":"animate-slide-up",style:{flex:1},children:w.jsx(xS,{canvasSize:c,hasCanvasContent:g,onZoomChange:E,placeholderData:O})}),A&&w.jsx(SS,{placeholders:O,placeholderSchema:z,onPlaceholdersChange:B,onSchemaChange:Z,width:S,onWidthChange:N})]}),w.jsxs("div",{className:"fixed bottom-4 left-4 z-[60] rounded bg-[#170F4F] px-3 py-2 text-sm text-white shadow-md",children:[am[c].name," • ",am[c].width,"×",am[c].height,"px • ",v.toFixed(3),"%"]})]}):null},TS=pd.reduce((e,t)=>(e[t.id]=t.component,e),{}),AS=({placeholders:e={},placeholderSchema:t=[]})=>{const r=Wy();return w.jsxs(TD,{resolver:TS,onRender:wS,enabled:r.isEditorEnabled,children:[w.jsx(yS,{onPreviewToggle:r.togglePreview,showCodePanel:r.showCodePanel,onCodePanelToggle:r.toggleCodePanel,codePanelChildren:w.jsx(zF,{onClose:r.closeCodePanel})}),w.jsx(kS,{isPreviewMode:r.showPreview,onExitPreview:()=>r.togglePreview(),initialPlaceholders:e,initialPlaceholderSchema:t})]})},_S='@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Arial,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.force-cursor-default{cursor:default!important}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-3{left:.75rem}.left-4{left:1rem}.left-auto{left:auto}.right-3{right:.75rem}.right-auto{right:auto}.top-0{top:0}.top-1\\/2{top:50%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[90vh\\]{height:90vh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[42vh\\]{max-height:42vh}.max-h-\\[72px\\]{max-height:72px}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-\\[10\\%\\]{width:10%}.w-\\[20\\%\\]{width:20%}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\\[120px\\]{min-width:120px}.min-w-\\[140px\\]{min-width:140px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[60px\\]{min-width:60px}.max-w-6xl{max-width:72rem}.max-w-\\[40vw\\]{max-width:40vw}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-fade-in{animation:fadeIn .4s ease-out}.animate-fade-out{animation:fadeOut .3s ease-in}.animate-slide-down{animation:slideDown .5s ease-out .1s both}.animate-slide-down-out{animation:slideDownOut .3s ease-in both}.animate-slide-in-right{animation:slideInRight .3s ease-out}.animate-slide-up{animation:slideUp .5s ease-out .2s both}.animate-slide-up-out{animation:slideUpOut .3s ease-in both}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:4px}.rounded-none{border-radius:0}.rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.\\!border{border-width:1px!important}.border{border-width:1px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\\[\\#00BAC7\\]{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.border-\\[\\#170F4F\\],.border-\\[\\#170f4f\\]{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.border-\\[\\#30aab3\\]{--tw-border-opacity: 1;border-color:rgb(48 170 179 / var(--tw-border-opacity, 1))}.border-\\[\\#E8E7EE\\],.border-\\[\\#e8e7ee\\]{--tw-border-opacity: 1;border-color:rgb(232 231 238 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-\\[\\#00BAC7\\]{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.bg-\\[\\#170F4F\\],.bg-\\[\\#170f4f\\]{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.bg-\\[\\#181c24\\]{--tw-bg-opacity: 1;background-color:rgb(24 28 36 / var(--tw-bg-opacity, 1))}.bg-\\[\\#23272f\\]{--tw-bg-opacity: 1;background-color:rgb(35 39 47 / var(--tw-bg-opacity, 1))}.bg-\\[\\#CCF1F4\\]{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E8E7EE\\]{--tw-bg-opacity: 1;background-color:rgb(232 231 238 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F2F7\\]{--tw-bg-opacity: 1;background-color:rgb(243 242 247 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F5F5F7\\]{--tw-bg-opacity: 1;background-color:rgb(245 245 247 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F9F8FE\\]{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-current{background-color:currentColor}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/20{background-color:#fff3}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-opacity-40{--tw-bg-opacity: .4}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#F9F8FE\\]{--tw-gradient-from: #F9F8FE var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 248 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-100{--tw-gradient-from: #f3f4f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-200{--tw-gradient-to: #e5e7eb var(--tw-gradient-to-position)}.to-white{--tw-gradient-to: #fff var(--tw-gradient-to-position)}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-8{padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:2px}.text-\\[\\#00BAC7\\]{--tw-text-opacity: 1;color:rgb(0 186 199 / var(--tw-text-opacity, 1))}.text-\\[\\#170F4F\\],.text-\\[\\#170f4f\\]{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.text-\\[\\#A29FB9\\]{--tw-text-opacity: 1;color:rgb(162 159 185 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-current{color:currentColor}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.placeholder-\\[\\#A29FB9\\]::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(162 159 185 / var(--tw-placeholder-opacity, 1))}.placeholder-\\[\\#A29FB9\\]::placeholder{--tw-placeholder-opacity: 1;color:rgb(162 159 185 / var(--tw-placeholder-opacity, 1))}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px rgba(0, 0, 0, .15);--tw-shadow-colored: 0 10px 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 4px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-yellow-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.ring-opacity-50{--tw-ring-opacity: .5}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUpOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}@keyframes slideDownOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(20px)}}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes slideOutRight{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(100%)}}.last\\:mb-0:last-child{margin-bottom:0}.hover\\:border-\\[\\#00BAC7\\]:hover{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.hover\\:border-\\[\\#170F4F\\]:hover{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.hover\\:border-\\[\\#30aab3\\]:hover{--tw-border-opacity: 1;border-color:rgb(48 170 179 / var(--tw-border-opacity, 1))}.hover\\:border-red-300:hover{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.hover\\:bg-\\[\\#00BAC7\\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#30aab3\\]:hover{--tw-bg-opacity: 1;background-color:rgb(48 170 179 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#CCF1F4\\]:hover{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#E8E7EE\\]:hover{--tw-bg-opacity: 1;background-color:rgb(232 231 238 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#F5F5F7\\]:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 247 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#F9F8FE\\]:hover{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[\\#00BAC7\\]:hover{--tw-text-opacity: 1;color:rgb(0 186 199 / var(--tw-text-opacity, 1))}.hover\\:text-\\[\\#170F4F\\]:hover,.hover\\:text-\\[\\#170f4f\\]:hover{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.hover\\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:shadow-md:hover{--tw-shadow: 0 4px 6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 4px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:ring-2:hover{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\\:ring-gray-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.hover\\:ring-yellow-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 224 71 / var(--tw-ring-opacity, 1))}.hover\\:ring-opacity-50:hover{--tw-ring-opacity: .5}.focus\\:border-\\[\\#00BAC7\\]:focus{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.focus\\:border-\\[\\#170F4F\\]:focus{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.focus\\:bg-\\[\\#CCF1F4\\]:focus{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.focus\\:bg-\\[\\#F9F8FE\\]:focus{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-\\[\\#170F4F\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(23 15 79 / var(--tw-ring-opacity, 1))}.focus\\:ring-\\[\\#30aab3\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(48 170 179 / var(--tw-ring-opacity, 1))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-gray-600:disabled{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-\\[\\#170F4F\\]:hover:disabled{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.disabled\\:hover\\:shadow-sm:hover:disabled{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\\:bg-\\[\\#00BAC7\\]{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.group:hover .group-hover\\:bg-\\[\\#170f4f\\]\\/20{background-color:#170f4f33}.group:hover .group-hover\\:text-\\[\\#170f4f\\]{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.group:hover .group-hover\\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 768px){.sm\\:inline{display:inline}}';function RS({placeholders:e={},placeholderSchema:t=[]}){return w.jsxs(Kw.div,{className:"bolttech-template-editor",children:[w.jsx("style",{type:"text/css",children:_S}),w.jsx(AS,{placeholders:e,placeholderSchema:t})]})}const om=({name:e,value:t,path:r,onSelect:n,isSelected:i})=>{const c=typeof t=="object"&&t!==null&&!Array.isArray(t),f=Array.isArray(t),g=()=>t===null?"null":t===void 0?"undefined":typeof t=="string"?`"${t}"`:typeof t=="number"||typeof t=="boolean"?String(t):f?`Array(${t.length})`:c?`Object(${Object.keys(t).length})`:String(t),b=()=>t===null?"null":t===void 0?"undefined":typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":f?"array":c?"object":typeof t;return w.jsxs("button",{onClick:()=>n(r,t),className:`flex min-w-[120px] flex-col items-center gap-1 rounded-none border border-[#e8e7ee] p-3 transition-all duration-200 ${i?"border-[#30aab3] bg-[#170f4f] text-white":"bg-white text-[#170f4f] hover:border-[#30aab3] hover:bg-gray-50"}`,children:[w.jsx("div",{className:"text-xs font-medium",children:e}),w.jsx("div",{className:`text-xs ${b()==="string"?"text-green-600":b()==="number"?"text-blue-600":b()==="boolean"?"text-purple-600":b()==="null"?"text-gray-500":"text-orange-600"} ${i?"text-white":""}`,children:g()}),w.jsxs("div",{className:`text-xs ${i?"text-gray-300":"text-gray-400"}`,children:["(",b(),")"]})]})},cw=({data:e,onPathSelect:t})=>{const[r,n]=L.useState([]),[i,c]=L.useState(null),[f,g]=L.useState(!1),b=(S,N)=>N.reduce((O,B)=>{if(O!=null){if(B.startsWith("[")&&B.endsWith("]")){const z=parseInt(B.slice(1,-1),10);return O[z]}return O[B]}},S),v=(()=>{const S=[];let N=[],O=e;S.push({path:[],value:e,isRoot:!0});for(const B of r)N=[...N,B],O=b(e,N),O!=null&&typeof O=="object"&&S.push({path:[...N],value:O,isRoot:!1});return S})(),E=(S,N,O)=>{if(typeof O=="object"&&O!==null&&(n(B=>[...B.slice(0,S),N]),t)){const B=[...v[S].path,N];t(B.join("."))}},A=(S,N,O)=>{if(typeof O!="object"||O===null){if(c({path:[...v[S].path,N],value:O}),t){const B=[...v[S].path,N];t(B.join("."))}}else c(null)},F=(S,N)=>{const O=S.value;return S.isRoot?w.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:Object.entries(e).map(([B,z])=>w.jsx(om,{name:B,value:z,path:B,onSelect:(Z,V)=>typeof V=="object"&&V!==null?E(0,B,V):A(0,B,V),isSelected:r.length===0},B))},N):Array.isArray(O)?w.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:O.map((B,z)=>w.jsx(om,{name:`[${z}]`,value:B,path:`[${z}]`,onSelect:(Z,V)=>typeof V=="object"&&V!==null?E(N,`[${z}]`,V):A(N,`[${z}]`,V),isSelected:!1},z))},N):typeof O=="object"&&O!==null?w.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:Object.entries(O).map(([B,z])=>w.jsx(om,{name:B,value:z,path:B,onSelect:(Z,V)=>typeof V=="object"&&V!==null?E(N,B,V):A(N,B,V),isSelected:!1},B))},N):null};return w.jsxs("div",{className:"overflow-x-auto rounded-none border border-[#e8e7ee] bg-white",children:[w.jsx("div",{className:"border-b border-[#e8e7ee] bg-gray-50 px-4 py-2",children:w.jsx("h3",{className:"text-sm font-medium text-[#170f4f]",children:"Data Structure"})}),w.jsxs("div",{className:"flex gap-6 overflow-x-auto p-4",children:[v.map((S,N)=>F(S,N)),i&&w.jsx("div",{className:"flex min-w-[180px] flex-col gap-2",children:w.jsxs("div",{className:"mt-2 rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:[w.jsx("h4",{className:"mb-1 text-xs font-medium text-gray-600",children:"Selected Value"}),w.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[w.jsx("span",{className:"font-medium",children:"Path:"})," ",i.path.join("."),w.jsx("button",{className:"ml-1 text-gray-400 hover:text-gray-600",onClick:()=>{navigator.clipboard.writeText(i.path.join(".")),g(!0),setTimeout(()=>g(!1),2e3)},title:"Copy path",children:f?w.jsx(Te.FiCheck,{size:14}):w.jsx(Te.FiCopy,{size:14})})]}),w.jsxs("div",{className:"text-sm",children:[w.jsx("span",{className:"font-medium",children:"Value:"})," ",String(i.value)]}),w.jsxs("div",{className:"text-sm",children:[w.jsx("span",{className:"font-medium",children:"Type:"})," ",typeof i.value]})]})})]})]})},NS=Object.freeze(Object.defineProperty({__proto__:null,DataSourceModal:({isOpen:e,onClose:t,onDataImport:r})=>{const[n,i]=L.useState("url"),[c,f]=L.useState(""),[g,b]=L.useState(""),[m,v]=L.useState(""),[E,A]=L.useState(!1),[F,S]=L.useState(""),[N,O]=L.useState(!1),[B,z]=L.useState(null);L.useEffect(()=>{if(e){const se=localStorage.getItem("bolttech_datasource");if(se)try{const me=JSON.parse(se);me&&typeof me=="object"&&me.data&&(z(me.data),me.url&&b(me.url))}catch{}}},[e]);const Z=se=>{const me=se.target.files?.[0];if(!me)return;if(!me.name.endsWith(".json")){S("Please select a JSON file");return}const ge=new FileReader;ge.onload=Qe=>{try{const pe=Qe.target?.result,Ie=JSON.parse(pe);f(pe),z(Ie),S("")}catch{S("Invalid JSON file"),f(""),z(null)}},ge.readAsText(me)},V=async()=>{if(!g.trim()){S("Please enter a URL");return}A(!0),S("");try{const se=await fetch(g);if(!se.ok)throw new Error("Failed to fetch data");const me=await se.json();v(JSON.stringify(me,null,2)),z(me),S("")}catch{S("Failed to fetch data from URL")}finally{A(!1)}},J=se=>{v(se),S("");try{if(se.trim()){const me=JSON.parse(se);z(me)}else z(null)}catch{S("Invalid JSON format"),z(null)}},$=()=>{let se;try{switch(n){case"file":if(!c){S("Please select a file");return}se=JSON.parse(c);break;case"url":if(!m){S("Please fetch data from URL first");return}se=JSON.parse(m);break;case"code":if(!m.trim()){S("Please enter JSON data");return}se=JSON.parse(m);break}n==="url"?localStorage.setItem("bolttech_datasource",JSON.stringify({from:n,data:se,url:g})):localStorage.setItem("bolttech_datasource",JSON.stringify({from:n,data:se})),r(se),t()}catch{S("Invalid JSON data")}},K=()=>{navigator.clipboard.writeText(m),O(!0),setTimeout(()=>O(!1),2e3)},ve=()=>{try{return m.trim()?(JSON.parse(m),!0):!1}catch{return!1}};return e?w.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:se=>{se.target===se.currentTarget&&t()},children:w.jsxs("div",{className:"flex h-[90vh] w-full max-w-6xl flex-col rounded-none bg-white shadow-xl",children:[w.jsxs("div",{className:"flex items-center justify-between border-b border-[#e8e7ee] bg-white p-6",children:[w.jsx("h2",{className:"text-lg font-bold tracking-wide text-[#170f4f]",children:"DataSource"}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx("button",{onClick:()=>{localStorage.removeItem("bolttech_datasource"),z(null),f(""),b(""),v("")},className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-red-50 hover:text-red-600",title:"Clean Data",children:"🧹"}),w.jsx("button",{onClick:t,className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-gray-50 hover:text-gray-600",children:w.jsx(Te.FiX,{size:18})})]})]}),w.jsx("div",{className:"max-h-[42vh] overflow-y-auto border-b border-[#e8e7ee] px-6 py-4",children:w.jsx(cw,{data:{root:B||{}}})}),w.jsxs("div",{className:"flex border-b border-[#e8e7ee]",children:[w.jsxs("button",{onClick:()=>i("url"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="url"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[w.jsx(Te.FiLink,{size:16}),"URL"]}),w.jsxs("button",{onClick:()=>i("file"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="file"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[w.jsx(Te.FiUpload,{size:16}),"Import File"]}),w.jsxs("button",{onClick:()=>i("code"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="code"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[w.jsx(Te.FiCode,{size:16}),"Custom Code"]})]}),w.jsxs("div",{className:"flex-1 overflow-hidden p-6",children:[n==="code"&&w.jsxs("div",{className:"flex h-full flex-col",children:[w.jsx("div",{className:"mb-4",children:w.jsx("p",{className:"mb-1 text-sm text-gray-500",children:"Enter your JSON data below"})}),w.jsxs("div",{className:"flex-1 overflow-hidden rounded-none bg-gray-900",children:[w.jsxs("div",{className:"flex items-center justify-between border-b border-gray-700 bg-gray-800 px-4 py-2",children:[w.jsx("span",{className:"text-sm font-medium text-gray-300",children:"JSON Editor"}),m&&w.jsxs("button",{onClick:K,className:"flex items-center gap-1 text-xs text-gray-400 hover:text-gray-300",children:[N?w.jsx(Te.FiCheck,{size:12}):w.jsx(Te.FiCopy,{size:12}),N?"Copied!":"Copy"]})]}),w.jsx("div",{className:"h-full overflow-auto pb-8",children:w.jsx("textarea",{value:m,onChange:se=>J(se.target.value),placeholder:'{"name": "John", "age": 30, "city": "New York"}',className:"h-full w-full resize-none border-none bg-transparent p-4 font-mono text-sm text-gray-300 outline-none"})})]})]}),n==="url"&&w.jsx("div",{className:"bte:flex bte:h-full bte:flex-col",children:w.jsxs("div",{className:"bte:mb-4",children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"JSON URL"}),w.jsxs("div",{className:"flex gap-2",children:[w.jsx("input",{type:"url",value:g,onChange:se=>b(se.target.value),placeholder:"https://api.example.com/data.json",className:"flex-1 rounded-none border border-[#e8e7ee] px-3 py-2 focus:outline-none focus:ring-2 focus:ring-[#30aab3]"}),w.jsx("button",{onClick:V,disabled:E||!g.trim(),className:"rounded-none bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3] disabled:cursor-not-allowed disabled:opacity-50",children:E?"Loading...":"Fetch"})]})]})}),n==="file"&&w.jsxs("div",{className:"bte:flex bte:h-full bte:flex-col",children:[w.jsxs("div",{className:"bte:mb-4",children:[w.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Select JSON File"}),w.jsxs("div",{className:"rounded-none border-2 border-dashed border-[#e8e7ee] p-8 text-center transition-colors duration-200 hover:border-[#30aab3]",children:[w.jsx("input",{type:"file",accept:".json",onChange:Z,className:"hidden",id:"file-upload"}),w.jsxs("label",{htmlFor:"file-upload",className:"flex cursor-pointer flex-col items-center",children:[w.jsx(Te.FiUpload,{size:48,className:"mb-4 text-gray-400"}),w.jsx(Te.FiUpload,{size:48,className:"mb-4 text-gray-400"}),w.jsx("span",{className:"text-lg font-medium text-gray-700",children:"Click to upload JSON file"}),w.jsx("span",{className:"mt-1 text-sm text-gray-500",children:"or drag and drop"})]})]})]}),c&&w.jsxs("div",{className:"flex-1 overflow-hidden rounded-none bg-gray-900",children:[w.jsx("div",{className:"flex items-center justify-between border-b border-gray-700 bg-gray-800 px-4 py-2",children:w.jsx("span",{className:"text-sm font-medium text-gray-300",children:"File Preview"})}),w.jsx("div",{className:"h-32 overflow-auto",children:w.jsx("pre",{className:"whitespace-pre-wrap p-4 font-mono text-sm text-gray-300",children:w.jsx("code",{children:c})})})]})]}),F&&w.jsx("div",{className:"mt-4 rounded-none border border-red-200 bg-red-50 p-3",children:w.jsx("p",{className:"text-sm text-red-600",children:F})})]}),w.jsxs("div",{className:"flex items-center justify-end gap-3 border-t border-[#e8e7ee] p-6",children:[w.jsx("button",{onClick:t,className:"rounded-none bg-gray-100 px-4 py-2 text-gray-700 transition-colors duration-200 hover:bg-gray-200",children:"Cancel"}),w.jsx("button",{onClick:$,disabled:n==="file"&&!c||n==="url"&&!m||n==="code"&&!m||!ve(),className:"rounded-none bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3] disabled:cursor-not-allowed disabled:opacity-50",children:"Import Data"})]})]})}):null},HorizontalDataView:cw},Symbol.toStringTag,{value:"Module"}));Dr.TemplateEditor=RS,Object.defineProperty(Dr,Symbol.toStringTag,{value:"Module"})}));
|
|
171
|
+
</html>`;t=t.replace(/\s+/g," ").replace(/>\s+</g,"><").trim();const r=new Blob([t],{type:"text/html"}),n=URL.createObjectURL(r),a=document.createElement("a");a.href=n,a.download="bolttech-page.html",document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(n)}const xp={desktop:{width:1200,height:800,name:"Desktop"},tablet:{width:768,height:1024,name:"Tablet"},mobile:{width:375,height:667,name:"Mobile"}},$S=({isPreviewMode:e,onExitPreview:t,initialPlaceholders:r={},initialPlaceholderSchema:n=[]})=>{const{getHtml:a,device:i,setDevice:u,isEmpty:h}=ac(),[g,p]=I.useState(!1),[b,D]=I.useState(100),[F,S]=I.useState(!0),[R,O]=I.useState(450),[N,_]=I.useState(r),[M,U]=I.useState(n),H=()=>{p(!0),setTimeout(()=>{t(),p(!1)},300)},q=()=>{const Y=a();QS(Y)},Q=()=>{S(!F)};return e?m.jsxs("div",{className:`fixed inset-0 z-50 bg-[#F5F5F7] ${g?"animate-fade-out":"animate-fade-in"}`,children:[m.jsx("div",{className:g?"animate-slide-up-out":"animate-slide-down",children:m.jsx(JS,{canvasSize:i,onCanvasSizeChange:u,onExitPreview:H,onDownloadHTML:q,onOpenInNewTab:()=>{const Y=a();window.open()?.document.write(Y)},showPlayground:F,onTogglePlayground:Q})}),m.jsxs("div",{className:"flex h-full",children:[m.jsx("div",{className:g?"animate-slide-down-out":"animate-slide-up",style:{flex:1},children:m.jsx(YS,{canvasSize:i,hasCanvasContent:h,onZoomChange:D,placeholderData:N})}),F&&m.jsx(KS,{placeholders:N,placeholderSchema:M,onPlaceholdersChange:_,onSchemaChange:U,width:R,onWidthChange:O})]}),m.jsxs("div",{className:"fixed bottom-4 left-4 z-[60] rounded bg-[#170F4F] px-3 py-2 text-sm text-white shadow-md",children:[xp[i].name," • ",xp[i].width,"×",xp[i].height,"px • ",b.toFixed(3),"%"]})]}):null},ek=Wl.reduce((e,t)=>(e[t.id]=t.component,e),{}),tk=({placeholders:e={},placeholderSchema:t=[]})=>{const r=jv();return m.jsxs(hw,{resolver:ek,onRender:dF,enabled:r.isEditorEnabled,children:[m.jsx(QE,{onPreviewToggle:r.togglePreview,showCodePanel:r.showCodePanel,onCodePanelToggle:r.toggleCodePanel,codePanelChildren:m.jsx(yE,{onClose:r.closeCodePanel})}),m.jsx($S,{isPreviewMode:r.showPreview,onExitPreview:()=>r.togglePreview(),initialPlaceholders:e,initialPlaceholderSchema:t})]})},rk='@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Arial,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 480px){.container{max-width:480px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1440px){.container{max-width:1440px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-right-0\\.5{right:-.125rem}.-top-0\\.5{top:-.125rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.left-3{left:.75rem}.left-4{left:1rem}.left-auto{left:auto}.right-0{right:0}.right-3{right:.75rem}.right-auto{right:auto}.top-0{top:0}.top-1\\/2{top:50%}.top-\\[-2px\\]{top:-2px}.top-\\[-3px\\]{top:-3px}.top-full{top:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[60\\]{z-index:60}.mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-1\\.5{margin-right:.375rem}.mr-2\\.5{margin-right:.625rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\\[400px\\]{height:400px}.h-\\[90vh\\]{height:90vh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[42vh\\]{max-height:42vh}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-\\[10\\%\\]{width:10%}.w-\\[20\\%\\]{width:20%}.w-full{width:100%}.w-px{width:1px}.min-w-\\[120px\\]{min-width:120px}.min-w-\\[140px\\]{min-width:140px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[60px\\]{min-width:60px}.max-w-6xl{max-width:72rem}.max-w-\\[40vw\\]{max-width:40vw}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-fade-in{animation:fadeIn .4s ease-out}.animate-fade-out{animation:fadeOut .3s ease-in}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.animate-slide-down{animation:slideDown .5s ease-out .1s both}.animate-slide-down-out{animation:slideDownOut .3s ease-in both}.animate-slide-in-right{animation:slideInRight .3s ease-out}.animate-slide-up{animation:slideUp .5s ease-out .2s both}.animate-slide-up-out{animation:slideUpOut .3s ease-in both}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:4px}.rounded-none{border-radius:0}.rounded-sm{border-radius:2px}.rounded-t-lg{border-top-left-radius:8px;border-top-right-radius:8px}.border{border-width:1px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\\[\\#00BAC7\\]{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.border-\\[\\#170F4F\\],.border-\\[\\#170f4f\\]{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.border-\\[\\#30aab3\\]{--tw-border-opacity: 1;border-color:rgb(48 170 179 / var(--tw-border-opacity, 1))}.border-\\[\\#3B82F6\\]{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-\\[\\#D1D5DB\\]{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-\\[\\#E8E7EE\\]{--tw-border-opacity: 1;border-color:rgb(232 231 238 / var(--tw-border-opacity, 1))}.border-\\[\\#dce7fe\\]{--tw-border-opacity: 1;border-color:rgb(220 231 254 / var(--tw-border-opacity, 1))}.border-\\[\\#e8e7ee\\]{--tw-border-opacity: 1;border-color:rgb(232 231 238 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-\\[\\#00BAC7\\]{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.bg-\\[\\#170F4F\\]{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.bg-\\[\\#170F4F\\]\\/10{background-color:#170f4f1a}.bg-\\[\\#170f4f\\]{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.bg-\\[\\#181c24\\]{--tw-bg-opacity: 1;background-color:rgb(24 28 36 / var(--tw-bg-opacity, 1))}.bg-\\[\\#23272f\\]{--tw-bg-opacity: 1;background-color:rgb(35 39 47 / var(--tw-bg-opacity, 1))}.bg-\\[\\#CCF1F4\\]{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E8E7EE\\]{--tw-bg-opacity: 1;background-color:rgb(232 231 238 / var(--tw-bg-opacity, 1))}.bg-\\[\\#EFF6FF\\]{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F5F5F7\\]{--tw-bg-opacity: 1;background-color:rgb(245 245 247 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F9F8FE\\]{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F9FAFB\\]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-50\\/50{background-color:#f9fafb80}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-opacity-40{--tw-bg-opacity: .4}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#F9F8FE\\]{--tw-gradient-from: #F9F8FE var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 248 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-100{--tw-gradient-from: #f3f4f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-200{--tw-gradient-to: #e5e7eb var(--tw-gradient-to-position)}.to-white{--tw-gradient-to: #fff var(--tw-gradient-to-position)}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-8{padding-bottom:2rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-3{padding-right:.75rem}.pr-9{padding-right:2.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:2px}.text-\\[\\#00BAC7\\]{--tw-text-opacity: 1;color:rgb(0 186 199 / var(--tw-text-opacity, 1))}.text-\\[\\#170F4F\\],.text-\\[\\#170f4f\\]{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.text-\\[\\#3B82F6\\]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-\\[\\#6B7280\\]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-\\[\\#A29FB9\\]{--tw-text-opacity: 1;color:rgb(162 159 185 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(113 63 18 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px rgba(0, 0, 0, .15);--tw-shadow-colored: 0 10px 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 4px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-yellow-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 224 71 / var(--tw-ring-opacity, 1))}.ring-yellow-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.ring-opacity-50{--tw-ring-opacity: .5}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.avoid-transition,.avoid-transition *{transition:none!important}#canvas,#canvas *{transition:width .3s ease-in-out,height .3s ease-in-out,max-width .3s ease-in-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUpOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}@keyframes slideDownOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(20px)}}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes slideOutRight{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(100%)}}.last\\:mb-0:last-child{margin-bottom:0}.hover\\:border-\\[\\#00BAC7\\]:hover{--tw-border-opacity: 1;border-color:rgb(0 186 199 / var(--tw-border-opacity, 1))}.hover\\:border-\\[\\#170F4F\\]:hover{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.hover\\:border-\\[\\#170F4F\\]\\/30:hover{border-color:#170f4f4d}.hover\\:border-\\[\\#30aab3\\]:hover{--tw-border-opacity: 1;border-color:rgb(48 170 179 / var(--tw-border-opacity, 1))}.hover\\:border-red-300:hover{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.hover\\:bg-\\[\\#009CA8\\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 156 168 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#00BAC7\\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 186 199 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#170F4F\\]\\/15:hover{background-color:#170f4f26}.hover\\:bg-\\[\\#30aab3\\]:hover{--tw-bg-opacity: 1;background-color:rgb(48 170 179 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#CCF1F4\\]:hover{--tw-bg-opacity: 1;background-color:rgb(204 241 244 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#F5F5F7\\]:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 247 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#F9F8FE\\]:hover{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[\\#00BAC7\\]:hover{--tw-text-opacity: 1;color:rgb(0 186 199 / var(--tw-text-opacity, 1))}.hover\\:text-\\[\\#170F4F\\]:hover,.hover\\:text-\\[\\#170f4f\\]:hover{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.hover\\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:shadow-md:hover{--tw-shadow: 0 4px 6px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 4px 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:ring-2:hover{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\\:ring-gray-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.hover\\:ring-yellow-300:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 224 71 / var(--tw-ring-opacity, 1))}.hover\\:ring-opacity-50:hover{--tw-ring-opacity: .5}.focus\\:border-\\[\\#170F4F\\]:focus{--tw-border-opacity: 1;border-color:rgb(23 15 79 / var(--tw-border-opacity, 1))}.focus\\:bg-\\[\\#F9F8FE\\]:focus{--tw-bg-opacity: 1;background-color:rgb(249 248 254 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-\\[\\#170F4F\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(23 15 79 / var(--tw-ring-opacity, 1))}.focus\\:ring-\\[\\#170F4F\\]\\/20:focus{--tw-ring-color: rgb(23 15 79 / .2)}.focus\\:ring-\\[\\#30aab3\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(48 170 179 / var(--tw-ring-opacity, 1))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-50:disabled{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.disabled\\:text-gray-600:disabled{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-\\[\\#170F4F\\]:hover:disabled{--tw-bg-opacity: 1;background-color:rgb(23 15 79 / var(--tw-bg-opacity, 1))}.disabled\\:hover\\:shadow-sm:hover:disabled{--tw-shadow: 0 1px 2px rgba(0, 0, 0, .05);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\\:text-\\[\\#170F4F\\]{--tw-text-opacity: 1;color:rgb(23 15 79 / var(--tw-text-opacity, 1))}.group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 768px){.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:px-8{padding-left:2rem;padding-right:2rem}}';function nk({templateId:e,placeholders:t={},placeholderSchema:r=[],sdk:n={baseUrl:"",tenant:""}}){return m.jsxs(qy.div,{className:"bolttech-template-editor",children:[m.jsx("style",{type:"text/css",children:rk}),m.jsx(VS,{templateId:e,baseUrl:n.baseUrl,tenant:n.tenant,children:m.jsx(tk,{placeholders:t,placeholderSchema:r})})]})}const wp=({name:e,value:t,path:r,onSelect:n,isSelected:a})=>{const i=typeof t=="object"&&t!==null&&!Array.isArray(t),u=Array.isArray(t),h=()=>t===null?"null":t===void 0?"undefined":typeof t=="string"?`"${t}"`:typeof t=="number"||typeof t=="boolean"?String(t):u?`Array(${t.length})`:i?`Object(${Object.keys(t).length})`:String(t),g=()=>t===null?"null":t===void 0?"undefined":typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":u?"array":i?"object":typeof t;return m.jsxs("button",{onClick:()=>n(r,t),className:`flex min-w-[120px] flex-col items-center gap-1 rounded-none border border-[#e8e7ee] p-3 transition-all duration-200 ${a?"border-[#30aab3] bg-[#170f4f] text-white":"bg-white text-[#170f4f] hover:border-[#30aab3] hover:bg-gray-50"}`,children:[m.jsx("div",{className:"text-xs font-medium",children:e}),m.jsx("div",{className:`text-xs ${g()==="string"?"text-green-600":g()==="number"?"text-blue-600":g()==="boolean"?"text-purple-600":g()==="null"?"text-gray-500":"text-orange-600"} ${a?"text-white":""}`,children:h()}),m.jsxs("div",{className:`text-xs ${a?"text-gray-300":"text-gray-400"}`,children:["(",g(),")"]})]})},dy=({data:e,onPathSelect:t})=>{const[r,n]=I.useState([]),[a,i]=I.useState(null),[u,h]=I.useState(!1),g=(R,O)=>O.reduce((N,_)=>{if(N!=null){if(_.startsWith("[")&&_.endsWith("]")){const M=parseInt(_.slice(1,-1),10);return N[M]}return N[_]}},R),b=(()=>{const R=[];let O=[],N=e;R.push({path:[],value:e,isRoot:!0});for(const _ of r)O=[...O,_],N=g(e,O),N!=null&&typeof N=="object"&&R.push({path:[...O],value:N,isRoot:!1});return R})(),D=(R,O,N)=>{if(typeof N=="object"&&N!==null&&(n(_=>[..._.slice(0,R),O]),t)){const _=[...b[R].path,O];t(_.join("."))}},F=(R,O,N)=>{if(typeof N!="object"||N===null){if(i({path:[...b[R].path,O],value:N}),t){const _=[...b[R].path,O];t(_.join("."))}}else i(null)},S=(R,O)=>{const N=R.value;return R.isRoot?m.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:Object.entries(e).map(([_,M])=>m.jsx(wp,{name:_,value:M,path:_,onSelect:(U,H)=>typeof H=="object"&&H!==null?D(0,_,H):F(0,_,H),isSelected:r.length===0},_))},O):Array.isArray(N)?m.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:N.map((_,M)=>m.jsx(wp,{name:`[${M}]`,value:_,path:`[${M}]`,onSelect:(U,H)=>typeof H=="object"&&H!==null?D(O,`[${M}]`,H):F(O,`[${M}]`,H),isSelected:!1},M))},O):typeof N=="object"&&N!==null?m.jsx("div",{className:"flex min-w-[140px] flex-col gap-2",children:Object.entries(N).map(([_,M])=>m.jsx(wp,{name:_,value:M,path:_,onSelect:(U,H)=>typeof H=="object"&&H!==null?D(O,_,H):F(O,_,H),isSelected:!1},_))},O):null};return m.jsxs("div",{className:"overflow-x-auto rounded-none border border-[#e8e7ee] bg-white",children:[m.jsx("div",{className:"border-b border-[#e8e7ee] bg-gray-50 px-4 py-2",children:m.jsx("h3",{className:"text-sm font-medium text-[#170f4f]",children:"Data Structure"})}),m.jsxs("div",{className:"flex gap-6 overflow-x-auto p-4",children:[b.map((R,O)=>S(R,O)),a&&m.jsx("div",{className:"flex min-w-[180px] flex-col gap-2",children:m.jsxs("div",{className:"mt-2 rounded-none border border-[#e8e7ee] bg-gray-50 p-3",children:[m.jsx("h4",{className:"mb-1 text-xs font-medium text-gray-600",children:"Selected Value"}),m.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.jsx("span",{className:"font-medium",children:"Path:"})," ",a.path.join("."),m.jsx("button",{className:"ml-1 text-gray-400 hover:text-gray-600",onClick:()=>{navigator.clipboard.writeText(a.path.join(".")),h(!0),setTimeout(()=>h(!1),2e3)},title:"Copy path",children:u?m.jsx(ce.FiCheck,{size:14}):m.jsx(ce.FiCopy,{size:14})})]}),m.jsxs("div",{className:"text-sm",children:[m.jsx("span",{className:"font-medium",children:"Value:"})," ",String(a.value)]}),m.jsxs("div",{className:"text-sm",children:[m.jsx("span",{className:"font-medium",children:"Type:"})," ",typeof a.value]})]})})]})]})},ak=Object.freeze(Object.defineProperty({__proto__:null,DataSourceModal:({isOpen:e,onClose:t,onDataImport:r})=>{const[n,a]=I.useState("url"),[i,u]=I.useState(""),[h,g]=I.useState(""),[p,b]=I.useState(""),[D,F]=I.useState(!1),[S,R]=I.useState(""),[O,N]=I.useState(!1),[_,M]=I.useState(null);I.useEffect(()=>{if(e){const ee=localStorage.getItem("bolttech_datasource");if(ee)try{const ve=JSON.parse(ee);ve&&typeof ve=="object"&&ve.data&&(M(ve.data),ve.url&&g(ve.url))}catch{}}},[e]);const U=ee=>{const ve=ee.target.files?.[0];if(!ve)return;if(!ve.name.endsWith(".json")){R("Please select a JSON file");return}const ge=new FileReader;ge.onload=Ie=>{try{const Ae=Ie.target?.result,Ge=JSON.parse(Ae);u(Ae),M(Ge),R("")}catch{R("Invalid JSON file"),u(""),M(null)}},ge.readAsText(ve)},H=async()=>{if(!h.trim()){R("Please enter a URL");return}F(!0),R("");try{const ee=await fetch(h);if(!ee.ok)throw new Error("Failed to fetch data");const ve=await ee.json();b(JSON.stringify(ve,null,2)),M(ve),R("")}catch{R("Failed to fetch data from URL")}finally{F(!1)}},q=ee=>{b(ee),R("");try{if(ee.trim()){const ve=JSON.parse(ee);M(ve)}else M(null)}catch{R("Invalid JSON format"),M(null)}},Q=()=>{let ee;try{switch(n){case"file":if(!i){R("Please select a file");return}ee=JSON.parse(i);break;case"url":if(!p){R("Please fetch data from URL first");return}ee=JSON.parse(p);break;case"code":if(!p.trim()){R("Please enter JSON data");return}ee=JSON.parse(p);break}n==="url"?localStorage.setItem("bolttech_datasource",JSON.stringify({from:n,data:ee,url:h})):localStorage.setItem("bolttech_datasource",JSON.stringify({from:n,data:ee})),r(ee),t()}catch{R("Invalid JSON data")}},Y=()=>{navigator.clipboard.writeText(p),N(!0),setTimeout(()=>N(!1),2e3)},ie=()=>{try{return p.trim()?(JSON.parse(p),!0):!1}catch{return!1}};return e?m.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:ee=>{ee.target===ee.currentTarget&&t()},children:m.jsxs("div",{className:"flex h-[90vh] w-full max-w-6xl flex-col rounded-none bg-white shadow-xl",children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-[#e8e7ee] bg-white p-6",children:[m.jsx("h2",{className:"text-lg font-bold tracking-wide text-[#170f4f]",children:"DataSource"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("button",{onClick:()=>{localStorage.removeItem("bolttech_datasource"),M(null),u(""),g(""),b("")},className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-red-50 hover:text-red-600",title:"Clean Data",children:"🧹"}),m.jsx("button",{onClick:t,className:"rounded-none p-2 text-gray-400 transition-colors duration-200 hover:bg-gray-50 hover:text-gray-600",children:m.jsx(ce.FiX,{size:18})})]})]}),m.jsx("div",{className:"max-h-[42vh] overflow-y-auto border-b border-[#e8e7ee] px-6 py-4",children:m.jsx(dy,{data:{root:_||{}}})}),m.jsxs("div",{className:"flex border-b border-[#e8e7ee]",children:[m.jsxs("button",{onClick:()=>a("url"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="url"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[m.jsx(ce.FiLink,{size:16}),"URL"]}),m.jsxs("button",{onClick:()=>a("file"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="file"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[m.jsx(ce.FiUpload,{size:16}),"Import File"]}),m.jsxs("button",{onClick:()=>a("code"),className:`flex items-center gap-2 px-6 py-3 text-sm font-medium transition-colors duration-200 ${n==="code"?"border-b-2 border-[#30aab3] text-[#170f4f]":"text-gray-500 hover:text-[#170f4f]"}`,children:[m.jsx(ce.FiCode,{size:16}),"Custom Code"]})]}),m.jsxs("div",{className:"flex-1 overflow-hidden p-6",children:[n==="code"&&m.jsxs("div",{className:"flex h-full flex-col",children:[m.jsx("div",{className:"mb-4",children:m.jsx("p",{className:"mb-1 text-sm text-gray-500",children:"Enter your JSON data below"})}),m.jsxs("div",{className:"flex-1 overflow-hidden rounded-none bg-gray-900",children:[m.jsxs("div",{className:"flex items-center justify-between border-b border-gray-700 bg-gray-800 px-4 py-2",children:[m.jsx("span",{className:"text-sm font-medium text-gray-300",children:"JSON Editor"}),p&&m.jsxs("button",{onClick:Y,className:"flex items-center gap-1 text-xs text-gray-400 hover:text-gray-300",children:[O?m.jsx(ce.FiCheck,{size:12}):m.jsx(ce.FiCopy,{size:12}),O?"Copied!":"Copy"]})]}),m.jsx("div",{className:"h-full overflow-auto pb-8",children:m.jsx("textarea",{value:p,onChange:ee=>q(ee.target.value),placeholder:'{"name": "John", "age": 30, "city": "New York"}',className:"h-full w-full resize-none border-none bg-transparent p-4 font-mono text-sm text-gray-300 outline-none"})})]})]}),n==="url"&&m.jsx("div",{className:"bte:flex bte:h-full bte:flex-col",children:m.jsxs("div",{className:"bte:mb-4",children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"JSON URL"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"url",value:h,onChange:ee=>g(ee.target.value),placeholder:"https://api.example.com/data.json",className:"flex-1 rounded-none border border-[#e8e7ee] px-3 py-2 focus:outline-none focus:ring-2 focus:ring-[#30aab3]"}),m.jsx("button",{onClick:H,disabled:D||!h.trim(),className:"rounded-none bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3] disabled:cursor-not-allowed disabled:opacity-50",children:D?"Loading...":"Fetch"})]})]})}),n==="file"&&m.jsxs("div",{className:"bte:flex bte:h-full bte:flex-col",children:[m.jsxs("div",{className:"bte:mb-4",children:[m.jsx("label",{className:"mb-2 block text-sm font-medium text-gray-700",children:"Select JSON File"}),m.jsxs("div",{className:"rounded-none border-2 border-dashed border-[#e8e7ee] p-8 text-center transition-colors duration-200 hover:border-[#30aab3]",children:[m.jsx("input",{type:"file",accept:".json",onChange:U,className:"hidden",id:"file-upload"}),m.jsxs("label",{htmlFor:"file-upload",className:"flex cursor-pointer flex-col items-center",children:[m.jsx(ce.FiUpload,{size:48,className:"mb-4 text-gray-400"}),m.jsx(ce.FiUpload,{size:48,className:"mb-4 text-gray-400"}),m.jsx("span",{className:"text-lg font-medium text-gray-700",children:"Click to upload JSON file"}),m.jsx("span",{className:"mt-1 text-sm text-gray-500",children:"or drag and drop"})]})]})]}),i&&m.jsxs("div",{className:"flex-1 overflow-hidden rounded-none bg-gray-900",children:[m.jsx("div",{className:"flex items-center justify-between border-b border-gray-700 bg-gray-800 px-4 py-2",children:m.jsx("span",{className:"text-sm font-medium text-gray-300",children:"File Preview"})}),m.jsx("div",{className:"h-32 overflow-auto",children:m.jsx("pre",{className:"whitespace-pre-wrap p-4 font-mono text-sm text-gray-300",children:m.jsx("code",{children:i})})})]})]}),S&&m.jsx("div",{className:"mt-4 rounded-none border border-red-200 bg-red-50 p-3",children:m.jsx("p",{className:"text-sm text-red-600",children:S})})]}),m.jsxs("div",{className:"flex items-center justify-end gap-3 border-t border-[#e8e7ee] p-6",children:[m.jsx("button",{onClick:t,className:"rounded-none bg-gray-100 px-4 py-2 text-gray-700 transition-colors duration-200 hover:bg-gray-200",children:"Cancel"}),m.jsx("button",{onClick:Q,disabled:n==="file"&&!i||n==="url"&&!p||n==="code"&&!p||!ie(),className:"rounded-none bg-[#170f4f] px-4 py-2 text-white transition-colors duration-200 hover:bg-[#30aab3] disabled:cursor-not-allowed disabled:opacity-50",children:"Import Data"})]})]})}):null},HorizontalDataView:dy},Symbol.toStringTag,{value:"Module"}));$t.TemplateEditor=nk,Object.defineProperty($t,Symbol.toStringTag,{value:"Module"})}));
|