From 1cd6d21e37e63e5ba370a99f7886a1341b7d36eb Mon Sep 17 00:00:00 2001 From: GH Pages Bot Date: Tue, 20 Feb 2024 02:59:39 -0700 Subject: [PATCH] Deploy Storybook to GitHub Pages --- 176.3b563e8d.iframe.bundle.js | 2 + 176.3b563e8d.iframe.bundle.js.LICENSE.txt | 9 + ...pleUsage-stories.a747e553.iframe.bundle.js | 31 ++ ...ries.a747e553.iframe.bundle.js.LICENSE.txt | 3 + ...sage-stories.a747e553.iframe.bundle.js.map | 1 + ...cedUsage-stories.619a37a4.iframe.bundle.js | 65 +++ ...ries.619a37a4.iframe.bundle.js.LICENSE.txt | 3 + ...sage-stories.619a37a4.iframe.bundle.js.map | 1 + ...mization-stories.8d19e21e.iframe.bundle.js | 16 + ...tion-stories.8d19e21e.iframe.bundle.js.map | 1 + 4_Libraries-stories.cb4d2123.iframe.bundle.js | 30 ++ ...ries-stories.cb4d2123.iframe.bundle.js.map | 1 + 544.38616729.iframe.bundle.js | 152 +++++++ 544.38616729.iframe.bundle.js.LICENSE.txt | 1 + 544.38616729.iframe.bundle.js.map | 1 + 579.98df6196.iframe.bundle.js | 2 + 579.98df6196.iframe.bundle.js.LICENSE.txt | 53 +++ 66.1ecb914d.iframe.bundle.js | 2 + 66.1ecb914d.iframe.bundle.js.LICENSE.txt | 18 + favicon.svg | 7 + iframe.html | 357 +++++++++++++++ index.html | 95 ++++ index.json | 1 + main.2ef70e85.iframe.bundle.js | 1 + project.json | 1 + runtime~main.ba4c3f18.iframe.bundle.js | 1 + sb-addons/actions-0/manager-bundle.js | 3 + .../actions-0/manager-bundle.js.LEGAL.txt | 0 sb-addons/storybook-1/manager-bundle.js | 3 + .../storybook-1/manager-bundle.js.LEGAL.txt | 0 sb-common-assets/fonts.css | 31 ++ .../nunito-sans-bold-italic.woff2 | Bin 0 -> 49460 bytes sb-common-assets/nunito-sans-bold.woff2 | Bin 0 -> 47144 bytes sb-common-assets/nunito-sans-italic.woff2 | Bin 0 -> 49620 bytes sb-common-assets/nunito-sans-regular.woff2 | Bin 0 -> 47072 bytes ...lobalScrollAreaStyles-UY5SB7EJ-BKTFUTA6.js | 7 + .../OverlayScrollbars-GZGLA7DL-YJ2Z3IBE.js | 1 + sb-manager/WithTooltip-J57HCPYA-3VOMFVVS.js | 1 + sb-manager/chunk-3J6GS6FI.js | 1 + sb-manager/chunk-NBCGHFLK.js | 136 ++++++ sb-manager/chunk-O2ZUMB77.js | 7 + sb-manager/chunk-QMHPSTMR.js | 15 + sb-manager/chunk-QPL63VNK.js | 1 + sb-manager/chunk-RKFFWI2D.js | 1 + sb-manager/chunk-SPUAGIB2.js | 207 +++++++++ sb-manager/chunk-T3KZBRDU.js | 408 ++++++++++++++++++ sb-manager/formatter-SWP5E3XI-FS7NNRKF.js | 156 +++++++ sb-manager/globals.js | 1 + sb-manager/index.js | 1 + sb-manager/runtime.js | 1 + .../syntaxhighlighter-PONEFOSF-PLQPOLN2.js | 1 + sb-preview/globals.js | 1 + sb-preview/runtime.js | 112 +++++ stories.json | 1 + 54 files changed, 1951 insertions(+) create mode 100644 176.3b563e8d.iframe.bundle.js create mode 100644 176.3b563e8d.iframe.bundle.js.LICENSE.txt create mode 100644 1_SimpleUsage-stories.a747e553.iframe.bundle.js create mode 100644 1_SimpleUsage-stories.a747e553.iframe.bundle.js.LICENSE.txt create mode 100644 1_SimpleUsage-stories.a747e553.iframe.bundle.js.map create mode 100644 2_AdvancedUsage-stories.619a37a4.iframe.bundle.js create mode 100644 2_AdvancedUsage-stories.619a37a4.iframe.bundle.js.LICENSE.txt create mode 100644 2_AdvancedUsage-stories.619a37a4.iframe.bundle.js.map create mode 100644 3_Customization-stories.8d19e21e.iframe.bundle.js create mode 100644 3_Customization-stories.8d19e21e.iframe.bundle.js.map create mode 100644 4_Libraries-stories.cb4d2123.iframe.bundle.js create mode 100644 4_Libraries-stories.cb4d2123.iframe.bundle.js.map create mode 100644 544.38616729.iframe.bundle.js create mode 100644 544.38616729.iframe.bundle.js.LICENSE.txt create mode 100644 544.38616729.iframe.bundle.js.map create mode 100644 579.98df6196.iframe.bundle.js create mode 100644 579.98df6196.iframe.bundle.js.LICENSE.txt create mode 100644 66.1ecb914d.iframe.bundle.js create mode 100644 66.1ecb914d.iframe.bundle.js.LICENSE.txt create mode 100644 favicon.svg create mode 100644 iframe.html create mode 100644 index.html create mode 100644 index.json create mode 100644 main.2ef70e85.iframe.bundle.js create mode 100644 project.json create mode 100644 runtime~main.ba4c3f18.iframe.bundle.js create mode 100644 sb-addons/actions-0/manager-bundle.js create mode 100644 sb-addons/actions-0/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/storybook-1/manager-bundle.js create mode 100644 sb-addons/storybook-1/manager-bundle.js.LEGAL.txt create mode 100644 sb-common-assets/fonts.css create mode 100644 sb-common-assets/nunito-sans-bold-italic.woff2 create mode 100644 sb-common-assets/nunito-sans-bold.woff2 create mode 100644 sb-common-assets/nunito-sans-italic.woff2 create mode 100644 sb-common-assets/nunito-sans-regular.woff2 create mode 100644 sb-manager/GlobalScrollAreaStyles-UY5SB7EJ-BKTFUTA6.js create mode 100644 sb-manager/OverlayScrollbars-GZGLA7DL-YJ2Z3IBE.js create mode 100644 sb-manager/WithTooltip-J57HCPYA-3VOMFVVS.js create mode 100644 sb-manager/chunk-3J6GS6FI.js create mode 100644 sb-manager/chunk-NBCGHFLK.js create mode 100644 sb-manager/chunk-O2ZUMB77.js create mode 100644 sb-manager/chunk-QMHPSTMR.js create mode 100644 sb-manager/chunk-QPL63VNK.js create mode 100644 sb-manager/chunk-RKFFWI2D.js create mode 100644 sb-manager/chunk-SPUAGIB2.js create mode 100644 sb-manager/chunk-T3KZBRDU.js create mode 100644 sb-manager/formatter-SWP5E3XI-FS7NNRKF.js create mode 100644 sb-manager/globals.js create mode 100644 sb-manager/index.js create mode 100644 sb-manager/runtime.js create mode 100644 sb-manager/syntaxhighlighter-PONEFOSF-PLQPOLN2.js create mode 100644 sb-preview/globals.js create mode 100644 sb-preview/runtime.js create mode 100644 stories.json diff --git a/176.3b563e8d.iframe.bundle.js b/176.3b563e8d.iframe.bundle.js new file mode 100644 index 000000000..c23f89149 --- /dev/null +++ b/176.3b563e8d.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 176.3b563e8d.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_projectstorm_react_diagrams_gallery=self.webpackChunk_projectstorm_react_diagrams_gallery||[]).push([[176],{"../node_modules/.pnpm/gsap@3.12.2/node_modules/gsap/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}__webpack_require__.d(__webpack_exports__,{ZP:()=>gsapWithCSS});var _suppressOverwrites,_reverting,_context,_globalTimeline,_win,_coreInitted,_doc,_coreReady,_lastRenderedFrame,_quickTween,_tickerActive,n,c,n1,easeOut,_config={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_defaults={duration:.5,overwrite:!1,delay:0},_bigNum=1e8,_2PI=2*Math.PI,_HALF_PI=_2PI/4,_gsID=0,_sqrt=Math.sqrt,_cos=Math.cos,_sin=Math.sin,_isString=function _isString(value){return"string"==typeof value},_isFunction=function _isFunction(value){return"function"==typeof value},_isNumber=function _isNumber(value){return"number"==typeof value},_isUndefined=function _isUndefined(value){return void 0===value},_isObject=function _isObject(value){return"object"==typeof value},_isNotFalse=function _isNotFalse(value){return!1!==value},_windowExists=function _windowExists(){return"undefined"!=typeof window},_isFuncOrString=function _isFuncOrString(value){return _isFunction(value)||_isString(value)},_isTypedArray="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},_isArray=Array.isArray,_strictNumExp=/(?:-?\.?\d|\.)+/gi,_numExp=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_numWithUnitExp=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_complexStringNumExp=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_relExp=/[+-]=-?[.\d]+/,_delimitedValueExp=/[^,'"\[\]\s]+/gi,_unitExp=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_globals={},_installScope={},_install=function _install(scope){return(_installScope=_merge(scope,_globals))&&gsap},_missingPlugin=function _missingPlugin(property,value){return console.warn("Invalid property",property,"set to",value,"Missing plugin? gsap.registerPlugin()")},_warn=function _warn(message,suppress){return!suppress&&console.warn(message)},_addGlobal=function _addGlobal(name,obj){return name&&(_globals[name]=obj)&&_installScope&&(_installScope[name]=obj)||_globals},_emptyFunc=function _emptyFunc(){return 0},_startAtRevertConfig={suppressEvents:!0,isStart:!0,kill:!1},_revertConfigNoKill={suppressEvents:!0,kill:!1},_revertConfig={suppressEvents:!0},_reservedProps={},_lazyTweens=[],_lazyLookup={},_plugins={},_effects={},_nextGCFrame=30,_harnessPlugins=[],_callbackNames="",_harness=function _harness(targets){var harnessPlugin,i,target=targets[0];if(_isObject(target)||_isFunction(target)||(targets=[targets]),!(harnessPlugin=(target._gsap||{}).harness)){for(i=_harnessPlugins.length;i--&&!_harnessPlugins[i].targetTest(target););harnessPlugin=_harnessPlugins[i]}for(i=targets.length;i--;)targets[i]&&(targets[i]._gsap||(targets[i]._gsap=new GSCache(targets[i],harnessPlugin)))||targets.splice(i,1);return targets},_getCache=function _getCache(target){return target._gsap||_harness(toArray(target))[0]._gsap},_getProperty=function _getProperty(target,property,v){return(v=target[property])&&_isFunction(v)?target[property]():_isUndefined(v)&&target.getAttribute&&target.getAttribute(property)||v},_forEachName=function _forEachName(names,func){return(names=names.split(",")).forEach(func)||names},_round=function _round(value){return Math.round(1e5*value)/1e5||0},_roundPrecise=function _roundPrecise(value){return Math.round(1e7*value)/1e7||0},_parseRelative=function _parseRelative(start,value){var operator=value.charAt(0),end=parseFloat(value.substr(2));return start=parseFloat(start),"+"===operator?start+end:"-"===operator?start-end:"*"===operator?start*end:start/end},_arrayContainsAny=function _arrayContainsAny(toSearch,toFind){for(var l=toFind.length,i=0;toSearch.indexOf(toFind[i])<0&&++it;)prev=prev._prev;return prev?(child._next=prev._next,prev._next=child):(child._next=parent[firstProp],parent[firstProp]=child),child._next?child._next._prev=child:parent[lastProp]=child,child._prev=prev,child.parent=child._dp=parent,child},_removeLinkedListItem=function _removeLinkedListItem(parent,child,firstProp,lastProp){void 0===firstProp&&(firstProp="_first"),void 0===lastProp&&(lastProp="_last");var prev=child._prev,next=child._next;prev?prev._next=next:parent[firstProp]===child&&(parent[firstProp]=next),next?next._prev=prev:parent[lastProp]===child&&(parent[lastProp]=prev),child._next=child._prev=child.parent=null},_removeFromParent=function _removeFromParent(child,onlyIfParentHasAutoRemove){child.parent&&(!onlyIfParentHasAutoRemove||child.parent.autoRemoveChildren)&&child.parent.remove&&child.parent.remove(child),child._act=0},_uncache=function _uncache(animation,child){if(animation&&(!child||child._end>animation._dur||child._start<0))for(var a=animation;a;)a._dirty=1,a=a.parent;return animation},_rewindStartAt=function _rewindStartAt(tween,totalTime,suppressEvents,force){return tween._startAt&&(_reverting?tween._startAt.revert(_revertConfigNoKill):tween.vars.immediateRender&&!tween.vars.autoRevert||tween._startAt.render(totalTime,!0,force))},_hasNoPausedAncestors=function _hasNoPausedAncestors(animation){return!animation||animation._ts&&_hasNoPausedAncestors(animation.parent)},_elapsedCycleDuration=function _elapsedCycleDuration(animation){return animation._repeat?_animationCycle(animation._tTime,animation=animation.duration()+animation._rDelay)*animation:0},_animationCycle=function _animationCycle(tTime,cycleDuration){var whole=Math.floor(tTime/=cycleDuration);return tTime&&whole===tTime?whole-1:whole},_parentToChildTotalTime=function _parentToChildTotalTime(parentTime,child){return(parentTime-child._start)*child._ts+(child._ts>=0?0:child._dirty?child.totalDuration():child._tDur)},_setEnd=function _setEnd(animation){return animation._end=_roundPrecise(animation._start+(animation._tDur/Math.abs(animation._ts||animation._rts||1e-8)||0))},_alignPlayhead=function _alignPlayhead(animation,totalTime){var parent=animation._dp;return parent&&parent.smoothChildTiming&&animation._ts&&(animation._start=_roundPrecise(parent._time-(animation._ts>0?totalTime/animation._ts:((animation._dirty?animation.totalDuration():animation._tDur)-totalTime)/-animation._ts)),_setEnd(animation),parent._dirty||_uncache(parent,animation)),animation},_postAddChecks=function _postAddChecks(timeline,child){var t;if((child._time||!child._dur&&child._initted||child._start1e-8)&&child.render(t,!0)),_uncache(timeline,child)._dp&&timeline._initted&&timeline._time>=timeline._dur&&timeline._ts){if(timeline._dur=0&&t.totalTime(t._tTime),t=t._dp;timeline._zTime=-1e-8}},_addToTimeline=function _addToTimeline(timeline,child,position,skipChecks){return child.parent&&_removeFromParent(child),child._start=_roundPrecise((_isNumber(position)?position:position||timeline!==_globalTimeline?_parsePosition(timeline,position,child):timeline._time)+child._delay),child._end=_roundPrecise(child._start+(child.totalDuration()/Math.abs(child.timeScale())||0)),_addLinkedListItem(timeline,child,"_first","_last",timeline._sort?"_start":0),_isFromOrFromStart(child)||(timeline._recent=child),skipChecks||_postAddChecks(timeline,child),timeline._ts<0&&_alignPlayhead(timeline,timeline._tTime),timeline},_scrollTrigger=function _scrollTrigger(animation,trigger){return(_globals.ScrollTrigger||_missingPlugin("scrollTrigger",trigger))&&_globals.ScrollTrigger.create(trigger,animation)},_attemptInitTween=function _attemptInitTween(tween,time,force,suppressEvents,tTime){return _initTween(tween,time,tTime),tween._initted?!force&&tween._pt&&!_reverting&&(tween._dur&&!1!==tween.vars.lazy||!tween._dur&&tween.vars.lazy)&&_lastRenderedFrame!==_ticker.frame?(_lazyTweens.push(tween),tween._lazy=[tTime,suppressEvents],1):void 0:1},_parentPlayheadIsBeforeStart=function _parentPlayheadIsBeforeStart(_ref){var parent=_ref.parent;return parent&&parent._ts&&parent._initted&&!parent._lock&&(parent.rawTime()<0||_parentPlayheadIsBeforeStart(parent))},_isFromOrFromStart=function _isFromOrFromStart(_ref2){var data=_ref2.data;return"isFromStart"===data||"isStart"===data},_setDuration=function _setDuration(animation,duration,skipUncache,leavePlayhead){var repeat=animation._repeat,dur=_roundPrecise(duration)||0,totalProgress=animation._tTime/animation._tDur;return totalProgress&&!leavePlayhead&&(animation._time*=dur/animation._dur),animation._dur=dur,animation._tDur=repeat?repeat<0?1e10:_roundPrecise(dur*(repeat+1)+animation._rDelay*repeat):dur,totalProgress>0&&!leavePlayhead&&_alignPlayhead(animation,animation._tTime=animation._tDur*totalProgress),animation.parent&&_setEnd(animation),skipUncache||_uncache(animation.parent,animation),animation},_onUpdateTotalDuration=function _onUpdateTotalDuration(animation){return animation instanceof Timeline?_uncache(animation):_setDuration(animation,animation._dur)},_zeroPosition={_start:0,endTime:_emptyFunc,totalDuration:_emptyFunc},_parsePosition=function _parsePosition(animation,position,percentAnimation){var i,offset,isPercent,labels=animation.labels,recent=animation._recent||_zeroPosition,clippedDuration=animation.duration()>=_bigNum?recent.endTime(!1):animation._dur;return _isString(position)&&(isNaN(position)||position in labels)?(offset=position.charAt(0),isPercent="%"===position.substr(-1),i=position.indexOf("="),"<"===offset||">"===offset?(i>=0&&(position=position.replace(/=/,"")),("<"===offset?recent._start:recent.endTime(recent._repeat>=0))+(parseFloat(position.substr(1))||0)*(isPercent?(i<0?recent:percentAnimation).totalDuration()/100:1)):i<0?(position in labels||(labels[position]=clippedDuration),labels[position]):(offset=parseFloat(position.charAt(i-1)+position.substr(i+1)),isPercent&&percentAnimation&&(offset=offset/100*(_isArray(percentAnimation)?percentAnimation[0]:percentAnimation).totalDuration()),i>1?_parsePosition(animation,position.substr(0,i-1),percentAnimation)+offset:clippedDuration+offset)):null==position?clippedDuration:+position},_createTweenType=function _createTweenType(type,params,timeline){var irVars,parent,isLegacy=_isNumber(params[1]),varsIndex=(isLegacy?2:1)+(type<2?0:1),vars=params[varsIndex];if(isLegacy&&(vars.duration=params[1]),vars.parent=timeline,type){for(irVars=vars,parent=timeline;parent&&!("immediateRender"in irVars);)irVars=parent.vars.defaults||{},parent=_isNotFalse(parent.vars.inherit)&&parent.parent;vars.immediateRender=_isNotFalse(irVars.immediateRender),type<2?vars.runBackwards=1:vars.startAt=params[varsIndex-1]}return new Tween(params[0],vars,params[varsIndex+1])},_conditionalReturn=function _conditionalReturn(value,func){return value||0===value?func(value):func},_clamp=function _clamp(min,max,value){return valuemax?max:value},getUnit=function getUnit(value,v){return _isString(value)&&(v=_unitExp.exec(value))?v[1]:""},_slice=[].slice,_isArrayLike=function _isArrayLike(value,nonEmpty){return value&&_isObject(value)&&"length"in value&&(!nonEmpty&&!value.length||value.length-1 in value&&_isObject(value[0]))&&!value.nodeType&&value!==_win},_flatten=function _flatten(ar,leaveStrings,accumulator){return void 0===accumulator&&(accumulator=[]),ar.forEach((function(value){var _accumulator;return _isString(value)&&!leaveStrings||_isArrayLike(value,1)?(_accumulator=accumulator).push.apply(_accumulator,toArray(value)):accumulator.push(value)}))||accumulator},toArray=function toArray(value,scope,leaveStrings){return _context&&!scope&&_context.selector?_context.selector(value):!_isString(value)||leaveStrings||!_coreInitted&&_wake()?_isArray(value)?_flatten(value,leaveStrings):_isArrayLike(value)?_slice.call(value,0):value?[value]:[]:_slice.call((scope||_doc).querySelectorAll(value),0)},selector=function selector(value){return value=toArray(value)[0]||_warn("Invalid scope")||{},function(v){var el=value.current||value.nativeElement||value;return toArray(v,el.querySelectorAll?el:el===value?_warn("Invalid scope")||_doc.createElement("div"):value)}},shuffle=function shuffle(a){return a.sort((function(){return.5-Math.random()}))},distribute=function distribute(v){if(_isFunction(v))return v;var vars=_isObject(v)?v:{each:v},ease=_parseEase(vars.ease),from=vars.from||0,base=parseFloat(vars.base)||0,cache={},isDecimal=from>0&&from<1,ratios=isNaN(from)||isDecimal,axis=vars.axis,ratioX=from,ratioY=from;return _isString(from)?ratioX=ratioY={center:.5,edges:.5,end:1}[from]||0:!isDecimal&&ratios&&(ratioX=from[0],ratioY=from[1]),function(i,target,a){var originX,originY,x,y,d,j,max,min,wrapAt,l=(a||vars).length,distances=cache[l];if(!distances){if(!(wrapAt="auto"===vars.grid?0:(vars.grid||[1,_bigNum])[1])){for(max=-_bigNum;max<(max=a[wrapAt++].getBoundingClientRect().left)&&wrapAtmax&&(max=d),dl?l-1:axis?"y"===axis?l/wrapAt:wrapAt:Math.max(wrapAt,l/wrapAt))||0)*("edges"===from?-1:1),distances.b=l<0?base-l:base,distances.u=getUnit(vars.amount||vars.each)||0,ease=ease&&l<0?_invertEase(ease):ease}return l=(distances[i]-distances.min)/distances.max||0,_roundPrecise(distances.b+(ease?ease(l):l)*distances.v)+distances.u}},_roundModifier=function _roundModifier(v){var p=Math.pow(10,((v+"").split(".")[1]||"").length);return function(raw){var n=_roundPrecise(Math.round(parseFloat(raw)/v)*v*p);return(n-n%1)/p+(_isNumber(raw)?0:getUnit(raw))}},snap=function snap(snapTo,value){var radius,is2D,isArray=_isArray(snapTo);return!isArray&&_isObject(snapTo)&&(radius=isArray=snapTo.radius||_bigNum,snapTo.values?(snapTo=toArray(snapTo.values),(is2D=!_isNumber(snapTo[0]))&&(radius*=radius)):snapTo=_roundModifier(snapTo.increment)),_conditionalReturn(value,isArray?_isFunction(snapTo)?function(raw){return is2D=snapTo(raw),Math.abs(is2D-raw)<=radius?is2D:raw}:function(raw){for(var dx,dy,x=parseFloat(is2D?raw.x:raw),y=parseFloat(is2D?raw.y:0),min=_bigNum,closest=0,i=snapTo.length;i--;)(dx=is2D?(dx=snapTo[i].x-x)*dx+(dy=snapTo[i].y-y)*dy:Math.abs(snapTo[i]-x))(distance=Math.abs(distance))&&(label=p,min=distance);return label},_callback=function _callback(animation,type,executeLazyFirst){var params,scope,result,v=animation.vars,callback=v[type],prevContext=_context,context=animation._ctx;if(callback)return params=v[type+"Params"],scope=v.callbackScope||animation,executeLazyFirst&&_lazyTweens.length&&_lazyRender(),context&&(_context=context),result=params?callback.apply(scope,params):callback.call(scope),_context=prevContext,result},_interrupt=function _interrupt(animation){return _removeFromParent(animation),animation.scrollTrigger&&animation.scrollTrigger.kill(!!_reverting),animation.progress()<1&&_callback(animation,"onInterrupt"),animation},_registerPluginQueue=[],_createPlugin=function _createPlugin(config){if(_windowExists()&&config){var name=(config=!config.name&&config.default||config).name,isFunc=_isFunction(config),Plugin=name&&!isFunc&&config.init?function(){this._props=[]}:config,instanceDefaults={init:_emptyFunc,render:_renderPropTweens,add:_addPropTween,kill:_killPropTweensOf,modifier:_addPluginModifier,rawVars:0},statics={targetTest:0,get:0,getSetter:_getSetter,aliases:{},register:0};if(_wake(),config!==Plugin){if(_plugins[name])return;_setDefaults(Plugin,_setDefaults(_copyExcluding(config,instanceDefaults),statics)),_merge(Plugin.prototype,_merge(instanceDefaults,_copyExcluding(config,statics))),_plugins[Plugin.prop=name]=Plugin,config.targetTest&&(_harnessPlugins.push(Plugin),_reservedProps[name]=1),name=("css"===name?"CSS":name.charAt(0).toUpperCase()+name.substr(1))+"Plugin"}_addGlobal(name,Plugin),config.register&&config.register(gsap,Plugin,PropTween)}else config&&_registerPluginQueue.push(config)},_colorLookup={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},_hue=function _hue(h,m1,m2){return 255*(6*(h+=h<0?1:h>1?-1:0)<1?m1+(m2-m1)*h*6:h<.5?m2:3*h<2?m1+(m2-m1)*(2/3-h)*6:m1)+.5|0},splitColor=function splitColor(v,toHSL,forceAlpha){var r,g,b,h,s,l,max,min,d,wasHSL,a=v?_isNumber(v)?[v>>16,v>>8&255,255&v]:0:_colorLookup.black;if(!a){if(","===v.substr(-1)&&(v=v.substr(0,v.length-1)),_colorLookup[v])a=_colorLookup[v];else if("#"===v.charAt(0)){if(v.length<6&&(r=v.charAt(1),g=v.charAt(2),b=v.charAt(3),v="#"+r+r+g+g+b+b+(5===v.length?v.charAt(4)+v.charAt(4):"")),9===v.length)return[(a=parseInt(v.substr(1,6),16))>>16,a>>8&255,255&a,parseInt(v.substr(7),16)/255];a=[(v=parseInt(v.substr(1),16))>>16,v>>8&255,255&v]}else if("hsl"===v.substr(0,3))if(a=wasHSL=v.match(_strictNumExp),toHSL){if(~v.indexOf("="))return a=v.match(_numExp),forceAlpha&&a.length<4&&(a[3]=1),a}else h=+a[0]%360/360,s=+a[1]/100,r=2*(l=+a[2]/100)-(g=l<=.5?l*(s+1):l+s-l*s),a.length>3&&(a[3]*=1),a[0]=_hue(h+1/3,r,g),a[1]=_hue(h,r,g),a[2]=_hue(h-1/3,r,g);else a=v.match(_strictNumExp)||_colorLookup.transparent;a=a.map(Number)}return toHSL&&!wasHSL&&(r=a[0]/255,g=a[1]/255,b=a[2]/255,l=((max=Math.max(r,g,b))+(min=Math.min(r,g,b)))/2,max===min?h=s=0:(d=max-min,s=l>.5?d/(2-max-min):d/(max+min),h=max===r?(g-b)/d+(g_lagThreshold&&(_startTime+=elapsed-_adjustedLag),((overlap=(time=(_lastUpdate+=elapsed)-_startTime)-_nextTime)>0||manual)&&(frame=++_self.frame,_delta=time-1e3*_self.time,_self.time=time/=1e3,_nextTime+=overlap+(overlap>=_gap?4:_gap-overlap),dispatch=1),manual||(_id=_req(_tick)),dispatch)for(_i=0;_i<_listeners.length;_i++)_listeners[_i](time,_delta,frame,v)};return _self={time:0,frame:0,tick:function tick(){_tick(!0)},deltaRatio:function deltaRatio(fps){return _delta/(1e3/(fps||60))},wake:function wake(){_coreReady&&(!_coreInitted&&_windowExists()&&(_win=_coreInitted=window,_doc=_win.document||{},_globals.gsap=gsap,(_win.gsapVersions||(_win.gsapVersions=[])).push(gsap.version),_install(_installScope||_win.GreenSockGlobals||!_win.gsap&&_win||{}),_raf=_win.requestAnimationFrame,_registerPluginQueue.forEach(_createPlugin)),_id&&_self.sleep(),_req=_raf||function(f){return setTimeout(f,_nextTime-1e3*_self.time+1|0)},_tickerActive=1,_tick(2))},sleep:function sleep(){(_raf?_win.cancelAnimationFrame:clearTimeout)(_id),_tickerActive=0,_req=_emptyFunc},lagSmoothing:function lagSmoothing(threshold,adjustedLag){_lagThreshold=threshold||1/0,_adjustedLag=Math.min(adjustedLag||33,_lagThreshold)},fps:function fps(_fps){_gap=1e3/(_fps||240),_nextTime=1e3*_self.time+_gap},add:function add(callback,once,prioritize){var func=once?function(t,d,f,v){callback(t,d,f,v),_self.remove(func)}:callback;return _self.remove(callback),_listeners[prioritize?"unshift":"push"](func),_wake(),func},remove:function remove(callback,i){~(i=_listeners.indexOf(callback))&&_listeners.splice(i,1)&&_i>=i&&_i--},_listeners}}(),_wake=function _wake(){return!_tickerActive&&_ticker.wake()},_easeMap={},_customEaseExp=/^[\d.\-M][\d.\-,\s]/,_quotesExp=/["']/g,_parseObjectInString=function _parseObjectInString(value){for(var index,val,parsedVal,obj={},split=value.substr(1,value.length-3).split(":"),key=split[0],i=1,l=split.length;i1&&ease.config?ease.config.apply(null,~name.indexOf("{")?[_parseObjectInString(split[1])]:function _valueInParentheses(value){var open=value.indexOf("(")+1,close=value.indexOf(")"),nested=value.indexOf("(",open);return value.substring(open,~nested&&nested=1?amplitude:1,p2=(period||(type?.3:.45))/(amplitude<1?amplitude:1),p3=p2/_2PI*(Math.asin(1/p1)||0),easeOut=function easeOut(p){return 1===p?1:p1*Math.pow(2,-10*p)*_sin((p-p3)*p2)+1},ease="out"===type?easeOut:"in"===type?function(p){return 1-easeOut(1-p)}:_easeInOutFromOut(easeOut);return p2=_2PI/p2,ease.config=function(amplitude,period){return _configElastic(type,amplitude,period)},ease},_configBack=function _configBack(type,overshoot){void 0===overshoot&&(overshoot=1.70158);var easeOut=function easeOut(p){return p?--p*p*((overshoot+1)*p+overshoot)+1:0},ease="out"===type?easeOut:"in"===type?function(p){return 1-easeOut(1-p)}:_easeInOutFromOut(easeOut);return ease.config=function(overshoot){return _configBack(type,overshoot)},ease};_forEachName("Linear,Quad,Cubic,Quart,Quint,Strong",(function(name,i){var power=i<5?i+1:i;_insertEase(name+",Power"+(power-1),i?function(p){return Math.pow(p,power)}:function(p){return p},(function(p){return 1-Math.pow(1-p,power)}),(function(p){return p<.5?Math.pow(2*p,power)/2:1-Math.pow(2*(1-p),power)/2}))})),_easeMap.Linear.easeNone=_easeMap.none=_easeMap.Linear.easeIn,_insertEase("Elastic",_configElastic("in"),_configElastic("out"),_configElastic()),n=7.5625,n1=1/(c=2.75),_insertEase("Bounce",(function(p){return 1-easeOut(1-p)}),easeOut=function easeOut(p){return p0?value+(value+this._rDelay)*this._repeat:value):this.totalDuration()&&this._dur},_proto.totalDuration=function totalDuration(value){return arguments.length?(this._dirty=0,_setDuration(this,this._repeat<0?value:(value-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},_proto.totalTime=function totalTime(_totalTime,suppressEvents){if(_wake(),!arguments.length)return this._tTime;var parent=this._dp;if(parent&&parent.smoothChildTiming&&this._ts){for(_alignPlayhead(this,_totalTime),!parent._dp||parent.parent||_postAddChecks(parent,this);parent&&parent.parent;)parent.parent._time!==parent._start+(parent._ts>=0?parent._tTime/parent._ts:(parent.totalDuration()-parent._tTime)/-parent._ts)&&parent.totalTime(parent._tTime,!0),parent=parent.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&_totalTime0||!this._tDur&&!_totalTime)&&_addToTimeline(this._dp,this,this._start-this._delay)}return(this._tTime!==_totalTime||!this._dur&&!suppressEvents||this._initted&&1e-8===Math.abs(this._zTime)||!_totalTime&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=_totalTime),_lazySafeRender(this,_totalTime,suppressEvents)),this},_proto.time=function time(value,suppressEvents){return arguments.length?this.totalTime(Math.min(this.totalDuration(),value+_elapsedCycleDuration(this))%(this._dur+this._rDelay)||(value?this._dur:0),suppressEvents):this._time},_proto.totalProgress=function totalProgress(value,suppressEvents){return arguments.length?this.totalTime(this.totalDuration()*value,suppressEvents):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},_proto.progress=function progress(value,suppressEvents){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?value:1-value)+_elapsedCycleDuration(this),suppressEvents):this.duration()?Math.min(1,this._time/this._dur):this.ratio},_proto.iteration=function iteration(value,suppressEvents){var cycleDuration=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(value-1)*cycleDuration,suppressEvents):this._repeat?_animationCycle(this._tTime,cycleDuration)+1:1},_proto.timeScale=function timeScale(value){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===value)return this;var tTime=this.parent&&this._ts?_parentToChildTotalTime(this.parent._time,this):this._tTime;return this._rts=+value||0,this._ts=this._ps||-1e-8===value?0:this._rts,this.totalTime(_clamp(-Math.abs(this._delay),this._tDur,tTime),!0),_setEnd(this),function _recacheAncestors(animation){for(var parent=animation.parent;parent&&parent.parent;)parent._dirty=1,parent.totalDuration(),parent=parent.parent;return animation}(this)},_proto.paused=function paused(value){return arguments.length?(this._ps!==value&&(this._ps=value,value?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(_wake(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},_proto.startTime=function startTime(value){if(arguments.length){this._start=value;var parent=this.parent||this._dp;return parent&&(parent._sort||!this.parent)&&_addToTimeline(parent,this,value-this._delay),this}return this._start},_proto.endTime=function endTime(includeRepeats){return this._start+(_isNotFalse(includeRepeats)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},_proto.rawTime=function rawTime(wrapRepeats){var parent=this.parent||this._dp;return parent?wrapRepeats&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?_parentToChildTotalTime(parent.rawTime(wrapRepeats),this):this._tTime:this._tTime},_proto.revert=function revert(config){void 0===config&&(config=_revertConfig);var prevIsReverting=_reverting;return _reverting=config,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(config),this.totalTime(-.01,config.suppressEvents)),"nested"!==this.data&&!1!==config.kill&&this.kill(),_reverting=prevIsReverting,this},_proto.globalTime=function globalTime(rawTime){for(var animation=this,time=arguments.length?rawTime:animation.rawTime();animation;)time=animation._start+time/(animation._ts||1),animation=animation._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1/0:this._sat.globalTime(rawTime):time},_proto.repeat=function repeat(value){return arguments.length?(this._repeat=value===1/0?-2:value,_onUpdateTotalDuration(this)):-2===this._repeat?1/0:this._repeat},_proto.repeatDelay=function repeatDelay(value){if(arguments.length){var time=this._time;return this._rDelay=value,_onUpdateTotalDuration(this),time?this.time(time):this}return this._rDelay},_proto.yoyo=function yoyo(value){return arguments.length?(this._yoyo=value,this):this._yoyo},_proto.seek=function seek(position,suppressEvents){return this.totalTime(_parsePosition(this,position),_isNotFalse(suppressEvents))},_proto.restart=function restart(includeDelay,suppressEvents){return this.play().totalTime(includeDelay?-this._delay:0,_isNotFalse(suppressEvents))},_proto.play=function play(from,suppressEvents){return null!=from&&this.seek(from,suppressEvents),this.reversed(!1).paused(!1)},_proto.reverse=function reverse(from,suppressEvents){return null!=from&&this.seek(from||this.totalDuration(),suppressEvents),this.reversed(!0).paused(!1)},_proto.pause=function pause(atTime,suppressEvents){return null!=atTime&&this.seek(atTime,suppressEvents),this.paused(!0)},_proto.resume=function resume(){return this.paused(!1)},_proto.reversed=function reversed(value){return arguments.length?(!!value!==this.reversed()&&this.timeScale(-this._rts||(value?-1e-8:0)),this):this._rts<0},_proto.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-1e-8,this},_proto.isActive=function isActive(){var rawTime,parent=this.parent||this._dp,start=this._start;return!(parent&&!(this._ts&&this._initted&&parent.isActive()&&(rawTime=parent.rawTime(!0))>=start&&rawTime1?(callback?(vars[type]=callback,params&&(vars[type+"Params"]=params),"onUpdate"===type&&(this._onUpdate=callback)):delete vars[type],this):vars[type]},_proto.then=function then(onFulfilled){var self=this;return new Promise((function(resolve){var f=_isFunction(onFulfilled)?onFulfilled:_passThrough,_resolve=function _resolve(){var _then=self.then;self.then=null,_isFunction(f)&&(f=f(self))&&(f.then||f===self)&&(self.then=_then),resolve(f),self.then=_then};self._initted&&1===self.totalProgress()&&self._ts>=0||!self._tTime&&self._ts<0?_resolve():self._prom=_resolve}))},_proto.kill=function kill(){_interrupt(this)},Animation}();_setDefaults(Animation.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Timeline=function(_Animation){function Timeline(vars,position){var _this;return void 0===vars&&(vars={}),(_this=_Animation.call(this,vars)||this).labels={},_this.smoothChildTiming=!!vars.smoothChildTiming,_this.autoRemoveChildren=!!vars.autoRemoveChildren,_this._sort=_isNotFalse(vars.sortChildren),_globalTimeline&&_addToTimeline(vars.parent||_globalTimeline,_assertThisInitialized(_this),position),vars.reversed&&_this.reverse(),vars.paused&&_this.paused(!0),vars.scrollTrigger&&_scrollTrigger(_assertThisInitialized(_this),vars.scrollTrigger),_this}_inheritsLoose(Timeline,_Animation);var _proto2=Timeline.prototype;return _proto2.to=function to(targets,vars,position){return _createTweenType(0,arguments,this),this},_proto2.from=function from(targets,vars,position){return _createTweenType(1,arguments,this),this},_proto2.fromTo=function fromTo(targets,fromVars,toVars,position){return _createTweenType(2,arguments,this),this},_proto2.set=function set(targets,vars,position){return vars.duration=0,vars.parent=this,_inheritDefaults(vars).repeatDelay||(vars.repeat=0),vars.immediateRender=!!vars.immediateRender,new Tween(targets,vars,_parsePosition(this,position),1),this},_proto2.call=function call(callback,params,position){return _addToTimeline(this,Tween.delayedCall(0,callback,params),position)},_proto2.staggerTo=function staggerTo(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams){return vars.duration=duration,vars.stagger=vars.stagger||stagger,vars.onComplete=onCompleteAll,vars.onCompleteParams=onCompleteAllParams,vars.parent=this,new Tween(targets,vars,_parsePosition(this,position)),this},_proto2.staggerFrom=function staggerFrom(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams){return vars.runBackwards=1,_inheritDefaults(vars).immediateRender=_isNotFalse(vars.immediateRender),this.staggerTo(targets,duration,vars,stagger,position,onCompleteAll,onCompleteAllParams)},_proto2.staggerFromTo=function staggerFromTo(targets,duration,fromVars,toVars,stagger,position,onCompleteAll,onCompleteAllParams){return toVars.startAt=fromVars,_inheritDefaults(toVars).immediateRender=_isNotFalse(toVars.immediateRender),this.staggerTo(targets,duration,toVars,stagger,position,onCompleteAll,onCompleteAllParams)},_proto2.render=function render(totalTime,suppressEvents,force){var time,child,next,iteration,cycleDuration,prevPaused,pauseTween,timeScale,prevStart,prevIteration,yoyo,isYoyo,prevTime=this._time,tDur=this._dirty?this.totalDuration():this._tDur,dur=this._dur,tTime=totalTime<=0?0:_roundPrecise(totalTime),crossingStart=this._zTime<0!=totalTime<0&&(this._initted||!dur);if(this!==_globalTimeline&&tTime>tDur&&totalTime>=0&&(tTime=tDur),tTime!==this._tTime||force||crossingStart){if(prevTime!==this._time&&dur&&(tTime+=this._time-prevTime,totalTime+=this._time-prevTime),time=tTime,prevStart=this._start,prevPaused=!(timeScale=this._ts),crossingStart&&(dur||(prevTime=this._zTime),(totalTime||!suppressEvents)&&(this._zTime=totalTime)),this._repeat){if(yoyo=this._yoyo,cycleDuration=dur+this._rDelay,this._repeat<-1&&totalTime<0)return this.totalTime(100*cycleDuration+totalTime,suppressEvents,force);if(time=_roundPrecise(tTime%cycleDuration),tTime===tDur?(iteration=this._repeat,time=dur):((iteration=~~(tTime/cycleDuration))&&iteration===tTime/cycleDuration&&(time=dur,iteration--),time>dur&&(time=dur)),prevIteration=_animationCycle(this._tTime,cycleDuration),!prevTime&&this._tTime&&prevIteration!==iteration&&this._tTime-prevIteration*cycleDuration-this._dur<=0&&(prevIteration=iteration),yoyo&&1&iteration&&(time=dur-time,isYoyo=1),iteration!==prevIteration&&!this._lock){var rewinding=yoyo&&1&prevIteration,doesWrap=rewinding===(yoyo&&1&iteration);if(iterationprevTime)for(child=animation._first;child&&child._start<=time;){if("isPause"===child.data&&child._start>prevTime)return child;child=child._next}else for(child=animation._last;child&&child._start>=time;){if("isPause"===child.data&&child._start=prevTime&&totalTime>=0)for(child=this._first;child;){if(next=child._next,(child._act||time>=child._start)&&child._ts&&pauseTween!==child){if(child.parent!==this)return this.render(totalTime,suppressEvents,force);if(child.render(child._ts>0?(time-child._start)*child._ts:(child._dirty?child.totalDuration():child._tDur)+(time-child._start)*child._ts,suppressEvents,force),time!==this._time||!this._ts&&!prevPaused){pauseTween=0,next&&(tTime+=this._zTime=-1e-8);break}}child=next}else{child=this._last;for(var adjustedTime=totalTime<0?totalTime:time;child;){if(next=child._prev,(child._act||adjustedTime<=child._end)&&child._ts&&pauseTween!==child){if(child.parent!==this)return this.render(totalTime,suppressEvents,force);if(child.render(child._ts>0?(adjustedTime-child._start)*child._ts:(child._dirty?child.totalDuration():child._tDur)+(adjustedTime-child._start)*child._ts,suppressEvents,force||_reverting&&(child._initted||child._startAt)),time!==this._time||!this._ts&&!prevPaused){pauseTween=0,next&&(tTime+=this._zTime=adjustedTime?-1e-8:1e-8);break}}child=next}}if(pauseTween&&!suppressEvents&&(this.pause(),pauseTween.render(time>=prevTime?0:-1e-8)._zTime=time>=prevTime?1:-1,this._ts))return this._start=prevStart,_setEnd(this),this.render(totalTime,suppressEvents,force);this._onUpdate&&!suppressEvents&&_callback(this,"onUpdate",!0),(tTime===tDur&&this._tTime>=this.totalDuration()||!tTime&&prevTime)&&(prevStart!==this._start&&Math.abs(timeScale)===Math.abs(this._ts)||this._lock||((totalTime||!dur)&&(tTime===tDur&&this._ts>0||!tTime&&this._ts<0)&&_removeFromParent(this,1),suppressEvents||totalTime<0&&!prevTime||!tTime&&!prevTime&&tDur||(_callback(this,tTime===tDur&&totalTime>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(tTime0)&&this._prom())))}return this},_proto2.add=function add(child,position){var _this2=this;if(_isNumber(position)||(position=_parsePosition(this,position,child)),!(child instanceof Animation)){if(_isArray(child))return child.forEach((function(obj){return _this2.add(obj,position)})),this;if(_isString(child))return this.addLabel(child,position);if(!_isFunction(child))return this;child=Tween.delayedCall(0,child)}return this!==child?_addToTimeline(this,child,position):this},_proto2.getChildren=function getChildren(nested,tweens,timelines,ignoreBeforeTime){void 0===nested&&(nested=!0),void 0===tweens&&(tweens=!0),void 0===timelines&&(timelines=!0),void 0===ignoreBeforeTime&&(ignoreBeforeTime=-_bigNum);for(var a=[],child=this._first;child;)child._start>=ignoreBeforeTime&&(child instanceof Tween?tweens&&a.push(child):(timelines&&a.push(child),nested&&a.push.apply(a,child.getChildren(!0,tweens,timelines)))),child=child._next;return a},_proto2.getById=function getById(id){for(var animations=this.getChildren(1,1,1),i=animations.length;i--;)if(animations[i].vars.id===id)return animations[i]},_proto2.remove=function remove(child){return _isString(child)?this.removeLabel(child):_isFunction(child)?this.killTweensOf(child):(_removeLinkedListItem(this,child),child===this._recent&&(this._recent=this._last),_uncache(this))},_proto2.totalTime=function totalTime(_totalTime2,suppressEvents){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_roundPrecise(_ticker.time-(this._ts>0?_totalTime2/this._ts:(this.totalDuration()-_totalTime2)/-this._ts))),_Animation.prototype.totalTime.call(this,_totalTime2,suppressEvents),this._forcing=0,this):this._tTime},_proto2.addLabel=function addLabel(label,position){return this.labels[label]=_parsePosition(this,position),this},_proto2.removeLabel=function removeLabel(label){return delete this.labels[label],this},_proto2.addPause=function addPause(position,callback,params){var t=Tween.delayedCall(0,callback||_emptyFunc,params);return t.data="isPause",this._hasPause=1,_addToTimeline(this,t,_parsePosition(this,position))},_proto2.removePause=function removePause(position){var child=this._first;for(position=_parsePosition(this,position);child;)child._start===position&&"isPause"===child.data&&_removeFromParent(child),child=child._next},_proto2.killTweensOf=function killTweensOf(targets,props,onlyActive){for(var tweens=this.getTweensOf(targets,onlyActive),i=tweens.length;i--;)_overwritingTween!==tweens[i]&&tweens[i].kill(targets,props);return this},_proto2.getTweensOf=function getTweensOf(targets,onlyActive){for(var children,a=[],parsedTargets=toArray(targets),child=this._first,isGlobalTime=_isNumber(onlyActive);child;)child instanceof Tween?_arrayContainsAny(child._targets,parsedTargets)&&(isGlobalTime?(!_overwritingTween||child._initted&&child._ts)&&child.globalTime(0)<=onlyActive&&child.globalTime(child.totalDuration())>onlyActive:!onlyActive||child.isActive())&&a.push(child):(children=child.getTweensOf(parsedTargets,onlyActive)).length&&a.push.apply(a,children),child=child._next;return a},_proto2.tweenTo=function tweenTo(position,vars){vars=vars||{};var initted,tl=this,endTime=_parsePosition(tl,position),_vars=vars,startAt=_vars.startAt,_onStart=_vars.onStart,onStartParams=_vars.onStartParams,immediateRender=_vars.immediateRender,tween=Tween.to(tl,_setDefaults({ease:vars.ease||"none",lazy:!1,immediateRender:!1,time:endTime,overwrite:"auto",duration:vars.duration||Math.abs((endTime-(startAt&&"time"in startAt?startAt.time:tl._time))/tl.timeScale())||1e-8,onStart:function onStart(){if(tl.pause(),!initted){var duration=vars.duration||Math.abs((endTime-(startAt&&"time"in startAt?startAt.time:tl._time))/tl.timeScale());tween._dur!==duration&&_setDuration(tween,duration,0,1).render(tween._time,!0,!0),initted=1}_onStart&&_onStart.apply(tween,onStartParams||[])}},vars));return immediateRender?tween.render(0):tween},_proto2.tweenFromTo=function tweenFromTo(fromPosition,toPosition,vars){return this.tweenTo(toPosition,_setDefaults({startAt:{time:_parsePosition(this,fromPosition)}},vars))},_proto2.recent=function recent(){return this._recent},_proto2.nextLabel=function nextLabel(afterTime){return void 0===afterTime&&(afterTime=this._time),_getLabelInDirection(this,_parsePosition(this,afterTime))},_proto2.previousLabel=function previousLabel(beforeTime){return void 0===beforeTime&&(beforeTime=this._time),_getLabelInDirection(this,_parsePosition(this,beforeTime),1)},_proto2.currentLabel=function currentLabel(value){return arguments.length?this.seek(value,!0):this.previousLabel(this._time+1e-8)},_proto2.shiftChildren=function shiftChildren(amount,adjustLabels,ignoreBeforeTime){void 0===ignoreBeforeTime&&(ignoreBeforeTime=0);for(var p,child=this._first,labels=this.labels;child;)child._start>=ignoreBeforeTime&&(child._start+=amount,child._end+=amount),child=child._next;if(adjustLabels)for(p in labels)labels[p]>=ignoreBeforeTime&&(labels[p]+=amount);return _uncache(this)},_proto2.invalidate=function invalidate(soft){var child=this._first;for(this._lock=0;child;)child.invalidate(soft),child=child._next;return _Animation.prototype.invalidate.call(this,soft)},_proto2.clear=function clear(includeLabels){void 0===includeLabels&&(includeLabels=!0);for(var next,child=this._first;child;)next=child._next,this.remove(child),child=next;return this._dp&&(this._time=this._tTime=this._pTime=0),includeLabels&&(this.labels={}),_uncache(this)},_proto2.totalDuration=function totalDuration(value){var prev,start,parent,max=0,child=this._last,prevStart=_bigNum;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-value:value));if(this._dirty){for(parent=this.parent;child;)prev=child._prev,child._dirty&&child.totalDuration(),(start=child._start)>prevStart&&this._sort&&child._ts&&!this._lock?(this._lock=1,_addToTimeline(this,child,start-child._delay,1)._lock=0):prevStart=start,start<0&&child._ts&&(max-=start,(!parent&&!this._dp||parent&&parent.smoothChildTiming)&&(this._start+=start/this._ts,this._time-=start,this._tTime-=start),this.shiftChildren(-start,!1,-Infinity),prevStart=0),child._end>max&&child._ts&&(max=child._end),child=prev;_setDuration(this,this===_globalTimeline&&this._time>max?this._time:max,1,1),this._dirty=0}return this._tDur},Timeline.updateRoot=function updateRoot(time){if(_globalTimeline._ts&&(_lazySafeRender(_globalTimeline,_parentToChildTotalTime(time,_globalTimeline)),_lastRenderedFrame=_ticker.frame),_ticker.frame>=_nextGCFrame){_nextGCFrame+=_config.autoSleep||120;var child=_globalTimeline._first;if((!child||!child._ts)&&_config.autoSleep&&_ticker._listeners.length<2){for(;child&&!child._ts;)child=child._next;child||_ticker.sleep()}}},Timeline}(Animation);_setDefaults(Timeline.prototype,{_lock:0,_hasPause:0,_forcing:0});var _overwritingTween,_forceAllPropTweens,_addComplexStringPropTween=function _addComplexStringPropTween(target,prop,start,end,setter,stringFilter,funcParam){var result,startNums,color,endNum,chunk,startNum,hasRandom,a,pt=new PropTween(this._pt,target,prop,0,1,_renderComplexString,null,setter),index=0,matchIndex=0;for(pt.b=start,pt.e=end,start+="",(hasRandom=~(end+="").indexOf("random("))&&(end=_replaceRandom(end)),stringFilter&&(stringFilter(a=[start,end],target,prop),start=a[0],end=a[1]),startNums=start.match(_complexStringNumExp)||[];result=_complexStringNumExp.exec(end);)endNum=result[0],chunk=end.substring(index,result.index),color?color=(color+1)%5:"rgba("===chunk.substr(-5)&&(color=1),endNum!==startNums[matchIndex++]&&(startNum=parseFloat(startNums[matchIndex-1])||0,pt._pt={_next:pt._pt,p:chunk||1===matchIndex?chunk:",",s:startNum,c:"="===endNum.charAt(1)?_parseRelative(startNum,endNum)-startNum:parseFloat(endNum)-startNum,m:color&&color<4?Math.round:0},index=_complexStringNumExp.lastIndex);return pt.c=index")})),tl.duration();else{for(p in copy={},keyframes)"ease"===p||"easeEach"===p||_parseKeyframe(p,keyframes[p],copy,keyframes.easeEach);for(p in copy)for(a=copy[p].sort((function(a,b){return a.t-b.t})),time=0,i=0;itDur-1e-8&&!isNegative?tDur:totalTime<1e-8?0:totalTime;if(dur){if(tTime!==this._tTime||!totalTime||force||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==isNegative){if(time=tTime,timeline=this.timeline,this._repeat){if(cycleDuration=dur+this._rDelay,this._repeat<-1&&isNegative)return this.totalTime(100*cycleDuration+totalTime,suppressEvents,force);if(time=_roundPrecise(tTime%cycleDuration),tTime===tDur?(iteration=this._repeat,time=dur):((iteration=~~(tTime/cycleDuration))&&iteration===tTime/cycleDuration&&(time=dur,iteration--),time>dur&&(time=dur)),(isYoyo=this._yoyo&&1&iteration)&&(yoyoEase=this._yEase,time=dur-time),prevIteration=_animationCycle(this._tTime,cycleDuration),time===prevTime&&!force&&this._initted)return this._tTime=tTime,this;iteration!==prevIteration&&(timeline&&this._yEase&&_propagateYoyoEase(timeline,isYoyo),!this.vars.repeatRefresh||isYoyo||this._lock||(this._lock=force=1,this.render(_roundPrecise(cycleDuration*iteration),!0).invalidate()._lock=0))}if(!this._initted){if(_attemptInitTween(this,isNegative?totalTime:time,force,suppressEvents,tTime))return this._tTime=0,this;if(prevTime!==this._time)return this;if(dur!==this._dur)return this.render(totalTime,suppressEvents,force)}if(this._tTime=tTime,this._time=time,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=ratio=(yoyoEase||this._ease)(time/dur),this._from&&(this.ratio=ratio=1-ratio),time&&!prevTime&&!suppressEvents&&!iteration&&(_callback(this,"onStart"),this._tTime!==tTime))return this;for(pt=this._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;timeline&&timeline.render(totalTime<0?totalTime:!time&&isYoyo?-1e-8:timeline._dur*timeline._ease(time/this._dur),suppressEvents,force)||this._startAt&&(this._zTime=totalTime),this._onUpdate&&!suppressEvents&&(isNegative&&_rewindStartAt(this,totalTime,0,force),_callback(this,"onUpdate")),this._repeat&&iteration!==prevIteration&&this.vars.onRepeat&&!suppressEvents&&this.parent&&_callback(this,"onRepeat"),tTime!==this._tDur&&tTime||this._tTime!==tTime||(isNegative&&!this._onUpdate&&_rewindStartAt(this,totalTime,0,!0),(totalTime||!dur)&&(tTime===this._tDur&&this._ts>0||!tTime&&this._ts<0)&&_removeFromParent(this,1),suppressEvents||isNegative&&!prevTime||!(tTime||prevTime||isYoyo)||(_callback(this,tTime===tDur?"onComplete":"onReverseComplete",!0),this._prom&&!(tTime0)&&this._prom()))}}else!function _renderZeroDurationTween(tween,totalTime,suppressEvents,force){var pt,iteration,prevIteration,prevRatio=tween.ratio,ratio=totalTime<0||!totalTime&&(!tween._start&&_parentPlayheadIsBeforeStart(tween)&&(tween._initted||!_isFromOrFromStart(tween))||(tween._ts<0||tween._dp._ts<0)&&!_isFromOrFromStart(tween))?0:1,repeatDelay=tween._rDelay,tTime=0;if(repeatDelay&&tween._repeat&&(tTime=_clamp(0,tween._tDur,totalTime),iteration=_animationCycle(tTime,repeatDelay),tween._yoyo&&1&iteration&&(ratio=1-ratio),iteration!==_animationCycle(tween._tTime,repeatDelay)&&(prevRatio=1-ratio,tween.vars.repeatRefresh&&tween._initted&&tween.invalidate())),ratio!==prevRatio||_reverting||force||1e-8===tween._zTime||!totalTime&&tween._zTime){if(!tween._initted&&_attemptInitTween(tween,totalTime,force,suppressEvents,tTime))return;for(prevIteration=tween._zTime,tween._zTime=totalTime||(suppressEvents?1e-8:0),suppressEvents||(suppressEvents=totalTime&&!prevIteration),tween.ratio=ratio,tween._from&&(ratio=1-ratio),tween._time=0,tween._tTime=tTime,pt=tween._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;totalTime<0&&_rewindStartAt(tween,totalTime,0,!0),tween._onUpdate&&!suppressEvents&&_callback(tween,"onUpdate"),tTime&&tween._repeat&&!suppressEvents&&tween.parent&&_callback(tween,"onRepeat"),(totalTime>=tween._tDur||totalTime<0)&&tween.ratio===ratio&&(ratio&&_removeFromParent(tween,1),suppressEvents||_reverting||(_callback(tween,ratio?"onComplete":"onReverseComplete",!0),tween._prom&&tween._prom()))}else tween._zTime||(tween._zTime=totalTime)}(this,totalTime,suppressEvents,force);return this},_proto3.targets=function targets(){return this._targets},_proto3.invalidate=function invalidate(soft){return(!soft||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(soft),_Animation2.prototype.invalidate.call(this,soft)},_proto3.resetTo=function resetTo(property,value,start,startIsRelative){_tickerActive||_ticker.wake(),this._ts||this.play();var time=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||_initTween(this,time),function _updatePropTweens(tween,property,value,start,startIsRelative,ratio,time){var pt,rootPT,lookup,i,ptCache=(tween._pt&&tween._ptCache||(tween._ptCache={}))[property];if(!ptCache)for(ptCache=tween._ptCache[property]=[],lookup=tween._ptLookup,i=tween._targets.length;i--;){if((pt=lookup[i][property])&&pt.d&&pt.d._pt)for(pt=pt.d._pt;pt&&pt.p!==property&&pt.fp!==property;)pt=pt._next;if(!pt)return _forceAllPropTweens=1,tween.vars[property]="+=0",_initTween(tween,time),_forceAllPropTweens=0,1;ptCache.push(pt)}for(i=ptCache.length;i--;)(pt=(rootPT=ptCache[i])._pt||rootPT).s=!start&&0!==start||startIsRelative?pt.s+(start||0)+ratio*pt.c:start,pt.c=value-pt.s,rootPT.e&&(rootPT.e=_round(value)+getUnit(rootPT.e)),rootPT.b&&(rootPT.b=pt.s+getUnit(rootPT.b))}(this,property,value,start,startIsRelative,this._ease(time/this._dur),time)?this.resetTo(property,value,start,startIsRelative):(_alignPlayhead(this,0),this.parent||_addLinkedListItem(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},_proto3.kill=function kill(targets,vars){if(void 0===vars&&(vars="all"),!(targets||vars&&"all"!==vars))return this._lazy=this._pt=0,this.parent?_interrupt(this):this;if(this.timeline){var tDur=this.timeline.totalDuration();return this.timeline.killTweensOf(targets,vars,_overwritingTween&&!0!==_overwritingTween.vars.overwrite)._first||_interrupt(this),this.parent&&tDur!==this.timeline.totalDuration()&&_setDuration(this,this._dur*this.timeline._tDur/tDur,0,1),this}var overwrittenProps,curLookup,curOverwriteProps,props,p,pt,i,parsedTargets=this._targets,killingTargets=targets?toArray(targets):parsedTargets,propTweenLookup=this._ptLookup,firstPT=this._pt;if((!vars||"all"===vars)&&function _arraysMatch(a1,a2){for(var i=a1.length,match=i===a2.length;match&&i--&&a1[i]===a2[i];);return i<0}(parsedTargets,killingTargets))return"all"===vars&&(this._pt=0),_interrupt(this);for(overwrittenProps=this._op=this._op||[],"all"!==vars&&(_isString(vars)&&(p={},_forEachName(vars,(function(name){return p[name]=1})),vars=p),vars=function _addAliasesToVars(targets,vars){var copy,p,i,aliases,harness=targets[0]?_getCache(targets[0]).harness:0,propertyAliases=harness&&harness.aliases;if(!propertyAliases)return vars;for(p in copy=_merge({},vars),propertyAliases)if(p in copy)for(i=(aliases=propertyAliases[p].split(",")).length;i--;)copy[aliases[i]]=copy[p];return copy}(parsedTargets,vars)),i=parsedTargets.length;i--;)if(~killingTargets.indexOf(parsedTargets[i]))for(p in curLookup=propTweenLookup[i],"all"===vars?(overwrittenProps[i]=vars,props=curLookup,curOverwriteProps={}):(curOverwriteProps=overwrittenProps[i]=overwrittenProps[i]||{},props=vars),props)(pt=curLookup&&curLookup[p])&&("kill"in pt.d&&!0!==pt.d.kill(p)||_removeLinkedListItem(this,pt,"_pt"),delete curLookup[p]),"all"!==curOverwriteProps&&(curOverwriteProps[p]=1);return this._initted&&!this._pt&&firstPT&&_interrupt(this),this},Tween.to=function to(targets,vars){return new Tween(targets,vars,arguments[2])},Tween.from=function from(targets,vars){return _createTweenType(1,arguments)},Tween.delayedCall=function delayedCall(delay,callback,params,scope){return new Tween(callback,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay,onComplete:callback,onReverseComplete:callback,onCompleteParams:params,onReverseCompleteParams:params,callbackScope:scope})},Tween.fromTo=function fromTo(targets,fromVars,toVars){return _createTweenType(2,arguments)},Tween.set=function set(targets,vars){return vars.duration=0,vars.repeatDelay||(vars.repeat=0),new Tween(targets,vars)},Tween.killTweensOf=function killTweensOf(targets,props,onlyActive){return _globalTimeline.killTweensOf(targets,props,onlyActive)},Tween}(Animation);_setDefaults(Tween.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_forEachName("staggerTo,staggerFrom,staggerFromTo",(function(name){Tween[name]=function(){var tl=new Timeline,params=_slice.call(arguments,0);return params.splice("staggerFromTo"===name?5:4,0,0),tl[name].apply(tl,params)}}));var _setterPlain=function _setterPlain(target,property,value){return target[property]=value},_setterFunc=function _setterFunc(target,property,value){return target[property](value)},_setterFuncWithParam=function _setterFuncWithParam(target,property,value,data){return target[property](data.fp,value)},_setterAttribute=function _setterAttribute(target,property,value){return target.setAttribute(property,value)},_getSetter=function _getSetter(target,property){return _isFunction(target[property])?_setterFunc:_isUndefined(target[property])&&target.setAttribute?_setterAttribute:_setterPlain},_renderPlain=function _renderPlain(ratio,data){return data.set(data.t,data.p,Math.round(1e6*(data.s+data.c*ratio))/1e6,data)},_renderBoolean=function _renderBoolean(ratio,data){return data.set(data.t,data.p,!!(data.s+data.c*ratio),data)},_renderComplexString=function _renderComplexString(ratio,data){var pt=data._pt,s="";if(!ratio&&data.b)s=data.b;else if(1===ratio&&data.e)s=data.e;else{for(;pt;)s=pt.p+(pt.m?pt.m(pt.s+pt.c*ratio):Math.round(1e4*(pt.s+pt.c*ratio))/1e4)+s,pt=pt._next;s+=data.c}data.set(data.t,data.p,s,data)},_renderPropTweens=function _renderPropTweens(ratio,data){for(var pt=data._pt;pt;)pt.r(ratio,pt.d),pt=pt._next},_addPluginModifier=function _addPluginModifier(modifier,tween,target,property){for(var next,pt=this._pt;pt;)next=pt._next,pt.p===property&&pt.modifier(modifier,tween,target),pt=next},_killPropTweensOf=function _killPropTweensOf(property){for(var hasNonDependentRemaining,next,pt=this._pt;pt;)next=pt._next,pt.p===property&&!pt.op||pt.op===property?_removeLinkedListItem(this,pt,"_pt"):pt.dep||(hasNonDependentRemaining=1),pt=next;return!hasNonDependentRemaining},_setterWithModifier=function _setterWithModifier(target,property,value,data){data.mSet(target,property,data.m.call(data.tween,value,data.mt),data)},_sortPropTweensByPriority=function _sortPropTweensByPriority(parent){for(var next,pt2,first,last,pt=parent._pt;pt;){for(next=pt._next,pt2=first;pt2&&pt2.pr>pt.pr;)pt2=pt2._next;(pt._prev=pt2?pt2._prev:last)?pt._prev._next=pt:first=pt,(pt._next=pt2)?pt2._prev=pt:last=pt,pt=next}parent._pt=first},PropTween=function(){function PropTween(next,target,prop,start,change,renderer,data,setter,priority){this.t=target,this.s=start,this.c=change,this.p=prop,this.r=renderer||_renderPlain,this.d=data||this,this.set=setter||_setterPlain,this.pr=priority||0,this._next=next,next&&(next._prev=this)}return PropTween.prototype.modifier=function modifier(func,tween,target){this.mSet=this.mSet||this.set,this.set=_setterWithModifier,this.m=func,this.mt=target,this.tween=tween},PropTween}();_forEachName(_callbackNames+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(name){return _reservedProps[name]=1})),_globals.TweenMax=_globals.TweenLite=Tween,_globals.TimelineLite=_globals.TimelineMax=Timeline,_globalTimeline=new Timeline({sortChildren:!1,defaults:_defaults,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),_config.stringFilter=_colorStringFilter;var _media=[],_listeners={},_emptyArray=[],_lastMediaTime=0,_contextID=0,_dispatch=function _dispatch(type){return(_listeners[type]||_emptyArray).map((function(f){return f()}))},_onMediaChange=function _onMediaChange(){var time=Date.now(),matches=[];time-_lastMediaTime>2&&(_dispatch("matchMediaInit"),_media.forEach((function(c){var match,p,anyMatch,toggled,queries=c.queries,conditions=c.conditions;for(p in queries)(match=_win.matchMedia(queries[p]).matches)&&(anyMatch=1),match!==conditions[p]&&(conditions[p]=match,toggled=1);toggled&&(c.revert(),anyMatch&&matches.push(c))})),_dispatch("matchMediaRevert"),matches.forEach((function(c){return c.onMatch(c)})),_lastMediaTime=time,_dispatch("matchMedia"))},Context=function(){function Context(func,scope){this.selector=scope&&selector(scope),this.data=[],this._r=[],this.isReverted=!1,this.id=_contextID++,func&&this.add(func)}var _proto5=Context.prototype;return _proto5.add=function add(name,func,scope){_isFunction(name)&&(scope=func,func=name,name=_isFunction);var self=this,f=function f(){var result,prev=_context,prevSelector=self.selector;return prev&&prev!==self&&prev.data.push(self),scope&&(self.selector=selector(scope)),_context=self,result=func.apply(self,arguments),_isFunction(result)&&self._r.push(result),_context=prev,self.selector=prevSelector,self.isReverted=!1,result};return self.last=f,name===_isFunction?f(self):name?self[name]=f:f},_proto5.ignore=function ignore(func){var prev=_context;_context=null,func(this),_context=prev},_proto5.getTweens=function getTweens(){var a=[];return this.data.forEach((function(e){return e instanceof Context?a.push.apply(a,e.getTweens()):e instanceof Tween&&!(e.parent&&"nested"===e.parent.data)&&a.push(e)})),a},_proto5.clear=function clear(){this._r.length=this.data.length=0},_proto5.kill=function kill(revert,matchMedia){var _this4=this;if(revert){var tweens=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(tween){return tweens.splice(tweens.indexOf(tween),1)})))})),tweens.map((function(t){return{g:t.globalTime(0),t}})).sort((function(a,b){return b.g-a.g||-1/0})).forEach((function(o){return o.t.revert(revert)})),this.data.forEach((function(e){return!(e instanceof Tween)&&e.revert&&e.revert(revert)})),this._r.forEach((function(f){return f(revert,_this4)})),this.isReverted=!0}else this.data.forEach((function(e){return e.kill&&e.kill()}));if(this.clear(),matchMedia)for(var i=_media.length;i--;)_media[i].id===this.id&&_media.splice(i,1)},_proto5.revert=function revert(config){this.kill(config||{})},Context}(),MatchMedia=function(){function MatchMedia(scope){this.contexts=[],this.scope=scope}var _proto6=MatchMedia.prototype;return _proto6.add=function add(conditions,func,scope){_isObject(conditions)||(conditions={matches:conditions});var mq,p,active,context=new Context(0,scope||this.scope),cond=context.conditions={};for(p in _context&&!context.selector&&(context.selector=_context.selector),this.contexts.push(context),func=context.add("onMatch",func),context.queries=conditions,conditions)"all"===p?active=1:(mq=_win.matchMedia(conditions[p]))&&(_media.indexOf(context)<0&&_media.push(context),(cond[p]=mq.matches)&&(active=1),mq.addListener?mq.addListener(_onMediaChange):mq.addEventListener("change",_onMediaChange));return active&&func(context),this},_proto6.revert=function revert(config){this.kill(config||{})},_proto6.kill=function kill(revert){this.contexts.forEach((function(c){return c.kill(revert,!0)}))},MatchMedia}(),_gsap={registerPlugin:function registerPlugin(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];args.forEach((function(config){return _createPlugin(config)}))},timeline:function timeline(vars){return new Timeline(vars)},getTweensOf:function getTweensOf(targets,onlyActive){return _globalTimeline.getTweensOf(targets,onlyActive)},getProperty:function getProperty(target,property,unit,uncache){_isString(target)&&(target=toArray(target)[0]);var getter=_getCache(target||{}).get,format=unit?_passThrough:_numericIfPossible;return"native"===unit&&(unit=""),target?property?format((_plugins[property]&&_plugins[property].get||getter)(target,property,unit,uncache)):function(property,unit,uncache){return format((_plugins[property]&&_plugins[property].get||getter)(target,property,unit,uncache))}:target},quickSetter:function quickSetter(target,property,unit){if((target=toArray(target)).length>1){var setters=target.map((function(t){return gsap.quickSetter(t,property,unit)})),l=setters.length;return function(value){for(var i=l;i--;)setters[i](value)}}target=target[0]||{};var Plugin=_plugins[property],cache=_getCache(target),p=cache.harness&&(cache.harness.aliases||{})[property]||property,setter=Plugin?function(value){var p=new Plugin;_quickTween._pt=0,p.init(target,unit?value+unit:value,_quickTween,0,[target]),p.render(1,p),_quickTween._pt&&_renderPropTweens(1,_quickTween)}:cache.set(target,p);return Plugin?setter:function(value){return setter(target,p,unit?value+unit:value,cache,1)}},quickTo:function quickTo(target,property,vars){var _merge2,tween=gsap.to(target,_merge(((_merge2={})[property]="+=0.1",_merge2.paused=!0,_merge2),vars||{})),func=function func(value,start,startIsRelative){return tween.resetTo(property,value,start,startIsRelative)};return func.tween=tween,func},isTweening:function isTweening(targets){return _globalTimeline.getTweensOf(targets,!0).length>0},defaults:function defaults(value){return value&&value.ease&&(value.ease=_parseEase(value.ease,_defaults.ease)),_mergeDeep(_defaults,value||{})},config:function config(value){return _mergeDeep(_config,value||{})},registerEffect:function registerEffect(_ref3){var name=_ref3.name,effect=_ref3.effect,plugins=_ref3.plugins,defaults=_ref3.defaults,extendTimeline=_ref3.extendTimeline;(plugins||"").split(",").forEach((function(pluginName){return pluginName&&!_plugins[pluginName]&&!_globals[pluginName]&&_warn(name+" effect requires "+pluginName+" plugin.")})),_effects[name]=function(targets,vars,tl){return effect(toArray(targets),_setDefaults(vars||{},defaults),tl)},extendTimeline&&(Timeline.prototype[name]=function(targets,vars,position){return this.add(_effects[name](targets,_isObject(vars)?vars:(position=vars)&&{},this),position)})},registerEase:function registerEase(name,ease){_easeMap[name]=_parseEase(ease)},parseEase:function parseEase(ease,defaultEase){return arguments.length?_parseEase(ease,defaultEase):_easeMap},getById:function getById(id){return _globalTimeline.getById(id)},exportRoot:function exportRoot(vars,includeDelayedCalls){void 0===vars&&(vars={});var child,next,tl=new Timeline(vars);for(tl.smoothChildTiming=_isNotFalse(vars.smoothChildTiming),_globalTimeline.remove(tl),tl._dp=0,tl._time=tl._tTime=_globalTimeline._time,child=_globalTimeline._first;child;)next=child._next,!includeDelayedCalls&&!child._dur&&child instanceof Tween&&child.vars.onComplete===child._targets[0]||_addToTimeline(tl,child,child._start-child._delay),child=next;return _addToTimeline(_globalTimeline,tl,0),tl},context:function context(func,scope){return func?new Context(func,scope):_context},matchMedia:function matchMedia(scope){return new MatchMedia(scope)},matchMediaRefresh:function matchMediaRefresh(){return _media.forEach((function(c){var found,p,cond=c.conditions;for(p in cond)cond[p]&&(cond[p]=!1,found=1);found&&c.revert()}))||_onMediaChange()},addEventListener:function addEventListener(type,callback){var a=_listeners[type]||(_listeners[type]=[]);~a.indexOf(callback)||a.push(callback)},removeEventListener:function removeEventListener(type,callback){var a=_listeners[type],i=a&&a.indexOf(callback);i>=0&&a.splice(i,1)},utils:{wrap:function wrap(min,max,value){var range=max-min;return _isArray(min)?_wrapArray(min,wrap(0,min.length),max):_conditionalReturn(value,(function(value){return(range+(value-min)%range)%range+min}))},wrapYoyo:function wrapYoyo(min,max,value){var range=max-min,total=2*range;return _isArray(min)?_wrapArray(min,wrapYoyo(0,min.length-1),max):_conditionalReturn(value,(function(value){return min+((value=(total+(value-min)%total)%total||0)>range?total-value:value)}))},distribute,random,snap,normalize:function normalize(min,max,value){return mapRange(min,max,0,1,value)},getUnit,clamp:function clamp(min,max,value){return _conditionalReturn(value,(function(v){return _clamp(min,max,v)}))},splitColor,toArray,selector,mapRange,pipe:function pipe(){for(var _len=arguments.length,functions=new Array(_len),_key=0;_key<_len;_key++)functions[_key]=arguments[_key];return function(value){return functions.reduce((function(v,f){return f(v)}),value)}},unitize:function unitize(func,unit){return function(value){return func(parseFloat(value))+(unit||getUnit(value))}},interpolate:function interpolate(start,end,progress,mutate){var func=isNaN(start+end)?0:function(p){return(1-p)*start+p*end};if(!func){var p,i,interpolators,l,il,isString=_isString(start),master={};if(!0===progress&&(mutate=1)&&(progress=null),isString)start={p:start},end={p:end};else if(_isArray(start)&&!_isArray(end)){for(interpolators=[],l=start.length,il=l-2,i=1;i=0)return;target._gsap.svg&&(this.svgo=target.getAttribute("data-svg-origin"),this.props.push(_transformOriginProp,isNotCSS,"")),property=_transformProp}(style||isNotCSS)&&this.props.push(property,isNotCSS,style[property])},_removeIndependentTransforms=function _removeIndependentTransforms(style){style.translate&&(style.removeProperty("translate"),style.removeProperty("scale"),style.removeProperty("rotate"))},_revertStyle=function _revertStyle(){var i,p,props=this.props,target=this.target,style=target.style,cache=target._gsap;for(i=0;i=0?_prefixes[i]:"")+property},_initCore=function _initCore(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(CSSPlugin_win=window,CSSPlugin_doc=CSSPlugin_win.document,_docElement=CSSPlugin_doc.documentElement,_tempDiv=_createElement("div")||{style:{}},_createElement("div"),_transformProp=_checkPropPrefix(_transformProp),_transformOriginProp=_transformProp+"Origin",_tempDiv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_supports3D=!!_checkPropPrefix("perspective"),CSSPlugin_reverting=gsap.core.reverting,_pluginInitted=1)},_getBBoxHack=function _getBBoxHack(swapIfPossible){var bbox,svg=_createElement("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),oldParent=this.parentNode,oldSibling=this.nextSibling,oldCSS=this.style.cssText;if(_docElement.appendChild(svg),svg.appendChild(this),this.style.display="block",swapIfPossible)try{bbox=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=_getBBoxHack}catch(e){}else this._gsapBBox&&(bbox=this._gsapBBox());return oldParent&&(oldSibling?oldParent.insertBefore(this,oldSibling):oldParent.appendChild(this)),_docElement.removeChild(svg),this.style.cssText=oldCSS,bbox},_getAttributeFallbacks=function _getAttributeFallbacks(target,attributesArray){for(var i=attributesArray.length;i--;)if(target.hasAttribute(attributesArray[i]))return target.getAttribute(attributesArray[i])},_getBBox=function _getBBox(target){var bounds;try{bounds=target.getBBox()}catch(error){bounds=_getBBoxHack.call(target,!0)}return bounds&&(bounds.width||bounds.height)||target.getBBox===_getBBoxHack||(bounds=_getBBoxHack.call(target,!0)),!bounds||bounds.width||bounds.x||bounds.y?bounds:{x:+_getAttributeFallbacks(target,["x","cx","x1"])||0,y:+_getAttributeFallbacks(target,["y","cy","y1"])||0,width:0,height:0}},_isSVG=function _isSVG(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!_getBBox(e))},_removeProperty=function _removeProperty(target,property){if(property){var style=target.style;property in _transformProps&&property!==_transformOriginProp&&(property=_transformProp),style.removeProperty?("ms"!==property.substr(0,2)&&"webkit"!==property.substr(0,6)||(property="-"+property),style.removeProperty(property.replace(_capsExp,"-$1").toLowerCase())):style.removeAttribute(property)}},_addNonTweeningPT=function _addNonTweeningPT(plugin,target,property,beginning,end,onlySetAtEnd){var pt=new PropTween(plugin._pt,target,property,0,1,onlySetAtEnd?_renderNonTweeningValueOnlyAtEnd:_renderNonTweeningValue);return plugin._pt=pt,pt.b=beginning,pt.e=end,plugin._props.push(property),pt},_nonConvertibleUnits={deg:1,rad:1,turn:1},_nonStandardLayouts={grid:1,flex:1},_convertToUnit=function _convertToUnit(target,property,value,unit){var px,parent,cache,isSVG,curValue=parseFloat(value)||0,curUnit=(value+"").trim().substr((curValue+"").length)||"px",style=_tempDiv.style,horizontal=_horizontalExp.test(property),isRootSVG="svg"===target.tagName.toLowerCase(),measureProperty=(isRootSVG?"client":"offset")+(horizontal?"Width":"Height"),toPixels="px"===unit,toPercent="%"===unit;return unit===curUnit||!curValue||_nonConvertibleUnits[unit]||_nonConvertibleUnits[curUnit]?curValue:("px"!==curUnit&&!toPixels&&(curValue=_convertToUnit(target,property,value,"px")),isSVG=target.getCTM&&_isSVG(target),!toPercent&&"%"!==curUnit||!_transformProps[property]&&!~property.indexOf("adius")?(style[horizontal?"width":"height"]=100+(toPixels?curUnit:unit),parent=~property.indexOf("adius")||"em"===unit&&target.appendChild&&!isRootSVG?target:target.parentNode,isSVG&&(parent=(target.ownerSVGElement||{}).parentNode),parent&&parent!==CSSPlugin_doc&&parent.appendChild||(parent=CSSPlugin_doc.body),(cache=parent._gsap)&&toPercent&&cache.width&&horizontal&&cache.time===_ticker.time&&!cache.uncache?_round(curValue/cache.width*100):((toPercent||"%"===curUnit)&&!_nonStandardLayouts[_getComputedProperty(parent,"display")]&&(style.position=_getComputedProperty(target,"position")),parent===target&&(style.position="static"),parent.appendChild(_tempDiv),px=_tempDiv[measureProperty],parent.removeChild(_tempDiv),style.position="absolute",horizontal&&toPercent&&((cache=_getCache(parent)).time=_ticker.time,cache.width=parent[measureProperty]),_round(toPixels?px*curValue/100:px&&curValue?100/px*curValue:0))):(px=isSVG?target.getBBox()[horizontal?"width":"height"]:target[measureProperty],_round(toPercent?curValue/px*100:curValue/100*px)))},_get=function _get(target,property,unit,uncache){var value;return _pluginInitted||_initCore(),property in _propertyAliases&&"transform"!==property&&~(property=_propertyAliases[property]).indexOf(",")&&(property=property.split(",")[0]),_transformProps[property]&&"transform"!==property?(value=_parseTransform(target,uncache),value="transformOrigin"!==property?value[property]:value.svg?value.origin:_firstTwoOnly(_getComputedProperty(target,_transformOriginProp))+" "+value.zOrigin+"px"):(!(value=target.style[property])||"auto"===value||uncache||~(value+"").indexOf("calc("))&&(value=_specialProps[property]&&_specialProps[property](target,property,unit)||_getComputedProperty(target,property)||_getProperty(target,property)||("opacity"===property?1:0)),unit&&!~(value+"").trim().indexOf(" ")?_convertToUnit(target,property,value,unit)+unit:value},_tweenComplexCSSString=function _tweenComplexCSSString(target,prop,start,end){if(!start||"none"===start){var p=_checkPropPrefix(prop,target,1),s=p&&_getComputedProperty(target,p,1);s&&s!==start?(prop=p,start=s):"borderColor"===prop&&(start=_getComputedProperty(target,"borderTopColor"))}var a,result,startValues,startNum,color,startValue,endValue,endNum,chunk,endUnit,startUnit,pt=new PropTween(this._pt,target.style,prop,0,1,_renderComplexString),index=0,matchIndex=0;if(pt.b=start,pt.e=end,start+="","auto"===(end+="")&&(target.style[prop]=end,end=_getComputedProperty(target,prop)||end,target.style[prop]=start),_colorStringFilter(a=[start,end]),end=a[1],startValues=(start=a[0]).match(_numWithUnitExp)||[],(end.match(_numWithUnitExp)||[]).length){for(;result=_numWithUnitExp.exec(end);)endValue=result[0],chunk=end.substring(index,result.index),color?color=(color+1)%5:"rgba("!==chunk.substr(-5)&&"hsla("!==chunk.substr(-5)||(color=1),endValue!==(startValue=startValues[matchIndex++]||"")&&(startNum=parseFloat(startValue)||0,startUnit=startValue.substr((startNum+"").length),"="===endValue.charAt(1)&&(endValue=_parseRelative(startNum,endValue)+startUnit),endNum=parseFloat(endValue),endUnit=endValue.substr((endNum+"").length),index=_numWithUnitExp.lastIndex-endUnit.length,endUnit||(endUnit=endUnit||_config.units[prop]||startUnit,index===end.length&&(end+=endUnit,pt.e+=endUnit)),startUnit!==endUnit&&(startNum=_convertToUnit(target,prop,startValue,endUnit)||0),pt._pt={_next:pt._pt,p:chunk||1===matchIndex?chunk:",",s:startNum,c:endNum-startNum,m:color&&color<4||"zIndex"===prop?Math.round:0});pt.c=index-1;)prop=props[i],_transformProps[prop]&&(clearTransforms=1,prop="transformOrigin"===prop?_transformOriginProp:_transformProp),_removeProperty(target,prop);clearTransforms&&(_removeProperty(target,_transformProp),cache&&(cache.svg&&target.removeAttribute("transform"),_parseTransform(target,1),cache.uncache=1,_removeIndependentTransforms(style)))}},_specialProps={clearProps:function clearProps(plugin,target,property,endValue,tween){if("isFromStart"!==tween.data){var pt=plugin._pt=new PropTween(plugin._pt,target,property,0,0,_renderClearProps);return pt.u=endValue,pt.pr=-10,pt.tween=tween,plugin._props.push(property),1}}},_identity2DMatrix=[1,0,0,1,0,0],_rotationalProperties={},_isNullTransform=function _isNullTransform(value){return"matrix(1, 0, 0, 1, 0, 0)"===value||"none"===value||!value},_getComputedTransformMatrixAsArray=function _getComputedTransformMatrixAsArray(target){var matrixString=_getComputedProperty(target,_transformProp);return _isNullTransform(matrixString)?_identity2DMatrix:matrixString.substr(7).match(_numExp).map(_round)},_getMatrix=function _getMatrix(target,force2D){var parent,nextSibling,temp,addedToDOM,cache=target._gsap||_getCache(target),style=target.style,matrix=_getComputedTransformMatrixAsArray(target);return cache.svg&&target.getAttribute("transform")?"1,0,0,1,0,0"===(matrix=[(temp=target.transform.baseVal.consolidate().matrix).a,temp.b,temp.c,temp.d,temp.e,temp.f]).join(",")?_identity2DMatrix:matrix:(matrix!==_identity2DMatrix||target.offsetParent||target===_docElement||cache.svg||(temp=style.display,style.display="block",(parent=target.parentNode)&&target.offsetParent||(addedToDOM=1,nextSibling=target.nextElementSibling,_docElement.appendChild(target)),matrix=_getComputedTransformMatrixAsArray(target),temp?style.display=temp:_removeProperty(target,"display"),addedToDOM&&(nextSibling?parent.insertBefore(target,nextSibling):parent?parent.appendChild(target):_docElement.removeChild(target))),force2D&&matrix.length>6?[matrix[0],matrix[1],matrix[4],matrix[5],matrix[12],matrix[13]]:matrix)},_applySVGOrigin=function _applySVGOrigin(target,origin,originIsAbsolute,smooth,matrixArray,pluginToAddPropTweensTo){var bounds,determinant,y,cache=target._gsap,matrix=matrixArray||_getMatrix(target,!0),xOriginOld=cache.xOrigin||0,yOriginOld=cache.yOrigin||0,xOffsetOld=cache.xOffset||0,yOffsetOld=cache.yOffset||0,a=matrix[0],b=matrix[1],c=matrix[2],d=matrix[3],tx=matrix[4],ty=matrix[5],originSplit=origin.split(" "),xOrigin=parseFloat(originSplit[0])||0,yOrigin=parseFloat(originSplit[1])||0;originIsAbsolute?matrix!==_identity2DMatrix&&(determinant=a*d-b*c)&&(y=xOrigin*(-b/determinant)+yOrigin*(a/determinant)-(a*ty-b*tx)/determinant,xOrigin=xOrigin*(d/determinant)+yOrigin*(-c/determinant)+(c*ty-d*tx)/determinant,yOrigin=y):(xOrigin=(bounds=_getBBox(target)).x+(~originSplit[0].indexOf("%")?xOrigin/100*bounds.width:xOrigin),yOrigin=bounds.y+(~(originSplit[1]||originSplit[0]).indexOf("%")?yOrigin/100*bounds.height:yOrigin)),smooth||!1!==smooth&&cache.smooth?(tx=xOrigin-xOriginOld,ty=yOrigin-yOriginOld,cache.xOffset=xOffsetOld+(tx*a+ty*c)-tx,cache.yOffset=yOffsetOld+(tx*b+ty*d)-ty):cache.xOffset=cache.yOffset=0,cache.xOrigin=xOrigin,cache.yOrigin=yOrigin,cache.smooth=!!smooth,cache.origin=origin,cache.originIsAbsolute=!!originIsAbsolute,target.style[_transformOriginProp]="0px 0px",pluginToAddPropTweensTo&&(_addNonTweeningPT(pluginToAddPropTweensTo,cache,"xOrigin",xOriginOld,xOrigin),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"yOrigin",yOriginOld,yOrigin),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"xOffset",xOffsetOld,cache.xOffset),_addNonTweeningPT(pluginToAddPropTweensTo,cache,"yOffset",yOffsetOld,cache.yOffset)),target.setAttribute("data-svg-origin",xOrigin+" "+yOrigin)},_parseTransform=function _parseTransform(target,uncache){var cache=target._gsap||new GSCache(target);if("x"in cache&&!uncache&&!cache.uncache)return cache;var x,y,z,scaleX,scaleY,rotation,rotationX,rotationY,skewX,skewY,perspective,xOrigin,yOrigin,matrix,angle,cos,sin,a,b,c,d,a12,a22,t1,t2,t3,a13,a23,a33,a42,a43,a32,style=target.style,invertedScaleX=cache.scaleX<0,cs=getComputedStyle(target),origin=_getComputedProperty(target,_transformOriginProp)||"0";return x=y=z=rotation=rotationX=rotationY=skewX=skewY=perspective=0,scaleX=scaleY=1,cache.svg=!(!target.getCTM||!_isSVG(target)),cs.translate&&("none"===cs.translate&&"none"===cs.scale&&"none"===cs.rotate||(style[_transformProp]=("none"!==cs.translate?"translate3d("+(cs.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==cs.rotate?"rotate("+cs.rotate+") ":"")+("none"!==cs.scale?"scale("+cs.scale.split(" ").join(",")+") ":"")+("none"!==cs[_transformProp]?cs[_transformProp]:"")),style.scale=style.rotate=style.translate="none"),matrix=_getMatrix(target,cache.svg),cache.svg&&(cache.uncache?(t2=target.getBBox(),origin=cache.xOrigin-t2.x+"px "+(cache.yOrigin-t2.y)+"px",t1=""):t1=!uncache&&target.getAttribute("data-svg-origin"),_applySVGOrigin(target,t1||origin,!!t1||cache.originIsAbsolute,!1!==cache.smooth,matrix)),xOrigin=cache.xOrigin||0,yOrigin=cache.yOrigin||0,matrix!==_identity2DMatrix&&(a=matrix[0],b=matrix[1],c=matrix[2],d=matrix[3],x=a12=matrix[4],y=a22=matrix[5],6===matrix.length?(scaleX=Math.sqrt(a*a+b*b),scaleY=Math.sqrt(d*d+c*c),rotation=a||b?_atan2(b,a)*_RAD2DEG:0,(skewX=c||d?_atan2(c,d)*_RAD2DEG+rotation:0)&&(scaleY*=Math.abs(Math.cos(skewX*_DEG2RAD))),cache.svg&&(x-=xOrigin-(xOrigin*a+yOrigin*c),y-=yOrigin-(xOrigin*b+yOrigin*d))):(a32=matrix[6],a42=matrix[7],a13=matrix[8],a23=matrix[9],a33=matrix[10],a43=matrix[11],x=matrix[12],y=matrix[13],z=matrix[14],rotationX=(angle=_atan2(a32,a33))*_RAD2DEG,angle&&(t1=a12*(cos=Math.cos(-angle))+a13*(sin=Math.sin(-angle)),t2=a22*cos+a23*sin,t3=a32*cos+a33*sin,a13=a12*-sin+a13*cos,a23=a22*-sin+a23*cos,a33=a32*-sin+a33*cos,a43=a42*-sin+a43*cos,a12=t1,a22=t2,a32=t3),rotationY=(angle=_atan2(-c,a33))*_RAD2DEG,angle&&(cos=Math.cos(-angle),a43=d*(sin=Math.sin(-angle))+a43*cos,a=t1=a*cos-a13*sin,b=t2=b*cos-a23*sin,c=t3=c*cos-a33*sin),rotation=(angle=_atan2(b,a))*_RAD2DEG,angle&&(t1=a*(cos=Math.cos(angle))+b*(sin=Math.sin(angle)),t2=a12*cos+a22*sin,b=b*cos-a*sin,a22=a22*cos-a12*sin,a=t1,a12=t2),rotationX&&Math.abs(rotationX)+Math.abs(rotation)>359.9&&(rotationX=rotation=0,rotationY=180-rotationY),scaleX=_round(Math.sqrt(a*a+b*b+c*c)),scaleY=_round(Math.sqrt(a22*a22+a32*a32)),angle=_atan2(a12,a22),skewX=Math.abs(angle)>2e-4?angle*_RAD2DEG:0,perspective=a43?1/(a43<0?-a43:a43):0),cache.svg&&(t1=target.getAttribute("transform"),cache.forceCSS=target.setAttribute("transform","")||!_isNullTransform(_getComputedProperty(target,_transformProp)),t1&&target.setAttribute("transform",t1))),Math.abs(skewX)>90&&Math.abs(skewX)<270&&(invertedScaleX?(scaleX*=-1,skewX+=rotation<=0?180:-180,rotation+=rotation<=0?180:-180):(scaleY*=-1,skewX+=skewX<=0?180:-180)),uncache=uncache||cache.uncache,cache.x=x-((cache.xPercent=x&&(!uncache&&cache.xPercent||(Math.round(target.offsetWidth/2)===Math.round(-x)?-50:0)))?target.offsetWidth*cache.xPercent/100:0)+"px",cache.y=y-((cache.yPercent=y&&(!uncache&&cache.yPercent||(Math.round(target.offsetHeight/2)===Math.round(-y)?-50:0)))?target.offsetHeight*cache.yPercent/100:0)+"px",cache.z=z+"px",cache.scaleX=_round(scaleX),cache.scaleY=_round(scaleY),cache.rotation=_round(rotation)+"deg",cache.rotationX=_round(rotationX)+"deg",cache.rotationY=_round(rotationY)+"deg",cache.skewX=skewX+"deg",cache.skewY=skewY+"deg",cache.transformPerspective=perspective+"px",(cache.zOrigin=parseFloat(origin.split(" ")[2])||0)&&(style[_transformOriginProp]=_firstTwoOnly(origin)),cache.xOffset=cache.yOffset=0,cache.force3D=_config.force3D,cache.renderTransform=cache.svg?_renderSVGTransforms:_supports3D?_renderCSSTransforms:_renderNon3DTransforms,cache.uncache=0,cache},_firstTwoOnly=function _firstTwoOnly(value){return(value=value.split(" "))[0]+" "+value[1]},_addPxTranslate=function _addPxTranslate(target,start,value){var unit=getUnit(start);return _round(parseFloat(start)+parseFloat(_convertToUnit(target,"x",value+"px",unit)))+unit},_renderNon3DTransforms=function _renderNon3DTransforms(ratio,cache){cache.z="0px",cache.rotationY=cache.rotationX="0deg",cache.force3D=0,_renderCSSTransforms(ratio,cache)},_renderCSSTransforms=function _renderCSSTransforms(ratio,cache){var _ref=cache||this,xPercent=_ref.xPercent,yPercent=_ref.yPercent,x=_ref.x,y=_ref.y,z=_ref.z,rotation=_ref.rotation,rotationY=_ref.rotationY,rotationX=_ref.rotationX,skewX=_ref.skewX,skewY=_ref.skewY,scaleX=_ref.scaleX,scaleY=_ref.scaleY,transformPerspective=_ref.transformPerspective,force3D=_ref.force3D,target=_ref.target,zOrigin=_ref.zOrigin,transforms="",use3D="auto"===force3D&&ratio&&1!==ratio||!0===force3D;if(zOrigin&&("0deg"!==rotationX||"0deg"!==rotationY)){var cos,angle=parseFloat(rotationY)*_DEG2RAD,a13=Math.sin(angle),a33=Math.cos(angle);angle=parseFloat(rotationX)*_DEG2RAD,cos=Math.cos(angle),x=_addPxTranslate(target,x,a13*cos*-zOrigin),y=_addPxTranslate(target,y,-Math.sin(angle)*-zOrigin),z=_addPxTranslate(target,z,a33*cos*-zOrigin+zOrigin)}"0px"!==transformPerspective&&(transforms+="perspective("+transformPerspective+") "),(xPercent||yPercent)&&(transforms+="translate("+xPercent+"%, "+yPercent+"%) "),(use3D||"0px"!==x||"0px"!==y||"0px"!==z)&&(transforms+="0px"!==z||use3D?"translate3d("+x+", "+y+", "+z+") ":"translate("+x+", "+y+") "),"0deg"!==rotation&&(transforms+="rotate("+rotation+") "),"0deg"!==rotationY&&(transforms+="rotateY("+rotationY+") "),"0deg"!==rotationX&&(transforms+="rotateX("+rotationX+") "),"0deg"===skewX&&"0deg"===skewY||(transforms+="skew("+skewX+", "+skewY+") "),1===scaleX&&1===scaleY||(transforms+="scale("+scaleX+", "+scaleY+") "),target.style[_transformProp]=transforms||"translate(0, 0)"},_renderSVGTransforms=function _renderSVGTransforms(ratio,cache){var a11,a21,a12,a22,temp,_ref2=cache||this,xPercent=_ref2.xPercent,yPercent=_ref2.yPercent,x=_ref2.x,y=_ref2.y,rotation=_ref2.rotation,skewX=_ref2.skewX,skewY=_ref2.skewY,scaleX=_ref2.scaleX,scaleY=_ref2.scaleY,target=_ref2.target,xOrigin=_ref2.xOrigin,yOrigin=_ref2.yOrigin,xOffset=_ref2.xOffset,yOffset=_ref2.yOffset,forceCSS=_ref2.forceCSS,tx=parseFloat(x),ty=parseFloat(y);rotation=parseFloat(rotation),skewX=parseFloat(skewX),(skewY=parseFloat(skewY))&&(skewX+=skewY=parseFloat(skewY),rotation+=skewY),rotation||skewX?(rotation*=_DEG2RAD,skewX*=_DEG2RAD,a11=Math.cos(rotation)*scaleX,a21=Math.sin(rotation)*scaleX,a12=Math.sin(rotation-skewX)*-scaleY,a22=Math.cos(rotation-skewX)*scaleY,skewX&&(skewY*=_DEG2RAD,temp=Math.tan(skewX-skewY),a12*=temp=Math.sqrt(1+temp*temp),a22*=temp,skewY&&(temp=Math.tan(skewY),a11*=temp=Math.sqrt(1+temp*temp),a21*=temp)),a11=_round(a11),a21=_round(a21),a12=_round(a12),a22=_round(a22)):(a11=scaleX,a22=scaleY,a21=a12=0),(tx&&!~(x+"").indexOf("px")||ty&&!~(y+"").indexOf("px"))&&(tx=_convertToUnit(target,"x",x,"px"),ty=_convertToUnit(target,"y",y,"px")),(xOrigin||yOrigin||xOffset||yOffset)&&(tx=_round(tx+xOrigin-(xOrigin*a11+yOrigin*a12)+xOffset),ty=_round(ty+yOrigin-(xOrigin*a21+yOrigin*a22)+yOffset)),(xPercent||yPercent)&&(temp=target.getBBox(),tx=_round(tx+xPercent/100*temp.width),ty=_round(ty+yPercent/100*temp.height)),temp="matrix("+a11+","+a21+","+a12+","+a22+","+tx+","+ty+")",target.setAttribute("transform",temp),forceCSS&&(target.style[_transformProp]=temp)},_addRotationalPropTween=function _addRotationalPropTween(plugin,target,property,startNum,endValue){var direction,pt,isString=_isString(endValue),change=parseFloat(endValue)*(isString&&~endValue.indexOf("rad")?_RAD2DEG:1)-startNum,finalValue=startNum+change+"deg";return isString&&("short"===(direction=endValue.split("_")[1])&&(change%=360)!==change%180&&(change+=change<0?360:-360),"cw"===direction&&change<0?change=(change+36e9)%360-360*~~(change/360):"ccw"===direction&&change>0&&(change=(change-36e9)%360-360*~~(change/360))),plugin._pt=pt=new PropTween(plugin._pt,target,property,startNum,change,_renderPropWithEnd),pt.e=finalValue,pt.u="deg",plugin._props.push(property),pt},_assign=function _assign(target,source){for(var p in source)target[p]=source[p];return target},_addRawTransformPTs=function _addRawTransformPTs(plugin,transforms,target){var endCache,p,startValue,endValue,startNum,endNum,endUnit,startCache=_assign({},target._gsap),style=target.style;for(p in startCache.svg?(startValue=target.getAttribute("transform"),target.setAttribute("transform",""),style[_transformProp]=transforms,endCache=_parseTransform(target,1),_removeProperty(target,_transformProp),target.setAttribute("transform",startValue)):(startValue=getComputedStyle(target)[_transformProp],style[_transformProp]=transforms,endCache=_parseTransform(target,1),style[_transformProp]=startValue),_transformProps)(startValue=startCache[p])!==(endValue=endCache[p])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(p)<0&&(startNum=getUnit(startValue)!==(endUnit=getUnit(endValue))?_convertToUnit(target,p,startValue,endUnit):parseFloat(startValue),endNum=parseFloat(endValue),plugin._pt=new PropTween(plugin._pt,endCache,p,startNum,endNum-startNum,_renderCSSProp),plugin._pt.u=endUnit||0,plugin._props.push(p));_assign(endCache,startCache)};_forEachName("padding,margin,Width,Radius",(function(name,index){var t="Top",r="Right",b="Bottom",l="Left",props=(index<3?[t,r,b,l]:[t+l,t+r,b+r,b+l]).map((function(side){return index<2?name+side:"border"+side+name}));_specialProps[index>1?"border"+name:name]=function(plugin,target,property,endValue,tween){var a,vars;if(arguments.length<4)return a=props.map((function(prop){return _get(plugin,prop,property)})),5===(vars=a.join(" ")).split(a[0]).length?a[0]:vars;a=(endValue+"").split(" "),vars={},props.forEach((function(prop,i){return vars[prop]=a[i]=a[i]||a[(i-1)/2|0]})),plugin.init(target,vars,tween)}}));var rotation,all,CSSPlugin={name:"css",register:_initCore,targetTest:function targetTest(target){return target.style&&target.nodeType},init:function init(target,vars,tween,index,targets){var startValue,endValue,endNum,startNum,type,specialProp,p,startUnit,endUnit,relative,isTransformRelated,transformPropTween,cache,smooth,hasPriority,inlineProps,props=this._props,style=target.style,startAt=tween.vars.startAt;for(p in _pluginInitted||_initCore(),this.styles=this.styles||_getStyleSaver(target),inlineProps=this.styles.props,this.tween=tween,vars)if("autoRound"!==p&&(endValue=vars[p],!_plugins[p]||!_checkPlugin(p,vars,tween,index,target,targets)))if(type=typeof endValue,specialProp=_specialProps[p],"function"===type&&(type=typeof(endValue=endValue.call(tween,index,target,targets))),"string"===type&&~endValue.indexOf("random(")&&(endValue=_replaceRandom(endValue)),specialProp)specialProp(this,target,p,endValue,tween)&&(hasPriority=1);else if("--"===p.substr(0,2))startValue=(getComputedStyle(target).getPropertyValue(p)+"").trim(),endValue+="",_colorExp.lastIndex=0,_colorExp.test(startValue)||(startUnit=getUnit(startValue),endUnit=getUnit(endValue)),endUnit?startUnit!==endUnit&&(startValue=_convertToUnit(target,p,startValue,endUnit)+endUnit):startUnit&&(endValue+=startUnit),this.add(style,"setProperty",startValue,endValue,index,targets,0,0,p),props.push(p),inlineProps.push(p,0,style[p]);else if("undefined"!==type){if(startAt&&p in startAt?(startValue="function"==typeof startAt[p]?startAt[p].call(tween,index,target,targets):startAt[p],_isString(startValue)&&~startValue.indexOf("random(")&&(startValue=_replaceRandom(startValue)),getUnit(startValue+"")||(startValue+=_config.units[p]||getUnit(_get(target,p))||""),"="===(startValue+"").charAt(1)&&(startValue=_get(target,p))):startValue=_get(target,p),startNum=parseFloat(startValue),(relative="string"===type&&"="===endValue.charAt(1)&&endValue.substr(0,2))&&(endValue=endValue.substr(2)),endNum=parseFloat(endValue),p in _propertyAliases&&("autoAlpha"===p&&(1===startNum&&"hidden"===_get(target,"visibility")&&endNum&&(startNum=0),inlineProps.push("visibility",0,style.visibility),_addNonTweeningPT(this,style,"visibility",startNum?"inherit":"hidden",endNum?"inherit":"hidden",!endNum)),"scale"!==p&&"transform"!==p&&~(p=_propertyAliases[p]).indexOf(",")&&(p=p.split(",")[0])),isTransformRelated=p in _transformProps)if(this.styles.save(p),transformPropTween||((cache=target._gsap).renderTransform&&!vars.parseTransform||_parseTransform(target,vars.parseTransform),smooth=!1!==vars.smoothOrigin&&cache.smooth,(transformPropTween=this._pt=new PropTween(this._pt,style,_transformProp,0,1,cache.renderTransform,cache,0,-1)).dep=1),"scale"===p)this._pt=new PropTween(this._pt,cache,"scaleY",cache.scaleY,(relative?_parseRelative(cache.scaleY,relative+endNum):endNum)-cache.scaleY||0,_renderCSSProp),this._pt.u=0,props.push("scaleY",p),p+="X";else{if("transformOrigin"===p){inlineProps.push(_transformOriginProp,0,style[_transformOriginProp]),endValue=_convertKeywordsToPercentages(endValue),cache.svg?_applySVGOrigin(target,endValue,0,smooth,0,this):((endUnit=parseFloat(endValue.split(" ")[2])||0)!==cache.zOrigin&&_addNonTweeningPT(this,cache,"zOrigin",cache.zOrigin,endUnit),_addNonTweeningPT(this,style,p,_firstTwoOnly(startValue),_firstTwoOnly(endValue)));continue}if("svgOrigin"===p){_applySVGOrigin(target,endValue,1,smooth,0,this);continue}if(p in _rotationalProperties){_addRotationalPropTween(this,cache,p,startNum,relative?_parseRelative(startNum,relative+endValue):endValue);continue}if("smoothOrigin"===p){_addNonTweeningPT(this,cache,"smooth",cache.smooth,endValue);continue}if("force3D"===p){cache[p]=endValue;continue}if("transform"===p){_addRawTransformPTs(this,endValue,target);continue}}else p in style||(p=_checkPropPrefix(p)||p);if(isTransformRelated||(endNum||0===endNum)&&(startNum||0===startNum)&&!_complexExp.test(endValue)&&p in style)endNum||(endNum=0),(startUnit=(startValue+"").substr((startNum+"").length))!==(endUnit=getUnit(endValue)||(p in _config.units?_config.units[p]:startUnit))&&(startNum=_convertToUnit(target,p,startValue,endUnit)),this._pt=new PropTween(this._pt,isTransformRelated?cache:style,p,startNum,(relative?_parseRelative(startNum,relative+endNum):endNum)-startNum,isTransformRelated||"px"!==endUnit&&"zIndex"!==p||!1===vars.autoRound?_renderCSSProp:_renderRoundedCSSProp),this._pt.u=endUnit||0,startUnit!==endUnit&&"%"!==endUnit&&(this._pt.b=startValue,this._pt.r=_renderCSSPropWithBeginning);else if(p in style)_tweenComplexCSSString.call(this,target,p,startValue,relative?relative+endValue:endValue);else if(p in target)this.add(target,p,startValue||target[p],relative?relative+endValue:endValue,index,targets);else if("parseTransform"!==p){_missingPlugin(p,endValue);continue}isTransformRelated||(p in style?inlineProps.push(p,0,style[p]):inlineProps.push(p,1,startValue||target[p])),props.push(p)}hasPriority&&_sortPropTweensByPriority(this)},render:function render(ratio,data){if(data.tween._time||!CSSPlugin_reverting())for(var pt=data._pt;pt;)pt.r(ratio,pt.d),pt=pt._next;else data.styles.revert()},get:_get,aliases:_propertyAliases,getSetter:function getSetter(target,property,plugin){var p=_propertyAliases[property];return p&&p.indexOf(",")<0&&(property=p),property in _transformProps&&property!==_transformOriginProp&&(target._gsap.x||_get(target,"x"))?plugin&&_recentSetterPlugin===plugin?"scale"===property?_setterScale:_setterTransform:(_recentSetterPlugin=plugin||{})&&("scale"===property?_setterScaleWithRender:_setterTransformWithRender):target.style&&!_isUndefined(target.style[property])?_setterCSSStyle:~property.indexOf("-")?_setterCSSProp:_getSetter(target,property)},core:{_removeProperty,_getMatrix}};gsap.utils.checkPrefix=_checkPropPrefix,gsap.core.getStyleSaver=_getStyleSaver,all=_forEachName("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(rotation="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(name){_transformProps[name]=1})),_forEachName(rotation,(function(name){_config.units[name]="deg",_rotationalProperties[name]=1})),_propertyAliases[all[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+rotation,_forEachName("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(name){var split=name.split(":");_propertyAliases[split[1]]=all[split[0]]})),_forEachName("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(name){_config.units[name]="px"})),gsap.registerPlugin(CSSPlugin);var gsapWithCSS=gsap.registerPlugin(CSSPlugin)||gsap;gsapWithCSS.core.Tween}}]); \ No newline at end of file diff --git a/176.3b563e8d.iframe.bundle.js.LICENSE.txt b/176.3b563e8d.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..0e0254a6c --- /dev/null +++ b/176.3b563e8d.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,9 @@ +/*! + * GSAP 3.12.2 + * https://greensock.com + * + * @license Copyright 2008-2023, GreenSock. All rights reserved. + * Subject to the terms at https://greensock.com/standard-license or for + * Club GreenSock members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com +*/ diff --git a/1_SimpleUsage-stories.a747e553.iframe.bundle.js b/1_SimpleUsage-stories.a747e553.iframe.bundle.js new file mode 100644 index 000000000..de64dda0e --- /dev/null +++ b/1_SimpleUsage-stories.a747e553.iframe.bundle.js @@ -0,0 +1,31 @@ +/*! For license information please see 1_SimpleUsage-stories.a747e553.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_projectstorm_react_diagrams_gallery=self.webpackChunk_projectstorm_react_diagrams_gallery||[]).push([[958],{"../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{aD:()=>chunk_AY7I2SME.aD});var chunk_AY7I2SME=__webpack_require__("../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/chunk-AY7I2SME.mjs")},"./demos/1_SimpleUsage.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CanvasDrag:()=>CanvasDrag,CanvasGridSize:()=>CanvasGridSize,CanvasPanAndZoom:()=>CanvasPanAndZoom,DemoSimple:()=>DemoSimple,DynamicPorts:()=>DynamicPorts,EventsAndListeners:()=>EventsAndListeners,LinksWithLabels:()=>LinksWithLabels,LockedWidget:()=>LockedWidget,PerformanceDemo:()=>PerformanceDemo,SimpleFlowExample:()=>SimpleFlowExample,ZoomToFit:()=>ZoomToFit,ZoomToFitSelectNodes:()=>ZoomToFitSelectNodes,__namedExportsOrder:()=>__namedExportsOrder,default:()=>_1_SimpleUsage_stories});var dist=__webpack_require__("../packages/react-canvas-core/dist/index.js"),react_diagrams_dist=__webpack_require__("../packages/react-diagrams/dist/index.js"),react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),DemoCanvasWidget=__webpack_require__("./demos/helpers/DemoCanvasWidget.tsx"),jsx_runtime=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");function generateNodes(model,offsetX,offsetY){var node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100+offsetX,100+offsetY);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(200+offsetX,100+offsetY);var link1=port1.link(port2);model.addAll(node1,node2,link1)}var addon_actions_dist=__webpack_require__("../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/index.mjs");var DemoWorkspaceWidget=__webpack_require__("./demos/helpers/DemoWorkspaceWidget.tsx");function demo_zoom_to_fit_generateNodes(model,offsetX,offsetY){var node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100+offsetX,100+offsetY);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(200+offsetX,100+offsetY);var link1=port1.link(port2);model.addAll(node1,node2,link1)}function demo_zoom_to_fit_nodes_generateNodes(model,offsetX,offsetY){var node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100+offsetX,100+offsetY);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(200+offsetX,100+offsetY);var link1=port1.link(port2);model.addAll(node1,node2,link1)}class CanvasDragToggle extends react.Component{enableDrag=()=>{const{engine}=this.props;engine.getStateMachine().getCurrentState().dragCanvas.config.allowDrag=!0};disableDrag=()=>{const{engine}=this.props;engine.getStateMachine().getCurrentState().dragCanvas.config.allowDrag=!1};render(){const{engine}=this.props;return(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:[(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:this.enableDrag,children:"Enable canvas drag"},1),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:this.disableDrag,children:"Disable canvas drag"},2)],children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})}}CanvasDragToggle.displayName="CanvasDragToggle";class CanvasPanAndZoomToggle extends react.Component{render(){const{engine}=this.props;return(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})}}CanvasPanAndZoomToggle.displayName="CanvasPanAndZoomToggle";var values=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/values.js"),values_default=__webpack_require__.n(values);class CloneSelected extends react.Component{addPorts=()=>{const nodes=values_default()(this.props.model.getNodes());for(let node of nodes)"Node 2"===node.getOptions().name?node.addInPort(`in-${node.getInPorts().length+1}`,!1):node.addOutPort(`out-${node.getOutPorts().length+1}`,!1);this.props.engine.repaintCanvas()};render(){const{engine}=this.props;return(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:this.addPorts,children:"Add more ports"}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})}}CloneSelected.displayName="CloneSelected";dist.C7.TESTING=!0;const _1_SimpleUsage_stories={title:"Simple Usage"},DemoSimple=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs({name:"Node 1",color:"rgb(0,192,255)"});node1.setPosition(100,100);let port1=node1.addOutPort("Out");var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)");let port2=node2.addInPort("In");node2.setPosition(400,100);let link1=port1.link(port2);return link1.getOptions().testName="Test",link1.addLabel("Hello World!"),model.addAll(node1,node2,link1),engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},SimpleFlowExample=()=>{var engine=(0,react_diagrams_dist.ZP)();const state=engine.getStateMachine().getCurrentState();state instanceof react_diagrams_dist.Qo&&(state.dragNewLink.config.allowLooseLinks=!1);var model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);var link1=port1.link(port2),node3=new react_diagrams_dist.Fs("Node 3","rgb(0,192,255)");return node3.addOutPort("Out"),node3.setPosition(100,200),model.addAll(node1,node2,node3,link1),engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},PerformanceDemo=()=>{for(var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,i=0;i<8;i++)for(var j=0;j<8;j++)generateNodes(model,200*i,100*j);return engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},LockedWidget=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);let link1=port1.link(port2);model.addAll(node1,node2,link1);var node3=new react_diagrams_dist.Fs("Node 3","rgb(0,192,255)"),port3=node3.addOutPort("Out");node3.setPosition(100,250);var node4=new react_diagrams_dist.Fs("Node 4","rgb(192,255,0)"),port4=node4.addInPort("In");node4.setPosition(400,250);var link2=port3.link(port4);return link2.point(350,225),link2.point(200,225),model.addAll(node3,node4,link2),engine.setModel(model),model.setLocked(!0),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},CanvasGridSize=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm;model.setGridSize(50);var node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)");let port=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)");let port2=node2.addInPort("In");node2.setPosition(400,100);let link1=port.link(port2);return model.addAll(node1,node2,link1),engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},EventsAndListeners=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(255,99,66)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,40);var node3=new react_diagrams_dist.Fs("Node 3","rgb(128,99,255)"),port3=node3.addInPort("In");node3.setPosition(300,160);let link1=port1.link(port2),link2=port1.link(port3);return model.addAll(node1,node2,node3,link1,link2).forEach((item=>{item.registerListener({eventDidFire:(0,addon_actions_dist.aD)("element eventDidFire")})})),model.registerListener({eventDidFire:(0,addon_actions_dist.aD)("model eventDidFire")}),engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},ZoomToFit=()=>{for(var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,i=0;i<8;i++)for(var j=0;j<8;j++)demo_zoom_to_fit_generateNodes(model,200*i,100*j);return engine.setModel(model),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:()=>engine.zoomToFit(),children:"Zoom to fit"}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})},ZoomToFitSelectNodes=()=>{for(var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,i=0;i<8;i++)for(var j=0;j<8;j++)demo_zoom_to_fit_nodes_generateNodes(model,200*i,100*j);return engine.setModel(model),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:()=>engine.zoomToFitSelectedNodes(50),children:"Zoom to fit"}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})},CanvasDrag=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);var link1=port1.link(port2);return model.addAll(node1,node2,link1),engine.setModel(model),(0,jsx_runtime.jsx)(CanvasDragToggle,{engine,model})},CanvasPanAndZoom=()=>{var engine=(0,react_diagrams_dist.ZP)({registerDefaultPanAndZoomCanvasAction:!0,registerDefaultZoomCanvasAction:!1}),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);var link1=port1.link(port2);return model.addAll(node1,node2,link1),engine.setModel(model),(0,jsx_runtime.jsx)(CanvasPanAndZoomToggle,{engine,model})},DynamicPorts=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)");return node2.setPosition(400,100),model.addAll(node1,node2),engine.setModel(model),(0,jsx_runtime.jsx)(CloneSelected,{engine,model})},LinksWithLabels=()=>{const engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node A","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);const node2=new react_diagrams_dist.Fs("Node B","rgb(255,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,50);const node3=new react_diagrams_dist.Fs("Node C (no label)","rgb(192,255,255)"),port3=node3.addInPort("In");node3.setPosition(450,180);const node4=new react_diagrams_dist.Fs("Node D","rgb(192,0,255)"),port4=node4.addInPort("In");node4.setPosition(300,250);const link1=port1.link(port2);link1.addLabel("Custom label 1"),link1.addLabel("Custom label 2");const link2=port1.link(port3),link3=port1.link(port4);return link3.addLabel("Emoji label: 🎉"),model.addAll(node1,node2,node3,node4,link1,link2,link3),engine.setModel(model),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:()=>{(0,addon_actions_dist.aD)("Serialized Graph")(JSON.stringify(model.serializeDiagram(),null,2))},children:"Serialize Graph"}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})},__namedExportsOrder=["DemoSimple","SimpleFlowExample","PerformanceDemo","LockedWidget","CanvasGridSize","EventsAndListeners","ZoomToFit","ZoomToFitSelectNodes","CanvasDrag","CanvasPanAndZoom","DynamicPorts","LinksWithLabels"]},"./demos/helpers/DemoWorkspaceWidget.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{F:()=>DemoWorkspaceWidget,R:()=>DemoButton});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_emotion_styled__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");let S;var _S;(_S=S||(S={})).Toolbar=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + padding: 5px; + display: flex; + flex-shrink: 0; + `,_S.Content=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + flex-grow: 1; + height: 100%; + `,_S.Container=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + background: black; + display: flex; + flex-direction: column; + height: 100%; + border-radius: 5px; + overflow: hidden; + `;const DemoButton=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.button` + background: rgb(60, 60, 60); + font-size: 14px; + padding: 5px 10px; + border: none; + color: white; + outline: none; + cursor: pointer; + margin: 2px; + border-radius: 3px; + + &:hover { + background: rgb(0, 192, 255); + } +`;class DemoWorkspaceWidget extends react__WEBPACK_IMPORTED_MODULE_0__.Component{render(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(S.Container,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(S.Toolbar,{children:this.props.buttons}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(S.Content,{children:this.props.children})]})}}DemoWorkspaceWidget.displayName="DemoWorkspaceWidget"}}]); +//# sourceMappingURL=1_SimpleUsage-stories.a747e553.iframe.bundle.js.map \ No newline at end of file diff --git a/1_SimpleUsage-stories.a747e553.iframe.bundle.js.LICENSE.txt b/1_SimpleUsage-stories.a747e553.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..7e291283f --- /dev/null +++ b/1_SimpleUsage-stories.a747e553.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,3 @@ +//!========================================= <<<<<<< + +//!========================================= <<<<<<< diff --git a/1_SimpleUsage-stories.a747e553.iframe.bundle.js.map b/1_SimpleUsage-stories.a747e553.iframe.bundle.js.map new file mode 100644 index 000000000..e63b89954 --- /dev/null +++ b/1_SimpleUsage-stories.a747e553.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"1_SimpleUsage-stories.a747e553.iframe.bundle.js","mappings":";;;;;AAcA;;;AAKA;;;;;;;AAUA;;;;;;;;;;;;;;AAgBA","sources":["webpack://@projectstorm/react-diagrams-gallery/./demos/helpers/DemoWorkspaceWidget.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled from '@emotion/styled';\n\nexport interface DemoWorkspaceWidgetProps {\n\tbuttons?: any;\n}\n\nnamespace S {\n\texport const Toolbar = styled.div`\n\t\tpadding: 5px;\n\t\tdisplay: flex;\n\t\tflex-shrink: 0;\n\t`;\n\n\texport const Content = styled.div`\n\t\tflex-grow: 1;\n\t\theight: 100%;\n\t`;\n\n\texport const Container = styled.div`\n\t\tbackground: black;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\theight: 100%;\n\t\tborder-radius: 5px;\n\t\toverflow: hidden;\n\t`;\n}\n\nexport const DemoButton = styled.button`\n\tbackground: rgb(60, 60, 60);\n\tfont-size: 14px;\n\tpadding: 5px 10px;\n\tborder: none;\n\tcolor: white;\n\toutline: none;\n\tcursor: pointer;\n\tmargin: 2px;\n\tborder-radius: 3px;\n\n\t&:hover {\n\t\tbackground: rgb(0, 192, 255);\n\t}\n`;\n\nexport class DemoWorkspaceWidget extends React.Component> {\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t{this.props.buttons}\n\t\t\t\t{this.props.children}\n\t\t\t\n\t\t);\n\t}\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/2_AdvancedUsage-stories.619a37a4.iframe.bundle.js b/2_AdvancedUsage-stories.619a37a4.iframe.bundle.js new file mode 100644 index 000000000..31561b8d9 --- /dev/null +++ b/2_AdvancedUsage-stories.619a37a4.iframe.bundle.js @@ -0,0 +1,65 @@ +/*! For license information please see 2_AdvancedUsage-stories.619a37a4.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_projectstorm_react_diagrams_gallery=self.webpackChunk_projectstorm_react_diagrams_gallery||[]).push([[419],{"../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{aD:()=>chunk_AY7I2SME.aD});var chunk_AY7I2SME=__webpack_require__("../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/chunk-AY7I2SME.mjs")},"./demos/2_AdvancedUsage.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CloneSelected:()=>_2_AdvancedUsage_stories_CloneSelected,DragAndDrop:()=>DragAndDrop,LinkingByClickingInsteadOfDragging:()=>LinkingByClickingInsteadOfDragging,ProgramaticallyModifyingGraph:()=>ProgramaticallyModifyingGraph,RightAnglesRouting:()=>RightAnglesRouting,SerializingAndDeSerializing:()=>SerializingAndDeSerializing,SettingCustomDeleteKeys:()=>SettingCustomDeleteKeys,SmartRouting:()=>SmartRouting,__namedExportsOrder:()=>__namedExportsOrder,default:()=>_2_AdvancedUsage_stories});var dist=__webpack_require__("../packages/react-canvas-core/dist/index.js"),react_diagrams_dist=__webpack_require__("../packages/react-diagrams/dist/index.js"),forEach=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forEach.js"),forEach_default=__webpack_require__.n(forEach),react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),DemoWorkspaceWidget=__webpack_require__("./demos/helpers/DemoWorkspaceWidget.tsx"),DemoCanvasWidget=__webpack_require__("./demos/helpers/DemoCanvasWidget.tsx"),jsx_runtime=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");class CloneSelected extends react.Component{constructor(props){super(props),this.cloneSelected=this.cloneSelected.bind(this)}cloneSelected(){let{engine}=this.props,offset_x=100,offset_y=100,model=engine.getModel(),itemMap={};forEach_default()(model.getSelectedEntities(),(item=>{let newItem=item.clone(itemMap);newItem instanceof react_diagrams_dist.XF?(newItem.setPosition(newItem.getX()+offset_x,newItem.getY()+offset_y),model.addNode(newItem)):newItem instanceof react_diagrams_dist.KW&&(newItem.getPoints().forEach((p=>{p.setPosition(p.getX()+offset_x,p.getY()+offset_y)})),model.addLink(newItem)),newItem.setSelected(!1)})),this.forceUpdate()}render(){const{engine}=this.props;return(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:this.cloneSelected,children:"Clone Selected"}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})}}CloneSelected.displayName="CloneSelected";var addon_actions_dist=__webpack_require__("../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/index.mjs"),json_beautify=__webpack_require__("../node_modules/.pnpm/json-beautify@1.1.1/node_modules/json-beautify/index.js");var values=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/values.js"),values_default=__webpack_require__.n(values);class NodeDelayedPosition extends react.Component{constructor(props){super(props),this.updatePosition=this.updatePosition.bind(this),this.updatePositionViaSerialize=this.updatePositionViaSerialize.bind(this)}updatePosition(){const{engine}=this.props;const nodes=engine.getModel().getNodes();let node=nodes[Object.keys(nodes)[0]];node.setPosition(node.getX()+30,node.getY()+30),engine.repaintCanvas()}updatePositionViaSerialize(){let{engine}=this.props,model=engine.getModel(),str=JSON.stringify(model.serialize()),model2=new react_diagrams_dist.Vm,obj=JSON.parse(str),node=values_default()(obj.layers[1].models)[0];node.x+=30,node.y+=30,model2.deserializeModel(obj,engine),engine.setModel(model2)}render(){const{engine}=this.props;return(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:[(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:this.updatePosition,children:"Update position"},1),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:this.updatePositionViaSerialize,children:"Update position via serialize"},2)],children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})}}NodeDelayedPosition.displayName="NodeDelayedPosition";var keys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"),keys_default=__webpack_require__.n(keys),emotion_styled_browser_esm=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js");let S;(S||(S={})).Tray=emotion_styled_browser_esm.Z.div` + min-width: 200px; + background: rgb(20, 20, 20); + flex-grow: 0; + flex-shrink: 0; + `;class TrayWidget extends react.Component{render(){return(0,jsx_runtime.jsx)(S.Tray,{children:this.props.children})}}let TrayItemWidget_S,BodyWidget_S;TrayWidget.displayName="TrayWidget",function(_S){_S.Tray=emotion_styled_browser_esm.Z.div` + color: white; + font-family: Helvetica, Arial; + padding: 5px; + margin: 0px 10px; + border: solid 1px ${p=>p.color}; + border-radius: 5px; + margin-bottom: 2px; + cursor: pointer; + `}(TrayItemWidget_S||(TrayItemWidget_S={}));class TrayItemWidget extends react.Component{render(){return(0,jsx_runtime.jsx)(TrayItemWidget_S.Tray,{color:this.props.color,draggable:!0,onDragStart:event=>{event.dataTransfer.setData("storm-diagram-node",JSON.stringify(this.props.model))},className:"tray-item",children:this.props.name})}}TrayItemWidget.displayName="TrayItemWidget",function(_S){_S.Body=emotion_styled_browser_esm.Z.div` + flex-grow: 1; + display: flex; + flex-direction: column; + min-height: 100%; + `,_S.Header=emotion_styled_browser_esm.Z.div` + display: flex; + background: rgb(30, 30, 30); + flex-grow: 0; + flex-shrink: 0; + color: white; + font-family: Helvetica, Arial, sans-serif; + padding: 10px; + align-items: center; + `,_S.Content=emotion_styled_browser_esm.Z.div` + display: flex; + flex-grow: 1; + `,_S.Layer=emotion_styled_browser_esm.Z.div` + position: relative; + flex-grow: 1; + `}(BodyWidget_S||(BodyWidget_S={}));class BodyWidget extends react.Component{render(){return(0,jsx_runtime.jsxs)(BodyWidget_S.Body,{children:[(0,jsx_runtime.jsx)(BodyWidget_S.Header,{children:(0,jsx_runtime.jsx)("div",{className:"title",children:"Storm React Diagrams - DnD demo"})}),(0,jsx_runtime.jsxs)(BodyWidget_S.Content,{children:[(0,jsx_runtime.jsxs)(TrayWidget,{children:[(0,jsx_runtime.jsx)(TrayItemWidget,{model:{type:"in"},name:"In Node",color:"rgb(192,255,0)"}),(0,jsx_runtime.jsx)(TrayItemWidget,{model:{type:"out"},name:"Out Node",color:"rgb(0,192,255)"})]}),(0,jsx_runtime.jsx)(BodyWidget_S.Layer,{onDrop:event=>{var data=JSON.parse(event.dataTransfer.getData("storm-diagram-node")),nodesCount=keys_default()(this.props.app.getDiagramEngine().getModel().getNodes()).length,node=null;"in"===data.type?(node=new react_diagrams_dist.Fs("Node "+(nodesCount+1),"rgb(192,255,0)")).addInPort("In"):(node=new react_diagrams_dist.Fs("Node "+(nodesCount+1),"rgb(0,192,255)")).addOutPort("Out");var point=this.props.app.getDiagramEngine().getRelativeMousePoint(event);node.setPosition(point),this.props.app.getDiagramEngine().getModel().addNode(node),this.forceUpdate()},onDragOver:event=>{event.preventDefault()},children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine:this.props.app.getDiagramEngine()})})})]})]})}}BodyWidget.displayName="BodyWidget";class Application{constructor(){this.diagramEngine=react_diagrams_dist.ZP(),this.newModel()}newModel(){this.activeModel=new react_diagrams_dist.Vm,this.diagramEngine.setModel(this.activeModel);var node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)");let port=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)");let port2=node2.addInPort("In");node2.setPosition(400,100);let link1=port.link(port2);this.activeModel.addAll(node1,node2,link1)}getActiveDiagram(){return this.activeModel}getDiagramEngine(){return this.diagramEngine}}class RightAnglePortModel extends react_diagrams_dist.Gi{createLinkModel(factory){return new react_diagrams_dist.C6}}var react_diagrams_core_dist=__webpack_require__("../packages/react-diagrams-core/dist/index.js");class CreateLinkState extends dist.ZM{constructor(){super({name:"create-new-link"}),this.registerAction(new dist.aU({type:dist.n$.MOUSE_UP,fire:actionEvent=>{const element=this.engine.getActionEventBus().getModelForEvent(actionEvent),{event:{clientX,clientY}}=actionEvent,ox=this.engine.getModel().getOffsetX(),oy=this.engine.getModel().getOffsetY();if(element instanceof react_diagrams_core_dist.AJ&&!this.sourcePort){this.sourcePort=element;const link=this.sourcePort.createLinkModel();link.setSourcePort(this.sourcePort),link.getFirstPoint().setPosition(clientX-ox,clientY-oy),link.getLastPoint().setPosition(clientX-ox+20,clientY-oy+20),this.link=this.engine.getModel().addLink(link)}else element instanceof react_diagrams_core_dist.AJ&&this.sourcePort&&element!=this.sourcePort?this.sourcePort.canLinkToPort(element)&&(this.link.setTargetPort(element),element.reportPosition(),this.clearState(),this.eject()):element===this.link.getLastPoint()&&this.link.point(clientX-ox,clientY-oy,-1);this.engine.repaintCanvas()}})),this.registerAction(new dist.aU({type:dist.n$.MOUSE_MOVE,fire:actionEvent=>{if(!this.link)return;const{event}=actionEvent;this.link.getLastPoint().setPosition(event.clientX,event.clientY),this.engine.repaintCanvas()}})),this.registerAction(new dist.aU({type:dist.n$.KEY_UP,fire:actionEvent=>{27===actionEvent.event.keyCode&&(this.link.remove(),this.clearState(),this.eject(),this.engine.repaintCanvas())}}))}clearState(){this.link=void 0,this.sourcePort=void 0}}class DefaultState extends dist.ZM{constructor(){super({name:"starting-state"}),this.childStates=[new dist.If],this.dragCanvas=new dist.qR,this.createLink=new CreateLinkState,this.dragItems=new react_diagrams_core_dist.mk,this.registerAction(new dist.aU({type:dist.n$.MOUSE_DOWN,fire:event=>{const element=this.engine.getActionEventBus().getModelForEvent(event);if(element){if(element instanceof react_diagrams_core_dist.AJ)return;this.transitionWithEvent(this.dragItems,event)}else this.transitionWithEvent(this.dragCanvas,event)}})),this.registerAction(new dist.aU({type:dist.n$.TOUCH_START,fire:event=>{this.transitionWithEvent(new dist.qR,event)}})),this.registerAction(new dist.aU({type:dist.n$.MOUSE_UP,fire:event=>{this.engine.getActionEventBus().getModelForEvent(event)instanceof react_diagrams_core_dist.AJ&&this.transitionWithEvent(this.createLink,event)}}))}}dist.C7.TESTING=!0;const _2_AdvancedUsage_stories={title:"Advanced Usage"},_2_AdvancedUsage_stories_CloneSelected=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)");let port=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)");let port2=node2.addInPort("In");node2.setPosition(400,100);let link1=port.link(port2);return model.addAll(node1,node2,link1),engine.setModel(model),(0,jsx_runtime.jsx)(CloneSelected,{engine,model})},SerializingAndDeSerializing=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);var link1=port1.link(port2);link1.addLabel(new react_diagrams_dist.Py({label:"Label"})),model.addAll(node1,node2,link1),engine.setModel(model);var str=JSON.stringify(model.serialize()),model2=new react_diagrams_dist.Vm;return model2.deserializeModel(JSON.parse(str),engine),engine.setModel(model2),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:()=>{(0,addon_actions_dist.aD)("Serialized Graph")(json_beautify(model2.serialize(),null,2,80))},children:"Serialize Graph"}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})},ProgramaticallyModifyingGraph=()=>{var engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);var link1=port1.link(port2);return model.addAll(node1,node2,link1),engine.setModel(model),(0,jsx_runtime.jsx)(NodeDelayedPosition,{engine,model})},DragAndDrop=()=>{var app=new Application;return(0,jsx_runtime.jsx)(BodyWidget,{app})},SmartRouting=()=>{const engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node A","rgb(0,192,255)"),port1=node1.addPort(new react_diagrams_dist.Gi(!1,"out-1","Out"));node1.setPosition(340,350);const node2=new react_diagrams_dist.Fs("Node B","rgb(255,255,0)"),port2=node2.addPort(new react_diagrams_dist.Gi(!1,"out-1","Out"));node2.setPosition(240,80);const node3=new react_diagrams_dist.Fs("Node C","rgb(192,255,255)"),port3=node3.addPort(new react_diagrams_dist.Gi(!0,"in-1","In"));node3.setPosition(540,180);const node4=new react_diagrams_dist.Fs("Node D","rgb(192,0,255)"),port4=node4.addPort(new react_diagrams_dist.Gi(!0,"in-1","In"));node4.setPosition(95,185);const node5=new react_diagrams_dist.Fs("Node E","rgb(192,255,0)");node5.setPosition(250,180);const pathfinding=engine.getLinkFactories().getFactory(react_diagrams_dist.xU.NAME),link1=port1.link(port4,pathfinding),link2=port2.link(port3,pathfinding);return link1.addLabel(new react_diagrams_dist.Py({label:"I am a label!",offsetY:20})),model.addAll(node1,node2,node3,node4,node5,link1,link2),engine.setModel(model),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:()=>{(0,addon_actions_dist.aD)("Serialized Graph")(JSON.stringify(model.serialize(),null,2))},children:"Serialize Graph"}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})},RightAnglesRouting=()=>{const engine=(0,react_diagrams_dist.ZP)();engine.getLinkFactories().registerFactory(new react_diagrams_dist.$Q);const model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node A","rgb(0,192,255)"),port1=node1.addPort(new RightAnglePortModel(!1,"out-1","Out"));node1.setPosition(340,350);const node2=new react_diagrams_dist.Fs("Node B","rgb(255,255,0)"),port2=node2.addPort(new RightAnglePortModel(!1,"out-1","Out"));node2.setPosition(240,80);const node3=new react_diagrams_dist.Fs("Node C","rgb(192,255,255)"),port3=node3.addPort(new RightAnglePortModel(!0,"in-1","In"));node3.setPosition(540,180);const node4=new react_diagrams_dist.Fs("Node D","rgb(192,0,255)"),port4=node4.addPort(new RightAnglePortModel(!0,"in-1","In"));node4.setPosition(95,185);const link1=port1.link(port4),link2=port2.link(port3);return model.addAll(node1,node2,node3,node4,link1,link2),engine.setModel(model),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:()=>{(0,addon_actions_dist.aD)("Serialized Graph")(JSON.stringify(model.serialize(),null,2))},children:"Serialize Graph"}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})},LinkingByClickingInsteadOfDragging=()=>{const engine=(0,react_diagrams_dist.ZP)(),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)");node1.addOutPort("Out"),node1.setPosition(100,100);const node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)");return node2.addInPort("In"),node2.setPosition(400,100),model.addAll(node1,node2),engine.setModel(model),engine.getStateMachine().pushState(new DefaultState),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},SettingCustomDeleteKeys=()=>{const engine=(0,react_diagrams_dist.ZP)({registerDefaultDeleteItemsAction:!1}),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs({name:"Node 1",color:"rgb(0,192,255)"});node1.setPosition(100,100);const port1=node1.addOutPort("Out"),node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);const link1=port1.link(port2);return link1.getOptions().testName="Test",link1.addLabel("Hello World!"),model.addAll(node1,node2,link1),engine.setModel(model),engine.getActionEventBus().registerAction(new dist.zp({keyCodes:[46]})),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},__namedExportsOrder=["CloneSelected","SerializingAndDeSerializing","ProgramaticallyModifyingGraph","DragAndDrop","SmartRouting","RightAnglesRouting","LinkingByClickingInsteadOfDragging","SettingCustomDeleteKeys"]},"./demos/helpers/DemoWorkspaceWidget.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{F:()=>DemoWorkspaceWidget,R:()=>DemoButton});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_emotion_styled__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");let S;var _S;(_S=S||(S={})).Toolbar=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + padding: 5px; + display: flex; + flex-shrink: 0; + `,_S.Content=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + flex-grow: 1; + height: 100%; + `,_S.Container=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + background: black; + display: flex; + flex-direction: column; + height: 100%; + border-radius: 5px; + overflow: hidden; + `;const DemoButton=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.button` + background: rgb(60, 60, 60); + font-size: 14px; + padding: 5px 10px; + border: none; + color: white; + outline: none; + cursor: pointer; + margin: 2px; + border-radius: 3px; + + &:hover { + background: rgb(0, 192, 255); + } +`;class DemoWorkspaceWidget extends react__WEBPACK_IMPORTED_MODULE_0__.Component{render(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(S.Container,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(S.Toolbar,{children:this.props.buttons}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(S.Content,{children:this.props.children})]})}}DemoWorkspaceWidget.displayName="DemoWorkspaceWidget"},"../node_modules/.pnpm/json-beautify@1.1.1/node_modules/json-beautify/index.js":module=>{var gap,indent,rep,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function quote(string){return rx_escapable.lastIndex=0,rx_escapable.test(string)?'"'+string.replace(rx_escapable,(function(a){var c=meta[a];return"string"==typeof c?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+string+'"'}function str(key,holder,limit){var i,k,v,length,partial,mind=gap,value=holder[key];switch(value&&"object"==typeof value&&"function"==typeof value.toJSON&&(value=value.toJSON(key)),"function"==typeof rep&&(value=rep.call(holder,key,value)),typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value)return"null";if(gap+=indent,partial=[],"[object Array]"===Object.prototype.toString.apply(value)){for(length=value.length,i=0;ilimit?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"[ "+partial.join(", ")+" ]":"["+partial.join(",")+"]",gap=mind,v}if(rep&&"object"==typeof rep)for(length=rep.length,i=0;ilimit?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{ "+partial.join(", ")+" }":"{"+partial.join(",")+"}",gap=mind,v}}module.exports=function beautify(value,replacer,space,limit){var i;if(gap="",indent="",limit||(limit=0),"number"!=typeof limit)throw new Error("beaufifier: limit must be a number");if("number"==typeof space)for(i=0;i{this.props.children};\n\t}\n}\n","import * as React from 'react';\nimport styled from '@emotion/styled';\n\nexport interface TrayItemWidgetProps {\n\tmodel: any;\n\tcolor?: string;\n\tname: string;\n}\n\nnamespace S {\n\texport const Tray = styled.div<{ color: string }>`\n\t\tcolor: white;\n\t\tfont-family: Helvetica, Arial;\n\t\tpadding: 5px;\n\t\tmargin: 0px 10px;\n\t\tborder: solid 1px ${(p) => p.color};\n\t\tborder-radius: 5px;\n\t\tmargin-bottom: 2px;\n\t\tcursor: pointer;\n\t`;\n}\n\nexport class TrayItemWidget extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t {\n\t\t\t\t\tevent.dataTransfer.setData('storm-diagram-node', JSON.stringify(this.props.model));\n\t\t\t\t}}\n\t\t\t\tclassName=\"tray-item\"\n\t\t\t>\n\t\t\t\t{this.props.name}\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport _keys from 'lodash/keys';\nimport { TrayWidget } from './TrayWidget';\nimport { Application } from '../Application';\nimport { TrayItemWidget } from './TrayItemWidget';\nimport { DefaultNodeModel } from '@projectstorm/react-diagrams';\nimport { CanvasWidget } from '@projectstorm/react-canvas-core';\nimport { DemoCanvasWidget } from '../../helpers/DemoCanvasWidget';\nimport styled from '@emotion/styled';\n\nexport interface BodyWidgetProps {\n\tapp: Application;\n}\n\nnamespace S {\n\texport const Body = styled.div`\n\t\tflex-grow: 1;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmin-height: 100%;\n\t`;\n\n\texport const Header = styled.div`\n\t\tdisplay: flex;\n\t\tbackground: rgb(30, 30, 30);\n\t\tflex-grow: 0;\n\t\tflex-shrink: 0;\n\t\tcolor: white;\n\t\tfont-family: Helvetica, Arial, sans-serif;\n\t\tpadding: 10px;\n\t\talign-items: center;\n\t`;\n\n\texport const Content = styled.div`\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t`;\n\n\texport const Layer = styled.div`\n\t\tposition: relative;\n\t\tflex-grow: 1;\n\t`;\n}\n\nexport class BodyWidget extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t
Storm React Diagrams - DnD demo
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\t\tvar data = JSON.parse(event.dataTransfer.getData('storm-diagram-node'));\n\t\t\t\t\t\t\tvar nodesCount = _keys(this.props.app.getDiagramEngine().getModel().getNodes()).length;\n\n\t\t\t\t\t\t\tvar node: DefaultNodeModel = null;\n\t\t\t\t\t\t\tif (data.type === 'in') {\n\t\t\t\t\t\t\t\tnode = new DefaultNodeModel('Node ' + (nodesCount + 1), 'rgb(192,255,0)');\n\t\t\t\t\t\t\t\tnode.addInPort('In');\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tnode = new DefaultNodeModel('Node ' + (nodesCount + 1), 'rgb(0,192,255)');\n\t\t\t\t\t\t\t\tnode.addOutPort('Out');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvar point = this.props.app.getDiagramEngine().getRelativeMousePoint(event);\n\t\t\t\t\t\t\tnode.setPosition(point);\n\t\t\t\t\t\t\tthis.props.app.getDiagramEngine().getModel().addNode(node);\n\t\t\t\t\t\t\tthis.forceUpdate();\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonDragOver={(event) => {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport styled from '@emotion/styled';\n\nexport interface DemoWorkspaceWidgetProps {\n\tbuttons?: any;\n}\n\nnamespace S {\n\texport const Toolbar = styled.div`\n\t\tpadding: 5px;\n\t\tdisplay: flex;\n\t\tflex-shrink: 0;\n\t`;\n\n\texport const Content = styled.div`\n\t\tflex-grow: 1;\n\t\theight: 100%;\n\t`;\n\n\texport const Container = styled.div`\n\t\tbackground: black;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\theight: 100%;\n\t\tborder-radius: 5px;\n\t\toverflow: hidden;\n\t`;\n}\n\nexport const DemoButton = styled.button`\n\tbackground: rgb(60, 60, 60);\n\tfont-size: 14px;\n\tpadding: 5px 10px;\n\tborder: none;\n\tcolor: white;\n\toutline: none;\n\tcursor: pointer;\n\tmargin: 2px;\n\tborder-radius: 3px;\n\n\t&:hover {\n\t\tbackground: rgb(0, 192, 255);\n\t}\n`;\n\nexport class DemoWorkspaceWidget extends React.Component> {\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t{this.props.buttons}\n\t\t\t\t{this.props.children}\n\t\t\t\n\t\t);\n\t}\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3_Customization-stories.8d19e21e.iframe.bundle.js b/3_Customization-stories.8d19e21e.iframe.bundle.js new file mode 100644 index 000000000..12e82cc3f --- /dev/null +++ b/3_Customization-stories.8d19e21e.iframe.bundle.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunk_projectstorm_react_diagrams_gallery=self.webpackChunk_projectstorm_react_diagrams_gallery||[]).push([[171],{"../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{aD:()=>chunk_AY7I2SME.aD});var chunk_AY7I2SME=__webpack_require__("../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/chunk-AY7I2SME.mjs")},"./demos/3_Customization.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomAnimatedLinks:()=>CustomAnimatedLinks,CustomDiamondNode:()=>CustomDiamondNode,CustomEvent:()=>CustomEvent,CustomLinkEndsWithArrows:()=>CustomLinkEndsWithArrows,CustomLinkLabel:()=>CustomLinkLabel,__namedExportsOrder:()=>__namedExportsOrder,default:()=>_3_Customization_stories});var dist=__webpack_require__("../packages/react-canvas-core/dist/index.js"),react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_diagrams_dist=__webpack_require__("../packages/react-diagrams/dist/index.js"),DemoCanvasWidget=__webpack_require__("./demos/helpers/DemoCanvasWidget.tsx");class EditableLabelModel extends react_diagrams_dist.aS{constructor(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({...options,type:"editable-label"}),this.value=options.value||""}serialize(){return{...super.serialize(),value:this.value}}deserialize(event){super.deserialize(event),this.value=event.data.value}}var emotion_styled_browser_esm=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"),addon_actions_dist=__webpack_require__("../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/index.mjs"),jsx_runtime=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");let S;(S||(S={})).Label=emotion_styled_browser_esm.Z.div` + user-select: none; + pointer-events: auto; + `;const EditableLabelWidget=props=>{const[str,setStr]=react.useState(props.model.value);return(0,jsx_runtime.jsxs)(S.Label,{children:[(0,jsx_runtime.jsx)("input",{value:str,onChange:event=>{const newVal=event.target.value;setStr(newVal),props.model.value=newVal}}),(0,jsx_runtime.jsx)("button",{onClick:()=>(0,addon_actions_dist.aD)("model eventDidFire")("You clicked the button"),children:"Click me!"})]})};EditableLabelWidget.displayName="EditableLabelWidget";class EditableLabelFactory extends dist.a3{constructor(){super("editable-label")}generateModel(){return new EditableLabelModel}generateReactWidget(event){return(0,jsx_runtime.jsx)(EditableLabelWidget,{model:event.model})}}var forEach=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forEach.js"),forEach_default=__webpack_require__.n(forEach);class CustomDeleteItemsAction extends dist.aU{constructor(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};options={keyCodes:[46,8],...options},super({type:dist.n$.KEY_DOWN,fire:event=>{if(-1!==options.keyCodes.indexOf(event.event.keyCode)){const selectedEntities=this.engine.getModel().getSelectedEntities();if(selectedEntities.length>0){window.confirm("Are you sure you want to delete?")&&(forEach_default()(selectedEntities,(model=>{model.isLocked()||model.remove()})),this.engine.repaintCanvas())}}}})}}class DiamondPortModel extends react_diagrams_dist.AJ{constructor(alignment){super({type:"diamond",name:alignment,alignment})}createLinkModel(){return new react_diagrams_dist.Si}}class DiamondNodeModel extends react_diagrams_dist.XF{constructor(){super({type:"diamond"}),this.addPort(new DiamondPortModel(react_diagrams_dist.tK.TOP)),this.addPort(new DiamondPortModel(react_diagrams_dist.tK.LEFT)),this.addPort(new DiamondPortModel(react_diagrams_dist.tK.BOTTOM)),this.addPort(new DiamondPortModel(react_diagrams_dist.tK.RIGHT))}}let DiamondNodeWidget_S;!function(_S){_S.Port=emotion_styled_browser_esm.Z.div` + width: 16px; + height: 16px; + z-index: 10; + background: rgba(0, 0, 0, 0.5); + border-radius: 8px; + cursor: pointer; + + &:hover { + background: rgba(0, 0, 0, 1); + } + `}(DiamondNodeWidget_S||(DiamondNodeWidget_S={}));class DiamondNodeWidget extends react.Component{render(){return(0,jsx_runtime.jsxs)("div",{className:"diamond-node",style:{position:"relative",width:this.props.size,height:this.props.size},children:[(0,jsx_runtime.jsx)("svg",{width:this.props.size,height:this.props.size,dangerouslySetInnerHTML:{__html:`\n \n \n \n \n \n '}}),(0,jsx_runtime.jsx)(react_diagrams_dist.ER,{style:{top:this.props.size/2-8,left:-8,position:"absolute"},port:this.props.node.getPort(react_diagrams_dist.tK.LEFT),engine:this.props.engine,children:(0,jsx_runtime.jsx)(DiamondNodeWidget_S.Port,{})}),(0,jsx_runtime.jsx)(react_diagrams_dist.ER,{style:{left:this.props.size/2-8,top:-8,position:"absolute"},port:this.props.node.getPort(react_diagrams_dist.tK.TOP),engine:this.props.engine,children:(0,jsx_runtime.jsx)(DiamondNodeWidget_S.Port,{})}),(0,jsx_runtime.jsx)(react_diagrams_dist.ER,{style:{left:this.props.size-8,top:this.props.size/2-8,position:"absolute"},port:this.props.node.getPort(react_diagrams_dist.tK.RIGHT),engine:this.props.engine,children:(0,jsx_runtime.jsx)(DiamondNodeWidget_S.Port,{})}),(0,jsx_runtime.jsx)(react_diagrams_dist.ER,{style:{left:this.props.size/2-8,top:this.props.size-8,position:"absolute"},port:this.props.node.getPort(react_diagrams_dist.tK.BOTTOM),engine:this.props.engine,children:(0,jsx_runtime.jsx)(DiamondNodeWidget_S.Port,{})})]})}}DiamondNodeWidget.displayName="DiamondNodeWidget";class DiamondNodeFactory extends dist.a3{constructor(){super("diamond")}generateReactWidget(event){return(0,jsx_runtime.jsx)(DiamondNodeWidget,{engine:this.engine,size:50,node:event.model})}generateModel(event){return new DiamondNodeModel}}class SimplePortFactory extends dist.Zi{constructor(type,cb){super(type),this.cb=cb}generateModel(event){return this.cb(event.initialConfig)}}class AdvancedLinkModel extends react_diagrams_dist.Si{constructor(){super({type:"advanced",width:10})}}class AdvancedPortModel extends react_diagrams_dist.Gi{createLinkModel(){return new AdvancedLinkModel}}class AdvancedLinkSegment extends react.Component{constructor(props){super(props),this.percent=0}componentDidMount(){this.mounted=!0,this.callback=()=>{if(!this.circle||!this.path)return;this.percent+=2,this.percent>100&&(this.percent=0);let point=this.path.getPointAtLength(this.path.getTotalLength()*(this.percent/100));this.circle.setAttribute("cx",""+point.x),this.circle.setAttribute("cy",""+point.y),this.mounted&&requestAnimationFrame(this.callback)},requestAnimationFrame(this.callback)}componentWillUnmount(){this.mounted=!1}render(){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)("path",{fill:"none",ref:ref=>{this.path=ref},strokeWidth:this.props.model.getOptions().width,stroke:"rgba(255,0,0,0.5)",d:this.props.path}),(0,jsx_runtime.jsx)("circle",{ref:ref=>{this.circle=ref},r:10,fill:"orange"})]})}}AdvancedLinkSegment.displayName="AdvancedLinkSegment";class AdvancedLinkFactory extends react_diagrams_dist.oQ{constructor(){super("advanced")}generateModel(){return new AdvancedLinkModel}generateLinkSegment(model,selected,path){return(0,jsx_runtime.jsx)("g",{children:(0,jsx_runtime.jsx)(AdvancedLinkSegment,{model,path})})}}var react_diagrams_core_dist=__webpack_require__("../packages/react-diagrams-core/dist/index.js"),react_diagrams_defaults_dist=__webpack_require__("../packages/react-diagrams-defaults/dist/index.js");class demo_custom_link2_AdvancedLinkModel extends react_diagrams_dist.Si{constructor(){super({type:"advanced",width:4})}}class demo_custom_link2_AdvancedPortModel extends react_diagrams_dist.Gi{createLinkModel(){return new demo_custom_link2_AdvancedLinkModel}}const CustomLinkArrowWidget=props=>{const{point,previousPoint}=props,angle=90+180*Math.atan2(point.getPosition().y-previousPoint.getPosition().y,point.getPosition().x-previousPoint.getPosition().x)/Math.PI;return(0,jsx_runtime.jsx)("g",{className:"arrow",transform:"translate("+point.getPosition().x+", "+point.getPosition().y+")",children:(0,jsx_runtime.jsx)("g",{style:{transform:"rotate("+angle+"deg)"},children:(0,jsx_runtime.jsx)("g",{transform:"translate(0, -3)",children:(0,jsx_runtime.jsx)("polygon",{points:"0,10 8,30 -8,30",fill:props.color,"data-id":point.getID(),"data-linkid":point.getLink().getID()})})})})};CustomLinkArrowWidget.displayName="CustomLinkArrowWidget";class AdvancedLinkWidget extends react.Component{generatePoint=point=>(0,jsx_runtime.jsx)(react_diagrams_defaults_dist.hb,{point,colorSelected:this.props.link.getOptions().selectedColor??"",color:this.props.link.getOptions().color},point.getID());generateLink=(path,extraProps,id)=>(0,jsx_runtime.jsx)(react_diagrams_defaults_dist.AQ,{path,diagramEngine:this.props.diagramEngine,factory:this.props.diagramEngine.getFactoryForLink(this.props.link),link:this.props.link,extras:extraProps},`link-${id}`);addPointToLink=(event,index)=>{if(!event.shiftKey&&!this.props.link.isLocked()&&this.props.link.getPoints().length-1<=this.props.diagramEngine.getMaxNumberPointsPerLink()){const position=this.props.diagramEngine.getRelativeMousePoint(event),point=this.props.link.point(position.x,position.y,index);event.persist(),event.stopPropagation(),this.props.diagramEngine.getActionEventBus().fireAction({event,model:point})}};generateArrow(point,previousPoint){return(0,jsx_runtime.jsx)(CustomLinkArrowWidget,{point,previousPoint,colorSelected:this.props.link.getOptions().selectedColor,color:this.props.link.getOptions().color},point.getID())}render(){var points=this.props.link.getPoints(),paths=[];for(let j=0;j{this.addPointToLink(event,j+1)}},j));for(let i=1;i{var engine=(0,react_diagrams_dist.ZP)();engine.getPortFactories().registerFactory(new SimplePortFactory("diamond",(config=>new DiamondPortModel(react_diagrams_dist.tK.LEFT)))),engine.getNodeFactories().registerFactory(new DiamondNodeFactory);var model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,200);var node2=new DiamondNodeModel;node2.setPosition(250,108);var node3=new react_diagrams_dist.Fs("Node 3","red"),port3=node3.addInPort("In");node3.setPosition(500,100);var link1=port1.link(node2.getPort(react_diagrams_dist.tK.LEFT)),link2=port3.link(node2.getPort(react_diagrams_dist.tK.RIGHT)),node4=new react_diagrams_dist.Fs("Node 4","rgb(0,192,255)"),port4=node4.addOutPort("Out");node4.setPosition(200,10);var link3=port4.link(node2.getPort(react_diagrams_dist.tK.TOP)),node5=new react_diagrams_dist.Fs("Node 5","mediumpurple"),port5=node5.addInPort("In");node5.setPosition(400,300);var link4=port5.link(node2.getPort(react_diagrams_dist.tK.BOTTOM));return model.addAll(node1,node2,node3,link1,link2,node4,link3,link4,node5),engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},CustomAnimatedLinks=()=>{var engine=(0,react_diagrams_dist.ZP)();engine.getLinkFactories().registerFactory(new AdvancedLinkFactory);var node1=new react_diagrams_dist.Fs("Source","rgb(0,192,255)");let port1=node1.addPort(new AdvancedPortModel(!1,"out-1","Out thick")),port2=node1.addPort(new react_diagrams_dist.Gi(!1,"out-2","Out default"));node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Target","rgb(192,255,0)"),port3=node2.addPort(new AdvancedPortModel(!0,"in-1","In thick")),port4=node2.addPort(new react_diagrams_dist.Gi(!0,"in-2","In default"));node2.setPosition(300,100);var node3=new react_diagrams_dist.Fs("Source","rgb(0,192,255)");node3.addPort(new AdvancedPortModel(!1,"out-1","Out thick")),node3.addPort(new react_diagrams_dist.Gi(!1,"out-2","Out default")),node3.setPosition(100,200);var node4=new react_diagrams_dist.Fs("Target","rgb(192,255,0)");node4.addPort(new AdvancedPortModel(!0,"in-1","In thick")),node4.addPort(new react_diagrams_dist.Gi(!0,"in-2","In default")),node4.setPosition(300,200);var model=new react_diagrams_dist.Vm;return model.addAll(port1.link(port3),port2.link(port4)),model.addAll(node1,node2,node3,node4),engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},CustomLinkEndsWithArrows=()=>{var engine=(0,react_diagrams_dist.ZP)();engine.getLinkFactories().registerFactory(new demo_custom_link2_AdvancedLinkFactory);var node1=new react_diagrams_dist.Fs("Source","rgb(0,192,255)");let port1=node1.addPort(new demo_custom_link2_AdvancedPortModel(!1,"out"));node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Target","rgb(192,255,0)"),port2=node2.addPort(new demo_custom_link2_AdvancedPortModel(!0,"in"));node2.setPosition(500,350);var node3=new react_diagrams_dist.Fs("Source","rgb(0,192,255)");let port3=node3.addPort(new demo_custom_link2_AdvancedPortModel(!1,"out"));node3.setPosition(100,500);var node4=new react_diagrams_dist.Fs("Target","rgb(192,255,0)"),port4=node4.addPort(new demo_custom_link2_AdvancedPortModel(!0,"in"));node4.setPosition(500,450);var model=new react_diagrams_dist.Vm;return model.addAll(port1.link(port2),port3.link(port4)),model.addAll(node1,node2,node3,node4),engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},CustomLinkLabel=()=>{const engine=(0,react_diagrams_dist.ZP)();engine.getLabelFactories().registerFactory(new EditableLabelFactory);const model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node1","red"),port1=node1.addOutPort("out");node1.setPosition(250,100);const node2=new react_diagrams_dist.Fs("Node2","green"),port2=node2.addInPort("in");node2.setPosition(800,300);const link1=port1.link(port2);return link1.addLabel(new EditableLabelModel({value:"Hello, I am label!"})),model.addAll(node1,port1,node2,port2,link1),engine.setModel(model),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},CustomEvent=()=>{const engine=(0,react_diagrams_dist.ZP)({registerDefaultDeleteItemsAction:!1}),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs({name:"Node 1",color:"rgb(0,192,255)"});node1.setPosition(100,100);const port1=node1.addOutPort("Out"),node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);const link1=port1.link(port2);return link1.getOptions().testName="Test",link1.addLabel("Hello World!"),model.addAll(node1,node2,link1),engine.setModel(model),engine.getActionEventBus().registerAction(new CustomDeleteItemsAction),(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})},__namedExportsOrder=["CustomDiamondNode","CustomAnimatedLinks","CustomLinkEndsWithArrows","CustomLinkLabel","CustomEvent"]}}]); +//# sourceMappingURL=3_Customization-stories.8d19e21e.iframe.bundle.js.map \ No newline at end of file diff --git a/3_Customization-stories.8d19e21e.iframe.bundle.js.map b/3_Customization-stories.8d19e21e.iframe.bundle.js.map new file mode 100644 index 000000000..c723db0e2 --- /dev/null +++ b/3_Customization-stories.8d19e21e.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"3_Customization-stories.8d19e21e.iframe.bundle.js","mappings":";;;AAmBA;;;;;;;;;;;ACIA","sources":["webpack://@projectstorm/react-diagrams-gallery/./demos/demo-custom-link-label/EditableLabelWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/./demos/demo-custom-node1/DiamondNodeWidget.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { EditableLabelModel } from './EditableLabelModel';\nimport styled from '@emotion/styled';\nimport { action } from '@storybook/addon-actions';\n\nexport interface FlowAliasLabelWidgetProps {\n\tmodel: EditableLabelModel;\n}\n\nnamespace S {\n\t// NOTE: this CSS rules allows to interact with elements in label\n\texport const Label = styled.div`\n\t\tuser-select: none;\n\t\tpointer-events: auto;\n\t`;\n}\n\n// now we can render all what we want in the label\nexport const EditableLabelWidget: React.FunctionComponent = (props) => {\n\tconst [str, setStr] = React.useState(props.model.value);\n\n\treturn (\n\t\t\n\t\t\t {\n\t\t\t\t\tconst newVal = event.target.value;\n\n\t\t\t\t\t// update value both in internal component state\n\t\t\t\t\tsetStr(newVal);\n\t\t\t\t\t// and in model object\n\t\t\t\t\tprops.model.value = newVal;\n\t\t\t\t}}\n\t\t\t/>\n\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { DiamondNodeModel } from './DiamondNodeModel';\nimport { DiagramEngine, PortModelAlignment, PortWidget } from '@projectstorm/react-diagrams';\nimport styled from '@emotion/styled';\n\nexport interface DiamondNodeWidgetProps {\n\tnode: DiamondNodeModel;\n\tengine: DiagramEngine;\n\tsize?: number;\n}\n\nnamespace S {\n\texport const Port = styled.div`\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tz-index: 10;\n\t\tbackground: rgba(0, 0, 0, 0.5);\n\t\tborder-radius: 8px;\n\t\tcursor: pointer;\n\n\t\t&:hover {\n\t\t\tbackground: rgba(0, 0, 0, 1);\n\t\t}\n\t`;\n}\n\n/**\n * @author Dylan Vorster\n */\nexport class DiamondNodeWidget extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n \n \n \n \n `\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/4_Libraries-stories.cb4d2123.iframe.bundle.js b/4_Libraries-stories.cb4d2123.iframe.bundle.js new file mode 100644 index 000000000..4c887b63d --- /dev/null +++ b/4_Libraries-stories.cb4d2123.iframe.bundle.js @@ -0,0 +1,30 @@ +"use strict";(self.webpackChunk_projectstorm_react_diagrams_gallery=self.webpackChunk_projectstorm_react_diagrams_gallery||[]).push([[117],{"./demos/4_Libraries.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DagreDistribute:()=>DagreDistribute,GsapAnimation:()=>GsapAnimation,__namedExportsOrder:()=>__namedExportsOrder,default:()=>_4_Libraries_stories});var dist=__webpack_require__("../packages/react-canvas-core/dist/index.js"),react_diagrams_dist=__webpack_require__("../packages/react-diagrams/dist/index.js"),react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),DemoWorkspaceWidget=__webpack_require__("./demos/helpers/DemoWorkspaceWidget.tsx"),DemoCanvasWidget=__webpack_require__("./demos/helpers/DemoCanvasWidget.tsx"),jsx_runtime=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");function createNode(name){return new react_diagrams_dist.Fs(name,"rgb(0,192,255)")}let count=0;function connectNodes(nodeFrom,nodeTo,engine){count++;const portOut=nodeFrom.addPort(new react_diagrams_dist.Gi(!0,`${nodeFrom.name}-out-${count}`,"Out")),portTo=nodeTo.addPort(new react_diagrams_dist.Gi(!1,`${nodeFrom.name}-to-${count}`,"IN"));return portOut.link(portTo)}function genDagreEngine(){return new react_diagrams_dist.z6({graph:{rankdir:"RL",ranker:"longest-path",marginx:25,marginy:25},includeLinks:!0,nodeMargin:25})}function autoDistribute(engine){const model=engine.getModel();genDagreEngine().redistribute(model),reroute(engine),engine.repaintCanvas()}function reroute(engine){engine.getLinkFactories().getFactory(react_diagrams_dist.xU.NAME).calculateRoutingMatrix()}function DemoWidget(props){const engine=props.engine;(0,react.useLayoutEffect)((()=>{autoDistribute(engine)}),[]);return(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{buttons:(0,jsx_runtime.jsxs)("div",{children:[(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:()=>{autoDistribute(engine)},children:"Re-distribute"}),(0,jsx_runtime.jsx)(DemoWorkspaceWidget.R,{onClick:()=>{!function autoRefreshLinks(engine){const model=engine.getModel();genDagreEngine().refreshLinks(model),reroute(engine),engine.repaintCanvas()}(engine)},children:"Refresh Links"})]}),children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})}DemoWidget.displayName="DemoWidget";var gsap=__webpack_require__("../node_modules/.pnpm/gsap@3.12.2/node_modules/gsap/index.js");class NodeDelayedPosition extends react.Component{constructor(props){super(props)}render(){const{engine}=this.props;return(0,jsx_runtime.jsx)(DemoWorkspaceWidget.F,{children:(0,jsx_runtime.jsx)(DemoCanvasWidget._,{children:(0,jsx_runtime.jsx)(dist.JE,{engine})})})}}NodeDelayedPosition.displayName="NodeDelayedPosition";dist.C7.TESTING=!0;const _4_Libraries_stories={title:"External Libs"},DagreDistribute=()=>{let engine=(0,react.useRef)((0,react_diagrams_dist.ZP)()).current,model=new react_diagrams_dist.Vm,nodesFrom=[],nodesTo=[];nodesFrom.push(createNode("from-1")),nodesFrom.push(createNode("from-2")),nodesFrom.push(createNode("from-3")),nodesTo.push(createNode("to-1")),nodesTo.push(createNode("to-2")),nodesTo.push(createNode("to-3"));let links=nodesFrom.map(((node,index)=>connectNodes(node,nodesTo[index])));return links.push(connectNodes(nodesTo[0],nodesTo[1])),links.push(connectNodes(nodesTo[1],nodesTo[2])),links.push(connectNodes(nodesTo[0],nodesTo[2])),links.push(connectNodes(nodesFrom[0],nodesFrom[2])),links.push(connectNodes(nodesFrom[0],nodesTo[2])),nodesFrom.forEach(((node,index)=>{node.setPosition(70*index,70*index),model.addNode(node)})),nodesTo.forEach(((node,index)=>{node.setPosition(70*index,100),model.addNode(node)})),links.forEach((link=>{model.addLink(link)})),engine.setModel(model),(0,jsx_runtime.jsx)(DemoWidget,{model,engine})},GsapAnimation=()=>{var engine=(0,react_diagrams_dist.ZP)({repaintDebounceMs:12}),model=new react_diagrams_dist.Vm,node1=new react_diagrams_dist.Fs("Node 1","rgb(0,192,255)"),port1=node1.addOutPort("Out");node1.setPosition(100,100);var node2=new react_diagrams_dist.Fs("Node 2","rgb(192,255,0)"),port2=node2.addInPort("In");node2.setPosition(400,100);var node3=new react_diagrams_dist.Fs("Node 3","rgb(192,255,0)");node2.setPosition(200,300);var node4=new react_diagrams_dist.Fs("Node 4","rgb(192,255,0)");node2.setPosition(400,400);var link1=port1.link(port2);model.addAll(node1,node2,link1,node3,node4),engine.setModel(model);setInterval((()=>{[node1,node2,node3,node4].map((node=>{var obj={x:0,y:0};gsap.ZP.fromTo(obj,{x:node.getPosition().x,y:node.getPosition().y},{x:Math.floor(500*Math.random()),y:Math.floor(500*Math.random()),duration:.8,onUpdate:()=>{node.setPosition(obj.x,obj.y),engine.repaintCanvas()}})}))}),2e3);return(0,jsx_runtime.jsx)(NodeDelayedPosition,{engine,model})},__namedExportsOrder=["DagreDistribute","GsapAnimation"]},"./demos/helpers/DemoWorkspaceWidget.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{F:()=>DemoWorkspaceWidget,R:()=>DemoButton});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_emotion_styled__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");let S;var _S;(_S=S||(S={})).Toolbar=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + padding: 5px; + display: flex; + flex-shrink: 0; + `,_S.Content=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + flex-grow: 1; + height: 100%; + `,_S.Container=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + background: black; + display: flex; + flex-direction: column; + height: 100%; + border-radius: 5px; + overflow: hidden; + `;const DemoButton=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.button` + background: rgb(60, 60, 60); + font-size: 14px; + padding: 5px 10px; + border: none; + color: white; + outline: none; + cursor: pointer; + margin: 2px; + border-radius: 3px; + + &:hover { + background: rgb(0, 192, 255); + } +`;class DemoWorkspaceWidget extends react__WEBPACK_IMPORTED_MODULE_0__.Component{render(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(S.Container,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(S.Toolbar,{children:this.props.buttons}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(S.Content,{children:this.props.children})]})}}DemoWorkspaceWidget.displayName="DemoWorkspaceWidget"}}]); +//# sourceMappingURL=4_Libraries-stories.cb4d2123.iframe.bundle.js.map \ No newline at end of file diff --git a/4_Libraries-stories.cb4d2123.iframe.bundle.js.map b/4_Libraries-stories.cb4d2123.iframe.bundle.js.map new file mode 100644 index 000000000..4f9d11a9e --- /dev/null +++ b/4_Libraries-stories.cb4d2123.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"4_Libraries-stories.cb4d2123.iframe.bundle.js","mappings":";;;;AAcA;;;AAKA;;;;;;;AAUA;;;;;;;;;;;;;;AAgBA","sources":["webpack://@projectstorm/react-diagrams-gallery/./demos/helpers/DemoWorkspaceWidget.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled from '@emotion/styled';\n\nexport interface DemoWorkspaceWidgetProps {\n\tbuttons?: any;\n}\n\nnamespace S {\n\texport const Toolbar = styled.div`\n\t\tpadding: 5px;\n\t\tdisplay: flex;\n\t\tflex-shrink: 0;\n\t`;\n\n\texport const Content = styled.div`\n\t\tflex-grow: 1;\n\t\theight: 100%;\n\t`;\n\n\texport const Container = styled.div`\n\t\tbackground: black;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\theight: 100%;\n\t\tborder-radius: 5px;\n\t\toverflow: hidden;\n\t`;\n}\n\nexport const DemoButton = styled.button`\n\tbackground: rgb(60, 60, 60);\n\tfont-size: 14px;\n\tpadding: 5px 10px;\n\tborder: none;\n\tcolor: white;\n\toutline: none;\n\tcursor: pointer;\n\tmargin: 2px;\n\tborder-radius: 3px;\n\n\t&:hover {\n\t\tbackground: rgb(0, 192, 255);\n\t}\n`;\n\nexport class DemoWorkspaceWidget extends React.Component> {\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t{this.props.buttons}\n\t\t\t\t{this.props.children}\n\t\t\t\n\t\t);\n\t}\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/544.38616729.iframe.bundle.js b/544.38616729.iframe.bundle.js new file mode 100644 index 000000000..836c2a52c --- /dev/null +++ b/544.38616729.iframe.bundle.js @@ -0,0 +1,152 @@ +/*! For license information please see 544.38616729.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_projectstorm_react_diagrams_gallery=self.webpackChunk_projectstorm_react_diagrams_gallery||[]).push([[544],{"./demos/helpers/DemoCanvasWidget.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{_:()=>DemoCanvasWidget});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_emotion_styled__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");let S;var _S;(_S=S||(S={})).Container=_emotion_styled__WEBPACK_IMPORTED_MODULE_1__.Z.div` + height: 100%; + background-color: ${p=>p.background}; + background-size: 50px 50px; + display: flex; + + > * { + height: 100%; + min-height: 100%; + width: 100%; + } + + background-image: linear-gradient( + 0deg, + transparent 24%, + ${p=>p.color} 25%, + ${p=>p.color} 26%, + transparent 27%, + transparent 74%, + ${p=>p.color} 75%, + ${p=>p.color} 76%, + transparent 77%, + transparent + ), + linear-gradient( + 90deg, + transparent 24%, + ${p=>p.color} 25%, + ${p=>p.color} 26%, + transparent 27%, + transparent 74%, + ${p=>p.color} 75%, + ${p=>p.color} 76%, + transparent 77%, + transparent + ); + `,_S.Expand=_emotion_react__WEBPACK_IMPORTED_MODULE_3__.iv` + html, + body, + #root { + height: 100%; + } + `;class DemoCanvasWidget extends react__WEBPACK_IMPORTED_MODULE_0__.Component{render(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_emotion_react__WEBPACK_IMPORTED_MODULE_3__.xB,{styles:S.Expand}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(S.Container,{background:this.props.background||"rgb(60, 60, 60)",color:this.props.color||"rgba(255,255,255, 0.05)",children:this.props.children})]})}}DemoCanvasWidget.displayName="DemoCanvasWidget"},"../packages/geometry/dist/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{hr:()=>BezierCurve,E9:()=>Point,Ae:()=>Rectangle,dq:()=>boundingBoxFromPoints,zh:()=>boundingBoxFromPolygons});class Matrix{constructor(matrix){this.matrix=matrix}mmul(matrix){return this.matrix=this.matrix.map(((row,i)=>matrix.asArray()[0].map(((_,j)=>row.reduce(((acc,_,n)=>acc+this.matrix[i][n]*matrix.asArray()[n][j]),0))))),this}asArray(){return this.matrix}get(rowIndex,columnIndex){return this.asArray()[rowIndex][columnIndex]}static multiply(...matrices){let m=matrices[0];for(let i=1;i({[BoundsCorner.TOP_LEFT]:new Point(x,y),[BoundsCorner.TOP_RIGHT]:new Point(x+width,y),[BoundsCorner.BOTTOM_RIGHT]:new Point(x+width,y+height),[BoundsCorner.BOTTOM_LEFT]:new Point(x,y+height)}),createEmptyBounds=()=>({[BoundsCorner.TOP_LEFT]:new Point,[BoundsCorner.TOP_RIGHT]:new Point,[BoundsCorner.BOTTOM_RIGHT]:new Point,[BoundsCorner.BOTTOM_LEFT]:new Point}),boundingBoxFromPoints=points=>{if(0===points.length)return createEmptyBounds();let minX=points[0].x,maxX=points[0].x,minY=points[0].y,maxY=points[0].y;for(let i=1;imaxX&&(maxX=points[i].x),points[i].ymaxY&&(maxY=points[i].y);return{[BoundsCorner.TOP_LEFT]:new Point(minX,minY),[BoundsCorner.TOP_RIGHT]:new Point(maxX,minY),[BoundsCorner.BOTTOM_RIGHT]:new Point(maxX,maxY),[BoundsCorner.BOTTOM_LEFT]:new Point(minX,maxY)}},boundingBoxFromPolygons=polygons=>boundingBoxFromPoints(flatMap_default()(polygons,(polygon=>polygon.getPoints())));class Polygon{constructor(points=[]){this.points=points}serialize(){return map_default()(this.points,(point=>[point.x,point.y]))}deserialize(data){this.points=map_default()(data,(point=>new Point(point[0],point[1])))}scale(x,y,origin){let matrix=Matrix.createScaleMatrix(x,y,origin);forEach_default()(this.points,(point=>{point.transform(matrix)}))}transform(matrix){forEach_default()(this.points,(point=>{point.transform(matrix)}))}setPoints(points){this.points=points}getPoints(){return this.points}rotate(degrees){this.transform(Matrix.createRotateMatrix(degrees/(180/Math.PI),this.getOrigin()))}translate(offsetX,offsetY){forEach_default()(this.points,(point=>{point.translate(offsetX,offsetY)}))}doClone(ob){this.points=map_default()(ob.points,(point=>point.clone()))}clone(){let ob=Object.create(this);return ob.doClone(this),ob}getOrigin(){if(0===this.points.length)return null;let dimensions=boundingBoxFromPoints(this.points);return Point.middlePoint(dimensions[BoundsCorner.TOP_LEFT],dimensions[BoundsCorner.BOTTOM_RIGHT])}getBoundingBox(){return boundingBoxFromPoints(this.points)}}class Rectangle extends Polygon{static fromPositionAndSize(x,y,width,height){return new Rectangle(boundsFromPositionAndSize(x,y,width,height))}static fromPointAndSize(position,width,height){return new Rectangle(boundsFromPositionAndSize(position.x,position.y,width,height))}constructor(points){points||(points=createEmptyBounds()),super([points[BoundsCorner.TOP_LEFT],points[BoundsCorner.TOP_RIGHT],points[BoundsCorner.BOTTOM_RIGHT],points[BoundsCorner.BOTTOM_LEFT]])}updateDimensions(x,y,width,height){const points=boundsFromPositionAndSize(x,y,width,height);this.setPoints([points[BoundsCorner.TOP_LEFT],points[BoundsCorner.TOP_RIGHT],points[BoundsCorner.BOTTOM_RIGHT],points[BoundsCorner.BOTTOM_LEFT]])}setPoints(points){if(4!==points.length)throw"Rectangles must always have 4 points";super.setPoints(points)}containsPoint(point){const tl=this.getTopLeft(),br=this.getBottomRight();return point.x>=tl.x&&point.x<=br.x&&point.y>=tl.y&&point.y<=br.y}getWidth(){return Math.sqrt(Math.pow(this.getTopLeft().x-this.getTopRight().x,2)+Math.pow(this.getTopLeft().y-this.getTopRight().y,2))}getHeight(){return Math.sqrt(Math.pow(this.getBottomLeft().x-this.getTopLeft().x,2)+Math.pow(this.getBottomLeft().y-this.getTopLeft().y,2))}getTopMiddle(){return Point.middlePoint(this.getTopLeft(),this.getTopRight())}getBottomMiddle(){return Point.middlePoint(this.getBottomLeft(),this.getBottomRight())}getLeftMiddle(){return Point.middlePoint(this.getBottomLeft(),this.getTopLeft())}getRightMiddle(){return Point.middlePoint(this.getBottomRight(),this.getTopRight())}getTopLeft(){return this.points[0]}getTopRight(){return this.points[1]}getBottomRight(){return this.points[2]}getBottomLeft(){return this.points[3]}}var BezierCurvepPoints;!function(BezierCurvepPoints){BezierCurvepPoints[BezierCurvepPoints.SOURCE=0]="SOURCE",BezierCurvepPoints[BezierCurvepPoints.SOURCE_CONTROL=1]="SOURCE_CONTROL",BezierCurvepPoints[BezierCurvepPoints.TARGET_CONTROL=2]="TARGET_CONTROL",BezierCurvepPoints[BezierCurvepPoints.TARGET=3]="TARGET"}(BezierCurvepPoints||(BezierCurvepPoints={}));class BezierCurve extends Polygon{constructor(){super([new Point(0,0),new Point(0,0),new Point(0,0),new Point(0,0)])}getSVGCurve(){return`M${this.getSource().toSVG()} C${this.getSourceControl().toSVG()}, ${this.getTargetControl().toSVG()}, ${this.getTarget().toSVG()}`}setPoints(points){if(4!==points.length)throw new Error("BezierCurve must have extactly 4 points");super.setPoints(points)}getSource(){return this.points[BezierCurvepPoints.SOURCE]}getSourceControl(){return this.points[BezierCurvepPoints.SOURCE_CONTROL]}getTargetControl(){return this.points[BezierCurvepPoints.TARGET_CONTROL]}getTarget(){return this.points[BezierCurvepPoints.TARGET]}setSource(point){this.points[BezierCurvepPoints.SOURCE]=point}setSourceControl(point){this.points[BezierCurvepPoints.SOURCE_CONTROL]=point}setTargetControl(point){this.points[BezierCurvepPoints.TARGET_CONTROL]=point}setTarget(point){this.points[BezierCurvepPoints.TARGET]=point}}},"../packages/react-canvas-core/dist/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s2:()=>AbstractDisplacementState,Zi:()=>AbstractModelFactory,a3:()=>AbstractReactFactory,aU:()=>Action_Action,gq:()=>BaseModel,NW:()=>BasePositionModel,u1:()=>CanvasEngine,N5:()=>CanvasModel,JE:()=>CanvasWidget,zp:()=>DeleteItemsAction,qR:()=>DragCanvasState_DragCanvasState,r3:()=>FactoryBank,n$:()=>Action_InputType,iz:()=>LayerModel,C2:()=>MoveItemsState_MoveItemsState,G:()=>PeformanceWidget,If:()=>SelectingState_SelectingState,B1:()=>SelectionBoxLayerFactory,ZM:()=>State_State,C7:()=>Toolkit});var debounce=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js"),debounce_default=__webpack_require__.n(debounce);class Toolkit{static UID(){return Toolkit.TESTING?(Toolkit.TESTING_UID++,`${Toolkit.TESTING_UID}`):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(c=>{const r=16*Math.random()|0;return("x"===c?r:3&r|8).toString(16)}))}static closest(element,selector){return Element.prototype.closest||(Element.prototype.closest=function(s){var el=this;do{if(Element.prototype.matches.call(el,s))return el;el=el.parentElement||el.parentNode}while(null!==el&&1===el.nodeType);return null}),element.closest(selector)}}Toolkit.TESTING=!1,Toolkit.TESTING_UID=0;class BaseObserver{constructor(){this.listeners={}}fireEventInternal(fire,k,event){this.iterateListeners((listener=>{if(!fire&&!event.firing)return!1;listener[k]&&listener[k](event)}))}fireEvent(event,k){event=Object.assign({firing:!0,stopPropagation:()=>{event.firing=!1}},event),this.fireEventInternal(!0,"eventWillFire",Object.assign(Object.assign({},event),{function:k})),this.fireEventInternal(!1,k,event),this.fireEventInternal(!0,"eventDidFire",Object.assign(Object.assign({},event),{function:k}))}iterateListeners(cb){for(let id in this.listeners){if(!1===cb(this.listeners[id]))return}}getListenerHandle(listener){for(let id in this.listeners)if(this.listeners[id]===listener)return{id,listener,deregister:()=>{delete this.listeners[id]}}}registerListener(listener){const id=Toolkit.UID();return this.listeners[id]=listener,{id,listener,deregister:()=>{delete this.listeners[id]}}}deregisterListener(listener){if("object"==typeof listener)return listener.deregister(),!0;const handle=this.getListenerHandle(listener);return!!handle&&(handle.deregister(),!0)}}var values=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/values.js"),values_default=__webpack_require__.n(values);class FactoryBank extends BaseObserver{constructor(){super(),this.factories={}}getFactories(){return values_default()(this.factories)}clearFactories(){for(let factory in this.factories)this.deregisterFactory(factory)}getFactory(type){if(!this.factories[type])throw new Error(`Cannot find factory with type [${type}]`);return this.factories[type]}registerFactory(factory){factory.setFactoryBank(this),this.factories[factory.getType()]=factory,this.fireEvent({factory},"factoryAdded")}deregisterFactory(type){const factory=this.factories[type];factory.setFactoryBank(null),delete this.factories[type],this.fireEvent({factory},"factoryRemoved")}}var Action_InputType,dist=__webpack_require__("../packages/geometry/dist/index.js");!function(InputType){InputType.MOUSE_DOWN="mouse-down",InputType.MOUSE_UP="mouse-up",InputType.MOUSE_MOVE="mouse-move",InputType.MOUSE_WHEEL="mouse-wheel",InputType.KEY_DOWN="key-down",InputType.KEY_UP="key-up",InputType.TOUCH_START="touch-start",InputType.TOUCH_END="touch-end",InputType.TOUCH_MOVE="touch-move"}(Action_InputType||(Action_InputType={}));class Action_Action{constructor(options){this.options=options,this.id=Toolkit.UID()}setEngine(engine){this.engine=engine}}var filter=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/filter.js"),filter_default=__webpack_require__.n(filter),keys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"),keys_default=__webpack_require__.n(keys);class ActionEventBus{constructor(engine){this.actions={},this.engine=engine,this.keys={}}getKeys(){return keys_default()(this.keys)}registerAction(action){return action.setEngine(this.engine),this.actions[action.id]=action,()=>{this.deregisterAction(action)}}deregisterAction(action){action.setEngine(null),delete this.actions[action.id]}getActionsForType(type){return filter_default()(this.actions,(action=>action.options.type===type))}getModelForEvent(actionEvent){return actionEvent.model?actionEvent.model:this.engine.getMouseElement(actionEvent.event)}getActionsForEvent(actionEvent){const{event}=actionEvent;return"mousedown"===event.type?this.getActionsForType(Action_InputType.MOUSE_DOWN):"mouseup"===event.type?this.getActionsForType(Action_InputType.MOUSE_UP):"keydown"===event.type?(this.keys[event.key.toLowerCase()]=!0,this.getActionsForType(Action_InputType.KEY_DOWN)):"keyup"===event.type?(delete this.keys[event.key.toLowerCase()],this.getActionsForType(Action_InputType.KEY_UP)):"mousemove"===event.type?this.getActionsForType(Action_InputType.MOUSE_MOVE):"wheel"===event.type?this.getActionsForType(Action_InputType.MOUSE_WHEEL):"touchstart"===event.type?this.getActionsForType(Action_InputType.TOUCH_START):"touchend"===event.type?this.getActionsForType(Action_InputType.TOUCH_END):"touchmove"===event.type?this.getActionsForType(Action_InputType.TOUCH_MOVE):[]}fireAction(actionEvent){const actions=this.getActionsForEvent(actionEvent);for(let action of actions)action.options.fire(actionEvent)}}class PanAndZoomCanvasAction extends Action_Action{constructor(options={}){super({type:Action_InputType.MOUSE_WHEEL,fire:actionEvent=>{const{event}=actionEvent;for(let layer of this.engine.getModel().getLayers())layer.allowRepaint(!1);const model=this.engine.getModel();if(event.stopPropagation(),event.ctrlKey){const oldZoomFactor=this.engine.getModel().getZoomLevel()/100;let scrollDelta=options.inverseZoom?event.deltaY:-event.deltaY;scrollDelta/=3,model.getZoomLevel()+scrollDelta>10&&model.setZoomLevel(model.getZoomLevel()+scrollDelta);const zoomFactor=model.getZoomLevel()/100,boundingRect=event.currentTarget.getBoundingClientRect(),clientWidth=boundingRect.width,clientHeight=boundingRect.height,widthDiff=clientWidth*zoomFactor-clientWidth*oldZoomFactor,heightDiff=clientHeight*zoomFactor-clientHeight*oldZoomFactor,clientX=event.clientX-boundingRect.left,clientY=event.clientY-boundingRect.top,xFactor=(clientX-model.getOffsetX())/oldZoomFactor/clientWidth,yFactor=(clientY-model.getOffsetY())/oldZoomFactor/clientHeight;model.setOffset(model.getOffsetX()-widthDiff*xFactor,model.getOffsetY()-heightDiff*yFactor)}else{let yDelta=options.inverseZoom?-event.deltaY:event.deltaY,xDelta=options.inverseZoom?-event.deltaX:event.deltaX;model.setOffset(model.getOffsetX()-xDelta,model.getOffsetY()-yDelta)}this.engine.repaintCanvas();for(let layer of this.engine.getModel().getLayers())layer.allowRepaint(!0)}})}}class ZoomCanvasAction extends Action_Action{constructor(options={}){super({type:Action_InputType.MOUSE_WHEEL,fire:actionEvent=>{const{event}=actionEvent;for(let layer of this.engine.getModel().getLayers())layer.allowRepaint(!1);const model=this.engine.getModel();event.stopPropagation();const oldZoomFactor=this.engine.getModel().getZoomLevel()/100;let scrollDelta=options.inverseZoom?-event.deltaY:event.deltaY;event.ctrlKey&&scrollDelta%1!=0?scrollDelta/=3:scrollDelta/=60,model.getZoomLevel()+scrollDelta>10&&model.setZoomLevel(model.getZoomLevel()+scrollDelta);const zoomFactor=model.getZoomLevel()/100,boundingRect=event.currentTarget.getBoundingClientRect(),clientWidth=boundingRect.width,clientHeight=boundingRect.height,widthDiff=clientWidth*zoomFactor-clientWidth*oldZoomFactor,heightDiff=clientHeight*zoomFactor-clientHeight*oldZoomFactor,clientX=event.clientX-boundingRect.left,clientY=event.clientY-boundingRect.top,xFactor=(clientX-model.getOffsetX())/oldZoomFactor/clientWidth,yFactor=(clientY-model.getOffsetY())/oldZoomFactor/clientHeight;model.setOffset(model.getOffsetX()-widthDiff*xFactor,model.getOffsetY()-heightDiff*yFactor),this.engine.repaintCanvas();for(let layer of this.engine.getModel().getLayers())layer.allowRepaint(!0)}})}}var forEach=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forEach.js"),forEach_default=__webpack_require__.n(forEach),isEqual=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js"),isEqual_default=__webpack_require__.n(isEqual);class DeleteItemsAction extends Action_Action{constructor(options={}){const keyCodes=options.keyCodes||[46,8],modifiers=Object.assign({ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1},options.modifiers);super({type:Action_InputType.KEY_DOWN,fire:event=>{const{keyCode,ctrlKey,shiftKey,altKey,metaKey}=event.event;-1!==keyCodes.indexOf(keyCode)&&isEqual_default()({ctrlKey,shiftKey,altKey,metaKey},modifiers)&&(forEach_default()(this.engine.getModel().getSelectedEntities(),(model=>{model.isLocked()||model.remove()})),this.engine.repaintCanvas())}})}}var last=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js"),last_default=__webpack_require__.n(last);class StateMachine extends BaseObserver{constructor(engine){super(),this.engine=engine,this.stateStack=[]}getCurrentState(){return this.currentState}pushState(state){this.stateStack.push(state),this.setState(state)}popState(){this.stateStack.pop(),this.setState(last_default()(this.stateStack))}setState(state){state.setEngine(this.engine),this.currentState&&this.currentState.deactivated(state);const old=this.currentState;this.currentState=state,this.currentState&&(this.currentState.activated(old),this.fireEvent({newState:state},"stateChanged"))}}class CanvasEngine extends BaseObserver{constructor(options={}){super(),this.model=null,this.eventBus=new ActionEventBus(this),this.stateMachine=new StateMachine(this),this.layerFactories=new FactoryBank,this.registerFactoryBank(this.layerFactories),this.options=Object.assign({registerDefaultDeleteItemsAction:!0,registerDefaultZoomCanvasAction:!0,repaintDebounceMs:0},options),!0===this.options.registerDefaultZoomCanvasAction?this.eventBus.registerAction(new ZoomCanvasAction):!0===this.options.registerDefaultPanAndZoomCanvasAction&&this.eventBus.registerAction(new PanAndZoomCanvasAction),!0===this.options.registerDefaultDeleteItemsAction&&this.eventBus.registerAction(new DeleteItemsAction)}getStateMachine(){return this.stateMachine}getRelativeMousePoint(event){const point=this.getRelativePoint(event.clientX,event.clientY);return new dist.E9((point.x-this.model.getOffsetX())/(this.model.getZoomLevel()/100),(point.y-this.model.getOffsetY())/(this.model.getZoomLevel()/100))}getRelativePoint(x,y){const canvasRect=this.canvas.getBoundingClientRect();return new dist.E9(x-canvasRect.left,y-canvasRect.top)}registerFactoryBank(factory){factory.registerListener({factoryAdded:event=>{event.factory.setDiagramEngine(this)},factoryRemoved:event=>{event.factory.setDiagramEngine(null)}})}getActionEventBus(){return this.eventBus}getLayerFactories(){return this.layerFactories}getFactoryForLayer(layer){return"string"==typeof layer?this.layerFactories.getFactory(layer):this.layerFactories.getFactory(layer.getType())}setModel(model){this.model=model,this.canvas&&requestAnimationFrame((()=>{this.repaintCanvas()}))}getModel(){return this.model}repaintCanvas(promise){const{repaintDebounceMs}=this.options,repaint=()=>{this.iterateListeners((listener=>{listener.repaintCanvas&&listener.repaintCanvas()}))};let repaintFn=repaint;if(repaintDebounceMs>0&&(repaintFn=debounce_default()(repaint,repaintDebounceMs)),promise)return new Promise((resolve=>{const l=this.registerListener({rendered:()=>{resolve(),l.deregister()}});repaintFn()}));repaintFn()}setCanvas(canvas){this.canvas!==canvas&&(this.canvas=canvas,canvas&&this.fireEvent({},"canvasReady"))}getCanvas(){return this.canvas}getMouseElement(event){return null}zoomToFit(){const xFactor=this.canvas.clientWidth/this.canvas.scrollWidth,yFactor=this.canvas.clientHeight/this.canvas.scrollHeight,zoomFactor=xFactorlayer.getSelectionEntities()))}getSelectedEntities(){return filter_default()(this.getSelectionEntities(),(ob=>ob.isSelected()))}clearSelection(){forEach_default()(this.getSelectedEntities(),(element=>{element.setSelected(!1)}))}getModels(){return flatMap_default()(this.layers,(layer=>values_default()(layer.getModels())))}addLayer(layer){layer.setParent(this),layer.registerListener({entityRemoved:event=>{}}),this.layers.push(layer)}removeLayer(layer){const index=this.layers.indexOf(layer);return-1!==index&&(this.layers.splice(index,1),!0)}getLayers(){return this.layers}setGridSize(size=0){this.options.gridSize=size,this.fireEvent({size},"gridUpdated")}getGridPosition(pos){return 0===this.options.gridSize?pos:this.options.gridSize*Math.floor((pos+this.options.gridSize/2)/this.options.gridSize)}deserializeModel(data,engine){const models={},promises={},resolvers={},event={data,engine,registerModel:model=>{models[model.getID()]=model,resolvers[model.getID()]&&resolvers[model.getID()](model)},getModel:id=>models[id]?Promise.resolve(models[id]):(promises[id]||(promises[id]=new Promise((resolve=>{resolvers[id]=resolve}))),promises[id])};this.deserialize(event)}deserialize(event){super.deserialize(event),this.options.offsetX=event.data.offsetX,this.options.offsetY=event.data.offsetY,this.options.zoom=event.data.zoom,this.options.gridSize=event.data.gridSize,forEach_default()(event.data.layers,(layer=>{const layerOb=event.engine.getFactoryForLayer(layer.type).generateModel({initialConfig:layer});layerOb.deserialize(Object.assign(Object.assign({},event),{data:layer})),this.addLayer(layerOb)}))}serialize(){return Object.assign(Object.assign({},super.serialize()),{offsetX:this.options.offsetX,offsetY:this.options.offsetY,zoom:this.options.zoom,gridSize:this.options.gridSize,layers:map_default()(this.layers,(layer=>layer.serialize()))})}setZoomLevel(zoom){this.options.zoom=zoom,this.fireEvent({zoom},"zoomUpdated")}setOffset(offsetX,offsetY){this.options.offsetX=offsetX,this.options.offsetY=offsetY,this.fireEvent({offsetX,offsetY},"offsetUpdated")}setOffsetX(offsetX){this.setOffset(offsetX,this.options.offsetY)}setOffsetY(offsetY){this.setOffset(this.options.offsetX,offsetY)}getOffsetY(){return this.options.offsetY}getOffsetX(){return this.options.offsetX}getZoomLevel(){return this.options.zoom}}class AbstractFactory{constructor(type){this.type=type}setDiagramEngine(engine){this.engine=engine}setFactoryBank(bank){this.bank=bank}getType(){return this.type}}class AbstractModelFactory extends AbstractFactory{}class AbstractReactFactory extends AbstractModelFactory{}class BaseModel extends BaseEntity{constructor(options){super(options)}performanceTune(){return!0}getParentCanvasModel(){return this.parent?this.parent instanceof CanvasModel?this.parent:this.parent instanceof BaseModel?this.parent.getParentCanvasModel():null:null}getParent(){return this.parent}setParent(parent){this.parent=parent}getSelectionEntities(){return[this]}serialize(){return Object.assign(Object.assign({},super.serialize()),{type:this.options.type,selected:this.options.selected,extras:this.options.extras})}deserialize(event){super.deserialize(event),this.options.extras=event.data.extras,this.options.selected=event.data.selected}getType(){return this.options.type}isSelected(){return this.options.selected}isLocked(){return!!super.isLocked()||!!this.parent&&this.parent.isLocked()}setSelected(selected=!0){this.options.selected!==selected&&(this.options.selected=selected,this.fireEvent({isSelected:selected},"selectionChanged"))}remove(){this.fireEvent({},"entityRemoved")}}class BasePositionModel extends BaseModel{constructor(options){super(options),this.position=options.position||new dist.E9(0,0)}setPosition(x,y){x instanceof dist.E9?this.position=x:this.position=new dist.E9(x,y),this.fireEvent({},"positionChanged")}getBoundingBox(){return dist.Ae.fromPointAndSize(this.position,0,0)}deserialize(event){super.deserialize(event),this.position=new dist.E9(event.data.x,event.data.y)}serialize(){return Object.assign(Object.assign({},super.serialize()),{x:this.position.x,y:this.position.y})}getPosition(){return this.position}getX(){return this.position.x}getY(){return this.position.y}}var S,CanvasWidget_S,react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),emotion_styled_browser_esm=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"),emotion_react_browser_esm=__webpack_require__("../node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");!function(S){const shared=emotion_react_browser_esm.iv` + top: 0; + left: 0; + right: 0; + bottom: 0; + position: absolute; + pointer-events: none; + transform-origin: 0 0; + width: 100%; + height: 100%; + overflow: visible; + `;S.DivLayer=emotion_styled_browser_esm.Z.div` + ${shared} + `,S.SvgLayer=emotion_styled_browser_esm.Z.svg` + ${shared} + `}(S||(S={}));class TransformLayerWidget extends react.Component{constructor(props){super(props),this.state={}}getTransform(){const model=this.props.layer.getParent();return`\n\t\t\ttranslate(\n\t\t\t\t${model.getOffsetX()}px,\n\t\t\t\t${model.getOffsetY()}px)\n\t\t\tscale(\n\t\t\t\t${model.getZoomLevel()/100}\n\t\t\t)\n \t`}getTransformStyle(){return this.props.layer.getOptions().transformed?{transform:this.getTransform()}:{}}render(){return this.props.layer.getOptions().isSvg?react.createElement(S.SvgLayer,{style:this.getTransformStyle()},this.props.children):react.createElement(S.DivLayer,{style:this.getTransformStyle()},this.props.children)}}TransformLayerWidget.displayName="TransformLayerWidget";class SmartLayerWidget extends react.Component{shouldComponentUpdate(){return this.props.layer.isRepaintEnabled()}render(){return this.props.engine.getFactoryForLayer(this.props.layer).generateReactWidget({model:this.props.layer})}}SmartLayerWidget.displayName="SmartLayerWidget",function(S){S.Canvas=emotion_styled_browser_esm.Z.div` + position: relative; + cursor: move; + overflow: hidden; + `}(CanvasWidget_S||(CanvasWidget_S={}));class CanvasWidget extends react.Component{constructor(props){super(props),this.ref=react.createRef(),this.state={action:null,diagramEngineListener:null}}componentWillUnmount(){this.props.engine.deregisterListener(this.canvasListener),this.props.engine.setCanvas(null),document.removeEventListener("keyup",this.keyUp),document.removeEventListener("keydown",this.keyDown)}registerCanvas(){this.props.engine.setCanvas(this.ref.current),this.props.engine.iterateListeners((list=>{list.rendered&&list.rendered()}))}componentDidUpdate(){this.registerCanvas()}componentDidMount(){this.canvasListener=this.props.engine.registerListener({repaintCanvas:()=>{this.forceUpdate()}}),this.keyDown=event=>{this.props.engine.getActionEventBus().fireAction({event})},this.keyUp=event=>{this.props.engine.getActionEventBus().fireAction({event})},document.addEventListener("keyup",this.keyUp),document.addEventListener("keydown",this.keyDown),this.registerCanvas()}render(){const model=this.props.engine.getModel();return react.createElement(CanvasWidget_S.Canvas,{className:this.props.className,ref:this.ref,onWheel:event=>{this.props.engine.getActionEventBus().fireAction({event})},onMouseDown:event=>{this.props.engine.getActionEventBus().fireAction({event})},onMouseUp:event=>{this.props.engine.getActionEventBus().fireAction({event})},onMouseMove:event=>{this.props.engine.getActionEventBus().fireAction({event})},onTouchStart:event=>{this.props.engine.getActionEventBus().fireAction({event})},onTouchEnd:event=>{this.props.engine.getActionEventBus().fireAction({event})},onTouchMove:event=>{this.props.engine.getActionEventBus().fireAction({event})}},model.getLayers().map((layer=>react.createElement(TransformLayerWidget,{layer,key:layer.getID()},react.createElement(SmartLayerWidget,{layer,engine:this.props.engine,key:layer.getID()})))))}}CanvasWidget.displayName="CanvasWidget";var SelectionBoxWidget_S,mapValues=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js"),mapValues_default=__webpack_require__.n(mapValues);class LayerModel extends BaseModel{constructor(options={}){super(options),this.models={},this.repaintEnabled=!0}deserialize(event){super.deserialize(event),this.options.isSvg=!!event.data.isSvg,this.options.transformed=!!event.data.transformed,forEach_default()(event.data.models,(model=>{const modelOb=this.getChildModelFactoryBank(event.engine).getFactory(model.type).generateModel({initialConfig:model});modelOb.deserialize(Object.assign(Object.assign({},event),{data:model})),this.addModel(modelOb)}))}serialize(){return Object.assign(Object.assign({},super.serialize()),{isSvg:this.options.isSvg,transformed:this.options.transformed,models:mapValues_default()(this.models,(model=>model.serialize()))})}isRepaintEnabled(){return this.repaintEnabled}allowRepaint(allow=!0){this.repaintEnabled=allow}remove(){this.parent&&this.parent.removeLayer(this),super.remove()}addModel(model){model.setParent(this),this.models[model.getID()]=model}getSelectionEntities(){return flatMap_default()(this.models,(model=>model.getSelectionEntities()))}getModels(){return this.models}getModel(id){return this.models[id]}removeModel(id){const _id="string"==typeof id?id:id.getID();return!!this.models[_id]&&(delete this.models[_id],!0)}}class SelectionLayerModel extends LayerModel{constructor(){super({transformed:!1,isSvg:!1,type:"selection"})}setBox(rect){this.box=rect}getChildModelFactoryBank(){return null}}!function(S){S.Container=emotion_styled_browser_esm.Z.div` + position: absolute; + background-color: rgba(0, 192, 255, 0.2); + border: solid 2px rgb(0, 192, 255); + `}(SelectionBoxWidget_S||(SelectionBoxWidget_S={}));class SelectionBoxWidget extends react.Component{render(){const{rect}=this.props;return rect?react.createElement(SelectionBoxWidget_S.Container,{style:{top:rect.top,left:rect.left,width:rect.width,height:rect.height}}):null}}SelectionBoxWidget.displayName="SelectionBoxWidget";class SelectionBoxLayerFactory extends AbstractReactFactory{constructor(){super("selection")}generateModel(event){return new SelectionLayerModel}generateReactWidget(event){return react.createElement(SelectionBoxWidget,{rect:event.model.box})}}class PeformanceWidget extends react.Component{shouldComponentUpdate(nextProps,nextState,nextContext){return!this.props.model.performanceTune()||(this.props.model!==nextProps.model||!isEqual_default()(this.props.serialized,nextProps.serialized))}render(){return this.props.children()}}PeformanceWidget.displayName="PeformanceWidget";var intersection=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/intersection.js"),intersection_default=__webpack_require__.n(intersection);class State_State{constructor(options){this.actions=[],this.keys=[],this.childStates=[],this.options=options}setEngine(engine){this.engine=engine}getOptions(){return this.options}eject(){this.engine.getStateMachine().popState()}transitionWithEvent(state,event){this.engine.getStateMachine().pushState(state),this.engine.getActionEventBus().fireAction(event)}registerAction(action){this.actions.push(action)}tryActivateParentState(keys){return this.keys.length>0&&!this.isKeysFullfilled(keys)&&(this.eject(),!0)}tryActivateChildState(keys){const state=this.findStateToActivate(keys);return!!state&&(this.engine.getStateMachine().pushState(state),!0)}findStateToActivate(keys){for(let child of this.childStates)if(child.isKeysFullfilled(keys))return child;return null}isKeysFullfilled(keys){return intersection_default()(this.keys,keys).length===this.keys.length}activated(previous){const keys=this.engine.getActionEventBus().getKeys();if(!this.tryActivateParentState(keys)&&!this.tryActivateChildState(keys)){this.handler1=this.engine.getActionEventBus().registerAction(new Action_Action({type:Action_InputType.KEY_DOWN,fire:()=>{this.tryActivateChildState(this.engine.getActionEventBus().getKeys())}})),this.handler2=this.engine.getActionEventBus().registerAction(new Action_Action({type:Action_InputType.KEY_UP,fire:()=>{this.tryActivateParentState(this.engine.getActionEventBus().getKeys())}}));for(let action of this.actions)this.engine.getActionEventBus().registerAction(action)}}deactivated(next){this.handler1&&this.handler1(),this.handler2&&this.handler2();for(let action of this.actions)this.engine.getActionEventBus().deregisterAction(action)}}class AbstractDisplacementState extends State_State{constructor(options){super(options),this.registerAction(new Action_Action({type:Action_InputType.MOUSE_DOWN,fire:actionEvent=>{const{clientX,clientY}=actionEvent.event;this.handleMoveStart(clientX,clientY)}})),this.registerAction(new Action_Action({type:Action_InputType.MOUSE_MOVE,fire:actionEvent=>{const{event}=actionEvent;if(0===event.buttons)return void this.eject();const{clientX,clientY}=event;this.handleMove(clientX,clientY,event)}})),this.registerAction(new Action_Action({type:Action_InputType.MOUSE_UP,fire:()=>this.handleMoveEnd()})),this.registerAction(new Action_Action({type:Action_InputType.TOUCH_START,fire:actionEvent=>{const{clientX,clientY}=actionEvent.event.touches[0];this.handleMoveStart(clientX,clientY)}})),this.registerAction(new Action_Action({type:Action_InputType.TOUCH_MOVE,fire:actionEvent=>{const{event}=actionEvent,{clientX,clientY}=event.touches[0];this.handleMove(clientX,clientY,event)}})),this.registerAction(new Action_Action({type:Action_InputType.TOUCH_END,fire:()=>this.handleMoveEnd()}))}handleMoveStart(x,y){this.initialX=x,this.initialY=y;const rel=this.engine.getRelativePoint(x,y);this.initialXRelative=rel.x,this.initialYRelative=rel.y}handleMove(x,y,event){this.fireMouseMoved({displacementX:x-this.initialX,displacementY:y-this.initialY,virtualDisplacementX:(x-this.initialX)/(this.engine.getModel().getZoomLevel()/100),virtualDisplacementY:(y-this.initialY)/(this.engine.getModel().getZoomLevel()/100),event})}handleMoveEnd(){this.eject()}}var __awaiter=function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};class DragCanvasState_DragCanvasState extends AbstractDisplacementState{constructor(options={}){super({name:"drag-canvas"}),this.config=Object.assign({allowDrag:!0},options)}activated(prev){const _super=Object.create(null,{activated:{get:()=>super.activated}});return __awaiter(this,void 0,void 0,(function*(){_super.activated.call(this,prev),this.engine.getModel().clearSelection(),yield this.engine.repaintCanvas(!0);for(let layer of this.engine.getModel().getLayers())layer.allowRepaint(!1);this.initialCanvasX=this.engine.getModel().getOffsetX(),this.initialCanvasY=this.engine.getModel().getOffsetY()}))}deactivated(next){super.deactivated(next);for(let layer of this.engine.getModel().getLayers())layer.allowRepaint(!0)}fireMouseMoved(event){this.config.allowDrag&&(this.engine.getModel().setOffset(this.initialCanvasX+event.displacementX,this.initialCanvasY+event.displacementY),this.engine.repaintCanvas())}}class SelectionBoxState extends AbstractDisplacementState{constructor(){super({name:"selection-box"})}activated(previous){super.activated(previous),this.layer=new SelectionLayerModel,this.engine.getModel().addLayer(this.layer)}deactivated(next){super.deactivated(next),this.layer.remove(),this.engine.repaintCanvas()}getBoxDimensions(event){let rel;if("touches"in event.event){const touch=event.event.touches[0];rel=this.engine.getRelativePoint(touch.clientX,touch.clientY)}else rel=this.engine.getRelativePoint(event.event.clientX,event.event.clientY);return{left:rel.x>this.initialXRelative?this.initialXRelative:rel.x,top:rel.y>this.initialYRelative?this.initialYRelative:rel.y,width:Math.abs(rel.x-this.initialXRelative),height:Math.abs(rel.y-this.initialYRelative),right:rel.x{const element=this.engine.getActionEventBus().getModelForEvent(event);element?(element.setSelected(!0),this.engine.repaintCanvas()):this.transitionWithEvent(new SelectionBoxState,event)}}))}}class MoveItemsState_MoveItemsState extends AbstractDisplacementState{constructor(){super({name:"move-items"}),this.registerAction(new Action_Action({type:Action_InputType.MOUSE_DOWN,fire:event=>{const element=this.engine.getActionEventBus().getModelForEvent(event);element&&(element.isSelected()||this.engine.getModel().clearSelection(),element.setSelected(!0),this.engine.repaintCanvas())}}))}activated(previous){super.activated(previous),this.initialPositions={}}fireMouseMoved(event){const items=this.engine.getModel().getSelectedEntities(),model=this.engine.getModel();for(let item of items)if(item instanceof BasePositionModel){if(item.isLocked())continue;this.initialPositions[item.getID()]||(this.initialPositions[item.getID()]={point:item.getPosition(),item});const pos=this.initialPositions[item.getID()].point;item.setPosition(model.getGridPosition(pos.x+event.virtualDisplacementX),model.getGridPosition(pos.y+event.virtualDisplacementY))}this.engine.repaintCanvas()}}},"../packages/react-diagrams-core/dist/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Qo:()=>DefaultDiagramState,Zc:()=>DiagramEngine,Vm:()=>DiagramModel,mk:()=>DragDiagramItemsState,aS:()=>LabelModel,JW:()=>LinkLayerFactory,KW:()=>LinkModel,hL:()=>LinkWidget,JM:()=>NodeLayerFactory,XF:()=>NodeModel,Xs:()=>PointModel,AJ:()=>PortModel,tK:()=>PortModelAlignment,ER:()=>PortWidget});var filter=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/filter.js"),filter_default=__webpack_require__.n(filter),flatMap=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatMap.js"),flatMap_default=__webpack_require__.n(flatMap),forEach=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forEach.js"),forEach_default=__webpack_require__.n(forEach),some=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/some.js"),some_default=__webpack_require__.n(some),values=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/values.js"),values_default=__webpack_require__.n(values),dist=__webpack_require__("../packages/react-canvas-core/dist/index.js");class PointModel extends dist.NW{constructor(options){super(Object.assign(Object.assign({},options),{type:"point"})),this.parent=options.link}isConnectedToPort(){return null!==this.parent.getPortForPoint(this)}getLink(){return this.getParent()}remove(){this.parent&&this.parent.removePoint(this),super.remove()}isLocked(){return super.isLocked()||this.getParent().isLocked()}}var map=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/map.js"),map_default=__webpack_require__.n(map),slice=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/slice.js"),slice_default=__webpack_require__.n(slice),geometry_dist=__webpack_require__("../packages/geometry/dist/index.js");class LinkModel extends dist.gq{constructor(options){super(options),this.points=[new PointModel({link:this}),new PointModel({link:this})],this.sourcePort=null,this.targetPort=null,this.renderedPaths=[],this.labels=[]}getBoundingBox(){return new geometry_dist.Ae((0,geometry_dist.dq)(map_default()(this.points,(point=>point.getPosition()))))}getSelectionEntities(){return this.getTargetPort()&&this.getSourcePort()?super.getSelectionEntities().concat(slice_default()(this.points,1,this.points.length-1)):this.getSourcePort()?this.getTargetPort()?super.getSelectionEntities().concat(this.points):super.getSelectionEntities().concat(slice_default()(this.points,1,this.points.length)):super.getSelectionEntities().concat(slice_default()(this.points,0,this.points.length-1))}deserialize(event){super.deserialize(event),this.points=map_default()(event.data.points||[],(point=>{var p=new PointModel({link:this,position:new geometry_dist.E9(point.x,point.y)});return p.deserialize(Object.assign(Object.assign({},event),{data:point})),p})),forEach_default()(event.data.labels||[],(label=>{let labelOb=event.engine.getFactoryForLabel(label.type).generateModel({});labelOb.deserialize(Object.assign(Object.assign({},event),{data:label})),this.addLabel(labelOb)})),event.data.target&&event.getModel(event.data.targetPort).then((model=>{this.setTargetPort(model)})),event.data.source&&event.getModel(event.data.sourcePort).then((model=>{this.setSourcePort(model)}))}getRenderedPath(){return this.renderedPaths}setRenderedPaths(paths){this.renderedPaths=paths}serialize(){return Object.assign(Object.assign({},super.serialize()),{source:this.sourcePort?this.sourcePort.getParent().getID():null,sourcePort:this.sourcePort?this.sourcePort.getID():null,target:this.targetPort?this.targetPort.getParent().getID():null,targetPort:this.targetPort?this.targetPort.getID():null,points:map_default()(this.points,(point=>point.serialize())),labels:map_default()(this.labels,(label=>label.serialize()))})}doClone(lookupTable={},clone){clone.setPoints(map_default()(this.getPoints(),(point=>point.clone(lookupTable)))),this.sourcePort&&clone.setSourcePort(this.sourcePort.clone(lookupTable)),this.targetPort&&clone.setTargetPort(this.targetPort.clone(lookupTable))}clearPort(port){this.sourcePort===port?this.setSourcePort(null):this.targetPort===port&&this.setTargetPort(null)}remove(){this.sourcePort&&(this.sourcePort.removeLink(this),delete this.sourcePort),this.targetPort&&(this.targetPort.removeLink(this),delete this.targetPort),super.remove()}isLastPoint(point){return this.getPointIndex(point)===this.points.length-1}getPointIndex(point){return this.points.indexOf(point)}getPointModel(id){for(var i=0;i{point.setParent(this)})),this.points=points}removePoint(pointModel){this.isLastPoint(pointModel)&&this.remove(),this.points.splice(this.getPointIndex(pointModel),1)}removePointsBefore(pointModel){this.points.splice(0,this.getPointIndex(pointModel))}removePointsAfter(pointModel){this.points.splice(this.getPointIndex(pointModel)+1)}removeMiddlePoints(){this.points.length>2&&this.points.splice(1,this.points.length-2)}addPoint(pointModel,index=1){return pointModel.setParent(this),this.points.splice(index,0,pointModel),pointModel}generatePoint(x=0,y=0){return new PointModel({link:this,position:new geometry_dist.E9(x,y)})}}class NodeModel extends dist.NW{constructor(options){super(options),this.ports={},this.width=0,this.height=0}getBoundingBox(){return geometry_dist.Ae.fromPointAndSize(this.getPosition(),this.width,this.height)}setPosition(x,y){const old=this.position;x instanceof geometry_dist.E9?super.setPosition(x):super.setPosition(x,y),forEach_default()(this.ports,(port=>{port.setPosition(port.getX()+this.position.x-old.x,port.getY()+this.position.y-old.y)}))}deserialize(event){super.deserialize(event),forEach_default()(event.data.ports,(port=>{let portOb=event.engine.getFactoryForPort(port.type).generateModel({});portOb.deserialize(Object.assign(Object.assign({},event),{data:port})),event.registerModel(portOb),this.addPort(portOb)}))}serialize(){return Object.assign(Object.assign({},super.serialize()),{ports:map_default()(this.ports,(port=>port.serialize()))})}doClone(lookupTable={},clone){clone.ports={},forEach_default()(this.ports,(port=>{clone.addPort(port.clone(lookupTable))}))}remove(){super.remove(),forEach_default()(this.ports,(port=>{forEach_default()(port.getLinks(),(link=>{link.remove()}))}))}getPortFromID(id){for(var i in this.ports)if(this.ports[i].getID()===id)return this.ports[i];return null}getLink(id){for(let portID in this.ports){const links=this.ports[portID].getLinks();if(links[id])return links[id]}}getPort(name){return this.ports[name]}getPorts(){return this.ports}removePort(port){for(let link of values_default()(port.getLinks()))link.clearPort(port);this.ports[port.getName()]&&(this.ports[port.getName()].setParent(null),delete this.ports[port.getName()])}addPort(port){return port.setParent(this),this.ports[port.getName()]=port,port}updateDimensions({width,height}){this.width=width,this.height=height}}class NodeLayerModel extends dist.iz{constructor(){super({type:"diagram-nodes",isSvg:!1,transformed:!0})}addModel(model){if(!(model instanceof NodeModel))throw new Error("Can only add nodes to this layer");model.registerListener({entityRemoved:()=>{this.getParent().removeNode(model)}}),super.addModel(model)}getChildModelFactoryBank(engine){return engine.getNodeFactories()}getNodes(){return this.getModels()}}class LinkLayerModel extends dist.iz{constructor(){super({type:"diagram-links",isSvg:!0,transformed:!0})}addModel(model){if(!(model instanceof LinkModel))throw new Error("Can only add links to this layer");model.registerListener({entityRemoved:()=>{this.getParent().removeLink(model)}}),super.addModel(model)}getLinks(){return this.getModels()}getChildModelFactoryBank(engine){return engine.getLinkFactories()}}class DiagramModel extends dist.N5{constructor(options={}){super(options),this.addLayer(new LinkLayerModel),this.addLayer(new NodeLayerModel)}deserialize(event){this.layers=[],super.deserialize(event)}addLayer(layer){super.addLayer(layer),layer instanceof NodeLayerModel&&(this.activeNodeLayer=layer),layer instanceof LinkLayerModel&&(this.activeLinkLayer=layer)}getLinkLayers(){return filter_default()(this.layers,(layer=>layer instanceof LinkLayerModel))}getNodeLayers(){return filter_default()(this.layers,(layer=>layer instanceof NodeLayerModel))}getActiveNodeLayer(){if(!this.activeNodeLayer){const layers=this.getNodeLayers();0===layers.length?this.addLayer(new NodeLayerModel):this.activeNodeLayer=layers[0]}return this.activeNodeLayer}getActiveLinkLayer(){if(!this.activeLinkLayer){const layers=this.getLinkLayers();0===layers.length?this.addLayer(new LinkLayerModel):this.activeLinkLayer=layers[0]}return this.activeLinkLayer}getNode(node){for(const layer of this.getNodeLayers()){const model=layer.getModel(node);if(model)return model}}getLink(link){for(const layer of this.getLinkLayers()){const model=layer.getModel(link);if(model)return model}}addAll(...models){return forEach_default()(models,(model=>{model instanceof LinkModel?this.addLink(model):model instanceof NodeModel&&this.addNode(model)})),models}addLink(link){return this.getActiveLinkLayer().addModel(link),this.fireEvent({link,isCreated:!0},"linksUpdated"),link}addNode(node){return this.getActiveNodeLayer().addModel(node),this.fireEvent({node,isCreated:!0},"nodesUpdated"),node}removeLink(link){some_default()(this.getLinkLayers(),(layer=>layer.removeModel(link)))&&this.fireEvent({link,isCreated:!1},"linksUpdated")}removeNode(node){some_default()(this.getNodeLayers(),(layer=>layer.removeModel(node)))&&this.fireEvent({node,isCreated:!1},"nodesUpdated")}getLinks(){return flatMap_default()(this.getLinkLayers(),(layer=>values_default()(layer.getModels())))}getNodes(){return flatMap_default()(this.getNodeLayers(),(layer=>values_default()(layer.getModels())))}}class LabelModel extends dist.gq{constructor(options){super(Object.assign(Object.assign({},options),{offsetX:options.offsetX||0,offsetY:options.offsetY||0}))}deserialize(event){super.deserialize(event),this.options.offsetX=event.data.offsetX,this.options.offsetY=event.data.offsetY}serialize(){return Object.assign(Object.assign({},super.serialize()),{offsetX:this.options.offsetX,offsetY:this.options.offsetY})}}var S,LinkLayerWidget_S,react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),emotion_styled_browser_esm=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.11.0_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js");!function(S){S.Label=emotion_styled_browser_esm.Z.div` + display: inline-block; + position: absolute; + `,S.Foreign=emotion_styled_browser_esm.Z.foreignObject` + pointer-events: none; + overflow: visible; + `}(S||(S={}));class LabelWidget extends react.Component{constructor(props){super(props),this.findPathAndRelativePositionToRenderLabel=index=>{const link=this.props.label.getParent(),lengths=link.getRenderedPath().map((path=>path.getTotalLength()));let labelPosition=lengths.reduce(((previousValue,currentValue)=>previousValue+currentValue),0)*(index/(link.getLabels().length+1)),pathIndex=0;for(;pathIndex{const found=this.findPathAndRelativePositionToRenderLabel(this.props.index+1);if(!found)return;const{path,position}=found,labelDimensions_width=this.ref.current.offsetWidth,labelDimensions_height=this.ref.current.offsetHeight,pathCentre=path.getPointAtLength(position),labelCoordinates_x=pathCentre.x-labelDimensions_width/2+this.props.label.getOptions().offsetX,labelCoordinates_y=pathCentre.y-labelDimensions_height/2+this.props.label.getOptions().offsetY;this.ref.current.style.transform=`translate(${labelCoordinates_x}px, ${labelCoordinates_y}px)`},this.ref=react.createRef()}componentDidUpdate(){window.requestAnimationFrame(this.calculateLabelPosition)}componentDidMount(){window.requestAnimationFrame(this.calculateLabelPosition)}render(){const canvas=this.props.engine.getCanvas();return react.createElement(S.Foreign,{key:this.props.label.getID(),width:null==canvas?void 0:canvas.offsetWidth,height:null==canvas?void 0:canvas.offsetHeight},react.createElement(S.Label,{ref:this.ref},this.props.engine.getFactoryForLabel(this.props.label).generateReactWidget({model:this.props.label})))}}LabelWidget.displayName="LabelWidget";class LinkWidget extends react.Component{constructor(props){super(props),this.state={sourcePort:null,targetPort:null}}componentWillUnmount(){this.sourceListener&&this.sourceListener.deregister(),this.targetListener&&this.targetListener.deregister()}static getDerivedStateFromProps(nextProps,prevState){return{sourcePort:nextProps.link.getSourcePort(),targetPort:nextProps.link.getTargetPort()}}installTarget(){this.targetListener&&this.targetListener.deregister(),this.props.link.getTargetPort()&&(this.targetListener=this.props.link.getTargetPort().registerListener({reportInitialPosition:event=>{this.forceUpdate()}}))}installSource(){this.sourceListener&&this.sourceListener.deregister(),this.props.link.getSourcePort()&&(this.sourceListener=this.props.link.getSourcePort().registerListener({reportInitialPosition:event=>{this.forceUpdate()}}))}componentDidUpdate(prevProps,prevState,snapshot){prevState.sourcePort!==this.state.sourcePort&&this.installSource(),prevState.targetPort!==this.state.targetPort&&this.installTarget()}static generateLinePath(firstPoint,lastPoint){return`M${firstPoint.getX()},${firstPoint.getY()} L ${lastPoint.getX()},${lastPoint.getY()}`}componentDidMount(){this.props.link.getSourcePort()&&this.installSource(),this.props.link.getTargetPort()&&this.installTarget()}render(){const{link}=this.props;return link.getSourcePort()&&!link.getSourcePort().reportedPosition||link.getTargetPort()&&!link.getTargetPort().reportedPosition?null:react.createElement(dist.G,{model:this.props.link,serialized:this.props.link.serialize()},(()=>react.createElement("g",{"data-linkid":this.props.link.getID()},this.props.diagramEngine.generateWidgetForLink(link),map_default()(this.props.link.getLabels(),((labelModel,index)=>react.createElement(LabelWidget,{key:labelModel.getID(),engine:this.props.diagramEngine,label:labelModel,index}))))))}}LinkWidget.displayName="LinkWidget",function(S){S.Container=emotion_styled_browser_esm.Z.div``}(LinkLayerWidget_S||(LinkLayerWidget_S={}));class LinkLayerWidget extends react.Component{render(){return react.createElement(react.Fragment,null,map_default()(this.props.layer.getLinks(),(link=>react.createElement(LinkWidget,{key:link.getID(),link,diagramEngine:this.props.engine}))))}}LinkLayerWidget.displayName="LinkLayerWidget";class LinkLayerFactory extends dist.a3{constructor(){super("diagram-links")}generateModel(event){return new LinkLayerModel}generateReactWidget(event){return react.createElement(LinkLayerWidget,{layer:event.model,engine:this.engine})}}var NodeWidget_S,ResizeObserver_es=__webpack_require__("../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");!function(S){S.Node=emotion_styled_browser_esm.Z.div` + position: absolute; + -webkit-touch-callout: none; /* iOS Safari */ + -webkit-user-select: none; /* Chrome/Safari/Opera */ + user-select: none; + cursor: move; + pointer-events: all; + `}(NodeWidget_S||(NodeWidget_S={}));class NodeWidget extends react.Component{constructor(props){super(props),this.ref=react.createRef()}componentWillUnmount(){var _a;this.ob.disconnect(),this.ob=null,null===(_a=this.listener)||void 0===_a||_a.deregister(),this.listener=null}componentDidUpdate(prevProps,prevState,snapshot){this.listener&&this.props.node!==prevProps.node&&(this.listener.deregister(),this.installSelectionListener())}installSelectionListener(){this.listener=this.props.node.registerListener({selectionChanged:event=>{this.forceUpdate()}})}updateSize(width,height){this.props.node.updateDimensions({width,height});try{forEach_default()(this.props.node.getPorts(),(port=>{port.updateCoords(this.props.diagramEngine.getPortCoords(port))}))}catch(ex){}}componentDidMount(){this.ob=new ResizeObserver_es.Z((entities=>{const bounds=entities[0].contentRect;this.updateSize(bounds.width,bounds.height)}));const b=this.ref.current.getBoundingClientRect();this.updateSize(b.width,b.height),this.ob.observe(this.ref.current),this.installSelectionListener()}render(){return react.createElement(dist.G,{model:this.props.node,serialized:this.props.node.serialize()},(()=>react.createElement(NodeWidget_S.Node,{className:"node",ref:this.ref,"data-nodeid":this.props.node.getID(),style:{top:this.props.node.getY(),left:this.props.node.getX()}},this.props.diagramEngine.generateWidgetForNode(this.props.node))))}}NodeWidget.displayName="NodeWidget";class NodeLayerWidget extends react.Component{render(){return react.createElement(react.Fragment,null,map_default()(this.props.layer.getNodes(),(node=>react.createElement(NodeWidget,{key:node.getID(),diagramEngine:this.props.engine,node}))))}}NodeLayerWidget.displayName="NodeLayerWidget";class NodeLayerFactory extends dist.a3{constructor(){super("diagram-nodes")}generateModel(event){return new NodeLayerModel}generateReactWidget(event){return react.createElement(NodeLayerWidget,{layer:event.model,engine:this.engine})}}var PortModelAlignment,lodash_isFinite=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFinite.js"),isFinite_default=__webpack_require__.n(lodash_isFinite),size=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/size.js"),size_default=__webpack_require__.n(size);!function(PortModelAlignment){PortModelAlignment.TOP="top",PortModelAlignment.LEFT="left",PortModelAlignment.BOTTOM="bottom",PortModelAlignment.RIGHT="right"}(PortModelAlignment||(PortModelAlignment={}));class PortModel extends dist.NW{constructor(options){super(options),this.links={},this.reportedPosition=!1}deserialize(event){super.deserialize(event),this.reportedPosition=!1,this.options.name=event.data.name,this.options.alignment=event.data.alignment}serialize(){return Object.assign(Object.assign({},super.serialize()),{name:this.options.name,alignment:this.options.alignment,parentNode:this.parent.getID(),links:map_default()(this.links,(link=>link.getID()))})}setPosition(x,y){let old=this.position;super.setPosition(x,y),forEach_default()(this.getLinks(),(link=>{let point=link.getPointForPort(this);point.setPosition(point.getX()+x-old.x,point.getY()+y-old.y)}))}doClone(lookupTable={},clone){clone.links={},clone.parent=this.getParent().clone(lookupTable)}getNode(){return this.getParent()}getName(){return this.options.name}getMaximumLinks(){return this.options.maximumLinks}setMaximumLinks(maximumLinks){this.options.maximumLinks=maximumLinks}removeLink(link){delete this.links[link.getID()]}addLink(link){this.links[link.getID()]=link}getLinks(){return this.links}createLinkModel(){if(isFinite_default()(this.options.maximumLinks)){var numberOfLinks=size_default()(this.links);if(1===this.options.maximumLinks&&numberOfLinks>=1)return values_default()(this.links)[0];if(numberOfLinks>=this.options.maximumLinks)return null}return null}reportPosition(){forEach_default()(this.getLinks(),(link=>{link.getPointForPort(this).setPosition(this.getCenter())})),this.fireEvent({entity:this},"reportInitialPosition")}getCenter(){return new geometry_dist.E9(this.getX()+this.width/2,this.getY()+this.height/2)}getBoundingBox(){return geometry_dist.Ae.fromPointAndSize(this.position,this.width,this.height)}updateCoords(coords){this.width=coords.getWidth(),this.height=coords.getHeight(),this.setPosition(coords.getTopLeft()),this.reportedPosition=!0,this.reportPosition()}canLinkToPort(port){return!0}isLocked(){return super.isLocked()||this.getParent().isLocked()}}var keys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"),keys_default=__webpack_require__.n(keys);class PortWidget extends react.Component{constructor(props){super(props),this.ref=react.createRef()}report(){this.props.port.updateCoords(this.props.engine.getPortCoords(this.props.port,this.ref.current))}componentWillUnmount(){this.engineListenerHandle&&this.engineListenerHandle.deregister()}componentDidUpdate(prevProps,prevState,snapshot){this.props.port.reportedPosition||this.report()}componentDidMount(){this.engineListenerHandle=this.props.engine.registerListener({canvasReady:()=>{this.report()}}),this.props.engine.getCanvas()&&this.report()}getExtraProps(){if(dist.C7.TESTING){return{"data-links":keys_default()(this.props.port.getNode().getPort(this.props.port.getName()).links).join(",")}}return{}}render(){return react.createElement("div",Object.assign({style:this.props.style,ref:this.ref,className:`port ${this.props.className||""}`,"data-name":this.props.port.getName(),"data-nodeid":this.props.port.getNode().getID()},this.getExtraProps()),this.props.children)}}PortWidget.displayName="PortWidget";class DragNewLinkState extends dist.s2{constructor(options={}){super({name:"drag-new-link"}),this.config=Object.assign({allowLooseLinks:!0,allowLinksFromLockedPorts:!1},options),this.registerAction(new dist.aU({type:dist.n$.MOUSE_DOWN,fire:event=>{this.port=this.engine.getMouseElement(event.event),this.config.allowLinksFromLockedPorts||!this.port.isLocked()?(this.link=this.port.createLinkModel(),this.link?(this.link.setSelected(!0),this.link.setSourcePort(this.port),this.engine.getModel().addLink(this.link),this.port.reportPosition()):this.eject()):this.eject()}})),this.registerAction(new dist.aU({type:dist.n$.MOUSE_UP,fire:event=>{const model=this.engine.getMouseElement(event.event);if(model instanceof PortModel)return this.port.canLinkToPort(model)?(this.link.setTargetPort(model),model.reportPosition(),void this.engine.repaintCanvas()):(this.link.remove(),void this.engine.repaintCanvas());this.config.allowLooseLinks||(this.link.remove(),this.engine.repaintCanvas())}}))}fireMouseMoved(event){const portPos=this.port.getPosition(),zoomLevelPercentage=this.engine.getModel().getZoomLevel()/100,engineOffsetX=this.engine.getModel().getOffsetX()/zoomLevelPercentage,engineOffsetY=this.engine.getModel().getOffsetY()/zoomLevelPercentage,initialXRelative=this.initialXRelative/zoomLevelPercentage,initialYRelative=this.initialYRelative/zoomLevelPercentage,linkNextX=portPos.x-engineOffsetX+(initialXRelative-portPos.x)+event.virtualDisplacementX,linkNextY=portPos.y-engineOffsetY+(initialYRelative-portPos.y)+event.virtualDisplacementY;this.link.getLastPoint().setPosition(linkNextX,linkNextY),this.engine.repaintCanvas()}}class DragDiagramItemsState extends dist.C2{constructor(){super(),this.registerAction(new dist.aU({type:dist.n$.MOUSE_UP,fire:event=>{const item=this.engine.getMouseElement(event.event);item instanceof PortModel&&forEach_default()(this.initialPositions,(position=>{if(position.item instanceof PointModel){const link=position.item.getParent();if(link.getLastPoint()!==position.item)return;link.getSourcePort().canLinkToPort(item)&&(link.setTargetPort(item),item.reportPosition(),this.engine.repaintCanvas())}}))}}))}}class DefaultDiagramState extends dist.ZM{constructor(){super({name:"default-diagrams"}),this.childStates=[new dist.If],this.dragCanvas=new dist.qR,this.dragNewLink=new DragNewLinkState,this.dragItems=new DragDiagramItemsState,this.registerAction(new dist.aU({type:dist.n$.MOUSE_DOWN,fire:event=>{const element=this.engine.getActionEventBus().getModelForEvent(event);element?element instanceof PortModel?this.transitionWithEvent(this.dragNewLink,event):this.transitionWithEvent(this.dragItems,event):this.transitionWithEvent(this.dragCanvas,event)}})),this.registerAction(new dist.aU({type:dist.n$.TOUCH_START,fire:event=>{this.transitionWithEvent(this.dragCanvas,event)}}))}}class DiagramEngine extends dist.u1{constructor(options={}){super(options),this.maxNumberPointsPerLink=1e3,this.nodeFactories=new dist.r3,this.linkFactories=new dist.r3,this.portFactories=new dist.r3,this.labelFactories=new dist.r3;const setup=factory=>{factory.registerListener({factoryAdded:event=>{event.factory.setDiagramEngine(this)},factoryRemoved:event=>{event.factory.setDiagramEngine(null)}})};setup(this.nodeFactories),setup(this.linkFactories),setup(this.portFactories),setup(this.labelFactories)}getMouseElement(event){var target=event.target,diagramModel=this.model,element=dist.C7.closest(target,".port[data-name]");if(element){var nodeElement=dist.C7.closest(target,".node[data-nodeid]");return diagramModel.getNode(nodeElement.getAttribute("data-nodeid")).getPort(element.getAttribute("data-name"))}return(element=dist.C7.closest(target,".point[data-id]"))?diagramModel.getLink(element.getAttribute("data-linkid")).getPointModel(element.getAttribute("data-id")):(element=dist.C7.closest(target,"[data-linkid]"))?diagramModel.getLink(element.getAttribute("data-linkid")):(element=dist.C7.closest(target,".node[data-nodeid]"))?diagramModel.getNode(element.getAttribute("data-nodeid")):null}getNodeFactories(){return this.nodeFactories}getLinkFactories(){return this.linkFactories}getLabelFactories(){return this.labelFactories}getPortFactories(){return this.portFactories}getFactoryForNode(node){return"string"==typeof node?this.nodeFactories.getFactory(node):this.nodeFactories.getFactory(node.getType())}getFactoryForLink(link){return"string"==typeof link?this.linkFactories.getFactory(link):this.linkFactories.getFactory(link.getType())}getFactoryForLabel(label){return"string"==typeof label?this.labelFactories.getFactory(label):this.labelFactories.getFactory(label.getType())}getFactoryForPort(port){return"string"==typeof port?this.portFactories.getFactory(port):this.portFactories.getFactory(port.getType())}generateWidgetForLink(link){return this.getFactoryForLink(link).generateReactWidget({model:link})}generateWidgetForNode(node){return this.getFactoryForNode(node).generateReactWidget({model:node})}getNodeElement(node){const selector=this.canvas.querySelector(`.node[data-nodeid="${node.getID()}"]`);if(null===selector)throw new Error("Cannot find Node element with nodeID: ["+node.getID()+"]");return selector}getNodePortElement(port){var selector=this.canvas.querySelector(`.port[data-name="${port.getName()}"][data-nodeid="${port.getParent().getID()}"]`);if(null===selector)throw new Error("Cannot find Node Port element with nodeID: ["+port.getParent().getID()+"] and name: ["+port.getName()+"]");return selector}getPortCenter(port){return this.getPortCoords(port).getOrigin()}getPortCoords(port,element){if(!this.canvas)throw new Error("Canvas needs to be set first");element||(element=this.getNodePortElement(port));const sourceRect=element.getBoundingClientRect(),point=this.getRelativeMousePoint({clientX:sourceRect.left,clientY:sourceRect.top}),zoom=this.model.getZoomLevel()/100;return geometry_dist.Ae.fromPointAndSize(point,sourceRect.width/zoom,sourceRect.height/zoom)}getNodeDimensions(node){if(!this.canvas)return{width:0,height:0};const nodeRect=this.getNodeElement(node).getBoundingClientRect();return{width:nodeRect.width,height:nodeRect.height}}getBoundingNodesRect(nodes){if(nodes)return 0===nodes.length?new geometry_dist.Ae:new geometry_dist.Ae((0,geometry_dist.zh)(nodes.map((node=>node.getBoundingBox()))))}zoomToFitSelectedNodes(options){const nodes=this.model.getSelectedEntities().filter((entity=>entity instanceof NodeModel));this.zoomToFitNodes({margin:options.margin,maxZoom:options.maxZoom,nodes:nodes.length>0?nodes:null})}zoomToFitNodes(options){let margin=options||0,nodes=[],maxZoom=null;options&&"object"==typeof options&&(margin=options.margin||0,nodes=options.nodes||[],maxZoom=options.maxZoom||null),0===nodes.length&&(nodes=this.model.getNodes());const nodesRect=this.getBoundingNodesRect(nodes);if(nodesRect){let canvasRect=this.canvas.getBoundingClientRect();const calculate=(margin=0)=>{const xFactor=this.canvas.clientWidth/(nodesRect.getWidth()+2*margin),yFactor=this.canvas.clientHeight/(nodesRect.getHeight()+2*margin);let zoomFactor=xFactormaxZoom&&(zoomFactor=maxZoom),{zoom:zoomFactor,x:canvasRect.width/2-((nodesRect.getWidth()+2*margin)/2+nodesRect.getTopLeft().x)*zoomFactor+margin,y:canvasRect.height/2-((nodesRect.getHeight()+2*margin)/2+nodesRect.getTopLeft().y)*zoomFactor+margin}};let params=calculate(0);margin&&(params.x{__webpack_require__.d(__webpack_exports__,{eW:()=>DefaultLabelFactory,Py:()=>DefaultLabelModel,oQ:()=>DefaultLinkFactory,Si:()=>DefaultLinkModel,hb:()=>DefaultLinkPointWidget,AQ:()=>DefaultLinkSegmentWidget,HU:()=>DefaultNodeFactory,Fs:()=>DefaultNodeModel,Q7:()=>DefaultPortFactory,Gi:()=>DefaultPortModel});var react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),dist=__webpack_require__("../packages/react-diagrams-core/dist/index.js");class DefaultLabelModel extends dist.aS{constructor(options={}){super(Object.assign({offsetY:null==options.offsetY?-23:options.offsetY,type:"default"},options))}setLabel(label){this.options.label=label}deserialize(event){super.deserialize(event),this.options.label=event.data.label}serialize(){return Object.assign(Object.assign({},super.serialize()),{label:this.options.label})}}var S,emotion_styled_browser_esm=__webpack_require__("../node_modules/.pnpm/@emotion+styled@11.10.5_@emotion+react@11.11.1_@types+react@18.2.22_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js");!function(S){S.Label=emotion_styled_browser_esm.Z.div` + background: rgba(0, 0, 0, 0.8); + border-radius: 5px; + color: white; + font-size: 12px; + padding: 4px 8px; + font-family: sans-serif; + user-select: none; + `}(S||(S={}));class DefaultLabelWidget extends react.Component{render(){return react.createElement(S.Label,null,this.props.model.getOptions().label)}}DefaultLabelWidget.displayName="DefaultLabelWidget";var react_canvas_core_dist=__webpack_require__("../packages/react-canvas-core/dist/index.js");class DefaultLabelFactory extends react_canvas_core_dist.a3{constructor(){super("default")}generateReactWidget(event){return react.createElement(DefaultLabelWidget,{model:event.model})}generateModel(event){return new DefaultLabelModel}}var DefaultLinkPointWidget_S,geometry_dist=__webpack_require__("../packages/geometry/dist/index.js");class DefaultLinkModel extends dist.KW{constructor(options={}){super(Object.assign({type:"default",width:options.width||3,color:options.color||"gray",selectedColor:options.selectedColor||"rgb(0,192,255)",curvyness:50},options))}calculateControlOffset(port){return port.getOptions().alignment===dist.tK.RIGHT?[this.options.curvyness,0]:port.getOptions().alignment===dist.tK.LEFT?[-this.options.curvyness,0]:port.getOptions().alignment===dist.tK.TOP?[0,-this.options.curvyness]:[0,this.options.curvyness]}getSVGPath(){if(2==this.points.length){const curve=new geometry_dist.hr;return curve.setSource(this.getFirstPoint().getPosition()),curve.setTarget(this.getLastPoint().getPosition()),curve.setSourceControl(this.getFirstPoint().getPosition().clone()),curve.setTargetControl(this.getLastPoint().getPosition().clone()),this.sourcePort&&curve.getSourceControl().translate(...this.calculateControlOffset(this.getSourcePort())),this.targetPort&&curve.getTargetControl().translate(...this.calculateControlOffset(this.getTargetPort())),curve.getSVGCurve()}}serialize(){return Object.assign(Object.assign({},super.serialize()),{width:this.options.width,color:this.options.color,curvyness:this.options.curvyness,selectedColor:this.options.selectedColor})}deserialize(event){super.deserialize(event),this.options.color=event.data.color,this.options.width=event.data.width,this.options.curvyness=event.data.curvyness,this.options.selectedColor=event.data.selectedColor}addLabel(label){if(label instanceof dist.aS)return super.addLabel(label);let labelOb=new DefaultLabelModel;return labelOb.setLabel(label),super.addLabel(labelOb)}setWidth(width){this.options.width=width,this.fireEvent({width},"widthChanged")}setColor(color){this.options.color=color,this.fireEvent({color},"colorChanged")}}!function(S){S.PointTop=emotion_styled_browser_esm.Z.circle` + pointer-events: all; + `}(DefaultLinkPointWidget_S||(DefaultLinkPointWidget_S={}));class DefaultLinkPointWidget extends react.Component{constructor(props){super(props),this.state={selected:!1}}render(){const{point}=this.props;return react.createElement("g",null,react.createElement("circle",{cx:point.getPosition().x,cy:point.getPosition().y,r:5,fill:this.state.selected||this.props.point.isSelected()?this.props.colorSelected:this.props.color}),react.createElement(DefaultLinkPointWidget_S.PointTop,{className:"point",onMouseLeave:()=>{this.setState({selected:!1})},onMouseEnter:()=>{this.setState({selected:!0})},"data-id":point.getID(),"data-linkid":point.getLink().getID(),cx:point.getPosition().x,cy:point.getPosition().y,r:15,opacity:0}))}}DefaultLinkPointWidget.displayName="DefaultLinkPointWidget";class DefaultLinkSegmentWidget extends react.Component{render(){const Bottom=react.cloneElement(this.props.factory.generateLinkSegment(this.props.link,this.props.selected||this.props.link.isSelected(),this.props.path),{ref:this.props.forwardRef}),Top=react.cloneElement(Bottom,Object.assign(Object.assign({strokeLinecap:"round",onMouseLeave:()=>{this.props.onSelection(!1)},onMouseEnter:()=>{this.props.onSelection(!0)}},this.props.extras),{ref:null,"data-linkid":this.props.link.getID(),strokeOpacity:this.props.selected?.1:0,strokeWidth:20,fill:"none",onContextMenu:()=>{this.props.link.isLocked()||(event.preventDefault(),this.props.link.remove())}}));return react.createElement("g",null,Bottom,Top)}}DefaultLinkSegmentWidget.displayName="DefaultLinkSegmentWidget";const DefaultLinkWidget=props=>{const[selected,setSelected]=react.useState(!1),refPaths=(0,react.useRef)([]);(0,react.useEffect)((()=>(props.link.setRenderedPaths(refPaths.current.map((ref=>ref.current)).filter(Boolean)),()=>{props.link.setRenderedPaths([])})),[props.link]);const generateRef=()=>{const ref=react.createRef();return refPaths.current.push(ref),ref},addPointToLink=(event,index)=>{if(!event.shiftKey&&!props.link.isLocked()&&props.link.getPoints().length-1<=props.diagramEngine.getMaxNumberPointsPerLink()){const position=props.diagramEngine.getRelativeMousePoint(event),point=props.link.point(position.x,position.y,index);event.persist(),event.stopPropagation(),props.diagramEngine.getActionEventBus().fireAction({event,model:point})}},generatePoint=point=>{var _a;return react.createElement(DefaultLinkPointWidget,{key:point.getID(),point,colorSelected:null!==(_a=props.link.getOptions().selectedColor)&&void 0!==_a?_a:"",color:props.link.getOptions().color})},generateLink=(path,extraProps,id)=>react.createElement(DefaultLinkSegmentWidget,{key:`link-${id}`,path,selected,diagramEngine:props.diagramEngine,factory:props.diagramEngine.getFactoryForLink(props.link),link:props.link,forwardRef:generateRef(),onSelection:setSelected,extras:extraProps}),points=props.link.getPoints(),paths=[];if(refPaths.current=[],2===points.length)paths.push(generateLink(props.link.getSVGPath(),{onMouseDown:event=>{var _a;null===(_a=props.selected)||void 0===_a||_a.call(props,event),addPointToLink(event,1)}},"0")),null==props.link.getTargetPort()&&paths.push(generatePoint(points[1]));else{for(let j=0;j{var _a;null===(_a=props.selected)||void 0===_a||_a.call(props,event),addPointToLink(event,j+1)}},j));if(null===(_a=props.renderPoints)||void 0===_a||_a){for(let i=1;ip.selected&&selected}; + fill: none; + pointer-events: auto; + `}(DefaultLinkFactory_S||(DefaultLinkFactory_S={}));class DefaultLinkFactory extends react_canvas_core_dist.a3{constructor(type="default"){super(type)}generateReactWidget(event){return react.createElement(DefaultLinkWidget,{link:event.model,diagramEngine:this.engine})}generateModel(event){return new DefaultLinkModel}generateLinkSegment(model,selected,path){return react.createElement(DefaultLinkFactory_S.Path,{selected,stroke:selected?model.getOptions().selectedColor:model.getOptions().color,strokeWidth:model.getOptions().width,d:path})}}var DefaultPortLabelWidget_S,DefaultNodeWidget_S,map=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/map.js"),map_default=__webpack_require__.n(map);class DefaultPortModel extends dist.AJ{constructor(options,name,label){name&&(options={in:!!options,name,label}),super(Object.assign({label:options.label||options.name,alignment:options.in?dist.tK.LEFT:dist.tK.RIGHT,type:"default"},options))}deserialize(event){super.deserialize(event),this.options.in=event.data.in,this.options.label=event.data.label}serialize(){return Object.assign(Object.assign({},super.serialize()),{in:this.options.in,label:this.options.label})}link(port,factory){let link=this.createLinkModel(factory);return link.setSourcePort(this),link.setTargetPort(port),link}canLinkToPort(port){return!(port instanceof DefaultPortModel)||this.options.in!==port.getOptions().in}createLinkModel(factory){let link=super.createLinkModel();return!link&&factory?factory.generateModel({}):link||new DefaultLinkModel}}class DefaultNodeModel extends dist.XF{constructor(options={},color){"string"==typeof options&&(options={name:options,color}),super(Object.assign({type:"default",name:"Untitled",color:"rgb(0,192,255)"},options)),this.portsOut=[],this.portsIn=[]}doClone(lookupTable,clone){clone.portsIn=[],clone.portsOut=[],super.doClone(lookupTable,clone)}removePort(port){super.removePort(port),port.getOptions().in?this.portsIn.splice(this.portsIn.indexOf(port),1):this.portsOut.splice(this.portsOut.indexOf(port),1)}addPort(port){return super.addPort(port),port.getOptions().in?-1===this.portsIn.indexOf(port)&&this.portsIn.push(port):-1===this.portsOut.indexOf(port)&&this.portsOut.push(port),port}addInPort(label,after=!0){const p=new DefaultPortModel({in:!0,name:label,label,alignment:dist.tK.LEFT});return after||this.portsIn.splice(0,0,p),this.addPort(p)}addOutPort(label,after=!0){const p=new DefaultPortModel({in:!1,name:label,label,alignment:dist.tK.RIGHT});return after||this.portsOut.splice(0,0,p),this.addPort(p)}deserialize(event){super.deserialize(event),this.options.name=event.data.name,this.options.color=event.data.color,this.portsIn=map_default()(event.data.portsInOrder,(id=>this.getPortFromID(id))),this.portsOut=map_default()(event.data.portsOutOrder,(id=>this.getPortFromID(id)))}serialize(){return Object.assign(Object.assign({},super.serialize()),{name:this.options.name,color:this.options.color,portsInOrder:map_default()(this.portsIn,(port=>port.getID())),portsOutOrder:map_default()(this.portsOut,(port=>port.getID()))})}getInPorts(){return this.portsIn}getOutPorts(){return this.portsOut}}!function(S){S.PortLabel=emotion_styled_browser_esm.Z.div` + display: flex; + margin-top: 1px; + align-items: center; + `,S.Label=emotion_styled_browser_esm.Z.div` + padding: 0 5px; + flex-grow: 1; + `,S.Port=emotion_styled_browser_esm.Z.div` + width: 15px; + height: 15px; + background: rgba(255, 255, 255, 0.1); + + &:hover { + background: rgb(192, 255, 0); + } + `}(DefaultPortLabelWidget_S||(DefaultPortLabelWidget_S={}));class DefaultPortLabel extends react.Component{render(){const port=react.createElement(dist.ER,{engine:this.props.engine,port:this.props.port},react.createElement(DefaultPortLabelWidget_S.Port,null)),label=react.createElement(DefaultPortLabelWidget_S.Label,null,this.props.port.getOptions().label);return react.createElement(DefaultPortLabelWidget_S.PortLabel,null,this.props.port.getOptions().in?port:label,this.props.port.getOptions().in?label:port)}}DefaultPortLabel.displayName="DefaultPortLabel",function(S){S.Node=emotion_styled_browser_esm.Z.div` + background-color: ${p=>p.background}; + border-radius: 5px; + font-family: sans-serif; + color: white; + border: solid 2px black; + overflow: visible; + font-size: 11px; + border: solid 2px ${p=>p.selected?"rgb(0,192,255)":"black"}; + `,S.Title=emotion_styled_browser_esm.Z.div` + background: rgba(0, 0, 0, 0.3); + display: flex; + white-space: nowrap; + justify-items: center; + `,S.TitleName=emotion_styled_browser_esm.Z.div` + flex-grow: 1; + padding: 5px 5px; + `,S.Ports=emotion_styled_browser_esm.Z.div` + display: flex; + background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)); + `,S.PortsContainer=emotion_styled_browser_esm.Z.div` + flex-grow: 1; + display: flex; + flex-direction: column; + + &:first-of-type { + margin-right: 10px; + } + + &:only-child { + margin-right: 0px; + } + `}(DefaultNodeWidget_S||(DefaultNodeWidget_S={}));class DefaultNodeWidget extends react.Component{constructor(){super(...arguments),this.generatePort=port=>react.createElement(DefaultPortLabel,{engine:this.props.engine,port,key:port.getID()})}render(){return react.createElement(DefaultNodeWidget_S.Node,{"data-default-node-name":this.props.node.getOptions().name,selected:this.props.node.isSelected(),background:this.props.node.getOptions().color},react.createElement(DefaultNodeWidget_S.Title,null,react.createElement(DefaultNodeWidget_S.TitleName,null,this.props.node.getOptions().name)),react.createElement(DefaultNodeWidget_S.Ports,null,react.createElement(DefaultNodeWidget_S.PortsContainer,null,map_default()(this.props.node.getInPorts(),this.generatePort)),react.createElement(DefaultNodeWidget_S.PortsContainer,null,map_default()(this.props.node.getOutPorts(),this.generatePort))))}}DefaultNodeWidget.displayName="DefaultNodeWidget";class DefaultNodeFactory extends react_canvas_core_dist.a3{constructor(){super("default")}generateReactWidget(event){return react.createElement(DefaultNodeWidget,{engine:this.engine,node:event.model})}generateModel(event){return new DefaultNodeModel}}class DefaultPortFactory extends react_canvas_core_dist.Zi{constructor(){super("default")}generateModel(){return new DefaultPortModel({name:"unknown"})}}},"../packages/react-diagrams/dist/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{z6:()=>DagreEngine,Qo:()=>dist.Qo,Py:()=>react_diagrams_defaults_dist.Py,oQ:()=>react_diagrams_defaults_dist.oQ,Si:()=>react_diagrams_defaults_dist.Si,Fs:()=>react_diagrams_defaults_dist.Fs,Gi:()=>react_diagrams_defaults_dist.Gi,Vm:()=>dist.Vm,aS:()=>dist.aS,KW:()=>dist.KW,XF:()=>dist.XF,xU:()=>PathFindingLinkFactory,AJ:()=>dist.AJ,tK:()=>dist.tK,ER:()=>dist.ER,$Q:()=>RightAngleLinkFactory,C6:()=>RightAngleLinkModel,ZP:()=>react_diagrams_dist});var dist=__webpack_require__("../packages/react-diagrams-core/dist/index.js"),react_diagrams_defaults_dist=__webpack_require__("../packages/react-diagrams-defaults/dist/index.js"),react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js");class PathFindingLinkModel extends react_diagrams_defaults_dist.Si{constructor(options={}){super(Object.assign({type:PathFindingLinkFactory.NAME},options))}performanceTune(){return!1}}var first=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/first.js"),first_default=__webpack_require__.n(first),last=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js"),last_default=__webpack_require__.n(last),pathfinding=__webpack_require__("../node_modules/.pnpm/pathfinding@0.4.18/node_modules/pathfinding/index.js");const pathFinderInstance=new pathfinding.JumpPointFinder({heuristic:pathfinding.Heuristic.manhattan,diagonalMovement:pathfinding.DiagonalMovement.Never});class PathFinding{constructor(factory){this.instance=pathFinderInstance,this.factory=factory}calculateDirectPath(from,to){const matrix=this.factory.getCanvasMatrix(),grid=new pathfinding.Grid(matrix);return pathFinderInstance.findPath(this.factory.translateRoutingX(Math.floor(from.getX()/this.factory.ROUTING_SCALING_FACTOR)),this.factory.translateRoutingY(Math.floor(from.getY()/this.factory.ROUTING_SCALING_FACTOR)),this.factory.translateRoutingX(Math.floor(to.getX()/this.factory.ROUTING_SCALING_FACTOR)),this.factory.translateRoutingY(Math.floor(to.getY()/this.factory.ROUTING_SCALING_FACTOR)),grid)}calculateLinkStartEndCoords(matrix,path){const startIndex=path.findIndex((point=>!!matrix[point[1]]&&0===matrix[point[1]][point[0]])),endIndex=path.length-1-path.slice().reverse().findIndex((point=>!!matrix[point[1]]&&0===matrix[point[1]][point[0]]));if(-1===startIndex||-1===endIndex)return;const pathToStart=path.slice(0,startIndex),pathToEnd=path.slice(endIndex);return{start:{x:path[startIndex][0],y:path[startIndex][1]},end:{x:path[endIndex][0],y:path[endIndex][1]},pathToStart,pathToEnd}}calculateDynamicPath(routingMatrix,start,end,pathToStart,pathToEnd){const grid=new pathfinding.Grid(routingMatrix),dynamicPath=pathFinderInstance.findPath(start.x,start.y,end.x,end.y,grid),pathCoords=pathToStart.concat(dynamicPath,pathToEnd).map((coords=>[this.factory.translateRoutingX(coords[0],!0),this.factory.translateRoutingY(coords[1],!0)]));return pathfinding.Util.compressPath(pathCoords)}}class PathFindingLinkWidget extends react.Component{constructor(props){super(props),this.refPaths=[],this.state={selected:!1},this.pathFinding=new PathFinding(this.props.factory)}componentDidUpdate(){this.props.link.setRenderedPaths(this.refPaths.map((ref=>ref.current)))}componentDidMount(){this.props.link.setRenderedPaths(this.refPaths.map((ref=>ref.current)))}componentWillUnmount(){this.props.link.setRenderedPaths([])}generateLink(path,id){const ref=react.createRef();return this.refPaths.push(ref),react.createElement(react_diagrams_defaults_dist.AQ,{key:`link-${id}`,path,selected:this.state.selected,diagramEngine:this.props.diagramEngine,factory:this.props.diagramEngine.getFactoryForLink(this.props.link),link:this.props.link,forwardRef:ref,onSelection:selected=>{this.setState({selected})},extras:{}})}render(){this.refPaths=[];var points=this.props.link.getPoints(),paths=[];const directPathCoords=this.pathFinding.calculateDirectPath(first_default()(points),last_default()(points)),routingMatrix=this.props.factory.getRoutingMatrix(),smartLink=this.pathFinding.calculateLinkStartEndCoords(routingMatrix,directPathCoords);if(smartLink){const{start,end,pathToStart,pathToEnd}=smartLink,simplifiedPath=this.pathFinding.calculateDynamicPath(routingMatrix,start,end,pathToStart,pathToEnd);paths.push(this.generateLink(this.props.factory.generateDynamicPath(simplifiedPath),"0"))}return react.createElement(react.Fragment,null,paths)}}PathFindingLinkWidget.displayName="PathFindingLinkWidget";var cloneDeep=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.js"),cloneDeep_default=__webpack_require__.n(cloneDeep),concat=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/concat.js"),concat_default=__webpack_require__.n(concat),defer=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defer.js"),defer_default=__webpack_require__.n(defer),flatMap=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flatMap.js"),flatMap_default=__webpack_require__.n(flatMap),get=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"),get_default=__webpack_require__.n(get),minBy=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/minBy.js"),minBy_default=__webpack_require__.n(minBy),maxBy=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/maxBy.js"),maxBy_default=__webpack_require__.n(maxBy),range=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js"),range_default=__webpack_require__.n(range),reduce=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/reduce.js"),reduce_default=__webpack_require__.n(reduce),values=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/values.js"),values_default=__webpack_require__.n(values),paths_js_path=__webpack_require__("../node_modules/.pnpm/paths-js@0.4.11/node_modules/paths-js/path.js"),react_canvas_core_dist=__webpack_require__("../packages/react-canvas-core/dist/index.js");class PathFindingLinkFactory extends react_diagrams_defaults_dist.oQ{constructor(){super(PathFindingLinkFactory.NAME),this.ROUTING_SCALING_FACTOR=5,this.canvasMatrix=[],this.routingMatrix=[],this.hAdjustmentFactor=0,this.vAdjustmentFactor=0,this.calculateMatrixDimensions=()=>{const allNodesCoords=values_default()(this.engine.getModel().getNodes()).map((item=>({x:item.getX(),width:item.width,y:item.getY(),height:item.height}))),allLinks=values_default()(this.engine.getModel().getLinks()),allPortsCoords=flatMap_default()(allLinks.map((link=>[link.getSourcePort(),link.getTargetPort()]))).filter((port=>null!==port)).map((item=>({x:item.getX(),width:item.width,y:item.getY(),height:item.height}))),allPointsCoords=flatMap_default()(allLinks.map((link=>link.getPoints()))).map((item=>({x:item.getX(),width:0,y:item.getY(),height:0}))),sumProps=(object,props)=>reduce_default()(props,((acc,prop)=>acc+get_default()(object,prop,0)),0),canvas=this.engine.getCanvas(),concatedCoords=concat_default()(allNodesCoords,allPortsCoords,allPointsCoords),minX=Math.floor(Math.min(get_default()(minBy_default()(concatedCoords,"x"),"x",0),0)/this.ROUTING_SCALING_FACTOR)*this.ROUTING_SCALING_FACTOR,maxXElement=maxBy_default()(concatedCoords,(item=>sumProps(item,["x","width"]))),maxX=Math.max(sumProps(maxXElement,["x","width"]),canvas.offsetWidth),minYCoords=minBy_default()(concatedCoords,"y"),minY=Math.floor(Math.min(get_default()(minYCoords,"y",0),0)/this.ROUTING_SCALING_FACTOR)*this.ROUTING_SCALING_FACTOR,maxYElement=maxBy_default()(concatedCoords,(item=>sumProps(item,["y","height"]))),maxY=Math.max(sumProps(maxYElement,["y","height"]),canvas.offsetHeight);return{width:Math.ceil(Math.abs(minX)+maxX),hAdjustmentFactor:Math.abs(minX)/this.ROUTING_SCALING_FACTOR+1,height:Math.ceil(Math.abs(minY)+maxY),vAdjustmentFactor:Math.abs(minY)/this.ROUTING_SCALING_FACTOR+1}},this.markNodes=matrix=>{values_default()(this.engine.getModel().getNodes()).forEach((node=>{const startX=Math.floor(node.getX()/this.ROUTING_SCALING_FACTOR),endX=Math.ceil((node.getX()+node.width)/this.ROUTING_SCALING_FACTOR),startY=Math.floor(node.getY()/this.ROUTING_SCALING_FACTOR),endY=Math.ceil((node.getY()+node.height)/this.ROUTING_SCALING_FACTOR);for(let x=startX-1;x<=endX+1;x++)for(let y=startY-1;y{flatMap_default()(values_default()(this.engine.getModel().getLinks()).map((link=>[].concat(link.getSourcePort(),link.getTargetPort())))).filter((port=>null!==port)).forEach((port=>{const startX=Math.floor(port.x/this.ROUTING_SCALING_FACTOR),endX=Math.ceil((port.x+port.width)/this.ROUTING_SCALING_FACTOR),startY=Math.floor(port.y/this.ROUTING_SCALING_FACTOR),endY=Math.ceil((port.y+port.height)/this.ROUTING_SCALING_FACTOR);for(let x=startX-1;x<=endX+1;x++)for(let y=startY-1;y{void 0!==matrix[y]&&void 0!==matrix[y][x]&&(matrix[y][x]=1)}}setDiagramEngine(engine){super.setDiagramEngine(engine),engine.getStateMachine().registerListener({stateChanged:event=>{if(event.newState instanceof react_canvas_core_dist.s2){const deRegister=engine.getActionEventBus().registerAction(new react_canvas_core_dist.aU({type:react_canvas_core_dist.n$.MOUSE_UP,fire:()=>{this.calculateRoutingMatrix(),engine.repaintCanvas(),deRegister()}}))}}}),this.listener=engine.registerListener({canvasReady:()=>{defer_default()((()=>{this.calculateRoutingMatrix(),engine.repaintCanvas()}))}})}setFactoryBank(bank){super.setFactoryBank(bank),!bank&&this.listener&&this.listener.deregister()}generateReactWidget(event){return react.createElement(PathFindingLinkWidget,{diagramEngine:this.engine,link:event.model,factory:this})}generateModel(event){return new PathFindingLinkModel}getCanvasMatrix(){return 0===this.canvasMatrix.length&&this.calculateCanvasMatrix(),this.canvasMatrix}calculateCanvasMatrix(){const{width:canvasWidth,hAdjustmentFactor,height:canvasHeight,vAdjustmentFactor}=this.calculateMatrixDimensions();this.hAdjustmentFactor=hAdjustmentFactor,this.vAdjustmentFactor=vAdjustmentFactor;const matrixWidth=Math.ceil(canvasWidth/this.ROUTING_SCALING_FACTOR),matrixHeight=Math.ceil(canvasHeight/this.ROUTING_SCALING_FACTOR);this.canvasMatrix=range_default()(0,matrixHeight).map((()=>new Array(matrixWidth).fill(0)))}getRoutingMatrix(){return 0===this.routingMatrix.length&&this.calculateRoutingMatrix(),this.routingMatrix}calculateRoutingMatrix(){const matrix=cloneDeep_default()(this.getCanvasMatrix());this.markNodes(matrix),this.markPorts(matrix),this.routingMatrix=matrix}translateRoutingX(x,reverse=!1){return x+this.hAdjustmentFactor*(reverse?-1:1)}translateRoutingY(y,reverse=!1){return y+this.vAdjustmentFactor*(reverse?-1:1)}generateDynamicPath(pathCoords){let path=paths_js_path();return path=path.moveto(pathCoords[0][0]*this.ROUTING_SCALING_FACTOR,pathCoords[0][1]*this.ROUTING_SCALING_FACTOR),pathCoords.slice(1).forEach((coords=>{path=path.lineto(coords[0]*this.ROUTING_SCALING_FACTOR,coords[1]*this.ROUTING_SCALING_FACTOR)})),path.print()}}PathFindingLinkFactory.NAME="pathfinding";var geometry_dist=__webpack_require__("../packages/geometry/dist/index.js");class RightAngleLinkWidget extends react.Component{constructor(props){super(props),this.handleMove=function(event){this.draggingEvent(event,this.dragging_index)}.bind(this),this.handleUp=function(event){this.setState({canDrag:!1,selected:!1}),window.removeEventListener("mousemove",this.handleMove),window.removeEventListener("mouseup",this.handleUp)}.bind(this),this.refPaths=[],this.state={selected:!1,canDrag:!1},this.dragging_index=0}componentDidUpdate(){this.props.link.setRenderedPaths(this.refPaths.map((ref=>ref.current)))}componentDidMount(){this.props.link.setRenderedPaths(this.refPaths.map((ref=>ref.current)))}componentWillUnmount(){this.props.link.setRenderedPaths([])}generateLink(path,extraProps,id){const ref=react.createRef();return this.refPaths.push(ref),react.createElement(react_diagrams_defaults_dist.AQ,{key:`link-${id}`,path,selected:this.state.selected,diagramEngine:this.props.diagramEngine,factory:this.props.diagramEngine.getFactoryForLink(this.props.link),link:this.props.link,forwardRef:ref,onSelection:selected=>{this.setState({selected})},extras:extraProps})}calculatePositions(points,event,index,coordinate){if(0===index){let point=new dist.Xs({link:this.props.link,position:new geometry_dist.E9(points[index].getX(),points[index].getY())});return this.props.link.addPoint(point,index),void this.dragging_index++}if(index===points.length-2){let point=new dist.Xs({link:this.props.link,position:new geometry_dist.E9(points[index+1].getX(),points[index+1].getY())});return void this.props.link.addPoint(point,index+1)}if(index-2>0){let _points={[index-2]:points[index-2].getPosition(),[index+1]:points[index+1].getPosition(),[index-1]:points[index-1].getPosition()};if(Math.abs(_points[index-1][coordinate]-_points[index+1][coordinate])<5)return _points[index-2][coordinate]=this.props.diagramEngine.getRelativeMousePoint(event)[coordinate],_points[index+1][coordinate]=this.props.diagramEngine.getRelativeMousePoint(event)[coordinate],points[index-2].setPosition(_points[index-2]),points[index+1].setPosition(_points[index+1]),points[index-1].remove(),points[index-1].remove(),this.dragging_index--,void this.dragging_index--}if(index+2pointRight.getX()&&(pointLeft=points[points.length-1],pointRight=points[0],hadToSwitch=!0);let dy=Math.abs(points[0].getY()-points[points.length-1].getY());if(null===this.props.link.getTargetPort()&&2===points.length)[...Array(2)].forEach((item=>{this.props.link.addPoint(new dist.Xs({link:this.props.link,position:new geometry_dist.E9(pointLeft.getX(),pointRight.getY())}),1)})),this.props.link.setManuallyFirstAndLastPathsDirection(!0,!0);else if(null===this.props.link.getTargetPort()&&null!==this.props.link.getSourcePort())points[1].setPosition(pointRight.getX()+(pointLeft.getX()-pointRight.getX())/2,hadToSwitch?pointRight.getY():pointLeft.getY()),points[2].setPosition(pointRight.getX()+(pointLeft.getX()-pointRight.getX())/2,hadToSwitch?pointLeft.getY():pointRight.getY());else if(!this.state.canDrag&&points.length>2)for(let i=1;i{0===event.button&&(this.setState({canDrag:!0}),this.dragging_index=j,window.addEventListener("mousemove",this.handleMove),window.addEventListener("mouseup",this.handleUp))},onMouseEnter:event=>{this.setState({selected:!0}),this.props.link.lastHoverIndexOfPath=j}},j));return this.refPaths=[],react.createElement("g",{"data-default-link-test":this.props.link.getOptions().testName},paths)}}RightAngleLinkWidget.displayName="RightAngleLinkWidget",RightAngleLinkWidget.defaultProps={color:"red",width:3,link:null,smooth:!1,diagramEngine:null,factory:null};class RightAngleLinkModel extends react_diagrams_defaults_dist.Si{constructor(options={}){super(Object.assign({type:RightAngleLinkFactory.NAME},options)),this.lastHoverIndexOfPath=0,this._lastPathXdirection=!1,this._firstPathXdirection=!1}setFirstAndLastPathsDirection(){let points=this.getPoints();for(let i=1;idy:this._lastPathXdirection=dx>dy}}addPoint(pointModel,index=1){return super.addPoint(pointModel,index),this.setFirstAndLastPathsDirection(),pointModel}deserialize(event){super.deserialize(event),this.setFirstAndLastPathsDirection()}setManuallyFirstAndLastPathsDirection(first,last){this._firstPathXdirection=first,this._lastPathXdirection=last}getLastPathXdirection(){return this._lastPathXdirection}getFirstPathXdirection(){return this._firstPathXdirection}setWidth(width){this.options.width=width,this.fireEvent({width},"widthChanged")}setColor(color){this.options.color=color,this.fireEvent({color},"colorChanged")}}class RightAngleLinkFactory extends react_diagrams_defaults_dist.oQ{constructor(){super(RightAngleLinkFactory.NAME)}generateModel(event){return new RightAngleLinkModel}generateReactWidget(event){return react.createElement(RightAngleLinkWidget,{diagramEngine:this.engine,link:event.model,factory:this})}}RightAngleLinkFactory.NAME="rightAngle";var dagre=__webpack_require__("../node_modules/.pnpm/dagre@0.8.5/node_modules/dagre/index.js"),every=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/every.js"),every_default=__webpack_require__.n(every),findIndex=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/findIndex.js"),findIndex_default=__webpack_require__.n(findIndex),forEach=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forEach.js"),forEach_default=__webpack_require__.n(forEach),map=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/map.js"),map_default=__webpack_require__.n(map),sortBy=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sortBy.js"),sortBy_default=__webpack_require__.n(sortBy);class DagreEngine{constructor(options={}){this.options=options}redistribute(model){var g=new dagre.graphlib.Graph({multigraph:!0,compound:!0});g.setGraph(this.options.graph||{}),g.setDefaultEdgeLabel((function(){return{}})),forEach_default()(model.getNodes(),(node=>{g.setNode(node.getID(),{width:node.width,height:node.height})})),forEach_default()(model.getLinks(),(link=>{link.getSourcePort()&&link.getTargetPort()&&g.setEdge({v:link.getSourcePort().getNode().getID(),w:link.getTargetPort().getNode().getID(),name:link.getID()})})),dagre.layout(g),g.nodes().forEach((v=>{const node=g.node(v);model.getNode(v).setPosition(node.x-node.width/2,node.y-node.height/2)})),this.options.includeLinks&&g.edges().forEach((e=>{const edge=g.edge(e),link=model.getLink(e.name),points=[link.getFirstPoint()];for(let i=1;i{const nodeColumnCenter=node.getX()+node.width/2;every_default()(verticalLines,(vLine=>Math.abs(nodeColumnCenter-vLine)>nodeMargin))&&verticalLines.push(nodeColumnCenter)})),verticalLines=verticalLines.sort(((a,b)=>a-b)),forEach_default()(verticalLines,((line,index)=>{chunks[index]={},chunks[index+.5]={}})),forEach_default()(nodes,(node=>{const nodeColumnCenter=node.getX()+node.width/2,startChunkIndex=Math.floor(node.getY()/nodeMargin),endChunkIndex=Math.floor((node.getY()+node.height)/nodeMargin);endChunkIndex>maxChunkRowIndex&&(maxChunkRowIndex=endChunkIndex);const nodeColumnIndex=findIndex_default()(verticalLines,(vLine=>Math.abs(nodeColumnCenter-vLine)<=nodeMargin));forEach_default()(range_default()(startChunkIndex,endChunkIndex+1),(chunkIndex=>{chunks[nodeColumnIndex][chunkIndex]=!0})),NodeXColumnIndexDictionary[node.getX()]=nodeColumnIndex}));const edges=map_default()(links,(link=>{if(link.getSourcePort()&&link.getTargetPort()){const source=link.getSourcePort().getNode(),target=link.getTargetPort().getNode(),sourceIndex=NodeXColumnIndexDictionary[source.getX()],targetIndex=NodeXColumnIndexDictionary[target.getX()];return sourceIndex>targetIndex?{link,sourceIndex,sourceY:source.getY()+source.height/2,source,targetIndex,targetY:target.getY()+source.height/2,target}:{link,sourceIndex:targetIndex,sourceY:target.getY()+target.height/2,source:target,targetIndex:sourceIndex,targetY:source.getY()+source.height/2,target:source}}})),sortedEdges=sortBy_default()(edges,(link=>Math.abs(link.targetIndex-link.sourceIndex)));this.options.includeLinks&&forEach_default()(sortedEdges,(edge=>{const link=diagram.getLink(edge.link.getID());if(Math.abs(edge.sourceIndex-edge.targetIndex)>1){const columns=range_default()(edge.sourceIndex-1,edge.targetIndex),chunkIndex=Math.floor(edge.sourceY/nodeMargin),targetChunkIndex=Math.floor(edge.targetY/nodeMargin);let northCost=1,aboveRowIndex=chunkIndex;for(;aboveRowIndex>=0&&!every_default()(columns,(columnIndex=>!(chunks[columnIndex][aboveRowIndex]||chunks[columnIndex+.5][aboveRowIndex]||chunks[columnIndex-.5][aboveRowIndex])));aboveRowIndex--,northCost++);let southCost=0,belowRowIndex=chunkIndex;for(;belowRowIndex<=maxChunkRowIndex&&!every_default()(columns,(columnIndex=>!(chunks[columnIndex][belowRowIndex]||chunks[columnIndex+.5][belowRowIndex]||chunks[columnIndex-.5][belowRowIndex])));belowRowIndex++,southCost++);const pathRowIndex=southCost+(belowRowIndex-targetChunkIndex){points.push(new dist.Xs({link,position:new geometry_dist.E9(verticalLines[column],(pathRowIndex+.5)*nodeMargin)})),points.push(new dist.Xs({link,position:new geometry_dist.E9((verticalLines[column]+verticalLines[column-1])/2,(pathRowIndex+.5)*nodeMargin)})),chunks[column][pathRowIndex]=!0,chunks[column][pathRowIndex+1]=!0,chunks[column+.5][pathRowIndex]=!0,chunks[column+.5][pathRowIndex+1]=!0})),link.setPoints(points.concat(link.getLastPoint()))}else{link.setPoints([link.getFirstPoint(),link.getLastPoint()]);const columnIndex=(edge.sourceIndex+edge.targetIndex)/2;chunks[columnIndex]||(chunks[columnIndex]={});const rowIndex=Math.floor((edge.sourceY+edge.targetY)/2/nodeMargin);chunks[columnIndex][rowIndex]=!0,chunks[columnIndex][rowIndex+1]=!0}}))}}const react_diagrams_dist=(options={})=>{const engine=new dist.Zc(options);return engine.getLayerFactories().registerFactory(new dist.JM),engine.getLayerFactories().registerFactory(new dist.JW),engine.getLayerFactories().registerFactory(new react_canvas_core_dist.B1),engine.getLabelFactories().registerFactory(new react_diagrams_defaults_dist.eW),engine.getNodeFactories().registerFactory(new react_diagrams_defaults_dist.HU),engine.getLinkFactories().registerFactory(new react_diagrams_defaults_dist.oQ),engine.getLinkFactories().registerFactory(new PathFindingLinkFactory),engine.getPortFactories().registerFactory(new react_diagrams_defaults_dist.Q7),engine.getStateMachine().pushState(new dist.Qo),engine}}}]); +//# sourceMappingURL=544.38616729.iframe.bundle.js.map \ No newline at end of file diff --git a/544.38616729.iframe.bundle.js.LICENSE.txt b/544.38616729.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..7a8f36ae9 --- /dev/null +++ b/544.38616729.iframe.bundle.js.LICENSE.txt @@ -0,0 +1 @@ +//!-------------- FACTORIES ------------ diff --git a/544.38616729.iframe.bundle.js.map b/544.38616729.iframe.bundle.js.map new file mode 100644 index 000000000..41184442c --- /dev/null +++ b/544.38616729.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"544.38616729.iframe.bundle.js","mappings":";;;AAYA;;;;;;;;;;;;;AAaA;AACA;;;AAGA;AACA;;;;;;;AAOA;AACA;;;AAGA;AACA;;;;AAMA;;;;;;AASA;;;;;;;;;;;ACjCA;AACA;AAGA;AACA;AAEA;;;;ACdA;;;;ACHA;;;ACGA;;;AAIA;;;;;;;ACEA;;;;;;;;ACLA;;ACAA;;;;;;;ACAA;;AAEA;AAGA;AACA;;;AAIA;;;;ACXA;;;AAKA;;;;;;;;AASA;ACtBA;;;;;;;AAOA;AAGA;;;;;AAOA;;;AAKA;;;AAKA;;;;;;;;;;;;AAaA","sources":["webpack://@projectstorm/react-diagrams-gallery/./demos/helpers/DemoCanvasWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../../src/entities/layer/TransformLayerWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../../src/entities/canvas/CanvasWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../../src/entities/selection/SelectionBoxWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../../src/entities/label/LabelWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../../src/entities/node/NodeWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../src/label/DefaultLabelWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../src/link/DefaultLinkPointWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../src/link/DefaultLinkFactory.tsx","webpack://@projectstorm/react-diagrams-gallery/../../src/port/DefaultPortLabelWidget.tsx","webpack://@projectstorm/react-diagrams-gallery/../../src/node/DefaultNodeWidget.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled from '@emotion/styled';\nimport { css, Global } from '@emotion/react';\n\nexport interface DemoCanvasWidgetProps {\n\tcolor?: string;\n\tbackground?: string;\n}\n\nnamespace S {\n\texport const Container = styled.div<{ color: string; background: string }>`\n\t\theight: 100%;\n\t\tbackground-color: ${(p) => p.background};\n\t\tbackground-size: 50px 50px;\n\t\tdisplay: flex;\n\n\t\t> * {\n\t\t\theight: 100%;\n\t\t\tmin-height: 100%;\n\t\t\twidth: 100%;\n\t\t}\n\n\t\tbackground-image: linear-gradient(\n\t\t\t\t0deg,\n\t\t\t\ttransparent 24%,\n\t\t\t\t${(p) => p.color} 25%,\n\t\t\t\t${(p) => p.color} 26%,\n\t\t\t\ttransparent 27%,\n\t\t\t\ttransparent 74%,\n\t\t\t\t${(p) => p.color} 75%,\n\t\t\t\t${(p) => p.color} 76%,\n\t\t\t\ttransparent 77%,\n\t\t\t\ttransparent\n\t\t\t),\n\t\t\tlinear-gradient(\n\t\t\t\t90deg,\n\t\t\t\ttransparent 24%,\n\t\t\t\t${(p) => p.color} 25%,\n\t\t\t\t${(p) => p.color} 26%,\n\t\t\t\ttransparent 27%,\n\t\t\t\ttransparent 74%,\n\t\t\t\t${(p) => p.color} 75%,\n\t\t\t\t${(p) => p.color} 76%,\n\t\t\t\ttransparent 77%,\n\t\t\t\ttransparent\n\t\t\t);\n\t`;\n\n\texport const Expand = css`\n\t\thtml,\n\t\tbody,\n\t\t#root {\n\t\t\theight: 100%;\n\t\t}\n\t`;\n}\n\nexport class DemoCanvasWidget extends React.Component> {\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{this.props.children}\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport styled from '@emotion/styled';\nimport { CSSProperties } from 'react';\nimport { LayerModel } from './LayerModel';\nimport { css } from '@emotion/react';\n\nexport interface TransformLayerWidgetProps {\n\tlayer: LayerModel;\n}\n\nnamespace S {\n\tconst shared = css`\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tposition: absolute;\n\t\tpointer-events: none;\n\t\ttransform-origin: 0 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: visible;\n\t`;\n\n\texport const DivLayer = styled.div`\n\t\t${shared}\n\t`;\n\n\texport const SvgLayer = styled.svg`\n\t\t${shared}\n\t`;\n}\n\nexport class TransformLayerWidget extends React.Component> {\n\tconstructor(props: TransformLayerWidgetProps) {\n\t\tsuper(props);\n\t\tthis.state = {};\n\t}\n\n\tgetTransform() {\n\t\tconst model = this.props.layer.getParent();\n\t\treturn `\n\t\t\ttranslate(\n\t\t\t\t${model.getOffsetX()}px,\n\t\t\t\t${model.getOffsetY()}px)\n\t\t\tscale(\n\t\t\t\t${model.getZoomLevel() / 100.0}\n\t\t\t)\n \t`;\n\t}\n\n\tgetTransformStyle(): CSSProperties {\n\t\tif (this.props.layer.getOptions().transformed) {\n\t\t\treturn {\n\t\t\t\ttransform: this.getTransform()\n\t\t\t};\n\t\t}\n\t\treturn {};\n\t}\n\n\trender() {\n\t\tif (this.props.layer.getOptions().isSvg) {\n\t\t\treturn {this.props.children};\n\t\t}\n\t\treturn {this.props.children};\n\t}\n}\n","import * as React from 'react';\nimport { CanvasEngine } from '../../CanvasEngine';\nimport { TransformLayerWidget } from '../layer/TransformLayerWidget';\nimport styled from '@emotion/styled';\nimport { SmartLayerWidget } from '../layer/SmartLayerWidget';\n\nexport interface DiagramProps {\n\tengine: CanvasEngine;\n\tclassName?: string;\n}\n\nnamespace S {\n\texport const Canvas = styled.div`\n\t\tposition: relative;\n\t\tcursor: move;\n\t\toverflow: hidden;\n\t`;\n}\n\nexport class CanvasWidget extends React.Component {\n\tref: React.RefObject;\n\tkeyUp: any;\n\tkeyDown: any;\n\tcanvasListener: any;\n\n\tconstructor(props: DiagramProps) {\n\t\tsuper(props);\n\n\t\tthis.ref = React.createRef();\n\t\tthis.state = {\n\t\t\taction: null,\n\t\t\tdiagramEngineListener: null\n\t\t};\n\t}\n\n\tcomponentWillUnmount() {\n\t\tthis.props.engine.deregisterListener(this.canvasListener);\n\t\tthis.props.engine.setCanvas(null);\n\n\t\tdocument.removeEventListener('keyup', this.keyUp);\n\t\tdocument.removeEventListener('keydown', this.keyDown);\n\t}\n\n\tregisterCanvas() {\n\t\tthis.props.engine.setCanvas(this.ref.current);\n\t\tthis.props.engine.iterateListeners((list) => {\n\t\t\tlist.rendered && list.rendered();\n\t\t});\n\t}\n\n\tcomponentDidUpdate() {\n\t\tthis.registerCanvas();\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.canvasListener = this.props.engine.registerListener({\n\t\t\trepaintCanvas: () => {\n\t\t\t\tthis.forceUpdate();\n\t\t\t}\n\t\t});\n\n\t\tthis.keyDown = (event) => {\n\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t};\n\t\tthis.keyUp = (event) => {\n\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t};\n\n\t\tdocument.addEventListener('keyup', this.keyUp);\n\t\tdocument.addEventListener('keydown', this.keyDown);\n\t\tthis.registerCanvas();\n\t}\n\n\trender() {\n\t\tconst engine = this.props.engine;\n\t\tconst model = engine.getModel();\n\n\t\treturn (\n\t\t\t {\n\t\t\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t\t\t}}\n\t\t\t\tonMouseDown={(event) => {\n\t\t\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t\t\t}}\n\t\t\t\tonMouseUp={(event) => {\n\t\t\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t\t\t}}\n\t\t\t\tonMouseMove={(event) => {\n\t\t\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t\t\t}}\n\t\t\t\tonTouchStart={(event) => {\n\t\t\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t\t\t}}\n\t\t\t\tonTouchEnd={(event) => {\n\t\t\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t\t\t}}\n\t\t\t\tonTouchMove={(event) => {\n\t\t\t\t\tthis.props.engine.getActionEventBus().fireAction({ event });\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{model.getLayers().map((layer) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport styled from '@emotion/styled';\nimport { SimpleClientRect } from '../../states/SelectionBoxState';\n\nexport interface SelectionBoxWidgetProps {\n\trect: SimpleClientRect;\n}\n\nnamespace S {\n\texport const Container = styled.div`\n\t\tposition: absolute;\n\t\tbackground-color: rgba(0, 192, 255, 0.2);\n\t\tborder: solid 2px rgb(0, 192, 255);\n\t`;\n}\n\nexport class SelectionBoxWidget extends React.Component {\n\trender() {\n\t\tconst { rect } = this.props;\n\n\t\tif (!rect) return null;\n\n\t\treturn (\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport { DiagramEngine } from '../../DiagramEngine';\nimport { LabelModel } from './LabelModel';\nimport styled from '@emotion/styled';\n\nexport interface LabelWidgetProps {\n\tengine: DiagramEngine;\n\tlabel: LabelModel;\n\tindex: number;\n}\n\nnamespace S {\n\texport const Label = styled.div`\n\t\tdisplay: inline-block;\n\t\tposition: absolute;\n\t`;\n\n\texport const Foreign = styled.foreignObject`\n\t\tpointer-events: none;\n\t\toverflow: visible;\n\t`;\n}\n\nexport class LabelWidget extends React.Component {\n\tref: React.RefObject;\n\n\tconstructor(props: LabelWidgetProps) {\n\t\tsuper(props);\n\t\tthis.ref = React.createRef();\n\t}\n\n\tcomponentDidUpdate() {\n\t\twindow.requestAnimationFrame(this.calculateLabelPosition);\n\t}\n\n\tcomponentDidMount() {\n\t\twindow.requestAnimationFrame(this.calculateLabelPosition);\n\t}\n\n\tfindPathAndRelativePositionToRenderLabel = (index: number): { path: SVGPathElement; position: number } => {\n\t\t// an array to hold all path lengths, making sure we hit the DOM only once to fetch this information\n\t\tconst link = this.props.label.getParent();\n\t\tconst lengths = link.getRenderedPath().map((path) => path.getTotalLength());\n\n\t\t// calculate the point where we want to display the label\n\t\tlet labelPosition =\n\t\t\tlengths.reduce((previousValue, currentValue) => previousValue + currentValue, 0) *\n\t\t\t(index / (link.getLabels().length + 1));\n\n\t\t// find the path where the label will be rendered and calculate the relative position\n\t\tlet pathIndex = 0;\n\t\twhile (pathIndex < link.getRenderedPath().length) {\n\t\t\tif (labelPosition - lengths[pathIndex] < 0) {\n\t\t\t\treturn {\n\t\t\t\t\tpath: link.getRenderedPath()[pathIndex],\n\t\t\t\t\tposition: labelPosition\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// keep searching\n\t\t\tlabelPosition -= lengths[pathIndex];\n\t\t\tpathIndex++;\n\t\t}\n\t};\n\n\tcalculateLabelPosition = () => {\n\t\tconst found = this.findPathAndRelativePositionToRenderLabel(this.props.index + 1);\n\t\tif (!found) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst { path, position } = found;\n\n\t\tconst labelDimensions = {\n\t\t\twidth: this.ref.current.offsetWidth,\n\t\t\theight: this.ref.current.offsetHeight\n\t\t};\n\n\t\tconst pathCentre = path.getPointAtLength(position);\n\n\t\tconst labelCoordinates = {\n\t\t\tx: pathCentre.x - labelDimensions.width / 2 + this.props.label.getOptions().offsetX,\n\t\t\ty: pathCentre.y - labelDimensions.height / 2 + this.props.label.getOptions().offsetY\n\t\t};\n\n\t\tthis.ref.current.style.transform = `translate(${labelCoordinates.x}px, ${labelCoordinates.y}px)`;\n\t};\n\n\trender() {\n\t\tconst canvas = this.props.engine.getCanvas();\n\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{this.props.engine.getFactoryForLabel(this.props.label).generateReactWidget({ model: this.props.label })}\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport _forEach from 'lodash/forEach';\nimport { DiagramEngine } from '../../DiagramEngine';\nimport { NodeModel } from './NodeModel';\nimport { BaseEntityEvent, BaseModel, ListenerHandle, PeformanceWidget } from '@projectstorm/react-canvas-core';\nimport styled from '@emotion/styled';\nimport ResizeObserver from 'resize-observer-polyfill';\n\nexport interface NodeProps {\n\tnode: NodeModel;\n\tchildren?: any;\n\tdiagramEngine: DiagramEngine;\n}\n\nnamespace S {\n\texport const Node = styled.div`\n\t\tposition: absolute;\n\t\t-webkit-touch-callout: none; /* iOS Safari */\n\t\t-webkit-user-select: none; /* Chrome/Safari/Opera */\n\t\tuser-select: none;\n\t\tcursor: move;\n\t\tpointer-events: all;\n\t`;\n}\n\nexport class NodeWidget extends React.Component {\n\tob: any;\n\tref: React.RefObject;\n\tlistener: ListenerHandle;\n\n\tconstructor(props: NodeProps) {\n\t\tsuper(props);\n\t\tthis.ref = React.createRef();\n\t}\n\n\tcomponentWillUnmount(): void {\n\t\tthis.ob.disconnect();\n\t\tthis.ob = null;\n\n\t\tthis.listener?.deregister();\n\t\tthis.listener = null;\n\t}\n\n\tcomponentDidUpdate(prevProps: Readonly, prevState: Readonly, snapshot?: any): void {\n\t\tif (this.listener && this.props.node !== prevProps.node) {\n\t\t\tthis.listener.deregister();\n\t\t\tthis.installSelectionListener();\n\t\t}\n\t}\n\n\tinstallSelectionListener() {\n\t\tthis.listener = this.props.node.registerListener({\n\t\t\tselectionChanged: (event: BaseEntityEvent & { isSelected: boolean }) => {\n\t\t\t\tthis.forceUpdate();\n\t\t\t}\n\t\t});\n\t}\n\n\tupdateSize(width: number, height: number) {\n\t\tthis.props.node.updateDimensions({ width, height });\n\n\t\t//now mark the links as dirty\n\t\ttry {\n\t\t\t_forEach(this.props.node.getPorts(), (port) => {\n\t\t\t\tport.updateCoords(this.props.diagramEngine.getPortCoords(port));\n\t\t\t});\n\t\t} catch (ex) {}\n\t}\n\n\tcomponentDidMount(): void {\n\t\t// @ts-ignore\n\t\tthis.ob = new ResizeObserver((entities) => {\n\t\t\tconst bounds = entities[0].contentRect;\n\t\t\tthis.updateSize(bounds.width, bounds.height);\n\t\t});\n\n\t\tconst b = this.ref.current.getBoundingClientRect();\n\t\tthis.updateSize(b.width, b.height);\n\t\tthis.ob.observe(this.ref.current);\n\t\tthis.installSelectionListener();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t{() => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{this.props.diagramEngine.generateWidgetForNode(this.props.node)}\n\t\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t\t}}\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport { DefaultLabelModel } from './DefaultLabelModel';\nimport styled from '@emotion/styled';\n\nexport interface DefaultLabelWidgetProps {\n\tmodel: DefaultLabelModel;\n}\n\nnamespace S {\n\texport const Label = styled.div`\n\t\tbackground: rgba(0, 0, 0, 0.8);\n\t\tborder-radius: 5px;\n\t\tcolor: white;\n\t\tfont-size: 12px;\n\t\tpadding: 4px 8px;\n\t\tfont-family: sans-serif;\n\t\tuser-select: none;\n\t`;\n}\n\nexport class DefaultLabelWidget extends React.Component {\n\trender() {\n\t\treturn {this.props.model.getOptions().label};\n\t}\n}\n","import * as React from 'react';\nimport { PointModel } from '@projectstorm/react-diagrams-core';\nimport styled from '@emotion/styled';\n\nexport interface DefaultLinkPointWidgetProps {\n\tpoint: PointModel;\n\tcolor?: string;\n\tcolorSelected: string;\n}\n\nexport interface DefaultLinkPointWidgetState {\n\tselected: boolean;\n}\n\nnamespace S {\n\texport const PointTop = styled.circle`\n\t\tpointer-events: all;\n\t`;\n}\n\nexport class DefaultLinkPointWidget extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tselected: false\n\t\t};\n\t}\n\n\trender() {\n\t\tconst { point } = this.props;\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t {\n\t\t\t\t\t\tthis.setState({ selected: false });\n\t\t\t\t\t}}\n\t\t\t\t\tonMouseEnter={() => {\n\t\t\t\t\t\tthis.setState({ selected: true });\n\t\t\t\t\t}}\n\t\t\t\t\tdata-id={point.getID()}\n\t\t\t\t\tdata-linkid={point.getLink().getID()}\n\t\t\t\t\tcx={point.getPosition().x}\n\t\t\t\t\tcy={point.getPosition().y}\n\t\t\t\t\tr={15}\n\t\t\t\t\topacity={0.0}\n\t\t\t\t/>\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport { DefaultLinkModel } from './DefaultLinkModel';\nimport { DefaultLinkWidget } from './DefaultLinkWidget';\nimport styled from '@emotion/styled';\nimport { AbstractReactFactory } from '@projectstorm/react-canvas-core';\nimport { DiagramEngine } from '@projectstorm/react-diagrams-core';\nimport { css, keyframes } from '@emotion/react';\n\nnamespace S {\n\texport const Keyframes = keyframes`\n\t\tfrom {\n\t\t\tstroke-dashoffset: 24;\n\t\t}\n\t\tto {\n\t\t\tstroke-dashoffset: 0;\n\t\t}\n\t`;\n\n\tconst selected = css`\n\t\tstroke-dasharray: 10, 2;\n\t\tanimation: ${Keyframes} 1s linear infinite;\n\t`;\n\n\texport const Path = styled.path<{ selected: boolean }>`\n\t\t${(p) => p.selected && selected};\n\t\tfill: none;\n\t\tpointer-events: auto;\n\t`;\n}\n\nexport class DefaultLinkFactory extends AbstractReactFactory<\n\tLink,\n\tDiagramEngine\n> {\n\tconstructor(type = 'default') {\n\t\tsuper(type);\n\t}\n\n\tgenerateReactWidget(event): JSX.Element {\n\t\treturn ;\n\t}\n\n\tgenerateModel(event): Link {\n\t\treturn new DefaultLinkModel() as Link;\n\t}\n\n\tgenerateLinkSegment(model: Link, selected: boolean, path: string) {\n\t\treturn (\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport { DiagramEngine, PortWidget } from '@projectstorm/react-diagrams-core';\nimport { DefaultPortModel } from './DefaultPortModel';\nimport styled from '@emotion/styled';\n\nexport interface DefaultPortLabelProps {\n\tport: DefaultPortModel;\n\tengine: DiagramEngine;\n}\n\nnamespace S {\n\texport const PortLabel = styled.div`\n\t\tdisplay: flex;\n\t\tmargin-top: 1px;\n\t\talign-items: center;\n\t`;\n\n\texport const Label = styled.div`\n\t\tpadding: 0 5px;\n\t\tflex-grow: 1;\n\t`;\n\n\texport const Port = styled.div`\n\t\twidth: 15px;\n\t\theight: 15px;\n\t\tbackground: rgba(255, 255, 255, 0.1);\n\n\t\t&:hover {\n\t\t\tbackground: rgb(192, 255, 0);\n\t\t}\n\t`;\n}\n\nexport class DefaultPortLabel extends React.Component {\n\trender() {\n\t\tconst port = (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t\tconst label = {this.props.port.getOptions().label};\n\n\t\treturn (\n\t\t\t\n\t\t\t\t{this.props.port.getOptions().in ? port : label}\n\t\t\t\t{this.props.port.getOptions().in ? label : port}\n\t\t\t\n\t\t);\n\t}\n}\n","import * as React from 'react';\nimport _map from 'lodash/map';\nimport { DiagramEngine } from '@projectstorm/react-diagrams-core';\nimport { DefaultNodeModel } from './DefaultNodeModel';\nimport { DefaultPortLabel } from '../port/DefaultPortLabelWidget';\nimport styled from '@emotion/styled';\n\nnamespace S {\n\texport const Node = styled.div<{ background: string; selected: boolean }>`\n\t\tbackground-color: ${(p) => p.background};\n\t\tborder-radius: 5px;\n\t\tfont-family: sans-serif;\n\t\tcolor: white;\n\t\tborder: solid 2px black;\n\t\toverflow: visible;\n\t\tfont-size: 11px;\n\t\tborder: solid 2px ${(p) => (p.selected ? 'rgb(0,192,255)' : 'black')};\n\t`;\n\n\texport const Title = styled.div`\n\t\tbackground: rgba(0, 0, 0, 0.3);\n\t\tdisplay: flex;\n\t\twhite-space: nowrap;\n\t\tjustify-items: center;\n\t`;\n\n\texport const TitleName = styled.div`\n\t\tflex-grow: 1;\n\t\tpadding: 5px 5px;\n\t`;\n\n\texport const Ports = styled.div`\n\t\tdisplay: flex;\n\t\tbackground-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));\n\t`;\n\n\texport const PortsContainer = styled.div`\n\t\tflex-grow: 1;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\n\t\t&:first-of-type {\n\t\t\tmargin-right: 10px;\n\t\t}\n\n\t\t&:only-child {\n\t\t\tmargin-right: 0px;\n\t\t}\n\t`;\n}\n\nexport interface DefaultNodeProps {\n\tnode: DefaultNodeModel;\n\tengine: DiagramEngine;\n}\n\n/**\n * Default node that models the DefaultNodeModel. It creates two columns\n * for both all the input ports on the left, and the output ports on the right.\n */\nexport class DefaultNodeWidget extends React.Component {\n\tgeneratePort = (port) => {\n\t\treturn ;\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{this.props.node.getOptions().name}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{_map(this.props.node.getInPorts(), this.generatePort)}\n\t\t\t\t\t{_map(this.props.node.getOutPorts(), this.generatePort)}\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/579.98df6196.iframe.bundle.js b/579.98df6196.iframe.bundle.js new file mode 100644 index 000000000..d916a87ea --- /dev/null +++ b/579.98df6196.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 579.98df6196.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_projectstorm_react_diagrams_gallery=self.webpackChunk_projectstorm_react_diagrams_gallery||[]).push([[579],{"../node_modules/.pnpm/@base2+pretty-print-object@1.0.1/node_modules/@base2/pretty-print-object/dist/index.js":function(__unused_webpack_module,exports){"use strict";var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i{"use strict";__webpack_require__.d(__webpack_exports__,{aD:()=>action});var ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`;const esm_browser_native={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let i=0;i<256;++i)byteToHex.push((i+256).toString(16).slice(1));function unsafeStringify(arr,offset=0){return byteToHex[arr[offset+0]]+byteToHex[arr[offset+1]]+byteToHex[arr[offset+2]]+byteToHex[arr[offset+3]]+"-"+byteToHex[arr[offset+4]]+byteToHex[arr[offset+5]]+"-"+byteToHex[arr[offset+6]]+byteToHex[arr[offset+7]]+"-"+byteToHex[arr[offset+8]]+byteToHex[arr[offset+9]]+"-"+byteToHex[arr[offset+10]]+byteToHex[arr[offset+11]]+byteToHex[arr[offset+12]]+byteToHex[arr[offset+13]]+byteToHex[arr[offset+14]]+byteToHex[arr[offset+15]]}const esm_browser_v4=function v4(options,buf,offset){if(esm_browser_native.randomUUID&&!buf&&!options)return esm_browser_native.randomUUID();const rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf){offset=offset||0;for(let i=0;i<16;++i)buf[offset+i]=rnds[i];return buf}return unsafeStringify(rnds)};var external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),config={depth:10,clearOnStoryChange:!0,limit:50},findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},serializeArg=a=>{if("object"==typeof(e=a)&&e&&findProto(e,(proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)))&&"function"==typeof e.persist){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return"object"==typeof view&&"Window"===view?.constructor.name&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}var e;return a};function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=esm_browser_v4(),serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler.isAction=!0,handler}},"../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/preview.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{argsEnhancers:()=>argsEnhancers});var _chunk_AY7I2SME_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/.pnpm/@storybook+addon-actions@7.4.4_@types+react-dom@18.2.7_@types+react@18.2.22_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/addon-actions/dist/chunk-AY7I2SME.mjs"),isInInitialArgs=(name,initialArgs)=>typeof initialArgs[name]>"u"&&!(name in initialArgs),argsEnhancers=[context=>{let{initialArgs,argTypes,parameters:{actions}}=context;return actions?.disable||!argTypes?{}:Object.entries(argTypes).filter((([name,argType])=>!!argType.action)).reduce(((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=(0,_chunk_AY7I2SME_mjs__WEBPACK_IMPORTED_MODULE_0__.aD)("string"==typeof argType.action?argType.action:name)),acc)),{})},context=>{let{initialArgs,argTypes,parameters:{actions}}=context;if(!actions||actions.disable||!actions.argTypesRegex||!argTypes)return{};let argTypesRegex=new RegExp(actions.argTypesRegex);return Object.entries(argTypes).filter((([name])=>!!argTypesRegex.test(name))).reduce(((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=(0,_chunk_AY7I2SME_mjs__WEBPACK_IMPORTED_MODULE_0__.aD)(name)),acc)),{})}]},"../node_modules/.pnpm/@storybook+react@7.4.4_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/react/preview.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{applyDecorators:()=>applyDecorators,argTypesEnhancers:()=>argTypesEnhancers,decorators:()=>decorators,parameters:()=>parameters2,render:()=>render,renderToCanvas:()=>renderToCanvas});var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),react=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),client=__webpack_require__("../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/client.js"),nodes=new Map,WithCallback=({callback,children})=>{let once=(0,react.useRef)();return(0,react.useLayoutEffect)((()=>{once.current!==callback&&(once.current=callback,callback())}),[callback]),children},renderElement=async(node,el)=>{let root=await getReactRoot(el);return new Promise((resolve=>{root.render(react.createElement(WithCallback,{callback:()=>resolve(null)},node))}))},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el))},getReactRoot=async el=>{let root=nodes.get(el);return root||(root=client.createRoot(el),nodes.set(el,root)),root},{FRAMEWORK_OPTIONS}=external_STORYBOOK_MODULE_GLOBAL_.global,render=(args,context)=>{let{id,component:Component}=context;if(!Component)throw new Error(`Unable to render story ${id} as the component annotation is missing from the default export`);return react.createElement(Component,{...args})},ErrorBoundary=class extends react.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError}=this.state,{showMain}=this.props;hasError||showMain()}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:children}},Wrapper=FRAMEWORK_OPTIONS?.strictMode?react.StrictMode:react.Fragment;async function renderToCanvas({storyContext,unboundStoryFn,showMain,showException,forceRemount},canvasElement){let content=react.createElement(ErrorBoundary,{showMain,showException},react.createElement(unboundStoryFn,{...storyContext})),element=Wrapper?react.createElement(Wrapper,null,content):content;return forceRemount&&unmountElement(canvasElement),await renderElement(element,canvasElement),()=>unmountElement(canvasElement)}var TypeSystem2,mapValues=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js"),mapValues_default=__webpack_require__.n(mapValues),doctrine=__webpack_require__("../node_modules/.pnpm/doctrine@3.0.0/node_modules/doctrine/lib/doctrine.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),convertSig=type=>{switch(type.type){case"function":return{name:"function"};case"object":let values={};return type.signature.properties.forEach((prop=>{values[prop.key]=convert(prop.value)})),{name:"object",value:values};default:throw new Error(`Unknown: ${type}`)}},convert=type=>{let{name,raw}=type,base={};switch(typeof raw<"u"&&(base.raw=raw),type.name){case"string":case"number":case"symbol":case"boolean":return{...base,name};case"Array":return{...base,name:"array",value:type.elements.map(convert)};case"signature":return{...base,...convertSig(type)};case"union":case"intersection":return{...base,name,value:type.elements.map(convert)};default:return{...base,name:"other",value:name}}},isLiteral=type=>"literal"===type.name,toEnumOption=element=>element.value.replace(/['|"]/g,""),convertSig2=type=>{switch(type.type){case"function":return{name:"function"};case"object":let values={};return type.signature.properties.forEach((prop=>{values[prop.key]=convert2(prop.value)})),{name:"object",value:values};default:throw new Error(`Unknown: ${type}`)}},convert2=type=>{let{name,raw}=type,base={};switch(typeof raw<"u"&&(base.raw=raw),type.name){case"literal":return{...base,name:"other",value:type.value};case"string":case"number":case"symbol":case"boolean":return{...base,name};case"Array":return{...base,name:"array",value:type.elements.map(convert2)};case"signature":return{...base,...convertSig2(type)};case"union":return type.elements.every(isLiteral)?{...base,name:"enum",value:type.elements.map(toEnumOption)}:{...base,name,value:type.elements.map(convert2)};case"intersection":return{...base,name,value:type.elements.map(convert2)};default:return{...base,name:"other",value:name}}},QUOTE_REGEX=/^['"]|['"]$/g,SIGNATURE_REGEXP=/^\(.*\) => /,convert3=type=>{let{name,raw,computed,value}=type,base={};switch(typeof raw<"u"&&(base.raw=raw),name){case"enum":{let values2=computed?value:value.map((v=>{let trimmedValue=v.value.replace(QUOTE_REGEX,"");return(str2=>QUOTE_REGEX.test(str2))(v.value)||Number.isNaN(Number(trimmedValue))?trimmedValue:Number(trimmedValue)}));return{...base,name,value:values2}}case"string":case"number":case"symbol":case"object":return{...base,name};case"func":return{...base,name:"function"};case"bool":case"boolean":return{...base,name:"boolean"};case"arrayOf":case"array":return{...base,name:"array",value:value&&convert3(value)};case"objectOf":return{...base,name,value:convert3(value)};case"shape":case"exact":let values=mapValues_default()(value,(field=>convert3(field)));return{...base,name:"object",value:values};case"union":return{...base,name:"union",value:value.map((v=>convert3(v)))};default:{if(name?.indexOf("|")>0)try{let literalValues=name.split("|").map((v=>JSON.parse(v)));return{...base,name:"enum",value:literalValues}}catch{}let otherVal=value?`${name}(${value})`:name,otherName=SIGNATURE_REGEXP.test(name)?"function":"other";return{...base,name:otherName,value:otherVal}}}},convert4=docgenInfo=>{let{type,tsType,flowType}=docgenInfo;return null!=type?convert3(type):null!=tsType?convert(tsType):null!=flowType?convert2(flowType):null},TypeSystem=((TypeSystem2=TypeSystem||{}).JAVASCRIPT="JavaScript",TypeSystem2.FLOW="Flow",TypeSystem2.TYPESCRIPT="TypeScript",TypeSystem2.UNKNOWN="Unknown",TypeSystem2),BLACKLIST=["null","undefined"];function isDefaultValueBlacklisted(value){return BLACKLIST.some((x=>x===value))}var str=obj=>{if(!obj)return"";if("string"==typeof obj)return obj;throw new Error(`Description: expected string, got: ${JSON.stringify(obj)}`)};function hasDocgen(component){return!!component.__docgenInfo}function getDocgenSection(component,section){return hasDocgen(component)?component.__docgenInfo[section]:null}var DEFAULT_OPTIONS={tags:["param","arg","argument","returns","ignore","deprecated"]},parseJsDoc=(value,options=DEFAULT_OPTIONS)=>{if(!function containsJsDoc(value){return null!=value&&value.includes("@")}(value))return{includesJsDoc:!1,ignore:!1};let jsDocAst=function parse(content,tags){let ast;try{ast=doctrine.parse(content,{tags,sloppy:!0})}catch(e){throw console.error(e),new Error("Cannot parse JSDoc tags.")}return ast}(value,options.tags),extractedTags=function extractJsDocTags(ast){let extractedTags={params:null,deprecated:null,returns:null,ignore:!1};for(let i=0;iparamName.includes("null")?paramName.replace("-null","").replace(".null",""):tag.name,getTypeName:()=>null!=tag.type?extractTypeName(tag.type):null}:null}function extractDeprecated(tag){return null!=tag.title?tag.description:null}function extractReturns(tag){return null!=tag.type?{type:tag.type,description:tag.description,getTypeName:()=>extractTypeName(tag.type)}:null}function extractTypeName(type){return"NameExpression"===type.type?type.name:"RecordType"===type.type?`({${type.fields.map((field=>{if(null!=field.value){let valueTypeName=extractTypeName(field.value);return`${field.key}: ${valueTypeName}`}return field.key})).join(", ")}})`:"UnionType"===type.type?`(${type.elements.map(extractTypeName).join("|")})`:"ArrayType"===type.type?"[]":"TypeApplication"===type.type&&null!=type.expression&&"Array"===type.expression.name?`${extractTypeName(type.applications[0])}[]`:"NullableType"===type.type||"NonNullableType"===type.type||"OptionalType"===type.type?extractTypeName(type.expression):"AllLiteral"===type.type?"any":null}function isTooLongForTypeSummary(value){return value.length>90}function isTooLongForDefaultValueSummary(value){return value.length>50}function createSummaryValue(summary,detail){return summary===detail?{summary}:{summary,detail}}function generateUnionElement({name,value,elements,raw}){return value??(null!=elements?elements.map(generateUnionElement).join(" | "):raw??name)}function generateSignature(flowType){let{type}=flowType;return"object"===type?function generateObjectSignature({type,raw}){return null!=raw?isTooLongForTypeSummary(raw)?createSummaryValue(type,raw):createSummaryValue(raw):createSummaryValue(type)}(flowType):function generateFuncSignature({type,raw}){return createSummaryValue(null!=raw?raw:type)}(flowType)}function createType(type){if(null==type)return null;switch(type.name){case"union":return function generateUnion({name,raw,elements}){return createSummaryValue(null!=elements?elements.map(generateUnionElement).join(" | "):null!=raw?raw.replace(/^\|\s*/,""):name)}(type);case"signature":return generateSignature(type);default:return function generateDefault({name,raw}){return null!=raw?isTooLongForTypeSummary(raw)?createSummaryValue(name,raw):createSummaryValue(raw):createSummaryValue(name)}(type)}}function createDefaultValue(defaultValue,type){if(null!=defaultValue){let{value}=defaultValue;if(!isDefaultValueBlacklisted(value))return isTooLongForDefaultValueSummary(value)?createSummaryValue(type.name,value):createSummaryValue(value)}return null}function createType2({tsType,required}){return null==tsType?null:createSummaryValue(required?tsType.name:tsType.name.replace(" | undefined",""))}function createDefaultValue2({defaultValue}){if(null!=defaultValue){let{value}=defaultValue;if(!isDefaultValueBlacklisted(value))return createSummaryValue(value)}return null}function createType3(type){return null!=type?createSummaryValue(type.name):null}function createDefaultValue3(defaultValue,type){if(null!=defaultValue){let{value}=defaultValue;if(!isDefaultValueBlacklisted(value))return function isReactDocgenTypescript(defaultValue){let{computed,func}=defaultValue;return typeof computed>"u"&&typeof func>"u"}(defaultValue)&&function isStringValued(type){return!!type&&("string"===type.name||"enum"===type.name&&Array.isArray(type.value)&&type.value.every((({value:tv})=>"string"==typeof tv&&'"'===tv[0]&&'"'===tv[tv.length-1])))}(type)?createSummaryValue(JSON.stringify(value)):createSummaryValue(value)}return null}function createBasicPropDef(name,type,docgenInfo){let{description,required,defaultValue}=docgenInfo;return{name,type:createType3(type),required,description,defaultValue:createDefaultValue3(defaultValue,type)}}function applyJsDocResult(propDef,jsDocParsingResult){if(jsDocParsingResult.includesJsDoc){let{description,extractedTags}=jsDocParsingResult;null!=description&&(propDef.description=jsDocParsingResult.description);let value={...extractedTags,params:extractedTags?.params?.map((x=>({name:x.getPrettyName(),description:x.description})))};Object.values(value).filter(Boolean).length>0&&(propDef.jsDocTags=value)}return propDef}var javaScriptFactory=(propName,docgenInfo,jsDocParsingResult)=>{let propDef=createBasicPropDef(propName,docgenInfo.type,docgenInfo);return propDef.sbType=convert4(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},tsFactory=(propName,docgenInfo,jsDocParsingResult)=>{let propDef=((propName,docgenInfo)=>{let{description,required}=docgenInfo;return{name:propName,type:createType2(docgenInfo),required,description,defaultValue:createDefaultValue2(docgenInfo)}})(propName,docgenInfo);return propDef.sbType=convert4(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},flowFactory=(propName,docgenInfo,jsDocParsingResult)=>{let propDef=((propName,docgenInfo)=>{let{flowType,description,required,defaultValue}=docgenInfo;return{name:propName,type:createType(flowType),required,description,defaultValue:createDefaultValue(defaultValue,flowType)}})(propName,docgenInfo);return propDef.sbType=convert4(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},unknownFactory=(propName,docgenInfo,jsDocParsingResult)=>applyJsDocResult(createBasicPropDef(propName,{name:"unknown"},docgenInfo),jsDocParsingResult),getPropDefFactory=typeSystem=>{switch(typeSystem){case"JavaScript":return javaScriptFactory;case"TypeScript":return tsFactory;case"Flow":return flowFactory;default:return unknownFactory}},getTypeSystem=docgenInfo=>null!=docgenInfo.type?"JavaScript":null!=docgenInfo.flowType?"Flow":null!=docgenInfo.tsType?"TypeScript":"Unknown",extractComponentProps=(component,section)=>{let docgenSection=getDocgenSection(component,section);return function isValidDocgenSection(docgenSection){return null!=docgenSection&&Object.keys(docgenSection).length>0}(docgenSection)?Array.isArray(docgenSection)?(docgenSection=>{let typeSystem=getTypeSystem(docgenSection[0]),createPropDef=getPropDefFactory(typeSystem);return docgenSection.map((item=>{let sanitizedItem=item;return item.type?.elements&&(sanitizedItem={...item,type:{...item.type,value:item.type.elements}}),extractProp(sanitizedItem.name,sanitizedItem,typeSystem,createPropDef)}))})(docgenSection):(docgenSection=>{let docgenPropsKeys=Object.keys(docgenSection),typeSystem=getTypeSystem(docgenSection[docgenPropsKeys[0]]),createPropDef=getPropDefFactory(typeSystem);return docgenPropsKeys.map((propName=>{let docgenInfo=docgenSection[propName];return null!=docgenInfo?extractProp(propName,docgenInfo,typeSystem,createPropDef):null})).filter(Boolean)})(docgenSection):[]};function extractProp(propName,docgenInfo,typeSystem,createPropDef){let jsDocParsingResult=parseJsDoc(docgenInfo.description);return jsDocParsingResult.includesJsDoc&&jsDocParsingResult.ignore?null:{propDef:createPropDef(propName,docgenInfo,jsDocParsingResult),jsDocTags:jsDocParsingResult.extractedTags,docgenInfo,typeSystem}}var SourceType2,SourceType=((SourceType2=SourceType||{}).AUTO="auto",SourceType2.CODE="code",SourceType2.DYNAMIC="dynamic",SourceType2),prop_types=__webpack_require__("../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),html_tags=__webpack_require__("../node_modules/.pnpm/html-tags@3.2.0/node_modules/html-tags/index.js"),escodegen=__webpack_require__("../node_modules/.pnpm/escodegen@2.1.0/node_modules/escodegen/escodegen.js");function dedent(templ){for(var values=[],_i=1;_i{let prettyName=x.getPrettyName(),typeName=x.getTypeName();return null!=typeName?`${prettyName}: ${typeName}`:prettyName}));funcParts.push(`(${funcParams.join(", ")})`)}else funcParts.push("()");return hasReturns&&funcParts.push(`=> ${returns.getTypeName()}`),funcParts.join(" ")}function generateShortFuncSignature(params,returns){let hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";let funcParts=[];return hasParams?funcParts.push("( ... )"):funcParts.push("()"),hasReturns&&funcParts.push(`=> ${returns.getTypeName()}`),funcParts.join(" ")}var CUSTOM_CAPTION="custom",OBJECT_CAPTION="object",ARRAY_CAPTION="array",CLASS_CAPTION="class",FUNCTION_CAPTION="func",ELEMENT_CAPTION="element";function isHtmlTag(tagName){return html_tags.includes(tagName.toLowerCase())}var BASIC_OPTIONS={format:{indent:{style:" "},semicolons:!1}},COMPACT_OPTIONS={...BASIC_OPTIONS,format:{newline:""}},PRETTY_OPTIONS={...BASIC_OPTIONS};function generateCode(ast,compact=!1){return(0,escodegen.R_)(ast,compact?COMPACT_OPTIONS:PRETTY_OPTIONS)}function generateObjectCode(ast,compact=!1){return compact?function generateCompactObjectCode(ast){let result=generateCode(ast,!0);return result.endsWith(" }")||(result=`${result.slice(0,-1)} }`),result}(ast):generateCode(ast)}function generateArrayCode(ast,compact=!1){return compact?function generateCompactArrayCode(ast){let result=generateCode(ast,!0);return result.startsWith("[ ")&&(result=result.replace("[ ","[")),result}(ast):function generateMultilineArrayCode(ast){let result=generateCode(ast);return result.endsWith(" }]")&&(result=dedent(result)),result}(ast)}var isMemo=component=>component.$$typeof===Symbol.for("react.memo"),ACORN_WALK_VISITORS={...base,JSXElement:()=>{}},acornParser=acorn.Parser.extend(acorn_jsx_default()());function extractIdentifierName(identifierNode){return null!=identifierNode?identifierNode.name:null}function filterAncestors(ancestors){return ancestors.filter((x=>"ObjectExpression"===x.type||"ArrayExpression"===x.type))}function calculateNodeDepth(node){let depths=[];return function ancestor(node,visitors,baseVisitor,state,override){var ancestors=[];baseVisitor||(baseVisitor=base),function c(node,st,override){var type=override||node.type,found=visitors[type],isNew=node!==ancestors[ancestors.length-1];isNew&&ancestors.push(node),baseVisitor[type](node,st,c),found&&found(node,st||ancestors,ancestors),isNew&&ancestors.pop()}(node,state,override)}(node,{ObjectExpression(_,ancestors){depths.push(filterAncestors(ancestors).length)},ArrayExpression(_,ancestors){depths.push(filterAncestors(ancestors).length)}},ACORN_WALK_VISITORS),Math.max(...depths)}function parseObject(objectNode){return{inferredType:{type:"Object",depth:calculateNodeDepth(objectNode)},ast:objectNode}}function parseExpression(expression){switch(expression.type){case"Identifier":return function parseIdentifier(identifierNode){return{inferredType:{type:"Identifier",identifier:extractIdentifierName(identifierNode)},ast:identifierNode}}(expression);case"Literal":return function parseLiteral(literalNode){return{inferredType:{type:"Literal"},ast:literalNode}}(expression);case"FunctionExpression":case"ArrowFunctionExpression":return function parseFunction(funcNode){let innerJsxElementNode;simple(funcNode.body,{JSXElement(node){innerJsxElementNode=node}},ACORN_WALK_VISITORS);let inferredType={type:null!=innerJsxElementNode?"Element":"Function",params:funcNode.params,hasParams:0!==funcNode.params.length},identifierName=extractIdentifierName(funcNode.id);return null!=identifierName&&(inferredType.identifier=identifierName),{inferredType,ast:funcNode}}(expression);case"ClassExpression":return function parseClass(classNode){let innerJsxElementNode;return simple(classNode.body,{JSXElement(node){innerJsxElementNode=node}},ACORN_WALK_VISITORS),{inferredType:{type:null!=innerJsxElementNode?"Element":"Class",identifier:extractIdentifierName(classNode.id)},ast:classNode}}(expression);case"JSXElement":return function parseJsxElement(jsxElementNode){let inferredType={type:"Element"},identifierName=extractIdentifierName(jsxElementNode.openingElement.name);return null!=identifierName&&(inferredType.identifier=identifierName),{inferredType,ast:jsxElementNode}}(expression);case"CallExpression":return function parseCall(callNode){return"shape"===extractIdentifierName("MemberExpression"===callNode.callee.type?callNode.callee.property:callNode.callee)?parseObject(callNode.arguments[0]):null}(expression);case"ObjectExpression":return parseObject(expression);case"ArrayExpression":return function parseArray(arrayNode){return{inferredType:{type:"Array",depth:calculateNodeDepth(arrayNode)},ast:arrayNode}}(expression);default:return null}}function config_parse(value){let ast=acornParser.parse(`(${value})`),parsingResult={inferredType:{type:"Unknown"},ast};if(null!=ast.body[0]){let rootNode=ast.body[0];switch(rootNode.type){case"ExpressionStatement":{let expressionResult=parseExpression(rootNode.expression);null!=expressionResult&&(parsingResult=expressionResult);break}}}return parsingResult}function inspectValue(value){try{return{...config_parse(value)}}catch{}return{inferredType:{type:"Unknown"}}}var MAX_FUNC_LENGTH=150;function createTypeDef({name,short,compact,full,inferredType}){return{name,short,compact,full:full??short,inferredType}}function cleanPropTypes(value){return value.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function splitIntoLines(value){return value.split(/\r?\n/)}function prettyObject(ast,compact=!1){return cleanPropTypes(generateObjectCode(ast,compact))}function prettyArray(ast,compact=!1){return cleanPropTypes(generateCode(ast,compact))}function generateTypeFromString(value,originalTypeName){let short,compact,full,{inferredType,ast}=inspectValue(value),{type}=inferredType;switch(type){case"Identifier":case"Literal":short=value,compact=value;break;case"Object":{let{depth}=inferredType;short=OBJECT_CAPTION,compact=1===depth?prettyObject(ast,!0):null,full=prettyObject(ast);break}case"Element":{let{identifier}=inferredType;short=null==identifier||isHtmlTag(identifier)?ELEMENT_CAPTION:identifier,compact=1===splitIntoLines(value).length?value:null,full=value;break}case"Array":{let{depth}=inferredType;short=ARRAY_CAPTION,compact=depth<=2?prettyArray(ast,!0):null,full=prettyArray(ast);break}default:short=function getCaptionForInspectionType(type){switch(type){case"Object":return OBJECT_CAPTION;case"Array":return ARRAY_CAPTION;case"Class":return CLASS_CAPTION;case"Function":return FUNCTION_CAPTION;case"Element":return ELEMENT_CAPTION;default:return CUSTOM_CAPTION}}(type),compact=1===splitIntoLines(value).length?value:null,full=value}return createTypeDef({name:originalTypeName,short,compact,full,inferredType:type})}function objectOf(of){return`objectOf(${of})`}function generateEnum(type){if(Array.isArray(type.value)){let values=type.value.reduce(((acc,v)=>{let{short,compact,full}=function generateEnumValue({value,computed}){return computed?generateTypeFromString(value,"enumvalue"):createTypeDef({name:"enumvalue",short:value,compact:value})}(v);return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:"enum",short:values.short.join(" | "),compact:values.compact.every((x=>null!=x))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:"enum",short:type.value,compact:type.value})}function braceAfter(of){return`${of}[]`}function braceAround(of){return`[${of}]`}function createArrayOfObjectTypeDef(short,compact,full){return createTypeDef({name:"arrayOf",short:braceAfter(short),compact:null!=compact?braceAround(compact):null,full:full&&braceAround(full)})}function generateType(type,extractedProp){try{switch(type.name){case"custom":return function generateCustom({raw}){return null!=raw?generateTypeFromString(raw,"custom"):createTypeDef({name:"custom",short:CUSTOM_CAPTION,compact:CUSTOM_CAPTION})}(type);case"func":return function generateFunc(extractedProp){let{jsDocTags}=extractedProp;return null==jsDocTags||null==jsDocTags.params&&null==jsDocTags.returns?createTypeDef({name:"func",short:FUNCTION_CAPTION,compact:FUNCTION_CAPTION}):createTypeDef({name:"func",short:generateShortFuncSignature(jsDocTags.params,jsDocTags.returns),compact:null,full:config_generateFuncSignature(jsDocTags.params,jsDocTags.returns)})}(extractedProp);case"shape":return function generateShape(type,extractedProp){let fields=Object.keys(type.value).map((key=>`${key}: ${generateType(type.value[key],extractedProp).full}`)).join(", "),{inferredType,ast}=inspectValue(`{ ${fields} }`),{depth}=inferredType;return createTypeDef({name:"shape",short:OBJECT_CAPTION,compact:1===depth&&ast?prettyObject(ast,!0):null,full:ast?prettyObject(ast):null})}(type,extractedProp);case"instanceOf":return createTypeDef({name:"instanceOf",short:type.value,compact:type.value});case"objectOf":return function generateObjectOf(type,extractedProp){let{short,compact,full}=generateType(type.value,extractedProp);return createTypeDef({name:"objectOf",short:objectOf(short),compact:null!=compact?objectOf(compact):null,full:full&&objectOf(full)})}(type,extractedProp);case"union":return function config_generateUnion(type,extractedProp){if(Array.isArray(type.value)){let values=type.value.reduce(((acc,v)=>{let{short,compact,full}=generateType(v,extractedProp);return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:"union",short:values.short.join(" | "),compact:values.compact.every((x=>null!=x))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:"union",short:type.value,compact:null})}(type,extractedProp);case"enum":return generateEnum(type);case"arrayOf":return function generateArray(type,extractedProp){let{name,short,compact,full,inferredType}=generateType(type.value,extractedProp);if("custom"===name){if("Object"===inferredType)return createArrayOfObjectTypeDef(short,compact,full)}else if("shape"===name)return createArrayOfObjectTypeDef(short,compact,full);return createTypeDef({name:"arrayOf",short:braceAfter(short),compact:braceAfter(short)})}(type,extractedProp);default:return createTypeDef({name:type.name,short:type.name,compact:type.name})}}catch(e){console.error(e)}return createTypeDef({name:"unknown",short:"unknown",compact:"unknown"})}function generateObject({inferredType,ast}){let{depth}=inferredType;if(1===depth){let compactObject=generateObjectCode(ast,!0);if(!isTooLongForDefaultValueSummary(compactObject))return createSummaryValue(compactObject)}return createSummaryValue(OBJECT_CAPTION,generateObjectCode(ast))}function generateArray2({inferredType,ast}){let{depth}=inferredType;if(depth<=2){let compactArray=generateArrayCode(ast,!0);if(!isTooLongForDefaultValueSummary(compactArray))return createSummaryValue(compactArray)}return createSummaryValue(ARRAY_CAPTION,generateArrayCode(ast))}function getPrettyFuncIdentifier(identifier,hasArguments){return hasArguments?`${identifier}( ... )`:`${identifier}()`}function getPrettyElementIdentifier(identifier){return`<${identifier} />`}function getPrettyIdentifier(inferredType){let{type,identifier}=inferredType;switch(type){case"Function":return getPrettyFuncIdentifier(identifier,inferredType.hasParams);case"Element":return getPrettyElementIdentifier(identifier);default:return identifier}}function config_createDefaultValue(defaultValue){try{let inspectionResult=inspectValue(defaultValue);switch(inspectionResult.inferredType.type){case"Object":return generateObject(inspectionResult);case"Function":return function generateFunc2({inferredType,ast}){let{identifier}=inferredType;if(null!=identifier)return createSummaryValue(getPrettyIdentifier(inferredType),generateCode(ast));let prettyCaption=generateCode(ast,!0);return isTooLongForDefaultValueSummary(prettyCaption)?createSummaryValue(FUNCTION_CAPTION,generateCode(ast)):createSummaryValue(prettyCaption)}(inspectionResult);case"Element":return function generateElement(defaultValue,inspectionResult){let{inferredType}=inspectionResult,{identifier}=inferredType;if(null!=identifier&&!isHtmlTag(identifier))return createSummaryValue(getPrettyIdentifier(inferredType),defaultValue);return isTooLongForDefaultValueSummary(defaultValue)?createSummaryValue(ELEMENT_CAPTION,defaultValue):createSummaryValue(defaultValue)}(defaultValue,inspectionResult);case"Array":return generateArray2(inspectionResult);default:return null}}catch(e){console.error(e)}return null}function isReactElement(element){return null!=element.$$typeof}function extractFunctionName(func,propName){let{name}=func;return""!==name&&"anonymous"!==name&&name!==propName?name:null}var DEFAULT_TYPE_RESOLVERS={string:rawDefaultProp=>createSummaryValue(JSON.stringify(rawDefaultProp)),object:rawDefaultProp=>{if(isReactElement(rawDefaultProp)&&null!=rawDefaultProp.type)return function generateReactObject(rawDefaultProp){let{type}=rawDefaultProp,{displayName}=type,jsx2=(0,cjs.ZP)(rawDefaultProp,{});if(null!=displayName)return createSummaryValue(getPrettyElementIdentifier(displayName),jsx2);if(isString_default()(type)&&isHtmlTag(type)){let jsxSummary=(0,cjs.ZP)(rawDefaultProp,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!isTooLongForDefaultValueSummary(jsxSummary))return createSummaryValue(jsxSummary)}return createSummaryValue(ELEMENT_CAPTION,jsx2)}(rawDefaultProp);if(isPlainObject_default()(rawDefaultProp)){return generateObject(inspectValue(JSON.stringify(rawDefaultProp)))}if(Array.isArray(rawDefaultProp)){return generateArray2(inspectValue(JSON.stringify(rawDefaultProp)))}return createSummaryValue(OBJECT_CAPTION)},function:(rawDefaultProp,propDef)=>{let inspectionResult,isElement=!1;if(isFunction_default()(rawDefaultProp.render))isElement=!0;else if(null!=rawDefaultProp.prototype&&isFunction_default()(rawDefaultProp.prototype.render))isElement=!0;else{let innerElement;try{inspectionResult=inspectValue(rawDefaultProp.toString());let{hasParams,params}=inspectionResult.inferredType;hasParams?1===params.length&&"ObjectPattern"===params[0].type&&(innerElement=rawDefaultProp({})):innerElement=rawDefaultProp(),null!=innerElement&&isReactElement(innerElement)&&(isElement=!0)}catch{}}let funcName=extractFunctionName(rawDefaultProp,propDef.name);if(null!=funcName){if(isElement)return createSummaryValue(getPrettyElementIdentifier(funcName));null!=inspectionResult&&(inspectionResult=inspectValue(rawDefaultProp.toString()));let{hasParams}=inspectionResult.inferredType;return createSummaryValue(getPrettyFuncIdentifier(funcName,hasParams))}return createSummaryValue(isElement?ELEMENT_CAPTION:FUNCTION_CAPTION)},default:rawDefaultProp=>createSummaryValue(rawDefaultProp.toString())};function createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef,typeResolvers=DEFAULT_TYPE_RESOLVERS){try{switch(typeof rawDefaultProp){case"string":return typeResolvers.string(rawDefaultProp,propDef);case"object":return typeResolvers.object(rawDefaultProp,propDef);case"function":return typeResolvers.function(rawDefaultProp,propDef);default:return typeResolvers.default(rawDefaultProp,propDef)}}catch(e){console.error(e)}return null}var rawDefaultPropTypeResolvers=function createTypeResolvers(customResolvers={}){return{...DEFAULT_TYPE_RESOLVERS,...customResolvers}}({function:(rawDefaultProp,{name,type})=>{let isElement="element"===type.summary||"elementType"===type.summary,funcName=extractFunctionName(rawDefaultProp,name);if(null!=funcName){if(isElement)return createSummaryValue(getPrettyElementIdentifier(funcName));let{hasParams}=inspectValue(rawDefaultProp.toString()).inferredType;return createSummaryValue(getPrettyFuncIdentifier(funcName,hasParams))}return createSummaryValue(isElement?ELEMENT_CAPTION:FUNCTION_CAPTION)}});function enhancePropTypesProp(extractedProp,rawDefaultProp){let{propDef}=extractedProp,newtype=function config_createType(extractedProp){let{type}=extractedProp.docgenInfo;if(null==type)return null;try{switch(type.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short,compact,full}=generateType(type,extractedProp);return null==compact||isTooLongForTypeSummary(compact)?full?createSummaryValue(short,full):createSummaryValue(short):createSummaryValue(compact)}case"func":{let detail,{short,full}=generateType(type,extractedProp),summary=short;return full&&full.lengthextractedProps.find((y=>y.name===x)))).filter(Boolean):extractedProps}(extractedProps.map((x=>enhancePropTypesProp(x,rawDefaultProps[x.propDef.name]))),component)}function enhanceTypeScriptProps(extractedProps){return extractedProps.map((prop=>function enhanceTypeScriptProp(extractedProp,rawDefaultProp){let{propDef}=extractedProp,{defaultValue}=extractedProp.docgenInfo;if(null!=defaultValue&&null!=defaultValue.value){let newDefaultValue=config_createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){let newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}return propDef}(prop)))}var propTypesMap=new Map;function getPropDefs(component,section){let processedComponent=component;!hasDocgen(component)&&!component.propTypes&&isMemo(component)&&(processedComponent=component.type);let extractedProps=extractComponentProps(processedComponent,section);if(0===extractedProps.length)return[];switch(extractedProps[0].typeSystem){case TypeSystem.JAVASCRIPT:return enhancePropTypesProps(extractedProps,component);case TypeSystem.TYPESCRIPT:return enhanceTypeScriptProps(extractedProps);default:return extractedProps.map((x=>x.propDef))}}Object.keys(prop_types_default()).forEach((typeName=>{let type=prop_types_default()[typeName];propTypesMap.set(type,typeName),propTypesMap.set(type.isRequired,typeName)}));function simplifyNodeForStringify(node){if((0,react.isValidElement)(node)){let props=Object.keys(node.props).reduce(((acc,cur)=>(acc[cur]=simplifyNodeForStringify(node.props[cur]),acc)),{});return{...node,props,_owner:null}}return Array.isArray(node)?node.map(simplifyNodeForStringify):node}var renderJsx=(code,options)=>{if(typeof code>"u")return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Too many skip or undefined component"),null;let renderedJSX=code,Type=renderedJSX.type;for(let i=0;i"u")return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Cannot skip undefined element"),null;if(react.Children.count(renderedJSX)>1)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Trying to skip an array of elements"),null;typeof renderedJSX.props.children>"u"?(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Not enough children to skip elements."),"function"==typeof renderedJSX.type&&""===renderedJSX.type.name&&(renderedJSX=react.createElement(Type,{...renderedJSX.props}))):renderedJSX="function"==typeof renderedJSX.props.children?renderedJSX.props.children():renderedJSX.props.children}let opts={..."string"==typeof options.displayName?{showFunctions:!0,displayName:()=>options.displayName}:{displayName:el=>el.type.displayName||(el.type===Symbol.for("react.profiler")?"Profiler":null)||getDocgenSection(el.type,"displayName")||("_default"!==el.type.name?el.type.name:null)||("function"==typeof el.type?"No Display Name":null)||(el.type.$$typeof===Symbol.for("react.forward_ref")?el.type.render.name:null)||(isMemo(el.type)?el.type.type.name:null)||el.type},filterProps:(value,key)=>void 0!==value,...options};return react.Children.map(code,(c=>{let child="number"==typeof c?c.toString():c,string=("function"==typeof cjs.ZP?cjs.ZP:cjs.ZP.default)(simplifyNodeForStringify(child),opts);if(string.indexOf(""")>-1){let matches=string.match(/\S+=\\"([^"]*)\\"/g);matches&&matches.forEach((match=>{string=string.replace(match,match.replace(/"/g,"'"))}))}return string})).join("\n").replace(/function\s+noRefCheck\(\)\s+\{\}/g,"() => {}")},defaultOpts={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},mdxToJsx=node=>{if(!(node=>"MDXCreateElement"===node.type?.displayName&&!!node.props?.mdxType)(node))return node;let{mdxType,originalType,children,...rest}=node.props,jsxChildren=[];return children&&(jsxChildren=(Array.isArray(children)?children:[children]).map(mdxToJsx)),(0,react.createElement)(originalType,rest,...jsxChildren)},jsxDecorator=(storyFn,context)=>{let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),skip=(context=>{let sourceParams=context?.parameters.docs?.source,isArgsStory=context?.parameters.__isArgsStory;return sourceParams?.type!==SourceType.DYNAMIC&&(!isArgsStory||sourceParams?.code||sourceParams?.type===SourceType.CODE)})(context),jsx2="";(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{if(!skip){let{id,unmappedArgs}=context;channel.emit("storybook/docs/snippet-rendered",{id,source:jsx2,args:unmappedArgs})}}));let story=storyFn();if(skip)return story;let options={...defaultOpts,...context?.parameters.jsx||{}},storyJsx=context?.parameters.docs?.source?.excludeDecorators?context.originalStoryFn(context.args,context):story,sourceJsx=mdxToJsx(storyJsx),rendered=renderJsx(sourceJsx,options);return rendered&&(jsx2=rendered),story},decorators=[jsxDecorator],argTypesEnhancers=[context=>{let{component,argTypes:userArgTypes,parameters:{docs={}}}=context,{extractArgTypes}=docs,extractedArgTypes=extractArgTypes&&component?extractArgTypes(component):{};return extractedArgTypes?(0,external_STORYBOOK_MODULE_PREVIEW_API_.combineParameters)(extractedArgTypes,userArgTypes):userArgTypes}],applyDecorators=(storyFn,decorators2)=>{let jsxIndex=decorators2.findIndex((d=>d.originalFn===jsxDecorator)),reorderedDecorators=-1===jsxIndex?decorators2:[...decorators2.splice(jsxIndex,1),...decorators2];return(0,external_STORYBOOK_MODULE_PREVIEW_API_.defaultDecorateStory)(storyFn,reorderedDecorators)},parameters2={renderer:"react",...{docs:{story:{inline:!0},extractArgTypes:component=>{if(component){let{rows}=(component=>({rows:getPropDefs(component,"props")}))(component);if(rows)return rows.reduce(((acc,row)=>{let{name,description,type,sbType,defaultValue:defaultSummary,jsDocTags,required}=row;return acc[name]={name,description,type:{required,...sbType},table:{type,jsDocTags,defaultValue:defaultSummary}},acc}),{})}return null},extractComponentDescription:function extractComponentDescription(component){return null!=component&&function getDocgenDescription(component){return hasDocgen(component)&&str(component.__docgenInfo.description)}(component)}}}}},"../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@7.4.1/node_modules/acorn-jsx/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const XHTMLEntities=__webpack_require__("../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@7.4.1/node_modules/acorn-jsx/xhtml.js"),hexNumber=/^[\da-fA-F]+$/,decimalNumber=/^\d+$/,acornJsxMap=new WeakMap;function getJsxTokens(acorn){acorn=acorn.Parser.acorn||acorn;let acornJsx=acornJsxMap.get(acorn);if(!acornJsx){const tt=acorn.tokTypes,TokContext=acorn.TokContext,TokenType=acorn.TokenType,tc_oTag=new TokContext("...",!0,!0),tokContexts={tc_oTag,tc_cTag,tc_expr},tokTypes={jsxName:new TokenType("jsxName"),jsxText:new TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new TokenType("jsxTagEnd")};tokTypes.jsxTagStart.updateContext=function(){this.context.push(tc_expr),this.context.push(tc_oTag),this.exprAllowed=!1},tokTypes.jsxTagEnd.updateContext=function(prevType){let out=this.context.pop();out===tc_oTag&&prevType===tt.slash||out===tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===tc_expr):this.exprAllowed=!0},acornJsx={tokContexts,tokTypes},acornJsxMap.set(acorn,acornJsx)}return acornJsx}function getQualifiedJSXName(object){return object?"JSXIdentifier"===object.type?object.name:"JSXNamespacedName"===object.type?object.namespace.name+":"+object.name.name:"JSXMemberExpression"===object.type?getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property):void 0:object}module.exports=function(options){return options=options||{},function(Parser){return function plugin(options,Parser){const acorn=Parser.acorn||__webpack_require__("../node_modules/.pnpm/acorn@7.4.1/node_modules/acorn/dist/acorn.mjs"),acornJsx=getJsxTokens(acorn),tt=acorn.tokTypes,tok=acornJsx.tokTypes,tokContexts=acorn.tokContexts,tc_oTag=acornJsx.tokContexts.tc_oTag,tc_cTag=acornJsx.tokContexts.tc_cTag,tc_expr=acornJsx.tokContexts.tc_expr,isNewLine=acorn.isNewLine,isIdentifierStart=acorn.isIdentifierStart,isIdentifierChar=acorn.isIdentifierChar;return class extends Parser{static get acornJsx(){return acornJsx}jsx_readToken(){let out="",chunkStart=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let ch=this.input.charCodeAt(this.pos);switch(ch){case 60:case 123:return this.pos===this.start?60===ch&&this.exprAllowed?(++this.pos,this.finishToken(tok.jsxTagStart)):this.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.pos),this.finishToken(tok.jsxText,out));case 38:out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===ch?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!0),chunkStart=this.pos):++this.pos}}}jsx_readNewLine(normalizeCRLF){let out,ch=this.input.charCodeAt(this.pos);return++this.pos,13===ch&&10===this.input.charCodeAt(this.pos)?(++this.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),this.options.locations&&(++this.curLine,this.lineStart=this.pos),out}jsx_readString(quote){let out="",chunkStart=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let ch=this.input.charCodeAt(this.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos):isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!1),chunkStart=this.pos):++this.pos}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(tt.string,out)}jsx_readEntity(){let entity,str="",count=0,ch=this.input[this.pos];"&"!==ch&&this.raise(this.pos,"Entity must start with an ampersand");let startPos=++this.pos;for(;this.pos")}let fragmentOrElement=openingElement.name?"Element":"Fragment";return node["opening"+fragmentOrElement]=openingElement,node["closing"+fragmentOrElement]=closingElement,node.children=children,this.type===tt.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(node,"JSX"+fragmentOrElement)}jsx_parseText(){let node=this.parseLiteral(this.value);return node.type="JSXText",node}jsx_parseElement(){let startPos=this.start,startLoc=this.startLoc;return this.next(),this.jsx_parseElementAt(startPos,startLoc)}parseExprAtom(refShortHandDefaultPos){return this.type===tok.jsxText?this.jsx_parseText():this.type===tok.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(refShortHandDefaultPos)}readToken(code){let context=this.curContext();if(context===tc_expr)return this.jsx_readToken();if(context===tc_oTag||context===tc_cTag){if(isIdentifierStart(code))return this.jsx_readWord();if(62==code)return++this.pos,this.finishToken(tok.jsxTagEnd);if((34===code||39===code)&&context==tc_oTag)return this.jsx_readString(code)}return 60===code&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(tok.jsxTagStart)):super.readToken(code)}updateContext(prevType){if(this.type==tt.braceL){var curContext=this.curContext();curContext==tc_oTag?this.context.push(tokContexts.b_expr):curContext==tc_expr?this.context.push(tokContexts.b_tmpl):super.updateContext(prevType),this.exprAllowed=!0}else{if(this.type!==tt.slash||prevType!==tok.jsxTagStart)return super.updateContext(prevType);this.context.length-=2,this.context.push(tc_cTag),this.exprAllowed=!1}}}}({allowNamespaces:!1!==options.allowNamespaces,allowNamespacedObjects:!!options.allowNamespacedObjects},Parser)}},Object.defineProperty(module.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(__webpack_require__("../node_modules/.pnpm/acorn@7.4.1/node_modules/acorn/dist/acorn.mjs")).tokTypes},configurable:!0,enumerable:!0})},"../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@7.4.1/node_modules/acorn-jsx/xhtml.js":module=>{module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},"../node_modules/.pnpm/acorn@7.4.1/node_modules/acorn/dist/acorn.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Node:()=>Node,Parser:()=>Parser,Position:()=>Position,SourceLocation:()=>SourceLocation,TokContext:()=>TokContext,Token:()=>Token,TokenType:()=>TokenType,defaultOptions:()=>defaultOptions,getLineInfo:()=>getLineInfo,isIdentifierChar:()=>isIdentifierChar,isIdentifierStart:()=>isIdentifierStart,isNewLine:()=>isNewLine,keywordTypes:()=>keywords$1,lineBreak:()=>lineBreak,lineBreakG:()=>lineBreakG,nonASCIIwhitespace:()=>nonASCIIwhitespace,parse:()=>parse,parseExpressionAt:()=>parseExpressionAt,tokContexts:()=>types$1,tokTypes:()=>types,tokenizer:()=>tokenizer,version:()=>version});var reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;var astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(code,set){for(var pos=65536,i=0;icode)return!1;if((pos+=set[i+1])>=code)return!0}}function isIdentifierStart(code,astral){return code<65?36===code:code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):!1!==astral&&isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code,astral){return code<48?36===code:code<58||!(code<65)&&(code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):!1!==astral&&(isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes)))))}var TokenType=function TokenType(label,conf){void 0===conf&&(conf={}),this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=conf.binop||null,this.updateContext=null};function binop(name,prec){return new TokenType(name,{beforeExpr:!0,binop:prec})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords$1={};function kw(name,options){return void 0===options&&(options={}),options.keyword=name,keywords$1[name]=new TokenType(name,options)}var types={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code,ecma2019String){return 10===code||13===code||!ecma2019String&&(8232===code||8233===code)}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString=ref.toString;function has(obj,propName){return hasOwnProperty.call(obj,propName)}var isArray=Array.isArray||function(obj){return"[object Array]"===toString.call(obj)};function wordsRegexp(words){return new RegExp("^(?:"+words.replace(/ /g,"|")+")$")}var Position=function Position(line,col){this.line=line,this.column=col};Position.prototype.offset=function offset(n){return new Position(this.line,this.column+n)};var SourceLocation=function SourceLocation(p,start,end){this.start=start,this.end=end,null!==p.sourceFile&&(this.source=p.sourceFile)};function getLineInfo(input,offset){for(var line=1,cur=0;;){lineBreakG.lastIndex=cur;var match=lineBreakG.exec(input);if(!(match&&match.index=2015&&(options.ecmaVersion-=2009),null==options.allowReserved&&(options.allowReserved=options.ecmaVersion<5),isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)}}return isArray(options.onComment)&&(options.onComment=function pushComment(options,array){return function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start,end};options.locations&&(comment.loc=new SourceLocation(this,startLoc,endLoc)),options.ranges&&(comment.range=[start,end]),array.push(comment)}}(options,options.onComment)),options}function functionFlags(async,generator){return 2|(async?4:0)|(generator?8:0)}var Parser=function Parser(options,input,startPos){this.options=options=getOptions(options),this.sourceFile=options.sourceFile,this.keywords=wordsRegexp(keywords[options.ecmaVersion>=6?6:"module"===options.sourceType?"5module":5]);var reserved="";if(!0!==options.allowReserved){for(var v=options.ecmaVersion;!(reserved=reservedWords[v]);v--);"module"===options.sourceType&&(reserved+=" await")}this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict),this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords.strictBind),this.input=String(input),this.containsEsc=!1,startPos?(this.pos=startPos,this.lineStart=this.input.lastIndexOf("\n",startPos-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===options.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Parser.prototype.parse=function parse(){var node=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(node)},prototypeAccessors.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},prototypeAccessors.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},prototypeAccessors.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},prototypeAccessors.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},prototypeAccessors.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Parser.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Parser.extend=function extend(){for(var plugins=[],len=arguments.length;len--;)plugins[len]=arguments[len];for(var cls=this,i=0;i=,?^&]/.test(next)||"!"===next&&"="===this.input.charAt(end+1))}start+=match[0].length,skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length,";"===this.input[start]&&start++}},pp.eat=function(type){return this.type===type&&(this.next(),!0)},pp.isContextual=function(name){return this.type===types.name&&this.value===name&&!this.containsEsc},pp.eatContextual=function(name){return!!this.isContextual(name)&&(this.next(),!0)},pp.expectContextual=function(name){this.eatContextual(name)||this.unexpected()},pp.canInsertSemicolon=function(){return this.type===types.eof||this.type===types.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp.semicolon=function(){this.eat(types.semi)||this.insertSemicolon()||this.unexpected()},pp.afterTrailingComma=function(tokType,notNext){if(this.type===tokType)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),notNext||this.next(),!0},pp.expect=function(type){this.eat(type)||this.unexpected()},pp.unexpected=function(pos){this.raise(null!=pos?pos:this.start,"Unexpected token")},pp.checkPatternErrors=function(refDestructuringErrors,isAssign){if(refDestructuringErrors){refDestructuringErrors.trailingComma>-1&&this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element");var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;parens>-1&&this.raiseRecoverable(parens,"Parenthesized pattern")}},pp.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors)return!1;var shorthandAssign=refDestructuringErrors.shorthandAssign,doubleProto=refDestructuringErrors.doubleProto;if(!andThrow)return shorthandAssign>=0||doubleProto>=0;shorthandAssign>=0&&this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns"),doubleProto>=0&&this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property")},pp.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(node,!1,!context);case types._class:return context&&this.unexpected(),this.parseClass(node,!0);case types._if:return this.parseIfStatement(node);case types._return:return this.parseReturnStatement(node);case types._switch:return this.parseSwitchStatement(node);case types._throw:return this.parseThrowStatement(node);case types._try:return this.parseTryStatement(node);case types._const:case types._var:return kind=kind||this.value,context&&"var"!==kind&&this.unexpected(),this.parseVarStatement(node,kind);case types._while:return this.parseWhileStatement(node);case types._with:return this.parseWithStatement(node);case types.braceL:return this.parseBlock(!0,node);case types.semi:return this.parseEmptyStatement(node);case types._export:case types._import:if(this.options.ecmaVersion>10&&starttype===types._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(40===nextCh||46===nextCh)return this.parseExpressionStatement(node,this.parseExpression())}return this.options.allowImportExportEverywhere||(topLevel||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),starttype===types._import?this.parseImport(node):this.parseExport(node,exports);default:if(this.isAsyncFunction())return context&&this.unexpected(),this.next(),this.parseFunctionStatement(node,!0,!context);var maybeName=this.value,expr=this.parseExpression();return starttype===types.name&&"Identifier"===expr.type&&this.eat(types.colon)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}},pp$1.parseBreakContinueStatement=function(node,keyword){var isBreak="break"===keyword;this.next(),this.eat(types.semi)||this.insertSemicolon()?node.label=null:this.type!==types.name?this.unexpected():(node.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(types.semi):this.semicolon(),this.finishNode(node,"DoWhileStatement")},pp$1.parseForStatement=function(node){this.next();var awaitAt=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types.parenL),this.type===types.semi)return awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,null);var isLet=this.isLet();if(this.type===types._var||this.type===types._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;return this.next(),this.parseVar(init$1,!0,kind),this.finishNode(init$1,"VariableDeclaration"),(this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===init$1.declarations.length?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.parseForIn(node,init$1)):(awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init$1))}var refDestructuringErrors=new DestructuringErrors,init=this.parseExpression(!0,refDestructuringErrors);return this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.toAssignable(init,!1,refDestructuringErrors),this.checkLVal(init),this.parseForIn(node,init)):(this.checkExpressionErrors(refDestructuringErrors,!0),awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init))},pp$1.parseFunctionStatement=function(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),!1,isAsync)},pp$1.parseIfStatement=function(node){return this.next(),node.test=this.parseParenExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(types._else)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")},pp$1.parseReturnStatement=function(node){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types.semi)||this.insertSemicolon()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")},pp$1.parseSwitchStatement=function(node){var cur;this.next(),node.discriminant=this.parseParenExpression(),node.cases=[],this.expect(types.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var sawDefault=!1;this.type!==types.braceR;)if(this.type===types._case||this.type===types._default){var isCase=this.type===types._case;cur&&this.finishNode(cur,"SwitchCase"),node.cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),sawDefault=!0,cur.test=null),this.expect(types.colon)}else cur||this.unexpected(),cur.consequent.push(this.parseStatement(null));return this.exitScope(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(node,"SwitchStatement")},pp$1.parseThrowStatement=function(node){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")};var empty=[];pp$1.parseTryStatement=function(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.type===types._catch){var clause=this.startNode();if(this.next(),this.eat(types.parenL)){clause.param=this.parseBindingAtom();var simple="Identifier"===clause.param.type;this.enterScope(simple?32:0),this.checkLVal(clause.param,simple?4:2),this.expect(types.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),clause.param=null,this.enterScope(0);clause.body=this.parseBlock(!1),this.exitScope(),node.handler=this.finishNode(clause,"CatchClause")}return node.finalizer=this.eat(types._finally)?this.parseBlock():null,node.handler||node.finalizer||this.raise(node.start,"Missing catch or finally clause"),this.finishNode(node,"TryStatement")},pp$1.parseVarStatement=function(node,kind){return this.next(),this.parseVar(node,!1,kind),this.semicolon(),this.finishNode(node,"VariableDeclaration")},pp$1.parseWhileStatement=function(node){return this.next(),node.test=this.parseParenExpression(),this.labels.push(loopLabel),node.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(node,"WhileStatement")},pp$1.parseWithStatement=function(node){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),node.object=this.parseParenExpression(),node.body=this.parseStatement("with"),this.finishNode(node,"WithStatement")},pp$1.parseEmptyStatement=function(node){return this.next(),this.finishNode(node,"EmptyStatement")},pp$1.parseLabeledStatement=function(node,maybeName,expr,context){for(var i$1=0,list=this.labels;i$1=0;i--){var label$1=this.labels[i];if(label$1.statementStart!==node.start)break;label$1.statementStart=this.start,label$1.kind=kind}return this.labels.push({name:maybeName,kind,statementStart:this.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")},pp$1.parseExpressionStatement=function(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")},pp$1.parseBlock=function(createNewLexicalScope,node,exitStrict){for(void 0===createNewLexicalScope&&(createNewLexicalScope=!0),void 0===node&&(node=this.startNode()),node.body=[],this.expect(types.braceL),createNewLexicalScope&&this.enterScope(0);this.type!==types.braceR;){var stmt=this.parseStatement(null);node.body.push(stmt)}return exitStrict&&(this.strict=!1),this.next(),createNewLexicalScope&&this.exitScope(),this.finishNode(node,"BlockStatement")},pp$1.parseFor=function(node,init){return node.init=init,this.expect(types.semi),node.test=this.type===types.semi?null:this.parseExpression(),this.expect(types.semi),node.update=this.type===types.parenR?null:this.parseExpression(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,"ForStatement")},pp$1.parseForIn=function(node,init){var isForIn=this.type===types._in;return this.next(),"VariableDeclaration"===init.type&&null!=init.declarations[0].init&&(!isForIn||this.options.ecmaVersion<8||this.strict||"var"!==init.kind||"Identifier"!==init.declarations[0].id.type)?this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===init.type&&this.raise(init.start,"Invalid left-hand side in for-loop"),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssign(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")},pp$1.parseVar=function(node,isFor,kind){for(node.declarations=[],node.kind=kind;;){var decl=this.startNode();if(this.parseVarId(decl,kind),this.eat(types.eq)?decl.init=this.parseMaybeAssign(isFor):"const"!==kind||this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===decl.id.type||isFor&&(this.type===types._in||this.isContextual("of"))?decl.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),node.declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(types.comma))break}return node},pp$1.parseVarId=function(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,"var"===kind?1:2,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2;pp$1.parseFunction=function(node,statement,allowExpressionBody,isAsync){this.initFunction(node),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync)&&(this.type===types.star&&statement&FUNC_HANGING_STATEMENT&&this.unexpected(),node.generator=this.eat(types.star)),this.options.ecmaVersion>=8&&(node.async=!!isAsync),statement&FUNC_STATEMENT&&(node.id=4&statement&&this.type!==types.name?null:this.parseIdent(),!node.id||statement&FUNC_HANGING_STATEMENT||this.checkLVal(node.id,this.strict||node.generator||node.async?this.treatFunctionsAsVar?1:2:3));var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(node.async,node.generator)),statement&FUNC_STATEMENT||(node.id=this.type===types.name?this.parseIdent():null),this.parseFunctionParams(node),this.parseFunctionBody(node,allowExpressionBody,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$1.parseFunctionParams=function(node){this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$1.parseClass=function(node,isStatement){this.next();var oldStrict=this.strict;this.strict=!0,this.parseClassId(node,isStatement),this.parseClassSuper(node);var classBody=this.startNode(),hadConstructor=!1;for(classBody.body=[],this.expect(types.braceL);this.type!==types.braceR;){var element=this.parseClassElement(null!==node.superClass);element&&(classBody.body.push(element),"MethodDefinition"===element.type&&"constructor"===element.kind&&(hadConstructor&&this.raise(element.start,"Duplicate constructor in the same class"),hadConstructor=!0))}return this.strict=oldStrict,this.next(),node.body=this.finishNode(classBody,"ClassBody"),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")},pp$1.parseClassElement=function(constructorAllowsSuper){var this$1=this;if(this.eat(types.semi))return null;var method=this.startNode(),tryContextual=function(k,noLineBreak){void 0===noLineBreak&&(noLineBreak=!1);var start=this$1.start,startLoc=this$1.startLoc;return!!this$1.eatContextual(k)&&(!(this$1.type===types.parenL||noLineBreak&&this$1.canInsertSemicolon())||(method.key&&this$1.unexpected(),method.computed=!1,method.key=this$1.startNodeAt(start,startLoc),method.key.name=k,this$1.finishNode(method.key,"Identifier"),!1))};method.kind="method",method.static=tryContextual("static");var isGenerator=this.eat(types.star),isAsync=!1;isGenerator||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star)):tryContextual("get")?method.kind="get":tryContextual("set")&&(method.kind="set")),method.key||this.parsePropertyName(method);var key=method.key,allowsDirectSuper=!1;return method.computed||method.static||!("Identifier"===key.type&&"constructor"===key.name||"Literal"===key.type&&"constructor"===key.value)?method.static&&"Identifier"===key.type&&"prototype"===key.name&&this.raise(key.start,"Classes may not have a static property named prototype"):("method"!==method.kind&&this.raise(key.start,"Constructor can't have get/set modifier"),isGenerator&&this.raise(key.start,"Constructor can't be a generator"),isAsync&&this.raise(key.start,"Constructor can't be an async method"),method.kind="constructor",allowsDirectSuper=constructorAllowsSuper),this.parseClassMethod(method,isGenerator,isAsync,allowsDirectSuper),"get"===method.kind&&0!==method.value.params.length&&this.raiseRecoverable(method.value.start,"getter should have no params"),"set"===method.kind&&1!==method.value.params.length&&this.raiseRecoverable(method.value.start,"setter should have exactly one param"),"set"===method.kind&&"RestElement"===method.value.params[0].type&&this.raiseRecoverable(method.value.params[0].start,"Setter cannot use rest params"),method},pp$1.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){return method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper),this.finishNode(method,"MethodDefinition")},pp$1.parseClassId=function(node,isStatement){this.type===types.name?(node.id=this.parseIdent(),isStatement&&this.checkLVal(node.id,2,!1)):(!0===isStatement&&this.unexpected(),node.id=null)},pp$1.parseClassSuper=function(node){node.superClass=this.eat(types._extends)?this.parseExprSubscripts():null},pp$1.parseExport=function(node,exports){if(this.next(),this.eat(types.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(node.exported=this.parseIdent(!0),this.checkExport(exports,node.exported.name,this.lastTokStart)):node.exported=null),this.expectContextual("from"),this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom(),this.semicolon(),this.finishNode(node,"ExportAllDeclaration");if(this.eat(types._default)){var isAsync;if(this.checkExport(exports,"default",this.lastTokStart),this.type===types._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next(),isAsync&&this.next(),node.declaration=this.parseFunction(fNode,4|FUNC_STATEMENT,!1,isAsync)}else if(this.type===types._class){var cNode=this.startNode();node.declaration=this.parseClass(cNode,"nullableID")}else node.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(node,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())node.declaration=this.parseStatement(null),"VariableDeclaration"===node.declaration.type?this.checkVariableExport(exports,node.declaration.declarations):this.checkExport(exports,node.declaration.id.name,node.declaration.id.start),node.specifiers=[],node.source=null;else{if(node.declaration=null,node.specifiers=this.parseExportSpecifiers(exports),this.eatContextual("from"))this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom();else{for(var i=0,list=node.specifiers;i=6&&node)switch(node.type){case"Identifier":this.inAsync&&"await"===node.name&&this.raise(node.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);for(var i=0,list=node.properties;i=8&&!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()&&this.eat(types._function))return this.parseFunction(this.startNodeAt(startPos,startLoc),0,!1,!0);if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types.arrow))return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!1);if(this.options.ecmaVersion>=8&&"async"===id.name&&this.type===types.name&&!containsEsc)return id=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(types.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!0)}return id;case types.regexp:var value=this.value;return(node=this.parseLiteral(value.value)).regex={pattern:value.pattern,flags:value.flags},node;case types.num:case types.string:return this.parseLiteral(this.value);case types._null:case types._true:case types._false:return(node=this.startNode()).value=this.type===types._null?null:this.type===types._true,node.raw=this.type.keyword,this.next(),this.finishNode(node,"Literal");case types.parenL:var start=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow);return refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)&&(refDestructuringErrors.parenthesizedAssign=start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=start)),expr;case types.bracketL:return node=this.startNode(),this.next(),node.elements=this.parseExprList(types.bracketR,!0,!0,refDestructuringErrors),this.finishNode(node,"ArrayExpression");case types.braceL:return this.parseObj(!1,refDestructuringErrors);case types._function:return node=this.startNode(),this.next(),this.parseFunction(node,0);case types._class:return this.parseClass(this.startNode(),!1);case types._new:return this.parseNew();case types.backQuote:return this.parseTemplate();case types._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},pp$3.parseExprImport=function(){var node=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var meta=this.parseIdent(!0);switch(this.type){case types.parenL:return this.parseDynamicImport(node);case types.dot:return node.meta=meta,this.parseImportMeta(node);default:this.unexpected()}},pp$3.parseDynamicImport=function(node){if(this.next(),node.source=this.parseMaybeAssign(),!this.eat(types.parenR)){var errorPos=this.start;this.eat(types.comma)&&this.eat(types.parenR)?this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()"):this.unexpected(errorPos)}return this.finishNode(node,"ImportExpression")},pp$3.parseImportMeta=function(node){this.next();var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"meta"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for import is 'import.meta'"),containsEsc&&this.raiseRecoverable(node.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(node.start,"Cannot use 'import.meta' outside a module"),this.finishNode(node,"MetaProperty")},pp$3.parseLiteral=function(value){var node=this.startNode();return node.value=value,node.raw=this.input.slice(this.start,this.end),110===node.raw.charCodeAt(node.raw.length-1)&&(node.bigint=node.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(node,"Literal")},pp$3.parseParenExpression=function(){this.expect(types.parenL);var val=this.parseExpression();return this.expect(types.parenR),val},pp$3.parseParenAndDistinguishExpression=function(canBeArrow){var val,startPos=this.start,startLoc=this.startLoc,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var spreadStart,innerStartPos=this.start,innerStartLoc=this.startLoc,exprList=[],first=!0,lastIsComma=!1,refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==types.parenR;){if(first?first=!1:this.expect(types.comma),allowTrailingComma&&this.afterTrailingComma(types.parenR,!0)){lastIsComma=!0;break}if(this.type===types.ellipsis){spreadStart=this.start,exprList.push(this.parseParenItem(this.parseRestBinding())),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}exprList.push(this.parseMaybeAssign(!1,refDestructuringErrors,this.parseParenItem))}var innerEndPos=this.start,innerEndLoc=this.startLoc;if(this.expect(types.parenR),canBeArrow&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.parseParenArrowList(startPos,startLoc,exprList);exprList.length&&!lastIsComma||this.unexpected(this.lastTokStart),spreadStart&&this.unexpected(spreadStart),this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,exprList.length>1?((val=this.startNodeAt(innerStartPos,innerStartLoc)).expressions=exprList,this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)):val=exprList[0]}else val=this.parseParenExpression();if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);return par.expression=val,this.finishNode(par,"ParenthesizedExpression")}return val},pp$3.parseParenItem=function(item){return item},pp$3.parseParenArrowList=function(startPos,startLoc,exprList){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList)};var empty$1=[];pp$3.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var node=this.startNode(),meta=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(types.dot)){node.meta=meta;var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"target"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for new is 'new.target'"),containsEsc&&this.raiseRecoverable(node.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(node.start,"'new.target' can only be used in functions"),this.finishNode(node,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc,isImport=this.type===types._import;return node.callee=this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0),isImport&&"ImportExpression"===node.callee.type&&this.raise(startPos,"Cannot use new with import()"),this.eat(types.parenL)?node.arguments=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1):node.arguments=empty$1,this.finishNode(node,"NewExpression")},pp$3.parseTemplateElement=function(ref){var isTagged=ref.isTagged,elem=this.startNode();return this.type===types.invalidTemplate?(isTagged||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),elem.value={raw:this.value,cooked:null}):elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),elem.tail=this.type===types.backQuote,this.finishNode(elem,"TemplateElement")},pp$3.parseTemplate=function(ref){void 0===ref&&(ref={});var isTagged=ref.isTagged;void 0===isTagged&&(isTagged=!1);var node=this.startNode();this.next(),node.expressions=[];var curElt=this.parseTemplateElement({isTagged});for(node.quasis=[curElt];!curElt.tail;)this.type===types.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types.dollarBraceL),node.expressions.push(this.parseExpression()),this.expect(types.braceR),node.quasis.push(curElt=this.parseTemplateElement({isTagged}));return this.next(),this.finishNode(node,"TemplateLiteral")},pp$3.isAsyncProp=function(prop){return!prop.computed&&"Identifier"===prop.key.type&&"async"===prop.key.name&&(this.type===types.name||this.type===types.num||this.type===types.string||this.type===types.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$3.parseObj=function(isPattern,refDestructuringErrors){var node=this.startNode(),first=!0,propHash={};for(node.properties=[],this.next();!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types.braceR))break;var prop=this.parseProperty(isPattern,refDestructuringErrors);isPattern||this.checkPropClash(prop,propHash,refDestructuringErrors),node.properties.push(prop)}return this.finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")},pp$3.parseProperty=function(isPattern,refDestructuringErrors){var isGenerator,isAsync,startPos,startLoc,prop=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(types.ellipsis))return isPattern?(prop.argument=this.parseIdent(!1),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(prop,"RestElement")):(this.type===types.parenL&&refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&(refDestructuringErrors.parenthesizedAssign=this.start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=this.start)),prop.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.type===types.comma&&refDestructuringErrors&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start),this.finishNode(prop,"SpreadElement"));this.options.ecmaVersion>=6&&(prop.method=!1,prop.shorthand=!1,(isPattern||refDestructuringErrors)&&(startPos=this.start,startLoc=this.startLoc),isPattern||(isGenerator=this.eat(types.star)));var containsEsc=this.containsEsc;return this.parsePropertyName(prop),!isPattern&&!containsEsc&&this.options.ecmaVersion>=8&&!isGenerator&&this.isAsyncProp(prop)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star),this.parsePropertyName(prop,refDestructuringErrors)):isAsync=!1,this.parsePropertyValue(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc),this.finishNode(prop,"Property")},pp$3.parsePropertyValue=function(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc){if((isGenerator||isAsync)&&this.type===types.colon&&this.unexpected(),this.eat(types.colon))prop.value=isPattern?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,refDestructuringErrors),prop.kind="init";else if(this.options.ecmaVersion>=6&&this.type===types.parenL)isPattern&&this.unexpected(),prop.kind="init",prop.method=!0,prop.value=this.parseMethod(isGenerator,isAsync);else if(isPattern||containsEsc||!(this.options.ecmaVersion>=5)||prop.computed||"Identifier"!==prop.key.type||"get"!==prop.key.name&&"set"!==prop.key.name||this.type===types.comma||this.type===types.braceR||this.type===types.eq)this.options.ecmaVersion>=6&&!prop.computed&&"Identifier"===prop.key.type?((isGenerator||isAsync)&&this.unexpected(),this.checkUnreserved(prop.key),"await"!==prop.key.name||this.awaitIdentPos||(this.awaitIdentPos=startPos),prop.kind="init",isPattern?prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key):this.type===types.eq&&refDestructuringErrors?(refDestructuringErrors.shorthandAssign<0&&(refDestructuringErrors.shorthandAssign=this.start),prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key)):prop.value=prop.key,prop.shorthand=!0):this.unexpected();else{(isGenerator||isAsync)&&this.unexpected(),prop.kind=prop.key.name,this.parsePropertyName(prop),prop.value=this.parseMethod(!1);var paramCount="get"===prop.kind?0:1;if(prop.value.params.length!==paramCount){var start=prop.value.start;"get"===prop.kind?this.raiseRecoverable(start,"getter should have no params"):this.raiseRecoverable(start,"setter should have exactly one param")}else"set"===prop.kind&&"RestElement"===prop.value.params[0].type&&this.raiseRecoverable(prop.value.params[0].start,"Setter cannot use rest params")}},pp$3.parsePropertyName=function(prop){if(this.options.ecmaVersion>=6){if(this.eat(types.bracketL))return prop.computed=!0,prop.key=this.parseMaybeAssign(),this.expect(types.bracketR),prop.key;prop.computed=!1}return prop.key=this.type===types.num||this.type===types.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},pp$3.initFunction=function(node){node.id=null,this.options.ecmaVersion>=6&&(node.generator=node.expression=!1),this.options.ecmaVersion>=8&&(node.async=!1)},pp$3.parseMethod=function(isGenerator,isAsync,allowDirectSuper){var node=this.startNode(),oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.initFunction(node),this.options.ecmaVersion>=6&&(node.generator=isGenerator),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(isAsync,node.generator)|(allowDirectSuper?128:0)),this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(node,!1,!0),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"FunctionExpression")},pp$3.parseArrowExpression=function(node,params,isAsync){var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.enterScope(16|functionFlags(isAsync,!1)),this.initFunction(node),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,node.params=this.toAssignableList(params,!0),this.parseFunctionBody(node,!0,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"ArrowFunctionExpression")},pp$3.parseFunctionBody=function(node,isArrowFunction,isMethod){var isExpression=isArrowFunction&&this.type!==types.braceL,oldStrict=this.strict,useStrict=!1;if(isExpression)node.body=this.parseMaybeAssign(),node.expression=!0,this.checkParams(node,!1);else{var nonSimple=this.options.ecmaVersion>=7&&!this.isSimpleParamList(node.params);oldStrict&&!nonSimple||(useStrict=this.strictDirective(this.end))&&nonSimple&&this.raiseRecoverable(node.start,"Illegal 'use strict' directive in function with non-simple parameter list");var oldLabels=this.labels;this.labels=[],useStrict&&(this.strict=!0),this.checkParams(node,!oldStrict&&!useStrict&&!isArrowFunction&&!isMethod&&this.isSimpleParamList(node.params)),this.strict&&node.id&&this.checkLVal(node.id,5),node.body=this.parseBlock(!1,void 0,useStrict&&!oldStrict),node.expression=!1,this.adaptDirectivePrologue(node.body.body),this.labels=oldLabels}this.exitScope()},pp$3.isSimpleParamList=function(params){for(var i=0,list=params;i-1||scope.functions.indexOf(name)>-1||scope.var.indexOf(name)>-1,scope.lexical.push(name),this.inModule&&1&scope.flags&&delete this.undefinedExports[name]}else if(4===bindingType){this.currentScope().lexical.push(name)}else if(3===bindingType){var scope$2=this.currentScope();redeclared=this.treatFunctionsAsVar?scope$2.lexical.indexOf(name)>-1:scope$2.lexical.indexOf(name)>-1||scope$2.var.indexOf(name)>-1,scope$2.functions.push(name)}else for(var i=this.scopeStack.length-1;i>=0;--i){var scope$3=this.scopeStack[i];if(scope$3.lexical.indexOf(name)>-1&&!(32&scope$3.flags&&scope$3.lexical[0]===name)||!this.treatFunctionsAsVarInScope(scope$3)&&scope$3.functions.indexOf(name)>-1){redeclared=!0;break}if(scope$3.var.push(name),this.inModule&&1&scope$3.flags&&delete this.undefinedExports[name],3&scope$3.flags)break}redeclared&&this.raiseRecoverable(pos,"Identifier '"+name+"' has already been declared")},pp$5.checkLocalExport=function(id){-1===this.scopeStack[0].lexical.indexOf(id.name)&&-1===this.scopeStack[0].var.indexOf(id.name)&&(this.undefinedExports[id.name]=id)},pp$5.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$5.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(3&scope.flags)return scope}},pp$5.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(3&scope.flags&&!(16&scope.flags))return scope}};var Node=function Node(parser,pos,loc){this.type="",this.start=pos,this.end=0,parser.options.locations&&(this.loc=new SourceLocation(parser,loc)),parser.options.directSourceFile&&(this.sourceFile=parser.options.directSourceFile),parser.options.ranges&&(this.range=[pos,0])},pp$6=Parser.prototype;function finishNodeAt(node,type,pos,loc){return node.type=type,node.end=pos,this.options.locations&&(node.loc.end=loc),this.options.ranges&&(node.range[1]=pos),node}pp$6.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$6.startNodeAt=function(pos,loc){return new Node(this,pos,loc)},pp$6.finishNode=function(node,type){return finishNodeAt.call(this,node,type,this.lastTokEnd,this.lastTokEndLoc)},pp$6.finishNodeAt=function(node,type,pos,loc){return finishNodeAt.call(this,node,type,pos,loc)};var TokContext=function TokContext(token,isExpr,preserveSpace,override,generator){this.token=token,this.isExpr=!!isExpr,this.preserveSpace=!!preserveSpace,this.override=override,this.generator=!!generator},types$1={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,(function(p){return p.tryReadTemplateToken()})),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$7=Parser.prototype;pp$7.initialContext=function(){return[types$1.b_stat]},pp$7.braceIsBlock=function(prevType){var parent=this.curContext();return parent===types$1.f_expr||parent===types$1.f_stat||(prevType!==types.colon||parent!==types$1.b_stat&&parent!==types$1.b_expr?prevType===types._return||prevType===types.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):prevType===types._else||prevType===types.semi||prevType===types.eof||prevType===types.parenR||prevType===types.arrow||(prevType===types.braceL?parent===types$1.b_stat:prevType!==types._var&&prevType!==types._const&&prevType!==types.name&&!this.exprAllowed):!parent.isExpr)},pp$7.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var context=this.context[i];if("function"===context.token)return context.generator}return!1},pp$7.updateContext=function(prevType){var update,type=this.type;type.keyword&&prevType===types.dot?this.exprAllowed=!1:(update=type.updateContext)?update.call(this,prevType):this.exprAllowed=type.beforeExpr},types.parenR.updateContext=types.braceR.updateContext=function(){if(1!==this.context.length){var out=this.context.pop();out===types$1.b_stat&&"function"===this.curContext().token&&(out=this.context.pop()),this.exprAllowed=!out.isExpr}else this.exprAllowed=!0},types.braceL.updateContext=function(prevType){this.context.push(this.braceIsBlock(prevType)?types$1.b_stat:types$1.b_expr),this.exprAllowed=!0},types.dollarBraceL.updateContext=function(){this.context.push(types$1.b_tmpl),this.exprAllowed=!0},types.parenL.updateContext=function(prevType){var statementParens=prevType===types._if||prevType===types._for||prevType===types._with||prevType===types._while;this.context.push(statementParens?types$1.p_stat:types$1.p_expr),this.exprAllowed=!0},types.incDec.updateContext=function(){},types._function.updateContext=types._class.updateContext=function(prevType){!prevType.beforeExpr||prevType===types.semi||prevType===types._else||prevType===types._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start))||(prevType===types.colon||prevType===types.braceL)&&this.curContext()===types$1.b_stat?this.context.push(types$1.f_stat):this.context.push(types$1.f_expr),this.exprAllowed=!1},types.backQuote.updateContext=function(){this.curContext()===types$1.q_tmpl?this.context.pop():this.context.push(types$1.q_tmpl),this.exprAllowed=!1},types.star.updateContext=function(prevType){if(prevType===types._function){var index=this.context.length-1;this.context[index]===types$1.f_expr?this.context[index]=types$1.f_expr_gen:this.context[index]=types$1.f_gen}this.exprAllowed=!0},types.name.updateContext=function(prevType){var allowed=!1;this.options.ecmaVersion>=6&&prevType!==types.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(allowed=!0),this.exprAllowed=allowed};var ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma10BinaryProperties},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},data={};function buildUnicodeData(ecmaVersion){var d=data[ecmaVersion]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion]+" "+unicodeGeneralCategoryValues),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var pp$8=Parser.prototype,RegExpValidationState=function RegExpValidationState(parser){this.parser=parser,this.validFlags="gim"+(parser.options.ecmaVersion>=6?"uy":"")+(parser.options.ecmaVersion>=9?"s":""),this.unicodeProperties=data[parser.options.ecmaVersion>=11?11:parser.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(ch){return ch<=65535?String.fromCharCode(ch):(ch-=65536,String.fromCharCode(55296+(ch>>10),56320+(1023&ch)))}function isSyntaxCharacter(ch){return 36===ch||ch>=40&&ch<=43||46===ch||63===ch||ch>=91&&ch<=94||ch>=123&&ch<=125}function isControlLetter(ch){return ch>=65&&ch<=90||ch>=97&&ch<=122}function isUnicodePropertyNameCharacter(ch){return isControlLetter(ch)||95===ch}function isUnicodePropertyValueCharacter(ch){return isUnicodePropertyNameCharacter(ch)||isDecimalDigit(ch)}function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102}function hexToInt(ch){return ch>=65&&ch<=70?ch-65+10:ch>=97&&ch<=102?ch-97+10:ch-48}function isOctalDigit(ch){return ch>=48&&ch<=55}RegExpValidationState.prototype.reset=function reset(start,pattern,flags){var unicode=-1!==flags.indexOf("u");this.start=0|start,this.source=pattern+"",this.flags=flags,this.switchU=unicode&&this.parser.options.ecmaVersion>=6,this.switchN=unicode&&this.parser.options.ecmaVersion>=9},RegExpValidationState.prototype.raise=function raise(message){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+message)},RegExpValidationState.prototype.at=function at(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return-1;var c=s.charCodeAt(i);if(!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l)return c;var next=s.charCodeAt(i+1);return next>=56320&&next<=57343?(c<<10)+next-56613888:c},RegExpValidationState.prototype.nextIndex=function nextIndex(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return l;var next,c=s.charCodeAt(i);return!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l||(next=s.charCodeAt(i+1))<56320||next>57343?i+1:i+2},RegExpValidationState.prototype.current=function current(forceU){return void 0===forceU&&(forceU=!1),this.at(this.pos,forceU)},RegExpValidationState.prototype.lookahead=function lookahead(forceU){return void 0===forceU&&(forceU=!1),this.at(this.nextIndex(this.pos,forceU),forceU)},RegExpValidationState.prototype.advance=function advance(forceU){void 0===forceU&&(forceU=!1),this.pos=this.nextIndex(this.pos,forceU)},RegExpValidationState.prototype.eat=function eat(ch,forceU){return void 0===forceU&&(forceU=!1),this.current(forceU)===ch&&(this.advance(forceU),!0)},pp$8.validateRegExpFlags=function(state){for(var validFlags=state.validFlags,flags=state.flags,i=0;i-1&&this.raise(state.start,"Duplicate regular expression flag")}},pp$8.validateRegExpPattern=function(state){this.regexp_pattern(state),!state.switchN&&this.options.ecmaVersion>=9&&state.groupNames.length>0&&(state.switchN=!0,this.regexp_pattern(state))},pp$8.regexp_pattern=function(state){state.pos=0,state.lastIntValue=0,state.lastStringValue="",state.lastAssertionIsQuantifiable=!1,state.numCapturingParens=0,state.maxBackReference=0,state.groupNames.length=0,state.backReferenceNames.length=0,this.regexp_disjunction(state),state.pos!==state.source.length&&(state.eat(41)&&state.raise("Unmatched ')'"),(state.eat(93)||state.eat(125))&&state.raise("Lone quantifier brackets")),state.maxBackReference>state.numCapturingParens&&state.raise("Invalid escape");for(var i=0,list=state.backReferenceNames;i=9&&(lookbehind=state.eat(60)),state.eat(61)||state.eat(33))return this.regexp_disjunction(state),state.eat(41)||state.raise("Unterminated group"),state.lastAssertionIsQuantifiable=!lookbehind,!0}return state.pos=start,!1},pp$8.regexp_eatQuantifier=function(state,noError){return void 0===noError&&(noError=!1),!!this.regexp_eatQuantifierPrefix(state,noError)&&(state.eat(63),!0)},pp$8.regexp_eatQuantifierPrefix=function(state,noError){return state.eat(42)||state.eat(43)||state.eat(63)||this.regexp_eatBracedQuantifier(state,noError)},pp$8.regexp_eatBracedQuantifier=function(state,noError){var start=state.pos;if(state.eat(123)){var min=0,max=-1;if(this.regexp_eatDecimalDigits(state)&&(min=state.lastIntValue,state.eat(44)&&this.regexp_eatDecimalDigits(state)&&(max=state.lastIntValue),state.eat(125)))return-1!==max&&max=9?this.regexp_groupSpecifier(state):63===state.current()&&state.raise("Invalid group"),this.regexp_disjunction(state),state.eat(41))return state.numCapturingParens+=1,!0;state.raise("Unterminated group")}return!1},pp$8.regexp_eatExtendedAtom=function(state){return state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)||this.regexp_eatInvalidBracedQuantifier(state)||this.regexp_eatExtendedPatternCharacter(state)},pp$8.regexp_eatInvalidBracedQuantifier=function(state){return this.regexp_eatBracedQuantifier(state,!0)&&state.raise("Nothing to repeat"),!1},pp$8.regexp_eatSyntaxCharacter=function(state){var ch=state.current();return!!isSyntaxCharacter(ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatPatternCharacters=function(state){for(var start=state.pos,ch=0;-1!==(ch=state.current())&&!isSyntaxCharacter(ch);)state.advance();return state.pos!==start},pp$8.regexp_eatExtendedPatternCharacter=function(state){var ch=state.current();return!(-1===ch||36===ch||ch>=40&&ch<=43||46===ch||63===ch||91===ch||94===ch||124===ch)&&(state.advance(),!0)},pp$8.regexp_groupSpecifier=function(state){if(state.eat(63)){if(this.regexp_eatGroupName(state))return-1!==state.groupNames.indexOf(state.lastStringValue)&&state.raise("Duplicate capture group name"),void state.groupNames.push(state.lastStringValue);state.raise("Invalid group")}},pp$8.regexp_eatGroupName=function(state){if(state.lastStringValue="",state.eat(60)){if(this.regexp_eatRegExpIdentifierName(state)&&state.eat(62))return!0;state.raise("Invalid capture group name")}return!1},pp$8.regexp_eatRegExpIdentifierName=function(state){if(state.lastStringValue="",this.regexp_eatRegExpIdentifierStart(state)){for(state.lastStringValue+=codePointToString(state.lastIntValue);this.regexp_eatRegExpIdentifierPart(state);)state.lastStringValue+=codePointToString(state.lastIntValue);return!0}return!1},pp$8.regexp_eatRegExpIdentifierStart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierStart(ch){return isIdentifierStart(ch,!0)||36===ch||95===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatRegExpIdentifierPart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierPart(ch){return isIdentifierChar(ch,!0)||36===ch||95===ch||8204===ch||8205===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatAtomEscape=function(state){return!!(this.regexp_eatBackReference(state)||this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)||state.switchN&&this.regexp_eatKGroupName(state))||(state.switchU&&(99===state.current()&&state.raise("Invalid unicode escape"),state.raise("Invalid escape")),!1)},pp$8.regexp_eatBackReference=function(state){var start=state.pos;if(this.regexp_eatDecimalEscape(state)){var n=state.lastIntValue;if(state.switchU)return n>state.maxBackReference&&(state.maxBackReference=n),!0;if(n<=state.numCapturingParens)return!0;state.pos=start}return!1},pp$8.regexp_eatKGroupName=function(state){if(state.eat(107)){if(this.regexp_eatGroupName(state))return state.backReferenceNames.push(state.lastStringValue),!0;state.raise("Invalid named reference")}return!1},pp$8.regexp_eatCharacterEscape=function(state){return this.regexp_eatControlEscape(state)||this.regexp_eatCControlLetter(state)||this.regexp_eatZero(state)||this.regexp_eatHexEscapeSequence(state)||this.regexp_eatRegExpUnicodeEscapeSequence(state,!1)||!state.switchU&&this.regexp_eatLegacyOctalEscapeSequence(state)||this.regexp_eatIdentityEscape(state)},pp$8.regexp_eatCControlLetter=function(state){var start=state.pos;if(state.eat(99)){if(this.regexp_eatControlLetter(state))return!0;state.pos=start}return!1},pp$8.regexp_eatZero=function(state){return 48===state.current()&&!isDecimalDigit(state.lookahead())&&(state.lastIntValue=0,state.advance(),!0)},pp$8.regexp_eatControlEscape=function(state){var ch=state.current();return 116===ch?(state.lastIntValue=9,state.advance(),!0):110===ch?(state.lastIntValue=10,state.advance(),!0):118===ch?(state.lastIntValue=11,state.advance(),!0):102===ch?(state.lastIntValue=12,state.advance(),!0):114===ch&&(state.lastIntValue=13,state.advance(),!0)},pp$8.regexp_eatControlLetter=function(state){var ch=state.current();return!!isControlLetter(ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatRegExpUnicodeEscapeSequence=function(state,forceU){void 0===forceU&&(forceU=!1);var start=state.pos,switchU=forceU||state.switchU;if(state.eat(117)){if(this.regexp_eatFixedHexDigits(state,4)){var lead=state.lastIntValue;if(switchU&&lead>=55296&&lead<=56319){var leadSurrogateEnd=state.pos;if(state.eat(92)&&state.eat(117)&&this.regexp_eatFixedHexDigits(state,4)){var trail=state.lastIntValue;if(trail>=56320&&trail<=57343)return state.lastIntValue=1024*(lead-55296)+(trail-56320)+65536,!0}state.pos=leadSurrogateEnd,state.lastIntValue=lead}return!0}if(switchU&&state.eat(123)&&this.regexp_eatHexDigits(state)&&state.eat(125)&&function isValidUnicode(ch){return ch>=0&&ch<=1114111}(state.lastIntValue))return!0;switchU&&state.raise("Invalid unicode escape"),state.pos=start}return!1},pp$8.regexp_eatIdentityEscape=function(state){if(state.switchU)return!!this.regexp_eatSyntaxCharacter(state)||!!state.eat(47)&&(state.lastIntValue=47,!0);var ch=state.current();return!(99===ch||state.switchN&&107===ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatDecimalEscape=function(state){state.lastIntValue=0;var ch=state.current();if(ch>=49&&ch<=57){do{state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance()}while((ch=state.current())>=48&&ch<=57);return!0}return!1},pp$8.regexp_eatCharacterClassEscape=function(state){var ch=state.current();if(function isCharacterClassEscape(ch){return 100===ch||68===ch||115===ch||83===ch||119===ch||87===ch}(ch))return state.lastIntValue=-1,state.advance(),!0;if(state.switchU&&this.options.ecmaVersion>=9&&(80===ch||112===ch)){if(state.lastIntValue=-1,state.advance(),state.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(state)&&state.eat(125))return!0;state.raise("Invalid property name")}return!1},pp$8.regexp_eatUnicodePropertyValueExpression=function(state){var start=state.pos;if(this.regexp_eatUnicodePropertyName(state)&&state.eat(61)){var name=state.lastStringValue;if(this.regexp_eatUnicodePropertyValue(state)){var value=state.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(state,name,value),!0}}if(state.pos=start,this.regexp_eatLoneUnicodePropertyNameOrValue(state)){var nameOrValue=state.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(state,nameOrValue),!0}return!1},pp$8.regexp_validateUnicodePropertyNameAndValue=function(state,name,value){has(state.unicodeProperties.nonBinary,name)||state.raise("Invalid property name"),state.unicodeProperties.nonBinary[name].test(value)||state.raise("Invalid property value")},pp$8.regexp_validateUnicodePropertyNameOrValue=function(state,nameOrValue){state.unicodeProperties.binary.test(nameOrValue)||state.raise("Invalid property name")},pp$8.regexp_eatUnicodePropertyName=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyNameCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatUnicodePropertyValue=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyValueCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatLoneUnicodePropertyNameOrValue=function(state){return this.regexp_eatUnicodePropertyValue(state)},pp$8.regexp_eatCharacterClass=function(state){if(state.eat(91)){if(state.eat(94),this.regexp_classRanges(state),state.eat(93))return!0;state.raise("Unterminated character class")}return!1},pp$8.regexp_classRanges=function(state){for(;this.regexp_eatClassAtom(state);){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassAtom(state)){var right=state.lastIntValue;!state.switchU||-1!==left&&-1!==right||state.raise("Invalid character class"),-1!==left&&-1!==right&&left>right&&state.raise("Range out of order in character class")}}},pp$8.regexp_eatClassAtom=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatClassEscape(state))return!0;if(state.switchU){var ch$1=state.current();(99===ch$1||isOctalDigit(ch$1))&&state.raise("Invalid class escape"),state.raise("Invalid escape")}state.pos=start}var ch=state.current();return 93!==ch&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatClassEscape=function(state){var start=state.pos;if(state.eat(98))return state.lastIntValue=8,!0;if(state.switchU&&state.eat(45))return state.lastIntValue=45,!0;if(!state.switchU&&state.eat(99)){if(this.regexp_eatClassControlLetter(state))return!0;state.pos=start}return this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)},pp$8.regexp_eatClassControlLetter=function(state){var ch=state.current();return!(!isDecimalDigit(ch)&&95!==ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatHexEscapeSequence=function(state){var start=state.pos;if(state.eat(120)){if(this.regexp_eatFixedHexDigits(state,2))return!0;state.switchU&&state.raise("Invalid escape"),state.pos=start}return!1},pp$8.regexp_eatDecimalDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isDecimalDigit(ch=state.current());)state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance();return state.pos!==start},pp$8.regexp_eatHexDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isHexDigit(ch=state.current());)state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance();return state.pos!==start},pp$8.regexp_eatLegacyOctalEscapeSequence=function(state){if(this.regexp_eatOctalDigit(state)){var n1=state.lastIntValue;if(this.regexp_eatOctalDigit(state)){var n2=state.lastIntValue;n1<=3&&this.regexp_eatOctalDigit(state)?state.lastIntValue=64*n1+8*n2+state.lastIntValue:state.lastIntValue=8*n1+n2}else state.lastIntValue=n1;return!0}return!1},pp$8.regexp_eatOctalDigit=function(state){var ch=state.current();return isOctalDigit(ch)?(state.lastIntValue=ch-48,state.advance(),!0):(state.lastIntValue=0,!1)},pp$8.regexp_eatFixedHexDigits=function(state,length){var start=state.pos;state.lastIntValue=0;for(var i=0;i>10),56320+(1023&code)))}pp$9.next=function(ignoreEscapeSequenceInKeyword){!ignoreEscapeSequenceInKeyword&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp$9.getToken=function(){return this.next(),new Token(this)},"undefined"!=typeof Symbol&&(pp$9[Symbol.iterator]=function(){var this$1=this;return{next:function(){var token=this$1.getToken();return{done:token.type===types.eof,value:token}}}}),pp$9.curContext=function(){return this.context[this.context.length-1]},pp$9.nextToken=function(){var curContext=this.curContext();return curContext&&curContext.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(types.eof):curContext.override?curContext.override(this):void this.readToken(this.fullCharCodeAtPos())},pp$9.readToken=function(code){return isIdentifierStart(code,this.options.ecmaVersion>=6)||92===code?this.readWord():this.getTokenFromCode(code)},pp$9.fullCharCodeAtPos=function(){var code=this.input.charCodeAt(this.pos);return code<=55295||code>=57344?code:(code<<10)+this.input.charCodeAt(this.pos+1)-56613888},pp$9.skipBlockComment=function(){var match,startLoc=this.options.onComment&&this.curPosition(),start=this.pos,end=this.input.indexOf("*/",this.pos+=2);if(-1===end&&this.raise(this.pos-2,"Unterminated comment"),this.pos=end+2,this.options.locations)for(lineBreakG.lastIndex=start;(match=lineBreakG.exec(this.input))&&match.index8&&ch<14||ch>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch))))break loop;++this.pos}}},pp$9.finishToken=function(type,val){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var prevType=this.type;this.type=type,this.value=val,this.updateContext(prevType)},pp$9.readToken_dot=function(){var next=this.input.charCodeAt(this.pos+1);if(next>=48&&next<=57)return this.readNumber(!0);var next2=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===next&&46===next2?(this.pos+=3,this.finishToken(types.ellipsis)):(++this.pos,this.finishToken(types.dot))},pp$9.readToken_slash=function(){var next=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===next?this.finishOp(types.assign,2):this.finishOp(types.slash,1)},pp$9.readToken_mult_modulo_exp=function(code){var next=this.input.charCodeAt(this.pos+1),size=1,tokentype=42===code?types.star:types.modulo;return this.options.ecmaVersion>=7&&42===code&&42===next&&(++size,tokentype=types.starstar,next=this.input.charCodeAt(this.pos+2)),61===next?this.finishOp(types.assign,size+1):this.finishOp(tokentype,size)},pp$9.readToken_pipe_amp=function(code){var next=this.input.charCodeAt(this.pos+1);if(next===code){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(124===code?types.logicalOR:types.logicalAND,2)}return 61===next?this.finishOp(types.assign,2):this.finishOp(124===code?types.bitwiseOR:types.bitwiseAND,1)},pp$9.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(types.assign,2):this.finishOp(types.bitwiseXOR,1)},pp$9.readToken_plus_min=function(code){var next=this.input.charCodeAt(this.pos+1);return next===code?45!==next||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(types.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===next?this.finishOp(types.assign,2):this.finishOp(types.plusMin,1)},pp$9.readToken_lt_gt=function(code){var next=this.input.charCodeAt(this.pos+1),size=1;return next===code?(size=62===code&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+size)?this.finishOp(types.assign,size+1):this.finishOp(types.bitShift,size)):33!==next||60!==code||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===next&&(size=2),this.finishOp(types.relational,size)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},pp$9.readToken_eq_excl=function(code){var next=this.input.charCodeAt(this.pos+1);return 61===next?this.finishOp(types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===code&&62===next&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types.arrow)):this.finishOp(61===code?types.eq:types.prefix,1)},pp$9.readToken_question=function(){var ecmaVersion=this.options.ecmaVersion;if(ecmaVersion>=11){var next=this.input.charCodeAt(this.pos+1);if(46===next){var next2=this.input.charCodeAt(this.pos+2);if(next2<48||next2>57)return this.finishOp(types.questionDot,2)}if(63===next){if(ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(types.coalesce,2)}}return this.finishOp(types.question,1)},pp$9.getTokenFromCode=function(code){switch(code){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types.parenL);case 41:return++this.pos,this.finishToken(types.parenR);case 59:return++this.pos,this.finishToken(types.semi);case 44:return++this.pos,this.finishToken(types.comma);case 91:return++this.pos,this.finishToken(types.bracketL);case 93:return++this.pos,this.finishToken(types.bracketR);case 123:return++this.pos,this.finishToken(types.braceL);case 125:return++this.pos,this.finishToken(types.braceR);case 58:return++this.pos,this.finishToken(types.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types.backQuote);case 48:var next=this.input.charCodeAt(this.pos+1);if(120===next||88===next)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===next||79===next)return this.readRadixNumber(8);if(98===next||66===next)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(code);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(code);case 124:case 38:return this.readToken_pipe_amp(code);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(code);case 60:case 62:return this.readToken_lt_gt(code);case 61:case 33:return this.readToken_eq_excl(code);case 63:return this.readToken_question();case 126:return this.finishOp(types.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(code)+"'")},pp$9.finishOp=function(type,size){var str=this.input.slice(this.pos,this.pos+size);return this.pos+=size,this.finishToken(type,str)},pp$9.readRegexp=function(){for(var escaped,inClass,start=this.pos;;){this.pos>=this.input.length&&this.raise(start,"Unterminated regular expression");var ch=this.input.charAt(this.pos);if(lineBreak.test(ch)&&this.raise(start,"Unterminated regular expression"),escaped)escaped=!1;else{if("["===ch)inClass=!0;else if("]"===ch&&inClass)inClass=!1;else if("/"===ch&&!inClass)break;escaped="\\"===ch}++this.pos}var pattern=this.input.slice(start,this.pos);++this.pos;var flagsStart=this.pos,flags=this.readWord1();this.containsEsc&&this.unexpected(flagsStart);var state=this.regexpState||(this.regexpState=new RegExpValidationState(this));state.reset(start,pattern,flags),this.validateRegExpFlags(state),this.validateRegExpPattern(state);var value=null;try{value=new RegExp(pattern,flags)}catch(e){}return this.finishToken(types.regexp,{pattern,flags,value})},pp$9.readInt=function(radix,len,maybeLegacyOctalNumericLiteral){for(var allowSeparators=this.options.ecmaVersion>=12&&void 0===len,isLegacyOctalNumericLiteral=maybeLegacyOctalNumericLiteral&&48===this.input.charCodeAt(this.pos),start=this.pos,total=0,lastCode=0,i=0,e=null==len?1/0:len;i=97?code-97+10:code>=65?code-65+10:code>=48&&code<=57?code-48:1/0)>=radix)break;lastCode=code,total=total*radix+val}}return allowSeparators&&95===lastCode&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===start||null!=len&&this.pos-start!==len?null:total},pp$9.readRadixNumber=function(radix){var start=this.pos;this.pos+=2;var val=this.readInt(radix);return null==val&&this.raise(this.start+2,"Expected number in radix "+radix),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(val=stringToBigInt(this.input.slice(start,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val)},pp$9.readNumber=function(startsWithDot){var start=this.pos;startsWithDot||null!==this.readInt(10,void 0,!0)||this.raise(start,"Invalid number");var octal=this.pos-start>=2&&48===this.input.charCodeAt(start);octal&&this.strict&&this.raise(start,"Invalid number");var next=this.input.charCodeAt(this.pos);if(!octal&&!startsWithDot&&this.options.ecmaVersion>=11&&110===next){var val$1=stringToBigInt(this.input.slice(start,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val$1)}octal&&/[89]/.test(this.input.slice(start,this.pos))&&(octal=!1),46!==next||octal||(++this.pos,this.readInt(10),next=this.input.charCodeAt(this.pos)),69!==next&&101!==next||octal||(43!==(next=this.input.charCodeAt(++this.pos))&&45!==next||++this.pos,null===this.readInt(10)&&this.raise(start,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var val=function stringToNumber(str,isLegacyOctalNumericLiteral){return isLegacyOctalNumericLiteral?parseInt(str,8):parseFloat(str.replace(/_/g,""))}(this.input.slice(start,this.pos),octal);return this.finishToken(types.num,val)},pp$9.readCodePoint=function(){var code;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var codePos=++this.pos;code=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,code>1114111&&this.invalidStringToken(codePos,"Code point out of bounds")}else code=this.readHexChar(4);return code},pp$9.readString=function(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;92===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!1),chunkStart=this.pos):(isNewLine(ch,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(types.string,out)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp$9.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(err){if(err!==INVALID_TEMPLATE_ESCAPE_ERROR)throw err;this.readInvalidTemplateToken()}this.inTemplateElement=!1},pp$9.invalidStringToken=function(position,message){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(position,message)},pp$9.readTmplToken=function(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var ch=this.input.charCodeAt(this.pos);if(96===ch||36===ch&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==types.template&&this.type!==types.invalidTemplate?(out+=this.input.slice(chunkStart,this.pos),this.finishToken(types.template,out)):36===ch?(this.pos+=2,this.finishToken(types.dollarBraceL)):(++this.pos,this.finishToken(types.backQuote));if(92===ch)out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!0),chunkStart=this.pos;else if(isNewLine(ch)){switch(out+=this.input.slice(chunkStart,this.pos),++this.pos,ch){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:out+="\n";break;default:out+=String.fromCharCode(ch)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),chunkStart=this.pos}else++this.pos}},pp$9.readInvalidTemplateToken=function(){for(;this.pos=48&&ch<=55){var octalStr=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);return octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),this.pos+=octalStr.length-1,ch=this.input.charCodeAt(this.pos),"0"===octalStr&&56!==ch&&57!==ch||!this.strict&&!inTemplate||this.invalidStringToken(this.pos-1-octalStr.length,inTemplate?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(octal)}return isNewLine(ch)?"":String.fromCharCode(ch)}},pp$9.readHexChar=function(len){var codePos=this.pos,n=this.readInt(16,len);return null===n&&this.invalidStringToken(codePos,"Bad character escape sequence"),n},pp$9.readWord1=function(){this.containsEsc=!1;for(var word="",first=!0,chunkStart=this.pos,astral=this.options.ecmaVersion>=6;this.pos{"use strict";var process=__webpack_require__("../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];expectsError.apply(void 0,[throws,getActual(promiseFn)].concat(args))},assert.rejects=function rejects(promiseFn){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return waitForActual(promiseFn).then((function(result){return expectsError.apply(void 0,[rejects,result].concat(args))}))},assert.doesNotThrow=function doesNotThrow(fn){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)args[_key4-1]=arguments[_key4];expectsNoError.apply(void 0,[doesNotThrow,getActual(fn)].concat(args))},assert.doesNotReject=function doesNotReject(fn){for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++)args[_key5-1]=arguments[_key5];return waitForActual(fn).then((function(result){return expectsNoError.apply(void 0,[doesNotReject,result].concat(args))}))},assert.ifError=function ifError(err){if(null!=err){var message="ifError got unwanted exception: ";"object"===_typeof(err)&&"string"==typeof err.message?0===err.message.length&&err.constructor?message+=err.constructor.name:message+=err.message:message+=inspect(err);var newErr=new AssertionError({actual:err,expected:null,operator:"ifError",message,stackStartFn:ifError}),origStack=err.stack;if("string"==typeof origStack){var tmp2=origStack.split("\n");tmp2.shift();for(var tmp1=newErr.stack.split("\n"),i=0;i{"use strict";var process=__webpack_require__("../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rstr.length)&&(this_len=str.length),str.substring(this_len-search.length,this_len)===search}var blue="",green="",red="",white="",kReadableOperator={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function copyError(source){var keys=Object.keys(source),target=Object.create(Object.getPrototypeOf(source));return keys.forEach((function(key){target[key]=source[key]})),Object.defineProperty(target,"message",{value:source.message}),target}function inspectValue(val){return inspect(val,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function createErrDiff(actual,expected,operator){var other="",res="",lastPos=0,end="",skipped=!1,actualInspected=inspectValue(actual),actualLines=actualInspected.split("\n"),expectedLines=inspectValue(expected).split("\n"),i=0,indicator="";if("strictEqual"===operator&&"object"===_typeof(actual)&&"object"===_typeof(expected)&&null!==actual&&null!==expected&&(operator="strictEqualObject"),1===actualLines.length&&1===expectedLines.length&&actualLines[0]!==expectedLines[0]){var inputLength=actualLines[0].length+expectedLines[0].length;if(inputLength<=10){if(!("object"===_typeof(actual)&&null!==actual||"object"===_typeof(expected)&&null!==expected||0===actual&&0===expected))return"".concat(kReadableOperator[operator],"\n\n")+"".concat(actualLines[0]," !== ").concat(expectedLines[0],"\n")}else if("strictEqualObject"!==operator){if(inputLength<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;actualLines[0][i]===expectedLines[0][i];)i++;i>2&&(indicator="\n ".concat(function repeat(str,count){if(count=Math.floor(count),0==str.length||0==count)return"";var maxCount=str.length*count;for(count=Math.floor(Math.log(count)/Math.log(2));count;)str+=str,count--;return str+str.substring(0,maxCount-str.length)}(" ",i),"^"),i=0)}}}for(var a=actualLines[actualLines.length-1],b=expectedLines[expectedLines.length-1];a===b&&(i++<2?end="\n ".concat(a).concat(end):other=a,actualLines.pop(),expectedLines.pop(),0!==actualLines.length&&0!==expectedLines.length);)a=actualLines[actualLines.length-1],b=expectedLines[expectedLines.length-1];var maxLines=Math.max(actualLines.length,expectedLines.length);if(0===maxLines){var _actualLines=actualInspected.split("\n");if(_actualLines.length>30)for(_actualLines[26]="".concat(blue,"...").concat(white);_actualLines.length>27;)_actualLines.pop();return"".concat(kReadableOperator.notIdentical,"\n\n").concat(_actualLines.join("\n"),"\n")}i>3&&(end="\n".concat(blue,"...").concat(white).concat(end),skipped=!0),""!==other&&(end="\n ".concat(other).concat(end),other="");var printedLines=0,msg=kReadableOperator[operator]+"\n".concat(green,"+ actual").concat(white," ").concat(red,"- expected").concat(white),skippedMsg=" ".concat(blue,"...").concat(white," Lines skipped");for(i=0;i1&&i>2&&(cur>4?(res+="\n".concat(blue,"...").concat(white),skipped=!0):cur>3&&(res+="\n ".concat(expectedLines[i-2]),printedLines++),res+="\n ".concat(expectedLines[i-1]),printedLines++),lastPos=i,other+="\n".concat(red,"-").concat(white," ").concat(expectedLines[i]),printedLines++;else if(expectedLines.length1&&i>2&&(cur>4?(res+="\n".concat(blue,"...").concat(white),skipped=!0):cur>3&&(res+="\n ".concat(actualLines[i-2]),printedLines++),res+="\n ".concat(actualLines[i-1]),printedLines++),lastPos=i,res+="\n".concat(green,"+").concat(white," ").concat(actualLines[i]),printedLines++;else{var expectedLine=expectedLines[i],actualLine=actualLines[i],divergingLines=actualLine!==expectedLine&&(!endsWith(actualLine,",")||actualLine.slice(0,-1)!==expectedLine);divergingLines&&endsWith(expectedLine,",")&&expectedLine.slice(0,-1)===actualLine&&(divergingLines=!1,actualLine+=","),divergingLines?(cur>1&&i>2&&(cur>4?(res+="\n".concat(blue,"...").concat(white),skipped=!0):cur>3&&(res+="\n ".concat(actualLines[i-2]),printedLines++),res+="\n ".concat(actualLines[i-1]),printedLines++),lastPos=i,res+="\n".concat(green,"+").concat(white," ").concat(actualLine),other+="\n".concat(red,"-").concat(white," ").concat(expectedLine),printedLines+=2):(res+=other,other="",1!==cur&&0!==i||(res+="\n ".concat(actualLine),printedLines++))}if(printedLines>20&&i30)for(res[26]="".concat(blue,"...").concat(white);res.length>27;)res.pop();_this=1===res.length?_super.call(this,"".concat(base," ").concat(res[0])):_super.call(this,"".concat(base,"\n\n").concat(res.join("\n"),"\n"))}else{var _res=inspectValue(actual),other="",knownOperators=kReadableOperator[operator];"notDeepEqual"===operator||"notEqual"===operator?(_res="".concat(kReadableOperator[operator],"\n\n").concat(_res)).length>1024&&(_res="".concat(_res.slice(0,1021),"...")):(other="".concat(inspectValue(expected)),_res.length>512&&(_res="".concat(_res.slice(0,509),"...")),other.length>512&&(other="".concat(other.slice(0,509),"...")),"deepEqual"===operator||"equal"===operator?_res="".concat(knownOperators,"\n\n").concat(_res,"\n\nshould equal\n\n"):other=" ".concat(operator," ").concat(other)),_this=_super.call(this,"".concat(_res).concat(other))}return Error.stackTraceLimit=limit,_this.generatedMessage=!message,Object.defineProperty(_assertThisInitialized(_this),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),_this.code="ERR_ASSERTION",_this.actual=actual,_this.expected=expected,_this.operator=operator,Error.captureStackTrace&&Error.captureStackTrace(_assertThisInitialized(_this),stackStartFn),_this.stack,_this.name="AssertionError",_possibleConstructorReturn(_this)}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(AssertionError,[{key:"toString",value:function toString(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:_inspect$custom,value:function value(recurseTimes,ctx){return inspect(this,_objectSpread(_objectSpread({},ctx),{},{customInspect:!1,depth:0}))}}]),AssertionError}(_wrapNativeSuper(Error),inspect.custom);module.exports=AssertionError},"../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/errors.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i2?"one of ".concat(thing," ").concat(expected.slice(0,len-1).join(", "),", or ")+expected[len-1]:2===len?"one of ".concat(thing," ").concat(expected[0]," or ").concat(expected[1]):"of ".concat(thing," ").concat(expected[0])}return"of ".concat(thing," ").concat(String(expected))}createErrorType("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),createErrorType("ERR_INVALID_ARG_TYPE",(function(name,expected,actual){var determiner,msg;if(void 0===assert&&(assert=__webpack_require__("../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/assert.js")),assert("string"==typeof name,"'name' must be a string"),"string"==typeof expected&&function startsWith(str,search,pos){return str.substr(!pos||pos<0?0:+pos,search.length)===search}(expected,"not ")?(determiner="must not be",expected=expected.replace(/^not /,"")):determiner="must be",function endsWith(str,search,this_len){return(void 0===this_len||this_len>str.length)&&(this_len=str.length),str.substring(this_len-search.length,this_len)===search}(name," argument"))msg="The ".concat(name," ").concat(determiner," ").concat(oneOf(expected,"type"));else{var type=function includes(str,search,start){return"number"!=typeof start&&(start=0),!(start+search.length>str.length)&&-1!==str.indexOf(search,start)}(name,".")?"property":"argument";msg='The "'.concat(name,'" ').concat(type," ").concat(determiner," ").concat(oneOf(expected,"type"))}return msg+=". Received type ".concat(_typeof(actual))}),TypeError),createErrorType("ERR_INVALID_ARG_VALUE",(function(name,value){var reason=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===util&&(util=__webpack_require__("../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js"));var inspected=util.inspect(value);return inspected.length>128&&(inspected="".concat(inspected.slice(0,128),"...")),"The argument '".concat(name,"' ").concat(reason,". Received ").concat(inspected)}),TypeError,RangeError),createErrorType("ERR_INVALID_RETURN_VALUE",(function(input,name,value){var type;return type=value&&value.constructor&&value.constructor.name?"instance of ".concat(value.constructor.name):"type ".concat(_typeof(value)),"Expected ".concat(input,' to be returned from the "').concat(name,'"')+" function but got ".concat(type,".")}),TypeError),createErrorType("ERR_MISSING_ARGS",(function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];void 0===assert&&(assert=__webpack_require__("../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/assert.js")),assert(args.length>0,"At least one arg needs to be specified");var msg="The ",len=args.length;switch(args=args.map((function(a){return'"'.concat(a,'"')})),len){case 1:msg+="".concat(args[0]," argument");break;case 2:msg+="".concat(args[0]," and ").concat(args[1]," arguments");break;default:msg+=args.slice(0,len-1).join(", "),msg+=", and ".concat(args[len-1]," arguments")}return"".concat(msg," must be specified")}),TypeError),module.exports.codes=codes},"../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/internal/util/comparisons.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i10)return!0;for(var i=0;i57)return!0}return 10===key.length&&key>=Math.pow(2,32)}function getOwnNonIndexProperties(value){return Object.keys(value).filter(isNonIndex).concat(objectGetOwnPropertySymbols(value).filter(Object.prototype.propertyIsEnumerable.bind(value)))}function compare(a,b){if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i{"use strict";var possibleNames=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g="undefined"==typeof globalThis?__webpack_require__.g:globalThis;module.exports=function availableTypedArrays(){for(var out=[],i=0;i{"use strict";var GetIntrinsic=__webpack_require__("../node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js"),callBind=__webpack_require__("../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js"),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function callBoundIntrinsic(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);return"function"==typeof intrinsic&&$indexOf(name,".prototype.")>-1?callBind(intrinsic):intrinsic}},"../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var bind=__webpack_require__("../node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/index.js"),GetIntrinsic=__webpack_require__("../node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js"),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0),$max=GetIntrinsic("%Math.max%");if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=null}module.exports=function callBind(originalFunction){var func=$reflectApply(bind,$call,arguments);$gOPD&&$defineProperty&&($gOPD(func,"length").configurable&&$defineProperty(func,"length",{value:1+$max(0,originalFunction.length-(arguments.length-1))}));return func};var applyBind=function applyBind(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind},"../node_modules/.pnpm/define-properties@1.1.4/node_modules/define-properties/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keys=__webpack_require__("../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/index.js"),hasSymbols="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),toStr=Object.prototype.toString,concat=Array.prototype.concat,origDefineProperty=Object.defineProperty,hasPropertyDescriptors=__webpack_require__("../node_modules/.pnpm/has-property-descriptors@1.0.0/node_modules/has-property-descriptors/index.js")(),supportsDescriptors=origDefineProperty&&hasPropertyDescriptors,defineProperty=function(object,name,value,predicate){var fn;(!(name in object)||"function"==typeof(fn=predicate)&&"[object Function]"===toStr.call(fn)&&predicate())&&(supportsDescriptors?origDefineProperty(object,name,{configurable:!0,enumerable:!1,value,writable:!0}):object[name]=value)},defineProperties=function(object,map){var predicates=arguments.length>2?arguments[2]:{},props=keys(map);hasSymbols&&(props=concat.call(props,Object.getOwnPropertySymbols(map)));for(var i=0;i{!function(){"use strict";var typed,utility,jsdoc,esutils,hasOwnProperty,func;function sliceSource(source,index,last){return source.slice(index,last)}function isParamTitle(title){return"param"===title||"argument"===title||"arg"===title}function isReturnTitle(title){return"return"===title||"returns"===title}function isProperty(title){return"property"===title||"prop"===title}function isNameParameterRequired(title){return isParamTitle(title)||isProperty(title)||"alias"===title||"this"===title||"mixes"===title||"requires"===title}function isAllowedOptional(title){return isProperty(title)||isParamTitle(title)}function isTypeParameterRequired(title){return isParamTitle(title)||isReturnTitle(title)||"define"===title||"enum"===title||"implements"===title||"this"===title||"type"===title||"typedef"===title||isProperty(title)}esutils=__webpack_require__("../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/utils.js"),typed=__webpack_require__("../node_modules/.pnpm/doctrine@3.0.0/node_modules/doctrine/lib/typed.js"),utility=__webpack_require__("../node_modules/.pnpm/doctrine@3.0.0/node_modules/doctrine/lib/utility.js"),func=Object.prototype.hasOwnProperty,hasOwnProperty=function hasOwnProperty(obj,name){return func.call(obj,name)};var WHITESPACE="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",STAR_MATCHER="("+WHITESPACE+"*(?:\\*"+WHITESPACE+"?)?)(.+|[\r\n\u2028\u2029])";function unwrapComment(doc){return doc.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(STAR_MATCHER,"g"),"$2").replace(/\s*$/,"")}!function(exports){var Rules,index,lineNumber,length,source,originalSource,recoverable,sloppy,strict;function advance(){var ch=source.charCodeAt(index);return index+=1,!esutils.code.isLineTerminator(ch)||13===ch&&10===source.charCodeAt(index)||(lineNumber+=1),String.fromCharCode(ch)}function parseType(title,last,addRange){for(var ch,brace,type,startIndex,direct=!1;index=last)return null;if(91===source.charCodeAt(index)){if(!allowBrackets)return null;useBrackets=!0,name=advance()}if(name+=scanIdentifier(last),allowNestedParams)for(58!==source.charCodeAt(index)||"module"!==name&&"external"!==name&&"event"!==name||(name+=advance(),name+=scanIdentifier(last)),91===source.charCodeAt(index)&&93===source.charCodeAt(index+1)&&(name+=advance(),name+=advance());46===source.charCodeAt(index)||47===source.charCodeAt(index)||35===source.charCodeAt(index)||45===source.charCodeAt(index)||126===source.charCodeAt(index);)name+=advance(),name+=scanIdentifier(last);if(useBrackets){if(skipWhiteSpace(last),61===source.charCodeAt(index)){var ch;name+=advance(),skipWhiteSpace(last);for(var bracketDepth=1;index=last||93!==source.charCodeAt(index))return null;name+=advance()}return name}function convertIndex(rangeIndex){return source===originalSource?rangeIndex:function convertUnwrappedCommentIndex(originalSource,unwrappedIndex){for(var match,replacedSource=originalSource.replace(/^\/\*\*?/,""),numSkippedChars=0,matcher=new RegExp(STAR_MATCHER,"g");match=matcher.exec(replacedSource);)if(numSkippedChars+=match[1].length,match.index+match[0].length>unwrappedIndex+numSkippedChars)return unwrappedIndex+numSkippedChars+originalSource.length-replacedSource.length;return originalSource.replace(/\*\/$/,"").replace(/\s*$/,"").length}(originalSource,rangeIndex)}function TagParser(options,title){this._options=options,this._title=title.toLowerCase(),this._tag={title,description:null},this._options.lineNumbers&&(this._tag.lineNumber=lineNumber),this._first=index-title.length-1,this._last=0,this._extra={}}function parseTag(options){var parser,tag;if(!function skipToTag(){for(;index=length||(utility.assert(64===source.charCodeAt(index)),0))}())return null;for(tag=(parser=new TagParser(options,function scanTitle(){var ch,title="";for(advance();index=97&&ch<=122||ch>=65&&ch<=90||ch>=48&&ch<=57);)title+=advance();return title}())).parse();index1&&(this._tag.default=assign.slice(1).join("=")),this._tag.name=assign[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!isNameParameterRequired(this._title))return!0;if(isParamTitle(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},TagParser.prototype.parseDescription=function parseDescription(){var description=sliceSource(source,index,this._last).trim();return description&&(/^-\s+/.test(description)&&(description=description.substring(2)),this._tag.description=description),!0},TagParser.prototype.parseCaption=function parseDescription(){var description=sliceSource(source,index,this._last).trim(),captionStart=description.indexOf(""),captionEnd=description.indexOf("");return captionStart>=0&&captionEnd>=0?(this._tag.caption=description.substring(captionStart+9,captionEnd).trim(),this._tag.description=description.substring(captionEnd+10).trim()):this._tag.description=description,!0},TagParser.prototype.parseKind=function parseKind(){var kind,kinds;return kinds={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},kind=sliceSource(source,index,this._last).trim(),this._tag.kind=kind,!(!hasOwnProperty(kinds,kind)&&!this.addError("Invalid kind name '%0'",kind))},TagParser.prototype.parseAccess=function parseAccess(){var access;return access=sliceSource(source,index,this._last).trim(),this._tag.access=access,!("private"!==access&&"protected"!==access&&"public"!==access&&!this.addError("Invalid access name '%0'",access))},TagParser.prototype.parseThis=function parseThis(){var value=sliceSource(source,index,this._last).trim();return value&&"{"===value.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},TagParser.prototype.parseVariation=function parseVariation(){var variation,text;return text=sliceSource(source,index,this._last).trim(),variation=parseFloat(text,10),this._tag.variation=variation,!(isNaN(variation)&&!this.addError("Invalid variation '%0'",text))},TagParser.prototype.ensureEnd=function(){var shouldBeEmpty=sliceSource(source,index,this._last).trim();return!(shouldBeEmpty&&!this.addError("Unknown content '%0'",shouldBeEmpty))},TagParser.prototype.epilogue=function epilogue(){var description;return description=this._tag.description,!(isAllowedOptional(this._title)&&!this._tag.type&&description&&"["===description.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!sloppy&&!this.addError("Missing or invalid tag name")))},Rules={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},TagParser.prototype.parse=function parse(){var i,iz,sequences;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=function seekContent(){var ch,waiting,last=index;for(waiting=!1;last{!function(){"use strict";var Syntax,Token,source,length,index,previous,token,value,esutils,utility,rangeOffset,addRange;function isTypeName(ch){return-1==="><(){}[],:*|?!=".indexOf(String.fromCharCode(ch))&&!esutils.code.isWhiteSpace(ch)&&!esutils.code.isLineTerminator(ch)}function Context(previous,index,token,value){this._previous=previous,this._index=index,this._token=token,this._value=value}function maybeAddRange(node,range){return addRange&&(node.range=[range[0]+rangeOffset,range[1]+rangeOffset]),node}function advance(){var ch=source.charAt(index);return index+=1,ch}function scanHexEscape(prefix){var i,len,ch,code=0;for(len="u"===prefix?4:2,i=0;i=length)return token=Token.EOF;switch(ch=source.charCodeAt(index)){case 39:case 34:return token=function scanString(){var quote,ch,code,unescaped,restore,str="";for(quote=source.charAt(index),++index;index=0&&index=length)return Token.ILLEGAL;if(60===source.charCodeAt(index+1))break}value+=advance()}return Token.NAME}())}}function consume(target,text){utility.assert(token===target,text||"consumed token not matched"),next()}function expect(target,message){token!==target&&utility.throwError(message||"unexpected token"),next()}function parseFieldType(){var key,rangeStart=previous;return key=function parseFieldName(){var v=value;return token===Token.NAME||token===Token.STRING?(next(),v):token===Token.NUMBER?(consume(Token.NUMBER),String(v)):void utility.throwError("unexpected token")}(),token===Token.COLON?(consume(Token.COLON),maybeAddRange({type:Syntax.FieldType,key,value:parseTypeExpression()},[rangeStart,previous])):maybeAddRange({type:Syntax.FieldType,key,value:null},[rangeStart,previous])}function parseTypeName(){var expr,applications,startIndex=index-value.length;return expr=function parseNameExpression(){var name=value,rangeStart=index-name.length;return expect(Token.NAME),token!==Token.COLON||"module"!==name&&"external"!==name&&"event"!==name||(consume(Token.COLON),name+=":"+value,expect(Token.NAME)),maybeAddRange({type:Syntax.NameExpression,name},[rangeStart,previous])}(),token===Token.DOT_LT||token===Token.LT?(next(),applications=function parseTypeExpressionList(){var elements=[];for(elements.push(parseTop());token===Token.COMMA;)consume(Token.COMMA),elements.push(parseTop());return elements}(),expect(Token.GT),maybeAddRange({type:Syntax.TypeApplication,expression:expr,applications},[startIndex,previous])):expr}function parseParametersType(){for(var expr,startIndex,nameStartIndex,params=[],optionalSequence=!1,rest=!1,restStartIndex=index-3;token!==Token.RPAREN;)token===Token.REST&&(consume(Token.REST),rest=!0),startIndex=previous,(expr=parseTypeExpression()).type===Syntax.NameExpression&&token===Token.COLON&&(nameStartIndex=previous-expr.name.length,consume(Token.COLON),expr=maybeAddRange({type:Syntax.ParameterType,name:expr.name,expression:parseTypeExpression()},[nameStartIndex,previous])),token===Token.EQUAL?(consume(Token.EQUAL),expr=maybeAddRange({type:Syntax.OptionalType,expression:expr},[startIndex,previous]),optionalSequence=!0):optionalSequence&&utility.throwError("unexpected token"),rest&&(expr=maybeAddRange({type:Syntax.RestType,expression:expr},[restStartIndex,previous])),params.push(expr),token!==Token.RPAREN&&expect(Token.COMMA);return params}function parseFunctionType(){var isNew,thisBinding,params,result,fnType,startIndex=index-value.length;return utility.assert(token===Token.NAME&&"function"===value,"FunctionType should start with 'function'"),consume(Token.NAME),expect(Token.LPAREN),isNew=!1,params=[],thisBinding=null,token!==Token.RPAREN&&(token!==Token.NAME||"this"!==value&&"new"!==value?params=parseParametersType():(isNew="new"===value,consume(Token.NAME),expect(Token.COLON),thisBinding=parseTypeName(),token===Token.COMMA&&(consume(Token.COMMA),params=parseParametersType()))),expect(Token.RPAREN),result=null,token===Token.COLON&&(result=function parseResultType(){return consume(Token.COLON,"ResultType should start with :"),token===Token.NAME&&"void"===value?(consume(Token.NAME),{type:Syntax.VoidLiteral}):parseTypeExpression()}()),fnType=maybeAddRange({type:Syntax.FunctionType,params,result},[startIndex,previous]),thisBinding&&(fnType.this=thisBinding,isNew&&(fnType.new=!0)),fnType}function parseBasicTypeExpression(){var context,startIndex;switch(token){case Token.STAR:return consume(Token.STAR),maybeAddRange({type:Syntax.AllLiteral},[previous-1,previous]);case Token.LPAREN:return function parseUnionType(){var elements,startIndex=index-1;if(consume(Token.LPAREN,"UnionType should start with ("),elements=[],token!==Token.RPAREN)for(;elements.push(parseTypeExpression()),token!==Token.RPAREN;)expect(Token.PIPE);return consume(Token.RPAREN,"UnionType should end with )"),maybeAddRange({type:Syntax.UnionType,elements},[startIndex,previous])}();case Token.LBRACK:return function parseArrayType(){var elements,restStartIndex,startIndex=index-1;for(consume(Token.LBRACK,"ArrayType should start with ["),elements=[];token!==Token.RBRACK;){if(token===Token.REST){restStartIndex=index-3,consume(Token.REST),elements.push(maybeAddRange({type:Syntax.RestType,expression:parseTypeExpression()},[restStartIndex,previous]));break}elements.push(parseTypeExpression()),token!==Token.RBRACK&&expect(Token.COMMA)}return expect(Token.RBRACK),maybeAddRange({type:Syntax.ArrayType,elements},[startIndex,previous])}();case Token.LBRACE:return function parseRecordType(){var fields,rangeEnd,rangeStart=index-1;if(consume(Token.LBRACE,"RecordType should start with {"),fields=[],token===Token.COMMA)consume(Token.COMMA);else for(;token!==Token.RBRACE;)fields.push(parseFieldType()),token!==Token.RBRACE&&expect(Token.COMMA);return rangeEnd=index,expect(Token.RBRACE),maybeAddRange({type:Syntax.RecordType,fields},[rangeStart,rangeEnd])}();case Token.NAME:if(startIndex=index-value.length,"null"===value)return consume(Token.NAME),maybeAddRange({type:Syntax.NullLiteral},[startIndex,previous]);if("undefined"===value)return consume(Token.NAME),maybeAddRange({type:Syntax.UndefinedLiteral},[startIndex,previous]);if("true"===value||"false"===value)return consume(Token.NAME),maybeAddRange({type:Syntax.BooleanLiteralType,value:"true"===value},[startIndex,previous]);if(context=Context.save(),"function"===value)try{return parseFunctionType()}catch(e){context.restore()}return parseTypeName();case Token.STRING:return next(),maybeAddRange({type:Syntax.StringLiteralType,value},[previous-value.length-2,previous]);case Token.NUMBER:return next(),maybeAddRange({type:Syntax.NumericLiteralType,value},[previous-String(value).length,previous]);default:utility.throwError("unexpected token")}}function parseTypeExpression(){var expr,rangeStart;return token===Token.QUESTION?(rangeStart=index-1,consume(Token.QUESTION),token===Token.COMMA||token===Token.EQUAL||token===Token.RBRACE||token===Token.RPAREN||token===Token.PIPE||token===Token.EOF||token===Token.RBRACK||token===Token.GT?maybeAddRange({type:Syntax.NullableLiteral},[rangeStart,previous]):maybeAddRange({type:Syntax.NullableType,expression:parseBasicTypeExpression(),prefix:!0},[rangeStart,previous])):token===Token.BANG?(rangeStart=index-1,consume(Token.BANG),maybeAddRange({type:Syntax.NonNullableType,expression:parseBasicTypeExpression(),prefix:!0},[rangeStart,previous])):(rangeStart=previous,expr=parseBasicTypeExpression(),token===Token.BANG?(consume(Token.BANG),maybeAddRange({type:Syntax.NonNullableType,expression:expr,prefix:!1},[rangeStart,previous])):token===Token.QUESTION?(consume(Token.QUESTION),maybeAddRange({type:Syntax.NullableType,expression:expr,prefix:!1},[rangeStart,previous])):token===Token.LBRACK?(consume(Token.LBRACK),expect(Token.RBRACK,"expected an array-style type declaration ("+value+"[])"),maybeAddRange({type:Syntax.TypeApplication,expression:maybeAddRange({type:Syntax.NameExpression,name:"Array"},[rangeStart,previous]),applications:[expr]},[rangeStart,previous])):expr)}function parseTop(){var expr,elements;if(expr=parseTypeExpression(),token!==Token.PIPE)return expr;for(elements=[expr],consume(Token.PIPE);elements.push(parseTypeExpression()),token===Token.PIPE;)consume(Token.PIPE);return maybeAddRange({type:Syntax.UnionType,elements},[0,index])}function stringifyImpl(node,compact,topLevel){var result,i,iz;switch(node.type){case Syntax.NullableLiteral:result="?";break;case Syntax.AllLiteral:result="*";break;case Syntax.NullLiteral:result="null";break;case Syntax.UndefinedLiteral:result="undefined";break;case Syntax.VoidLiteral:result="void";break;case Syntax.UnionType:for(result=topLevel?"":"(",i=0,iz=node.elements.length;i{!function(){"use strict";var VERSION,Middle;function DoctrineError(message){this.name="DoctrineError",this.message=message}VERSION=__webpack_require__("../node_modules/.pnpm/doctrine@3.0.0/node_modules/doctrine/package.json").i8,exports.VERSION=VERSION,DoctrineError.prototype=((Middle=function(){}).prototype=Error.prototype,new Middle),DoctrineError.prototype.constructor=DoctrineError,exports.DoctrineError=DoctrineError,exports.throwError=function throwError(message){throw new DoctrineError(message)},exports.assert=__webpack_require__("../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/assert.js")}()},"../node_modules/.pnpm/escodegen@2.1.0/node_modules/escodegen/escodegen.js":(__unused_webpack_module,exports,__webpack_require__)=>{!function(){"use strict";var Syntax,Precedence,BinaryPrecedence,SourceNode,estraverse,esutils,base,indent,json,renumber,hexadecimal,quotes,escapeless,newline,space,parentheses,semicolons,safeConcatenation,directive,extra,parse,sourceMap,sourceCode,preserveBlankLines,FORMAT_MINIFY,FORMAT_DEFAULTS;function isStatement(node){return CodeGenerator.Statement.hasOwnProperty(node.type)}estraverse=__webpack_require__("../node_modules/.pnpm/estraverse@5.3.0/node_modules/estraverse/estraverse.js"),esutils=__webpack_require__("../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/utils.js"),Syntax=estraverse.Syntax,BinaryPrecedence={"??":(Precedence={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22}).Coalesce,"||":Precedence.LogicalOR,"&&":Precedence.LogicalAND,"|":Precedence.BitwiseOR,"^":Precedence.BitwiseXOR,"&":Precedence.BitwiseAND,"==":Precedence.Equality,"!=":Precedence.Equality,"===":Precedence.Equality,"!==":Precedence.Equality,is:Precedence.Equality,isnt:Precedence.Equality,"<":Precedence.Relational,">":Precedence.Relational,"<=":Precedence.Relational,">=":Precedence.Relational,in:Precedence.Relational,instanceof:Precedence.Relational,"<<":Precedence.BitwiseSHIFT,">>":Precedence.BitwiseSHIFT,">>>":Precedence.BitwiseSHIFT,"+":Precedence.Additive,"-":Precedence.Additive,"*":Precedence.Multiplicative,"%":Precedence.Multiplicative,"/":Precedence.Multiplicative,"**":Precedence.Exponentiation};var E_TTT=7,S_TFFF=1;function stringRepeat(str,num){var result="";for(num|=0;num>0;num>>>=1,str+=str)1&num&&(result+=str);return result}function endsWithLineTerminator(str){var len=str.length;return len&&esutils.code.isLineTerminator(str.charCodeAt(len-1))}function merge(target,override){var key;for(key in override)override.hasOwnProperty(key)&&(target[key]=override[key]);return target}function updateDeeply(target,override){var key,val;function isHashObject(target){return"object"==typeof target&&target instanceof Object&&!(target instanceof RegExp)}for(key in override)override.hasOwnProperty(key)&&(isHashObject(val=override[key])?isHashObject(target[key])?updateDeeply(target[key],val):target[key]=updateDeeply({},val):target[key]=val);return target}function escapeRegExpCharacter(ch,previousIsBackslash){return 8232==(-2&ch)?(previousIsBackslash?"u":"\\u")+(8232===ch?"2028":"2029"):10===ch||13===ch?(previousIsBackslash?"":"\\")+(10===ch?"n":"r"):String.fromCharCode(ch)}function escapeAllowedCharacter(code,next){var hex;return 8===code?"\\b":12===code?"\\f":9===code?"\\t":(hex=code.toString(16).toUpperCase(),json||code>255?"\\u"+"0000".slice(hex.length)+hex:0!==code||esutils.code.isDecimalDigit(next)?11===code?"\\x0B":"\\x"+"00".slice(hex.length)+hex:"\\0")}function escapeDisallowedCharacter(code){if(92===code)return"\\\\";if(10===code)return"\\n";if(13===code)return"\\r";if(8232===code)return"\\u2028";if(8233===code)return"\\u2029";throw new Error("Incorrectly classified character")}function flattenToString(arr){var i,iz,elem,result="";for(i=0,iz=arr.length;ij&&(spaces=j)}for(void 0!==specialBase?(previousBase=base,"*"===array[1][spaces]&&(specialBase+=" "),base=specialBase):(1&spaces&&--spaces,previousBase=base),i=1,len=array.length;i0){if(save=result,preserveBlankLines){for(result=[],extRange=(comment=stmt.leadingComments[0]).extendedRange,range=comment.range,(count=((prefix=sourceCode.substring(extRange[0],range[0])).match(/\n/g)||[]).length)>0?(result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment)))):(result.push(prefix),result.push(generateComment(comment))),prevRange=range,i=1,len=stmt.leadingComments.length;i0?(result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment)))):(result.push(prefix),result.push(generateComment(comment)));else for(tailingToStatement=!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()),specialBase=stringRepeat(" ",function calculateSpaces(str){var i;for(i=str.length-1;i>=0&&!esutils.code.isLineTerminator(str.charCodeAt(i));--i);return str.length-1-i}(toSourceNodeWhenNeeded([base,result,indent]).toString())),i=0,len=stmt.trailingComments.length;i")),node.expression?(result.push(space),"{"===(expr=this.generateExpression(node.body,Precedence.Assignment,E_TTT)).toString().charAt(0)&&(expr=["(",expr,")"]),result.push(expr)):result.push(this.maybeBlock(node.body,9)),result},CodeGenerator.prototype.generateIterationForStatement=function(operator,stmt,flags){var result=["for"+(stmt.await?noEmptySpace()+"await":"")+space+"("],that=this;return withIndent((function(){stmt.left.type===Syntax.VariableDeclaration?withIndent((function(){result.push(stmt.left.kind+noEmptySpace()),result.push(that.generateStatement(stmt.left.declarations[0],0))})):result.push(that.generateExpression(stmt.left,Precedence.Call,E_TTT)),result=join(result,operator),result=[join(result,that.generateExpression(stmt.right,Precedence.Assignment,E_TTT)),")"]})),result.push(this.maybeBlock(stmt.body,flags)),result},CodeGenerator.prototype.generatePropertyKey=function(expr,computed){var result=[];return computed&&result.push("["),result.push(this.generateExpression(expr,Precedence.Assignment,E_TTT)),computed&&result.push("]"),result},CodeGenerator.prototype.generateAssignment=function(left,right,operator,precedence,flags){return Precedence.Assignment2&&("\n"===(content=sourceCode.substring(range[0]+1,range[1]-1))[0]&&(result=["{"]),result.push(content)),bodyFlags=S_TFFF,8&flags&&(bodyFlags|=16),i=0,iz=stmt.body.length;i0&&(stmt.body[i-1].trailingComments||stmt.body[i].leadingComments||generateBlankLines(stmt.body[i-1].range[1],stmt.body[i].range[0],result))),i===iz-1&&(bodyFlags|=32),fragment=stmt.body[i].leadingComments&&preserveBlankLines?that.generateStatement(stmt.body[i],bodyFlags):addIndent(that.generateStatement(stmt.body[i],bodyFlags)),result.push(fragment),endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())||preserveBlankLines&&i1?withIndent(block):block(),result.push(this.semicolon(flags)),result},ThrowStatement:function(stmt,flags){return[join("throw",this.generateExpression(stmt.argument,Precedence.Sequence,E_TTT)),this.semicolon(flags)]},TryStatement:function(stmt,flags){var result,i,iz,guardedHandlers;if(result=["try",this.maybeBlock(stmt.block,S_TFFF)],result=this.maybeBlockSuffix(stmt.block,result),stmt.handlers)for(i=0,iz=stmt.handlers.length;i0?"\n":""],bodyFlags=17,i=0;i0&&(stmt.body[i-1].trailingComments||stmt.body[i].leadingComments||generateBlankLines(stmt.body[i-1].range[1],stmt.body[i].range[0],result))),fragment=addIndent(this.generateStatement(stmt.body[i],bodyFlags)),result.push(fragment),i+10){for(result.push("("),i=0,iz=length;i=2&&48===fragment.charCodeAt(0))&&result.push(" "),result.push(expr.optional?"?.":"."),result.push(generateIdentifier(expr.property))),parenthesize(result,Precedence.Member,precedence)},MetaProperty:function(expr,precedence,flags){var result;return(result=[]).push("string"==typeof expr.meta?expr.meta:generateIdentifier(expr.meta)),result.push("."),result.push("string"==typeof expr.property?expr.property:generateIdentifier(expr.property)),parenthesize(result,Precedence.Member,precedence)},UnaryExpression:function(expr,precedence,flags){var result,fragment,rightCharCode,leftSource,leftCharCode;return fragment=this.generateExpression(expr.argument,Precedence.Unary,E_TTT),""===space?result=join(expr.operator,fragment):(result=[expr.operator],expr.operator.length>2?result=join(result,fragment):(leftCharCode=(leftSource=toSourceNodeWhenNeeded(result).toString()).charCodeAt(leftSource.length-1),rightCharCode=fragment.toString().charCodeAt(0),(43===leftCharCode||45===leftCharCode)&&leftCharCode===rightCharCode||esutils.code.isIdentifierPartES5(leftCharCode)&&esutils.code.isIdentifierPartES5(rightCharCode)?(result.push(noEmptySpace()),result.push(fragment)):result.push(fragment))),parenthesize(result,Precedence.Unary,precedence)},YieldExpression:function(expr,precedence,flags){var result;return result=expr.delegate?"yield*":"yield",expr.argument&&(result=join(result,this.generateExpression(expr.argument,Precedence.Yield,E_TTT))),parenthesize(result,Precedence.Yield,precedence)},AwaitExpression:function(expr,precedence,flags){return parenthesize(join(expr.all?"await*":"await",this.generateExpression(expr.argument,Precedence.Await,E_TTT)),Precedence.Await,precedence)},UpdateExpression:function(expr,precedence,flags){return expr.prefix?parenthesize([expr.operator,this.generateExpression(expr.argument,Precedence.Unary,E_TTT)],Precedence.Unary,precedence):parenthesize([this.generateExpression(expr.argument,Precedence.Postfix,E_TTT),expr.operator],Precedence.Postfix,precedence)},FunctionExpression:function(expr,precedence,flags){var result=[generateAsyncPrefix(expr,!0),"function"];return expr.id?(result.push(generateStarSuffix(expr)||noEmptySpace()),result.push(generateIdentifier(expr.id))):result.push(generateStarSuffix(expr)||space),result.push(this.generateFunctionBody(expr)),result},ArrayPattern:function(expr,precedence,flags){return this.ArrayExpression(expr,precedence,flags,!0)},ArrayExpression:function(expr,precedence,flags,isPattern){var result,multiline,that=this;return expr.elements.length?(multiline=!isPattern&&expr.elements.length>1,result=["[",multiline?newline:""],withIndent((function(indent){var i,iz;for(i=0,iz=expr.elements.length;i1,withIndent((function(){fragment=that.generateExpression(expr.properties[0],Precedence.Sequence,E_TTT)})),multiline||function hasLineTerminator(str){return/[\r\n]/g.test(str)}(toSourceNodeWhenNeeded(fragment).toString())?(withIndent((function(indent){var i,iz;if(result=["{",newline,indent,fragment],multiline)for(result.push(","+newline),i=1,iz=expr.properties.length;i126))){result+=escapeAllowedCharacter(code,str.charCodeAt(i+1));continue}}result+=String.fromCharCode(code)}if(quote=(single=!("double"===quotes||"auto"===quotes&&doubleQuotes0&&(exponent=+temp.slice(pos+1),temp=temp.slice(0,pos)),point>=0&&(exponent-=temp.length-point-1,temp=+(temp.slice(0,point)+temp.slice(point+1))+""),pos=0;48===temp.charCodeAt(temp.length+pos-1);)--pos;return 0!==pos&&(exponent-=pos,temp=temp.slice(0,pos)),0!==exponent&&(temp+="e"+exponent),(temp.length1e12&&Math.floor(value)===value&&(temp="0x"+value.toString(16)).length0||extra.moz.comprehensionExpressionStartsWithAssignment?result=join(result,fragment):result.push(fragment)})),expr.filter&&(result=join(result,"if"+space),fragment=this.generateExpression(expr.filter,Precedence.Sequence,E_TTT),result=join(result,["(",fragment,")"])),extra.moz.comprehensionExpressionStartsWithAssignment||(fragment=this.generateExpression(expr.body,Precedence.Assignment,E_TTT),result=join(result,fragment)),result.push(expr.type===Syntax.GeneratorExpression?")":"]"),result},ComprehensionBlock:function(expr,precedence,flags){var fragment;return fragment=join(fragment=expr.left.type===Syntax.VariableDeclaration?[expr.left.kind,noEmptySpace(),this.generateStatement(expr.left.declarations[0],0)]:this.generateExpression(expr.left,Precedence.Call,E_TTT),expr.of?"of":"in"),fragment=join(fragment,this.generateExpression(expr.right,Precedence.Sequence,E_TTT)),["for"+space+"(",fragment,")"]},SpreadElement:function(expr,precedence,flags){return["...",this.generateExpression(expr.argument,Precedence.Assignment,E_TTT)]},TaggedTemplateExpression:function(expr,precedence,flags){var itemFlags=3;return 2&flags||(itemFlags=1),parenthesize([this.generateExpression(expr.tag,Precedence.Call,itemFlags),this.generateExpression(expr.quasi,Precedence.Primary,4)],Precedence.TaggedTemplate,precedence)},TemplateElement:function(expr,precedence,flags){return expr.value.raw},TemplateLiteral:function(expr,precedence,flags){var result,i,iz;for(result=["`"],i=0,iz=expr.quasis.length;i{!function clone(exports){"use strict";var Syntax,VisitorOption,VisitorKeys,BREAK,SKIP,REMOVE;function deepCopy(obj){var key,val,ret={};for(key in obj)obj.hasOwnProperty(key)&&(val=obj[key],ret[key]="object"==typeof val&&null!==val?deepCopy(val):val);return ret}function Reference(parent,key){this.parent=parent,this.key=key}function Element(node,path,wrap,ref){this.node=node,this.path=path,this.wrap=wrap,this.ref=ref}function Controller(){}function isNode(node){return null!=node&&("object"==typeof node&&"string"==typeof node.type)}function isProperty(nodeType,key){return(nodeType===Syntax.ObjectExpression||nodeType===Syntax.ObjectPattern)&&"properties"===key}function candidateExistsInLeaveList(leavelist,candidate){for(var i=leavelist.length-1;i>=0;--i)if(leavelist[i].node===candidate)return!0;return!1}function traverse(root,visitor){return(new Controller).traverse(root,visitor)}function extendCommentRange(comment,tokens){var target;return target=function upperBound(array,func){var diff,len,i,current;for(len=array.length,i=0;len;)func(array[current=i+(diff=len>>>1)])?len=diff:(i=current+1,len-=diff+1);return i}(tokens,(function search(token){return token.range[0]>comment.range[0]})),comment.extendedRange=[comment.range[0],comment.range[1]],target!==tokens.length&&(comment.extendedRange[1]=tokens[target].range[0]),(target-=1)>=0&&(comment.extendedRange[0]=tokens[target].range[1]),comment}return Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},VisitorKeys={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},VisitorOption={Break:BREAK={},Skip:SKIP={},Remove:REMOVE={}},Reference.prototype.replace=function replace(node){this.parent[this.key]=node},Reference.prototype.remove=function remove(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},Controller.prototype.path=function path(){var i,iz,j,jz,result;function addToPath(result,path){if(Array.isArray(path))for(j=0,jz=path.length;j=0;)if(candidate=node[key=candidates[current]])if(Array.isArray(candidate)){for(current2=candidate.length;(current2-=1)>=0;)if(candidate[current2]&&!candidateExistsInLeaveList(leavelist,candidate[current2])){if(isProperty(nodeType,candidates[current]))element=new Element(candidate[current2],[key,current2],"Property",null);else{if(!isNode(candidate[current2]))continue;element=new Element(candidate[current2],[key,current2],null,null)}worklist.push(element)}}else if(isNode(candidate)){if(candidateExistsInLeaveList(leavelist,candidate))continue;worklist.push(new Element(candidate,key,null,null))}}}else if(element=leavelist.pop(),ret=this.__execute(visitor.leave,element),this.__state===BREAK||ret===BREAK)return},Controller.prototype.replace=function replace(root,visitor){var worklist,leavelist,node,nodeType,target,element,current,current2,candidates,candidate,sentinel,outer,key;function removeElem(element){var i,key,nextElem,parent;if(element.ref.remove())for(key=element.ref.key,parent=element.ref.parent,i=worklist.length;i--;)if((nextElem=worklist[i]).ref&&nextElem.ref.parent===parent){if(nextElem.ref.key=0;)if(candidate=node[key=candidates[current]])if(Array.isArray(candidate)){for(current2=candidate.length;(current2-=1)>=0;)if(candidate[current2]){if(isProperty(nodeType,candidates[current]))element=new Element(candidate[current2],[key,current2],"Property",new Reference(candidate,current2));else{if(!isNode(candidate[current2]))continue;element=new Element(candidate[current2],[key,current2],null,new Reference(candidate,current2))}worklist.push(element)}}else isNode(candidate)&&worklist.push(new Element(candidate,key,null,new Reference(node,key)))}}else if(element=leavelist.pop(),void 0!==(target=this.__execute(visitor.leave,element))&&target!==BREAK&&target!==SKIP&&target!==REMOVE&&element.ref.replace(target),this.__state!==REMOVE&&target!==REMOVE||removeElem(element),this.__state===BREAK||target===BREAK)return outer.root;return outer.root},exports.Syntax=Syntax,exports.traverse=traverse,exports.replace=function replace(root,visitor){return(new Controller).replace(root,visitor)},exports.attachComments=function attachComments(tree,providedComments,tokens){var comment,len,i,cursor,comments=[];if(!tree.range)throw new Error("attachComments needs range information");if(!tokens.length){if(providedComments.length){for(i=0,len=providedComments.length;inode.range[0]);)comment.extendedRange[1]===node.range[0]?(node.leadingComments||(node.leadingComments=[]),node.leadingComments.push(comment),comments.splice(cursor,1)):cursor+=1;return cursor===comments.length?VisitorOption.Break:comments[cursor].extendedRange[0]>node.range[1]?VisitorOption.Skip:void 0}}),cursor=0,traverse(tree,{leave:function(node){for(var comment;cursornode.range[1]?VisitorOption.Skip:void 0}}),tree},exports.VisitorKeys=VisitorKeys,exports.VisitorOption=VisitorOption,exports.Controller=Controller,exports.cloneEnvironment=function(){return clone({})},exports}(exports)},"../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/ast.js":module=>{!function(){"use strict";function isStatement(node){if(null==node)return!1;switch(node.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function trailingStatement(node){switch(node.type){case"IfStatement":return null!=node.alternate?node.alternate:node.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return node.body}return null}module.exports={isExpression:function isExpression(node){if(null==node)return!1;switch(node.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement,isIterationStatement:function isIterationStatement(node){if(null==node)return!1;switch(node.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(node){return isStatement(node)||null!=node&&"FunctionDeclaration"===node.type},isProblematicIfStatement:function isProblematicIfStatement(node){var current;if("IfStatement"!==node.type)return!1;if(null==node.alternate)return!1;current=node.consequent;do{if("IfStatement"===current.type&&null==current.alternate)return!0;current=trailingStatement(current)}while(current);return!1},trailingStatement}}()},"../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/code.js":module=>{!function(){"use strict";var ES6Regex,ES5Regex,NON_ASCII_WHITESPACES,IDENTIFIER_START,IDENTIFIER_PART,ch;function fromCodePoint(cp){return cp<=65535?String.fromCharCode(cp):String.fromCharCode(Math.floor((cp-65536)/1024)+55296)+String.fromCharCode((cp-65536)%1024+56320)}for(ES5Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},ES6Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},NON_ASCII_WHITESPACES=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],IDENTIFIER_START=new Array(128),ch=0;ch<128;++ch)IDENTIFIER_START[ch]=ch>=97&&ch<=122||ch>=65&&ch<=90||36===ch||95===ch;for(IDENTIFIER_PART=new Array(128),ch=0;ch<128;++ch)IDENTIFIER_PART[ch]=ch>=97&&ch<=122||ch>=65&&ch<=90||ch>=48&&ch<=57||36===ch||95===ch;module.exports={isDecimalDigit:function isDecimalDigit(ch){return 48<=ch&&ch<=57},isHexDigit:function isHexDigit(ch){return 48<=ch&&ch<=57||97<=ch&&ch<=102||65<=ch&&ch<=70},isOctalDigit:function isOctalDigit(ch){return ch>=48&&ch<=55},isWhiteSpace:function isWhiteSpace(ch){return 32===ch||9===ch||11===ch||12===ch||160===ch||ch>=5760&&NON_ASCII_WHITESPACES.indexOf(ch)>=0},isLineTerminator:function isLineTerminator(ch){return 10===ch||13===ch||8232===ch||8233===ch},isIdentifierStartES5:function isIdentifierStartES5(ch){return ch<128?IDENTIFIER_START[ch]:ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch))},isIdentifierPartES5:function isIdentifierPartES5(ch){return ch<128?IDENTIFIER_PART[ch]:ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch))},isIdentifierStartES6:function isIdentifierStartES6(ch){return ch<128?IDENTIFIER_START[ch]:ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch))},isIdentifierPartES6:function isIdentifierPartES6(ch){return ch<128?IDENTIFIER_PART[ch]:ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch))}}}()},"../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/keyword.js":(module,__unused_webpack_exports,__webpack_require__)=>{!function(){"use strict";var code=__webpack_require__("../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/code.js");function isKeywordES5(id,strict){return!(!strict&&"yield"===id)&&isKeywordES6(id,strict)}function isKeywordES6(id,strict){if(strict&&function isStrictModeReservedWordES6(id){switch(id){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(id))return!0;switch(id.length){case 2:return"if"===id||"in"===id||"do"===id;case 3:return"var"===id||"for"===id||"new"===id||"try"===id;case 4:return"this"===id||"else"===id||"case"===id||"void"===id||"with"===id||"enum"===id;case 5:return"while"===id||"break"===id||"catch"===id||"throw"===id||"const"===id||"yield"===id||"class"===id||"super"===id;case 6:return"return"===id||"typeof"===id||"delete"===id||"switch"===id||"export"===id||"import"===id;case 7:return"default"===id||"finally"===id||"extends"===id;case 8:return"function"===id||"continue"===id||"debugger"===id;case 10:return"instanceof"===id;default:return!1}}function isReservedWordES5(id,strict){return"null"===id||"true"===id||"false"===id||isKeywordES5(id,strict)}function isReservedWordES6(id,strict){return"null"===id||"true"===id||"false"===id||isKeywordES6(id,strict)}function isIdentifierNameES5(id){var i,iz,ch;if(0===id.length)return!1;if(ch=id.charCodeAt(0),!code.isIdentifierStartES5(ch))return!1;for(i=1,iz=id.length;i=iz)return!1;if(!(56320<=(lowCh=id.charCodeAt(i))&&lowCh<=57343))return!1;ch=1024*(ch-55296)+(lowCh-56320)+65536}if(!check(ch))return!1;check=code.isIdentifierPartES6}return!0}module.exports={isKeywordES5,isKeywordES6,isReservedWordES5,isReservedWordES6,isRestrictedWord:function isRestrictedWord(id){return"eval"===id||"arguments"===id},isIdentifierNameES5,isIdentifierNameES6,isIdentifierES5:function isIdentifierES5(id,strict){return isIdentifierNameES5(id)&&!isReservedWordES5(id,strict)},isIdentifierES6:function isIdentifierES6(id,strict){return isIdentifierNameES6(id)&&!isReservedWordES6(id,strict)}}}()},"../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/utils.js":(__unused_webpack_module,exports,__webpack_require__)=>{!function(){"use strict";exports.ast=__webpack_require__("../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/ast.js"),exports.code=__webpack_require__("../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/code.js"),exports.keyword=__webpack_require__("../node_modules/.pnpm/esutils@2.0.3/node_modules/esutils/lib/keyword.js")}()},"../node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__("../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js"),toStr=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function forEach(list,iterator,thisArg){if(!isCallable(iterator))throw new TypeError("iterator must be a function");var receiver;arguments.length>=3&&(receiver=thisArg),"[object Array]"===toStr.call(list)?function forEachArray(array,iterator,receiver){for(var i=0,len=array.length;i{"use strict";var slice=Array.prototype.slice,toStr=Object.prototype.toString;module.exports=function bind(that){var target=this;if("function"!=typeof target||"[object Function]"!==toStr.call(target))throw new TypeError("Function.prototype.bind called on incompatible "+target);for(var bound,args=slice.call(arguments,1),boundLength=Math.max(0,target.length-args.length),boundArgs=[],i=0;i{"use strict";var implementation=__webpack_require__("../node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/implementation.js");module.exports=Function.prototype.bind||implementation},"../node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var $SyntaxError=SyntaxError,$Function=Function,$TypeError=TypeError,getEvalledConstructor=function(expressionSyntax){try{return $Function('"use strict"; return ('+expressionSyntax+").constructor;")()}catch(e){}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch(e){$gOPD=null}var throwTypeError=function(){throw new $TypeError},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(calleeThrows){try{return $gOPD(arguments,"callee").get}catch(gOPDthrows){return throwTypeError}}}():throwTypeError,hasSymbols=__webpack_require__("../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js")(),getProto=Object.getPrototypeOf||function(x){return x.__proto__},needsEval={},TypedArray="undefined"==typeof Uint8Array?undefined:getProto(Uint8Array),INTRINSICS={"%AggregateError%":"undefined"==typeof AggregateError?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?undefined:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?undefined:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?undefined:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?undefined:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?undefined:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":"undefined"==typeof Map?undefined:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols?getProto((new Map)[Symbol.iterator]()):undefined,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols?getProto((new Set)[Symbol.iterator]()):undefined,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined,"%Symbol%":hasSymbols?Symbol:undefined,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined:WeakSet};try{null.error}catch(e){var errorProto=getProto(getProto(e));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function doEval(name){var value;if("%AsyncFunction%"===name)value=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===name)value=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===name)value=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===name){var fn=doEval("%AsyncGeneratorFunction%");fn&&(value=fn.prototype)}else if("%AsyncIteratorPrototype%"===name){var gen=doEval("%AsyncGenerator%");gen&&(value=getProto(gen.prototype))}return INTRINSICS[name]=value,value},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=__webpack_require__("../node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/index.js"),hasOwn=__webpack_require__("../node_modules/.pnpm/has@1.0.3/node_modules/has/src/index.js"),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,getBaseIntrinsic=function getBaseIntrinsic(name,allowMissing){var alias,intrinsicName=name;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(intrinsicName="%"+(alias=LEGACY_ALIASES[intrinsicName])[0]+"%"),hasOwn(INTRINSICS,intrinsicName)){var value=INTRINSICS[intrinsicName];if(value===needsEval&&(value=doEval(intrinsicName)),void 0===value&&!allowMissing)throw new $TypeError("intrinsic "+name+" exists, but is not available. Please file an issue!");return{alias,name:intrinsicName,value}}throw new $SyntaxError("intrinsic "+name+" does not exist!")};module.exports=function GetIntrinsic(name,allowMissing){if("string"!=typeof name||0===name.length)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof allowMissing)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,name))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=function stringToPath(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if("%"===first&&"%"!==last)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===last&&"%"!==first)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var result=[];return $replace(string,rePropName,(function(match,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar,"$1"):number||match})),result}(name),intrinsicBaseName=parts.length>0?parts[0]:"",intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing),intrinsicRealName=intrinsic.name,value=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i=1,isOwn=!0;i=parts.length){var desc=$gOPD(value,part);value=(isOwn=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:value[part]}else isOwn=hasOwn(value,part),value=value[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value)}}return value}},"../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var $gOPD=__webpack_require__("../node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js")("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch(e){$gOPD=null}module.exports=$gOPD},"../node_modules/.pnpm/has-property-descriptors@1.0.0/node_modules/has-property-descriptors/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var $defineProperty=__webpack_require__("../node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js")("%Object.defineProperty%",!0),hasPropertyDescriptors=function hasPropertyDescriptors(){if($defineProperty)try{return $defineProperty({},"a",{value:1}),!0}catch(e){return!1}return!1};hasPropertyDescriptors.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!hasPropertyDescriptors())return null;try{return 1!==$defineProperty([],"length",{value:1}).length}catch(e){return!0}},module.exports=hasPropertyDescriptors},"../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbolSham=__webpack_require__("../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js");module.exports=function hasNativeSymbols(){return"function"==typeof origSymbol&&("function"==typeof Symbol&&("symbol"==typeof origSymbol("foo")&&("symbol"==typeof Symbol("bar")&&hasSymbolSham())))}},"../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js":module=>{"use strict";module.exports=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var obj={},sym=Symbol("test"),symObj=Object(sym);if("string"==typeof sym)return!1;if("[object Symbol]"!==Object.prototype.toString.call(sym))return!1;if("[object Symbol]"!==Object.prototype.toString.call(symObj))return!1;for(sym in obj[sym]=42,obj)return!1;if("function"==typeof Object.keys&&0!==Object.keys(obj).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(obj).length)return!1;var syms=Object.getOwnPropertySymbols(obj);if(1!==syms.length||syms[0]!==sym)return!1;if(!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(42!==descriptor.value||!0!==descriptor.enumerable)return!1}return!0}},"../node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var hasSymbols=__webpack_require__("../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js");module.exports=function hasToStringTagShams(){return hasSymbols()&&!!Symbol.toStringTag}},"../node_modules/.pnpm/has@1.0.3/node_modules/has/src/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var bind=__webpack_require__("../node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/index.js");module.exports=bind.call(Function.call,Object.prototype.hasOwnProperty)},"../node_modules/.pnpm/html-tags@3.2.0/node_modules/html-tags/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("../node_modules/.pnpm/html-tags@3.2.0/node_modules/html-tags/html-tags.json")},"../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":module=>{"function"==typeof Object.create?module.exports=function inherits(ctor,superCtor){superCtor&&(ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}}},"../node_modules/.pnpm/is-arguments@1.1.1/node_modules/is-arguments/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var hasToStringTag=__webpack_require__("../node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js")(),$toString=__webpack_require__("../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js")("Object.prototype.toString"),isStandardArguments=function isArguments(value){return!(hasToStringTag&&value&&"object"==typeof value&&Symbol.toStringTag in value)&&"[object Arguments]"===$toString(value)},isLegacyArguments=function isArguments(value){return!!isStandardArguments(value)||null!==value&&"object"==typeof value&&"number"==typeof value.length&&value.length>=0&&"[object Array]"!==$toString(value)&&"[object Function]"===$toString(value.callee)},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,module.exports=supportsStandardArguments?isStandardArguments:isLegacyArguments},"../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js":module=>{"use strict";var badArrayLike,isCallableMarker,fnToStr=Function.prototype.toString,reflectApply="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof reflectApply&&"function"==typeof Object.defineProperty)try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply((function(){throw 42}),null,badArrayLike)}catch(_){_!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function isES6ClassFunction(value){try{var fnStr=fnToStr.call(value);return constructorRegex.test(fnStr)}catch(e){return!1}},tryFunctionObject=function tryFunctionToStr(value){try{return!isES6ClassFn(value)&&(fnToStr.call(value),!0)}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function isDocumentDotAll(){return!1};if("object"==typeof document){var all=document.all;toStr.call(all)===toStr.call(document.all)&&(isDDA=function isDocumentDotAll(value){if((isIE68||!value)&&(void 0===value||"object"==typeof value))try{var str=toStr.call(value);return("[object HTMLAllCollection]"===str||"[object HTML document.all class]"===str||"[object HTMLCollection]"===str||"[object Object]"===str)&&null==value("")}catch(e){}return!1})}module.exports=reflectApply?function isCallable(value){if(isDDA(value))return!0;if(!value)return!1;if("function"!=typeof value&&"object"!=typeof value)return!1;try{reflectApply(value,null,badArrayLike)}catch(e){if(e!==isCallableMarker)return!1}return!isES6ClassFn(value)&&tryFunctionObject(value)}:function isCallable(value){if(isDDA(value))return!0;if(!value)return!1;if("function"!=typeof value&&"object"!=typeof value)return!1;if(hasToStringTag)return tryFunctionObject(value);if(isES6ClassFn(value))return!1;var strClass=toStr.call(value);return!("[object Function]"!==strClass&&"[object GeneratorFunction]"!==strClass&&!/^\[object HTML/.test(strClass))&&tryFunctionObject(value)}},"../node_modules/.pnpm/is-generator-function@1.0.10/node_modules/is-generator-function/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var GeneratorFunction,toStr=Object.prototype.toString,fnToStr=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag=__webpack_require__("../node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js")(),getProto=Object.getPrototypeOf;module.exports=function isGeneratorFunction(fn){if("function"!=typeof fn)return!1;if(isFnRegex.test(fnToStr.call(fn)))return!0;if(!hasToStringTag)return"[object GeneratorFunction]"===toStr.call(fn);if(!getProto)return!1;if(void 0===GeneratorFunction){var generatorFunc=function(){if(!hasToStringTag)return!1;try{return Function("return function*() {}")()}catch(e){}}();GeneratorFunction=!!generatorFunc&&getProto(generatorFunc)}return getProto(fn)===GeneratorFunction}},"../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js":module=>{"use strict";module.exports=function isNaN(value){return value!=value}},"../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callBind=__webpack_require__("../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js"),define=__webpack_require__("../node_modules/.pnpm/define-properties@1.1.4/node_modules/define-properties/index.js"),implementation=__webpack_require__("../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js"),getPolyfill=__webpack_require__("../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/polyfill.js"),shim=__webpack_require__("../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/shim.js"),polyfill=callBind(getPolyfill(),Number);define(polyfill,{getPolyfill,implementation,shim}),module.exports=polyfill},"../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/polyfill.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var implementation=__webpack_require__("../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js");module.exports=function getPolyfill(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:implementation}},"../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/shim.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var define=__webpack_require__("../node_modules/.pnpm/define-properties@1.1.4/node_modules/define-properties/index.js"),getPolyfill=__webpack_require__("../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/polyfill.js");module.exports=function shimNumberIsNaN(){var polyfill=getPolyfill();return define(Number,{isNaN:polyfill},{isNaN:function testIsNaN(){return Number.isNaN!==polyfill}}),polyfill}},"../node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js":(__unused_webpack_module,exports)=>{"use strict";function isObject(o){return"[object Object]"===Object.prototype.toString.call(o)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isPlainObject=function isPlainObject(o){var ctor,prot;return!1!==isObject(o)&&(void 0===(ctor=o.constructor)||!1!==isObject(prot=ctor.prototype)&&!1!==prot.hasOwnProperty("isPrototypeOf"))}},"../node_modules/.pnpm/is-typed-array@1.1.10/node_modules/is-typed-array/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var forEach=__webpack_require__("../node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js"),availableTypedArrays=__webpack_require__("../node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js"),callBound=__webpack_require__("../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"),$toString=callBound("Object.prototype.toString"),hasToStringTag=__webpack_require__("../node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js")(),gOPD=__webpack_require__("../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js"),g="undefined"==typeof globalThis?__webpack_require__.g:globalThis,typedArrays=availableTypedArrays(),$indexOf=callBound("Array.prototype.indexOf",!0)||function indexOf(array,value){for(var i=0;i-1}return!!gOPD&&function tryAllTypedArrays(value){var anyTrue=!1;return forEach(toStrTags,(function(getter,typedArray){if(!anyTrue)try{anyTrue=getter.call(value)===typedArray}catch(e){}})),anyTrue}(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js":(module,__unused_webpack_exports,__webpack_require__)=>{var DataView=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js")(__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"),"DataView");module.exports=DataView},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js":(module,__unused_webpack_exports,__webpack_require__)=>{var hashClear=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js"),hashDelete=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js"),hashGet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js"),hashHas=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js"),hashSet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js");function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index{var listCacheClear=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"),listCacheDelete=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"),listCacheGet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"),listCacheHas=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"),listCacheSet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js");function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index{var Map=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js")(__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"),"Map");module.exports=Map},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js":(module,__unused_webpack_exports,__webpack_require__)=>{var mapCacheClear=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"),mapCacheDelete=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"),mapCacheGet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"),mapCacheHas=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"),mapCacheSet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js");function MapCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index{var Promise=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js")(__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"),"Promise");module.exports=Promise},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js":(module,__unused_webpack_exports,__webpack_require__)=>{var Set=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js")(__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"),"Set");module.exports=Set},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js":(module,__unused_webpack_exports,__webpack_require__)=>{var MapCache=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js"),setCacheAdd=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js"),setCacheHas=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js");function SetCache(values){var index=-1,length=null==values?0:values.length;for(this.__data__=new MapCache;++index{var ListCache=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"),stackClear=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"),stackDelete=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"),stackGet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"),stackHas=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"),stackSet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js");function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet,module.exports=Stack},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js":(module,__unused_webpack_exports,__webpack_require__)=>{var Symbol=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js").Symbol;module.exports=Symbol},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js":(module,__unused_webpack_exports,__webpack_require__)=>{var Uint8Array=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js").Uint8Array;module.exports=Uint8Array},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js":(module,__unused_webpack_exports,__webpack_require__)=>{var WeakMap=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js")(__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"),"WeakMap");module.exports=WeakMap},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js":module=>{module.exports=function arrayFilter(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index{var baseTimes=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"),isArguments=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"),isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),isBuffer=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js"),isIndex=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"),isTypedArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js"),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex(key,length))||result.push(key);return result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js":module=>{module.exports=function arrayMap(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index{module.exports=function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index{module.exports=function arraySome(array,predicate){for(var index=-1,length=null==array?0:array.length;++index{var eq=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js");module.exports=function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js":(module,__unused_webpack_exports,__webpack_require__)=>{var defineProperty=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js");module.exports=function baseAssignValue(object,key,value){"__proto__"==key&&defineProperty?defineProperty(object,key,{configurable:!0,enumerable:!0,value,writable:!0}):object[key]=value}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseFor=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js")();module.exports=baseFor},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseFor=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"),keys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");module.exports=function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js":(module,__unused_webpack_exports,__webpack_require__)=>{var castPath=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"),toKey=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js");module.exports=function baseGet(object,path){for(var index=0,length=(path=castPath(path,object)).length;null!=object&&index{var arrayPush=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js"),isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js");module.exports=function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object))}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js":(module,__unused_webpack_exports,__webpack_require__)=>{var Symbol=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),getRawTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"),objectToString=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"),symToStringTag=Symbol?Symbol.toStringTag:void 0;module.exports=function baseGetTag(value){return null==value?void 0===value?"[object Undefined]":"[object Null]":symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js":module=>{module.exports=function baseHasIn(object,key){return null!=object&&key in Object(object)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGetTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),isObjectLike=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");module.exports=function baseIsArguments(value){return isObjectLike(value)&&"[object Arguments]"==baseGetTag(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseIsEqualDeep=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js"),isObjectLike=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");module.exports=function baseIsEqual(value,other,bitmask,customizer,stack){return value===other||(null==value||null==other||!isObjectLike(value)&&!isObjectLike(other)?value!=value&&other!=other:baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack))}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqualDeep.js":(module,__unused_webpack_exports,__webpack_require__)=>{var Stack=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"),equalArrays=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js"),equalByTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalByTag.js"),equalObjects=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js"),getTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js"),isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),isBuffer=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js"),isTypedArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js"),objectTag="[object Object]",hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=objIsArr?"[object Array]":getTag(object),othTag=othIsArr?"[object Array]":getTag(other),objIsObj=(objTag="[object Arguments]"==objTag?objectTag:objTag)==objectTag,othIsObj=(othTag="[object Arguments]"==othTag?objectTag:othTag)==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other))return!1;objIsArr=!0,objIsObj=!1}if(isSameTag&&!objIsObj)return stack||(stack=new Stack),objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);if(!(1&bitmask)){var objIsWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;return stack||(stack=new Stack),equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}return!!isSameTag&&(stack||(stack=new Stack),equalObjects(object,other,bitmask,customizer,equalFunc,stack))}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMatch.js":(module,__unused_webpack_exports,__webpack_require__)=>{var Stack=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"),baseIsEqual=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js");module.exports=function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=Object(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++index{var isFunction=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"),isMasked=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js"),isObject=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"),toSource=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js"),reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");module.exports=function baseIsNative(value){return!(!isObject(value)||isMasked(value))&&(isFunction(value)?reIsNative:reIsHostCtor).test(toSource(value))}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGetTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),isLength=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"),isObjectLike=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"),typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1,module.exports=function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseMatches=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatches.js"),baseMatchesProperty=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js"),identity=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"),isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),property=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");module.exports=function baseIteratee(value){return"function"==typeof value?value:null==value?identity:"object"==typeof value?isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value):property(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isPrototype=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"),nativeKeys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js"),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty.call(object,key)&&"constructor"!=key&&result.push(key);return result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatches.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseIsMatch=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMatch.js"),getMatchData=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMatchData.js"),matchesStrictComparable=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_matchesStrictComparable.js");module.exports=function baseMatches(source){var matchData=getMatchData(source);return 1==matchData.length&&matchData[0][2]?matchesStrictComparable(matchData[0][0],matchData[0][1]):function(object){return object===source||baseIsMatch(object,source,matchData)}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseIsEqual=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsEqual.js"),get=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"),hasIn=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js"),isKey=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"),isStrictComparable=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isStrictComparable.js"),matchesStrictComparable=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_matchesStrictComparable.js"),toKey=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js");module.exports=function baseMatchesProperty(path,srcValue){return isKey(path)&&isStrictComparable(srcValue)?matchesStrictComparable(toKey(path),srcValue):function(object){var objValue=get(object,path);return void 0===objValue&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,3)}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js":module=>{module.exports=function baseProperty(key){return function(object){return null==object?void 0:object[key]}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js");module.exports=function basePropertyDeep(path){return function(object){return baseGet(object,path)}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js":module=>{module.exports=function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index{var Symbol=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),arrayMap=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),isSymbol=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"),symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;module.exports=function baseToString(value){if("string"==typeof value)return value;if(isArray(value))return arrayMap(value,baseToString)+"";if(isSymbol(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-Infinity?"-0":result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js":module=>{module.exports=function baseUnary(func){return function(value){return func(value)}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js":module=>{module.exports=function cacheHas(cache,key){return cache.has(key)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),isKey=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"),stringToPath=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js"),toString=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js");module.exports=function castPath(value,object){return isArray(value)?value:isKey(value,object)?[value]:stringToPath(toString(value))}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js":(module,__unused_webpack_exports,__webpack_require__)=>{var coreJsData=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js")["__core-js_shared__"];module.exports=coreJsData},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js":module=>{module.exports=function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;length--;){var key=props[fromRight?length:++index];if(!1===iteratee(iterable[key],key,iterable))break}return object}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getNative=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js"),defineProperty=function(){try{var func=getNative(Object,"defineProperty");return func({},"",{}),func}catch(e){}}();module.exports=defineProperty},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js":(module,__unused_webpack_exports,__webpack_require__)=>{var SetCache=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),arraySome=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arraySome.js"),cacheHas=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js");module.exports=function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index{var Symbol=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),Uint8Array=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"),eq=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"),equalArrays=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalArrays.js"),mapToArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js"),setToArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js"),symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;module.exports=function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case"[object DataView]":if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)return!1;object=object.buffer,other=other.buffer;case"[object ArrayBuffer]":return!(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other)));case"[object Boolean]":case"[object Date]":case"[object Number]":return eq(+object,+other);case"[object Error]":return object.name==other.name&&object.message==other.message;case"[object RegExp]":case"[object String]":return object==other+"";case"[object Map]":var convert=mapToArray;case"[object Set]":var isPartial=1&bitmask;if(convert||(convert=setToArray),object.size!=other.size&&!isPartial)return!1;var stacked=stack.get(object);if(stacked)return stacked==other;bitmask|=2,stack.set(object,other);var result=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);return stack.delete(object),result;case"[object Symbol]":if(symbolValueOf)return symbolValueOf.call(object)==symbolValueOf.call(other)}return!1}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_equalObjects.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getAllKeys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js"),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,objProps=getAllKeys(object),objLength=objProps.length;if(objLength!=getAllKeys(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index{var freeGlobal="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g;module.exports=freeGlobal},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGetAllKeys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js"),getSymbols=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js"),keys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");module.exports=function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isKeyable=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js");module.exports=function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data["string"==typeof key?"string":"hash"]:data.map}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMatchData.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isStrictComparable=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isStrictComparable.js"),keys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");module.exports=function getMatchData(object){for(var result=keys(object),length=result.length;length--;){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable(value)]}return result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseIsNative=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js"),getValue=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js");module.exports=function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getPrototype=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js")(Object.getPrototypeOf,Object);module.exports=getPrototype},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js":(module,__unused_webpack_exports,__webpack_require__)=>{var Symbol=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol?Symbol.toStringTag:void 0;module.exports=function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=void 0;var unmasked=!0}catch(e){}var result=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]),result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js":(module,__unused_webpack_exports,__webpack_require__)=>{var arrayFilter=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js"),stubArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js"),propertyIsEnumerable=Object.prototype.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(object){return null==object?[]:(object=Object(object),arrayFilter(nativeGetSymbols(object),(function(symbol){return propertyIsEnumerable.call(object,symbol)})))}:stubArray;module.exports=getSymbols},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js":(module,__unused_webpack_exports,__webpack_require__)=>{var DataView=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js"),Map=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"),Promise=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js"),Set=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js"),WeakMap=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js"),baseGetTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),toSource=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js"),dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),getTag=baseGetTag;(DataView&&"[object DataView]"!=getTag(new DataView(new ArrayBuffer(1)))||Map&&"[object Map]"!=getTag(new Map)||Promise&&"[object Promise]"!=getTag(Promise.resolve())||Set&&"[object Set]"!=getTag(new Set)||WeakMap&&"[object WeakMap]"!=getTag(new WeakMap))&&(getTag=function(value){var result=baseGetTag(value),Ctor="[object Object]"==result?value.constructor:void 0,ctorString=Ctor?toSource(Ctor):"";if(ctorString)switch(ctorString){case dataViewCtorString:return"[object DataView]";case mapCtorString:return"[object Map]";case promiseCtorString:return"[object Promise]";case setCtorString:return"[object Set]";case weakMapCtorString:return"[object WeakMap]"}return result}),module.exports=getTag},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js":module=>{module.exports=function getValue(object,key){return null==object?void 0:object[key]}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js":(module,__unused_webpack_exports,__webpack_require__)=>{var castPath=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"),isArguments=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js"),isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),isIndex=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"),isLength=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"),toKey=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js");module.exports=function hasPath(object,path,hasFunc){for(var index=-1,length=(path=castPath(path,object)).length,result=!1;++index{var nativeCreate=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js");module.exports=function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js":module=>{module.exports=function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];return this.size-=result?1:0,result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js":(module,__unused_webpack_exports,__webpack_require__)=>{var nativeCreate=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return"__lodash_hash_undefined__"===result?void 0:result}return hasOwnProperty.call(data,key)?data[key]:void 0}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js":(module,__unused_webpack_exports,__webpack_require__)=>{var nativeCreate=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function hashHas(key){var data=this.__data__;return nativeCreate?void 0!==data[key]:hasOwnProperty.call(data,key)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js":(module,__unused_webpack_exports,__webpack_require__)=>{var nativeCreate=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js");module.exports=function hashSet(key,value){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate&&void 0===value?"__lodash_hash_undefined__":value,this}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js":module=>{var reIsUint=/^(?:0|[1-9]\d*)$/;module.exports=function isIndex(value,length){var type=typeof value;return!!(length=null==length?9007199254740991:length)&&("number"==type||"symbol"!=type&&reIsUint.test(value))&&value>-1&&value%1==0&&value{var isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),isSymbol=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"),reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;module.exports=function isKey(value,object){if(isArray(value))return!1;var type=typeof value;return!("number"!=type&&"symbol"!=type&&"boolean"!=type&&null!=value&&!isSymbol(value))||(reIsPlainProp.test(value)||!reIsDeepProp.test(value)||null!=object&&value in Object(object))}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js":module=>{module.exports=function isKeyable(value){var type=typeof value;return"string"==type||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==value:null===value}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uid,coreJsData=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js"),maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"";module.exports=function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js":module=>{var objectProto=Object.prototype;module.exports=function isPrototype(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isStrictComparable.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isObject=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");module.exports=function isStrictComparable(value){return value==value&&!isObject(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js":module=>{module.exports=function listCacheClear(){this.__data__=[],this.size=0}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js":(module,__unused_webpack_exports,__webpack_require__)=>{var assocIndexOf=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"),splice=Array.prototype.splice;module.exports=function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);return!(index<0)&&(index==data.length-1?data.pop():splice.call(data,index,1),--this.size,!0)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js":(module,__unused_webpack_exports,__webpack_require__)=>{var assocIndexOf=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js");module.exports=function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?void 0:data[index][1]}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js":(module,__unused_webpack_exports,__webpack_require__)=>{var assocIndexOf=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js");module.exports=function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js":(module,__unused_webpack_exports,__webpack_require__)=>{var assocIndexOf=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js");module.exports=function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js":(module,__unused_webpack_exports,__webpack_require__)=>{var Hash=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js"),ListCache=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"),Map=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js");module.exports=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getMapData=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js");module.exports=function mapCacheDelete(key){var result=getMapData(this,key).delete(key);return this.size-=result?1:0,result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getMapData=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js");module.exports=function mapCacheGet(key){return getMapData(this,key).get(key)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getMapData=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js");module.exports=function mapCacheHas(key){return getMapData(this,key).has(key)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getMapData=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js");module.exports=function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js":module=>{module.exports=function mapToArray(map){var index=-1,result=Array(map.size);return map.forEach((function(value,key){result[++index]=[key,value]})),result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_matchesStrictComparable.js":module=>{module.exports=function matchesStrictComparable(key,srcValue){return function(object){return null!=object&&(object[key]===srcValue&&(void 0!==srcValue||key in Object(object)))}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js":(module,__unused_webpack_exports,__webpack_require__)=>{var memoize=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js");module.exports=function memoizeCapped(func){var result=memoize(func,(function(key){return 500===cache.size&&cache.clear(),key})),cache=result.cache;return result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js":(module,__unused_webpack_exports,__webpack_require__)=>{var nativeCreate=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js")(Object,"create");module.exports=nativeCreate},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js":(module,__unused_webpack_exports,__webpack_require__)=>{var nativeKeys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js")(Object.keys,Object);module.exports=nativeKeys},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js":(module,exports,__webpack_require__)=>{module=__webpack_require__.nmd(module);var freeGlobal=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js":module=>{var nativeObjectToString=Object.prototype.toString;module.exports=function objectToString(value){return nativeObjectToString.call(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js":module=>{module.exports=function overArg(func,transform){return function(arg){return func(transform(arg))}}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js":(module,__unused_webpack_exports,__webpack_require__)=>{var freeGlobal=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();module.exports=root},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js":module=>{module.exports=function setCacheAdd(value){return this.__data__.set(value,"__lodash_hash_undefined__"),this}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js":module=>{module.exports=function setCacheHas(value){return this.__data__.has(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToArray.js":module=>{module.exports=function setToArray(set){var index=-1,result=Array(set.size);return set.forEach((function(value){result[++index]=value})),result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js":(module,__unused_webpack_exports,__webpack_require__)=>{var ListCache=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js");module.exports=function stackClear(){this.__data__=new ListCache,this.size=0}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js":module=>{module.exports=function stackDelete(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js":module=>{module.exports=function stackGet(key){return this.__data__.get(key)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js":module=>{module.exports=function stackHas(key){return this.__data__.has(key)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js":(module,__unused_webpack_exports,__webpack_require__)=>{var ListCache=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"),Map=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"),MapCache=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js");module.exports=function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<199)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}return data.set(key,value),this.size=data.size,this}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js":(module,__unused_webpack_exports,__webpack_require__)=>{var memoizeCapped=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js"),rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped((function(string){var result=[];return 46===string.charCodeAt(0)&&result.push(""),string.replace(rePropName,(function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match)})),result}));module.exports=stringToPath},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isSymbol=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");module.exports=function toKey(value){if("string"==typeof value||isSymbol(value))return value;var result=value+"";return"0"==result&&1/value==-Infinity?"-0":result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js":module=>{var funcToString=Function.prototype.toString;module.exports=function toSource(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js":module=>{module.exports=function eq(value,other){return value===other||value!=value&&other!=other}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGet=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js");module.exports=function get(object,path,defaultValue){var result=null==object?void 0:baseGet(object,path);return void 0===result?defaultValue:result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/hasIn.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseHasIn=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseHasIn.js"),hasPath=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hasPath.js");module.exports=function hasIn(object,path){return null!=object&&hasPath(object,path,baseHasIn)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js":module=>{module.exports=function identity(value){return value}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseIsArguments=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js"),isObjectLike=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,propertyIsEnumerable=objectProto.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};module.exports=isArguments},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js":module=>{var isArray=Array.isArray;module.exports=isArray},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isFunction=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"),isLength=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js");module.exports=function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js":(module,exports,__webpack_require__)=>{module=__webpack_require__.nmd(module);var root=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"),stubFalse=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,isBuffer=(Buffer?Buffer.isBuffer:void 0)||stubFalse;module.exports=isBuffer},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGetTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),isObject=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");module.exports=function isFunction(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js":module=>{module.exports=function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js":module=>{module.exports=function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js":module=>{module.exports=function isObjectLike(value){return null!=value&&"object"==typeof value}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGetTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),getPrototype=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"),isObjectLike=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"),funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);module.exports=function isPlainObject(value){if(!isObjectLike(value)||"[object Object]"!=baseGetTag(value))return!1;var proto=getPrototype(value);if(null===proto)return!0;var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGetTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),isArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),isObjectLike=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");module.exports=function isString(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&"[object String]"==baseGetTag(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseGetTag=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),isObjectLike=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");module.exports=function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&"[object Symbol]"==baseGetTag(value)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseIsTypedArray=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js"),baseUnary=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),nodeUtil=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js"),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js":(module,__unused_webpack_exports,__webpack_require__)=>{var arrayLikeKeys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"),baseKeys=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js"),isArrayLike=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js");module.exports=function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseAssignValue=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"),baseForOwn=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js"),baseIteratee=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIteratee.js");module.exports=function mapValues(object,iteratee){var result={};return iteratee=baseIteratee(iteratee,3),baseForOwn(object,(function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object))})),result}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js":(module,__unused_webpack_exports,__webpack_require__)=>{var MapCache=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js");function memoize(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError("Expected a function");var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize.Cache||MapCache),memoized}memoize.Cache=MapCache,module.exports=memoize},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseProperty=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js"),basePropertyDeep=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePropertyDeep.js"),isKey=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"),toKey=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js");module.exports=function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js":module=>{module.exports=function stubArray(){return[]}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js":module=>{module.exports=function stubFalse(){return!1}},"../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseToString=__webpack_require__("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");module.exports=function toString(value){return null==value?"":baseToString(value)}},"../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/implementation.js":module=>{"use strict";var numberIsNaN=function(value){return value!=value};module.exports=function is(a,b){return 0===a&&0===b?1/a==1/b:a===b||!(!numberIsNaN(a)||!numberIsNaN(b))}},"../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var define=__webpack_require__("../node_modules/.pnpm/define-properties@1.1.4/node_modules/define-properties/index.js"),callBind=__webpack_require__("../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js"),implementation=__webpack_require__("../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/implementation.js"),getPolyfill=__webpack_require__("../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/polyfill.js"),shim=__webpack_require__("../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/shim.js"),polyfill=callBind(getPolyfill(),Object);define(polyfill,{getPolyfill,implementation,shim}),module.exports=polyfill},"../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/polyfill.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var implementation=__webpack_require__("../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/implementation.js");module.exports=function getPolyfill(){return"function"==typeof Object.is?Object.is:implementation}},"../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/shim.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var getPolyfill=__webpack_require__("../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/polyfill.js"),define=__webpack_require__("../node_modules/.pnpm/define-properties@1.1.4/node_modules/define-properties/index.js");module.exports=function shimObjectIs(){var polyfill=getPolyfill();return define(Object,{is:polyfill},{is:function testObjectIs(){return Object.is!==polyfill}}),polyfill}},"../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keysShim;if(!Object.keys){var has=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,isArgs=__webpack_require__("../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js"),isEnumerable=Object.prototype.propertyIsEnumerable,hasDontEnumBug=!isEnumerable.call({toString:null},"toString"),hasProtoEnumBug=isEnumerable.call((function(){}),"prototype"),dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],equalsConstructorPrototype=function(o){var ctor=o.constructor;return ctor&&ctor.prototype===o},excludedKeys={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},hasAutomationEqualityBug=function(){if("undefined"==typeof window)return!1;for(var k in window)try{if(!excludedKeys["$"+k]&&has.call(window,k)&&null!==window[k]&&"object"==typeof window[k])try{equalsConstructorPrototype(window[k])}catch(e){return!0}}catch(e){return!0}return!1}();keysShim=function keys(object){var isObject=null!==object&&"object"==typeof object,isFunction="[object Function]"===toStr.call(object),isArguments=isArgs(object),isString=isObject&&"[object String]"===toStr.call(object),theKeys=[];if(!isObject&&!isFunction&&!isArguments)throw new TypeError("Object.keys called on a non-object");var skipProto=hasProtoEnumBug&&isFunction;if(isString&&object.length>0&&!has.call(object,0))for(var i=0;i0)for(var j=0;j{"use strict";var slice=Array.prototype.slice,isArgs=__webpack_require__("../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js"),origKeys=Object.keys,keysShim=origKeys?function keys(o){return origKeys(o)}:__webpack_require__("../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js"),originalKeys=Object.keys;keysShim.shim=function shimObjectKeys(){if(Object.keys){var keysWorksWithArguments=function(){var args=Object.keys(arguments);return args&&args.length===arguments.length}(1,2);keysWorksWithArguments||(Object.keys=function keys(object){return isArgs(object)?originalKeys(slice.call(object)):originalKeys(object)})}else Object.keys=keysShim;return Object.keys||keysShim},module.exports=keysShim},"../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js":module=>{"use strict";var toStr=Object.prototype.toString;module.exports=function isArguments(value){var str=toStr.call(value),isArgs="[object Arguments]"===str;return isArgs||(isArgs="[object Array]"!==str&&null!==value&&"object"==typeof value&&"number"==typeof value.length&&value.length>=0&&"[object Function]"===toStr.call(value.callee)),isArgs}},"../node_modules/.pnpm/object.assign@4.1.4/node_modules/object.assign/implementation.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var objectKeys=__webpack_require__("../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/index.js"),hasSymbols=__webpack_require__("../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js")(),callBound=__webpack_require__("../node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"),toObject=Object,$push=callBound("Array.prototype.push"),$propIsEnumerable=callBound("Object.prototype.propertyIsEnumerable"),originalGetSymbols=hasSymbols?Object.getOwnPropertySymbols:null;module.exports=function assign(target,source1){if(null==target)throw new TypeError("target must be an object");var to=toObject(target);if(1===arguments.length)return to;for(var s=1;s{"use strict";var implementation=__webpack_require__("../node_modules/.pnpm/object.assign@4.1.4/node_modules/object.assign/implementation.js");module.exports=function getPolyfill(){return Object.assign?function(){if(!Object.assign)return!1;for(var str="abcdefghijklmnopqrst",letters=str.split(""),map={},i=0;i{var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i{"use strict";var ReactPropTypesSecret=__webpack_require__("../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js");function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret){var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw err.name="Invariant Violation",err}}function getShim(){return shim}shim.isRequired=shim;var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},"../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js")()},"../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js":module=>{"use strict";module.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var aa=__webpack_require__("../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),ca=__webpack_require__("../node_modules/.pnpm/scheduler@0.23.0/node_modules/scheduler/index.js");function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c