zenml-nightly 0.58.0.dev20240528__py3-none-any.whl → 0.58.1.dev20240608__py3-none-any.whl
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.
- CONTRIBUTING.md +1 -1
- README.md +3 -3
- RELEASE_NOTES.md +37 -1
- zenml/VERSION +1 -1
- zenml/artifacts/utils.py +19 -3
- zenml/cli/__init__.py +28 -22
- zenml/cli/base.py +17 -6
- zenml/cli/pipeline.py +18 -3
- zenml/cli/server.py +1 -1
- zenml/cli/stack.py +1 -1
- zenml/client.py +24 -4
- zenml/config/docker_settings.py +3 -0
- zenml/config/global_config.py +1 -1
- zenml/config/secret_reference_mixin.py +1 -1
- zenml/environment.py +1 -1
- zenml/integrations/huggingface/materializers/huggingface_tokenizer_materializer.py +11 -12
- zenml/integrations/kaniko/flavors/kaniko_image_builder_flavor.py +2 -44
- zenml/integrations/kubernetes/flavors/kubernetes_orchestrator_flavor.py +4 -1
- zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py +4 -16
- zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint.py +2 -1
- zenml/integrations/kubernetes/orchestrators/manifest_utils.py +15 -15
- zenml/integrations/s3/flavors/s3_artifact_store_flavor.py +0 -38
- zenml/integrations/spark/flavors/spark_step_operator_flavor.py +1 -38
- zenml/materializers/base_materializer.py +3 -3
- zenml/materializers/cloudpickle_materializer.py +1 -1
- zenml/orchestrators/base_orchestrator.py +1 -1
- zenml/orchestrators/local_docker/local_docker_orchestrator.py +1 -37
- zenml/orchestrators/step_runner.py +2 -2
- zenml/stack/flavor.py +3 -1
- zenml/stack/stack.py +2 -2
- zenml/stack/stack_component.py +42 -2
- zenml/steps/base_step.py +1 -1
- zenml/steps/entrypoint_function_utils.py +2 -2
- zenml/steps/utils.py +1 -1
- zenml/utils/dashboard_utils.py +1 -1
- zenml/utils/pipeline_docker_image_builder.py +23 -3
- zenml/utils/source_utils.py +32 -7
- zenml/zen_server/auth.py +2 -2
- zenml/zen_server/dashboard/assets/{404-DIgYOHj5.js → 404-D5p6PIdn.js} +1 -1
- zenml/zen_server/dashboard/assets/{@radix-BrEjOMvl.js → @radix-C9DBgJhe.js} +9 -9
- zenml/zen_server/dashboard/assets/@react-router-DYovave8.js +29 -0
- zenml/zen_server/dashboard/assets/@reactflow-C26Olbza.css +1 -0
- zenml/zen_server/dashboard/assets/@reactflow-CegZ5GV3.js +17 -0
- zenml/zen_server/dashboard/assets/@tanstack-CEbkxrhX.js +30 -0
- zenml/zen_server/dashboard/assets/{AwarenessChannel-CqRB1HO9.js → AwarenessChannel-DDpU6zHx.js} +1 -1
- zenml/zen_server/dashboard/assets/{Cards-DuJ8uYGM.js → Cards-wfOUm_Ae.js} +1 -1
- zenml/zen_server/dashboard/assets/CodeSnippet-iinvcx17.js +9 -0
- zenml/zen_server/dashboard/assets/Commands-DGnWeAWF.js +1 -0
- zenml/zen_server/dashboard/assets/{CopyButton-BOFZCr5Z.js → CopyButton-eUfW9370.js} +2 -2
- zenml/zen_server/dashboard/assets/{CsvVizualization-D4QRvdDk.js → CsvVizualization-CoIkmrjr.js} +7 -7
- zenml/zen_server/dashboard/assets/{DisplayDate-BoCi3-Ng.js → DisplayDate-BdguISQF.js} +1 -1
- zenml/zen_server/dashboard/assets/{EmptyState-CPJglRv0.js → EmptyState-BkooiGtL.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-C9i5GdiH.js → Error-CDMUBgpN.js} +1 -1
- zenml/zen_server/dashboard/assets/{Helpbox-CnuWjxcc.js → Helpbox-BV73V0J6.js} +1 -1
- zenml/zen_server/dashboard/assets/Infobox-DG7zmtut.js +1 -0
- zenml/zen_server/dashboard/assets/{InlineAvatar-DE_1-SDN.js → InlineAvatar-BiKh3XC5.js} +1 -1
- zenml/zen_server/dashboard/assets/{MarkdownVisualization-CMOybYJS.js → MarkdownVisualization-DsB2QZiK.js} +1 -1
- zenml/zen_server/dashboard/assets/{PageHeader-D7r1Jb6H.js → PageHeader-D-u0obgg.js} +1 -1
- zenml/zen_server/dashboard/assets/{Pagination-0-Hv-4DJ.js → Pagination-ZYqHJ5gE.js} +1 -1
- zenml/zen_server/dashboard/assets/{PasswordChecker-C2ImqlTr.js → PasswordChecker-DSLBp7Vl.js} +1 -1
- zenml/zen_server/dashboard/assets/{SetPassword-074iDZCm.js → SetPassword-Dq6iUfpW.js} +1 -1
- zenml/zen_server/dashboard/assets/{SuccessStep-DEeKB0Wq.js → SuccessStep-BHhPYxz9.js} +1 -1
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-4be5el9x.js → UpdatePasswordSchemas-4FyPPBY9.js} +1 -1
- zenml/zen_server/dashboard/assets/{aws-BaCucHs5.js → aws-t0gKCj_R.js} +1 -1
- zenml/zen_server/dashboard/assets/{check-circle-GxOo3117.js → check-circle-BVvhm5dy.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-down-tsuIW52H.js → chevron-down-zcvCWmyP.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-right-double-Dfr12EKG.js → chevron-right-double-CJ50E9Gr.js} +1 -1
- zenml/zen_server/dashboard/assets/{cloud-only-lInATL8-.js → cloud-only-DsILLhXk.js} +1 -1
- zenml/zen_server/dashboard/assets/{copy-B8yRmO5i.js → copy-BRhQz3j-.js} +1 -1
- zenml/zen_server/dashboard/assets/{database-BiV4iNgr.js → database-CRRnyFWh.js} +1 -1
- zenml/zen_server/dashboard/assets/{docker-EYFTGVBw.js → docker-BAonhm6G.js} +1 -1
- zenml/zen_server/dashboard/assets/{file-text-Bp-4kjON.js → file-text-CbVERUON.js} +1 -1
- zenml/zen_server/dashboard/assets/{help-hEyYkC3q.js → help-B8rqCvqn.js} +1 -1
- zenml/zen_server/dashboard/assets/index-BhYPVFKa.js +55 -0
- zenml/zen_server/dashboard/assets/index-CRZ5qzG3.css +1 -0
- zenml/zen_server/dashboard/assets/index.esm-F7nqy9zY.js +1 -0
- zenml/zen_server/dashboard/assets/{login-mutation-BfEeVmSl.js → login-mutation-CDARn8rx.js} +1 -1
- zenml/zen_server/dashboard/assets/{not-found-an_3Z-Ep.js → not-found-D1_I0ubu.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-NlxFzoaz.js → page-7IP7WH5_.js} +1 -1
- zenml/zen_server/dashboard/assets/page-B5Y_HW80.js +1 -0
- zenml/zen_server/dashboard/assets/{page-Ba5l9-eg.js → page-BQT1Zxsp.js} +1 -1
- zenml/zen_server/dashboard/assets/page-BR7WTzLa.js +1 -0
- zenml/zen_server/dashboard/assets/page-BmuIfr11.js +1 -0
- zenml/zen_server/dashboard/assets/{page-C6Xn5o3F.js → page-Bwrw_wb_.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-GXA0bsIT.js → page-ByiUk9rA.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-68OLHx44.js → page-C9lMl0g8.js} +2 -2
- zenml/zen_server/dashboard/assets/{page-NTQrxRsu.js → page-CK0iF8U_.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Cea5XeRB.js → page-CQTaUp7q.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-ZJ5Cy_-x.js → page-Ca8Zw2SO.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-B90yVxNb.js → page-CaDkuI7b.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-C1Jl09zF.js → page-DB_mi8or.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DDY5j-6S.js +1 -0
- zenml/zen_server/dashboard/assets/page-DIz9_5Du.js +2 -0
- zenml/zen_server/dashboard/assets/page-DPrgvGj6.js +9 -0
- zenml/zen_server/dashboard/assets/{page-C0opS_t4.js → page-D_Vj_UH1.js} +1 -1
- zenml/zen_server/dashboard/assets/page-QPP3iIQH.js +1 -0
- zenml/zen_server/dashboard/assets/{page-Bjj9GHVF.js → page-bpP11sGS.js} +1 -1
- zenml/zen_server/dashboard/assets/page-xA0WcjLa.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DVAcOIuw.js → page-zYQJvPVh.js} +1 -1
- zenml/zen_server/dashboard/assets/{play-circle-DsngbHkK.js → play-circle-DK5QMJyp.js} +1 -1
- zenml/zen_server/dashboard/assets/{terminal-Cb3ce-nr.js → terminal-B2ovgWuz.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-CdcOI8-c.js → update-server-settings-mutation-SaWcyAnk.js} +1 -1
- zenml/zen_server/dashboard/assets/{url-DLJUVIKc.js → url-ZKNs861m.js} +1 -1
- zenml/zen_server/dashboard/assets/zod-DrZvVLjd.js +1 -0
- zenml/zen_server/dashboard/index.html +8 -8
- zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
- zenml/zen_server/dashboard_legacy/index.html +1 -1
- zenml/zen_server/dashboard_legacy/{precache-manifest.05e51e85bd64770b2708d408a88d7028.js → precache-manifest.8e59f98d08e9c4c7cb3ef9f0bab7093f.js} +4 -4
- zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
- zenml/zen_server/dashboard_legacy/static/js/main.a238a4d2.chunk.js +2 -0
- zenml/zen_server/dashboard_legacy/static/js/main.a238a4d2.chunk.js.map +1 -0
- zenml/zen_server/deploy/helm/Chart.yaml +1 -1
- zenml/zen_server/deploy/helm/README.md +3 -3
- zenml/zen_server/deploy/helm/values.yaml +7 -7
- zenml/zen_server/jwt.py +11 -11
- zenml/zen_server/routers/auth_endpoints.py +17 -0
- zenml/zen_server/routers/steps_endpoints.py +11 -3
- zenml/zen_stores/migrations/versions/0.58.1_release.py +23 -0
- zenml/zen_stores/rest_zen_store.py +17 -1
- {zenml_nightly-0.58.0.dev20240528.dist-info → zenml_nightly-0.58.1.dev20240608.dist-info}/METADATA +4 -3
- {zenml_nightly-0.58.0.dev20240528.dist-info → zenml_nightly-0.58.1.dev20240608.dist-info}/RECORD +124 -123
- zenml/zen_server/dashboard/assets/@react-router-CCpyfPW-.js +0 -29
- zenml/zen_server/dashboard/assets/@reactflow-CF_wPv-n.js +0 -17
- zenml/zen_server/dashboard/assets/@reactflow-lOPj8ZwY.css +0 -1
- zenml/zen_server/dashboard/assets/@tanstack-GFKzItNf.js +0 -30
- zenml/zen_server/dashboard/assets/CodeSnippet-CBFcxTGW.js +0 -9
- zenml/zen_server/dashboard/assets/Commands-BQb0_PAa.js +0 -1
- zenml/zen_server/dashboard/assets/Infobox-DV6YqO5N.js +0 -1
- zenml/zen_server/dashboard/assets/index-D4zsM9tz.css +0 -1
- zenml/zen_server/dashboard/assets/index-DKgtNG83.js +0 -56
- zenml/zen_server/dashboard/assets/index.esm-DNxbrOmx.js +0 -1
- zenml/zen_server/dashboard/assets/page-0AGNIDYi.js +0 -1
- zenml/zen_server/dashboard/assets/page-6Gp_NCQL.js +0 -14
- zenml/zen_server/dashboard/assets/page-BiyORkbM.js +0 -1
- zenml/zen_server/dashboard/assets/page-BnrWbXYJ.js +0 -2
- zenml/zen_server/dashboard/assets/page-CUqLUGbU.js +0 -1
- zenml/zen_server/dashboard/assets/page-CWpGAjSi.js +0 -1
- zenml/zen_server/dashboard/assets/page-DFQa6C6e.js +0 -1
- zenml/zen_server/dashboard/assets/page-Dn87PjPv.js +0 -1
- zenml/zen_server/dashboard/assets/zod-DueGCdzx.js +0 -1
- zenml/zen_server/dashboard_legacy/static/js/main.41d438ec.chunk.js +0 -2
- zenml/zen_server/dashboard_legacy/static/js/main.41d438ec.chunk.js.map +0 -1
- {zenml_nightly-0.58.0.dev20240528.dist-info → zenml_nightly-0.58.1.dev20240608.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.58.0.dev20240528.dist-info → zenml_nightly-0.58.1.dev20240608.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.58.0.dev20240528.dist-info → zenml_nightly-0.58.1.dev20240608.dist-info}/entry_points.txt +0 -0
zenml/zen_server/dashboard/assets/{CsvVizualization-D4QRvdDk.js → CsvVizualization-CoIkmrjr.js}
RENAMED
@@ -1,15 +1,15 @@
|
|
1
|
-
import{j as V}from"./@tanstack-
|
1
|
+
import{j as V}from"./@tanstack-CEbkxrhX.js";import{c as we,r as pe}from"./@radix-C9DBgJhe.js";import{aL as Ce,aM as xe,aN as ke,aO as Re,aP as Oe,aQ as Te}from"./index-BhYPVFKa.js";import"./@react-router-DYovave8.js";import"./@reactflow-CegZ5GV3.js";var be={exports:{}};/* @license
|
2
2
|
Papa Parse
|
3
3
|
v5.4.1
|
4
4
|
https://github.com/mholt/PapaParse
|
5
5
|
License: MIT
|
6
|
-
*/(function(se,ge){(function(ae,v){se.exports=v()})(we,function ae(){var v=typeof self<"u"?self:typeof window<"u"?window:v!==void 0?v:{},Z=!v.document&&!!v.postMessage,B=v.IS_PAPA_WORKER||!1,
|
7
|
-
`,d='"',A=d+d,b=!1,a=null,w=!1;(function(){if(typeof e=="object"){if(typeof e.delimiter!="string"||h.BAD_DELIMITERS.filter(function(n){return e.delimiter.indexOf(n)!==-1}).length||(s=e.delimiter),(typeof e.quotes=="boolean"||typeof e.quotes=="function"||Array.isArray(e.quotes))&&(r=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(b=e.skipEmptyLines),typeof e.newline=="string"&&(f=e.newline),typeof e.quoteChar=="string"&&(d=e.quoteChar),typeof e.header=="boolean"&&(i=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");a=e.columns}e.escapeChar!==void 0&&(A=e.escapeChar+d),(typeof e.escapeFormulae=="boolean"||e.escapeFormulae instanceof RegExp)&&(w=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var u=new RegExp(ne(d),"g");if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return
|
8
|
-
`,'"',h.BYTE_ORDER_MARK],h.WORKERS_SUPPORTED=!Z&&!!v.Worker,h.NODE_STREAM_INPUT=1,h.LocalChunkSize=10485760,h.RemoteChunkSize=5242880,h.DefaultDelimiter=",",h.Parser=de,h.ParserHandle=_e,h.NetworkStreamer=oe,h.FileStreamer=ue,h.StringStreamer=ie,h.ReadableStreamStreamer=he,v.jQuery){var re=v.jQuery;re.fn.parse=function(t){var e=t.config||{},r=[];return this.each(function(f){if(!(re(this).prop("tagName").toUpperCase()==="INPUT"&&re(this).attr("type").toLowerCase()==="file"&&v.FileReader)||!this.files||this.files.length===0)return!0;for(var d=0;d<this.files.length;d++)r.push({file:this.files[d],inputElem:this,instanceConfig:re.extend({},e)})}),i(),this;function i(){if(r.length!==0){var f,d,A,b,a=r[0];if(p(t.before)){var w=t.before(a.file,a.inputElem);if(typeof w=="object"){if(w.action==="abort")return f="AbortError",d=a.file,A=a.inputElem,b=w.reason,void(p(t.error)&&t.error({name:f},d,A,b));if(w.action==="skip")return void s();typeof w.config=="object"&&(a.instanceConfig=re.extend(a.instanceConfig,w.config))}else if(w==="skip")return void s()}var u=a.instanceConfig.complete;a.instanceConfig.complete=function(
|
9
|
-
`),K=1<
|
6
|
+
*/(function(se,ge){(function(ae,v){se.exports=v()})(we,function ae(){var v=typeof self<"u"?self:typeof window<"u"?window:v!==void 0?v:{},Z=!v.document&&!!v.postMessage,B=v.IS_PAPA_WORKER||!1,P={},ee=0,h={parse:function(t,e){var r=(e=e||{}).dynamicTyping||!1;if(p(r)&&(e.dynamicTypingFunction=r,r={}),e.dynamicTyping=r,e.transform=!!p(e.transform)&&e.transform,e.worker&&h.WORKERS_SUPPORTED){var i=function(){if(!h.WORKERS_SUPPORTED)return!1;var f=(A=v.URL||v.webkitURL||null,b=ae.toString(),h.BLOB_URL||(h.BLOB_URL=A.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",b,")();"],{type:"text/javascript"})))),d=new v.Worker(f),A,b;return d.onmessage=Ee,d.id=ee++,P[d.id]=d}();return i.userStep=e.step,i.userChunk=e.chunk,i.userComplete=e.complete,i.userError=e.error,e.step=p(e.step),e.chunk=p(e.chunk),e.complete=p(e.complete),e.error=p(e.error),delete e.worker,void i.postMessage({input:t,config:e,workerId:i.id})}var s=null;return h.NODE_STREAM_INPUT,typeof t=="string"?(t=function(f){return f.charCodeAt(0)===65279?f.slice(1):f}(t),s=e.download?new oe(e):new ie(e)):t.readable===!0&&p(t.read)&&p(t.on)?s=new he(e):(v.File&&t instanceof File||t instanceof Object)&&(s=new ue(e)),s.stream(t)},unparse:function(t,e){var r=!1,i=!0,s=",",f=`\r
|
7
|
+
`,d='"',A=d+d,b=!1,a=null,w=!1;(function(){if(typeof e=="object"){if(typeof e.delimiter!="string"||h.BAD_DELIMITERS.filter(function(n){return e.delimiter.indexOf(n)!==-1}).length||(s=e.delimiter),(typeof e.quotes=="boolean"||typeof e.quotes=="function"||Array.isArray(e.quotes))&&(r=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(b=e.skipEmptyLines),typeof e.newline=="string"&&(f=e.newline),typeof e.quoteChar=="string"&&(d=e.quoteChar),typeof e.header=="boolean"&&(i=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");a=e.columns}e.escapeChar!==void 0&&(A=e.escapeChar+d),(typeof e.escapeFormulae=="boolean"||e.escapeFormulae instanceof RegExp)&&(w=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var u=new RegExp(ne(d),"g");if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return U(null,t,b);if(typeof t[0]=="object")return U(a||Object.keys(t[0]),t,b)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||a),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),U(t.fields||[],t.data||[],b);throw new Error("Unable to serialize unrecognized input");function U(n,m,D){var E="";typeof n=="string"&&(n=JSON.parse(n)),typeof m=="string"&&(m=JSON.parse(m));var I=Array.isArray(n)&&0<n.length,O=!Array.isArray(m[0]);if(I&&i){for(var T=0;T<n.length;T++)0<T&&(E+=s),E+=S(n[T],T);0<m.length&&(E+=f)}for(var o=0;o<m.length;o++){var l=I?n.length:m[o].length,y=!1,R=I?Object.keys(m[o]).length===0:m[o].length===0;if(D&&!I&&(y=D==="greedy"?m[o].join("").trim()==="":m[o].length===1&&m[o][0].length===0),D==="greedy"&&I){for(var g=[],L=0;L<l;L++){var C=O?n[L]:L;g.push(m[o][C])}y=g.join("").trim()===""}if(!y){for(var _=0;_<l;_++){0<_&&!R&&(E+=s);var N=I&&O?n[_]:_;E+=S(m[o][N],_)}o<m.length-1&&(!D||0<l&&!R)&&(E+=f)}}return E}function S(n,m){if(n==null)return"";if(n.constructor===Date)return JSON.stringify(n).slice(1,25);var D=!1;w&&typeof n=="string"&&w.test(n)&&(n="'"+n,D=!0);var E=n.toString().replace(u,A);return(D=D||r===!0||typeof r=="function"&&r(n,m)||Array.isArray(r)&&r[m]||function(I,O){for(var T=0;T<O.length;T++)if(-1<I.indexOf(O[T]))return!0;return!1}(E,h.BAD_DELIMITERS)||-1<E.indexOf(s)||E.charAt(0)===" "||E.charAt(E.length-1)===" ")?d+E+d:E}}};if(h.RECORD_SEP="",h.UNIT_SEP="",h.BYTE_ORDER_MARK="\uFEFF",h.BAD_DELIMITERS=["\r",`
|
8
|
+
`,'"',h.BYTE_ORDER_MARK],h.WORKERS_SUPPORTED=!Z&&!!v.Worker,h.NODE_STREAM_INPUT=1,h.LocalChunkSize=10485760,h.RemoteChunkSize=5242880,h.DefaultDelimiter=",",h.Parser=de,h.ParserHandle=_e,h.NetworkStreamer=oe,h.FileStreamer=ue,h.StringStreamer=ie,h.ReadableStreamStreamer=he,v.jQuery){var re=v.jQuery;re.fn.parse=function(t){var e=t.config||{},r=[];return this.each(function(f){if(!(re(this).prop("tagName").toUpperCase()==="INPUT"&&re(this).attr("type").toLowerCase()==="file"&&v.FileReader)||!this.files||this.files.length===0)return!0;for(var d=0;d<this.files.length;d++)r.push({file:this.files[d],inputElem:this,instanceConfig:re.extend({},e)})}),i(),this;function i(){if(r.length!==0){var f,d,A,b,a=r[0];if(p(t.before)){var w=t.before(a.file,a.inputElem);if(typeof w=="object"){if(w.action==="abort")return f="AbortError",d=a.file,A=a.inputElem,b=w.reason,void(p(t.error)&&t.error({name:f},d,A,b));if(w.action==="skip")return void s();typeof w.config=="object"&&(a.instanceConfig=re.extend(a.instanceConfig,w.config))}else if(w==="skip")return void s()}var u=a.instanceConfig.complete;a.instanceConfig.complete=function(U){p(u)&&u(U,a.file,a.inputElem),s()},h.parse(a.file,a.instanceConfig)}else p(t.complete)&&t.complete()}function s(){r.splice(0,1),i()}}}function H(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var r=le(e);r.chunkSize=parseInt(r.chunkSize),e.step||e.chunk||(r.chunkSize=null),this._handle=new _e(r),(this._handle.streamer=this)._config=r}).call(this,t),this.parseChunk=function(e,r){if(this.isFirstChunk&&p(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);i!==void 0&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var f=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var d=f.meta.cursor;this._finished||(this._partialLine=s.substring(d-this._baseIndex),this._baseIndex=d),f&&f.data&&(this._rowCount+=f.data.length);var A=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(B)v.postMessage({results:f,workerId:h.WORKER_ID,finished:A});else if(p(this._config.chunk)&&!r){if(this._config.chunk(f,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);f=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(f.data),this._completeResults.errors=this._completeResults.errors.concat(f.errors),this._completeResults.meta=f.meta),this._completed||!A||!p(this._config.complete)||f&&f.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),A||f&&f.meta.paused||this._nextChunk(),f}this._halted=!0},this._sendError=function(e){p(this._config.error)?this._config.error(e):B&&this._config.error&&v.postMessage({workerId:h.WORKER_ID,error:e,finished:!1})}}function oe(t){var e;(t=t||{}).chunkSize||(t.chunkSize=h.RemoteChunkSize),H.call(this,t),this._nextChunk=Z?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(r){this._input=r,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),Z||(e.onload=Q(this._chunkLoaded,this),e.onerror=Q(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Z),this._config.downloadRequestHeaders){var r=this._config.downloadRequestHeaders;for(var i in r)e.setRequestHeader(i,r[i])}if(this._config.chunkSize){var s=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+s)}try{e.send(this._config.downloadRequestBody)}catch(f){this._chunkError(f.message)}Z&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(r){var i=r.getResponseHeader("Content-Range");return i===null?-1:parseInt(i.substring(i.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(r){var i=e.statusText||r;this._sendError(new Error(i))}}function ue(t){var e,r;(t=t||{}).chunkSize||(t.chunkSize=h.LocalChunkSize),H.call(this,t);var i=typeof FileReader<"u";this.stream=function(s){this._input=s,r=s.slice||s.webkitSlice||s.mozSlice,i?((e=new FileReader).onload=Q(this._chunkLoaded,this),e.onerror=Q(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var s=this._input;if(this._config.chunkSize){var f=Math.min(this._start+this._config.chunkSize,this._input.size);s=r.call(s,this._start,f)}var d=e.readAsText(s,this._config.encoding);i||this._chunkLoaded({target:{result:d}})},this._chunkLoaded=function(s){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(s.target.result)},this._chunkError=function(){this._sendError(e.error)}}function ie(t){var e;H.call(this,t=t||{}),this.stream=function(r){return e=r,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var r,i=this._config.chunkSize;return i?(r=e.substring(0,i),e=e.substring(i)):(r=e,e=""),this._finished=!e,this.parseChunk(r)}}}function he(t){H.call(this,t=t||{});var e=[],r=!0,i=!1;this.pause=function(){H.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){H.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(s){this._input=s,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=Q(function(s){try{e.push(typeof s=="string"?s:s.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(f){this._streamError(f)}},this),this._streamError=Q(function(s){this._streamCleanUp(),this._sendError(s)},this),this._streamEnd=Q(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function _e(t){var e,r,i,s=Math.pow(2,53),f=-s,d=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,A=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,b=this,a=0,w=0,u=!1,U=!1,S=[],n={data:[],errors:[],meta:{}};if(p(t.step)){var m=t.step;t.step=function(o){if(n=o,I())E();else{if(E(),n.data.length===0)return;a+=o.data.length,t.preview&&a>t.preview?r.abort():(n.data=n.data[0],m(n,b))}}}function D(o){return t.skipEmptyLines==="greedy"?o.join("").trim()==="":o.length===1&&o[0].length===0}function E(){return n&&i&&(T("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+h.DefaultDelimiter+"'"),i=!1),t.skipEmptyLines&&(n.data=n.data.filter(function(o){return!D(o)})),I()&&function(){if(!n)return;function o(y,R){p(t.transformHeader)&&(y=t.transformHeader(y,R)),S.push(y)}if(Array.isArray(n.data[0])){for(var l=0;I()&&l<n.data.length;l++)n.data[l].forEach(o);n.data.splice(0,1)}else n.data.forEach(o)}(),function(){if(!n||!t.header&&!t.dynamicTyping&&!t.transform)return n;function o(y,R){var g,L=t.header?{}:[];for(g=0;g<y.length;g++){var C=g,_=y[g];t.header&&(C=g>=S.length?"__parsed_extra":S[g]),t.transform&&(_=t.transform(_,C)),_=O(C,_),C==="__parsed_extra"?(L[C]=L[C]||[],L[C].push(_)):L[C]=_}return t.header&&(g>S.length?T("FieldMismatch","TooManyFields","Too many fields: expected "+S.length+" fields but parsed "+g,w+R):g<S.length&&T("FieldMismatch","TooFewFields","Too few fields: expected "+S.length+" fields but parsed "+g,w+R)),L}var l=1;return!n.data.length||Array.isArray(n.data[0])?(n.data=n.data.map(o),l=n.data.length):n.data=o(n.data,0),t.header&&n.meta&&(n.meta.fields=S),w+=l,n}()}function I(){return t.header&&S.length===0}function O(o,l){return y=o,t.dynamicTypingFunction&&t.dynamicTyping[y]===void 0&&(t.dynamicTyping[y]=t.dynamicTypingFunction(y)),(t.dynamicTyping[y]||t.dynamicTyping)===!0?l==="true"||l==="TRUE"||l!=="false"&&l!=="FALSE"&&(function(R){if(d.test(R)){var g=parseFloat(R);if(f<g&&g<s)return!0}return!1}(l)?parseFloat(l):A.test(l)?new Date(l):l===""?null:l):l;var y}function T(o,l,y,R){var g={type:o,code:l,message:y};R!==void 0&&(g.row=R),n.errors.push(g)}this.parse=function(o,l,y){var R=t.quoteChar||'"';if(t.newline||(t.newline=function(C,_){C=C.substring(0,1048576);var N=new RegExp(ne(_)+"([^]*?)"+ne(_),"gm"),F=(C=C.replace(N,"")).split("\r"),q=C.split(`
|
9
|
+
`),K=1<q.length&&q[0].length<F[0].length;if(F.length===1||K)return`
|
10
10
|
`;for(var z=0,k=0;k<F.length;k++)F[k][0]===`
|
11
11
|
`&&z++;return z>=F.length/2?`\r
|
12
|
-
`:"\r"}(o,R)),i=!1,t.delimiter)p(t.delimiter)&&(t.delimiter=t.delimiter(o),n.meta.delimiter=t.delimiter);else{var g=function(C,_,
|
12
|
+
`:"\r"}(o,R)),i=!1,t.delimiter)p(t.delimiter)&&(t.delimiter=t.delimiter(o),n.meta.delimiter=t.delimiter);else{var g=function(C,_,N,F,q){var K,z,k,x;q=q||[","," ","|",";",h.RECORD_SEP,h.UNIT_SEP];for(var Y=0;Y<q.length;Y++){var c=q[Y],te=0,W=0,X=0;k=void 0;for(var J=new de({comments:F,delimiter:c,newline:_,preview:10}).parse(C),$=0;$<J.data.length;$++)if(N&&D(J.data[$]))X++;else{var G=J.data[$].length;W+=G,k!==void 0?0<G&&(te+=Math.abs(G-k),k=G):k=G}0<J.data.length&&(W/=J.data.length-X),(z===void 0||te<=z)&&(x===void 0||x<W)&&1.99<W&&(z=te,K=c,x=W)}return{successful:!!(t.delimiter=K),bestDelimiter:K}}(o,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);g.successful?t.delimiter=g.bestDelimiter:(i=!0,t.delimiter=h.DefaultDelimiter),n.meta.delimiter=t.delimiter}var L=le(t);return t.preview&&t.header&&L.preview++,e=o,r=new de(L),n=r.parse(e,l,y),E(),u?{meta:{paused:!0}}:n||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,r.abort(),e=p(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){b.streamer._halted?(u=!1,b.streamer.parseChunk(e,!0)):setTimeout(b.resume,3)},this.aborted=function(){return U},this.abort=function(){U=!0,r.abort(),n.meta.aborted=!0,p(t.complete)&&t.complete(n),e=""}}function ne(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function de(t){var e,r=(t=t||{}).delimiter,i=t.newline,s=t.comments,f=t.step,d=t.preview,A=t.fastMode,b=e=t.quoteChar===void 0||t.quoteChar===null?'"':t.quoteChar;if(t.escapeChar!==void 0&&(b=t.escapeChar),(typeof r!="string"||-1<h.BAD_DELIMITERS.indexOf(r))&&(r=","),s===r)throw new Error("Comment character same as delimiter");s===!0?s="#":(typeof s!="string"||-1<h.BAD_DELIMITERS.indexOf(s))&&(s=!1),i!==`
|
13
13
|
`&&i!=="\r"&&i!==`\r
|
14
14
|
`&&(i=`
|
15
|
-
`);var a=0,w=!1;this.parse=function(u,
|
15
|
+
`);var a=0,w=!1;this.parse=function(u,U,S){if(typeof u!="string")throw new Error("Input must be a string");var n=u.length,m=r.length,D=i.length,E=s.length,I=p(f),O=[],T=[],o=[],l=a=0;if(!u)return M();if(t.header&&!U){var y=u.split(i)[0].split(r),R=[],g={},L=!1;for(var C in y){var _=y[C];p(t.transformHeader)&&(_=t.transformHeader(_,C));var N=_,F=g[_]||0;for(0<F&&(L=!0,N=_+"_"+F),g[_]=F+1;R.includes(N);)N=N+"_"+F;R.push(N)}if(L){var q=u.split(i);q[0]=R.join(r),u=q.join(i)}}if(A||A!==!1&&u.indexOf(e)===-1){for(var K=u.split(i),z=0;z<K.length;z++){if(o=K[z],a+=o.length,z!==K.length-1)a+=i.length;else if(S)return M();if(!s||o.substring(0,E)!==s){if(I){if(O=[],X(o.split(r)),fe(),w)return M()}else X(o.split(r));if(d&&d<=z)return O=O.slice(0,d),M(!0)}}return M()}for(var k=u.indexOf(r,a),x=u.indexOf(i,a),Y=new RegExp(ne(b)+ne(e),"g"),c=u.indexOf(e,a);;)if(u[a]!==e)if(s&&o.length===0&&u.substring(a,a+E)===s){if(x===-1)return M();a=x+D,x=u.indexOf(i,a),k=u.indexOf(r,a)}else if(k!==-1&&(k<x||x===-1))o.push(u.substring(a,k)),a=k+m,k=u.indexOf(r,a);else{if(x===-1)break;if(o.push(u.substring(a,x)),G(x+D),I&&(fe(),w))return M();if(d&&O.length>=d)return M(!0)}else for(c=a,a++;;){if((c=u.indexOf(e,c+1))===-1)return S||T.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:O.length,index:a}),$();if(c===n-1)return $(u.substring(a,c).replace(Y,e));if(e!==b||u[c+1]!==b){if(e===b||c===0||u[c-1]!==b){k!==-1&&k<c+1&&(k=u.indexOf(r,c+1)),x!==-1&&x<c+1&&(x=u.indexOf(i,c+1));var te=J(x===-1?k:Math.min(k,x));if(u.substr(c+1+te,m)===r){o.push(u.substring(a,c).replace(Y,e)),u[a=c+1+te+m]!==e&&(c=u.indexOf(e,a)),k=u.indexOf(r,a),x=u.indexOf(i,a);break}var W=J(x);if(u.substring(c+1+W,c+1+W+D)===i){if(o.push(u.substring(a,c).replace(Y,e)),G(c+1+W+D),k=u.indexOf(r,a),c=u.indexOf(e,a),I&&(fe(),w))return M();if(d&&O.length>=d)return M(!0);break}T.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:O.length,index:a}),c++}}else c++}return $();function X(j){O.push(j),l=a}function J(j){var ye=0;if(j!==-1){var ce=u.substring(c+1,j);ce&&ce.trim()===""&&(ye=ce.length)}return ye}function $(j){return S||(j===void 0&&(j=u.substring(a)),o.push(j),a=n,X(o),I&&fe()),M()}function G(j){a=j,X(o),o=[],x=u.indexOf(i,a)}function M(j){return{data:O,errors:T,meta:{delimiter:r,linebreak:i,aborted:w,truncated:!!j,cursor:l+(U||0)}}}function fe(){f(M()),O=[],T=[]}},this.abort=function(){w=!0},this.getCharIndex=function(){return a}}function Ee(t){var e=t.data,r=P[e.workerId],i=!1;if(e.error)r.userError(e.error,e.file);else if(e.results&&e.results.data){var s={abort:function(){i=!0,me(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ve,resume:ve};if(p(r.userStep)){for(var f=0;f<e.results.data.length&&(r.userStep({data:e.results.data[f],errors:e.results.errors,meta:e.results.meta},s),!i);f++);delete e.results}else p(r.userChunk)&&(r.userChunk(e.results,s,e.file),delete e.results)}e.finished&&!i&&me(e.workerId,e.results)}function me(t,e){var r=P[t];p(r.userComplete)&&r.userComplete(e),r.terminate(),delete P[t]}function ve(){throw new Error("Not implemented.")}function le(t){if(typeof t!="object"||t===null)return t;var e=Array.isArray(t)?[]:{};for(var r in t)e[r]=le(t[r]);return e}function Q(t,e){return function(){t.apply(e,arguments)}}function p(t){return typeof t=="function"}return B&&(v.onmessage=function(t){var e=t.data;if(h.WORKER_ID===void 0&&e&&(h.WORKER_ID=e.workerId),typeof e.input=="string")v.postMessage({workerId:h.WORKER_ID,results:h.parse(e.input,e.config),finished:!0});else if(v.File&&e.input instanceof File||e.input instanceof Object){var r=h.parse(e.input,e.config);r&&v.postMessage({workerId:h.WORKER_ID,results:r,finished:!0})}}),(oe.prototype=Object.create(H.prototype)).constructor=oe,(ue.prototype=Object.create(H.prototype)).constructor=ue,(ie.prototype=Object.create(ie.prototype)).constructor=ie,(he.prototype=Object.create(H.prototype)).constructor=he,h})})(be);var Ae=be.exports;function ze({content:se}){const[ge,ae]=pe.useState([]),[v,Z]=pe.useState([]);return pe.useEffect(()=>{Ae.parse(se,{header:!0,skipEmptyLines:!0,complete:B=>{const P=[],ee=[];B.data.forEach(h=>{P.push(Object.keys(h)),ee.push(Object.values(h))}),ae(P[0]),Z(ee)}})},[se]),V.jsx("div",{className:"overflow-hidden overflow-x-auto rounded-md border",children:V.jsxs(Ce,{children:[V.jsx(xe,{className:"bg-theme-surface-tertiary",children:V.jsx(ke,{children:ge.map((B,P)=>V.jsx(Re,{className:"text-theme-text-secondary",children:B},P))})}),V.jsx(Oe,{children:v.map((B,P)=>V.jsx(ke,{children:B.map((ee,h)=>V.jsx(Te,{className:"bg-theme-surface-primary",children:ee},h))},P))})]})})}export{ze as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as t}from"./@tanstack-
|
1
|
+
import{j as t}from"./@tanstack-CEbkxrhX.js";function a({dateString:e}){const n=new Date(`${e}Z`).toLocaleString();return t.jsx(t.Fragment,{children:n})}export{a as D};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as l}from"./@tanstack-
|
1
|
+
import{j as l}from"./@tanstack-CEbkxrhX.js";function n({children:e,icon:t}){return l.jsxs("section",{className:"layout-container flex h-full w-full flex-1 flex-col items-center justify-center gap-5",children:[t,e]})}export{n as E};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@tanstack-
|
1
|
+
import{j as e}from"./@tanstack-CEbkxrhX.js";import{i as r,q as a}from"./index-BhYPVFKa.js";import{E as l}from"./EmptyState-BkooiGtL.js";function c({err:t,isAlertCircle:s=!1}){return e.jsx(l,{icon:s?e.jsx(r,{className:"h-[120px] w-[120px] fill-neutral-300"}):e.jsx(a,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:t.message})})})}export{c as E};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@tanstack-
|
1
|
+
import{j as e}from"./@tanstack-CEbkxrhX.js";import{B as t,ay as a}from"./index-BhYPVFKa.js";import{H as l}from"./help-B8rqCvqn.js";function m({link:s,text:r="Do you need help?"}){return e.jsxs(t,{className:"flex w-full flex-wrap items-center justify-between p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx(l,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:r})]}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:a({intent:"primary",emphasis:"subtle",size:"md"}),href:s,children:"Browse our docs"})]})}export{m as H};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as r}from"./@tanstack-CEbkxrhX.js";import{s as n,P as i,az as m}from"./index-BhYPVFKa.js";const o=m("flex items-center text-text-sm rounded-md border px-4 py-3",{variants:{intent:{primary:"border-primary-400 bg-primary-25",neutral:"border-theme-border-moderate"}},defaultVariants:{intent:"primary"}});function l({children:e,className:t,intent:a,...s}){return r.jsxs("div",{...s,className:n(o({intent:a}),t),children:[r.jsx(i,{className:"mr-4 h-5 w-5 shrink-0 fill-theme-text-brand"}),r.jsx("div",{className:"w-full min-w-0",children:e})]})}export{l as I};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@tanstack-
|
1
|
+
import{j as e}from"./@tanstack-CEbkxrhX.js";import{A as s,b as a}from"./index-BhYPVFKa.js";function m({username:t}){return e.jsxs("div",{className:"inline-flex items-center gap-1",children:[e.jsx(s,{size:"sm",children:e.jsx(a,{size:"sm",children:t[0]})}),e.jsx("p",{className:"text-text-sm font-semibold text-theme-text-primary",children:t})]})}export{m as I};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as Un}from"./@tanstack-GFKzItNf.js";import{c as Ne,g as br}from"./@radix-BrEjOMvl.js";function wr(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Sr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Cr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Er={};function _e(n,e){return((e||Er).jsx?Cr:Sr).test(n)}const Ir=/[ \t\n\f\r]/g;function Ar(n){return typeof n=="object"?n.type==="text"?Be(n.value):!1:Be(n)}function Be(n){return n.replace(Ir,"")===""}class Nn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}Nn.prototype.property={};Nn.prototype.normal={};Nn.prototype.space=null;function Tt(n,e){const t={},r={};let i=-1;for(;++i<n.length;)Object.assign(t,n[i].property),Object.assign(r,n[i].normal);return new Nn(t,r,e)}function se(n){return n.toLowerCase()}class tn{constructor(e,t){this.property=e,this.attribute=t}}tn.prototype.space=null;tn.prototype.boolean=!1;tn.prototype.booleanish=!1;tn.prototype.overloadedBoolean=!1;tn.prototype.number=!1;tn.prototype.commaSeparated=!1;tn.prototype.spaceSeparated=!1;tn.prototype.commaOrSpaceSeparated=!1;tn.prototype.mustUseProperty=!1;tn.prototype.defined=!1;let Pr=0;const L=Sn(),$=Sn(),zt=Sn(),k=Sn(),B=Sn(),An=Sn(),Z=Sn();function Sn(){return 2**++Pr}const ce=Object.freeze(Object.defineProperty({__proto__:null,boolean:L,booleanish:$,commaOrSpaceSeparated:Z,commaSeparated:An,number:k,overloadedBoolean:zt,spaceSeparated:B},Symbol.toStringTag,{value:"Module"})),Gn=Object.keys(ce);class xe extends tn{constructor(e,t,r,i){let l=-1;if(super(e,t),je(this,"space",i),typeof r=="number")for(;++l<Gn.length;){const o=Gn[l];je(this,Gn[l],(r&ce[o])===ce[o])}}}xe.prototype.defined=!0;function je(n,e,t){t&&(n[e]=t)}const Tr={}.hasOwnProperty;function Tn(n){const e={},t={};let r;for(r in n.properties)if(Tr.call(n.properties,r)){const i=n.properties[r],l=new xe(r,n.transform(n.attributes||{},r),i,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),e[r]=l,t[se(r)]=r,t[se(l.attribute)]=r}return new Nn(e,t,n.space)}const Lt=Tn({space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ot=Tn({space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Dt(n,e){return e in n?n[e]:e}function Ft(n,e){return Dt(n,e.toLowerCase())}const vt=Tn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ft,properties:{xmlns:null,xmlnsXLink:null}}),Rt=Tn({transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:B,ariaCurrent:null,ariaDescribedBy:B,ariaDetails:null,ariaDisabled:$,ariaDropEffect:B,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:B,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:B,ariaLevel:k,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:B,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:B,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:$,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null}}),zr=Tn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ft,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:An,acceptCharset:B,accessKey:B,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:B,autoFocus:L,autoPlay:L,blocking:B,capture:null,charSet:null,checked:L,cite:null,className:B,cols:k,colSpan:null,content:null,contentEditable:$,controls:L,controlsList:B,coords:k|An,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:zt,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:B,height:k,hidden:L,high:k,href:null,hrefLang:null,htmlFor:B,httpEquiv:B,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:B,itemRef:B,itemScope:L,itemType:B,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:L,optimum:k,pattern:null,ping:B,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:B,required:L,reversed:L,rows:k,rowSpan:k,sandbox:B,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:$,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:B,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:L,disableRemotePlayback:L,prefix:null,property:null,results:k,security:null,unselectable:null}}),Lr=Tn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Dt,properties:{about:Z,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:B,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:An,g2:An,glyphName:An,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:B,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Or=/^data[-\w.:]+$/i,He=/-[a-z]/g,Dr=/[A-Z]/g;function Fr(n,e){const t=se(e);let r=e,i=tn;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Or.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace(He,Rr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!He.test(l)){let o=l.replace(Dr,vr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=xe}return new i(r,e)}function vr(n){return"-"+n.toLowerCase()}function Rr(n){return n.charAt(1).toUpperCase()}const Mr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Nr=Tt([Ot,Lt,vt,Rt,zr],"html"),ke=Tt([Ot,Lt,vt,Rt,Lr],"svg");function _r(n){return n.join(" ").trim()}var Mt={},Ue=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Br=/\n/g,jr=/^\s*/,Hr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ur=/^:\s*/,Vr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qr=/^[;\s]*/,$r=/^\s+|\s+$/g,Wr=`
|
1
|
+
import{j as Un}from"./@tanstack-CEbkxrhX.js";import{c as Ne,g as br}from"./@radix-C9DBgJhe.js";function wr(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Sr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Cr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Er={};function _e(n,e){return((e||Er).jsx?Cr:Sr).test(n)}const Ir=/[ \t\n\f\r]/g;function Ar(n){return typeof n=="object"?n.type==="text"?Be(n.value):!1:Be(n)}function Be(n){return n.replace(Ir,"")===""}class Nn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}Nn.prototype.property={};Nn.prototype.normal={};Nn.prototype.space=null;function Tt(n,e){const t={},r={};let i=-1;for(;++i<n.length;)Object.assign(t,n[i].property),Object.assign(r,n[i].normal);return new Nn(t,r,e)}function se(n){return n.toLowerCase()}class tn{constructor(e,t){this.property=e,this.attribute=t}}tn.prototype.space=null;tn.prototype.boolean=!1;tn.prototype.booleanish=!1;tn.prototype.overloadedBoolean=!1;tn.prototype.number=!1;tn.prototype.commaSeparated=!1;tn.prototype.spaceSeparated=!1;tn.prototype.commaOrSpaceSeparated=!1;tn.prototype.mustUseProperty=!1;tn.prototype.defined=!1;let Pr=0;const L=Sn(),$=Sn(),zt=Sn(),k=Sn(),B=Sn(),An=Sn(),Z=Sn();function Sn(){return 2**++Pr}const ce=Object.freeze(Object.defineProperty({__proto__:null,boolean:L,booleanish:$,commaOrSpaceSeparated:Z,commaSeparated:An,number:k,overloadedBoolean:zt,spaceSeparated:B},Symbol.toStringTag,{value:"Module"})),Gn=Object.keys(ce);class xe extends tn{constructor(e,t,r,i){let l=-1;if(super(e,t),je(this,"space",i),typeof r=="number")for(;++l<Gn.length;){const o=Gn[l];je(this,Gn[l],(r&ce[o])===ce[o])}}}xe.prototype.defined=!0;function je(n,e,t){t&&(n[e]=t)}const Tr={}.hasOwnProperty;function Tn(n){const e={},t={};let r;for(r in n.properties)if(Tr.call(n.properties,r)){const i=n.properties[r],l=new xe(r,n.transform(n.attributes||{},r),i,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),e[r]=l,t[se(r)]=r,t[se(l.attribute)]=r}return new Nn(e,t,n.space)}const Lt=Tn({space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ot=Tn({space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Dt(n,e){return e in n?n[e]:e}function Ft(n,e){return Dt(n,e.toLowerCase())}const vt=Tn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ft,properties:{xmlns:null,xmlnsXLink:null}}),Rt=Tn({transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:B,ariaCurrent:null,ariaDescribedBy:B,ariaDetails:null,ariaDisabled:$,ariaDropEffect:B,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:B,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:B,ariaLevel:k,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:B,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:B,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:$,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null}}),zr=Tn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ft,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:An,acceptCharset:B,accessKey:B,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:B,autoFocus:L,autoPlay:L,blocking:B,capture:null,charSet:null,checked:L,cite:null,className:B,cols:k,colSpan:null,content:null,contentEditable:$,controls:L,controlsList:B,coords:k|An,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:zt,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:B,height:k,hidden:L,high:k,href:null,hrefLang:null,htmlFor:B,httpEquiv:B,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:B,itemRef:B,itemScope:L,itemType:B,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:L,optimum:k,pattern:null,ping:B,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:B,required:L,reversed:L,rows:k,rowSpan:k,sandbox:B,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:$,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:B,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:L,disableRemotePlayback:L,prefix:null,property:null,results:k,security:null,unselectable:null}}),Lr=Tn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Dt,properties:{about:Z,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:B,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:An,g2:An,glyphName:An,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:B,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Or=/^data[-\w.:]+$/i,He=/-[a-z]/g,Dr=/[A-Z]/g;function Fr(n,e){const t=se(e);let r=e,i=tn;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Or.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace(He,Rr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!He.test(l)){let o=l.replace(Dr,vr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=xe}return new i(r,e)}function vr(n){return"-"+n.toLowerCase()}function Rr(n){return n.charAt(1).toUpperCase()}const Mr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Nr=Tt([Ot,Lt,vt,Rt,zr],"html"),ke=Tt([Ot,Lt,vt,Rt,Lr],"svg");function _r(n){return n.join(" ").trim()}var Mt={},Ue=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Br=/\n/g,jr=/^\s*/,Hr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ur=/^:\s*/,Vr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qr=/^[;\s]*/,$r=/^\s+|\s+$/g,Wr=`
|
2
2
|
`,Ve="/",qe="*",wn="",Qr="comment",Xr="declaration",Yr=function(n,e){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];e=e||{};var t=1,r=1;function i(y){var b=y.match(Br);b&&(t+=b.length);var I=y.lastIndexOf(Wr);r=~I?y.length-I:r+y.length}function l(){var y={line:t,column:r};return function(b){return b.position=new o(y),s(),b}}function o(y){this.start=y,this.end={line:t,column:r},this.source=e.source}o.prototype.content=n;function a(y){var b=new Error(e.source+":"+t+":"+r+": "+y);if(b.reason=y,b.filename=e.source,b.line=t,b.column=r,b.source=n,!e.silent)throw b}function u(y){var b=y.exec(n);if(b){var I=b[0];return i(I),n=n.slice(I.length),b}}function s(){u(jr)}function c(y){var b;for(y=y||[];b=f();)b!==!1&&y.push(b);return y}function f(){var y=l();if(!(Ve!=n.charAt(0)||qe!=n.charAt(1))){for(var b=2;wn!=n.charAt(b)&&(qe!=n.charAt(b)||Ve!=n.charAt(b+1));)++b;if(b+=2,wn===n.charAt(b-1))return a("End of comment missing");var I=n.slice(2,b-2);return r+=2,i(I),n=n.slice(b),r+=2,y({type:Qr,comment:I})}}function d(){var y=l(),b=u(Hr);if(b){if(f(),!u(Ur))return a("property missing ':'");var I=u(Vr),w=y({type:Xr,property:$e(b[0].replace(Ue,wn)),value:I?$e(I[0].replace(Ue,wn)):wn});return u(qr),w}}function p(){var y=[];c(y);for(var b;b=d();)b!==!1&&(y.push(b),c(y));return y}return s(),p()};function $e(n){return n?n.replace($r,wn):wn}var Kr=Ne&&Ne.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Mt,"__esModule",{value:!0});var Jr=Kr(Yr);function Gr(n,e){var t=null;if(!n||typeof n!="string")return t;var r=(0,Jr.default)(n),i=typeof e=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,a=l.value;i?e(o,a,l):a&&(t=t||{},t[o]=a)}}),t}var We=Mt.default=Gr;const Zr=We.default||We,Nt=_t("end"),be=_t("start");function _t(n){return e;function e(t){const r=t&&t.position&&t.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ni(n){const e=be(n),t=Nt(n);if(e&&t)return{start:e,end:t}}function vn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Qe(n.position):"start"in n||"end"in n?Qe(n):"line"in n||"column"in n?pe(n):""}function pe(n){return Xe(n&&n.line)+":"+Xe(n&&n.column)}function Qe(n){return pe(n&&n.start)+"-"+pe(n&&n.end)}function Xe(n){return n&&typeof n=="number"?n:1}class Y extends Error{constructor(e,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof e=="string"?i=e:!l.cause&&e&&(o=!0,i=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=vn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}Y.prototype.file="";Y.prototype.name="";Y.prototype.reason="";Y.prototype.message="";Y.prototype.stack="";Y.prototype.column=void 0;Y.prototype.line=void 0;Y.prototype.ancestors=void 0;Y.prototype.cause=void 0;Y.prototype.fatal=void 0;Y.prototype.place=void 0;Y.prototype.ruleId=void 0;Y.prototype.source=void 0;const we={}.hasOwnProperty,ei=new Map,ti=/[A-Z]/g,ri=/-([a-z])/g,ii=new Set(["table","tbody","thead","tfoot","tr"]),li=new Set(["td","th"]),Bt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function oi(n,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=mi(t,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=hi(t,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?ke:Nr,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=jt(i,n,void 0);return l&&typeof l!="string"?l:i.create(n,i.Fragment,{children:l||void 0},void 0)}function jt(n,e,t){if(e.type==="element")return ai(n,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return ui(n,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return ci(n,e,t);if(e.type==="mdxjsEsm")return si(n,e);if(e.type==="root")return pi(n,e,t);if(e.type==="text")return fi(n,e)}function ai(n,e,t){const r=n.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ke,n.schema=i),n.ancestors.push(e);const l=Ut(n,e.tagName,!1),o=di(n,e);let a=Ce(n,e);return ii.has(e.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Ar(u):!0})),Ht(n,o,l,e),Se(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function ui(n,e){if(e.data&&e.data.estree&&n.evaluater){const r=e.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}Mn(n,e.position)}function si(n,e){if(e.data&&e.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(e.data.estree);Mn(n,e.position)}function ci(n,e,t){const r=n.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=ke,n.schema=i),n.ancestors.push(e);const l=e.name===null?n.Fragment:Ut(n,e.name,!0),o=gi(n,e),a=Ce(n,e);return Ht(n,o,l,e),Se(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function pi(n,e,t){const r={};return Se(r,Ce(n,e)),n.create(e,n.Fragment,r,t)}function fi(n,e){return e.value}function Ht(n,e,t,r){typeof t!="string"&&t!==n.Fragment&&n.passNode&&(e.node=r)}function Se(n,e){if(e.length>0){const t=e.length>1?e:e[0];t&&(n.children=t)}}function hi(n,e,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:e;return a?s(l,o,a):s(l,o)}}function mi(n,e){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=be(r);return e(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function di(n,e){const t={};let r,i;for(i in e.properties)if(i!=="children"&&we.call(e.properties,i)){const l=yi(n,i,e.properties[i]);if(l){const[o,a]=l;n.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&li.has(e.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function gi(n,e){const t={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,n.evaluater.evaluateExpression(a.argument))}else Mn(n,e.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const a=r.value.data.estree.body[0];a.type,l=n.evaluater.evaluateExpression(a.expression)}else Mn(n,e.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Ce(n,e){const t=[];let r=-1;const i=n.passKeys?new Map:ei;for(;++r<e.children.length;){const l=e.children[r];let o;if(n.passKeys){const u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){const s=i.get(u)||0;o=u+"-"+s,i.set(u,s+1)}}const a=jt(n,l,o);a!==void 0&&t.push(a)}return t}function yi(n,e,t){const r=Fr(n.schema,e);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?wr(t):_r(t)),r.property==="style"){let i=typeof t=="object"?t:xi(n,String(t));return n.stylePropertyNameCase==="css"&&(i=ki(i)),["style",i]}return[n.elementAttributeNameCase==="react"&&r.space?Mr[r.property]||r.property:r.attribute,t]}}function xi(n,e){const t={};try{Zr(e,r)}catch(i){if(!n.ignoreInvalidStyle){const l=i,o=new Y("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=Bt+"#cannot-parse-style-attribute",o}}return t;function r(i,l){let o=i;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(ri,wi)),t[o]=l}}function Ut(n,e,t){let r;if(!t)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let l=-1,o;for(;++l<i.length;){const a=_e(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=_e(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return we.call(n.components,i)?n.components[i]:i}if(n.evaluater)return n.evaluater.evaluateExpression(r);Mn(n)}function Mn(n,e){const t=new Y("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=n.filePath||void 0,t.url=Bt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function ki(n){const e={};let t;for(t in n)we.call(n,t)&&(e[bi(t)]=n[t]);return e}function bi(n){let e=n.replace(ti,Si);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function wi(n,e){return e.toUpperCase()}function Si(n){return"-"+n.toLowerCase()}const Zn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ci={};function Ei(n,e){const t=e||Ci,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Vt(n,r,i)}function Vt(n,e,t){if(Ii(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(e&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Ye(n.children,e,t)}return Array.isArray(n)?Ye(n,e,t):""}function Ye(n,e,t){const r=[];let i=-1;for(;++i<n.length;)r[i]=Vt(n[i],e,t);return r.join("")}function Ii(n){return!!(n&&typeof n=="object")}const Ke=document.createElement("i");function Ee(n){const e="&"+n+";";Ke.innerHTML=e;const t=Ke.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===e?!1:t}function cn(n,e,t,r){const i=n.length;let l=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(e,t),n.splice(...o);else for(t&&n.splice(e,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(e,0),n.splice(...o),l+=1e4,e+=1e4}function en(n,e){return n.length>0?(cn(n,n.length,0,e),n):e}const Je={}.hasOwnProperty;function Ai(n){const e={};let t=-1;for(;++t<n.length;)Pi(e,n[t]);return e}function Pi(n,e){let t;for(t in e){const i=(Je.call(n,t)?n[t]:void 0)||(n[t]={}),l=e[t];let o;if(l)for(o in l){Je.call(i,o)||(i[o]=[]);const a=l[o];Ti(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Ti(n,e){let t=-1;const r=[];for(;++t<e.length;)(e[t].add==="after"?n:r).push(e[t]);cn(n,0,0,r)}function qt(n,e){const t=Number.parseInt(n,e);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Pn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const sn=yn(/[A-Za-z]/),nn=yn(/[\dA-Za-z]/),zi=yn(/[#-'*+\--9=?A-Z^-~]/);function fe(n){return n!==null&&(n<32||n===127)}const he=yn(/\d/),Li=yn(/[\dA-Fa-f]/),Oi=yn(/[!-/:-@[-`{-~]/);function T(n){return n!==null&&n<-2}function J(n){return n!==null&&(n<0||n===32)}function M(n){return n===-2||n===-1||n===32}const Di=yn(new RegExp("\\p{P}|\\p{S}","u")),Fi=yn(/\s/);function yn(n){return e;function e(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function zn(n){const e=[];let t=-1,r=0,i=0;for(;++t<n.length;){const l=n.charCodeAt(t);let o="";if(l===37&&nn(n.charCodeAt(t+1))&&nn(n.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=n.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(e.push(n.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return e.join("")+n.slice(r)}function j(n,e,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return M(u)?(n.enter(t),a(u)):e(u)}function a(u){return M(u)&&l++<i?(n.consume(u),a):(n.exit(t),e(u))}}const vi={tokenize:Ri};function Ri(n){const e=n.attempt(this.parser.constructs.contentInitial,r,i);let t;return e;function r(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),j(n,e,"linePrefix")}function i(a){return n.enter("paragraph"),l(a)}function l(a){const u=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,o(a)}function o(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return T(a)?(n.consume(a),n.exit("chunkText"),l):(n.consume(a),o)}}const Mi={tokenize:Ni},Ge={tokenize:_i};function Ni(n){const e=this,t=[];let r=0,i,l,o;return a;function a(C){if(r<t.length){const v=t[r];return e.containerState=v[1],n.attempt(v[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&E();const v=e.events.length;let O=v,x;for(;O--;)if(e.events[O][0]==="exit"&&e.events[O][1].type==="chunkFlow"){x=e.events[O][1].end;break}w(r);let R=v;for(;R<e.events.length;)e.events[R][1].end=Object.assign({},x),R++;return cn(e.events,O+1,0,e.events.slice(v)),e.events.length=R,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return d(C);if(i.currentConstruct&&i.currentConstruct.concrete)return y(C);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},n.check(Ge,c,f)(C)}function c(C){return i&&E(),w(r),d(C)}function f(C){return e.parser.lazy[e.now().line]=r!==t.length,o=e.now().offset,y(C)}function d(C){return e.containerState={},n.attempt(Ge,p,y)(C)}function p(C){return r++,t.push([e.currentConstruct,e.containerState]),d(C)}function y(C){if(C===null){i&&E(),w(0),n.consume(C);return}return i=i||e.parser.flow(e.now()),n.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:i}),b(C)}function b(C){if(C===null){I(n.exit("chunkFlow"),!0),w(0),n.consume(C);return}return T(C)?(n.consume(C),I(n.exit("chunkFlow")),r=0,e.interrupt=void 0,a):(n.consume(C),b)}function I(C,v){const O=e.sliceStream(C);if(v&&O.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(O),e.parser.lazy[C.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const R=e.events.length;let V=R,_,H;for(;V--;)if(e.events[V][0]==="exit"&&e.events[V][1].type==="chunkFlow"){if(_){H=e.events[V][1].end;break}_=!0}for(w(r),x=R;x<e.events.length;)e.events[x][1].end=Object.assign({},H),x++;cn(e.events,V+1,0,e.events.slice(R)),e.events.length=x}}function w(C){let v=t.length;for(;v-- >C;){const O=t[v];e.containerState=O[1],O[0].exit.call(e,n)}t.length=C}function E(){i.write([null]),l=void 0,i=void 0,e.containerState._closeFlow=void 0}}function _i(n,e,t){return j(n,n.attempt(this.parser.constructs.document,e,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ze(n){if(n===null||J(n)||Fi(n))return 1;if(Di(n))return 2}function Ie(n,e,t){const r=[];let i=-1;for(;++i<n.length;){const l=n[i].resolveAll;l&&!r.includes(l)&&(e=l(e,t),r.push(l))}return e}const me={name:"attention",tokenize:ji,resolveAll:Bi};function Bi(n,e){let t=-1,r,i,l,o,a,u,s,c;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(r=t;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&e.sliceSerialize(n[r][1]).charCodeAt(0)===e.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[r][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;u=n[r][1].end.offset-n[r][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[r][1].end),d=Object.assign({},n[t][1].start);nt(f,-u),nt(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[t][1].start=Object.assign({},a.end),s=[],n[r][1].end.offset-n[r][1].start.offset&&(s=en(s,[["enter",n[r][1],e],["exit",n[r][1],e]])),s=en(s,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",l,e]]),s=en(s,Ie(e.parser.constructs.insideSpan.null,n.slice(r+1,t),e)),s=en(s,[["exit",l,e],["enter",a,e],["exit",a,e],["exit",i,e]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,s=en(s,[["enter",n[t][1],e],["exit",n[t][1],e]])):c=0,cn(n,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function ji(n,e){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ze(r);let l;return o;function o(u){return l=u,n.enter("attentionSequence"),a(u)}function a(u){if(u===l)return n.consume(u),a;const s=n.exit("attentionSequence"),c=Ze(u),f=!c||c===2&&i||t.includes(u),d=!i||i===2&&c||t.includes(r);return s._open=!!(l===42?f:f&&(i||!d)),s._close=!!(l===42?d:d&&(c||!f)),e(u)}}function nt(n,e){n.column+=e,n.offset+=e,n._bufferIndex+=e}const Hi={name:"autolink",tokenize:Ui};function Ui(n,e,t){let r=0;return i;function i(p){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),l}function l(p){return sn(p)?(n.consume(p),o):s(p)}function o(p){return p===43||p===45||p===46||nn(p)?(r=1,a(p)):s(p)}function a(p){return p===58?(n.consume(p),r=0,u):(p===43||p===45||p===46||nn(p))&&r++<32?(n.consume(p),a):(r=0,s(p))}function u(p){return p===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.exit("autolink"),e):p===null||p===32||p===60||fe(p)?t(p):(n.consume(p),u)}function s(p){return p===64?(n.consume(p),c):zi(p)?(n.consume(p),s):t(p)}function c(p){return nn(p)?f(p):t(p)}function f(p){return p===46?(n.consume(p),r=0,c):p===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(p),n.exit("autolinkMarker"),n.exit("autolink"),e):d(p)}function d(p){if((p===45||nn(p))&&r++<63){const y=p===45?d:f;return n.consume(p),y}return t(p)}}const Xn={tokenize:Vi,partial:!0};function Vi(n,e,t){return r;function r(l){return M(l)?j(n,i,"linePrefix")(l):i(l)}function i(l){return l===null||T(l)?e(l):t(l)}}const $t={name:"blockQuote",tokenize:qi,continuation:{tokenize:$i},exit:Wi};function qi(n,e,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(o),n.exit("blockQuoteMarker"),l}return t(o)}function l(o){return M(o)?(n.enter("blockQuotePrefixWhitespace"),n.consume(o),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),e):(n.exit("blockQuotePrefix"),e(o))}}function $i(n,e,t){const r=this;return i;function i(o){return M(o)?j(n,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return n.attempt($t,e,t)(o)}}function Wi(n){n.exit("blockQuote")}const Wt={name:"characterEscape",tokenize:Qi};function Qi(n,e,t){return r;function r(l){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(l),n.exit("escapeMarker"),i}function i(l){return Oi(l)?(n.enter("characterEscapeValue"),n.consume(l),n.exit("characterEscapeValue"),n.exit("characterEscape"),e):t(l)}}const Qt={name:"characterReference",tokenize:Xi};function Xi(n,e,t){const r=this;let i=0,l,o;return a;function a(f){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),u}function u(f){return f===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(f),n.exit("characterReferenceMarkerNumeric"),s):(n.enter("characterReferenceValue"),l=31,o=nn,c(f))}function s(f){return f===88||f===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(f),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),l=6,o=Li,c):(n.enter("characterReferenceValue"),l=7,o=he,c(f))}function c(f){if(f===59&&i){const d=n.exit("characterReferenceValue");return o===nn&&!Ee(r.sliceSerialize(d))?t(f):(n.enter("characterReferenceMarker"),n.consume(f),n.exit("characterReferenceMarker"),n.exit("characterReference"),e)}return o(f)&&i++<l?(n.consume(f),c):t(f)}}const et={tokenize:Ki,partial:!0},tt={name:"codeFenced",tokenize:Yi,concrete:!0};function Yi(n,e,t){const r=this,i={tokenize:O,partial:!0};let l=0,o=0,a;return u;function u(x){return s(x)}function s(x){const R=r.events[r.events.length-1];return l=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=x,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===a?(o++,n.consume(x),c):o<3?t(x):(n.exit("codeFencedFenceSequence"),M(x)?j(n,f,"whitespace")(x):f(x))}function f(x){return x===null||T(x)?(n.exit("codeFencedFence"),r.interrupt?e(x):n.check(et,b,v)(x)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),d(x))}function d(x){return x===null||T(x)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),f(x)):M(x)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),j(n,p,"whitespace")(x)):x===96&&x===a?t(x):(n.consume(x),d)}function p(x){return x===null||T(x)?f(x):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||T(x)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),f(x)):x===96&&x===a?t(x):(n.consume(x),y)}function b(x){return n.attempt(i,v,I)(x)}function I(x){return n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),w}function w(x){return l>0&&M(x)?j(n,E,"linePrefix",l+1)(x):E(x)}function E(x){return x===null||T(x)?n.check(et,b,v)(x):(n.enter("codeFlowValue"),C(x))}function C(x){return x===null||T(x)?(n.exit("codeFlowValue"),E(x)):(n.consume(x),C)}function v(x){return n.exit("codeFenced"),e(x)}function O(x,R,V){let _=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),P}function P(F){return x.enter("codeFencedFence"),M(F)?j(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===a?(x.enter("codeFencedFenceSequence"),U(F)):V(F)}function U(F){return F===a?(_++,x.consume(F),U):_>=o?(x.exit("codeFencedFenceSequence"),M(F)?j(x,q,"whitespace")(F):q(F)):V(F)}function q(F){return F===null||T(F)?(x.exit("codeFencedFence"),R(F)):V(F)}}}function Ki(n,e,t){const r=this;return i;function i(o){return o===null?t(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}const ne={name:"codeIndented",tokenize:Gi},Ji={tokenize:Zi,partial:!0};function Gi(n,e,t){const r=this;return i;function i(s){return n.enter("codeIndented"),j(n,l,"linePrefix",5)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?n.attempt(Ji,o,u)(s):(n.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(n.exit("codeFlowValue"),o(s)):(n.consume(s),a)}function u(s){return n.exit("codeIndented"),e(s)}}function Zi(n,e,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):j(n,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):T(o)?i(o):t(o)}}const nl={name:"codeText",tokenize:rl,resolve:el,previous:tl};function el(n){let e=n.length-4,t=3,r,i;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[e][1].type==="lineEnding"||n[e][1].type==="space")){for(r=t;++r<e;)if(n[r][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[e][1].type="codeTextPadding",t+=2,e-=2;break}}for(r=t-1,e++;++r<=e;)i===void 0?r!==e&&n[r][1].type!=="lineEnding"&&(i=r):(r===e||n[r][1].type==="lineEnding")&&(n[i][1].type="codeTextData",r!==i+2&&(n[i][1].end=n[r-1][1].end,n.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return n}function tl(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rl(n,e,t){let r=0,i,l;return o;function o(f){return n.enter("codeText"),n.enter("codeTextSequence"),a(f)}function a(f){return f===96?(n.consume(f),r++,a):(n.exit("codeTextSequence"),u(f))}function u(f){return f===null?t(f):f===32?(n.enter("space"),n.consume(f),n.exit("space"),u):f===96?(l=n.enter("codeTextSequence"),i=0,c(f)):T(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),u):(n.enter("codeTextData"),s(f))}function s(f){return f===null||f===32||f===96||T(f)?(n.exit("codeTextData"),u(f)):(n.consume(f),s)}function c(f){return f===96?(n.consume(f),i++,c):i===r?(n.exit("codeTextSequence"),n.exit("codeText"),e(f)):(l.type="codeTextData",s(f))}}function Xt(n){const e={};let t=-1,r,i,l,o,a,u,s;for(;++t<n.length;){for(;t in e;)t=e[t];if(r=n[t],t&&r[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,il(n,t)),t=e[t],s=!0);else if(r[1]._container){for(l=t,i=void 0;l--&&(o=n[l],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(n[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);i&&(r[1].end=Object.assign({},n[i][1].start),a=n.slice(i,t),a.unshift(r),cn(n,i,t-i+1,a))}}return!s}function il(n,e){const t=n[e][1],r=n[e][2];let i=e-1;const l=[],o=t._tokenizer||r.parser[t.contentType](t.start),a=o.events,u=[],s={};let c,f,d=-1,p=t,y=0,b=0;const I=[b];for(;p;){for(;n[++i][1]!==p;);l.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(b=d+1,I.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),d=I.length;d--;){const w=a.slice(I[d],I[d+1]),E=l.pop();u.unshift([E,E+w.length-1]),cn(n,E,2,w)}for(d=-1;++d<u.length;)s[y+u[d][0]]=y+u[d][1],y+=u[d][1]-u[d][0]-1;return s}const ll={tokenize:ul,resolve:al},ol={tokenize:sl,partial:!0};function al(n){return Xt(n),n}function ul(n,e){let t;return r;function r(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):T(a)?n.check(ol,o,l)(a):(n.consume(a),i)}function l(a){return n.exit("chunkContent"),n.exit("content"),e(a)}function o(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function sl(n,e,t){const r=this;return i;function i(o){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),j(n,l,"linePrefix")}function l(o){if(o===null||T(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):n.interrupt(r.parser.constructs.flow,t,e)(o)}}function Yt(n,e,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(w),n.exit(l),d):w===null||w===32||w===41||fe(w)?t(w):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),b(w))}function d(w){return w===62?(n.enter(l),n.consume(w),n.exit(l),n.exit(i),n.exit(r),e):(n.enter(a),n.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(n.exit("chunkString"),n.exit(a),d(w)):w===null||w===60||T(w)?t(w):(n.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(n.consume(w),p):p(w)}function b(w){return!c&&(w===null||w===41||J(w))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),e(w)):c<s&&w===40?(n.consume(w),c++,b):w===41?(n.consume(w),c--,b):w===null||w===32||w===40||fe(w)?t(w):(n.consume(w),w===92?I:b)}function I(w){return w===40||w===41||w===92?(n.consume(w),b):b(w)}}function Kt(n,e,t,r,i,l){const o=this;let a=0,u;return s;function s(p){return n.enter(r),n.enter(i),n.consume(p),n.exit(i),n.enter(l),c}function c(p){return a>999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(n.exit(l),n.enter(i),n.consume(p),n.exit(i),n.exit(r),e):T(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(n.exit("chunkString"),c(p)):(n.consume(p),u||(u=!M(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(n.consume(p),a++,f):f(p)}}function Jt(n,e,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(n.enter(r),n.enter(i),n.consume(d),n.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(n.enter(i),n.consume(d),n.exit(i),n.exit(r),e):(n.enter(l),s(d))}function s(d){return d===o?(n.exit(l),u(o)):d===null?t(d):T(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),j(n,s,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(n.exit("chunkString"),s(d)):(n.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(n.consume(d),c):c(d)}}function Rn(n,e){let t;return r;function r(i){return T(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),t=!0,r):M(i)?j(n,r,t?"linePrefix":"lineSuffix")(i):e(i)}}const cl={name:"definition",tokenize:fl},pl={tokenize:hl,partial:!0};function fl(n,e,t){const r=this;let i;return l;function l(p){return n.enter("definition"),o(p)}function o(p){return Kt.call(r,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),u):t(p)}function u(p){return J(p)?Rn(n,s)(p):s(p)}function s(p){return Yt(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return n.attempt(pl,f,f)(p)}function f(p){return M(p)?j(n,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(n.exit("definition"),r.parser.defined.push(i),e(p)):t(p)}}function hl(n,e,t){return r;function r(a){return J(a)?Rn(n,i)(a):t(a)}function i(a){return Jt(n,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return M(a)?j(n,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?e(a):t(a)}}const ml={name:"hardBreakEscape",tokenize:dl};function dl(n,e,t){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return T(l)?(n.exit("hardBreakEscape"),e(l)):t(l)}}const gl={name:"headingAtx",tokenize:xl,resolve:yl};function yl(n,e){let t=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),t-2>r&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&n[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[t][1].end},l={type:"chunkText",start:n[r][1].start,end:n[t][1].end,contentType:"text"},cn(n,r,t-r+1,[["enter",i,e],["enter",l,e],["exit",l,e],["exit",i,e]])),n}function xl(n,e,t){let r=0;return i;function i(c){return n.enter("atxHeading"),l(c)}function l(c){return n.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(n.consume(c),o):c===null||J(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(n.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(n.exit("atxHeading"),e(c)):M(c)?j(n,a,"whitespace")(c):(n.enter("atxHeadingText"),s(c))}function u(c){return c===35?(n.consume(c),u):(n.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||J(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),s)}}const kl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rt=["pre","script","style","textarea"],bl={name:"htmlFlow",tokenize:El,resolveTo:Cl,concrete:!0},wl={tokenize:Al,partial:!0},Sl={tokenize:Il,partial:!0};function Cl(n){let e=n.length;for(;e--&&!(n[e][0]==="enter"&&n[e][1].type==="htmlFlow"););return e>1&&n[e-2][1].type==="linePrefix"&&(n[e][1].start=n[e-2][1].start,n[e+1][1].start=n[e-2][1].start,n.splice(e-2,2)),n}function El(n,e,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(m),f}function f(m){return m===33?(n.consume(m),d):m===47?(n.consume(m),l=!0,b):m===63?(n.consume(m),i=3,r.interrupt?e:h):sn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(n.consume(m),i=2,p):m===91?(n.consume(m),i=5,a=0,y):sn(m)?(n.consume(m),i=4,r.interrupt?e:h):t(m)}function p(m){return m===45?(n.consume(m),r.interrupt?e:h):t(m)}function y(m){const on="CDATA[";return m===on.charCodeAt(a++)?(n.consume(m),a===on.length?r.interrupt?e:A:y):t(m)}function b(m){return sn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const on=m===47,xn=o.toLowerCase();return!on&&!l&&rt.includes(xn)?(i=1,r.interrupt?e(m):A(m)):kl.includes(o.toLowerCase())?(i=6,on?(n.consume(m),w):r.interrupt?e(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?E(m):C(m))}return m===45||nn(m)?(n.consume(m),o+=String.fromCharCode(m),I):t(m)}function w(m){return m===62?(n.consume(m),r.interrupt?e:A):t(m)}function E(m){return M(m)?(n.consume(m),E):H(m)}function C(m){return m===47?(n.consume(m),H):m===58||m===95||sn(m)?(n.consume(m),v):M(m)?(n.consume(m),C):H(m)}function v(m){return m===45||m===46||m===58||m===95||nn(m)?(n.consume(m),v):O(m)}function O(m){return m===61?(n.consume(m),x):M(m)?(n.consume(m),O):C(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(n.consume(m),u=m,R):M(m)?(n.consume(m),x):V(m)}function R(m){return m===u?(n.consume(m),u=null,_):m===null||T(m)?t(m):(n.consume(m),R)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?O(m):(n.consume(m),V)}function _(m){return m===47||m===62||M(m)?C(m):t(m)}function H(m){return m===62?(n.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):M(m)?(n.consume(m),P):t(m)}function A(m){return m===45&&i===2?(n.consume(m),X):m===60&&i===1?(n.consume(m),W):m===62&&i===4?(n.consume(m),ln):m===63&&i===3?(n.consume(m),h):m===93&&i===5?(n.consume(m),pn):T(m)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(wl,fn,U)(m)):m===null||T(m)?(n.exit("htmlFlowData"),U(m)):(n.consume(m),A)}function U(m){return n.check(Sl,q,fn)(m)}function q(m){return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),F}function F(m){return m===null||T(m)?U(m):(n.enter("htmlFlowData"),A(m))}function X(m){return m===45?(n.consume(m),h):A(m)}function W(m){return m===47?(n.consume(m),o="",rn):A(m)}function rn(m){if(m===62){const on=o.toLowerCase();return rt.includes(on)?(n.consume(m),ln):A(m)}return sn(m)&&o.length<8?(n.consume(m),o+=String.fromCharCode(m),rn):A(m)}function pn(m){return m===93?(n.consume(m),h):A(m)}function h(m){return m===62?(n.consume(m),ln):m===45&&i===2?(n.consume(m),h):A(m)}function ln(m){return m===null||T(m)?(n.exit("htmlFlowData"),fn(m)):(n.consume(m),ln)}function fn(m){return n.exit("htmlFlow"),e(m)}}function Il(n,e,t){const r=this;return i;function i(o){return T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}function Al(n,e,t){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Xn,e,t)}}const Pl={name:"htmlText",tokenize:Tl};function Tl(n,e,t){const r=this;let i,l,o;return a;function a(h){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(h),u}function u(h){return h===33?(n.consume(h),s):h===47?(n.consume(h),O):h===63?(n.consume(h),C):sn(h)?(n.consume(h),V):t(h)}function s(h){return h===45?(n.consume(h),c):h===91?(n.consume(h),l=0,y):sn(h)?(n.consume(h),E):t(h)}function c(h){return h===45?(n.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(n.consume(h),d):T(h)?(o=f,W(h)):(n.consume(h),f)}function d(h){return h===45?(n.consume(h),p):f(h)}function p(h){return h===62?X(h):h===45?d(h):f(h)}function y(h){const ln="CDATA[";return h===ln.charCodeAt(l++)?(n.consume(h),l===ln.length?b:y):t(h)}function b(h){return h===null?t(h):h===93?(n.consume(h),I):T(h)?(o=b,W(h)):(n.consume(h),b)}function I(h){return h===93?(n.consume(h),w):b(h)}function w(h){return h===62?X(h):h===93?(n.consume(h),w):b(h)}function E(h){return h===null||h===62?X(h):T(h)?(o=E,W(h)):(n.consume(h),E)}function C(h){return h===null?t(h):h===63?(n.consume(h),v):T(h)?(o=C,W(h)):(n.consume(h),C)}function v(h){return h===62?X(h):C(h)}function O(h){return sn(h)?(n.consume(h),x):t(h)}function x(h){return h===45||nn(h)?(n.consume(h),x):R(h)}function R(h){return T(h)?(o=R,W(h)):M(h)?(n.consume(h),R):X(h)}function V(h){return h===45||nn(h)?(n.consume(h),V):h===47||h===62||J(h)?_(h):t(h)}function _(h){return h===47?(n.consume(h),X):h===58||h===95||sn(h)?(n.consume(h),H):T(h)?(o=_,W(h)):M(h)?(n.consume(h),_):X(h)}function H(h){return h===45||h===46||h===58||h===95||nn(h)?(n.consume(h),H):P(h)}function P(h){return h===61?(n.consume(h),A):T(h)?(o=P,W(h)):M(h)?(n.consume(h),P):_(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(n.consume(h),i=h,U):T(h)?(o=A,W(h)):M(h)?(n.consume(h),A):(n.consume(h),q)}function U(h){return h===i?(n.consume(h),i=void 0,F):h===null?t(h):T(h)?(o=U,W(h)):(n.consume(h),U)}function q(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||J(h)?_(h):(n.consume(h),q)}function F(h){return h===47||h===62||J(h)?_(h):t(h)}function X(h){return h===62?(n.consume(h),n.exit("htmlTextData"),n.exit("htmlText"),e):t(h)}function W(h){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),rn}function rn(h){return M(h)?j(n,pn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):pn(h)}function pn(h){return n.enter("htmlTextData"),o(h)}}const Ae={name:"labelEnd",tokenize:vl,resolveTo:Fl,resolveAll:Dl},zl={tokenize:Rl},Ll={tokenize:Ml},Ol={tokenize:Nl};function Dl(n){let e=-1;for(;++e<n.length;){const t=n[e][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(e+1,t.type==="labelImage"?4:2),t.type="data",e++)}return n}function Fl(n,e){let t=n.length,r=0,i,l,o,a;for(;t--;)if(i=n[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;n[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(n[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const u={type:n[l][1].type==="labelLink"?"link":"image",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"label",start:Object.assign({},n[l][1].start),end:Object.assign({},n[o][1].end)},c={type:"labelText",start:Object.assign({},n[l+r+2][1].end),end:Object.assign({},n[o-2][1].start)};return a=[["enter",u,e],["enter",s,e]],a=en(a,n.slice(l+1,l+r+3)),a=en(a,[["enter",c,e]]),a=en(a,Ie(e.parser.constructs.insideSpan.null,n.slice(l+r+4,o-3),e)),a=en(a,[["exit",c,e],n[o-2],n[o-1],["exit",s,e]]),a=en(a,n.slice(o+1)),a=en(a,[["exit",u,e]]),cn(n,l,n.length,a),n}function vl(n,e,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(d){return l?l._inactive?f(d):(o=r.parser.defined.includes(Pn(r.sliceSerialize({start:l.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelEnd"),u):t(d)}function u(d){return d===40?n.attempt(zl,c,o?c:f)(d):d===91?n.attempt(Ll,c,o?s:f)(d):o?c(d):f(d)}function s(d){return n.attempt(Ol,c,f)(d)}function c(d){return e(d)}function f(d){return l._balanced=!0,t(d)}}function Rl(n,e,t){return r;function r(f){return n.enter("resource"),n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),i}function i(f){return J(f)?Rn(n,l)(f):l(f)}function l(f){return f===41?c(f):Yt(n,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return J(f)?Rn(n,u)(f):c(f)}function a(f){return t(f)}function u(f){return f===34||f===39||f===40?Jt(n,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return J(f)?Rn(n,c)(f):c(f)}function c(f){return f===41?(n.enter("resourceMarker"),n.consume(f),n.exit("resourceMarker"),n.exit("resource"),e):t(f)}}function Ml(n,e,t){const r=this;return i;function i(a){return Kt.call(r,n,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Pn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(a):t(a)}function o(a){return t(a)}}function Nl(n,e,t){return r;function r(l){return n.enter("reference"),n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),i}function i(l){return l===93?(n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),n.exit("reference"),e):t(l)}}const _l={name:"labelStartImage",tokenize:Bl,resolveAll:Ae.resolveAll};function Bl(n,e,t){const r=this;return i;function i(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),l}function l(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):e(a)}}const jl={name:"labelStartLink",tokenize:Hl,resolveAll:Ae.resolveAll};function Hl(n,e,t){const r=this;return i;function i(o){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(o),n.exit("labelMarker"),n.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):e(o)}}const ee={name:"lineEnding",tokenize:Ul};function Ul(n,e){return t;function t(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),j(n,e,"linePrefix")}}const Vn={name:"thematicBreak",tokenize:Vl};function Vl(n,e,t){let r=0,i;return l;function l(s){return n.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(n.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||T(s))?(n.exit("thematicBreak"),e(s)):t(s)}function u(s){return s===i?(n.consume(s),r++,u):(n.exit("thematicBreakSequence"),M(s)?j(n,a,"whitespace")(s):a(s))}}const K={name:"list",tokenize:Wl,continuation:{tokenize:Ql},exit:Yl},ql={tokenize:Kl,partial:!0},$l={tokenize:Xl,partial:!0};function Wl(n,e,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:he(p)){if(r.containerState.type||(r.containerState.type=y,n.enter(y,{_container:!0})),y==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(Vn,t,s)(p):s(p);if(!r.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(p)}return t(p)}function u(p){return he(p)&&++o<10?(n.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),s(p)):t(p)}function s(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,n.check(Xn,r.interrupt?t:c,n.attempt(ql,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return M(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,e(p)}}function Ql(n,e,t){const r=this;return r.containerState._closeFlow=void 0,n.check(Xn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(n,e,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!M(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt($l,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(n,n.attempt(K,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Xl(n,e,t){const r=this;return j(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(l):t(l)}}function Yl(n){n.exit(this.containerState.type)}function Kl(n,e,t){const r=this;return j(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!M(l)&&o&&o[1].type==="listItemPrefixWhitespace"?e(l):t(l)}}const it={name:"setextUnderline",tokenize:Gl,resolveTo:Jl};function Jl(n,e){let t=n.length,r,i,l;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){r=t;break}n[t][1].type==="paragraph"&&(i=t)}else n[t][1].type==="content"&&n.splice(t,1),!l&&n[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,e]),n.splice(l+1,0,["exit",n[r][1],e]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,e]),n}function Gl(n,e,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(n.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return n.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(n.consume(s),a):(n.exit("setextHeadingLineSequence"),M(s)?j(n,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(n.exit("setextHeadingLine"),e(s)):t(s)}}const Zl={tokenize:no};function no(n){const e=this,t=n.attempt(Xn,r,n.attempt(this.parser.constructs.flowInitial,i,j(n,n.attempt(this.parser.constructs.flow,i,n.attempt(ll,i)),"linePrefix")));return t;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),e.currentConstruct=void 0,t}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),e.currentConstruct=void 0,t}}const eo={resolveAll:Zt()},to=Gt("string"),ro=Gt("text");function Gt(n){return{tokenize:e,resolveAll:Zt(n==="text"?io:void 0)};function e(t){const r=this,i=this.parser.constructs[n],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Zt(n){return e;function e(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return n?n(t,r):t}}function io(n,e){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const r=n[t-1][1],i=e.sliceStream(r);let l=i.length,o=-1,a=0,u;for(;l--;){const s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)u=!0,a++;else if(s!==-1){l++;break}}if(a){const s={type:t===n.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+l,_bufferIndex:l?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},s.start),r.start.offset===r.end.offset?Object.assign(r,s):(n.splice(t,0,["enter",s,e],["exit",s,e]),t+=2)}t++}return n}function lo(n,e,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},l=[];let o=[],a=[];const u={consume:E,enter:C,exit:v,attempt:R(O),check:R(x),interrupt:R(x,{interrupt:!0})},s={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:p,sliceSerialize:d,now:y,defineSkip:b,write:f};let c=e.tokenize.call(s,u);return e.resolveAll&&l.push(e),s;function f(P){return o=en(o,P),I(),o[o.length-1]!==null?[]:(V(e,0),s.events=Ie(l,s.events,s),s.events)}function d(P,A){return ao(p(P),A)}function p(P){return oo(o,P)}function y(){const{line:P,column:A,offset:U,_index:q,_bufferIndex:F}=r;return{line:P,column:A,offset:U,_index:q,_bufferIndex:F}}function b(P){i[P.line]=P.column,H()}function I(){let P;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<A.length;)w(A.charCodeAt(r._bufferIndex));else w(A)}}function w(P){c=c(P)}function E(P){T(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,H()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=P}function C(P,A){const U=A||{};return U.type=P,U.start=y(),s.events.push(["enter",U,s]),a.push(U),U}function v(P){const A=a.pop();return A.end=y(),s.events.push(["exit",A,s]),A}function O(P,A){V(P,A.from)}function x(P,A){A.restore()}function R(P,A){return U;function U(q,F,X){let W,rn,pn,h;return Array.isArray(q)?fn(q):"tokenize"in q?fn([q]):ln(q);function ln(Q){return Ln;function Ln(dn){const Cn=dn!==null&&Q[dn],kn=dn!==null&&Q.null,Jn=[...Array.isArray(Cn)?Cn:Cn?[Cn]:[],...Array.isArray(kn)?kn:kn?[kn]:[]];return fn(Jn)(dn)}}function fn(Q){return W=Q,rn=0,Q.length===0?X:m(Q[rn])}function m(Q){return Ln;function Ln(dn){return h=_(),pn=Q,Q.partial||(s.currentConstruct=Q),Q.name&&s.parser.constructs.disable.null.includes(Q.name)?xn():Q.tokenize.call(A?Object.assign(Object.create(s),A):s,u,on,xn)(dn)}}function on(Q){return P(pn,h),F}function xn(Q){return h.restore(),++rn<W.length?m(W[rn]):X}}}function V(P,A){P.resolveAll&&!l.includes(P)&&l.push(P),P.resolve&&cn(s.events,A,s.events.length-A,P.resolve(s.events.slice(A),s)),P.resolveTo&&(s.events=P.resolveTo(s.events,s))}function _(){const P=y(),A=s.previous,U=s.currentConstruct,q=s.events.length,F=Array.from(a);return{restore:X,from:q};function X(){r=P,s.previous=A,s.currentConstruct=U,s.events.length=q,a=F,H()}}function H(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function oo(n,e){const t=e.start._index,r=e.start._bufferIndex,i=e.end._index,l=e.end._bufferIndex;let o;if(t===i)o=[n[t].slice(r,l)];else{if(o=n.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function ao(n,e){let t=-1;const r=[];let i;for(;++t<n.length;){const l=n[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
3
3
|
`;break}case-3:{o=`\r
|
4
4
|
`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}const uo={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:$t},so={91:cl},co={[-2]:ne,[-1]:ne,32:ne},po={35:gl,42:Vn,45:[it,Vn],60:bl,61:it,95:Vn,96:tt,126:tt},fo={38:Qt,92:Wt},ho={[-5]:ee,[-4]:ee,[-3]:ee,33:_l,38:Qt,42:me,60:[Hi,Pl],91:jl,92:[ml,Wt],93:Ae,95:me,96:nl},mo={null:[me,eo]},go={null:[42,95]},yo={null:[]},xo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:go,contentInitial:so,disable:yo,document:uo,flow:po,flowInitial:co,insideSpan:mo,string:fo,text:ho},Symbol.toStringTag,{value:"Module"}));function ko(n){const t=Ai([xo,...(n||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(vi),document:i(Mi),flow:i(Zl),string:i(to),text:i(ro)};return r;function i(l){return o;function o(a){return lo(r,l,a)}}}function bo(n){for(;!Xt(n););return n}const lt=/[\0\t\n\r]/g;function wo(){let n=1,e="",t=!0,r;return i;function i(l,o,a){const u=[];let s,c,f,d,p;for(l=e+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,e="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(lt.lastIndex=f,s=lt.exec(l),d=s&&s.index!==void 0?s.index:l.length,p=l.charCodeAt(d),!s){e=l.slice(f);break}if(p===10&&f===d&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<d&&(u.push(l.slice(f,d)),n+=d-f),p){case 0:{u.push(65533),n++;break}case 9:{for(c=Math.ceil(n/4)*4,u.push(-2);n++<c;)u.push(-1);break}case 10:{u.push(-4),n=1;break}default:r=!0,n=1}f=d+1}return a&&(r&&u.push(-5),e&&u.push(e),u.push(null)),u}}const So=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Co(n){return n.replace(So,Eo)}function Eo(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return qt(t.slice(l?2:1),l?16:10)}return Ee(t)||n}const nr={}.hasOwnProperty;function Io(n,e,t){return typeof e!="string"&&(t=e,e=void 0),Ao(t)(bo(ko(t).document().write(wo()(n,e,!0))))}function Ao(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Re),autolinkProtocol:_,autolinkEmail:_,atxHeading:l(De),blockQuote:l(Cn),characterEscape:_,characterReference:_,codeFenced:l(kn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(kn,o),codeText:l(Jn,o),codeTextData:_,data:_,codeFlowValue:_,definition:l(fr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(hr),hardBreakEscape:l(Fe),hardBreakTrailing:l(Fe),htmlFlow:l(ve,o),htmlFlowData:_,htmlText:l(ve,o),htmlTextData:_,image:l(mr),label:o,link:l(Re),listItem:l(dr),listItemValue:d,listOrdered:l(Me,f),listUnordered:l(Me),paragraph:l(gr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(De),strong:l(yr),thematicBreak:l(kr)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:dn,autolinkProtocol:Ln,blockQuote:u(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:xn,characterReferenceMarkerNumeric:xn,characterReferenceValue:Q,codeFenced:u(I),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:H,codeIndented:u(w),codeText:u(F),codeTextData:H,data:H,definition:u(),definitionDestinationString:v,definitionLabelString:E,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(A),hardBreakTrailing:u(A),htmlFlow:u(U),htmlFlowData:H,htmlText:u(q),htmlTextData:H,image:u(W),label:pn,labelText:rn,lineEnding:P,link:u(X),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:on,resourceDestinationString:h,resourceTitleString:ln,resource:fn,setextHeading:u(V),setextHeadingLineSequence:R,setextHeadingText:x,strong:u(),thematicBreak:u()}};er(e,(n||{}).mdastExtensions||[]);const t={};return r;function r(g){let S={type:"root",children:[]};const z={stack:[S],tokenStack:[],config:e,enter:a,exit:s,buffer:o,resume:c,data:t},D=[];let N=-1;for(;++N<g.length;)if(g[N][1].type==="listOrdered"||g[N][1].type==="listUnordered")if(g[N][0]==="enter")D.push(N);else{const an=D.pop();N=i(g,an,N)}for(N=-1;++N<g.length;){const an=e[g[N][0]];nr.call(an,g[N][1].type)&&an[g[N][1].type].call(Object.assign({sliceSerialize:g[N][2].sliceSerialize},z),g[N][1])}if(z.tokenStack.length>0){const an=z.tokenStack[z.tokenStack.length-1];(an[1]||ot).call(z,void 0,an[0])}for(S.position={start:gn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:gn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N<e.transforms.length;)S=e.transforms[N](S)||S;return S}function i(g,S,z){let D=S-1,N=-1,an=!1,bn,hn,On,Dn;for(;++D<=z;){const G=g[D];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{G[0]==="enter"?N++:N--,Dn=void 0;break}case"lineEndingBlank":{G[0]==="enter"&&(bn&&!Dn&&!N&&!On&&(On=D),Dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Dn=void 0}if(!N&&G[0]==="enter"&&G[1].type==="listItemPrefix"||N===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(bn){let En=D;for(hn=void 0;En--;){const mn=g[En];if(mn[1].type==="lineEnding"||mn[1].type==="lineEndingBlank"){if(mn[0]==="exit")continue;hn&&(g[hn][1].type="lineEndingBlank",an=!0),mn[1].type="lineEnding",hn=En}else if(!(mn[1].type==="linePrefix"||mn[1].type==="blockQuotePrefix"||mn[1].type==="blockQuotePrefixWhitespace"||mn[1].type==="blockQuoteMarker"||mn[1].type==="listItemIndent"))break}On&&(!hn||On<hn)&&(bn._spread=!0),bn.end=Object.assign({},hn?g[hn][1].start:G[1].end),g.splice(hn||D,0,["exit",bn,G[2]]),D++,z++}if(G[1].type==="listItemPrefix"){const En={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};bn=En,g.splice(D,0,["enter",En,G[2]]),D++,z++,On=void 0,Dn=!0}}}return g[S][1]._spread=an,z}function l(g,S){return z;function z(D){a.call(this,g(D),D),S&&S.call(this,D)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,S,z){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([S,z]),g.position={start:gn(S.start),end:void 0}}function u(g){return S;function S(z){g&&g.call(this,z),s.call(this,z)}}function s(g,S){const z=this.stack.pop(),D=this.tokenStack.pop();if(D)D[0].type!==g.type&&(S?S.call(this,g,D[0]):(D[1]||ot).call(this,g,D[0]));else throw new Error("Cannot close `"+g.type+"` ("+vn({start:g.start,end:g.end})+"): it’s not open");z.position.end=gn(g.end)}function c(){return Ei(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(g){if(this.data.expectingFirstListItemValue){const S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),S=this.stack[this.stack.length-1];S.lang=g}function y(){const g=this.resume(),S=this.stack[this.stack.length-1];S.meta=g}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/(\r?\n|\r)$/g,"")}function E(g){const S=this.resume(),z=this.stack[this.stack.length-1];z.label=S,z.identifier=Pn(this.sliceSerialize(g)).toLowerCase()}function C(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function v(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function O(g){const S=this.stack[this.stack.length-1];if(!S.depth){const z=this.sliceSerialize(g).length;S.depth=z}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function R(g){const S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function _(g){const z=this.stack[this.stack.length-1].children;let D=z[z.length-1];(!D||D.type!=="text")&&(D=xr(),D.position={start:gn(g.start),end:void 0},z.push(D)),this.stack.push(D)}function H(g){const S=this.stack.pop();S.value+=this.sliceSerialize(g),S.position.end=gn(g.end)}function P(g){const S=this.stack[this.stack.length-1];if(this.data.atHardBreak){const z=S.children[S.children.length-1];z.position.end=gn(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(S.type)&&(_.call(this,g),H.call(this,g))}function A(){this.data.atHardBreak=!0}function U(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function q(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function F(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function W(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function rn(g){const S=this.sliceSerialize(g),z=this.stack[this.stack.length-2];z.label=Co(S),z.identifier=Pn(S).toLowerCase()}function pn(){const g=this.stack[this.stack.length-1],S=this.resume(),z=this.stack[this.stack.length-1];if(this.data.inReference=!0,z.type==="link"){const D=g.children;z.children=D}else z.alt=S}function h(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function ln(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function fn(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function on(g){const S=this.resume(),z=this.stack[this.stack.length-1];z.label=S,z.identifier=Pn(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function xn(g){this.data.characterReferenceType=g.type}function Q(g){const S=this.sliceSerialize(g),z=this.data.characterReferenceType;let D;z?(D=qt(S,z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):D=Ee(S);const N=this.stack.pop();N.value+=D,N.position.end=gn(g.end)}function Ln(g){H.call(this,g);const S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(g)}function dn(g){H.call(this,g);const S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(g)}function Cn(){return{type:"blockquote",children:[]}}function kn(){return{type:"code",lang:null,meta:null,value:""}}function Jn(){return{type:"inlineCode",value:""}}function fr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hr(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Fe(){return{type:"break"}}function ve(){return{type:"html",value:""}}function mr(){return{type:"image",title:null,url:"",alt:null}}function Re(){return{type:"link",title:null,url:"",children:[]}}function Me(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function dr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function gr(){return{type:"paragraph",children:[]}}function yr(){return{type:"strong",children:[]}}function xr(){return{type:"text",value:""}}function kr(){return{type:"thematicBreak"}}}function gn(n){return{line:n.line,column:n.column,offset:n.offset}}function er(n,e){let t=-1;for(;++t<e.length;){const r=e[t];Array.isArray(r)?er(n,r):Po(n,r)}}function Po(n,e){let t;for(t in e)if(nr.call(e,t))switch(t){case"canContainEols":{const r=e[t];r&&n[t].push(...r);break}case"transforms":{const r=e[t];r&&n[t].push(...r);break}case"enter":case"exit":{const r=e[t];r&&Object.assign(n[t],r);break}}}function ot(n,e){throw n?new Error("Cannot close `"+n.type+"` ("+vn({start:n.start,end:n.end})+"): a different token (`"+e.type+"`, "+vn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+vn({start:e.start,end:e.end})+") is still open")}function To(n){const e=this;e.parser=t;function t(r){return Io(r,{...e.data("settings"),...n,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function zo(n,e){const t={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(e),!0)};return n.patch(e,t),n.applyData(e,t)}function Lo(n,e){const t={type:"element",tagName:"br",properties:{},children:[]};return n.patch(e,t),[n.applyData(e,t),{type:"text",value:`
|
@@ -1 +1 @@
|
|
1
|
-
import{j as a}from"./@tanstack-
|
1
|
+
import{j as a}from"./@tanstack-CEbkxrhX.js";import{s as m}from"./index-BhYPVFKa.js";function p({children:r,className:e,...o}){return a.jsx("div",{...o,className:m("border-b border-theme-border-moderate bg-theme-surface-primary px-5 py-3",e),children:r})}export{p as P};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as a}from"./@tanstack-
|
1
|
+
import{j as a}from"./@tanstack-CEbkxrhX.js";import{I as D,an as G,s as F}from"./index-BhYPVFKa.js";import{g as Z,c as j,r as d}from"./@radix-C9DBgJhe.js";import{o as k}from"./url-ZKNs861m.js";import{c as A,a as I}from"./@react-router-DYovave8.js";import{D as W}from"./chevron-right-double-CJ50E9Gr.js";var _="Expected a function",T=NaN,q="[object Symbol]",z=/^\s+|\s+$/g,H=/^[-+]0x[0-9a-f]+$/i,Q=/^0b[01]+$/i,U=/^0o[0-7]+$/i,V=parseInt,X=typeof j=="object"&&j&&j.Object===Object&&j,J=typeof self=="object"&&self&&self.Object===Object&&self,K=X||J||Function("return this")(),Y=Object.prototype,ee=Y.toString,te=Math.max,re=Math.min,w=function(){return K.Date.now()};function ne(e,r,o){var n,u,f,m,i,l,g=0,h=!1,t=!1,c=!0;if(typeof e!="function")throw new TypeError(_);r=P(r)||0,y(o)&&(h=!!o.leading,t="maxWait"in o,f=t?te(P(o.maxWait)||0,r):f,c="trailing"in o?!!o.trailing:c);function C(s){var p=n,x=u;return n=u=void 0,g=s,m=e.apply(x,p),m}function M(s){return g=s,i=setTimeout(v,r),h?C(s):m}function $(s){var p=s-l,x=s-g,N=r-p;return t?re(N,f-x):N}function E(s){var p=s-l,x=s-g;return l===void 0||p>=r||p<0||t&&x>=f}function v(){var s=w();if(E(s))return L(s);i=setTimeout(v,$(s))}function L(s){return i=void 0,c&&n?C(s):(n=u=void 0,m)}function B(){i!==void 0&&clearTimeout(i),g=0,n=l=u=i=void 0}function O(){return i===void 0?m:L(w())}function S(){var s=w(),p=E(s);if(n=arguments,u=this,l=s,p){if(i===void 0)return M(l);if(t)return i=setTimeout(v,r),C(l)}return i===void 0&&(i=setTimeout(v,r)),m}return S.cancel=B,S.flush=O,S}function y(e){var r=typeof e;return!!e&&(r=="object"||r=="function")}function ie(e){return!!e&&typeof e=="object"}function ae(e){return typeof e=="symbol"||ie(e)&&ee.call(e)==q}function P(e){if(typeof e=="number")return e;if(ae(e))return T;if(y(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=y(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=e.replace(z,"");var o=Q.test(e);return o||U.test(e)?V(e.slice(2),o?2:8):H.test(e)?T:+e}var se=ne;const oe=Z(se),le=["equals:","contains:","startswith:","endswith:","gte:","gt:","lte:","lt:"];function ce(e){const r=le.find(o=>e.startsWith(o));return r?e.slice(r.length):e}const ue=d.forwardRef(({searchParams:e,searchContains:r=!0,...o},n)=>{const{pathname:u}=A(),f=I(),[m,i]=d.useState(ce(e.name||"")||""),l=d.useMemo(()=>oe(g,500),[]);d.useEffect(()=>()=>{l.cancel()},[l]);function g(t){const c=new URLSearchParams(k(e));c.delete("logical_operator"),t?(c.set("name",r?`contains:${t}`:`${t}`),c.set("operator","or"),c.set("page","1")):(c.delete("name"),c.delete("operator")),f(`${u}?${c.toString()}`,{preventScrollReset:!0,replace:!0})}function h(t){const{value:c}=t.target;i(c),l(c)}return a.jsx(D,{...o,ref:n,value:m,onChange:h,placeholder:"Search...",inputSize:"md"})});ue.displayName="SearchField";const de=e=>d.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12ZM10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12ZM17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12Z",fill:"black"})),fe=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{id:"chevron-left-double"},d.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L7.41421 12L11.7071 16.2929C12.0976 16.6834 12.0976 17.3166 11.7071 17.7071C11.3166 18.0976 10.6834 18.0976 10.2929 17.7071L5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289ZM18.7071 6.29289C19.0976 6.68342 19.0976 7.31658 18.7071 7.70711L14.4142 12L18.7071 16.2929C19.0976 16.6834 19.0976 17.3166 18.7071 17.7071C18.3166 18.0976 17.6834 18.0976 17.2929 17.7071L12.2929 12.7071C11.9024 12.3166 11.9024 11.6834 12.2929 11.2929L17.2929 6.29289C17.6834 5.90237 18.3166 5.90237 18.7071 6.29289Z"}))),me=fe,ge=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{id:"chevron-left"},d.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289Z"}))),pe=ge;function Se({paginate:e,searchParams:r}){const o=I(),{index:n,total_pages:u}=e;function f(i){const l=new URLSearchParams(k(r));l.set("page",i.toString()),o(`?${l.toString()}`,{preventScrollReset:!1})}const m=()=>{const i=[];let g=!1,h=!1;for(let t=1;t<=u;t++){const c=t>1&&t<u&&Math.abs(t-n)>1;(t===1||t===u||c||Math.abs(t-n)<=1)&&(c?t<n&&!g?(i.push(a.jsx(R,{},"ellipsis-left")),g=!0):t>n&&!h&&(i.push(a.jsx(R,{},"ellipsis-right")),h=!0):i.push(a.jsx(b,{"aria-label":`Go to page ${t}`,"aria-current":t===n,className:`${t===n?"!bg-primary-500 text-theme-text-negative":""}`,onClick:()=>f(t),disabled:t===n,children:t},t)))}return i};return a.jsx("nav",{role:"navigation","aria-label":"Pagination Navigation",children:a.jsxs("ul",{className:"flex gap-1",children:[a.jsx("li",{children:a.jsx(b,{disabled:n===1,onClick:()=>f(1),"aria-label":"Go to first page",children:a.jsx(me,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),a.jsx("li",{children:a.jsx(b,{disabled:n===1,onClick:()=>f(n-1),"aria-label":"Go to previous page",children:a.jsx(pe,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),m().map((i,l)=>a.jsx("li",{children:i},l)),a.jsx("li",{children:a.jsx(b,{disabled:n===u,onClick:()=>f(n+1),"aria-label":"Go to next page",children:a.jsx(G,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),a.jsx("li",{children:a.jsx(b,{disabled:n===u,onClick:()=>f(u),"aria-label":"Go to last page",children:a.jsx(W,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})})]})})}function R(){return a.jsx("div",{className:"flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-theme-border-moderate",children:a.jsx(de,{className:"h-4 w-4"})})}const b=d.forwardRef(({className:e,...r},o)=>a.jsx("button",{...r,ref:o,className:F("group/button flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-neutral-300 hover:bg-neutral-200 active:border-neutral-400 active:bg-neutral-300 disabled:pointer-events-none disabled:bg-theme-surface-primary ",e)}));b.displayName="PaginationButton";export{Se as P,ue as S,de as a};
|
zenml/zen_server/dashboard/assets/{PasswordChecker-C2ImqlTr.js → PasswordChecker-DSLBp7Vl.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{j as s}from"./@tanstack-
|
1
|
+
import{j as s}from"./@tanstack-CEbkxrhX.js";const a={uppercase:"Password must contain at least one uppercase letter",lowercase:"Password must contain at least one lowercase letter",number:"Password must contain at least one number",special:"Password must contain at least one special character",length:"Password must be at least 8 characters"};function l({errors:c,val:t}){const e=n(c||{});function r(o){return t?e.includes(o)?"text-theme-text-error":"text-theme-text-success":"text-theme-text-secondary"}return s.jsxs("div",{className:"space-y-1 rounded-md border border-theme-border-moderate bg-theme-surface-secondary px-5 py-3 text-text-xs text-theme-text-secondary",children:[s.jsx("p",{className:"text-text-sm text-theme-text-primary",children:"Password criteria"}),s.jsxs("div",{children:[s.jsx("p",{className:r(a.length),children:"Minimum 8 characters"}),s.jsx("p",{className:r(a.number),children:"Must Contain one Numeric value"}),s.jsx("p",{className:r(a.uppercase),children:"Must include upper cases"}),s.jsx("p",{className:r(a.lowercase),children:"Must include lower cases"}),s.jsx("p",{className:r(a.special),children:"Must include one special character (!,@,#...)"})]})]})}function n(c){const t=[];return Object.values(c).forEach(e=>{typeof e=="string"?t.push(e):Array.isArray(e)?t.push(...e):typeof e=="object"&&e!==null&&t.push(...n(e))}),t}export{l as P};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as s}from"./@tanstack-
|
1
|
+
import{j as s}from"./@tanstack-CEbkxrhX.js";import{I as a,h as p}from"./index-BhYPVFKa.js";import{u as w}from"./index.esm-F7nqy9zY.js";import{t as h}from"./zod-DrZvVLjd.js";import{P as u}from"./PasswordChecker-DSLBp7Vl.js";import{g as f}from"./SuccessStep-BHhPYxz9.js";function b({displayUsername:r=!1,submitHandler:l,headline:o="Create your password",subHeadine:c="Select a password for your account"}){var t;const{register:e,watch:m,handleSubmit:d,formState:{isValid:i,errors:n}}=w({resolver:h(f(r)),mode:"onChange",criteriaMode:"all",defaultValues:{username:""}}),x=(t=n.newPassword)==null?void 0:t.types;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-display-xs font-semibold",children:o}),s.jsx("p",{className:"text-theme-text-secondary",children:c})]}),s.jsxs("form",{onSubmit:d(l),className:"space-y-5",children:[s.jsx("div",{className:"space-y-2",children:r&&s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Username"}),s.jsx(a,{...e("username"),className:"w-full"})]})}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"New Password"}),s.jsx(a,{...e("newPassword"),type:"password",className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Confirm Password"}),s.jsx(a,{...e("confirmPassword"),type:"password",className:"w-full"})]}),s.jsx(u,{val:m("newPassword"),errors:x||[]}),s.jsx(p,{disabled:!i,className:"w-full text-center",size:"md",children:s.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{b as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as t}from"./@tanstack-
|
1
|
+
import{j as t}from"./@tanstack-CEbkxrhX.js";import{r as n}from"./@radix-C9DBgJhe.js";import{z as r,B as u,h as p,r as d}from"./index-BhYPVFKa.js";import{a as x}from"./UpdatePasswordSchemas-4FyPPBY9.js";import{S as h}from"./check-circle-BVvhm5dy.js";import{u as f}from"./url-ZKNs861m.js";import{b as g,L as S}from"./@react-router-DYovave8.js";const l=n.createContext(null);function E({children:e,initialStep:s=1}){const[o,a]=n.useState(s);return t.jsx(l.Provider,{value:{surveyStep:o,setSurveyStep:a},children:e})}function w(){const e=n.useContext(l);if(e===null)throw new Error("useSurveyContext must be used within an SurveyProvider");return e}function F({stepAmount:e}){const{surveyStep:s}=w();return s>e?null:t.jsx("ol",{className:"flex flex-wrap justify-center gap-1 pb-5","aria-label":"progress",children:Array.from({length:e},(o,a)=>t.jsx("li",{"aria-current":s===a+1?"step":void 0,className:`h-0.5 w-[90px] rounded-rounded ${s===a+1?"bg-primary-100":s>a?"bg-primary-300":"bg-neutral-200"}`},a))})}const R=r.object({fullName:r.union([r.string(),r.literal("")]),email:r.union([r.string().email(),r.literal("")]),getUpdates:r.boolean()}).refine(e=>e.getUpdates?e.email!=="":!0),U=r.object({primaryUse:r.string().min(1),amountProductionModels:r.string().min(1)}),k=r.object({channels:r.string().array().min(1),other:r.boolean(),otherVal:r.string().optional()}).refine(e=>e.other?e.otherVal!=="":!0),z=r.object({serverName:r.string().optional()});function y(e=!1){return x.extend({username:r.string()}).refine(s=>s.newPassword===s.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"}).refine(s=>e?s.username.length>0:!0)}y();const v=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071C10.9024 19.3166 10.9024 18.6834 11.2929 18.2929L16.5858 13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H16.5858L11.2929 5.70711C10.9024 5.31658 10.9024 4.68342 11.2929 4.29289Z"}));function A({username:e,subHeader:s,displayBody:o=!0}){const[a]=g(),i=a.get("redirect"),m=i&&`${window.location.origin}${i}`,c=f.safeParse(m);return t.jsxs(u,{className:"flex max-w-[540px] flex-col items-center justify-center space-y-7 px-7 py-9",children:[t.jsx(h,{className:"h-[120px] w-[120px] fill-theme-text-success"}),t.jsxs("div",{className:"space-y-3 text-center",children:[t.jsxs("p",{className:"text-display-xs font-semibold",children:["Congratulations!",t.jsx("br",{}),s]}),o&&t.jsxs("p",{className:"text-theme-text-secondary",children:["You can log in to the dashboard with your username"," ",t.jsx("span",{className:"font-semibold text-theme-text-primary",children:e})," and your password to start exploring!"]}),t.jsx(p,{className:"inline-flex",size:"md",intent:"primary",asChild:!0,children:t.jsxs(S,{to:c.success?c.data:d.home,children:[t.jsx("span",{children:"Go to Dashboard"}),t.jsx(v,{className:"h-5 w-5 fill-white"})]})})]})]})}export{k as A,F as S,A as a,E as b,z as c,R as d,y as g,U as p,w as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{z as s}from"./index-
|
1
|
+
import{z as s}from"./index-BhYPVFKa.js";const e=s.string().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(/[!@#$%^&*(),.?":{}|<>\/]/,"Password must contain at least one special character"),o=s.object({oldPassword:s.string().optional(),newPassword:e,confirmPassword:s.string().min(1)}),t=o.refine(a=>a.newPassword===a.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"});export{o as a,t as u};
|