@sisense/sdk-ui 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +10 -10
- package/dist/ai.js +556 -564
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +38 -38
- package/dist/{derive-chart-family-7Fxxf6Sy.cjs → derive-chart-family-B4sA-ao-.cjs} +136 -136
- package/dist/{derive-chart-family-CVwj-7u5.js → derive-chart-family-nTKwlMms.js} +9089 -8909
- package/dist/index.cjs +20 -17
- package/dist/index.js +10226 -7859
- package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +3 -2
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +11 -3
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +8 -0
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -2
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +3 -2
- package/dist/packages/sdk-ui/src/area-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/bar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/column-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/grouped-items-browser.d.ts +6 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/item-row.d.ts +15 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/types.d.ts +40 -0
- package/dist/packages/sdk-ui/src/common/components/loading-dots.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/popover.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/components/radio.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-data-accumulation.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-get-load-more-function.d.ts +4 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +16 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-manage-slice-to-load.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/calculate-if-all-items-loaded.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/get-hook-state-result.d.ts +9 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/utils/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/types.d.ts +27 -0
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-defaults.d.ts +9 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-last-defined.d.ts +6 -0
- package/dist/packages/sdk-ui/src/common/icons/approval-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/arrow-icon.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/icons/breadcrumbs-arrows-arrow-icon.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/icons/close-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/date-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/elasticube-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/numeric-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/plus-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/table-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/text-attribute-icon.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/components/content-panel.d.ts +8 -1
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +4 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +6 -6
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +61 -30
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-data-browser.d.ts +9 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/add-filter-popover.d.ts +14 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/data-browser/add-filter-popover/popover-header.d.ts +12 -0
- package/dist/packages/sdk-ui/src/data-browser/data-source-selector/data-source-selector.d.ts +7 -0
- package/dist/packages/sdk-ui/src/data-browser/data-source-selector/use-data-source-selection.d.ts +5 -0
- package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/dimensions-browser.d.ts +6 -0
- package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/types.d.ts +74 -0
- package/dist/packages/sdk-ui/src/data-browser/search-input/search-input.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/common/checkbox.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +10 -6
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/calendar-select.d.ts +1 -4
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +1 -4
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +4 -8
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-container.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-context.d.ts +13 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-datetime.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-numerical.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-popover.d.ts +6 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor.d.ts +6 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +3 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/not-supported-section.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/utils.d.ts +5 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +7 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/constants.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel-header.d.ts +6 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +5 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +19 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +19 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/types.d.ts +60 -0
- package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +0 -1
- package/dist/packages/sdk-ui/src/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/line-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +0 -2
- package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pie-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/polar-chart.d.ts +2 -2
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/scatter-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/theme-provider/use-theme-settings.d.ts +1 -1
- package/dist/packages/sdk-ui/src/theme-provider/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +7 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +14 -0
- package/dist/packages/sdk-ui/src/types.d.ts +151 -0
- package/dist/packages/sdk-ui/src/utils/data-sources-utils.d.ts +8 -0
- package/dist/packages/sdk-ui/src/utils/utility-types.d.ts +6 -2
- package/dist/packages/sdk-ui/src/widgets/drilldown-widget.d.ts +1 -1
- package/dist/{use-common-filters-BanIIIUW.js → use-common-filters--WPkVexd.js} +2938 -2888
- package/dist/{use-common-filters-BeKQ1bKU.cjs → use-common-filters-BNKt9a0z.cjs} +55 -55
- package/dist/{widget-composer-4bEKHitq.js → widget-composer-CobNNZ1e.js} +25 -25
- package/dist/{widget-composer-NDI4zssI.cjs → widget-composer-DPqi_qzU.cjs} +1 -1
- package/package.json +7 -7
- /package/dist/packages/sdk-ui/src/{filters/components → common}/icons/search-icon.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Js=Object.defineProperty,Qs=Object.defineProperties;var Ys=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var ot=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s);var jt=(s,e,t)=>e in s?Js(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,U=(s,e)=>{for(var t in e||(e={}))Dt.call(e,t)&&jt(s,t,e[t]);if(ve)for(var t of ve(e))qt.call(e,t)&&jt(s,t,e[t]);return s},W=(s,e)=>Qs(s,Ys(e));var Kt=(s,e)=>{var t={};for(var n in s)Dt.call(s,n)&&e.indexOf(n)<0&&(t[n]=s[n]);if(s!=null&&ve)for(var n of ve(s))e.indexOf(n)<0&&qt.call(s,n)&&(t[n]=s[n]);return t};var lt=(s,e,t)=>new Promise((n,i)=>{var r=a=>{try{l(t.next(a))}catch(c){i(c)}},o=a=>{try{l(t.throw(a))}catch(c){i(c)}},l=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);l((t=t.apply(s,e)).next())}),Gs=function(s,e){this[0]=s,this[1]=e};var d=s=>{var e=s[ot("asyncIterator")],t=!1,n,i={};return e==null?(e=s[ot("iterator")](),n=r=>i[r]=o=>e[r](o)):(e=e.call(s),n=r=>i[r]=o=>{if(t){if(t=!1,r==="throw")throw o;return o}return t=!0,{done:!1,value:new Gs(new Promise(l=>{var a=e[r](o);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),i[ot("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=r=>{throw r},"return"in e&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./widget-composer-
|
|
1
|
+
"use strict";var Js=Object.defineProperty,Qs=Object.defineProperties;var Ys=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var ot=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s);var jt=(s,e,t)=>e in s?Js(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,U=(s,e)=>{for(var t in e||(e={}))Dt.call(e,t)&&jt(s,t,e[t]);if(ve)for(var t of ve(e))qt.call(e,t)&&jt(s,t,e[t]);return s},W=(s,e)=>Qs(s,Ys(e));var Kt=(s,e)=>{var t={};for(var n in s)Dt.call(s,n)&&e.indexOf(n)<0&&(t[n]=s[n]);if(s!=null&&ve)for(var n of ve(s))e.indexOf(n)<0&&qt.call(s,n)&&(t[n]=s[n]);return t};var lt=(s,e,t)=>new Promise((n,i)=>{var r=a=>{try{l(t.next(a))}catch(c){i(c)}},o=a=>{try{l(t.throw(a))}catch(c){i(c)}},l=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);l((t=t.apply(s,e)).next())}),Gs=function(s,e){this[0]=s,this[1]=e};var d=s=>{var e=s[ot("asyncIterator")],t=!1,n,i={};return e==null?(e=s[ot("iterator")](),n=r=>i[r]=o=>e[r](o)):(e=e.call(s),n=r=>i[r]=o=>{if(t){if(t=!1,r==="throw")throw o;return o}return t=!0,{done:!1,value:new Gs(new Promise(l=>{var a=e[r](o);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),i[ot("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=r=>{throw r},"return"in e&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./widget-composer-DPqi_qzU.cjs"),oe=require("./derive-chart-family-B4sA-ao-.cjs"),kt=Symbol.for("yaml.alias"),mt=Symbol.for("yaml.document"),H=Symbol.for("yaml.map"),xt=Symbol.for("yaml.pair"),G=Symbol.for("yaml.scalar"),ge=Symbol.for("yaml.seq"),R=Symbol.for("yaml.node.type"),ie=s=>!!s&&typeof s=="object"&&s[R]===kt,be=s=>!!s&&typeof s=="object"&&s[R]===mt,we=s=>!!s&&typeof s=="object"&&s[R]===H,L=s=>!!s&&typeof s=="object"&&s[R]===xt,A=s=>!!s&&typeof s=="object"&&s[R]===G,Se=s=>!!s&&typeof s=="object"&&s[R]===ge;function $(s){if(s&&typeof s=="object")switch(s[R]){case H:case ge:return!0}return!1}function v(s){if(s&&typeof s=="object")switch(s[R]){case kt:case H:case G:case ge:return!0}return!1}const Ws=s=>(A(s)||$(s))&&!!s.anchor,q=Symbol("break visit"),Zt=Symbol("skip children"),Q=Symbol("remove node");function z(s,e){const t=es(e);be(s)?ce(null,s.contents,t,Object.freeze([s]))===Q&&(s.contents=null):ce(null,s,t,Object.freeze([]))}z.BREAK=q;z.SKIP=Zt;z.REMOVE=Q;function ce(s,e,t,n){const i=ts(s,e,t,n);if(v(i)||L(i))return ss(s,n,i),ce(s,i,t,n);if(typeof i!="symbol"){if($(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){const o=ce(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===q)return q;o===Q&&(e.items.splice(r,1),r-=1)}}}else if(L(e)){n=Object.freeze(n.concat(e));const r=ce("key",e.key,t,n);if(r===q)return q;r===Q&&(e.key=null);const o=ce("value",e.value,t,n);if(o===q)return q;o===Q&&(e.value=null)}}return i}function Ye(s,e){return lt(this,null,function*(){const t=es(e);be(s)?(yield fe(null,s.contents,t,Object.freeze([s])))===Q&&(s.contents=null):yield fe(null,s,t,Object.freeze([]))})}Ye.BREAK=q;Ye.SKIP=Zt;Ye.REMOVE=Q;function fe(s,e,t,n){return lt(this,null,function*(){const i=yield ts(s,e,t,n);if(v(i)||L(i))return ss(s,n,i),fe(s,i,t,n);if(typeof i!="symbol"){if($(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){const o=yield fe(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===q)return q;o===Q&&(e.items.splice(r,1),r-=1)}}}else if(L(e)){n=Object.freeze(n.concat(e));const r=yield fe("key",e.key,t,n);if(r===q)return q;r===Q&&(e.key=null);const o=yield fe("value",e.value,t,n);if(o===q)return q;o===Q&&(e.value=null)}}return i})}function es(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function ts(s,e,t,n){var i,r,o,l,a;if(typeof t=="function")return t(s,e,n);if(we(e))return(i=t.Map)==null?void 0:i.call(t,s,e,n);if(Se(e))return(r=t.Seq)==null?void 0:r.call(t,s,e,n);if(L(e))return(o=t.Pair)==null?void 0:o.call(t,s,e,n);if(A(e))return(l=t.Scalar)==null?void 0:l.call(t,s,e,n);if(ie(e))return(a=t.Alias)==null?void 0:a.call(t,s,e,n)}function ss(s,e,t){const n=e[e.length-1];if($(n))n.items[s]=t;else if(L(n))s==="key"?n.key=t:n.value=t;else if(be(n))n.contents=t;else{const i=ie(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const Hs={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},zs=s=>s.replace(/[!,[\]{}]/g,e=>Hs[e]);class D{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},D.defaultYaml,e),this.tags=Object.assign({},D.defaultTags,t)}clone(){const e=new D(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new D(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:D.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},D.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:D.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},D.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}const[,n,i]=e.match(new RegExp("^(.*!)([^!]*)$","s"));i||t(`The ${e} tag has no suffix`);const r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+zs(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let i;if(e&&n.length>0&&v(e.contents)){const r={};z(e.contents,(o,l)=>{v(l)&&l.tag&&(r[l.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
|
|
2
2
|
`)}}D.defaultYaml={explicit:!1,version:"1.2"};D.defaultTags={"!!":"tag:yaml.org,2002:"};function ns(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function is(s){const e=new Set;return z(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function rs(s,e){for(let t=1;;++t){const n=`${s}${t}`;if(!e.has(n))return n}}function Xs(s,e){const t=[],n=new Map;let i=null;return{onAnchor:r=>{t.push(r),i||(i=is(s));const o=rs(e,i);return i.add(o),o},setAnchors:()=>{for(const r of t){const o=n.get(r);if(typeof o=="object"&&o.anchor&&(A(o.node)||$(o.node)))o.node.anchor=o.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=r,l}}},sourceObjects:n}}function ue(s,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){const o=n[i],l=ue(s,n,String(i),o);l===void 0?delete n[i]:l!==o&&(n[i]=l)}else if(n instanceof Map)for(const i of Array.from(n.keys())){const r=n.get(i),o=ue(s,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(const i of Array.from(n)){const r=ue(s,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(const[i,r]of Object.entries(n)){const o=ue(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}function F(s,e,t){if(Array.isArray(s))return s.map((n,i)=>F(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!Ws(s))return s.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};const i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!(t!=null&&t.keep)?Number(s):s}class Nt{constructor(e){Object.defineProperty(this,R,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!be(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=F(this,"",o);if(typeof i=="function")for(const{count:a,res:c}of o.anchors.values())i(c,a);return typeof r=="function"?ue(r,{"":l},"",l):l}}class Ge extends Nt{constructor(e){super(kt),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return z(e,{Node:(n,i)=>{if(i===this)return z.BREAK;i.anchor===this.source&&(t=i)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:i,maxAliasCount:r}=t,o=this.resolve(i);if(!o){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let l=n.get(o);if(l||(F(o,null,t),l=n.get(o)),!l||l.res===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(r>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=qe(i,o,n)),l.count*l.aliasCount>r)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return l.res}toString(e,t,n){const i=`*${this.source}`;if(e){if(ns(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}}function qe(s,e,t){if(ie(e)){const n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if($(e)){let n=0;for(const i of e.items){const r=qe(s,i,t);r>n&&(n=r)}return n}else if(L(e)){const n=qe(s,e.key,t),i=qe(s,e.value,t);return Math.max(n,i)}return 1}const os=s=>!s||typeof s!="function"&&typeof s!="object";class N extends Nt{constructor(e){super(G),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:F(this.value,e,t)}toString(){return String(this.value)}}N.BLOCK_FOLDED="BLOCK_FOLDED";N.BLOCK_LITERAL="BLOCK_LITERAL";N.PLAIN="PLAIN";N.QUOTE_DOUBLE="QUOTE_DOUBLE";N.QUOTE_SINGLE="QUOTE_SINGLE";const xs="tag:yaml.org,2002:";function Zs(s,e,t){var n;if(e){const i=t.filter(o=>o.tag===e),r=(n=i.find(o=>!o.format))!=null?n:i[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return t.find(i=>{var r;return((r=i.identify)==null?void 0:r.call(i,s))&&!i.format})}function Ae(s,e,t){var f,p,m;if(be(s)&&(s=s.contents),v(s))return s;if(L(s)){const y=(p=(f=t.schema[H]).createNode)==null?void 0:p.call(f,t.schema,null,t);return y.items.push(s),y}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt!="undefined"&&s instanceof BigInt)&&(s=s.valueOf());const{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:l}=t;let a;if(n&&s&&typeof s=="object"){if(a=l.get(s),a)return a.anchor||(a.anchor=i(s)),new Ge(a.anchor);a={anchor:null,node:null},l.set(s,a)}e!=null&&e.startsWith("!!")&&(e=xs+e.slice(2));let c=Zs(s,e,o.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){const y=new N(s);return a&&(a.node=y),y}c=s instanceof Map?o[H]:Symbol.iterator in Object(s)?o[ge]:o[H]}r&&(r(c),delete t.onTagObj);const h=c!=null&&c.createNode?c.createNode(t.schema,s,t):typeof((m=c==null?void 0:c.nodeClass)==null?void 0:m.from)=="function"?c.nodeClass.from(t.schema,s,t):new N(s);return e?h.tag=e:c.default||(h.tag=c.tag),a&&(a.node=h),h}function Ue(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){const r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return Ae(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}const Te=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done;class ls extends Nt{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>v(n)||L(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Te(e))this.add(t);else{const[n,...i]=e,r=this.get(n,!0);if($(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,Ue(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const i=this.get(t,!0);if($(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...i]=e,r=this.get(n,!0);return i.length===0?!t&&A(r)?r.value:r:$(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!L(t))return!1;const n=t.value;return n==null||e&&A(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const i=this.get(t,!0);return $(i)?i.hasIn(n):!1}setIn(e,t){const[n,...i]=e;if(i.length===0)this.set(n,t);else{const r=this.get(n,!0);if($(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,Ue(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}}const en=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function Y(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}const ee=(s,e,t)=>s.endsWith(`
|
|
3
3
|
`)?Y(t,e):t.includes(`
|
|
4
4
|
`)?`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var zs = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var zs = Object.defineProperty, Xs = Object.defineProperties;
|
|
2
|
+
var xs = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Me = Object.getOwnPropertySymbols;
|
|
4
4
|
var Pt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var rt = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s);
|
|
@@ -10,7 +10,7 @@ var jt = (s, e, t) => e in s ? zs(s, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
for (var t of Me(e))
|
|
11
11
|
Dt.call(e, t) && jt(s, t, e[t]);
|
|
12
12
|
return s;
|
|
13
|
-
}, G = (s, e) =>
|
|
13
|
+
}, G = (s, e) => Xs(s, xs(e));
|
|
14
14
|
var Kt = (s, e) => {
|
|
15
15
|
var t = {};
|
|
16
16
|
for (var n in s)
|
|
@@ -59,9 +59,9 @@ var d = (s) => {
|
|
|
59
59
|
throw r;
|
|
60
60
|
}, "return" in e && n("return"), i;
|
|
61
61
|
};
|
|
62
|
-
import { s as en, E as qt, c as tn, p as sn, v as nn, a as Zt, b as es, d as Te, e as ts, f as ss, g as ns } from "./widget-composer-
|
|
63
|
-
import { h as ji, j as Pi, i as Di, w as Ki } from "./widget-composer-
|
|
64
|
-
import {
|
|
62
|
+
import { s as en, E as qt, c as tn, p as sn, v as nn, a as Zt, b as es, d as Te, e as ts, f as ss, g as ns } from "./widget-composer-CobNNZ1e.js";
|
|
63
|
+
import { h as ji, j as Pi, i as Di, w as Ki } from "./widget-composer-CobNNZ1e.js";
|
|
64
|
+
import { aN as rn, aD as on, bE as Ft, cB as ln, dD as an } from "./derive-chart-family-nTKwlMms.js";
|
|
65
65
|
const St = Symbol.for("yaml.alias"), pt = Symbol.for("yaml.document"), W = Symbol.for("yaml.map"), is = Symbol.for("yaml.pair"), Y = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ne = (s) => !!s && typeof s == "object" && s[F] === St, ye = (s) => !!s && typeof s == "object" && s[F] === pt, ge = (s) => !!s && typeof s == "object" && s[F] === W, E = (s) => !!s && typeof s == "object" && s[F] === is, A = (s) => !!s && typeof s == "object" && s[F] === Y, be = (s) => !!s && typeof s == "object" && s[F] === me;
|
|
66
66
|
function $(s) {
|
|
67
67
|
if (s && typeof s == "object")
|
|
@@ -1128,8 +1128,8 @@ ${Q(L, t.indent)}`;
|
|
|
1128
1128
|
${t.indent}`;
|
|
1129
1129
|
} else if (!m && $(e)) {
|
|
1130
1130
|
const L = O[0], _ = O.indexOf(`
|
|
1131
|
-
`), B = _ !== -1,
|
|
1132
|
-
if (B || !
|
|
1131
|
+
`), B = _ !== -1, X = (w = (C = t.inFlow) != null ? C : e.flow) != null ? w : e.items.length === 0;
|
|
1132
|
+
if (B || !X) {
|
|
1133
1133
|
let ie = !1;
|
|
1134
1134
|
if (B && (L === "&" || L === "!")) {
|
|
1135
1135
|
let v = O.indexOf(" ");
|
|
@@ -1528,14 +1528,14 @@ const Se = {
|
|
|
1528
1528
|
stringify(s, e, t, n) {
|
|
1529
1529
|
return e = Object.assign({ actualString: !0 }, e), $e(s, e, t, n);
|
|
1530
1530
|
}
|
|
1531
|
-
},
|
|
1531
|
+
}, Xe = {
|
|
1532
1532
|
identify: (s) => s == null,
|
|
1533
1533
|
createNode: () => new N(null),
|
|
1534
1534
|
default: !0,
|
|
1535
1535
|
tag: "tag:yaml.org,2002:null",
|
|
1536
1536
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
1537
1537
|
resolve: () => new N(null),
|
|
1538
|
-
stringify: ({ source: s }, e) => typeof s == "string" &&
|
|
1538
|
+
stringify: ({ source: s }, e) => typeof s == "string" && Xe.test.test(s) ? s : e.options.nullStr
|
|
1539
1539
|
}, Ot = {
|
|
1540
1540
|
identify: (s) => typeof s == "boolean",
|
|
1541
1541
|
default: !0,
|
|
@@ -1595,13 +1595,13 @@ const ws = {
|
|
|
1595
1595
|
return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
|
|
1596
1596
|
},
|
|
1597
1597
|
stringify: V
|
|
1598
|
-
},
|
|
1598
|
+
}, xe = (s) => typeof s == "bigint" || Number.isInteger(s), Tt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
|
|
1599
1599
|
function Ns(s, e, t) {
|
|
1600
1600
|
const { value: n } = s;
|
|
1601
|
-
return
|
|
1601
|
+
return xe(n) && n >= 0 ? t + n.toString(e) : V(s);
|
|
1602
1602
|
}
|
|
1603
1603
|
const Os = {
|
|
1604
|
-
identify: (s) =>
|
|
1604
|
+
identify: (s) => xe(s) && s >= 0,
|
|
1605
1605
|
default: !0,
|
|
1606
1606
|
tag: "tag:yaml.org,2002:int",
|
|
1607
1607
|
format: "OCT",
|
|
@@ -1609,14 +1609,14 @@ const Os = {
|
|
|
1609
1609
|
resolve: (s, e, t) => Tt(s, 2, 8, t),
|
|
1610
1610
|
stringify: (s) => Ns(s, 8, "0o")
|
|
1611
1611
|
}, Ts = {
|
|
1612
|
-
identify:
|
|
1612
|
+
identify: xe,
|
|
1613
1613
|
default: !0,
|
|
1614
1614
|
tag: "tag:yaml.org,2002:int",
|
|
1615
1615
|
test: /^[-+]?[0-9]+$/,
|
|
1616
1616
|
resolve: (s, e, t) => Tt(s, 0, 10, t),
|
|
1617
1617
|
stringify: V
|
|
1618
1618
|
}, Is = {
|
|
1619
|
-
identify: (s) =>
|
|
1619
|
+
identify: (s) => xe(s) && s >= 0,
|
|
1620
1620
|
default: !0,
|
|
1621
1621
|
tag: "tag:yaml.org,2002:int",
|
|
1622
1622
|
format: "HEX",
|
|
@@ -1627,7 +1627,7 @@ const Os = {
|
|
|
1627
1627
|
we,
|
|
1628
1628
|
Se,
|
|
1629
1629
|
ze,
|
|
1630
|
-
|
|
1630
|
+
Xe,
|
|
1631
1631
|
Ot,
|
|
1632
1632
|
Os,
|
|
1633
1633
|
Ts,
|
|
@@ -2055,7 +2055,7 @@ const Ms = {
|
|
|
2055
2055
|
we,
|
|
2056
2056
|
Se,
|
|
2057
2057
|
ze,
|
|
2058
|
-
|
|
2058
|
+
Xe,
|
|
2059
2059
|
$s,
|
|
2060
2060
|
Cs,
|
|
2061
2061
|
Mn,
|
|
@@ -2090,7 +2090,7 @@ const Ms = {
|
|
|
2090
2090
|
intOct: Os,
|
|
2091
2091
|
intTime: Ms,
|
|
2092
2092
|
map: we,
|
|
2093
|
-
null:
|
|
2093
|
+
null: Xe,
|
|
2094
2094
|
omap: Et,
|
|
2095
2095
|
pairs: At,
|
|
2096
2096
|
seq: Se,
|
|
@@ -2720,10 +2720,10 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2720
2720
|
}
|
|
2721
2721
|
} else
|
|
2722
2722
|
C && ("source" in C && C.source && C.source[0] === ":" ? i(C, "MISSING_CHAR", `Missing space after : in ${l}`) : i(B.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
|
|
2723
|
-
const
|
|
2724
|
-
|
|
2723
|
+
const X = C ? s(t, C, B, i) : B.found ? e(t, B.end, T, null, B, i) : null;
|
|
2724
|
+
X ? ft(C) && i(X.range, "BLOCK_IN_FLOW", ct) : B.comment && (_.comment ? _.comment += `
|
|
2725
2725
|
` + B.comment : _.comment = B.comment);
|
|
2726
|
-
const ie = new j(_,
|
|
2726
|
+
const ie = new j(_, X);
|
|
2727
2727
|
if (t.options.keepSourceTokens && (ie.srcToken = I), o) {
|
|
2728
2728
|
const v = c;
|
|
2729
2729
|
js(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(ie);
|
|
@@ -2731,7 +2731,7 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2731
2731
|
const v = new K(t.schema);
|
|
2732
2732
|
v.flow = !0, v.items.push(ie), c.items.push(v);
|
|
2733
2733
|
}
|
|
2734
|
-
f =
|
|
2734
|
+
f = X ? X.range[2] : B.end;
|
|
2735
2735
|
}
|
|
2736
2736
|
}
|
|
2737
2737
|
const p = o ? "}" : "]", [m, ...y] = n.end;
|
|
@@ -3069,7 +3069,7 @@ function zn(s, e, t, n) {
|
|
|
3069
3069
|
return String.fromCodePoint(o);
|
|
3070
3070
|
}
|
|
3071
3071
|
function qs(s, e, t, n) {
|
|
3072
|
-
const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ps(s, e, n) : Ds(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ?
|
|
3072
|
+
const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ps(s, e, n) : Ds(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? Xn(s.schema, i, a, t, n) : e.type === "scalar" ? xn(s, i, e, n) : s.schema[Y];
|
|
3073
3073
|
let h;
|
|
3074
3074
|
try {
|
|
3075
3075
|
const f = c.resolve(i, (p) => n(t != null ? t : e, "TAG_RESOLVE_FAILED", p), s.options);
|
|
@@ -3080,7 +3080,7 @@ function qs(s, e, t, n) {
|
|
|
3080
3080
|
}
|
|
3081
3081
|
return h.range = l, h.source = i, r && (h.type = r), a && (h.tag = a), c.format && (h.format = c.format), o && (h.comment = o), h;
|
|
3082
3082
|
}
|
|
3083
|
-
function
|
|
3083
|
+
function Xn(s, e, t, n, i) {
|
|
3084
3084
|
var l;
|
|
3085
3085
|
if (t === "!")
|
|
3086
3086
|
return s[Y];
|
|
@@ -3097,7 +3097,7 @@ function xn(s, e, t, n, i) {
|
|
|
3097
3097
|
const o = s.knownTags[t];
|
|
3098
3098
|
return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[Y]);
|
|
3099
3099
|
}
|
|
3100
|
-
function
|
|
3100
|
+
function xn({ directives: s, schema: e }, t, n, i) {
|
|
3101
3101
|
var o;
|
|
3102
3102
|
const r = e.tags.find((l) => {
|
|
3103
3103
|
var a;
|
|
@@ -4123,7 +4123,7 @@ class Ys {
|
|
|
4123
4123
|
};
|
|
4124
4124
|
}
|
|
4125
4125
|
}
|
|
4126
|
-
function
|
|
4126
|
+
function x(s, e) {
|
|
4127
4127
|
for (let t = 0; t < s.length; ++t)
|
|
4128
4128
|
if (s[t].type === e)
|
|
4129
4129
|
return !0;
|
|
@@ -4187,10 +4187,10 @@ function oe(s) {
|
|
|
4187
4187
|
;
|
|
4188
4188
|
return s.splice(e, s.length);
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4190
|
+
function Xt(s) {
|
|
4191
4191
|
if (s.start.type === "flow-seq-start")
|
|
4192
4192
|
for (const e of s.items)
|
|
4193
|
-
e.sep && !e.value && !
|
|
4193
|
+
e.sep && !e.value && !x(e.start, "explicit-key-ind") && !x(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Gs(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
|
|
4194
4194
|
}
|
|
4195
4195
|
class Bt {
|
|
4196
4196
|
/**
|
|
@@ -4311,7 +4311,7 @@ class Bt {
|
|
|
4311
4311
|
yield t;
|
|
4312
4312
|
else {
|
|
4313
4313
|
const n = this.peek(1);
|
|
4314
|
-
switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" &&
|
|
4314
|
+
switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" && Xt(t), n.type) {
|
|
4315
4315
|
case "document":
|
|
4316
4316
|
n.value = t;
|
|
4317
4317
|
break;
|
|
@@ -4508,14 +4508,14 @@ class Bt {
|
|
|
4508
4508
|
if (t.sep)
|
|
4509
4509
|
if (t.value)
|
|
4510
4510
|
e.items.push({ start: [], key: null, sep: [this.sourceToken] });
|
|
4511
|
-
else if (
|
|
4511
|
+
else if (x(t.sep, "map-value-ind"))
|
|
4512
4512
|
this.stack.push({
|
|
4513
4513
|
type: "block-map",
|
|
4514
4514
|
offset: this.offset,
|
|
4515
4515
|
indent: this.indent,
|
|
4516
4516
|
items: [{ start: o, key: null, sep: [this.sourceToken] }]
|
|
4517
4517
|
});
|
|
4518
|
-
else if (Gs(t.key) && !
|
|
4518
|
+
else if (Gs(t.key) && !x(t.sep, "newline")) {
|
|
4519
4519
|
const l = oe(t.start), a = t.key, c = t.sep;
|
|
4520
4520
|
c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
|
|
4521
4521
|
type: "block-map",
|
|
@@ -4525,7 +4525,7 @@ class Bt {
|
|
|
4525
4525
|
});
|
|
4526
4526
|
} else
|
|
4527
4527
|
o.length > 0 ? t.sep = t.sep.concat(o, this.sourceToken) : t.sep.push(this.sourceToken);
|
|
4528
|
-
else if (
|
|
4528
|
+
else if (x(t.start, "newline"))
|
|
4529
4529
|
Object.assign(t, { key: null, sep: [this.sourceToken] });
|
|
4530
4530
|
else {
|
|
4531
4531
|
const l = oe(t.start);
|
|
@@ -4537,7 +4537,7 @@ class Bt {
|
|
|
4537
4537
|
});
|
|
4538
4538
|
}
|
|
4539
4539
|
else
|
|
4540
|
-
t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) :
|
|
4540
|
+
t.sep ? t.value || r ? e.items.push({ start: o, key: null, sep: [this.sourceToken] }) : x(t.sep, "map-value-ind") ? this.stack.push({
|
|
4541
4541
|
type: "block-map",
|
|
4542
4542
|
offset: this.offset,
|
|
4543
4543
|
indent: this.indent,
|
|
@@ -4599,7 +4599,7 @@ class Bt {
|
|
|
4599
4599
|
case "seq-item-ind":
|
|
4600
4600
|
if (this.indent !== e.indent)
|
|
4601
4601
|
break;
|
|
4602
|
-
t.value ||
|
|
4602
|
+
t.value || x(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
|
|
4603
4603
|
return;
|
|
4604
4604
|
}
|
|
4605
4605
|
if (this.indent > e.indent) {
|
|
@@ -4655,7 +4655,7 @@ class Bt {
|
|
|
4655
4655
|
yield* d(this.pop()), yield* d(this.step());
|
|
4656
4656
|
else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
|
|
4657
4657
|
const i = Pe(n), r = oe(i);
|
|
4658
|
-
|
|
4658
|
+
Xt(e);
|
|
4659
4659
|
const o = e.end.splice(1, e.end.length);
|
|
4660
4660
|
o.push(this.sourceToken);
|
|
4661
4661
|
const l = {
|
|
@@ -4814,7 +4814,7 @@ function gi(s, e, t) {
|
|
|
4814
4814
|
}
|
|
4815
4815
|
return new ke(s, n, t).toString(t);
|
|
4816
4816
|
}
|
|
4817
|
-
const
|
|
4817
|
+
const xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4818
4818
|
__proto__: null,
|
|
4819
4819
|
Alias: Ye,
|
|
4820
4820
|
CST: hi,
|
|
@@ -5062,7 +5062,7 @@ class Ci {
|
|
|
5062
5062
|
* @returns The YAML string representing the simple query model
|
|
5063
5063
|
*/
|
|
5064
5064
|
stringifySimple(e) {
|
|
5065
|
-
const r = e, { queryTitle: t } = r, n = Kt(r, ["queryTitle"]), i = new
|
|
5065
|
+
const r = e, { queryTitle: t } = r, n = Kt(r, ["queryTitle"]), i = new xt.Document(n);
|
|
5066
5066
|
return i.commentBefore = ` ${tn(t)}`, i.directives && (i.directives.docStart = !0), String(i);
|
|
5067
5067
|
}
|
|
5068
5068
|
/**
|
|
@@ -5081,7 +5081,7 @@ class Ci {
|
|
|
5081
5081
|
*/
|
|
5082
5082
|
parseSimple(e) {
|
|
5083
5083
|
try {
|
|
5084
|
-
const t =
|
|
5084
|
+
const t = xt.parseDocument(e), { commentBefore: n } = t, i = nn(t.toJS());
|
|
5085
5085
|
return i.queryTitle = (n == null ? void 0 : n.trim()) || "", i;
|
|
5086
5086
|
} catch (t) {
|
|
5087
5087
|
console.error("Error parsing the YAML string", t);
|