axp-ui/docs/sb-addons/interactions-8/manager-bundle.js

28 lines
180 KiB
JavaScript
Raw Normal View History

2023-10-11 10:17:11 +03:00
try{
var xf=Object.create;var Fo=Object.defineProperty;var _f=Object.getOwnPropertyDescriptor;var Of=Object.getOwnPropertyNames;var Cf=Object.getPrototypeOf,Rf=Object.prototype.hasOwnProperty;var Et=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var jr=(e,t)=>()=>(e&&(t=e(e=0)),t);var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Tf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Of(t))!Rf.call(e,o)&&o!==r&&Fo(e,o,{get:()=>t[o],enumerable:!(n=_f(t,o))||n.enumerable});return e};var pe=(e,t,r)=>(r=e!=null?xf(Cf(e)):{},Tf(t||!e||!e.__esModule?Fo(r,"default",{value:e,enumerable:!0}):r,e));var i=jr(()=>{});var s=jr(()=>{});var u=jr(()=>{});var sa=b((ia,Kr)=>{i();s();u();(function(e){if(typeof ia=="object"&&typeof Kr<"u")Kr.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function n(o,a,c){function l(g,E){if(!a[g]){if(!o[g]){var v=typeof Et=="function"&&Et;if(!E&&v)return v(g,!0);if(p)return p(g,!0);var w=new Error("Cannot find module '"+g+"'");throw w.code="MODULE_NOT_FOUND",w}var x=a[g]={exports:{}};o[g][0].call(x.exports,function(T){var I=o[g][1][T];return l(I||T)},x,x.exports,n,o,a,c)}return a[g].exports}for(var p=typeof Et=="function"&&Et,f=0;f<c.length;f++)l(c[f]);return l}({1:[function(n,o,a){o.exports=function(c){if(typeof Map!="function"||c){var l=n("./similar");return new l}else return new Map}},{"./similar":2}],2:[function(n,o,a){function c(){return this.list=[],this.lastItem=void 0,this.size=0,this}c.prototype.get=function(l){var p;if(this.lastItem&&this.isEqual(this.lastItem.key,l))return this.lastItem.val;if(p=this.indexOf(l),p>=0)return this.lastItem=this.list[p],this.list[p].val},c.prototype.set=function(l,p){var f;return this.lastItem&&this.isEqual(this.lastItem.key,l)?(this.lastItem.val=p,this):(f=this.indexOf(l),f>=0?(this.lastItem=this.list[f],this.list[f].val=p,this):(this.lastItem={key:l,val:p},this.list.push(this.lastItem),this.size++,this))},c.prototype.delete=function(l){var p;if(this.lastItem&&this.isEqual(this.lastItem.key,l)&&(this.lastItem=void 0),p=this.indexOf(l),p>=0)return this.size--,this.list.splice(p,1)[0]},c.prototype.has=function(l){var p;return this.lastItem&&this.isEqual(this.lastItem.key,l)?!0:(p=this.indexOf(l),p>=0?(this.lastItem=this.list[p],!0):!1)},c.prototype.forEach=function(l,p){var f;for(f=0;f<this.size;f++)l.call(p||this,this.list[f].val,this.list[f].key,this)},c.prototype.indexOf=function(l){var p;for(p=0;p<this.size;p++)if(this.isEqual(this.list[p].key,l))return p;return-1},c.prototype.isEqual=function(l,p){return l===p||l!==l&&p!==p},o.exports=c},{}],3:[function(n,o,a){var c=n("map-or-similar");o.exports=function(g){var E=new c(!1),v=[];return function(w){var x=function(){var T=E,I,O,R=arguments.length-1,q=Array(R+1),j=!0,$;if((x.numArgs||x.numArgs===0)&&x.numArgs!==R+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for($=0;$<R;$++){if(q[$]={cacheItem:T,arg:arguments[$]},T.has(arguments[$])){T=T.get(arguments[$]);continue}j=!1,I=new c(!1),T.set(arguments[$],I),T=I}return j&&(T.has(arguments[R])?O=T.get(arguments[R]):j=!1),j||(O=w.apply(null,arguments),T.set(arguments[R],O)),g>0&&(q[R]={cacheItem:T,arg:arguments[R]},j?l(v,q):v.push(q),v.length>g&&p(v.shift())),x.wasMemoized=j,x.numArgs=R+1,O};return x.limit=g,x.wasMemoized=!1,x.cache=E,x.lru=v,x}};function l(g,E){var v=g.length,w=E.length,x,T,I;for(T=0;T<v;T++){for(x=!0,I=0;I<w;I++)if(!f(g[T][I].arg,E[I].arg)){x=!1;break}if(x)break}g.push(g.splice(T,1)[0])}function p(g){var E=g.length,v=g[E-1],w,x;for(v.cacheItem.delete(v.arg),x=E-2;x>=0&&(v=g[x],w=v.cacheItem.get(v.arg),!w||!w.size);x--)v.cacheItem.delete(v.arg)}function f(g,E){return g===E||g!==g&&E!==E}},{"map-or-similar":1}]},{},[3])(3
`)>=0)return!1;return!0}function y1(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ee.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ee.call(Array(t+1),r)}}function Vn(e,t){if(e.length===0)return"";var r=`
`+t.prev+t.base;return r+Ee.call(e,","+r)+`
`+t.prev}function Sr(e,t){var r=Gn(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=De(e,o)?t(e[o],e):""}var a=typeof $n=="function"?$n(e):[],c;if(lt){c={};for(var l=0;l<a.length;l++)c["$"+a[l]]=a[l]}for(var p in e)De(e,p)&&(r&&String(Number(p))===p&&p<e.length||lt&&c["$"+p]instanceof Symbol||(wp.call(/[^\w$]/,p)?n.push(t(p,e)+": "+t(e[p],e)):n.push(p+": "+t(e[p],e))));if(typeof $n=="function")for(var f=0;f<a.length;f++)xp.call(e,a[f])&&n.push("["+t(a[f])+"]: "+t(e[a[f]],e));return n}});var Pp=b((mq,Fp)=>{"use strict";i();s();u();var Jn=vr(),ct=lp(),g1=Dp(),b1=Jn("%TypeError%"),_r=Jn("%WeakMap%",!0),Or=Jn("%Map%",!0),E1=ct("WeakMap.prototype.get",!0),v1=ct("WeakMap.prototype.set",!0),A1=ct("WeakMap.prototype.has",!0),S1=ct("Map.prototype.get",!0),w1=ct("Map.prototype.set",!0),x1=ct("Map.prototype.has",!0),Qn=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},_1=function(e,t){var r=Qn(e,t);return r&&r.value},O1=function(e,t,r){var n=Qn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},C1=function(e,t){return!!Qn(e,t)};Fp.exports=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new b1("Side channel does not contain "+g1(a))},get:function(a){if(_r&&a&&(typeof a=="object"||typeof a=="function")){if(t)return E1(t,a)}else if(Or){if(r)return S1(r,a)}else if(n)return _1(n,a)},has:function(a){if(_r&&a&&(typeof a=="object"||typeof a=="function")){if(t)return A1(t,a)}else if(Or){if(r)return x1(r,a)}else if(n)return C1(n,a);return!1},set:function(a,c){_r&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new _r),v1(t,a,c)):Or?(r||(r=new Or),w1(r,a,c)):(n||(n={key:{},next:null}),O1(n,a,c))}};return o}});var Cr=b((Eq,Ip)=>{"use strict";i();s();u();var R1=String.prototype.replace,T1=/%20/g,Zn={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ip.exports={default:Zn.RFC3986,formatters:{RFC1738:function(e){return R1.call(e,T1,"+")},RFC3986:function(e){return String(e)}},RFC1738:Zn.RFC1738,RFC3986:Zn.RFC3986}});var to=b((wq,qp)=>{"use strict";i();s();u();var D1=Cr(),eo=Object.prototype.hasOwnProperty,Ue=Array.isArray,ve=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),F1=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Ue(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},Bp=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},P1=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Ue(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!eo.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return Ue(t)&&!Ue(r)&&(o=Bp(t,n)),Ue(t)&&Ue(r)?(r.forEach(function(a,c){if(eo.call(t,c)){var l=t[c];l&&typeof l=="object"&&a&&typeof a=="object"?t[c]=e(l,a,n):t.push(a)}else t[c]=a}),t):Object.keys(r).reduce(function(a,c){var l=r[c];return eo.call(a,c)?a[c]=e(a[c],l,n):a[c]=l,a},o)},I1=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},B1=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},q1=function(t,r,n,o,a){if(t.length===0)return t;var c=t;if(typeof t=="symbol"?c=Symbol.prototype.toString.call(t):typeof t!="string"&&(c=String(t)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var l="",p=0;p<c.length;++p){var f=c.charCodeAt(p);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===D1.RFC1738&&(f===40||f===41)){l+=c.charAt(p);continue}if(f<128){l=l+ve[f];continue}if(f<2048){l=l+(ve[192|f>>6]+ve[128|f&63]);continue}if(f<55296||f>=57344){l=l+(ve[224|f>>12]+ve[128|f>>6&63]+ve[128|f&63]);continue}p+=1,f=65536+((f&1023)<<10|c.charCodeAt(p)&1023),l+=ve[240|f>>18]+ve[128|f>>12&63]+ve[128|f>>6&63]+ve[128|f&63]}return l},N1=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var c=n[0];return t.forEach(function(l,p){var f=c.match(/(?:^|\n)( *)$/),g=f?f[1]:"",E=l;typeof l=="string"&&l.includes(`
`)&&(E=String(l).split(`
`).map(function(v,w){return w===0?v:""+g+v}).join(`
`)),c+=E+n[p+1]}),c}var mE=(e=>(e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.FRAMEWORK_ANGULAR="FRAMEWORK_ANGULAR",e.FRAMEWORK_EMBER="FRAMEWORK_EMBER",e.FRAMEWORK_HTML_VITE="FRAMEWORK_HTML-VITE",e.FRAMEWORK_HTML_WEBPACK5="FRAMEWORK_HTML-WEBPACK5",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.FRAMEWORK_PREACT_VITE="FRAMEWORK_PREACT-VITE",e.FRAMEWORK_PREACT_WEBPACK5="FRAMEWORK_PREACT-WEBPACK5",e.FRAMEWORK_REACT_VITE="FRAMEWORK_REACT-VITE",e.FRAMEWORK_REACT_WEBPACK5="FRAMEWORK_REACT-WEBPACK5",e.FRAMEWORK_SERVER_WEBPACK5="FRAMEWORK_SERVER-WEBPACK5",e.FRAMEWORK_SVELTE_VITE="FRAMEWORK_SVELTE-VITE",e.FRAMEWORK_SVELTE_WEBPACK5="FRAMEWORK_SVELTE-WEBPACK5",e.FRAMEWORK_SVELTEKIT="FRAMEWORK_SVELTEKIT",e.FRAMEWORK_VUE_VITE="FRAMEWORK_VUE-VITE",e.FRAMEWORK_VUE_WEBPACK5="FRAMEWORK_VUE-WEBPACK5",e.FRAMEWORK_VUE3_VITE="FRAMEWORK_VUE3-VITE",e.FRAMEWORK_VUE3_WEBPACK5="FRAMEWORK_VUE3-WEBPACK5",e.FRAMEWORK_WEB_COMPONENTS_VITE="FRAMEWORK_WEB-COMPONENTS-VITE",e.FRAMEWORK_WEB_COMPONENTS_WEBPACK5="FRAMEWORK_WEB-COMPONENTS-WEBPACK5",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e))(mE||{});i();s();u();var yr=pe(Fn(),1);i();s();u();var CE=Object.create,hc=Object.defineProperty,RE=Object.getOwnPropertyDescriptor,TE=Object.getOwnPropertyNames,DE=Object.getPrototypeOf,FE=Object.prototype.hasOwnProperty,PE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),IE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of TE(t))!FE.call(e,o)&&o!==r&&hc(e,o,{get:()=>t[o],enumerable:!(n=RE(t,o))||n.enumerable});return e},BE=(e,t,r)=>(r=e!=null?CE(DE(e)):{},IE(t||!e||!e.__esModule?hc(r,"default",{value:e,enumerable:!0}):r,e)),qE=PE(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function c(l,p,f){var g,E,v,w=t.call(l),x=t.call(p);if(l===p)return!0;if(l==null||p==null)return!1;if(f.indexOf(l)>-1&&f.indexOf(p)>-1)return!0;if(f.push(l,p),w!=x||(g=n(l),E=n(p),g.length!=E.length||g.some(function(T){return!c(l[T],p[T],f)})))return!1;switch(w.slice(8,-1)){case"Symbol":return l.valueOf()==p.valueOf();case"Date":case"Number":return+l==+p||+l!=+l&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+p;case"Set":case"Map":g=l.entries(),E=p.entries();do if(!c((v=g.next()).value,E.next().value,f))return!1;while(!v.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),p=new Uint8Array(p);case"DataView":l=new Uint8Array(l.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=p.length)return!1;for(v=0;v<l.length;v++)if((v in l||v in p)&&(v in l!=v in p||!c(l[v],p[v],f)))return!1;return!0;case"Object":return c(r(l),r(p),f);default:return!1}}(o,a,[])}}()});var _4=BE(qE());var Fc=pe(yc(),1);var Pc=pe(Rc(),1);var m9=(0,Dc.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{}));var y9=Symbol("incompatible");var g9=Symbol("Deeply equal");var Av=Ft`
CSF .story annotations deprecated; annotate story functions directly:
- StoryFn.story.name => StoryFn.storyName
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
`,b9=(0,Fc.default)(()=>{},Av);var nt=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([c,l])=>{let p=o[c];Array.isArray(l)||typeof p>"u"?o[c]=l:(0,yr.default)(l)&&(0,yr.default)(p)?t[c]=!0:typeof l<"u"&&(o[c]=l)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(c=>c[o]).filter(c=>typeof c<"u");a.every(c=>(0,yr.default)(c))?n[o]=nt(...a):n[o]=a[a.length-1]}),n};var In=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(Re.warn(Ft`
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
Consider using the mapping feature or fully custom args:
- Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values
- Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?In(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,Pt.default)(e,o=>In(o,t,new Set(r)))}):{name:"object",value:{}}},Sv=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=(0,Pt.default)(n,(c,l)=>({name:l,type:In(c,`${t}.${l}`,new Set)})),a=(0,Pt.default)(r,(c,l)=>({name:l}));return nt(o,a,r)};Sv.secondPass=!0;var Tc=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),Ic=(e,t,r)=>!t&&!r?e:e&&(0,Pc.default)(e,(n,o)=>{let a=n.name||o;return(!t||Tc(a,t))&&(!r||!Tc(a,r))}),wv=(e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&Re.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},Bc=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let c=Ic(t,n,o),l=(0,Pt.default)(c,(p,f)=>p?.type&&wv(p,f,a));return nt(l,c)};Bc.secondPass=!0;function Bn(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}function It(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function dr(e,t,r={}){return It(e,t).reduce((n,o)=>r.reverseFileOrder?[...o,...n]:[...n,...o],[])}function hr(e,t){return Object.assign({},...It(e,t))}function mr(e,t){return It(e,t).pop()}function qc(e){let t=dr(e,"argTypesEnhancers"),r=It(e,"runStep");return{parameters:nt(...It(e,"parameters")),decorators:dr(e,"decorators",{reverseFileOrder:!(Y.FEATURES?.legacyDecoratorFileOrder??!1)}),args:hr(e,"args"),argsEnhancers:dr(e,"argsEnhancers"),argTypes:hr(e,"argTypes"),argTypesEnhancers:[...t.filter(n=>!n.secondPass),...t.filter(n=>n.secondPass)],globals:hr(e,"globals"),globalTypes:hr(e,"globalTypes"),loaders:dr(e,"loaders"),render:mr(e,"render"),renderToCanvas:mr(e,"renderToCanvas"),renderToDOM:mr(e,"renderToDOM"),applyDecorators:mr(e,"applyDecorators"),runStep:Bn(r)}}var E9=qc([]);var aA=pe(fr(),1),iA=pe(oo(),1);i();s();u();var uA=pe(fr(),1);var lA=pe(oo(),1),cA=pe(Fn(),1),Kp=ye({"../../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u223
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u01
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var P,C=!0,D=!1,F;return{s:function(){P=A[Symbol.iterator]()},n:function(){var k=P.next();return C=k.done,k},e:function(k){D=!0,F=k},f:function(){try{!C&&P.return!=null&&P.return()}finally{if(D)throw F}}}}function c(A,S){if(A){if(typeof A=="string")return l(A,S);var _=Object.prototype.toString.call(A).slice(8,-1);if(_==="Object"&&A.constructor&&(_=A.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return l(A,S)}}function l(A,S){(S==null||S>A.length)&&(S=A.length);for(var _=0,P=new Array(S);_<S;_++)P[_]=A[_];return P}var p=hA(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:g()};function g(){var A={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return R(0,5).forEach(function(S){R(0,5).forEach(function(_){R(0,5).forEach(function(P){return E(S,_,P,A)})})}),R(0,23).forEach(function(S){var _=S+232,P=v(S*10+8);A[_]="#"+P+P+P}),A}function E(A,S,_,P){var C=16+A*36+S*6+_,D=A>0?A*40+55:0,F=S>0?S*40+55:0,k=_>0?_*40+55:0;P[C]=w([D,F,k])}function v(A){for(var S=A.toString(16);S.length<2;)S="0"+S;return S}function w(A){var S=[],_=a(A),P;try{for(_.s();!(P=_.n()).done;){var C=P.value;S.push(v(C))}}catch(D){_.e(D)}finally{_.f()}return"#"+S.join("")}function x(A,S,_,P){var C;return S==="text"?C=$(_,P):S==="display"?C=I(A,_,P):S==="xterm256"?C=N(A,P.colors[_]):S==="rgb"&&(C=T(A,_)),C}function T(A,S){S=S.substring(2).slice(0,-1);var _=+S.substr(0,2),P=S.substring(5).split(";"),C=P.map(function(D){return("0"+Number(D).toString(16)).substr(-2)}).join("");return B(A,(_===38?"color:#":"background-color:#")+C)}function I(A,S,_){S=parseInt(S,10);var P={"-1":function(){return"<br/>"},0:function(){return A.length&&O(A)},1:function(){return K(A,"b")},3:function(){return K(A,"i")},4:function(){return K(A,"u")},8:function(){return B(A,"display:none")},9:function(){return K(A,"strike")},22:function(){return B(A,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Z(A,"i")},24:function(){return Z(A,"u")},39:function(){return N(A,_.fg)},49:function(){return V(A,_.bg)},53:function(){return B(A,"text-decoration:overline")}},C;return P[S]?C=P[S]():4<S&&S<7?C=K(A,"blink"):29<S&&S<38?C=N(A,_.colors[S-30]):39<S&&S<48?C=V(A,_.colors[S-40]):89<S&&S<98?C=N(A,_.colors[8+(S-90)]):99<S&&S<108&&(C=V(A,_.colors[8+(S-100)])),C}function O(A){var S=A.slice(0);return A.length=0,S.reverse().map(function(_){return"</"+_+">"}).join("")}function R(A,S){for(var _=[],P=A;P<=S;P++)_.push(P);return _}function q(A){return function(S){return(A===null||S.category!==A)&&A!=="all"}}function j(A){A=parseInt(A,10);var S=null;return A===0?S="all":A===1?S="bold":2<A&&A<5?S="underline":4<A&&A<7?S="blink":A===8?S="hide":A===9?S="strike":29<A&&A<38||A===39||89<A&&A<98?S="foreground-color":(39<A&&A<48||A===49||99<A&&A<108)&&(S="background-color"),S}function $(A,S){return S.escapeXML?p.encodeXML(A):A}function K(A,S,_){return _||(_=""),A.push(S),"<".concat(S).concat(_?' style="'.concat(_,'"'):"",">")}function B(A,S){return K(A,"span",S)}function N(A,S){return K(A,"span","color:"+S)}function V(A,S){return K(A,"span","background-color:"+S)}function Z(A,S){var _;if(A.slice(-1)[0]===S&&(_=A.pop()),_)return"</"+S+">"}function de(A,S,_){var P=!1,C=3;function D(){return""}function F(he,we){return _("xterm256",we),""}function k(he){return S.newline?_("display",-1):_("text",he),""}function ue(he,we){P=!0,we.trim().length===0&&(we="0"),we=we.trimRight(";").split(";");var Gt=a(we),Do;try{for(Gt.s();!(Do=Gt.n()).done;){var Sf=Do.value;_("display",Sf)}}catch(wf){Gt.e(wf)}finally{Gt.f()}return""}function Wt(he){return _("text",he),""}function yt(he){return _("rgb",he),""}var gt=[{pattern:/^\x08+/,sub:D},{pattern:/^\x1b\[[012]?K/,sub:D},{pattern:/^\x1b\[\(B/,sub:D},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:yt},{pattern:/^\x1b\[38;5;(\d+)m/,sub:F},{pattern:/^\n/,sub:k},{pattern:/^\r+\n/,sub:k},{p
`);return d.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:_e.size.s1}},t.flatMap((r,n)=>{if(r.startsWith("expect(")){let f=sf(r,7),g=f&&7+f.length,E=f&&r.slice(g).match(/\.(to|last|nth)[A-Z]\w+\(/);if(E){let v=g+E.index+E[0].length,w=sf(r,v);if(w)return["expect(",d.createElement(bo,{key:`received_${f}`,value:f}),r.slice(g,v),d.createElement(Eo,{key:`expected_${w}`,value:w}),r.slice(v+w.length),d.createElement("br",{key:`br${n}`})]}}if(r.match(/^\s*- /))return[d.createElement(Eo,{key:r+n,value:r}),d.createElement("br",{key:`br${n}`})];if(r.match(/^\s*\+ /))return[d.createElement(bo,{key:r+n,value:r}),d.createElement("br",{key:`br${n}`})];let[,o,a]=r.match(/^(Expected|Received): (.*)$/)||[];if(o&&a)return o==="Expected"?["Expected: ",d.createElement(Eo,{key:r+n,value:go(a),parsed:!0}),d.createElement("br",{key:`br${n}`})]:["Received: ",d.createElement(bo,{key:r+n,value:go(a),parsed:!0}),d.createElement("br",{key:`br${n}`})];let[,c,l]=r.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(c&&l)return[`${c} of calls: `,d.createElement(Ge,{key:r+n,value:Number(l)}),d.createElement("br",{key:`br${n}`})];let[,p]=r.match(/^Received has value: (.+)$/)||[];return p?["Received has value: ",d.createElement(Ge,{key:r+n,value:go(p)}),d.createElement("br",{key:`br${n}`})]:[d.createElement("span",{key:r+n},r),d.createElement("br",{key:`br${n}`})]}))},mw={pure:{gray:{500:"#CCCCCC"}}},yw={colors:mw},gw=yw,{colors:{pure:{gray:bw}}}=gw,Ew=H(Ce)(({theme:e,status:t})=>{let r={[M.DONE]:e.color.positive,[M.ERROR]:e.color.negative,[M.ACTIVE]:e.color.secondary,[M.WAITING]:Pr(.5,bw[500])}[t];return{width:t===M.WAITING?6:12,height:t===M.WAITING?6:12,color:r,justifySelf:"center"}}),gf=({status:e,className:t})=>{let r={[M.DONE]:"check",[M.ERROR]:"stopalt",[M.ACTIVE]:"play",[M.WAITING]:"circle"}[e];return d.createElement(Ew,{"data-testid":`icon-${e}`,status:e,icon:r,className:t})},vw=H.div(()=>({fontFamily:_e.fonts.mono,fontSize:_e.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"})),Aw=H("div",{shouldForwardProp:e=>!["call","pausedAt"].includes(e.toString())})(({theme:e,call:t})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${e.appBorderColor}`,fontFamily:_e.fonts.base,fontSize:13,...t.status===M.ERROR&&{backgroundColor:e.base==="dark"?Pr(.93,e.color.negative):e.background.warning},paddingLeft:t.ancestors.length*20}),({theme:e,call:t,pausedAt:r})=>r===t.id&&{"&::before":{content:'""',position:"absolute",top:-5,zIndex:1,borderTop:"4.5px solid transparent",borderLeft:`7px solid ${e.color.warning}`,borderBottom:"4.5px solid transparent"},"&::after":{content:'""',position:"absolute",top:-1,zIndex:1,width:"100%",borderTop:`1.5px solid ${e.color.warning}`}}),Sw=H.div(({theme:e,isInteractive:t})=>({display:"flex","&:hover":t?{}:{background:e.background.hoverable}})),ww=H("button",{shouldForwardProp:e=>!["call"].includes(e.toString())})(({theme:e,disabled:t,call:r})=>({flex:1,display:"grid",background:"none",border:0,gridTemplateColumns:"15px 1fr",alignItems:"center",minHeight:40,margin:0,padding:"8px 15px",textAlign:"start",cursor:t||r.status===M.ERROR?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status===M.ERROR?e.color.warning:e.color.secondary}`,background:r.status===M.ERROR?"transparent":e.background.hoverable},"& > div":{opacity:r.status===M.WAITING?.5:1}})),xw=H.div({padding:6}),_w=H(kr)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),Ow=H($r)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Cw=H("div")(({theme:e})=>({padding:"8px 10px 8px 36px",fontSize:_e.size.s1,color:e.color.defaultText,pre:{margin:0,padding:0}})),Rw=({exception:e})=>{if(e.message.startsWith("expect("))return U(hw,{...e});let t=e.message.split(`
`),r=t.length>1;return U(Cw,null,U("pre",null,t[0]),r&&U("p",null,"See the full stack trace in the browser console."))},Tw=({call:e,callsById:t,controls:r,controlStates:n,childCallIds:o,isHidden:a,isCollapsed:c,toggleCollapsed:l,pausedAt:p})=>{let[f,g]=me(!1),E=!n.goto||!e.interceptable||!!e.ancestors.length;return a?null:U(Aw,{call:e,pausedAt:p},U(Sw,{isInteractive:E},U(ww,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:E,onMouseEnter:()=>n.goto&&g(!0),onMouseLeave:()=>n.goto&&g(!1)},U(gf,{status:f?M.ACTIVE:e.status}),U(vw,{style:{marginLeft:6,marginBottom:1}},U(Co,{call:e,callsById:t}))),U(xw,null,o?.length>0&&U(je,{hasChrome:!1,tooltip:U(Ow,{note:`${c?"Show":"Hide"} interactions`})},U(_w,{containsIcon:!0,onClick:l},U(Ce,{icon:"listunordered"}))))),e.status===M.ERROR&&e.exception?.callId===e.id&&U(Rw,{exception:e.exception}))},Dw=H.div(({theme:e,withException:t})=>({minHeight:"100%",background:e.background.content,...t&&{backgroundColor:e.base==="dark"?Pr(.93,e.color.negative):e.background.warning}})),Fw=H.div(({theme:e})=>({padding:15,fontSize:e.typography.size.s2-1,lineHeight:"19px"})),Pw=H.code(({theme:e})=>({margin:"0 1px",padding:3,fontSize:e.typography.size.s1-1,lineHeight:1,verticalAlign:"top",background:"rgba(0, 0, 0, 0.05)",border:`1px solid ${e.appBorderColor}`,borderRadius:3})),Iw=H.div({paddingBottom:4,fontWeight:"bold"}),Bw=H.p({margin:0,padding:"0 0 20px"}),qw=H.pre(({theme:e})=>({margin:0,padding:0,fontSize:e.typography.size.s1-1})),Nw=Kt(function({calls:e,controls:t,controlStates:r,interactions:n,fileName:o,hasException:a,caughtException:c,isPlaying:l,pausedAt:p,onScrollToEnd:f,endRef:g}){return U(Dw,{withException:!!c},(n.length>0||a)&&U(SS,{controls:t,controlStates:r,status:l?M.ACTIVE:a?M.ERROR:M.DONE,storyFileName:o,onScrollToEnd:f}),U("div",{"aria-label":"Interactions list"},n.map(E=>U(Tw,{key:E.id,call:E,callsById:e,controls:t,controlStates:r,childCallIds:E.childCallIds,isHidden:E.isHidden,isCollapsed:E.isCollapsed,toggleCollapsed:E.toggleCollapsed,pausedAt:p}))),c&&!c.message?.startsWith("ignoredException")&&U(Fw,null,U(Iw,null,"Caught exception in ",U(Pw,null,"play")," function"),U(Bw,null,"This story threw an error after it finished rendering which means your interactions couldn' t be run.Go to this story' s play function in ",o," to fix."),U(qw,{"data-chromatic":"ignore"},c.stack||`${c.name}: ${c.message}`)),U("div",{ref:g}),!l&&!c&&n.length===0&&U(Go,null,"No interactions found",U(Uo,{href:"https://storybook.js.org/docs/react/writing-stories/play-function",target:"_blank",withArrow:!0},"Learn how to add interactions to your story")))}),vo={start:!1,back:!1,goto:!1,next:!1,end:!1},uf=({log:e,calls:t,collapsed:r,setCollapsed:n})=>{let o=new Map,a=new Map;return e.map(({callId:c,ancestors:l,status:p})=>{let f=!1;return l.forEach(g=>{r.has(g)&&(f=!0),a.set(g,(a.get(g)||[]).concat(c))}),{...t.get(c),status:p,isHidden:f}}).map(c=>{let l=c.status===M.ERROR&&o.get(c.ancestors.slice(-1)[0])?.status===M.ACTIVE?M.ACTIVE:c.status;return o.set(c.id,{...c,status:l}),{...c,status:l,childCallIds:a.get(c.id),isCollapsed:r.has(c.id),toggleCollapsed:()=>n(p=>(p.has(c.id)?p.delete(c.id):p.add(c.id),new Set(p)))}})},jw=Kt(function({storyId:e}){let[t,r]=Mr(Br,{controlStates:vo,isErrored:!1,pausedAt:void 0,interactions:[],isPlaying:!1,hasException:!1,caughtException:void 0,interactionsCount:0}),[n,o]=me(void 0),[a,c]=me(new Set),{controlStates:l=vo,isErrored:p=!1,pausedAt:f=void 0,interactions:g=[],isPlaying:E=!1,caughtException:v=void 0}=t,w=Yt([]),x=Yt(new Map),T=({status:B,...N})=>x.current.set(N.id,N),I=Yt();Ne(()=>{let B;return Y.IntersectionObserver&&(B=new Y.IntersectionObserver(([N])=>o(N.isIntersecting?void 0:N.target),{root:Y.document.querySelector("#panel-tab-content")}),I.current&&B.observe(I.current)),()=>B?.disconnect()},[]);let O=Lo({[Ie.CALL]:T,[Ie.SYNC]:B=>{r(N=>{let V=uf({log:B.logItems,calls:x.current,collapsed:a,setCollapsed:c});return{...N,controlStates:B.controlStates,pausedAt:B.pausedAt,interactions:V,interactionsCount:V.filter(({method:Z})=>Z!=="step").length}}),w.c
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }