You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/static/js/async/8517.7a7806f4.js

29 lines
1.3 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*! For license information please see 8517.7a7806f4.js.LICENSE.txt */
(self.webpackChunk_coze_studio_app=self.webpackChunk_coze_studio_app||[]).push([["8517"],{916672:function(t,e,n){"use strict";n.d(e,{D:()=>I});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=n("252237"),a=n.n(s),u=n("455069"),l=0,c=1,h=2,f=3,p=4,d={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},m="bottom",g="left",y="right",b="top",O="bp5";"undefined"!=typeof BLUEPRINT_NAMESPACE?O=BLUEPRINT_NAMESPACE:"undefined"!=typeof REACT_APP_BLUEPRINT_NAMESPACE&&(O=REACT_APP_BLUEPRINT_NAMESPACE),S(b),S(m),S(g),S(y),D(l),D(c),D(h),D(f),D(p),k(d.PRIMARY),k(d.SUCCESS),k(d.WARNING),k(d.DANGER);var w="".concat(O,"-overflow-list"),x="".concat(w,"-spacer");function D(t){if(void 0!==t)return"".concat(O,"-elevation-").concat(t)}function k(t){if(null!=t&&t!==d.NONE)return"".concat(O,"-intent-").concat(t.toLowerCase())}function S(t){if(void 0!==t)return"".concat(O,"-position-").concat(t)}var E={START:"start",END:"end"},C="Blueprint5",T="[Blueprint] <OverflowList> does not support changing observeParents after mounting.";function A(t,e,n){if(null==t&&null==e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t)||Array.isArray(e))return!1;else{if(null!=n)return M(t,e,n);var r=Object.keys(t),o=Object.keys(e);return M(t,e,{include:r})&&M(t,e,{include:o})}}function M(t,e,n){return(function(t,e,n){if(function(t){return null!=t&&null!=t.include}(n))return n.include;if(function(t){return null!=t&&null!=t.exclude}(n)){var r=Object.keys(t),o=Object.keys(e),s=function(t){return t.reduce(function(t,e){return t[e]=!0,t},{})}(r.concat(o));return n.exclude.forEach(function(t){return delete s[t]}),Object.keys(s)}return[]})(t,e,n).every(function(n){return t.hasOwnProperty(n)===e.hasOwnProperty(n)&&t[n]===e[n]})}function P(t){return"production"===t}var B=function(t){function e(){var e,n=t.apply(this,arguments)||this;return n.targetRef=null!==(e=n.props.targetRef)&&void 0!==e?e:u.createRef(),n.prevElement=void 0,n}return o(e,t),e.prototype.render=function(){var t=u.Children.only(this.props.children);return void 0!==this.props.targetRef?t:u.cloneElement(t,{ref:this.targetRef})},e.prototype.componentDidMount=function(){var t=this;this.observer=null!=globalThis.ResizeObserver?new ResizeObserver(function(e){var n,r;return null===(r=(n=t.props).onResize)||void 0===r?void 0:r.call(n,e)}):void 0,this.observeElement()},e.prototype.componentDidUpdate=function(t){this.observeElement(this.props.observeParents!==t.observeParents)},e.prototype.componentWillUnmount=function(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.prevElement=void 0},e.prototype.observeElement=function(t){if(void 0===t&&(t=!1),void 0===this.observer)return;if(!(this.targetRef.current instanceof Element)){this.observer.disconnect();return}if(this.targetRef.current!==this.prevElement||!!t){this.observer.disconnect(),this.prevElement=this.targetRef.current;if(this.observer.observe(this.targetRef.current),this.props.observeParents){for(var e=this.targetRef.current.parentElement;null!=e;)this.observer.observe(e),e=e.parentElement}}},e.displayName="".concat(C,".ResizeSensor"),e}(function(t){function e(e){var n=t.call(this,e)||this;return n.timeoutIds=[],n.requestIds=[],n.clearTimeouts=function(){if(n.timeoutIds.length>0){for(var t=0,e=n.timeoutIds;t<e.length;t++){var r=e[t];window.clearTimeout(r)}n.timeoutIds=[]}},n.cancelAnimationFrames=function(){if(n.requestIds.length>0){for(var t=0,e=n.requestIds;t<e.length;t++){var r=e[t];window.cancelAnimationFrame(r)}n.requestIds=[]}},!P("production")&&n.validateProps(n.props),n}return o(e,t),e.prototype.componentDidUpdate=function(t,e,n){!P("production")&&this.validateProps(this.props)},e.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},e.prototype.requestAnimationFrame=function(t){var e=window.requestAnimationFrame(t);return this.requestIds.push(e),function(){return window.cancelAnimationFrame(e)}},e.prototype.setTimeout=function(t,e){var n=window.setTimeout(t,e);return this.timeoutIds.push(n),function(){return window.clearTimeout(n)}},e.prototype.validateProps=function(t){},e}(u.PureComponent)),I=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={chopSize:e.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!1,visible:e.props.items},e.spacer=null,e.resize=function(){e.repartition()},e}return o(e,t),e.ofType=function(){return e},e.prototype.componentDidMount=function(){this.repartition()},e.prototype.shouldComponentUpdate=function(t,e){return this.props!==t||!(this.state!==e&&A(this.state,e))},e.prototype.componentDidUpdate=function(t,e){t.observeParents!==this.props.observeParents&&console.warn(T),(t.collapseFrom!==this.props.collapseFrom||t.items!==this.props.items||t.minVisibleItems!==this.props.minVisibleItems||t.overflowRenderer!==this.props.overflowRenderer||t.alwaysRenderOverflow!==this.props.alwaysRenderOverflow||t.visibleItemRenderer!==this.props.visibleItemRenderer)&&this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!0,visible:this.props.items});var n,r,o=this.state,s=o.repartitioning,a=o.overflow,u=o.lastOverflowCount;!1===s&&!0===e.repartitioning?a.length!==u&&(null===(r=(n=this.props).onOverflow)||void 0===r||r.call(n,a.slice())):!A(e,this.state)&&this.repartition()},e.prototype.render=function(){var t=this,e=this.props,n=e.className,r=e.collapseFrom,o=e.observeParents,s=e.style,l=e.tagName,c=e.visibleItemRenderer,h=this.maybeRenderOverflow(),f=u.createElement(void 0===l?"div":l,{className:a()(w,n),style:s},r===E.START?h:null,this.state.visible.map(c),r===E.END?h:null,u.createElement("div",{className:x,ref:function(e){return t.spacer=e}}));return u.createElement(B,{onResize:this.resize,observeParents:o},f)},e.prototype.maybeRenderOverflow=function(){var t=this.state.overflow;return 0!==t.length||this.props.alwaysRenderOverflow?this.props.overflowRenderer(t.slice()):null},e.prototype.repartition=function(){var t,e=this;if(null!=this.spacer){var n=1===this.state.lastChopSize,r=null!==(t=this.props.minVisibleItems)&&void 0!==t?t:0,o=this.spacer.offsetWidth<.9&&this.state.visible.length>r,s=(this.spacer.offsetWidth>=1||this.state.visible.length<r)&&this.state.overflow.length>0&&!n;o||s?this.setState(function(t){if(e.props.collapseFrom===E.END){var n,r,s=N(t.visible,t.overflow,e.state.chopSize*(o?1:-1));n=s[0],r=s[1]}else{var s=N(t.overflow,t.visible,e.state.chopSize*(o?-1:1));r=s[0],n=s[1]}return{chopSize:F(t.chopSize),lastChopSize:t.chopSize,lastOverflowCount:e.isFirstPartitionCycle(t.chopSize)?t.overflow.length:t.lastOverflowCount,overflow:r,repartitioning:!0,visible:n}}):this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,repartitioning:!1})}},e.prototype.defaultChopSize=function(){return F(this.props.items.length)},e.prototype.isFirstPartitionCycle=function(t){return t===this.defaultChopSize()},e.displayName="".concat(C,".OverflowList"),e.defaultProps={alwaysRenderOverflow:!1,collapseFrom:E.START,minVisibleItems:0},e}(u.Component);function F(t){return Math.ceil(t/2)}function N(t,e,n){var r=t.concat(e),o=t.length-n;if(o<=0)return[[],r];if(o>=r.length)return[r,[]];var s=r.length-o;return[r.slice(0,-s),r.slice(-s)]}},121107:function(t,e,n){"use strict";n.d(e,{Ny:()=>d,tk:()=>X,sO:()=>c,JB:()=>P,T_:()=>h,RH:()=>m,W$:()=>B,uj:()=>E,Ah:()=>F,jw:()=>N,AI:()=>w,Gm:()=>V,Xe:()=>g,FF:()=>R,y:()=>q,Cb:()=>_,NA:()=>l,$Z:()=>S,Ee:()=>z,ej:()=>W,y2:()=>k,FW:()=>x,Yf:()=>j,Fb:()=>y,kC:()=>L,yv:()=>f,sR:()=>M,qt:()=>I,Rl:()=>H,KX:()=>A,Cw:()=>p,Mf:()=>D,RB:()=>U,lp:()=>C,Yw:()=>T});var r=n("249294"),o=n("913693"),s=n("992814"),a=n("301411"),u=n("554011"),l=({view:t})=>()=>t.state.sliceDoc(),c=({view:t})=>e=>{let{state:n}=t;if(!n.readOnly)t.dispatch(n.update({changes:{from:0,to:n.doc.length,insert:e??""}}))},h=({view:t})=>()=>{t.focus()},f=({view:t})=>()=>{t.contentDOM.blur()},p=({view:t})=>e=>{t.dispatch({selection:{head:e,anchor:e}})},d=({view:t})=>()=>t.state.selection.main.head,m=({view:t})=>e=>{let n=t.state.selection.main.head,r=t.state.doc.lineAt(n),o=Math.max(r.from,n-250),s=r.text.slice(o-r.from,n-r.from);if(e instanceof RegExp){let t=s.search(function(t,e){let{source:n}=t,r=e&&"^"!==n[0],o="$"!==n[n.length-1];return r||o?RegExp(`${r?"^":""}(?:${n})${o?"$":""}`,t.flags??(t.ignoreCase?"i":"")):t}(e,!1));return t<0?null:{from:o+t,to:n,text:s.slice(t)}}return null},g=({view:t})=>()=>t,y=({view:t})=>({from:e,to:n,text:r,cursorOffset:s=0,userEvent:a})=>{let{state:u}=t;if(u.readOnly)return;let{main:l}=u.selection,c=e-l.from,h=n-l.from;t.dispatch({...t.state.changeByRange(t=>t!==l&&e!==n&&u.sliceDoc(t.from+c,t.from+h)!==u.sliceDoc(e,n)?{range:t}:{changes:{from:t.from+c,to:n===l.from?t.to:t.from+h,insert:r},range:o.jT.cursor(t.from+c+r.length+s)}),scrollIntoView:!0,userEvent:a})},b=o.Py.define(),O=()=>!0,w=o.QQ.define({create:()=>[],update(t,e){for(let t of e.effects)if(t.is(b))return t.value;return t},provide:t=>o.Wl.highest(r.$f.compute([t],e=>e.field(t).map(t=>({key:t,run:O}))))}),x=({view:t})=>e=>{t.dispatch({effects:b.of(e)})},D=({view:t})=>()=>{let{from:e,to:n,anchor:r,head:o}=t.state.selection.main;return{from:e,to:n,anchor:r,head:o}},k=({view:t})=>e=>t.state.doc.lineAt(e),S=({view:t})=>()=>t.hasFocus,E=({view:t})=>()=>r.dc.forRange(t,"",t.state.selection.main).map(t=>(function(t,e){let n={};for(let r=0;r<e.length;r++){let o=e[r];Object.hasOwn(t,o)&&(n[o]=t[o])}return n})(t,["top","left","width","height"])),C=({view:t})=>e=>{let{state:n}=t;if(n.readOnly)return;let{from:r,to:s,text:a,cursorOffset:u=0,scrollIntoView:l=!0,userEvent:c}=e;t.dispatch({changes:{from:r,to:s,insert:a},selection:o.jT.cursor(r+a.length+u),scrollIntoView:l,userEvent:c})},T=({view:t})=>()=>{(0,s.Yw)({state:t.state,dispatch:t.dispatch})},A=({view:t})=>()=>{(0,s.KX)({state:t.state,dispatch:t.dispatch})},M=({view:t})=>e=>{let{from:n,to:r}=t.state.selection.main,s=e(t.state.sliceDoc(n,r));if("string"==typeof s)t.dispatch({changes:{from:n,to:r,insert:s},selection:o.jT.cursor(n+s.length)})},P=t=>void 0===t?[]:r.tk.theme({"&":{fontSize:"number"==typeof t?`${t}px`:"inherit"}}),B=t=>(0,a.W)(t??""),I=t=>o.yy.readOnly.of(t??!1),F=t=>r.tk.editable.of(t??!0),N=t=>void 0===t?[]:r.tk.theme({".cm-content, .cm-gutter, .cm-right-gutter":{minHeight:"number"==typeof t?`${t}px`:"string"==typeof t?t:"unset"}}),L=t=>void 0===t?[]:r.tk.theme({".cm-scroller":{maxHeight:"number"==typeof t?`${t}px`:"string"==typeof t?t:"unset"}}),_=t=>"string"==typeof t||"number"==typeof t?[o.Wl.high(r.tk.theme({".cm-content, .cm-gutter, .cm-right-gutter":{minHeight:"number"==typeof t?`${t}px`:t}})),r.tk.theme({".cm-scroller":{height:"number"==typeof t?`${t}px`:t}})]:[],X=t=>r.tk.contentAttributes.of(t??{}),R=t=>t?r.tk.lineWrapping:[],j=t=>t.docChanged?{value:t.state.sliceDoc()}:u.D4,$=o.Py.define(),V=r.lg.fromClass(class{hasFocus;constructor(t){this.hasFocus=t.hasFocus}update(t){t.view.hasFocus!==this.hasFocus&&(this.hasFocus=t.view.hasFocus,queueMicrotask(()=>{t.view.dispatch({effects:$.of(this.hasFocus)})}))}}),H=t=>{for(let e of t.transactions)for(let t of e.effects)if(t.is($)&&!0===t.value)return;return u.D4},W=t=>{for(let e of t.transactions)for(let t of e.effects)if(t.is($)&&!1===t.value)return;return u.D4},z=t=>{if(!t.startState.selection.eq(t.state.selection)){let{from:e,to:n,anchor:r,head:o}=t.state.selection.main;return{selection:{from:e,to:n,head:o,anchor:r},update:t}}return u.D4},q=t=>t,U=()=>[o.Wl.low(r.tk.theme({"&.cm-focused":{outline:"none"},"& .cm-content":{cursor:"text"},"& .cm-placeholder":{wordBreak:"break-all"}}))]},554011:function(t,e,n){"use strict";n.d(e,{AO:function(){return f},B:function(){return c},D4:function(){return a},Gj:function(){return h},Kw:function(){return u},Ue:function(){return k},hi:function(){return l},vH:function(){return w}});var r=n(917085),o=n(249294),s=n(913693),a=Symbol("event/silent");function u(t,e){return{type:"option",name:t,handler:e}}function l(t,e){return{type:"api",name:t,handler:e}}function c(t,e){return{type:"event",name:t,handler:e}}function h(t){return{type:"domEventHandler",name:t}}function f(t){return{type:"extension",extension:t}}var p=class{constructor(t){this.fn=t}compartment=new s.F6;extension;value;init(t){this.value=t;let e=this.fn(t);return this.compartment.of(e??[])}set(t){if(t===this.value)return;this.value=t;let e=this.fn(t);return this.compartment.reconfigure(e??[])}},d=class{cachedValues=Object.create(null);handlers=Object.create(null);add(t,e){this.handlers[t]=this.handlers[t]??[],this.handlers[t].push(e)}init(t){let e=[];return Object.keys(this.handlers).map(n=>{let r=t[n];this.cachedValues[n]=r;let o=this.handlers[n];o&&o.forEach(t=>{let n=t.init(r);n&&e.push(n)})}),e}get(t){return this.cachedValues[t]}set(t){let e=[];return Object.keys(t).map(n=>{let r=t[n];this.cachedValues[n]=r;let o=this.handlers[n];o&&o.forEach(t=>{let n=t.set(r);n&&e.push(n)})}),e}},m=t=>({apply(e){e.hooks.setupOption.tap("option",e=>{let{key:n,options:r}=e;n===t.name&&r.add(t.name,new p(t.handler))})}}),g=t=>({apply(e){e.hooks.extendAPI.tap("api",e=>{let{context:n,api:r}=e,o=t.handler(n);r[t.name]=o})}}),y=t=>({apply(e){e.hooks.addExtension.tap("event",e=>{let{events:n,extensions:r}=e;r.push(o.tk.updateListener.of(e=>{let r=t.handler(e);r!==a&&n.emit(t.name,r)}))})}}),b=t=>({apply(e){e.hooks.addExtension.tap("domEventHandler",e=>{let{events:n,extensions:r}=e;r.push(o.tk.domEventHandlers({[t.name]:e=>{n.emit(t.name,e)}}))})}}),O=t=>({apply(e){e.hooks.addExtension.tap("extension",e=>{let{extensions:n}=e;n.push(t.extension)})}});function w(){let t=new s.F6,e=new s.F6,n=[],r=[];return{view:null,provideView(t){this.view=t},inject(o,s="tail"){let a="head"===s?t:e,u="head"===s?n:r;return u.push(o),queueMicrotask(()=>{this.view&&this.view.dispatch({effects:a.reconfigure(u)})}),()=>{let t=u.indexOf(o);~t&&u.splice(t,1),queueMicrotask(()=>{this.view&&this.view.dispatch({effects:a.reconfigure(u)})})}},getCompartment:o=>"head"===o?t.of(n):e.of(r)}}var x=class{#t=[];tap(t,e){this.#t.push([t,e])}call(...t){this.#t.forEach(e=>{let n=e[1];"function"==typeof n&&n(...t)})}};function D(){return new x}function k({plugins:t,injector:e=w()}){let n={extendAPI:D(),setupOption:D(),addExtension:D()},a={hooks:n},u=[],l=[];function c(t,{options:r,events:o}){u.forEach(t=>{n.setupOption.call({key:t,options:r})});let s=[];return n.addExtension.call({events:o,extensions:s}),[e.getCompartment("head"),...r.init(t),...s,e.getCompartment("tail")]}function h(){return new d}function f(){return(0,r.Z)()}function p({view:t,options:r,events:o}){function s(e){let n=r.set(e);if(0!==n.length)t.dispatch({effects:n})}function a(t){return r.get(t)}let u=Object.create(null);return n.extendAPI.call({context:{view:t,set:s,get:a},api:u}),u.$view=t,u.$on=o.on.bind(o),u.$off=o.off.bind(o),u.$get=a,u.$set=s,u.$inject=e.inject.bind(e),u.$destroy=()=>{t.destroy(),o.off("*")},u}return t.forEach(t=>{switch(t.type){case"option":u.push(t.name),m(t).apply(a);break;case"api":g(t).apply(a);break;case"event":l.push(t.name),y(t).apply(a);break;case"domEventHandler":l.push(t.name),b(t).apply(a);break;case"extension":O(t).apply(a)}}),{render:function(t){let{parent:n,root:r,defaultValue:a}=t,{extensions:u}=t;!Array.isArray(u)&&(u=[]);let l=h(),d=f(),m=c(t.options,{options:l,events:d}),g=new o.tk({parent:n,root:r,state:s.yy.create({doc:a??"",extensions:[...m,...u]})});return e.provideView(g),p({view:g,options:l,events:d})},getExtensions:c,createAPI:p,createOptions:h,createEvents:f,eventKeys:l}}o.tk.EDIT_CONTEXT=!1},301411:function(t,e,n){"use strict";n.d(e,{E:function(){return y},W:function(){return f}});var r,o=n(561700),s=n(249294),a=n(913693);function u(){return class extends s.l9{constructor(t){super(),this.content=t}toDOM(t){let e=document.createElement("span");return e.className="cm-placeholder",e.style.cssText=`
height: 0;
`,e.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(t):this.content),"string"==typeof this.content?e.setAttribute("aria-label",`placeholder ${this.content}`):e.setAttribute("aria-hidden","true"),e}coordsAt(t){var e;let n=t.firstChild?3==(e=t.firstChild).nodeType?(function(t,e,n=e){let o=r||(r=document.createRange());return o.setEnd(t,n),o.setStart(t,0),o})(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]:[];if(!n.length)return null;let o=window.getComputedStyle(t.parentNode),s=function(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}(n[0],"rtl"!=o.direction),a=parseInt(o.lineHeight);return s.bottom-s.top>1.5*a?{left:s.left,right:s.right,top:s.top,bottom:s.top+a}:s}ignoreEvent(){return!1}}}var l=u(),c=a.r$.define({combine:o.wA.Last}),h=s.lg.fromClass(class{constructor(t){this.view=t;let e=t.state.facet(c);this.placeholder=this.getPlaceholder(e)}placeholder;content;update(t){let e=t.view.state.facet(c);this.content!==e&&(this.placeholder=this.getPlaceholder(e),this.content=e)}getPlaceholder(t){return t?s.p.set([s.p.widget({widget:new l(t),side:1}).range(0)]):s.p.none}get decorations(){return this.view.state.doc.length?s.p.none:this.placeholder}},{decorations:t=>t.decorations});function f(t){return[h,c.of(t)]}var p=u(),d=a.r$.define({combine:o.wA.Last}),m=s.lg.fromClass(class{decorations=s.p.none;constructor(t){t.hasFocus?this.decorations=g(t.state):this.decorations=s.p.none}update(t){if(!t.view.hasFocus){this.decorations=s.p.none;return}(t.selectionSet||t.docChanged)&&(this.decorations=g(t.state))}},{decorations:t=>t.decorations});function g(t){let e=t.selection.main.head;if(t.selection.main.empty){let n=t.doc.lineAt(e);if(n&&0===n.length){let e=t.facet(d);return s.p.set([s.p.widget({widget:new p(e),side:1}).range(n.from)])}}return s.p.none}var y=function(t){return[m,d.of(t)]}},642199:function(t,e,n){"use strict";function r(t,e){let n={...t};for(let t=0;t<e.length;t++){let r=e[t];delete n[r]}return n}n.d(e,{T9:()=>tt,Gk:()=>ti,Pu:()=>B,Hw:()=>j,m6:()=>tr,Cj:()=>E,pt:()=>ts,bi:()=>_,j9:()=>Q,_h:()=>N,Tz:()=>tn,U_:()=>b,ut:()=>$,cl:()=>T});var o,s=n("561700"),a=n("249294"),u=n("913693"),l=n("562312"),c=n("437254"),h=n("290483"),f=n("888855");let p=(0,f.Gv)({"{{ }}":f.pJ.separator}),d=h.WQ.deserialize({version:14,states:"!^QVOPOOO_QQO'#C^OOOO'#Cc'#CcQVOPOOOOQO'#Cd'#CdOgQQO,58xOOOO,58x,58xOOOO-E6a-E6aOOQO-E6b-E6bOOOO1G.d1G.d",stateData:"r~OZOS~ORPOUQO~OSSOTUO~OSSOTXO~OZS~",goto:"jXPPYPPPP^dTQORQRORVRQTPRWT",nodeNames:"⚠ Template Interpolation {{ InterpolationContent }} Text",maxTerm:11,nodeProps:[["closedBy",3,"InterpolationEnd"],["openedBy",5,"InterpolationOpen"]],propSources:[p],skippedNodes:[0],repeatNodeCount:2,tokenData:"+hRRkOX!vX^'Y^p!vpq'Yq#o!v#o#p)W#p#q!v#q#r*`#r#y!v#y#z'Y#z$f!v$f$g'Y$g#BY!v#BY#BZ'Y#BZ$IS!v$IS$I_'Y$I_$I|!v$I|$JO'Y$JO$JT!v$JT$JU'Y$JU$KV!v$KV$KW'Y$KW&FU!v&FU&FV'Y&FV;'S!v;'S;=`'S<%lO!vR!}VUPSQO#o!v#o#p#d#p#q!v#q#r%[#r;'S!v;'S;=`'S<%lO!vR#iXSQO#o!v#o#p$U#p#q!v#q#r%[#r;'S!v;'S;=`'S<%l~!v~O!v~~&}Q$ZTSQO#q$U#q#r$j#r;'S$U;'S;=`%P<%lO$UQ$mUO#q$U#r;'S$U;'S;=`%P<%l~$U~O$U~~%VQ%SP;=`<%l$UQ%[OSQR%aXUPO#o!v#o#p#d#p#q!v#q#r%|#r;'S!v;'S;=`'S<%l~!v~O!v~~%VP&RTUPO#o%|#o#p&b#p;'S%|;'S;=`&w<%lO%|P&eUO#o%|#p;'S%|;'S;=`&w<%l~%|~O%|~~&}P&zP;=`<%l%|P'SOUPR'VP;=`<%l!vR'ckUPZQSQOX!vX^'Y^p!vpq'Yq#o!v#o#p#d#p#q!v#q#r%[#r#y!v#y#z'Y#z$f!v$f$g'Y$g#BY!v#BY#BZ'Y#BZ$IS!v$IS$I_'Y$I_$I|!v$I|$JO'Y$JO$JT!v$JT$JU'Y$JU$KV!v$KV$KW'Y$KW&FU!v&FU&FV'Y&FV;'S!v;'S;=`'S<%lO!vR)]XSQO#o!v#o#p)x#p#q!v#q#r%[#r;'S!v;'S;=`'S<%l~!v~O!v~~&}R*PTRPSQO#q$U#q#r$j#r;'S$U;'S;=`%P<%lO$UR*eXUPO#o!v#o#p#d#p#q!v#q#r+Q#r;'S!v;'S;=`'S<%l~!v~O!v~~%VR+XTTQUPO#o%|#o#p&b#p;'S%|;'S;=`&w<%lO%|",tokenizers:[0,1],topRules:{Template:[0,1]},tokenPrec:31});var m=(0,a.EY)({above:!1,markers:t=>(function(t,e){let n=[];return t.forEach(t=>{let r=e.doc.lineAt(t.from),o=e.doc.lineAt(t.to);if(r.number!==o.number){let s=[],a=t.from;for(let n=r.number;n<o.number;n++){let r=e.doc.line(n);s.push({from:a,to:r.to,className:t.className}),a=r.to+1}s.push({from:a,to:t.to,className:t.className}),n.push(...s)}else n.push(t)}),n})(function(t){let e=[];return(function(t){let e=new Map;return t.forEach(t=>{!e.has(t.className)&&e.set(t.className,[]),e.get(t.className).push(t)}),e})(t).forEach((t,n)=>{let r=function(t){let e=[],n=t.map(t=>({start:t.from,end:t.to}));n.sort((t,e)=>t.start-e.start);let r=n[0];for(let t=1;t<n.length;t++){let o=n[t];o.start<=r.end?r.end=Math.max(r.end,o.end):(e.push(r),r=o)}return e.push(r),e}(t);e.push(...r.map(t=>({from:t.start,to:t.end,className:n})))}),e}(t.state.facet(g).reduce((e,n)=>[...e,...n(t)],[])),t.state).map(e=>a.dc.forRange(t,e.className,u.jT.range(e.from,e.to))).reduce((t,e)=>[...t,...e],[]),update:t=>{var e;return t.focusChanged||t.docChanged||t.selectionSet||t.viewportChanged||(e=t).startState.facet(g)!==e.state.facet(g)},class:"cm-backgroundDecoratorLayer"}),g=u.r$.define({enables:[m]}),y=u.Py.define();function b(t){t.dispatch({effects:y.of(null)})}var O=new Map;function w(t,e){let n=t.facet(D)??[],o=e.cursor(),l={highest:a.p.none,high:a.p.none,default:a.p.none,low:a.p.none,lowest:a.p.none},c=u.Xs.empty,h=[],f=t.doc.length;return(0,s.oO)(o,0,f,e=>{n.forEach(n=>{let o=n(e,t),s=[];Array.isArray(o)?s=o:o&&(s=[o]),s.forEach(t=>{let n=function(t,e,{decorations:n,backgroundDecorations:o,atomicRanges:s}){if(!e)return;let u=e.from??t.from,l=e.to??t.to,c=["type","from","to","atomicRange"],h=null;switch(e.type){case"className":var f;h=u===l?null:(f=e.className,!O.has(f)&&O.set(f,a.p.mark({class:f})),O.get(f)).range(u,l);break;case"replace":h=a.p.replace(r(e,c)).range(u,l);break;case"widget":h=a.p.widget(r(e,c)).range(u);break;case"background":o.push({from:e.from??t.from,to:e.to??t.to,className:e.className})}if(h){let t="className"===e.type?e.prec??"default":"default";n[t]&&(n[t]=n[t].update({add:[h],sort:!0}))}return"background"!==e.type&&h&&!0===e.atomicRange&&(s=s.update({add:[h],sort:!0})),{decorations:n,backgroundDecorations:o,atomicRanges:s}}(e,t,{decorations:l,backgroundDecorations:h,atomicRanges:c});if(!!n)h=n.backgroundDecorations,c=n.atomicRanges})})}),{decorations:l,atomicRanges:c,backgroundDecorations:h}}var x=u.QQ.define({create:t=>w(t,(0,l.qz)(t)),update(t,e){let n=(0,l.qz)(e.state),r=e.effects.some(t=>t.is(y));return((0,l.qz)(e.startState)!==n||r)&&(t=w(e.state,n)),t},provide:t=>[u.Wl.highest(a.tk.decorations.compute([t],e=>e.field(t).decorations.highest)),u.Wl.high(a.tk.decorations.compute([t],e=>e.field(t).decorations.high)),u.Wl.default(a.tk.decorations.compute([t],e=>e.field(t).decorations.default)),u.Wl.low(a.tk.decorations.compute([t],e=>e.field(t).decorations.low)),u.Wl.lowest(a.tk.decorations.compute([t],e=>e.field(t).decorations.lowest)),a.tk.atomicRanges.of(e=>e.state.field(t).atomicRanges),g.of(e=>e.state.field(t).backgroundDecorations)]}),D=u.r$.define({enables:[x,m]}),k=class{constructor(t){this.view=t}classNameDecorationCache=new Map;decorations=a.p.none;backgroundDecorations=[];getClassDecoration(t){return!this.classNameDecorationCache.has(t)&&this.classNameDecorationCache.set(t,a.p.mark({class:t})),this.classNameDecorationCache.get(t)}update(t){if(t.focusChanged&&t.view.hasFocus||!t.startState.selection.eq(t.state.selection)){let e=(0,l.qz)(t.state),n=t.state.selection.main.head,r=t.state.facet(S),o=e.cursorAt(n,0),s=new u.f_,a=[];do r.forEach(e=>{let n;let r=e(o,t.state);if(!!r){switch(r.type){case"className":n=this.getClassDecoration(r.className);break;case"background":a.push({from:r.from??o.from,to:r.to??o.to,className:r.className})}n&&s.add(r.from??o.from,r.to??o.to,n)}});while(o.parent());this.decorations=s.finish(),this.backgroundDecorations=a}t.focusChanged&&!t.view.hasFocus&&(this.decorations=a.p.none,this.backgroundDecorations=[])}},S=u.r$.define({enables:[a.lg.fromClass(k,{decorations:t=>t.decorations,provide:t=>[g.of(e=>{var n;return(null==(n=e.plugin(t))?void 0:n.backgroundDecorations)??[]})]})]}),E={whole:D,fromCursor:S};function C(t){let e=(0,l.qz)(t);console.groupCollapsed("Syntax Tree");let n=e.cursor();(0,s.oO)(n,0,e.length,e=>{console.group(`%c${e.name}(${e.from}:${e.to})`,"color: purple;"),console.log(t.sliceDoc(e.from,e.to)),console.groupEnd()}),console.groupEnd()}a.lg.fromClass(class{constructor(t){C(t.state)}update(t){t.docChanged&&C(t.state)}});var T=a.$f.of([{key:"ArrowLeft",run(t){let e=t.state.selection.main;if(!e.empty)return!1;let n=!1,r=e.from;for(let e of t.docView.children){for(let t of e.children)t.isWidget&&t.widget instanceof A&&t.posAtEnd===r&&(t.widget.focus(1),n=!0);if(n)break}return n}},{key:"ArrowRight",run(t){let e=t.state.selection.main;if(!e.empty)return!1;let n=!1,r=e.from;for(let e of t.docView.children){for(let t of e.children)if(t.isWidget&&t.widget instanceof A&&t.posAtStart===r){t.widget.focus(-1),n=!0;break}if(n)break}return n}}]),A=class extends a.l9{};function M(t,e){for(let n of t)if(e>=n.from&&e<=n.to)return n}var P=a.lg.fromClass(class{lastFocus=!1;constructor(t){this.lastFocus=t.hasFocus}update(t){let e=t.state.facet(I)??"select";if(t.transactions.some(t=>t.isUserEvent(e))){let e=this.lastFocus,n=t.startState.selection,{selection:r}=t.state,o=t.state.facet(B),a=function(t){if(0===t.length)return[];let e=[],n=t.map(t=>({from:t.from,to:t.to}));n.sort((t,e)=>t.from-e.from);let r=n[0];for(let t=1;t<n.length;t++){let o=n[t];o.from<=r.to?r.to=Math.max(r.to,o.to):(e.push(r),r=o)}return r&&e.push(r),e}((0,s.xH)(o.map(e=>e(t.view.state))).filter(Boolean)),l=M(a,r.main.from);r.main.empty&&l&&(!e||M(a,n.main.from)!==l||M(a,n.main.to)!==l)&&queueMicrotask(()=>{t.view.dispatch({selection:r.replaceRange(u.jT.range(l.from,l.to))})})}this.lastFocus!==t.view.hasFocus&&(this.lastFocus=t.view.hasFocus)}}),B=u.r$.define({enables:P}),I=u.r$.define({combine:s.wA.Last}),F=u.yy.transactionFilter.of(t=>{if(t.docChanged||t.newSelection.eq(t.startState.selection))return t;let e=t.startState.facet(N),n=(0,s.xH)(e.map(e=>e(t.startState))),{newSelection:r}=t;return r.ranges.forEach((t,e)=>{for(let o of n)if((0,s.A9)(t,o.source)){let n=t.head<t.anchor,s=Math.min(t.from,o.target.from),a=Math.max(t.to,o.target.to),l=n?u.jT.range(a,s,t.goalColumn,t.bidiLevel??void 0):u.jT.range(s,a,t.goalColumn,t.bidiLevel??void 0);r=r.replaceRange(l,e)}}),[t,{selection:r}]}),N=u.r$.define({enables:F}),L=u.yy.transactionFilter.of(t=>{let e=t.startState.facet(_),n=(0,s.xH)(e.map(e=>e(t.startState))),{length:r}=t.startState.doc,o=u.as.empty(r);t.changes.iterChanges((t,e,a,l)=>{if(a===l){for(let a of n)if((0,s.A9)({from:t,to:e},a.source)){let t=u.as.of([{...a.target,insert:""}],r);o=o.compose(t.map(o))}}});let a=o.map(t.changes);return a.empty?t:[t,{changes:a,sequential:!0}]}),_=u.r$.define({enables:L}),X="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),R=t=>!!t,j=t=>{let e=(t??[]).map(({type:t,triggerCharacter:e,handler:n})=>{if("character"===t)return a.tk.inputHandler.of((t,r,o,s)=>{if((X?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let a=t.state.selection.main;return s===e&&r===a.from&&o===a.to&&n({view:t,state:t.state,from:r,to:o})})}).filter(t=>R(t));return u.Wl.high(e)};function $({name:t,outerLanguage:e,innerLanguage:n}){return l.qp.define({name:t,parser:d.configure({wrap:(0,c.FE)(t=>e&&t.type.isTop?{parser:e.parser,overlay:t=>"Text"===t.type.name}:n&&"InterpolationContent"===t.name?{parser:n.parser}:null)})})}var V=/^\s*/,H=t=>t.match(V)[0].length,W=a.p.mark({class:"cm-indentation-guide"}),z=(function(t,e,n=1){if(null==e&&(e=t,t=0),!Number.isInteger(n)||0===n)throw Error("The step value must be a non-zero integer.");let r=Math.max(Math.ceil((e-t)/n),0),o=Array(r);for(let e=0;e<r;e++)o[e]=t+e*n;return o})(20).map(t=>a.p.line({class:`cm-indentation-level-${t}`})),q=class t extends a.l9{constructor(t){super(),this.indents=t}static create(e){return a.p.widget({widget:new t(e),side:1})}toDOM(){let t=document.createElement("span");for(let e of(t.className="cm-indentation-widget",this.indents)){let n=t.appendChild(document.createElement("span"));n.className="cm-indentation-guide",n.textContent=" ",t.append(" ".repeat(e-1))}return t}};function U(t,e,n,r,o){o.add(t,t,z[n/r]);for(let s=t;s<Math.min(t+n,e);s+=r)o.add(s,s+1,W)}function Y(t){let e=new u.f_,n=Number(t.state.tabSize),{doc:r}=t.state,o=[],s=0;for(let{from:a,to:u}of t.visibleRanges){let t,l,c,h,f=a-1;for(;(t=f+1)<=u;){({from:l,to:f,length:c,text:h}=r.lineAt(t));let a=H(h),u=a===c,p=0===a,d="/"===h[a];if(u){o.push({from:l,to:f});continue}if(p){o.length=0;continue}let m=Math.ceil(a/n)*n;for(let{from:t,to:r}of(!d&&(s=m),o))U(t,r,s,n,e),!function(t,e,n,r){if(0==e-t)n>2?r.add(e,e,q.create([n])):r.add(e,e,q.create([2,2*n]))}(t,r,n,e);o.length=0,U(l,f,m,n,e)}}return e.finish()}a.lg.fromClass(class{decorations;constructor(t){this.decorations=Y(t)}update(t){(t.docChanged||t.viewportChanged)&&(this.decorations=Y(t.view))}},{decorations:t=>t.decorations}),a.tk.baseTheme({".cm-line":{paddingLeft:0,marginLeft:"2px"},".cm-indentation-guide":{position:"relative"},".cm-indentation-guide:after":{position:"absolute",content:"''",right:"0.9ch",height:"1.4em",borderLeft:"1px solid rgba(28, 31, 35, .08)"},...(t=>{let e=-1,n=null==t?0:t.length,r={};for(;++e<n;){let n=t[e];r[n[0]]=n[1]}return r})(z.map((t,e)=>[`.cm-indentation-level-${e}`,{textIndent:`-${2*e}ch`,paddingLeft:`${2*e}ch`}]))});var G=class{constructor(t,e,n){this.lineNumber=t,this.contentHeight=e,this.scrollHeight=n}draw(){let t=document.createElement("div");return t.className="cm-empty-scroll-block-maker",this.adjust(t),t}update(t,e){return e.lineNumber===this.lineNumber&&e.contentHeight===this.contentHeight&&e.scrollHeight===this.scrollHeight}adjust(t){t.style.display="block",t.style.width="1px",this.lineNumber>1?t.style.height=`calc(${"number"==typeof this.scrollHeight?`${this.scrollHeight}px`:"100%"} + ${this.contentHeight}px)`:t.style.height="0"}eq(t){return this.lineNumber===t.lineNumber&&this.contentHeight===t.contentHeight&&this.scrollHeight===t.scrollHeight}},Q=t=>[(0,a.EY)({above:!1,updateOnDocViewUpdate:!0,class:"cm-empty-marker-layer",update:t=>t.state.doc.lines!==t.startState.doc.lines,markers:e=>[new G(e.state.doc.lines,e.contentHeight,t)]}),a.tk.theme({"& .cm-empty-marker-layer":{height:"100%"}})],K={"(":")","{":"}","[":"]",")":"(","}":"{","]":"["},J=(t,e)=>{try{let n=t.doc.toString(),r=[],o=-1,s=-1;for(let t=e-1;t>=0;t--){let e=n[t];if(K[e]){if([")","}","]"].includes(e))r.push(e);else{if(0===r.length){o=t;break}let n=r.pop();if(K[e]!==n)return null}}}r=[];for(let t=e;t<n.length;t++){let e=n[t];if(K[e]){if(["(","{","["].includes(e))r.push(e);else{if(0===r.length){s=t;break}let n=r.pop();if(K[e]!==n)return null}}}if(-1!==o&&-1!==s)return[o,s];return null}catch(t){return console.error("findMatchingBracket failed",t),null}},Z=t=>{let e=[];return e.push(a.p.mark({class:"cm-matchingBracket"}).range(t,t+1)),e},tt=[u.QQ.define({create:()=>a.p.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[];for(let t of e.state.selection.ranges){if(!t.empty)continue;let r=J(e.state,t.head);r&&(n=n.concat(Z(r[0]),Z(r[1])))}return a.p.set(n,!0)},provide:t=>a.tk.decorations.from(t)})],te=["#ffd700","#da70d6","#179fff"],tn=[a.lg.fromClass(class{decorations;constructor(t){this.decorations=this.getBracketDecorations(t)}update(t){(t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.getBracketDecorations(t.view))}getBracketDecorations(t){let{doc:e}=t.state,n=[],r=[],o=["Comment","String"],s=(0,l.qz)(t.state);for(let t=0;t<e.length;t+=1){let u=e.sliceString(t,t+1),l=s.resolveInner(t);if(!o.includes(l.type.name)){if("("===u||"["===u||"{"===u)r.push({type:u,from:t});else if(")"===u||"]"===u||"}"===u){let e=r.pop();if(e&&e.type===this.getMatchingBracket(u)){let o=r.length%3;n.push(a.p.mark({class:`colorization-bracket-${o}`}).range(e.from,e.from+1),a.p.mark({class:`colorization-bracket-${o}`}).range(t,t+1))}}}}return n.sort((t,e)=>t.from-e.from||t.startSide-e.startSide),a.p.set(n)}getMatchingBracket(t){switch(t){case")":return"(";case"]":return"[";case"}":return"{";default:return null}}},{decorations:t=>t.decorations}),a.tk.baseTheme({".colorization-bracket-0":{color:"#ffd700"},".colorization-bracket-0 > span":{color:"#ffd700"},".colorization-bracket-1":{color:"#da70d6"},".colorization-bracket-1 > span":{color:"#da70d6"},".colorization-bracket-2":{color:"#179fff"},".colorization-bracket-2 > span":{color:"#179fff"}})];var tr=((o=tr||{}).Head="head",o.Anchor="anchor",o),ti=u.r$.define(),to=class{constructor(t,e){this.dom=t,this.rect=e}eq(t){return!!((!this.rect&&!t.rect||this.rect&&t.rect&&this.rect.left===t.rect.left&&this.rect.top===t.rect.top&&this.rect.width===t.rect.width&&this.rect.height===t.rect.height)&&this.dom===t.dom)}draw(){return this.adjust(this.dom),this.dom}update(){return this.adjust(this.dom),!0}adjust(t){if(t.style.pointerEvents="none",!!this.rect)t.style.left=`${this.rect.left}px`,t.style.top=`${this.rect.top}px`,t.style.width=`${this.rect.width}px`,t.style.height=`${this.rect.height}px`}},ts=(0,a.EY)({above:!0,markers(t){let e=t.state.facet(ti);if(!e||0===e.length)return[];let n=function(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection===a.Nm.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}(t),r=[],o=[];for(let{dom:s,pos:a}of e){if(!s)continue;let e=-1;"function"==typeof a?e=a(t):"number"==typeof a?e=a:"head"===a?e=t.state.selection.main.head:"anchor"===a&&(e=t.state.selection.main.anchor);let u=t.coordsAtPos(e);if(u){r.push(u);let t=u.left-n.left-.5,e=u.top-n.top,a=u.bottom-u.top;o.push(new to(s,{left:t,top:e,width:1,height:a}))}else o.push(new to(s))}return o},update:t=>{var e;return t.docChanged||t.selectionSet||t.viewportChanged||(e=t).startState.facet(ti)!==e.state.facet(ti)},class:"cm-positionReferenceLayer"}),ta=new Map;u.r$.define({combine(t){let e=new u.f_;for(let n of function(t){let e=[];return(function(t){let e=new Map;return t.forEach(t=>{!e.has(t.className)&&e.set(t.className,[]),e.get(t.className).push(t)}),e})(t).forEach((t,n)=>{let r=function(t){let e=[],n=t.map(t=>({start:t.from,end:t.to}));n.sort((t,e)=>t.start-e.start);let r=n[0];for(let t=1;t<n.length;t++){let o=n[t];o.start<=r.end?r.end=Math.max(r.end,o.end):(e.push(r),r=o)}return e.push(r),e}(t);e.push(...r.map(t=>({from:t.start,to:t.end,className:n})))}),e.sort((t,e)=>t.from-e.from),e}(t.reduce((t,e)=>[...t,...e],[]))){let t=function(t){if(!ta.has(t)){let e=a.p.mark({class:t});ta.set(t,e)}return ta.get(t)}(n.className);e.add(n.from,n.to,t)}return e.finish()},enables:t=>a.tk.decorations.compute([t],e=>e.facet(t))});var tu=[u.yy.changeFilter.of(t=>{let e=t.startState.facet(tl).reduce((e,n)=>[...e,...n(t.startState)],[]);return!Array.isArray(e)||e.reduce((t,e)=>[...t,e.from,e.to],[])}),u.yy.transactionFilter.of(t=>{let e=t.startState.doc.length,n=t.startState.facet(tl).reduce((e,n)=>[...e,...n(t.state)],[]).filter(t=>t.from>=0&&t.from<e&&t.to>=0&&t.to<e),{newSelection:r}=t;return(r.ranges.forEach((t,e)=>{for(let o of n)if(t.empty&&t.from>o.from&&t.to<o.to&&(r=r.replaceRange(u.jT.cursor(t.assoc>0?o.from:o.to,t.assoc),e)),!t.empty&&(0,s.A9)(t,o)){let n=t.head<t.anchor;t.anchor<o.from?r=r.replaceRange(u.jT.range(t.anchor,o.from,t.goalColumn,t.bidiLevel??void 0),e):t.anchor>o.to?r=r.replaceRange(u.jT.range(t.anchor,o.to,t.goalColumn,t.bidiLevel??void 0),e):t.anchor>=o.from&&t.anchor<=o.to&&(r=n?r.replaceRange(u.jT.range(o.from,Math.min(t.head,o.from),t.goalColumn,t.bidiLevel??void 0),e):r.replaceRange(u.jT.range(o.to,Math.max(t.head,o.to),t.goalColumn,t.bidiLevel??void 0),e))}}),r.eq(t.newSelection))?t:[t,{selection:r}]})],tl=u.r$.define({enables:()=>tu})},740835:function(t,e,n){"use strict";n.d(e,{R:function(){return f},Z:function(){return p}});var r=n(642199),o=n(121107),s=n(554011),a=n(249294),u=n(913693),l=n(562312),c=n(992814),h=n(801138),f=[(0,s.AO)([(0,a.AE)(),(0,c.m8)(),a.$f.of([...c.wQ,...c.f$]),u.yy.tabSize.of(2),l.c.of(" ".repeat(2)),a.tk.lineWrapping,(0,o.RB)(),o.Gm]),(0,s.Kw)("fontSize",o.JB),(0,s.Kw)("placeholder",o.W$),(0,s.Kw)("readOnly",o.qt),(0,s.Kw)("editable",o.Ah),(0,s.Kw)("inputRules",r.Hw),(0,s.Kw)("contentAttributes",o.tk),(0,s.B)("change",o.Yf),(0,s.B)("focus",o.Rl),(0,s.B)("blur",o.ej),(0,s.B)("selectionChange",o.Ee),(0,s.B)("viewUpdate",o.y),(0,s.Gj)("compositionstart"),(0,s.Gj)("compositionend"),(0,s.Gj)("mousedown"),(0,s.Gj)("mouseup"),(0,s.AO)(o.AI),(0,s.hi)("disableKeybindings",o.FW),(0,s.hi)("getView",o.Xe),(0,s.hi)("matchBefore",o.RH),(0,s.hi)("updateWholeDecorations",({view:t})=>()=>{(0,r.U_)(t)}),(0,s.hi)("getValue",o.NA),(0,s.hi)("setValue",o.sO),(0,s.hi)("focus",o.T_),(0,s.hi)("blur",o.yv),(0,s.hi)("isFocused",o.$Z),(0,s.hi)("getCursorPosition",o.Ny),(0,s.hi)("setCursorPosition",o.Cw),(0,s.hi)("getSelection",o.Mf),(0,s.hi)("replaceTextByRange",o.Fb)],p=[...f,(0,s.AO)([(0,l.nF)(l.R_,{fallback:!0}),(0,h.vQ)()])]},665917:function(t,e,n){"use strict";n.d(e,{ZP:()=>eC,Q$:()=>ek});var r,o,s=n("740835"),a=n("642199"),u=n("121107"),l=n("554011"),c=n("913693"),h=n("562312"),f=n("801138"),p=n("437254"),d=n("290483");let m=["{%","endraw","%}"],g=new d.Jq(t=>{let e=m[0].charCodeAt(0),n=0,r=!1;for(;!(t.next<0);){;if(t.next===e){let e=0,o=0;for(;o<m.length;o++){let n=m[o];if(function(t,e,n){let r=0,o=0;for(;;)if(t.peek(e+r)===n.charCodeAt(r)&&o<n.length)r++,o++;else break;return o===n.length}(t,e,n)){if(e+=n.length,o<m.length-1){let n=b(t,e);e+=n}}else break}if(o===m.length){r=!0;break}t.advance(),n++}else t.advance(),n++}if(!!r||!(t.next<0))n>0&&t.acceptToken(4)}),y=/^\s+$/;function b(t,e){let n=e,r=0;for(;;){let e=String.fromCharCode(t.peek(n));if(y.test(e))n++,r++;else break}return r}let O=x(39),w=x(34);function x(t){let e=39===t?31:33,n=39===t?30:32;return new d.Jq(r=>{let o=0;for(;!(r.next<0);){;if(92===r.next&&92===r.peek(1)||92===r.next&&r.peek(1)===t){r.advance(2),o+=2;continue}if(r.next===t||37===r.next&&125===r.peek(1)||10===r.next||13===r.next)break;o++,r.advance()}o>0&&r.acceptToken(n),r.next===t&&r.advance(),r.acceptToken(e)})}let D=new d.Jq(t=>{if(45===t.next||43===t.next){let e=b(t,1);if(125===t.peek(e+1)&&125===t.peek(e+2)){t.advance(e+3),t.acceptToken(1);return}}if(125===t.next&&125===t.peek(1)){t.advance(2),t.acceptToken(1);return}if(123===t.next&&35===t.peek(1)||t.next<0){t.acceptToken(1);return}}),k=new d.Jq(t=>{if(45===t.next||43===t.next){let e=b(t,1);if(37===t.peek(e+1)&&125===t.peek(e+2)){t.advance(e+3),t.acceptToken(2);return}}if(37===t.next&&125===t.peek(1)){t.advance(2),t.acceptToken(2);return}if(123===t.next&&35===t.peek(1)||t.next<0){t.acceptToken(2);return}}),S=new d.Jq(t=>{35===t.next&&125===t.peek(1)?(t.advance(2),t.acceptToken(3)):123===t.next&&35===t.peek(1)&&t.acceptToken(3)}),E=new d.Jq(t=>{let e=0,n=0;for(;;){let r=t.peek(e);if(r<0)break;if(123!==r)e++,n++;else if(123===r&&123!==t.peek(e+1)&&35!==t.peek(e+1)&&37!==t.peek(e+1))e++,n++;else if(123===r&&123===t.peek(e+1)&&(123===t.peek(e+2)||35===t.peek(e+2)||37===t.peek(e+2)))e++,n++;else break}n>0&&(t.advance(n),t.acceptToken(5))});var C=n("888855");let T=(0,C.Gv)({"JinjaExpressionStart JinjaExpressionEnd JinjaStatementStart JinjaStatementEnd":C.pJ.angleBracket,"JinjaCommentStart JinjaCommentContent JinjaCommentEnd":C.pJ.blockComment}),A={__proto__:null,if:76,elif:78,else:80,endif:82,is:84,not:86,set:88,for:90,in:92,endfor:94,extends:96,macro:98,endmacro:100,block:102,endblock:104,call:106,endcall:108,include:110,from:112,import:114,as:116,raw:42,endraw:46},M=d.WQ.deserialize({version:14,states:"&`QYO%WOOOhO&zO'#CcO#jQ#xO'#CfO#qO$fO'#CnO%pQ,^O'#CtOOO!b'#DR'#DROOO!b'#Cu'#CuQYO%WOOOOO`'#Cv'#CvO%zO&zO,58}OOO!b,58},58}O&SOPO'#CjO&[OQO'#CjOOQS'#Cw'#CwO&dQ#xO,59QOOO!b,59Q,59QOOQ['#Ch'#ChO&kQ7[O'#CwOOO!b,59Y,59YO#tO#tO,59YO&pQ#tO'#CrOOQW'#Cx'#CxO&uQ,^O,59`OOO!b,59`,59`O&|Q#|O,59ZOOO!b-E6s-E6sOOO`-E6t-E6tOOO!b1G.i1G.iOOQ[,59U,59UO'ROPO,59UO'WOQO,59UOOQS-E6u-E6uOOO!b1G.l1G.lOOQS,59c,59cOOO!b1G.t1G.tO']Q#|O,59^OOQW-E6v-E6vOOO!b1G.z1G.zOOOp1G.u1G.uOOQ[1G.p1G.pOOO!b1G.x1G.x",stateData:"'m~OsOStOS~OTTOWPOZQOdSO~ORYOXWO~O]]O_]Oa]Ov`Ow`Ox`Oy`Oz`O{`O|`O}`O!O`O!P`O!Q`O!R`O!S`O!T`O!U`O!V`O!W`O!X`O!Y`O!Z`O![`O!]ZO!^[O!_aO!`]O~OP_O~PpOScOddO~O]eO_eOv`Ow`Ox`Oy`Oz`O{`O|`O}`O!O`O!P`O!Q`O!R`O!S`O!T`O!U`O!V`O!W`O!X`O!Y`O!Z`O![`O!]ZO!^[O!`eO!aeO~OQgOehO~P#yORkOXWO~OnmOolO~OpnOqlO~OPpO~PpO`qO~OgsO~OQuO~P#yOQvO~OowO~OqwO~OQxO~Os`dt]_!`!aa]~",goto:"!{vPPPPPPPwPPwP{P{PPPw!TPP!XPw!_!e!k!qPPPPPPPP!wTTOVS]Q^TeSfTROVQbRRrcQVORiVQXPRjXQ^QRo^QfSRtfTUOV",nodeNames:"⚠ JinjaExpressionEnd JinjaStatementEnd JinjaCommentEnd RawText JinjaText JinjaProgram JinjaComment JinjaCommentStart JinjaCommentContent JinjaExpression JinjaExpressionStart JinjaKeyword JinjaIdentifier JinjaStringLiteral JinjaNumberLiteral JinjaFilterName JinjaExpressionUnknownContent JinjaRawBlock JinjaRawOpenStatement JinjaStatementStart JinjaKeyword JinjaRawCloseStatement JinjaKeyword JinjaStatement",maxTerm:63,propSources:[T],skippedNodes:[0],repeatNodeCount:4,tokenData:"!)f_R!^OX$}XY;_YZ>QZ[;_[]$}]^?e^p$}pq;_qrAOrsBcst'|tuCPuvEUvw$}wxFZxyAOyzAOz{AO{|Fw|}AO}!OFw!O!PGv!P!QAO!Q![KO![!]AO!]!^$}!^!_AO!_!`AO!`!aAO!a!bAO!b!c$}!c!}CP!}#OAO#O#P$}#P#QAO#Q#RAO#R#SCP#S#T$}#T#oCP#o#pLr#p#q!$}#q#r8f#r#sAO#s$f$}$f$g;_$g#BYCP#BY#BZ!&Y#BZ$ISCP$IS$I_!&Y$I_$JTCP$JT$JU!&Y$JU$KVCP$KV$KW!&Y$KW&FUCP&FU&FV!&Y&FV;'SCP;'S;=`EO<%l?HTCP?HT?HU!&Y?HUOCPV%WbXQ!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}Q&eVXQOs&`st&zt#o&`#o#p'g#p;'S&`;'S;=`'a<%lO&`Q&}UO#q&`#r;'S&`;'S;=`'a<%l~&`~O&`~~&`Q'dP;=`<%l&`Q'jUOs&`t;'S&`;'S;=`'a<%l~&`~O&`~~&`V(Tb!aSaPOr$}rs&`su$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#q*`#q#r5W#r;'S$};'S;=`5Q<%l~$}~O$}~~&`V)d^XQaPOr$}rs*`st'|tw$}wx*`x#o$}#o#p-k#p#q*`#q#r0V#r;'S$};'S;=`5Q<%l~$}~O$}~~.rU*g`XQ!aSOr*`rs&`st+itu*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O#o*`#o#p-k#p;'S*`;'S;=`0P<%lO*`U+na!aSOr*`rs&`su*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O#q*`#q#r.r#r;'S*`;'S;=`0P<%l~*`~O*`~~&`U,xZXQOs*`st+it#o*`#o#p-k#p#q*`#q#r&`#r;'S*`;'S;=`0P<%l~*`~O*`~~.rU-p`!aSOr*`rs&`st.rtu*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O;'S*`;'S;=`0P<%l~*`~O*`~~&`S.wX!aSOr.rsu.ruv/dvw.rx{.r|}.r!O;'S.r;'S;=`/y<%lO.rS/gUO#q.r#r;'S.r;'S;=`/y<%l~.r~O.r~~.rS/|P;=`<%l.rU0SP;=`<%l*`R0[ZXQOs0}st1zt#o0}#o#p4S#p#q0}#q#r&`#r;'S0};'S;=`3|<%l~0}~O0}~~3[R1U[XQaPOr0}rs&`st1ztw0}wx&`x#o0}#o#p'g#p#q&`#q#r0V#r;'S0};'S;=`3|<%lO0}R2P[aPOr0}rs&`sw0}wx&`x#o0}#o#q&`#q#r2u#r;'S0};'S;=`3|<%l~0}~O0}~~&`P2xUO#q3[#r;'S3[;'S;=`3v<%l~3[~O3[~~3[P3aVaPOr3[sw3[x#o3[#q#r2u#r;'S3[;'S;=`3v<%lO3[P3yP;=`<%l3[R4PP;=`<%l0}R4X]aPOr0}rs&`st3[tw0}wx&`x#o0}#o#q&`#q#r0V#r;'S0};'S;=`3|<%l~0}~O0}~~&`V5TP;=`<%l$}T5]a!aSOr6brs3[su6buv7evw6bwx3[x{6b{|3[|}6b}!O3[!O#q6b#q#r.r#r;'S6b;'S;=`8`<%l~6b~O6b~~3[T6i^!aSaPOr6bsu6buv7evw6bx{6b{|3[|}6b}!O3[!O#o6b#o#q.r#q#r5W#r;'S6b;'S;=`8`<%lO6bT7j[aPOr6brs.rsw6bwx.rx#o6b#o#q.r#q#r2u#r;'S6b;'S;=`8`<%l~6b~O6b~~.rT8cP;=`<%l6bV8mdXQ!aSOr$}rs0}st'|tu$}uv)]vw$}wx0}x{$}{|0}|}$}}!O0}!O#o$}#o#p9{#p#q$}#q#r*`#r;'S$};'S;=`5Q<%l~$}~O$}~~3[V:Sc!aSaPOr$}rs&`st6btu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#q*`#q#r8f#r;'S$};'S;=`5Q<%l~$}~O$}~~&`_;jvXQs]!aSaPOX$}XY;_YZ$}Z[;_[p$}pq;_qr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r$f$}$f$g;_$g#BY$}#BY#BZ;_#BZ$IS$}$IS$I_;_$I_$JT$}$JT$JU;_$JU$KV$}$KV$KW;_$KW&FU$}&FU&FV;_&FV;'S$};'S;=`5Q<%l?HT$}?HT?HU;_?HUO$}_>]bXQt]!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}_?pdXQt]!aSaPOY$}YZ>QZr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VAZbXQ!`T!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VBjV!^TXQOs&`st&zt#o&`#o#p'g#p;'S&`;'S;=`'a<%lO&`_C^jXQ`W]T!aSaPOr$}rs&`st'|tuCPuv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!Q$}!Q![CP![!c$}!c!}CP!}#R$}#R#SCP#S#T$}#T#oCP#o#p-k#p#q*`#q#r8f#r$g$}$g;'SCP;'S;=`EO<%lOCP_ERP;=`<%lCPVE_^XQ!`TaPOr$}rs*`st'|tw$}wx*`x#o$}#o#p-k#p#q*`#q#r0V#r;'S$};'S;=`5Q<%l~$}~O$}~~.rVFbV!]TXQOs&`st&zt#o&`#o#p'g#p;'S&`;'S;=`'a<%lO&`VGQ[XQ!`TaPOr0}rs&`st1ztw0}wx&`x#o0}#o#p'g#p#q&`#q#r0V#r;'S0};'S;=`3|<%lO0}VHPdXQ!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!Q$}!Q![I_![#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VIjfXQ_T!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!Q$}!Q![I_![#R$}#R#SI_#S#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VKZgXQ_T!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!PI_!P!Q$}!Q![KO![#R$}#R#SKO#S#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VLwb!aSOr*`rs&`stNPtu*`uvNsvw*`wx&`x{*`{|&`|}*`}!O&`!O#o*`#o#p!#U#p;'S*`;'S;=`0P<%l~*`~O*`~~&`TNWXWP!aSOr.rsu.ruv/dvw.rx{.r|}.r!O;'S.r;'S;=`/y<%lO.rVNz_XQdPOs*`st+it{*`{|! y|}*`}!O! y!O#o*`#o#p-k#p#q*`#q#r&`#r;'S*`;'S;=`0P<%l~*`~O*`~~.rV!!S`XQdP!aSOr*`rs&`st+itu*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O#o*`#o#p-k#p;'S*`;'S;=`0P<%lO*`V!#_`XQZP!aSOr*`rs&`st+itu*`uv,svw*`wx&`x{*`{|!$a|}*`}!O!$a!O#o*`#o#p-k#p;'S*`;'S;=`0P<%lO*`R!$hVXQZPOs&`st&zt#o&`#o#p'g#p;'S&`;'S;=`'a<%lO&`V!%W`!_PXQ!aSOr*`rs&`st+itu*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O#o*`#o#p-k#p;'S*`;'S;=`0P<%lO*`_!&i}XQs]`W]T!aSaPOX$}XY;_YZ$}Z[;_[p$}pq;_qr$}rs&`st'|tuCPuv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!Q$}!Q![CP![!c$}!c!}CP!}#R$}#R#SCP#S#T$}#T#oCP#o#p-k#p#q*`#q#r8f#r$f$}$f$g;_$g#BYCP#BY#BZ!&Y#BZ$ISCP$IS$I_!&Y$I_$JTCP$JT$JU!&Y$JU$KVCP$KV$KW!&Y$KW&FUCP&FU&FV!&Y&FV;'SCP;'S;=`EO<%l?HTCP?HT?HU!&Y?HUOCP",tokenizers:[O,w,D,k,S,g,E,0,1,2,3],topRules:{JinjaProgram:[0,6]},specialized:[{term:13,get:t=>A[t]||-1}],tokenPrec:294});class P{static create(t,e,n,r,o){return new P(t,e,n,r+(r<<8)+t+(e<<4)|0,o,[],[])}constructor(t,e,n,r,o,s,a){this.type=t,this.value=e,this.from=n,this.hash=r,this.end=o,this.children=s,this.positions=a,this.hashProp=[[p.md.contextHash,r]]}addChild(t,e){t.prop(p.md.contextHash)!=this.hash&&(t=new p.mp(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(e)}toTree(t,e=this.end){let n=this.children.length-1;return n>=0&&(e=Math.max(e,this.positions[n]+this.children[n].length+this.from)),new p.mp(t.types[this.type],this.children,this.positions,e-this.from).balance({makeTree:(t,e,n)=>new p.mp(p.Jq.none,t,e,n,this.hashProp)})}}(r=o||(o={}))[r.Document=1]="Document",r[r.CodeBlock=2]="CodeBlock",r[r.FencedCode=3]="FencedCode",r[r.Blockquote=4]="Blockquote",r[r.HorizontalRule=5]="HorizontalRule",r[r.BulletList=6]="BulletList",r[r.OrderedList=7]="OrderedList",r[r.ListItem=8]="ListItem",r[r.ATXHeading1=9]="ATXHeading1",r[r.ATXHeading2=10]="ATXHeading2",r[r.ATXHeading3=11]="ATXHeading3",r[r.ATXHeading4=12]="ATXHeading4",r[r.ATXHeading5=13]="ATXHeading5",r[r.ATXHeading6=14]="ATXHeading6",r[r.SetextHeading1=15]="SetextHeading1",r[r.SetextHeading2=16]="SetextHeading2",r[r.HTMLBlock=17]="HTMLBlock",r[r.LinkReference=18]="LinkReference",r[r.Paragraph=19]="Paragraph",r[r.CommentBlock=20]="CommentBlock",r[r.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",r[r.Escape=22]="Escape",r[r.Entity=23]="Entity",r[r.HardBreak=24]="HardBreak",r[r.Emphasis=25]="Emphasis",r[r.StrongEmphasis=26]="StrongEmphasis",r[r.Link=27]="Link",r[r.Image=28]="Image",r[r.InlineCode=29]="InlineCode",r[r.HTMLTag=30]="HTMLTag",r[r.Comment=31]="Comment",r[r.ProcessingInstruction=32]="ProcessingInstruction",r[r.Autolink=33]="Autolink",r[r.HeaderMark=34]="HeaderMark",r[r.QuoteMark=35]="QuoteMark",r[r.ListMark=36]="ListMark",r[r.LinkMark=37]="LinkMark",r[r.EmphasisMark=38]="EmphasisMark",r[r.CodeMark=39]="CodeMark",r[r.CodeText=40]="CodeText",r[r.CodeInfo=41]="CodeInfo",r[r.LinkTitle=42]="LinkTitle",r[r.LinkLabel=43]="LinkLabel",r[r.URL=44]="URL";class B{constructor(t,e){this.start=t,this.content=e,this.marks=[],this.parsers=[]}}class I{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return _(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,e=0,n=0){for(let r=e;r<t;r++)n+=9==this.text.charCodeAt(r)?4-n%4:1;return n}findColumn(t){let e=0;for(let n=0;e<this.text.length&&n<t;e++)n+=9==this.text.charCodeAt(e)?4-n%4:1;return e}scrub(){if(!this.baseIndent)return this.text;let t="";for(let e=0;e<this.basePos;e++)t+=" ";return t+this.text.slice(this.basePos)}}function F(t,e,n){if(n.pos==n.text.length||t!=e.block&&n.indent>=e.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(t.type==o.OrderedList?W:H)(n,e,!1);return r>0&&(t.type!=o.BulletList||0>$(n,e,!1))&&n.text.charCodeAt(n.pos+r-1)==t.value}let N={[o.Blockquote]:(t,e,n)=>62==n.next&&(n.markers.push(tm(o.QuoteMark,e.lineStart+n.pos,e.lineStart+n.pos+1)),n.moveBase(n.pos+(L(n.text.charCodeAt(n.pos+1))?2:1)),t.end=e.lineStart+n.text.length,!0),[o.ListItem]:(t,e,n)=>(!(n.indent<n.baseIndent+t.value)||!(n.next>-1))&&(n.moveBaseColumn(n.baseIndent+t.value),!0),[o.OrderedList]:F,[o.BulletList]:F,[o.Document]:()=>!0};function L(t){return 32==t||9==t||10==t||13==t}function _(t,e=0){for(;e<t.length&&L(t.charCodeAt(e));)e++;return e}function X(t,e,n){for(;e>n&&L(t.charCodeAt(e-1));)e--;return e}function R(t){if(96!=t.next&&126!=t.next)return -1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return -1;if(96==t.next){for(let n=e;n<t.text.length;n++)if(96==t.text.charCodeAt(n))return -1}return e}function j(t){return 62!=t.next?-1:32==t.text.charCodeAt(t.pos+1)?2:1}function $(t,e,n){if(42!=t.next&&45!=t.next&&95!=t.next)return -1;let r=1;for(let e=t.pos+1;e<t.text.length;e++){let n=t.text.charCodeAt(e);if(n==t.next)r++;else if(!L(n))return -1}return n&&45==t.next&&q(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(ti.SetextHeading)>-1?-1:r<3?-1:1}function V(t,e){for(let n=t.stack.length-1;n>=0;n--)if(t.stack[n].type==e)return!0;return!1}function H(t,e,n){return(45==t.next||43==t.next||42==t.next)&&(t.pos==t.text.length-1||L(t.text.charCodeAt(t.pos+1)))&&(!n||V(e,o.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function W(t,e,n){let r=t.pos,s=t.next;for(;s>=48&&s<=57;){if(++r==t.text.length)return -1;s=t.text.charCodeAt(r)}return r==t.pos||r>t.pos+9||46!=s&&41!=s||r<t.text.length-1&&!L(t.text.charCodeAt(r+1))||n&&!V(e,o.OrderedList)&&(t.skipSpace(r+1)==t.text.length||r>t.pos+1||49!=t.next)?-1:r+1-t.pos}function z(t){if(35!=t.next)return -1;let e=t.pos+1;for(;e<t.text.length&&35==t.text.charCodeAt(e);)e++;if(e<t.text.length&&32!=t.text.charCodeAt(e))return -1;let n=e-t.pos;return n>6?-1:n}function q(t){if(45!=t.next&&61!=t.next||t.indent>=t.baseIndent+4)return -1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let n=e;for(;e<t.text.length&&L(t.text.charCodeAt(e));)e++;return e==t.text.length?n:-1}let U=/^[ \t]*$/,Y=/-->/,G=/\?>/,Q=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Y],[/^\s*<\?/,G],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,U],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,U]];function K(t,e,n){if(60!=t.next)return -1;let r=t.text.slice(t.pos);for(let t=0,e=Q.length-(n?1:0);t<e;t++)if(Q[t][0].test(r))return t;return -1}function J(t,e){let n=t.countIndent(e,t.pos,t.indent),r=t.countIndent(t.skipSpace(e),e,n);return r>=n+5?n+1:r}function Z(t,e,n){let r=t.length-1;r>=0&&t[r].to==e&&t[r].type==o.CodeText?t[r].to=n:t.push(tm(o.CodeText,e,n))}let tt={LinkReference:void 0,IndentedCode(t,e){let n=e.baseIndent+4;if(e.indent<n)return!1;let r=e.findColumn(n),s=t.lineStart+r,a=t.lineStart+e.text.length,u=[],l=[];for(Z(u,s,a);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length)for(let n of(Z(l,t.lineStart-1,t.lineStart),e.markers))l.push(n);else if(e.indent<n)break;else{if(l.length){for(let t of l)t.type==o.CodeText?Z(u,t.from,t.to):u.push(t);l=[]}for(let n of(Z(u,t.lineStart-1,t.lineStart),e.markers))u.push(n);a=t.lineStart+e.text.length;let n=t.lineStart+e.findColumn(e.baseIndent+4);n<a&&Z(u,n,a)}return l.length&&(l=l.filter(t=>t.type!=o.CodeText)).length&&(e.markers=l.concat(e.markers)),t.addNode(t.buffer.writeElements(u,-s).finish(o.CodeBlock,a-s),s),!0},FencedCode(t,e){let n=R(e);if(n<0)return!1;let r=t.lineStart+e.pos,s=e.next,a=n-e.pos,u=e.skipSpace(n),l=X(e.text,e.text.length,u),c=[tm(o.CodeMark,r,r+a)];u<l&&c.push(tm(o.CodeInfo,t.lineStart+u,t.lineStart+l));for(let n=!0;t.nextLine()&&e.depth>=t.stack.length;n=!1){let r=e.pos;if(e.indent-e.baseIndent<4)for(;r<e.text.length&&e.text.charCodeAt(r)==s;)r++;if(r-e.pos>=a&&e.skipSpace(r)==e.text.length){for(let t of e.markers)c.push(t);c.push(tm(o.CodeMark,t.lineStart+e.pos,t.lineStart+r)),t.nextLine();break}{for(let r of(!n&&Z(c,t.lineStart-1,t.lineStart),e.markers))c.push(r);let r=t.lineStart+e.basePos,o=t.lineStart+e.text.length;r<o&&Z(c,r,o)}}return t.addNode(t.buffer.writeElements(c,-r).finish(o.FencedCode,t.prevLineEnd()-r),r),!0},Blockquote(t,e){let n=j(e);return!(n<0)&&(t.startContext(o.Blockquote,e.pos),t.addNode(o.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+n),null)},HorizontalRule(t,e){if(0>$(e,t,!1))return!1;let n=t.lineStart+e.pos;return t.nextLine(),t.addNode(o.HorizontalRule,n),!0},BulletList(t,e){let n=H(e,t,!1);if(n<0)return!1;t.block.type!=o.BulletList&&t.startContext(o.BulletList,e.basePos,e.next);let r=J(e,e.pos+1);return t.startContext(o.ListItem,e.basePos,r-e.baseIndent),t.addNode(o.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(r),null},OrderedList(t,e){let n=W(e,t,!1);if(n<0)return!1;t.block.type!=o.OrderedList&&t.startContext(o.OrderedList,e.basePos,e.text.charCodeAt(e.pos+n-1));let r=J(e,e.pos+n);return t.startContext(o.ListItem,e.basePos,r-e.baseIndent),t.addNode(o.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(r),null},ATXHeading(t,e){let n=z(e);if(n<0)return!1;let r=e.pos,s=t.lineStart+r,a=X(e.text,e.text.length,r),u=a;for(;u>r&&e.text.charCodeAt(u-1)==e.next;)u--;(u==a||u==r||!L(e.text.charCodeAt(u-1)))&&(u=e.text.length);let l=t.buffer.write(o.HeaderMark,0,n).writeElements(t.parser.parseInline(e.text.slice(r+n+1,u),s+n+1),-s);u<e.text.length&&l.write(o.HeaderMark,u-r,a-r);let c=l.finish(o.ATXHeading1-1+n,e.text.length-r);return t.nextLine(),t.addNode(c,s),!0},HTMLBlock(t,e){let n=K(e,t,!1);if(n<0)return!1;let r=t.lineStart+e.pos,s=Q[n][1],a=[],u=s!=U;for(;!s.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){u=!1;break}for(let t of e.markers)a.push(t)}u&&t.nextLine();let l=s==Y?o.CommentBlock:s==G?o.ProcessingInstructionBlock:o.HTMLBlock,c=t.prevLineEnd();return t.addNode(t.buffer.writeElements(a,-r).finish(l,c-r),r),!0},SetextHeading:void 0};class te{constructor(t){this.stage=0,this.elts=[],this.pos=0,this.start=t.start,this.advance(t.content)}nextLine(t,e,n){if(-1==this.stage)return!1;let r=n.content+"\n"+e.scrub(),o=this.advance(r);return!!(o>-1)&&!!(o<r.length)&&this.complete(t,n,o)}finish(t,e){return(2==this.stage||3==this.stage)&&_(e.content,this.pos)==e.content.length&&this.complete(t,e,e.content.length)}complete(t,e,n){return t.addLeafElement(e,tm(o.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(t){return t?(this.pos=t.to-this.start,this.elts.push(t),this.stage++,!0):(!1===t&&(this.stage=-1),!1)}advance(t){for(;;){if(-1==this.stage)return -1;if(0==this.stage){if(!this.nextStage(tE(t,this.pos,this.start,!0)))return -1;if(58!=t.charCodeAt(this.pos))return this.stage=-1;this.elts.push(tm(o.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(1==this.stage){if(!this.nextStage(tk(t,_(t,this.pos),this.start)))return -1}else{if(2!=this.stage)return tn(t,this.pos);let e=_(t,this.pos),n=0;if(e>this.pos){let r=tS(t,e,this.start);if(r){let e=tn(t,r.to-this.start);e>0&&(this.nextStage(r),n=e)}}return!n&&(n=tn(t,this.pos)),n>0&&n<t.length?n:-1}}}}function tn(t,e){for(;e<t.length;e++){let n=t.charCodeAt(e);if(10==n)break;if(!L(n))return -1}return e}class tr{nextLine(t,e,n){let r=e.depth<t.stack.length?-1:q(e),s=e.next;if(r<0)return!1;let a=tm(o.HeaderMark,t.lineStart+e.pos,t.lineStart+r);return t.nextLine(),t.addLeafElement(n,tm(61==s?o.SetextHeading1:o.SetextHeading2,n.start,t.prevLineEnd(),[...t.parser.parseInline(n.content,n.start),a])),!0}finish(){return!1}}let ti={LinkReference:(t,e)=>91==e.content.charCodeAt(0)?new te(e):null,SetextHeading:()=>new tr},to={text:"",end:0};class ts{constructor(t,e,n,r){this.parser=t,this.input=e,this.ranges=r,this.line=new I,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=P.create(o.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new tM(n,e):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(null!=this.stoppedAt&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:t}=this;for(;;){for(let e=0;;){let n=t.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;e<t.markers.length&&(!n||t.markers[e].from<n.end);){let n=t.markers[e++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(t.pos<t.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(t.basePos))return null;t:for(;;){for(let e of this.parser.blockParsers)if(e){let n=e(this,t);if(!1!=n){if(!0==n)return null;t.forward();continue t}}break}let e=new B(this.lineStart+t.pos,t.text.slice(t.pos));for(let t of this.parser.leafBlockParsers)if(t){let n=t(this,e);n&&e.parsers.push(n)}e:for(;this.nextLine()&&t.pos!=t.text.length;){;if(t.indent<t.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,t,e))break e}for(let n of e.parsers)if(n.nextLine(this,t,e))return null;for(let n of(e.content+="\n"+t.scrub(),t.markers))e.marks.push(n)}return this.finishLeaf(e),null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=t}reuseFragment(t){if(!this.fragments.moveTo(this.absoluteLineStart+t,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let e=this.fragments.takeNodes(this);return!!e&&(this.absoluteLineStart+=e,this.lineStart=tP(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++):this.atEnd=!0,this.readLine(),!0)}get depth(){return this.stack.length}parentType(t=this.depth-1){return this.parser.nodeSet.types[this.stack[t].type]}nextLine(){return(this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to)?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(t){if(to.end=t,t>=this.to)to.text="";else if(to.text=this.lineChunkAt(t),to.end+=to.text.length,this.ranges.length>1){let t=this.absoluteLineStart,e=this.rangeI;for(;this.ranges[e].to<to.end;){e++;let n=this.ranges[e].from,r=this.lineChunkAt(n);to.end=n+r.length,to.text=to.text.slice(0,this.ranges[e-1].to-t)+r,t=to.end-to.text.length}}return to}readLine(){let{line:t}=this,{text:e,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,t.reset(e);t.depth<this.stack.length;t.depth++){let e=this.stack[t.depth],n=this.parser.skipContextMarkup[e.type];if(!n)throw Error("Unhandled block context "+o[e.type]);if(!n(e,this,t))break;t.forward()}}lineChunkAt(t){let e=this.input.chunk(t),n;if(this.input.lineChunks)n="\n"==e?"":e;else{let t=e.indexOf("\n");n=t<0?e:e.slice(0,t)}return t+n.length>this.to?n.slice(0,this.to-t):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,e,n=0){this.block=P.create(t,n,this.lineStart+e,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,e,n=0){this.startContext(this.parser.getNodeType(t),e,n)}addNode(t,e,n){"number"==typeof t&&(t=new p.mp(this.parser.nodeSet.types[t],th,th,(null!=n?n:this.prevLineEnd())-e)),this.block.addChild(t,e-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,e){this.addNode(this.buffer.writeElements(tT(e.children,t.marks),-e.from).finish(e.type,e.to-e.from),e.from)}finishContext(){let t=this.stack.pop(),e=this.stack[this.stack.length-1];e.addChild(t.toTree(this.parser.nodeSet),t.from-e.from),this.block=e}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?function t(e,n,r,o,s){let a=e[n].to,u=[],l=[],c=r.from+o;function h(t,r){for(;r?t>=a:t>a;){let r=e[n+1].from-a;o+=r,t+=r,a=e[++n].to}}for(let f=r.firstChild;f;f=f.nextSibling){h(f.from+o,!0);let r=f.from+o,p,d=s.get(f.tree);d?p=d:f.to+o>a?(p=t(e,n,f,o,s),h(f.to+o,!1)):p=f.toTree(),u.push(p),l.push(r-c)}return h(r.to+o,!1),new p.mp(r.type,u,l,r.to+o-c,r.tree?r.tree.propValues:void 0)}(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let e of t.parsers)if(e.finish(this,t))return;let e=tT(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(e,-t.start).finish(o.Paragraph,t.content.length),t.start)}elt(t,e,n,r){return"string"==typeof t?tm(this.parser.getNodeType(t),e,n,r):new td(t,e)}get buffer(){return new tf(this.parser.nodeSet)}}class ta extends p._b{constructor(t,e,n,r,o,s,a,u,l){for(let c of(super(),this.nodeSet=t,this.blockParsers=e,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=o,this.skipContextMarkup=s,this.inlineParsers=a,this.inlineNames=u,this.wrappers=l,this.nodeTypes=Object.create(null),t.types))this.nodeTypes[c.name]=c.id}createParse(t,e,n){let r=new ts(this,t,e,n);for(let o of this.wrappers)r=o(r,t,e,n);return r}configure(t){let e=function t(e){if(!Array.isArray(e))return e;if(0==e.length)return null;let n=t(e[0]);if(1==e.length)return n;let r=t(e.slice(1));if(!r||!n)return n||r;let o=(t,e)=>(t||th).concat(e||th),s=n.wrap,a=r.wrap;return{props:o(n.props,r.props),defineNodes:o(n.defineNodes,r.defineNodes),parseBlock:o(n.parseBlock,r.parseBlock),parseInline:o(n.parseInline,r.parseInline),remove:o(n.remove,r.remove),wrap:s?a?(t,e,n,r)=>s(a(t,e,n,r),e,n,r):s:a}}(t);if(!e)return this;let{nodeSet:n,skipContextMarkup:r}=this,s=this.blockParsers.slice(),a=this.leafBlockParsers.slice(),u=this.blockNames.slice(),l=this.inlineParsers.slice(),c=this.inlineNames.slice(),h=this.endLeafBlock.slice(),f=this.wrappers;if(tu(e.defineNodes)){r=Object.assign({},r);let t=n.types.slice(),s;for(let n of e.defineNodes){let{name:e,block:a,composite:u,style:l}="string"==typeof n?{name:n}:n;if(t.some(t=>t.name==e))continue;u&&(r[t.length]=(t,e,n)=>u(e,n,t.value));let c=t.length,h=u?["Block","BlockContext"]:a?c>=o.ATXHeading1&&c<=o.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;t.push(p.Jq.define({id:c,name:e,props:h&&[[p.md.group,h]]})),l&&(!s&&(s={}),Array.isArray(l)||l instanceof C.Vp?s[e]=l:Object.assign(s,l))}n=new p.Lj(t),s&&(n=n.extend((0,C.Gv)(s)))}if(tu(e.props)&&(n=n.extend(...e.props)),tu(e.remove))for(let t of e.remove){let e=this.blockNames.indexOf(t),n=this.inlineNames.indexOf(t);e>-1&&(s[e]=a[e]=void 0),n>-1&&(l[n]=void 0)}if(tu(e.parseBlock))for(let t of e.parseBlock){let e=u.indexOf(t.name);if(e>-1)s[e]=t.parse,a[e]=t.leaf;else{let e=t.before?tl(u,t.before):t.after?tl(u,t.after)+1:u.length-1;s.splice(e,0,t.parse),a.splice(e,0,t.leaf),u.splice(e,0,t.name)}t.endLeaf&&h.push(t.endLeaf)}if(tu(e.parseInline))for(let t of e.parseInline){let e=c.indexOf(t.name);if(e>-1)l[e]=t.parse;else{let e=t.before?tl(c,t.before):t.after?tl(c,t.after)+1:c.length-1;l.splice(e,0,t.parse),c.splice(e,0,t.name)}}return e.wrap&&(f=f.concat(e.wrap)),new ta(n,s,a,u,h,r,l,c,f)}getNodeType(t){let e=this.nodeTypes[t];if(null==e)throw RangeError(`Unknown node type '${t}'`);return e}parseInline(t,e){let n=new tC(this,t,e);n:for(let t=e;t<n.end;){let e=n.char(t);for(let r of this.inlineParsers)if(r){let o=r(n,e,t);if(o>=0){t=o;continue n}}t++}return n.resolveMarkers(0)}}function tu(t){return null!=t&&t.length>0}function tl(t,e){let n=t.indexOf(e);if(n<0)throw RangeError(`Position specified relative to unknown parser ${e}`);return n}let tc=[p.Jq.none];for(let t=1,e;e=o[t];t++)tc[t]=p.Jq.define({id:t,name:e,props:t>=o.Escape?[]:[[p.md.group,t in N?["Block","BlockContext"]:["Block","LeafBlock"]]],top:"Document"==e});let th=[];class tf{constructor(t){this.nodeSet=t,this.content=[],this.nodes=[]}write(t,e,n,r=0){return this.content.push(t,e,n,4+4*r),this}writeElements(t,e=0){for(let n of t)n.writeTo(this,e);return this}finish(t,e){return p.mp.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:e})}}class tp{constructor(t,e,n,r=th){this.type=t,this.from=e,this.to=n,this.children=r}writeTo(t,e){let n=t.content.length;t.writeElements(this.children,e),t.content.push(this.type,this.from+e,this.to+e,t.content.length+4-n)}toTree(t){return new tf(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class td{constructor(t,e){this.tree=t,this.from=e}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return th}writeTo(t,e){t.nodes.push(this.tree),t.content.push(t.nodes.length-1,this.from+e,this.to+e,-1)}toTree(){return this.tree}}function tm(t,e,n,r){return new tp(t,e,n,r)}let tg={resolve:"Emphasis",mark:"EmphasisMark"},ty={resolve:"Emphasis",mark:"EmphasisMark"},tv={},tb={};class tO{constructor(t,e,n,r){this.type=t,this.from=e,this.to=n,this.side=r}}let tw="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",tx=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{tx=RegExp("[\\p{S}|\\p{P}]","u")}catch(t){}let tD={Escape(t,e,n){if(92!=e||n==t.end-1)return -1;let r=t.char(n+1);for(let e=0;e<tw.length;e++)if(tw.charCodeAt(e)==r)return t.append(tm(o.Escape,n,n+2));return -1},Entity(t,e,n){if(38!=e)return -1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(n+1,n+31));return r?t.append(tm(o.Entity,n,n+1+r[0].length)):-1},InlineCode(t,e,n){if(96!=e||n&&96==t.char(n-1))return -1;let r=n+1;for(;r<t.end&&96==t.char(r);)r++;let s=r-n,a=0;for(;r<t.end;r++)if(96==t.char(r)){if(++a==s&&96!=t.char(r+1))return t.append(tm(o.InlineCode,n,r+1,[tm(o.CodeMark,n,n+s),tm(o.CodeMark,r+1-s,r+1)]))}else a=0;return -1},HTMLTag(t,e,n){if(60!=e||n==t.end-1)return -1;let r=t.slice(n+1,t.end),s=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(s)return t.append(tm(o.Autolink,n,n+1+s[0].length,[tm(o.LinkMark,n,n+1),tm(o.URL,n+1,n+s[0].length),tm(o.LinkMark,n+s[0].length,n+1+s[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return t.append(tm(o.Comment,n,n+1+a[0].length));let u=/^\?[^]*?\?>/.exec(r);if(u)return t.append(tm(o.ProcessingInstruction,n,n+1+u[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return l?t.append(tm(o.HTMLTag,n,n+1+l[0].length)):-1},Emphasis(t,e,n){if(95!=e&&42!=e)return -1;let r=n+1;for(;t.char(r)==e;)r++;let o=t.slice(n-1,n),s=t.slice(r,r+1),a=tx.test(o),u=tx.test(s),l=/\s|^$/.test(o),c=/\s|^$/.test(s),h=!c&&(!u||l||a),f=!l&&(!a||c||u);return t.append(new tO(95==e?tg:ty,n,r,(h&&(42==e||!f||a)?1:0)|(f&&(42==e||!h||u)?2:0)))},HardBreak(t,e,n){if(92==e&&10==t.char(n+1))return t.append(tm(o.HardBreak,n,n+2));if(32==e){let e=n+1;for(;32==t.char(e);)e++;if(10==t.char(e)&&e>=n+2)return t.append(tm(o.HardBreak,n,e+1))}return -1},Link:(t,e,n)=>91==e?t.append(new tO(tv,n,n+1,1)):-1,Image:(t,e,n)=>33==e&&91==t.char(n+1)?t.append(new tO(tb,n,n+2,1)):-1,LinkEnd(t,e,n){if(93!=e)return -1;for(let e=t.parts.length-1;e>=0;e--){let r=t.parts[e];if(r instanceof tO&&(r.type==tv||r.type==tb)){if(!r.side||t.skipSpace(r.to)==n&&!/[(\[]/.test(t.slice(n+1,n+2)))return t.parts[e]=null,-1;let s=t.takeContent(e),a=t.parts[e]=function(t,e,n,r,s){let{text:a}=t,u=t.char(s),l=s;if(e.unshift(tm(o.LinkMark,r,r+(n==o.Image?2:1))),e.push(tm(o.LinkMark,s-1,s)),40==u){let n=t.skipSpace(s+1),r=tk(a,n-t.offset,t.offset),u;r&&(n=t.skipSpace(r.to))!=r.to&&(u=tS(a,n-t.offset,t.offset))&&(n=t.skipSpace(u.to)),41==t.char(n)&&(e.push(tm(o.LinkMark,s,s+1)),l=n+1,r&&e.push(r),u&&e.push(u),e.push(tm(o.LinkMark,n,l)))}else if(91==u){let n=tE(a,s-t.offset,t.offset,!1);n&&(e.push(n),l=n.to)}return tm(n,r,l,e)}(t,s,r.type==tv?o.Link:o.Image,r.from,n+1);if(r.type==tv)for(let n=0;n<e;n++){let e=t.parts[n];e instanceof tO&&e.type==tv&&(e.side=0)}return a.to}}return -1}};function tk(t,e,n){if(60==t.charCodeAt(e)){for(let r=e+1;r<t.length;r++){let s=t.charCodeAt(r);if(62==s)return tm(o.URL,e+n,r+1+n);if(60==s||10==s)return!1}return null}{let r=0,s=e;for(let e=!1;s<t.length;s++){let n=t.charCodeAt(s);if(L(n))break;if(e)e=!1;else if(40==n)r++;else if(41==n){if(!r)break;r--}else 92==n&&(e=!0)}return s>e?tm(o.URL,e+n,s+n):s==t.length&&null}}function tS(t,e,n){let r=t.charCodeAt(e);if(39!=r&&34!=r&&40!=r)return!1;let s=40==r?41:r;for(let r=e+1,a=!1;r<t.length;r++){let u=t.charCodeAt(r);if(a)a=!1;else{if(u==s)return tm(o.LinkTitle,e+n,r+1+n);92==u&&(a=!0)}}return null}function tE(t,e,n,r){for(let s=!1,a=e+1,u=Math.min(t.length,a+999);a<u;a++){let u=t.charCodeAt(a);if(s)s=!1;else{if(93==u)return!r&&tm(o.LinkLabel,e+n,a+1+n);if(r&&!L(u)&&(r=!1),91==u)return!1;92==u&&(s=!0)}}return null}class tC{constructor(t,e,n){this.parser=t,this.text=e,this.offset=n,this.parts=[]}char(t){return t>=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,e){return this.text.slice(t-this.offset,e-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,e,n,r,o){return this.append(new tO(t,e,n,(r?1:0)|(o?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let e=this.parts[t];if(e instanceof tO&&(e.type==tv||e.type==tb))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let e=t;e<this.parts.length;e++){let n=this.parts[e];if(!(n instanceof tO&&n.type.resolve&&2&n.side))continue;let r=n.type==tg||n.type==ty,o=n.to-n.from,s,a=e-1;for(;a>=t;a--){let t=this.parts[a];if(t instanceof tO&&1&t.side&&t.type==n.type&&!(r&&(1&n.side||2&t.side)&&(t.to-t.from+o)%3==0&&((t.to-t.from)%3||o%3))){s=t;break}}if(!s)continue;let u=n.type.resolve,l=[],c=s.from,h=n.to;if(r){let t=Math.min(2,s.to-s.from,o);c=s.to-t,h=n.from+t,u=1==t?"Emphasis":"StrongEmphasis"}s.type.mark&&l.push(this.elt(s.type.mark,c,s.to));for(let t=a+1;t<e;t++)this.parts[t]instanceof tp&&l.push(this.parts[t]),this.parts[t]=null;n.type.mark&&l.push(this.elt(n.type.mark,n.from,h));let f=this.elt(u,c,h,l);this.parts[a]=r&&s.from!=c?new tO(s.type,s.from,c,s.side):null,(this.parts[e]=r&&n.to!=h?new tO(n.type,h,n.to,n.side):null)?this.parts.splice(e,0,f):this.parts[e]=f}let e=[];for(let n=t;n<this.parts.length;n++){let t=this.parts[n];t instanceof tp&&e.push(t)}return e}findOpeningDelimiter(t){for(let e=this.parts.length-1;e>=0;e--){let n=this.parts[e];if(n instanceof tO&&n.type==t)return e}return null}takeContent(t){let e=this.resolveMarkers(t);return this.parts.length=t,e}skipSpace(t){return _(this.text,t-this.offset)+this.offset}elt(t,e,n,r){return"string"==typeof t?tm(this.parser.getNodeType(t),e,n,r):new td(t,e)}}function tT(t,e){if(!e.length)return t;if(!t.length)return e;let n=t.slice(),r=0;for(let t of e){for(;r<n.length&&n[r].to<t.to;)r++;if(r<n.length&&n[r].from<t.from){let e=n[r];e instanceof tp&&(n[r]=new tp(e.type,e.from,e.to,tT(e.children,[t])))}else n.splice(r++,0,t)}return n}let tA=[o.CodeBlock,o.ListItem,o.OrderedList,o.BulletList];class tM{constructor(t,e){this.fragments=t,this.input=e,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,t.length&&(this.fragment=t[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(t,e){for(;this.fragment&&this.fragment.to<=t;)this.nextFragment();if(!this.fragment||this.fragment.from>(t?t-1:0))return!1;if(this.fragmentEnd<0){let t=this.fragment.to;for(;t>0&&"\n"!=this.input.read(t-1,t);)t--;this.fragmentEnd=t?t-1:0}let n=this.cursor;!n&&(n=this.cursor=this.fragment.tree.cursor()).firstChild();let r=t+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=e;if(!n.childAfter(r))return!1}}matches(t){let e=this.cursor.tree;return e&&e.prop(p.md.contextHash)==t}takeNodes(t){let e=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=t.absoluteLineStart,a=s,u=t.block.children.length,l=a,c=u;for(;;){if(e.to-n>r){if(e.type.isAnonymous&&e.firstChild())continue;break}let s=tP(e.from-n,t.ranges);if(e.to-n<=t.ranges[t.rangeI].to)t.addNode(e.tree,s);else{let n=new p.mp(t.parser.nodeSet.types[o.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(n,e.tree),t.addNode(n,s)}if(e.type.is("Block")&&(0>tA.indexOf(e.type.id)?(a=e.to-n,u=t.block.children.length):(a=l,u=c,l=e.to-n,c=t.block.children.length)),!e.nextSibling())break}for(;t.block.children.length>u;)t.block.children.pop(),t.block.positions.pop();return a-s}}function tP(t,e){let n=t;for(let r=1;r<e.length;r++){let o=e[r-1].to,s=e[r].from;o<t&&(n-=s-o)}return n}let tB=(0,C.Gv)({"Blockquote/...":C.pJ.quote,HorizontalRule:C.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":C.pJ.heading1,"ATXHeading2/... SetextHeading2/...":C.pJ.heading2,"ATXHeading3/...":C.pJ.heading3,"ATXHeading4/...":C.pJ.heading4,"ATXHeading5/...":C.pJ.heading5,"ATXHeading6/...":C.pJ.heading6,"Comment CommentBlock":C.pJ.comment,Escape:C.pJ.escape,Entity:C.pJ.character,"Emphasis/...":C.pJ.emphasis,"StrongEmphasis/...":C.pJ.strong,"Link/... Image/...":C.pJ.link,"OrderedList/... BulletList/...":C.pJ.list,"BlockQuote/...":C.pJ.quote,"InlineCode CodeText":C.pJ.monospace,"URL Autolink":C.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":C.pJ.processingInstruction,"CodeInfo LinkLabel":C.pJ.labelName,LinkTitle:C.pJ.string,Paragraph:C.pJ.content}),tI=new ta(new p.Lj(tc).extend(tB),Object.keys(tt).map(t=>tt[t]),Object.keys(tt).map(t=>ti[t]),Object.keys(tt),[(t,e)=>z(e)>=0,(t,e)=>R(e)>=0,(t,e)=>j(e)>=0,(t,e)=>H(e,t,!0)>=0,(t,e)=>W(e,t,!0)>=0,(t,e)=>$(e,t,!0)>=0,(t,e)=>K(e,t,!0)>=0],N,Object.keys(tD).map(t=>tD[t]),Object.keys(tD),[]),tF={resolve:"Strikethrough",mark:"StrikethroughMark"},tN={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":C.pJ.strikethrough}},{name:"StrikethroughMark",style:C.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(126!=e||126!=t.char(n+1)||126==t.char(n+2))return -1;let r=t.slice(n-1,n),o=t.slice(n+2,n+3),s=/\s|^$/.test(r),a=/\s|^$/.test(o),u=tx.test(r),l=tx.test(o);return t.addDelimiter(tF,n,n+2,!a&&(!l||s||u),!s&&(!u||a||l))},after:"Emphasis"}]};function tL(t,e,n=0,r,o=0){let s=0,a=!0,u=-1,l=-1,c=!1,h=()=>{r.push(t.elt("TableCell",o+u,o+l,t.parser.parseInline(e.slice(u,l),o+u)))};for(let f=n;f<e.length;f++){let n=e.charCodeAt(f);124!=n||c?(c||32!=n&&9!=n)&&(u<0&&(u=f),l=f+1):((!a||u>-1)&&s++,a=!1,r&&(u>-1&&h(),r.push(t.elt("TableDelimiter",f+o,f+o+1))),u=l=-1),c=!c&&92==n}return u>-1&&(s++,r&&h()),s}function t_(t,e){for(let n=e;n<t.length;n++){let e=t.charCodeAt(n);if(124==e)return!0;92==e&&n++}return!1}let tX=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class tR{constructor(){this.rows=null}nextLine(t,e,n){if(null==this.rows){let r;if(this.rows=!1,(45==e.next||58==e.next||124==e.next)&&tX.test(r=e.text.slice(e.pos))){let o=[];tL(t,n.content,0,o,n.start)==tL(t,r,e.pos)&&(this.rows=[t.elt("TableHeader",n.start,n.start+n.content.length,o),t.elt("TableDelimiter",t.lineStart+e.pos,t.lineStart+e.text.length)])}}else if(this.rows){let n=[];tL(t,e.text,e.pos,n,t.lineStart),this.rows.push(t.elt("TableRow",t.lineStart+e.pos,t.lineStart+e.text.length,n))}return!1}finish(t,e){return!!this.rows&&(t.addLeafElement(e,t.elt("Table",e.start,e.start+e.content.length,this.rows)),!0)}}let tj={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":C.pJ.heading}},"TableRow",{name:"TableCell",style:C.pJ.content},{name:"TableDelimiter",style:C.pJ.processingInstruction}],parseBlock:[{name:"Table",leaf:(t,e)=>t_(e.content,0)?new tR:null,endLeaf(t,e,n){if(n.parsers.some(t=>t instanceof tR)||!t_(e.text,e.basePos))return!1;let r=t.peekLine();return tX.test(r)&&tL(t,e.text,e.basePos)==tL(t,r,e.basePos)},before:"SetextHeading"}]};class t${nextLine(){return!1}finish(t,e){return t.addLeafElement(e,t.elt("Task",e.start,e.start+e.content.length,[t.elt("TaskMarker",e.start,e.start+3),...t.parser.parseInline(e.content.slice(3),e.start+3)])),!0}}let tV={defineNodes:[{name:"Task",block:!0,style:C.pJ.list},{name:"TaskMarker",style:C.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(t,e)=>/^\[[ xX]\][ \t]/.test(e.content)&&"ListItem"==t.parentType().name?new t$:null,after:"SetextHeading"}]},tH=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,tW=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,tz=/[\w-]+\.[\w-]+($|\/)/,tq=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,tU=/\/[a-zA-Z\d@.]+/gy;function tY(t,e,n,r){let o=0;for(let s=e;s<n;s++)t[s]==r&&o++;return o}function tG(t,e){tq.lastIndex=e;let n=tq.exec(t);if(!n)return -1;let r=n[0][n[0].length-1];return"_"==r||"-"==r?-1:e+n[0].length-("."==r?1:0)}let tQ=[tj,tV,tN,{parseInline:[{name:"Autolink",parse(t,e,n){let r=n-t.offset;if(r&&/\w/.test(t.text[r-1]))return -1;tH.lastIndex=r;let o=tH.exec(t.text),s=-1;if(!o)return -1;if(o[1]||o[2]){if((s=function(t,e){tW.lastIndex=e;let n=tW.exec(t);if(!n||tz.exec(n[0])[0].indexOf("_")>-1)return -1;let r=e+n[0].length;for(;;){let n=t[r-1],o;if(/[?!.,:*_~]/.test(n)||")"==n&&tY(t,e,r,")")>tY(t,e,r,"("))r--;else if(";"==n&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,r))))r=e+o.index;else break}return r}(t.text,r+o[0].length))>-1&&t.hasOpenLink){let e=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(r,s));s=r+e[0].length}}else o[3]?s=tG(t.text,r):(s=tG(t.text,r+o[0].length))>-1&&"xmpp:"==o[0]&&(tU.lastIndex=s,(o=tU.exec(t.text))&&(s=o.index+o[0].length));return s<0?-1:(t.addElement(t.elt("URL",n,s+t.offset)),s+t.offset)}}]}];function tK(t,e,n){return(r,o,s)=>{if(o!=t||r.char(s+1)==t)return -1;let a=[r.elt(n,s,s+1)];for(let o=s+1;o<r.end;o++){let u=r.char(o);if(u==t)return r.addElement(r.elt(e,s,o+1,a.concat(r.elt(n,o,o+1))));if(92==u&&a.push(r.elt("Escape",o,o+++2)),L(u))break}return -1}}let tJ={defineNodes:[{name:"Superscript",style:C.pJ.special(C.pJ.content)},{name:"SuperscriptMark",style:C.pJ.processingInstruction}],parseInline:[{name:"Superscript",parse:tK(94,"Superscript","SuperscriptMark")}]},tZ={defineNodes:[{name:"Subscript",style:C.pJ.special(C.pJ.content)},{name:"SubscriptMark",style:C.pJ.processingInstruction}],parseInline:[{name:"Subscript",parse:tK(126,"Subscript","SubscriptMark")}]},t0={defineNodes:[{name:"Emoji",style:C.pJ.character}],parseInline:[{name:"Emoji",parse(t,e,n){let r;return 58==e&&(r=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?t.addElement(t.elt("Emoji",n,n+1+r[0].length)):-1}}]},t1={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},t2={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},t3={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function t5(t){return 9==t||10==t||13==t||32==t}let t4=null,t9=null,t8=0;function t6(t,e){var n;let r=t.pos+e;if(t8==r&&t9==t)return t4;let o=t.peek(e);for(;t5(o);)o=t.peek(++e);let s="";for(;45==(n=o)||46==n||58==n||n>=65&&n<=90||95==n||n>=97&&n<=122||n>=161;)s+=String.fromCharCode(o),o=t.peek(++e);return t9=t,t8=r,t4=s?s.toLowerCase():o==t7||o==et?void 0:null}let t7=63,et=33;function ee(t,e){this.name=t,this.parent=e}let en=[6,10,7,8,9],er=new d.IK({start:null,shift:(t,e,n,r)=>en.indexOf(e)>-1?new ee(t6(r,1)||"",t):t,reduce:(t,e)=>20==e&&t?t.parent:t,reuse(t,e,n,r){let o=e.type.id;return 6==o||36==o?new ee(t6(r,1)||"",t):t},strict:!1}),ei=new d.Jq((t,e)=>{if(60!=t.next){t.next<0&&e.context&&t.acceptToken(57);return}t.advance();let n=47==t.next;n&&t.advance();let r=t6(t,0);if(void 0===r)return;if(!r)return t.acceptToken(n?14:6);let o=e.context?e.context.name:null;if(n){if(r==o)return t.acceptToken(11);if(o&&t2[o])return t.acceptToken(57,-2);if(e.dialectEnabled(0))return t.acceptToken(12);for(let t=e.context;t;t=t.parent)if(t.name==r)return;t.acceptToken(13)}else{if("script"==r)return t.acceptToken(7);if("style"==r)return t.acceptToken(8);if("textarea"==r)return t.acceptToken(9);if(t1.hasOwnProperty(r))return t.acceptToken(10);o&&t3[o]&&t3[o][r]?t.acceptToken(57,-1):t.acceptToken(6)}},{contextual:!0}),eo=new d.Jq(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(58);break}if(45==t.next)e++;else if(62==t.next&&e>=2){n>=3&&t.acceptToken(58,-2);break}else e=0;t.advance()}}),es=new d.Jq((t,e)=>{if(47==t.next&&62==t.peek(1)){let n=e.dialectEnabled(1)||function(t){for(;t;t=t.parent)if("svg"==t.name||"math"==t.name)return!0;return!1}(e.context);t.acceptToken(n?5:4,2)}else 62==t.next&&t.acceptToken(4,1)});function ea(t,e,n){let r=2+t.length;return new d.Jq(o=>{for(let s=0,a=0,u=0;;u++){if(o.next<0){u&&o.acceptToken(e);break}if(0==s&&60==o.next||1==s&&47==o.next||s>=2&&s<r&&o.next==t.charCodeAt(s-2))s++,a++;else if((2==s||s==r)&&t5(o.next))a++;else if(s==r&&62==o.next){u>a?o.acceptToken(e,-a):o.acceptToken(n,-(a-2));break}else if((10==o.next||13==o.next)&&u){o.acceptToken(e,1);break}else s=a=0;o.advance()}})}let eu=ea("script",54,1),el=ea("style",55,2),ec=ea("textarea",56,3),eh=(0,C.Gv)({"Text RawText":C.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":C.pJ.angleBracket,TagName:C.pJ.tagName,"MismatchedCloseTag/TagName":[C.pJ.tagName,C.pJ.invalid],AttributeName:C.pJ.attributeName,"AttributeValue UnquotedAttributeValue":C.pJ.attributeValue,Is:C.pJ.definitionOperator,"EntityReference CharacterReference":C.pJ.character,Comment:C.pJ.blockComment,ProcessingInst:C.pJ.processingInstruction,DoctypeDecl:C.pJ.documentMeta}),ef=d.WQ.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:er,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[eh],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[eu,el,ec,es,ei,eo,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});var ep=h.qp.define({parser:ef.configure({dialect:"noMatch"})}),ed=new p.md;function em(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?Number(e[1]):void 0}var eg=h.rs.of((t,e,n)=>{for(let r=(0,h.qz)(t).resolveInner(n,-1);r&&!(r.from<e);r=r.parent){;let t=r.type.prop(ed);if(null==t)continue;let e=function(t,e){let n=t;for(;;){let t;let r=n.nextSibling;if(!r||null!=(t=em(r.type))&&t<=e)break;n=r}return n.to}(r,t);if(e>n)return{from:n,to:e}}return null}),ey=(0,h.kU)({}),ev=function(t){let{codeParser:e,htmlParser:n}=t;return{wrap:(0,p.FE)((t,r)=>{let s=t.type.id;if(e&&(s==o.CodeBlock||s==o.FencedCode)){let n="";if(s==o.FencedCode){let e=t.node.getChild(o.CodeInfo);e&&(n=r.read(e.from,e.to))}let a=e(n);if(a)return{parser:a,overlay:t=>t.type.id==o.CodeText}}else if(n&&(s==o.HTMLBlock||s==o.HTMLTag||s==o.CommentBlock))return{parser:n,overlay:function(t,e,n){let r=[];for(let o=t.firstChild,s=e;;o=o.nextSibling){let t=o?o.from:n;if(t>s&&r.push({from:s,to:t}),!o)break;s=o.to}return r}(t.node,t.from,t.to)};return null})}}({htmlParser:ep.parser}),eb=tI.configure([ev,tQ,tZ,tJ,t0,{props:[ed.add(em),h.uj.add({Document:()=>null}),h.pp.add({Document:ey})]}]),eO=new h.SQ(ey,eb,[],"markdown"),ew=h.qp.define({parser:M.configure({wrap:(0,p.FE)(t=>t.type.isTop?{parser:eO.parser,overlay:[{from:t.from,to:t.to}]}:null)})}),ex=["'",'"',"{","[","("],eD=[(0,f.vQ)(),ew.data.of({closeBrackets:{brackets:ex}}),eO.data.of({closeBrackets:{brackets:ex}}),(0,a.Hw)([{type:"character",triggerCharacter:"%",handler({view:t,from:e,to:n}){let r=t.state.sliceDoc(Math.max(0,e-1),e),o=t.state.sliceDoc(e,Math.min(e+1,t.state.doc.length));return"{"===r&&"}"===o&&((0,u.Fb)({view:t})({from:e,to:n,text:"%%",cursorOffset:-1}),!0)}},{type:"character",triggerCharacter:"#",handler({view:t,from:e,to:n}){let r=t.state.sliceDoc(Math.max(0,e-1),e),o=t.state.sliceDoc(e,Math.min(e+1,t.state.doc.length));return"{"===r&&"}"===o&&((0,u.Fb)({view:t})({from:e,to:n,text:"##",cursorOffset:-1}),!0)}}])],ek=new h.ri(ew,[[eg],eD]),eS={":":"",",":""},eE=c.yy.transactionFilter.of(t=>{let e=!0;return(t.changes.iterChanges((n,r,o,s,a)=>{let u=eS[a.toString()];u&&r-n>5&&t.startState.sliceDoc(n-1,n)===u&&"{#/"===t.startState.sliceDoc(n,n+3)&&"#}"===t.startState.sliceDoc(r-2,r)&&(e=!1),u&&t.isUserEvent("input.type")&&Math.abs(t.newSelection.main.to-t.startState.selection.main.to)>5&&t.newSelection.main.to>=2&&"#}"===t.newDoc.sliceString(t.newSelection.main.to-2,t.newSelection.main.to)&&(e=!1)}),e)?t:[]}),eC=[...s.R,(0,l.Kw)("minHeight",u.jw),(0,l.Kw)("maxHeight",u.kC),(0,l.Kw)("height",u.Cb),(0,l.hi)("getMainSelectionRects",u.uj),(0,l.hi)("replaceText",u.lp),(0,l.hi)("undo",u.Yw),(0,l.hi)("redo",u.KX),(0,l.hi)("transformTextInSelection",u.sR),(0,l.AO)([c.Wl.high(a.cl),eE])]},919658:function(t,e,n){"use strict";n.d(e,{Iq:()=>$,Vj:()=>j,pf:()=>ta,GH:()=>tt,Vm:()=>Z,m4:()=>ts});var r=n("455069");let o=Math.min,s=Math.max,a=Math.round,u=Math.floor,l=t=>({x:t,y:t});function c(){return"undefined"!=typeof window}function h(t){return d(t)?(t.nodeName||"").toLowerCase():"#document"}function f(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function p(t){var e;return null==(e=(d(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function d(t){return!!c()&&(t instanceof Node||t instanceof f(t).Node)}function m(t){return!!c()&&(t instanceof Element||t instanceof f(t).Element)}function g(t){return!!c()&&(t instanceof HTMLElement||t instanceof f(t).HTMLElement)}function y(t){return!!c()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof f(t).ShadowRoot)}function b(t){let{overflow:e,overflowX:n,overflowY:r,display:o}=O(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function O(t){return f(t).getComputedStyle(t)}function w(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);let o=function t(e){let n=function(t){if("html"===h(t))return t;let e=t.assignedSlot||t.parentNode||y(t)&&t.host||p(t);return y(e)?e.host:e}(e);return["html","body","#document"].includes(h(n))?e.ownerDocument?e.ownerDocument.body:e.body:g(n)&&b(n)?n:t(n)}(t),s=o===(null==(r=t.ownerDocument)?void 0:r.body),a=f(o);if(s){let t=x(a);return e.concat(a,a.visualViewport||[],b(o)?o:[],t&&n?w(t):[])}return e.concat(o,w(o,[],n))}function x(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function D(t){return m(t)?t:t.contextElement}function k(t){let e=D(t);if(!g(e))return l(1);let n=e.getBoundingClientRect(),{width:r,height:o,$:s}=function(t){let e=O(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,o=g(t),s=o?t.offsetWidth:n,u=o?t.offsetHeight:r,l=a(n)!==s||a(r)!==u;return l&&(n=s,r=u),{width:n,height:r,$:l}}(e),u=(s?a(n.width):n.width)/r,c=(s?a(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}let S=l(0);function E(t,e,n,r){var o,s,a;void 0===e&&(e=!1),void 0===n&&(n=!1);let u=t.getBoundingClientRect(),c=D(t),h=l(1);e&&(r?m(r)&&(h=k(r)):h=k(t));let p=(o=c,void 0===(s=n)&&(s=!1),(a=r)&&(!s||a===f(o))&&s)?function(t){let e=f(t);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:S}(c):l(0),d=(u.left+p.x)/h.x,g=(u.top+p.y)/h.y,y=u.width/h.x,b=u.height/h.y;if(c){let t=f(c),e=r&&m(r)?f(r):r,n=t,o=x(n);for(;o&&r&&e!==n;){let t=k(o),e=o.getBoundingClientRect(),r=O(o),s=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;d*=t.x,g*=t.y,y*=t.x,b*=t.y,d+=s,g+=a,o=x(n=f(o))}}return function(t){let{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}({width:y,height:b,x:d,y:g})}function C(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function T(t,e,n,r){let a;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:h="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,m=D(t),g=l||c?[...m?w(m):[],...w(e)]:[];g.forEach(t=>{l&&t.addEventListener("scroll",n,{passive:!0}),c&&t.addEventListener("resize",n)});let y=m&&f?function(t,e){let n,r=null,a=p(t);function l(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return!function c(h,f){void 0===h&&(h=!1),void 0===f&&(f=1),l();let p=t.getBoundingClientRect(),{left:d,top:m,width:g,height:y}=p;if(!h&&e(),!g||!y)return;let b=u(m),O=u(a.clientWidth-(d+g)),w=u(a.clientHeight-(m+y)),x=u(d),D={rootMargin:-b+"px "+-O+"px "+-w+"px "+-x+"px",threshold:s(0,o(1,f))||1},k=!0;function S(e){let r=e[0].intersectionRatio;if(r!==f){if(!k)return c();r?c(!1,r):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1===r&&!C(p,t.getBoundingClientRect())&&c(),k=!1}try{r=new IntersectionObserver(S,{...D,root:a.ownerDocument})}catch(t){r=new IntersectionObserver(S,D)}r.observe(t)}(!0),l}(m,n):null,b=-1,O=null;h&&(O=new ResizeObserver(t=>{let[r]=t;r&&r.target===m&&O&&(O.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var t;null==(t=O)||t.observe(e)})),n()}),m&&!d&&O.observe(m),O.observe(e));let x=d?E(t):null;return d&&function e(){let r=E(t);x&&!C(x,r)&&n(),x=r,a=requestAnimationFrame(e)}(),n(),()=>{var t;g.forEach(t=>{l&&t.removeEventListener("scroll",n),c&&t.removeEventListener("resize",n)}),null==y||y(),null==(t=O)||t.disconnect(),O=null,d&&cancelAnimationFrame(a)}}var A=n("887874"),M=n("642199"),P=n("921463");n("554836");var B=n("913693"),I=n("249294");let F=0;function N(t){return t(this)}function L(t,e,n){return e(this,"function"==typeof n?n(t(this)):n)}n("853220");var _=n("206644"),X=n("301411"),R=n("561700"),j=(0,r.forwardRef)(function({side:t,onChange:e,onVisibleChange:n},o){let s=(0,A.G6)(),a=(0,A.jE)(),[u]=(0,r.useState)(()=>document.createElement("div")),l=(0,r.useRef)(u);l.current=u;let c=(0,r.useRef)(e);c.current=e;let h=(0,r.useRef)(n);return h.current=n,(0,r.useImperativeHandle)(o,()=>l.current),(0,r.useLayoutEffect)(()=>s.inject([M.Gk.of({dom:l.current,pos:t}),M.pt]),[s,t]),(0,r.useEffect)(()=>{let t=document.createElement("div");document.body.appendChild(t);let e=T(l.current,t,()=>{"function"==typeof c.current&&c.current()},{animationFrame:!0});return()=>{document.body.removeChild(t),e()}},[]),(0,r.useEffect)(()=>{if(!a)return;let t=new IntersectionObserver(t=>{t.forEach(t=>{"function"==typeof h.current&&h.current(t.isIntersecting)})},{root:a.$view.scrollDOM,threshold:0});return t.observe(l.current),()=>{t.disconnect()}},[a]),null}),$=(0,r.forwardRef)(function({position:t,onChange:e,onVisibleChange:n},o){let s=(0,A.G6)(),a=(0,A.jE)(),[u]=(0,r.useState)(()=>{let t=document.createElement("div");return t.classList.add("cm-position-mirror"),t}),l=(0,r.useRef)(u);l.current=u;let c=(0,r.useRef)(e);c.current=e;let h=(0,r.useRef)(n);return h.current=n,(0,r.useImperativeHandle)(o,()=>l.current),(0,r.useLayoutEffect)(()=>s.inject([M.Gk.of({dom:l.current,pos:t}),M.pt]),[s,t]),(0,r.useEffect)(()=>{let t=document.createElement("div");document.body.appendChild(t);let e=T(l.current,t,()=>{"function"==typeof c.current&&c.current()},{animationFrame:!0});return()=>{document.body.removeChild(t),e()}},[]),(0,r.useEffect)(()=>{if(!a)return;let t=new IntersectionObserver(t=>{t.forEach(t=>{"function"==typeof h.current&&h.current(t.isIntersecting)})},{root:a.$view.scrollDOM,threshold:0});return t.observe(l.current),()=>{t.disconnect()}},[a]),null}),V=class extends B.uU{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}elementClass;destroy(t){}};V.prototype.elementClass="",V.prototype.toDOM=void 0,V.prototype.mapMode=B.gc.TrackBefore,V.prototype.startSide=V.prototype.endSide=-1,V.prototype.point=!0;var H=B.r$.define(),W=B.r$.define(),z=B.r$.define(),q=B.r$.define({combine:t=>t.some(t=>t)});function U(t){return Array.isArray(t)?t:[t]}function Y(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}I.lg.fromClass(class{constructor(t){for(let e of(this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-right-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(z).map(e=>new Q(t,e)),this.gutters))this.dom.appendChild(e.dom);this.fixed=!t.state.facet(q),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.appendChild(this.dom)}gutters;dom;fixed;prevViewport;update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(q)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.previousSibling;t&&this.dom.remove();let n=B.Xs.iter(this.view.state.facet(H),this.view.viewport.from),r=[],o=this.gutters.map(t=>new G(t,this.view.viewport,-this.view.documentPadding.top));for(let t of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(t.type)){let e=!0;for(let s of t.type)if(s.type==I.kH.Text&&e){for(let t of(Y(n,r,s.from),o))t.line(this.view,s,r);e=!1}else if(s.widget)for(let t of o)t.widget(this.view,s)}else if(t.type==I.kH.Text)for(let e of(Y(n,r,t.from),o))e.line(this.view,t,r);else if(t.widget)for(let e of o)e.widget(this.view,t);for(let t of o)t.finish();t&&this.view.scrollDOM.insertBefore(this.dom,(null==e?void 0:e.nextSibling)??null)}updateGutters(t){let e=t.startState.facet(z),n=t.state.facet(z),r=t.docChanged||t.heightChanged||t.viewportChanged||!B.Xs.eq(t.startState.facet(H),t.state.facet(H),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let e of this.gutters)e.update(t)&&(r=!0);else{r=!0;let o=[];for(let r of n){let n=e.indexOf(r);n<0?o.push(new Q(this.view,r)):(this.gutters[n].update(t),o.push(this.gutters[n]))}for(let t of this.gutters)t.dom.remove(),0>o.indexOf(t)&&t.destroy();for(let t of o)this.dom.appendChild(t.dom);this.gutters=o}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>I.tk.scrollMargins.of(e=>{let n=e.plugin(t);return n&&0!=n.gutters.length&&n.fixed?e.textDirection==I.Nm.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}:null})});var G=class{constructor(t,e,n){this.gutter=t,this.height=n,this.cursor=B.Xs.iter(t.markers,e.from)}cursor;i=0;addElement(t,e,n){let{gutter:r}=this,o=(e.top-this.height)/t.scaleY,s=e.height/t.scaleY;if(this.i==r.elements.length){let e=new K(t,s,o,n);r.elements.push(e),r.dom.appendChild(e.dom)}else r.elements[this.i].update(t,s,o,n);this.height=e.bottom,this.i++}line(t,e,n){let r=[];Y(this.cursor,r,e.from),n.length&&(r=r.concat(n));let o=this.gutter.config.lineMarker(t,e,r);o&&r.unshift(o);let s=this.gutter;(0!=r.length||s.config.renderEmptyElements)&&this.addElement(t,e,r)}widget(t,e){let n=this.gutter.config.widgetMarker(t,e.widget,e),r=n?[n]:null;for(let n of t.state.facet(W)){let o=n(t,e.widget,e);o&&(r||(r=[])).push(o)}r&&this.addElement(t,e,r)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}},Q=class{constructor(t,e){for(let n in this.view=t,this.config=e,this.dom=document.createElement("div"),this.dom.className="cm-right-gutter"+(this.config.class?" "+this.config.class:""),e.domEventHandlers)this.dom.addEventListener(n,r=>{let o=r.target,s;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let t=o.getBoundingClientRect();s=(t.top+t.bottom)/2}else s=r.clientY;let a=t.lineBlockAtHeight(s-t.documentTop);e.domEventHandlers[n](t,a,r)&&r.preventDefault()});this.markers=U(e.markers(t)),e.initialSpacer&&(this.spacer=new K(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}dom;elements=[];markers;spacer=null;update(t){let e=this.markers;if(this.markers=U(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let n=t.view.viewport;return!B.Xs.eq(this.markers,e,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}},K=class{dom;height=-1;above=0;markers=[];constructor(t,e,n,r){this.dom=document.createElement("div"),this.dom.className="cm-rightGutterElement",this.update(t,e,n,r)}update(t,e,n,r){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),!function(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}(this.markers,r)&&this.setMarkers(t,r)}setMarkers(t,e){let n="cm-rightGutterElement",r=this.dom.firstChild;for(let o=0,s=0;;){let a=s,u=o<e.length?e[o++]:null,l=!1;if(u){let t=u.elementClass;t&&(n+=" "+t);for(let t=s;t<this.markers.length;t++)if(this.markers[t].compare(u)){a=t,l=!0;break}}else a=this.markers.length;for(;s<a;){let t=this.markers[s++];if(t.toDOM){t.destroy(r);let e=r.nextSibling;r.remove(),r=e}}if(!u)break;u.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(u.toDOM(t),r)),l&&s++}this.dom.className=n,this.markers=e}destroy(){this.setMarkers(null,[])}},J=new class extends V{elementClass="cm-activeLineRightGutter"};H.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let o=t.doc.lineAt(r.head).from;o>n&&(n=o,e.push(J.range(o)))}return B.Xs.of(e)}),!function(t,e){let n=`atom${++F}`,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};"function"==typeof t?r.read=t:(r.init=t,r.read=N,r.write=L)}(B.r$.define());function Z({children:t}){let e=(0,_.DW)("span");return(0,_.NZ)(t=>t.inject([(0,X.W)(()=>e)]),[]),(0,P.createPortal)(t,e)}function tt({children:t}){let e=(0,_.DW)("span");return(0,_.NZ)(t=>t.inject([(0,X.E)(()=>e)]),[]),(0,P.createPortal)(t,e)}(0,r.forwardRef)(({element:t},e)=>{let n=(0,_.dU)(t);return(0,r.useImperativeHandle)(e,()=>n.current),null}).displayName="RefElement",B.Py.define();var te=1;function tn(t){return"function"==typeof t.trigger}var tr=/^[\u4e00-\u9fa5a-zA-Z0-9_']*$/;function ti(t){return tr.test(t)}var to=B.r$.define();function ts(t){for(let e of t.facet(to)){let n=t.field(e,!1);if(n&&n.triggerContext&&"number"==typeof n.triggerContext.from&&"number"==typeof n.triggerContext.to)return{from:n.triggerContext.from,to:n.triggerContext.to}}}function ta(t){let e=(0,_.dU)(t);return(0,_.NZ)(n=>{let r={search:t.search,onOpenChange(...t){if("function"==typeof e.current.onOpenChange)return e.current.onOpenChange(...t)},onSearch(...t){if("function"==typeof e.current.onSearch)return e.current.onSearch(...t)},onTrigger(...t){if("function"==typeof e.current.onTrigger)return e.current.onTrigger(...t)}};return n.inject([function(t){let e=B.r$.define({combine:R.wA.Last}),n=B.QQ.define({create:()=>({show:!1,triggerContext:void 0}),update(t,n){let r,o=n.startState.facet(e),{search:s=!0,onOpenChange:a,onSearch:u,onTrigger:l}=o,{show:c}=t;if(n.docChanged){if(Array.isArray(o.triggerCharacters))n.changes.iterChanges((t,e,s,a,u)=>{let l=u.toString();t===e&&o.triggerCharacters.includes(l)&&(r={from:s,to:a,triggerCharacter:l,cursorPosition:n.state.selection.main.head})});else tn(o)&&(r=o.trigger(n));r&&"function"==typeof l&&l({triggerContext:{from:r.from,to:r.to,triggerCharacter:r.triggerCharacter}})}let h=n.isUserEvent("select"),f={show:t.show,triggerContext:t.triggerContext?{...t.triggerContext}:void 0};if(r)f.triggerContext=r,c=!0,"function"==typeof u&&u({value:""});else if(n.docChanged&&t.triggerContext&&s){if(f.triggerContext){let e=n.changes.mapPos(t.triggerContext.from,1,B.gc.TrackAfter),r=n.changes.mapPos(t.triggerContext.to,1,B.gc.Simple);"number"==typeof e&&"number"==typeof r?(f.triggerContext.from=e,f.triggerContext.to=r):c=!1}if(!0===c){let e="object"==typeof s?s.validFor:ti,r=t.triggerContext.cursorPosition,o=n.state.selection.main.head;if(o>=r){let t=n.state.sliceDoc(r,o);e(t,r,o,n.state)?(c=!0,"function"==typeof u&&u({value:t})):c=!1}else c=!1}}else h&&(c=!1);return!1===c&&(f.triggerContext=void 0),c!==t.show&&(f.show=c,"function"==typeof a&&a({value:c,state:n.state,triggerContext:f.triggerContext?{from:f.triggerContext.from,to:f.triggerContext.to,triggerCharacter:f.triggerContext.triggerCharacter}:void 0})),f}});return[e.of(t),n,to.of(n)]}(tn(t)?{...r,trigger(t){if(tn(e.current))return e.current.trigger(t)}}:{...r,triggerCharacters:t.triggerCharacters??[]})])}),null}var tu=class extends I.l9{constructor(t){super(),this.options=t}toDOM(){return this.options.dom}eq(t){return this.options.dom===t.options.dom}},tl=B.Py.define();(0,r.forwardRef)(function({children:t},e){let n=(0,_.DW)("div"),o=(0,_.dU)(n),s=(0,A.jE)(),a=(0,_.dU)(s);return(0,r.useImperativeHandle)(e,()=>({update({visible:t,line:e,side:n}){var r;null==(r=a.current)||r.$view.dispatch({effects:tl.of({visible:t,line:e??1,side:n??"before"})})}})),(0,_.NZ)(t=>{let e=B.QQ.define({create:()=>({position:0,side:"before",decorations:I.p.none}),update(t,e){let n=e.changes.mapPos(t.position,-1,B.gc.Simple),r=t;if("number"==typeof n&&n!==t.position){let s=e.state.doc.lineAt(n),a=0;a="after"===t.side?s.to:s.from,r={...t,position:n,decorations:I.p.set([I.p.widget({widget:new tu({dom:o.current}),block:!0,side:"after"===t.side?1:-1}).range(a)])}}for(let t of e.effects)if(t.is(tl)){let{visible:n,line:s,side:a}=t.value;if(!n)return{position:r.position,side:a,decorations:I.p.none};if(s<1||s>e.startState.doc.lines)continue;let u=e.startState.doc.line(s),l=0;return{position:l="after"===a?u.to:u.from,side:a,decorations:I.p.set([I.p.widget({widget:new tu({dom:o.current}),block:!0,side:"after"===r.side?1:-1}).range(l)])}}return r},provide:t=>I.tk.decorations.compute([t],e=>e.field(t).decorations)});return t.inject([e])},[]),(0,P.createPortal)(t,n)})},206644:function(t,e,n){"use strict";n.d(e,{DW:function(){return l},NZ:function(){return u},dU:function(){return c},n3:function(){return h}});var r=n(455069),o=n(913693),s=n(887874),a=n(249294);n(921463);function u(t,e=[]){let n=(0,s.G6)();(0,r.useLayoutEffect)(()=>t(n),[n,...e])}function l(t="div"){let[e]=(0,r.useState)(()=>document.createElement(t));return e}function c(t){let e=(0,r.useRef)(t);return e.current=t,e}function h(t){let e=c(t);u(t=>t.inject([a.tk.updateListener.of(t=>{t.docChanged&&"function"==typeof e.current&&t.changes.iterChanges((n,r,o,s,a)=>{e.current({change:[n,r,o,s,a],view:t.view})})})]),[])}o.Py.define({map:(t,e)=>t.map(({from:t,to:n,...r})=>({from:e.mapPos(t),to:e.mapPos(n),...r}))}),o.Py.define(),o.Py.define(),o.r$.define(),o.QQ.define({create:t=>t.doc,update:(t,e)=>(e.docChanged&&(t=e.state.doc),t)}),o.r$.define(),o.QQ.define({create:t=>t.doc,update:(t,e)=>(e.docChanged&&(t=e.state.doc),t)}),o.r$.define(),o.r$.define()},887874:function(t,e,n){"use strict";n.d(e,{G6:function(){return c},KU:function(){return h},Th:function(){return f},Us:function(){return p},jE:function(){return l}});var r=n(455069),o=n(554011),s=(0,r.createContext)(null),a=(0,r.createContext)(null),u=(0,r.createContext)(void 0);function l(){return(0,r.useContext)(s)}function c(){let t=(0,r.useContext)(u);if(!t)throw Error("useInjector should be used in EditorProvider");return t}function h({children:t}){let[e,n]=(0,r.useState)(null),l=(0,r.useRef)(null);return!l.current&&(l.current=(0,o.vH)()),r.createElement(s.Provider,{value:e},r.createElement(a.Provider,{value:n},r.createElement(u.Provider,{value:l.current},t)))}function f(t){let{plugins:e,defaultValue:n,root:s,options:u,domProps:l={},extensions:h,didMount:f,children:p}=t,[d,m]=(0,r.useState)(),g=(0,r.useRef)(null),y=(0,r.useRef)(null),b=(0,r.useRef)(null),O=(0,r.useContext)(a),w=c();return b.current=t,(0,r.useEffect)(()=>{let{render:t,eventKeys:r}=(0,o.Ue)({plugins:e,injector:w}),a=t({parent:g.current,root:s,defaultValue:n,options:u??{},extensions:h});return y.current=a,r.forEach(t=>{a.$on(t,e=>{var n,r;let o=null==(n=b.current)?void 0:n[`on${(r=t).charAt(0).toUpperCase()+r.substring(1)}`];"function"==typeof o&&o(e)})}),"function"==typeof f&&f(a),m(a),()=>{a.$destroy()}},[]),(0,r.useEffect)(()=>{if(!!d&&!!O)O(d)},[d,O]),(0,r.useEffect)(()=>{y.current.$set(t.options??{})},[t.options]),r.createElement(r.Fragment,null,r.createElement("div",{...l,ref:g}),p)}function p(t,e){return function(n){let o=n.extensions,s=(0,r.useMemo)(()=>[...e??[],...o??[]],[o]);return r.createElement(f,{...n,extensions:s,plugins:t})}}},561700:function(t,e,n){"use strict";n.d(e,{A9:function(){return a},S9:function(){return u},oO:function(){return function t(e,n,o,s,a=!1){let{from:u,to:l}=e;if(u>=o||l<=n)return;s(e);let c=e.tree&&e.tree.prop(r.md.mounted);if(c&&c.overlay&&!a){let r=e.node.enter(c.overlay[0].from+u,1),h=e.firstChild();for(let f=0,p=u;;f++){let d=f<c.overlay.length?c.overlay[f]:null,m=d?d.from+u:l,g=Math.max(n,p),y=Math.min(o,m);if(g<y&&h)for(;e.from<y&&(t(e,g,y,s,a),!(e.to>=m)&&e.nextSibling()););if(!d||m>o)break;if((p=d.to+u)>n){let l=Math.max(n,d.from+u),c=Math.min(o,p);for(;e.from<c&&(t(e,Math.max(n,d.from+u),Math.min(o,p),s,!0),!(e.to>=c)&&e.nextSibling()););t(r.cursor(),l,c,s,a)}}h&&e.parent()}else if(e.firstChild()){do{if(e.to<=n)continue;if(e.from>=o)break;t(e,n,o,s,a)}while(e.nextSibling());e.parent()}}},ri:function(){return c},wA:function(){return l},xH:function(){return s}});var r=n(437254),o=n(249294);function s(t){return t.reduce((t,e)=>[...t,...e],[])}function a(t,e){return t.from===t.to?t.from>e.from&&t.from<e.to:t.from<=e.from&&t.to>e.from||t.to>=e.to&&t.from<e.to||t.from>=e.from&&t.to<=e.to}var u=class extends o.l9{text;className;constructor(t){super(),this.text=t.text,this.className=t.className}toDOM(){let t=document.createElement("span");return t.innerText=this.text??"",t.classList.add(this.className??""),t}eq(t){return this.text===t.text&&this.className===t.className}ignoreEvent(){return!1}},l={Flatten:t=>t.reduce((t,e)=>[...t,...e],[]),First:t=>t[0],Last:t=>t[t.length-1]};function c(t,e){let n=Symbol.for(t);return!globalThis[n]&&(globalThis[n]=e),globalThis[n]}},481655:function(t,e,n){"use strict";n.d(e,{DL:function(){return r}}),n(745304);let r=t=>{let{transform:e}=t;return{...e,x:0}}},49695:function(t,e,n){"use strict";var r=n(455069),o=n(805366);let s=(0,o.A)(function(t){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},t),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor"}))},"alert_circle");e.Z=s},938382:function(t,e,n){"use strict";var r=n(455069),o=n(805366);let s=(0,o.A)(function(t){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},t),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 7.6a1.5 1.5 0 0 1 2.12 0l5.66 5.65 5.66-5.65a1.5 1.5 0 1 1 2.12 2.12l-6.72 6.72a1.5 1.5 0 0 1-2.12 0L4.08 9.72a1.5 1.5 0 0 1 0-2.12Z",fill:"currentColor"}))},"chevron_down");e.Z=s},309673:function(t,e,n){"use strict";var r=n(455069),o=n(805366);let s=(0,o.A)(function(t){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},t),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.44 19.8a1.5 1.5 0 0 1 0-2.13l5.66-5.65-5.66-5.66a1.5 1.5 0 1 1 2.12-2.12l6.72 6.72a1.5 1.5 0 0 1 0 2.12L9.56 19.8a1.5 1.5 0 0 1-2.12 0Z",fill:"currentColor"}))},"chevron_right");e.Z=s},805797:function(t,e,n){"use strict";var r=n(455069),o=n(805366);let s=(0,o.A)(function(t){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},t),r.createElement("path",{d:"M2 12c0-.83.67-1.5 1.5-1.5h17a1.5 1.5 0 0 1 0 3h-17A1.5 1.5 0 0 1 2 12Z",fill:"currentColor"}))},"minus");e.Z=s},736290:function(t,e,n){"use strict";var r=n(455069),o=n(805366);let s=(0,o.A)(function(t){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},t),r.createElement("path",{d:"M20.5 13.5a1.5 1.5 0 0 0 0-3h-7v-7a1.5 1.5 0 0 0-3 0v7h-7a1.5 1.5 0 0 0 0 3h7v7a1.5 1.5 0 0 0 3 0v-7h7Z",fill:"currentColor"}))},"plus");e.Z=s},949926:function(t,e,n){"use strict";n.r(e),n.d(e,{isObjectFieldState:()=>P,onFormSubmitSuccess:()=>eX,onFieldReset:()=>nu,isObjectField:()=>D,isVoidField:()=>k,getValidateLocaleIOSCode:()=>R,onFormInitialValuesChange:()=>eB,onFormLoading:()=>eG,onFormSubmit:()=>eF,onFormMount:()=>eA,onFieldInit:()=>nc,isForm:()=>b,onFormValidateEnd:()=>eU,registerValidateLocale:()=>H,isGeneralField:()=>O,isFormState:()=>S,onFormSubmitValidateEnd:()=>eH,onFieldInitialValueChange:()=>e2,onFieldSubmitSuccess:()=>ni,onFieldSubmitValidateEnd:()=>nr,onFieldInputValueChange:()=>e3,onFieldValidateStart:()=>e5,onFormSubmitValidateSuccess:()=>e$,registerValidateFormats:()=>z,setValidateLanguage:()=>j,onFieldSubmitEnd:()=>ne,onFieldSubmitValidateStart:()=>nn,isDataFieldState:()=>M,onFieldSubmit:()=>e7,onFieldSubmitFailed:()=>no,onFormInit:()=>eT,onFormSubmitStart:()=>eL,onFieldValidateEnd:()=>e4,useEffectForm:()=>ep,onFieldValidateFailed:()=>e8,onFieldValidateSuccess:()=>e6,onFormValidateStart:()=>eW,onFormValidateSuccess:()=>ez,onFormGraphChange:()=>eY,isArrayField:()=>x,onFieldReact:()=>nh,onFieldChange:()=>nf,onFieldLoading:()=>nl,onFieldSubmitValidateSuccess:()=>ns,onFormSubmitValidateFailed:()=>eV,onFormReact:()=>eQ,onFormUnmount:()=>eM,onFormReset:()=>eN,getLocaleByPath:()=>$,onFieldSubmitStart:()=>nt,onFieldValidating:()=>e9,onFormInputChange:()=>eI,isVoidFieldState:()=>B,createForm:()=>eE,onFieldUnmount:()=>e0,createEffectContext:()=>eh,onFormSubmitFailed:()=>eR,onFormValuesChange:()=>eP,onFormSubmitValidateStart:()=>ej,registerValidateRules:()=>W,onFieldMount:()=>eZ,isQuery:()=>I,onFieldValueChange:()=>e1,isDataField:()=>A,onFormSubmitEnd:()=>e_,LifeCycleTypes:()=>f,onFormValidateFailed:()=>eq,createEffectHook:()=>ec,isField:()=>w,isArrayFieldState:()=>T,registerValidateMessageTemplateEngine:()=>q,isFieldState:()=>E,isGeneralFieldState:()=>C,onFieldSubmitValidateFailed:()=>na,FormPath:()=>p.Dm});var r,o,s,a,u,l,c,h,f,p=n("885906"),d=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this;this.buildListener=function(t){return function(e,n){for(var r=this,o=0;o<t.length;o++){var s=t[o];(0,p.LQ)(s)?s.call(this,e,n):(0,p.d8)(s)&&(0,p.LQ)(t[o+1])?(s===e.type&&t[o+1].call(this,e.payload,n),o++):(0,p.S6)(s,function(t,o){if((0,p.LQ)(t)&&(0,p.d8)(o)&&o===e.type)return t.call(r,e.payload,n),!1})}}},this.notify=function(t,e,r){(0,p.d8)(t)&&n.listener.call(r,{type:t,payload:e},r)},this.listener=this.buildListener(t)};var m=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),g=function(t){function e(e){var n=void 0===e?{}:e,r=n.lifecycles,o=n.context,s=t.call(this)||this;return s.lifecycles=[],s.outerLifecycles=new Map,s.buildLifeCycles=function(t){return t.reduce(function(t,e){return e instanceof d?t.concat(e):(0,p.H1)(e)?s.buildLifeCycles(e):("object"==typeof e&&(s.context=e),t)},[])},s.addLifeCycles=function(t,e){void 0===e&&(e=[]);var n=s.buildLifeCycles(e);n.length&&s.outerLifecycles.set(t,n)},s.hasLifeCycles=function(t){return s.outerLifecycles.has(t)},s.removeLifeCycles=function(t){s.outerLifecycles.delete(t)},s.setLifeCycles=function(t){void 0===t&&(t=[]),s.lifecycles=s.buildLifeCycles(t)},s.publish=function(t,e,n){(0,p.d8)(t)&&(s.lifecycles.forEach(function(r){r.notify(t,e,n||s.context)}),s.outerLifecycles.forEach(function(r){r.forEach(function(r){r.notify(t,e,n||s.context)})}),s.notify({type:t,payload:e}))},s.clear=function(){s.lifecycles=[],s.outerLifecycles.clear(),s.unsubscribe()},s.lifecycles=s.buildLifeCycles(r||[]),s.context=o,s}return m(e,t),e}(p.lT),y=n("710348"),b=function(t){return t instanceof eS},O=function(t){return t instanceof ea||t instanceof ex},w=function(t){return t instanceof ea},x=function(t){return t instanceof ev},D=function(t){return t instanceof eO},k=function(t){return t instanceof ex},S=function(t){return!(0,p.LQ)(null==t?void 0:t.initialize)&&(null==t?void 0:t.displayName)==="Form"},E=function(t){return!(0,p.LQ)(null==t?void 0:t.initialize)&&(null==t?void 0:t.displayName)==="Field"},C=function(t){var e;return!(0,p.LQ)(null==t?void 0:t.initialize)&&(null===(e=null==t?void 0:t.displayName)||void 0===e?void 0:e.indexOf("Field"))>-1},T=function(t){return!(0,p.LQ)(null==t?void 0:t.initialize)&&(null==t?void 0:t.displayName)==="ArrayField"},A=function(t){return w(t)||x(t)||D(t)},M=function(t){return E(t)||P(t)||T(t)},P=function(t){return!(0,p.LQ)(null==t?void 0:t.initialize)&&(null==t?void 0:t.displayName)==="ObjectField"},B=function(t){return!(0,p.LQ)(null==t?void 0:t.initialize)&&(null==t?void 0:t.displayName)==="VoidField"},I=function(t){return t&&t instanceof et},F=function(t){var e=this;this.getGraph=function(){var t={};return t[""]=e.form.getState(),(0,p.S6)(e.form.fields,function(e,n){t[n]=e.getState()}),t},this.setGraph=function(t){var n=e.form,r=function(t,n){var r=p.Dm.parse(t),o=r.segments[r.segments.length-1],s=r.parent();if(E(n))return e.form.createField({name:o,basePath:s});if(T(n))return e.form.createArrayField({name:o,basePath:s});if(P(n))return e.form.createObjectField({name:o,basePath:s});else return e.form.createVoidField({name:o,basePath:s})};(0,p.S6)(t,function(t,e){if(S(t))n.setState(t);else{var o=n.fields[e];o?o.setState(t):r(e,t).setState(t)}})},this.form=t,(0,y.Ou)(this,{setGraph:y.dC})},N=p.Dm.getIn,L=p.kk,_={locales:{messages:{},language:L.navigator&&(L.navigator.browserlanguage||L.navigator.language)||"en"},formats:{},rules:{},template:null},X=function(t){var e=_.locales.language;if(_.locales.messages[t])return t;var n=(0,p.vl)(t);return(0,p.S6)(_.locales.messages,function(t,r){var o=(0,p.vl)(r);if(o.indexOf(n)>-1||n.indexOf(o)>-1)return e=r,!1}),e},R=X,j=function(t){_.locales.language=t||"en"},$=function(t,e){return void 0===e&&(e=_.locales.language),N(_.locales.messages,"".concat(X(e),".").concat(t))},V=function(t){return $(t)||$("pattern")||$("pattern","en")},H=function(t){_.locales.messages=(0,p.TS)(_.locales.messages,t)},W=function(t){(0,p.S6)(t,function(t,e){(0,p.LQ)(t)&&(_.rules[e]=t)})},z=function(t){(0,p.S6)(t,function(t,e){((0,p.d8)(t)||t instanceof RegExp)&&(_.formats[e]=new RegExp(t))})},q=function(t){_.template=t},U=function(t,e){var n=t.message;if((0,p.d8)(n)){var r=_.template;(0,p.LQ)(r)&&(t.message=r(n,e)),t.message=t.message.replace(/\{\{\s*([\w.]+)\s*\}\}/g,function(t,n){return p.Dm.getIn(e,n)})}return t},Y=function(){return(Y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},G=function(t,e){var n,r,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},Q=function(t){if(!t)return{};var e={};return(0,p.d8)(t)?e.format=t:(0,p.LQ)(t)?e.validator=t:e=Object.assign(e,t),e},K=function(t){return t?((0,p.H1)(t)?t:[t]).map(function(t){return Q(t)}):[]},J={url:RegExp("^(?:(?:(?:https?|ftp|rtmp):)?//)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:22[0-3]|2[01]\\d|[1-9]\\d?|1\\d\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1?\\d{1,2})){2}(?:\\.(?:25[0-4]|2[0-4]\\d|1\\d\\d|[1-9]\\d?))|(?:(?:[a-z\\u00a1-\\uffff0-9_]-*)*[a-z\\u00a1-\\uffff0-9_]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9_]-*)*[a-z\\u00a1-\\uffff0-9_]+)*(?:\\.(?:[a-z\\u00a1-\\uffff_]{2,})))(?::\\d{2,5})?(?:/?\\S*)?$"),email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,ipv4:/^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$/,number:/^[+-]?\d+(\.\d+)?$/,integer:/^[+-]?\d+$/,qq:/^(\+?[1-9]\d*|0)$/,phone:/^\d{3}-\d{8}$|^\d{4}-\d{7}$|^\d{11}$/,idcard:/^\d{15}$|^\d{17}(\d|x|X)$/,money:/^([\u0024\u00A2\u00A3\u00A4\u20AC\u00A5\u20B1\u20B9\uFFE5]\s*)(\d+,?)+(\.\d+)?\s*$/,zh:/^[\u4e00-\u9fa5]+$/,date:/^[0-9]+[./-][0-9]+[./-][0-9]+\s*(?:[0-9]+\s*:\s*[0-9]+\s*:\s*[0-9]+)?$/,zip:/^[0-9]{6}$/},Z=function(){return(Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tt=function(t,e){var n,r,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},te=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},tn=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(!r&&(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},tr=function(t){var e;if((0,p.H1)(t)){for(var n=0;n<t.length;n++)if((0,p.JY)(t[n]))return!1;return!0}return(null==t?void 0:t.getCurrentContent)?!(null===(e=t.getCurrentContent())||void 0===e?void 0:e.hasText()):(0,p.xb)(t)},ti=function(t){return(0,p.d8)(t)?(0,p.ug)(t):t?t.length:0},to={format:function(t,e){if(tr(t))return"";if(e.format){var n,r=(n=e.format)?_.formats[n]:_.formats;if(r)return new RegExp(r).test(t)?"":e.message}return""},required:function(t,e){return!0!==e.required?"":tr(t)?e.message:""},max:function(t,e){return tr(t)?"":((0,p.e9)(t)?t:ti(t))>Number(e.max)?e.message:""},min:function(t,e){return tr(t)?"":((0,p.e9)(t)?t:ti(t))<Number(e.min)?e.message:""},exclusiveMaximum:function(t,e){return tr(t)?"":((0,p.e9)(t)?t:ti(t))>=Number(e.exclusiveMaximum)?e.message:""},exclusiveMinimum:function(t,e){return tr(t)?"":((0,p.e9)(t)?t:ti(t))<=Number(e.exclusiveMinimum)?e.message:""},len:function(t,e){return tr(t)?"":ti(t)!==Number(e.len)?e.message:""},pattern:function(t,e){return tr(t)?"":new RegExp(e.pattern).test(t)?"":e.message},validator:function(t,e,n,r){var o,s,a,u;return o=this,s=void 0,a=void 0,u=function(){var o;return tt(this,function(s){switch(s.label){case 0:if(!(0,p.LQ)(e.validator))return[3,2];return[4,Promise.resolve(e.validator(t,e,n,r))];case 1:if(o=s.sent(),(0,p.Bl)(o))return[2,o?"":e.message];return[2,o];case 2:throw Error("The rule's validator property must be a function.")}})},new(a||(a=Promise))(function(t,e){function n(t){try{l(u.next(t))}catch(t){e(t)}}function r(t){try{l(u.throw(t))}catch(t){e(t)}}function l(e){var o;e.done?t(e.value):((o=e.value)instanceof a?o:new a(function(t){t(o)})).then(n,r)}l((u=u.apply(o,s||[])).next())})},whitespace:function(t,e){return tr(t)?"":e.whitespace?/^\s+$/.test(t)?e.message:"":void 0},enum:function(t,e){return tr(t)?"":-1===(0,p._K)(e.enum).indexOf(t)?e.message:""},const:function(t,e){return tr(t)?"":e.const!==t?e.message:""},multipleOf:function(t,e){return tr(t)?"":Number(t)%Number(e.multipleOf)!=0?e.message:""},uniqueItems:function(t,e){return tr(t)?"":(t=(0,p._K)(t)).some(function(e,n){for(var r=0;r<t.length;r++)if(r!==n&&!(0,p.Xy)(t[r],e))return!1;return!0})?"":e.message},maxProperties:function(t,e){return tr(t)?"":Object.keys(t||{}).length<=Number(e.maxProperties)?"":e.message},minProperties:function(t,e){return tr(t)?"":Object.keys(t||{}).length>=Number(e.minProperties)?"":e.message}};o=to,s={maximum:"max",minimum:"min",maxItems:"max",minItems:"min",maxLength:"max",minLength:"min"},(0,p.S6)(s,function(t,e){o[e]=function(n,r){for(var s,a=[],u=2;u<arguments.length;u++)a[u-2]=arguments[u];return o[t].apply(o,tn([n,Z(Z({},r),((s={})[t]=r[e],s))],te(a),!1))}});var ts=function(t,e){var n,r,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};W(to),H({en:{pattern:"This field is invalid",invalid:"This field is invalid",required:"The field value is required",number:"The field value is not a number",integer:"The field value is not an integer number",url:"The field value is a invalid url",email:"The field value is not a email format",ipv6:"The field value is not a ipv6 format",ipv4:"The field value is not a ipv4 format",idcard:"The field value is not an idcard format",qq:"The field value is not a qq number format",phone:"The field value is not a phone number format",money:"The field value is not a currency format",zh:"The field value is not a chinese string",date:"The field value is not a valid date format",zip:"The field value is not a zip format",len:"The length or number of entries must be {{len}}",min:"The length or number of entries must be at least {{min}}",minLength:"The length or number of entries must be at least {{minLength}}",minItems:"The length or number of entries must be at least {{minItems}}",maximum:"The field value cannot be greater than {{maximum}}",exclusiveMaximum:"The field value must be less than {{exclusiveMaximum}}",minimum:"The field value cannot be less than {{minimum}}",exclusiveMinimum:"The field value must be greater than {{exclusiveMinimum}}",max:"The field length or number of entries must be at most {{max}}",maxLength:"The field length or number of entries must be at most {{maxLength}}",maxItems:"The field length or number of entries must be at most {{maxItems}}",whitespace:"This field value cannot be blank string.",enum:"The field value must be one of {{enum}}",const:"The field value must be equal to {{const}}",multipleOf:"The field value must be divisible by {{multipleOf}}",maxProperties:"The number of field properties cannot be greater than {{maxProperties}}",minProperties:"The number of field properties cannot be less than {{maxProperties}}",uniqueItems:"Array elements are not unique"},zh:{pattern:"该字段不是一个合法的字段",invalid:"该字段不是一个合法的字段",required:"该字段是必填字段",number:"该字段不是合法的数字",integer:"该字段不是合法的整型数字",url:"该字段不是合法的url",email:"该字段不是合法的邮箱格式",ipv6:"该字段不是合法的ipv6格式",ipv4:"该字段不是合法的ipv4格式",idcard:"该字段不是合法的身份证格式",qq:"该字段不符合QQ号格式",phone:"该字段不是有效的手机号",money:"该字段不是有效货币格式",zh:"该字段不是合法的中文字符串",date:"该字段不是合法的日期格式",zip:"该字段不是合法的邮编格式",len:"长度或条目数必须为{{len}}",min:"长度或条目数不能小于{{min}}",minLength:"长度或条目数不能小于{{minLength}}",minItems:"长度或条目数不能小于{{minItems}}",max:"长度或条目数不能大于{{max}}",maxLength:"长度或条目数不能大于{{maxLength}}",maxItems:"长度或条目数不能大于{{maxItems}}",maximum:"数值不能大于{{maximum}}",exclusiveMaximum:"数值必须小于{{exclusiveMaximum}}",minimum:"数值不能小于{{minimum}}",exclusiveMinimum:"数值必须大于{{exclusiveMinimum}}",whitespace:"不能为纯空白字符串",enum:"字段值必须为{{enum}}其中一个",const:"字段值必须等于{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段属性数量不能大于{{maxProperties}}",minProperties:"字段属性数量不能小于{{minProperties}}",uniqueItems:"数组元素不唯一"},"en-US":{pattern:"This field is invalid",invalid:"This field is invalid",required:"The field value is required",number:"The field value is not a number",integer:"The field value is not an integer number",url:"The field value is a invalid url",email:"The field value is not a email format",ipv6:"The field value is not a ipv6 format",ipv4:"The field value is not a ipv4 format",idcard:"The field value is not an idcard format",qq:"The field value is not a qq number format",phone:"The field value is not a phone number format",money:"The field value is not a currency format",zh:"The field value is not a chinese string",date:"The field value is not a valid date format",zip:"The field value is not a zip format",len:"The length or number of entries must be {{len}}",min:"The length or number of entries must be at least {{min}}",minLength:"The length or number of entries must be at least {{minLength}}",minItems:"The length or number of entries must be at least {{minItems}}",maximum:"The field value cannot be greater than {{maximum}}",exclusiveMaximum:"The field value must be less than {{exclusiveMaximum}}",minimum:"The field value cannot be less than {{minimum}}",exclusiveMinimum:"The field value must be greater than {{exclusiveMinimum}}",max:"The field length or number of entries must be at most {{max}}",maxLength:"The field length or number of entries must be at most {{maxLength}}",maxItems:"The field length or number of entries must be at most {{maxItems}}",whitespace:"This field value cannot be blank string.",enum:"The field value must be one of {{enum}}",const:"The field value must be equal to {{const}}",multipleOf:"The field value must be divisible by {{multipleOf}}",maxProperties:"The number of field properties cannot be greater than {{maxProperties}}",minProperties:"The number of field properties cannot be less than {{maxProperties}}",uniqueItems:"Array elements are not unique"},"zh-CN":{pattern:"该字段不是一个合法的字段",invalid:"该字段不是一个合法的字段",required:"该字段是必填字段",number:"该字段不是合法的数字",integer:"该字段不是合法的整型数字",url:"该字段不是合法的url",email:"该字段不是合法的邮箱格式",ipv6:"该字段不是合法的ipv6格式",ipv4:"该字段不是合法的ipv4格式",idcard:"该字段不是合法的身份证格式",qq:"该字段不符合QQ号格式",phone:"该字段不是有效的手机号",money:"该字段不是有效货币格式",zh:"该字段不是合法的中文字符串",date:"该字段不是合法的日期格式",zip:"该字段不是合法的邮编格式",len:"长度或条目数必须为{{len}}",min:"长度或条目数不能小于{{min}}",minLength:"长度或条目数不能小于{{minLength}}",minItems:"长度或条目数不能小于{{minItems}}",maxLength:"长度或条目数不能大于{{maxLength}}",maxItems:"长度或条目数不能大于{{maxItems}}",max:"长度或条目数不能大于{{max}}",maximum:"数值不能大于{{maximum}}",exclusiveMaximum:"数值必须小于{{exclusiveMaximum}}",minimum:"数值不能小于{{minimum}}",exclusiveMinimum:"数值必须大于{{exclusiveMinimum}}",whitespace:"不能为纯空白字符串",enum:"字段值必须为{{enum}}其中一个",const:"字段值必须等于{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段属性数量不能大于{{maxProperties}}",minProperties:"字段属性数量不能小于{{minProperties}}",uniqueItems:"数组元素不唯一"},"zh-TW":{pattern:"該字段不是一個合法的字段",invalid:"該字段不是一個合法的字段",required:"該字段是必填字段",number:"該字段不是合法的數字",integer:"該字段不是合法的整型數字",url:"該字段不是合法的url",email:"該字段不是合法的郵箱格式",ipv6:"該字段不是合法的ipv6格式",ipv4:"該字段不是合法的ipv4格式",idcard:"該字段不是合法的身份證格式",qq:"該字段不符合QQ號格式",phone:"該字段不是有效的手機號",money:"該字段不是有效貨幣格式",zh:"該字段不是合法的中文字符串",date:"該字段不是合法的日期格式",zip:"該字段不是合法的郵編格式",len:"長度或條目數必須為{{len}}",min:"長度或條目數不能小於{{min}}",minItems:"長度或條目數不能小於{{minItems}}",minLength:"長度或條目數不能小於{{minLength}}",max:"長度或條目數不能大於{{max}}",maxItems:"長度或條目數不能大於{{maxItems}}",maxLength:"長度或條目數不能大於{{maxLength}}",maximum:"數值不能大於{{maximum}}",exclusiveMaximum:"數值必須小於{{exclusiveMaximum}}",minimum:"數值不能小於{{minimum}}",exclusiveMinimum:"數值必須大於{{exclusiveMinimum}}",whitespace:"不能為純空白字符串",enum:"字段值必須為{{enum}}其中一個",const:"字段值必須等於{{const}}",multipleOf:"字段值不能被{{multipleOf}}整除",maxProperties:"字段屬性數量不能大於{{maxProperties}}",minProperties:"字段屬性數量不能小於{{minProperties}}",uniqueItems:"數組元素不唯一"},ja:{url:"このフィールドは無効なURLです",whitespace:"このフィールドを空の文字列にすることはできません。",zh:"このフィールドは中国語の文字列ではありません",zip:"このフィールドはzip形式ではありません",date:"このフィールドは有効な日付形式ではありません",email:"このフィールドはメール形式ではありません",exclusiveMaximum:"値は{{exclusiveMaximum}}未満である必要があります",exclusiveMinimum:"値は{{exclusiveMinimum}}より大きい必要があります",idcard:"このフィールドはIDカード形式ではありません",integer:"このフィールドは整数ではありません",ipv4:"このフィールドはIPv4形式ではありません",ipv6:"このフィールドはIPv6形式ではありません",len:"エントリの長さまたは数は{{len}}でなければなりません",max:"エントリの長さまたは数は最大{{max}}でなければなりません",maxItems:"エントリの長さまたは数は最大{{maxItems}}でなければなりません",maxLength:"エントリの長さまたは数は最大{{maxLength}}でなければなりません",maximum:"値は{{最大}}を超えることはできません",min:"エントリの長さまたは数は、少なくとも{{min}}である必要があります",minItems:"エントリの長さまたは数は、少なくとも{{minItems}}である必要があります",minLength:"エントリの長さまたは数は、少なくとも{{minLength}}である必要があります",minimum:"値は{{minimum}}以上にする必要があります",money:"このフィールドは通貨形式ではありません",number:"このフィールドは数値ではありません",pattern:"このフィールドはどのパターンとも一致しません",invalid:"このフィールドはどのパターンとも一致しません",phone:"このフィールドは電話番号の形式ではありません",qq:"このフィールドはqq数値形式ではありません",required:"この項目は必須です",enum:"フィールド値は{{enum}}のいずれかである必要があります",cons:"フィールド値は{{const}}と等しくなければなりません",multipleOf:"フィールド値を{{multipleOf}}で割り切れない",maxProperties:"フィールドプロパティの数は{{maxProperties}}を超えることはできません",minProperties:"フィールドプロパティの数は{{minProperties}}未満にすることはできません",uniqueItems:"配列要素は一意ではありません"}}),z(J);var ta=function(t,e,n){var r,o,s,a;return r=void 0,o=void 0,s=void 0,a=function(){var r,o,s,a,u,l;return ts(this,function(c){switch(c.label){case 0:var h,f;h=e,void 0===(f=n)&&(f={}),r=h?((0,p.H1)(h)?h:[h]).reduce(function(t,e){var n,r,o=Q(e),s=null!==(r=o.triggerType)&&void 0!==r?r:"onInput";if((null==f?void 0:f.triggerType)&&f.triggerType!==s)return t;return o?t.concat((void 0===(n=o)&&(n={}),(function(){var t=[];for(var e in"required"in n&&t.push("required"),n)"required"!==e&&"validator"!==e&&t.push(e);return"validator"in n&&t.push("validator"),t})().reduce(function(t,e){var r=(o=e)?_.rules[o]:_.rules;if(r){var o,s,a,u,l,c=(u=r,l=(s=n,a=e,s.format?s.message||V(s.format):s.message||V(a)),function(t,e){var r,o,s,a;return r=void 0,o=void 0,s=void 0,a=function(){var r,o,s;return G(this,function(a){var c,h,f;switch(a.label){case 0:;c=e,h=t,r=Y(Y(Y({},n),c),{value:h}),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,u(t,Y(Y({},n),{message:l}),r,function(t,e){var n;return null===(n=U({type:"error",message:t},Object.assign(r,e)))||void 0===n?void 0:n.message})];case 2:if(o=a.sent(),(0,p.Bl)(o)){if(!o)return[2,U({type:"error",message:l},r)]}else if(o){;if((f=o).type&&f.message)return[2,U(o,r)];return[2,U({type:"error",message:o},r)]}return[2,{type:"error",message:void 0}];case 3:return[2,{type:"error",message:(null==(s=a.sent())?void 0:s.message)||s}];case 4:return[2]}})},new(s||(s=Promise))(function(t,e){function n(t){try{l(a.next(t))}catch(t){e(t)}}function u(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):((r=e.value)instanceof s?r:new s(function(t){t(r)})).then(n,u)}l((a=a.apply(r,o||[])).next())})});return t.concat(c)}return t},[]))):t},[]):[],o={error:[],success:[],warning:[]},s=0,c.label=1;case 1:if(!(s<r.length))return[3,4];return[4,r[s](t,null==n?void 0:n.context)];case 2:if(u=(a=c.sent()).type,l=a.message,o[u]=o[u]||[],l&&(o[u].push(l),null==n?void 0:n.validateFirst))return[3,4];c.label=3;case 3:return s++,[3,1];case 4:return[2,o]}})},new(s||(s=Promise))(function(t,e){function n(t){try{l(a.next(t))}catch(t){e(t)}}function u(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):((r=e.value)instanceof s?r:new s(function(t){t(r)})).then(n,u)}l((a=a.apply(r,o||[])).next())})};(a=f||(f={})).ON_FORM_INIT="onFormInit",a.ON_FORM_MOUNT="onFormMount",a.ON_FORM_UNMOUNT="onFormUnmount",a.ON_FORM_INPUT_CHANGE="onFormInputChange",a.ON_FORM_VALUES_CHANGE="onFormValuesChange",a.ON_FORM_INITIAL_VALUES_CHANGE="onFormInitialValuesChange",a.ON_FORM_SUBMIT="onFormSubmit",a.ON_FORM_RESET="onFormReset",a.ON_FORM_SUBMIT_START="onFormSubmitStart",a.ON_FORM_SUBMITTING="onFormSubmitting",a.ON_FORM_SUBMIT_END="onFormSubmitEnd",a.ON_FORM_SUBMIT_VALIDATE_START="onFormSubmitValidateStart",a.ON_FORM_SUBMIT_VALIDATE_SUCCESS="onFormSubmitValidateSuccess",a.ON_FORM_SUBMIT_VALIDATE_FAILED="onFormSubmitValidateFailed",a.ON_FORM_SUBMIT_VALIDATE_END="onFormSubmitValidateEnd",a.ON_FORM_SUBMIT_SUCCESS="onFormSubmitSuccess",a.ON_FORM_SUBMIT_FAILED="onFormSubmitFailed",a.ON_FORM_VALIDATE_START="onFormValidateStart",a.ON_FORM_VALIDATING="onFormValidating",a.ON_FORM_VALIDATE_SUCCESS="onFormValidateSuccess",a.ON_FORM_VALIDATE_FAILED="onFormValidateFailed",a.ON_FORM_VALIDATE_END="onFormValidateEnd",a.ON_FORM_GRAPH_CHANGE="onFormGraphChange",a.ON_FORM_LOADING="onFormLoading",a.ON_FIELD_INIT="onFieldInit",a.ON_FIELD_INPUT_VALUE_CHANGE="onFieldInputValueChange",a.ON_FIELD_VALUE_CHANGE="onFieldValueChange",a.ON_FIELD_INITIAL_VALUE_CHANGE="onFieldInitialValueChange",a.ON_FIELD_SUBMIT="onFieldSubmit",a.ON_FIELD_SUBMIT_START="onFieldSubmitStart",a.ON_FIELD_SUBMITTING="onFieldSubmitting",a.ON_FIELD_SUBMIT_END="onFieldSubmitEnd",a.ON_FIELD_SUBMIT_VALIDATE_START="onFieldSubmitValidateStart",a.ON_FIELD_SUBMIT_VALIDATE_SUCCESS="onFieldSubmitValidateSuccess",a.ON_FIELD_SUBMIT_VALIDATE_FAILED="onFieldSubmitValidateFailed",a.ON_FIELD_SUBMIT_VALIDATE_END="onFieldSubmitValidateEnd",a.ON_FIELD_SUBMIT_SUCCESS="onFieldSubmitSuccess",a.ON_FIELD_SUBMIT_FAILED="onFieldSubmitFailed",a.ON_FIELD_VALIDATE_START="onFieldValidateStart",a.ON_FIELD_VALIDATING="onFieldValidating",a.ON_FIELD_VALIDATE_SUCCESS="onFieldValidateSuccess",a.ON_FIELD_VALIDATE_FAILED="onFieldValidateFailed",a.ON_FIELD_VALIDATE_END="onFieldValidateEnd",a.ON_FIELD_LOADING="onFieldLoading",a.ON_FIELD_RESET="onFieldReset",a.ON_FIELD_MOUNT="onFieldMount",a.ON_FIELD_UNMOUNT="onFieldUnmount";var tu={form:!0,parent:!0,props:!0,caches:!0,requests:!0,disposers:!0,heart:!0,graph:!0,indexes:!0,fields:!0,lifecycles:!0,componentType:!0,componentProps:!0,decoratorType:!0,decoratorProps:!0},tl={address:!0,path:!0,valid:!0,invalid:!0,selfValid:!0,selfInvalid:!0,errors:!0,successes:!0,warnings:!0,validateStatus:!0},tc="selfDisplay",th="selfPattern",tf={pattern:th,editable:th,readOnly:th,readPretty:th,disabled:th,display:tc,hidden:tc,visible:tc},tp={lifecycles:[],context:[],effectStart:!1,effectEnd:!1,initializing:!1},td=/^\.(\d+)/,tm=function(){return(tm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tg=function(t,e,n,r){return new(n||(n=Promise))(function(o,s){function a(t){try{l(r.next(t))}catch(t){s(t)}}function u(t){try{l(r.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?o(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(a,u)}l((r=r.apply(t,e||[])).next())})},ty=function(t,e){var n,r,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},tv=Object.prototype.hasOwnProperty,tb=function(t,e,n){b(t)?t.notify(e):t.notify(n)},tO=function(t,e){var n;if(void 0===e&&(e=!0),null==t?void 0:t.target){if("object"==typeof t.target&&("value"in t.target||"checked"in t.target))return!0;e&&(null===(n=t.stopPropagation)||void 0===n||n.call(t))}return!1},tw=function(t,e){var n=!1,r=e.segments,o=r.reduce(function(e,o,s){var a=e.concat(o),u=t[r.slice(0,s+1).join(".")];if(n)return!k(u)&&(n=!1),e;if(s>=r.length-1)return a;if(k(u))return x(t[r.slice(0,s).join(".")])&&(0,p.sI)(o)?(n=!0,a):e;return n=!1,a},[]);return new p.Dm(o)},tx=function(t,e){var n;return t.address=p.Dm.parse(e),t.path=tw((n=t).form.fields,n.address),t.form.indexes[t.path.toString()]=t.address.toString(),t},tD=function(t,e){e.forEach(function(e){var n=e.type,r=e.address,o=e.oldAddress,s=e.payload;"remove"===n?tk(t,r,!1):"update"===n&&(s&&(t[r]=s,t[o]===s&&(t[o]=void 0)),r&&s&&tx(s,r))})},tk=function(t,e,n){void 0===n&&(n=!0);var r=t[e];if(null==r||r.dispose(),A(r)&&n){var o=r.form,s=r.path;o.deleteValuesIn(s),o.deleteInitialValuesIn(s)}delete t[e]},tS=function(t,e,n){var r=function(e,n){e.length?t.setValuesIn(e,(0,p.d9)(n)):Object.assign(t.values,(0,p.d9)(n))},o=function(e,n){void 0===n&&(n=[]);var s=t.getValuesIn(n),a=t.query(n).take(),u=a&&!k(a);if(u&&"none"===a.display){a.caches.value=(0,p.d9)(e);return}if(t1(s,e))r(n,e);else{if((0,p.xb)(e)||tp.initializing)return;(0,p.Uk)(s)&&(0,p.Uk)(e)?(0,p.S6)(e,function(t,e){o(t,n.concat(e))}):a?u&&!a.selfModified&&r(n,e):t.initialized&&r(n,e)}};o(n,e)},tE=function(t,e){return t.feedbacks.filter(function(n){var r,o,s,a,u;if(!(null===(r=n.messages)||void 0===r?void 0:r.length))return!1;return a=e,u=tm(tm({},n),{address:null===(o=t.address)||void 0===o?void 0:o.toString(),path:null===(s=t.path)||void 0===s?void 0:s.toString()}),!!a&&!!u&&(!a.type||a.type===u.type)&&(!a.code||a.code===u.code)&&(!a.path||!u.path||!!p.Dm.parse(a.path).match(u.path))&&(!a.address||!u.address||!!p.Dm.parse(a.address).match(u.address))&&(!a.triggerType||a.triggerType===u.triggerType)&&!0})},tC=function(t,e){return t.feedbacks.length?tE(t,e).reduce(function(t,e){return(0,p.xb)(e.messages)?t:t.concat(e.messages)},[]):[]},tT=function(t,e){if(e)return(0,y.dC)(function(){var n,r;if(t.feedbacks.length){var o=tE(t,e);if(o.length){t.feedbacks=t.feedbacks.reduce(function(t,n){var r;return o.includes(n)?(null===(r=e.messages)||void 0===r?void 0:r.length)?(n.messages=e.messages,t.concat(n)):t:t.concat(n)},[]);return}(null===(r=e.messages)||void 0===r?void 0:r.length)&&(t.feedbacks=t.feedbacks.concat(e))}else{if(!(null===(n=e.messages)||void 0===n?void 0:n.length))return;t.feedbacks=[e]}})},tA=function(t,e){return void 0===e&&(e="onInput"),tg(void 0,void 0,void 0,function(){var n,r;return ty(this,function(o){switch(o.label){case 0:return[4,ta(t.value,t.validator,{triggerType:e,validateFirst:null!==(r=t.props.validateFirst)&&void 0!==r?r:t.form.props.validateFirst,context:{field:t,form:t.form}})];case 1:return n=o.sent(),(0,y.dC)(function(){(0,p.S6)(n,function(n,r){t.setFeedback({triggerType:e,type:r,code:(0,p.Ho)("validate-".concat(r)),messages:n})})}),[2,n]}})})},tM=function(t,e,n){if((0,p.JY)(n)){var r,o=K(t.validator),s=o.some(function(t){return e in t}),a=((r={})[e]=n,r);s?t.validator=o.map(function(t){return(0,p.Uk)(t)&&tv.call(t,e)&&(t[e]=n),t}):"required"===e?t.validator=[a].concat(o):t.validator=o.concat(a)}},tP=function(t,e){var n=tm({startIndex:0,deleteCount:0,insertCount:0},e),r=n.startIndex,o=n.deleteCount,s=n.insertCount,a=t.address.toString(),u=a.length,l=t.form.fields,c=[],h=s-o,d=function(t){var e,n=null===(e=t.substring(u).match(td))||void 0===e?void 0:e[1];return void 0!==n&&Number(n)>r+o-1},m=function(t){var e,n=null===(e=t.substring(u).match(td))||void 0===e?void 0:e[1];if(void 0===n)return!1;var o=Number(n);return o>=r&&o<r+s},g=function(t){var e,n=t.substring(0,u),s=t.substring(u),a=null===(e=s.match(td))||void 0===e?void 0:e[1];if(void 0===a)return!1;var c=Number(a);return c>r&&!l["".concat(n).concat(s.replace(/^\.\d+/,".".concat(c+o)))]||c===r},b=function(t){if(0===h)return t;var e,n=t.substring(0,u),r=t.substring(u),o=null===(e=r.match(td))||void 0===e?void 0:e[1];if(void 0===o)return t;var s=Number(o)+h;return"".concat(n).concat(r.replace(/^\.\d+/,".".concat(s)))};(0,y.dC)(function(){(0,p.S6)(l,function(t,e){var n;if(0===(n=e).indexOf(a)&&n.length>u){if(d(e)){var r=b(e);c.push({type:"update",address:r,oldAddress:e,payload:t})}(m(e)||g(e))&&c.push({type:"remove",address:e})}}),tD(l,c)}),t.form.notify(f.ON_FORM_GRAPH_CHANGE)},tB=function(t,e){var n=tm({fromIndex:0,toIndex:0},e),r=n.fromIndex,o=n.toIndex,s=t.address.toString(),a=t.form.fields,u=s.length,l=[],c=r<o,h=function(t){var e,n=null===(e=t.slice(s.length).match(td))||void 0===e?void 0:e[1];if(void 0===n)return!1;var a=Number(n);return c?a>r&&a<=o:a<r&&a>=o},d=function(t){var e,n=null===(e=t.substring(u).match(td))||void 0===e?void 0:e[1];return void 0!==n&&Number(n)===r},m=function(t){var e=t.substring(0,u),n=t.substring(u),s=Number(n.match(td)[1]);return s===r?s=o:s+=c?-1:1,"".concat(e).concat(n.replace(/^\.\d+/,".".concat(s)))};(0,y.dC)(function(){(0,p.S6)(a,function(t,e){var n;if(0===(n=e).indexOf(s)&&n.length>u&&(h(e)||d(e))){var r=m(e);l.push({type:"update",address:r,oldAddress:e,payload:t}),!a[r]&&l.push({type:"remove",address:e})}}),tD(a,l)}),t.form.notify(f.ON_FORM_GRAPH_CHANGE)},tI=function(t,e){var n=t.address.toString(),r=t.form.fields,o=function(t){var r,o=null===(r=t.slice(n.length).match(td))||void 0===r?void 0:r[1];return void 0!==o&&Number(o)>=e};(0,y.dC)(function(){(0,p.S6)(r,function(t,e){var r;if(0===(r=e).indexOf(n)&&r.length>n.length&&o(e))t.destroy()})})},tF=function(t,e){if(0!==e.length){var n=t.address.toString(),r=t.form.fields,o=function(t){var r,o=null===(r=t.slice(n.length).match(/^\.([^.]+)/))||void 0===r?void 0:r[1];return void 0!==o&&e.includes(o)};(0,y.dC)(function(){(0,p.S6)(r,function(t,e){var r;if(0===(r=e).indexOf(n)&&r.length>n.length&&o(e))t.destroy()})})}},tN=y.dC.scope.bound(function(t){for(var e=t.form,n=p.Dm.ensureIn(e,"requests.updates",[]),r=p.Dm.ensureIn(e,"requests.updateIndexes",{}),o=0;o<n.length;o++){var s=n[o],a=s.pattern,u=s.callbacks,l=!1;t.match(a)&&(u.forEach(function(e){t.setState(e)}),!a.isWildMatchPattern&&!a.isMatchPattern&&(n.splice(o--,1),l=!0)),l?delete r[a.toString()]:r[a.toString()]=o}}),tL=function(t,e,n){var r=p.Dm.ensureIn(t,"requests.updates",[]),o=p.Dm.ensureIn(t,"requests.updateIndexes",{}),s=e.toString(),a=o[s];(0,p.JY)(a)?r[a]&&!r[a].callbacks.some(function(t){return t.toString()===n.toString()&&t===n})&&r[a].callbacks.push(n):(o[s]=r.length,r.push({pattern:e,callbacks:[n]}))},t_=function(t,e){if(t){if((0,p.LQ)(e))e(t);else for(var n in e){if(!tv.call(e,n)||tl[n]||tu[n])continue;var r=tf[n];if(!(r&&tv.call(e,r))||!!(0,p.JY)(e[r])){var o=e[n];!(0,p.LQ)(o)&&(t[n]=o)}}return t}},tX=function(t,e){if((0,p.LQ)(e))return e(t);var n={};for(var r in t){if(!!tv.call(t,r)&&!tu[r]){if("address"===r||"path"===r){n[r]=t[r].toString();continue}var o=t[r];!(0,p.LQ)(o)&&(n[r]=(0,y.ZN)(o))}}return n},tR=function(t){var e,n=null===(e=t.address)||void 0===e?void 0:e.toString();return function(t){var e=t.address;return e===n||0===e.indexOf(n+".")}},tj=function(t){return y.dC.bound(function(e){return t_(t,e)})},t$=function(t){return function(e){return tX(t,e)}},tV=function(t,e){(!Array.isArray(e.object)||"length"!==e.key)&&((0,y.r3)(t.initialValues,e.object)||t.initialValues===e.value)&&(("add"===e.type||"set"===e.type)&&tS(t,e.path.slice(1),e.value),t.initialized&&t.notify(f.ON_FORM_INITIAL_VALUES_CHANGE))},tH=function(t,e){(!Array.isArray(e.object)||"length"!==e.key)&&((0,y.r3)(t.values,e.object)||t.values===e.value)&&t.initialized&&t.notify(f.ON_FORM_VALUES_CHANGE)},tW=function(t,e){clearTimeout(t.requests.validate),e?(t.requests.validate=setTimeout(function(){(0,y.dC)(function(){t.validating=e,tb(t,f.ON_FORM_VALIDATING,f.ON_FIELD_VALIDATING)})},100),tb(t,f.ON_FORM_VALIDATE_START,f.ON_FIELD_VALIDATE_START)):(t.validating!==e&&(t.validating=e),tb(t,f.ON_FORM_VALIDATE_END,f.ON_FIELD_VALIDATE_END))},tz=function(t,e){clearTimeout(t.requests.submit),e?(t.requests.submit=setTimeout(function(){(0,y.dC)(function(){t.submitting=e,tb(t,f.ON_FORM_SUBMITTING,f.ON_FIELD_SUBMITTING)})},100),tb(t,f.ON_FORM_SUBMIT_START,f.ON_FIELD_SUBMIT_START)):(t.submitting!==e&&(t.submitting=e),tb(t,f.ON_FORM_SUBMIT_END,f.ON_FIELD_SUBMIT_END))},tq=function(t,e){clearTimeout(t.requests.loading),e?t.requests.loading=setTimeout(function(){(0,y.dC)(function(){t.loading=e,tb(t,f.ON_FORM_LOADING,f.ON_FIELD_LOADING)})},100):t.loading!==e&&(t.loading=e)},tU=function(t,e){return tg(void 0,void 0,void 0,function(){var n,r,o,s;return ty(this,function(r){switch(r.label){case 0:n=function(t){return b(t)?(0,y.ZN)(t.values):(0,y.ZN)(t.value)},t.setSubmitting(!0),r.label=1;case 1:return r.trys.push([1,3,,4]),tb(t,f.ON_FORM_SUBMIT_VALIDATE_START,f.ON_FIELD_SUBMIT_VALIDATE_START),[4,t.validate()];case 2:return r.sent(),tb(t,f.ON_FORM_SUBMIT_VALIDATE_SUCCESS,f.ON_FIELD_SUBMIT_VALIDATE_SUCCESS),[3,4];case 3:return r.sent(),tb(t,f.ON_FORM_SUBMIT_VALIDATE_FAILED,f.ON_FIELD_SUBMIT_VALIDATE_FAILED),[3,4];case 4:tb(t,f.ON_FORM_SUBMIT_VALIDATE_END,f.ON_FIELD_SUBMIT_VALIDATE_END),r.label=5;case 5:if(r.trys.push([5,9,,10]),t.invalid)throw t.errors;if(!(0,p.LQ)(e))return[3,7];return[4,e(n(t))];case 6:return o=r.sent(),[3,8];case 7:o=n(t),r.label=8;case 8:return tb(t,f.ON_FORM_SUBMIT_SUCCESS,f.ON_FIELD_SUBMIT_SUCCESS),[3,10];case 9:throw s=r.sent(),t.setSubmitting(!1),tb(t,f.ON_FORM_SUBMIT_FAILED,f.ON_FIELD_SUBMIT_FAILED),tb(t,f.ON_FORM_SUBMIT,f.ON_FIELD_SUBMIT),s;case 10:return t.setSubmitting(!1),tb(t,f.ON_FORM_SUBMIT,f.ON_FIELD_SUBMIT),[2,o]}})})},tY=function(t){var e,n,r,o,s=null!==(n=null!==(e=t.props.validatePattern)&&void 0!==e?e:t.form.props.validatePattern)&&void 0!==n?n:["editable"],a=null!==(o=null!==(r=t.props.validateDisplay)&&void 0!==r?r:t.form.props.validateDisplay)&&void 0!==o?o:["visible"];return s.includes(t.pattern)&&a.includes(t.display)},tG=function(t,e,n){return tg(void 0,void 0,void 0,function(){var r;return ty(this,function(o){switch(o.label){case 0:if(b(t))t.setValidating(!0);else if(!tY(t))return[2];return r=[],t.query(e).forEach(function(e){!k(e)&&r.push(tK(e,n,e===t))}),[4,Promise.all(r)];case 1:if(o.sent(),b(t)&&t.setValidating(!1),t.invalid)throw tb(t,f.ON_FORM_VALIDATE_FAILED,f.ON_FIELD_VALIDATE_FAILED),t.errors;return tb(t,f.ON_FORM_VALIDATE_SUCCESS,f.ON_FIELD_VALIDATE_SUCCESS),[2]}})})},tQ=function(t,e,n){return tg(void 0,void 0,void 0,function(){var r;return ty(this,function(o){switch(o.label){case 0:return r=[],t.query(e).forEach(function(e){!k(e)&&r.push(tJ(e,n,t===e))}),b(t)&&(t.modified=!1),tb(t,f.ON_FORM_RESET,f.ON_FIELD_RESET),[4,Promise.all(r)];case 1:return o.sent(),[2]}})})},tK=y.dC.bound(function(t,e,n){return void 0===n&&(n=!1),tg(void 0,void 0,void 0,function(){var r,o,s,a,u,l,c;return ty(this,function(h){switch(h.label){case 0:if(r=function(){tW(t,!0)},o=function(){tW(t,!1),!n&&(t.selfValid?t.notify(f.ON_FIELD_VALIDATE_SUCCESS):t.notify(f.ON_FIELD_VALIDATE_FAILED))},!tY(t))return[2,{}];if(r(),e)return[3,5];s=K(t.validator).reduce(function(t,e){return t.indexOf(e.triggerType)>-1?t:t.concat(e.triggerType)},[]),a={},u=0,h.label=1;case 1:if(!(u<s.length))return[3,4];return[4,tA(t,s[u])];case 2:l=h.sent(),(0,p.S6)(l,function(t,e){a[e]=a[e]||[],a[e]=a[e].concat(t)}),h.label=3;case 3:return u++,[3,1];case 4:return o(),[2,a];case 5:return[4,tA(t,e)];case 6:return c=h.sent(),o(),[2,c]}})})}),tJ=y.dC.bound(function(t,e,n){return void 0===n&&(n=!1),tg(void 0,void 0,void 0,function(){var r,o;return ty(this,function(s){switch(s.label){case 0:var a;if(r=x(a=t)?[]:D(a)?{}:void 0,t.modified=!1,t.selfModified=!1,t.visited=!1,t.feedbacks=[],t.inputValue=r,t.inputValues=[],t.caches={},!(0,p.G7)(t.value)&&((null==e?void 0:e.forceClear)?t.value=r:(o=t.initialValue,t.value=(0,y.ZN)((0,p.G7)(o)?r:o))),!n&&t.notify(f.ON_FIELD_RESET),!(null==e?void 0:e.validate))return[3,2];return[4,tK(t)];case 1:return[2,s.sent()];case 2:return[2]}})})}),tZ=function(t){if(!t.selfModified){t.selfModified=!0,t.modified=!0;for(var e=t.parent;e;){if(A(e)){if(e.modified)return;e.modified=!0}e=e.parent}t.form.modified=!0}},t0=function(t){return(0,y.bi)(t)?t:(0,p.d9)(t||{})},t1=function(t,e){var n=!(0,p.G7)(t),r=!(0,p.G7)(e);if(!n)return r;if(typeof t==typeof e&&(""===t||0===t))return!1;var o=null!==t&&(0,p.xb)(t,!0),s=null!==e&&(0,p.xb)(e,!0);return!!o&&!s},t2=function(t){var e=(0,p._K)(t.props.reactions);t.form.addEffects(t,function(){e.forEach(function(e){(0,p.LQ)(e)&&t.disposers.push((0,y.EH)(y.dC.scope.bound(function(){!t.destroyed&&e(t)})))})})},t3=function(t,e){return(0,y.U5)(t,y.rg.bound(e))},t5=function(){tp.initializing=!0},t4=function(){y.dC.endpoint(function(){tp.initializing=!1})},t9=function(t,e){if(void 0===e&&(e=t.index),e>-1){for(var n=t.parent;n;){if(x(n))return n;if(n===t.form)return;n=n.parent}}},t8=function(t){for(var e=t.parent;e;){if(x(e))return;if(D(e))return e;if(e===t.form)return;e=e.parent}},t6=function(t,e){if(t)return(0,p.LQ)(e)?e(t,t.address):t},t7=function(t,e){var n=e.toString(),r=t.indexes[n],o=t.fields[n],s=t.fields[r];return o?n:s?r:void 0},et=function(){function t(t){var e=this;if(this.addresses=[],this.pattern=p.Dm.parse(t.pattern,t.base),this.form=t.form,this.pattern.isMatchPattern)(0,p.S6)(this.form.fields,function(t,n){if(!t){delete e.form.fields[n];return}t.match(e.pattern)&&e.addresses.push(n)});else{var n=t7(this.form,this.pattern.haveRelativePattern?tw(t.form.fields,this.pattern):this.pattern);n&&(this.addresses=[n])}}return t.prototype.take=function(t){return t6(this.form.fields[this.addresses[0]],t)},t.prototype.map=function(t){var e=this;return this.addresses.map(function(n){return t6(e.form.fields[n],t)})},t.prototype.forEach=function(t){var e=this;return this.addresses.forEach(function(n){return t6(e.form.fields[n],t)})},t.prototype.reduce=function(t,e){var n=this;return this.addresses.reduce(function(e,r){return t6(n.form.fields[r],function(n,r){return t(e,n,r)})},e)},t.prototype.get=function(t){var e=this.take();if(e)return e[t]},t.prototype.getIn=function(t){return p.Dm.getIn(this.take(),t)},t.prototype.value=function(){return this.get("value")},t.prototype.initialValue=function(){return this.get("initialValue")},t}(),ee=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},en=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(!r&&(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},er=function(){function t(){var t=this;this.disposers=[],this.actions={},this.setTitle=function(e){t.title=e},this.setDescription=function(e){t.description=e},this.setDisplay=function(e){t.display=e},this.setPattern=function(e){t.pattern=e},this.setComponent=function(e,n){e&&(t.componentType=e),n&&(t.componentProps=t.componentProps||{},Object.assign(t.componentProps,n))},this.setComponentProps=function(e){e&&(t.componentProps=t.componentProps||{},Object.assign(t.componentProps,e))},this.setDecorator=function(e,n){e&&(t.decoratorType=e),n&&(t.decoratorProps=t.decoratorProps||{},Object.assign(t.decoratorProps,n))},this.setDecoratorProps=function(e){e&&(t.decoratorProps=t.decoratorProps||{},Object.assign(t.decoratorProps,e))},this.setData=function(e){t.data=e},this.setContent=function(e){t.content=e},this.onInit=function(){t.initialized=!0,tN(t),t.notify(f.ON_FIELD_INIT)},this.onMount=function(){t.mounted=!0,t.unmounted=!1,t.notify(f.ON_FIELD_MOUNT)},this.onUnmount=function(){t.mounted=!1,t.unmounted=!0,t.notify(f.ON_FIELD_UNMOUNT)},this.query=function(e){return new et({pattern:e,base:t.address,form:t.form})},this.notify=function(e,n){return t.form.notify(e,null!=n?n:t)},this.dispose=function(){t.disposers.forEach(function(t){t()}),t.form.removeEffects(t)},this.destroy=function(e){void 0===e&&(e=!0),tk(t.form.fields,t.address.toString(),e)},this.match=function(e){return p.Dm.parse(e).matchAliasGroup(t.address,t.path)},this.inject=function(e){(0,p.S6)(e,function(e,n){(0,p.LQ)(e)&&(t.actions[n]=e)})},this.invoke=function(e){for(var n,r,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return null===(r=(n=t.actions)[e])||void 0===r?void 0:r.call.apply(r,en([n],ee(o),!1))}}return t.prototype.locate=function(t){this.form.fields[t.toString()]=this,tx(this,t)},Object.defineProperty(t.prototype,"indexes",{get:function(){return this.path.transform(/^\d+$/,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.map(function(t){return Number(t)})})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var t;return null!==(t=this.indexes[this.indexes.length-1])&&void 0!==t?t:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"records",{get:function(){var t=t9(this);return null==t?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"record",{get:function(){var t,e=t8(this);if(e)return e.value;var n=this.index,r=t9(this,n);return r?null===(t=r.value)||void 0===t?void 0:t[n]:this.form.values},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return[this.componentType,this.componentProps]},set:function(t){var e=(0,p._K)(t);this.componentType=e[0],this.componentProps=e[1]||{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"decorator",{get:function(){return[this.decoratorType,this.decoratorProps]},set:function(t){var e=(0,p._K)(t);this.decoratorType=e[0],this.decoratorProps=e[1]||{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){for(var t=this.address.parent(),e=t.toString();!this.form.fields[e];)if(!(e=(t=t.parent()).toString()))return;return this.form.fields[e]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"display",{get:function(){var t,e=null===(t=this.parent)||void 0===t?void 0:t.display;if(e&&"visible"!==e)return this.selfDisplay&&"visible"!==this.selfDisplay?this.selfDisplay:e;return(0,p.JY)(this.selfDisplay)?this.selfDisplay:e||this.form.display||"visible"},set:function(t){this.selfDisplay=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function(){var t,e=(null===(t=this.parent)||void 0===t?void 0:t.pattern)||this.form.pattern||"editable",n=this.selfPattern;if((0,p.JY)(n))return"readPretty"===e&&"editable"!==n?e:n;return e},set:function(t){this.selfPattern=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editable",{get:function(){return"editable"===this.pattern},set:function(t){(0,p.JY)(t)&&(t?this.pattern="editable":this.pattern="readPretty")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"disabled"===this.pattern},set:function(t){(0,p.JY)(t)&&(t?this.pattern="disabled":this.pattern="editable")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return"readOnly"===this.pattern},set:function(t){(0,p.JY)(t)&&(t?this.pattern="readOnly":this.pattern="editable")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readPretty",{get:function(){return"readPretty"===this.pattern},set:function(t){(0,p.JY)(t)&&(t?this.pattern="readPretty":this.pattern="editable")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hidden",{get:function(){return"hidden"===this.display},set:function(t){(0,p.JY)(t)&&(t?this.display="hidden":this.display="visible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return"visible"===this.display},set:function(t){(0,p.JY)(t)&&(t?this.display="visible":this.display="none")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return!this.form.fields[this.address.toString()]},enumerable:!1,configurable:!0}),t}();var ei=(u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),eo=function(t,e,n,r){return new(n||(n=Promise))(function(o,s){function a(t){try{l(r.next(t))}catch(t){s(t)}}function u(t){try{l(r.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?o(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(a,u)}l((r=r.apply(t,e||[])).next())})},es=function(t,e){var n,r,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},ea=function(t){function e(e,n,r,o){var s=t.call(this)||this;return s.displayName="Field",s.caches={},s.requests={},s.setDataSource=function(t){s.dataSource=t},s.setFeedback=function(t){tT(s,t)},s.setSelfErrors=function(t){s.selfErrors=t},s.setSelfWarnings=function(t){s.selfWarnings=t},s.setSelfSuccesses=function(t){s.selfSuccesses=t},s.setValidator=function(t){s.validator=t},s.setValidatorRule=function(t,e){tM(s,t,e)},s.setRequired=function(t){s.required=t},s.setValue=function(t){if(!s.destroyed){if(!s.initialized){var e,n;if("none"===s.display){s.caches.value=t;return}if(t=t1(e=t,n=s.initialValue)?(0,p.d9)(n):e,!t1(s.value,t)&&!s.designable)return}s.form.setValuesIn(s.path,t)}},s.setInitialValue=function(t){if(!s.destroyed){if(!!s.initialized||!!t1(s.initialValue,t)||!!s.designable)s.form.setInitialValuesIn(s.path,t)}},s.setLoading=function(t){tq(s,t)},s.setValidating=function(t){tW(s,t)},s.setSubmitting=function(t){tz(s,t)},s.setState=tj(s),s.getState=t$(s),s.onInput=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return eo(s,void 0,void 0,function(){var e,n,r,o;return es(this,function(s){switch(s.label){case 0:if(e=function(t){var e,n;return!tO(t[0])||!("currentTarget"in t[0])||(null===(e=t[0])||void 0===e?void 0:e.target)===(null===(n=t[0])||void 0===n?void 0:n.currentTarget)},n=function(t){var e;if((null===(e=t[0])||void 0===e?void 0:e.target)&&!tO(t[0]))return t;return t.map(function(t){if(null==t?void 0:t.target)return(0,p.JY)(t.target.value)?t.target.value:(0,p.JY)(t.target.checked)?t.target.checked:void 0;return t})},!e(t))return[2];return o=(r=n(t))[0],this.caches.inputting=!0,this.inputValue=o,this.inputValues=r,this.value=o,this.modify(),this.notify(f.ON_FIELD_INPUT_VALUE_CHANGE),this.notify(f.ON_FORM_INPUT_CHANGE,this.form),[4,tK(this,"onInput")];case 1:return s.sent(),this.caches.inputting=!1,[2]}})})},s.onFocus=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return eo(s,void 0,void 0,function(){var e;return es(this,function(n){switch(n.label){case 0:if((null===(e=t[0])||void 0===e?void 0:e.target)&&!tO(t[0],!1))return[2];return this.active=!0,this.visited=!0,[4,tK(this,"onFocus")];case 1:return n.sent(),[2]}})})},s.onBlur=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return eo(s,void 0,void 0,function(){var e;return es(this,function(n){switch(n.label){case 0:if((null===(e=t[0])||void 0===e?void 0:e.target)&&!tO(t[0],!1))return[2];return this.active=!1,[4,tK(this,"onBlur")];case 1:return n.sent(),[2]}})})},s.validate=function(t){return tG(s,"".concat(s.address,".**"),t)},s.submit=function(t){return tU(s,t)},s.reset=function(t){return tQ(s,"".concat(s.address,".**"),t)},s.queryFeedbacks=function(t){return tE(s,t)},s.modify=function(){return tZ(s)},s.form=r,s.props=n,s.designable=o,t5(),s.locate(e),s.initialize(),s.makeObservable(),s.makeReactive(),s.onInit(),t4(),s}return ei(e,t),e.prototype.initialize=function(){this.initialized=!1,this.loading=!1,this.validating=!1,this.submitting=!1,this.selfModified=!1,this.active=!1,this.visited=!1,this.mounted=!1,this.unmounted=!1,this.inputValues=[],this.inputValue=null,this.feedbacks=[],this.title=this.props.title,this.description=this.props.description,this.display=this.props.display,this.pattern=this.props.pattern,this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.hidden=this.props.hidden,this.dataSource=this.props.dataSource,this.validator=this.props.validator,this.required=this.props.required,this.content=this.props.content,this.initialValue=this.props.initialValue,this.value=this.props.value,this.data=this.props.data,this.decorator=(0,p._K)(this.props.decorator),this.component=(0,p._K)(this.props.component)},e.prototype.makeObservable=function(){!this.designable&&(0,y.Ou)(this,{path:y.LO.ref,title:y.LO.ref,description:y.LO.ref,dataSource:y.LO.ref,selfDisplay:y.LO.ref,selfPattern:y.LO.ref,loading:y.LO.ref,validating:y.LO.ref,submitting:y.LO.ref,selfModified:y.LO.ref,modified:y.LO.ref,active:y.LO.ref,visited:y.LO.ref,initialized:y.LO.ref,mounted:y.LO.ref,unmounted:y.LO.ref,inputValue:y.LO.ref,inputValues:y.LO.ref,decoratorType:y.LO.ref,componentType:y.LO.ref,content:y.LO.ref,feedbacks:y.LO.ref,decoratorProps:y.LO,componentProps:y.LO,validator:y.LO.shallow,data:y.LO.shallow,component:y.LO.computed,decorator:y.LO.computed,errors:y.LO.computed,warnings:y.LO.computed,successes:y.LO.computed,valid:y.LO.computed,invalid:y.LO.computed,selfErrors:y.LO.computed,selfWarnings:y.LO.computed,selfSuccesses:y.LO.computed,selfValid:y.LO.computed,selfInvalid:y.LO.computed,validateStatus:y.LO.computed,value:y.LO.computed,initialValue:y.LO.computed,display:y.LO.computed,pattern:y.LO.computed,required:y.LO.computed,hidden:y.LO.computed,visible:y.LO.computed,disabled:y.LO.computed,readOnly:y.LO.computed,readPretty:y.LO.computed,editable:y.LO.computed,indexes:y.LO.computed,setDisplay:y.aD,setTitle:y.aD,setDescription:y.aD,setDataSource:y.aD,setValue:y.aD,setPattern:y.aD,setInitialValue:y.aD,setLoading:y.aD,setValidating:y.aD,setFeedback:y.aD,setSelfErrors:y.aD,setSelfWarnings:y.aD,setSelfSuccesses:y.aD,setValidator:y.aD,setRequired:y.aD,setComponent:y.aD,setComponentProps:y.aD,setDecorator:y.aD,setDecoratorProps:y.aD,setData:y.aD,setContent:y.aD,validate:y.aD,reset:y.aD,onInit:y.dC,onInput:y.dC,onMount:y.dC,onUnmount:y.dC,onFocus:y.dC,onBlur:y.dC})},e.prototype.makeReactive=function(){var t=this;!this.designable&&(this.disposers.push(t3(function(){return t.value},function(e){t.notify(f.ON_FIELD_VALUE_CHANGE),(0,p.JY)(e)&&(t.selfModified&&!t.caches.inputting&&tK(t),!(0,p.xb)(e)&&"none"===t.display&&(t.caches.value=(0,y.ZN)(e),t.form.deleteValuesIn(t.path)))}),t3(function(){return t.initialValue},function(){t.notify(f.ON_FIELD_INITIAL_VALUE_CHANGE)}),t3(function(){return t.display},function(e){var n,r=t.value;"none"!==e?void 0===r&&void 0!==t.caches.value&&(t.setValue(t.caches.value),t.caches.value=void 0):(t.caches.value=null!==(n=(0,y.ZN)(r))&&void 0!==n?n:(0,y.ZN)(t.initialValue),t.form.deleteValuesIn(t.path)),("none"===e||"hidden"===e)&&t.setFeedback({type:"error",messages:[]})}),t3(function(){return t.pattern},function(e){"editable"!==e&&t.setFeedback({type:"error",messages:[]})})),t2(this))},Object.defineProperty(e.prototype,"selfErrors",{get:function(){return tC(this,{type:"error"})},set:function(t){this.setFeedback({type:"error",code:"EffectError",messages:t})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.form.errors.filter(tR(this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfWarnings",{get:function(){return tC(this,{type:"warning"})},set:function(t){this.setFeedback({type:"warning",code:"EffectWarning",messages:t})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"warnings",{get:function(){return this.form.warnings.filter(tR(this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSuccesses",{get:function(){return tC(this,{type:"success"})},set:function(t){this.setFeedback({type:"success",code:"EffectSuccess",messages:t})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"successes",{get:function(){return this.form.successes.filter(tR(this))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfValid",{get:function(){return!this.selfErrors.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return!this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfInvalid",{get:function(){return!this.selfValid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return!this.valid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.form.getValuesIn(this.path)},set:function(t){this.setValue(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialValue",{get:function(){return this.form.getInitialValuesIn(this.path)},set:function(t){this.setInitialValue(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return((0,p.H1)(this.validator)?this.validator:K(this.validator)).some(function(t){return!!(null==t?void 0:t.required)})},set:function(t){this.required!==t&&this.setValidatorRule("required",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validateStatus",{get:function(){return this.validating?"validating":this.selfInvalid?"error":this.selfWarnings.length?"warning":this.selfSuccesses.length?"success":void 0},enumerable:!1,configurable:!0}),e}(er),eu=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},el=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(!r&&(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},ec=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(tp.effectStart)tp.lifecycles.push(new d(t,function(t,r){(0,p.LQ)(e)&&e.apply(void 0,el([t,r],eu(tp.context),!1)).apply(void 0,el([],eu(n),!1))}));else throw Error("Effect hooks cannot be used in asynchronous function body")}},eh=function(t){var e;return{provide:function(n){if(tp.effectStart)e=tp.context.length,tp.context[e]=(0,p.JY)(n)?n:t;else throw Error("Provide method cannot be used in asynchronous function body")},consume:function(){if(!tp.effectStart)throw Error("Consume method cannot be used in asynchronous function body");return tp.context[e]}}},ef=eh(),ep=ef.consume,ed=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return tp.lifecycles=[],tp.context=[],tp.effectStart=!0,tp.effectEnd=!1,b(t)&&ef.provide(t),e.forEach(function(e){(0,p.LQ)(e)&&e(t)}),tp.context=[],tp.effectStart=!1,tp.effectEnd=!0,tp.lifecycles};var em=(l=function(t,e){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),eg=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},ey=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(!r&&(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},ev=function(t){function e(e,n,r,o){var s=t.call(this,e,n,r,o)||this;return s.displayName="ArrayField",s.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,y.aD)(function(){var e;return!(0,p.H1)(s.value)&&(s.value=[]),(e=s.value).push.apply(e,ey([],eg(t),!1)),s.onInput(s.value)})},s.pop=function(){if((0,p.H1)(s.value))return(0,y.aD)(function(){var t=s.value.length-1;return tP(s,{startIndex:t,deleteCount:1}),s.value.pop(),s.onInput(s.value)})},s.insert=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return(0,y.aD)(function(){var n;if(!(0,p.H1)(s.value)&&(s.value=[]),0!==e.length)return tP(s,{startIndex:t,insertCount:e.length}),(n=s.value).splice.apply(n,ey([t,0],eg(e),!1)),s.onInput(s.value)})},s.remove=function(t){if((0,p.H1)(s.value))return(0,y.aD)(function(){return tP(s,{startIndex:t,deleteCount:1}),s.value.splice(t,1),s.onInput(s.value)})},s.shift=function(){if((0,p.H1)(s.value))return(0,y.aD)(function(){return s.value.shift(),s.onInput(s.value)})},s.unshift=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,y.aD)(function(){var e;return!(0,p.H1)(s.value)&&(s.value=[]),tP(s,{startIndex:0,insertCount:t.length}),(e=s.value).unshift.apply(e,ey([],eg(t),!1)),s.onInput(s.value)})},s.move=function(t,e){if(!!(0,p.H1)(s.value)){if(t!==e)return(0,y.aD)(function(){return(0,p.pB)(s.value,t,e),tB(s,{fromIndex:t,toIndex:e}),s.onInput(s.value)})}},s.moveUp=function(t){if((0,p.H1)(s.value))return s.move(t,t-1<0?s.value.length-1:t-1)},s.moveDown=function(t){if((0,p.H1)(s.value))return s.move(t,t+1>=s.value.length?0:t+1)},s.makeAutoCleanable(),s}return em(e,t),e.prototype.makeAutoCleanable=function(){var t=this;this.disposers.push((0,y.U5)(function(){var e;return null===(e=t.value)||void 0===e?void 0:e.length},function(e,n){n&&!e?tI(t,0):e<n&&tI(t,e)}))},e}(ea);var eb=(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),eO=function(t){function e(e,n,r,o){var s=t.call(this,e,n,r,o)||this;return s.displayName="ObjectField",s.additionalProperties=[],s.addProperty=function(t,e){return s.form.setValuesIn(s.path.concat(t),e),s.additionalProperties.push(t),s.onInput(s.value)},s.removeProperty=function(t){return s.form.deleteValuesIn(s.path.concat(t)),s.additionalProperties.splice(s.additionalProperties.indexOf(t),1),s.onInput(s.value)},s.existProperty=function(t){return s.form.existValuesIn(s.path.concat(t))},s.makeAutoCleanable(),s}return eb(e,t),e.prototype.makeAutoCleanable=function(){var t=this;this.disposers.push((0,y.U5)(function(){return Object.keys(t.value||{})},function(e){var n=t.additionalProperties.filter(function(t){return!e.includes(t)});tF(t,n)}))},e}(ea);var ew=(h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ex=function(t){function e(e,n,r,o){var s=t.call(this)||this;return s.displayName="VoidField",s.setState=tj(s),s.getState=t$(s),s.form=r,s.props=n,s.designable=o,t5(),s.locate(e),s.initialize(),s.makeObservable(),s.makeReactive(),s.onInit(),t4(),s}return ew(e,t),e.prototype.initialize=function(){this.mounted=!1,this.unmounted=!1,this.initialized=!1,this.title=this.props.title,this.description=this.props.description,this.pattern=this.props.pattern,this.display=this.props.display,this.hidden=this.props.hidden,this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.content=this.props.content,this.data=this.props.data,this.decorator=(0,p._K)(this.props.decorator),this.component=(0,p._K)(this.props.component)},e.prototype.makeObservable=function(){!this.designable&&(0,y.Ou)(this,{path:y.LO.ref,title:y.LO.ref,description:y.LO.ref,selfDisplay:y.LO.ref,selfPattern:y.LO.ref,initialized:y.LO.ref,mounted:y.LO.ref,unmounted:y.LO.ref,decoratorType:y.LO.ref,componentType:y.LO.ref,content:y.LO.ref,data:y.LO.shallow,decoratorProps:y.LO,componentProps:y.LO,display:y.LO.computed,pattern:y.LO.computed,hidden:y.LO.computed,visible:y.LO.computed,disabled:y.LO.computed,readOnly:y.LO.computed,readPretty:y.LO.computed,editable:y.LO.computed,component:y.LO.computed,decorator:y.LO.computed,indexes:y.LO.computed,setTitle:y.aD,setDescription:y.aD,setDisplay:y.aD,setPattern:y.aD,setComponent:y.aD,setComponentProps:y.aD,setDecorator:y.aD,setDecoratorProps:y.aD,setData:y.aD,setContent:y.aD,onInit:y.dC,onMount:y.dC,onUnmount:y.dC})},e.prototype.makeReactive=function(){!this.designable&&t2(this)},e}(er),eD=function(){return(eD=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ek="__FORMILY_DEV_TOOLS_HOOK__",eS=function(){function t(t){var e,n,r=this;this.displayName="Form",this.fields={},this.requests={},this.indexes={},this.disposers=[],this.createField=function(t){var e=p.Dm.parse(t.basePath).concat(t.name),n=e.toString();if(n)return(!r.fields[n]||r.props.designable)&&((0,y.dC)(function(){new ea(e,t,r,r.props.designable)}),r.notify(f.ON_FORM_GRAPH_CHANGE)),r.fields[n]},this.createArrayField=function(t){var e=p.Dm.parse(t.basePath).concat(t.name),n=e.toString();if(n)return(!r.fields[n]||r.props.designable)&&((0,y.dC)(function(){new ev(e,eD(eD({},t),{value:(0,p.H1)(t.value)?t.value:[]}),r,r.props.designable)}),r.notify(f.ON_FORM_GRAPH_CHANGE)),r.fields[n]},this.createObjectField=function(t){var e=p.Dm.parse(t.basePath).concat(t.name),n=e.toString();if(n)return(!r.fields[n]||r.props.designable)&&((0,y.dC)(function(){new eO(e,eD(eD({},t),{value:(0,p.BP)(t.value)?t.value:{}}),r,r.props.designable)}),r.notify(f.ON_FORM_GRAPH_CHANGE)),r.fields[n]},this.createVoidField=function(t){var e=p.Dm.parse(t.basePath).concat(t.name),n=e.toString();if(n)return(!r.fields[n]||r.props.designable)&&((0,y.dC)(function(){new ex(e,t,r,r.props.designable)}),r.notify(f.ON_FORM_GRAPH_CHANGE)),r.fields[n]},this.setValues=function(t,e){void 0===e&&(e="merge"),(0,p.Uk)(t)&&("merge"===e||"deepMerge"===e?(0,p.TS)(r.values,t,{arrayMerge:function(t,e){return e},assign:!0}):"shallowMerge"===e?Object.assign(r.values,t):r.values=t)},this.setInitialValues=function(t,e){void 0===e&&(e="merge"),(0,p.Uk)(t)&&("merge"===e||"deepMerge"===e?(0,p.TS)(r.initialValues,t,{arrayMerge:function(t,e){return e},assign:!0}):"shallowMerge"===e?Object.assign(r.initialValues,t):r.initialValues=t)},this.setValuesIn=function(t,e){p.Dm.setIn(r.values,t,e)},this.deleteValuesIn=function(t){p.Dm.deleteIn(r.values,t)},this.existValuesIn=function(t){return p.Dm.existIn(r.values,t)},this.getValuesIn=function(t){return p.Dm.getIn(r.values,t)},this.setInitialValuesIn=function(t,e){p.Dm.setIn(r.initialValues,t,e)},this.deleteInitialValuesIn=function(t){p.Dm.deleteIn(r.initialValues,t)},this.existInitialValuesIn=function(t){return p.Dm.existIn(r.initialValues,t)},this.getInitialValuesIn=function(t){return p.Dm.getIn(r.initialValues,t)},this.setLoading=function(t){tq(r,t)},this.setSubmitting=function(t){tz(r,t)},this.setValidating=function(t){tW(r,t)},this.setDisplay=function(t){r.display=t},this.setPattern=function(t){r.pattern=t},this.addEffects=function(t,e){!r.heart.hasLifeCycles(t)&&r.heart.addLifeCycles(t,ed(r,e))},this.removeEffects=function(t){r.heart.removeLifeCycles(t)},this.setEffects=function(t){r.heart.setLifeCycles(ed(r,t))},this.clearErrors=function(t){void 0===t&&(t="*"),r.query(t).forEach(function(t){!k(t)&&t.setFeedback({type:"error",messages:[]})})},this.clearWarnings=function(t){void 0===t&&(t="*"),r.query(t).forEach(function(t){!k(t)&&t.setFeedback({type:"warning",messages:[]})})},this.clearSuccesses=function(t){void 0===t&&(t="*"),r.query(t).forEach(function(t){!k(t)&&t.setFeedback({type:"success",messages:[]})})},this.query=function(t){return new et({pattern:t,base:"",form:r})},this.queryFeedbacks=function(t){return r.query(t.address||t.path||"*").reduce(function(e,n){return k(n)?e:e.concat(n.queryFeedbacks(t).map(function(t){return eD(eD({},t),{address:n.address.toString(),path:n.path.toString()})}).filter(function(t){return t.messages.length>0}))},[])},this.notify=function(t,e){r.heart.publish(t,null!=e?e:r)},this.subscribe=function(t){return r.heart.subscribe(t)},this.unsubscribe=function(t){r.heart.unsubscribe(t)},this.onInit=function(){r.initialized=!0,r.notify(f.ON_FORM_INIT)},this.onMount=function(){r.mounted=!0,r.notify(f.ON_FORM_MOUNT),p.kk[ek]&&!r.props.designable&&p.kk[ek].inject(r.id,r)},this.onUnmount=function(){r.notify(f.ON_FORM_UNMOUNT),r.query("*").forEach(function(t){return t.destroy(!1)}),r.disposers.forEach(function(t){return t()}),r.unmounted=!0,r.indexes={},r.heart.clear(),p.kk[ek]&&!r.props.designable&&p.kk[ek].unmount(r.id)},this.setState=tj(this),this.getState=t$(this),this.setFormState=tj(this),this.getFormState=t$(this),this.setFieldState=(e=this,y.dC.bound(function(t,n){if(I(t))t.forEach(function(t){t.setState(n)});else if(O(t))t.setState(n);else{var r=0,o=p.Dm.parse(t);e.query(o).forEach(function(t){t.setState(n),r++}),(0===r||o.isWildMatchPattern)&&tL(e,o,n)}})),this.getFieldState=(n=this,function(t,e){return I(t)?t.take(e):O(t)?t.getState(e):n.query(t).take(function(t){return t.getState(e)})}),this.getFormGraph=function(){return r.graph.getGraph()},this.setFormGraph=function(t){r.graph.setGraph(t)},this.clearFormGraph=function(t,e){void 0===t&&(t="*"),void 0===e&&(e=!0),r.query(t).forEach(function(t){t.destroy(e)})},this.validate=function(t){return void 0===t&&(t="*"),tG(r,t)},this.submit=function(t){return tU(r,t)},this.reset=function(t,e){return void 0===t&&(t="*"),tQ(r,t,e)},this.initialize(t),this.makeObservable(),this.makeReactive(),this.makeValues(),this.onInit()}return t.prototype.initialize=function(t){this.id=(0,p.hQ)(),this.props=eD({},t),this.initialized=!1,this.submitting=!1,this.validating=!1,this.loading=!1,this.modified=!1,this.mounted=!1,this.unmounted=!1,this.display=this.props.display||"visible",this.pattern=this.props.pattern||"editable",this.editable=this.props.editable,this.disabled=this.props.disabled,this.readOnly=this.props.readOnly,this.readPretty=this.props.readPretty,this.visible=this.props.visible,this.hidden=this.props.hidden,this.graph=new F(this),this.heart=new g({lifecycles:this.lifecycles,context:this})},t.prototype.makeValues=function(){this.values=t0(this.props.values),this.initialValues=t0(this.props.initialValues)},t.prototype.makeObservable=function(){(0,y.Ou)(this,{fields:y.LO.shallow,indexes:y.LO.shallow,initialized:y.LO.ref,validating:y.LO.ref,submitting:y.LO.ref,loading:y.LO.ref,modified:y.LO.ref,pattern:y.LO.ref,display:y.LO.ref,mounted:y.LO.ref,unmounted:y.LO.ref,values:y.LO,initialValues:y.LO,valid:y.LO.computed,invalid:y.LO.computed,errors:y.LO.computed,warnings:y.LO.computed,successes:y.LO.computed,hidden:y.LO.computed,visible:y.LO.computed,editable:y.LO.computed,readOnly:y.LO.computed,readPretty:y.LO.computed,disabled:y.LO.computed,setValues:y.aD,setValuesIn:y.aD,setInitialValues:y.aD,setInitialValuesIn:y.aD,setPattern:y.aD,setDisplay:y.aD,setState:y.aD,deleteInitialValuesIn:y.aD,deleteValuesIn:y.aD,setSubmitting:y.aD,setValidating:y.aD,reset:y.aD,submit:y.aD,validate:y.aD,onMount:y.dC,onUnmount:y.dC,onInit:y.dC})},t.prototype.makeReactive=function(){var t=this;this.disposers.push((0,y.N7)(this,function(e){tV(t,e),tH(t,e)},!0))},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.invalid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.queryFeedbacks({type:"error"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"warnings",{get:function(){return this.queryFeedbacks({type:"warning"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"successes",{get:function(){return this.queryFeedbacks({type:"success"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lifecycles",{get:function(){return ed(this,this.props.effects)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hidden",{get:function(){return"hidden"===this.display},set:function(t){(0,p.JY)(t)&&(t?this.display="hidden":this.display="visible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return"visible"===this.display},set:function(t){(0,p.JY)(t)&&(t?this.display="visible":this.display="none")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editable",{get:function(){return"editable"===this.pattern},set:function(t){(0,p.JY)(t)&&(t?this.pattern="editable":this.pattern="readPretty")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return"readOnly"===this.pattern},set:function(t){(0,p.JY)(t)&&(t?this.pattern="readOnly":this.pattern="editable")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"disabled"===this.pattern},set:function(t){(0,p.JY)(t)&&(t?this.pattern="disabled":this.pattern="editable")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readPretty",{get:function(){return"readPretty"===this.pattern},set:function(t){(0,p.JY)(t)&&(t?this.pattern="readPretty":this.pattern="editable")},enumerable:!1,configurable:!0}),t}(),eE=function(t){return new eS(t)};function eC(t){return ec(t,function(t){return function(e){(0,y.dC)(function(){e(t)})}})}var eT=eC(f.ON_FORM_INIT),eA=eC(f.ON_FORM_MOUNT),eM=eC(f.ON_FORM_UNMOUNT),eP=eC(f.ON_FORM_VALUES_CHANGE),eB=eC(f.ON_FORM_INITIAL_VALUES_CHANGE),eI=eC(f.ON_FORM_INPUT_CHANGE),eF=eC(f.ON_FORM_SUBMIT),eN=eC(f.ON_FORM_RESET),eL=eC(f.ON_FORM_SUBMIT_START),e_=eC(f.ON_FORM_SUBMIT_END),eX=eC(f.ON_FORM_SUBMIT_SUCCESS),eR=eC(f.ON_FORM_SUBMIT_FAILED),ej=eC(f.ON_FORM_SUBMIT_VALIDATE_START),e$=eC(f.ON_FORM_SUBMIT_VALIDATE_SUCCESS),eV=eC(f.ON_FORM_SUBMIT_VALIDATE_FAILED),eH=eC(f.ON_FORM_SUBMIT_VALIDATE_END),eW=eC(f.ON_FORM_VALIDATE_START),ez=eC(f.ON_FORM_VALIDATE_SUCCESS),eq=eC(f.ON_FORM_VALIDATE_FAILED),eU=eC(f.ON_FORM_VALIDATE_END),eY=eC(f.ON_FORM_GRAPH_CHANGE),eG=eC(f.ON_FORM_LOADING);function eQ(t){var e=null;eT(function(n){e=(0,y.EH)(function(){(0,p.LQ)(t)&&t(n)})}),eM(function(){e()})}function eK(t){return ec(t,function(t,e){return function(n,r){p.Dm.parse(n).matchAliasGroup(t.address,t.path)&&(0,y.dC)(function(){r(t,e)})}})}var eJ=eK(f.ON_FIELD_INIT),eZ=eK(f.ON_FIELD_MOUNT),e0=eK(f.ON_FIELD_UNMOUNT),e1=eK(f.ON_FIELD_VALUE_CHANGE),e2=eK(f.ON_FIELD_INITIAL_VALUE_CHANGE),e3=eK(f.ON_FIELD_INPUT_VALUE_CHANGE),e5=eK(f.ON_FIELD_VALIDATE_START),e4=eK(f.ON_FIELD_VALIDATE_END),e9=eK(f.ON_FIELD_VALIDATING),e8=eK(f.ON_FIELD_VALIDATE_FAILED),e6=eK(f.ON_FIELD_VALIDATE_SUCCESS),e7=eK(f.ON_FIELD_SUBMIT),nt=eK(f.ON_FIELD_SUBMIT_START),ne=eK(f.ON_FIELD_SUBMIT_END),nn=eK(f.ON_FIELD_SUBMIT_VALIDATE_START),nr=eK(f.ON_FIELD_SUBMIT_VALIDATE_END),ni=eK(f.ON_FIELD_SUBMIT_SUCCESS),no=eK(f.ON_FIELD_SUBMIT_FAILED),ns=eK(f.ON_FIELD_SUBMIT_VALIDATE_SUCCESS),na=eK(f.ON_FIELD_SUBMIT_VALIDATE_FAILED),nu=eK(f.ON_FIELD_RESET),nl=eK(f.ON_FIELD_LOADING);function nc(t,e){var n=ep();0===n.query(t).reduce(function(t,r){return e(r,n),t+1},0)&&eJ(t,e)}function nh(t,e){nc(t,function(t,n){t.disposers.push((0,y.EH)(function(){(0,p.LQ)(e)&&e(t,n)}))})}function nf(t,e,n){(0,p.LQ)(e)?(n=e,e=["value"]):e=e||["value"],nc(t,function(t,r){(0,p.LQ)(n)&&n(t,r);var o=(0,y.U5)(function(){return(0,p._K)(e).map(function(e){return t[e]})},function(){(0,p.LQ)(n)&&n(t,r)});t.disposers.push(o)})}},817480:function(t,e,n){"use strict";n.r(e),n.d(e,{FormContext:()=>tD,VoidField:()=>t1,useFieldSchema:()=>tF,FieldContext:()=>tk,Schema:()=>K,SchemaExpressionScopeContext:()=>tC,FormConsumer:()=>tV,mapProps:()=>tX,connect:()=>tj,FormProvider:()=>t$,SchemaMarkupContext:()=>tS,useExpressionScope:()=>tL,SchemaComponentsContext:()=>tT,SchemaContext:()=>tE,SchemaOptionsContext:()=>tA,ContextCleaner:()=>tM,RecursionField:()=>t6,mapReadPretty:()=>tR,RecordScope:()=>et,useForm:()=>tP,Field:()=>t3,useField:()=>tB,Observer:()=>tw,ExpressionScope:()=>t5,ArrayField:()=>tK,ObjectField:()=>tZ,RecordsScope:()=>t7,useFormEffects:()=>tN,createSchemaField:()=>eo,useParentForm:()=>tI,observer:()=>tO});var r,o,s,a=n("885906"),u=n("710348"),l=Symbol.for("__REVA_ACTIONS"),c={parent:!0,root:!0,properties:!0,patternProperties:!0,additionalProperties:!0,items:!0,additionalItems:!0,"x-linkages":!0,"x-reactions":!0},h={title:"title",description:"description",default:"initialValue",enum:"dataSource",readOnly:"readOnly",writeOnly:"editable","x-content":"content","x-data":"data","x-value":"value","x-editable":"editable","x-disabled":"disabled","x-read-pretty":"readPretty","x-read-only":"readOnly","x-visible":"visible","x-hidden":"hidden","x-display":"display","x-pattern":"pattern","x-validator":"validator","x-decorator":"decoratorType","x-component":"componentType","x-decorator-props":"decoratorProps","x-component-props":"componentProps"},f={required:!0,format:!0,maxItems:!0,minItems:!0,maxLength:!0,minLength:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,pattern:!0,const:!0,multipleOf:!0,maxProperties:!0,minProperties:!0,uniqueItems:!0};Object.keys(h),Object.keys(f);var p=Object.prototype.hasOwnProperty,d=function(t,e){var n=[],r=function(o,s){if(void 0===s&&(s=[]),(0,a.Uk)(o)){if(!(n.indexOf(o)>-1)){var u=n.length;if(n.push(o),g(o)&&t!==o){e(o,s);return}(0,a.S6)(o,function(t,e){r(t,s.concat(e))}),n.splice(u,1)}}else e(o,s)};r(t)},m=function(t,e){void 0!==t["x-validator"]&&e(t["x-validator"],["x-validator"],null===(n=t["x-compile-omitted"])||void 0===n?void 0:n.includes("x-validator"));var n,r=[],o=function(n,s){var u;if(void 0===s&&(s=[]),!("x-compile-omitted"===s[0]||"x-validator"===s[0]||"version"===s[0]||"_isJSONSchemaObject"===s[0]||-1==String(s[0]).indexOf("x-")&&(0,a.LQ)(n))){if(!c[s[0]]){if((null===(u=t["x-compile-omitted"])||void 0===u?void 0:u.indexOf(s[0]))>-1){e(n,s,!0);return}if((0,a.Uk)(n)){if("default"===s[0]||"x-value"===s[0]){e(n,s);return}if(r.indexOf(n)>-1)return;var l=r.length;if(r.push(n),g(n)&&t!==n){e(n,s);return}(0,a.S6)(n,function(t,e){o(t,s.concat(e))}),r.splice(l,1)}else e(n,s)}}};o(t)},g=function(t){return!!("$$typeof"in t&&"_owner"in t||t._isAMomentObject||K.isSchemaInstance(t)||t[l]||(0,a.LQ)(t.toJS)||(0,a.LQ)(t.toJSON)||(0,u.bi)(t))||!1},y=function(t,e,n){(0,u.rg)(function(){var r,o,s=a.Dm.parse(e).segments,u=s[0],l="enum"===u&&(0,a.H1)(n),c=h[u];if(c){;a.Dm.setIn(t,[c].concat(s.slice(1)),l?(o=n,(0,a._K)(o).map(function(t){return"object"==typeof t?t:{label:t,value:t}})):n)}else f[u]&&(null===(r=t.setValidatorRule)||void 0===r||r.call(t,u,n))})},b=/^\s*\{\{([\s\S]*)\}\}\s*$/,O={silent:!1,compile:function(t,e){if(void 0===e&&(e={}),!O.silent)return Function("$root","with($root) { return (".concat(t,"); }"))(e);try{return Function("$root","with($root) { return (".concat(t,"); }"))(e)}catch(t){}}},w=function(t){void 0===t&&(t=!0),O.silent=!!t},x=function(t){(0,a.LQ)(t)&&(O.compile=t)},D=function(t,e){if((0,a.d8)(t)){var n=t.match(b);return n?O.compile(n[1],e):t}return t},k=function(t,e){var n=[],r=function(t){if((0,a.d8)(t))return D(t,e);if((0,a.H1)(t))return t.map(function(t){return r(t)});if((0,a.Uk)(t)){if(g(t)||n.indexOf(t)>-1)return t;var o=n.length;n.push(t);var s=(0,a.u4)(t,function(t,e,n){return t[n]=r(e),t},{});return n.splice(o,1),s}return t};return r(t)},S=function(t,e,n){d(e,function(e,r){var o=k(e,n);if(void 0!==o){var s=a.Dm.parse(r),l=s.segments[0];p.call(t,l)&&(0,u.rg)(function(){return a.Dm.setIn(t,s,o)})}})},E=function(t,e,n,r){void 0===r&&(r=!1),m(e,function(e,o,s){var a=e,l=(0,u.WV)(function(){!s&&(a=k(e,n))});void 0!==a&&(r?(l||!t.initialized)&&y(t,o,a):y(t,o,a))})},C=n("949926"),T=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},A={onFieldInit:C.onFieldInit,onFieldMount:C.onFieldMount,onFieldUnmount:C.onFieldUnmount,onFieldValueChange:C.onFieldValueChange,onFieldInputValueChange:C.onFieldInputValueChange,onFieldInitialValueChange:C.onFieldInitialValueChange,onFieldValidateStart:C.onFieldValidateStart,onFieldValidateEnd:C.onFieldValidateEnd,onFieldValidateFailed:C.onFieldValidateFailed,onFieldValidateSuccess:C.onFieldValidateSuccess},M=["onFieldInit","onFieldValueChange"],P=function(t,e,n){var r=T(String(e).split(/\s*#\s*/),2),o=r[0],s=r[1];return t.query(o).getIn(s||n||"value")},B=function(t,e){if((0,a.H1)(e)){var n=[];return e.forEach(function(e){(0,a.d8)(e)?n.push(P(t,e)):(0,a.Uk)(e)&&e.name&&e.source&&(n[e.name]=P(t,e.source,e.property))}),n}return(0,a.Uk)(e)?(0,a.u4)(e,function(e,n,r){return e[r]=P(t,n),e},{}):[]},I=function(t,e){void 0===e&&(e=!1);var n=t||{},r=n.request,o=n.target,s=n.runner,u=n.field,l=n.scope;r&&(o?(r.state&&u.form.setFieldState(o,function(t){return S(t,r.state,(0,a.e_)(l,{$target:t}))}),r.schema&&u.form.setFieldState(o,function(t){return E(t,r.schema,(0,a.e_)(l,{$target:t}),e)}),(0,a.d8)(s)&&s&&u.form.setFieldState(o,function(t){D("{{function(){".concat(s,"}}}"),(0,a.e_)(l,{$target:t}))()})):(r.state&&u.setState(function(t){return S(t,r.state,l)}),r.schema&&u.setState(function(t){return E(t,r.schema,l,e)}),(0,a.d8)(s)&&s&&D("{{function(){".concat(s,"}}}"),l)()))},F=function(t,e){void 0===e&&(e={});var n=u.EH.effect,r=u.EH.memo,o=t.form,s=t.form.values;return(0,a.e_)({get $lookup(){var l,c;return null!==(c=null===(l=null==e?void 0:e.scope)||void 0===l?void 0:l.$record)&&void 0!==c?c:s},get $records(){return t.records},get $record(){var h=t.record;if("object"==typeof h)return(0,a.e_)(h,{get $lookup(){var f,p;return null!==(p=null===(f=null==e?void 0:e.scope)||void 0===f?void 0:f.$record)&&void 0!==p?p:s},get $index(){return t.index}});return h},get $index(){return t.index}},e.scope,{$form:o,$self:t,$observable:function(t,e){return u.EH.memo(function(){return(0,u.LO)(t)},e)},$effect:n,$memo:r,$props:function(e){return t.setComponentProps(e)},$values:s})},N=function(t,e){var n,r,o,s;return{name:t.name,reactions:[(n=t,r=e,function(t){I({field:t,request:{schema:n},scope:F(t,r)},!0)})].concat((o=t,s=e,(0,a._K)(o["x-reactions"]).map(function(t){return function(e){var n=F(e,s),r=D(t,n);if(r){if((0,a.LQ)(r))return r(e,n);var o=r.when,l=r.fulfill,c=r.otherwise,h=r.target,f=r.effects,p=function(){var t=B(e,r.dependencies),s=(0,a.e_)(n,{$target:null,$deps:t,$dependencies:t}),u=D(o,s),f=!o||u?l:c,p=null==f?void 0:f.run;I({field:e,target:h,request:f,runner:p,scope:s})};h&&(r.effects=(null==f?void 0:f.length)?f:M),r.effects?u.EH.memo(function(){(0,u.rg)(function(){(0,a.S6)(r.effects,function(t){A[t]&&A[t](e.address,p)})})},[]):p()}}})))}},L=function(){return(L=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},_=[],X={},R=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach(function(t){(0,a.LQ)(t)&&_.push(t)})},j=function(t,e){t&&(0,a.LQ)(e)&&(X[t]=X[t]||[],X[t].push(e))},$=function(t){(0,a.H1)(t)&&t.forEach(function(t){(0,a.H1)(X[t])&&X[t].forEach(function(t){R(t)})})},V=function(){return(V=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},H=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},W=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(!r&&(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},z=["card","block","grid-col","grid-row","grid","layout","step","tab","text-box"],q={},U=function(t){if((0,a.d8)(t))return t.replace(/\$value/,"$self.value")},Y=function(t){if((0,a.JY)(t.editable)&&(t["x-editable"]=t["x-editable"]||t.editable,delete t.editable),(0,a.JY)(t.visible)&&(t["x-visible"]=t["x-visible"]||t.visible,delete t.visible),(0,a.JY)(t.display)&&(t["x-display"]=t["x-display"]||(t.display?"visible":"hidden"),delete t.display),(0,a.JY)(t["x-props"])&&(t["x-decorator-props"]=t["x-decorator-props"]||t["x-props"],delete t.display),t["x-linkages"]){var e;t["x-reactions"]=(0,a._K)(t["x-reactions"]).concat((e=t["x-linkages"],(0,a.H1)(e)?e.reduce(function(t,e){if(!e)return t;if("value:visible"===e.type)return t.concat({target:e.target,when:U(e.condition),fulfill:{state:{visible:!0}},otherwise:{state:{visible:!1}}});if("value:schema"===e.type)return t.concat({target:e.target,when:U(e.condition),fulfill:{schema:Y(V({version:"1.0"},e.schema))},otherwise:{schema:Y(V({version:"1.0"},e.otherwise))}});if("value:state"===e.type)return t.concat({target:e.target,when:U(e.condition),fulfill:{state:e.state},otherwise:{state:e.otherwise}})},[]):[])),delete t["x-linkages"]}return t["x-component"]?z.some(function(e){return(0,a.vl)(e)===(0,a.vl)(t["x-component"])})&&(t.type="void"):q[t.type]&&(t["x-component"]=q[t.type]),!t["x-decorator"]&&"void"!==t.type&&"object"!==t.type&&(t["x-decorator"]=t["x-decorator"]||"FormItem"),t["x-rules"]&&(t["x-validator"]=[].concat(t["x-validator"]||[]).concat(t["x-rules"])),t};j("1.0",Y);var G=function(t){z.push.apply(z,W([],H(t),!1))},Q=function(t){Object.assign(q,t)},K=function(){function t(e,n){var r=this;return this._isJSONSchemaObject=!0,this.version="2.0",this.addProperty=function(e,n){return r.properties=r.properties||{},r.properties[e]=new t(n,r),r.properties[e].name=e,r.properties[e]},this.removeProperty=function(t){var e=r.properties[t];return delete r.properties[t],e},this.setProperties=function(t){for(var e in t)r.addProperty(e,t[e]);return r},this.addPatternProperty=function(e,n){if(n)return r.patternProperties=r.patternProperties||{},r.patternProperties[e]=new t(n,r),r.patternProperties[e].name=e,r.patternProperties[e]},this.removePatternProperty=function(t){var e=r.patternProperties[t];return delete r.patternProperties[t],e},this.setPatternProperties=function(t){if(!t)return r;for(var e in t)r.addPatternProperty(e,t[e]);return r},this.setAdditionalProperties=function(e){if(e)return r.additionalProperties=new t(e),r.additionalProperties},this.setItems=function(e){if(e)return Array.isArray(e)?r.items=e.map(function(e){return new t(e,r)}):r.items=new t(e,r),r.items},this.setAdditionalItems=function(e){if(e)return r.additionalItems=new t(e,r),r.additionalItems},this.findDefinitions=function(t){if(!!t&&!!r.root&&!!(0,a.d8)(t)){if(0===t.indexOf("#/"))return a.Dm.getIn(r.root,t.substring(2).split("/"))}},this.mapProperties=function(e){return t.getOrderProperties(r).map(function(t,n){return e(t.schema,t.key,n)})},this.mapPatternProperties=function(e){return t.getOrderProperties(r,"patternProperties").map(function(t,n){return e(t.schema,t.key,n)})},this.reduceProperties=function(e,n){var o=n;return t.getOrderProperties(r,"properties").forEach(function(t,n){var r=t.schema,s=t.key;o=e(o,r,s,n)}),o},this.reducePatternProperties=function(e,n){var o=n;return t.getOrderProperties(r,"patternProperties").forEach(function(t,n){var r=t.schema,s=t.key;o=e(o,r,s,n)}),o},this.compile=function(e){var n=new t({},r.parent);return(0,a.S6)(r,function(t,r){if(!(0,a.LQ)(t)||!!r.includes("x-"))"parent"!==r&&"root"!==r&&(c[r]?n[r]=t?D(t,e):t:n[r]=t?k(t,e):t)}),n},this.fromJSON=function(e){var n;if(!e)return r;if(t.isSchemaInstance(e))return e;return(0,a.S6)((n=e,_.reduce(function(t,e){return e(t)},L({},n))),function(t,e){(!(0,a.LQ)(t)||e.includes("x-"))&&("properties"===e?r.setProperties(t):"patternProperties"===e?r.setPatternProperties(t):"additionalProperties"===e?r.setAdditionalProperties(t):"items"===e?r.setItems(t):"additionalItems"===e?r.setAdditionalItems(t):"$ref"===e?r.fromJSON(r.findDefinitions(t)):r[e]=t)}),r},this.toJSON=function(t){void 0===t&&(t=!0);var e={};return(0,a.S6)(r,function(n,r){var o,s;if((!(0,a.LQ)(n)||r.includes("x-"))&&"parent"!==r&&"root"!==r){if("properties"===r||"patternProperties"===r){if(!t)return;e[r]=(0,a.UI)(n,function(t){var e;return null===(e=null==t?void 0:t.toJSON)||void 0===e?void 0:e.call(t)})}else if("additionalProperties"===r||"additionalItems"===r){if(!t)return;e[r]=null===(o=null==n?void 0:n.toJSON)||void 0===o?void 0:o.call(n)}else if("items"===r){if(!t)return;Array.isArray(n)?e[r]=n.map(function(t){var e;return null===(e=null==t?void 0:t.toJSON)||void 0===e?void 0:e.call(t)}):e[r]=null===(s=null==n?void 0:n.toJSON)||void 0===s?void 0:s.call(n)}else e[r]=n}}),e},this.toFieldProps=function(t){return N(r,t)},n?(this.parent=n,this.root=n.root):this.root=this,this.fromJSON(e)}return t.getOrderProperties=function(t,e){void 0===t&&(t={}),void 0===e&&(e="properties");var n=[],r=[];for(var o in t[e]){var s=t[e][o],a=s["x-index"];isNaN(a)?r.push({schema:s,key:o}):n[a]={schema:s,key:o}}return n.concat(r).filter(function(t){return!!t})},t.compile=function(t,e){return k(t,e)},t.shallowCompile=function(t,e){return D(t,e)},t.isSchemaInstance=function(e){return(0,a.iw)(e,t)},t.registerCompiler=x,t.registerPatches=R,t.registerVoidComponents=G,t.registerTypeDefaultComponents=Q,t.registerPolyfills=j,t.enablePolyfills=$,t.silent=w,t}(),J=n("455069"),Z=n("224333"),tt=n.n(Z),te="undefined"!=typeof document?J.useLayoutEffect:J.useEffect,tn=function(){try{if("undefined"!=typeof self)return self}catch(t){}try{if("undefined"!=typeof window)return window}catch(t){}try{if(void 0!==n.g)return n.g}catch(t){}return Function("return this")()}(),tr=tn.FinalizationRegistry&&new tn.FinalizationRegistry(function(t){var e;return null===(e=null==t?void 0:t.clean)||void 0===e?void 0:e.call(t)}),ti=function(){function t(t,e){void 0===e&&(e=1e4),this.token={clean:t},this.expireTime=e}return t.prototype.open=function(t){var e=this;tr?tr.register(t,this.token,this.token):this.request=setTimeout(function(){var t,n;null===(n=null===(t=e.token)||void 0===t?void 0:t.clean)||void 0===n||n.call(t)},this.expireTime)},t.prototype.close=function(){tr?tr.unregister(this.token):clearTimeout(this.request)},t}(),to=function(t){var e=!1;return Promise.resolve(0).then(function(){if(e){e=!1;return}t()}),function(){e=!0}},ts=function(t){var e=(0,J.useRef)(null);e.current=to(t),te(function(){e.current(),t()})},ta=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},tu=[],tl={value:0},tc=new Set,th=Array.isArray,tf=function(t,e){var n=th(t);if(n!==th(e))return!1;if(n)return t.length===e.length&&t.every(function(t,n){return t===e[n]});return t===e},tp=function(t,e){var n=(0,J.useRef)(null),r=(0,J.useRef)(!1);(0,J.useEffect)(function(){r.current=!0;var o=t();return function(){if(r.current=!1,!tf(n.current,e)){o&&o();return}to(function(){!r.current&&o&&o()})}},e),n.current=e},td=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},tm=function(){};function tg(){return new tm}var ty=function(t){var e=J.useRef(null),n=J.useRef(),r=td(J.useState(tg),1)[0];return!e.current&&(e.current=t()),!n.current&&(n.current=new ti(function(){e.current&&e.current.dispose()}),n.current.open(r)),tp(function(){return n.current.close(),function(){e.current&&(e.current.dispose(),e.current=null)}},[]),e.current},tv=function(t,e){var n,r,o,s,a,l=(n=ta((0,J.useState)([]),2)[1],r=(0,J.useRef)(!1),o=(0,J.useRef)(!1),te(function(){return r.current=!0,o.current&&(n([]),o.current=!1),function(){r.current=!1}},tu),s=(0,J.useCallback)(function(){n([])},tu),a=(0,J.useCallback)(function(){if(!r.current){o.current=!0;return}0===tl.value?s():tc.add(s)},tu),tl.value++,ts(function(){tl.value>0&&tl.value--,0===tl.value&&tc.forEach(function(t){tc.delete(t),t()})}),a);return ty(function(){return new u.fX(function(){"function"==typeof(null==e?void 0:e.scheduler)?e.scheduler(l):l()},null==e?void 0:e.displayName)}).track(t)},tb=function(){return(tb=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function tO(t,e){var n=tb({forwardRef:!1},e),r=n.forwardRef?(0,J.forwardRef)(function(e,r){return tv(function(){return t(tb(tb({},e),{ref:r}))},n)}):function(e){return tv(function(){return t(e)},n)},o=(0,J.memo)(r);return tt()(o,t),n.displayName&&(o.displayName=n.displayName),o}var tw=tO(function(t){var e="function"==typeof t.children?t.children():t.children;return J.createElement(J.Fragment,{},e)}),tx=function(t){return tp(function(){return t.onMount(),function(){return t.onUnmount()}},[t]),t},tD=(0,J.createContext)(null),tk=(0,J.createContext)(null),tS=(0,J.createContext)(null),tE=(0,J.createContext)(null),tC=(0,J.createContext)(null),tT=(0,J.createContext)(null),tA=(0,J.createContext)(null),tM=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=e.children;return t.reduce(function(t,e){return J.createElement(e.Provider,{value:void 0},t)},n)}}(tk,tS,tE,tC,tT,tA),tP=function(){return(0,J.useContext)(tD)},tB=function(){return(0,J.useContext)(tk)},tI=function(){var t=tB(),e=tP(),n=function(t){return t?(0,C.isObjectField)(t)?t:n(null==t?void 0:t.parent):e};return n(t)},tF=function(){return(0,J.useContext)(tE)},tN=function(t){var e=tP();ty(function(){var n=(0,a.hQ)();return e.addEffects(n,t),{dispose:function(){e.removeEffects(n)}}})},tL=function(){return(0,J.useContext)(tC)},t_=function(){return(t_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function tX(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return tO(function(n){var r=tB(),o=t.reduce(function(t,e){return(0,a.LQ)(e)?t=Object.assign(t,e(t,r)):(0,a.S6)(e,function(e,n){var o=a.Dm.getIn(r,n),s=(0,a.d8)(e)?e:n,u=a.Dm.getIn(t,s);"value"===n&&e!==n&&delete t.value,(!(0,a.JY)(u)||(0,a.JY)(o))&&a.Dm.setIn(t,s,o)}),t},t_({},n));return J.createElement(e,o)},{forwardRef:!0})}}function tR(t,e){return function(n){return tO(function(r){var o=tB();return(0,C.isVoidField)(o)||(null==o?void 0:o.pattern)!=="readPretty"?J.createElement(n,r):J.createElement(t,t_(t_({},e),r))},{forwardRef:!0})}}function tj(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=e.reduce(function(t,e){return e(t)},t),o=J.forwardRef(function(t,e){return J.createElement(r,t_(t_({},t),{ref:e}))});return t&&tt()(o,t),o}var t$=function(t){var e=tx(t.form);return J.createElement(tM,null,J.createElement(tD.Provider,{value:e},t.children))};t$.displayName="FormProvider";var tV=tO(function(t){var e=(0,a.LQ)(t.children)?t.children(tP()):null;return J.createElement(J.Fragment,null,e)});tV.displayName="FormConsumer";var tH=function(){return(tH=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tW=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},tz=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(!r&&(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},tq=function(t,e){if(!!t||!!e){if(!(0,a.LQ)(t))return J.createElement(J.Fragment,null,t,e)}},tU=function(t,e,n){return(0,a.LQ)(t)?t(e,n):t},tY=function(t){var e,n,r=(0,J.useContext)(tT);if(!t.field)return J.createElement(J.Fragment,null,tU(t.children));var o=t.field,s=tq(tU(t.children,o,o.form),null!==(n=o.content)&&void 0!==n?n:o.componentProps.children);if("visible"!==o.display)return null;var l=function(t){var e,n;return(n=t)&&("object"==typeof n||"function"==typeof n)?t:null!==(e=a.Dm.getIn(r,t))&&void 0!==e?e:t};return e=function(){if(!o.componentType)return s;var t,e,n,r=(0,C.isVoidField)(o)?void 0:o.value,a=(0,C.isVoidField)(o)?null===(t=o.componentProps)||void 0===t?void 0:t.onChange:function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];o.onInput.apply(o,tz([],tW(n),!1)),null===(e=null===(t=o.componentProps)||void 0===t?void 0:t.onChange)||void 0===e||e.call.apply(e,tz([t],tW(n),!1))},c=(0,C.isVoidField)(o)?null===(e=o.componentProps)||void 0===e?void 0:e.onFocus:function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];o.onFocus.apply(o,tz([],tW(n),!1)),null===(e=null===(t=o.componentProps)||void 0===t?void 0:t.onFocus)||void 0===e||e.call.apply(e,tz([t],tW(n),!1))},h=(0,C.isVoidField)(o)?null===(n=o.componentProps)||void 0===n?void 0:n.onBlur:function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];o.onBlur.apply(o,tz([],tW(n),!1)),null===(e=null===(t=o.componentProps)||void 0===t?void 0:t.onBlur)||void 0===e||e.call.apply(e,tz([t],tW(n),!1))},f=(0,C.isVoidField)(o)?void 0:"disabled"===o.pattern||"readPretty"===o.pattern,p=(0,C.isVoidField)(o)?void 0:"readOnly"===o.pattern;return J.createElement(l(o.componentType),tH(tH({disabled:f,readOnly:p},(0,u.ZN)(o.componentProps)),{value:r,onChange:a,onFocus:c,onBlur:h}),s)}(),o.decoratorType?J.createElement(l(o.decoratorType),(0,u.ZN)(o.decoratorProps),e):J.createElement(J.Fragment,null,e)};tY.displayName="ReactiveField";var tG=tO(tY,{forwardRef:!0}),tQ=function(){return(tQ=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tK=function(t){var e=tP(),n=tB(),r=tx(e.createArrayField(tQ({basePath:null==n?void 0:n.address},t)));return J.createElement(tk.Provider,{value:r},J.createElement(tG,{field:r},t.children))};tK.displayName="ArrayField";var tJ=function(){return(tJ=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tZ=function(t){var e=tP(),n=tB(),r=tx(e.createObjectField(tJ({basePath:null==n?void 0:n.address},t)));return J.createElement(tk.Provider,{value:r},J.createElement(tG,{field:r},t.children))};tZ.displayName="ObjectField";var t0=function(){return(t0=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},t1=function(t){var e=tP(),n=tB(),r=tx(e.createVoidField(t0({basePath:null==n?void 0:n.address},t)));return J.createElement(tk.Provider,{value:r},J.createElement(tG,{field:r},t.children))};t1.displayName="VoidField";var t2=function(){return(t2=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},t3=function(t){var e=tP(),n=tB(),r=e.createField(t2({basePath:null==n?void 0:n.address},t));return(0,J.useEffect)(function(){return null==r||r.onMount(),function(){null==r||r.onUnmount()}},[r]),J.createElement(tk.Provider,{value:r},J.createElement(tG,{field:r},t.children))};t3.displayName="Field";var t5=function(t){var e=(0,J.useContext)(tC);return J.createElement(tC.Provider,{value:(0,a.e_)(e,t.value)},t.children)},t4=function(){return(t4=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},t9=function(t){var e=tL();return t.toFieldProps({scope:e})},t8=function(t){var e=tB();return t.onlyRenderProperties?t.basePath||(null==e?void 0:e.address.concat(t.name)):t.basePath||(null==e?void 0:e.address)},t6=function(t){var e=t8(t),n=(0,J.useMemo)(function(){return new K(t.schema)},[t.schema]),r=t9(n),o=function(t,e){var r=t["x-slot-node"],o=r.target;if(r.isRenderProp){var s=(0,u.LO)({$slotArgs:[]});a.Dm.setIn(n.properties,o,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return s.$slotArgs=n,J.createElement(t5,{value:s},J.createElement(t6,{schema:t,name:e}))})}else a.Dm.setIn(n.properties,o,J.createElement(t6,{schema:t,name:e}))},s=function(r){if(!t.onlyRenderSelf){var s=K.getOrderProperties(n);if(s.length)return J.createElement(J.Fragment,null,s.map(function(n,s){var u=n.schema,l=n.key,c=(null==r?void 0:r.address)||e,h=u;if(h["x-slot-node"])return o(h,l),null;if((0,a.LQ)(t.mapProperties)){var f=t.mapProperties(u,l);f&&(h=f)}return(0,a.LQ)(t.filterProperties)&&!1===t.filterProperties(h,l)?null:(0,a.Bl)(t.propsRecursion)&&t.propsRecursion?J.createElement(t6,{propsRecursion:!0,filterProperties:t.filterProperties,mapProperties:t.mapProperties,schema:h,key:"".concat(s,"-").concat(l),name:l,basePath:c}):J.createElement(t6,{schema:h,key:"".concat(s,"-").concat(l),name:l,basePath:c})}))}};return n?J.createElement(tE.Provider,{value:n},function(){if(!(0,a.JY)(t.name))return s();if("object"===n.type)return t.onlyRenderProperties?s():J.createElement(tZ,t4({},r,{name:t.name,basePath:e}),s);if("array"===n.type)return J.createElement(tK,t4({},r,{name:t.name,basePath:e}));if("void"===n.type)return t.onlyRenderProperties?s():J.createElement(t1,t4({},r,{name:t.name,basePath:e}),s);return J.createElement(t3,t4({},r,{name:t.name,basePath:e}))}()):J.createElement(J.Fragment,null)},t7=function(t){return J.createElement(t5,{value:{get $records(){var e,n;return null!==(n=null===(e=t.getRecords)||void 0===e?void 0:e.call(t))&&void 0!==n?n:[]}}},t.children)},et=function(t){var e=tL();return J.createElement(t5,{value:{get $lookup(){return null==e?void 0:e.$record},get $record(){var n,r=null===(n=t.getRecord)||void 0===n?void 0:n.call(t);if("object"==typeof r)return(0,a.e_)(r,{get $lookup(){return null==e?void 0:e.$record},get $index(){var o;return null===(o=t.getIndex)||void 0===o?void 0:o.call(t)}});return r},get $index(){var s;return null===(s=t.getIndex)||void 0===s?void 0:s.call(t)}}},t.children)},ee={portalDOM:null===(o=null===(r=null===a.kk||void 0===a.kk?void 0:a.kk.document)||void 0===r?void 0:r.createElement)||void 0===o?void 0:o.call(r,"div"),createPortal:null===(s=null===a.kk||void 0===a.kk?void 0:a.kk.ReactDOM)||void 0===s?void 0:s.createPortal},en=function(t){var e;return(null===(e=a.kk.navigator)||void 0===e?void 0:e.product)==="ReactNative"?null:ee.portalDOM&&ee.createPortal?ee.createPortal(t,ee.portalDOM):J.createElement("template",{},t)};!function(){var t,e;if(!ee.createPortal)try{null!==(t=ee.createPortal)&&void 0!==t||(ee.createPortal=null===(e=n(921463))||void 0===e?void 0:e.createPortal)}catch(t){}if(!ee.createPortal)try{Promise.resolve().then(n.t.bind(n,921463,19)).then(function(t){var e;return null!==(e=ee.createPortal)&&void 0!==e?e:ee.createPortal=null==t?void 0:t.createPortal}).catch()}catch(t){}}();var er=function(){return(er=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ei={nonameId:0};function eo(t){function e(e){var n=K.isSchemaInstance(e.schema)?e.schema:new K(er({type:"object"},e.schema));return J.createElement(tA.Provider,{value:t},J.createElement(tT.Provider,{value:(0,a.e_)(t.components,e.components)},J.createElement(t5,{value:(0,a.e_)(t.scope,e.scope)},(ei.nonameId=0,e.schema)?null:en(J.createElement(tS.Provider,{value:n},e.children)),J.createElement(t6,er({},e,{schema:n})))))}function n(t){var e,n,r=(0,J.useContext)(tS);if(!r)return J.createElement(J.Fragment,null);var o=function(){return J.createElement(J.Fragment,null,t.children)};if("object"===r.type||"void"===r.type){var s=r.addProperty(t.name,t);return J.createElement(tS.Provider,{value:s},o())}if("array"!==r.type)return o();var s=(e=t,(n=r.items)&&n.name!==t.name?r.addProperty(t.name,e):r.setItems(e));return J.createElement(tS.Provider,{value:Array.isArray(s)?s[0]:s},t.children)}function r(t){return J.createElement(n,er({},t,{name:t.name||"NO_NAME_FIELD_$".concat(ei.nonameId++)}))}function o(t){return J.createElement(r,er({},t,{type:"string"}))}function s(t){return J.createElement(r,er({},t,{type:"object"}))}function u(t){return J.createElement(r,er({},t,{type:"array"}))}function l(t){return J.createElement(r,er({},t,{type:"boolean"}))}function c(t){return J.createElement(r,er({},t,{type:"number"}))}function h(t){return J.createElement(r,er({},t,{type:"date"}))}function f(t){return J.createElement(r,er({},t,{type:"datetime"}))}function p(t){return J.createElement(r,er({},t,{type:"void"}))}return void 0===t&&(t={}),e.displayName="SchemaField",r.displayName="MarkupField",o.displayName="StringField",s.displayName="ObjectField",u.displayName="ArrayField",l.displayName="BooleanField",c.displayName="NumberField",h.displayName="DateField",f.displayName="DateTimeField",p.displayName="VoidField",e.Markup=r,e.String=o,e.Object=s,e.Array=u,e.Boolean=l,e.Date=h,e.DateTime=f,e.Void=p,e.Number=c,e}},710348:function(t,e,n){"use strict";n.d(e,{EH:()=>tJ,fX:()=>t0,WV:()=>tb,N7:()=>t1,Ou:()=>tQ,r3:()=>tv,U5:()=>tZ,dC:()=>t_,bi:()=>td,ZN:()=>ty,LO:()=>tG,rg:()=>tR,aD:()=>tX});var r,o=Object.prototype.toString,s=function(t){return t&&t instanceof Map},a=function(t){return t&&t instanceof Set},u=function(t){return t&&t instanceof WeakMap},l=function(t){return t&&t instanceof WeakSet},c=function(t){return"function"==typeof t},h=Array.isArray,f=function(t){return"[object Object]"===o.call(t)},p=function(t){return s(t)||u(t)||a(t)||l(t)},d=function(t){return f(t)||h(t)},m=function(t){return Array.isArray(t)?t:null!=t?[t]:[]},g=function(){function t(t){void 0===t&&(t=[]),this.forEachIndex=0,this.value=t}return t.prototype.add=function(t){!this.has(t)&&this.value.push(t)},t.prototype.has=function(t){return this.value.indexOf(t)>-1},t.prototype.delete=function(t){var e=this.value.length;if(0!==e){if(1===e&&this.value[0]===t){this.value=[];return}var n=this.value.indexOf(t);n>-1&&(this.value.splice(n,1),n<=this.forEachIndex&&(this.forEachIndex-=1))}},t.prototype.forEach=function(t){if(0!==this.value.length)for(this.forEachIndex=0;this.forEachIndex<this.value.length;this.forEachIndex++)t(this.value[this.forEachIndex])},t.prototype.batchDelete=function(t){if(0!==this.value.length)for(this.forEachIndex=0;this.forEachIndex<this.value.length;this.forEachIndex++){var e=this.value[this.forEachIndex];this.value.splice(this.forEachIndex,1),this.forEachIndex--,t(e)}},t.prototype.clear=function(){this.value.length=0},t}(),y=new WeakMap,b=new WeakMap,O=new WeakMap,w=new WeakMap,x=new WeakMap,D=[],k={value:0},S={value:0},E={value:!1},C={value:!1},T=new g,A=new g,M=new g,P=new g,B=Symbol("MakeObModelSymbol"),I=Symbol("ObModelSymbol"),F=Symbol("ObModelNodeSymbol"),N=Symbol("iteration key"),L=function(t,e,n){var r=x.get(t);if(r){var o=r.get(e);return o?o.add(n):r.set(e,new g([n])),r}var s=new Map([[e,new g([n])]]);return x.set(t,s),s},_=function(t,e){var n=t._reactionsSet;return n?n.add(e):t._reactionsSet=new g([e]),n},X=function(t,e){var n=x.get(t),r=[];if(n){var o=n.get(e);o&&o.forEach(function(t){-1===r.indexOf(t)&&r.push(t)})}return r},R=function(t,e){var n=X(t,e),r=S.value;S.value=0;for(var o=0,s=n.length;o<s;o++){var a=n[o];a._isComputed?a._scheduler(a):tt()?A.add(a):Z()?T.add(a):c(a._scheduler)?a._scheduler(a):a()}S.value=r},j=function(t){P.forEach(function(e){return e(t)})},$=function(t){var e=t.key,n=t.type,r=t.target;"iterate"===n&&(e=N);var o=D.length;if(0!==o){var s=D[o-1];!te()&&s&&(C.value=!0,_(s,L(r,e,s)))}},V=function(t){if(c(t)){var e=D[D.length-1];if(e){var n=e._computesSet;n?n.add(t):e._computesSet=new g([t])}}},H=function(t){var e=t.key,n=t.type,r=t.target,o=t.oldTarget;if(U(),j(t),"clear"===n?o.forEach(function(t,e){R(r,e)}):R(r,e),"add"===n||"delete"===n||"clear"===n){var s=Array.isArray(r)?"length":N;R(r,s)}Y()},W=function(t){var e;null===(e=t._reactionsSet)||void 0===e||e.forEach(function(e){e.forEach(function(e){e.delete(t)})}),T.delete(t),A.delete(t),delete t._reactionsSet},z=function(t){var e;null===(e=t._computesSet)||void 0===e||e.forEach(function(t){0===X(t._context,t._property).length&&(q(t),t._dirty=!0)})},q=function(t){t._disposed=!0,W(t),z(t)},U=function(){k.value++},Y=function(){if(k.value--,0===k.value){var t=S.value;S.value=0,tn(),tr(),S.value=t}},G=function(){E.value=!0},Q=function(){var t=S.value;E.value=!1,S.value=0,A.batchDelete(function(t){c(t._scheduler)?t._scheduler(t):t()}),S.value=t},K=function(){S.value++},J=function(){S.value--},Z=function(){return k.value>0},tt=function(){return E.value},te=function(){return S.value>0},tn=function(){T.batchDelete(function(t){c(t._scheduler)?t._scheduler(t):t()})},tr=function(){M.batchDelete(function(t){t()})},ti=function(t,e){return t!==e&&(!!(t.length!==e.length||t.some(function(t,n){return t!==e[n]}))||!1)},to=function(t){if(t._effects)try{U(),t._effects.queue.forEach(function(t){t&&t.dispose&&t.dispose()})}finally{Y()}},ts=function(){function t(t,e){this.node=e,this.key=t.key,this.type=t.type,this.object=t.target,this.value=t.value,this.oldValue=t.oldValue}return Object.defineProperty(t.prototype,"path",{get:function(){return this.node.path.concat(this.key)},enumerable:!1,configurable:!0}),t}(),ta=function(){function t(t,e,n){this.target=t,this.key=e,this.value=n}return Object.defineProperty(t.prototype,"path",{get:function(){return this.parent?this.parent.path.concat(this.key):this.key?[this.key]:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"targetRaw",{get:function(){return tg(this.target)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){if(this.target)return tu(this.targetRaw)},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.key?t.targetRaw===this.targetRaw&&t.key===this.key:t.value===this.value},t.prototype.contains=function(t){if(t===this)return!0;for(var e=t.parent;e;){if(this.isEqual(e))return!0;e=e.parent}return!1},t}(),tu=function(t){return(null==t?void 0:t[F])?t[F]:w.get(t)},tl=function(t,e){if(null==t?void 0:t[I]){t[F]=e;return}w.set(t,e)},tc=function(t,e,n){var r=tg(n),o=tu(r);if(o)return o;tl(r,new ta(t,e,n))},th=Symbol("RAW_TYPE"),tf=Symbol("OBSERVABLE_TYPE"),tp=Object.prototype.hasOwnProperty,td=function(t){return y.has(t)||!!(null==t?void 0:t[I])},tm=function(t){var e;if(!(null!=(e=t)))return!1;if(h(t))return!0;if(f(t))return!t[th]&&(!!t[tf]||!("$$typeof"in t&&"_owner"in t||t._isAMomentObject||t._isJSONSchemaObject||c(t.toJS)||c(t.toJSON))&&!0);return!!(s(t)||u(t)||a(t)||l(t))||!1},tg=function(t){return(null==t?void 0:t[I])?t[I]:y.get(t)||t},ty=function(t){var e=new WeakSet,n=function(t){if(e.has(t)||t&&t[th])return t;if(h(t)){if(td(t)){e.add(t);var r=[];return t.forEach(function(t){r.push(n(t))}),e.delete(t),r}}else if(f(t)&&td(t)){e.add(t);var o={};for(var s in t)tp.call(t,s)&&(o[s]=n(t[s]));return e.delete(t),o}return t};return n(t)},tv=function(t,e){var n=tg(t),r=tg(e);if(n===r)return!0;var o=tu(n),s=tu(r);return!!o&&!!s&&o.contains(s)},tb=function(t){return C.value=!1,null==t||t(),C.value},tO=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},tw=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(!r&&(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},tx=new Set(Object.getOwnPropertyNames(Symbol).reduce(function(t,e){if("arguments"===e||"caller"===e)return t;var n=Symbol[e];return"symbol"==typeof n?t.concat(n):t},[])),tD=Object.prototype.hasOwnProperty;function tk(t,e,n){var r=b.get(n);return r?r:!td(n)&&tm(n)?tP(t,e,n):n}function tS(t,e,n,r){var o=n.next;return n.next=function(){var s=o.call(n),a=s.done,u=s.value;return!a&&(r?u[1]=tk(t,e,u[1]):u=tk(t,e,u)),{done:a,value:u}},n}var tE=((r={has:function(t){var e=y.get(this),n=Reflect.getPrototypeOf(this);return $({target:e,key:t,type:"has"}),n.has.apply(e,arguments)},get:function(t){var e=y.get(this),n=Reflect.getPrototypeOf(this);return $({target:e,key:t,type:"get"}),tk(e,t,n.get.apply(e,arguments))},add:function(t){var e=y.get(this),n=Reflect.getPrototypeOf(this),r=n.has.call(e,t),o=n.add.apply(e,arguments);return!r&&H({target:e,key:t,value:t,type:"add"}),o},set:function(t,e){var n=y.get(this),r=Reflect.getPrototypeOf(this),o=r.has.call(n,t),s=r.get.call(n,t),a=r.set.apply(n,arguments);return o?e!==s&&H({target:n,key:t,value:e,oldValue:s,type:"set"}):H({target:n,key:t,value:e,type:"add"}),a},delete:function(t){var e=y.get(this),n=Reflect.getPrototypeOf(this),r=n.has.call(e,t),o=n.get?n.get.call(e,t):void 0,s=n.delete.apply(e,arguments);return r&&H({target:e,key:t,oldValue:o,type:"delete"}),s},clear:function(){var t=y.get(this),e=Reflect.getPrototypeOf(this),n=0!==t.size,r=t instanceof Map?new Map(t):new Set(t),o=e.clear.apply(t,arguments);return n&&H({target:t,oldTarget:r,type:"clear"}),o},forEach:function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=y.get(this),s=Reflect.getPrototypeOf(this);return $({target:o,type:"iterate"}),(e=s.forEach).call.apply(e,tw([o,function(e,n){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return t.apply(void 0,tw([tk(o,n,e),n],tO(r),!1))}],tO(n),!1))},keys:function(){var t=y.get(this),e=Reflect.getPrototypeOf(this);return $({target:t,type:"iterate"}),e.keys.apply(t,arguments)},values:function(){var t=y.get(this),e=Reflect.getPrototypeOf(this);$({target:t,type:"iterate"});var n=e.values.apply(t,arguments);return tS(t,"",n,!1)},entries:function(){var t=y.get(this),e=Reflect.getPrototypeOf(this);$({target:t,type:"iterate"});var n=e.entries.apply(t,arguments);return tS(t,"",n,!0)}})[Symbol.iterator]=function(){var t=y.get(this),e=Reflect.getPrototypeOf(this);$({target:t,type:"iterate"});var n=e[Symbol.iterator].apply(t,arguments);return tS(t,"",n,t instanceof Map)},Object.defineProperty(r,"size",{get:function(){var t=y.get(this),e=Reflect.getPrototypeOf(this);return $({target:t,type:"iterate"}),Reflect.get(e,"size",t)},enumerable:!1,configurable:!0}),r),tC={get:function(t,e,n){return Reflect.get(t=tD.call(tE,e)?tE:t,e,n)}},tT={get:function(t,e,n){if(e){var r=t[e];if("symbol"==typeof e&&tx.has(e))return r;$({target:t,key:e,receiver:n,type:"get"});var o=b.get(r);if(o)return o;if(!td(r)&&tm(r)){var s=Reflect.getOwnPropertyDescriptor(t,e);if(!s||!(!1===s.writable&&!1===s.configurable))return tP(t,e,r)}return r}},has:function(t,e){var n=Reflect.has(t,e);return $({target:t,key:e,type:"has"}),n},ownKeys:function(t){var e=Reflect.ownKeys(t);return $({target:t,type:"iterate"}),e},set:function(t,e,n,r){if("__proto__"===e)return t[e]=n,!0;var o=tD.call(t,e),s=tP(t,e,n),a=t[e];return t[e]=s,o?n!==a&&H({target:t,key:e,value:s,oldValue:a,receiver:r,type:"set"}):H({target:t,key:e,value:s,oldValue:a,receiver:r,type:"add"}),!0},deleteProperty:function(t,e){var n=t[e];return delete t[e],H({target:t,key:e,oldValue:n,type:"delete"}),!0}},tA=function(t,e){var n=new Proxy(t,tT);return y.set(n,t),e?O.set(t,n):b.set(t,n),n},tM=function(t,e){var n=new Proxy(t,tC);return y.set(n,t),e?O.set(t,n):b.set(t,n),n},tP=function(t,e,n,r){if("object"!=typeof n)return n;var o,s=y.get(n);if(s){var a=tu(s);return!a.target&&(a.target=t),a.key=e,n}if(!tm(n))return n;if(t){var u=y.get(t)||t;if(O.get(u))return n}if(tc(t,e,n),r){;return d(o=n)?tA(o,!0):p(o)?tM(o,!0):o}return d(n)?tA(n):p(n)?tM(n):n},tB=function(t){var e=function(e){return t({value:e})};return c(t)&&(e[B]=t),e},tI=function(t){if(t[B])return t[B][B]?tI(t[B]):t[B]},tF=function(t,e){function n(n){var r;try{t(),c(n)&&(r=n())}finally{e()}return r}return n.bound=tN(n),n},tN=function(t){return function(e,n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t(function(){return e.apply(n,r)})}}},tL=function(t,e){var n=tF(t,e),r=tB(function(t){var e=t.target,r=t.key;return e[r]=n.bound(e[r],e),e});return n[B]=r,n.bound[B]=r,n},t_=tL(U,Y);t_.scope=tL(G,Q),t_.endpoint=function(t){c(t)&&(0===k.value?t():M.add(t))};var tX=tL(function(){U(),K()},function(){J(),Y()});tX.scope=tL(function(){G(),K()},function(){J(),Q()});var tR=tF(K,J),tj=tB(function(t){var e=t.target,n=t.key,r=t.value,o={value:tP(e,n,e?e[n]:r)};return e?(Object.defineProperty(e,n,{set:function(t){var r=o.value;t=tP(e,n,t),o.value=t,r!==t&&H({target:e,key:n,type:"set",oldValue:r,value:t})},get:function(){return $({target:e,key:n,type:"get"}),o.value},enumerable:!0,configurable:!1}),e):o.value}),t$=tB(function(t){var e=t.target,n=t.key,r=t.value,o={value:e?e[n]:r},s={set:function(t){var e=o.value;o.value=t,e!==t&&H({target:o,key:n,type:"set",oldValue:e,value:t})},get:function(){return $({target:o,key:n,type:"get"}),o.value}};return(y.set(s,o),b.set(o,s),tc(e,n,o),e)?(Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!1,writable:!1}),e):s}),tV=tB(function(t){var e=t.target,n=t.key,r=t.value,o={value:e?e[n]:r},s={},a=e||o,u=e?n:"value";function l(){return $({target:a,key:u,type:"get"}),o.value}function c(t){var e=o.value;o.value=t,e!==t&&H({target:a,key:u,type:"set",oldValue:e,value:t})}return e?(Object.defineProperty(e,n,{get:l,set:c,enumerable:!0}),e):(Object.defineProperty(s,"value",{set:c,get:l}),tc(e,n,o),s[I]=o,s)}),tH=tB(function(t){var e=t.target,n=t.key,r=t.value,o={value:tP(e,n,e?e[n]:r,!0)};return e?(Object.defineProperty(e,n,{set:function(t){var r=o.value;t=tP(e,n,t,!0),o.value=t,r!==t&&H({target:e,key:n,type:"set",oldValue:r,value:t})},get:function(){return $({target:e,key:n,type:"get"}),o.value},enumerable:!0,configurable:!1}),e):o.value}),tW=Object.getOwnPropertyDescriptor,tz=Object.getPrototypeOf,tq=Symbol("ClassDescriptorSymbol");function tU(t,e){if(t)return tW(t,e)||tU(tz(t),e)}var tY=tB(function(t){var e=t.target,n=t.key,r=t.value,o={},s={},a=e||o,u=e?n:"value",l=function(t,e,n){if(!t){if(n)return c(n)?{get:n}:n;return{}}var r=function(t,e){var n=t.constructor;if(n===Object||n===Array)return tU(t,e);var r=n[tq]||{},o=r[e];if(o)return o;var s=tU(t,e);return n[tq]=r,r[e]=s,s}(t,e);return r?r:{}}(e,u,r);function h(){var t;o.value=null===(t=l.get)||void 0===t?void 0:t.call(a)}function f(){if(-1===D.indexOf(f)){W(f);try{D.push(f),h()}finally{D.pop()}}}function p(){return D.length>0&&V(f),te()?h():f._dirty&&(f(),f._dirty=!1),$({target:a,key:u,type:"get"}),o.value}function d(t){var e;try{U(),null===(e=l.set)||void 0===e||e.call(a,t)}finally{Y()}}return(f._name="ComputedReaction",f._scheduler=function(){f._dirty=!0,H({target:a,key:u,value:o.value,type:"set"})},f._isComputed=!0,f._dirty=!0,f._context=a,f._property=u,e)?(Object.defineProperty(e,n,{get:p,set:d,enumerable:!0}),e):(Object.defineProperty(s,"value",{set:d,get:p}),tc(e,n,o),s[I]=o,s)});function tG(t){return tP(null,null,t)}function tQ(t,e){if(td(t)||!tm(t))return t;for(var n in t[I]=t,tc(void 0,void 0,t),e){var r,o=e[n];if((r=o)&&r[B])tI(o)({target:t,key:n})}return t}tG.box=t$,tG.ref=tV,tG.deep=tj,tG.shallow=tH,tG.computed=tY,tG[B]=tj;var tK=function(){return(tK=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tJ=function(t,e){void 0===e&&(e="AutoRun");var n=function(){if(!!c(t)){if(!(n._boundary>0)&&-1===D.indexOf(n)){W(n);try{U(),D.push(n),t()}finally{D.pop(),n._boundary++,Y(),n._boundary=0,n._memos.cursor=0,n._effects.cursor=0}}}},r=function(){n._memos={queue:[],cursor:0},n._effects={queue:[],cursor:0}};return n._boundary=0,n._name=e,r(),n(),function(){q(n),to(n),r()}};tJ.memo=function(t,e){if(c(t)){var n=D[D.length-1];if(!n||!n._memos)throw Error("autorun.memo must used in autorun function body.");var r=m(e||[]),o=n._memos.cursor++,s=n._memos.queue[o];if(!s||ti(r,s.deps)){var a=t();return n._memos.queue[o]={value:a,deps:r},a}return s.value}},tJ.effect=function(t,e){if(c(t)){var n=D[D.length-1];if(!n||!n._effects)throw Error("autorun.effect must used in autorun function body.");var r=n._effects,o=m(e||[{}]),s=r.cursor++,a=r.queue[s];(!a||ti(o,a.deps))&&(Promise.resolve(0).then(function(){if(!n._disposed){var e=t();c(e)&&(r.queue[s].dispose=e)}}),r.queue[s]={deps:o})}};var tZ=function(t,e,n){var r=tK({name:"Reaction"},n),o={},s=function(){try{U(),c(e)&&e(o.currentValue,o.oldValue)}finally{Y()}},a=function(){if(-1===D.indexOf(a)){W(a);try{D.push(a),o.currentValue=t()}finally{D.pop()}}};return a._scheduler=function(t){t(),(c(r.equals)?!r.equals(o.oldValue,o.currentValue):o.oldValue!==o.currentValue)&&s(),o.oldValue=o.currentValue},a._name=r.name,a(),o.oldValue=o.currentValue,r.fireImmediately&&s(),function(){q(a)}},t0=function(t,e){void 0===e&&(e="TrackerReaction");var n=this;this.track=function(t){if(!c(t))return n.results;if(!(n.track._boundary>0)){if(-1===D.indexOf(n.track)){W(n.track);try{U(),D.push(n.track),n.results=t()}finally{D.pop(),n.track._boundary++,Y(),n.track._boundary=0}}return n.results}},this.dispose=function(){q(n.track)},this.track._scheduler=function(e){0===n.track._boundary&&n.dispose(),c(e)&&t(e)},this.track._name=e,this.track._boundary=0},t1=function(t,e,n){var r,o;void 0===n&&(n=!0);if(t&&"object"!=typeof t)throw Error("Can not observe ".concat(typeof t," type."));return r=tu(tg(t)),o=function(t){var o=tg(t.target),s=tu(o);if(n&&r.contains(s)){e(new ts(t,s));return}(r===s||r.targetRaw===o&&r.key===t.key)&&e(new ts(t,s))},r&&c(e)&&P.add(o),function(){P.delete(o)}}},885906:function(t,e,n){"use strict";n.d(e,{kk:()=>x,hQ:()=>eO,xb:()=>B,vl:()=>F,iw:()=>D,S6:()=>y,d8:()=>h,d9:()=>C,JY:()=>P,Dm:()=>es,lT:()=>ea,Bl:()=>f,e_:()=>ed,LQ:()=>u,TS:()=>em,Ho:()=>R,ug:()=>$,Xy:()=>E,sI:()=>d,pB:()=>w,u4:()=>O,_K:()=>g,H1:()=>l,e9:()=>p,BP:()=>m,G7:()=>M,UI:()=>b,Uk:()=>c});var r,o=Object.prototype.toString,s=function(t){return function(e){return a(e)==="[object ".concat(t,"]")}},a=function(t){return o.call(t)},u=function(t){return"function"==typeof t},l=Array.isArray,c=s("Object"),h=s("String"),f=s("Boolean"),p=s("Number"),d=function(t){return p(t)||/^\d+$/.test(t)},m=function(t){return"object"==typeof t};s("RegExp");var g=function(t){return l(t)?t:t?[t]:[]};function y(t,e,n){if(l(t)||h(t)){if(n){for(var r=t.length-1;r>=0;r--)if(!1===e(t[r],r))return}else for(var r=0;r<t.length;r++)if(!1===e(t[r],r))return}else if(m(t)){var o=void 0;for(o in t)if(Object.hasOwnProperty.call(t,o)&&!1===e(t[o],o))return}}function b(t,e,n){var r=l(t)||h(t)?[]:{};return y(t,function(t,n){var o=e(t,n);l(r)?r.push(o):r[n]=o},n),r}function O(t,e,n,r){var o=n;return y(t,function(t,n){o=e(o,t,n)},r),o}function w(t,e,n){if(e===n||n<0||e<0||n>t.length-1||e>t.length-1)return t;if(e<n){for(var r=t[e],o=e;o<n;o++)t[o]=t[o+1];t[n]=r}else{for(var r=t[e],o=e;o>n;o--)t[o]=t[o-1];t[n]=r}return t}var x=function(){try{if("undefined"!=typeof self)return self}catch(t){}try{if("undefined"!=typeof window)return window}catch(t){}try{if(void 0!==n.g)return n.g}catch(t){}return Function("return this")()}(),D=function(t,e){return u(e)?t instanceof e:!!h(e)&&!!x[e]&&t instanceof x[e]},k=Object.keys,S=Object.prototype.hasOwnProperty,E=function(t,e){try{return function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){var r,o=l(e),s=l(n),a=void 0,u=void 0;if(o&&s){if((r=e.length)!==n.length)return!1;for(a=r;0!=a--;)if(!t(e[a],n[a]))return!1;return!0}if(o!==s)return!1;var c=e&&e._isAMomentObject,h=n&&n._isAMomentObject;if(c!==h)return!1;if(c&&h)return e.isSame(n);var f=e&&e.toJS;if(f!==(n&&n.toJS))return!1;if(f)return e.is?e.is(n):e===n;var p=D(e,"Date"),d=D(n,"Date");if(p!==d)return!1;if(p&&d)return e.getTime()===n.getTime();var m=D(e,"RegExp"),g=D(n,"RegExp");if(m!==g)return!1;if(m&&g)return e.toString()===n.toString();var y=D(e,"URL"),b=D(n,"URL");if(y!==b)return!1;if(y&&b)return e.href===n.href;var O=e&&e.toJSON,w=n&&n.toJSON;if(O!==w)return!1;if(O&&w)return t(e.toJSON(),n.toJSON());var x=k(e);if((r=x.length)!==k(n).length)return!1;for(a=r;0!=a--;)if(!S.call(n,x[a]))return!1;for(a=r;0!=a--;){if("_owner"!==(u=x[a])||!e.$$typeof){if(!t(e[u],n[u]))return!1}}return!0}return e!=e&&n!=n}(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-0x7ff5ffe4===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}},C=function(t){if(Array.isArray(t)){var e=[];return t.forEach(function(t){e.push(C(t))}),e}if(!c(t))return t;if("$$typeof"in t&&"_owner"in t||t._isBigNumber||t._isAMomentObject||t._isJSONSchemaObject)return t;if(u(t.toJS))return t.toJS();if(u(t.toJSON))return t.toJSON();var n={};for(var r in t)Object.hasOwnProperty.call(t,r)&&(n[r]=C(t[r]));return n},T=Object.prototype.hasOwnProperty,A=Object.prototype.toString,M=function(t){return void 0===t},P=function(t){return null!=t};function B(t,e){if(void 0===e&&(e=!1),null==t)return!0;if("boolean"==typeof t||"number"==typeof t)return!1;if("string"==typeof t||"function"==typeof t)return 0===t.length;if(Array.isArray(t)){if(0===t.length)return!0;for(var n=0;n<t.length;n++)if(e){if(void 0!==t[n]&&null!==t[n])return!1}else if(void 0!==t[n]&&null!==t[n]&&""!==t[n]&&0!==t[n])return!1;return!0}if(D(t,"Error"))return""===t.message;if(t.toString===A)switch(t.toString()){case"[object File]":case"[object Map]":case"[object Set]":return 0===t.size;case"[object Object]":for(var r in t)if(T.call(t,r))return!1;return!0}return!1}var I=n("130001");function F(t){return t.toLowerCase()}var N=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],L=/[^A-Z0-9]+/gi;function _(t,e,n){return e instanceof RegExp?t.replace(e,n):e.reduce(function(t,e){return t.replace(e,n)},t)}function X(t,e){var n=t.charAt(0),r=t.substr(1).toLowerCase();return e>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function R(t,e){return void 0===e&&(e={}),function(t,e){void 0===e&&(e={});for(var n=e.splitRegexp,r=e.stripRegexp,o=e.transform,s=e.delimiter,a=_(_(t,void 0===n?N:n,"$1\0$2"),void 0===r?L:r,"\0"),u=0,l=a.length;"\0"===a.charAt(u);)u++;for(;"\0"===a.charAt(l-1);)l--;return a.slice(u,l).split("\0").map(void 0===o?F:o).join(void 0===s?" ":s)}(t,(0,I.pi)({delimiter:"",transform:X},e))}var j="[\uD800-\uDBFF][\uDC00-\uDFFF]",$=function(t){var e,n;return("string"==typeof(e=t)?e.replace(RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))","g"),""):e).replace(RegExp(j,"g")," ").length},V=function(){return(V=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},H=function(t,e){return V({flag:t},e)},W=H("[]"),z=H("[\\d]"),q=H("[[]]"),U=H("()"),Y=H("{}"),G=H("{x}"),Q=function(){return(Q=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},K=function(t,e){return Q({flag:t},e)},J=K("name",{expectNext:function(t){return this.includesContext(G)?t===J||t===tf||t===ta||t===to||t===tr:t===te||t===tf||t===tm||t===ta||t===th||t===tr||t===td||t===ts}}),Z=K("*",{expectNext:function(t){return t===te||t===tc||t===ts||t===tm||t===tf||t===th}}),tt=K("**",{expectNext:function(t){return t===te||t===ts||t===tm||t===tf||t===th}}),te=K(".",{expectNext:function(t){return t===te||t===J||t===tu||t===Z||t===tt||t===ts||t===ti||t===tm},expectPrev:function(t){return t===te||t===J||t===tl||t===Z||t===th||t===ta||t===td||t===to}}),tn=K("!",{expectNext:function(t){return t===J||t===tu}}),tr=K(":",{expectNext:function(t){return this.includesContext(G)?t===J||t===ti||t===ts:t===J||t===tu||t===ta}}),ti=K("{",{expectNext:function(t){return t===J},expectPrev:function(t){return this.includesContext(G)?t===tr||t===tf||t===ts:t===te||t===tr||t===tc},updateContext:function(){this.state.context.push(Y)}}),to=K("}",{expectNext:function(t){return this.includesContext(G)?t===tf||t===to||t===tm||t===ta:t===te||t===tm||t===tf},expectPrev:function(t){return t===J||t===to||t===ta},updateContext:function(){this.state.context.pop(Y)}}),ts=K("[",{expectNext:function(t){return this.includesContext(G)?t===J||t===ts||t===ti||t===ta:t===J||t===tu||t===tr||t===ts||t===tp||t===ta},expectPrev:function(t){return this.includesContext(G)?t===tr||t===tf||t===ts:t===Z||t===ts||t===te||t===J||t===tc||t==tf},updateContext:function(){this.state.context.push(W)}}),ta=K("]",{expectNext:function(t){return this.includesContext(G)?t===tf||t===to||t===ta||t===tm:t===te||t===tm||t===tf||t===th||t===ta},updateContext:function(){if(!this.includesContext(z)){if(!this.includesContext(W))throw this.unexpect();this.state.context.pop()}}}),tu=K("[[",{updateContext:function(){this.state.context.push(q)}}),tl=K("]]",{updateContext:function(){if(this.curContext()!==q)throw this.unexpect();this.state.context.pop()}}),tc=K("(",{expectNext:function(t){return t===J||t===tu||t===ti||t===tn||t===ts},expectPrev:function(t){return t===Z},updateContext:function(){this.state.context.push(U)}}),th=K(")",{expectNext:function(t){return t===te||t===tm||t===tf||t===th},updateContext:function(){if(this.curContext()!==U)throw this.unexpect();this.state.context.pop()}}),tf=K(",",{expectNext:function(t){return t===J||t===tu||t===ts||t===ti}}),tp=K("ignore",{expectNext:function(t){return t===tl},expectPrev:function(t){return t==tu}}),td=K("expandTok",{expectNext:function(t){return t===te||t===tm||t===tf||t===th}}),tm=K("eof"),tg=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ty=function(t,e){if(String.fromCharCode)return t.codePointAt(e);var n=t.charCodeAt(e);return n<=55295||n>=57344?n:(n<<10)+t.charCodeAt(e+1)-0x35fdc00},tv=function(t,e){var n=Error(t);return Object.assign(n,e),n},tb=function(t,e,n){for(var r="",o=e;o<n;o++){var s=t.charAt(o);"\\"!==s&&(r+=s)}return r},tO=function(){function t(t){this.input=t,this.state={context:[],type:null,pos:0},this.type_=null}return t.prototype.curContext=function(){return this.state.context[this.state.context.length-1]},t.prototype.includesContext=function(t){for(var e=this.state.context.length-1;e>=0;e--)if(this.state.context[e]===t)return!0;return!1},t.prototype.unexpect=function(t){return t=t||this.state.type,tv('Unexpect token "'.concat(t.flag,'" in ').concat(this.state.pos," char."),{pos:this.state.pos})},t.prototype.expectNext=function(t,e){if(t&&t.expectNext&&e&&!t.expectNext.call(this,e))throw tv('Unexpect token "'.concat(e.flag,'" token should not be behind "').concat(t.flag,'" token.(').concat(this.state.pos,"th char)"),{pos:this.state.pos})},t.prototype.expectPrev=function(t,e){if(t&&t.expectPrev&&e&&!t.expectPrev.call(this,e))throw tv('Unexpect token "'.concat(t.flag,'" should not be behind "').concat(e.flag,'"(').concat(this.state.pos,"th char)."),{pos:this.state.pos})},t.prototype.match=function(t){return this.state.type===t},t.prototype.skipSpace=function(){if(this.curContext()!==q)r:for(;this.state.pos<this.input.length;){var t=this.input.charCodeAt(this.state.pos);switch(t){case 32:case 160:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos;break;default:if(t>8&&t<14||t>=5760&&tg.test(String.fromCharCode(t)))++this.state.pos;else break r}}},t.prototype.next=function(){if(this.type_=this.state.type,this.input.length<=this.state.pos)return this.finishToken(tm);this.skipSpace(),this.readToken(this.getCode(),this.state.pos>0?this.getCode(this.state.pos-1):-1/0)},t.prototype.getCode=function(t){return void 0===t&&(t=this.state.pos),ty(this.input,t)},t.prototype.eat=function(t){return!!this.match(t)&&(this.next(),!0)},t.prototype.readKeyWord=function(){for(var t=this.state.pos,e="";;){var n,r=this.getCode(),o=this.getCode(this.state.pos-1);if(this.input.length===this.state.pos){e=tb(this.input,t,this.state.pos+1);break}if((42===(n=r)||46===n||33===n||91===n||93===n||40===n||41===n||44===n||58===n||126===n||123===n||125===n)&&92!==o){e=tb(this.input,t,this.state.pos);break}if(32===r||160===r||10===r||8232===r||8233===r||13===r&&10===this.input.charCodeAt(this.state.pos+1)||r>8&&r<14||r>=5760&&tg.test(String.fromCharCode(r))){e=tb(this.input,t,this.state.pos);break}this.state.pos++}this.finishToken(J,e)},t.prototype.readIgnoreString=function(){for(var t,e=this.state.pos,n="";;){var r=this.getCode();if(this.state.pos>=this.input.length)break;if((91===r||93===r)&&92===t)this.state.pos++,t="";else if(93==r&&93===t){n=this.input.slice(e,this.state.pos-1).replace(/\\([\[\]])/g,"$1"),this.state.pos++;break}else this.state.pos++,t=r}this.finishToken(tp,n),this.finishToken(tl)},t.prototype.finishToken=function(t,e){var n=this.state.type;this.state.type=t,void 0!==e&&(this.state.value=e),this.expectNext(n,t),this.expectPrev(t,n),t.updateContext&&t.updateContext.call(this,n)},t.prototype.readToken=function(t,e){if(92===e)return this.readKeyWord();if(this.input.length<=this.state.pos)this.finishToken(tm);else if(this.curContext()===q)this.readIgnoreString();else if(123===t)this.state.pos++,this.finishToken(ti);else if(125===t)this.state.pos++,this.finishToken(to);else if(42===t){if(this.state.pos++,42===this.getCode())return this.state.pos++,this.finishToken(tt);this.finishToken(Z)}else if(33===t)this.state.pos++,this.finishToken(tn);else if(46===t)this.state.pos++,this.finishToken(te);else if(91===t){if(this.state.pos++,91===this.getCode())return this.state.pos++,this.finishToken(tu);this.finishToken(ts)}else 126===t?(this.state.pos++,this.finishToken(td)):93===t?(this.state.pos++,this.finishToken(ta)):40===t?(this.state.pos++,this.finishToken(tc)):41===t?(this.state.pos++,this.finishToken(th)):44===t?(this.state.pos++,this.finishToken(tf)):58===t?(this.state.pos++,this.finishToken(tr)):this.readKeyWord()},t}(),tw=function(t){return function(e){return e&&e.type===t}},tx=tw("Identifier"),tD=tw("IgnoreExpression"),tk=tw("DotOperator"),tS=tw("WildcardOperator"),tE=tw("ExpandOperator"),tC=tw("GroupExpression"),tT=tw("RangeExpression"),tA=tw("DestructorExpression"),tM=tw("ObjectPattern");tw("ObjectPatternProperty");var tP=tw("ArrayPattern"),tB=Object.prototype.toString,tI=function(t){return function(e){return tB.call(e)==="[object ".concat(t,"]")}},tF=tI("Function"),tN=Array.isArray||tI("Array");tI("Object");var tL=tI("String");tI("Boolean");var t_=tI("Number"),tX=function(t){return"object"==typeof t},tR=tI("RegExp"),tj=function(t){return t_(t)||/^(\d+)(\.\d+)?$/.test(t)},t$=Object.keys,tV=Object.prototype.hasOwnProperty,tH=function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var n=tN(t),r=tN(e),o=void 0,s=void 0,a=void 0;if(n&&r){if((s=t.length)!==e.length)return!1;for(o=s;0!=o--;)if(!tH(t[o],e[o]))return!1;return!0}if(n!==r)return!1;var u=t$(t);if((s=u.length)!==t$(e).length)return!1;for(o=s;0!=o--;)if(!tV.call(e,u[o]))return!1;for(o=s;0!=o--;)if(!tH(t[a=u[o]],e[a]))return!1;return!0}return t!=t&&e!=e},tW=new Map,tz=function(t){return tW.get(t)},tq=function(t,e){tW.set(t,e)},tU=function(t){var e=[];if(tM(t)){var n=0;return t.properties.forEach(function(t){e[n]={path:[]},e[n].key=t.key.value,e[n].path.push(t.key.value),tx(t.value)&&(e[n].key=t.value.value);var r=e[n].path,o=tU(t.value),s=n;o.forEach(function(t){e[s]?(e[s].key=t.key,e[s].path=r.concat(t.path)):e[s]={key:t.key,path:r.concat(t.path)},s++}),s>n?n=s:n++}),e}if(tP(t)){var r=0;return t.elements.forEach(function(t,n){e[r]={path:[]},e[r].key=n,e[r].path.push(n),tx(t)&&(e[r].key=t.value);var o=e[r].path,s=tU(t),a=r;s.forEach(function(t){e[a]?(e[a].key=t.key,e[a].path=o.concat(t.path)):e[a]={key:t.key,path:o.concat(t.path)},a++}),a>r?r=a:r++}),e}return tA(t)?tU(t.value):e},tY=function(t,e,n,r){e.forEach(function(e){var o=e.key,s=e.path;r.setIn([o],t,r.getIn(s,n))})},tG=function(t,e,n){var r,o={};return e.length&&t_(e[0].path[0])&&(o=[]),t=null!=(r=t)?t:{},e.forEach(function(e){var r=e.key,s=e.path;n.setIn(s,o,t[r])}),o},tQ=function(t,e,n){e.forEach(function(e){var r=e.key;n.deleteIn([r],t)})},tK=function(t,e,n,r){return e.every(function(e){var o=e.key;return r.existIn([o],t,n)})};var tJ=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),tZ=function(t,e){void 0===t&&(t=[]);var n=t.length,r=function(o){void 0===o&&(o=0);var s=o<n-1?r(o+1):e;return{type:"Identifier",value:t[o],after:s&&{type:"DotOperator",after:s}}};return r()},t0=function(t,e,n){if(tj(t)&&tj(e)){if("+"===n)return String(Number(t)+Number(e));if("-"===n)return String(Number(t)-Number(e));if("*"===n)return String(Number(t)*Number(e));if("/"===n)return String(Number(t)/Number(e))}else{if("+"===n)return String(t)+String(e);if("-"===n||"*"===n||"/"===n)return"NaN"}return String(Number(e))},t1=function(t){function e(e,n){var r=t.call(this,e)||this;return r.isMatchPattern=!1,r.isWildMatchPattern=!1,r.haveExcludePattern=!1,r.haveRelativePattern=!1,r.base=n,r}return tJ(e,t),e.prototype.parse=function(){var t;return this.data={segments:[]},!this.eat(tm)&&(this.next(),t=this.parseAtom(this.state.type)),this.data.tree=t,t},e.prototype.append=function(t,e){t&&e&&(t.after=e)},e.prototype.parseAtom=function(t){switch(t){case ti:case ts:if(this.includesContext(G)){if(t===ti)return this.parseObjectPattern();return this.parseArrayPattern()}return this.parseDestructorExpression();case J:return this.parseIdentifier();case td:return this.parseExpandOperator();case tt:case Z:return this.parseWildcardOperator();case tu:return this.parseIgnoreExpression();case te:return this.parseDotOperator()}},e.prototype.pushSegments=function(t){this.data.segments.push(t)},e.prototype.parseIdentifier=function(){var t={type:"Identifier",value:this.state.value},e=!this.includesContext(G)&&!this.isMatchPattern&&!this.isWildMatchPattern;if(this.next(),this.includesContext(z)){if(this.state.type!==ta)throw this.unexpect();this.state.context.pop(),this.next()}else e&&this.pushSegments(t.value);if(this.state.type===ts){if(this.next(),this.state.type!==J)throw this.unexpect();this.state.context.push(z);var n=!1;/^\d+$/.test(this.state.value)&&(n=!0);var r=this.state.value;this.pushSegments(n?Number(r):r);var o=this.parseAtom(this.state.type);n&&(o.arrayIndex=!0),this.append(t,o)}else this.append(t,this.parseAtom(this.state.type));return t},e.prototype.parseExpandOperator=function(){var t={type:"ExpandOperator"};return this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.append(t,this.parseAtom(this.state.type)),t},e.prototype.parseWildcardOperator=function(){var t={type:"WildcardOperator"};return this.state.type===tt&&(t.optional=!0),this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.state.type===tc?t.filter=this.parseGroupExpression(t):this.state.type===ts&&(t.filter=this.parseRangeExpression(t)),this.append(t,this.parseAtom(this.state.type)),t},e.prototype.parseDestructorExpression=function(){var t=this,e={type:"DestructorExpression"};this.state.context.push(G);var n=this.state.pos-1;e.value=this.state.type===ti?this.parseObjectPattern():this.parseArrayPattern();var r=this.state.pos;return this.state.context.pop(),e.source=this.input.substring(n,r).replace(/\[\s*([\+\-\*\/])?\s*([^,\]\s]*)\s*\]/,function(e,n,r){if(void 0!==t.relative){if(n)return r?t0(t.relative,r,n):t0(t.relative,1,n);return r?t0(t.relative,r,"+"):String(t.relative)}return e}).replace(/\s*\.\s*/g,"").replace(/\s*/g,""),void 0===this.relative&&tq(e.source,tU(e)),this.relative=void 0,this.pushSegments(e.source),this.next(),this.append(e,this.parseAtom(this.state.type)),e},e.prototype.parseArrayPattern=function(){var t={type:"ArrayPattern",elements:[]};return this.next(),t.elements=this.parseArrayPatternElements(),t},e.prototype.parseArrayPatternElements=function(){for(var t=[];this.state.type!==ta&&this.state.type!==tm;){if(t.push(this.parseAtom(this.state.type)),this.state.type===ta){this.includesContext(G)&&this.next();break}this.next()}return t},e.prototype.parseObjectPattern=function(){var t={type:"ObjectPattern",properties:[]};return this.next(),t.properties=this.parseObjectProperties(),t},e.prototype.parseObjectProperties=function(){for(var t=[];this.state.type!==to&&this.state.type!==tm;){var e={type:"ObjectPatternProperty",key:this.parseAtom(this.state.type)};if(t.push(e),this.state.type===tr&&(this.next(),e.value=this.parseAtom(this.state.type)),this.state.type===to){this.includesContext(G)&&this.next();break}this.next()}return t},e.prototype.parseDotOperator=function(){var t={type:"DotOperator"};if(!this.type_&&this.base){if(this.base.isMatchPattern)throw Error("Base path must be an absolute path.");for(this.data.segments=this.base.toArr();this.state.type===te;)this.relative=this.data.segments.pop(),this.haveRelativePattern=!0,this.next();return tZ(this.data.segments.slice(),this.parseAtom(this.state.type))}return this.next(),this.append(t,this.parseAtom(this.state.type)),t},e.prototype.parseIgnoreExpression=function(){this.next();var t=String(this.state.value).replace(/\s*/g,""),e={type:"IgnoreExpression",value:t};return this.pushSegments(t),this.next(),this.append(e,this.parseAtom(this.state.type)),this.next(),e},e.prototype.parseGroupExpression=function(t){var e={type:"GroupExpression",value:[]};this.isMatchPattern=!0,this.data.segments=[],this.next();r:for(;;)switch(this.state.type){case tf:this.next();break;case tn:e.isExclude=!0,this.haveExcludePattern=!0,this.next();break;case tm:case th:break r;default:e.value.push(this.parseAtom(this.state.type))}return this.next(),this.append(t,this.parseAtom(this.state.type)),e},e.prototype.parseRangeExpression=function(t){var e={type:"RangeExpression"};this.next(),this.isMatchPattern=!0,this.data.segments=[];var n=!1,r=!1;r:for(;;)switch(this.state.type){case tr:r=!0,n=!0,this.next();break;case ta:!r&&!e.end&&(e.end=e.start);break r;case tf:throw this.unexpect();case tm:break r;default:n?e.end=this.parseAtom(this.state.type):e.start=this.parseAtom(this.state.type)}return this.next(),this.append(t,this.parseAtom(this.state.type)),e},e}(tO),t2=function(){function t(t,e){this.tree=t,this.stack=[],this.excluding=!1,this.wildcards=[],this.record=e}return t.prototype.next=function(t,e){if(t.after)return this.matchNode(t.after,e);if(tS(t)&&!t.filter)return!this.excluding&&(0===e||!!t.optional||!!this.take(e));if(e===this.path.length-1)return!!this.take(e);var n=this.wildcards.pop();if(n&&n.after)return this.next(n,e);return!1},t.prototype.shot=function(){var t;(null===(t=this.record)||void 0===t?void 0:t.score)>=0&&this.record.score++},t.prototype.take=function(t){var e;return String(null!==(e=this.path[t])&&void 0!==e?e:"")},t.prototype.matchExcludeIdentifier=function(t,e,n){var r=n===this.path.length-1,o=n<this.path.length;if(!e.after&&(this.excluding=!1),t){if(e.after)return this.next(e,n);if(r)return!1}return!!r||o},t.prototype.matchIdentifier=function(t,e){var n=this.take(e),r=!1;if(tE(t.after))return(0===n.indexOf(t.value)&&(this.shot(),r=!0),this.excluding)?this.matchExcludeIdentifier(r,t.after,e):r&&this.next(t.after,e);return((n===t.value&&(this.shot(),r=!0)),this.excluding)?this.matchExcludeIdentifier(r,t,e):r&&this.next(t,e)},t.prototype.matchIgnoreExpression=function(t,e){return tH(t.value,this.take(e))&&this.next(t,e)},t.prototype.matchDestructorExpression=function(t,e){return tH(t.source,this.take(e))&&this.next(t,e)},t.prototype.matchExpandOperator=function(t,e){return this.next(t,e)},t.prototype.matchWildcardOperator=function(t,e){var n=!1;return t.filter?(this.stack.push(t),n=this.matchNode(t.filter,e),this.stack.pop()):n=this.next(t,e),n},t.prototype.matchGroupExpression=function(t,e){var n,r=this,o=!1;return t.isExclude&&(o=!this.excluding),(Array.isArray(n=t.value)?n:void 0!==n?[n]:[])[o?"every":"some"](function(t){return r.wildcards=r.stack.slice(),r.excluding=o,r.matchNode(t,e)})},t.prototype.matchRangeExpression=function(t,e){var n=Number(this.take(e));if(t.start)return t.end?n>=Number(t.start.value)&&n<=Number(t.end.value):n>=Number(t.start.value);return t.end?n<=Number(t.end.value):(this.wildcards=this.stack.slice(),this.next(t,e))},t.prototype.matchNode=function(t,e){if(void 0===e&&(e=0),tk(t))return this.next(t,e+1);if(tx(t))return this.matchIdentifier(t,e);if(tD(t))return this.matchIgnoreExpression(t,e);else if(tA(t))return this.matchDestructorExpression(t,e);else if(tE(t))return this.matchExpandOperator(t,e);else if(tS(t))return this.matchWildcardOperator(t,e);else if(tC(t))return this.matchGroupExpression(t,e);else if(tT(t))return this.matchRangeExpression(t,e);return!1},t.prototype.match=function(t){return this.path=t,{matched:this.matchNode(this.tree),record:this.record}},t.matchSegments=function(t,e,n){if(t.length!==e.length)return{matched:!1,record:n};var r=function(o){void 0===o&&(o=0);var s,a,u=(s=t[o],a=e[o],(s="symbol"==typeof s?s:"".concat(s))===(a="symbol"==typeof a?a:"".concat(a)));return(null==n?void 0:n.score)>=0&&n.score++,u&&(!(o<t.length-1)||r(o+1))};return{matched:r(),record:n}},t}(),t3=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,s=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a},t5=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(!r&&(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},t4=new Map,t9=Symbol("PATH_MATCHER"),t8=function(t){return null!=t},t6=function(t){return"object"==typeof t||"function"==typeof t},t7=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=tz(r);if(o){e=tG(e,o,{setIn:et,getIn:t7});break}if(!t8(e))return;e=e[r]}return e},et=function(t,e,n){for(var r=0;r<t.length;r++){var o,s=t[r],a=tz(s);if(a){tY(e,a,n,{setIn:et,getIn:t7});break}if(!t8(e)||!t6(e))return;if(tN(e)&&!(tL(o=s)?/^\d+$/.test(o):t_(o)))return;if(!t8(e[s])){if(void 0===n){null===e[s]&&(e[s]=n);return}r<t.length-1&&(e[s]=t_(t[r+1])?[]:{})}r===t.length-1&&(e[s]=n),e=e[s]}},ee=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=tz(r);if(o){tQ(e,o,{setIn:et,getIn:t7,deleteIn:ee});break}if(n===t.length-1&&t8(e)){delete e[r];return}if(!t8(e)||!t6(e)||!tX(e=e[r]))return}},en=Object.prototype.hasOwnProperty,er=function(t,e,n){n instanceof es&&(n=n.length);for(var r=n;r<t.length;r++){var o=t[r],s=tz(o);if(s)return tK(e,s,n,{setIn:et,getIn:t7,deleteIn:ee,existIn:er});if(r===t.length-1)return en.call(e,o);if(!t8(e)||!t6(e)||!tX(e=e[o]))return!1}},ei=function(t,e){if(t instanceof es)return{entire:t.entire,segments:t.segments.slice(),isRegExp:!1,haveRelativePattern:t.haveRelativePattern,isWildMatchPattern:t.isWildMatchPattern,isMatchPattern:t.isMatchPattern,haveExcludePattern:t.haveExcludePattern,tree:t.tree};if(tL(t)){if(!t)return{entire:"",segments:[],isRegExp:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};if(-1===(n=t).indexOf("*")&&-1===n.indexOf("~")&&-1===n.indexOf("[")&&-1===n.indexOf("]")&&-1===n.indexOf(",")&&-1===n.indexOf(":")&&-1===n.indexOf(" ")&&"."!==n[0])return{entire:t,segments:t.split("."),isRegExp:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};var n,r=new t1(t,es.parse(e)),o=r.parse();if(r.isMatchPattern)return{entire:t,segments:[],isRegExp:!1,haveRelativePattern:!1,isWildMatchPattern:r.isWildMatchPattern,haveExcludePattern:r.haveExcludePattern,isMatchPattern:!0,tree:o};var s=r.data.segments;return{entire:s.join("."),segments:s,tree:o,isRegExp:!1,haveRelativePattern:r.haveRelativePattern,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1}}if(tF(t)&&t[t9])return ei(t.path);else if(tN(t))return{entire:t.join("."),segments:t.reduce(function(t,e){return t.concat(eo(e))},[]),isRegExp:!1,haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};else if(tR(t))return{entire:t,segments:[],isRegExp:!0,haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!0};else return{entire:"",isRegExp:!1,segments:void 0!==t?[t]:[],haveRelativePattern:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1}},eo=function(t){if(tL(t)){t=t.replace(/\s*/g,"");try{var e=ei(t),n=e.segments;return e.isMatchPattern?t:n}catch(t){}}else if(t instanceof es)return t.segments;return t},es=function(){function t(e,n){var r=this;this.concat=function(){for(var e,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r.isMatchPattern||r.isRegExp)throw Error("".concat(r.entire," cannot be concat"));var s=new t("");return s.segments=(e=r.segments).concat.apply(e,t5([],t3(n.map(function(t){return eo(t)})),!1)),s.entire=s.segments.join("."),s},this.slice=function(e,n){if(r.isMatchPattern||r.isRegExp)throw Error("".concat(r.entire," cannot be slice"));var o=new t("");return o.segments=r.segments.slice(e,n),o.entire=o.segments.join("."),o},this.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.concat.apply(r,t5([],t3(t),!1))},this.pop=function(){if(r.isMatchPattern||r.isRegExp)throw Error("".concat(r.entire," cannot be pop"));return new t(r.segments.slice(0,r.segments.length-1))},this.splice=function(e,n){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];if(r.isMatchPattern||r.isRegExp)throw Error("".concat(r.entire," cannot be splice"));o=o.reduce(function(t,e){return t.concat(eo(e))},[]);var a=r.segments.slice();return a.splice.apply(a,t5([e,n],t3(o),!1)),new t(a)},this.forEach=function(t){if(r.isMatchPattern||r.isRegExp)throw Error("".concat(r.entire," cannot be each"));r.segments.forEach(t)},this.map=function(t){if(r.isMatchPattern||r.isRegExp)throw Error("".concat(r.entire," cannot be map"));return r.segments.map(t)},this.reduce=function(t,e){if(r.isMatchPattern||r.isRegExp)throw Error("".concat(r.entire," cannot be reduce"));return r.segments.reduce(t,e)},this.parent=function(){return r.slice(0,r.length-1)},this.includes=function(e){var n=t.parse(e),o=n.entire,s=n.segments,a=n.isMatchPattern,u=r.includesCache.get(o);if(void 0!==u)return u;var l=function(t){return r.includesCache.set(o,t),t};if(r.isMatchPattern){if(!a)return l(r.match(s));throw Error("".concat(r.entire," cannot be used to match ").concat(o))}if(a)throw Error("".concat(r.entire," cannot be used to match ").concat(o));if(s.length>r.segments.length)return l(!1);for(var c=0;c<s.length;c++)if(!tH(String(s[c]),String(r.segments[c])))return l(!1);return l(!0)},this.transform=function(t,e){if(!tF(e))return"";if(r.isMatchPattern)throw Error("".concat(r.entire," cannot be transformed"));var n=new RegExp(t),o=r.segments.filter(function(t){return n.test(t)});return e.apply(void 0,t5([],t3(o),!1))},this.match=function(e){var n,o,s=t.parse(e),a=r.matchCache.get(s.entire);if(void 0!==a)return a.record&&void 0!==a.record.score&&(r.matchScore=a.record.score),a.matched;var u=function(t){return r.matchCache.set(s.entire,t),t};if(s.isMatchPattern){if(!r.isMatchPattern)return r.matchScore=0,u(s.match(r.segments));throw Error("".concat(s.entire," cannot match ").concat(r.entire))}if(r.isMatchPattern){if(r.isRegExp)try{return null===(o=null===(n=r.entire)||void 0===n?void 0:n.test)||void 0===o?void 0:o.call(n,s.entire)}finally{r.entire.lastIndex=0}var l={score:0},c=u(new t2(r.tree,l).match(s.segments));return r.matchScore=l.score,c.matched}var l={score:0},c=u(t2.matchSegments(r.segments,s.segments,l));return r.matchScore=l.score,c.matched},this.matchAliasGroup=function(e,n){var o=t.parse(e),s=t.parse(n),a=r.match(o),u=r.matchScore,l=r.match(s),c=r.matchScore;return r.haveExcludePattern?u>=c?a:l:a||l},this.existIn=function(t,e){return void 0===e&&(e=0),er(r.segments,t,e)},this.getIn=function(t){return t7(r.segments,t)},this.setIn=function(t,e){return et(r.segments,t,e),t},this.deleteIn=function(t){return ee(r.segments,t),t},this.ensureIn=function(t,e){var n=r.getIn(t);return void 0===n?(r.setIn(t,e),r.getIn(t)):n};var o=ei(e,n),s=o.tree,a=o.segments,u=o.entire,l=o.isRegExp,c=o.isMatchPattern,h=o.isWildMatchPattern,f=o.haveRelativePattern,p=o.haveExcludePattern;this.entire=u,this.segments=a,this.isMatchPattern=c,this.isWildMatchPattern=h,this.haveRelativePattern=f,this.isRegExp=l,this.haveExcludePattern=p,this.tree=s,this.matchCache=new Map,this.includesCache=new Map}return t.prototype.toString=function(){var t;return null===(t=this.entire)||void 0===t?void 0:t.toString()},t.prototype.toArr=function(){var t;return null===(t=this.segments)||void 0===t?void 0:t.slice()},Object.defineProperty(t.prototype,"length",{get:function(){return this.segments.length},enumerable:!1,configurable:!0}),t.match=function(e){var n=t.parse(e),r=function(t){return n.match(t)};return r[t9]=!0,r.path=n,r},t.isPathPattern=function(t){return!!(tL(t)||tN(t)||tR(t)||tF(t)&&t[t9])},t.transform=function(e,n,r){return t.parse(e).transform(n,r)},t.parse=function(e,n){if(void 0===e&&(e=""),e instanceof t){var r=t4.get(e.entire);return r?r:(t4.set(e.entire,e),e)}if(e&&e[t9])return t.parse(e.path);var o=n?t.parse(n):"",s="".concat(e,":").concat(o),r=t4.get(s);return r?r:(e=new t(e,n),t4.set(s,e),e)},t.getIn=function(e,n){return t.parse(n).getIn(e)},t.setIn=function(e,n,r){return t.parse(n).setIn(e,r)},t.deleteIn=function(e,n){return t.parse(n).deleteIn(e)},t.existIn=function(e,n,r){return t.parse(n).existIn(e,r)},t.ensureIn=function(e,n,r){return t.parse(n).ensureIn(e,r)},t}(),ea=function(){var t=this;this.subscribers={index:0},this.subscribe=function(e){if(u(e)){var n=t.subscribers.index+1;return t.subscribers[n]=e,t.subscribers.index++,n}},this.unsubscribe=function(e){t.subscribers[e]?delete t.subscribers[e]:!e&&(t.subscribers={index:0})},this.notify=function(e,n){if(!(t.subscription&&t.subscription&&u(t.subscription.notify)&&!1===t.subscription.notify.call(t,e)))!n&&y(t.subscribers,function(n){if(u(n)){var r;n((r=e,t.subscription&&u(t.subscription.filter)?t.subscription.filter.call(t,r):r))}})}};function eu(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){return!!("$$typeof"in t&&"_owner"in t||t._isAMomentObject||t._isJSONSchemaObject||u(t.toJS)||u(t.toJSON))||!c(t)}(t)}function el(t,e){var n;if(!1!==e.clone&&(null===(n=e.isMergeableObject)||void 0===n?void 0:n.call(e,t)))return ep(Array.isArray(t)?[]:{},t,e);return t}function ec(t,e,n){return t.concat(e).map(function(t){return el(t,n)})}function eh(t){var e;if(!P(t))return[];return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]))}function ef(t,e){try{return e in t}catch(t){return!1}}function ep(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||ec,n.isMergeableObject=n.isMergeableObject||eu,n.cloneUnlessOtherwiseSpecified=el;var r,o,s,a,u=Array.isArray(e),l=Array.isArray(t);if(u!==l)return el(e,n);if(u)return n.arrayMerge(t,e,n);return r=t,o=e,a=(s=n).assign&&r||{},s.isMergeableObject(r)?(!s.assign&&eh(r).forEach(function(t){a[t]=el(r[t],s)}),eh(o).forEach(function(t){var e,n;if(!ef(e=r,n=t)||!!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n)))B(r[t])?a[t]=o[t]:ef(r,t)&&s.isMergeableObject(o[t])?a[t]=(function(t,e){if(!e.customMerge)return ep;var n=e.customMerge(t);return"function"==typeof n?n:ep})(t,s)(r[t],o[t],s):a[t]=el(o[t],s)}),a):r}for(var ed=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=function(t,e){if(!P(e))return t;if(!P(t))return e;var n="object"==typeof t,r="object"==typeof e,o="function"==typeof t,s="function"==typeof e;if(!n&&!o)return e;if(!r&&!s)return t;var a=function(){return o?t():t},u=function(){return s?e():e},l=function(t,e){var n=u();return e in n?n[e]:a()[e]};return new Proxy(Object.create(null),{set:function(t,e,n){var r=u(),o=a();return e in r?r[e]=n:e in o?o[e]=n:r[e]=n,!0},get:l,ownKeys:function(){var t=u(),e=a(),n=Object.keys(e);for(var r in t)!(r in e)&&n.push(r);return n},getPrototypeOf:function(){return Object.getPrototypeOf({})},getOwnPropertyDescriptor:function(t,e){return{value:l(t,e),enumerable:!0,configurable:!0}},has:function(t,e){return!!(e in u()||e in a())||!1}})};return e.reduce(function(t,e){return r(t,e)},t)},em=ep,eg=function(t){if((null==t?void 0:t._owner)&&(null==t?void 0:t.$$typeof)||(null==t?void 0:t._isAMomentObject)||(null==t?void 0:t._isJSONSchemaObject)||(null==t?void 0:t.toJS)||(null==t?void 0:t.toJSON))return!0},ey=function(t){return!eg(t)&&"object"==typeof t},ev=36,eb="";ev--;)eb+=ev.toString(36);function eO(t){for(var e="",n=t||11;n--;)e+=eb[36*Math.random()|0];return e}},749518:function(t,e,n){"use strict";n.d(e,{Z:()=>h});var r,o=n("130001"),s=n("455069"),a=n("537845"),u=n("136515"),l=n("750274"),c=n("801547");var h=(r=function(){return c.Z?localStorage:void 0},function(t,e){void 0===e&&(e={});var n,c=e.onError,h=void 0===c?function(t){console.error(t)}:c;try{n=r()}catch(t){h(t)}function f(){try{var r,o=null==n?void 0:n.getItem(t);if(o){;return r=o,(null==e?void 0:e.deserializer)?null==e?void 0:e.deserializer(r):JSON.parse(r)}}catch(t){h(t)}return(0,l.mf)(null==e?void 0:e.defaultValue)?null==e?void 0:e.defaultValue():null==e?void 0:e.defaultValue}var p=(0,o.CR)((0,s.useState)(function(){return f()}),2),d=p[0],m=p[1];return(0,u.Z)(function(){m(f())},[t]),[d,(0,a.Z)(function(r){var o,s=(0,l.mf)(r)?r(d):r;if(m(s),(0,l.G7)(s))null==n||n.removeItem(t);else try{;null==n||n.setItem(t,(o=s,(null==e?void 0:e.serializer)?null==e?void 0:e.serializer(o):JSON.stringify(o)))}catch(t){console.error(t)}})]})},371240:function(t){var e,n;e=globalThis,n=()=>(()=>{"use strict";var t,e,n,r={949:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(515),o=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t,e;if((null!==(t=this.expression)&&void 0!==t?t:"").startsWith("@")){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},t.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"}[t];if(!e)throw Error("Unknown special expression.");return e},t.prototype.extractParts=function(t){if(!this.expression)throw Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),n=0;n<e.length;n++)if(e[n].includes(",")){var r=e[n].split(",").map(function(t){return t.trim()}).filter(function(t){return""!==t}).map(function(t){return isNaN(Number(t))?t:Number(t)}).filter(function(t){return null!==t&&""!==t});0===r.length&&r.push("*"),r.sort(function(t,e){return null!==t&&null!==e?t-e:0}),e[n]=r.map(function(t){return null!==t?t.toString():""}).join(",")}if(e.length<5)throw Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length)/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("");else if(e.length>7)throw Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)}),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)});var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in o)t[4]=t[4].replace(RegExp(s,"gi"),o[s].toString());"0"==t[0]&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter(function(t){return""!==t}).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var u=null;switch(a){case 4:u="12";break;case 5:u="6";break;case 6:u="9999";break;default:u=null}if(null!==u){var l=t[a].split("/");t[a]="".concat(l[0],"-").concat(u,"/").concat(l[1])}}},t.prototype.validate=function(t){var e="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(t[0],e),this.validateOnlyExpectedCharactersFound(t[1],e),this.validateOnlyExpectedCharactersFound(t[2],e),this.validateOnlyExpectedCharactersFound(t[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(t[4],e),this.validateOnlyExpectedCharactersFound(t[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(t[6],e),this.validateAnyRanges(t)},t.prototype.validateAnyRanges=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.validateOnlyExpectedCharactersFound=function(t,e){var n=t.match(RegExp("[^".concat(e,"]+"),"gi"));if(n&&n.length)throw Error("Expression contains invalid values: '".concat(n.toString(),"'"))},t}();e.CronParser=o},333:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(823),o=n(949),s=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=[,,,,,],!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,s=r.verbose,a=r.dayOfWeekStartIndexZero,u=r.monthStartIndexZero,l=r.use24HourTimeFormat,c=r.locale,h=r.tzOffset;return new t(e,{throwExceptionOnParseError:void 0===o||o,verbose:void 0!==s&&s,dayOfWeekStartIndexZero:void 0===a||a,monthStartIndexZero:void 0!==u&&u,use24HourTimeFormat:l,locale:void 0===c?null:c,tzOffset:void 0===h?0:h}).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t="";try{var e=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=e.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),s=this.getMonthDescription(),a=this.getDayOfWeekDescription(),u=this.getYearDescription();t+=n+r+a+s+u,t=(t=this.transformVerbosity(t,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(this.options.throwExceptionOnParseError)throw"".concat(e);t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return t},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],s="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(o,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters)){if(!(!e&&n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,t.specialCharacters)){if(!e&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=o.split(",");s+=this.i18n.at();for(var u=0;u<a.length;u++)s+=" ",s+=this.formatTime(a[u],n,""),u<a.length-2&&(s+=","),u==a.length-2&&(s+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),c=this.getMinutesDescription(),h=this.getHoursDescription();if((s+=l)&&c&&(s+=", "),s+=c,c===h)return s;s&&h&&(s+=", "),s+=h}}else{var f=n.split("-");s+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,f[0],""),this.formatTime(o,f[1],""))}}else s+=this.i18n.atSpace()+this.formatTime(o,n,e);return s},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(t){return t},function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)},function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()},function(e){return"0"==e?"":20>parseInt(e)?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)})},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(t){return t},function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)},function(e){return t.i18n.minutesX0ThroughX1PastTheHour()},function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():20>parseInt(r)?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(e){return t.i18n.atX0MinutesPastTheHour(r)}})},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=this.getSegmentDescription(e,this.i18n.everyHour(),function(e){return t.formatTime(e,"0","")},function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)},function(e){return t.i18n.betweenX0AndX1()},function(e){return t.i18n.atX0()});if(n&&e.includes("-")&&"0"!=this.expressionParts[1]){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var s=o[o.length-1].index;n=n.substring(0,s)+":59"+n.substring(s+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek(),n=null;return n="*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,r){var o=n;n.indexOf("#")>-1?o=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(o=o.replace("L",""));var s=parseInt(o);if(t.options.tzOffset){var a=parseInt(t.expressionParts[2])+(t.options.tzOffset?t.options.tzOffset:0);a>=24?s++:a<0&&s--,s>6?s=0:s<0&&(s=6)}var u=t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[s]:e[s];if(n.indexOf("#")>-1){var l=null,c=n.substring(n.indexOf("#")+1),h=n.substring(0,n.indexOf("#"));switch(c){case"1":l=t.i18n.first(h);break;case"2":l=t.i18n.second(h);break;case"3":l=t.i18n.third(h);break;case"4":l=t.i18n.fourth(h);break;case"5":l=t.i18n.fifth(h)}u=l+" "+u}return u},function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)},function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)},function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1),o=e.substring(0,e.indexOf("#"));n=t.i18n.commaOnThe(r,o).trim()+t.i18n.spaceX0OfTheMonth()}else n=e.indexOf("L")>-1?t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L","")):"*"!=t.expressionParts[3]?t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e);return n})},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]},function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)},function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()},function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()})},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var s=parseInt(o[0].replace("W","")),a=1==s?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var u=n.match(/L-(\d{1,2})/);if(u){var l=u[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(l),l)}else{if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e},function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)},function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)},function(e){return t.i18n.commaOnDayX0OfTheMonth(e)})}}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t},function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)},function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()},function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()})},t.prototype.getSegmentDescription=function(t,e,n,o,s,a){var u=null,l=t.indexOf("/")>-1,c=t.indexOf("-")>-1,h=t.indexOf(",")>-1;if(t){if("*"===t)u=e;else if(l||c||h){if(h){for(var f=t.split(","),p="",d=0;d<f.length;d++)if(d>0&&f.length>2&&(p+=",",d<f.length-1&&(p+=" ")),d>0&&f.length>1&&(d==f.length-1||2==f.length)&&(p+="".concat(this.i18n.spaceAnd()," ")),f[d].indexOf("/")>-1||f[d].indexOf("-")>-1){var m=f[d].indexOf("-")>-1&&-1==f[d].indexOf("/"),g=this.getSegmentDescription(f[d],e,n,o,m?this.i18n.commaX0ThroughX1:s,a);m&&(g=g.replace(", ","")),p+=g}else l?p+=this.getSegmentDescription(f[d],e,n,o,s,a):p+=n(f[d]);u=l?p:r.StringUtilities.format(a(t),p)}else if(l){var f=t.split("/");if(u=r.StringUtilities.format(o(f[1]),f[1]),f[0].indexOf("-")>-1){var y=this.generateRangeSegmentDescription(f[0],s,n);0!=y.indexOf(", ")&&(u+=", "),u+=y}else if(-1==f[0].indexOf("*")){var b=r.StringUtilities.format(a(f[0]),n(f[0]));b=b.replace(", ",""),u+=r.StringUtilities.format(this.i18n.commaStartingX0(),b)}}else c&&(u=this.generateRangeSegmentDescription(t,s,n))}else u=r.StringUtilities.format(a(t),n(t))}else u="";return u},t.prototype.generateRangeSegmentDescription=function(t,e,n){var o="",s=t.split("-"),a=n(s[0],1),u=n(s[1],2),l=e(t);return o+=r.StringUtilities.format(l,a,u)},t.prototype.formatTime=function(t,e,n){var r=0,o=0;this.options.tzOffset&&(r=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),0!=(o=parseFloat((this.options.tzOffset%1).toFixed(2)))&&(o*=60));var s=parseInt(t)+r,a=parseInt(e)+o;a>=60?(a-=60,s+=1):a<0&&(a+=60,s-=1),s>=24?s-=24:s<0&&(s=24+s);var u="",l=!1;!this.options.use24HourTimeFormat&&(u=(l=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(s)," "):" ".concat(this.getPeriod(s)),s>12&&(s-=12),0===s&&(s=12));var c="";return n&&(c=":".concat(("00"+n).substring(n.length))),"".concat(l?u:"").concat(("00"+s.toString()).substring(s.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(c).concat(l?"":u)},t.prototype.transformVerbosity=function(t,e){return!e&&(t=(t=(t=(t=t.replace(RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=s},99:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bg=e.my=e.vi=e.ar=e.th=e.af=e.hu=e.be=e.ca=e.fa=e.sw=e.sl=e.fi=e.sk=e.cs=e.he=e.ja=e.zh_TW=e.zh_CN=e.uk=e.tr=e.ru=e.ro=e.pt_PT=e.pt_BR=e.pl=e.sv=e.nb=e.nl=e.ko=e.id=e.it=e.fr=e.es=e.de=e.da=e.en=void 0;var r=n(486);Object.defineProperty(e,"en",{enumerable:!0,get:function(){return r.en}});var o=n(506);Object.defineProperty(e,"da",{enumerable:!0,get:function(){return o.da}});var s=n(230);Object.defineProperty(e,"de",{enumerable:!0,get:function(){return s.de}});var a=n(153);Object.defineProperty(e,"es",{enumerable:!0,get:function(){return a.es}});var u=n(517);Object.defineProperty(e,"fr",{enumerable:!0,get:function(){return u.fr}});var l=n(488);Object.defineProperty(e,"it",{enumerable:!0,get:function(){return l.it}});var c=n(72);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return c.id}});var h=n(839);Object.defineProperty(e,"ko",{enumerable:!0,get:function(){return h.ko}});var f=n(647);Object.defineProperty(e,"nl",{enumerable:!0,get:function(){return f.nl}});var p=n(957);Object.defineProperty(e,"nb",{enumerable:!0,get:function(){return p.nb}});var d=n(544);Object.defineProperty(e,"sv",{enumerable:!0,get:function(){return d.sv}});var m=n(905);Object.defineProperty(e,"pl",{enumerable:!0,get:function(){return m.pl}});var g=n(556);Object.defineProperty(e,"pt_BR",{enumerable:!0,get:function(){return g.pt_BR}});var y=n(163);Object.defineProperty(e,"pt_PT",{enumerable:!0,get:function(){return y.pt_PT}});var b=n(614);Object.defineProperty(e,"ro",{enumerable:!0,get:function(){return b.ro}});var O=n(892);Object.defineProperty(e,"ru",{enumerable:!0,get:function(){return O.ru}});var w=n(631);Object.defineProperty(e,"tr",{enumerable:!0,get:function(){return w.tr}});var x=n(225);Object.defineProperty(e,"uk",{enumerable:!0,get:function(){return x.uk}});var D=n(571);Object.defineProperty(e,"zh_CN",{enumerable:!0,get:function(){return D.zh_CN}});var k=n(983);Object.defineProperty(e,"zh_TW",{enumerable:!0,get:function(){return k.zh_TW}});var S=n(904);Object.defineProperty(e,"ja",{enumerable:!0,get:function(){return S.ja}});var E=n(82);Object.defineProperty(e,"he",{enumerable:!0,get:function(){return E.he}});var C=n(651);Object.defineProperty(e,"cs",{enumerable:!0,get:function(){return C.cs}});var T=n(923);Object.defineProperty(e,"sk",{enumerable:!0,get:function(){return T.sk}});var A=n(964);Object.defineProperty(e,"fi",{enumerable:!0,get:function(){return A.fi}});var M=n(474);Object.defineProperty(e,"sl",{enumerable:!0,get:function(){return M.sl}});var P=n(799);Object.defineProperty(e,"sw",{enumerable:!0,get:function(){return P.sw}});var B=n(804);Object.defineProperty(e,"fa",{enumerable:!0,get:function(){return B.fa}});var I=n(845);Object.defineProperty(e,"ca",{enumerable:!0,get:function(){return I.ca}});var F=n(348);Object.defineProperty(e,"be",{enumerable:!0,get:function(){return F.be}});var N=n(194);Object.defineProperty(e,"hu",{enumerable:!0,get:function(){return N.hu}});var L=n(810);Object.defineProperty(e,"af",{enumerable:!0,get:function(){return L.af}});var _=n(33);Object.defineProperty(e,"th",{enumerable:!0,get:function(){return _.th}});var X=n(574);Object.defineProperty(e,"ar",{enumerable:!0,get:function(){return X.ar}});var R=n(292);Object.defineProperty(e,"vi",{enumerable:!0,get:function(){return R.vi}});var j=n(919);Object.defineProperty(e,"my",{enumerable:!0,get:function(){return j.my}});var $=n(622);Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return $.bg}})},420:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.allLocalesLoader=void 0;var r=n(99),o=function(){function t(){}return t.prototype.load=function(t){for(var e in r)r.hasOwnProperty(e)&&(t[e]=new r[e])},t}();e.allLocalesLoader=o},810:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.af=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return", jaar %s na %s"},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Daar was 'n fout om die tydsuitdrukking the genereer. Raadpleeg asb die uitdrukking formaat."},t.prototype.everyMinute=function(){return"elke minuut"},t.prototype.everyHour=function(){return"elke uur"},t.prototype.atSpace=function(){return"Teen "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Elke minuut tussen %s en %s"},t.prototype.at=function(){return"Teen"},t.prototype.spaceAnd=function(){return" en"},t.prototype.everySecond=function(){return"elke sekonde"},t.prototype.everyX0Seconds=function(){return"elke %s sekonde"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekonde %s deur na %s na die minuut"},t.prototype.atX0SecondsPastTheMinute=function(){return"teen %s sekondes na die minuut"},t.prototype.everyX0Minutes=function(){return"elke %s minute"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute %s deur na %s na die uur"},t.prototype.atX0MinutesPastTheHour=function(){return"teen %s minute na die uur"},t.prototype.everyX0Hours=function(){return"elke %s ure"},t.prototype.betweenX0AndX1=function(){return"tussen %s en %s"},t.prototype.atX0=function(){return"teen %s"},t.prototype.commaEveryDay=function(){return", elke dag"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", elke %s dae van die week"},t.prototype.commaX0ThroughX1=function(){return", %s deur na %s"},t.prototype.commaAndX0ThroughX1=function(){return", en %s deur na %s"},t.prototype.first=function(){return"eerste"},t.prototype.second=function(){return"tweede"},t.prototype.third=function(){return"derde"},t.prototype.fourth=function(){return"vierde"},t.prototype.fifth=function(){return"vyfde"},t.prototype.commaOnThe=function(){return", op die "},t.prototype.spaceX0OfTheMonth=function(){return" %s van die maand"},t.prototype.lastDay=function(){return"die laaste dag"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", op die laaste %s van die maand"},t.prototype.commaOnlyOnX0=function(){return", net op %s"},t.prototype.commaAndOnX0=function(){return", en op %s"},t.prototype.commaEveryX0Months=function(){return", elke %s maande"},t.prototype.commaOnlyInX0=function(){return", net in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", op die laaste dag van die maand"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", op die laaste weeksdag van die maand"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dae voor die laaste dag van die maand"},t.prototype.firstWeekday=function(){return"eerste weeksdag"},t.prototype.weekdayNearestDayX0=function(){return"weeksdag naaste aan dag %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", op die %s van die maande"},t.prototype.commaEveryX0Days=function(){return", elke %s dae"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tussen dag %s en %s van die maand"},t.prototype.commaOnDayX0OfTheMonth=function(){return", op dag %s van die maand"},t.prototype.commaEveryHour=function(){return", elke uur"},t.prototype.commaEveryX0Years=function(){return", elke %s jare"},t.prototype.commaStartingX0=function(){return", beginnende %s"},t.prototype.daysOfTheWeek=function(){return["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},t.prototype.monthsOfTheYear=function(){return["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},t}();e.af=n},574:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ar=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"حدث خطأ في إنشاء وصف المصطلح٠ تأكد من تركيب مصطلح الكرون"},t.prototype.everyMinute=function(){return"كل دقيقة"},t.prototype.everyHour=function(){return"كل ساعة"},t.prototype.atSpace=function(){return" "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"كل دقيقة بين %s و %s"},t.prototype.at=function(){return""},t.prototype.spaceAnd=function(){return" و"},t.prototype.everySecond=function(){return"كل ثانية"},t.prototype.everyX0Seconds=function(){return"كل %s ثواني"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"الثواني %s حتى %s من بداية الدقيقة"},t.prototype.atX0SecondsPastTheMinute=function(){return"الثانية %s من بداية الدقيقة"},t.prototype.everyX0Minutes=function(){return"كل %s دقائق"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"الدقائق %s حتى %s من بداية الساعة"},t.prototype.atX0MinutesPastTheHour=function(){return"الدقيقة %s من بداية الساعة"},t.prototype.everyX0Hours=function(){return"كل %s ساعات"},t.prototype.betweenX0AndX1=function(){return"بين %s و %s"},t.prototype.atX0=function(){return"%s"},t.prototype.commaEveryDay=function(){return"، كل يوم"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return"، كل %s من أيام الأسبوع"},t.prototype.commaX0ThroughX1=function(){return"، %s حتى %s"},t.prototype.commaAndX0ThroughX1=function(){return"، و %s حتى %s"},t.prototype.first=function(){return"أول"},t.prototype.second=function(){return"ثاني"},t.prototype.third=function(){return"ثالث"},t.prototype.fourth=function(){return"رابع"},t.prototype.fifth=function(){return"خامس"},t.prototype.commaOnThe=function(){return"، في ال"},t.prototype.spaceX0OfTheMonth=function(){return" %s من الشهر"},t.prototype.lastDay=function(){return"اليوم الأخير"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return"، في اخر %s من الشهر"},t.prototype.commaOnlyOnX0=function(){return"، %s فقط"},t.prototype.commaAndOnX0=function(){return"، وفي %s"},t.prototype.commaEveryX0Months=function(){return"، كل %s أشهر"},t.prototype.commaOnlyInX0=function(){return"، %s فقط"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return"، في اخر يوم من الشهر"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return"، في اخر يوم أسبوع من الشهر"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return"، %s أيام قبل اخر يوم من الشهر"},t.prototype.firstWeekday=function(){return"اول ايام الأسبوع"},t.prototype.weekdayNearestDayX0=function(){return"يوم الأسبوع الأقرب ليوم %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return"، في %s من الشهر"},t.prototype.commaEveryX0Days=function(){return"، كل %s أيام"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return"، بين يوم %s و %s من الشهر"},t.prototype.commaOnDayX0OfTheMonth=function(){return"، في اليوم %s من الشهر"},t.prototype.commaEveryHour=function(){return"، كل ساعة"},t.prototype.commaEveryX0Years=function(){return"، كل %s سنوات"},t.prototype.commaStartingX0=function(){return"، بداية من %s"},t.prototype.daysOfTheWeek=function(){return["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},t.prototype.monthsOfTheYear=function(){return["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},t}();e.ar=n},348:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.be=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.everyMinute=function(){return"кожную хвіліну"},t.prototype.everyHour=function(){return"кожную гадзіну"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Адбылася памылка падчас генерацыі апісання выразы. Праверце сінтаксіс крон-выразы."},t.prototype.atSpace=function(){return"У "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Кожную хвіліну з %s да %s"},t.prototype.at=function(){return"У"},t.prototype.spaceAnd=function(){return" і"},t.prototype.everySecond=function(){return"кожную секунду"},t.prototype.everyX0Seconds=function(){return"кожныя %s секунд"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды з %s па %s"},t.prototype.atX0SecondsPastTheMinute=function(){return"у %s секунд"},t.prototype.everyX0Minutes=function(){return"кожныя %s хвілін"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"хвіліны з %s па %s"},t.prototype.atX0MinutesPastTheHour=function(){return"у %s хвілін"},t.prototype.everyX0Hours=function(){return"кожныя %s гадзін"},t.prototype.betweenX0AndX1=function(){return"з %s па %s"},t.prototype.atX0=function(){return"у %s"},t.prototype.commaEveryDay=function(){return", кожны дзень"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожныя %s дзён тыдня"},t.prototype.commaX0ThroughX1=function(){return", %s па %s"},t.prototype.commaAndX0ThroughX1=function(){return", і %s па %s"},t.prototype.first=function(){return"першы"},t.prototype.second=function(){return"другі"},t.prototype.third=function(){return"трэці"},t.prototype.fourth=function(){return"чацвёрты"},t.prototype.fifth=function(){return"пяты"},t.prototype.commaOnThe=function(){return", у "},t.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},t.prototype.lastDay=function(){return"апошні дзень"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", у апошні %s месяца"},t.prototype.commaOnlyOnX0=function(){return", толькі ў %s"},t.prototype.commaAndOnX0=function(){return", і ў %s"},t.prototype.commaEveryX0Months=function(){return", кожныя %s месяцаў"},t.prototype.commaOnlyInX0=function(){return", толькі ў %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", у апошні дзень месяца"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", у апошні будні дзень месяца"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s дзён да апошняга дня месяца"},t.prototype.firstWeekday=function(){return"першы будны дзень"},t.prototype.weekdayNearestDayX0=function(){return"найбліжэйшы будны дзень да %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", у %s месяцы"},t.prototype.commaEveryX0Days=function(){return", кожныя %s дзён"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", з %s па %s лік месяца"},t.prototype.commaOnDayX0OfTheMonth=function(){return", у %s лік месяца"},t.prototype.commaEveryX0Years=function(){return", кожныя %s гадоў"},t.prototype.commaStartingX0=function(){return", пачатак %s"},t.prototype.daysOfTheWeek=function(){return["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},t.prototype.monthsOfTheYear=function(){return["студзень","люты","сакавік","красавік","травень","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},t}();e.be=n},622:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bg=void 0;var n=function(t,e){return(null!=t?Number(t):0)<2?e[0]:e[1]},r=function(t,e){return e[[1,0,0,1,0,0,1][null!=t?Number(t):0]]},o=function(t,e){var n=null!=t?Number(t):1;return["в","р","т"][n=Math.max(Math.min(n<10||n>20&&n%10!=0?n%10:3,3),1)-1]+["и","а","о"][["м","ж","ср"].indexOf(e)]},s=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"всяка минута"},t.prototype.everyHour=function(){return"всеки час"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Възникна грешка при генериране на описанието на израза. Проверете синтаксиса на cron израза."},t.prototype.atSpace=function(){return"В "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Всяка минута от %s до %s"},t.prototype.at=function(){return"В"},t.prototype.spaceAnd=function(){return" и"},t.prototype.everySecond=function(){return"всяка секунда"},t.prototype.everyX0Seconds=function(t){return"всеки %s секунди"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунди от %s до %s"},t.prototype.atX0SecondsPastTheMinute=function(t){return"%s-".concat(o(t,"ж")," секунда")},t.prototype.everyX0Minutes=function(t){return"всеки %s минути"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"минути от %s до %s"},t.prototype.atX0MinutesPastTheHour=function(t){return"%s-".concat(o(t,"ж")," минутa")},t.prototype.everyX0Hours=function(t){return"всеки %s часа"},t.prototype.betweenX0AndX1=function(){return"от %s до %s"},t.prototype.atX0=function(){return"в %s"},t.prototype.commaEveryDay=function(){return", всеки ден"},t.prototype.commaEveryX0DaysOfTheWeek=function(t){return n(t,[", всеки %s ден от седмицата",", всеки %s дена от седмицата"])},t.prototype.commaX0ThroughX1=function(t){return", от %s до %s"},t.prototype.commaAndX0ThroughX1=function(t){return" и от %s до %s"},t.prototype.first=function(t){return r(t,["первият","первата"])},t.prototype.second=function(t){return r(t,["вторият","втората"])},t.prototype.third=function(t){return r(t,["третият","третата"])},t.prototype.fourth=function(t){return r(t,["четвертият","четвертата"])},t.prototype.fifth=function(t){return r(t,["петият","петата"])},t.prototype.commaOnThe=function(t){return", "},t.prototype.spaceX0OfTheMonth=function(){return" %s на месеца"},t.prototype.lastDay=function(){return"последният ден"},t.prototype.commaOnTheLastX0OfTheMonth=function(t){return r(t,[", в последният %s от месеца",", в последната %s отмесеца"])},t.prototype.commaOnlyOnX0=function(t){return", %s"},t.prototype.commaAndOnX0=function(){return" и %s"},t.prototype.commaEveryX0Months=function(t){return" всеки %s месеца"},t.prototype.commaOnlyInMonthX0=function(){return", %s"},t.prototype.commaOnlyInX0=function(){return", в %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последният ден на месеца"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последния делничен ден от месеца"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(t){return n(t,[", %s ден преди края на месеца",", %s дена преди края на месеца"])},t.prototype.firstWeekday=function(){return"първият делничен ден"},t.prototype.weekdayNearestDayX0=function(){return"най-близкият делничен ден до %s число"},t.prototype.commaOnTheX0OfTheMonth=function(){return", на %s число от месеца"},t.prototype.commaEveryX0Days=function(t){return n(t,[", всеки %s ден",", всеки %s дена"])},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(t){var e,n=null!==(e=null==t?void 0:t.split("-"))&&void 0!==e?e:[];return", от %s-".concat(o(n[0],"ср")," до %s-").concat(o(n[1],"ср")," число на месеца")},t.prototype.commaOnDayX0OfTheMonth=function(t){return", на %s-".concat(o(t,"ср")," число от месеца")},t.prototype.commaEveryX0Years=function(t){return n(t,[", всяка %s година",", всеки %s години"])},t.prototype.commaStartingX0=function(){return", започвайки %s"},t.prototype.daysOfTheWeek=function(){return["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},t.prototype.monthsOfTheYear=function(){return["януари","февруари","март","април","май","юни","юли","август","септевмври","октомври","ноември","декември"]},t}();e.bg=s},845:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ca=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"S'ha produ\xeft un error mentres es generava la descripci\xf3 de l'expressi\xf3. Revisi la sintaxi de la expressi\xf3 de cron."},t.prototype.at=function(){return"A les"},t.prototype.atSpace=function(){return"A les "},t.prototype.atX0=function(){return"a les %s"},t.prototype.atX0MinutesPastTheHour=function(){return"als %s minuts de l'hora"},t.prototype.atX0SecondsPastTheMinute=function(){return"als %s segonds del minut"},t.prototype.betweenX0AndX1=function(){return"entre les %s i les %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre els dies %s i %s del mes"},t.prototype.commaEveryDay=function(){return", cada dia"},t.prototype.commaEveryX0Days=function(){return", cada %s dies"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s dies de la setmana"},t.prototype.commaEveryX0Months=function(){return", cada %s mesos"},t.prototype.commaOnDayX0OfTheMonth=function(){return", el dia %s del mes"},t.prototype.commaOnlyInX0=function(){return", s\xf3lo en %s"},t.prototype.commaOnlyOnX0=function(){return", nom\xe9s el %s"},t.prototype.commaAndOnX0=function(){return", i el %s"},t.prototype.commaOnThe=function(){return", en el "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", en l'\xfaltim dia del mes"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en l'\xfaltim dia de la setmana del mes"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dies abans de l'\xfaltim dia del mes"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", en l'\xfaltim %s del mes"},t.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},t.prototype.commaX0ThroughX1=function(){return", de %s a %s"},t.prototype.commaAndX0ThroughX1=function(){return", i de %s a %s"},t.prototype.everyHour=function(){return"cada hora"},t.prototype.everyMinute=function(){return"cada minut"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minut entre les %s i les %s"},t.prototype.everySecond=function(){return"cada segon"},t.prototype.everyX0Hours=function(){return"cada %s hores"},t.prototype.everyX0Minutes=function(){return"cada %s minuts"},t.prototype.everyX0Seconds=function(){return"cada %s segons"},t.prototype.fifth=function(){return"cinqu\xe8"},t.prototype.first=function(){return"primer"},t.prototype.firstWeekday=function(){return"primer dia de la setmana"},t.prototype.fourth=function(){return"quart"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minut %s al %s passada l'hora"},t.prototype.second=function(){return"segon"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En els segons %s al %s de cada minut"},t.prototype.spaceAnd=function(){return" i"},t.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},t.prototype.lastDay=function(){return"l'\xfaltim dia"},t.prototype.third=function(){return"tercer"},t.prototype.weekdayNearestDayX0=function(){return"dia de la setmana m\xe9s proper al %s"},t.prototype.commaEveryX0Years=function(){return", cada %s anys"},t.prototype.commaStartingX0=function(){return", comen\xe7ant %s"},t.prototype.daysOfTheWeek=function(){return["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},t.prototype.monthsOfTheYear=function(){return["gener","febrer","mar\xe7","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},t}();e.ca=n},651:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.cs=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Při vytv\xe1řen\xed popisu došlo k chybě. Zkontrolujte pros\xedm spr\xe1vnost syntaxe cronu."},t.prototype.everyMinute=function(){return"každou minutu"},t.prototype.everyHour=function(){return"každou hodinu"},t.prototype.atSpace=function(){return"V "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Každou minutu mezi %s a %s"},t.prototype.at=function(){return"V"},t.prototype.spaceAnd=function(){return" a"},t.prototype.everySecond=function(){return"každou sekundu"},t.prototype.everyX0Seconds=function(){return"každ\xfdch %s sekund"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},t.prototype.atX0SecondsPastTheMinute=function(){return"v %s sekund"},t.prototype.everyX0Minutes=function(){return"každ\xfdch %s minut"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},t.prototype.atX0MinutesPastTheHour=function(){return"v %s minut"},t.prototype.everyX0Hours=function(){return"každ\xfdch %s hodin"},t.prototype.betweenX0AndX1=function(){return"mezi %s a %s"},t.prototype.atX0=function(){return"v %s"},t.prototype.commaEveryDay=function(){return", každ\xfd den"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", každ\xfdch %s dn\xed v t\xfddnu"},t.prototype.commaX0ThroughX1=function(){return", od %s do %s"},t.prototype.commaAndX0ThroughX1=function(){return", a od %s do %s"},t.prototype.first=function(){return"prvn\xed"},t.prototype.second=function(){return"druh\xfd"},t.prototype.third=function(){return"třet\xed"},t.prototype.fourth=function(){return"čtvrt\xfd"},t.prototype.fifth=function(){return"p\xe1t\xfd"},t.prototype.commaOnThe=function(){return", "},t.prototype.spaceX0OfTheMonth=function(){return" %s v měs\xedci"},t.prototype.lastDay=function(){return"posledn\xed den"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", posledn\xed %s v měs\xedci"},t.prototype.commaOnlyOnX0=function(){return", pouze v %s"},t.prototype.commaAndOnX0=function(){return", a v %s"},t.prototype.commaEveryX0Months=function(){return", každ\xfdch %s měs\xedců"},t.prototype.commaOnlyInX0=function(){return", pouze v %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", posledn\xed den v měs\xedci"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", posledn\xed pracovn\xed den v měs\xedci"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dn\xed před posledn\xedm dnem v měs\xedci"},t.prototype.firstWeekday=function(){return"prvn\xed pracovn\xed den"},t.prototype.weekdayNearestDayX0=function(){return"pracovn\xed den nejbl\xedže %s. dni"},t.prototype.commaOnTheX0OfTheMonth=function(){return", v %s v měs\xedci"},t.prototype.commaEveryX0Days=function(){return", každ\xfdch %s dnů"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mezi dny %s a %s v měs\xedci"},t.prototype.commaOnDayX0OfTheMonth=function(){return", %s. den v měs\xedci"},t.prototype.commaEveryX0Years=function(){return", každ\xfdch %s roků"},t.prototype.commaStartingX0=function(){return", zač\xednaj\xedc\xed %s"},t.prototype.daysOfTheWeek=function(){return["Neděle","Ponděl\xed","\xdater\xfd","Středa","Čtvrtek","P\xe1tek","Sobota"]},t.prototype.monthsOfTheYear=function(){return["Leden","\xdanor","Březen","Duben","Květen","Červen","Červenec","Srpen","Z\xe1ř\xed","Ř\xedjen","Listopad","Prosinec"]},t}();e.cs=n},506:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.da=void 0;var n=function(){function t(){}return t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Der opstod en fejl ved generering af udtryksbeskrivelsen. Tjek cron-ekspressionssyntaxen."},t.prototype.at=function(){return"kl"},t.prototype.atSpace=function(){return"kl "},t.prototype.atX0=function(){return"kl %s"},t.prototype.atX0MinutesPastTheHour=function(){return"%s minutter efter timeskift"},t.prototype.atX0SecondsPastTheMinute=function(){return"%s sekunder efter minutskift"},t.prototype.betweenX0AndX1=function(){return"mellem %s og %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellem dag %s og %s i m\xe5neden"},t.prototype.commaEveryDay=function(){return", hver dag"},t.prototype.commaEveryX0Days=function(){return", hver %s. dag"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", hver %s. ugedag"},t.prototype.commaEveryX0Months=function(){return", hver %s. m\xe5ned"},t.prototype.commaEveryX0Years=function(){return", hvert %s. \xe5r"},t.prototype.commaOnDayX0OfTheMonth=function(){return", p\xe5 dag %s i m\xe5neden"},t.prototype.commaOnlyInX0=function(){return", kun i %s"},t.prototype.commaOnlyOnX0=function(){return", p\xe5 %se"},t.prototype.commaAndOnX0=function(){return", og p\xe5 %s"},t.prototype.commaOnThe=function(){return", p\xe5 den "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", p\xe5 den sidste dag i m\xe5neden"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", p\xe5 den sidste hverdag i m\xe5neden"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dage f\xf8r den sidste dag i m\xe5neden"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", p\xe5 den sidste %s i m\xe5neden"},t.prototype.commaOnTheX0OfTheMonth=function(){return", p\xe5 den %s i m\xe5neden"},t.prototype.commaX0ThroughX1=function(){return", %s til og med %s"},t.prototype.commaAndX0ThroughX1=function(){return", og %s til og med %s"},t.prototype.everyHour=function(){return"hver time"},t.prototype.everyMinute=function(){return"hvert minut"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"hvert minut mellem %s og %s"},t.prototype.everySecond=function(){return"hvert sekund"},t.prototype.everyX0Hours=function(){return"hver %s. time"},t.prototype.everyX0Minutes=function(){return"hvert %s. minut"},t.prototype.everyX0Seconds=function(){return"hvert %s. sekund"},t.prototype.fifth=function(){return"femte"},t.prototype.first=function(){return"f\xf8rste"},t.prototype.firstWeekday=function(){return"f\xf8rste hverdag"},t.prototype.fourth=function(){return"fjerde"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutterne fra %s til og med %s hver time"},t.prototype.second=function(){return"anden"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunderne fra %s til og med %s hvert minut"},t.prototype.spaceAnd=function(){return" og"},t.prototype.spaceX0OfTheMonth=function(){return" %s i m\xe5neden"},t.prototype.lastDay=function(){return"sidste dag"},t.prototype.third=function(){return"tredje"},t.prototype.weekdayNearestDayX0=function(){return"hverdag n\xe6rmest dag %s"},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.commaStartingX0=function(){return", startende %s"},t.prototype.daysOfTheWeek=function(){return["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},t.prototype.monthsOfTheYear=function(){return["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},t}();e.da=n},230:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.de=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"jede Minute"},t.prototype.everyHour=function(){return"jede Stunde"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. \xdcberpr\xfcfen Sie die Syntax des Cron-Ausdrucks."},t.prototype.atSpace=function(){return"Um "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},t.prototype.at=function(){return"Um"},t.prototype.spaceAnd=function(){return" und"},t.prototype.everySecond=function(){return"Jede Sekunde"},t.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},t.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},t.prototype.everyX0Minutes=function(){return"alle %s Minuten"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},t.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},t.prototype.everyX0Hours=function(){return"alle %s Stunden"},t.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},t.prototype.atX0=function(){return"um %s"},t.prototype.commaEveryDay=function(){return", jeden Tag"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},t.prototype.commaX0ThroughX1=function(){return", %s bis %s"},t.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},t.prototype.first=function(){return"ersten"},t.prototype.second=function(){return"zweiten"},t.prototype.third=function(){return"dritten"},t.prototype.fourth=function(){return"vierten"},t.prototype.fifth=function(){return"f\xfcnften"},t.prototype.commaOnThe=function(){return", am "},t.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},t.prototype.lastDay=function(){return"der letzte Tag"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},t.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},t.prototype.commaAndOnX0=function(){return", und jeden %s"},t.prototype.commaEveryX0Months=function(){return", alle %s Monate"},t.prototype.commaOnlyInX0=function(){return", nur im %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},t.prototype.firstWeekday=function(){return"ersten Werktag"},t.prototype.weekdayNearestDayX0=function(){return"Werktag am n\xe4chsten zum %s Tag"},t.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},t.prototype.commaEveryX0Days=function(){return", alle %s Tage"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},t.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},t.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},t.prototype.commaStartingX0=function(){return", beginnend %s"},t.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},t.prototype.monthsOfTheYear=function(){return["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},t}();e.de=n},486:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t}();e.en=n},153:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.es=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurri\xf3 un error mientras se generaba la descripci\xf3n de la expresi\xf3n. Revise la sintaxis de la expresi\xf3n de cron."},t.prototype.at=function(){return"A las"},t.prototype.atSpace=function(){return"A las "},t.prototype.atX0=function(){return"a las %s"},t.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},t.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},t.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los d\xedas %s y %s del mes"},t.prototype.commaEveryDay=function(){return", cada d\xeda"},t.prototype.commaEveryX0Days=function(){return", cada %s d\xedas"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s d\xedas de la semana"},t.prototype.commaEveryX0Months=function(){return", cada %s meses"},t.prototype.commaOnDayX0OfTheMonth=function(){return", el d\xeda %s del mes"},t.prototype.commaOnlyInX0=function(){return", s\xf3lo en %s"},t.prototype.commaOnlyOnX0=function(){return", s\xf3lo el %s"},t.prototype.commaAndOnX0=function(){return", y el %s"},t.prototype.commaOnThe=function(){return", en el "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el \xfaltimo d\xeda del mes"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el \xfaltimo d\xeda de la semana del mes"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s d\xedas antes del \xfaltimo d\xeda del mes"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el \xfaltimo %s del mes"},t.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},t.prototype.commaX0ThroughX1=function(){return", de %s a %s"},t.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},t.prototype.everyHour=function(){return"cada hora"},t.prototype.everyMinute=function(){return"cada minuto"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},t.prototype.everySecond=function(){return"cada segundo"},t.prototype.everyX0Hours=function(){return"cada %s horas"},t.prototype.everyX0Minutes=function(){return"cada %s minutos"},t.prototype.everyX0Seconds=function(){return"cada %s segundos"},t.prototype.fifth=function(){return"quinto"},t.prototype.first=function(){return"primero"},t.prototype.firstWeekday=function(){return"primer d\xeda de la semana"},t.prototype.fourth=function(){return"cuarto"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},t.prototype.second=function(){return"segundo"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},t.prototype.spaceAnd=function(){return" y"},t.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},t.prototype.lastDay=function(){return"el \xfaltimo d\xeda"},t.prototype.third=function(){return"tercer"},t.prototype.weekdayNearestDayX0=function(){return"d\xeda de la semana m\xe1s pr\xf3ximo al %s"},t.prototype.commaEveryX0Years=function(){return", cada %s a\xf1os"},t.prototype.commaStartingX0=function(){return", comenzando %s"},t.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},t.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},t}();e.es=n},804:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fa=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"خطایی در نمایش توضیحات این وظیفه رخ داد. لطفا ساختار آن را بررسی کنید."},t.prototype.everyMinute=function(){return"هر دقیقه"},t.prototype.everyHour=function(){return"هر ساعت"},t.prototype.atSpace=function(){return"در "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"هر دقیقه بین %s و %s"},t.prototype.at=function(){return"در"},t.prototype.spaceAnd=function(){return" و"},t.prototype.everySecond=function(){return"هر ثانیه"},t.prototype.everyX0Seconds=function(){return"هر %s ثانیه"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"ثانیه %s تا %s دقیقه گذشته"},t.prototype.atX0SecondsPastTheMinute=function(){return"در %s قانیه از دقیقه گذشته"},t.prototype.everyX0Minutes=function(){return"هر %s دقیقه"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"دقیقه %s تا %s ساعت گذشته"},t.prototype.atX0MinutesPastTheHour=function(){return"در %s دقیقه پس از ساعت"},t.prototype.everyX0Hours=function(){return"هر %s ساعت"},t.prototype.betweenX0AndX1=function(){return"بین %s و %s"},t.prototype.atX0=function(){return"در %s"},t.prototype.commaEveryDay=function(){return", هر روز"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", هر %s روز از هفته"},t.prototype.commaX0ThroughX1=function(){return", %s تا %s"},t.prototype.commaAndX0ThroughX1=function(){return", و %s تا %s"},t.prototype.first=function(){return"اول"},t.prototype.second=function(){return"دوم"},t.prototype.third=function(){return"سوم"},t.prototype.fourth=function(){return"چهارم"},t.prototype.fifth=function(){return"پنجم"},t.prototype.commaOnThe=function(){return", در "},t.prototype.spaceX0OfTheMonth=function(){return" %s ماه"},t.prototype.lastDay=function(){return"آخرین روز"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", در %s ماه"},t.prototype.commaOnlyOnX0=function(){return", فقط در %s"},t.prototype.commaAndOnX0=function(){return", و در %s"},t.prototype.commaEveryX0Months=function(){return", هر %s ماه"},t.prototype.commaOnlyInX0=function(){return", فقط در %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", در آخرین روز ماه"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", در آخرین روز ماه"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s روز قبل از آخرین روز ماه"},t.prototype.firstWeekday=function(){return"اولین روز"},t.prototype.weekdayNearestDayX0=function(){return"روز نزدیک به روز %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", در %s ماه"},t.prototype.commaEveryX0Days=function(){return", هر %s روز"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", بین روز %s و %s ماه"},t.prototype.commaOnDayX0OfTheMonth=function(){return", در %s ماه"},t.prototype.commaEveryMinute=function(){return", هر minute"},t.prototype.commaEveryHour=function(){return", هر ساعت"},t.prototype.commaEveryX0Years=function(){return", هر %s سال"},t.prototype.commaStartingX0=function(){return", آغاز %s"},t.prototype.daysOfTheWeek=function(){return["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه"]},t.prototype.monthsOfTheYear=function(){return["ژانویه","فوریه","مارس","آپریل","مه","ژوئن","ژوئیه","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},t}();e.fa=n},964:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fi=void 0;var n=function(){function t(){}return t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Virhe kuvauksen generoinnissa. Tarkista cron-syntaksi."},t.prototype.at=function(){return"Klo"},t.prototype.atSpace=function(){return"Klo "},t.prototype.atX0=function(){return"klo %s"},t.prototype.atX0MinutesPastTheHour=function(){return"%s minuuttia yli"},t.prototype.atX0MinutesPastTheHourGt20=function(){return"%s minuuttia yli"},t.prototype.atX0SecondsPastTheMinute=function(){return"%s sekunnnin j\xe4lkeen"},t.prototype.betweenX0AndX1=function(){return"%s - %s v\xe4lill\xe4"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", kuukauden p\xe4ivien %s ja %s v\xe4lill\xe4"},t.prototype.commaEveryDay=function(){return", joka p\xe4iv\xe4"},t.prototype.commaEveryHour=function(){return", joka tunti"},t.prototype.commaEveryMinute=function(){return", joka minuutti"},t.prototype.commaEveryX0Days=function(){return", joka %s. p\xe4iv\xe4"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", joka %s. viikonp\xe4iv\xe4"},t.prototype.commaEveryX0Months=function(){return", joka %s. kuukausi"},t.prototype.commaEveryX0Years=function(){return", joka %s. vuosi"},t.prototype.commaOnDayX0OfTheMonth=function(){return", kuukauden %s p\xe4iv\xe4"},t.prototype.commaOnlyInX0=function(){return", vain %s"},t.prototype.commaOnlyOnX0=function(){return", vain %s"},t.prototype.commaOnThe=function(){return","},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", kuukauden viimeisen\xe4 p\xe4iv\xe4n\xe4"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", kuukauden viimeisen\xe4 viikonp\xe4iv\xe4n\xe4"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", kuukauden viimeinen %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", kuukauden %s"},t.prototype.commaX0ThroughX1=function(){return", %s - %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s - %s"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s p\xe4iv\xe4\xe4 ennen kuukauden viimeist\xe4 p\xe4iv\xe4\xe4"},t.prototype.commaStartingX0=function(){return", alkaen %s"},t.prototype.everyHour=function(){return"joka tunti"},t.prototype.everyMinute=function(){return"joka minuutti"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"joka minuutti %s - %s v\xe4lill\xe4"},t.prototype.everySecond=function(){return"joka sekunti"},t.prototype.everyX0Hours=function(){return"joka %s. tunti"},t.prototype.everyX0Minutes=function(){return"joka %s. minuutti"},t.prototype.everyX0Seconds=function(){return"joka %s. sekunti"},t.prototype.fifth=function(){return"viides"},t.prototype.first=function(){return"ensimm\xe4inen"},t.prototype.firstWeekday=function(){return"ensimm\xe4inen viikonp\xe4iv\xe4"},t.prototype.fourth=function(){return"nelj\xe4s"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"joka tunti minuuttien %s - %s v\xe4lill\xe4"},t.prototype.second=function(){return"toinen"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"joka minuutti sekunttien %s - %s v\xe4lill\xe4"},t.prototype.spaceAnd=function(){return" ja"},t.prototype.spaceAndSpace=function(){return" ja "},t.prototype.spaceX0OfTheMonth=function(){return" %s kuukaudessa"},t.prototype.third=function(){return"kolmas"},t.prototype.weekdayNearestDayX0=function(){return"viikonp\xe4iv\xe4 l\xe4hint\xe4 %s p\xe4iv\xe4\xe4"},t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.lastDay=function(){return"viimeinen p\xe4iv\xe4"},t.prototype.commaAndOnX0=function(){return", ja edelleen %s"},t.prototype.daysOfTheWeek=function(){return["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},t.prototype.monthsOfTheYear=function(){return["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},t}();e.fi=n},517:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fr=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"toutes les minutes"},t.prototype.everyHour=function(){return"toutes les heures"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en g\xe9n\xe9rant la description de l'expression cron. V\xe9rifiez sa syntaxe."},t.prototype.atSpace=function(){return"\xc0 "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},t.prototype.at=function(){return"\xc0"},t.prototype.spaceAnd=function(){return" et"},t.prototype.everySecond=function(){return"toutes les secondes"},t.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s apr\xe8s la minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes apr\xe8s la minute"},t.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s apr\xe8s l'heure"},t.prototype.atX0MinutesPastTheHour=function(){return"%s minutes apr\xe8s l'heure"},t.prototype.everyX0Hours=function(){return"toutes les %s heures"},t.prototype.betweenX0AndX1=function(){return"de %s \xe0 %s"},t.prototype.atX0=function(){return"\xe0 %s"},t.prototype.commaEveryDay=function(){return", tous les jours"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},t.prototype.commaX0ThroughX1=function(){return", de %s \xe0 %s"},t.prototype.commaAndX0ThroughX1=function(){return", et de %s \xe0 %s"},t.prototype.first=function(){return"premier"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"troisi\xe8me"},t.prototype.fourth=function(){return"quatri\xe8me"},t.prototype.fifth=function(){return"cinqui\xe8me"},t.prototype.commaOnThe=function(){return", le "},t.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},t.prototype.lastDay=function(){return"le dernier jour"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},t.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},t.prototype.commaAndOnX0=function(){return", et %s"},t.prototype.commaEveryX0Months=function(){return", tous les %s mois"},t.prototype.commaOnlyInX0=function(){return", uniquement en %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},t.prototype.firstWeekday=function(){return"premier jour ouvrable"},t.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},t.prototype.commaEveryX0Days=function(){return", tous les %s jours"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},t.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},t.prototype.commaEveryX0Years=function(){return", tous les %s ans"},t.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},t.prototype.commaStartingX0=function(){return", \xe0 partir de %s"},t.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},t.prototype.monthsOfTheYear=function(){return["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},t}();e.fr=n},82:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.he=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"אירעה שגיאה בעת יצירת תיאור הביטוי. בדוק את תחביר הביטוי cron."},t.prototype.everyMinute=function(){return"כל דקה"},t.prototype.everyHour=function(){return"כל שעה"},t.prototype.atSpace=function(){return"ב "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"כל דקה %s עד %s"},t.prototype.at=function(){return"ב"},t.prototype.spaceAnd=function(){return" ו"},t.prototype.everySecond=function(){return"כל שניה"},t.prototype.everyX0Seconds=function(){return"כל %s שניות"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"%s עד %s שניות של הדקה"},t.prototype.atX0SecondsPastTheMinute=function(){return"ב %s שניות של הדקה"},t.prototype.everyX0Minutes=function(){return"כל %s דקות"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"%s עד %s דקות של השעה"},t.prototype.atX0MinutesPastTheHour=function(){return"ב %s דקות של השעה"},t.prototype.everyX0Hours=function(){return"כל %s שעות"},t.prototype.betweenX0AndX1=function(){return"%s עד %s"},t.prototype.atX0=function(){return"ב %s"},t.prototype.commaEveryDay=function(){return", כל יום"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", כל %s ימים בשבוע"},t.prototype.commaX0ThroughX1=function(){return", %s עד %s"},t.prototype.commaAndX0ThroughX1=function(){return", ו %s עד %s"},t.prototype.first=function(){return"ראשון"},t.prototype.second=function(){return"שני"},t.prototype.third=function(){return"שלישי"},t.prototype.fourth=function(){return"רביעי"},t.prototype.fifth=function(){return"חמישי"},t.prototype.commaOnThe=function(){return", ב "},t.prototype.spaceX0OfTheMonth=function(){return" %s של החודש"},t.prototype.lastDay=function(){return"היום האחרון"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", רק ב %s של החודש"},t.prototype.commaOnlyOnX0=function(){return", רק ב %s"},t.prototype.commaAndOnX0=function(){return", וב %s"},t.prototype.commaEveryX0Months=function(){return", כל %s חודשים"},t.prototype.commaOnlyInX0=function(){return", רק ב %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", ביום האחרון של החודש"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ביום החול האחרון של החודש"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ימים לפני היום האחרון בחודש"},t.prototype.firstWeekday=function(){return"יום החול הראשון"},t.prototype.weekdayNearestDayX0=function(){return"יום החול הראשון הקרוב אל %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", ביום ה%s של החודש"},t.prototype.commaEveryX0Days=function(){return", כל %s ימים"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", בין היום ה%s וה%s של החודש"},t.prototype.commaOnDayX0OfTheMonth=function(){return", ביום ה%s של החודש"},t.prototype.commaEveryX0Years=function(){return", כל %s שנים"},t.prototype.commaStartingX0=function(){return", החל מ %s"},t.prototype.daysOfTheWeek=function(){return["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},t.prototype.monthsOfTheYear=function(){return["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},t}();e.he=n},194:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hu=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Hiba t\xf6rt\xe9nt a kifejez\xe9sle\xedr\xe1s gener\xe1l\xe1sakor. Ellenőrizze a cron kifejez\xe9s szintaxis\xe1t."},t.prototype.everyMinute=function(){return"minden percben"},t.prototype.everyHour=function(){return"minden \xf3r\xe1ban"},t.prototype.atSpace=function(){return"Ekkor: "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"percenk\xe9nt %s \xe9s %s k\xf6z\xf6tt"},t.prototype.at=function(){return"Ekkor:"},t.prototype.spaceAnd=function(){return" \xe9s"},t.prototype.everySecond=function(){return"minden m\xe1sodpercben"},t.prototype.everyX0Seconds=function(){return"%s m\xe1sodpercenk\xe9nt"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"%s. m\xe1sodpercben %s perc ut\xe1n"},t.prototype.atX0SecondsPastTheMinute=function(){return"%s. m\xe1sodpercben"},t.prototype.everyX0Minutes=function(){return"minden %s. percben"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"%s. percben %s \xf3ra ut\xe1n"},t.prototype.atX0MinutesPastTheHour=function(){return"%s. percben"},t.prototype.everyX0Hours=function(){return"minden %s \xf3r\xe1ban"},t.prototype.betweenX0AndX1=function(){return"%s \xe9s %s k\xf6z\xf6tt"},t.prototype.atX0=function(){return"ekkor %s"},t.prototype.commaEveryDay=function(){return", minden nap"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", a h\xe9t minden %s napj\xe1n"},t.prototype.commaX0ThroughX1=function(){return", %s - %s"},t.prototype.commaAndX0ThroughX1=function(){return", \xe9s %s - %s"},t.prototype.first=function(){return"első"},t.prototype.second=function(){return"m\xe1sodik"},t.prototype.third=function(){return"harmadik"},t.prototype.fourth=function(){return"negyedik"},t.prototype.fifth=function(){return"\xf6t\xf6dik"},t.prototype.commaOnThe=function(){return", "},t.prototype.spaceX0OfTheMonth=function(){return" %s a h\xf3napban"},t.prototype.lastDay=function(){return"az utols\xf3 nap"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", a h\xf3nap utols\xf3 %s"},t.prototype.commaOnlyOnX0=function(){return", csak ekkor: %s"},t.prototype.commaAndOnX0=function(){return", \xe9s %s"},t.prototype.commaEveryX0Months=function(){return", minden %s h\xf3napban"},t.prototype.commaOnlyInX0=function(){return", csak ekkor: %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", a h\xf3nap utols\xf3 napj\xe1n"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", a h\xf3nap utols\xf3 h\xe9tk\xf6znapj\xe1n"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s nappal a h\xf3nap utols\xf3 napja előtt"},t.prototype.firstWeekday=function(){return"első h\xe9tk\xf6znap"},t.prototype.weekdayNearestDayX0=function(){return"h\xe9tk\xf6znap legk\xf6zelebbi nap %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", a h\xf3nap %s"},t.prototype.commaEveryX0Days=function(){return", %s naponk\xe9nt"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", a h\xf3nap %s \xe9s %s napja k\xf6z\xf6tt"},t.prototype.commaOnDayX0OfTheMonth=function(){return", a h\xf3nap %s napj\xe1n"},t.prototype.commaEveryHour=function(){return", minden \xf3r\xe1ban"},t.prototype.commaEveryX0Years=function(){return", %s \xe9vente"},t.prototype.commaStartingX0=function(){return", %s kezdettel"},t.prototype.daysOfTheWeek=function(){return["vas\xe1rnap","h\xe9tfő","kedd","szerda","cs\xfct\xf6rt\xf6k","p\xe9ntek","szombat"]},t.prototype.monthsOfTheYear=function(){return["janu\xe1r","febru\xe1r","m\xe1rcius","\xe1prilis","m\xe1jus","j\xfanius","j\xfalius","augusztus","szeptember","okt\xf3ber","november","december"]},t}();e.hu=n},72:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.id=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Terjadi kesalahan saat membuat deskripsi ekspresi. Periksa sintaks ekspresi cron."},t.prototype.everyMinute=function(){return"setiap menit"},t.prototype.everyHour=function(){return"setiap jam"},t.prototype.atSpace=function(){return"Pada "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Setiap menit diantara %s dan %s"},t.prototype.at=function(){return"Pada"},t.prototype.spaceAnd=function(){return" dan"},t.prototype.everySecond=function(){return"setiap detik"},t.prototype.everyX0Seconds=function(){return"setiap %s detik"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"detik ke %s sampai %s melewati menit"},t.prototype.atX0SecondsPastTheMinute=function(){return"pada %s detik lewat satu menit"},t.prototype.everyX0Minutes=function(){return"setiap %s menit"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"menit ke %s sampai %s melewati jam"},t.prototype.atX0MinutesPastTheHour=function(){return"pada %s menit melewati jam"},t.prototype.everyX0Hours=function(){return"setiap %s jam"},t.prototype.betweenX0AndX1=function(){return"diantara %s dan %s"},t.prototype.atX0=function(){return"pada %s"},t.prototype.commaEveryDay=function(){return", setiap hari"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", setiap hari %s dalam seminggu"},t.prototype.commaX0ThroughX1=function(){return", %s sampai %s"},t.prototype.commaAndX0ThroughX1=function(){return", dan %s sampai %s"},t.prototype.first=function(){return"pertama"},t.prototype.second=function(){return"kedua"},t.prototype.third=function(){return"ketiga"},t.prototype.fourth=function(){return"keempat"},t.prototype.fifth=function(){return"kelima"},t.prototype.commaOnThe=function(){return", di "},t.prototype.spaceX0OfTheMonth=function(){return" %s pada bulan"},t.prototype.lastDay=function(){return"hari terakhir"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", pada %s terakhir bulan ini"},t.prototype.commaOnlyOnX0=function(){return", hanya pada %s"},t.prototype.commaAndOnX0=function(){return", dan pada %s"},t.prototype.commaEveryX0Months=function(){return", setiap bulan %s "},t.prototype.commaOnlyInX0=function(){return", hanya pada %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", pada hari terakhir bulan ini"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", pada hari kerja terakhir setiap bulan"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s hari sebelum hari terakhir setiap bulan"},t.prototype.firstWeekday=function(){return"hari kerja pertama"},t.prototype.weekdayNearestDayX0=function(){return"hari kerja terdekat %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", pada %s bulan ini"},t.prototype.commaEveryX0Days=function(){return", setiap %s hari"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", antara hari %s dan %s dalam sebulan"},t.prototype.commaOnDayX0OfTheMonth=function(){return", pada hari %s dalam sebulan"},t.prototype.commaEveryHour=function(){return", setiap jam"},t.prototype.commaEveryX0Years=function(){return", setiap %s tahun"},t.prototype.commaStartingX0=function(){return", mulai pada %s"},t.prototype.daysOfTheWeek=function(){return["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},t.prototype.monthsOfTheYear=function(){return["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},t}();e.id=n},488:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.it=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"\xc8 verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},t.prototype.at=function(){return"Alle"},t.prototype.atSpace=function(){return"Alle "},t.prototype.atX0=function(){return"alle %s"},t.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},t.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},t.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},t.prototype.commaEveryDay=function(){return", ogni giorno"},t.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},t.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},t.prototype.commaEveryX0Years=function(){return", ogni %s anni"},t.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},t.prototype.commaOnlyInX0=function(){return", solo in %s"},t.prototype.commaOnlyOnX0=function(){return", solo il %s"},t.prototype.commaAndOnX0=function(){return", e il %s"},t.prototype.commaOnThe=function(){return", il "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},t.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},t.prototype.commaX0ThroughX1=function(){return", %s al %s"},t.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},t.prototype.everyHour=function(){return"ogni ora"},t.prototype.everyMinute=function(){return"ogni minuto"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},t.prototype.everySecond=function(){return"ogni secondo"},t.prototype.everyX0Hours=function(){return"ogni %s ore"},t.prototype.everyX0Minutes=function(){return"ogni %s minuti"},t.prototype.everyX0Seconds=function(){return"ogni %s secondi"},t.prototype.fifth=function(){return"quinto"},t.prototype.first=function(){return"primo"},t.prototype.firstWeekday=function(){return"primo giorno della settimana"},t.prototype.fourth=function(){return"quarto"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},t.prototype.second=function(){return"secondo"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},t.prototype.spaceAnd=function(){return" e"},t.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},t.prototype.lastDay=function(){return"l'ultimo giorno"},t.prototype.third=function(){return"terzo"},t.prototype.weekdayNearestDayX0=function(){return"giorno della settimana pi\xf9 vicino al %s"},t.prototype.commaStartingX0=function(){return", a partire %s"},t.prototype.daysOfTheWeek=function(){return["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"]},t.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},t}();e.it=n},904:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ja=void 0;var n=function(){function t(){}return t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"毎分"},t.prototype.everyHour=function(){return"毎時"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"式の記述を生成する際にエラーが発生しました。Cron 式の構文を確認してください。"},t.prototype.atSpace=function(){return"次において実施"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"%s から %s まで毎分"},t.prototype.at=function(){return"次において実施"},t.prototype.spaceAnd=function(){return"と"},t.prototype.everySecond=function(){return"毎秒"},t.prototype.everyX0Seconds=function(){return"%s 秒ごと"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"毎分 %s 秒から %s 秒まで"},t.prototype.atX0SecondsPastTheMinute=function(){return"毎分 %s 秒過ぎ"},t.prototype.everyX0Minutes=function(){return"%s 分ごと"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"毎時 %s 分から %s 分まで"},t.prototype.atX0MinutesPastTheHour=function(){return"毎時 %s 分過ぎ"},t.prototype.everyX0Hours=function(){return"%s 時間ごと"},t.prototype.betweenX0AndX1=function(){return"%s と %s の間"},t.prototype.atX0=function(){return"次において実施 %s"},t.prototype.commaEveryDay=function(){return"、毎日"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return"、週のうち %s 日ごと"},t.prototype.commaX0ThroughX1=function(){return"、%s から %s まで"},t.prototype.commaAndX0ThroughX1=function(){return"、%s から %s まで"},t.prototype.first=function(){return"1 番目"},t.prototype.second=function(){return"2 番目"},t.prototype.third=function(){return"3 番目"},t.prototype.fourth=function(){return"4 番目"},t.prototype.fifth=function(){return"5 番目"},t.prototype.commaOnThe=function(){return"次に"},t.prototype.spaceX0OfTheMonth=function(){return"月のうち %s"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return"月の最後の %s に"},t.prototype.commaOnlyOnX0=function(){return"%s にのみ"},t.prototype.commaEveryX0Months=function(){return"、%s か月ごと"},t.prototype.commaOnlyInX0=function(){return"%s でのみ"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return"次の最終日に"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return"月の最後の平日に"},t.prototype.firstWeekday=function(){return"最初の平日"},t.prototype.weekdayNearestDayX0=function(){return"%s 日の直近の平日"},t.prototype.commaOnTheX0OfTheMonth=function(){return"月の %s に"},t.prototype.commaEveryX0Days=function(){return"、%s 日ごと"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return"、月の %s 日から %s 日の間"},t.prototype.commaOnDayX0OfTheMonth=function(){return"、月の %s 日目"},t.prototype.spaceAndSpace=function(){return"と"},t.prototype.commaEveryMinute=function(){return"、毎分"},t.prototype.commaEveryHour=function(){return"、毎時"},t.prototype.commaEveryX0Years=function(){return"、%s 年ごと"},t.prototype.commaStartingX0=function(){return"、%s に開始"},t.prototype.aMPeriod=function(){return"AM"},t.prototype.pMPeriod=function(){return"PM"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return"月の最終日の %s 日前"},t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.lastDay=function(){return"最終日"},t.prototype.commaAndOnX0=function(){return"、〜と %s"},t.prototype.daysOfTheWeek=function(){return["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},t.prototype.monthsOfTheYear=function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},t}();e.ja=n},839:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ko=void 0;var n=function(){function t(){}return t.prototype.setPeriodBeforeTime=function(){return!0},t.prototype.pm=function(){return"오후"},t.prototype.am=function(){return"오전"},t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"표현식 설명을 생성하는 중 오류가 발생했습니다. cron 표현식 구문을 확인하십시오."},t.prototype.everyMinute=function(){return"1분마다"},t.prototype.everyHour=function(){return"1시간마다"},t.prototype.atSpace=function(){return"시간 "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"%s 및 %s 사이에 매 분"},t.prototype.at=function(){return"시간"},t.prototype.spaceAnd=function(){return" 및"},t.prototype.everySecond=function(){return"1초마다"},t.prototype.everyX0Seconds=function(){return"%s초마다"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"정분 후 %s초에서 %s초까지"},t.prototype.atX0SecondsPastTheMinute=function(){return"정분 후 %s초에서"},t.prototype.everyX0Minutes=function(){return"%s분마다"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"정시 후 %s분에서 %s분까지"},t.prototype.atX0MinutesPastTheHour=function(){return"정시 후 %s분에서"},t.prototype.everyX0Hours=function(){return"%s시간마다"},t.prototype.betweenX0AndX1=function(){return"%s에서 %s 사이"},t.prototype.atX0=function(){return"%s에서"},t.prototype.commaEveryDay=function(){return", 매일"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", 주 중 %s일마다"},t.prototype.commaX0ThroughX1=function(){return", %s에서 %s까지"},t.prototype.commaAndX0ThroughX1=function(){return", 및 %s에서 %s까지"},t.prototype.first=function(){return"첫 번째"},t.prototype.second=function(){return"두 번째"},t.prototype.third=function(){return"세 번째"},t.prototype.fourth=function(){return"네 번째"},t.prototype.fifth=function(){return"다섯 번째"},t.prototype.commaOnThe=function(){return", 해당 "},t.prototype.spaceX0OfTheMonth=function(){return" 해당 월의 %s"},t.prototype.lastDay=function(){return"마지막 날"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", 해당 월의 마지막 %s"},t.prototype.commaOnlyOnX0=function(){return", %s에만"},t.prototype.commaAndOnX0=function(){return", 및 %s에"},t.prototype.commaEveryX0Months=function(){return", %s개월마다"},t.prototype.commaOnlyInX0=function(){return", %s에만"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날에"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 해당 월의 마지막 평일에"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날 %s일 전"},t.prototype.firstWeekday=function(){return"첫 번째 평일"},t.prototype.weekdayNearestDayX0=function(){return"%s일과 가장 가까운 평일"},t.prototype.commaOnTheX0OfTheMonth=function(){return", 해당 월의 %s에"},t.prototype.commaEveryX0Days=function(){return", %s일마다"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 해당 월의 %s일에서 %s일까지"},t.prototype.commaOnDayX0OfTheMonth=function(){return", 해당 월의 %s일에"},t.prototype.commaEveryMinute=function(){return", 1분마다"},t.prototype.commaEveryHour=function(){return", 1시간마다"},t.prototype.commaEveryX0Years=function(){return", %s년마다"},t.prototype.commaStartingX0=function(){return", %s부터"},t.prototype.daysOfTheWeek=function(){return["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},t.prototype.monthsOfTheYear=function(){return["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},t}();e.ko=n},919:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.my=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Terdapat ralat semasa menjana penerangan ungkapan. Sila periksa sintaks ungkapan cron."},t.prototype.everyMinute=function(){return"setiap minit"},t.prototype.everyHour=function(){return"setiap jam"},t.prototype.atSpace=function(){return"Pada "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Setiap minit antara %s dan %s"},t.prototype.at=function(){return"Pada"},t.prototype.spaceAnd=function(){return" dan"},t.prototype.everySecond=function(){return"setiap saat"},t.prototype.everyX0Seconds=function(){return"setiap %s saat"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"saat ke %s hingga %s selepas minit"},t.prototype.atX0SecondsPastTheMinute=function(){return"pada %s saat selepas minit"},t.prototype.everyX0Minutes=function(){return"setiap %s minit"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minit ke %s hingga %s selepas jam"},t.prototype.atX0MinutesPastTheHour=function(){return"pada %s minit selepas jam"},t.prototype.everyX0Hours=function(){return"setiap %s jam"},t.prototype.betweenX0AndX1=function(){return"antara %s dan %s"},t.prototype.atX0=function(){return"pada %s"},t.prototype.commaEveryDay=function(){return", setiap hari"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", setiap %s hari dalam minggu"},t.prototype.commaX0ThroughX1=function(){return", %s hingga %s"},t.prototype.commaAndX0ThroughX1=function(){return", dan %s hingga %s"},t.prototype.first=function(){return"pertama"},t.prototype.second=function(){return"kedua"},t.prototype.third=function(){return"ketiga"},t.prototype.fourth=function(){return"keempat"},t.prototype.fifth=function(){return"kelima"},t.prototype.commaOnThe=function(){return", pada "},t.prototype.spaceX0OfTheMonth=function(){return" %s pada bulan"},t.prototype.lastDay=function(){return"hari terakhir"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", pada %s terakhir bulan"},t.prototype.commaOnlyOnX0=function(){return", hanya pada %s"},t.prototype.commaAndOnX0=function(){return", dan pada %s"},t.prototype.commaEveryX0Months=function(){return", setiap bulan %s"},t.prototype.commaOnlyInX0=function(){return", hanya pada %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", pada hari terakhir bulan"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", pada minggu terakhir bulan"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s hari sebelum hari terakhir bulan"},t.prototype.firstWeekday=function(){return"hari pertama minggu bekerja"},t.prototype.weekdayNearestDayX0=function(){return"hari bekerja yang terdekat dengan %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", pada %s bulan"},t.prototype.commaEveryX0Days=function(){return", setiap %s hari"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", antara hari %s dan %s dalam bulan"},t.prototype.commaOnDayX0OfTheMonth=function(){return", pada hari %s dalam bulan"},t.prototype.commaEveryHour=function(){return", setiap jam"},t.prototype.commaEveryX0Years=function(){return", setiap %s tahun"},t.prototype.commaStartingX0=function(){return", bermula %s"},t.prototype.daysOfTheWeek=function(){return["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},t.prototype.monthsOfTheYear=function(){return["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},t}();e.my=n},957:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.nb=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"En feil inntraff ved generering av uttrykksbeskrivelse. Sjekk cron syntaks."},t.prototype.at=function(){return"Kl."},t.prototype.atSpace=function(){return"Kl."},t.prototype.atX0=function(){return"p\xe5 %s"},t.prototype.atX0MinutesPastTheHour=function(){return"p\xe5 %s minutter etter timen"},t.prototype.atX0SecondsPastTheMinute=function(){return"p\xe5 %s sekunder etter minuttet"},t.prototype.betweenX0AndX1=function(){return"mellom %s og %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellom dag %s og %s av m\xe5neden"},t.prototype.commaEveryDay=function(){return", hver dag"},t.prototype.commaEveryX0Days=function(){return", hver %s dag"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", hver %s ukedag"},t.prototype.commaEveryX0Months=function(){return", hver %s m\xe5ned"},t.prototype.commaEveryX0Years=function(){return", hvert %s \xe5r"},t.prototype.commaOnDayX0OfTheMonth=function(){return", p\xe5 dag %s av m\xe5neden"},t.prototype.commaOnlyInX0=function(){return", bare i %s"},t.prototype.commaOnlyOnX0=function(){return", p\xe5 %s"},t.prototype.commaAndOnX0=function(){return", og p\xe5 %s"},t.prototype.commaOnThe=function(){return", p\xe5 "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", p\xe5 den siste dagen i m\xe5neden"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", den siste ukedagen i m\xe5neden"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dager f\xf8r den siste dagen i m\xe5neden"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", p\xe5 den siste %s av m\xe5neden"},t.prototype.commaOnTheX0OfTheMonth=function(){return", p\xe5 den %s av m\xe5neden"},t.prototype.commaX0ThroughX1=function(){return", %s til og med %s"},t.prototype.commaAndX0ThroughX1=function(){return", og %s til og med %s"},t.prototype.everyHour=function(){return"hver time"},t.prototype.everyMinute=function(){return"hvert minutt"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Hvert minutt mellom %s og %s"},t.prototype.everySecond=function(){return"hvert sekund"},t.prototype.everyX0Hours=function(){return"hver %s time"},t.prototype.everyX0Minutes=function(){return"hvert %s minutt"},t.prototype.everyX0Seconds=function(){return"hvert %s sekund"},t.prototype.fifth=function(){return"femte"},t.prototype.first=function(){return"f\xf8rste"},t.prototype.firstWeekday=function(){return"f\xf8rste ukedag"},t.prototype.fourth=function(){return"fjerde"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuttene fra %s til og med %s etter timen"},t.prototype.second=function(){return"andre"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundene fra %s til og med %s etter minuttet"},t.prototype.spaceAnd=function(){return" og"},t.prototype.spaceX0OfTheMonth=function(){return" %s i m\xe5neden"},t.prototype.lastDay=function(){return"den siste dagen"},t.prototype.third=function(){return"tredje"},t.prototype.weekdayNearestDayX0=function(){return"ukedag n\xe6rmest dag %s"},t.prototype.commaStartingX0=function(){return", starter %s"},t.prototype.daysOfTheWeek=function(){return["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},t.prototype.monthsOfTheYear=function(){return["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},t}();e.nb=n},647:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.nl=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"elke minuut"},t.prototype.everyHour=function(){return"elk uur"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Er is een fout opgetreden bij het vertalen van de gegevens. Controleer de gegevens."},t.prototype.atSpace=function(){return"Om "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Elke minuut tussen %s en %s"},t.prototype.at=function(){return"Om"},t.prototype.spaceAnd=function(){return" en"},t.prototype.everySecond=function(){return"elke seconde"},t.prototype.everyX0Seconds=function(){return"elke %s seconden"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconden %s t/m %s na de minuut"},t.prototype.atX0SecondsPastTheMinute=function(){return"op %s seconden na de minuut"},t.prototype.everyX0Minutes=function(){return"elke %s minuten"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuut %s t/m %s na het uur"},t.prototype.atX0MinutesPastTheHour=function(){return"op %s minuten na het uur"},t.prototype.everyX0Hours=function(){return"elke %s uur"},t.prototype.betweenX0AndX1=function(){return"tussen %s en %s"},t.prototype.atX0=function(){return"om %s"},t.prototype.commaEveryDay=function(){return", elke dag"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", elke %s dagen van de week"},t.prototype.commaX0ThroughX1=function(){return", %s t/m %s"},t.prototype.commaAndX0ThroughX1=function(){return", en %s t/m %s"},t.prototype.first=function(){return"eerste"},t.prototype.second=function(){return"tweede"},t.prototype.third=function(){return"derde"},t.prototype.fourth=function(){return"vierde"},t.prototype.fifth=function(){return"vijfde"},t.prototype.commaOnThe=function(){return", op de "},t.prototype.spaceX0OfTheMonth=function(){return" %s van de maand"},t.prototype.lastDay=function(){return"de laatste dag"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", op de laatste %s van de maand"},t.prototype.commaOnlyOnX0=function(){return", alleen op %s"},t.prototype.commaAndOnX0=function(){return", en op %s"},t.prototype.commaEveryX0Months=function(){return", elke %s maanden"},t.prototype.commaOnlyInX0=function(){return", alleen in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", op de laatste dag van de maand"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", op de laatste werkdag van de maand"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dagen v\xf3\xf3r de laatste dag van de maand"},t.prototype.firstWeekday=function(){return"eerste werkdag"},t.prototype.weekdayNearestDayX0=function(){return"werkdag dichtst bij dag %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", op de %s van de maand"},t.prototype.commaEveryX0Days=function(){return", elke %s dagen"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tussen dag %s en %s van de maand"},t.prototype.commaOnDayX0OfTheMonth=function(){return", op dag %s van de maand"},t.prototype.commaEveryX0Years=function(){return", elke %s jaren"},t.prototype.commaStartingX0=function(){return", beginnend %s"},t.prototype.daysOfTheWeek=function(){return["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},t.prototype.monthsOfTheYear=function(){return["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},t}();e.nl=n},905:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pl=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},t.prototype.at=function(){return"O"},t.prototype.atSpace=function(){return"O "},t.prototype.atX0=function(){return"o %s"},t.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},t.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},t.prototype.betweenX0AndX1=function(){return"od %s do %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},t.prototype.commaEveryDay=function(){return", co dzień"},t.prototype.commaEveryX0Days=function(){return", co %s dni"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},t.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},t.prototype.commaEveryX0Years=function(){return", co %s lat"},t.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},t.prototype.commaOnlyInX0=function(){return", tylko %s"},t.prototype.commaOnlyOnX0=function(){return", tylko %s"},t.prototype.commaAndOnX0=function(){return", i %s"},t.prototype.commaOnThe=function(){return", "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},t.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},t.prototype.commaX0ThroughX1=function(){return", od %s do %s"},t.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},t.prototype.everyHour=function(){return"co godzinę"},t.prototype.everyMinute=function(){return"co minutę"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},t.prototype.everySecond=function(){return"co sekundę"},t.prototype.everyX0Hours=function(){return"co %s godzin"},t.prototype.everyX0Minutes=function(){return"co %s minut"},t.prototype.everyX0Seconds=function(){return"co %s sekund"},t.prototype.fifth=function(){return"piąty"},t.prototype.first=function(){return"pierwszy"},t.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},t.prototype.fourth=function(){return"czwarty"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},t.prototype.second=function(){return"drugi"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},t.prototype.spaceAnd=function(){return" i"},t.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},t.prototype.lastDay=function(){return"ostatni dzień"},t.prototype.third=function(){return"trzeci"},t.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},t.prototype.commaStartingX0=function(){return", startowy %s"},t.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},t.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},t}();e.pl=n},556:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pt_BR=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descri\xe7\xe3o da express\xe3o Cron."},t.prototype.at=function(){return"\xe0s"},t.prototype.atSpace=function(){return"\xe0s "},t.prototype.atX0=function(){return"\xc0s %s"},t.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},t.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},t.prototype.betweenX0AndX1=function(){return"entre %s e %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do m\xeas"},t.prototype.commaEveryDay=function(){return", a cada dia"},t.prototype.commaEveryX0Days=function(){return", a cada %s dias"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},t.prototype.commaEveryX0Months=function(){return", a cada %s meses"},t.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do m\xeas"},t.prototype.commaOnlyInX0=function(t){return t&&t.length>1&&"-"===t[1]?"somente %s":", somente em %s"},t.prototype.commaOnlyOnX0=function(t){return t&&t.length>1&&"-"===t[1]?", somente %s":", somente de %s"},t.prototype.commaAndOnX0=function(){return", e de %s"},t.prototype.commaOnThe=function(t,e){return"6"===e||"0"===e?", no":", na "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", no \xfaltimo dia do m\xeas"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no \xfaltimo dia da semana do m\xeas"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do \xfaltimo dia do m\xeas"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", na \xfaltima %s do m\xeas"},t.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do m\xeas"},t.prototype.commaX0ThroughX1=function(){return", de %s a %s"},t.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},t.prototype.everyHour=function(){return"a cada hora"},t.prototype.everyMinute=function(){return"a cada minuto"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},t.prototype.everySecond=function(){return"a cada segundo"},t.prototype.everyX0Hours=function(){return"a cada %s horas"},t.prototype.everyX0Minutes=function(){return"a cada %s minutos"},t.prototype.everyX0Seconds=function(){return"a cada %s segundos"},t.prototype.fifth=function(t){return"6"===t||"0"===t?"quinto":"quinta"},t.prototype.first=function(t){return"6"===t||"0"===t?"primeiro":"primeira"},t.prototype.firstWeekday=function(){return"primeiro dia da semana"},t.prototype.fourth=function(t){return"6"===t||"0"===t?"quarto":"quarta"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s at\xe9 %s de cada hora"},t.prototype.second=function(t){return"6"===t||"0"===t?"segundo":"segunda"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s at\xe9 %s de cada minuto"},t.prototype.spaceAnd=function(){return" e"},t.prototype.spaceX0OfTheMonth=function(){return" %s do m\xeas"},t.prototype.lastDay=function(){return"o \xfaltimo dia"},t.prototype.third=function(t){return"6"===t||"0"===t?"terceiro":"terceira"},t.prototype.weekdayNearestDayX0=function(){return"dia da semana mais pr\xf3ximo do dia %s"},t.prototype.commaEveryX0Years=function(){return", a cada %s anos"},t.prototype.commaStartingX0=function(){return", iniciando %s"},t.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},t.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},t}();e.pt_BR=n},163:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pt_PT=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descri\xe7\xe3o da express\xe3o Cron."},t.prototype.at=function(){return"\xe0s"},t.prototype.atSpace=function(){return"\xe0s "},t.prototype.atX0=function(){return"\xc0s %s"},t.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},t.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},t.prototype.betweenX0AndX1=function(){return"entre %s e %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do m\xeas"},t.prototype.commaEveryDay=function(){return", a cada dia"},t.prototype.commaEveryX0Days=function(){return", a cada %s dias"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},t.prototype.commaEveryX0Months=function(){return", a cada %s meses"},t.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do m\xeas"},t.prototype.commaOnlyInX0=function(){return", somente em %s"},t.prototype.commaOnlyOnX0=function(){return", somente de %s"},t.prototype.commaAndOnX0=function(){return", e de %s"},t.prototype.commaOnThe=function(t,e){return"6"===e||"0"===e?", no":", na "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", no \xfaltimo dia do m\xeas"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no \xfaltimo dia da semana do m\xeas"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do \xfaltimo dia do m\xeas"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", na \xfaltima %s do m\xeas"},t.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do m\xeas"},t.prototype.commaX0ThroughX1=function(){return", de %s a %s"},t.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},t.prototype.everyHour=function(){return"a cada hora"},t.prototype.everyMinute=function(){return"a cada minuto"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},t.prototype.everySecond=function(){return"a cada segundo"},t.prototype.everyX0Hours=function(){return"a cada %s horas"},t.prototype.everyX0Minutes=function(){return"a cada %s minutos"},t.prototype.everyX0Seconds=function(){return"a cada %s segundos"},t.prototype.fifth=function(t){return"6"===t||"0"===t?"quinto":"quinta"},t.prototype.first=function(t){return"6"===t||"0"===t?"primeiro":"primeira"},t.prototype.firstWeekday=function(){return"primeiro dia da semana"},t.prototype.fourth=function(t){return"6"===t||"0"===t?"quarto":"quarta"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s at\xe9 %s de cada hora"},t.prototype.second=function(t){return"6"===t||"0"===t?"segundo":"segunda"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s at\xe9 %s de cada minuto"},t.prototype.spaceAnd=function(){return" e"},t.prototype.spaceX0OfTheMonth=function(){return" %s do m\xeas"},t.prototype.lastDay=function(){return"o \xfaltimo dia"},t.prototype.third=function(t){return"6"===t||"0"===t?"terceiro":"terceira"},t.prototype.weekdayNearestDayX0=function(){return"dia da semana mais pr\xf3ximo do dia %s"},t.prototype.commaEveryX0Years=function(){return", a cada %s anos"},t.prototype.commaStartingX0=function(){return", iniciando %s"},t.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},t.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},t}();e.pt_PT=n},614:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ro=void 0;var n=function(){function t(){}return t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Eroare la generarea descrierii. Verificați sintaxa."},t.prototype.at=function(){return"La"},t.prototype.atSpace=function(){return"La "},t.prototype.atX0=function(){return"la %s"},t.prototype.atX0MinutesPastTheHour=function(){return"la și %s minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"la și %s secunde"},t.prototype.betweenX0AndX1=function(){return"\xeentre %s și %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", \xeentre zilele %s și %s ale lunii"},t.prototype.commaEveryDay=function(){return", \xeen fiecare zi"},t.prototype.commaEveryX0Days=function(){return", la fiecare %s zile"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", la fiecare a %s-a zi a săptăm\xe2nii"},t.prototype.commaEveryX0Months=function(){return", la fiecare %s luni"},t.prototype.commaEveryX0Years=function(){return", o dată la %s ani"},t.prototype.commaOnDayX0OfTheMonth=function(){return", \xeen ziua %s a lunii"},t.prototype.commaOnlyInX0=function(){return", doar \xeen %s"},t.prototype.commaOnlyOnX0=function(){return", doar %s"},t.prototype.commaAndOnX0=function(){return", și %s"},t.prototype.commaOnThe=function(){return", \xeen "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", \xeen ultima zi a lunii"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", \xeen ultima zi lucrătoare a lunii"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s zile \xeenainte de ultima zi a lunii"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", \xeen ultima %s a lunii"},t.prototype.commaOnTheX0OfTheMonth=function(){return", \xeen %s a lunii"},t.prototype.commaX0ThroughX1=function(){return", de %s p\xe2nă %s"},t.prototype.commaAndX0ThroughX1=function(){return", și de %s p\xe2nă %s"},t.prototype.everyHour=function(){return"\xeen fiecare oră"},t.prototype.everyMinute=function(){return"\xeen fiecare minut"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"\xcen fiecare minut \xeentre %s și %s"},t.prototype.everySecond=function(){return"\xeen fiecare secundă"},t.prototype.everyX0Hours=function(){return"la fiecare %s ore"},t.prototype.everyX0Minutes=function(){return"la fiecare %s minute"},t.prototype.everyX0Seconds=function(){return"la fiecare %s secunde"},t.prototype.fifth=function(){return"a cincea"},t.prototype.first=function(){return"prima"},t.prototype.firstWeekday=function(){return"prima zi a săptăm\xe2nii"},t.prototype.fourth=function(){return"a patra"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"\xeentre minutele %s și %s"},t.prototype.second=function(){return"a doua"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"\xeentre secunda %s și secunda %s"},t.prototype.spaceAnd=function(){return" și"},t.prototype.spaceX0OfTheMonth=function(){return" %s a lunii"},t.prototype.lastDay=function(){return"ultima zi"},t.prototype.third=function(){return"a treia"},t.prototype.weekdayNearestDayX0=function(){return"cea mai apropiată zi a săptăm\xe2nii de ziua %s"},t.prototype.commaMonthX0ThroughMonthX1=function(){return", din %s p\xe2nă \xeen %s"},t.prototype.commaYearX0ThroughYearX1=function(){return", din %s p\xe2nă \xeen %s"},t.prototype.atX0MinutesPastTheHourGt20=function(){return"la și %s de minute"},t.prototype.atX0SecondsPastTheMinuteGt20=function(){return"la și %s de secunde"},t.prototype.commaStartingX0=function(){return", pornire %s"},t.prototype.daysOfTheWeek=function(){return["duminică","luni","marți","miercuri","joi","vineri","s\xe2mbătă"]},t.prototype.monthsOfTheYear=function(){return["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},t}();e.ro=n},892:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ru=void 0;var n=function(t,e){var n=Number(t);return void 0!==n?e[n%100>4&&n%100<20?2:[2,0,1,1,1,2][n%10<5?Math.abs(n)%10:5]]:e[2]},r=function(t,e){var n=Number(t);return void 0!==n?e[0===n?0:1===n||2===n||4===n?1:2]:e[1]},o=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"каждую минуту"},t.prototype.everyHour=function(){return"каждый час"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},t.prototype.atSpace=function(){return"В "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},t.prototype.at=function(){return"В"},t.prototype.spaceAnd=function(){return" и"},t.prototype.everySecond=function(){return"каждую секунду"},t.prototype.everyX0Seconds=function(t){return n(t,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},t.prototype.atX0SecondsPastTheMinute=function(t){return n(t,["в %s секунду","в %s секунды","в %s секунд"])},t.prototype.everyX0Minutes=function(t){return n(t,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},t.prototype.atX0MinutesPastTheHour=function(t){return n(t,["в %s минуту","в %s минуты","в %s минут"])},t.prototype.everyX0Hours=function(t){return n(t,["каждый %s час","каждые %s часа","каждые %s часов"])},t.prototype.betweenX0AndX1=function(){return"с %s по %s"},t.prototype.atX0=function(){return"в %s"},t.prototype.commaEveryDay=function(){return", каждый день"},t.prototype.commaEveryX0DaysOfTheWeek=function(t){return n(t,["",", каждые %s дня недели",", каждые %s дней недели"])},t.prototype.commaX0ThroughX1=function(t){return t&&("2"==t[0]||"3"==t[0])?", со %s по %s":", с %s по %s"},t.prototype.commaAndX0ThroughX1=function(t){return t&&("2"==t[0]||"3"==t[0])?" и со %s по %s":" и с %s по %s"},t.prototype.first=function(t){return r(t,["первое","первый","первую"])},t.prototype.second=function(t){return r(t,["второе","второй","вторую"])},t.prototype.third=function(t){return r(t,["третье","третий","третью"])},t.prototype.fourth=function(t){return r(t,["четвертое","четвертый","четвертую"])},t.prototype.fifth=function(t){return r(t,["пятое","пятый","пятую"])},t.prototype.commaOnThe=function(t){return"2"===t?", во ":", в "},t.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},t.prototype.lastDay=function(){return"последний день"},t.prototype.commaOnTheLastX0OfTheMonth=function(t){return r(t,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},t.prototype.commaOnlyOnX0=function(t){return t&&"2"===t[0]?", только во %s":", только в %s"},t.prototype.commaAndOnX0=function(){return", и %s"},t.prototype.commaEveryX0Months=function(t){return n(t,[""," каждые %s месяца"," каждые %s месяцев"])},t.prototype.commaOnlyInMonthX0=function(){return", только %s"},t.prototype.commaOnlyInX0=function(){return", только в %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(t){return n(t,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},t.prototype.firstWeekday=function(){return"первый будний день"},t.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},t.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},t.prototype.commaEveryX0Days=function(t){return n(t,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(t){return t&&"2"==t.substring(0,t.indexOf("-"))?", со %s по %s число месяца":", с %s по %s число месяца"},t.prototype.commaOnDayX0OfTheMonth=function(t){return t&&"2"==t[0]?", во %s число месяца":", в %s число месяца"},t.prototype.commaEveryX0Years=function(t){return n(t,[", каждый %s год",", каждые %s года",", каждые %s лет"])},t.prototype.commaStartingX0=function(){return", начало %s"},t.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},t.prototype.daysOfTheWeekInCase=function(t){return void 0===t&&(t=2),1==t?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},t.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},t.prototype.monthsOfTheYearInCase=function(t){return 1==t?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},t}();e.ru=o},923:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sk=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Pri vytv\xe1ran\xed popisu došlo k chybe. Skontrolujte pros\xedm spr\xe1vnosť syntaxe cronu."},t.prototype.everyMinute=function(){return"každ\xfa min\xfatu"},t.prototype.everyHour=function(){return"každ\xfa hodinu"},t.prototype.atSpace=function(){return"V "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Každ\xfa min\xfatu medzi %s a %s"},t.prototype.at=function(){return"V"},t.prototype.spaceAnd=function(){return" a"},t.prototype.everySecond=function(){return"každ\xfa sekundu"},t.prototype.everyX0Seconds=function(){return"každ\xfdch %s sek\xfand"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},t.prototype.atX0SecondsPastTheMinute=function(){return"v %s sek\xfand"},t.prototype.everyX0Minutes=function(){return"každ\xfdch %s min\xfat"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"min\xfaty od %s do %s"},t.prototype.atX0MinutesPastTheHour=function(){return"v %s min\xfat"},t.prototype.everyX0Hours=function(){return"každ\xfdch %s hod\xedn"},t.prototype.betweenX0AndX1=function(){return"medzi %s a %s"},t.prototype.atX0=function(){return"v %s"},t.prototype.commaEveryDay=function(){return", každ\xfd deň"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", každ\xfdch %s dn\xed v t\xfdždni"},t.prototype.commaX0ThroughX1=function(){return", od %s do %s"},t.prototype.commaAndX0ThroughX1=function(){return", a od %s do %s"},t.prototype.first=function(){return"prv\xfd"},t.prototype.second=function(){return"druh\xfd"},t.prototype.third=function(){return"tret\xed"},t.prototype.fourth=function(){return"štvrt\xfd"},t.prototype.fifth=function(){return"piaty"},t.prototype.commaOnThe=function(){return", "},t.prototype.spaceX0OfTheMonth=function(){return" %s v mesiaci"},t.prototype.lastDay=function(){return"posledn\xfd deň"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", posledn\xfd %s v mesiaci"},t.prototype.commaOnlyOnX0=function(){return", iba v %s"},t.prototype.commaAndOnX0=function(){return", a v %s"},t.prototype.commaEveryX0Months=function(){return", každ\xfdch %s mesiacov"},t.prototype.commaOnlyInX0=function(){return", iba v %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", posledn\xfd deň v mesiaci"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", posledn\xfd pracovn\xfd deň v mesiaci"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dn\xed pred posledn\xfdm dňom v mesiaci"},t.prototype.firstWeekday=function(){return"prv\xfd pracovn\xfd deň"},t.prototype.weekdayNearestDayX0=function(){return"pracovn\xfd deň najbližšie %s. dňu"},t.prototype.commaOnTheX0OfTheMonth=function(){return", v %s v mesiaci"},t.prototype.commaEveryX0Days=function(){return", každ\xfdch %s dn\xed"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", medzi dňami %s a %s v mesiaci"},t.prototype.commaOnDayX0OfTheMonth=function(){return", %s. deň v mesiaci"},t.prototype.commaEveryX0Years=function(){return", každ\xfdch %s rokov"},t.prototype.commaStartingX0=function(){return", zač\xednaj\xfacich %s"},t.prototype.daysOfTheWeek=function(){return["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},t.prototype.monthsOfTheYear=function(){return["Janu\xe1r","Febru\xe1r","Marec","Apr\xedl","M\xe1j","J\xfan","J\xfal","August","September","Okt\xf3ber","November","December"]},t}();e.sk=n},474:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sl=void 0;var n=function(){function t(){}return t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Pri generiranju opisa izraza je prišlo do napake. Preverite sintakso izraza cron."},t.prototype.at=function(){return"Ob"},t.prototype.atSpace=function(){return"Ob "},t.prototype.atX0=function(){return"ob %s"},t.prototype.atX0MinutesPastTheHour=function(){return"ob %s."},t.prototype.atX0SecondsPastTheMinute=function(){return"ob %s."},t.prototype.betweenX0AndX1=function(){return"od %s do %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s. do %s. dne v mesecu"},t.prototype.commaEveryDay=function(){return", vsak dan"},t.prototype.commaEveryX0Days=function(){return", vsakih %s dni"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", vsakih %s dni v tednu"},t.prototype.commaEveryX0Months=function(){return", vsakih %s mesecev"},t.prototype.commaEveryX0Years=function(){return", vsakih %s let"},t.prototype.commaOnDayX0OfTheMonth=function(){return", %s. dan v mesecu"},t.prototype.commaOnlyInX0=function(){return", samo v %s"},t.prototype.commaOnlyOnX0=function(){return", samo v %s"},t.prototype.commaAndOnX0=function(){return"in naprej %s"},t.prototype.commaOnThe=function(){return", "},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", zadnji %s v mesecu"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", zadnji delovni dan v mesecu"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni pred koncem meseca"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", zadnji %s v mesecu"},t.prototype.commaOnTheX0OfTheMonth=function(){return", %s v mesecu"},t.prototype.commaX0ThroughX1=function(){return", od %s do %s"},t.prototype.commaAndX0ThroughX1=function(){return", in od %s do %s"},t.prototype.everyHour=function(){return"vsako uro"},t.prototype.everyMinute=function(){return"vsako minuto"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Vsako minuto od %s do %s"},t.prototype.everySecond=function(){return"vsako sekundo"},t.prototype.everyX0Hours=function(){return"vsakih %s ur"},t.prototype.everyX0Minutes=function(){return"vsakih %s minut"},t.prototype.everyX0Seconds=function(){return"vsakih %s sekund"},t.prototype.fifth=function(){return"peti"},t.prototype.first=function(){return"prvi"},t.prototype.firstWeekday=function(){return"prvi delovni dan"},t.prototype.fourth=function(){return"četrti"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute od %s do %s"},t.prototype.second=function(){return"drugi"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunde od %s do %s"},t.prototype.spaceAnd=function(){return" in"},t.prototype.spaceX0OfTheMonth=function(){return" %s v mesecu"},t.prototype.lastDay=function(){return"zadnjič"},t.prototype.third=function(){return"tretji"},t.prototype.weekdayNearestDayX0=function(){return"delovni dan, najbližji %s. dnevu"},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.commaStartingX0=function(){return", začenši %s"},t.prototype.daysOfTheWeek=function(){return["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},t.prototype.monthsOfTheYear=function(){return["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},t}();e.sl=n},544:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sv=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ett fel intr\xe4ffade vid generering av uttryckets beskrivning. Kontrollera cron-uttryckets syntax."},t.prototype.everyMinute=function(){return"varje minut"},t.prototype.everyHour=function(){return"varje timme"},t.prototype.atSpace=function(){return"Kl "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Varje minut mellan %s och %s"},t.prototype.at=function(){return"Kl"},t.prototype.spaceAnd=function(){return" och"},t.prototype.everySecond=function(){return"varje sekund"},t.prototype.everyX0Seconds=function(){return"varje %s sekund"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunderna fr\xe5n %s till och med %s efter minuten"},t.prototype.atX0SecondsPastTheMinute=function(){return"p\xe5 %s sekunder efter minuten"},t.prototype.everyX0Minutes=function(){return"var %s minut"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuterna fr\xe5n %s till och med %s efter timmen"},t.prototype.atX0MinutesPastTheHour=function(){return"p\xe5 %s minuten efter timmen"},t.prototype.everyX0Hours=function(){return"var %s timme"},t.prototype.betweenX0AndX1=function(){return"mellan %s och %s"},t.prototype.atX0=function(){return"kl %s"},t.prototype.commaEveryDay=function(){return", varje dag"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", var %s dag i veckan"},t.prototype.commaX0ThroughX1=function(){return", %s till %s"},t.prototype.commaAndX0ThroughX1=function(){return", och %s till %s"},t.prototype.first=function(){return"f\xf6rsta"},t.prototype.second=function(){return"andra"},t.prototype.third=function(){return"tredje"},t.prototype.fourth=function(){return"fj\xe4rde"},t.prototype.fifth=function(){return"femte"},t.prototype.commaOnThe=function(){return", den "},t.prototype.spaceX0OfTheMonth=function(){return" %sen av m\xe5naden"},t.prototype.lastDay=function(){return"den sista dagen"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", p\xe5 sista %s av m\xe5naden"},t.prototype.commaOnlyOnX0=function(){return", varje %s"},t.prototype.commaAndOnX0=function(){return", och p\xe5 %s"},t.prototype.commaEveryX0Months=function(){return", var %s m\xe5nad"},t.prototype.commaOnlyInX0=function(){return", bara p\xe5 %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", p\xe5 sista dagen av m\xe5naden"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", p\xe5 sista veckodag av m\xe5naden"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dagar f\xf6re den sista dagen i m\xe5naden"},t.prototype.firstWeekday=function(){return"f\xf6rsta veckodag"},t.prototype.weekdayNearestDayX0=function(){return"veckodagen n\xe4rmast dag %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", p\xe5 den %s av m\xe5naden"},t.prototype.commaEveryX0Days=function(){return", var %s dag"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellan dag %s och %s av m\xe5naden"},t.prototype.commaOnDayX0OfTheMonth=function(){return", p\xe5 dag %s av m\xe5naden"},t.prototype.commaEveryX0Years=function(){return", var %s \xe5r"},t.prototype.commaStartingX0=function(){return", startar %s"},t.prototype.daysOfTheWeek=function(){return["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"]},t.prototype.monthsOfTheYear=function(){return["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},t}();e.sv=n},799:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sw=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Kuna tatizo wakati wa kutunga msemo. Angalia cron expression syntax."},t.prototype.everyMinute=function(){return"kila dakika"},t.prototype.everyHour=function(){return"kila saa"},t.prototype.atSpace=function(){return"Kwa "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Kila dakika kwanzia %s hadi %s"},t.prototype.at=function(){return"Kwa"},t.prototype.spaceAnd=function(){return" na"},t.prototype.everySecond=function(){return"kila sekunde"},t.prototype.everyX0Seconds=function(){return"kila sekunde %s"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunde ya %s hadi %s baada ya dakika"},t.prototype.atX0SecondsPastTheMinute=function(){return"sekunde %s baada ya dakika"},t.prototype.everyX0Minutes=function(){return"kila dakika %s"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"kati ya %s na %s"},t.prototype.atX0=function(){return"kwenye %s"},t.prototype.commaEveryDay=function(){return", kila siku"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", kila siku %s ya wiki"},t.prototype.commaX0ThroughX1=function(){return", %s hadi %s"},t.prototype.commaAndX0ThroughX1=function(){return", na %s hadi %s"},t.prototype.first=function(){return"ya kwanza"},t.prototype.second=function(){return"ya pili"},t.prototype.third=function(){return"ya tatu"},t.prototype.fourth=function(){return"ya nne"},t.prototype.fifth=function(){return"ya tano"},t.prototype.commaOnThe=function(){return", kwenye "},t.prototype.spaceX0OfTheMonth=function(){return" siku %s ya mwezi"},t.prototype.lastDay=function(){return"siku ya mwisho"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", siku ya %s ya mwezi"},t.prototype.commaOnlyOnX0=function(){return", kwa %s tu"},t.prototype.commaAndOnX0=function(){return", na pia %s"},t.prototype.commaEveryX0Months=function(){return", kila mwezi wa %s"},t.prototype.commaOnlyInX0=function(){return", kwa %s tu"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", siku ya mwisho wa mwezi"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", wikendi ya mwisho wa mwezi"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", siku ya %s kabla ya siku ya mwisho wa mwezi"},t.prototype.firstWeekday=function(){return"siku za kazi ya kwanza"},t.prototype.weekdayNearestDayX0=function(){return"siku ya kazi karibu na siku ya %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", siku ya %s ya mwezi"},t.prototype.commaEveryX0Days=function(){return", kila siku %s"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", kati ya siku %s na %s ya mwezi"},t.prototype.commaOnDayX0OfTheMonth=function(){return", siku ya %s ya mwezi"},t.prototype.commaEveryX0Years=function(){return", kila miaka %s"},t.prototype.commaStartingX0=function(){return", kwanzia %s"},t.prototype.daysOfTheWeek=function(){return["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi"]},t.prototype.monthsOfTheYear=function(){return["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"]},t}();e.sw=n},33:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.th=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"เกิดข้อผิดพลาดขณะสร้างคำอธิบายนิพจน์ ตรวจสอบไวยากรณ์นิพจน์ครอน"},t.prototype.everyMinute=function(){return"ทุกๆ นาที"},t.prototype.everyHour=function(){return"ทุกๆ ชั่วโมง"},t.prototype.atSpace=function(){return"เมื่อ "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"ทุกๆ นาที %s และ %s"},t.prototype.at=function(){return"เมื่อ"},t.prototype.spaceAnd=function(){return" และ"},t.prototype.everySecond=function(){return"ทุกๆ วินาที"},t.prototype.everyX0Seconds=function(){return"ทุกๆ %s วินาที"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"วินาที %s ถึง %s นาทีที่ผ่านมา"},t.prototype.atX0SecondsPastTheMinute=function(){return"เมื่อ %s วินาที นาทีที่ผ่านมา"},t.prototype.everyX0Minutes=function(){return"ทุกๆ %s นาที"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"นาที %s ถึง %s ชั่วโมงที่ผ่านมา"},t.prototype.atX0MinutesPastTheHour=function(){return"เมื่อ %s นาที ชั่วโมงที่ผ่านมา"},t.prototype.everyX0Hours=function(){return"ทุกๆ %s ชั่วโมง"},t.prototype.betweenX0AndX1=function(){return"ระหว่าง %s ถึง %s"},t.prototype.atX0=function(){return"เมื่อ %s"},t.prototype.commaEveryDay=function(){return", ทุกๆ วัน"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", ทุกๆ %s วันของสัปดาห์"},t.prototype.commaX0ThroughX1=function(){return", %s ถึง %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s ถึง %s"},t.prototype.first=function(){return"แรก"},t.prototype.second=function(){return"ที่สอง"},t.prototype.third=function(){return"ที่สาม"},t.prototype.fourth=function(){return"ที่สี่"},t.prototype.fifth=function(){return"ที่ห้า"},t.prototype.commaOnThe=function(){return", ในวัน "},t.prototype.spaceX0OfTheMonth=function(){return" %s ของเดือน"},t.prototype.lastDay=function(){return"วันสุดท้าย"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", ณ สุดท้าย %s ของเดือน"},t.prototype.commaOnlyOnX0=function(){return", เท่านั้น %s"},t.prototype.commaAndOnX0=function(){return", และใน %s"},t.prototype.commaEveryX0Months=function(){return", ทุกๆ %s เดือน"},t.prototype.commaOnlyInX0=function(){return", เท่านั้น %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", ในวันสิ้นเดือน"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ในวันธรรมดาสุดท้ายของเดือน"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s วันก่อนวันสุดท้ายของเดือน"},t.prototype.firstWeekday=function(){return"วันธรรมดาวันแรก"},t.prototype.weekdayNearestDayX0=function(){return"วันธรรมดาที่ใกล้ที่สุด %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", ในวัน %s ของเดือน"},t.prototype.commaEveryX0Days=function(){return", ทุกๆ %s วัน"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", ระหว่างวัน %s และ %s ของเดือน"},t.prototype.commaOnDayX0OfTheMonth=function(){return", ในวัน %s ของเดือน"},t.prototype.commaEveryHour=function(){return", ทุกๆ ชั่วโมง"},t.prototype.commaEveryX0Years=function(){return", ทุกๆ %s ปี"},t.prototype.commaStartingX0=function(){return", เริ่ม %s"},t.prototype.daysOfTheWeek=function(){return["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"]},t.prototype.monthsOfTheYear=function(){return["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},t}();e.th=n},631:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.tr=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"her dakika"},t.prototype.everyHour=function(){return"her saat"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"İfade a\xe7ıklamasını oluştururken bir hata oluştu. Cron ifadesini g\xf6zden ge\xe7irin."},t.prototype.atSpace=function(){return"Saat "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Saat %s ve %s arasındaki her dakika"},t.prototype.at=function(){return"Saat"},t.prototype.spaceAnd=function(){return" ve"},t.prototype.everySecond=function(){return"her saniye"},t.prototype.everyX0Seconds=function(){return"her %s saniyede bir"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"dakikaların %s. ve %s. saniyeleri arası"},t.prototype.atX0SecondsPastTheMinute=function(){return"dakikaların %s. saniyesinde"},t.prototype.everyX0Minutes=function(){return"her %s dakikada bir"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"saatlerin %s. ve %s. dakikaları arası"},t.prototype.atX0MinutesPastTheHour=function(){return"saatlerin %s. dakikasında"},t.prototype.everyX0Hours=function(){return"her %s saatte"},t.prototype.betweenX0AndX1=function(){return"%s ile %s arasında"},t.prototype.atX0=function(){return"saat %s"},t.prototype.commaEveryDay=function(){return", her g\xfcn"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", ayın her %s g\xfcn\xfc"},t.prototype.commaX0ThroughX1=function(){return", %s ile %s arasında"},t.prototype.commaAndX0ThroughX1=function(){return", ve %s ile %s arasında"},t.prototype.first=function(){return"ilk"},t.prototype.second=function(){return"ikinci"},t.prototype.third=function(){return"\xfc\xe7\xfcnc\xfc"},t.prototype.fourth=function(){return"d\xf6rd\xfcnc\xfc"},t.prototype.fifth=function(){return"beşinci"},t.prototype.commaOnThe=function(){return", ayın "},t.prototype.spaceX0OfTheMonth=function(){return" %s g\xfcn\xfc"},t.prototype.lastDay=function(){return"son g\xfcn"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", ayın son %s g\xfcn\xfc"},t.prototype.commaOnlyOnX0=function(){return", sadece %s g\xfcn\xfc"},t.prototype.commaAndOnX0=function(){return", ve %s"},t.prototype.commaEveryX0Months=function(){return", %s ayda bir"},t.prototype.commaOnlyInX0=function(){return", sadece %s i\xe7in"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", ayın son g\xfcn\xfc"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ayın son iş g\xfcn\xfc"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ayın son g\xfcn\xfcnden \xf6nceki g\xfcnler"},t.prototype.firstWeekday=function(){return"ilk iş g\xfcn\xfc"},t.prototype.weekdayNearestDayX0=function(){return"%s. g\xfcn\xfc sonrasındaki ilk iş g\xfcn\xfc"},t.prototype.commaOnTheX0OfTheMonth=function(){return", ayın %s"},t.prototype.commaEveryX0Days=function(){return", %s g\xfcnde bir"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", ayın %s. ve %s. g\xfcnleri arası"},t.prototype.commaOnDayX0OfTheMonth=function(){return", ayın %s. g\xfcn\xfc"},t.prototype.commaEveryX0Years=function(){return", %s yılda bir"},t.prototype.commaStartingX0=function(){return", başlangı\xe7 %s"},t.prototype.daysOfTheWeek=function(){return["Pazar","Pazartesi","Salı","\xc7arşamba","Perşembe","Cuma","Cumartesi"]},t.prototype.monthsOfTheYear=function(){return["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eyl\xfcl","Ekim","Kasım","Aralık"]},t}();e.tr=n},225:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.uk=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"щохвилини"},t.prototype.everyHour=function(){return"щогодини"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},t.prototype.atSpace=function(){return"О "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},t.prototype.at=function(){return"О"},t.prototype.spaceAnd=function(){return" та"},t.prototype.everySecond=function(){return"Щосекунди"},t.prototype.everyX0Seconds=function(){return"кожні %s секунд"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},t.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},t.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},t.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},t.prototype.everyX0Hours=function(){return"кожні %s годин"},t.prototype.betweenX0AndX1=function(){return"між %s та %s"},t.prototype.atX0=function(){return"о %s"},t.prototype.commaEveryDay=function(){return", щоденно"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},t.prototype.commaX0ThroughX1=function(){return", %s по %s"},t.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},t.prototype.first=function(){return"перший"},t.prototype.second=function(){return"другий"},t.prototype.third=function(){return"третій"},t.prototype.fourth=function(){return"четвертий"},t.prototype.fifth=function(){return"п'ятий"},t.prototype.commaOnThe=function(){return", в "},t.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},t.prototype.lastDay=function(){return"останній день"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},t.prototype.commaOnlyOnX0=function(){return", тільки в %s"},t.prototype.commaAndOnX0=function(){return", і в %s"},t.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},t.prototype.commaOnlyInX0=function(){return", тільки в %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},t.prototype.firstWeekday=function(){return"перший будень"},t.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},t.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},t.prototype.commaEveryX0Days=function(){return", кожен %s день"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},t.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},t.prototype.commaEveryX0Years=function(){return", кожні %s роки"},t.prototype.commaStartingX0=function(){return", початок %s"},t.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},t.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},t}();e.uk=n},292:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.vi=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Đ\xe3 xảy ra lỗi khi tạo m\xf4 tả biểu thức. Vui l\xf2ng kiểm tra c\xfa ph\xe1p biểu thức cron."},t.prototype.everyMinute=function(){return"mỗi ph\xfat"},t.prototype.everyHour=function(){return"mỗi giờ"},t.prototype.atSpace=function(){return"V\xe0o "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Mỗi ph\xfat giữa %s and %s"},t.prototype.at=function(){return"V\xe0o"},t.prototype.spaceAnd=function(){return" v\xe0"},t.prototype.everySecond=function(){return"mỗi gi\xe2y"},t.prototype.everyX0Seconds=function(){return"mỗi %s gi\xe2y"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"gi\xe2y thứ %s qua ph\xfat thứ %s"},t.prototype.atX0SecondsPastTheMinute=function(){return"tại gi\xe2y thứ %s của mỗi ph\xfat"},t.prototype.everyX0Minutes=function(){return"mỗi %s ph\xfat"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"ph\xfat thứ %s qua %s tiếng"},t.prototype.atX0MinutesPastTheHour=function(){return"v\xe0o %s ph\xfat của mỗi tiếng"},t.prototype.everyX0Hours=function(){return"mỗi %s tiếng"},t.prototype.betweenX0AndX1=function(){return"giữa %s v\xe0 %s"},t.prototype.atX0=function(){return"v\xe0o %s"},t.prototype.commaEveryDay=function(){return", mỗi ng\xe0y"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", mỗi %s ng\xe0y trong tuần"},t.prototype.commaX0ThroughX1=function(){return", %s đến %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s đến %s"},t.prototype.first=function(){return"đầu ti\xean"},t.prototype.second=function(){return"thứ 2"},t.prototype.third=function(){return"thứ 3"},t.prototype.fourth=function(){return"thứ 4"},t.prototype.fifth=function(){return"thứ 5"},t.prototype.commaOnThe=function(){return", tr\xean "},t.prototype.spaceX0OfTheMonth=function(){return" %s của th\xe1ng"},t.prototype.lastDay=function(){return"ng\xe0y cuối c\xf9ng"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", v\xe0o ng\xe0y %s cuối c\xf9ng của th\xe1ng"},t.prototype.commaOnlyOnX0=function(){return", chỉ tr\xean %s"},t.prototype.commaAndOnX0=function(){return", v\xe0 hơn %s"},t.prototype.commaEveryX0Months=function(){return", mỗi ng\xe0y %s th\xe1ng"},t.prototype.commaOnlyInX0=function(){return", chỉ trong %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", v\xe0o ng\xe0y cuối c\xf9ng của th\xe1ng"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", v\xe0o ng\xe0y cuối tuần của th\xe1ng"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ng\xe0y trước ng\xe0y cuối c\xf9ng của th\xe1ng"},t.prototype.firstWeekday=function(){return"ng\xe0y đầu tuần"},t.prototype.weekdayNearestDayX0=function(){return"ng\xe0y trong tuần ng\xe0y gần nhất %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", v\xe0o ng\xe0y %s của th\xe1ng"},t.prototype.commaEveryX0Days=function(){return", mỗi %s ng\xe0y"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", giữa ng\xe0y %s v\xe0 %s trong th\xe1ng"},t.prototype.commaOnDayX0OfTheMonth=function(){return", v\xe0o %s ng\xe0y trong th\xe1ng"},t.prototype.commaEveryHour=function(){return", mỗi tiếng"},t.prototype.commaEveryX0Years=function(){return", mỗi %s năm"},t.prototype.commaStartingX0=function(){return", bắt đầu %s"},t.prototype.daysOfTheWeek=function(){return["Chủ nhật","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"]},t.prototype.monthsOfTheYear=function(){return["Th\xe1ng 1","Th\xe1ng 2","Th\xe1ng 3","Th\xe1ng 4","Th\xe1ng 5","Th\xe1ng 6","Th\xe1ng 7","Th\xe1ng 8","Th\xe1ng 9","Th\xe1ng 10","Th\xe1ng 11","Th\xe1ng 12"]},t}();e.vi=n},571:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.zh_CN=void 0;var n=function(){function t(){}return t.prototype.setPeriodBeforeTime=function(){return!0},t.prototype.pm=function(){return"下午"},t.prototype.am=function(){return"上午"},t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.everyMinute=function(){return"每分钟"},t.prototype.everyHour=function(){return"每小时"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误请检查cron表达式语法。"},t.prototype.atSpace=function(){return"在"},t.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},t.prototype.at=function(){return"在"},t.prototype.spaceAnd=function(){return" 和"},t.prototype.everySecond=function(){return"每秒"},t.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分钟后的第 %s 到 %s 秒"},t.prototype.atX0SecondsPastTheMinute=function(){return"在一分钟后的第 %s 秒"},t.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整点后的第 %s 到 %s 分钟"},t.prototype.atX0MinutesPastTheHour=function(){return"在整点后的第 %s 分钟"},t.prototype.everyX0Hours=function(){return"每隔 %s 小时"},t.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},t.prototype.atX0=function(){return"在%s"},t.prototype.commaEveryDay=function(){return", 每天"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},t.prototype.commaX0ThroughX1=function(){return", %s至%s"},t.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},t.prototype.first=function(){return"第一个"},t.prototype.second=function(){return"第二个"},t.prototype.third=function(){return"第三个"},t.prototype.fourth=function(){return"第四个"},t.prototype.fifth=function(){return"第五个"},t.prototype.commaOnThe=function(){return", 限每月的"},t.prototype.spaceX0OfTheMonth=function(){return"%s"},t.prototype.lastDay=function(){return"本月最后一天"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},t.prototype.commaOnlyOnX0=function(){return", 仅%s"},t.prototype.commaAndOnX0=function(){return", 或者为%s"},t.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},t.prototype.commaOnlyInX0=function(){return", 仅限%s"},t.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},t.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},t.prototype.firstWeekday=function(){return"第一个工作日"},t.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},t.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},t.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},t.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},t.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},t.prototype.commaStartingX0=function(){return", %s开始"},t.prototype.dayX0=function(){return" %s 号"},t.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},t.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},t}();e.zh_CN=n},983:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.zh_TW=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return", 從 %s 年至 %s 年"},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"每分鐘"},t.prototype.everyHour=function(){return"每小時"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"產生表達式描述時發生了錯誤,請檢查 cron 表達式語法。"},t.prototype.atSpace=function(){return"在 "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 和 %s 之間的每分鐘"},t.prototype.at=function(){return"在"},t.prototype.spaceAnd=function(){return" 和"},t.prototype.everySecond=function(){return"每秒"},t.prototype.everyX0Seconds=function(){return"每 %s 秒"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分鐘後的 %s 到 %s 秒"},t.prototype.atX0SecondsPastTheMinute=function(){return"在一分鐘後的 %s 秒"},t.prototype.everyX0Minutes=function(){return"每 %s 分鐘"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整點後的 %s 到 %s 分鐘"},t.prototype.atX0MinutesPastTheHour=function(){return"在整點後的 %s 分"},t.prototype.everyX0Hours=function(){return"每 %s 小時"},t.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之間"},t.prototype.atX0=function(){return"在 %s"},t.prototype.commaEveryDay=function(){return", 每天"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每週的每 %s 天"},t.prototype.commaX0ThroughX1=function(){return", %s 到 %s"},t.prototype.commaAndX0ThroughX1=function(){return", 和 %s 到 %s"},t.prototype.first=function(){return"第一個"},t.prototype.second=function(){return"第二個"},t.prototype.third=function(){return"第三個"},t.prototype.fourth=function(){return"第四個"},t.prototype.fifth=function(){return"第五個"},t.prototype.commaOnThe=function(){return", 在每月 "},t.prototype.spaceX0OfTheMonth=function(){return"%s "},t.prototype.lastDay=function(){return"最後一天"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", 每月的最後一個 %s "},t.prototype.commaOnlyOnX0=function(){return", 僅在 %s"},t.prototype.commaAndOnX0=function(){return", 或 %s"},t.prototype.commaEveryX0Months=function(){return", 每 %s 月"},t.prototype.commaOnlyInX0=function(){return", 僅在 %s"},t.prototype.commaOnlyInMonthX0=function(){return", 僅在 %s"},t.prototype.commaOnlyInYearX0=function(){return", 僅在 %s 年"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", 每月的最後一天"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 每月的最後一個工作日"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s 這個月的最後一天的前幾天"},t.prototype.firstWeekday=function(){return"第一個工作日"},t.prototype.weekdayNearestDayX0=function(){return"最接近 %s 號的工作日"},t.prototype.commaOnTheX0OfTheMonth=function(){return", 每月的 %s "},t.prototype.commaEveryX0Days=function(){return", 每 %s 天"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 在每月的 %s 和 %s 之間"},t.prototype.commaOnDayX0OfTheMonth=function(){return", 每月的 %s"},t.prototype.commaEveryX0Years=function(){return", 每 %s 年"},t.prototype.commaStartingX0=function(){return", %s 開始"},t.prototype.dayX0=function(){return" %s 號"},t.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},t.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},t}();e.zh_TW=n},515:(t,e)=>{function n(t,e){if(!t)throw Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var s=parseInt(r[o],10);n(s>=1&&s<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var s=parseInt(r[o],10);n(s>=0&&s<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},823:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()})},t.containsAny=function(t,e){return e.some(function(e){return t.indexOf(e)>-1})},t}();e.StringUtilities=n}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return r[t](n,n.exports,s),n.exports}var a={};return Object.defineProperty(a,"__esModule",{value:!0}),a.toString=void 0,t=s(333),e=s(420),t.ExpressionDescriptor.initialize(new e.allLocalesLoader),a.default=t.ExpressionDescriptor,n=t.ExpressionDescriptor.toString,a.toString=n,a})(),t.exports=n()},174558:function(t,e,n){var r=n(371240);t.exports=r},828108:function(t){var e,n;e=0,n=function(){"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function e(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach(function(t){(function(t,e,r){(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function n(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var u="undefined"!=typeof window&&void 0!==window.document,l=u?window:{},c=!!u&&!!l.document.documentElement&&"ontouchstart"in l.document.documentElement,h=!!u&&"PointerEvent"in l,f="cropper",p="crop",d="move",m="zoom",g="".concat(f,"-crop"),y="".concat(f,"-disabled"),b="".concat(f,"-hidden"),O="".concat(f,"-hide"),w="".concat(f,"-invisible"),x="".concat(f,"-modal"),D="".concat(f,"-move"),k="".concat(f,"Action"),S="".concat(f,"Preview"),E="crop",C="move",T="none",A="crop",M="cropend",P="cropmove",B="cropstart",I="dblclick",F=h?"pointerdown":c?"touchstart":"mousedown",N=h?"pointermove":c?"touchmove":"mousemove",L=h?"pointerup pointercancel":c?"touchend touchcancel":"mouseup",_="ready",X="resize",R="wheel",j="zoom",$="image/jpeg",V=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,H=/^data:/,W=/^data:image\/jpeg;base64,/,z=/^img|canvas$/i,q={viewMode:0,dragMode:E,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},U=Number.isNaN||l.isNaN;function Y(t){return"number"==typeof t&&!U(t)}var G=function(t){return t>0&&t<1/0};function Q(t){return void 0===t}function K(t){return"object"===r(t)&&null!==t}var J=Object.prototype.hasOwnProperty;function Z(t){if(!K(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&J.call(n,"isPrototypeOf")}catch(t){return!1}}function tt(t){return"function"==typeof t}var te=Array.prototype.slice;function tn(t){return Array.from?Array.from(t):te.call(t)}function tr(t,e){return t&&tt(e)&&(Array.isArray(t)||Y(t.length)?tn(t).forEach(function(n,r){e.call(t,n,r,t)}):K(t)&&Object.keys(t).forEach(function(n){e.call(t,t[n],n,t)})),t}var ti=Object.assign||function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return K(t)&&n.length>0&&n.forEach(function(e){K(e)&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t},to=/\.\d*(?:0|9){12}\d*$/;function ts(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return to.test(t)?Math.round(t*e)/e:t}var ta=/^width|height|left|top|marginLeft|marginTop$/;function tu(t,e){var n=t.style;tr(e,function(t,e){ta.test(e)&&Y(t)&&(t="".concat(t,"px")),n[e]=t})}function tl(t,e){if(!!e){if(Y(t.length)){tr(t,function(t){tl(t,e)});return}if(t.classList){t.classList.add(e);return}var n=t.className.trim();n?0>n.indexOf(e)&&(t.className="".concat(n," ").concat(e)):t.className=e}}function tc(t,e){if(!!e){if(Y(t.length)){tr(t,function(t){tc(t,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function th(t,e,n){if(!!e){if(Y(t.length)){tr(t,function(t){th(t,e,n)});return}n?tl(t,e):tc(t,e)}}var tf=/([a-z\d])([A-Z])/g;function tp(t){return t.replace(tf,"$1-$2").toLowerCase()}function td(t,e){return K(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(tp(e)))}function tm(t,e,n){K(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(tp(e)),n)}var tg=/\s\s*/,ty=function(){var t=!1;if(u){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});l.addEventListener("test",n,r),l.removeEventListener("test",n,r)}return t}();function tv(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;e.trim().split(tg).forEach(function(e){if(!ty){var s=t.listeners;s&&s[e]&&s[e][n]&&(o=s[e][n],delete s[e][n],0===Object.keys(s[e]).length&&delete s[e],0===Object.keys(s).length&&delete t.listeners)}t.removeEventListener(e,o,r)})}function tb(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;e.trim().split(tg).forEach(function(e){if(r.once&&!ty){var s=t.listeners,a=void 0===s?{}:s;o=function(){delete a[e][n],t.removeEventListener(e,o,r);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];n.apply(t,u)},!a[e]&&(a[e]={}),a[e][n]&&t.removeEventListener(e,a[e][n],r),a[e][n]=o,t.listeners=a}t.addEventListener(e,o,r)})}function tO(t,e,n){var r;return tt(Event)&&tt(CustomEvent)?r=new CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,n),t.dispatchEvent(r)}function tw(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var tx=l.location,tD=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function tk(t){var e=t.match(tD);return null!==e&&(e[1]!==tx.protocol||e[2]!==tx.hostname||e[3]!==tx.port)}function tS(t){var e="timestamp=".concat(new Date().getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function tE(t){var e=t.rotate,n=t.scaleX,r=t.scaleY,o=t.translateX,s=t.translateY,a=[];Y(o)&&0!==o&&a.push("translateX(".concat(o,"px)")),Y(s)&&0!==s&&a.push("translateY(".concat(s,"px)")),Y(e)&&0!==e&&a.push("rotate(".concat(e,"deg)")),Y(n)&&1!==n&&a.push("scaleX(".concat(n,")")),Y(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var u=a.length?a.join(" "):"none";return{WebkitTransform:u,msTransform:u,transform:u}}function tC(t,n){var r=t.pageX,o=t.pageY,s={endX:r,endY:o};return n?s:e({startX:r,startY:o},s)}function tT(t){var e=t.aspectRatio,n=t.height,r=t.width,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",s=G(r),a=G(n);if(s&&a){var u=n*e;"contain"===o&&u>r||"cover"===o&&u<r?n=r/e:r=n*e}else s?n=r/e:a&&(r=n*e);return{width:r,height:n}}var tA=String.fromCharCode,tM=/^data:.*,/,tP=l.Cropper,tB=function(){var t,e,n;function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),!t||!z.test(t.tagName))throw Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=ti({},q,Z(e)&&e),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return t=r,e=[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e[f]){if(e[f]=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e,n,r,o=this;if(!!t){this.url=t,this.imageData={};var s=this.element,a=this.options;if(!a.rotatable&&!a.scalable&&(a.checkOrientation=!1),!a.checkOrientation||!window.ArrayBuffer){this.clone();return}if(H.test(t)){if(W.test(t)){;this.read((tr(r=new Uint8Array(n=new ArrayBuffer((e=atob(t.replace(tM,""))).length)),function(t,n){r[n]=e.charCodeAt(n)}),n))}else this.clone();return}var u=new XMLHttpRequest,l=this.clone.bind(this);this.reloading=!0,this.xhr=u,u.onabort=l,u.onerror=l,u.ontimeout=l,u.onprogress=function(){u.getResponseHeader("content-type")!==$&&u.abort()},u.onload=function(){o.read(u.response)},u.onloadend=function(){o.reloading=!1,o.xhr=null},a.checkCrossOrigin&&tk(t)&&s.crossOrigin&&(t=tS(t)),u.open("GET",t,!0),u.responseType="arraybuffer",u.withCredentials="use-credentials"===s.crossOrigin,u.send()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=function(t){var e=new DataView(t);try{if(255===e.getUint8(0)&&216===e.getUint8(1)){for(var n=e.byteLength,r=2;r+1<n;){if(255===e.getUint8(r)&&225===e.getUint8(r+1)){h=r;break}r+=1}}if(h){var o=h+4,s=h+10;if("Exif"===function(t,e,n){var r="";n+=e;for(var o=e;o<n;o+=1)r+=tA(t.getUint8(o));return r}(e,o,4)){var a=e.getUint16(s);if(((c=18761===a)||19789===a)&&42===e.getUint16(s+2,c)){var u=e.getUint32(s+4,c);u>=8&&(f=s+u)}}}if(f){var l,c,h,f,p,d,m=e.getUint16(f,c);for(d=0;d<m;d+=1)if(p=f+12*d+2,274===e.getUint16(p,c)){p+=8,l=e.getUint16(p,c),e.setUint16(p,1,c);break}}}catch(t){l=1}return l}(t),o=0,s=1,a=1;if(r>1){this.url=function(t,e){for(var n=[],r=new Uint8Array(t);r.length>0;)n.push(tA.apply(null,tn(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}(t,$);var u=function(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}(r);o=u.rotate,s=u.scaleX,a=u.scaleY}e.rotatable&&(n.rotate=o),e.scalable&&(n.scaleX=s,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,r=e;this.options.checkCrossOrigin&&tk(e)&&(!n&&(n="anonymous"),r=tS(e)),this.crossOrigin=n,this.crossOriginUrl=r;var o=document.createElement("img");n&&(o.crossOrigin=n),o.src=r||e,o.alt=t.alt||"The image to crop",this.image=o,o.onload=this.start.bind(this),o.onerror=this.stop.bind(this),tl(o,O),t.parentNode.insertBefore(o,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=l.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(l.navigator.userAgent),r=function(e,n){ti(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.initialImageData=ti({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(e.naturalWidth&&!n){r(e.naturalWidth,e.naturalHeight);return}var o=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=o,o.onload=function(){r(o.width,o.height),!n&&s.removeChild(o)},o.src=e.src,!n&&(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",s.appendChild(o))}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(!!this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,o=document.createElement("div");o.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var s=o.querySelector(".".concat(f,"-container")),a=s.querySelector(".".concat(f,"-canvas")),u=s.querySelector(".".concat(f,"-drag-box")),l=s.querySelector(".".concat(f,"-crop-box")),c=l.querySelector(".".concat(f,"-face"));this.container=r,this.cropper=s,this.canvas=a,this.dragBox=u,this.cropBox=l,this.viewBox=s.querySelector(".".concat(f,"-view-box")),this.face=c,a.appendChild(n),tl(t,b),r.insertBefore(s,t.nextSibling),tc(n,O),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,tl(l,b),!e.guides&&tl(l.getElementsByClassName("".concat(f,"-dashed")),b),!e.center&&tl(l.getElementsByClassName("".concat(f,"-center")),b),e.background&&tl(s,"".concat(f,"-bg")),!e.highlight&&tl(c,w),e.cropBoxMovable&&(tl(c,D),tm(c,k,"all")),!e.cropBoxResizable&&(tl(l.getElementsByClassName("".concat(f,"-line")),b),tl(l.getElementsByClassName("".concat(f,"-point")),b)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),tt(e.ready)&&tb(t,_,e.ready,{once:!0}),tO(t,_)}}},{key:"unbuild",value:function(){if(!!this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),tc(this.element,b)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],n=[{key:"noConflict",value:function(){return window.Cropper=tP,r}},{key:"setDefaults",value:function(t){ti(q,Z(t)&&t)}}],e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}();return ti(tB.prototype,{render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,n=this.container,r=this.cropper,o=Number(e.minContainerWidth),s=Number(e.minContainerHeight);tl(r,b),tc(t,b);var a={width:Math.max(n.offsetWidth,o>=0?o:200),height:Math.max(n.offsetHeight,s>=0?s:100)};this.containerData=a,tu(r,{width:a.width,height:a.height}),tl(t,b),tc(r,b)},initCanvas:function(){var t=this.containerData,e=this.imageData,n=this.options.viewMode,r=Math.abs(e.rotate)%180==90,o=r?e.naturalHeight:e.naturalWidth,s=r?e.naturalWidth:e.naturalHeight,a=o/s,u=t.width,l=t.height;t.height*a>t.width?3===n?u=t.height*a:l=t.width/a:3===n?l=t.width/a:u=t.height*a;var c={aspectRatio:a,naturalWidth:o,naturalHeight:s,width:u,height:l};this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(t.width-c.width)/2,c.top=(t.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=ti({},c)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,o=this.canvasData,s=this.cropBoxData,a=n.viewMode,u=o.aspectRatio,l=this.cropped&&s;if(t){var c=Number(n.minCanvasWidth)||0,h=Number(n.minCanvasHeight)||0;a>1?(c=Math.max(c,r.width),h=Math.max(h,r.height),3===a&&(h*u>c?c=h*u:h=c/u)):a>0&&(c?c=Math.max(c,l?s.width:0):h?h=Math.max(h,l?s.height:0):l&&(c=s.width,(h=s.height)*u>c?c=h*u:h=c/u));var f=tT({aspectRatio:u,width:c,height:h});c=f.width,h=f.height,o.minWidth=c,o.minHeight=h,o.maxWidth=1/0,o.maxHeight=1/0}if(e){if(a>(l?0:1)){var p=r.width-o.width,d=r.height-o.height;o.minLeft=Math.min(0,p),o.minTop=Math.min(0,d),o.maxLeft=Math.max(0,p),o.maxTop=Math.max(0,d),l&&this.limited&&(o.minLeft=Math.min(s.left,s.left+(s.width-o.width)),o.minTop=Math.min(s.top,s.top+(s.height-o.height)),o.maxLeft=s.left,o.maxTop=s.top,2===a&&(o.width>=r.width&&(o.minLeft=Math.min(0,p),o.maxLeft=Math.max(0,p)),o.height>=r.height&&(o.minTop=Math.min(0,d),o.maxTop=Math.max(0,d))))}else o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=r.width,o.maxTop=r.height}},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var o=function(t){var e=t.width,n=t.height,r=t.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:e};var o=r%90*Math.PI/180,s=Math.sin(o),a=Math.cos(o),u=e*a+n*s,l=e*s+n*a;return r>90?{width:l,height:u}:{width:u,height:l}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),s=o.width,a=o.height,u=n.width*(s/n.naturalWidth),l=n.height*(a/n.naturalHeight);n.left-=(u-n.width)/2,n.top-=(l-n.height)/2,n.width=u,n.height=l,n.aspectRatio=s/a,n.naturalWidth=s,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,tu(this.canvas,ti({width:n.width,height:n.height},tE({translateX:n.left,translateY:n.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,n=this.imageData,r=n.naturalWidth*(e.width/e.naturalWidth),o=n.naturalHeight*(e.height/e.naturalHeight);ti(n,{width:r,height:o,left:(e.width-r)/2,top:(e.height-o)/2}),tu(this.image,ti({width:n.width,height:n.height},tE(ti({translateX:n.left,translateY:n.top},n)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,n=t.aspectRatio||t.initialAspectRatio,r=Number(t.autoCropArea)||.8,o={width:e.width,height:e.height};n&&(e.height*n>e.width?o.height=o.width/n:o.width=o.height*n),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),o.width=Math.max(o.minWidth,o.width*r),o.height=Math.max(o.minHeight,o.height*r),o.left=e.left+(e.width-o.width)/2,o.top=e.top+(e.height-o.height)/2,o.oldLeft=o.left,o.oldTop=o.top,this.initialCropBoxData=ti({},o)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,o=this.canvasData,s=this.cropBoxData,a=this.limited,u=n.aspectRatio;if(t){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,h=a?Math.min(r.width,o.width,o.width+o.left,r.width-o.left):r.width,f=a?Math.min(r.height,o.height,o.height+o.top,r.height-o.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),u&&(l&&c?c*u>l?c=l/u:l=c*u:l?c=l/u:c&&(l=c*u),f*u>h?f=h/u:h=f*u),s.minWidth=Math.min(l,h),s.minHeight=Math.min(c,f),s.maxWidth=h,s.maxHeight=f}e&&(a?(s.minLeft=Math.max(0,o.left),s.minTop=Math.max(0,o.top),s.maxLeft=Math.min(r.width,o.left+o.width)-s.width,s.maxTop=Math.min(r.height,o.top+o.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=r.width-s.width,s.maxTop=r.height-s.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,t.movable&&t.cropBoxMovable&&tm(this.face,k,n.width>=e.width&&n.height>=e.height?d:"all"),tu(this.cropBox,ti({width:n.width,height:n.height},tE({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),!this.disabled&&this.output()},output:function(){this.preview(),tO(this.element,A,this.getData())}},{initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,r=e?this.crossOriginUrl:this.url,o=t.alt||"The image to preview",s=document.createElement("img");if(e&&(s.crossOrigin=e),s.src=r,s.alt=o,this.viewBox.appendChild(s),this.viewBoxImage=s,!!n){var a=n;"string"==typeof n?a=t.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,tr(a,function(t){var n=document.createElement("img");tm(t,S,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=r,n.alt=o,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)})}},resetPreview:function(){tr(this.previews,function(t){var e=td(t,S);tu(t,{width:e.width,height:e.height}),t.innerHTML=e.html,!function(t,e){if(K(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(tp(e)))}(t,S)})},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,o=n.height,s=t.width,a=t.height,u=n.left-e.left-t.left,l=n.top-e.top-t.top;if(!!this.cropped&&!this.disabled)tu(this.viewBoxImage,ti({width:s,height:a},tE(ti({translateX:-u,translateY:-l},t)))),tr(this.previews,function(e){var n=td(e,S),c=n.width,h=n.height,f=c,p=h,d=1;r&&(p=o*(d=c/r)),o&&p>h&&(f=r*(d=h/o),p=h),tu(e,{width:f,height:p}),tu(e.getElementsByTagName("img")[0],ti({width:s*d,height:a*d},tE(ti({translateX:-u*d,translateY:-l*d},t))))})}},{bind:function(){var t=this.element,e=this.options,n=this.cropper;tt(e.cropstart)&&tb(t,B,e.cropstart),tt(e.cropmove)&&tb(t,P,e.cropmove),tt(e.cropend)&&tb(t,M,e.cropend),tt(e.crop)&&tb(t,A,e.crop),tt(e.zoom)&&tb(t,j,e.zoom),tb(n,F,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&tb(n,R,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&tb(n,I,this.onDblclick=this.dblclick.bind(this)),tb(t.ownerDocument,N,this.onCropMove=this.cropMove.bind(this)),tb(t.ownerDocument,L,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&tb(window,X,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;tt(e.cropstart)&&tv(t,B,e.cropstart),tt(e.cropmove)&&tv(t,P,e.cropmove),tt(e.cropend)&&tv(t,M,e.cropend),tt(e.crop)&&tv(t,A,e.crop),tt(e.zoom)&&tv(t,j,e.zoom),tv(n,F,this.onCropStart),e.zoomable&&e.zoomOnWheel&&tv(n,R,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&tv(n,I,this.onDblclick),tv(t.ownerDocument,N,this.onCropMove),tv(t.ownerDocument,L,this.onCropEnd),e.responsive&&tv(window,X,this.onResize)}},{resize:function(){if(!this.disabled){var t,e,n=this.options,r=this.container,o=this.containerData,s=r.offsetWidth/o.width,a=r.offsetHeight/o.height,u=Math.abs(s-1)>Math.abs(a-1)?s:a;1!==u&&(n.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(tr(t,function(e,n){t[n]=e*u})),this.setCropBoxData(tr(e,function(t,n){e[n]=t*u}))))}},dblclick:function(){var t,e;if(!this.disabled&&this.options.dragMode!==T)this.setDragMode((t=this.dragBox,e=g,t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)?C:E)},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;if(this.disabled)return;if(t.preventDefault(),!this.wheeling)this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)},cropStart:function(t){var e,n=t.buttons,r=t.button;if(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(Y(n)&&1!==n||Y(r)&&0!==r||t.ctrlKey))return;var o=this.options,s=this.pointers;if(t.changedTouches?tr(t.changedTouches,function(t){s[t.identifier]=tC(t)}):s[t.pointerId||0]=tC(t),e=Object.keys(s).length>1&&o.zoomable&&o.zoomOnTouch?m:td(t.target,k),!!V.test(e)&&!1!==tO(this.element,B,{originalEvent:t,action:e}))t.preventDefault(),this.action=e,this.cropping=!1,e===p&&(this.cropping=!0,tl(this.dragBox,x))},cropMove:function(t){var e=this.action;if(this.disabled||!e)return;var n=this.pointers;if(t.preventDefault(),!1!==tO(this.element,P,{originalEvent:t,action:e}))t.changedTouches?tr(t.changedTouches,function(t){ti(n[t.identifier]||{},tC(t,!0))}):ti(n[t.pointerId||0]||{},tC(t,!0)),this.change(t)},cropEnd:function(t){if(this.disabled)return;var e=this.action,n=this.pointers;if(t.changedTouches?tr(t.changedTouches,function(t){delete n[t.identifier]}):delete n[t.pointerId||0],!!e)t.preventDefault(),!Object.keys(n).length&&(this.action=""),this.cropping&&(this.cropping=!1,th(this.dragBox,x,this.cropped&&this.options.modal)),tO(this.element,M,{originalEvent:t,action:e})}},{change:function(t){var n,r,o,s,a=this.options,u=this.canvasData,l=this.containerData,c=this.cropBoxData,h=this.pointers,f=this.action,g=a.aspectRatio,y=c.left,O=c.top,w=c.width,x=c.height,D=y+w,k=O+x,S=0,E=0,C=l.width,T=l.height,A=!0;!g&&t.shiftKey&&(g=w&&x?w/x:1),this.limited&&(S=c.minLeft,E=c.minTop,C=S+Math.min(l.width,u.width,u.left+u.width),T=E+Math.min(l.height,u.height,u.top+u.height));var M=h[Object.keys(h)[0]],P={x:M.endX-M.startX,y:M.endY-M.startY},B=function(t){switch(t){case"e":D+P.x>C&&(P.x=C-D);break;case"w":y+P.x<S&&(P.x=S-y);break;case"n":O+P.y<E&&(P.y=E-O);break;case"s":k+P.y>T&&(P.y=T-k)}};switch(f){case"all":y+=P.x,O+=P.y;break;case"e":if(P.x>=0&&(D>=C||g&&(O<=E||k>=T))){A=!1;break}B("e"),(w+=P.x)<0&&(f="w",y-=w=-w),g&&(x=w/g,O+=(c.height-x)/2);break;case"n":if(P.y<=0&&(O<=E||g&&(y<=S||D>=C))){A=!1;break}B("n"),x-=P.y,O+=P.y,x<0&&(f="s",O-=x=-x),g&&(w=x*g,y+=(c.width-w)/2);break;case"w":if(P.x<=0&&(y<=S||g&&(O<=E||k>=T))){A=!1;break}B("w"),w-=P.x,y+=P.x,w<0&&(f="e",y-=w=-w),g&&(x=w/g,O+=(c.height-x)/2);break;case"s":if(P.y>=0&&(k>=T||g&&(y<=S||D>=C))){A=!1;break}B("s"),(x+=P.y)<0&&(f="n",O-=x=-x),g&&(w=x*g,y+=(c.width-w)/2);break;case"ne":if(g){if(P.y<=0&&(O<=E||D>=C)){A=!1;break}B("n"),x-=P.y,O+=P.y,w=x*g}else B("n"),B("e"),P.x>=0?D<C?w+=P.x:P.y<=0&&O<=E&&(A=!1):w+=P.x,P.y<=0?O>E&&(x-=P.y,O+=P.y):(x-=P.y,O+=P.y);w<0&&x<0?(f="sw",w=-w,O-=x=-x,y-=w):w<0?(f="nw",y-=w=-w):x<0&&(f="se",O-=x=-x);break;case"nw":if(g){if(P.y<=0&&(O<=E||y<=S)){A=!1;break}B("n"),x-=P.y,O+=P.y,w=x*g,y+=c.width-w}else B("n"),B("w"),P.x<=0?y>S?(w-=P.x,y+=P.x):P.y<=0&&O<=E&&(A=!1):(w-=P.x,y+=P.x),P.y<=0?O>E&&(x-=P.y,O+=P.y):(x-=P.y,O+=P.y);w<0&&x<0?(f="se",w=-w,O-=x=-x,y-=w):w<0?(f="ne",y-=w=-w):x<0&&(f="sw",O-=x=-x);break;case"sw":if(g){if(P.x<=0&&(y<=S||k>=T)){A=!1;break}B("w"),w-=P.x,y+=P.x,x=w/g}else B("s"),B("w"),P.x<=0?y>S?(w-=P.x,y+=P.x):P.y>=0&&k>=T&&(A=!1):(w-=P.x,y+=P.x),P.y>=0?k<T&&(x+=P.y):x+=P.y;w<0&&x<0?(f="ne",w=-w,O-=x=-x,y-=w):w<0?(f="se",y-=w=-w):x<0&&(f="nw",O-=x=-x);break;case"se":if(g){if(P.x>=0&&(D>=C||k>=T)){A=!1;break}B("e"),w+=P.x,x=w/g}else B("s"),B("e"),P.x>=0?D<C?w+=P.x:P.y>=0&&k>=T&&(A=!1):w+=P.x,P.y>=0?k<T&&(x+=P.y):x+=P.y;w<0&&x<0?(f="nw",w=-w,O-=x=-x,y-=w):w<0?(f="sw",y-=w=-w):x<0&&(f="ne",O-=x=-x);break;case d:this.move(P.x,P.y),A=!1;break;case m:;this.zoom((r=e({},n=h),o=0,tr(n,function(t,e){delete r[e],tr(r,function(e){var n=Math.abs(t.startX-e.startX),r=Math.abs(t.startY-e.startY),s=Math.abs(t.endX-e.endX),a=Math.abs(t.endY-e.endY),u=Math.sqrt(n*n+r*r),l=(Math.sqrt(s*s+a*a)-u)/u;Math.abs(l)>Math.abs(o)&&(o=l)})}),o),t),A=!1;break;case p:if(!P.x||!P.y){A=!1;break}s=tw(this.cropper),y=M.startX-s.left,O=M.startY-s.top,w=c.minWidth,x=c.minHeight,P.x>0?f=P.y>0?"se":"ne":P.x<0&&(y-=w,f=P.y>0?"sw":"nw"),P.y<0&&(O-=x),!this.cropped&&(tc(this.cropBox,b),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}A&&(c.width=w,c.height=x,c.left=y,c.top=O,this.action=f,this.renderCropBox()),tr(h,function(t){t.startX=t.endX,t.startY=t.endY})}},{crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&tl(this.dragBox,x),tc(this.cropBox,b),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=ti({},this.initialImageData),this.canvasData=ti({},this.initialCanvasData),this.cropBoxData=ti({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(ti(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),tc(this.dragBox,x),tl(this.cropBox,b)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,tr(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,tc(this.cropper,y)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,tl(this.cropper,y)),this},destroy:function(){var t=this.element;return t[f]?(t[f]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,o=n.top;return this.moveTo(Q(t)?t:r+Number(t),Q(e)?e:o+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(Y(t)&&(n.left=t,r=!0),Y(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,o=this.canvasData,s=o.width,a=o.height,u=o.naturalWidth,l=o.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=u*t,h=l*t;if(!1===tO(this.element,j,{ratio:t,oldRatio:s/u,originalEvent:n}))return this;if(n){var f,p,d,m=this.pointers,g=tw(this.cropper);var y=m&&Object.keys(m).length?(f=0,p=0,d=0,tr(m,function(t){var e=t.startX,n=t.startY;f+=e,p+=n,d+=1}),f/=d,p/=d,{pageX:f,pageY:p}):{pageX:n.pageX,pageY:n.pageY};o.left-=(c-s)*((y.pageX-g.left-o.left)/s),o.top-=(h-a)*((y.pageY-g.top-o.top)/a)}else Z(e)&&Y(e.x)&&Y(e.y)?(o.left-=(c-s)*((e.x-o.left)/s),o.top-=(h-a)*((e.y-o.top)/a)):(o.left-=(c-s)/2,o.top-=(h-a)/2);o.width=c,o.height=h,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return Y(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,Y(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(Y(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(Y(t)&&(n.scaleX=t,r=!0),Y(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,o=this.canvasData,s=this.cropBoxData;if(this.ready&&this.cropped){t={x:s.left-o.left,y:s.top-o.top,width:s.width,height:s.height};var a=r.width/r.naturalWidth;if(tr(t,function(e,n){t[n]=e/a}),e){var u=Math.round(t.y+t.height),l=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=l-t.x,t.height=u-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,o={};if(this.ready&&!this.disabled&&Z(t)){var s=!1;e.rotatable&&Y(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,s=!0),e.scalable&&(Y(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,s=!0),Y(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;Y(t.x)&&(o.left=t.x*a+r.left),Y(t.y)&&(o.top=t.y*a+r.top),Y(t.width)&&(o.width=t.width*a),Y(t.height)&&(o.height=t.height*a),this.setCropBoxData(o)}return this},getContainerData:function(){return this.ready?ti({},this.containerData):{}},getImageData:function(){return this.sized?ti({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&tr(["left","top","width","height","naturalWidth","naturalHeight"],function(n){e[n]=t[n]}),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&Z(t)&&(Y(t.left)&&(e.left=t.left),Y(t.top)&&(e.top=t.top),Y(t.width)?(e.width=t.width,e.height=t.width/n):Y(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,o=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&Z(t)&&(Y(t.left)&&(r.left=t.left),Y(t.top)&&(r.top=t.top),Y(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),Y(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),o&&(e?r.height=r.width/o:n&&(r.width=r.height*o)),this.renderCropBox()),this},getCroppedCanvas:function(){var t,e,n,r,o,a,u,l,c,h,f,p,d,m,g,y,b,O,w,x,D,k,S,E,C,T,A,M,P,B,I,F,N,L,_,X,R,j,$,V,H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var W=this.canvasData;var z=(t=this.image,e=this.imageData,n=W,r=H,o=e.aspectRatio,a=e.naturalWidth,u=e.naturalHeight,l=e.rotate,c=e.scaleX,h=e.scaleY,f=n.aspectRatio,p=n.naturalWidth,d=n.naturalHeight,m=r.fillColor,g=r.imageSmoothingEnabled,y=r.imageSmoothingQuality,O=void 0===(b=r.maxWidth)?1/0:b,x=void 0===(w=r.maxHeight)?1/0:w,k=void 0===(D=r.minWidth)?0:D,E=void 0===(S=r.minHeight)?0:S,T=(C=document.createElement("canvas")).getContext("2d"),A=tT({aspectRatio:f,width:O,height:x}),M=tT({aspectRatio:f,width:k,height:E},"cover"),P=Math.min(A.width,Math.max(M.width,p)),B=Math.min(A.height,Math.max(M.height,d)),I=tT({aspectRatio:o,width:O,height:x}),F=tT({aspectRatio:o,width:k,height:E},"cover"),N=Math.min(I.width,Math.max(F.width,a)),L=Math.min(I.height,Math.max(F.height,u)),C.width=ts(P),C.height=ts(B),T.fillStyle=void 0===m?"transparent":m,T.fillRect(0,0,P,B),T.save(),T.translate(P/2,B/2),T.rotate((void 0===l?0:l)*Math.PI/180),T.scale(void 0===c?1:c,void 0===h?1:h),T.imageSmoothingEnabled=void 0===g||g,T.imageSmoothingQuality=void 0===y?"low":y,T.drawImage.apply(T,[t].concat(s([-N/2,-L/2,N,L].map(function(t){return Math.floor(ts(t))})))),T.restore(),C);if(!this.cropped)return z;var q=this.getData(H.rounded),U=q.x,Y=q.y,G=q.width,Q=q.height,K=z.width/Math.floor(W.naturalWidth);1!==K&&(U*=K,Y*=K,G*=K,Q*=K);var J=G/Q,Z=tT({aspectRatio:J,width:H.maxWidth||1/0,height:H.maxHeight||1/0}),tt=tT({aspectRatio:J,width:H.minWidth||0,height:H.minHeight||0},"cover"),te=tT({aspectRatio:J,width:H.width||(1!==K?z.width:G),height:H.height||(1!==K?z.height:Q)}),tn=te.width,tr=te.height;tn=Math.min(Z.width,Math.max(tt.width,tn)),tr=Math.min(Z.height,Math.max(tt.height,tr));var ti=document.createElement("canvas"),to=ti.getContext("2d");ti.width=ts(tn),ti.height=ts(tr),to.fillStyle=H.fillColor||"transparent",to.fillRect(0,0,tn,tr);var ta=H.imageSmoothingEnabled,tu=H.imageSmoothingQuality;to.imageSmoothingEnabled=void 0===ta||ta,tu&&(to.imageSmoothingQuality=tu);var tl=z.width,tc=z.height,th=U,tf=Y;th<=-G||th>tl?(th=0,_=0,R=0,$=0):th<=0?(R=-th,$=_=Math.min(tl,G+(th=0))):th<=tl&&(R=0,$=_=Math.min(G,tl-th)),_<=0||tf<=-Q||tf>tc?(tf=0,X=0,j=0,V=0):tf<=0?(j=-tf,V=X=Math.min(tc,Q+(tf=0))):tf<=tc&&(j=0,V=X=Math.min(Q,tc-tf));var tp=[th,tf,_,X];if($>0&&V>0){var td=tn/G;tp.push(R*td,j*td,$*td,V*td)}return to.drawImage.apply(to,[z].concat(s(tp.map(function(t){return Math.floor(ts(t))})))),ti},setAspectRatio:function(t){var e=this.options;return!this.disabled&&!Q(t)&&(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var o=t===E,s=e.movable&&t===C;t=o||s?t:T,e.dragMode=t,tm(n,k,t),th(n,g,o),th(n,D,s),!e.cropBoxMovable&&(tm(r,k,t),th(r,g,o),th(r,D,s))}return this}}),tB},t.exports=n()},889785:function(t){"use strict";t.exports=function(t){return(t=String(t||""),r.test(t))?"rtl":o.test(t)?"ltr":"neutral"};var e="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",r=RegExp("^[^"+n+"]*["+e+"]"),o=RegExp("^[^"+e+"]*["+n+"]")},815651:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===n.call(t)},a=function(t){if(!t||"[object Object]"!==n.call(t))return!1;var r,o=e.call(t,"constructor"),s=t.constructor&&t.constructor.prototype&&e.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!s)return!1;for(r in t);return void 0===r||e.call(t,r)},u=function(t,e){r&&"__proto__"===e.name?r(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(o)return o(t,n).value}return t[n]};t.exports=function t(){var e,n,r,o,c,h,f=arguments[0],p=1,d=arguments.length,m=!1;for("boolean"==typeof f&&(m=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<d;++p)if(e=arguments[p],null!=e)for(n in e)r=l(f,n),f!==(o=l(e,n))&&(m&&o&&(a(o)||(c=s(o)))?(c?(c=!1,h=r&&s(r)?r:[]):h=r&&a(r)?r:{},u(f,{name:n,newValue:t(m,h,o)})):void 0!==o&&u(f,{name:n,newValue:o}));return f}},739561:function(t){"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(s=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;0!=o--;){var r,o,s,a=s[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n}},554836:function(t){"use strict";function e(t,e){var n,r;if(0===e.length)return t;for(n=0,r=e.length;n<r;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t<0?-2*t:t}function n(t,r,o,s){var a=e(e(e(t,o),function(t){return Object.prototype.toString.call(t)}(r)),typeof r);if(null===r)return e(a,"null");if(void 0===r)return e(a,"undefined");if("object"==typeof r||"function"==typeof r){if(-1!==s.indexOf(r))return e(a,"[Circular]"+o);s.push(r);var u,l,c,h=(u=a,l=r,c=s,Object.keys(l).sort().reduce(function(t,e){return n(t,l[e],e,c)},u));if(!("valueOf"in r)||"function"!=typeof r.valueOf)return h;try{return e(h,String(r.valueOf()))}catch(t){return e(h,"[valueOf exception]"+(t.stack||t.message))}}return e(a,r.toString())}t.exports=function(t){return function(t,e){for(;t.length<8;)t="0"+t;return t}(n(0,t,"",[]).toString(16),8)}},224333:function(t,e,n){"use strict";var r=n(855474),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(t){return r.isMemo(t)?a:u[t.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var c=Object.defineProperty,h=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(m){var o=d(n);o&&o!==m&&t(e,o,r)}var a=h(n);f&&(a=a.concat(f(n)));for(var u=l(e),g=l(n),y=0;y<a.length;++y){var b=a[y];if(!s[b]&&!(r&&r[b])&&!(g&&g[b])&&!(u&&u[b])){var O=p(n,b);try{c(e,b,O)}catch(t){}}}}return e}},377996:function(t){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},840994:function(t,e){"use strict";for(var n,r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),o={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},s={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},u=1;u<20;u++)a["f"+u]=111+u;function l(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),!Array.isArray(t)&&(t=[t]);var r=t.map(function(t){return c(t,e)}),o=function(t){return r.some(function(e){return h(e,t)})};return null==n?o:o(n)}function c(t,e){var n=e&&e.byKey,r={},u=(t=t.replace("++","+add")).split("+"),l=u.length;for(var c in o)r[o[c]]=!1;var h=!0,d=!1,m=void 0;try{for(var g,y=u[Symbol.iterator]();!(h=(g=y.next()).done);h=!0){var b=g.value,O=b.endsWith("?")&&b.length>1;O&&(b=b.slice(0,-1));var w=p(b),x=o[w];if(b.length>1&&!x&&!s[b]&&!a[w])throw TypeError('Unknown modifier: "'+b+'"');(1===l||!x)&&(n?r.key=w:r.which=f(b)),x&&(r[x]=!O||null)}}catch(t){d=!0,m=t}finally{try{!h&&y.return&&y.return()}finally{if(d)throw m}}return r}function h(t,e){for(var n in t){var r=t[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=e.key?e.key.toLowerCase():"which"===n?91===r&&93===e.which?91:e.which:e[n])||!1!==r)){if(o!==r)return!1}}return!0}function f(t){return a[t=p(t)]||t.toUpperCase().charCodeAt(0)}function p(t){return t=s[t=t.toLowerCase()]||t}e.isHotkey=l},139654:function(t,e,n){"use strict";n.d(e,{Z:()=>_});var r=n("894626"),o=n("582288"),s=n("195354"),a=n("685521"),u=n("980581"),l=n("252237"),c=n.n(l),h=n("340243"),f=n("606631"),p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function t(e,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(e);if((0,f.ZP)(!a,"Warning: There may be circular references"),a)return!1;if(e===o)return!0;if(n&&s>1)return!1;r.add(e);var l=s+1;if(Array.isArray(e)){if(!Array.isArray(o)||e.length!==o.length)return!1;for(var c=0;c<e.length;c++)if(!t(e[c],o[c],l))return!1;return!0}if(e&&o&&"object"===(0,u.Z)(e)&&"object"===(0,u.Z)(o)){var h=Object.keys(e);return h.length===Object.keys(o).length&&h.every(function(n){return t(e[n],o[n],l)})}return!1}(t,e)},d=n("455069"),m=n("515680"),g=n("862020");function y(t,e,n){return(t-e)/(n-e)}function b(t,e,n,r){var o,s=(e-(o=n))/(r-o),a={};switch(t){case"rtl":a.right="".concat(100*s,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(100*s,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(100*s,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(100*s,"%"),a.transform="translateX(-50%)"}return a}function O(t,e){return Array.isArray(t)?t[e]:t}var w={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=w.F1&&e<=w.F12)return!1;switch(e){case w.ALT:case w.CAPS_LOCK:case w.CONTEXT_MENU:case w.CTRL:case w.DOWN:case w.END:case w.ESC:case w.HOME:case w.INSERT:case w.LEFT:case w.MAC_FF_META:case w.META:case w.NUMLOCK:case w.NUM_CENTER:case w.PAGE_DOWN:case w.PAGE_UP:case w.PAUSE:case w.PRINT_SCREEN:case w.RIGHT:case w.SHIFT:case w.UP:case w.WIN_KEY:case w.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=w.ZERO&&t<=w.NINE||t>=w.NUM_ZERO&&t<=w.NUM_MULTIPLY||t>=w.A&&t<=w.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case w.SPACE:case w.QUESTION_MARK:case w.NUM_PLUS:case w.NUM_MINUS:case w.NUM_PERIOD:case w.NUM_DIVISION:case w.SEMICOLON:case w.DASH:case w.EQUALS:case w.COMMA:case w.PERIOD:case w.SLASH:case w.APOSTROPHE:case w.SINGLE_QUOTE:case w.OPEN_SQUARE_BRACKET:case w.BACKSLASH:case w.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},x=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),D=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],k=d.forwardRef(function(t,e){var n,s=t.prefixCls,a=t.value,u=t.valueIndex,l=t.onStartMove,h=t.style,f=t.render,p=t.dragging,y=t.onOffsetChange,k=t.onChangeComplete,S=t.onFocus,E=t.onMouseEnter,C=(0,g.Z)(t,D),T=d.useContext(x),A=T.min,M=T.max,P=T.direction,B=T.disabled,I=T.keyboard,F=T.range,N=T.tabIndex,L=T.ariaLabelForHandle,_=T.ariaLabelledByForHandle,X=T.ariaValueTextFormatterForHandle,R=T.styles,j=T.classNames,$="".concat(s,"-handle"),V=function(t){!B&&l(t,u)},H=b(P,a,A,M),W={};null!==u&&(W={tabIndex:B?null:O(N,u),role:"slider","aria-valuemin":A,"aria-valuemax":M,"aria-valuenow":a,"aria-disabled":B,"aria-label":O(L,u),"aria-labelledby":O(_,u),"aria-valuetext":null===(n=O(X,u))||void 0===n?void 0:n(a),"aria-orientation":"ltr"===P||"rtl"===P?"horizontal":"vertical",onMouseDown:V,onTouchStart:V,onFocus:function(t){null==S||S(t,u)},onMouseEnter:function(t){E(t,u)},onKeyDown:function(t){if(!B&&I){var e=null;switch(t.which||t.keyCode){case w.LEFT:e="ltr"===P||"btt"===P?-1:1;break;case w.RIGHT:e="ltr"===P||"btt"===P?1:-1;break;case w.UP:e="ttb"!==P?1:-1;break;case w.DOWN:e="ttb"!==P?-1:1;break;case w.HOME:e="min";break;case w.END:e="max";break;case w.PAGE_UP:e=2;break;case w.PAGE_DOWN:e=-2}null!==e&&(t.preventDefault(),y(e,u))}},onKeyUp:function(t){switch(t.which||t.keyCode){case w.LEFT:case w.RIGHT:case w.UP:case w.DOWN:case w.HOME:case w.END:case w.PAGE_UP:case w.PAGE_DOWN:null==k||k()}}});var z=d.createElement("div",(0,m.Z)({ref:e,className:c()($,(0,o.Z)((0,o.Z)({},"".concat($,"-").concat(u+1),null!==u&&F),"".concat($,"-dragging"),p),j.handle),style:(0,r.Z)((0,r.Z)((0,r.Z)({},H),h),R.handle)},W,C));return f&&(z=f(z,{index:u,prefixCls:s,value:a,dragging:p})),z}),S=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"],E=d.forwardRef(function(t,e){var n=t.prefixCls,o=t.style,s=t.onStartMove,u=t.onOffsetChange,l=t.values,c=t.handleRender,h=t.activeHandleRender,f=t.draggingIndex,p=t.onFocus,y=(0,g.Z)(t,S),b=d.useRef({});d.useImperativeHandle(e,function(){return{focus:function(t){var e;null===(e=b.current[t])||void 0===e||e.focus()}}});var w=d.useState(-1),x=(0,a.Z)(w,2),D=x[0],E=x[1],C=(0,r.Z)({prefixCls:n,onStartMove:s,onOffsetChange:u,render:c,onFocus:function(t,e){E(e),null==p||p(t)},onMouseEnter:function(t,e){E(e)}},y);return d.createElement(d.Fragment,null,l.map(function(t,e){return d.createElement(k,(0,m.Z)({ref:function(t){t?b.current[e]=t:delete b.current[e]},dragging:f===e,style:O(o,e),key:e,value:t,valueIndex:e},C))}),h&&d.createElement(k,(0,m.Z)({key:"a11y"},C,{value:l[D],valueIndex:null,dragging:-1!==f,render:h,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),C=function(t){var e=t.prefixCls,n=t.style,s=t.children,a=t.value,u=t.onClick,l=d.useContext(x),h=l.min,f=l.max,p=l.direction,m=l.includedStart,g=l.includedEnd,y=l.included,O="".concat(e,"-text"),w=b(p,a,h,f);return d.createElement("span",{className:c()(O,(0,o.Z)({},"".concat(O,"-active"),y&&m<=a&&a<=g)),style:(0,r.Z)((0,r.Z)({},w),n),onMouseDown:function(t){t.stopPropagation()},onClick:function(){u(a)}},s)},T=function(t){var e=t.prefixCls,n=t.marks,r=t.onClick,o="".concat(e,"-mark");return n.length?d.createElement("div",{className:o},n.map(function(t){var e=t.value,n=t.style,s=t.label;return d.createElement(C,{key:e,prefixCls:o,style:n,value:e,onClick:r},s)})):null},A=function(t){var e=t.prefixCls,n=t.value,s=t.style,a=t.activeStyle,u=d.useContext(x),l=u.min,h=u.max,f=u.direction,p=u.included,m=u.includedStart,g=u.includedEnd,y="".concat(e,"-dot"),O=p&&m<=n&&n<=g,w=(0,r.Z)((0,r.Z)({},b(f,n,l,h)),"function"==typeof s?s(n):s);return O&&(w=(0,r.Z)((0,r.Z)({},w),"function"==typeof a?a(n):a)),d.createElement("span",{className:c()(y,(0,o.Z)({},"".concat(y,"-active"),O)),style:w})},M=function(t){var e=t.prefixCls,n=t.marks,r=t.dots,o=t.style,s=t.activeStyle,a=d.useContext(x),u=a.min,l=a.max,c=a.step,h=d.useMemo(function(){var t=new Set;if(n.forEach(function(e){t.add(e.value)}),r&&null!==c){for(var e=u;e<=l;)t.add(e),e+=c}return Array.from(t)},[u,l,c,r,n]);return d.createElement("div",{className:"".concat(e,"-step")},h.map(function(t){return d.createElement(A,{prefixCls:e,key:t,value:t,style:o,activeStyle:s})}))},P=function(t){var e,n,s=t.prefixCls,a=t.style,u=t.start,l=t.end,h=t.index,f=t.onStartMove,p=t.replaceCls,m=d.useContext(x),g=m.direction,y=m.min,b=m.max,O=m.disabled,w=m.range,D=m.classNames,k="".concat(s,"-track");var S=(u-(e=y))/(b-e);var E=(l-(n=y))/(b-n),C=function(t){!O&&f&&f(t,-1)},T={};switch(g){case"rtl":T.right="".concat(100*S,"%"),T.width="".concat(100*E-100*S,"%");break;case"btt":T.bottom="".concat(100*S,"%"),T.height="".concat(100*E-100*S,"%");break;case"ttb":T.top="".concat(100*S,"%"),T.height="".concat(100*E-100*S,"%");break;default:T.left="".concat(100*S,"%"),T.width="".concat(100*E-100*S,"%")}var A=p||c()(k,(0,o.Z)((0,o.Z)({},"".concat(k,"-").concat(h+1),null!==h&&w),"".concat(s,"-track-draggable"),f),D.track);return d.createElement("div",{className:A,style:(0,r.Z)((0,r.Z)({},T),a),onMouseDown:C,onTouchStart:C})},B=function(t){var e=t.prefixCls,n=t.style,o=t.values,s=t.startPoint,a=t.onStartMove,u=d.useContext(x),l=u.included,h=u.range,f=u.min,p=u.styles,m=u.classNames,g=d.useMemo(function(){if(!h){if(0===o.length)return[];var t=null!=s?s:f,e=o[0];return[{start:Math.min(t,e),end:Math.max(t,e)}]}for(var n=[],r=0;r<o.length-1;r+=1)n.push({start:o[r],end:o[r+1]});return n},[o,h,s,f]);if(!l)return null;var y=m.tracks||p.tracks?d.createElement(P,{index:null,prefixCls:e,start:g[0].start,end:g[g.length-1].end,replaceCls:c()(m.tracks,"".concat(e,"-tracks")),style:p.tracks}):null;return d.createElement(d.Fragment,null,y,g.map(function(t,o){var s=t.start,u=t.end;return d.createElement(P,{index:o,prefixCls:e,style:(0,r.Z)((0,r.Z)({},O(n,o)),p.track),start:s,end:u,key:o,onStartMove:a})}))},I=n("730933");function F(t){var e="touches"in t?t.touches[0]:t;return{pageX:e.pageX,pageY:e.pageY}}n("33421");var N=function(t,e,n,r,o,u,l,c,h){var f=d.useState(null),p=(0,a.Z)(f,2),m=p[0],g=p[1],y=d.useState(-1),b=(0,a.Z)(y,2),O=b[0],w=b[1],x=d.useState(n),D=(0,a.Z)(x,2),k=D[0],S=D[1],E=d.useState(n),C=(0,a.Z)(E,2),T=C[0],A=C[1],M=d.useRef(null),P=d.useRef(null);d.useLayoutEffect(function(){-1===O&&S(n)},[n,O]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",M.current),document.removeEventListener("mouseup",P.current),document.removeEventListener("touchmove",M.current),document.removeEventListener("touchend",P.current)}},[]);var B=function(t,e){k.some(function(e,n){return e!==t[n]})&&(void 0!==e&&g(e),S(t),l(t))},N=(0,I.Z)(function(t,e){if(-1===t){var n=T[0],a=T[T.length-1],l=e*(o-r);l=Math.min(l=Math.max(l,r-n),o-a),l=u(n+l)-n,B(T.map(function(t){return t+l}))}else{var c=(0,s.Z)(k);c[t]=T[t];var f=h(c,(o-r)*e,t,"dist");B(f.values,f.value)}});return[O,m,d.useMemo(function(){var t=(0,s.Z)(n).sort(function(t,e){return t-e}),e=(0,s.Z)(k).sort(function(t,e){return t-e});return t.every(function(t,n){return t===e[n]})?k:n},[n,k]),function(r,o,s){r.stopPropagation();var a=s||n,u=a[o];w(o),g(u),A(a);var l=F(r),h=l.pageX,f=l.pageY,p=function(n){n.preventDefault();var r,s=F(n),a=s.pageX,u=s.pageY,l=a-h,c=u-f,p=t.current.getBoundingClientRect(),d=p.width,m=p.height;switch(e){case"btt":r=-c/m;break;case"ttb":r=c/m;break;case"rtl":r=-l/d;break;default:r=l/d}N(o,r)},d=function t(e){e.preventDefault(),document.removeEventListener("mouseup",t),document.removeEventListener("mousemove",p),document.removeEventListener("touchend",t),document.removeEventListener("touchmove",p),M.current=null,P.current=null,w(-1),c()};document.addEventListener("mouseup",d),document.addEventListener("mousemove",p),document.addEventListener("touchend",d),document.addEventListener("touchmove",p),M.current=p,P.current=d}]},L=d.forwardRef(function(t,e){var n,l,m,g,y,b,O,w,D,k,S,C,A=t.prefixCls,P=void 0===A?"rc-slider":A,I=t.className,F=t.style,L=t.classNames,_=t.styles,X=t.disabled,R=void 0!==X&&X,j=t.keyboard,$=void 0===j||j,V=t.autoFocus,H=t.onFocus,W=t.onBlur,z=t.min,q=void 0===z?0:z,U=t.max,Y=void 0===U?100:U,G=t.step,Q=void 0===G?1:G,K=t.value,J=t.defaultValue,Z=t.range,tt=t.count,te=t.onChange,tn=t.onBeforeChange,tr=t.onAfterChange,ti=t.onChangeComplete,to=t.allowCross,ts=t.pushable,ta=void 0!==ts&&ts,tu=t.draggableTrack,tl=t.reverse,tc=t.vertical,th=t.included,tf=void 0===th||th,tp=t.startPoint,td=t.trackStyle,tm=t.handleStyle,tg=t.railStyle,ty=t.dotStyle,tv=t.activeDotStyle,tb=t.marks,tO=t.dots,tw=t.handleRender,tx=t.activeHandleRender,tD=t.tabIndex,tk=void 0===tD?0:tD,tS=t.ariaLabelForHandle,tE=t.ariaLabelledByForHandle,tC=t.ariaValueTextFormatterForHandle,tT=d.useRef(null),tA=d.useRef(null),tM=d.useMemo(function(){return tc?tl?"ttb":"btt":tl?"rtl":"ltr"},[tl,tc]),tP=d.useMemo(function(){return isFinite(q)?q:0},[q]),tB=d.useMemo(function(){return isFinite(Y)?Y:100},[Y]),tI=d.useMemo(function(){return null!==Q&&Q<=0?1:Q},[Q]),tF=d.useMemo(function(){return"boolean"==typeof ta?!!ta&&tI:ta>=0&&ta},[ta,tI]),tN=d.useMemo(function(){return Object.keys(tb||{}).map(function(t){var e=tb[t],n={value:Number(t)};return e&&"object"===(0,u.Z)(e)&&!d.isValidElement(e)&&("label"in e||"style"in e)?(n.style=e.style,n.label=e.label):n.label=e,n}).filter(function(t){var e=t.label;return e||"number"==typeof e}).sort(function(t,e){return t.value-e.value})},[tb]);var tL=(n=tP,l=tB,m=tI,g=tN,y=void 0===to||to,b=tF,O=d.useCallback(function(t){return Math.max(n,Math.min(l,t))},[n,l]),w=d.useCallback(function(t){if(null!==m){var e=n+Math.round((O(t)-n)/m)*m,r=function(t){return(String(t).split(".")[1]||"").length},o=Math.max(r(m),r(l),r(n)),s=Number(e.toFixed(o));return n<=s&&s<=l?s:null}return null},[m,n,l,O]),D=d.useCallback(function(t){var e=O(t),r=g.map(function(t){return t.value});null!==m&&r.push(w(t)),r.push(n,l);var o=r[0],s=l-n;return r.forEach(function(t){var n=Math.abs(e-t);n<=s&&(o=t,s=n)}),o},[n,l,g,m,O,w]),k=function t(e,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof r){var u,c=e[o],h=c+r,f=[];g.forEach(function(t){f.push(t.value)}),f.push(n,l),f.push(w(c));var p=r>0?1:-1;"unit"===a?f.push(w(c+p*m)):f.push(w(h)),f=f.filter(function(t){return null!==t}).filter(function(t){return r<0?t<=c:t>=c}),"unit"===a&&(f=f.filter(function(t){return t!==c}));var d="unit"===a?c:h,y=Math.abs((u=f[0])-d);if(f.forEach(function(t){var e=Math.abs(t-d);e<y&&(u=t,y=e)}),void 0===u)return r<0?n:l;if("dist"===a)return u;if(Math.abs(r)>1){var b=(0,s.Z)(e);return b[o]=u,t(b,r-p,o,a)}return u}if("min"===r)return n;if("max"===r)return l},S=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=t[n],s=k(t,e,n,r);return{value:s,changed:s!==o}},C=function(t){return null===b&&0===t||"number"==typeof b&&t<b},[D,function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=t.map(D),s=o[n],a=k(o,e,n,r);if(o[n]=a,!1===y){var u=b||0;n>0&&o[n-1]!==s&&(o[n]=Math.max(o[n],o[n-1]+u)),n<o.length-1&&o[n+1]!==s&&(o[n]=Math.min(o[n],o[n+1]-u))}else if("number"==typeof b||null===b){for(var l=n+1;l<o.length;l+=1){for(var c=!0;C(o[l]-o[l-1])&&c;){var h=S(o,1,l);o[l]=h.value,c=h.changed}}for(var f=n;f>0;f-=1){for(var p=!0;C(o[f]-o[f-1])&&p;){var d=S(o,-1,f-1);o[f-1]=d.value,p=d.changed}}for(var m=o.length-1;m>0;m-=1){for(var g=!0;C(o[m]-o[m-1])&&g;){var O=S(o,-1,m-1);o[m-1]=O.value,g=O.changed}}for(var w=0;w<o.length-1;w+=1){for(var x=!0;C(o[w+1]-o[w])&&x;){var E=S(o,1,w+1);o[w+1]=E.value,x=E.changed}}}return{value:o[n],values:o}}]),t_=(0,a.Z)(tL,2),tX=t_[0],tR=t_[1],tj=(0,h.Z)(J,{value:K}),t$=(0,a.Z)(tj,2),tV=t$[0],tH=t$[1],tW=d.useMemo(function(){var t=null==tV?[]:Array.isArray(tV)?tV:[tV],e=(0,a.Z)(t,1)[0],n=void 0===e?tP:e,r=null===tV?[]:[n];if(Z){if(r=(0,s.Z)(t),tt||void 0===tV){var o,u=tt>=0?tt+1:2;for(r=r.slice(0,u);r.length<u;)r.push(null!==(o=r[r.length-1])&&void 0!==o?o:tP)}r.sort(function(t,e){return t-e})}return r.forEach(function(t,e){r[e]=tX(t)}),r},[tV,Z,tP,tt,tX]),tz=d.useRef(tW);tz.current=tW;var tq=function(t){return Z?t:t[0]},tU=function(t){var e=(0,s.Z)(t).sort(function(t,e){return t-e});te&&!p(e,tz.current,!0)&&te(tq(e)),tH(e)},tY=function(){var t=tq(tz.current);null==tr||tr(t),(0,f.ZP)(!tr,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==ti||ti(t)},tG=N(tA,tM,tW,tP,tB,tX,tU,tY,tR),tQ=(0,a.Z)(tG,4),tK=tQ[0],tJ=tQ[1],tZ=tQ[2],t0=tQ[3],t1=function(t,e){if(!R){var n,r,o=0,a=tB-tP;tW.forEach(function(e,n){var r=Math.abs(t-e);r<=a&&(a=r,o=n)});var u=(0,s.Z)(tW);u[o]=t,Z&&!tW.length&&void 0===tt&&u.push(t),null==tn||tn(tq(u)),tU(u),e&&(null===(n=document.activeElement)||void 0===n||null===(r=n.blur)||void 0===r||r.call(n),tT.current.focus(o),t0(e,o,u))}},t2=d.useState(null),t3=(0,a.Z)(t2,2),t5=t3[0],t4=t3[1];d.useEffect(function(){if(null!==t5){var t=tW.indexOf(t5);t>=0&&tT.current.focus(t)}t4(null)},[t5]);var t9=d.useMemo(function(){return(!tu||null!==tI)&&tu},[tu,tI]),t8=function(t,e){t0(t,e),null==tn||tn(tq(tz.current))},t6=-1!==tK;d.useEffect(function(){if(!t6){var t=tW.lastIndexOf(tJ);tT.current.focus(t)}},[t6]);var t7=d.useMemo(function(){return(0,s.Z)(tZ).sort(function(t,e){return t-e})},[tZ]),et=d.useMemo(function(){return Z?[t7[0],t7[t7.length-1]]:[tP,t7[0]]},[t7,Z,tP]),ee=(0,a.Z)(et,2),en=ee[0],er=ee[1];d.useImperativeHandle(e,function(){return{focus:function(){tT.current.focus(0)},blur:function(){var t,e=document.activeElement;null!==(t=tA.current)&&void 0!==t&&t.contains(e)&&(null==e||e.blur())}}}),d.useEffect(function(){V&&tT.current.focus(0)},[]);var ei=d.useMemo(function(){return{min:tP,max:tB,direction:tM,disabled:R,keyboard:$,step:tI,included:tf,includedStart:en,includedEnd:er,range:Z,tabIndex:tk,ariaLabelForHandle:tS,ariaLabelledByForHandle:tE,ariaValueTextFormatterForHandle:tC,styles:_||{},classNames:L||{}}},[tP,tB,tM,R,$,tI,tf,en,er,Z,tk,tS,tE,tC,_,L]);return d.createElement(x.Provider,{value:ei},d.createElement("div",{ref:tA,className:c()(P,I,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(P,"-disabled"),R),"".concat(P,"-vertical"),tc),"".concat(P,"-horizontal"),!tc),"".concat(P,"-with-marks"),tN.length)),style:F,onMouseDown:function(t){t.preventDefault();var e,n=tA.current.getBoundingClientRect(),r=n.width,o=n.height,s=n.left,a=n.top,u=n.bottom,l=n.right,c=t.clientX,h=t.clientY;switch(tM){case"btt":e=(u-h)/o;break;case"ttb":e=(h-a)/o;break;case"rtl":e=(l-c)/r;break;default:e=(c-s)/r}t1(tX(tP+e*(tB-tP)),t)}},d.createElement("div",{className:c()("".concat(P,"-rail"),null==L?void 0:L.rail),style:(0,r.Z)((0,r.Z)({},tg),null==_?void 0:_.rail)}),d.createElement(B,{prefixCls:P,style:td,values:t7,startPoint:tp,onStartMove:t9?t8:void 0}),d.createElement(M,{prefixCls:P,marks:tN,dots:tO,style:ty,activeStyle:tv}),d.createElement(E,{ref:tT,prefixCls:P,style:tm,values:tZ,draggingIndex:tK,onStartMove:t8,onOffsetChange:function(t,e){if(!R){var n=tR(tW,t,e);null==tn||tn(tq(tW)),tU(n.values),t4(n.value)}},onFocus:H,onBlur:W,handleRender:tw,activeHandleRender:tx,onChangeComplete:tY}),d.createElement(T,{prefixCls:P,marks:tN,onClick:t1})))}),_=L},668096:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(455069),o=n(828108),s=n.n(o),a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function u(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)0>e.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}var l=["aspectRatio","autoCrop","autoCropArea","background","center","checkCrossOrigin","checkOrientation","cropBoxMovable","cropBoxResizable","data","dragMode","guides","highlight","initialAspectRatio","minCanvasHeight","minCanvasWidth","minContainerHeight","minContainerWidth","minCropBoxHeight","minCropBoxWidth","modal","movable","preview","responsive","restore","rotatable","scalable","toggleDragModeOnDblclick","viewMode","wheelZoomRatio","zoomOnTouch","zoomOnWheel","zoomable","cropstart","cropmove","cropend","crop","zoom","ready"],c={opacity:0,maxWidth:"100%"},h=r.forwardRef(function(t,e){var n,o=u(t,[]),h=o.dragMode,f=void 0===h?"crop":h,p=o.src,d=o.style,m=o.className,g=o.crossOrigin,y=o.scaleX,b=o.scaleY,O=o.enable,w=o.zoomTo,x=o.rotateTo,D=o.alt,k=o.ready,S=o.onInitialized,E=u(o,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),C={scaleY:b,scaleX:y,enable:O,zoomTo:w,rotateTo:x},T=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=(0,r.useRef)(null);return r.useEffect(function(){t.forEach(function(t){t&&("function"==typeof t?t(n.current):t.current=n.current)})},[t]),n}(e,(0,r.useRef)(null));(0,r.useEffect)(function(){var t;(null===(t=T.current)||void 0===t?void 0:t.cropper)&&"number"==typeof w&&T.current.cropper.zoomTo(w)},[o.zoomTo]),(0,r.useEffect)(function(){var t;(null===(t=T.current)||void 0===t?void 0:t.cropper)&&void 0!==p&&T.current.cropper.reset().clear().replace(p)},[p]),(0,r.useEffect)(function(){if(null!==T.current){var t=new(s())(T.current,a(a({dragMode:f},E),{ready:function(t){var e,n,r,o,s,a,u,l;null!==t.currentTarget&&(e=t.currentTarget.cropper,void 0===(n=C)&&(n={}),r=n.enable,o=n.scaleX,s=n.scaleY,u=void 0===(a=n.zoomTo)?0:a,l=n.rotateTo,void 0===r||r?e.enable():e.disable(),e.scaleX(void 0===o?1:o),e.scaleY(void 0===s?1:s),void 0!==l&&e.rotateTo(l),u>0&&e.zoomTo(u)),k&&k(t)}}));S&&S(t)}return function(){var t,e;null===(e=null===(t=T.current)||void 0===t?void 0:t.cropper)||void 0===e||e.destroy()}},[T]);var A=(n=a(a({},E),{crossOrigin:g,src:p,alt:void 0===D?"picture":D}),l.reduce(function(t,e){return t[e],u(t,["symbol"==typeof e?e:e+""])},n));return r.createElement("div",{style:d,className:m},r.createElement("img",a({},A,{style:c,ref:T})))})},816431:function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,O=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function D(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case h:case f:case s:case u:case a:case d:return t;default:switch(t=t&&t.$$typeof){case c:case p:case y:case g:case l:return t;default:return e}}case o:return e}}}function k(t){return D(t)===f}e.AsyncMode=h,e.ConcurrentMode=f,e.ContextConsumer=c,e.ContextProvider=l,e.Element=r,e.ForwardRef=p,e.Fragment=s,e.Lazy=y,e.Memo=g,e.Portal=o,e.Profiler=u,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return k(t)||D(t)===h},e.isConcurrentMode=k,e.isContextConsumer=function(t){return D(t)===c},e.isContextProvider=function(t){return D(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return D(t)===p},e.isFragment=function(t){return D(t)===s},e.isLazy=function(t){return D(t)===y},e.isMemo=function(t){return D(t)===g},e.isPortal=function(t){return D(t)===o},e.isProfiler=function(t){return D(t)===u},e.isStrictMode=function(t){return D(t)===a},e.isSuspense=function(t){return D(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===s||t===f||t===u||t===a||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===g||t.$$typeof===l||t.$$typeof===c||t.$$typeof===p||t.$$typeof===O||t.$$typeof===w||t.$$typeof===x||t.$$typeof===b)},e.typeOf=D},855474:function(t,e,n){"use strict";t.exports=n(816431)},275211:function(t,e,n){"use strict";n.d(e,{DE:function(){return h},MT:function(){return l},md:function(){return p},qC:function(){return f}});var r=n(894626);function o(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(t,e,n){if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(o(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw Error(o(1));return n(l)(t,e)}if("function"!=typeof t)throw Error(o(2));var r,a=t,c=e,h=[],f=h,p=!1;function d(){f===h&&(f=h.slice())}function m(){if(p)throw Error(o(3));return c}function g(t){if("function"!=typeof t)throw Error(o(4));if(p)throw Error(o(5));var e=!0;return d(),f.push(t),function(){if(!!e){if(p)throw Error(o(6));e=!1,d();var n=f.indexOf(t);f.splice(n,1),h=null}}}function y(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw Error(o(7));if(void 0===t.type)throw Error(o(8));if(p)throw Error(o(9));try{p=!0,c=a(c,t)}finally{p=!1}for(var e=h=f,n=0;n<e.length;n++)(0,e[n])();return t}return y({type:u.INIT}),(r={dispatch:y,subscribe:g,getState:m,replaceReducer:function(t){if("function"!=typeof t)throw Error(o(10));a=t,y({type:u.REPLACE})}})[s]=function(){var t;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw Error(o(11));function e(){t.next&&t.next(m())}return e(),{unsubscribe:g(e)}}})[s]=function(){return this},t},r}function c(t,e){return function(){return e(t.apply(this,arguments))}}function h(t,e){if("function"==typeof t)return c(t,e);if("object"!=typeof t||null===t)throw Error(o(16));var n={};for(var r in t){var s=t[r];"function"==typeof s&&(n[r]=c(s,e))}return n}function f(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}function p(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),s=function(){throw Error(o(15))},a={getState:n.getState,dispatch:function(){return s.apply(void 0,arguments)}},u=e.map(function(t){return t(a)});return s=f.apply(void 0,u)(n.dispatch),(0,r.Z)((0,r.Z)({},n),{},{dispatch:s})}}}},214799:function(t,e,n){"use strict";let r=Symbol("SemVer ANY");class o{static get ANY(){return r}constructor(t,e){if(e=s(e),t instanceof o){if(!!e.loose===t.loose)return t;t=t.value}c("comparator",t=t.trim().split(/\s+/).join(" "),e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(t){let e=this.options.loose?a[u.COMPARATORLOOSE]:a[u.COMPARATOR],n=t.match(e);if(!n)throw TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new h(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===r||t===r)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return l(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof o))throw TypeError("a Comparator is required");if(""===this.operator)return""===this.value||new f(t.value,e).test(this.value);if(""===t.operator)return""===t.value||new f(this.value,e).test(t.semver);return!((e=s(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0")))&&(!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||l(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||l(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">"))||!1)}}t.exports=o;let s=n(661360),{safeRe:a,t:u}=n(552219),l=n(637684),c=n(881101),h=n(763890),f=n(979863)},979863:function(t,e,n){"use strict";let r=/\s+/g;class o{constructor(t,e){if(e=a(e),t instanceof o){if(!!e.loose===t.loose&&!!e.includePrerelease===t.includePrerelease)return t;return new o(t.raw,e)}if(t instanceof u)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(r," "),this.set=this.raw.split("||").map(t=>this.parseRange(t.trim())).filter(t=>t.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let t=this.set[0];if(this.set=this.set.filter(t=>!b(t[0])),0===this.set.length)this.set=[t];else if(this.set.length>1){for(let t of this.set)if(1===t.length&&O(t[0])){this.set=[t];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let e=this.set[t];for(let t=0;t<e.length;t++)t>0&&(this.formatted+=" "),this.formatted+=e[t].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let e=((this.options.includePrerelease&&g)|(this.options.loose&&y))+":"+t,n=s.get(e);if(n)return n;let r=this.options.loose,o=r?h[f.HYPHENRANGELOOSE]:h[f.HYPHENRANGE];l("hyphen replace",t=t.replace(o,B(this.options.includePrerelease))),l("comparator trim",t=t.replace(h[f.COMPARATORTRIM],p)),l("tilde trim",t=t.replace(h[f.TILDETRIM],d)),l("caret trim",t=t.replace(h[f.CARETTRIM],m));let a=t.split(" ").map(t=>x(t,this.options)).join(" ").split(/\s+/).map(t=>P(t,this.options));r&&(a=a.filter(t=>(l("loose invalid filter",t,this.options),!!t.match(h[f.COMPARATORLOOSE])))),l("range list",a);let c=new Map;for(let t of a.map(t=>new u(t,this.options))){if(b(t))return[t];c.set(t.value,t)}c.size>1&&c.has("")&&c.delete("");let O=[...c.values()];return s.set(e,O),O}intersects(t,e){if(!(t instanceof o))throw TypeError("a Range is required");return this.set.some(n=>w(n,e)&&t.set.some(t=>w(t,e)&&n.every(n=>t.every(t=>n.intersects(t,e)))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new c(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(I(this.set[e],t,this.options))return!0;return!1}}t.exports=o;let s=new(n(701572)),a=n(661360),u=n(214799),l=n(881101),c=n(763890),{safeRe:h,t:f,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:m}=n(552219),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:y}=n(952613),b=t=>"<0.0.0-0"===t.value,O=t=>""===t.value,w=(t,e)=>{let n=!0,r=t.slice(),o=r.pop();for(;n&&r.length;)n=r.every(t=>o.intersects(t,e)),o=r.pop();return n},x=(t,e)=>(l("comp",t,e),l("caret",t=E(t,e)),l("tildes",t=k(t,e)),l("xrange",t=T(t,e)),l("stars",t=M(t,e)),t),D=t=>!t||"x"===t.toLowerCase()||"*"===t,k=(t,e)=>t.trim().split(/\s+/).map(t=>S(t,e)).join(" "),S=(t,e)=>{let n=e.loose?h[f.TILDELOOSE]:h[f.TILDE];return t.replace(n,(e,n,r,o,s)=>{let a;return l("tilde",t,e,n,r,o,s),D(n)?a="":D(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:D(o)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(l("replaceTilde pr",s),a=`>=${n}.${r}.${o}-${s} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,l("tilde return",a),a})},E=(t,e)=>t.trim().split(/\s+/).map(t=>C(t,e)).join(" "),C=(t,e)=>{l("caret",t,e);let n=e.loose?h[f.CARETLOOSE]:h[f.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(e,n,o,s,a)=>{let u;return l("caret",t,e,n,o,s,a),D(n)?u="":D(o)?u=`>=${n}.0.0${r} <${+n+1}.0.0-0`:D(s)?u="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:a?(l("replaceCaret pr",a),u="0"===n?"0"===o?`>=${n}.${o}.${s}-${a} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}-${a} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s}-${a} <${+n+1}.0.0-0`):(l("no pr"),u="0"===n?"0"===o?`>=${n}.${o}.${s}${r} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s} <${+n+1}.0.0-0`),l("caret return",u),u})},T=(t,e)=>(l("replaceXRanges",t,e),t.split(/\s+/).map(t=>A(t,e)).join(" ")),A=(t,e)=>{t=t.trim();let n=e.loose?h[f.XRANGELOOSE]:h[f.XRANGE];return t.replace(n,(n,r,o,s,a,u)=>{l("xRange",t,n,r,o,s,a,u);let c=D(o),h=c||D(s),f=h||D(a);return"="===r&&f&&(r=""),u=e.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(h&&(s=0),a=0,">"===r?(r=">=",h?(o=+o+1,s=0):s=+s+1,a=0):"<="===r&&(r="<",h?o=+o+1:s=+s+1),"<"===r&&(u="-0"),n=`${r+o}.${s}.${a}${u}`):h?n=`>=${o}.0.0${u} <${+o+1}.0.0-0`:f&&(n=`>=${o}.${s}.0${u} <${o}.${+s+1}.0-0`),l("xRange return",n),n})},M=(t,e)=>(l("replaceStars",t,e),t.trim().replace(h[f.STAR],"")),P=(t,e)=>(l("replaceGTE0",t,e),t.trim().replace(h[e.includePrerelease?f.GTE0PRE:f.GTE0],"")),B=t=>(e,n,r,o,s,a,u,l,c,h,f,p)=>(n=D(r)?"":D(o)?`>=${r}.0.0${t?"-0":""}`:D(s)?`>=${r}.${o}.0${t?"-0":""}`:a?`>=${n}`:`>=${n}${t?"-0":""}`,l=D(c)?"":D(h)?`<${+c+1}.0.0-0`:D(f)?`<${c}.${+h+1}.0-0`:p?`<=${c}.${h}.${f}-${p}`:t?`<${c}.${h}.${+f+1}-0`:`<=${l}`,`${n} ${l}`.trim()),I=(t,e,n)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let n=0;n<t.length;n++){if(l(t[n].semver),t[n].semver!==u.ANY){if(t[n].semver.prerelease.length>0){let r=t[n].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}}}return!1}return!0}},763890:function(t,e,n){"use strict";let r=n(881101),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=n(952613),{safeRe:a,t:u}=n(552219),l=n(661360),{compareIdentifiers:c}=n(728974);class h{constructor(t,e){if(e=l(e),t instanceof h){if(!!e.loose===t.loose&&!!e.includePrerelease===t.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>o)throw TypeError(`version is longer than ${o} characters`);r("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let n=t.trim().match(e.loose?a[u.LOOSE]:a[u.FULL]);if(!n)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||this.major<0)throw TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(t=>{if(/^[0-9]+$/.test(t)){let e=+t;if(e>=0&&e<s)return e}return t}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(r("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return!(t instanceof h)&&(t=new h(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(!(t instanceof h)&&(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return -1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{let n=this.prerelease[e],o=t.prerelease[e];if(r("prerelease compare",e,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;else if(void 0===n)return -1;else if(n===o)continue;else return c(n,o)}while(++e)}compareBuild(t){!(t instanceof h)&&(t=new h(t,this.options));let e=0;do{let n=this.build[e],o=t.build[e];if(r("build compare",e,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;else if(void 0===n)return -1;else if(n===o)continue;else return c(n,o)}while(++e)}inc(t,e,n){if(t.startsWith("pre")){if(!e&&!1===n)throw Error("invalid increment argument: identifier is empty");if(e){let t=`-${e}`.match(this.options.loose?a[u.PRERELEASELOOSE]:a[u.PRERELEASE]);if(!t||t[1]!==e)throw Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,n),this.inc("pre",e,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,n),this.inc("pre",e,n);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let t=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[t];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(e===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let r=[e,t];!1===n&&(r=[e]),0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=h},273031:function(t,e,n){"use strict";let r=n(113464);t.exports=(t,e)=>{let n=r(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null}},637684:function(t,e,n){"use strict";let r=n(306991),o=n(425369),s=n(967505),a=n(101787),u=n(204813),l=n(833285);t.exports=(t,e,n,c)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t===n;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t!==n;case"":case"=":case"==":return r(t,n,c);case"!=":return o(t,n,c);case">":return s(t,n,c);case">=":return a(t,n,c);case"<":return u(t,n,c);case"<=":return l(t,n,c);default:throw TypeError(`Invalid operator: ${e}`)}}},557267:function(t,e,n){"use strict";let r=n(763890),o=n(113464),{safeRe:s,t:a}=n(552219);t.exports=(t,e)=>{if(t instanceof r)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let n=null;if((e=e||{}).rtl){let r;let o=e.includePrerelease?s[a.COERCERTLFULL]:s[a.COERCERTL];for(;(r=o.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),o.lastIndex=r.index+r[1].length+r[2].length;o.lastIndex=-1}else n=t.match(e.includePrerelease?s[a.COERCEFULL]:s[a.COERCE]);if(null===n)return null;let u=n[2],l=n[3]||"0",c=n[4]||"0",h=e.includePrerelease&&n[5]?`-${n[5]}`:"",f=e.includePrerelease&&n[6]?`+${n[6]}`:"";return o(`${u}.${l}.${c}${h}${f}`,e)}},506878:function(t,e,n){"use strict";let r=n(763890);t.exports=(t,e,n)=>{let o=new r(t,n),s=new r(e,n);return o.compare(s)||o.compareBuild(s)}},215258:function(t,e,n){"use strict";let r=n(589443);t.exports=(t,e)=>r(t,e,!0)},589443:function(t,e,n){"use strict";let r=n(763890);t.exports=(t,e,n)=>new r(t,n).compare(new r(e,n))},854729:function(t,e,n){"use strict";let r=n(113464);t.exports=(t,e)=>{let n=r(t,null,!0),o=r(e,null,!0),s=n.compare(o);if(0===s)return null;let a=s>0,u=a?n:o,l=a?o:n,c=!!u.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(u))return l.minor&&!l.patch?"minor":"patch"}let h=c?"pre":"";return n.major!==o.major?h+"major":n.minor!==o.minor?h+"minor":n.patch!==o.patch?h+"patch":"prerelease"}},306991:function(t,e,n){"use strict";let r=n(589443);t.exports=(t,e,n)=>0===r(t,e,n)},967505:function(t,e,n){"use strict";let r=n(589443);t.exports=(t,e,n)=>r(t,e,n)>0},101787:function(t,e,n){"use strict";let r=n(589443);t.exports=(t,e,n)=>r(t,e,n)>=0},174370:function(t,e,n){"use strict";let r=n(763890);t.exports=(t,e,n,o,s)=>{"string"==typeof n&&(s=o,o=n,n=void 0);try{return new r(t instanceof r?t.version:t,n).inc(e,o,s).version}catch(t){return null}}},204813:function(t,e,n){"use strict";let r=n(589443);t.exports=(t,e,n)=>0>r(t,e,n)},833285:function(t,e,n){"use strict";let r=n(589443);t.exports=(t,e,n)=>0>=r(t,e,n)},159156:function(t,e,n){"use strict";let r=n(763890);t.exports=(t,e)=>new r(t,e).major},182672:function(t,e,n){"use strict";let r=n(763890);t.exports=(t,e)=>new r(t,e).minor},425369:function(t,e,n){"use strict";let r=n(589443);t.exports=(t,e,n)=>0!==r(t,e,n)},113464:function(t,e,n){"use strict";let r=n(763890);t.exports=(t,e,n=!1)=>{if(t instanceof r)return t;try{return new r(t,e)}catch(t){if(!n)return null;throw t}}},485486:function(t,e,n){"use strict";let r=n(763890);t.exports=(t,e)=>new r(t,e).patch},498106:function(t,e,n){"use strict";let r=n(113464);t.exports=(t,e)=>{let n=r(t,e);return n&&n.prerelease.length?n.prerelease:null}},357773:function(t,e,n){"use strict";let r=n(589443);t.exports=(t,e,n)=>r(e,t,n)},117746:function(t,e,n){"use strict";let r=n(506878);t.exports=(t,e)=>t.sort((t,n)=>r(n,t,e))},58713:function(t,e,n){"use strict";let r=n(979863);t.exports=(t,e,n)=>{try{e=new r(e,n)}catch(t){return!1}return e.test(t)}},47036:function(t,e,n){"use strict";let r=n(506878);t.exports=(t,e)=>t.sort((t,n)=>r(t,n,e))},84147:function(t,e,n){"use strict";let r=n(113464);t.exports=(t,e)=>{let n=r(t,e);return n?n.version:null}},851954:function(t,e,n){"use strict";let r=n(552219),o=n(952613),s=n(763890),a=n(728974),u=n(113464),l=n(84147),c=n(273031),h=n(174370),f=n(854729),p=n(159156),d=n(182672),m=n(485486),g=n(498106),y=n(589443),b=n(357773),O=n(215258),w=n(506878),x=n(47036),D=n(117746),k=n(967505),S=n(204813),E=n(306991),C=n(425369),T=n(101787),A=n(833285),M=n(637684),P=n(557267),B=n(214799),I=n(979863),F=n(58713),N=n(828423),L=n(888509),_=n(243088),X=n(351016),R=n(241042),j=n(478173),$=n(280299),V=n(282896),H=n(659471),W=n(560399),z=n(720773);t.exports={parse:u,valid:l,clean:c,inc:h,diff:f,major:p,minor:d,patch:m,prerelease:g,compare:y,rcompare:b,compareLoose:O,compareBuild:w,sort:x,rsort:D,gt:k,lt:S,eq:E,neq:C,gte:T,lte:A,cmp:M,coerce:P,Comparator:B,Range:I,satisfies:F,toComparators:N,maxSatisfying:L,minSatisfying:_,minVersion:X,validRange:R,outside:j,gtr:$,ltr:V,intersects:H,simplifyRange:W,subset:z,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},952613:function(t){"use strict";let e=Number.MAX_SAFE_INTEGER||0x1fffffffffffff;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},881101:function(t){"use strict";let e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},728974:function(t){"use strict";let e=/^[0-9]+$/,n=(t,n)=>{let r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};t.exports={compareIdentifiers:n,rcompareIdentifiers:(t,e)=>n(e,t)}},701572:function(t){"use strict";t.exports=class t{constructor(){this.max=1e3,this.map=new Map}get(t){let e=this.map.get(t);if(void 0!==e)return this.map.delete(t),this.map.set(t,e),e}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&void 0!==e){if(this.map.size>=this.max){let t=this.map.keys().next().value;this.delete(t)}this.map.set(t,e)}return this}}},661360:function(t){"use strict";let e=Object.freeze({loose:!0}),n=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:n},552219:function(t,e,n){"use strict";let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:s}=n(952613),a=n(881101),u=(e=t.exports={}).re=[],l=e.safeRe=[],c=e.src=[],h=e.safeSrc=[],f=e.t={},p=0,d="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",s],[d,o]],g=t=>{for(let[e,n]of m)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},y=(t,e,n)=>{let r=g(e),o=p++;a(t,o,e),f[t]=o,c[o]=e,h[o]=r,u[o]=new RegExp(e,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),y("MAINVERSION",`(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${c[f.NONNUMERICIDENTIFIER]}|${c[f.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${c[f.NONNUMERICIDENTIFIER]}|${c[f.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${c[f.PRERELEASEIDENTIFIER]}(?:\\.${c[f.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${c[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[f.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${d}+`),y("BUILD",`(?:\\+(${c[f.BUILDIDENTIFIER]}(?:\\.${c[f.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${c[f.MAINVERSION]}${c[f.PRERELEASE]}?${c[f.BUILD]}?`),y("FULL",`^${c[f.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${c[f.MAINVERSIONLOOSE]}${c[f.PRERELEASELOOSE]}?${c[f.BUILD]}?`),y("LOOSE",`^${c[f.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${c[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${c[f.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:${c[f.PRERELEASE]})?${c[f.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:${c[f.PRERELEASELOOSE]})?${c[f.BUILD]}?)?)?`),y("XRANGE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),y("COERCE",`${c[f.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",c[f.COERCEPLAIN]+`(?:${c[f.PRERELEASE]})?`+`(?:${c[f.BUILD]})?`+"(?:$|[^\\d])"),y("COERCERTL",c[f.COERCE],!0),y("COERCERTLFULL",c[f.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${c[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${c[f.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${c[f.LONECARET]}${c[f.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${c[f.LONECARET]}${c[f.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${c[f.GTLT]}\\s*(${c[f.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]}|${c[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${c[f.XRANGEPLAIN]})\\s+-\\s+(${c[f.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${c[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[f.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},280299:function(t,e,n){"use strict";let r=n(478173);t.exports=(t,e,n)=>r(t,e,">",n)},659471:function(t,e,n){"use strict";let r=n(979863);t.exports=(t,e,n)=>(t=new r(t,n),e=new r(e,n),t.intersects(e,n))},282896:function(t,e,n){"use strict";let r=n(478173);t.exports=(t,e,n)=>r(t,e,"<",n)},888509:function(t,e,n){"use strict";let r=n(763890),o=n(979863);t.exports=(t,e,n)=>{let s=null,a=null,u=null;try{u=new o(e,n)}catch(t){return null}return t.forEach(t=>{u.test(t)&&(!s||-1===a.compare(t))&&(a=new r(s=t,n))}),s}},243088:function(t,e,n){"use strict";let r=n(763890),o=n(979863);t.exports=(t,e,n)=>{let s=null,a=null,u=null;try{u=new o(e,n)}catch(t){return null}return t.forEach(t=>{u.test(t)&&(!s||1===a.compare(t))&&(a=new r(s=t,n))}),s}},351016:function(t,e,n){"use strict";let r=n(763890),o=n(979863),s=n(967505);t.exports=(t,e)=>{t=new o(t,e);let n=new r("0.0.0");if(t.test(n))return n;if(n=new r("0.0.0-0"),t.test(n))return n;n=null;for(let e=0;e<t.set.length;++e){let o=t.set[e],a=null;o.forEach(t=>{let e=new r(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":(!a||s(e,a))&&(a=e);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${t.operator}`)}}),a&&(!n||s(n,a))&&(n=a)}return n&&t.test(n)?n:null}},478173:function(t,e,n){"use strict";let r=n(763890),o=n(214799),{ANY:s}=o,a=n(979863),u=n(58713),l=n(967505),c=n(204813),h=n(833285),f=n(101787);t.exports=(t,e,n,p)=>{let d,m,g,y,b;switch(t=new r(t,p),e=new a(e,p),n){case">":d=l,m=h,g=c,y=">",b=">=";break;case"<":d=c,m=f,g=l,y="<",b="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(u(t,e,p))return!1;for(let n=0;n<e.set.length;++n){let r=e.set[n],a=null,u=null;if(r.forEach(t=>{t.semver===s&&(t=new o(">=0.0.0")),a=a||t,u=u||t,d(t.semver,a.semver,p)?a=t:g(t.semver,u.semver,p)&&(u=t)}),a.operator===y||a.operator===b)return!1;if((!u.operator||u.operator===y)&&m(t,u.semver))return!1;if(u.operator===b&&g(t,u.semver))return!1}return!0}},560399:function(t,e,n){"use strict";let r=n(58713),o=n(589443);t.exports=(t,e,n)=>{let s=[],a=null,u=null,l=t.sort((t,e)=>o(t,e,n));for(let t of l)r(t,e,n)?(u=t,!a&&(a=t)):(u&&s.push([a,u]),u=null,a=null);a&&s.push([a,null]);let c=[];for(let[t,e]of s)t===e?c.push(t):e||t!==l[0]?e?t===l[0]?c.push(`<=${e}`):c.push(`${t} - ${e}`):c.push(`>=${t}`):c.push("*");let h=c.join(" || "),f="string"==typeof e.raw?e.raw:String(e);return h.length<f.length?h:e}},720773:function(t,e,n){"use strict";let r=n(979863),o=n(214799),{ANY:s}=o,a=n(58713),u=n(589443),l=[new o(">=0.0.0-0")],c=[new o(">=0.0.0")],h=(t,e,n)=>{let r,o,h,d,m,g,y;if(t===e)return!0;if(1===t.length&&t[0].semver===s){if(1===e.length&&e[0].semver===s)return!0;t=n.includePrerelease?l:c}if(1===e.length&&e[0].semver===s){if(n.includePrerelease)return!0;e=c}let b=new Set;for(let e of t)">"===e.operator||">="===e.operator?r=f(r,e,n):"<"===e.operator||"<="===e.operator?o=p(o,e,n):b.add(e.semver);if(b.size>1)return null;if(r&&o){if((h=u(r.semver,o.semver,n))>0)return null;if(0===h&&(">="!==r.operator||"<="!==o.operator))return null}for(let t of b){if(r&&!a(t,String(r),n)||o&&!a(t,String(o),n))return null;for(let r of e)if(!a(t,String(r),n))return!1;return!0}let O=!!o&&!n.includePrerelease&&!!o.semver.prerelease.length&&o.semver,w=!!r&&!n.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let t of(O&&1===O.prerelease.length&&"<"===o.operator&&0===O.prerelease[0]&&(O=!1),e)){if(y=y||">"===t.operator||">="===t.operator,g=g||"<"===t.operator||"<="===t.operator,r){if(w&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch&&(w=!1),">"===t.operator||">="===t.operator){if((d=f(r,t,n))===t&&d!==r)return!1}else if(">="===r.operator&&!a(r.semver,String(t),n))return!1}if(o){if(O&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===O.major&&t.semver.minor===O.minor&&t.semver.patch===O.patch&&(O=!1),"<"===t.operator||"<="===t.operator){if((m=p(o,t,n))===t&&m!==o)return!1}else if("<="===o.operator&&!a(o.semver,String(t),n))return!1}if(!t.operator&&(o||r)&&0!==h)return!1}return(!r||!g||!!o||0===h)&&(!o||!y||!!r||0===h)&&!w&&!O&&!0},f=(t,e,n)=>{if(!t)return e;let r=u(t.semver,e.semver,n);return r>0?t:r<0?e:">"===e.operator&&">="===t.operator?e:t},p=(t,e,n)=>{if(!t)return e;let r=u(t.semver,e.semver,n);return r<0?t:r>0?e:"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,n={})=>{if(t===e)return!0;t=new r(t,n),e=new r(e,n);let o=!1;i:for(let r of t.set){for(let t of e.set){let e=h(r,t,n);if(o=o||null!==e,e)continue i}if(o)return!1}return!0}},828423:function(t,e,n){"use strict";let r=n(979863);t.exports=(t,e)=>new r(t,e).set.map(t=>t.map(t=>t.value).join(" ").trim().split(" "))},241042:function(t,e,n){"use strict";let r=n(979863);t.exports=(t,e)=>{try{return new r(t,e).range||"*"}catch(t){return null}}},62257:function(t,e,n){"use strict";n.d(e,{VC:function(){return c}});var r=n(640652),o=n(878011),s=t=>(0,r.P)(t)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(0===t.redos.length||o.OX.isOperationList(t.redos[0].operations))&&(0===t.undos.length||o.OX.isOperationList(t.undos[0].operations));new WeakMap;var a=new WeakMap,u=new WeakMap,l={isHistoryEditor:t=>s(t.history)&&o.ML.isEditor(t),isMerging:t=>u.get(t),isSaving:t=>a.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=l.isMerging(t);u.set(t,!1),e(),u.set(t,n)},withoutSaving(t,e){var n=l.isSaving(t);a.set(t,!1),e(),a.set(t,n)}},c=t=>{var{apply:e}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&o.YR.setSelection(t,r.selectionBefore),l.withoutSaving(t,()=>{o.ML.withoutNormalizing(t,()=>{for(var e of r.operations)t.apply(e)})}),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];l.withoutSaving(t,()=>{o.ML.withoutNormalizing(t,()=>{for(var e of r.operations.map(o.OX.inverse).reverse())t.apply(e);r.selectionBefore&&o.YR.setSelection(t,r.selectionBefore)})}),t.writeHistory("redos",r),e.undos.pop()}},t.apply=n=>{var{operations:r,history:o}=t,{undos:s}=o,a=s[s.length-1],u=a&&a.operations[a.operations.length-1],c=l.isSaving(t),p=l.isMerging(t);if(null==c&&(c=f(n)),c){if(null==p&&(p=null!=a&&(0!==r.length||h(n,u))),a&&p)a.operations.push(n);else{var d={operations:[n],selectionBefore:t.selection};t.writeHistory("undos",d)}for(;s.length>100;)s.shift();o.redos=[]}e(n)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t},h=(t,e)=>!!(e&&"insert_text"===t.type&&"insert_text"===e.type&&t.offset===e.offset+e.text.length&&o.y$.equals(t.path,e.path)||e&&"remove_text"===t.type&&"remove_text"===e.type&&t.offset+t.text.length===e.offset&&o.y$.equals(t.path,e.path))||!1,f=(t,e)=>"set_selection"!==t.type&&!0},566906:function(t,e,n){"use strict";n.d(e,{CX:()=>no,F3:()=>el,mH:()=>nm,BU:()=>nw});var r,o,s,a=n("889785"),u=n.n(a),l=n("612447"),c=n.n(l),h=n("122540"),f=n.n(h),p=n("455069");let d=t=>"object"==typeof t&&null!=t&&1===t.nodeType,m=(t,e)=>(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t,g=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){let n=getComputedStyle(t,null);return m(n.overflowY,e)||m(n.overflowX,e)||(t=>{let e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return!1},y=(t,e,n,r,o,s,a,u)=>s<t&&a>e||s>t&&a<e?0:s<=t&&u<=n||a>=e&&u>=n?s-t-r:a>e&&u<n||s<t&&u>n?a-e+o:0,b=t=>{let e=t.parentElement;return null==e?t.getRootNode().host||null:e},O=(t,e)=>{var n,r,o,s;if("undefined"==typeof document)return[];let{scrollMode:a,block:u,inline:l,boundary:c,skipOverflowHiddenElements:h}=e,f="function"==typeof c?c:t=>t!==c;if(!d(t))throw TypeError("Invalid target");let p=document.scrollingElement||document.documentElement,m=[],O=t;for(;d(O)&&f(O);){if((O=b(O))===p){m.push(O);break}null!=O&&O===document.body&&g(O)&&!g(document.documentElement)||null!=O&&g(O,h)&&m.push(O)}let w=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,x=null!=(s=null==(o=window.visualViewport)?void 0:o.height)?s:innerHeight,{scrollX:D,scrollY:k}=window,{height:S,width:E,top:C,right:T,bottom:A,left:M}=t.getBoundingClientRect(),{top:P,right:B,bottom:I,left:F}=(t=>{let e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t),N="start"===u||"nearest"===u?C-P:"end"===u?A+I:C+S/2-P+I,L="center"===l?M+E/2-F+B:"end"===l?T+B:M-F,_=[];for(let t=0;t<m.length;t++){let e=m[t],{height:n,width:r,top:o,right:s,bottom:c,left:h}=e.getBoundingClientRect();if("if-needed"===a&&C>=0&&M>=0&&A<=x&&T<=w&&(e===p&&!g(e)||C>=o&&A<=c&&M>=h&&T<=s))break;let f=getComputedStyle(e),d=parseInt(f.borderLeftWidth,10),b=parseInt(f.borderTopWidth,10),O=parseInt(f.borderRightWidth,10),P=parseInt(f.borderBottomWidth,10),B=0,I=0,F="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-O:0,X="offsetHeight"in e?e.offsetHeight-e.clientHeight-b-P:0,R="offsetWidth"in e?0===e.offsetWidth?0:r/e.offsetWidth:0,j="offsetHeight"in e?0===e.offsetHeight?0:n/e.offsetHeight:0;if(p===e)B="start"===u?N:"end"===u?N-x:"nearest"===u?y(k,k+x,x,b,P,k+N,k+N+S,S):N-x/2,I="start"===l?L:"center"===l?L-w/2:"end"===l?L-w:y(D,D+w,w,d,O,D+L,D+L+E,E),B=Math.max(0,B+k),I=Math.max(0,I+D);else{B="start"===u?N-o-b:"end"===u?N-c+P+X:"nearest"===u?y(o,c,n,b,P+X,N,N+S,S):N-(o+n/2)+X/2,I="start"===l?L-h-d:"center"===l?L-(h+r/2)+F/2:"end"===l?L-s+O+F:y(h,s,r,d,O+F,L,L+E,E);let{scrollLeft:t,scrollTop:a}=e;B=0===j?0:Math.max(0,Math.min(a+B/j,e.scrollHeight-n/j+X)),I=0===R?0:Math.max(0,Math.min(t+I/R,e.scrollWidth-r/R+F)),N+=a-B,L+=t-I}_.push({el:e,top:B,left:I})}return _},w=t=>{let e;return!1===t?{block:"end",inline:"nearest"}:(e=t)===Object(e)&&0!==Object.keys(e).length?t:{block:"start",inline:"nearest"}};var x=n("878011"),D=[],k="ResizeObserver loop completed with undelivered notifications.",S=function(){var t;"function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:k}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=k),window.dispatchEvent(t)};(r=o||(o={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var E=function(t){return Object.freeze(t)},C=function(t,e){this.inlineSize=t,this.blockSize=e,E(this)},T=function(){function t(t,e,n,r){return this.x=t,this.y=e,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,E(this)}return t.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),A=function(t){return t instanceof SVGElement&&"getBBox"in t},M=function(t){if(A(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var o=t.offsetWidth,s=t.offsetHeight;return!(o||s||t.getClientRects().length)},P=function(t){if(t instanceof Element)return!0;var e,n=null===(e=null==t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},B=function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},I="undefined"!=typeof window?window:{},F=new WeakMap,N=/auto|scroll/,L=/^tb|vertical/,_=/msie|trident/i.test(I.navigator&&I.navigator.userAgent),X=function(t){return parseFloat(t||"0")},R=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new C((n?e:t)||0,(n?t:e)||0)},j=E({devicePixelContentBoxSize:R(),borderBoxSize:R(),contentBoxSize:R(),contentRect:new T(0,0,0,0)}),$=function(t,e){if(void 0===e&&(e=!1),F.has(t)&&!e)return F.get(t);if(M(t))return F.set(t,j),j;var n=getComputedStyle(t),r=A(t)&&t.ownerSVGElement&&t.getBBox(),o=!_&&"border-box"===n.boxSizing,s=L.test(n.writingMode||""),a=!r&&N.test(n.overflowY||""),u=!r&&N.test(n.overflowX||""),l=r?0:X(n.paddingTop),c=r?0:X(n.paddingRight),h=r?0:X(n.paddingBottom),f=r?0:X(n.paddingLeft),p=r?0:X(n.borderTopWidth),d=r?0:X(n.borderRightWidth),m=r?0:X(n.borderBottomWidth),g=r?0:X(n.borderLeftWidth),y=f+c,b=l+h,O=g+d,w=p+m,x=u?t.offsetHeight-w-t.clientHeight:0,D=a?t.offsetWidth-O-t.clientWidth:0,k=r?r.width:X(n.width)-(o?y+O:0)-D,S=r?r.height:X(n.height)-(o?b+w:0)-x,C=k+y+D+O,P=S+b+x+w,B=E({devicePixelContentBoxSize:R(Math.round(k*devicePixelRatio),Math.round(S*devicePixelRatio),s),borderBoxSize:R(C,P,s),contentBoxSize:R(k,S,s),contentRect:new T(f,l,k,S)});return F.set(t,B),B},V=function(t,e,n){var r=$(t,n),s=r.borderBoxSize,a=r.contentBoxSize,u=r.devicePixelContentBoxSize;switch(e){case o.DEVICE_PIXEL_CONTENT_BOX:return u;case o.BORDER_BOX:return s;default:return a}},H=function(t){var e=$(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=E([e.borderBoxSize]),this.contentBoxSize=E([e.contentBoxSize]),this.devicePixelContentBoxSize=E([e.devicePixelContentBoxSize])},W=function(t){if(M(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},z=function(){var t=1/0,e=[];D.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(e){var n=new H(e.target),o=W(e.target);r.push(n),e.lastReportedSize=V(e.target,e.observedBox),o<t&&(t=o)}),e.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<e.length;n++)(0,e[n])();return t},q=function(t){D.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(n){n.isActive()&&(W(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))})})},U=function(){var t=0;for(q(0);D.some(function(t){return t.activeTargets.length>0});)q(t=z());return D.some(function(t){return t.skippedTargets.length>0})&&S(),t>0},Y=[],G=function(t){if(!s){var e=0,n=document.createTextNode("");new MutationObserver(function(){return Y.splice(0).forEach(function(t){return t()})}).observe(n,{characterData:!0}),s=function(){n.textContent="".concat(e?e--:e++)}}Y.push(t),s()},Q=function(t){G(function(){requestAnimationFrame(t)})},K=0,J={attributes:!0,characterData:!0,childList:!0,subtree:!0},Z=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],tt=function(t){return void 0===t&&(t=0),Date.now()+t},te=!1,tn=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!te){te=!0;var n=tt(t);Q(function(){var r=!1;try{r=U()}finally{if(te=!1,t=n-tt(),!K)return;r?e.run(1e3):t>0?e.run(t):e.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,J)};document.body?e():I.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Z.forEach(function(e){return I.addEventListener(e,t.listener,!0)}))},t.prototype.stop=function(){var t=this;!this.stopped&&(this.observer&&this.observer.disconnect(),Z.forEach(function(e){return I.removeEventListener(e,t.listener,!0)}),this.stopped=!0)},t}()),tr=function(t){!K&&t>0&&tn.start(),(K+=t)||tn.stop()},ti=function(){function t(t,e){this.target=t,this.observedBox=e||o.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=V(this.target,this.observedBox,!0);if(!A(t=this.target)&&!B(t)&&"inline"===getComputedStyle(t).display)this.lastReportedSize=e;return this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize||!1},t}(),to=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},ts=new WeakMap,ta=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return -1},tu=function(){function t(){}return t.connect=function(t,e){var n=new to(t,e);ts.set(t,n)},t.observe=function(t,e,n){var r=ts.get(t),o=0===r.observationTargets.length;0>ta(r.observationTargets,e)&&(o&&D.push(r),r.observationTargets.push(new ti(e,n&&n.box)),tr(1),tn.schedule())},t.unobserve=function(t,e){var n=ts.get(t),r=ta(n.observationTargets,e),o=1===n.observationTargets.length;r>=0&&(o&&D.splice(D.indexOf(n),1),n.observationTargets.splice(r,1),tr(-1))},t.disconnect=function(t){var e=this,n=ts.get(t);n.observationTargets.slice().forEach(function(n){return e.unobserve(t,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},t}(),tl=function(){function t(t){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");tu.connect(this,t)}return t.prototype.observe=function(t,e){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!P(t))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");tu.observe(this,t,e)},t.prototype.unobserve=function(t){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!P(t))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");tu.unobserve(this,t)},t.prototype.disconnect=function(){tu.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}(),tc=n("840994"),th=n("921463");function tf(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],!(e.indexOf(n)>=0)&&(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++){if(n=s[r],!(e.indexOf(n)>=0))Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}}return o}function tp(t){return(tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function td(t,e,n){var r;return r=function(t,e){if("object"!==tp(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==tp(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===tp(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tm=(0,p.createContext)(null),tg=()=>{var t=(0,p.useContext)(tm);if(!t)throw Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return t},ty=parseInt(p.version.split(".")[0],10),tv="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,tb="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),tO="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),tw="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),tx="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),tD="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),tk="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),tS="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),tE=tO&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),tC="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),tT="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),tA="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),tM=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),tP=(!tS||!tE)&&!tD&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,tB=new WeakMap,tI=new WeakMap,tF=new WeakMap,tN=new WeakMap,tL=new WeakMap,t_=new WeakMap,tX=new WeakMap,tR=new WeakMap,tj=new WeakMap,t$=new WeakMap,tV=new WeakMap,tH=new WeakMap,tW=new WeakMap,tz=new WeakMap,tq=new WeakMap,tU=new WeakMap,tY=new WeakMap,tG=new WeakMap,tQ=new WeakMap,tK=new WeakMap,tJ=new WeakMap,tZ=Symbol("placeholder"),t0=Symbol("mark-placeholder"),t1=globalThis.Text,t2=t=>t&&t.ownerDocument&&t.ownerDocument.defaultView||null,t3=t=>t4(t)&&8===t.nodeType,t5=t=>t4(t)&&1===t.nodeType,t4=t=>{var e=t2(t);return!!e&&t instanceof e.Node},t9=t=>{var e=t&&t.anchorNode&&t2(t.anchorNode);return!!e&&t instanceof e.Selection},t8=t=>t4(t)&&3===t.nodeType,t6=t=>t.clipboardData&&""!==t.clipboardData.getData("text/plain")&&1===t.clipboardData.types.length,t7=t=>{var[e,n]=t;if(t5(e)&&e.childNodes.length){var r=n===e.childNodes.length,o=r?n-1:n;for([e,o]=ee(e,o,r?"backward":"forward"),r=o<n;t5(e)&&e.childNodes.length;){var s=r?e.childNodes.length-1:0;e=en(e,s,r?"backward":"forward")}n=r&&null!=e.textContent?e.textContent.length:0}return[e,n]},et=t=>{for(var e=t&&t.parentNode;e;){if("[object ShadowRoot]"===e.toString())return!0;e=e.parentNode}return!1},ee=(t,e,n)=>{for(var{childNodes:r}=t,o=r[e],s=e,a=!1,u=!1;(t3(o)||t5(o)&&0===o.childNodes.length||t5(o)&&"false"===o.getAttribute("contenteditable"))&&(!a||!u);){;if(s>=r.length){a=!0,s=e-1,n="backward";continue}if(s<0){u=!0,s=e+1,n="forward";continue}o=r[s],e=s,s+="forward"===n?1:-1}return[o,e]},en=(t,e,n)=>{var[r]=ee(t,e,n);return r},er=t=>{var e="";if(t8(t)&&t.nodeValue)return t.nodeValue;if(t5(t)){for(var n of Array.from(t.childNodes))e+=er(n);var r=getComputedStyle(t).getPropertyValue("display");("block"===r||"list"===r||"BR"===t.tagName)&&(e+="\n")}return e},ei=/data-slate-fragment="(.+?)"/m,eo=t=>{var[,e]=t.getData("text/html").match(ei)||[];return e},es=(t,e,n)=>{var{target:r}=e;if(t5(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=el.getWindow(t);if(o.contains(r))return el.hasDOMNode(t,r,{editable:!0});var s=n.find(t=>{var{addedNodes:e,removedNodes:n}=t;for(var o of e)if(o===r||o.contains(r))return!0;for(var s of n)if(s===r||s.contains(r))return!0});return!!s&&s!==e&&es(t,s,n)},ea=0;class eu{constructor(){td(this,"id",void 0),this.id="".concat(ea++)}}var el={androidPendingDiffs:t=>tG.get(t),androidScheduleFlush:t=>{var e;null===(e=tq.get(t))||void 0===e||e()},blur:t=>{var e=el.toDOMNode(t,t),n=el.findDocumentOrShadowRoot(t);tV.set(t,!1),n.activeElement===e&&e.blur()},deselect:t=>{var{selection:e}=t,n=el.findDocumentOrShadowRoot(t).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),e&&x.YR.deselect(t)},findDocumentOrShadowRoot:t=>{var e=el.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:e.ownerDocument},findEventRange:(t,e)=>{"nativeEvent"in e&&(e=e.nativeEvent);var n,{clientX:r,clientY:o,target:s}=e;if(null==r||null==o)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var a=el.toSlateNode(t,e.target),u=el.findPath(t,a);if(x.W_.isElement(a)&&x.ML.isVoid(t,a)){var l=s.getBoundingClientRect(),c=t.isInline(a)?r-l.left<l.left+l.width-r:o-l.top<l.top+l.height-o,h=x.ML.point(t,u,{edge:c?"start":"end"}),f=c?x.ML.before(t,h):x.ML.after(t,h);if(f)return x.ML.range(t,f)}var{document:p}=el.getWindow(t);if(p.caretRangeFromPoint)n=p.caretRangeFromPoint(r,o);else{var d=p.caretPositionFromPoint(r,o);d&&((n=p.createRange()).setStart(d.offsetNode,d.offset),n.setEnd(d.offsetNode,d.offset))}if(!n)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(e));return el.toSlateRange(t,n,{exactMatch:!1,suppressThrow:!1})},findKey:(t,e)=>{var n=tR.get(e);return!n&&(n=new eu,tR.set(e,n)),n},findPath:(t,e)=>{for(var n=[],r=e;;){var o=tI.get(r);if(null==o){if(x.ML.isEditor(r))return n;break}var s=tB.get(r);if(null==s)break;n.unshift(s),r=o}throw Error("Unable to find the path for Slate node: ".concat(x.o4.stringify(e)))},focus:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!tV.get(t)){if(e.retries<=0)throw Error("Could not set focus, editor seems stuck with pending operations");if(t.operations.length>0){setTimeout(()=>{el.focus(t,{retries:e.retries-1})},10);return}var n=el.toDOMNode(t,t),r=el.findDocumentOrShadowRoot(t);if(r.activeElement!==n){if(t.selection&&r instanceof Document){var o=r.getSelection(),s=el.toDOMRange(t,t.selection);null==o||o.removeAllRanges(),null==o||o.addRange(s)}!t.selection&&(x.YR.select(t,x.ML.start(t,[])),t.onChange()),n.focus({preventScroll:!0}),tV.set(t,!0)}}},getWindow:t=>{var e=tF.get(t);if(!e)throw Error("Unable to find a host window element for this editor");return e},hasDOMNode:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=r,s=el.toDOMNode(t,t);try{n=t5(e)?e:e.parentElement}catch(t){if(t instanceof Error&&!t.message.includes('Permission denied to access property "nodeType"'))throw t}return!!n&&n.closest("[data-slate-editor]")===s&&(!o||!!n.isContentEditable||"boolean"==typeof n.isContentEditable&&n.closest('[contenteditable="false"]')===s||!!n.getAttribute("data-slate-zero-width"))},hasEditableTarget:(t,e)=>t4(e)&&el.hasDOMNode(t,e,{editable:!0}),hasRange:(t,e)=>{var{anchor:n,focus:r}=e;return x.ML.hasPath(t,n.path)&&x.ML.hasPath(t,r.path)},hasSelectableTarget:(t,e)=>el.hasEditableTarget(t,e)||el.isTargetInsideNonReadonlyVoid(t,e),hasTarget:(t,e)=>t4(e)&&el.hasDOMNode(t,e),insertData:(t,e)=>{t.insertData(e)},insertFragmentData:(t,e)=>t.insertFragmentData(e),insertTextData:(t,e)=>t.insertTextData(e),isComposing:t=>!!tH.get(t),isFocused:t=>!!tV.get(t),isReadOnly:t=>!!t$.get(t),isTargetInsideNonReadonlyVoid:(t,e)=>{if(t$.get(t))return!1;var n=el.hasTarget(t,e)&&el.toSlateNode(t,e);return x.W_.isElement(n)&&x.ML.isVoid(t,n)},setFragmentData:(t,e,n)=>t.setFragmentData(e,n),toDOMNode:(t,e)=>{var n=tj.get(t),r=x.ML.isEditor(e)?tN.get(t):null==n?void 0:n.get(el.findKey(t,e));if(!r)throw Error("Cannot resolve a DOM node from Slate node: ".concat(x.o4.stringify(e)));return r},toDOMPoint:(t,e)=>{var[n]=x.ML.node(t,e.path),r=el.toDOMNode(t,n);x.ML.void(t,{at:e})&&(e={path:e.path,offset:0});for(var o=Array.from(r.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0,a=0;a<o.length;a++){var u=o[a],l=u.childNodes[0];if(null!=l&&null!=l.textContent){var{length:c}=l.textContent,h=u.getAttribute("data-slate-length"),f=s+(null==h?c:parseInt(h,10)),p=o[a+1];if(e.offset===f&&null!=p&&p.hasAttribute("data-slate-mark-placeholder")){var d,m,g=p.childNodes[0];d=[g instanceof t1?g:p,null!==(m=p.textContent)&&void 0!==m&&m.startsWith("\uFEFF")?1:0];break}if(e.offset<=f){d=[l,Math.min(c,Math.max(0,e.offset-s))];break}s=f}}if(!d)throw Error("Cannot resolve a DOM point from Slate point: ".concat(x.o4.stringify(e)));return d},toDOMRange:(t,e)=>{var{anchor:n,focus:r}=e,o=x.e6.isBackward(e),s=el.toDOMPoint(t,n),a=x.e6.isCollapsed(e)?s:el.toDOMPoint(t,r),u=el.getWindow(t).document.createRange(),[l,c]=o?a:s,[h,f]=o?s:a,p=!!(t5(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),d=!!(t5(h)?h:h.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,p?1:c),u.setEnd(h,d?1:f),u},toSlateNode:(t,e)=>{var n=t5(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?t_.get(n):null;if(!r)throw Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(t,e,n)=>{var{exactMatch:r,suppressThrow:o}=n,[s,a]=r?e:t7(e),u=s.parentNode,l=null,c=0;if(u){var h,f,p=el.toDOMNode(t,t),d=u.closest('[data-slate-void="true"]'),m=d&&p.contains(d)?d:null,g=u.closest("[data-slate-leaf]"),y=null;if(g){if(l=g.closest('[data-slate-node="text"]')){var b=el.getWindow(t).document.createRange();b.setStart(l,0),b.setEnd(s,a);var O=b.cloneContents();[...Array.prototype.slice.call(O.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(O.querySelectorAll("[contenteditable=false]"))].forEach(t=>{if(tO&&!r&&t.hasAttribute("data-slate-zero-width")&&t.textContent.length>0&&"\uFEFF"!==t.textContext){t.textContent.startsWith("\uFEFF")&&(t.textContent=t.textContent.slice(1));return}t.parentNode.removeChild(t)}),c=O.textContent.length,y=l}}else if(m){for(var w=m.querySelectorAll("[data-slate-leaf]"),D=0;D<w.length;D++){var k=w[D];if(el.hasDOMNode(t,k)){g=k;break}}g?(l=g.closest('[data-slate-node="text"]'),c=(y=g).textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(t=>{c-=t.textContent.length})):c=1}y&&c===y.textContent.length&&tO&&"z"===y.getAttribute("data-slate-zero-width")&&null!==(h=y.textContent)&&void 0!==h&&h.startsWith("\uFEFF")&&(u.hasAttribute("data-slate-zero-width")||tw&&null!==(f=y.textContent)&&void 0!==f&&f.endsWith("\n\n"))&&c--}if(tO&&!l&&!r){var S=u.hasAttribute("data-slate-node")?u:u.closest("[data-slate-node]");if(S&&el.hasDOMNode(t,S,{editable:!0})){var E=el.toSlateNode(t,S),{path:C,offset:T}=x.ML.start(t,el.findPath(t,E));return!S.querySelector("[data-slate-leaf]")&&(T=a),{path:C,offset:T}}}if(!l){if(o)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(e))}var A=el.toSlateNode(t,l);return{path:el.findPath(t,A),offset:c}},toSlateRange:(t,e,n)=>{var r,o,s,a,u,l,c,{exactMatch:h,suppressThrow:f}=n;if(t9(e)?e.anchorNode:e.startContainer){if(t9(e)){if(tw&&e.rangeCount>1){a=e.focusNode;var p=e.getRangeAt(0),d=e.getRangeAt(e.rangeCount-1);if(a instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&d.startContainer instanceof HTMLTableRowElement){function m(t){return t.childElementCount>0?m(t.children[0]):t}var g=p.startContainer,y=d.startContainer,b=m(g.children[p.startOffset]),O=m(y.children[d.startOffset]);u=0,o=O.childNodes.length>0?O.childNodes[0]:O,a=b.childNodes.length>0?b.childNodes[0]:b,O instanceof HTMLElement?s=O.innerHTML.length:s=0}else p.startContainer===a?(o=d.endContainer,s=d.endOffset,u=p.startOffset):(o=p.startContainer,s=p.endOffset,u=d.startOffset)}else o=e.anchorNode,s=e.anchorOffset,a=e.focusNode,u=e.focusOffset;l=tk&&et(o)||tw?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed}else o=e.startContainer,s=e.startOffset,a=e.endContainer,u=e.endOffset,l=e.collapsed}if(null==o||null==a||null==s||null==u)throw Error("Cannot resolve a Slate range from DOM range: ".concat(e));tw&&null!==(r=a.textContent)&&void 0!==r&&r.endsWith("\n\n")&&u===a.textContent.length&&u--,"getAttribute"in a&&"false"===a.getAttribute("contenteditable")&&"true"!==a.getAttribute("data-slate-void")&&(a=o,u=(null===(c=o.textContent)||void 0===c?void 0:c.length)||0);var w=el.toSlatePoint(t,[o,s],{exactMatch:h,suppressThrow:f});if(!w)return null;var D=l?w:el.toSlatePoint(t,[a,u],{exactMatch:h,suppressThrow:f});if(!D)return null;var k={anchor:w,focus:D};return x.e6.isExpanded(k)&&x.e6.isForward(k)&&t5(a)&&x.ML.void(t,{at:k.focus,mode:"highest"})&&(k=x.ML.unhangRange(t,k,{voids:!0})),k}};function ec(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((t,e)=>t.slice(0,e.start)+e.text+t.slice(e.end),t)}function eh(t,e){var{start:n,end:r,text:o}=e,s=t.slice(n,r),a=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t.charAt(r)!==e.charAt(r))return r;return n}(s,o),u=Math.min(s.length-a,o.length-a),l=function(t,e,n){for(var r=Math.min(t.length,e.length,n),o=0;o<r;o++)if(t.charAt(t.length-o-1)!==e.charAt(e.length-o-1))return o;return r}(s,o,u),c={start:n+a,end:r-l,text:o.slice(a,o.length-l)};return c.start===c.end&&0===c.text.length?null:c}function ef(t,e){var{path:n,offset:r}=e;if(!x.ML.hasPath(t,n))return null;var o=x.NB.get(t,n);if(!x.xv.isText(o))return null;var s=x.ML.above(t,{match:e=>x.W_.isElement(e)&&x.ML.isBlock(t,e),at:n});if(!s)return null;for(;r>o.text.length;){var a=x.ML.next(t,{at:n,match:x.xv.isText});if(!a||!x.y$.isDescendant(a[1],s[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function ep(t,e){var n=ef(t,e.anchor);if(!n)return null;if(x.e6.isCollapsed(e))return{anchor:n,focus:n};var r=ef(t,e.focus);return r?{anchor:n,focus:r}:null}function ed(t,e,n){var r=tG.get(t),o=null==r?void 0:r.find(t=>{var{path:n}=t;return x.y$.equals(n,e.path)});if(!o||e.offset<=o.diff.start)return x.E9.transform(e,n,{affinity:"backward"});var{diff:s}=o;if(e.offset<=s.start+s.text.length){var a={path:e.path,offset:s.start},u=x.E9.transform(a,n,{affinity:"backward"});return u?{path:u.path,offset:u.offset+e.offset-s.start}:null}var l={path:e.path,offset:e.offset-s.text.length+s.end-s.start},c=x.E9.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&x.y$.equals(n.path,e.path)&&l.offset<n.position&&s.start<n.position?c:{path:c.path,offset:c.offset+s.text.length-s.end+s.start}:null}function em(t,e,n){var r=ed(t,e.anchor,n);if(!r)return null;if(x.e6.isCollapsed(e))return{anchor:r,focus:r};var o=ed(t,e.focus,n);return o?{anchor:r,focus:o}:null}function eg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ey(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eg(Object(n),!0).forEach(function(e){td(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ev=function(){},eb=t=>(null==t?void 0:t.constructor.name)==="DataTransfer",eO=tM?p.useLayoutEffect:p.useEffect,ew=["node"];function ex(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var eD={subtree:!0,childList:!0,characterData:!0},ek=tO?t=>{var e,{node:n}=t,r=tf(t,ew);if(!tO)return null;var o=tg();var s=(e=(0,p.useRef)(!1),(0,p.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current),[a]=(0,p.useState)(()=>(function(t){var{editor:e,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=t,o=!1,s=null,a=null,u=null,l=0,c=!1,h=()=>{var t=tK.get(e);if(tK.delete(e),t){var{selection:n}=e,r=ep(e,t);r&&(!n||!x.e6.equals(r,n))&&x.YR.select(e,r)}},f=()=>{var t=tQ.get(e);if(tQ.delete(e),!!t){if(t.at){var n=x.E9.isPoint(t.at)?ef(e,t.at):ep(e,t.at);if(!n)return;var r=x.ML.range(e,n);(!e.selection||!x.e6.equals(e.selection,r))&&x.YR.select(e,n)}t.run()}},p=()=>{if(a&&(clearTimeout(a),a=null),u&&(clearTimeout(u),u=null),!b()&&!y()){h();return}!o&&(o=!0,setTimeout(()=>o=!1)),y()&&(o="action");var t=e.selection&&x.ML.rangeRef(e,e.selection,{affinity:"forward"});tY.set(e,e.marks),ev("flush",tQ.get(e),tG.get(e));for(var s=b();l=null===(p=tG.get(e))||void 0===p?void 0:p[0];){var l,p,d,m=tU.get(e);void 0!==m&&(tU.delete(e),e.marks=m),m&&!1===c&&(c=null);var g=function(t){var{path:e,diff:n}=t;return{anchor:{path:e,offset:n.start},focus:{path:e,offset:n.end}}}(l);(!e.selection||!x.e6.equals(e.selection,g))&&x.YR.select(e,g),l.diff.text?x.ML.insertText(e,l.diff.text):x.ML.deleteFragment(e),tG.set(e,null===(d=tG.get(e))||void 0===d?void 0:d.filter(t=>{var{id:e}=t;return e!==l.id})),!function(t,e){var{path:n,diff:r}=e;if(!x.ML.hasPath(t,n))return!1;var o=x.NB.get(t,n);if(!x.xv.isText(o))return!1;if(r.start!==o.text.length||0===r.text.length)return o.text.slice(r.start,r.start+r.text.length)===r.text;var s=x.y$.next(n);if(!x.ML.hasPath(t,s))return!1;var a=x.NB.get(t,s);return x.xv.isText(a)&&a.text.startsWith(r.text)}(e,l)&&(s=!1,tQ.delete(e),tY.delete(e),o="action",tK.delete(e),n.cancel(),r.cancel(),null==t||t.unref())}var O=null==t?void 0:t.unref();if(O&&!tK.get(e)&&(!e.selection||!x.e6.equals(O,e.selection))&&x.YR.select(e,O),y()){f();return}s&&n(),n.flush(),r.flush(),h();var w=tY.get(e);tY.delete(e),void 0!==w&&(e.marks=w,e.onChange())},d=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=tL.get(e);if(!!n){if(b()||t){n.style.display="none";return}n.style.removeProperty("display")}},m=(t,n)=>{var r,o,s,a,u,c,h,f,p,m=null!==(p=tG.get(e))&&void 0!==p?p:[];tG.set(e,m);var g=x.NB.leaf(e,t),y=m.findIndex(e=>x.y$.equals(e.path,t));if(y<0){eh(g.text,n)&&m.push({path:t,diff:n,id:l++}),d();return}var b=(r=g.text,o=m[y].diff,s=n,a=Math.min(o.start,s.start),u=Math.max(0,Math.min(o.start+o.text.length,s.end)-s.start),c=ec(r,o,s),h=Math.max(s.start+s.text.length,o.start+o.text.length+(o.start+o.text.length>s.start?s.text.length:0)-u),f=c.slice(a,h),eh(r,{start:a,end:Math.max(o.end,s.end-o.text.length+(o.end-o.start)),text:f}));if(!b){m.splice(y,1),d();return}m[y]=ey(ey({},m[y]),{},{diff:b})},g=function(t){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,tK.delete(e),n.cancel(),r.cancel(),y()&&p(),tQ.set(e,{at:o,run:t}),u=setTimeout(p)},y=()=>!!tQ.get(e),b=()=>{var t;return!!(null!==(t=tG.get(e))&&void 0!==t&&t.length)},O=t=>{tK.set(e,t),a&&(clearTimeout(a),a=null);var{selection:n}=e;if(!!t){var r=!n||!x.y$.equals(n.anchor.path,t.anchor.path),o=!n||!x.y$.equals(n.anchor.path.slice(0,-1),t.anchor.path.slice(0,-1));(r&&c||o)&&(c=!1),(r||b())&&(a=setTimeout(p,200))}},w=()=>{!y()&&(u=setTimeout(p))};return{flush:p,scheduleFlush:w,hasPendingDiffs:b,hasPendingAction:y,hasPendingChanges:()=>y()||b(),isFlushing:()=>o,handleUserSelect:O,handleCompositionEnd:t=>{s&&clearTimeout(s),s=setTimeout(()=>{tH.set(e,!1),p()},25)},handleCompositionStart:t=>{tH.set(e,!0),s&&(clearTimeout(s),s=null)},handleDOMBeforeInput:t=>{a&&(clearTimeout(a),a=null);var{inputType:n}=t,r=null,o=t.dataTransfer||t.data||void 0;!1!==c&&"insertText"!==n&&"insertCompositionText"!==n&&(c=!1);var[s]=t.getTargetRanges();s&&(r=el.toSlateRange(e,s,{exactMatch:!1,suppressThrow:!0}));var u=el.getWindow(e).getSelection();if(!r&&u&&(s=u,r=el.toSlateRange(e,u,{exactMatch:!1,suppressThrow:!0})),!!(r=null!==(B=r)&&void 0!==B?B:e.selection)){var l=!0;if(n.startsWith("delete")){if(x.e6.isExpanded(r)){var[h,f]=x.e6.edges(r);if(x.NB.leaf(e,h.path).text.length===h.offset&&0===f.offset){var p=x.ML.next(e,{at:h.path,match:x.xv.isText});p&&x.y$.equals(p[1],f.path)&&(r={anchor:f,focus:f})}}var d=n.endsWith("Backward")?"backward":"forward",[y,b]=x.e6.edges(r),[D,k]=x.ML.leaf(e,y.path),S={text:"",start:y.offset,end:b.offset},E=tG.get(e),C=null==E?void 0:E.find(t=>x.y$.equals(t.path,k)),T=C?[C.diff,S]:[S];if(0===ec(D.text,...T).length&&(l=!1),x.e6.isExpanded(r)){if(l&&x.y$.equals(r.anchor.path,r.focus.path)){var A={path:r.anchor.path,offset:y.offset};return O(x.ML.range(e,A,A)),m(r.anchor.path,{text:"",end:b.offset,start:y.offset})}return g(()=>x.ML.deleteFragment(e,{direction:d}),{at:r})}}switch(n){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return g(()=>x.ML.deleteFragment(e),{at:r});case"deleteContent":case"deleteContentForward":var{anchor:M}=r;if(l&&x.e6.isCollapsed(r)){var P=x.NB.leaf(e,M.path);if(M.offset<P.text.length)return m(M.path,{text:"",start:M.offset,end:M.offset+1})}return g(()=>x.ML.deleteForward(e),{at:r});case"deleteContentBackward":var B,I,{anchor:F}=r,N=t9(s)?s.isCollapsed:!!(null!==(I=s)&&void 0!==I&&I.collapsed);if(l&&N&&x.e6.isCollapsed(r)&&F.offset>0)return m(F.path,{text:"",start:F.offset-1,end:F.offset});return g(()=>x.ML.deleteBackward(e),{at:r});case"deleteEntireSoftLine":return g(()=>{x.ML.deleteBackward(e,{unit:"line"}),x.ML.deleteForward(e,{unit:"line"})},{at:r});case"deleteHardLineBackward":return g(()=>x.ML.deleteBackward(e,{unit:"block"}),{at:r});case"deleteSoftLineBackward":return g(()=>x.ML.deleteBackward(e,{unit:"line"}),{at:r});case"deleteHardLineForward":return g(()=>x.ML.deleteForward(e,{unit:"block"}),{at:r});case"deleteSoftLineForward":return g(()=>x.ML.deleteForward(e,{unit:"line"}),{at:r});case"deleteWordBackward":return g(()=>x.ML.deleteBackward(e,{unit:"word"}),{at:r});case"deleteWordForward":return g(()=>x.ML.deleteForward(e,{unit:"word"}),{at:r});case"insertLineBreak":return g(()=>x.ML.insertSoftBreak(e),{at:r});case"insertParagraph":return g(()=>x.ML.insertBreak(e),{at:r});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(eb(o))return g(()=>el.insertData(e,o),{at:r});var L=null!=o?o:"";if(tU.get(e)&&(L=L.replace("\uFEFF","")),"insertText"===n&&/.*\n.*\n$/.test(L)&&(L=L.slice(0,-1)),L.includes("\n"))return g(()=>{var t=L.split("\n");t.forEach((n,r)=>{n&&x.ML.insertText(e,n),r!==t.length-1&&x.ML.insertSoftBreak(e)})},{at:r});if(x.y$.equals(r.anchor.path,r.focus.path)){var[_,X]=x.e6.edges(r),R={start:_.offset,end:X.offset,text:L};if(L&&c&&"insertCompositionText"===n){var j=c.start+c.text.search(/\S|$/);R.start+R.text.search(/\S|$/)===j+1&&R.end===c.start+c.text.length?(R.start-=1,c=null,w()):c=!1}else c="insertText"===n&&(null===c?R:!!(c&&x.e6.isCollapsed(r))&&c.end+c.text.length===_.offset&&ey(ey({},c),{},{text:c.text+L}));if(l){m(_.path,R);return}}return g(()=>x.ML.insertText(e,L),{at:r})}}},handleKeyDown:t=>{!b()&&(d(!0),setTimeout(d))},handleDomMutations:t=>{if(!(b()||y())){if(t.some(n=>es(e,n,t))){var n;null===(n=tJ.get(e))||void 0===n||n()}}},handleInput:()=>{(y()||!b())&&p()}}})(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ex(Object(n),!0).forEach(function(e){td(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({editor:o},r)));return!function(t,e,n){var[r]=(0,p.useState)(()=>new MutationObserver(e));eO(()=>{r.takeRecords()}),(0,p.useEffect)(()=>{if(!t.current)throw Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(t.current,n),()=>r.disconnect()},[r,t,n])}(n,a.handleDomMutations,eD),tq.set(o,a.scheduleFlush),s&&a.flush(),a}:()=>null,eS=["anchor","focus"],eE=["anchor","focus"],eC=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>e.hasOwnProperty(n)&&t[n]===e[n]),eT=(t,e)=>{var n=tf(t,eS),r=tf(e,eE);return t[tZ]===e[tZ]&&eC(n,r)},eA=(t,e)=>{if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++){var r=t[n],o=e[n];if(!x.e6.equals(r,o)||!eT(r,o))return!1}return!0},eM=(t,e)=>{if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++){var r=t[n],o=e[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!eT(r,o))return!1}return!0};function eP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var eB=t=>{var{isLast:e,leaf:n,parent:r,text:o}=t,s=tg(),a=el.findPath(s,o),u=x.y$.parent(a),l=!!n[t0];return s.isVoid(r)?p.createElement(eN,{length:x.NB.string(r).length}):""!==n.text||r.children[r.children.length-1]!==o||s.isInline(r)||""!==x.ML.string(s,u)?""===n.text?p.createElement(eN,{isMarkPlaceholder:l}):e&&"\n"===n.text.slice(-1)?p.createElement(eI,{isTrailing:!0,text:n.text}):p.createElement(eI,{text:n.text}):p.createElement(eN,{isLineBreak:!0,isMarkPlaceholder:l})},eI=t=>{var{text:e,isTrailing:n=!1}=t,r=(0,p.useRef)(null),o=()=>"".concat(null!=e?e:"").concat(n?"\n":""),[s]=(0,p.useState)(o);return eO(()=>{var t=o();r.current&&r.current.textContent!==t&&(r.current.textContent=t)}),p.createElement(eF,{ref:r},s)},eF=(0,p.memo)((0,p.forwardRef)((t,e)=>p.createElement("span",{"data-slate-string":!0,ref:e},t.children))),eN=t=>{var{length:e=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=t,o={"data-slate-zero-width":n?"n":"z","data-slate-length":e};return r&&(o["data-slate-mark-placeholder"]=!0),p.createElement("span",function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eP(Object(n),!0).forEach(function(e){td(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eP(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},o),tO&&n?null:"\uFEFF",n?p.createElement("br",null):null)};function eL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function e_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eL(Object(n),!0).forEach(function(e){td(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var eX=tO?300:0;function eR(t){t.current&&(clearTimeout(t.current),t.current=null)}var ej=p.memo(t=>{var{leaf:e,isLast:n,text:r,parent:o,renderPlaceholder:s,renderLeaf:a=t=>p.createElement(e$,e_({},t))}=t,u=tg(),l=(0,p.useRef)(null),c=(0,p.useRef)(null),[h,f]=(0,p.useState)(!1),d=(0,p.useRef)(null),m=(0,p.useCallback)(t=>{if(n=l,r=null==t,n.current&&(n.current.disconnect(),r&&(n.current=null)),null==t){;tL.delete(u),null===(o=e.onPlaceholderResize)||void 0===o||o.call(e,null)}else{if(tL.set(u,t),!l.current){var n,r,o,s=window.ResizeObserver||tl;l.current=new s(()=>{var n;null===(n=e.onPlaceholderResize)||void 0===n||n.call(e,t)})}l.current.observe(t),c.current=t}},[c,e,u]),g=p.createElement(eB,{isLast:n,leaf:e,parent:o,text:r}),y=!!e[tZ];if((0,p.useEffect)(()=>(y?!d.current&&(d.current=setTimeout(()=>{f(!0),d.current=null},eX)):(eR(d),f(!1)),()=>eR(d)),[y,f]),y&&h){var b={children:e.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:tx?"inherit":void 0},contentEditable:!1,ref:m}};g=p.createElement(p.Fragment,null,s(b),g)}return a({attributes:{"data-slate-leaf":!0},children:g,leaf:e,text:r})},(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&x.xv.equals(e.leaf,t.leaf)&&e.leaf[tZ]===t.leaf[tZ]),e$=t=>{var{attributes:e,children:n}=t;return p.createElement("span",e_({},e),n)},eV=p.memo(t=>{for(var{decorations:e,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:s,text:a}=t,u=tg(),l=(0,p.useRef)(null),c=x.xv.decorations(a,e),h=el.findKey(u,a),f=[],d=0;d<c.length;d++){var m=c[d];f.push(p.createElement(ej,{isLast:n&&d===c.length-1,key:"".concat(h.id,"-").concat(d),renderPlaceholder:o,leaf:m,text:a,parent:r,renderLeaf:s}))}var g=(0,p.useCallback)(t=>{var e=tj.get(u);t?(null==e||e.set(h,t),tX.set(a,t),t_.set(t,a)):(null==e||e.delete(h),tX.delete(a),l.current&&t_.delete(l.current)),l.current=t},[l,u,h,a]);return p.createElement("span",{"data-slate-node":"text",ref:g},f)},(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&eM(e.decorations,t.decorations));function eH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function eW(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eH(Object(n),!0).forEach(function(e){td(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eH(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ez=p.memo(t=>{var{decorations:e,element:n,renderElement:r=t=>p.createElement(eq,eW({},t)),renderPlaceholder:o,renderLeaf:s,selection:a}=t,l=tg(),c=eJ(),h=l.isInline(n),f=el.findKey(l,n),d=(0,p.useCallback)(t=>{var e=tj.get(l);t?(null==e||e.set(f,t),tX.set(n,t),t_.set(t,n)):(null==e||e.delete(f),tX.delete(n))},[l,f,n]),m=eQ({decorations:e,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:s,selection:a}),g={"data-slate-node":"element",ref:d};if(h&&(g["data-slate-inline"]=!0),!h&&x.ML.hasInlines(l,n)){var y=x.NB.string(n),b=u()(y);"rtl"===b&&(g.dir=b)}if(x.ML.isVoid(l,n)){g["data-slate-void"]=!0,!c&&h&&(g.contentEditable=!1);var[[O]]=x.NB.texts(n);m=p.createElement(h?"span":"div",{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},p.createElement(eV,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:O})),tB.set(O,0),tI.set(O,n)}return r({attributes:g,children:m,element:n})},(t,e)=>t.element===e.element&&t.renderElement===e.renderElement&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&eA(t.decorations,e.decorations)&&(t.selection===e.selection||!!t.selection&&!!e.selection&&x.e6.equals(t.selection,e.selection))),eq=t=>{var{attributes:e,children:n,element:r}=t,o=tg().isInline(r)?"span":"div";return p.createElement(o,eW(eW({},e),{},{style:{position:"relative"}}),n)},eU=(0,p.createContext)(()=>[]),eY=()=>(0,p.useContext)(eU),eG=(0,p.createContext)(!1),eQ=t=>{for(var{decorations:e,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:s,selection:a}=t,u=eY(),l=tg(),c=el.findPath(l,n),h=[],f=x.W_.isElement(n)&&!l.isInline(n)&&x.ML.hasInlines(l,n),d=0;d<n.children.length;d++){var m=c.concat(d),g=n.children[d],y=el.findKey(l,g),b=x.ML.range(l,m),O=a&&x.e6.intersection(b,a),w=u([g,m]);for(var D of e){var k=x.e6.intersection(D,b);k&&w.push(k)}x.W_.isElement(g)?h.push(p.createElement(eG.Provider,{key:"provider-".concat(y.id),value:!!O},p.createElement(ez,{decorations:w,element:g,key:y.id,renderElement:r,renderPlaceholder:o,renderLeaf:s,selection:O}))):h.push(p.createElement(eV,{decorations:w,key:y.id,isLast:f&&d===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:s,text:g})),tB.set(g,d),tI.set(g,n)}return h},eK=(0,p.createContext)(!1),eJ=()=>(0,p.useContext)(eK),eZ=(0,p.createContext)(null),e0=()=>{var t=(0,p.useContext)(eZ);if(!t)throw Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:e}=t;return e},e1={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},e2={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},e3={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},e5=t=>{var e=e1[t],n=e2[t],r=e3[t],o=e&&(0,tc.isHotkey)(e),s=n&&(0,tc.isHotkey)(n),a=r&&(0,tc.isHotkey)(r);return t=>!!(o&&o(t)||tb&&s&&s(t)||!tb&&a&&a(t))||!1},e4={isBold:e5("bold"),isCompose:e5("compose"),isMoveBackward:e5("moveBackward"),isMoveForward:e5("moveForward"),isDeleteBackward:e5("deleteBackward"),isDeleteForward:e5("deleteForward"),isDeleteLineBackward:e5("deleteLineBackward"),isDeleteLineForward:e5("deleteLineForward"),isDeleteWordBackward:e5("deleteWordBackward"),isDeleteWordForward:e5("deleteWordForward"),isExtendBackward:e5("extendBackward"),isExtendForward:e5("extendForward"),isExtendLineBackward:e5("extendLineBackward"),isExtendLineForward:e5("extendLineForward"),isItalic:e5("italic"),isMoveLineBackward:e5("moveLineBackward"),isMoveLineForward:e5("moveLineForward"),isMoveWordBackward:e5("moveWordBackward"),isMoveWordForward:e5("moveWordForward"),isRedo:e5("redo"),isSoftBreak:e5("insertSoftBreak"),isSplitBlock:e5("splitBlock"),isTransposeCharacter:e5("transposeCharacter"),isUndo:e5("undo")},e9=(t,e)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(!!e.current){var o=r.filter(e=>es(t,e,r));n.push(...o)}},restoreDOM:function(){n.length>0&&(n.reverse().forEach(t=>{if("characterData"!==t.type)t.removedNodes.forEach(e=>{t.target.insertBefore(e,t.nextSibling)}),t.addedNodes.forEach(e=>{t.target.removeChild(e)})}),r())},clear:r}},e8={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class e6 extends p.Component{constructor(){super(...arguments),td(this,"context",null),td(this,"manager",null),td(this,"mutationObserver",null)}observe(){var t,{node:e}=this.props;if(!e.current)throw Error("Failed to attach MutationObserver, `node` is undefined");null===(t=this.mutationObserver)||void 0===t||t.observe(e.current,e8)}componentDidMount(){var{receivedUserInput:t}=this.props,e=this.context;this.manager=e9(e,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,e,n,r,o=null===(t=this.mutationObserver)||void 0===t?void 0:t.takeRecords();return null!=o&&o.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(o)),null===(e=this.mutationObserver)||void 0===e||e.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var t;null===(t=this.manager)||void 0===t||t.clear(),this.observe()}componentWillUnmount(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}render(){return this.props.children}}td(e6,"contextType",tm);var e7=tO?e6:t=>{var{children:e}=t;return p.createElement(p.Fragment,null,e)},nt=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],ne=["text"];function nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function nr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nn(Object(n),!0).forEach(function(e){td(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ni=t=>p.createElement(p.Fragment,null,eQ(t)),no=t=>{var e,n,r,o,s=(0,p.useCallback)(t=>p.createElement(ns,nr({},t)),[]),{autoFocus:a,decorate:l=na,onDOMBeforeInput:h,placeholder:d,readOnly:m=!1,renderElement:g,renderLeaf:y,renderPlaceholder:b=s,scrollSelectionIntoView:O=nu,style:w={},as:D="div",disableDefaultStyles:k=!1}=t,S=tf(t,nt),E=e0(),[C,T]=(0,p.useState)(!1),A=(0,p.useRef)(null),M=(0,p.useRef)([]),[P,B]=(0,p.useState)();var{onUserInput:I,receivedUserInput:F}=(e=tg(),n=(0,p.useRef)(!1),r=(0,p.useRef)(0),o=(0,p.useCallback)(()=>{if(!n.current){n.current=!0;var t=el.getWindow(e);t.cancelAnimationFrame(r.current),r.current=t.requestAnimationFrame(()=>{n.current=!1})}},[e]),(0,p.useEffect)(()=>()=>cancelAnimationFrame(r.current),[]),{receivedUserInput:n,onUserInput:o}),[,N]=(0,p.useReducer)(t=>t+1,0);tJ.set(E,N),t$.set(E,m);var L=(0,p.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,p.useEffect)(()=>{A.current&&a&&A.current.focus()},[a]);var _=(0,p.useRef)(),X=(0,p.useMemo)(()=>f()(()=>{var t=_.current;if((tO||!el.isComposing(E))&&(!L.isUpdatingSelection||null!=t&&t.isFlushing())&&!L.isDraggingInternally){var e=el.findDocumentOrShadowRoot(E),{activeElement:n}=e,r=el.toDOMNode(E,E),o=e.getSelection();if(n===r?(L.latestElement=n,tV.set(E,!0)):tV.delete(E),!o)return x.YR.deselect(E);var{anchorNode:s,focusNode:a}=o,u=el.hasEditableTarget(E,s)||el.isTargetInsideNonReadonlyVoid(E,s),l=el.hasEditableTarget(E,a)||el.isTargetInsideNonReadonlyVoid(E,a);if(u&&l){var c=el.toSlateRange(E,o,{exactMatch:!1,suppressThrow:!0});c&&(el.isComposing(E)||null!=t&&t.hasPendingChanges()||null!=t&&t.isFlushing()?null==t||t.handleUserSelect(c):x.YR.select(E,c))}m&&(!u||!l)&&x.YR.deselect(E)}},100),[E,m,L]),R=(0,p.useMemo)(()=>c()(X,0),[X]);_.current=ek({node:A,onDOMSelectionChange:X,scheduleOnDOMSelectionChange:R}),eO(()=>{A.current&&(n=t2(A.current))?(tF.set(E,n),tN.set(E,A.current),tX.set(E,A.current),t_.set(A.current,E)):tX.delete(E);var t,e,n,{selection:r}=E,o=el.findDocumentOrShadowRoot(E).getSelection();if(!(!o||!el.isFocused(E)||null!==(t=_.current)&&void 0!==t&&t.hasPendingAction())){var s=t=>{var e="None"!==o.type;if(!!r||!!e){var n=o.focusNode;if(tw&&o.rangeCount>1){var s=o.getRangeAt(0),a=o.getRangeAt(o.rangeCount-1);c=s.startContainer===n?a.endContainer:s.startContainer}else c=o.anchorNode;var u=tN.get(E),l=!1;if(u.contains(c)&&u.contains(n)&&(l=!0),e&&l&&r&&!t){var c,h,f=el.toSlateRange(E,o,{exactMatch:!0,suppressThrow:!0});if(f&&x.e6.equals(f,r)&&(!L.hasMarkPlaceholder||null!==(h=c)&&void 0!==h&&null!==(h=h.parentElement)&&void 0!==h&&h.hasAttribute("data-slate-mark-placeholder")))return}if(r&&!el.hasRange(E,r)){E.selection=el.toSlateRange(E,o,{exactMatch:!1,suppressThrow:!0});return}L.isUpdatingSelection=!0;var p=r&&el.toDOMRange(E,r);return p?(el.isComposing(E)&&!tO?o.collapseToEnd():x.e6.isBackward(r)?o.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):o.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset),O(E,p)):o.removeAllRanges(),p}};o.rangeCount<=1&&s();var a=(null===(e=_.current)||void 0===e?void 0:e.isFlushing())==="action";if(!tO||!a){setTimeout(()=>{L.isUpdatingSelection=!1});return}var u=null,l=requestAnimationFrame(()=>{if(a){var t=t=>{try{el.toDOMNode(E,E).focus(),s(t)}catch(t){}};t(),u=setTimeout(()=>{t(!0),L.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(l),u&&clearTimeout(u)}}});var j=(0,p.useCallback)(t=>{if(I(),!m&&el.hasEditableTarget(E,t.target)&&!nh(t,h)){if(_.current)return _.current.handleDOMBeforeInput(t);R.flush(),X.flush();var{selection:e}=E,{inputType:n}=t,r=t.dataTransfer||t.data||void 0,o="insertCompositionText"===n||"deleteCompositionText"===n;if(o&&el.isComposing(E))return;var s=!1;if("insertText"===n&&e&&x.e6.isCollapsed(e)&&t.data&&1===t.data.length&&/[a-z ]/i.test(t.data)&&0!==e.anchor.offset){s=!0,E.marks&&(s=!1);var{anchor:a}=e,[u,l]=el.toDOMPoint(E,a),c=null===(d=u.parentElement)||void 0===d?void 0:d.closest("a"),f=el.getWindow(E);if(s&&c&&el.hasDOMNode(E,c)){var p,d,g,y,b=null==f?void 0:f.document.createTreeWalker(c,NodeFilter.SHOW_TEXT).lastChild();b===u&&(null===(y=b.textContent)||void 0===y?void 0:y.length)===l&&(s=!1)}if(s&&u.parentElement&&(null==f||null===(g=f.getComputedStyle(u.parentElement))||void 0===g?void 0:g.whiteSpace)==="pre"){var O=x.ML.above(E,{at:a.path,match:t=>x.W_.isElement(t)&&x.ML.isBlock(E,t)});O&&x.NB.string(O[0]).includes(" ")&&(s=!1)}}if(!n.startsWith("delete")||n.startsWith("deleteBy")){var[w]=t.getTargetRanges();if(w){var D=el.toSlateRange(E,w,{exactMatch:!1,suppressThrow:!1});if(!e||!x.e6.equals(e,D)){s=!1;var k=!o&&E.selection&&x.ML.rangeRef(E,E.selection);x.YR.select(E,D),k&&tW.set(E,k)}}}if(!o){if(!s&&t.preventDefault(),e&&x.e6.isExpanded(e)&&n.startsWith("delete")){var S=n.endsWith("Backward")?"backward":"forward";x.ML.deleteFragment(E,{direction:S});return}switch(n){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":x.ML.deleteFragment(E);break;case"deleteContent":case"deleteContentForward":x.ML.deleteForward(E);break;case"deleteContentBackward":x.ML.deleteBackward(E);break;case"deleteEntireSoftLine":x.ML.deleteBackward(E,{unit:"line"}),x.ML.deleteForward(E,{unit:"line"});break;case"deleteHardLineBackward":x.ML.deleteBackward(E,{unit:"block"});break;case"deleteSoftLineBackward":x.ML.deleteBackward(E,{unit:"line"});break;case"deleteHardLineForward":x.ML.deleteForward(E,{unit:"block"});break;case"deleteSoftLineForward":x.ML.deleteForward(E,{unit:"line"});break;case"deleteWordBackward":x.ML.deleteBackward(E,{unit:"word"});break;case"deleteWordForward":x.ML.deleteForward(E,{unit:"word"});break;case"insertLineBreak":x.ML.insertSoftBreak(E);break;case"insertParagraph":x.ML.insertBreak(E);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===n&&el.isComposing(E)&&(T(!1),tH.set(E,!1)),(null==r?void 0:r.constructor.name)==="DataTransfer"?el.insertData(E,r):"string"==typeof r&&(s?M.current.push(()=>x.ML.insertText(E,r)):x.ML.insertText(E,r))}var C=null===(p=tW.get(E))||void 0===p?void 0:p.unref();tW.delete(E),C&&(!E.selection||!x.e6.equals(E.selection,C))&&x.YR.select(E,C)}}},[E,X,I,h,m,R]),$=(0,p.useCallback)(t=>{null==t?(X.cancel(),R.cancel(),tN.delete(E),tX.delete(E),A.current&&tP&&A.current.removeEventListener("beforeinput",j)):tP&&t.addEventListener("beforeinput",j),A.current=t},[X,R,E,j]);eO(()=>{var t=el.getWindow(E);return t.document.addEventListener("selectionchange",R),()=>{t.document.removeEventListener("selectionchange",R)}},[R]);var V=l([E,[]]),H=d&&1===E.children.length&&1===Array.from(x.NB.texts(E)).length&&""===x.NB.string(E)&&!C,W=(0,p.useCallback)(t=>{if(t&&H){var e;B(null===(e=t.getBoundingClientRect())||void 0===e?void 0:e.height)}else B(void 0)},[H]);if(H){var z=x.ML.start(E,[]);V.push({[tZ]:!0,placeholder:d,onPlaceholderResize:W,anchor:z,focus:z})}var{marks:q}=E;if(L.hasMarkPlaceholder=!1,E.selection&&x.e6.isCollapsed(E.selection)&&q){var{anchor:U}=E.selection,Y=x.NB.leaf(E,U.path),G=tf(Y,ne);if(!x.xv.equals(Y,q,{loose:!0})){L.hasMarkPlaceholder=!0;var Q=Object.fromEntries(Object.keys(G).map(t=>[t,null]));V.push(nr(nr(nr({[t0]:!0},Q),q),{},{anchor:U,focus:U}))}}return(0,p.useEffect)(()=>{setTimeout(()=>{var{selection:t}=E;if(t){var{anchor:e}=t,n=x.NB.leaf(E,e.path);if(q&&!x.xv.equals(n,q,{loose:!0})){tU.set(E,q);return}}tU.delete(E)})}),p.createElement(eK.Provider,{value:m},p.createElement(eU.Provider,{value:l},p.createElement(e7,{node:A,receivedUserInput:F},p.createElement(D,nr(nr({role:m?void 0:"textbox","aria-multiline":!m||void 0},S),{},{spellCheck:(!!tP||!tM)&&S.spellCheck,autoCorrect:tP||!tM?S.autoCorrect:"false",autoCapitalize:tP||!tM?S.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!m,zindex:-1,suppressContentEditableWarning:!0,ref:$,style:nr(nr({},k?{}:nr({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},P?{minHeight:P}:{})),w),onBeforeInput:(0,p.useCallback)(t=>{if(!tP&&!m&&!nl(t,S.onBeforeInput)&&el.hasSelectableTarget(E,t.target)&&(t.preventDefault(),!el.isComposing(E))){var e=t.data;x.ML.insertText(E,e)}},[S.onBeforeInput,E,m]),onInput:(0,p.useCallback)(t=>{if(!nl(t,S.onInput)){if(_.current){_.current.handleInput();return}for(var e of M.current)e();M.current=[]}},[S.onInput]),onBlur:(0,p.useCallback)(t=>{if(m||L.isUpdatingSelection||!el.hasSelectableTarget(E,t.target)||nl(t,S.onBlur))return;var e=el.findDocumentOrShadowRoot(E);if(L.latestElement===e.activeElement)return;var{relatedTarget:n}=t;if(!(n===el.toDOMNode(E,E)||t5(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&t4(n)&&el.hasDOMNode(E,n)){var r=el.toSlateNode(E,n);if(x.W_.isElement(r)&&!E.isVoid(r))return}if(tx){var o=e.getSelection();null==o||o.removeAllRanges()}tV.delete(E)}},[m,L.isUpdatingSelection,L.latestElement,E,S.onBlur]),onClick:(0,p.useCallback)(t=>{if(el.hasTarget(E,t.target)&&!nl(t,S.onClick)&&t4(t.target)){var e=el.toSlateNode(E,t.target),n=el.findPath(E,e);if(!x.ML.hasPath(E,n)||x.NB.get(E,n)!==e)return;if(3===t.detail&&n.length>=1){var r=n;if(!(x.W_.isElement(e)&&x.ML.isBlock(E,e))){var o,s=x.ML.above(E,{match:t=>x.W_.isElement(t)&&x.ML.isBlock(E,t),at:n});r=null!==(o=null==s?void 0:s[1])&&void 0!==o?o:n.slice(0,1)}var a=x.ML.range(E,r);x.YR.select(E,a);return}if(!m){var u=x.ML.start(E,n),l=x.ML.end(E,n),c=x.ML.void(E,{at:u}),h=x.ML.void(E,{at:l});if(c&&h&&x.y$.equals(c[1],h[1])){var f=x.ML.range(E,u);x.YR.select(E,f)}}}},[E,S.onClick,m]),onCompositionEnd:(0,p.useCallback)(t=>{if(el.hasSelectableTarget(E,t.target)){var e;if(el.isComposing(E)&&Promise.resolve().then(()=>{T(!1),tH.set(E,!1)}),null===(e=_.current)||void 0===e||e.handleCompositionEnd(t),!nl(t,S.onCompositionEnd)&&!tO){if(!tx&&!tC&&!tv&&!tA&&!tT&&t.data){var n=tU.get(E);tU.delete(E),void 0!==n&&(tY.set(E,E.marks),E.marks=n),x.ML.insertText(E,t.data);var r=tY.get(E);tY.delete(E),void 0!==r&&(E.marks=r)}}}},[S.onCompositionEnd,E]),onCompositionUpdate:(0,p.useCallback)(t=>{el.hasSelectableTarget(E,t.target)&&!nl(t,S.onCompositionUpdate)&&!el.isComposing(E)&&(T(!0),tH.set(E,!0))},[S.onCompositionUpdate,E]),onCompositionStart:(0,p.useCallback)(t=>{if(el.hasSelectableTarget(E,t.target)){if(null===(e=_.current)||void 0===e||e.handleCompositionStart(t),!nl(t,S.onCompositionStart)&&!tO){T(!0);var e,{selection:n}=E;if(n){if(x.e6.isExpanded(n)){x.ML.deleteFragment(E);return}var r=x.ML.above(E,{match:t=>x.W_.isElement(t)&&x.ML.isInline(E,t),mode:"highest"});if(r){var[,o]=r;if(x.ML.isEnd(E,n.anchor,o)){var s=x.ML.after(E,o);x.YR.setSelection(E,{anchor:s,focus:s})}}}}}},[S.onCompositionStart,E]),onCopy:(0,p.useCallback)(t=>{el.hasSelectableTarget(E,t.target)&&!nl(t,S.onCopy)&&!nc(t)&&(t.preventDefault(),el.setFragmentData(E,t.clipboardData,"copy"))},[S.onCopy,E]),onCut:(0,p.useCallback)(t=>{if(!m&&el.hasSelectableTarget(E,t.target)&&!nl(t,S.onCut)&&!nc(t)){t.preventDefault(),el.setFragmentData(E,t.clipboardData,"cut");var{selection:e}=E;if(e){if(x.e6.isExpanded(e))x.ML.deleteFragment(E);else{var n=x.NB.parent(E,e.anchor.path);x.ML.isVoid(E,n)&&x.YR.delete(E)}}}},[m,E,S.onCut]),onDragOver:(0,p.useCallback)(t=>{if(el.hasTarget(E,t.target)&&!nl(t,S.onDragOver)){var e=el.toSlateNode(E,t.target);x.W_.isElement(e)&&x.ML.isVoid(E,e)&&t.preventDefault()}},[S.onDragOver,E]),onDragStart:(0,p.useCallback)(t=>{if(!m&&el.hasTarget(E,t.target)&&!nl(t,S.onDragStart)){var e=el.toSlateNode(E,t.target),n=el.findPath(E,e);if(x.W_.isElement(e)&&x.ML.isVoid(E,e)||x.ML.void(E,{at:n,voids:!0})){var r=x.ML.range(E,n);x.YR.select(E,r)}L.isDraggingInternally=!0,el.setFragmentData(E,t.dataTransfer,"drag")}},[m,E,S.onDragStart,L]),onDrop:(0,p.useCallback)(t=>{if(!m&&el.hasTarget(E,t.target)&&!nl(t,S.onDrop)){t.preventDefault();var e=E.selection,n=el.findEventRange(E,t),r=t.dataTransfer;x.YR.select(E,n),L.isDraggingInternally&&e&&!x.e6.equals(e,n)&&!x.ML.void(E,{at:n,voids:!0})&&x.YR.delete(E,{at:e}),el.insertData(E,r),!el.isFocused(E)&&el.focus(E)}L.isDraggingInternally=!1},[m,E,S.onDrop,L]),onDragEnd:(0,p.useCallback)(t=>{!m&&L.isDraggingInternally&&S.onDragEnd&&el.hasTarget(E,t.target)&&S.onDragEnd(t),L.isDraggingInternally=!1},[m,L,S,E]),onFocus:(0,p.useCallback)(t=>{if(!m&&!L.isUpdatingSelection&&el.hasEditableTarget(E,t.target)&&!nl(t,S.onFocus)){var e=el.toDOMNode(E,E),n=el.findDocumentOrShadowRoot(E);if(L.latestElement=n.activeElement,tw&&t.target!==e){e.focus();return}tV.set(E,!0)}},[m,L,E,S.onFocus]),onKeyDown:(0,p.useCallback)(t=>{if(!m&&el.hasEditableTarget(E,t.target)){null===(e=_.current)||void 0===e||e.handleKeyDown(t);var e,{nativeEvent:n}=t;if(el.isComposing(E)&&!1===n.isComposing&&(tH.set(E,!1),T(!1)),!(nl(t,S.onKeyDown)||el.isComposing(E))){var{selection:r}=E,o=E.children[null!==r?r.focus.path[0]:0],s="rtl"===u()(x.NB.string(o));if(e4.isRedo(n)){t.preventDefault();"function"==typeof E.redo&&E.redo();return}if(e4.isUndo(n)){t.preventDefault();"function"==typeof E.undo&&E.undo();return}if(e4.isMoveLineBackward(n)){t.preventDefault(),x.YR.move(E,{unit:"line",reverse:!0});return}if(e4.isMoveLineForward(n)){t.preventDefault(),x.YR.move(E,{unit:"line"});return}if(e4.isExtendLineBackward(n)){t.preventDefault(),x.YR.move(E,{unit:"line",edge:"focus",reverse:!0});return}if(e4.isExtendLineForward(n)){t.preventDefault(),x.YR.move(E,{unit:"line",edge:"focus"});return}if(e4.isMoveBackward(n)){t.preventDefault(),r&&x.e6.isCollapsed(r)?x.YR.move(E,{reverse:!s}):x.YR.collapse(E,{edge:s?"end":"start"});return}if(e4.isMoveForward(n)){t.preventDefault(),r&&x.e6.isCollapsed(r)?x.YR.move(E,{reverse:s}):x.YR.collapse(E,{edge:s?"start":"end"});return}if(e4.isMoveWordBackward(n)){t.preventDefault(),r&&x.e6.isExpanded(r)&&x.YR.collapse(E,{edge:"focus"}),x.YR.move(E,{unit:"word",reverse:!s});return}if(e4.isMoveWordForward(n)){t.preventDefault(),r&&x.e6.isExpanded(r)&&x.YR.collapse(E,{edge:"focus"}),x.YR.move(E,{unit:"word",reverse:s});return}if(tP){if((tk||tx)&&r&&(e4.isDeleteBackward(n)||e4.isDeleteForward(n))&&x.e6.isCollapsed(r)){var a=x.NB.parent(E,r.anchor.path);if(x.W_.isElement(a)&&x.ML.isVoid(E,a)&&(x.ML.isInline(E,a)||x.ML.isBlock(E,a))){t.preventDefault(),x.ML.deleteBackward(E,{unit:"block"});return}}}else{if(e4.isBold(n)||e4.isItalic(n)||e4.isTransposeCharacter(n)){t.preventDefault();return}if(e4.isSoftBreak(n)){t.preventDefault(),x.ML.insertSoftBreak(E);return}if(e4.isSplitBlock(n)){t.preventDefault(),x.ML.insertBreak(E);return}if(e4.isDeleteBackward(n)){t.preventDefault(),r&&x.e6.isExpanded(r)?x.ML.deleteFragment(E,{direction:"backward"}):x.ML.deleteBackward(E);return}if(e4.isDeleteForward(n)){t.preventDefault(),r&&x.e6.isExpanded(r)?x.ML.deleteFragment(E,{direction:"forward"}):x.ML.deleteForward(E);return}if(e4.isDeleteLineBackward(n)){t.preventDefault(),r&&x.e6.isExpanded(r)?x.ML.deleteFragment(E,{direction:"backward"}):x.ML.deleteBackward(E,{unit:"line"});return}if(e4.isDeleteLineForward(n)){t.preventDefault(),r&&x.e6.isExpanded(r)?x.ML.deleteFragment(E,{direction:"forward"}):x.ML.deleteForward(E,{unit:"line"});return}if(e4.isDeleteWordBackward(n)){t.preventDefault(),r&&x.e6.isExpanded(r)?x.ML.deleteFragment(E,{direction:"backward"}):x.ML.deleteBackward(E,{unit:"word"});return}if(e4.isDeleteWordForward(n)){t.preventDefault(),r&&x.e6.isExpanded(r)?x.ML.deleteFragment(E,{direction:"forward"}):x.ML.deleteForward(E,{unit:"word"});return}}}}},[m,E,S.onKeyDown]),onPaste:(0,p.useCallback)(t=>{!m&&el.hasEditableTarget(E,t.target)&&!nl(t,S.onPaste)&&(!tP||t6(t.nativeEvent)||tx)&&(t.preventDefault(),el.insertData(E,t.clipboardData))},[m,E,S.onPaste])}),p.createElement(ni,{decorations:V,node:E,renderElement:g,renderPlaceholder:b,renderLeaf:y,selection:E.selection})))))},ns=t=>{var{attributes:e,children:n}=t;return p.createElement("span",nr({},e),n,tO&&p.createElement("br",null))},na=()=>[],nu=(t,e)=>{if(e.getBoundingClientRect&&(!t.selection||t.selection&&x.e6.isCollapsed(t.selection))){var n=e.startContainer.parentElement;n.getBoundingClientRect=e.getBoundingClientRect.bind(e),!function(t,e){let n;if(!t.isConnected||!(t=>{let e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(t))return;let r=(t=>{let e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);if("object"==typeof(n=e)&&"function"==typeof n.behavior)return e.behavior(O(t,e));let o="boolean"==typeof e||null==e?void 0:e.behavior;for(let{el:n,top:s,left:a}of O(t,w(e))){let t=s-r.top+r.bottom,e=a-r.left+r.right;n.scroll({top:t,left:e,behavior:o})}}(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},nl=(t,e)=>{if(!e)return!1;var n=e(t);return null!=n?n:t.isDefaultPrevented()||t.isPropagationStopped()},nc=t=>t4(t.target)&&(t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement),nh=(t,e)=>{if(!e)return!1;var n=e(t);return null!=n?n:t.defaultPrevented},nf=(0,p.createContext)(!1),np=(0,p.createContext)({}),nd=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],nm=t=>{var e,n,r,o,{editor:s,children:a,onChange:u,onSelectionChange:l,onValueChange:c,initialValue:h}=t,f=tf(t,nd),[d,m]=p.useState(()=>{if(!x.NB.isNodeList(h))throw Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(x.o4.stringify(h)));if(!x.ML.isEditor(s))throw Error("[Slate] editor is invalid! You passed: ".concat(x.o4.stringify(s)));return s.children=h,Object.assign(s,f),{v:0,editor:s}});var{selectorContext:g,onChange:y}=(e=s,n=(0,p.useRef)([]).current,r=(0,p.useRef)({editor:e}).current,o=(0,p.useCallback)(t=>{r.editor=t,n.forEach(e=>e(t))},[n,r]),{selectorContext:(0,p.useMemo)(()=>({getSlate:()=>r.editor,addEventListener:t=>(n.push(t),()=>{n.splice(n.indexOf(t),1)})}),[n,r]),onChange:o}),b=(0,p.useCallback)(t=>{var e;if(u&&u(s.children),(null==t||null===(e=t.operation)||void 0===e?void 0:e.type)==="set_selection")null==l||l(s.selection);else null==c||c(s.children);m(t=>({v:t.v+1,editor:s})),y(s)},[s,y,u,l,c]);(0,p.useEffect)(()=>(tz.set(s,b),()=>{tz.set(s,()=>{})}),[s,b]);var[O,w]=(0,p.useState)(el.isFocused(s));return(0,p.useEffect)(()=>{w(el.isFocused(s))},[s]),eO(()=>{var t=()=>w(el.isFocused(s));return ty>=17?(document.addEventListener("focusin",t),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",t)}):(document.addEventListener("focus",t,!0),document.addEventListener("blur",t,!0),()=>{document.removeEventListener("focus",t,!0),document.removeEventListener("blur",t,!0)})},[]),p.createElement(np.Provider,{value:g},p.createElement(eZ.Provider,{value:d},p.createElement(tm.Provider,{value:d.editor},p.createElement(nf.Provider,{value:O},a))))},ng=(t,e)=>{var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},ny=(t,e,n)=>{var r=el.toDOMRange(t,e).getBoundingClientRect(),o=el.toDOMRange(t,n).getBoundingClientRect();return ng(r,o)&&ng(o,r)},nv=(t,e)=>{var n=x.ML.range(t,x.e6.end(e)),r=Array.from(x.ML.positions(t,{at:e})),o=0,s=r.length,a=Math.floor(s/2);if(ny(t,x.ML.range(t,r[o]),n))return x.ML.range(t,r[o],n);if(r.length<2)return x.ML.range(t,r[r.length-1],n);for(;a!==r.length&&a!==o;)ny(t,x.ML.range(t,r[a]),n)?s=a:o=a,a=Math.floor((o+s)/2);return x.ML.range(t,r[s],n)};function nb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function nO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nb(Object(n),!0).forEach(function(e){td(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var nw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",{apply:n,onChange:r,deleteBackward:o,addMark:s,removeMark:a}=t;return tj.set(t,new WeakMap),t.addMark=(e,n)=>{var r,o;null===(r=tq.get(t))||void 0===r||r(),!tU.get(t)&&null!==(o=tG.get(t))&&void 0!==o&&o.length&&tU.set(t,null),tY.delete(t),s(e,n)},t.removeMark=e=>{var n;!tU.get(t)&&null!==(n=tG.get(t))&&void 0!==n&&n.length&&tU.set(t,null),tY.delete(t),a(e)},t.deleteBackward=e=>{if("line"!==e)return o(e);if(t.selection&&x.e6.isCollapsed(t.selection)){var n=x.ML.above(t,{match:e=>x.W_.isElement(e)&&x.ML.isBlock(t,e),at:t.selection});if(n){var[,r]=n,s=x.ML.range(t,r,t.selection.anchor),a=nv(t,s);!x.e6.isCollapsed(a)&&x.YR.delete(t,{at:a})}}},t.apply=e=>{var r=[],o=[],s=tG.get(t);if(null!=s&&s.length){var a=s.map(t=>(function(t,e){var{path:n,diff:r,id:o}=t;switch(e.type){case"insert_text":if(!x.y$.equals(e.path,n)||e.offset>=r.end)return t;if(e.offset<=r.start)return{diff:{start:e.text.length+r.start,end:e.text.length+r.end,text:r.text},id:o,path:n};return{diff:{start:r.start,end:r.end+e.text.length,text:r.text},id:o,path:n};case"remove_text":if(!x.y$.equals(e.path,n)||e.offset>=r.end)return t;if(e.offset+e.text.length<=r.start)return{diff:{start:r.start-e.text.length,end:r.end-e.text.length,text:r.text},id:o,path:n};return{diff:{start:r.start,end:r.end-e.text.length,text:r.text},id:o,path:n};case"split_node":if(!x.y$.equals(e.path,n)||e.position>=r.end)return{diff:r,id:o,path:x.y$.transform(n,e,{affinity:"backward"})};if(e.position>r.start)return{diff:{start:r.start,end:Math.min(e.position,r.end),text:r.text},id:o,path:n};return{diff:{start:r.start-e.position,end:r.end-e.position,text:r.text},id:o,path:x.y$.transform(n,e,{affinity:"forward"})};case"merge_node":if(!x.y$.equals(e.path,n))return{diff:r,id:o,path:x.y$.transform(n,e)};return{diff:{start:r.start+e.position,end:r.end+e.position,text:r.text},id:o,path:x.y$.transform(n,e)}}var s=x.y$.transform(n,e);return s?{diff:r,path:s,id:o}:null})(t,e)).filter(Boolean);tG.set(t,a)}var u=tK.get(t);u&&tK.set(t,em(t,u,e));var l=tQ.get(t);if(null!=l&&l.at){var c=x.E9.isPoint(null==l?void 0:l.at)?ed(t,l.at,e):em(t,l.at,e);tQ.set(t,c?nO(nO({},l),{},{at:c}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":r.push(...nx(t,e.path));break;case"set_selection":null===(f=tW.get(t))||void 0===f||f.unref(),tW.delete(t);break;case"insert_node":case"remove_node":r.push(...nx(t,x.y$.parent(e.path)));break;case"merge_node":var h=x.y$.previous(e.path);r.push(...nx(t,h));break;case"move_node":var f,p,d=x.y$.common(x.y$.parent(e.path),x.y$.parent(e.newPath));r.push(...nx(t,d)),x.y$.isBefore(e.path,e.newPath)?(r.push(...nx(t,x.y$.parent(e.path))),p=e.newPath):(r.push(...nx(t,x.y$.parent(e.newPath))),p=e.path);var m=x.NB.get(t,x.y$.parent(p)),g=el.findKey(t,m);o.push([x.ML.pathRef(t,x.y$.parent(p)),g])}for(var[y,b]of(n(e),r)){var[O]=x.ML.node(t,y);tR.set(O,b)}for(var[w,D]of o)if(w.current){var[k]=x.ML.node(t,w.current);tR.set(k,D)}},t.setFragmentData=n=>{var{selection:r}=t;if(!r)return;var[o,s]=x.e6.edges(r),a=x.ML.void(t,{at:o.path}),u=x.ML.void(t,{at:s.path});if(!x.e6.isCollapsed(r)||!!a){var l=el.toDOMRange(t,r),c=l.cloneContents(),h=c.childNodes[0];if(c.childNodes.forEach(t=>{t.textContent&&""!==t.textContent.trim()&&(h=t)}),u){var[f]=u,p=l.cloneRange(),d=el.toDOMNode(t,f);p.setEndAfter(d),c=p.cloneContents()}if(a&&(h=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach(t=>{var e="n"===t.getAttribute("data-slate-zero-width");t.textContent=e?"\n":""}),t8(h)){var m=h.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(h),c.appendChild(m),h=m}var g=JSON.stringify(t.getFragment()),y=window.btoa(encodeURIComponent(g));h.setAttribute("data-slate-fragment",y),n.setData("application/".concat(e),y);var b=c.ownerDocument.createElement("div");return b.appendChild(c),b.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(b),n.setData("text/html",b.innerHTML),n.setData("text/plain",er(b)),c.ownerDocument.body.removeChild(b),n}},t.insertData=e=>{!t.insertFragmentData(e)&&t.insertTextData(e)},t.insertFragmentData=n=>{var r=n.getData("application/".concat(e))||eo(n);if(r){var o=JSON.parse(decodeURIComponent(window.atob(r)));return t.insertFragment(o),!0}return!1},t.insertTextData=e=>{var n=e.getData("text/plain");if(n){var r=n.split(/\r\n|\r|\n/),o=!1;for(var s of r)o&&x.YR.splitNodes(t,{always:!0}),t.insertText(s),o=!0;return!0}return!1},t.onChange=e=>{(ty<18?th.unstable_batchedUpdates:t=>t())(()=>{var n=tz.get(t);n&&n(e),r(e)})},t},nx=(t,e)=>{var n=[];for(var[r,o]of x.ML.levels(t,{at:e})){var s=el.findKey(t,r);n.push([o,s])}return n}},878011:function(t,e,n){"use strict";n.d(e,{E9:function(){return z},Jh:function(){return e8},ML:function(){return $},NB:function(){return N},OX:function(){return X},W_:function(){return P},YR:function(){return tA},e6:function(){return A},o4:function(){return U},xv:function(){return J},y$:function(){return b}});var r,o,s=n(640652),a=n(61111),u={transform(t,e){var{current:n,affinity:r}=t;if(null!=n){var o=b.transform(n,e,{affinity:r});t.current=o,null==o&&t.unref()}}},l={transform(t,e){var{current:n,affinity:r}=t;if(null!=n){var o=z.transform(n,e,{affinity:r});t.current=o,null==o&&t.unref()}}},c={transform(t,e){var{current:n,affinity:r}=t;if(null!=n){var o=A.transform(n,e,{affinity:r});t.current=o,null==o&&t.unref()}}},h=new WeakMap,f=new WeakMap,p=new WeakMap,d=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,b={ancestors(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=e,r=b.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return -1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),s=t[n],a=e[n];return b.equals(r,o)&&s>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return b.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),s=t[n],a=e[n];return b.equals(r,o)&&s<a},equals:(t,e)=>t.length===e.length&&t.every((t,n)=>t===e[n]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>1===b.compare(t,e),isAncestor:(t,e)=>t.length<e.length&&0===b.compare(t,e),isBefore:(t,e)=>-1===b.compare(t,e),isChild:(t,e)=>t.length===e.length+1&&0===b.compare(t,e),isCommon:(t,e)=>t.length<=e.length&&0===b.compare(t,e),isDescendant:(t,e)=>t.length>e.length&&0===b.compare(t,e),isParent:(t,e)=>t.length+1===e.length&&0===b.compare(t,e),isPath:t=>Array.isArray(t)&&(0===t.length||"number"==typeof t[0]),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&b.equals(n,r)},levels(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(0===t.length)throw Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},operationCanTransformPath(t){switch(t.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(t){if(0===t.length)throw Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(0===t.length)throw Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!b.isAncestor(e,t)&&!b.equals(t,e))throw Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return null;var r=[...t],{affinity:o="forward"}=n;if(0===t.length)return r;switch(e.type){case"insert_node":var{path:s}=e;(b.equals(s,r)||b.endsBefore(s,r)||b.isAncestor(s,r))&&(r[s.length-1]+=1);break;case"remove_node":var{path:a}=e;if(b.equals(a,r)||b.isAncestor(a,r))return null;b.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:l}=e;b.equals(u,r)||b.endsBefore(u,r)?r[u.length-1]-=1:b.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=l);break;case"split_node":var{path:c,position:h}=e;if(b.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else b.endsBefore(c,r)?r[c.length-1]+=1:b.isAncestor(c,r)&&t[c.length]>=h&&(r[c.length-1]+=1,r[c.length]-=h);break;case"move_node":var{path:f,newPath:p}=e;if(b.equals(f,p))break;if(b.isAncestor(f,r)||b.equals(f,r)){var d=p.slice();return b.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}b.isSibling(f,p)&&(b.isAncestor(p,r)||b.equals(p,r))?b.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:b.endsBefore(p,r)||b.equals(p,r)||b.isAncestor(p,r)?(b.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):b.endsBefore(f,r)&&(b.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}return r}};function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e,n){var r;return r=function(t,e){if("object"!==O(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==O(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===O(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var k=(t,e,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,s=N.parent(t,r),a=r[r.length-1];if(a>s.children.length)throw Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(s.children.splice(a,0,o),e)for(var[u,l]of A.points(e))e[l]=z.transform(u,n);break;case"insert_text":var{path:c,offset:h,text:f}=n;if(0===f.length)break;var p=N.leaf(t,c),d=p.text.slice(0,h),m=p.text.slice(h);if(p.text=d+f+m,e)for(var[g,y]of A.points(e))e[y]=z.transform(g,n);break;case"merge_node":var{path:O}=n,w=N.get(t,O),x=b.previous(O),k=N.get(t,x),S=N.parent(t,O),E=O[O.length-1];if(J.isText(w)&&J.isText(k))k.text+=w.text;else if(J.isText(w)||J.isText(k))throw Error('Cannot apply a "merge_node" operation at path ['.concat(O,"] to nodes of different interfaces: ").concat(U.stringify(w)," ").concat(U.stringify(k)));else k.children.push(...w.children);if(S.children.splice(E,1),e)for(var[C,T]of A.points(e))e[T]=z.transform(C,n);break;case"move_node":var{path:M,newPath:P}=n;if(b.isAncestor(M,P))throw Error("Cannot move a path [".concat(M,"] to new path [").concat(P,"] because the destination is inside itself."));var B=N.get(t,M),I=N.parent(t,M),F=M[M.length-1];I.children.splice(F,1);var L=b.transform(M,n),_=N.get(t,b.parent(L)),X=L[L.length-1];if(_.children.splice(X,0,B),e)for(var[R,j]of A.points(e))e[j]=z.transform(R,n);break;case"remove_node":var{path:$}=n,V=$[$.length-1];if(N.parent(t,$).children.splice(V,1),e)for(var[H,W]of A.points(e)){var q=z.transform(H,n);if(null!=e&&null!=q)e[W]=q;else{var Y=void 0,G=void 0;for(var[Q,K]of N.texts(t))if(-1===b.compare(K,$))Y=[Q,K];else{G=[Q,K];break}var Z=!1;Y&&G&&(Z=b.equals(G[1],$)?!b.hasPrevious(G[1]):b.common(Y[1],$).length<b.common(G[1],$).length),Y&&!Z?(H.path=Y[1],H.offset=Y[0].text.length):G?(H.path=G[1],H.offset=0):e=null}}break;case"remove_text":var{path:tt,offset:te,text:tn}=n;if(0===tn.length)break;var tr=N.leaf(t,tt),ti=tr.text.slice(0,te),to=tr.text.slice(te+tn.length);if(tr.text=ti+to,e)for(var[ts,ta]of A.points(e))e[ta]=z.transform(ts,n);break;case"set_node":var{path:tu,properties:tl,newProperties:tc}=n;if(0===tu.length)throw Error("Cannot set properties on the root node!");var th=N.get(t,tu);for(var tf in tc){if("children"===tf||"text"===tf)throw Error('Cannot set the "'.concat(tf,'" property of nodes!'));var tp=tc[tf];null==tp?delete th[tf]:th[tf]=tp}for(var td in tl)!tc.hasOwnProperty(td)&&delete th[td];break;case"set_selection":var{newProperties:tm}=n;if(null==tm)e=tm;else{if(null==e){if(!A.isRange(tm))throw Error('Cannot apply an incomplete "set_selection" operation properties '.concat(U.stringify(tm)," when there is no current selection."));e=D({},tm)}for(var tg in tm){var ty=tm[tg];if(null==ty){if("anchor"===tg||"focus"===tg)throw Error('Cannot remove the "'.concat(tg,'" selection property'));delete e[tg]}else e[tg]=ty}}break;case"split_node":var tv,{path:tb,position:tO,properties:tw}=n;if(0===tb.length)throw Error('Cannot apply a "split_node" operation at path ['.concat(tb,"] because the root node cannot be split."));var tx=N.get(t,tb),tD=N.parent(t,tb),tk=tb[tb.length-1];if(J.isText(tx)){var tS=tx.text.slice(0,tO),tE=tx.text.slice(tO);tx.text=tS,tv=D(D({},tw),{},{text:tE})}else{var tC=tx.children.slice(0,tO),tT=tx.children.slice(tO);tx.children=tC,tv=D(D({},tw),{},{children:tT})}if(tD.children.splice(tk+1,0,tv),e)for(var[tA,tM]of A.points(e))e[tM]=z.transform(tA,n)}return e},S=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if((0,s.P)(r)&&(0,s.P)(o)){if(!S(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==o[a])return!1}else if(r!==o)return!1}for(var u in e)if(void 0===t[u]&&void 0!==e[u])return!1;return!0};function E(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],!(e.indexOf(n)>=0)&&(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++){if(n=s[r],!(e.indexOf(n)>=0))Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}}return o}var C=["anchor","focus"];function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var A={edges(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return A.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=A.edges(t);return e},equals:(t,e)=>z.equals(t.anchor,e.anchor)&&z.equals(t.focus,e.focus),includes(t,e){if(A.isRange(e)){if(A.includes(t,e.anchor)||A.includes(t,e.focus))return!0;var[n,r]=A.edges(t),[o,s]=A.edges(e);return z.isBefore(n,o)&&z.isAfter(r,s)}var[a,u]=A.edges(t),l=!1,c=!1;return z.isPoint(e)?(l=z.compare(e,a)>=0,c=0>=z.compare(e,u)):(l=b.compare(e,a.path)>=0,c=0>=b.compare(e,u.path)),l&&c},intersection(t,e){var n=E(t,C),[r,o]=A.edges(t),[s,a]=A.edges(e),u=z.isBefore(r,s)?s:r,l=z.isBefore(o,a)?o:a;return z.isBefore(l,u)?null:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({anchor:u,focus:l},n)},isBackward(t){var{anchor:e,focus:n}=t;return z.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return z.equals(e,n)},isExpanded:t=>!A.isCollapsed(t),isForward:t=>!A.isBackward(t),isRange:t=>(0,s.P)(t)&&z.isPoint(t.anchor)&&z.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=A.edges(t);return e},transform(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,a.Uy)(t,t=>{if(null===t)return null;var r,o,{affinity:s="inward"}=n;if("inward"===s){var a=A.isCollapsed(t);A.isForward(t)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===s?A.isForward(t)?(r="backward",o="forward"):(r="forward",o="backward"):(r=s,o=s);var u=z.transform(t.anchor,e,{affinity:r}),l=z.transform(t.focus,e,{affinity:o});if(!u||!l)return null;t.anchor=u,t.focus=l})}},M=t=>(0,s.P)(t)&&N.isNodeList(t.children)&&!$.isEditor(t),P={isAncestor:t=>(0,s.P)(t)&&N.isNodeList(t.children),isElement:M,isElementList:t=>Array.isArray(t)&&t.every(t=>P.isElement(t)),isElementProps:t=>void 0!==t.children,isElementType:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return M(t)&&t[n]===e},matches(t,e){for(var n in e){if("children"!==n){if(t[n]!==e[n])return!1}}return!0}},B=["children"],I=["text"],F=new WeakMap,N={ancestor(t,e){var n=N.get(t,e);if(J.isText(n))throw Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(U.stringify(n)));return n},ancestors(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of b.ancestors(e,n)){var o=[N.ancestor(t,r),r];yield o}}()},child(t,e){if(J.isText(t))throw Error("Cannot get the child of a text node: ".concat(U.stringify(t)));var n=t.children[e];if(null==n)throw Error("Cannot get child at index `".concat(e,"` in node: ").concat(U.stringify(t)));return n},children(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=N.ancestor(t,e),{children:s}=o,a=r?s.length-1:0;r?a>=0:a<s.length;){var u=N.child(o,a),l=e.concat(a);yield[u,l],a=r?a-1:a+1}}()},common(t,e,n){var r=b.common(e,n);return[N.get(t,r),r]},descendant(t,e){var n=N.get(t,e);if($.isEditor(n))throw Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(U.stringify(n)));return n},descendants(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of N.nodes(t,e))0!==r.length&&(yield[n,r])}()},elements(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of N.nodes(t,e))P.isElement(n)&&(yield[n,r])}()},extractProps(t){if(P.isAncestor(t)){var e=E(t,B);return e}var e=E(t,I);return e},first(t,e){for(var n=e.slice(),r=N.get(t,n);r&&!J.isText(r)&&0!==r.children.length;){;r=r.children[0],n.push(0)}return[r,n]},fragment(t,e){if(J.isText(t))throw Error("Cannot get a fragment starting from a root text node: ".concat(U.stringify(t)));return(0,a.Uy)({children:t.children},t=>{var[n,r]=A.edges(e);for(var[,o]of N.nodes(t,{reverse:!0,pass:t=>{var[,n]=t;return!A.includes(e,n)}})){if(!A.includes(e,o)){var s=N.parent(t,o),a=o[o.length-1];s.children.splice(a,1)}if(b.equals(o,r.path)){var u=N.leaf(t,o);u.text=u.text.slice(0,r.offset)}if(b.equals(o,n.path)){var l=N.leaf(t,o);l.text=l.text.slice(n.offset)}}$.isEditor(t)&&(t.selection=null)}).children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(J.isText(n)||!n.children[o])throw Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(U.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(J.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>J.isText(t)||P.isElement(t)||$.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=F.get(t);if(void 0!==e)return e;var n=t.every(t=>N.isNode(t));return F.set(t,n),n},last(t,e){for(var n=e.slice(),r=N.get(t,n);r&&!J.isText(r)&&0!==r.children.length;){;var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=N.get(t,e);if(!J.isText(n))throw Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(U.stringify(n)));return n},levels(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of b.levels(e,n)){var o=N.get(t,r);yield[o,r]}}()},matches:(t,e)=>P.isElement(t)&&P.isElementProps(e)&&P.matches(t,e)||J.isText(t)&&J.isTextProps(e)&&J.matches(t,e),nodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=e,{from:o=[],to:s}=e,a=new Set,u=[],l=t;!(s&&(r?b.isBefore(u,s):b.isAfter(u,s)));){;if(!a.has(l)&&(yield[l,u]),!a.has(l)&&!J.isText(l)&&0!==l.children.length&&(null==n||!1===n([l,u]))){a.add(l);var c=r?l.children.length-1:0;b.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),l=N.get(t,u);continue}if(0===u.length)break;if(!r){var h=b.next(u);if(N.has(t,h)){u=h,l=N.get(t,u);continue}}if(r&&0!==u[u.length-1]){u=b.previous(u),l=N.get(t,u);continue}u=b.parent(u),l=N.get(t,u),a.add(l)}}()},parent(t,e){var n=b.parent(e),r=N.get(t,n);if(J.isText(r))throw Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>J.isText(t)?t.text:t.children.map(N.string).join(""),texts(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of N.nodes(t,e))J.isText(n)&&(yield[n,r])}()}};function L(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var X={isNodeOperation:t=>X.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!(0,s.P)(t))return!1;switch(t.type){case"insert_node":case"remove_node":return b.isPath(t.path)&&N.isNode(t.node);case"insert_text":case"remove_text":return"number"==typeof t.offset&&"string"==typeof t.text&&b.isPath(t.path);case"merge_node":return"number"==typeof t.position&&b.isPath(t.path)&&(0,s.P)(t.properties);case"move_node":return b.isPath(t.path)&&b.isPath(t.newPath);case"set_node":return b.isPath(t.path)&&(0,s.P)(t.properties)&&(0,s.P)(t.newProperties);case"set_selection":return null===t.properties&&A.isRange(t.newProperties)||null===t.newProperties&&A.isRange(t.properties)||(0,s.P)(t.properties)&&(0,s.P)(t.newProperties);case"split_node":return b.isPath(t.path)&&"number"==typeof t.position&&(0,s.P)(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(t=>X.isOperation(t)),isSelectionOperation:t=>X.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>X.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return _(_({},t),{},{type:"remove_node"});case"insert_text":return _(_({},t),{},{type:"remove_text"});case"merge_node":return _(_({},t),{},{type:"split_node",path:b.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(b.equals(e,n))return t;if(b.isSibling(n,e))return _(_({},t),{},{path:e,newPath:n});var r=b.transform(n,t),o=b.transform(b.next(n),t);return _(_({},t),{},{path:r,newPath:o});case"remove_node":return _(_({},t),{},{type:"insert_node"});case"remove_text":return _(_({},t),{},{type:"insert_text"});case"set_node":var{properties:s,newProperties:a}=t;return _(_({},t),{},{properties:a,newProperties:s});case"set_selection":var{properties:u,newProperties:l}=t;if(null==u)return _(_({},t),{},{properties:l,newProperties:null});if(null==l)return _(_({},t),{},{properties:null,newProperties:u});else return _(_({},t),{},{properties:l,newProperties:u});case"split_node":return _(_({},t),{},{type:"merge_node",path:b.next(t.path)})}}},R=new WeakMap,j=t=>{var e=R.get(t);if(void 0!==e)return e;if(!(0,s.P)(t))return!1;var n="function"==typeof t.addMark&&"function"==typeof t.apply&&"function"==typeof t.deleteFragment&&"function"==typeof t.insertBreak&&"function"==typeof t.insertSoftBreak&&"function"==typeof t.insertFragment&&"function"==typeof t.insertNode&&"function"==typeof t.insertText&&"function"==typeof t.isElementReadOnly&&"function"==typeof t.isInline&&"function"==typeof t.isSelectable&&"function"==typeof t.isVoid&&"function"==typeof t.normalizeNode&&"function"==typeof t.onChange&&"function"==typeof t.removeMark&&"function"==typeof t.getDirtyPaths&&(null===t.marks||(0,s.P)(t.marks))&&(null===t.selection||A.isRange(t.selection))&&N.isNodeList(t.children)&&X.isOperationList(t.operations);return R.set(t,n),n},$={above:(t,e)=>t.above(e),addMark(t,e,n){t.addMark(e,n)},after:(t,e,n)=>t.after(e,n),before:(t,e,n)=>t.before(e,n),deleteBackward(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t,e){t.deleteFragment(e)},edges:(t,e)=>t.edges(e),elementReadOnly(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.elementReadOnly(e)},end:(t,e)=>t.end(e),first:(t,e)=>t.first(e),fragment:(t,e)=>t.fragment(e),hasBlocks:(t,e)=>t.hasBlocks(e),hasInlines:(t,e)=>t.hasInlines(e),hasPath:(t,e)=>t.hasPath(e),hasTexts:(t,e)=>t.hasTexts(e),insertBreak(t){t.insertBreak()},insertFragment(t,e,n){t.insertFragment(e,n)},insertNode(t,e){t.insertNode(e)},insertSoftBreak(t){t.insertSoftBreak()},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>t.isBlock(e),isEdge:(t,e,n)=>t.isEdge(e,n),isEditor:t=>j(t),isElementReadOnly:(t,e)=>t.isElementReadOnly(e),isEmpty:(t,e)=>t.isEmpty(e),isEnd:(t,e,n)=>t.isEnd(e,n),isInline:(t,e)=>t.isInline(e),isNormalizing:t=>t.isNormalizing(),isSelectable:(t,e)=>t.isSelectable(e),isStart:(t,e,n)=>t.isStart(e,n),isVoid:(t,e)=>t.isVoid(e),last:(t,e)=>t.last(e),leaf:(t,e,n)=>t.leaf(e,n),levels:(t,e)=>t.levels(e),marks:t=>t.getMarks(),next:(t,e)=>t.next(e),node:(t,e,n)=>t.node(e,n),nodes:(t,e)=>t.nodes(e),normalize(t,e){t.normalize(e)},parent:(t,e,n)=>t.parent(e,n),path:(t,e,n)=>t.path(e,n),pathRef:(t,e,n)=>t.pathRef(e,n),pathRefs:t=>t.pathRefs(),point:(t,e,n)=>t.point(e,n),pointRef:(t,e,n)=>t.pointRef(e,n),pointRefs:t=>t.pointRefs(),positions:(t,e)=>t.positions(e),previous:(t,e)=>t.previous(e),range:(t,e,n)=>t.range(e,n),rangeRef:(t,e,n)=>t.rangeRef(e,n),rangeRefs:t=>t.rangeRefs(),removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){t.setNormalizing(e)},start:(t,e)=>t.start(e),string:(t,e,n)=>t.string(e,n),unhangRange:(t,e,n)=>t.unhangRange(e,n),void:(t,e)=>t.void(e),withoutNormalizing(t,e){t.withoutNormalizing(e)}},V=t=>Array.isArray(t)&&2===t.length&&t.every(b.isPath);function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var z={compare(t,e){var n=b.compare(t.path,e.path);if(0===n)return t.offset<e.offset?-1:t.offset>e.offset?1:0;return n},isAfter:(t,e)=>1===z.compare(t,e),isBefore:(t,e)=>-1===z.compare(t,e),equals:(t,e)=>t.offset===e.offset&&b.equals(t.path,e.path),isPoint:t=>(0,s.P)(t)&&"number"==typeof t.offset&&b.isPath(t.path),transform(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,a.Uy)(t,t=>{if(null===t)return null;var{affinity:r="forward"}=n,{path:o,offset:s}=t;switch(e.type){case"insert_node":case"move_node":t.path=b.transform(o,e,n);break;case"insert_text":b.equals(e.path,o)&&(e.offset<s||e.offset===s&&"forward"===r)&&(t.offset+=e.text.length);break;case"merge_node":b.equals(e.path,o)&&(t.offset+=e.position),t.path=b.transform(o,e,n);break;case"remove_text":b.equals(e.path,o)&&e.offset<=s&&(t.offset-=Math.min(s-e.offset,e.text.length));break;case"remove_node":if(b.equals(e.path,o)||b.isAncestor(e.path,o))return null;t.path=b.transform(o,e,n);break;case"split_node":if(b.equals(e.path,o)){if(e.position===s&&null==r)return null;(e.position<s||e.position===s&&"forward"===r)&&(t.offset-=e.position,t.path=b.transform(o,e,W(W({},n),{},{affinity:"forward"})))}else t.path=b.transform(o,e,n)}})}},q=void 0,U={setScrubber(t){q=t},stringify:t=>JSON.stringify(t,q)},Y=["text"],G=["anchor","focus"];function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var J={equals(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(t){return E(t,Y)}return S(r?E(t,Y):t,r?E(e,Y):e)},isText:t=>(0,s.P)(t)&&"string"==typeof t.text,isTextList:t=>Array.isArray(t)&&t.every(t=>J.isText(t)),isTextProps:t=>void 0!==t.text,matches(t,e){for(var n in e){if("text"!==n){if(!t.hasOwnProperty(n)||t[n]!==e[n])return!1}}return!0},decorations(t,e){var n=[K({},t)];for(var r of e){var o=E(r,G),[s,a]=A.edges(r),u=[],l=0,c=s.offset,h=a.offset;for(var f of n){var{length:p}=f.text,d=l;if(l+=p,c<=d&&l<=h){Object.assign(f,o),u.push(f);continue}if(c!==h&&(c===l||h===d)||c>l||h<d||h===d&&0!==d){u.push(f);continue}var m=f,g=void 0,y=void 0;if(h<l){var b=h-d;y=K(K({},m),{},{text:m.text.slice(b)}),m=K(K({},m),{},{text:m.text.slice(0,b)})}if(c>d){var O=c-d;g=K(K({},m),{},{text:m.text.slice(0,O)}),m=K(K({},m),{},{text:m.text.slice(O)})}Object.assign(m,o),g&&u.push(g),u.push(m),y&&u.push(y)}n=u}return n}},Z=t=>t.selection?t.selection:t.children.length>0?$.end(t,[]):[0],tt=(t,e)=>{var[n]=$.node(t,e);return t=>t===n},te=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!e,r=e?tu(t):t,s=o.None,a=o.None,u=0,l=null,c=null;for(var h of r){var f=h.codePointAt(0);if(!f)break;var p=tO(h,f);if([s,a]=n?[a,p]:[p,s],function(t,e){return(t&e)!=0}(s,o.ZWJ)&&function(t,e){return(t&e)!=0}(a,o.ExtPict)&&!(l=n?tk(t.substring(0,u)):tk(t.substring(0,t.length-u)))||function(t,e){return(t&e)!=0}(s,o.RI)&&function(t,e){return(t&e)!=0}(a,o.RI)&&!(c=null!==c?!c:!!n||tE(t.substring(0,t.length-u)))||s!==o.None&&a!==o.None&&function(t,e){return -1===tx.findIndex(n=>(t&n[0])!=0&&(e&n[1])!=0)}(s,a))break;u+=h.length}return u||1},tn=/\s/,tr=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ti=/['\u2018\u2019]/,to=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;t.length>0;){var o=te(t,e),[s,a]=ts(t,o,e);if(ta(s,a,e))r=!0,n+=o;else if(r)break;else n+=o;t=a}return n},ts=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},ta=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(tn.test(e))return!1;if(ti.test(e)){var o=te(n,r),[s,a]=ts(n,o,r);if(t(s,a,r))return!0}return!tr.test(e)&&!0},tu=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(tc(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(tl(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},tl=t=>t>=55296&&t<=56319,tc=t=>t>=56320&&t<=57343;(r=o||(o={}))[r.None=0]="None",r[r.Extend=1]="Extend",r[r.ZWJ=2]="ZWJ",r[r.RI=4]="RI",r[r.Prepend=8]="Prepend",r[r.SpacingMark=16]="SpacingMark",r[r.L=32]="L",r[r.V=64]="V",r[r.T=128]="T",r[r.LV=256]="LV",r[r.LVT=512]="LVT",r[r.ExtPict=1024]="ExtPict",r[r.Any=2048]="Any";var th=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,tf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,tp=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,td=/^[\u1100-\u115F\uA960-\uA97C]$/,tm=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,tg=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ty=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,tv=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,tb=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,tO=(t,e)=>{var n=o.Any;return -1!==t.search(th)&&(n|=o.Extend),8205===e&&(n|=o.ZWJ),e>=127462&&e<=127487&&(n|=o.RI),-1!==t.search(tf)&&(n|=o.Prepend),-1!==t.search(tp)&&(n|=o.SpacingMark),-1!==t.search(td)&&(n|=o.L),-1!==t.search(tm)&&(n|=o.V),-1!==t.search(tg)&&(n|=o.T),-1!==t.search(ty)&&(n|=o.LV),-1!==t.search(tv)&&(n|=o.LVT),-1!==t.search(tb)&&(n|=o.ExtPict),n};function tw(t,e){return(t&e)!=0}var tx=[[o.L,o.L|o.V|o.LV|o.LVT],[o.LV|o.V,o.V|o.T],[o.LVT|o.T,o.T],[o.Any,o.Extend|o.ZWJ],[o.Any,o.SpacingMark],[o.Prepend,o.Any],[o.ZWJ,o.ExtPict],[o.RI,o.RI]],tD=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,tk=t=>-1!==t.search(tD),tS=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,tE=t=>{var e=t.match(tS);return null!==e&&e[0].length/2%2==1};function tC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tC(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tC(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tA=tT(tT(tT(tT({},{transform(t,e){t.children=(0,a.P2)(t.children);var n=t.selection&&(0,a.P2)(t.selection);try{n=k(t,n,e)}finally{t.children=(0,a._x)(t.children),n?t.selection=(0,a.mv)(n)?(0,a._x)(n):n:t.selection=null}}}),{insertNodes(t,e,n){t.insertNodes(e,n)},liftNodes(t,e){t.liftNodes(e)},mergeNodes(t,e){t.mergeNodes(e)},moveNodes(t,e){t.moveNodes(e)},removeNodes(t,e){t.removeNodes(e)},setNodes(t,e,n){t.setNodes(e,n)},splitNodes(t,e){t.splitNodes(e)},unsetNodes(t,e,n){t.unsetNodes(e,n)},unwrapNodes(t,e){t.unwrapNodes(e)},wrapNodes(t,e,n){t.wrapNodes(e,n)}}),{collapse(t,e){t.collapse(e)},deselect(t){t.deselect()},move(t,e){t.move(e)},select(t,e){t.select(e)},setPoint(t,e,n){t.setPoint(e,n)},setSelection(t,e){t.setSelection(e)}}),{delete(t,e){t.delete(e)},insertFragment(t,e,n){t.insertFragment(e,n)},insertText(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=Z(t)}=n;if(b.isPath(o)&&(o=$.range(t,o)),A.isRange(o)){if(A.isCollapsed(o))o=o.anchor;else{var s=A.end(o);if(!r&&$.void(t,{at:s}))return;var a=A.start(o),u=$.pointRef(t,a),l=$.pointRef(t,s);tA.delete(t,{at:o,voids:r});var c=u.unref(),h=l.unref();o=c||h,tA.setSelection(t,{anchor:o,focus:o})}}if(!(!r&&$.void(t,{at:o})||$.elementReadOnly(t,{at:o}))){var{path:f,offset:p}=o;e.length>0&&t.apply({type:"insert_text",path:f,offset:p,text:e})}})}}),tM=(t,e)=>{for(var n of $.pathRefs(t))u.transform(n,e);for(var r of $.pointRefs(t))l.transform(r,e);for(var o of $.rangeRefs(t))c.transform(o,e);var s,a,d=h.get(t)||[],m=f.get(t)||new Set,g=t=>{if(t){var e=t.join(",");!a.has(e)&&(a.add(e),s.push(t))}};if(b.operationCanTransformPath(e))for(var y of(s=[],a=new Set,d))g(b.transform(y,e));else s=d,a=m;for(var O of t.getDirtyPaths(e))g(O);h.set(t,s),f.set(t,a),tA.transform(t,e),t.operations.push(e),$.normalize(t,{operation:e}),"set_selection"===e.type&&(t.marks=null),!p.get(t)&&(p.set(t,!0),Promise.resolve().then(()=>{p.set(t,!1),t.onChange({operation:e}),t.operations=[]}))},tP=(t,e)=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:n}=e;return b.levels(n);case"insert_node":var{node:r,path:o}=e;return[...b.levels(o),...J.isText(r)?[]:Array.from(N.nodes(r),t=>{var[,e]=t;return o.concat(e)})];case"merge_node":var{path:s}=e;return[...b.ancestors(s),b.previous(s)];case"move_node":var{path:a,newPath:u}=e;if(b.equals(a,u))return[];var l=[],c=[];for(var h of b.ancestors(a)){var f=b.transform(h,e);l.push(f)}for(var p of b.ancestors(u)){var d=b.transform(p,e);c.push(d)}var m=c[c.length-1],g=u[u.length-1];return[...l,...c,m.concat(g)];case"remove_node":var{path:y}=e;return[...b.ancestors(y)];case"split_node":var{path:O}=e;return[...b.levels(O),b.next(O)];default:return[]}},tB=t=>{var{selection:e}=t;return e?N.fragment(t,e):[]},tI=(t,e)=>{var[n,r]=e;if(!J.isText(n)){if(P.isElement(n)&&0===n.children.length){tA.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});return}for(var o=!$.isEditor(n)&&P.isElement(n)&&(t.isInline(n)||0===n.children.length||J.isText(n.children[0])||t.isInline(n.children[0])),s=0,a=0;a<n.children.length;a++,s++){var u=N.get(t,r);if(!J.isText(u)){var l=u.children[s],c=u.children[s-1],h=a===n.children.length-1;if((J.isText(l)||P.isElement(l)&&t.isInline(l))!==o)tA.removeNodes(t,{at:r.concat(s),voids:!0}),s--;else if(P.isElement(l)){if(t.isInline(l)){if(null!=c&&J.isText(c)){if(h){var f={text:""};tA.insertNodes(t,f,{at:r.concat(s+1),voids:!0}),s++}}else{var p={text:""};tA.insertNodes(t,p,{at:r.concat(s),voids:!0}),s++}}}else null!=c&&J.isText(c)&&(J.equals(l,c,{loose:!0})?(tA.mergeNodes(t,{at:r.concat(s),voids:!0}),s--):""===c.text?(tA.removeNodes(t,{at:r.concat(s-1),voids:!0}),s--):""===l.text&&(tA.removeNodes(t,{at:r.concat(s),voids:!0}),s--))}}}},tF=(t,e)=>{var{iteration:n,initialDirtyPathsLength:r}=e,o=42*r;if(n>o)throw Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},tN=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:s}=e;if(!!o){var a=$.path(t,o);for(var[u,l]of $.levels(t,{at:a,voids:n,match:s,reverse:"lowest"===r}))if(!J.isText(u)){if(A.isRange(o)){if(b.isAncestor(l,o.anchor.path)&&b.isAncestor(l,o.focus.path))return[u,l]}else if(!b.equals(a,l))return[u,l]}}};function tL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function t_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tL(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tL(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tX=(t,e,n)=>{var{selection:r}=t;if(r){var o=(e,n)=>{if(!J.isText(e))return!1;var[r,o]=$.parent(t,n);return!t.isVoid(r)||t.markableVoid(r)},s=A.isExpanded(r),a=!1;if(!s){var[u,l]=$.node(t,r);if(u&&o(u,l)){var[c]=$.parent(t,l);a=c&&t.markableVoid(c)}}if(s||a)tA.setNodes(t,{[e]:n},{match:o,split:!0,voids:!0});else{var h=t_(t_({},$.marks(t)||{}),{},{[e]:n});t.marks=h,!p.get(t)&&t.onChange()}}};function tR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tR(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tR(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var t$=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=$.point(t,e,{edge:"end"}),s=$.end(t,[]),{distance:a=1}=r,u=0;for(var l of $.positions(t,tj(tj({},r),{},{at:{anchor:o,focus:s}}))){if(u>a)break;0!==u&&(n=l),u++}return n};function tV(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tH(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tV(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tV(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tW=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=$.start(t,[]),s=$.point(t,e,{edge:"start"}),{distance:a=1}=r,u=0;for(var l of $.positions(t,tH(tH({},r),{},{at:{anchor:o,focus:s},reverse:!0}))){if(u>a)break;0!==u&&(n=l),u++}return n},tz=(t,e)=>{var{selection:n}=t;n&&A.isCollapsed(n)&&tA.delete(t,{unit:e,reverse:!0})},tq=(t,e)=>{var{selection:n}=t;n&&A.isCollapsed(n)&&tA.delete(t,{unit:e})},tU=function(t){var{direction:e="forward"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=t;n&&A.isExpanded(n)&&tA.delete(t,{reverse:"backward"===e})},tY=(t,e)=>[$.start(t,e),$.end(t,e)];function tG(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tQ(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tG(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tG(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tK=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $.above(t,tQ(tQ({},e),{},{match:e=>P.isElement(e)&&$.isElementReadOnly(t,e)}))},tJ=(t,e)=>$.point(t,e,{edge:"end"}),tZ=(t,e)=>{var n=$.path(t,e,{edge:"start"});return $.node(t,n)},t0=(t,e)=>{var n=$.range(t,e);return N.fragment(t,n)};function t1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function t2(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?t1(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t1(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var t3=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $.above(t,t2(t2({},e),{},{match:e=>P.isElement(e)&&$.isVoid(t,e)}))},t5=(t,e)=>e.children.some(e=>P.isElement(e)&&$.isBlock(t,e)),t4=(t,e)=>e.children.some(e=>J.isText(e)||$.isInline(t,e)),t9=(t,e)=>N.has(t,e),t8=(t,e)=>e.children.every(t=>J.isText(t)),t6=t=>{tA.splitNodes(t,{always:!0})},t7=(t,e,n)=>{tA.insertNodes(t,e,n)},et=t=>{tA.splitNodes(t,{always:!0})};function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var en=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r,marks:o}=t;if(r){if(o){var s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({text:e},o);tA.insertNodes(t,s,{at:n.at,voids:n.voids})}else tA.insertText(t,e,n);t.marks=null}},er=(t,e)=>!t.isInline(e),ei=(t,e,n)=>$.isStart(t,e,n)||$.isEnd(t,e,n),eo=(t,e)=>{var{children:n}=e,[r]=n;return 0===n.length||1===n.length&&J.isText(r)&&""===r.text&&!t.isVoid(e)},es=(t,e,n)=>{var r=$.end(t,n);return z.equals(e,r)},ea=t=>{var e=d.get(t);return void 0===e||e},eu=(t,e,n)=>{if(0!==e.offset)return!1;var r=$.start(t,n);return z.equals(e,r)},el=(t,e)=>{var n=$.path(t,e,{edge:"end"});return $.node(t,n)},ec=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$.path(t,e,n);return[N.leaf(t,r),r]},eh=["text"],ef=["text"],ep=function(t){var{marks:e,selection:n}=t;if(!n)return null;var{anchor:r,focus:o}=n;if(e)return e;if(A.isExpanded(n)){if($.isEnd(t,r,r.path)){var s=$.after(t,r);s&&(r=s)}var[a]=$.nodes(t,{match:J.isText,at:{anchor:r,focus:o}});if(!a)return{};var[u]=a;return E(u,eh)}var{path:l}=r,[c]=$.leaf(t,l);if(0===r.offset){var h=$.previous(t,{at:l,match:J.isText});if(!$.above(t,{match:e=>P.isElement(e)&&$.isVoid(t,e)&&t.markableVoid(e)})){var f=$.above(t,{match:e=>P.isElement(e)&&$.isBlock(t,e)});if(h&&f){var[p,d]=h,[,m]=f;b.isAncestor(m,d)&&(c=p)}}}return E(c,ef)},ed=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:s=t.selection}=e;if(!!s){var a=$.after(t,s,{voids:r});if(a){var[,u]=$.last(t,[]),l=[a.path,u];if(b.isPath(s)&&0===s.length)throw Error("Cannot get the next node from the root node!");if(null==o){if(b.isPath(s)){var[c]=$.parent(t,s);o=t=>c.children.includes(t)}else o=()=>!0}var[h]=$.nodes(t,{at:l,match:o,mode:n,voids:r});return h}}},em=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$.path(t,e,n);return[N.get(t,r),r]},eg=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1,operation:r}=e,o=t=>h.get(t)||[],s=t=>f.get(t)||new Set,a=t=>{var e=o(t).pop(),n=e.join(",");return s(t).delete(n),e};if(!$.isNormalizing(t))return;if(n){var u=Array.from(N.nodes(t),t=>{var[,e]=t;return e}),l=new Set(u.map(t=>t.join(",")));h.set(t,u),f.set(t,l)}if(0!==o(t).length)$.withoutNormalizing(t,()=>{for(var e of o(t))if(N.has(t,e)){var n=$.node(t,e),[s,u]=n;P.isElement(s)&&0===s.children.length&&t.normalizeNode(n,{operation:r})}for(var l=o(t),c=l.length,h=0;0!==l.length;){if(!t.shouldNormalize({dirtyPaths:l,iteration:h,initialDirtyPathsLength:c,operation:r}))return;var f=a(t);if(N.has(t,f)){var p=$.node(t,f);t.normalizeNode(p,{operation:r})}h++,l=o(t)}})},ey=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$.path(t,e,n),o=b.parent(r);return $.node(t,o)},ev=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:e}=o;return $.pathRefs(t).delete(o),o.current=null,e}};return $.pathRefs(t).add(o),o},eb=t=>{var e=m.get(t);return!e&&(e=new Set,m.set(t,e)),e},eO=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(b.isPath(e)){if("start"===o){var[,s]=N.first(t,e);e=s}else if("end"===o){var[,a]=N.last(t,e);e=a}}return A.isRange(e)&&(e="start"===o?A.start(e):"end"===o?A.end(e):b.common(e.anchor.path,e.focus.path)),z.isPoint(e)&&(e=e.path),null!=r&&(e=e.slice(0,r)),e},ew=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:e}=o;return $.pointRefs(t).delete(o),o.current=null,e}};return $.pointRefs(t).add(o),o},ex=t=>{var e=g.get(t);return!e&&(e=new Set,g.set(t,e)),e},eD=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(b.isPath(e)){if("end"===r){var o,[,s]=N.last(t,e);o=s}else{var[,a]=N.first(t,e);o=a}var u=N.get(t,o);if(!J.isText(u))throw Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(A.isRange(e)){var[l,c]=A.edges(e);return"start"===r?l:c}return e},ek=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:s=t.selection}=e;if(!s)return;var a=$.before(t,s,{voids:r});if(!!a){var[,u]=$.first(t,[]),l=[a.path,u];if(b.isPath(s)&&0===s.length)throw Error("Cannot get the previous node from the root node!");if(null==o){if(b.isPath(s)){var[c]=$.parent(t,s);o=t=>c.children.includes(t)}else o=()=>!0}var[h]=$.nodes(t,{reverse:!0,at:l,match:o,mode:n,voids:r});return h}},eS=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:e}=o;return $.rangeRefs(t).delete(o),o.current=null,e}};return $.rangeRefs(t).add(o),o},eE=t=>{var e=y.get(t);return!e&&(e=new Set,y.set(t,e)),e},eC=(t,e,n)=>A.isRange(e)&&!n?e:{anchor:$.start(t,e),focus:$.end(t,n||e)};function eT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var eA=(t,e)=>{var{selection:n}=t;if(n){var r=(e,n)=>{if(!J.isText(e))return!1;var[r,o]=$.parent(t,n);return!t.isVoid(r)||t.markableVoid(r)},o=A.isExpanded(n),s=!1;if(!o){var[a,u]=$.node(t,n);if(a&&r(a,u)){var[l]=$.parent(t,u);s=l&&t.markableVoid(l)}}if(o||s)tA.unsetNodes(t,e,{match:r,split:!0,voids:!0});else{var c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eT(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eT(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},$.marks(t)||{});delete c[e],t.marks=c,!p.get(t)&&t.onChange()}}},eM=(t,e)=>{d.set(t,e)},eP=(t,e)=>$.point(t,e,{edge:"start"}),eB=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=$.range(t,e),[s,a]=A.edges(o),u="";for(var[l,c]of $.nodes(t,{at:o,match:J.isText,voids:r})){var h=l.text;b.equals(c,a.path)&&(h=h.slice(0,a.offset)),b.equals(c,s.path)&&(h=h.slice(s.offset)),u+=h}return u},eI=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,s]=A.edges(e);if(0!==o.offset||0!==s.offset||A.isCollapsed(e)||b.hasPrevious(s.path))return e;var a=$.above(t,{at:s,match:e=>P.isElement(e)&&$.isBlock(t,e),voids:r}),u=a?a[1]:[],l={anchor:$.start(t,o),focus:s},c=!0;for(var[h,f]of $.nodes(t,{at:l,match:J.isText,reverse:!0,voids:r})){if(c){c=!1;continue}if(""!==h.text||b.isBefore(f,u)){s={path:f,offset:h.text.length};break}}return{anchor:o,focus:s}},eF=(t,e)=>{var n=$.isNormalizing(t);$.setNormalizing(t,!1);try{e()}finally{$.setNormalizing(t,n)}$.normalize(t)},eN=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$.withoutNormalizing(t,()=>{var n,r,o,{reverse:s=!1,unit:a="character",distance:u=1,voids:l=!1}=e,{at:c=t.selection,hanging:h=!1}=e;if(!c)return;var f=!1;if(A.isRange(c)&&A.isCollapsed(c)&&(f=!0,c=c.anchor),z.isPoint(c)){var p=$.void(t,{at:c,mode:"highest"});if(!l&&p){var[,d]=p;c=d}else{var m={unit:a,distance:u},g=s?$.before(t,c,m)||$.start(t,[]):$.after(t,c,m)||$.end(t,[]);c={anchor:c,focus:g},h=!0}}if(b.isPath(c)){tA.removeNodes(t,{at:c,voids:l});return}if(!A.isCollapsed(c)){if(!h){var[,y]=A.edges(c),O=$.end(t,[]);!z.equals(y,O)&&(c=$.unhangRange(t,c,{voids:l}))}var[w,x]=A.edges(c),D=$.above(t,{match:e=>P.isElement(e)&&$.isBlock(t,e),at:w,voids:l}),k=$.above(t,{match:e=>P.isElement(e)&&$.isBlock(t,e),at:x,voids:l}),S=D&&k&&!b.equals(D[1],k[1]),E=b.equals(w.path,x.path),C=l?null:null!==(n=$.void(t,{at:w,mode:"highest"}))&&void 0!==n?n:$.elementReadOnly(t,{at:w,mode:"highest"}),T=l?null:null!==(r=$.void(t,{at:x,mode:"highest"}))&&void 0!==r?r:$.elementReadOnly(t,{at:x,mode:"highest"});if(C){var M=$.before(t,w);M&&D&&b.isAncestor(D[1],M.path)&&(w=M)}if(T){var B=$.after(t,x);B&&k&&b.isAncestor(k[1],B.path)&&(x=B)}var I=[];for(var F of $.nodes(t,{at:c,voids:l})){var[N,L]=F;if(!o||0!==b.compare(L,o))(!l&&P.isElement(N)&&($.isVoid(t,N)||$.isElementReadOnly(t,N))||!b.isCommon(L,w.path)&&!b.isCommon(L,x.path))&&(I.push(F),o=L)}var _=Array.from(I,e=>{var[,n]=e;return $.pathRef(t,n)}),X=$.pointRef(t,w),R=$.pointRef(t,x),j="";if(!E&&!C){var V=X.current,[H]=$.leaf(t,V),{path:W}=V,{offset:q}=w,U=H.text.slice(q);U.length>0&&(t.apply({type:"remove_text",path:W,offset:q,text:U}),j=U)}if(_.reverse().map(t=>t.unref()).filter(t=>null!==t).forEach(e=>tA.removeNodes(t,{at:e,voids:l})),!T){var Y=R.current,[G]=$.leaf(t,Y),{path:Q}=Y,K=E?w.offset:0,J=G.text.slice(K,x.offset);J.length>0&&(t.apply({type:"remove_text",path:Q,offset:K,text:J}),j=J)}!E&&S&&R.current&&X.current&&tA.mergeNodes(t,{at:R.current,hanging:!0,voids:l}),f&&s&&"character"===a&&j.length>1&&j.match(/[\u0E00-\u0E7F]+/)&&tA.insertText(t,j.slice(0,j.length-u));var Z=X.unref(),tt=R.unref(),te=s?Z||tt:tt||Z;null==e.at&&te&&tA.select(t,te)}})},eL=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$.withoutNormalizing(t,()=>{var r,{hanging:o=!1,voids:s=!1}=n,{at:a=Z(t)}=n;if(!e.length)return;if(A.isRange(a)){if(!o&&(a=$.unhangRange(t,a,{voids:s})),A.isCollapsed(a))a=a.anchor;else{var[,u]=A.edges(a);if(!s&&$.void(t,{at:u}))return;var l=$.pointRef(t,u);tA.delete(t,{at:a}),a=l.unref()}}else b.isPath(a)&&(a=$.start(t,a));if(!(!s&&$.void(t,{at:a}))){var c=$.above(t,{at:a,match:e=>P.isElement(e)&&$.isInline(t,e),mode:"highest",voids:s});if(c){var[,h]=c;$.isEnd(t,a,h)?a=$.after(t,h):$.isStart(t,a,h)&&(a=$.before(t,h))}var[,f]=$.above(t,{match:e=>P.isElement(e)&&$.isBlock(t,e),at:a,voids:s}),p=$.isStart(t,a,f),d=$.isEnd(t,a,f),m=p&&d,g=!p||p&&d,y=!d,[,O]=N.first({children:e},[]),[,w]=N.last({children:e},[]),x=[],D=e=>{var[n,r]=e;return 0!==r.length&&(!!m||!(g&&b.isAncestor(r,O)&&P.isElement(n)&&!t.isVoid(n)&&!t.isInline(n)||y&&b.isAncestor(r,w)&&P.isElement(n)&&!t.isVoid(n)&&!t.isInline(n))&&!0)};for(var k of N.nodes({children:e},{pass:D}))D(k)&&x.push(k);var S=[],E=[],C=[],T=!0,M=!1;for(var[B]of x)P.isElement(B)&&!t.isInline(B)?(T=!1,M=!0,E.push(B)):T?S.push(B):C.push(B);var[I]=$.nodes(t,{at:a,match:e=>J.isText(e)||$.isInline(t,e),mode:"highest",voids:s}),[,F]=I,L=$.isStart(t,a,F),_=$.isEnd(t,a,F),X=$.pathRef(t,d&&!C.length?b.next(f):f),R=$.pathRef(t,_?b.next(F):F);tA.splitNodes(t,{at:a,match:e=>M?P.isElement(e)&&$.isBlock(t,e):J.isText(e)||$.isInline(t,e),mode:M?"lowest":"highest",always:M&&(!p||S.length>0)&&(!d||C.length>0),voids:s});var j=$.pathRef(t,!L||L&&_?b.next(F):F);if(tA.insertNodes(t,S,{at:j.current,match:e=>J.isText(e)||$.isInline(t,e),mode:"highest",voids:s}),m&&!S.length&&E.length&&!C.length&&tA.delete(t,{at:f,voids:s}),tA.insertNodes(t,E,{at:X.current,match:e=>P.isElement(e)&&$.isBlock(t,e),mode:"lowest",voids:s}),tA.insertNodes(t,C,{at:R.current,match:e=>J.isText(e)||$.isInline(t,e),mode:"highest",voids:s}),!n.at&&(C.length>0&&R.current?r=b.previous(R.current):E.length>0&&X.current?r=b.previous(X.current):j.current&&(r=b.previous(j.current)),r)){var V=$.end(t,r);tA.select(t,V)}j.unref(),X.unref(),R.unref()}})},e_=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(!!r){if("anchor"===n)tA.select(t,r.anchor);else if("focus"===n)tA.select(t,r.focus);else if("start"===n){var[o]=A.edges(r);tA.select(t,o)}else if("end"===n){var[,s]=A.edges(r);tA.select(t,s)}}},eX=t=>{var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},eR=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:s=!1}=e,{edge:a=null}=e;if(!!n){"start"===a&&(a=A.isBackward(n)?"focus":"anchor"),"end"===a&&(a=A.isBackward(n)?"anchor":"focus");var{anchor:u,focus:l}=n,c={distance:r,unit:o,ignoreNonSelectable:!0},h={};if(null==a||"anchor"===a){var f=s?$.before(t,u,c):$.after(t,u,c);f&&(h.anchor=f)}if(null==a||"focus"===a){var p=s?$.before(t,l,c):$.after(t,l,c);p&&(h.focus=p)}tA.setSelection(t,h)}},ej=(t,e)=>{var{selection:n}=t;if(e=$.range(t,e),n){tA.setSelection(t,e);return}if(!A.isRange(e))throw Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(U.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})};function e$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function eV(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?e$(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var eH=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(!!r){"start"===o&&(o=A.isBackward(r)?"focus":"anchor"),"end"===o&&(o=A.isBackward(r)?"anchor":"focus");var{anchor:s,focus:a}=r,u="anchor"===o?s:a;tA.setSelection(t,{["anchor"===o?"anchor":"focus"]:eV(eV({},u),e)})}},eW=(t,e)=>{var{selection:n}=t,r={},o={};if(!!n){for(var s in e)("anchor"===s&&null!=e.anchor&&!z.equals(e.anchor,n.anchor)||"focus"===s&&null!=e.focus&&!z.equals(e.focus,n.focus)||"anchor"!==s&&"focus"!==s&&e[s]!==n[s])&&(r[s]=n[s],o[s]=e[s]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}},ez=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:s="lowest"}=n,{at:a,match:u,select:l}=n;if(N.isNode(e)&&(e=[e]),0===e.length)return;var[c]=e;if(!a&&(a=Z(t),!1!==l&&(l=!0)),null==l&&(l=!1),A.isRange(a)){if(!r&&(a=$.unhangRange(t,a,{voids:o})),A.isCollapsed(a))a=a.anchor;else{var[,h]=A.edges(a),f=$.pointRef(t,h);tA.delete(t,{at:a}),a=f.unref()}}if(z.isPoint(a)){null==u&&(u=J.isText(c)?t=>J.isText(t):t.isInline(c)?e=>J.isText(e)||$.isInline(t,e):e=>P.isElement(e)&&$.isBlock(t,e));var[p]=$.nodes(t,{at:a.path,match:u,mode:s,voids:o});if(!p)return;var[,d]=p,m=$.pathRef(t,d),g=$.isEnd(t,a,d);tA.splitNodes(t,{at:a,match:u,mode:s,voids:o});var y=m.unref();a=g?b.next(y):y}var O=b.parent(a),w=a[a.length-1];if(!(!o&&$.void(t,{at:O}))){for(var x of e){var D=O.concat(w);w++,t.apply({type:"insert_node",path:D,node:x}),a=b.next(a)}if(a=b.previous(a),l){var k=$.end(t,a);k&&tA.select(t,k)}}})},eq=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:s}=e;if(null==s&&(s=b.isPath(n)?tt(t,n):e=>P.isElement(e)&&$.isBlock(t,e)),!!n)for(var a of Array.from($.nodes(t,{at:n,match:s,mode:r,voids:o}),e=>{var[,n]=e;return $.pathRef(t,n)})){var u=a.unref();if(u.length<2)throw Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var[l,c]=$.node(t,b.parent(u)),h=u[u.length-1],{length:f}=l.children;if(1===f){var p=b.next(c);tA.moveNodes(t,{at:u,to:p,voids:o}),tA.removeNodes(t,{at:c,voids:o})}else if(0===h)tA.moveNodes(t,{at:u,to:c,voids:o});else if(h===f-1){var d=b.next(c);tA.moveNodes(t,{at:u,to:d,voids:o})}else{var m=b.next(u),g=b.next(c);tA.splitNodes(t,{at:m,voids:o}),tA.moveNodes(t,{at:u,to:g,voids:o})}}})},eU=["text"],eY=["children"],eG=(t,e)=>{if(P.isElement(e))return!!$.isVoid(t,e)||1===e.children.length&&eG(t,e.children[0]);if($.isEditor(e))return!1;return!0},eQ=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$.withoutNormalizing(t,()=>{var n,r,{match:o,at:s=t.selection}=e,{hanging:a=!1,voids:u=!1,mode:l="lowest"}=e;if(!s)return;if(null==o){if(b.isPath(s)){var[c]=$.parent(t,s);o=t=>c.children.includes(t)}else o=e=>P.isElement(e)&&$.isBlock(t,e)}if(!a&&A.isRange(s)&&(s=$.unhangRange(t,s,{voids:u})),A.isRange(s)){if(A.isCollapsed(s))s=s.anchor;else{var[,h]=A.edges(s),f=$.pointRef(t,h);tA.delete(t,{at:s}),s=f.unref(),null==e.at&&tA.select(t,s)}}var[p]=$.nodes(t,{at:s,match:o,voids:u,mode:l}),d=$.previous(t,{at:s,match:o,voids:u,mode:l});if(!p||!d)return;var[m,g]=p,[y,O]=d;if(0!==g.length&&0!==O.length){var w=b.next(O),x=b.common(g,O),D=b.isSibling(g,O),k=Array.from($.levels(t,{at:g}),t=>{var[e]=t;return e}).slice(x.length).slice(0,-1),S=$.above(t,{at:g,mode:"highest",match:e=>k.includes(e)&&eG(t,e)}),C=S&&$.pathRef(t,S[1]);if(J.isText(m)&&J.isText(y)){var T=E(m,eU);r=y.text.length,n=T}else if(P.isElement(m)&&P.isElement(y)){var T=E(m,eY);r=y.children.length,n=T}else throw Error("Cannot merge the node at path [".concat(g,"] with the previous sibling because it is not the same kind: ").concat(U.stringify(m)," ").concat(U.stringify(y)));!D&&tA.moveNodes(t,{at:g,to:w,voids:u}),C&&tA.removeNodes(t,{at:C.current,voids:u}),P.isElement(y)&&$.isEmpty(t,y)||J.isText(y)&&""===y.text&&0!==O[O.length-1]?tA.removeNodes(t,{at:O,voids:u}):t.apply({type:"merge_node",path:w,position:r,properties:n}),C&&C.unref()}})},eK=(t,e)=>{$.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:s=!1}=e,{match:a}=e;if(!!r){null==a&&(a=b.isPath(r)?tt(t,r):e=>P.isElement(e)&&$.isBlock(t,e));var u=$.pathRef(t,n);for(var l of Array.from($.nodes(t,{at:r,match:a,mode:o,voids:s}),e=>{var[,n]=e;return $.pathRef(t,n)})){var c=l.unref(),h=u.current;0!==c.length&&t.apply({type:"move_node",path:c,newPath:h}),u.current&&b.isSibling(h,c)&&b.isAfter(h,c)&&(u.current=b.next(u.current))}u.unref()}})},eJ=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:s=t.selection,match:a}=e;if(!!s)for(var u of(null==a&&(a=b.isPath(s)?tt(t,s):e=>P.isElement(e)&&$.isBlock(t,e)),!n&&A.isRange(s)&&(s=$.unhangRange(t,s,{voids:r})),Array.from($.nodes(t,{at:s,match:a,mode:o,voids:r}),e=>{var[,n]=e;return $.pathRef(t,n)}))){var l=u.unref();if(l){var[c]=$.node(t,l);t.apply({type:"remove_node",path:l,node:c})}}})},eZ=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection,compare:s,merge:a}=n,{hanging:u=!1,mode:l="lowest",split:c=!1,voids:h=!1}=n;if(!!o){if(null==r&&(r=b.isPath(o)?tt(t,o):e=>P.isElement(e)&&$.isBlock(t,e)),!u&&A.isRange(o)&&(o=$.unhangRange(t,o,{voids:h})),c&&A.isRange(o)){if(A.isCollapsed(o)&&$.leaf(t,o.anchor)[0].text.length>0)return;var f=$.rangeRef(t,o,{affinity:"inward"}),[p,d]=A.edges(o),m="lowest"===l?"lowest":"highest",g=$.isEnd(t,d,d.path);tA.splitNodes(t,{at:d,match:r,mode:m,voids:h,always:!g});var y=$.isStart(t,p,p.path);tA.splitNodes(t,{at:p,match:r,mode:m,voids:h,always:!y}),o=f.unref(),null==n.at&&tA.select(t,o)}for(var[O,w]of(!s&&(s=(t,e)=>t!==e),$.nodes(t,{at:o,match:r,mode:l,voids:h}))){var x={},D={};if(0!==w.length){var k=!1;for(var S in e){if("children"!==S&&"text"!==S)s(e[S],O[S])&&(k=!0,O.hasOwnProperty(S)&&(x[S]=O[S]),a?null!=e[S]&&(D[S]=a(O[S],e[S])):null!=e[S]&&(D[S]=e[S]))}k&&t.apply({type:"set_node",path:w,properties:x,newProperties:D})}}}})},e0=(t,e)=>{if(A.isCollapsed(e))return e.anchor;var[,n]=A.edges(e),r=$.pointRef(t,n);return tA.delete(t,{at:e}),r.unref()},e1=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$.withoutNormalizing(t,()=>{var n,r,{mode:o="lowest",voids:s=!1}=e,{match:a,at:u=t.selection,height:l=0,always:c=!1}=e;if(null==a&&(a=e=>P.isElement(e)&&$.isBlock(t,e)),A.isRange(u)&&(u=e0(t,u)),b.isPath(u)){var h=u,f=$.point(t,h),[p]=$.parent(t,h);a=t=>t===p,l=f.path.length-h.length+1,u=f,c=!0}if(!!u){var d=$.pointRef(t,u,{affinity:"backward"});try{var[m]=$.nodes(t,{at:u,match:a,mode:o,voids:s});if(!m)return;var g=$.void(t,{at:u,mode:"highest"});if(!s&&g){var[y,O]=g;if(P.isElement(y)&&t.isInline(y)){var w=$.after(t,O);if(!w){var x=b.next(O);tA.insertNodes(t,{text:""},{at:x,voids:s}),w=$.point(t,x)}u=w,c=!0}l=u.path.length-O.length+1,c=!0}n=$.pointRef(t,u);var D=u.path.length-l,[,k]=m,S=u.path.slice(0,D),E=0===l?u.offset:u.path[D]+0;for(var[C,T]of $.levels(t,{at:S,reverse:!0,voids:s})){var M=!1;if(T.length<k.length||0===T.length||!s&&P.isElement(C)&&$.isVoid(t,C))break;var B=d.current,I=$.isEnd(t,B,T);if(c||!d||!$.isEdge(t,B,T)){M=!0;var F=N.extractProps(C);t.apply({type:"split_node",path:T,position:E,properties:F})}E=T[T.length-1]+(M||I?1:0)}if(null==e.at){var L=n.current||$.end(t,[]);tA.select(t,L)}}finally{d.unref(),null===(r=n)||void 0===r||r.unref()}}})},e2=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!Array.isArray(e)&&(e=[e]);var r={};for(var o of e)r[o]=null;tA.setNodes(t,r,n)},e3=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:s=t.selection,match:a}=e;if(!!s){null==a&&(a=b.isPath(s)?tt(t,s):e=>P.isElement(e)&&$.isBlock(t,e)),b.isPath(s)&&(s=$.range(t,s));var u=A.isRange(s)?$.rangeRef(t,s):null,l=Array.from($.nodes(t,{at:s,match:a,mode:n,voids:o}),e=>{var[,n]=e;return $.pathRef(t,n)}).reverse();for(var c of l)!function(){var e=c.unref(),[n]=$.node(t,e),s=$.range(t,e);r&&u&&(s=A.intersection(u.current,s)),tA.liftNodes(t,{at:s,match:t=>P.isAncestor(n)&&n.children.includes(t),voids:o})}();u&&u.unref()}})};function e5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function e4(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?e5(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e5(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var e9=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:s=!1}=n,{match:a,at:u=t.selection}=n;if(!!u){if(null==a&&(a=b.isPath(u)?tt(t,u):t.isInline(e)?e=>P.isElement(e)&&$.isInline(t,e)||J.isText(e):e=>P.isElement(e)&&$.isBlock(t,e)),o&&A.isRange(u)){var[l,c]=A.edges(u),h=$.rangeRef(t,u,{affinity:"inward"});tA.splitNodes(t,{at:c,match:a,voids:s}),tA.splitNodes(t,{at:l,match:a,voids:s}),u=h.unref(),null==n.at&&tA.select(t,u)}for(var[,f]of Array.from($.nodes(t,{at:u,match:t.isInline(e)?e=>P.isElement(e)&&$.isBlock(t,e):t=>$.isEditor(t),mode:"lowest",voids:s})))if(0===function(){var n=A.isRange(u)?A.intersection(u,$.range(t,f)):u;if(!n)return 0;var o=Array.from($.nodes(t,{at:n,match:a,mode:r,voids:s}));if(o.length>0){var[l]=o,c=o[o.length-1],[,h]=l,[,p]=c;if(0===h.length&&0===p.length)return 0;var d=b.equals(h,p)?b.parent(h):b.common(h,p),m=$.range(t,h,p),[g]=$.node(t,d),y=d.length+1,O=b.next(p.slice(0,y)),w=e4(e4({},e),{},{children:[]});tA.insertNodes(t,w,{at:O,voids:s}),tA.moveNodes(t,{at:m,match:t=>P.isAncestor(g)&&g.children.includes(t),to:O.concat(0),voids:s})}}())continue}})},e8=()=>{var t={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tM(t,...n)},addMark:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tX(t,...n)},deleteBackward:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tz(t,...n)},deleteForward:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tq(t,...n)},deleteFragment:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tU(t,...n)},getFragment:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tB(t,...n)},insertBreak:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t6(t,...n)},insertSoftBreak:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return et(t,...n)},insertFragment:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eL(t,...n)},insertNode:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t7(t,...n)},insertText:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return en(t,...n)},normalizeNode:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tI(t,...n)},removeMark:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eA(t,...n)},getDirtyPaths:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tP(t,...n)},shouldNormalize:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tF(t,...n)},above:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tN(t,...n)},after:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t$(t,...n)},before:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tW(t,...n)},collapse:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return e_(t,...n)},delete:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eN(t,...n)},deselect:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eX(t,...n)},edges:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tY(t,...n)},elementReadOnly:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tK(t,...n)},end:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tJ(t,...n)},first:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tZ(t,...n)},fragment:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t0(t,...n)},getMarks:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ep(t,...n)},hasBlocks:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t5(t,...n)},hasInlines:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t4(t,...n)},hasPath:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t9(t,...n)},hasTexts:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t8(t,...n)},insertNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ez(t,...n)},isBlock:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return er(t,...n)},isEdge:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ei(t,...n)},isEmpty:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eo(t,...n)},isEnd:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return es(t,...n)},isNormalizing:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ea(t,...n)},isStart:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eu(t,...n)},last:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return el(t,...n)},leaf:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ec(t,...n)},levels:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:s}=e;if(null==s&&(s=()=>!0),!!n){var a=[],u=$.path(t,n);for(var[l,c]of N.levels(t,u)){if(!!s(l,c)){if(a.push([l,c]),!o&&P.isElement(l)&&$.isVoid(t,l))break}}r&&a.reverse(),yield*a}}()}(t,...n)},liftNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eq(t,...n)},mergeNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eQ(t,...n)},move:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eR(t,...n)},moveNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eK(t,...n)},next:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ed(t,...n)},node:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return em(t,...n)},nodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var n,r,o,{at:s=t.selection,mode:a="all",universal:u=!1,reverse:l=!1,voids:c=!1,ignoreNonSelectable:h=!1}=e,{match:f}=e;if(!f&&(f=()=>!0),!!s){if(V(s))n=s[0],r=s[1];else{var p=$.path(t,s,{edge:"start"}),d=$.path(t,s,{edge:"end"});n=l?d:p,r=l?p:d}var m=N.nodes(t,{reverse:l,from:n,to:r,pass:e=>{var[n]=e;return!!P.isElement(n)&&(!!(!c&&($.isVoid(t,n)||$.isElementReadOnly(t,n)))||!!h&&!$.isSelectable(t,n)||!1)}}),g=[];for(var[y,O]of m){if(h&&P.isElement(y)&&!$.isSelectable(t,y))continue;var w=o&&0===b.compare(O,o[1]);if("highest"!==a||!w){if(!f(y,O)){if(u&&!w&&J.isText(y))return;continue}if("lowest"===a&&w){o=[y,O];continue}var x="lowest"===a?o:[y,O];x&&(u?g.push(x):yield x),o=[y,O]}}"lowest"===a&&o&&(u?g.push(o):yield o),u&&(yield*g)}}()}(t,...n)},normalize:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eg(t,...n)},parent:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ey(t,...n)},path:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eO(t,...n)},pathRef:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ev(t,...n)},pathRefs:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eb(t,...n)},point:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eD(t,...n)},pointRef:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ew(t,...n)},pointRefs:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ex(t,...n)},positions:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:s=!1,ignoreNonSelectable:a=!1}=e;if(!!n){var u=$.range(t,n),[l,c]=A.edges(u),h=o?c:l,f=!1,p="",d=0,m=0,g=0;for(var[y,O]of $.nodes(t,{at:n,reverse:o,voids:s,ignoreNonSelectable:a})){if(P.isElement(y)){if(!s&&(t.isVoid(y)||t.isElementReadOnly(y))){yield $.start(t,O);continue}if(t.isInline(y))continue;if($.hasInlines(t,y)){var w=b.isAncestor(O,c.path)?c:$.end(t,O),x=b.isAncestor(O,l.path)?l:$.start(t,O);p=$.string(t,{anchor:x,focus:w},{voids:s}),f=!0}}if(J.isText(y)){var D=b.equals(O,h.path);for(D?(m=o?h.offset:y.text.length-h.offset,g=h.offset):(m=y.text.length,g=o?m:0),(D||f||"offset"===r)&&(yield{path:O,offset:g},f=!1);;){if(0===d){if(""===p)break;d=function(t,e,n){if("character"===e)return te(t,n);if("word"===e)return to(t,n);if("line"===e||"block"===e)return t.length;return 1}(p,r,o),p=ts(p,d,o)[1]}if(g=o?g-d:g+d,(m-=d)<0){d=-m;break}d=0,yield{path:O,offset:g}}}}}}()}(t,...n)},previous:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ek(t,...n)},range:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eC(t,...n)},rangeRef:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eS(t,...n)},rangeRefs:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eE(t,...n)},removeNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eJ(t,...n)},select:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ej(t,...n)},setNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eZ(t,...n)},setNormalizing:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eM(t,...n)},setPoint:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eH(t,...n)},setSelection:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eW(t,...n)},splitNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return e1(t,...n)},start:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eP(t,...n)},string:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eB(t,...n)},unhangRange:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eI(t,...n)},unsetNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return e2(t,...n)},unwrapNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return e3(t,...n)},void:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t3(t,...n)},withoutNormalizing:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return eF(t,...n)},wrapNodes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return e9(t,...n)}};return t}},589653:function(t,e,n){"use strict";n.d(e,{j:function(){return f}});var r,o,s,a=n(893134),u=n(642427),l=n(562590),c=n(609540),h=n(244789),f=new(r=new WeakMap,o=new WeakMap,s=new WeakMap,class extends c.l{onSubscribe(){!(0,a._)(this,o)&&this.setEventListener((0,a._)(this,s))}onUnsubscribe(){var t;!this.hasListeners()&&(null===(t=(0,a._)(this,o))||void 0===t||t.call(this),(0,l._)(this,o,void 0))}setEventListener(t){var e;(0,l._)(this,s,t),null===(e=(0,a._)(this,o))||void 0===e||e.call(this),(0,l._)(this,o,t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()}))}setFocused(t){(0,a._)(this,r)!==t&&((0,l._)(this,r,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return"boolean"==typeof(0,a._)(this,r)?(0,a._)(this,r):(null===(t=globalThis.document)||void 0===t?void 0:t.visibilityState)!=="hidden"}constructor(){super(),(0,u._)(this,r,{writable:!0,value:void 0}),(0,u._)(this,o,{writable:!0,value:void 0}),(0,u._)(this,s,{writable:!0,value:void 0}),(0,l._)(this,s,t=>{if(!h.sk&&window.addEventListener){var e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}})},973100:function(t,e,n){"use strict";n.d(e,{Gm:function(){return s},Qy:function(){return l},ZF:function(){return c}});var r=n(825955),o=n(244789);function s(t){return{onFetch:(e,n)=>{var s,l=(s=(0,r._)(function*(){var n=e.options,s=null===(x=e.fetchOptions)||void 0===x?void 0:null===(w=x.meta)||void 0===w?void 0:null===(O=w.fetchMore)||void 0===O?void 0:O.direction,l=(null===(D=e.state.data)||void 0===D?void 0:D.pages)||[],c=(null===(k=e.state.data)||void 0===k?void 0:k.pageParams)||[],h=!1,f=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?h=!0:e.signal.addEventListener("abort",()=>{h=!0}),e.signal)})},p=e.options.queryFn||(()=>Promise.reject(Error("Missing queryFn: '".concat(e.options.queryHash,"'"))));var d=(b=(0,r._)(function*(t,n,r){if(h)return Promise.reject();if(null==n&&t.pages.length)return Promise.resolve(t);var s={queryKey:e.queryKey,pageParam:n,direction:r?"backward":"forward",meta:e.options.meta};f(s);var a=yield p(s),{maxPages:u}=e.options,l=r?o.Ht:o.VX;return{pages:l(t.pages,a,u),pageParams:l(t.pageParams,n,u)}}),function(t,e,n){return b.apply(this,arguments)});if(s&&l.length){var m="backward"===s,g={pages:l,pageParams:c},y=(m?u:a)(n,g);S=yield d(g,y,m)}else{S=yield d({pages:[],pageParams:[]},null!==(E=c[0])&&void 0!==E?E:n.initialPageParam);for(var b,O,w,x,D,k,S,E,C=null!=t?t:l.length,T=1;T<C;T++){var A=a(n,S);S=yield d(S,A)}}return S}),function(){return s.apply(this,arguments)});e.options.persister?e.fetchFn=()=>{var t,r;return null===(t=(r=e.options).persister)||void 0===t?void 0:t.call(r,l,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=l}}}function a(t,e){var{pages:n,pageParams:r}=e,o=n.length-1;return t.getNextPageParam(n[o],n,r[o],r)}function u(t,e){var n,{pages:r,pageParams:o}=e;return null===(n=t.getPreviousPageParam)||void 0===n?void 0:n.call(t,r[0],r,o[0],o)}function l(t,e){return!!e&&null!=a(t,e)}function c(t,e){return!!e&&!!t.getPreviousPageParam&&null!=u(t,e)}},461716:function(t,e,n){"use strict";n.d(e,{R:function(){return D},m:function(){return x}});var r,o,s,a,u,l,c=n(825955),h=n(893134),f=n(642427),p=n(562590),d=n(655461),m=n(808217),g=n(808549),y=n(120454),b=n(607919),O=n(8542),w=n(739244),x=(r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,u=new WeakSet,l=class extends O.F{setOptions(t){this.options=(0,g._)({},(0,h._)(this,o),t),this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){!(0,h._)(this,r).includes(t)&&((0,h._)(this,r).push(t),this.clearGcTimeout(),(0,h._)(this,s).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){(0,p._)(this,r,(0,h._)(this,r).filter(e=>e!==t)),this.scheduleGc(),(0,h._)(this,s).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){!(0,h._)(this,r).length&&("pending"===this.state.status?this.scheduleGc():(0,h._)(this,s).remove(this))}continue(){var t,e;return null!==(e=null===(t=(0,h._)(this,a))||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}execute(t){var e=this;return(0,c._)(function*(){var n="pending"===e.state.status;try{if(!n){(0,d._)(e,u,k).call(e,{type:"pending",variables:t}),yield null===(M=(P=(0,h._)(e,s).config).onMutate)||void 0===M?void 0:M.call(P,t,e);var r,o,l,c,f,m,g,y,b,O,x,D,S,E,C,T,A,M,P,B,I,F=yield null===(B=(I=e.options).onMutate)||void 0===B?void 0:B.call(I,t);F!==e.state.context&&(0,d._)(e,u,k).call(e,{type:"pending",context:F,variables:t})}var N=yield((0,p._)(e,a,(0,w.Mz)({fn:()=>e.options.mutationFn?e.options.mutationFn(t):Promise.reject(Error("No mutationFn found")),onFail:(t,n)=>{(0,d._)(e,u,k).call(e,{type:"failed",failureCount:t,error:n})},onPause:()=>{(0,d._)(e,u,k).call(e,{type:"pause"})},onContinue:()=>{(0,d._)(e,u,k).call(e,{type:"continue"})},retry:null!==(b=e.options.retry)&&void 0!==b?b:0,retryDelay:e.options.retryDelay,networkMode:e.options.networkMode})),(0,h._)(e,a).promise);return yield null===(O=(x=(0,h._)(e,s).config).onSuccess)||void 0===O?void 0:O.call(x,N,t,e.state.context,e),yield null===(D=(S=e.options).onSuccess)||void 0===D?void 0:D.call(S,N,t,e.state.context),yield null===(E=(C=(0,h._)(e,s).config).onSettled)||void 0===E?void 0:E.call(C,N,null,e.state.variables,e.state.context,e),yield null===(T=(A=e.options).onSettled)||void 0===T?void 0:T.call(A,N,null,t,e.state.context),(0,d._)(e,u,k).call(e,{type:"success",data:N}),N}catch(n){try{throw yield null===(r=(o=(0,h._)(e,s).config).onError)||void 0===r?void 0:r.call(o,n,t,e.state.context,e),yield null===(l=(c=e.options).onError)||void 0===l?void 0:l.call(c,n,t,e.state.context),yield null===(f=(m=(0,h._)(e,s).config).onSettled)||void 0===f?void 0:f.call(m,void 0,n,e.state.variables,e.state.context,e),yield null===(g=(y=e.options).onSettled)||void 0===g?void 0:g.call(y,void 0,n,t,e.state.context),n}finally{(0,d._)(e,u,k).call(e,{type:"error",error:n})}}})()}constructor(t){super(),(0,m._)(this,u),(0,f._)(this,r,{writable:!0,value:void 0}),(0,f._)(this,o,{writable:!0,value:void 0}),(0,f._)(this,s,{writable:!0,value:void 0}),(0,f._)(this,a,{writable:!0,value:void 0}),this.mutationId=t.mutationId,(0,p._)(this,o,t.defaultOptions),(0,p._)(this,s,t.mutationCache),(0,p._)(this,r,[]),this.state=t.state||D(),this.setOptions(t.options),this.scheduleGc()}});function D(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function k(t){this.state=(e=>{switch(t.type){case"failed":return(0,y._)((0,g._)({},e),{failureCount:t.failureCount,failureReason:t.error});case"pause":return(0,y._)((0,g._)({},e),{isPaused:!0});case"continue":return(0,y._)((0,g._)({},e),{isPaused:!1});case"pending":return(0,y._)((0,g._)({},e),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,w.Kw)(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()});case"success":return(0,y._)((0,g._)({},e),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,y._)((0,g._)({},e),{data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}})(this.state),b.V.batch(()=>{(0,h._)(this,r).forEach(e=>{e.onMutationUpdate(t)}),(0,h._)(this,s).notify({mutation:this,type:"updated",action:t})})}},607919:function(t,e,n){"use strict";n.d(e,{V:function(){return h}});var r,o,s,a,u,l,c=n(244789);var h=(r=[],o=0,s=t=>{t()},a=t=>{t()},u=t=>{o?r.push(t):(0,c.A4)(()=>{s(t)})},l=()=>{var t=r;r=[],t.length&&(0,c.A4)(()=>{a(()=>{t.forEach(t=>{s(t)})})})},{batch:t=>{var e;o++;try{e=t()}finally{!--o&&l()}return e},batchCalls:t=>function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];u(()=>{t(...n)})},schedule:u,setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{a=t}})},333245:function(t,e,n){"use strict";n.d(e,{N:function(){return f}});var r,o,s,a=n(893134),u=n(642427),l=n(562590),c=n(609540),h=n(244789),f=new(r=new WeakMap,o=new WeakMap,s=new WeakMap,class extends c.l{onSubscribe(){!(0,a._)(this,o)&&this.setEventListener((0,a._)(this,s))}onUnsubscribe(){var t;!this.hasListeners()&&(null===(t=(0,a._)(this,o))||void 0===t||t.call(this),(0,l._)(this,o,void 0))}setEventListener(t){var e;(0,l._)(this,s,t),null===(e=(0,a._)(this,o))||void 0===e||e.call(this),(0,l._)(this,o,t(this.setOnline.bind(this)))}setOnline(t){(0,a._)(this,r)!==t&&((0,l._)(this,r,t),this.listeners.forEach(e=>{e(t)}))}isOnline(){return(0,a._)(this,r)}constructor(){super(),(0,u._)(this,r,{writable:!0,value:void 0}),(0,u._)(this,o,{writable:!0,value:void 0}),(0,u._)(this,s,{writable:!0,value:void 0}),(0,l._)(this,r,!0),(0,l._)(this,s,t=>{if(!h.sk&&window.addEventListener){var e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}})}})},178621:function(t,e,n){"use strict";n.d(e,{S:()=>K});var r,o,s,a,u,l,c,h,f,p,d,m,g,y,b,O,w,x,D,k,S,E,C,T=n("893134"),A=n("642427"),M=n("562590"),P=n("339072");function B(t,e){var n=(0,P._)(t,e,"update");return function(t,e){if(e.set){if(!e.get)throw TypeError("attempted to read set only private field");return!("__destrWrapper"in e)&&(e.__destrWrapper={set value(v){e.set.call(t,v)},get value(){return e.get.call(t)}}),e.__destrWrapper}if(!e.writable)throw TypeError("attempted to set read only private field");return e}(t,n)}var I=n("808549"),F=n("120454"),N=n("244789"),L=n("655461"),_=n("808217"),X=n("607919"),R=n("739244"),j=n("8542"),$=(r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,u=new WeakMap,l=new WeakMap,c=new WeakMap,h=new WeakMap,f=new WeakSet,p=new WeakSet,d=class extends j.F{get meta(){return this.options.meta}optionalRemove(){!(0,T._)(this,l).length&&"idle"===this.state.fetchStatus&&(0,T._)(this,s).remove(this)}setData(t,e){var n=(0,N.oE)(this.state.data,t,this.options);return(0,L._)(this,p,H).call(this,{data:n,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),n}setState(t,e){(0,L._)(this,p,H).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,n=(0,T._)(this,a);return null===(e=(0,T._)(this,u))||void 0===e||e.cancel(t),n?n.then(N.ZT).catch(N.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState((0,T._)(this,r))}isActive(){return(0,T._)(this,l).some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||(0,T._)(this,l).some(t=>t.getCurrentResult().isStale)}isStaleByTime(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,N.Kp)(this.state.dataUpdatedAt,t)}onFocus(){var t,e=(0,T._)(this,l).find(t=>t.shouldFetchOnWindowFocus());null==e||e.refetch({cancelRefetch:!1}),null===(t=(0,T._)(this,u))||void 0===t||t.continue()}onOnline(){var t,e=(0,T._)(this,l).find(t=>t.shouldFetchOnReconnect());null==e||e.refetch({cancelRefetch:!1}),null===(t=(0,T._)(this,u))||void 0===t||t.continue()}addObserver(t){!(0,T._)(this,l).includes(t)&&((0,T._)(this,l).push(t),this.clearGcTimeout(),(0,T._)(this,s).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){(0,T._)(this,l).includes(t)&&((0,M._)(this,l,(0,T._)(this,l).filter(e=>e!==t)),!(0,T._)(this,l).length&&((0,T._)(this,u)&&((0,T._)(this,h)?(0,T._)(this,u).cancel({revert:!0}):(0,T._)(this,u).cancelRetry()),this.scheduleGc()),(0,T._)(this,s).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return(0,T._)(this,l).length}invalidate(){!this.state.isInvalidated&&(0,L._)(this,p,H).call(this,{type:"invalidate"})}fetch(t,e){if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if((0,T._)(this,a))return null===(c=(0,T._)(this,u))||void 0===c||c.continueRetry(),(0,T._)(this,a)}if(t&&(0,L._)(this,f,V).call(this,t),!this.options.queryFn){var n,r,c,d,m=(0,T._)(this,l).find(t=>t.options.queryFn);m&&(0,L._)(this,f,V).call(this,m.options)}var g=new AbortController,y={queryKey:this.queryKey,meta:this.meta},b=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>((0,M._)(this,h,!0),g.signal)})};b(y);var O={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?((0,M._)(this,h,!1),this.options.persister)?this.options.persister(this.options.queryFn,y,this):this.options.queryFn(y):Promise.reject(Error("Missing queryFn: '".concat(this.options.queryHash,"'")))};b(O),null===(n=this.options.behavior)||void 0===n||n.onFetch(O,this),(0,M._)(this,o,this.state),("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(r=O.fetchOptions)||void 0===r?void 0:r.meta))&&(0,L._)(this,p,H).call(this,{type:"fetch",meta:null===(d=O.fetchOptions)||void 0===d?void 0:d.meta});var w=t=>{if(!((0,R.DV)(t)&&t.silent)&&(0,L._)(this,p,H).call(this,{type:"error",error:t}),!(0,R.DV)(t)){var e,n,r,o;null===(e=(n=(0,T._)(this,s).config).onError)||void 0===e||e.call(n,t,this),null===(r=(o=(0,T._)(this,s).config).onSettled)||void 0===r||r.call(o,this.state.data,t,this)}!this.isFetchingOptimistic&&this.scheduleGc(),this.isFetchingOptimistic=!1};return(0,M._)(this,u,(0,R.Mz)({fn:O.fetchFn,abort:g.abort.bind(g),onSuccess:t=>{var e,n,r,o;if(void 0===t){w(Error("".concat(this.queryHash," data is undefined")));return}this.setData(t),null===(e=(n=(0,T._)(this,s).config).onSuccess)||void 0===e||e.call(n,t,this),null===(r=(o=(0,T._)(this,s).config).onSettled)||void 0===r||r.call(o,t,this.state.error,this),!this.isFetchingOptimistic&&this.scheduleGc(),this.isFetchingOptimistic=!1},onError:w,onFail:(t,e)=>{(0,L._)(this,p,H).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{(0,L._)(this,p,H).call(this,{type:"pause"})},onContinue:()=>{(0,L._)(this,p,H).call(this,{type:"continue"})},retry:O.options.retry,retryDelay:O.options.retryDelay,networkMode:O.options.networkMode})),(0,M._)(this,a,(0,T._)(this,u).promise),(0,T._)(this,a)}constructor(t){super(),(0,_._)(this,f),(0,_._)(this,p),(0,A._)(this,r,{writable:!0,value:void 0}),(0,A._)(this,o,{writable:!0,value:void 0}),(0,A._)(this,s,{writable:!0,value:void 0}),(0,A._)(this,a,{writable:!0,value:void 0}),(0,A._)(this,u,{writable:!0,value:void 0}),(0,A._)(this,l,{writable:!0,value:void 0}),(0,A._)(this,c,{writable:!0,value:void 0}),(0,A._)(this,h,{writable:!0,value:void 0}),(0,M._)(this,h,!1),(0,M._)(this,c,t.defaultOptions),(0,L._)(this,f,V).call(this,t.options),(0,M._)(this,l,[]),(0,M._)(this,s,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,(0,M._)(this,r,t.state||function(t){var e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=(0,T._)(this,r),this.scheduleGc()}});function V(t){this.options=(0,I._)({},(0,T._)(this,c),t),this.updateGcTime(this.options.gcTime)}function H(t){this.state=(e=>{switch(t.type){case"failed":return(0,F._)((0,I._)({},e),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return(0,F._)((0,I._)({},e),{fetchStatus:"paused"});case"continue":return(0,F._)((0,I._)({},e),{fetchStatus:"fetching"});case"fetch":return(0,I._)((0,F._)((0,I._)({},e),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!==(n=t.meta)&&void 0!==n?n:null,fetchStatus:(0,R.Kw)(this.options.networkMode)?"fetching":"paused"}),!e.dataUpdatedAt&&{error:null,status:"pending"});case"success":return(0,I._)((0,F._)((0,I._)({},e),{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!==(r=t.dataUpdatedAt)&&void 0!==r?r:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":var n,r,s=t.error;if((0,R.DV)(s)&&s.revert&&(0,T._)(this,o))return(0,F._)((0,I._)({},(0,T._)(this,o)),{fetchStatus:"idle"});return(0,F._)((0,I._)({},e),{error:s,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"});case"invalidate":return(0,F._)((0,I._)({},e),{isInvalidated:!0});case"setState":return(0,I._)({},e,t.state)}})(this.state),X.V.batch(()=>{(0,T._)(this,l).forEach(t=>{t.onQueryUpdate()}),(0,T._)(this,s).notify({query:this,type:"updated",action:t})})}var W=n("609540"),z=(m=new WeakMap,class extends W.l{build(t,e,n){var r,o=e.queryKey,s=null!==(r=e.queryHash)&&void 0!==r?r:(0,N.Rm)(o,e),a=this.get(s);return!a&&(a=new $({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){!(0,T._)(this,m).has(t.queryHash)&&((0,T._)(this,m).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){var e=(0,T._)(this,m).get(t.queryHash);e&&(t.destroy(),e===t&&(0,T._)(this,m).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){X.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return(0,T._)(this,m).get(t)}getAll(){return[...(0,T._)(this,m).values()]}find(t){var e=(0,I._)({exact:!0},t);return this.getAll().find(t=>(0,N._x)(e,t))}findAll(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,N._x)(t,e)):e}notify(t){X.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){X.V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){X.V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}constructor(t={}){super(),(0,A._)(this,m,{writable:!0,value:void 0}),this.config=t,(0,M._)(this,m,new Map)}}),q=n("461716"),U=(g=new WeakMap,y=new WeakMap,b=new WeakMap,class extends W.l{build(t,e,n){var r=new q.m({mutationCache:this,mutationId:++B(this,y).value,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){(0,T._)(this,g).push(t),this.notify({type:"added",mutation:t})}remove(t){(0,M._)(this,g,(0,T._)(this,g).filter(e=>e!==t)),this.notify({type:"removed",mutation:t})}clear(){X.V.batch(()=>{(0,T._)(this,g).forEach(t=>{this.remove(t)})})}getAll(){return(0,T._)(this,g)}find(t){var e=(0,I._)({exact:!0},t);return(0,T._)(this,g).find(t=>(0,N.X7)(e,t))}findAll(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,T._)(this,g).filter(e=>(0,N.X7)(t,e))}notify(t){X.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){var t;return(0,M._)(this,b,(null!==(t=(0,T._)(this,b))&&void 0!==t?t:Promise.resolve()).then(()=>{var t=(0,T._)(this,g).filter(t=>t.state.isPaused);return X.V.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(N.ZT)),Promise.resolve()))}).then(()=>{(0,M._)(this,b,void 0)})),(0,T._)(this,b)}constructor(t={}){super(),(0,A._)(this,g,{writable:!0,value:void 0}),(0,A._)(this,y,{writable:!0,value:void 0}),(0,A._)(this,b,{writable:!0,value:void 0}),this.config=t,(0,M._)(this,g,[]),(0,M._)(this,y,0)}}),Y=n("589653"),G=n("333245"),Q=n("973100"),K=(O=new WeakMap,w=new WeakMap,x=new WeakMap,D=new WeakMap,k=new WeakMap,S=new WeakMap,E=new WeakMap,C=new WeakMap,class{mount(){B(this,S).value++,1===(0,T._)(this,S)&&((0,M._)(this,E,Y.j.subscribe(()=>{Y.j.isFocused()&&(this.resumePausedMutations(),(0,T._)(this,O).onFocus())})),(0,M._)(this,C,G.N.subscribe(()=>{G.N.isOnline()&&(this.resumePausedMutations(),(0,T._)(this,O).onOnline())})))}unmount(){var t,e;B(this,S).value--,0===(0,T._)(this,S)&&(null===(t=(0,T._)(this,E))||void 0===t||t.call(this),(0,M._)(this,E,void 0),null===(e=(0,T._)(this,C))||void 0===e||e.call(this),(0,M._)(this,C,void 0))}isFetching(t){return(0,T._)(this,O).findAll((0,F._)((0,I._)({},t),{fetchStatus:"fetching"})).length}isMutating(t){return(0,T._)(this,w).findAll((0,F._)((0,I._)({},t),{status:"pending"})).length}getQueryData(t){var e;return null===(e=(0,T._)(this,O).find({queryKey:t}))||void 0===e?void 0:e.state.data}ensureQueryData(t){var e=this.getQueryData(t.queryKey);return void 0!==e?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(t=>{var{queryKey:e,state:n}=t;return[e,n.data]})}setQueryData(t,e,n){var r=(0,T._)(this,O).find({queryKey:t}),o=null==r?void 0:r.state.data,s=(0,N.SE)(e,o);if(void 0!==s){var a=this.defaultQueryOptions({queryKey:t});return(0,T._)(this,O).build(this,a).setData(s,(0,F._)((0,I._)({},n),{manual:!0}))}}setQueriesData(t,e,n){return X.V.batch(()=>this.getQueryCache().findAll(t).map(t=>{var{queryKey:r}=t;return[r,this.setQueryData(r,e,n)]}))}getQueryState(t){var e;return null===(e=(0,T._)(this,O).find({queryKey:t}))||void 0===e?void 0:e.state}removeQueries(t){var e=(0,T._)(this,O);X.V.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){var n=(0,T._)(this,O),r=(0,I._)({type:"active"},t);return X.V.batch(()=>(n.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(r,e)))}cancelQueries(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,I._)({revert:!0},e);return Promise.all(X.V.batch(()=>(0,T._)(this,O).findAll(t).map(t=>t.cancel(n)))).then(N.ZT).catch(N.ZT)}invalidateQueries(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return X.V.batch(()=>{if((0,T._)(this,O).findAll(t).forEach(t=>{t.invalidate()}),"none"===t.refetchType)return Promise.resolve();var n,r,o=(0,F._)((0,I._)({},t),{type:null!==(r=null!==(n=t.refetchType)&&void 0!==n?n:t.type)&&void 0!==r?r:"active"});return this.refetchQueries(o,e)})}refetchQueries(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=(0,F._)((0,I._)({},n),{cancelRefetch:null===(t=null==n?void 0:n.cancelRefetch)||void 0===t||t});return Promise.all(X.V.batch(()=>(0,T._)(this,O).findAll(e).filter(t=>!t.isDisabled()).map(t=>{var e=t.fetch(void 0,r);return!r.throwOnError&&(e=e.catch(N.ZT)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(N.ZT)}fetchQuery(t){var e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);var n=(0,T._)(this,O).build(this,e);return n.isStaleByTime(e.staleTime)?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(N.ZT).catch(N.ZT)}fetchInfiniteQuery(t){return t.behavior=(0,Q.Gm)(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(N.ZT).catch(N.ZT)}resumePausedMutations(){return(0,T._)(this,w).resumePausedMutations()}getQueryCache(){return(0,T._)(this,O)}getMutationCache(){return(0,T._)(this,w)}getDefaultOptions(){return(0,T._)(this,x)}setDefaultOptions(t){(0,M._)(this,x,t)}setQueryDefaults(t,e){(0,T._)(this,D).set((0,N.Ym)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){var e=[...(0,T._)(this,D).values()],n={};return e.forEach(e=>{(0,N.to)(t,e.queryKey)&&(n=(0,I._)({},n,e.defaultOptions))}),n}setMutationDefaults(t,e){(0,T._)(this,k).set((0,N.Ym)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){var e=[...(0,T._)(this,k).values()],n={};return e.forEach(e=>{(0,N.to)(t,e.mutationKey)&&(n=(0,I._)({},n,e.defaultOptions))}),n}defaultQueryOptions(t){if(null==t?void 0:t._defaulted)return t;var e=(0,F._)((0,I._)({},(0,T._)(this,x).queries,(null==t?void 0:t.queryKey)&&this.getQueryDefaults(t.queryKey),t),{_defaulted:!0});return!e.queryHash&&(e.queryHash=(0,N.Rm)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),void 0===e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(t){return(null==t?void 0:t._defaulted)?t:(0,F._)((0,I._)({},(0,T._)(this,x).mutations,(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),t),{_defaulted:!0})}clear(){(0,T._)(this,O).clear(),(0,T._)(this,w).clear()}constructor(t={}){(0,A._)(this,O,{writable:!0,value:void 0}),(0,A._)(this,w,{writable:!0,value:void 0}),(0,A._)(this,x,{writable:!0,value:void 0}),(0,A._)(this,D,{writable:!0,value:void 0}),(0,A._)(this,k,{writable:!0,value:void 0}),(0,A._)(this,S,{writable:!0,value:void 0}),(0,A._)(this,E,{writable:!0,value:void 0}),(0,A._)(this,C,{writable:!0,value:void 0}),(0,M._)(this,O,t.queryCache||new z),(0,M._)(this,w,t.mutationCache||new U),(0,M._)(this,x,t.defaultOptions||{}),(0,M._)(this,D,new Map),(0,M._)(this,k,new Map),(0,M._)(this,S,0)}})},106574:function(t,e,n){"use strict";n.d(e,{z:function(){return H}});var r,o,s,a,u,l,c,h,f,p,d,m,g,y,b,O,w,x,D,k,S,E,C,T,A=n(893134),M=n(642427),P=n(562590),B=n(655461),I=n(808217),F=n(825251),N=n(70131),L=n(808549),_=n(120454),X=n(244789),R=n(607919),j=n(589653),$=n(609540),V=n(739244),H=(r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,u=new WeakMap,l=new WeakMap,c=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,d=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,b=new WeakSet,O=new WeakSet,w=new WeakSet,x=new WeakSet,D=new WeakSet,k=new WeakSet,S=new WeakSet,E=new WeakSet,C=new WeakSet,T=class extends $.l{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&((0,A._)(this,o).addObserver(this),W((0,A._)(this,o),this.options)?(0,B._)(this,b,Y).call(this):this.updateResult(),(0,B._)(this,D,J).call(this))}onUnsubscribe(){!this.hasListeners()&&this.destroy()}shouldFetchOnReconnect(){return z((0,A._)(this,o),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return z((0,A._)(this,o),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,(0,B._)(this,k,Z).call(this),(0,B._)(this,S,tt).call(this),(0,A._)(this,o).removeObserver(this)}setOptions(t,e){var n=this.options,s=(0,A._)(this,o);if(this.options=(0,A._)(this,r).defaultQueryOptions(t),!(0,X.VS)(n,this.options)&&(0,A._)(this,r).getQueryCache().notify({type:"observerOptionsUpdated",query:(0,A._)(this,o),observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");!this.options.queryKey&&(this.options.queryKey=n.queryKey),(0,B._)(this,E,te).call(this);var a=this.hasListeners();a&&q((0,A._)(this,o),s,this.options,n)&&(0,B._)(this,b,Y).call(this),this.updateResult(e),a&&((0,A._)(this,o)!==s||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&(0,B._)(this,O,G).call(this);var u=(0,B._)(this,w,Q).call(this);a&&((0,A._)(this,o)!==s||this.options.enabled!==n.enabled||u!==(0,A._)(this,g))&&(0,B._)(this,x,K).call(this,u)}getOptimisticResult(t){var e=(0,A._)(this,r).getQueryCache().build((0,A._)(this,r),t),n=this.createResult(e,t);return function(t,e){return!(0,X.VS)(t.getCurrentResult(),e)&&!0}(this,n)&&((0,P._)(this,a,n),(0,P._)(this,l,this.options),(0,P._)(this,u,(0,A._)(this,o).state)),n}getCurrentResult(){return(0,A._)(this,a)}trackResult(t){var e={};return Object.keys(t).forEach(n=>{Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:()=>((0,A._)(this,y).add(n),t[n])})}),e}getCurrentQuery(){return(0,A._)(this,o)}refetch(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,F._)({},(0,N._)(t));return this.fetch((0,L._)({},e))}fetchOptimistic(t){var e=(0,A._)(this,r).defaultQueryOptions(t),n=(0,A._)(this,r).getQueryCache().build((0,A._)(this,r),e);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,e))}fetch(t){var e;return(0,B._)(this,b,Y).call(this,(0,_._)((0,L._)({},t),{cancelRefetch:null===(e=t.cancelRefetch)||void 0===e||e})).then(()=>(this.updateResult(),(0,A._)(this,a)))}createResult(t,e){var n,r,d,m=(0,A._)(this,o),g=this.options,y=(0,A._)(this,a),b=(0,A._)(this,u),O=(0,A._)(this,l),w=t!==m?t.state:(0,A._)(this,s),{state:x}=t,{error:D,errorUpdatedAt:k,fetchStatus:S,status:E}=x,C=!1;if(e._optimisticResults){var T=this.hasListeners(),M=!T&&W(t,e),B=T&&q(t,m,e,g);(M||B)&&(S=(0,V.Kw)(t.options.networkMode)?"fetching":"paused",!x.dataUpdatedAt&&(E="pending")),"isRestoring"===e._optimisticResults&&(S="idle")}if(e.select&&void 0!==x.data){if(y&&x.data===(null==b?void 0:b.data)&&e.select===(0,A._)(this,h))n=(0,A._)(this,f);else try{(0,P._)(this,h,e.select),n=e.select(x.data),n=(0,X.oE)(null==y?void 0:y.data,n,e),(0,P._)(this,f,n),(0,P._)(this,c,null)}catch(t){(0,P._)(this,c,t)}}else n=x.data;if(void 0!==e.placeholderData&&void 0===n&&"pending"===E){if((null==y?void 0:y.isPlaceholderData)&&e.placeholderData===(null==O?void 0:O.placeholderData))r=y.data;else if(r="function"==typeof e.placeholderData?e.placeholderData(null===(d=(0,A._)(this,p))||void 0===d?void 0:d.state.data,(0,A._)(this,p)):e.placeholderData,e.select&&void 0!==r)try{r=e.select(r),(0,P._)(this,c,null)}catch(t){(0,P._)(this,c,t)}void 0!==r&&(E="success",n=(0,X.oE)(null==y?void 0:y.data,r,e),C=!0)}(0,A._)(this,c)&&(D=(0,A._)(this,c),n=(0,A._)(this,f),k=Date.now(),E="error");var I="fetching"===S,F="pending"===E,N="error"===E,L=F&&I;return{status:E,fetchStatus:S,isPending:F,isSuccess:"success"===E,isError:N,isInitialLoading:L,isLoading:L,data:n,dataUpdatedAt:x.dataUpdatedAt,error:D,errorUpdatedAt:k,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>w.dataUpdateCount||x.errorUpdateCount>w.errorUpdateCount,isFetching:I,isRefetching:I&&!F,isLoadingError:N&&0===x.dataUpdatedAt,isPaused:"paused"===S,isPlaceholderData:C,isRefetchError:N&&0!==x.dataUpdatedAt,isStale:U(t,e),refetch:this.refetch}}updateResult(t){var e=(0,A._)(this,a),n=this.createResult((0,A._)(this,o),this.options);if((0,P._)(this,u,(0,A._)(this,o).state),(0,P._)(this,l,this.options),void 0!==(0,A._)(this,u).data&&(0,P._)(this,p,(0,A._)(this,o)),!(0,X.VS)(n,e)){(0,P._)(this,a,n);var r={};(null==t?void 0:t.listeners)!==!1&&(()=>{if(!e)return!0;var{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!(0,A._)(this,y).size)return!0;var r=new Set(null!=n?n:(0,A._)(this,y));return this.options.throwOnError&&r.add("error"),Object.keys((0,A._)(this,a)).some(t=>(0,A._)(this,a)[t]!==e[t]&&r.has(t))})()&&(r.listeners=!0),(0,B._)(this,C,tn).call(this,(0,L._)({},r,t))}}onQueryUpdate(){this.updateResult(),this.hasListeners()&&(0,B._)(this,D,J).call(this)}constructor(t,e){super(),(0,I._)(this,b),(0,I._)(this,O),(0,I._)(this,w),(0,I._)(this,x),(0,I._)(this,D),(0,I._)(this,k),(0,I._)(this,S),(0,I._)(this,E),(0,I._)(this,C),(0,M._)(this,r,{writable:!0,value:void 0}),(0,M._)(this,o,{writable:!0,value:void 0}),(0,M._)(this,s,{writable:!0,value:void 0}),(0,M._)(this,a,{writable:!0,value:void 0}),(0,M._)(this,u,{writable:!0,value:void 0}),(0,M._)(this,l,{writable:!0,value:void 0}),(0,M._)(this,c,{writable:!0,value:void 0}),(0,M._)(this,h,{writable:!0,value:void 0}),(0,M._)(this,f,{writable:!0,value:void 0}),(0,M._)(this,p,{writable:!0,value:void 0}),(0,M._)(this,d,{writable:!0,value:void 0}),(0,M._)(this,m,{writable:!0,value:void 0}),(0,M._)(this,g,{writable:!0,value:void 0}),(0,M._)(this,y,{writable:!0,value:void 0}),(0,P._)(this,o,void 0),(0,P._)(this,s,void 0),(0,P._)(this,a,void 0),(0,P._)(this,y,new Set),(0,P._)(this,r,t),this.options=e,(0,P._)(this,c,null),this.bindMethods(),this.setOptions(e)}});function W(t,e){var n,r;return n=t,!1!==(r=e).enabled&&!n.state.dataUpdatedAt&&!("error"===n.state.status&&!1===r.retryOnMount)||t.state.dataUpdatedAt>0&&z(t,e,e.refetchOnMount)}function z(t,e,n){if(!1!==e.enabled){var r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&U(t,e)}return!1}function q(t,e,n,r){return!1!==n.enabled&&(t!==e||!1===r.enabled)&&(!n.suspense||"error"!==t.state.status)&&U(t,n)}function U(t,e){return t.isStaleByTime(e.staleTime)}function Y(t){(0,B._)(this,E,te).call(this);var e=(0,A._)(this,o).fetch(this.options,t);return!(null==t?void 0:t.throwOnError)&&(e=e.catch(X.ZT)),e}function G(){if((0,B._)(this,k,Z).call(this),!X.sk&&!(0,A._)(this,a).isStale&&!!(0,X.PN)(this.options.staleTime)){var t=(0,X.Kp)((0,A._)(this,a).dataUpdatedAt,this.options.staleTime);(0,P._)(this,d,setTimeout(()=>{!(0,A._)(this,a).isStale&&this.updateResult()},t+1))}}function Q(){var t;return null!==(t="function"==typeof this.options.refetchInterval?this.options.refetchInterval((0,A._)(this,o)):this.options.refetchInterval)&&void 0!==t&&t}function K(t){if((0,B._)(this,S,tt).call(this),(0,P._)(this,g,t),!X.sk&&!1!==this.options.enabled&&!!(0,X.PN)((0,A._)(this,g))&&0!==(0,A._)(this,g))(0,P._)(this,m,setInterval(()=>{(this.options.refetchIntervalInBackground||j.j.isFocused())&&(0,B._)(this,b,Y).call(this)},(0,A._)(this,g)))}function J(){(0,B._)(this,O,G).call(this),(0,B._)(this,x,K).call(this,(0,B._)(this,w,Q).call(this))}function Z(){(0,A._)(this,d)&&(clearTimeout((0,A._)(this,d)),(0,P._)(this,d,void 0))}function tt(){(0,A._)(this,m)&&(clearInterval((0,A._)(this,m)),(0,P._)(this,m,void 0))}function te(){var t=(0,A._)(this,r).getQueryCache().build((0,A._)(this,r),this.options);if(t!==(0,A._)(this,o)){var e=(0,A._)(this,o);(0,P._)(this,o,t),(0,P._)(this,s,t.state),this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}}function tn(t){R.V.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t((0,A._)(this,a))}),(0,A._)(this,r).getQueryCache().notify({query:(0,A._)(this,o),type:"observerResultsUpdated"})})}},8542:function(t,e,n){"use strict";n.d(e,{F:function(){return l}});var r,o=n(893134),s=n(642427),a=n(562590),u=n(244789),l=(r=new WeakMap,class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,u.PN)(this.gcTime)&&(0,a._)(this,r,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,null!=t?t:u.sk?1/0:3e5)}clearGcTimeout(){(0,o._)(this,r)&&(clearTimeout((0,o._)(this,r)),(0,a._)(this,r,void 0))}constructor(){(0,s._)(this,r,{writable:!0,value:void 0})}})},739244:function(t,e,n){"use strict";n.d(e,{DV:function(){return c},Kw:function(){return u},Mz:function(){return h}});var r=n(589653),o=n(333245),s=n(244789);function a(t){return Math.min(1e3*Math.pow(2,t),3e4)}function u(t){return(null!=t?t:"online")!=="online"||o.N.isOnline()}var l=class{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}};function c(t){return t instanceof l}function h(t){var e,n,c,h=!1,f=0,p=!1,d=new Promise((t,e)=>{n=t,c=e}),m=()=>!r.j.isFocused()||"always"!==t.networkMode&&!o.N.isOnline(),g=r=>{if(!p){var o;p=!0,null===(o=t.onSuccess)||void 0===o||o.call(t,r),null==e||e(),n(r)}},y=n=>{if(!p){var r;p=!0,null===(r=t.onError)||void 0===r||r.call(t,n),null==e||e(),c(n)}},b=()=>new Promise(n=>{var r;e=t=>{var e=p||!m();return e&&n(t),e},null===(r=t.onPause)||void 0===r||r.call(t)}).then(()=>{if(e=void 0,!p){var n;null===(n=t.onContinue)||void 0===n||n.call(t)}}),O=()=>{var e;if(!p){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(g).catch(e=>{if(!p){var n,r,o,u=null!==(r=t.retry)&&void 0!==r?r:s.sk?0:3,l=null!==(o=t.retryDelay)&&void 0!==o?o:a,c="function"==typeof l?l(f,e):l,d=!0===u||"number"==typeof u&&f<u||"function"==typeof u&&u(f,e);if(h||!d){y(e);return}f++,null===(n=t.onFail)||void 0===n||n.call(t,f,e),(0,s._v)(c).then(()=>{if(m())return b()}).then(()=>{h?y(e):O()})}})}};return u(t.networkMode)?O():b().then(O),{promise:d,cancel:e=>{if(!p){var n;y(new l(e)),null===(n=t.abort)||void 0===n||n.call(t)}},continue:()=>(null==e?void 0:e())?d:Promise.resolve(),cancelRetry:()=>{h=!0},continueRetry:()=>{h=!1}}}},609540:function(t,e,n){"use strict";n.d(e,{l:function(){return r}});var r=class{subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}}},244789:function(t,e,n){"use strict";n.d(e,{A4:function(){return O},Ht:function(){return D},Kp:function(){return u},PN:function(){return a},Rm:function(){return h},SE:function(){return s},VS:function(){return d},VX:function(){return x},X7:function(){return c},Ym:function(){return f},ZT:function(){return o},_v:function(){return b},_x:function(){return l},oE:function(){return w},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in window;function o(){}function s(t,e){return"function"==typeof t?t(e):t}function a(t){return"number"==typeof t&&t>=0&&t!==1/0}function u(t,e){return Math.max(t+(e||0)-Date.now(),0)}function l(t,e){var{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:a,stale:u}=t;if(a){if(r){if(e.queryHash!==h(a,e.options))return!1}else if(!p(e.queryKey,a))return!1}if("all"!==n){var l=e.isActive();if("active"===n&&!l||"inactive"===n&&l)return!1}return("boolean"!=typeof u||e.isStale()===u)&&(void 0===o||o===e.state.fetchStatus)&&(!s||!!s(e))&&!0}function c(t,e){var{exact:n,status:r,predicate:o,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(f(e.options.mutationKey)!==f(s))return!1}else if(!p(e.options.mutationKey,s))return!1}return(!r||e.state.status===r)&&(!o||!!o(e))&&!0}function h(t,e){return((null==e?void 0:e.queryKeyHashFn)||f)(t)}function f(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{}):e)}function p(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(n=>!p(t[n],e[n]))}function d(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}function m(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!y(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!(y(n)&&n.hasOwnProperty("isPrototypeOf"))||!1}function y(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(t){return new Promise(e=>{setTimeout(e,t)})}function O(t){b(0).then(t)}function w(t,e,n){return"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?function t(e,n){if(e===n)return e;var r=m(e)&&m(n);if(r||g(e)&&g(n)){for(var o=r?e.length:Object.keys(e).length,s=r?n:Object.keys(n),a=s.length,u=r?[]:{},l=0,c=0;c<a;c++){var h=r?c:s[c];u[h]=t(e[h],n[h]),u[h]===e[h]&&l++}return o===a&&l===o?e:u}return n}(t,e):e}function x(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[...t,e];return n&&r.length>n?r.slice(1):r}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}},527116:function(t,e,n){"use strict";n.d(e,{NL:function(){return s},aH:function(){return a}});var r=n(455069),o=r.createContext(void 0),s=t=>{var e=r.useContext(o);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},a=t=>{var{client:e,children:n}=t;return r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),r.createElement(o.Provider,{value:e},n)}},106334:function(t,e,n){"use strict";n.d(e,{r:()=>O});var r,o=n("455069"),s=n("607919");var a=o.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),u=()=>o.useContext(a),l=n("527116"),c=o.createContext(!1),h=()=>o.useContext(c);c.Provider;var f=n("379298"),p=(t,e)=>{(t.suspense||t.throwOnError)&&!e.isReset()&&(t.retryOnMount=!1)},d=t=>{o.useEffect(()=>{t.clearReset()},[t])},m=t=>{var{result:e,errorResetBoundary:n,throwOnError:r,query:o}=t;return e.isError&&!n.isReset()&&!e.isFetching&&(0,f.L)(r,[e.error,o])},g=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},y=(t,e)=>(null==t?void 0:t.suspense)&&e.isPending,b=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function O(t,e,n){var r=(0,l.NL)(n),a=h(),c=u(),f=r.defaultQueryOptions(t);f._optimisticResults=a?"isRestoring":"optimistic",g(f),p(f,c),d(c);var[O]=o.useState(()=>new e(r,f)),w=O.getOptimisticResult(f);if(o.useSyncExternalStore(o.useCallback(t=>{var e=a?()=>void 0:O.subscribe(s.V.batchCalls(t));return O.updateResult(),e},[O,a]),()=>O.getCurrentResult(),()=>O.getCurrentResult()),o.useEffect(()=>{O.setOptions(f,{listeners:!1})},[f,O]),y(f,w))throw O.setOptions(f,{listeners:!1}),b(f,O,c);if(m({result:w,errorResetBoundary:c,throwOnError:f.throwOnError,query:O.getCurrentQuery()}))throw w.error;return f.notifyOnChangeProps?w:O.trackResult(w)}},268935:function(t,e,n){"use strict";n.d(e,{N:()=>c});var r=n("808549"),o=n("120454"),s=n("106574"),a=n("973100"),u=class extends s.z{bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions((0,o._)((0,r._)({},t),{behavior:(0,a.Gm)()}),e)}getOptimisticResult(t){return t.behavior=(0,a.Gm)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,o._)((0,r._)({},t),{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,o._)((0,r._)({},t),{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var n,s,u,l,{state:c}=t,h=super.createResult(t,e),{isFetching:f,isRefetching:p}=h,d=f&&(null===(s=c.fetchMeta)||void 0===s?void 0:null===(n=s.fetchMore)||void 0===n?void 0:n.direction)==="forward",m=f&&(null===(l=c.fetchMeta)||void 0===l?void 0:null===(u=l.fetchMore)||void 0===u?void 0:u.direction)==="backward";return(0,o._)((0,r._)({},h),{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.Qy)(e,c.data),hasPreviousPage:(0,a.ZF)(e,c.data),isFetchingNextPage:d,isFetchingPreviousPage:m,isRefetching:p&&!d&&!m})}constructor(t,e){super(t,e)}},l=n("106334");function c(t,e){return(0,l.r)(t,u,e)}},672496:function(t,e,n){"use strict";n.d(e,{a:function(){return s}});var r=n(106574),o=n(106334);function s(t,e){return(0,o.r)(t,r.z,e)}},379298:function(t,e,n){"use strict";function r(t,e){return"function"==typeof t?t(...e):!!t}n.d(e,{L:function(){return r}})},450953:function(t,e,n){"use strict";var r=n(125161),o=n.n(r),s=n(404442),a=n.n(s),u=n(964824),l=n.n(u),c=new URL(n(116458),n.b),h=a()(o()),f=l()(c);h.push([t.id,`.cropper-container{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;direction:ltr;font-size:0;line-height:0;position:relative}.cropper-container img{-webkit-backface-visibility:hidden;backface-visibility:hidden;image-orientation:0deg;width:100%;height:100%;display:block;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{position:absolute;top:0;bottom:0;left:0;right:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{opacity:0;background-color:#fff}.cropper-modal{opacity:.5;background-color:#000}.cropper-view-box{outline:1px solid rgba(51,153,255,.75);width:100%;height:100%;display:block;overflow:hidden}.cropper-dashed{opacity:.5;border:0 dashed #eee;display:block;position:absolute}.cropper-dashed.dashed-h{border-top-width:1px;border-bottom-width:1px;width:100%;height:33.3333%;top:33.3333%;left:0}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;width:33.3333%;height:100%;top:0;left:33.3333%}.cropper-center{opacity:.75;width:0;height:0;display:block;position:absolute;top:50%;left:50%}.cropper-center:before,.cropper-center:after{content:" ";background-color:#eee;display:block;position:absolute}.cropper-center:before{width:7px;height:1px;top:0;left:-3px}.cropper-center:after{width:1px;height:7px;top:-3px;left:0}.cropper-face,.cropper-line,.cropper-point{opacity:.1;width:100%;height:100%;display:block;position:absolute}.cropper-face{background-color:#fff;top:0;left:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;width:5px;top:0;right:-3px}.cropper-line.line-n{cursor:ns-resize;height:5px;top:-3px;left:0}.cropper-line.line-w{cursor:ew-resize;width:5px;top:0;left:-3px}.cropper-line.line-s{cursor:ns-resize;height:5px;bottom:-3px;left:0}.cropper-point{opacity:.75;background-color:#39f;width:5px;height:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;top:50%;right:-3px}.cropper-point.point-n{cursor:ns-resize;margin-left:-3px;top:-3px;left:50%}.cropper-point.point-w{cursor:ew-resize;margin-top:-3px;top:50%;left:-3px}.cropper-point.point-s{cursor:s-resize;margin-left:-3px;bottom:-3px;left:50%}.cropper-point.point-ne{cursor:nesw-resize;top:-3px;right:-3px}.cropper-point.point-nw{cursor:nwse-resize;top:-3px;left:-3px}.cropper-point.point-sw{cursor:nesw-resize;bottom:-3px;left:-3px}.cropper-point.point-se{cursor:nwse-resize;opacity:1;width:20px;height:20px;bottom:-3px;right:-3px}@media (min-width:768px){.cropper-point.point-se{width:15px;height:15px}}@media (min-width:992px){.cropper-point.point-se{width:10px;height:10px}}@media (min-width:1200px){.cropper-point.point-se{opacity:.75;width:5px;height:5px}}.cropper-point.point-se:before{content:" ";opacity:0;background-color:#39f;width:200%;height:200%;display:block;position:absolute;bottom:-50%;right:-50%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(${f})}.cropper-hide{width:0;height:0;display:block;position:absolute}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}`,""]),e.Z=h},491285:function(t,e,n){"use strict";var r=n(125161),o=n.n(r),s=n(404442),a=n.n(s)()(o());a.push([t.id,".rc-slider{touch-action:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border-radius:6px;width:100%;height:14px;padding:5px 0;position:relative}.rc-slider *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}.rc-slider-rail{background-color:#e9e9e9;border-radius:6px;width:100%;height:4px;position:absolute}.rc-slider-track,.rc-slider-tracks{background-color:#abe2fb;border-radius:6px;height:4px;position:absolute}.rc-slider-track-draggable{z-index:1;box-sizing:content-box;background-clip:content-box;border-top:5px solid transparent;border-bottom:5px solid transparent;transform:translateY(-5px)}.rc-slider-handle{z-index:1;cursor:pointer;cursor:grab;opacity:.8;touch-action:pan-x;background-color:#fff;border:2px solid #96dbfa;border-radius:50%;width:14px;height:14px;margin-top:-5px;position:absolute}.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging{border-color:#57c5f7;box-shadow:0 0 0 5px #96dbfa}.rc-slider-handle:focus{box-shadow:none;outline:none}.rc-slider-handle:focus-visible{border-color:#2db7f5;box-shadow:0 0 0 3px #96dbfa}.rc-slider-handle-click-focused:focus{box-shadow:unset;border-color:#96dbfa}.rc-slider-handle:hover{border-color:#57c5f7}.rc-slider-handle:active{cursor:grabbing;border-color:#57c5f7;box-shadow:0 0 5px #57c5f7}.rc-slider-mark{width:100%;font-size:12px;position:absolute;top:18px;left:0}.rc-slider-mark-text{color:#999;text-align:center;vertical-align:middle;cursor:pointer;display:inline-block;position:absolute}.rc-slider-mark-text-active{color:#666}.rc-slider-step{background:0 0;width:100%;height:4px;position:absolute}.rc-slider-dot{vertical-align:middle;cursor:pointer;background-color:#fff;border:2px solid #e9e9e9;border-radius:50%;width:8px;height:8px;position:absolute;bottom:-2px}.rc-slider-dot-active{border-color:#96dbfa}.rc-slider-dot-reverse{margin-right:-4px}.rc-slider-disabled{background-color:#e9e9e9}.rc-slider-disabled .rc-slider-track{background-color:#ccc}.rc-slider-disabled .rc-slider-handle,.rc-slider-disabled .rc-slider-dot{box-shadow:none;cursor:not-allowed;background-color:#fff;border-color:#ccc}.rc-slider-disabled .rc-slider-mark-text,.rc-slider-disabled .rc-slider-dot{cursor:not-allowed!important}.rc-slider-vertical{width:14px;height:100%;padding:0 5px}.rc-slider-vertical .rc-slider-rail{width:4px;height:100%}.rc-slider-vertical .rc-slider-track{width:4px;bottom:0;left:5px}.rc-slider-vertical .rc-slider-track-draggable{border:0;border-left:5px solid transparent;border-right:5px solid transparent;transform:translate(-5px)}.rc-slider-vertical .rc-slider-handle{z-index:1;touch-action:pan-y;margin-top:0;margin-left:-5px;position:absolute}.rc-slider-vertical .rc-slider-mark{height:100%;top:0;left:18px}.rc-slider-vertical .rc-slider-step{width:4px;height:100%}.rc-slider-vertical .rc-slider-dot{margin-left:-2px}.rc-slider-tooltip-zoom-down-enter,.rc-slider-tooltip-zoom-down-appear,.rc-slider-tooltip-zoom-down-leave{animation-duration:.3s;animation-play-state:paused;animation-fill-mode:both;display:block!important}.rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,.rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active{animation-name:rcSliderTooltipZoomDownIn;animation-play-state:running}.rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active{animation-name:rcSliderTooltipZoomDownOut;animation-play-state:running}.rc-slider-tooltip-zoom-down-enter,.rc-slider-tooltip-zoom-down-appear{animation-timing-function:cubic-bezier(.23,1,.32,1);transform:scale(0)}.rc-slider-tooltip-zoom-down-leave{animation-timing-function:cubic-bezier(.755,.05,.855,.06)}@keyframes rcSliderTooltipZoomDownIn{0%{transform-origin:50% 100%;opacity:0;transform:scale(0)}to{transform-origin:50% 100%;transform:scale(1)}}@keyframes rcSliderTooltipZoomDownOut{0%{transform-origin:50% 100%;transform:scale(1)}to{transform-origin:50% 100%;opacity:0;transform:scale(0)}}.rc-slider-tooltip{visibility:visible;box-sizing:border-box;-webkit-tap-highlight-color:transparent;position:absolute;top:-9999px;left:-9999px}.rc-slider-tooltip *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}.rc-slider-tooltip-hidden{display:none}.rc-slider-tooltip-placement-top{padding:4px 0 8px}.rc-slider-tooltip-inner{color:#fff;text-align:center;background-color:#6c6c6c;border-radius:6px;min-width:24px;height:24px;padding:6px 2px;font-size:12px;line-height:1;text-decoration:none;box-shadow:0 0 4px #d9d9d9}.rc-slider-tooltip-arrow{border-style:solid;border-color:transparent;width:0;height:0;position:absolute}.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow{border-width:4px 4px 0;border-top-color:#6c6c6c;margin-left:-4px;bottom:4px;left:50%}",""]),e.Z=a},84094:function(t,e,n){"use strict";var r=n(407821),o=n.n(r),s=n(472772),a=n.n(s),u=n(395245),l=n.n(u),c=n(297998),h=n.n(c),f=n(646576),p=n.n(f),d=n(606121),m=n.n(d),g=n(450953),y={};y.styleTagTransform=m(),y.setAttributes=h(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=p(),o()(g.Z,y),g.Z&&g.Z.locals&&g.Z.locals},634405:function(t,e,n){"use strict";var r=n(407821),o=n.n(r),s=n(472772),a=n.n(s),u=n(395245),l=n.n(u),c=n(297998),h=n.n(c),f=n(646576),p=n.n(f),d=n(606121),m=n.n(d),g=n(491285),y={};y.styleTagTransform=m(),y.setAttributes=h(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=p(),o()(g.Z,y),g.Z&&g.Z.locals&&g.Z.locals},801138:function(t,e,n){"use strict";n.d(e,{$L:function(){return y},B1:function(){return tI},DB:function(){return tl},GA:function(){return tC},Gn:function(){return tm},Mb:function(){return h},dk:function(){return q},eC:function(){return f},vQ:function(){return tw},ys:function(){return tB}});var r,o,s=n(913693),a=n(249294),u=n(562312);class l{constructor(t,e,n,r){this.state=t,this.pos=e,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let e=(0,u.qz)(this.state).resolveInner(this.pos,-1);for(;e&&0>t.indexOf(e.name);)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),r=e.text.slice(n-e.from,this.pos-e.from),o=r.search(m(t,!1));return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(t,e,n){"abort"==t&&this.abortListeners&&(this.abortListeners.push(e),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function c(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function h(t){let e=t.map(t=>"string"==typeof t?{label:t}:t),[n,r]=e.every(t=>/^\w+$/.test(t.label))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let t=1;t<r.length;t++)n[r[t]]=!0}let r=c(e)+c(n)+"*$";return[RegExp("^"+r),new RegExp(r)]}(e);return t=>{let o=t.matchBefore(r);return o||t.explicit?{from:o?o.from:t.pos,options:e,validFor:n}:null}}function f(t,e){return n=>{for(let e=(0,u.qz)(n.state).resolveInner(n.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(n)}}class p{constructor(t,e,n,r){this.completion=t,this.source=e,this.match=n,this.score=r}}function d(t){return t.selection.main.from}function m(t,e){var n;let{source:r}=t,o=e&&"^"!=r[0],s="$"!=r[r.length-1];return o||s?RegExp(`${o?"^":""}(?:${r})${s?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}let g=s.q6.define();function y(t,e,n,r){let{main:o}=t.selection,a=n-o.from,u=r-o.from;return Object.assign(Object.assign({},t.changeByRange(l=>{if(l!=o&&n!=r&&t.sliceDoc(l.from+a,l.from+u)!=t.sliceDoc(n,r))return{range:l};let c=t.toText(e);return{changes:{from:l.from+a,to:r==o.from?l.to:l.from+u,insert:c},range:s.jT.cursor(l.from+a+c.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}let b=new WeakMap;function O(t){if(!Array.isArray(t))return t;let e=b.get(t);return!e&&b.set(t,e=h(t)),e}let w=s.Py.define(),x=s.Py.define();class D{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e<t.length;){let n=(0,s.gm)(t,e),r=(0,s.nZ)(n);this.chars.push(n);let o=t.slice(e,e+r),a=o.toUpperCase();this.folded.push((0,s.gm)(a==o?o.toLowerCase():a,0)),e+=r}this.astral=t.length!=this.chars.length}ret(t,e){return this.score=t,this.matched=e,this}match(t){if(0==this.pattern.length)return this.ret(-100,[]);if(t.length<this.pattern.length)return null;let{chars:e,folded:n,any:r,precise:o,byWord:a}=this;if(1==e.length){let r=(0,s.gm)(t,0),o=(0,s.nZ)(r),a=o==t.length?0:-100;if(r==e[0]);else{if(r!=n[0])return null;a+=-200}return this.ret(a,[0,o])}let u=t.indexOf(this.pattern);if(0==u)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=e.length,c=0;if(u<0){for(let o=0,a=Math.min(t.length,200);o<a&&c<l;){let a=(0,s.gm)(t,o);(a==e[c]||a==n[c])&&(r[c++]=o),o+=(0,s.nZ)(a)}if(c<l)return null}let h=0,f=0,p=!1,d=0,m=-1,g=-1,y=/[a-z]/.test(t),b=!0;for(let r=0,c=Math.min(t.length,200),O=0;r<c&&f<l;){let c=(0,s.gm)(t,r);u<0&&(h<l&&c==e[h]&&(o[h++]=r),d<l&&(c==e[d]||c==n[d]?(0==d&&(m=r),g=r+1,d++):d=0));let w,x=c<255?c>=48&&c<=57||c>=97&&c<=122?2:c>=65&&c<=90?1:0:(w=(0,s.bg)(c))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!r||1==x&&y||0==O&&0!=x)&&(e[f]==c||n[f]==c&&(p=!0)?a[f++]=r:a.length&&(b=!1)),O=x,r+=(0,s.nZ)(c)}return f==l&&0==a[0]&&b?this.result(-100+(p?-200:0),a,t):d==l&&0==m?this.ret(-200-t.length+(g==t.length?0:-100),[0,g]):u>-1?this.ret(-700-t.length,[u,u+this.pattern.length]):d==l?this.ret(-900-t.length,[m,g]):f==l?this.result(-100+(p?-200:0)+-700+(b?0:-1100),a,t):2==e.length?null:this.result((r[0]?-700:0)+-200+-1100,r,t)}result(t,e,n){let r=[],o=0;for(let t of e){let e=t+(this.astral?(0,s.nZ)((0,s.gm)(n,t)):1);o&&r[o-1]==t?r[o-1]=e:(r[o++]=t,r[o++]=e)}return this.ret(t-n.length,r)}}class k{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length<this.pattern.length)return null;let e=t.slice(0,this.pattern.length),n=e==this.pattern?0:e.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,e.length],this.score=n+(t.length==this.pattern.length?0:-100),this)}}let S=s.r$.define({combine:t=>(0,s.BO)(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:C,filterStrict:!1,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>E(t(n),e(n)),optionClass:(t,e)=>n=>E(t(n),e(n)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})});function E(t,e){return t?e?t+" "+e:t:e}function C(t,e,n,r,o,s){let u=t.textDirection==a.Nm.RTL,l=u,c=!1,h="top",f,p,d=e.left-o.left,m=o.right-e.right,g=r.right-r.left,y=r.bottom-r.top;if(l&&d<Math.min(g,m)?l=!1:!l&&m<Math.min(g,d)&&(l=!0),g<=(l?d:m))f=Math.max(o.top,Math.min(n.top,o.bottom-y))-e.top,p=Math.min(400,l?d:m);else{c=!0,p=Math.min(400,(u?e.right:o.right-e.left)-30);let t=o.bottom-e.bottom;t>=y||t>e.top?f=n.bottom-e.top:(h="bottom",f=e.bottom-n.top)}let b=(e.bottom-e.top)/s.offsetHeight,O=(e.right-e.left)/s.offsetWidth;return{style:`${h}: ${f/b}px; max-width: ${p/O}px`,class:"cm-completionInfo-"+(c?u?"left-narrow":"right-narrow":l?"left":"right")}}function T(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/n);return{from:t*n,to:(t+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class A{constructor(t,e,n){var r;let o;this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let s=t.state.field(e),{options:a,selected:u}=s.open,l=t.state.facet(S);this.optionContent=(o=(r=l).addToOptions.slice(),r.icons&&o.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map(t=>"cm-completionIcon-"+t)),e.setAttribute("aria-hidden","true"),e},position:20}),o.push({render(t,e,n,r){let o=document.createElement("span");o.className="cm-completionLabel";let s=t.displayLabel||t.label,a=0;for(let t=0;t<r.length;){let e=r[t++],n=r[t++];e>a&&o.appendChild(document.createTextNode(s.slice(a,e)));let u=o.appendChild(document.createElement("span"));u.appendChild(document.createTextNode(s.slice(e,n))),u.className="cm-completionMatchedText",a=n}return a<s.length&&o.appendChild(document.createTextNode(s.slice(a))),o},position:50},{render(t){if(!t.detail)return null;let e=document.createElement("span");return e.className="cm-completionDetail",e.textContent=t.detail,e},position:80}),o.sort((t,e)=>t.position-e.position).map(t=>t.render)),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=T(a.length,u,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",n=>{let{options:r}=t.state.field(e).open;for(let e=n.target,o;e&&e!=this.dom;e=e.parentNode)if("LI"==e.nodeName&&(o=/-(\d+)$/.exec(e.id))&&+o[1]<r.length){this.applyCompletion(t,r[+o[1]]),n.preventDefault();return}}),this.dom.addEventListener("focusout",e=>{let n=t.state.field(this.stateField,!1);n&&n.tooltip&&t.state.facet(S).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:x.of(null)})}),this.showOptions(a,s.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let n=t.state.field(this.stateField),r=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=r){let{options:o,selected:s,disabled:a}=n.open;(!r.open||r.open.options!=o)&&(this.range=T(o.length,s,t.state.facet(S).maxRenderedOptions),this.showOptions(o,n.id)),this.updateSel(),a!=(null===(e=r.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected<this.range.from||e.selected>=this.range.to)&&(this.range=T(e.options.length,e.selected,this.view.state.facet(S).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:n}=e.options[e.selected],{info:r}=n;if(!r)return;let o="string"==typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then(e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,n)}).catch(t=>(0,a.OO)(this.view.state,t,"completion info")):this.addInfoPane(o,n)}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:r}=t;n.appendChild(e),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==t?!n.hasAttribute("aria-selected")&&(n.setAttribute("aria-selected","true"),e=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return e&&function(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/o:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/o)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=t.getBoundingClientRect(),o=this.space;if(!o){let t=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:t.clientWidth,bottom:t.clientHeight}}return r.top>Math.min(o.bottom,e.bottom)-10||r.bottom<Math.max(o.top,e.top)+10?null:this.view.state.facet(S).positionInfo(this.view,e,r,n,o,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,e,n){let r=document.createElement("ul");r.id=e,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",t=>{t.target==r&&t.preventDefault()});let o=null;for(let s=n.from;s<n.to;s++){let{completion:a,match:u}=t[s],{section:l}=a;if(l){let t="string"==typeof l?l:l.name;t!=o&&(s>n.from||0==n.from)&&(o=t,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=t)}let c=r.appendChild(document.createElement("li"));c.id=e+"-"+s,c.setAttribute("role","option");let h=this.optionClass(a);for(let t of(h&&(c.className=h),this.optionContent)){let e=t(a,this.view.state,this.view,u);e&&c.appendChild(e)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<t.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function M(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class P{constructor(t,e,n,r,o,s){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=r,this.selected=o,this.disabled=s}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new P(this.options,N(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,r,o,s){if(r&&!s&&t.some(t=>t.isPending))return r.setDisabled();let a=function(t,e){let n=[],r=null,o=t=>{n.push(t);let{section:e}=t.completion;if(e){!r&&(r=[]);let t="string"==typeof e?e:e.name;!r.some(e=>e.name==t)&&r.push("string"==typeof e?{name:t}:e)}},s=e.facet(S);for(let r of t)if(r.hasResult()){let t=r.result.getMatch;if(!1===r.result.filter)for(let e of r.result.options)o(new p(e,r.source,t?t(e):[],1e9-n.length));else{let n=e.sliceDoc(r.from,r.to),a,u=s.filterStrict?new k(n):new D(n);for(let e of r.result.options)if(a=u.match(e.label)){let n=e.displayLabel?t?t(e,a.matched):[]:a.matched;o(new p(e,r.source,n,a.score+(e.boost||0)))}}}if(r){let t=Object.create(null),e=0;for(let n of r.sort((t,e)=>{var n,r;return(null!==(n=t.rank)&&void 0!==n?n:1e9)-(null!==(r=e.rank)&&void 0!==r?r:1e9)||(t.name<e.name?-1:1)}))e-=1e5,t[n.name]=e;for(let e of n){let{section:n}=e.completion;n&&(e.score+=t["string"==typeof n?n:n.name])}}let a=[],u=null,l=s.compareCompletions;for(let t of n.sort((t,e)=>e.score-t.score||l(t.completion,e.completion))){let e=t.completion;u&&u.label==e.label&&u.detail==e.detail&&(null==u.type||null==e.type||u.type==e.type)&&u.apply==e.apply&&u.boost==e.boost?M(t.completion)>M(u)&&(a[a.length-1]=t):a.push(t),u=t.completion}return a}(t,e);if(!a.length)return r&&t.some(t=>t.isPending)?r.setDisabled():null;let u=e.facet(S).selectOnOpen?0:-1;if(r&&r.selected!=u&&-1!=r.selected){let t=r.options[r.selected].completion;for(let e=0;e<a.length;e++)if(a[e].completion==t){u=e;break}}return new P(a,N(n,u),{pos:t.reduce((t,e)=>e.hasResult()?Math.min(t,e.from):t,1e8),create:W,above:o.aboveCursor},r?r.timestamp:Date.now(),u,!1)}map(t){return new P(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new P(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class B{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new B(L,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(S),r=(n.override||e.languageDataAt("autocomplete",d(e)).map(O)).map(e=>(this.active.find(t=>t.source==e)||new X(e,this.active.some(t=>0!=t.state)?1:0)).update(t,n));r.length==this.active.length&&r.every((t,e)=>t==this.active[e])&&(r=this.active);let o=this.open,s=t.effects.some(t=>t.is(j));for(let a of(o&&t.docChanged&&(o=o.map(t.changes)),t.selection||r.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!function(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;r<e.length&&!e[r].hasResult();)r++;let o=n==t.length,s=r==e.length;if(o||s)return o==s;if(t[n++].result!=e[r++].result)return!1}}(r,this.active)||s?o=P.build(r,e,this.id,o,n,s):o&&o.disabled&&!r.some(t=>t.isPending)&&(o=null),!o&&r.every(t=>!t.isPending)&&r.some(t=>t.hasResult())&&(r=r.map(t=>t.hasResult()?new X(t.source,0):t)),t.effects))a.is($)&&(o=o&&o.setSelected(a.value,this.id));return r==this.active&&o==this.open?this:new B(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?I:F}}let I={"aria-autocomplete":"list"},F={};function N(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}let L=[];function _(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(g);if(n&&e.activateOnCompletion(n))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class X{constructor(t,e,n=!1){this.source=t,this.state=e,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(t,e){let n=_(t,e),r=this;for(let e of((8&n||16&n&&this.touches(t))&&(r=new X(r.source,0)),4&n&&0==r.state&&(r=new X(this.source,1)),r=r.updateFor(t,n),t.effects))if(e.is(w))r=new X(r.source,1,e.value);else if(e.is(x))r=new X(r.source,0);else if(e.is(j))for(let t of e.value)t.source==r.source&&(r=t);return r}updateFor(t,e){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(d(t.state))}}class R extends X{constructor(t,e,n,r,o,s){super(t,3,e),this.limit=n,this.result=r,this.from=o,this.to=s}hasResult(){return!0}updateFor(t,e){var n;if(!(3&e))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let o=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),a=d(t.state);if(a>s||!r||2&e&&(d(t.startState)==this.from||a<this.limit))return new X(this.source,4&e?1:0);let u=t.changes.mapPos(this.limit);return function(t,e,n,r){if(!t)return!1;let o=e.sliceDoc(n,r);return"function"==typeof t?t(o,n,r,e):m(t,!0).test(o)}(r.validFor,t.state,o,s)?new R(this.source,this.explicit,u,r,o,s):r.update&&(r=r.update(r,o,s,new l(t.state,a,!1)))?new R(this.source,this.explicit,u,r,r.from,null!==(n=r.to)&&void 0!==n?n:d(t.state)):new X(this.source,1,this.explicit)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new R(this.source,this.explicit,t.mapPos(this.limit),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new X(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}let j=s.Py.define({map:(t,e)=>t.map(t=>t.map(e))}),$=s.Py.define(),V=s.QQ.define({create:()=>B.start(),update:(t,e)=>t.update(e),provide:t=>[a.hJ.from(t,t=>t.tooltip),a.tk.contentAttributes.from(t,t=>t.attrs)]});function H(t,e){let n=e.completion.apply||e.completion.label,r=t.state.field(V).active.find(t=>t.source==e.source);return r instanceof R&&("string"==typeof n?t.dispatch(Object.assign(Object.assign({},y(t.state,n,r.from,r.to)),{annotations:g.of(e.completion)})):n(t,e.completion,r.from,r.to),!0)}let W=(r=V,o=H,t=>new A(t,r,o));function z(t,e="option"){return n=>{let r=n.state.field(V,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(S).interactionDelay)return!1;let o=1,s;"page"==e&&(s=(0,a.gB)(n,r.open.tooltip))&&(o=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:u}=r.open.options,l=r.open.selected>-1?r.open.selected+o*(t?1:-1):t?0:u-1;return l<0?l="page"==e?0:u-1:l>=u&&(l="page"==e?u-1:0),n.dispatch({effects:$.of(l)}),!0}}let q=t=>{let e=t.state.field(V,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(S).interactionDelay)&&H(t,e.open.options[e.open.selected])},U=t=>!!t.state.field(V,!1)&&(t.dispatch({effects:w.of(!0)}),!0);class Y{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}let G=a.lg.fromClass(class{constructor(t){for(let e of(this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0,t.state.field(V).active))e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(V),n=t.state.facet(S);if(!t.selectionSet&&!t.docChanged&&t.startState.field(V)==e)return;let r=t.transactions.some(t=>{let e=_(t,n);return 8&e||(t.selection||t.docChanged)&&!(3&e)});for(let e=0;e<this.running.length;e++){let n=this.running[e];if(r||n.context.abortOnDocChange&&t.docChanged||n.updates.length+t.transactions.length>50&&Date.now()-n.time>1e3){for(let t of n.context.abortListeners)try{t()}catch(t){(0,a.OO)(this.view.state,t)}n.context.abortListeners=null,this.running.splice(e--,1)}else n.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(t=>t.effects.some(t=>t.is(w)))&&(this.pendingStart=!0);let o=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(t=>t.isPending&&!this.running.some(e=>e.active.source==t.source))?setTimeout(()=>this.startUpdate(),o):-1,0!=this.composing)for(let e of t.transactions)e.isUserEvent("input.type")?this.composing=2:2==this.composing&&e.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(V);for(let t of e.active)t.isPending&&!this.running.some(e=>e.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(S).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=d(e),r=new l(e,n,t.explicit,this.view),o=new Y(t,r);this.running.push(o),Promise.resolve(t.source(r)).then(t=>{!o.context.aborted&&(o.done=t||null,this.scheduleAccept())},t=>{this.view.dispatch({effects:x.of(null)}),(0,a.OO)(this.view.state,t)})}scheduleAccept(){this.running.every(t=>void 0!==t.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(S).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(S),r=this.view.state.field(V);for(let o=0;o<this.running.length;o++){let s=this.running[o];if(void 0===s.done)continue;if(this.running.splice(o--,1),s.done){let r=d(s.updates.length?s.updates[0].startState:this.view.state),o=Math.min(r,s.done.from+(s.active.explicit?0:1)),a=new R(s.active.source,s.active.explicit,o,s.done,s.done.from,null!==(t=s.done.to)&&void 0!==t?t:r);for(let t of s.updates)a=a.update(t,n);if(a.hasResult()){e.push(a);continue}}let a=r.active.find(t=>t.source==s.active.source);if(a&&a.isPending){if(null==s.done){let t=new X(s.active.source,0);for(let e of s.updates)t=t.update(e,n);!t.isPending&&e.push(t)}else this.startQuery(a)}}(e.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:j.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(V,!1);if(e&&e.tooltip&&this.view.state.facet(S).closeOnBlur){let n=e.open&&(0,a.gB)(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:x.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:w.of(!1)}),20),this.composing=0}}}),Q="object"==typeof navigator&&/Win/.test(navigator.platform),K=s.Wl.highest(a.tk.domEventHandlers({keydown(t,e){let n=e.state.field(V,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(Q&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],o=n.active.find(t=>t.source==r.source),s=r.completion.commitCharacters||o.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&H(e,r),!1}})),J=a.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"''"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Z{constructor(t,e,n,r){this.field=t,this.line=e,this.from=n,this.to=r}}class tt{constructor(t,e,n){this.field=t,this.from=e,this.to=n}map(t){let e=t.mapPos(this.from,-1,s.gc.TrackDel),n=t.mapPos(this.to,1,s.gc.TrackDel);return null==e||null==n?null:new tt(this.field,e,n)}}class te{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let n=[],r=[e],o=t.doc.lineAt(e),s=/^\s*/.exec(o.text)[0];for(let o of this.lines){if(n.length){let n=s,a=/^\t*/.exec(o)[0].length;for(let e=0;e<a;e++)n+=t.facet(u.c);r.push(e+n.length-a),o=n+o.slice(a)}n.push(o),e+=o.length+1}return{text:n,ranges:this.fieldPositions.map(t=>new tt(t.field,r[t.line]+t.from,r[t.line]+t.to))}}static parse(t){let e=[],n=[],r=[],o;for(let s of t.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let t=o[1]?+o[1]:null,a=o[2]||o[3]||"",u=-1,l=a.replace(/\\[{}]/g,t=>t[1]);for(let n=0;n<e.length;n++)(null!=t?e[n].seq==t:!!l&&e[n].name==l)&&(u=n);if(u<0){let n=0;for(;n<e.length&&(null==t||null!=e[n].seq&&e[n].seq<t);)n++;for(let o of(e.splice(n,0,{seq:t,name:l}),u=n,r))o.field>=u&&o.field++}r.push(new Z(u,n.length,o.index,o.index+l.length)),s=s.slice(0,o.index)+a+s.slice(o.index+o[0].length)}s=s.replace(/\\([{}])/g,(t,e,o)=>{for(let t of r)t.line==n.length&&t.from>o&&(t.from--,t.to--);return e}),n.push(s)}return new te(n,r)}}let tn=a.p.widget({widget:new class extends a.l9{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),tr=a.p.mark({class:"cm-snippetField"});class ti{constructor(t,e){this.ranges=t,this.active=e,this.deco=a.p.set(t.map(t=>(t.from==t.to?tn:tr).range(t.from,t.to)))}map(t){let e=[];for(let n of this.ranges){let r=n.map(t);if(!r)return null;e.push(r)}return new ti(e,this.active)}selectionInsideField(t){return t.ranges.every(t=>this.ranges.some(e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))}}let to=s.Py.define({map:(t,e)=>t&&t.map(e)}),ts=s.Py.define(),ta=s.QQ.define({create:()=>null,update(t,e){for(let n of e.effects){if(n.is(to))return n.value;if(n.is(ts)&&t)return new ti(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>a.tk.decorations.from(t,t=>t?t.deco:a.p.none)});function tu(t,e){return s.jT.create(t.filter(t=>t.field==e).map(t=>s.jT.range(t.from,t.to)))}function tl(t){let e=te.parse(t);return(t,n,r,o)=>{let{text:a,ranges:u}=e.instantiate(t.state,r),{main:l}=t.state.selection,c={changes:{from:r,to:o==l.from?l.to:o,insert:s.xv.of(a)},scrollIntoView:!0,annotations:n?[g.of(n),s.YW.userEvent.of("input.complete")]:void 0};if(u.length&&(c.selection=tu(u,0)),u.some(t=>t.field>0)){let e=new ti(u,0),n=c.effects=[to.of(e)];void 0===t.state.field(ta,!1)&&n.push(s.Py.appendConfig.of([ta,td,tg,J]))}t.dispatch(t.state.update(c))}}function tc(t){return({state:e,dispatch:n})=>{let r=e.field(ta,!1);if(!r||t<0&&0==r.active)return!1;let o=r.active+t,s=t>0&&!r.ranges.some(e=>e.field==o+t);return n(e.update({selection:tu(r.ranges,o),effects:to.of(s?null:new ti(r.ranges,o)),scrollIntoView:!0})),!0}}let th=tc(1),tf=[{key:"Tab",run:th,shift:tc(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(ta,!1)&&(e(t.update({effects:to.of(null)})),!0)}],tp=s.r$.define({combine:t=>t.length?t[0]:tf}),td=s.Wl.highest(a.$f.compute([tp],t=>t.facet(tp)));function tm(t,e){return Object.assign(Object.assign({},e),{apply:tl(t)})}let tg=a.tk.domEventHandlers({mousedown(t,e){let n=e.state.field(ta,!1),r;if(!n||null==(r=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let o=n.ranges.find(t=>t.from<=r&&t.to>=r);return!!o&&o.field!=n.active&&(e.dispatch({selection:tu(n.ranges,o.field),effects:to.of(n.ranges.some(t=>t.field>o.field)?new ti(n.ranges,o.field):null),scrollIntoView:!0}),!0)}}),ty={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},tv=s.Py.define({map(t,e){let n=e.mapPos(t,-1,s.gc.TrackAfter);return null==n?void 0:n}}),tb=new class extends s.uU{};tb.startSide=1,tb.endSide=-1;let tO=s.QQ.define({create:()=>s.Xs.empty,update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=n.from&&t<=n.to})}for(let n of e.effects)n.is(tv)&&(t=t.update({add:[tb.range(n.value,n.value+1)]}));return t}});function tw(){return[tE,tO]}let tx="()[]{}<>\xab\xbb\xbb\xab";function tD(t){for(let e=0;e<tx.length;e+=2)if(tx.charCodeAt(e)==t)return tx.charAt(e+1);return(0,s.bg)(t<128?t:t+1)}function tk(t,e){return t.languageDataAt("closeBrackets",e)[0]||ty}let tS="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),tE=a.tk.inputHandler.of((t,e,n,r)=>{if((tS?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let o=t.state.selection.main;if(r.length>2||2==r.length&&1==(0,s.nZ)((0,s.gm)(r,0))||e!=o.from||n!=o.to)return!1;let a=function(t,e){let n=tk(t,t.selection.main.head),r=n.brackets||ty.brackets;for(let o of r){let a=tD((0,s.gm)(o,0));if(e==o)return a==o?function(t,e,n,r){let o=r.stringPrefixes||ty.stringPrefixes,a=null,l=t.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:e,from:r.to}],effects:tv.of(r.to+e.length),range:s.jT.range(r.anchor+e.length,r.head+e.length)};let l=r.head,c=tA(t.doc,l),h;if(c==e){if(tM(t,l))return{changes:{insert:e+e,from:l},effects:tv.of(l+e.length),range:s.jT.cursor(l+e.length)};if(tT(t,l)){let r=n&&t.sliceDoc(l,l+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+r.length,insert:r},range:s.jT.cursor(l+r.length)}}}else if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(h=tP(t,l-2*e.length,o))>-1&&tM(t,h))return{changes:{insert:e+e+e+e,from:l},effects:tv.of(l+e.length),range:s.jT.cursor(l+e.length)};else if(t.charCategorizer(l)(c)!=s.D0.Word&&tP(t,l,o)>-1&&!function(t,e,n,r){let o=(0,u.qz)(t).resolveInner(e,-1),s=r.reduce((t,e)=>Math.max(t,e.length),0);for(let a=0;a<5;a++){let a=t.sliceDoc(o.from,Math.min(o.to,o.from+n.length+s)),u=a.indexOf(n);if(!u||u>-1&&r.indexOf(a.slice(0,u))>-1){let e=o.firstChild;for(;e&&e.from==o.from&&e.to-e.from>n.length+u;){if(t.sliceDoc(e.to-n.length,e.to)==n)return!1;e=e.firstChild}return!0}let l=o.to==e&&o.parent;if(!l)break;o=l}return!1}(t,l,e,o))return{changes:{insert:e+e,from:l},effects:tv.of(l+e.length),range:s.jT.cursor(l+e.length)};return{range:a=r}});return a?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}(t,o,r.indexOf(o+o+o)>-1,n):function(t,e,n,r){let o=null,a=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:n,from:a.to}],effects:tv.of(a.to+e.length),range:s.jT.range(a.anchor+e.length,a.head+e.length)};let u=tA(t.doc,a.head);return!u||/\s/.test(u)||r.indexOf(u)>-1?{changes:{insert:e+n,from:a.head},effects:tv.of(a.head+e.length),range:s.jT.cursor(a.head+e.length)}:{range:o=a}});return o?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(t,o,a,n.before||ty.before);if(e==a&&tT(t,t.selection.main.from))return function(t,e,n){let r=null,o=t.changeByRange(e=>e.empty&&tA(t.doc,e.head)==n?{changes:{from:e.head,to:e.head+n.length,insert:n},range:s.jT.cursor(e.head+n.length)}:r={range:e});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}(t,o,a)}return null}(t.state,r);return!!a&&(t.dispatch(a),!0)}),tC=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=tk(t,t.selection.main.head).brackets||ty.brackets,r=null,o=t.changeByRange(e=>{if(e.empty){let r=function(t,e){let n=t.sliceString(e-2,e);return(0,s.nZ)((0,s.gm)(n,0))==n.length?n:n.slice(1)}(t.doc,e.head);for(let o of n)if(o==r&&tA(t.doc,e.head)==tD((0,s.gm)(o,0)))return{changes:{from:e.head-o.length,to:e.head+o.length},range:s.jT.cursor(e.head-o.length)}}return{range:r=e}});return!r&&e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function tT(t,e){let n=!1;return t.field(tO).between(0,t.doc.length,t=>{t==e&&(n=!0)}),n}function tA(t,e){let n=t.sliceString(e,e+2);return n.slice(0,(0,s.nZ)((0,s.gm)(n,0)))}function tM(t,e){let n=(0,u.qz)(t).resolveInner(e+1);return n.parent&&n.from==e}function tP(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=s.D0.Word)return e;for(let o of n){let n=e-o.length;if(t.sliceDoc(n,e)==o&&r(t.sliceDoc(n-1,n))!=s.D0.Word)return n}return -1}function tB(t={}){return[K,V,S.of(t),G,tF,J]}let tI=[{key:"Ctrl-Space",run:U},{mac:"Alt-`",run:U},{key:"Escape",run:t=>{let e=t.state.field(V,!1);return!!(e&&e.active.some(t=>0!=t.state))&&(t.dispatch({effects:x.of(null)}),!0)}},{key:"ArrowDown",run:z(!0)},{key:"ArrowUp",run:z(!1)},{key:"PageDown",run:z(!0,"page")},{key:"PageUp",run:z(!1,"page")},{key:"Enter",run:q}],tF=s.Wl.highest(a.$f.computeN([S],t=>t.facet(S).defaultKeymap?[tI]:[]))},992814:function(t,e,n){"use strict";n.d(e,{KX:function(){return D},Yw:function(){return x},f$:function(){return F},m8:function(){return O},oc:function(){return tB},wQ:function(){return tP}});var r=n(913693),o=n(249294),s=n(562312),a=n(437254);function u(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let o=t(e,n);return!!o&&(r(n.update(o)),!0)}}let l=u(function(t,e,n=e.selection.ranges){let r=[],o=-1;for(let{from:t,to:s}of n){let n=r.length,a=1e9,u=f(e,t).line;if(u){for(let n=t;n<=s;){let l=e.doc.lineAt(n);if(l.from>o&&(t==s||s>l.from)){o=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,n=l.text.slice(t,t+u.length)==u?t:-1;t<l.text.length&&t<a&&(a=t),r.push({line:l,comment:n,token:u,indent:t,empty:e,single:!1})}n=l.to+1}if(a<1e9)for(let t=n;t<r.length;t++)r[t].indent<r[t].line.text.length&&(r[t].indent=a);r.length==n+1&&(r[n].single=!0)}}if(2!=t&&r.some(t=>t.comment<0&&(!t.empty||t.single))){let t=[];for(let{line:e,token:n,indent:o,empty:s,single:a}of r)(a||!s)&&t.push({from:e.from+o,insert:n+" "});let n=e.changes(t);return{changes:n,selection:e.selection.map(n,1)}}if(1!=t&&r.some(t=>t.comment>=0)){let t=[];for(let{line:e,comment:n,token:o}of r)if(n>=0){let r=e.from+n,s=r+o.length;" "==e.text[s-e.from]&&s++,t.push({from:r,to:s})}return{changes:t}}return null},0),c=u(p,0),h=u((t,e)=>p(t,e,function(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),o=n.to<=r.to?r:t.doc.lineAt(n.to);o.from>r.from&&o.from==n.to&&(o=n.to==r.to+1?r:t.doc.lineAt(n.to-1));let s=e.length-1;s>=0&&e[s].to>r.from?e[s].to=o.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return e}(e)),0);function f(t,e){let n=t.languageDataAt("commentTokens",e,1);return n.length?n[0]:{}}function p(t,e,n=e.selection.ranges){let r=n.map(t=>f(e,t.from).block);if(!r.every(t=>t))return null;let o=n.map((t,n)=>(function(t,{open:e,close:n},r,o){let s,a,u=t.sliceDoc(r-50,r),l=t.sliceDoc(o,o+50),c=/\s*$/.exec(u)[0].length,h=/^\s*/.exec(l)[0].length,f=u.length-c;if(u.slice(f-e.length,f)==e&&l.slice(h,h+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:o+h,margin:h&&1}};o-r<=100?s=a=t.sliceDoc(r,o):(s=t.sliceDoc(r,r+50),a=t.sliceDoc(o-50,o));let p=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(a)[0].length,m=a.length-d-n.length;return s.slice(p,p+e.length)==e&&a.slice(m,m+n.length)==n?{open:{pos:r+p+e.length,margin:/\s/.test(s.charAt(p+e.length))?1:0},close:{pos:o-d-n.length,margin:/\s/.test(a.charAt(m-1))?1:0}}:null})(e,r[n],t.from,t.to));if(2!=t&&!o.every(t=>t))return{changes:e.changes(n.map((t,e)=>o[e]?[]:[{from:t.from,insert:r[e].open+" "},{from:t.to,insert:" "+r[e].close}]))};if(1!=t&&o.some(t=>t)){let t=[];for(let e=0,n;e<o.length;e++)if(n=o[e]){let o=r[e],{open:s,close:a}=n;t.push({from:s.pos-o.open.length,to:s.pos+s.margin},{from:a.pos-a.margin,to:a.pos+o.close.length})}return{changes:t}}return null}let d=r.q6.define(),m=r.q6.define(),g=r.r$.define(),y=r.r$.define({combine:t=>(0,r.BO)(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(n,r)=>t(n,r)||e(n,r)})}),b=r.QQ.define({create:()=>I.empty,update(t,e){let n=e.state.facet(y),o=e.annotation(d);if(o){let r=E.fromTransaction(e,o.selection),s=o.side,a=0==s?t.undone:t.done;return a=r?C(a,a.length,n.minDepth,r):M(a,e.startState.selection),new I(0==s?o.rest:a,0==s?a:o.rest)}let s=e.annotation(m);if(("full"==s||"before"==s)&&(t=t.isolate()),!1===e.annotation(r.YW.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let a=E.fromTransaction(e),u=e.annotation(r.YW.time),l=e.annotation(r.YW.userEvent);return a?t=t.addChanges(a,u,l,n,e):e.selection&&(t=t.addSelection(e.startState.selection,u,l,n.newGroupDelay)),("full"==s||"after"==s)&&(t=t.isolate()),t},toJSON:t=>({done:t.done.map(t=>t.toJSON()),undone:t.undone.map(t=>t.toJSON())}),fromJSON:t=>new I(t.done.map(E.fromJSON),t.undone.map(E.fromJSON))});function O(t={}){return[b,y.of(t),o.tk.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?x:"historyRedo"==t.inputType?D:null;return!!n&&(t.preventDefault(),n(e))}})]}function w(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let o=n.field(b,!1);if(!o)return!1;let s=o.pop(t,n,e);return!!s&&(r(s),!0)}}let x=w(0,!1),D=w(1,!1),k=w(0,!0),S=w(1,!0);class E{constructor(t,e,n,r,o){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=r,this.selectionsAfter=o}setSelAfter(t){return new E(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(t=>t.toJSON())}}static fromJSON(t){return new E(t.changes&&r.as.fromJSON(t.changes),[],t.mapped&&r.n0.fromJSON(t.mapped),t.startSelection&&r.jT.fromJSON(t.startSelection),t.selectionsAfter.map(r.jT.fromJSON))}static fromTransaction(t,e){let n=A;for(let e of t.startState.facet(g)){let r=e(t);r.length&&(n=n.concat(r))}return!n.length&&t.changes.empty?null:new E(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,A)}static selection(t){return new E(void 0,A,void 0,void 0,t)}}function C(t,e,n,r){let o=t.slice(e+1>n+20?e-n-1:0,e);return o.push(r),o}function T(t,e){return t.length?e.length?t.concat(e):t:e}let A=[];function M(t,e){if(!t.length)return[E.selection([e])];{let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),C(t,t.length-1,1e9,n.setSelAfter(r)))}}function P(t,e){if(!t.length)return t;let n=t.length,o=A;for(;n;){let s=function(t,e,n){let o=T(t.selectionsAfter.length?t.selectionsAfter.map(t=>t.map(e)):A,n);if(!t.changes)return E.selection(o);let s=t.changes.map(e),a=e.mapDesc(t.changes,!0),u=t.mapped?t.mapped.composeDesc(a):a;return new E(s,r.Py.mapEffects(t.effects,e),u,t.startSelection.map(a),o)}(t[n-1],e,o);if(s.changes&&!s.changes.empty||s.effects.length){let e=t.slice(0,n);return e[n-1]=s,e}e=s.mapped,n--,o=s.selectionsAfter}return o.length?[E.selection(o)]:A}let B=/^(input\.type|delete)($|\.)/;class I{constructor(t,e,n=0,r){this.done=t,this.undone=e,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new I(this.done,this.undone):this}addChanges(t,e,n,o,s){var a,u;let l,c,h=this.done,f=h[h.length-1];if(f&&f.changes&&!f.changes.empty&&t.changes&&(!n||B.test(n))&&(!f.selectionsAfter.length&&e-this.prevTime<o.newGroupDelay&&o.joinToEvent(s,(a=f.changes,u=t.changes,l=[],c=!1,a.iterChangedRanges((t,e)=>l.push(t,e)),u.iterChangedRanges((t,e,n,r)=>{for(let t=0;t<l.length;){let e=l[t++],o=l[t++];r>=e&&n<=o&&(c=!0)}}),c))||"input.type.compose"==n))h=C(h,h.length-1,o.minDepth,new E(t.changes.compose(f.changes),T(r.Py.mapEffects(t.effects,f.changes),f.effects),f.mapped,f.startSelection,A));else h=C(h,h.length,o.minDepth,t);return new I(h,A,e,n)}addSelection(t,e,n,r){var o,s;let a=this.done.length?this.done[this.done.length-1].selectionsAfter:A;return a.length>0&&e-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(o=a[a.length-1],s=t,o.ranges.length==s.ranges.length&&0===o.ranges.filter((t,e)=>t.empty!=s.ranges[e].empty).length)?this:new I(M(this.done,t),this.undone,e,n)}addMapping(t){return new I(P(this.done,t),P(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,n){let r=0==t?this.done:this.undone;if(0==r.length)return null;let o=r[r.length-1],s=o.selectionsAfter[0]||e.selection;if(n&&o.selectionsAfter.length){var a;let n,u;return e.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:d.of({side:t,rest:(n=(a=r)[a.length-1],(u=a.slice())[a.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),u),selection:s}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0})}if(!o.changes)return null;{let n=1==r.length?A:r.slice(0,r.length-1);return o.mapped&&(n=P(n,o.mapped)),e.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:d.of({side:t,rest:n,selection:s}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}}}I.empty=new I(A,A);let F=[{key:"Mod-z",run:x,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:D,preventDefault:!0},{linux:"Ctrl-Shift-z",run:D,preventDefault:!0},{key:"Mod-u",run:k,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:S,preventDefault:!0}];function N(t,e){return r.jT.create(t.ranges.map(e),t.mainIndex)}function L(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function _({state:t,dispatch:e},n){let r=N(t.selection,n);return!r.eq(t.selection,!0)&&(e(L(t,r)),!0)}function X(t,e){return r.jT.cursor(e?t.to:t.from)}function R(t,e){return _(t,n=>n.empty?t.moveByChar(n,e):X(n,e))}function j(t){return t.textDirectionAt(t.state.selection.main.head)==o.Nm.LTR}let $=t=>R(t,!j(t)),V=t=>R(t,j(t));function H(t,e){return _(t,n=>n.empty?t.moveByGroup(n,e):X(n,e))}"undefined"!=typeof Intl&&Intl.Segmenter;function W(t,e,n){let o,u,l=(0,s.qz)(t).resolveInner(e.head),c=n?a.md.closedBy:a.md.openedBy;for(let r=e.head;;){let e=n?l.childAfter(r):l.childBefore(r);if(!e)break;(function(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild})(t,e,c)?l=e:r=n?e.to:e.from}return u=l.type.prop(c)&&(o=n?(0,s.Um)(t,l.from,1):(0,s.Um)(t,l.to,-1))&&o.matched?n?o.end.to:o.end.from:n?l.to:l.from,r.jT.cursor(u,n?-1:1)}function z(t,e){return _(t,n=>{if(!n.empty)return X(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}let q=t=>z(t,!1),U=t=>z(t,!0);function Y(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,s;if(e){for(let e of t.state.facet(o.tk.scrollMargins)){let o=e(t);(null==o?void 0:o.top)&&(n=Math.max(null==o?void 0:o.top,n)),(null==o?void 0:o.bottom)&&(r=Math.max(null==o?void 0:o.bottom,r))}s=t.scrollDOM.clientHeight-n-r}else s=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,s-5)}}function G(t,e){let n,r=Y(t),{state:s}=t,a=N(s.selection,n=>n.empty?t.moveVertically(n,e,r.height):X(n,e));if(a.eq(s.selection))return!1;if(r.selfScroll){let e=t.coordsAtPos(s.selection.main.head),u=t.scrollDOM.getBoundingClientRect(),l=u.top+r.marginTop,c=u.bottom-r.marginBottom;e&&e.top>l&&e.bottom<c&&(n=o.tk.scrollIntoView(a.main.head,{y:"start",yMargin:e.top-l}))}return t.dispatch(L(s,a),{effects:n}),!0}let Q=t=>G(t,!1),K=t=>G(t,!0);function J(t,e,n){let o=t.lineBlockAt(e.head),s=t.moveToLineBoundary(e,n);if(s.head==e.head&&s.head!=(n?o.to:o.from)&&(s=t.moveToLineBoundary(e,n,!1)),!n&&s.head==o.from&&o.length){let n=/^\s*/.exec(t.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;n&&e.head!=o.from+n&&(s=r.jT.cursor(o.from+n))}return s}function Z(t,e){let n=N(t.state.selection,t=>{let n=e(t);return r.jT.range(t.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(t.state.selection)&&(t.dispatch(L(t.state,n)),!0)}function tt(t,e){return Z(t,n=>t.moveByChar(n,e))}let te=t=>tt(t,!j(t)),tn=t=>tt(t,j(t));function tr(t,e){return Z(t,n=>t.moveByGroup(n,e))}function ti(t,e){return Z(t,n=>t.moveVertically(n,e))}let to=t=>ti(t,!1),ts=t=>ti(t,!0);function ta(t,e){return Z(t,n=>t.moveVertically(n,e,Y(t).height))}let tu=t=>ta(t,!1),tl=t=>ta(t,!0),tc=({state:t,dispatch:e})=>(e(L(t,{anchor:0})),!0),th=({state:t,dispatch:e})=>(e(L(t,{anchor:t.doc.length})),!0),tf=({state:t,dispatch:e})=>(e(L(t,{anchor:t.selection.main.anchor,head:0})),!0),tp=({state:t,dispatch:e})=>(e(L(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function td(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:s}=t,a=s.changeByRange(o=>{let{from:s,to:a}=o;if(s==a){let r=e(o);r<s?(n="delete.backward",r=tm(t,r,!1)):r>s&&(n="delete.forward",r=tm(t,r,!0)),s=Math.min(s,r),a=Math.max(a,r)}else s=tm(t,s,!1),a=tm(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:r.jT.cursor(s,s<o.head?-1:1)}});return!a.changes.empty&&(t.dispatch(s.update(a,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?o.tk.announce.of(s.phrase("Selection deleted")):void 0})),!0)}function tm(t,e,n){if(t instanceof o.tk)for(let r of t.state.facet(o.tk.atomicRanges).map(e=>e(t)))r.between(e,e,(t,r)=>{t<e&&r>e&&(e=n?r:t)});return e}let tg=(t,e,n)=>td(t,o=>{let a=o.from,{state:u}=t,l=u.doc.lineAt(a),c,h;if(n&&!e&&a>l.from&&a<l.from+200&&!/[^ \t]/.test(c=l.text.slice(0,a-l.from))){if(" "==c[c.length-1])return a-1;let t=(0,r.IS)(c,u.tabSize)%(0,s.y1)(u)||(0,s.y1)(u);for(let e=0;e<t&&" "==c[c.length-1-e];e++)a--;h=a}else(h=(0,r.cp)(l.text,a-l.from,e,e)+l.from)==a&&l.number!=(e?u.doc.lines:1)?h+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(l.text.slice(h-l.from,a-l.from))&&(h=(0,r.cp)(l.text,h-l.from,!1,!1)+l.from);return h}),ty=t=>tg(t,!1,!0),tv=t=>tg(t,!0,!1),tb=(t,e)=>td(t,n=>{let o=n.head,{state:s}=t,a=s.doc.lineAt(o),u=s.charCategorizer(o);for(let t=null;;){if(o==(e?a.to:a.from)){o==n.head&&a.number!=(e?s.doc.lines:1)&&(o+=e?1:-1);break}let l=(0,r.cp)(a.text,o-a.from,e)+a.from,c=a.text.slice(Math.min(o,l)-a.from,Math.max(o,l)-a.from),h=u(c);if(null!=t&&h!=t)break;(" "!=c||o!=n.head)&&(t=h),o=l}return o}),tO=t=>tb(t,!1);function tw(t){let e=[],n=-1;for(let r of t.selection.ranges){let o=t.doc.lineAt(r.from),s=t.doc.lineAt(r.to);if(!r.empty&&r.to==s.from&&(s=t.doc.lineAt(r.to-1)),n>=o.number){let t=e[e.length-1];t.to=s.to,t.ranges.push(r)}else e.push({from:o.from,to:s.to,ranges:[r]});n=s.number+1}return e}function tx(t,e,n){if(t.readOnly)return!1;let o=[],s=[];for(let e of tw(t)){if(n?e.to==t.doc.length:0==e.from)continue;let a=t.doc.lineAt(n?e.to+1:e.from-1),u=a.length+1;if(n)for(let n of(o.push({from:e.to,to:a.to},{from:e.from,insert:a.text+t.lineBreak}),e.ranges))s.push(r.jT.range(Math.min(t.doc.length,n.anchor+u),Math.min(t.doc.length,n.head+u)));else for(let n of(o.push({from:a.from,to:e.from},{from:e.to,insert:t.lineBreak+a.text}),e.ranges))s.push(r.jT.range(n.anchor-u,n.head-u))}return!!o.length&&(e(t.update({changes:o,scrollIntoView:!0,selection:r.jT.create(s,t.selection.mainIndex),userEvent:"move.line"})),!0)}function tD(t,e,n){if(t.readOnly)return!1;let r=[];for(let e of tw(t))n?r.push({from:e.from,insert:t.doc.slice(e.from,e.to)+t.lineBreak}):r.push({from:e.to,insert:t.lineBreak+t.doc.slice(e.from,e.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let tk=tE(!1),tS=tE(!0);function tE(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let o=e.changeByRange(n=>{let{from:o,to:u}=n,l=e.doc.lineAt(o),c=!t&&o==u&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=(0,s.qz)(t).resolveInner(e),r=n.childBefore(e),o=n.childAfter(e),u;return r&&o&&r.to<=e&&o.from>=e&&(u=r.type.prop(a.md.closedBy))&&u.indexOf(o.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(o.from).from&&!/\S/.test(t.sliceDoc(r.to,o.from))?{from:r.to,to:o.from}:null}(e,o);t&&(o=u=(u<=l.to?l:e.doc.lineAt(u)).to);let h=new s.Gn(e,{simulateBreak:o,simulateDoubleBreak:!!c}),f=(0,s.K0)(h,o);for(null==f&&(f=(0,r.IS)(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));u<l.to&&/\s/.test(l.text[u-l.from]);)u++;c?{from:o,to:u}=c:o>l.from&&o<l.from+100&&!/\S/.test(l.text.slice(0,o))&&(o=l.from);let p=["",(0,s.SS)(e,f)];return c&&p.push((0,s.SS)(e,h.lineIndent(l.from,-1))),{changes:{from:o,to:u,insert:r.xv.of(p)},range:r.jT.cursor(o+1+p[1].length)}});return n(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function tC(t,e){let n=-1;return t.changeByRange(o=>{let s=[];for(let r=o.from;r<=o.to;){let a=t.doc.lineAt(r);a.number>n&&(o.empty||o.to>a.from)&&(e(a,s,o),n=a.number),r=a.to+1}let a=t.changes(s);return{changes:s,range:r.jT.range(a.mapPos(o.anchor,1),a.mapPos(o.head,1))}})}let tT=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(tC(t,(e,n)=>{n.push({from:e.from,insert:t.facet(s.c)})}),{userEvent:"input.indent"})),!0),tA=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(tC(t,(e,n)=>{let o=/^\s*/.exec(e.text)[0];if(!o)return;let a=(0,r.IS)(o,t.tabSize),u=0,l=(0,s.SS)(t,Math.max(0,a-(0,s.y1)(t)));for(;u<o.length&&u<l.length&&o.charCodeAt(u)==l.charCodeAt(u);)u++;n.push({from:e.from+u,to:e.from+o.length,insert:l.slice(u)})}),{userEvent:"delete.dedent"})),!0),tM=[{key:"Ctrl-b",run:$,shift:te,preventDefault:!0},{key:"Ctrl-f",run:V,shift:tn},{key:"Ctrl-p",run:q,shift:to},{key:"Ctrl-n",run:U,shift:ts},{key:"Ctrl-a",run:t=>_(t,e=>r.jT.cursor(t.lineBlockAt(e.head).from,1)),shift:t=>Z(t,e=>r.jT.cursor(t.lineBlockAt(e.head).from))},{key:"Ctrl-e",run:t=>_(t,e=>r.jT.cursor(t.lineBlockAt(e.head).to,-1)),shift:t=>Z(t,e=>r.jT.cursor(t.lineBlockAt(e.head).to))},{key:"Ctrl-d",run:tv},{key:"Ctrl-h",run:ty},{key:"Ctrl-k",run:t=>td(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)})},{key:"Ctrl-Alt-h",run:tO},{key:"Ctrl-o",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:r.xv.of(["",""])},range:r.jT.cursor(t.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,o=t.doc.lineAt(n),s=n==o.from?n-1:(0,r.cp)(o.text,n-o.from,!1)+o.from,a=n==o.to?n+1:(0,r.cp)(o.text,n-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:t.doc.slice(n,a).append(t.doc.slice(s,n))},range:r.jT.cursor(a)}});return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:K}],tP=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:t=>_(t,e=>W(t.state,e,!j(t))),shift:t=>Z(t,e=>W(t.state,e,!j(t)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>_(t,e=>W(t.state,e,j(t))),shift:t=>Z(t,e=>W(t.state,e,j(t)))},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>tx(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>tD(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>tx(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>tD(t,e,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let n=t.selection,o=null;return n.ranges.length>1?o=r.jT.create([n.main]):!n.main.empty&&(o=r.jT.create([r.jT.cursor(n.main.head)])),!!o&&(e(L(t,o)),!0)}},{key:"Mod-Enter",run:tS},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let n=tw(t).map(({from:e,to:n})=>r.jT.range(e,Math.min(n+1,t.doc.length)));return e(t.update({selection:r.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let n=N(t.selection,e=>{let n=(0,s.qz)(t),o=n.resolveStack(e.from,1);if(e.empty){let t=n.resolveStack(e.from,-1);t.node.from>=o.node.from&&t.node.to<=o.node.to&&(o=t)}for(let t=o;t;t=t.next){let{node:n}=t;if((n.from<e.from&&n.to>=e.to||n.to>e.to&&n.from<=e.from)&&t.next)return r.jT.range(n.to,n.from)}return e});return!n.eq(t.selection)&&(e(L(t,n)),!0)},preventDefault:!0},{key:"Mod-[",run:tA},{key:"Mod-]",run:tT},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new s.Gn(t,{overrideIndentation:t=>{let e=n[t];return null==e?-1:e}}),o=tC(t,(e,o,a)=>{let u=(0,s.K0)(r,e.from);if(null==u)return;!/\S/.test(e.text)&&(u=0);let l=/^\s*/.exec(e.text)[0],c=(0,s.SS)(t,u);(l!=c||a.from<e.from+l.length)&&(n[e.from]=u,o.push({from:e.from,to:e.from+l.length,insert:c}))});return!o.changes.empty&&e(t.update(o,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(tw(e).map(({from:t,to:n})=>(t>0?t--:n<e.doc.length&&n++,{from:t,to:n}))),r=N(e.selection,e=>{let n;if(t.lineWrapping){let r=t.lineBlockAt(e.head),o=t.coordsAtPos(e.head,e.assoc||1);o&&(n=r.bottom+t.documentTop-o.bottom+t.defaultLineHeight/2)}return t.moveVertically(e,!0,n)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>{var n,o,a;let u,l;return n=t,o=e,a=!1,u=!1,l=N(n.selection,t=>{let e=(0,s.Um)(n,t.head,-1)||(0,s.Um)(n,t.head,1)||t.head>0&&(0,s.Um)(n,t.head-1,1)||t.head<n.doc.length&&(0,s.Um)(n,t.head+1,-1);if(!e||!e.end)return t;u=!0;let o=e.start.from==t.head?e.end.to:e.end.from;return a?r.jT.range(t.anchor,o):r.jT.cursor(o)}),!!u&&(o(L(n,l)),!0)}},{key:"Mod-/",run:t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=f(t.state,n.from);return r.line?l(t):!!r.block&&h(t)}},{key:"Alt-A",run:c},{key:"Ctrl-m",mac:"Shift-Alt-m",run:t=>(t.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:$,shift:te,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>H(t,!j(t)),shift:t=>tr(t,!j(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>_(t,e=>J(t,e,!j(t))),shift:t=>Z(t,e=>J(t,e,!j(t))),preventDefault:!0},{key:"ArrowRight",run:V,shift:tn,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>H(t,j(t)),shift:t=>tr(t,j(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>_(t,e=>J(t,e,j(t))),shift:t=>Z(t,e=>J(t,e,j(t))),preventDefault:!0},{key:"ArrowUp",run:q,shift:to,preventDefault:!0},{mac:"Cmd-ArrowUp",run:tc,shift:tf},{mac:"Ctrl-ArrowUp",run:Q,shift:tu},{key:"ArrowDown",run:U,shift:ts,preventDefault:!0},{mac:"Cmd-ArrowDown",run:th,shift:tp},{mac:"Ctrl-ArrowDown",run:K,shift:tl},{key:"PageUp",run:Q,shift:tu},{key:"PageDown",run:K,shift:tl},{key:"Home",run:t=>_(t,e=>J(t,e,!1)),shift:t=>Z(t,e=>J(t,e,!1)),preventDefault:!0},{key:"Mod-Home",run:tc,shift:tf},{key:"End",run:t=>_(t,e=>J(t,e,!0)),shift:t=>Z(t,e=>J(t,e,!0)),preventDefault:!0},{key:"Mod-End",run:th,shift:tp},{key:"Enter",run:tk,shift:tk},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:ty,shift:ty},{key:"Delete",run:tv},{key:"Mod-Backspace",mac:"Alt-Backspace",run:tO},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>tb(t,!0)},{mac:"Mod-Backspace",run:t=>td(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)})},{mac:"Mod-Delete",run:t=>td(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)})}].concat(tM.map(t=>({mac:t.key,run:t.run,shift:t.shift})))),tB={key:"Tab",run:tT,shift:tA}},562312:function(t,e,n){"use strict";n.d(e,{Dv:function(){return z},Gn:function(){return I},K0:function(){return B},KC:function(){return f},Qf:function(){return tf},R_:function(){return tv},SQ:function(){return p},SS:function(){return P},Um:function(){return tx},c:function(){return A},e7:function(){return te},il:function(){return tC},kU:function(){return h},mi:function(){return tc},nF:function(){return tg},nY:function(){return V},pp:function(){return c},qp:function(){return m},qz:function(){return g},ri:function(){return C},rs:function(){return H},tC:function(){return $},uj:function(){return F},vw:function(){return X},x0:function(){return W},y1:function(){return M},ze:function(){return j}});var r,o=n(437254),s=n(913693),a=n(249294),u=n(888855),l=n(775985);let c=new o.md;function h(t){return s.r$.define({combine:t?e=>e.concat(t):void 0})}let f=new o.md;class p{constructor(t,e,n=[],r=""){this.data=t,this.name=r,!s.yy.prototype.hasOwnProperty("tree")&&Object.defineProperty(s.yy.prototype,"tree",{get(){return g(this)}}),this.parser=e,this.extension=[E.of(this),s.yy.languageData.of((t,e,n)=>{let r=d(t,e,n),o=r.type.prop(c);if(!o)return[];let s=t.facet(o),a=r.type.prop(f);if(a){let o=r.resolve(e-r.from,n);for(let e of a)if(e.test(o,t)){let n=t.facet(e.facet);return"replace"==e.type?n:n.concat(s)}}return s})].concat(n)}isActiveAt(t,e,n=-1){return d(t,e,n).type.prop(c)==this.data}findRegions(t){let e=t.facet(E);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],r=(t,e)=>{if(t.prop(c)==this.data){n.push({from:e,to:e+t.length});return}let s=t.prop(o.md.mounted);if(s){if(s.tree.prop(c)==this.data){if(s.overlay)for(let t of s.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}if(s.overlay){let t=n.length;if(r(s.tree,s.overlay[0].from+e),n.length>t)return}}for(let n=0;n<t.children.length;n++){let s=t.children[n];s instanceof o.mp&&r(s,t.positions[n]+e)}};return r(g(t),0),n}get allowsNesting(){return!0}}function d(t,e,n){let r=t.facet(E),s=g(t).topNode;if(!r||r.allowsNesting)for(let t=s;t;t=t.enter(e,n,o.vj.ExcludeBuffers))t.type.isTop&&(s=t);return s}p.setState=s.Py.define();class m extends p{constructor(t,e,n){super(t,e,[],n),this.parser=e}static define(t){let e=h(t.languageData);return new m(e,t.parser.configure({props:[c.add(t=>t.isTop?e:void 0)]}),t.name)}configure(t,e){return new m(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function g(t){let e=t.field(p.state,!1);return e?e.tree:o.mp.empty}class y{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t<n||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let b=null;class O{constructor(t,e,n=[],r,o,s,a,u){this.parser=t,this.state=e,this.fragments=n,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new O(t,e,[],o.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new y(this.state.doc),this.fragments)}work(t,e){return(null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=o.mp.empty&&this.isDone(null!=e?e:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(!this.parse&&(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(o.i9.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=e?e:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(o.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=b;b=this;try{return t()}finally{b=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=w(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:r,treeLen:s,viewport:a,skipped:u}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges((t,n,r,o)=>e.push({fromA:t,toA:n,fromB:r,toB:o})),n=o.i9.applyChanges(n,e),r=o.mp.empty,s=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length)for(let e of(u=[],this.skipped)){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);n<r&&u.push({from:n,to:r})}}return new O(this.parser,e,n,r,s,a,u,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let e=0;e<this.skipped.length;e++){let{from:n,to:r}=this.skipped[e];n<t.to&&r>t.from&&(this.fragments=w(this.fragments,n,r),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends o._b{createParse(e,n,r){let s=r[0].from,a=r[r.length-1].to;return{parsedPos:s,advance(){let e=b;if(e){for(let t of r)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=a,new o.mp(o.Jq.none,[],[],a-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return b}}function w(t,e,n){return o.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class x{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return!e.work(20,n)&&e.takeTree(),new x(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=O.create(t.facet(E).parser,t,{from:0,to:e});return!n.work(20,e)&&n.takeTree(),new x(n)}}p.state=s.QQ.define({create:x.init,update(t,e){for(let t of e.effects)if(t.is(p.setState))return t.value;return e.startState.facet(E)!=e.state.facet(E)?x.init(e.state):t.apply(e)}});let D=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(D=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});let k="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,S=a.lg.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(p.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(p.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=D(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,o=n.field(p.state);if(o.tree==o.context.tree&&o.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,t&&!k?Math.max(25,t.timeRemaining()-5):1e9),a=o.context.treeLen<r&&n.doc.length>r+1e3,u=o.context.work(()=>k&&k()||Date.now()>s,r+(a?0:1e5));this.chunkBudget-=Date.now()-e,(u||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:p.setState.of(new x(o.context))})),this.chunkBudget>0&&!(u&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>(0,a.OO)(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),E=s.r$.define({combine:t=>t.length?t[0]:null,enables:t=>[p.state,S,a.tk.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class C{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}let T=s.r$.define(),A=s.r$.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function M(t){let e=t.facet(A);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function P(t,e){let n="",r=t.tabSize,o=t.facet(A)[0];if(" "==o){for(;e>=r;)n+=" ",e-=r;o=" "}for(let t=0;t<e;t++)n+=o;return n}function B(t,e){for(let n of(t instanceof s.yy&&(t=new I(t)),t.state.facet(T))){let r=n(t,e);if(void 0!==r)return r}let n=g(t.state);return n.length>=e?function(t,e,n){let r=e.resolveStack(n),o=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(o!=r.node){let t=[];for(let e=o;e&&!(e.from<r.node.from||e.to>r.node.to||e.from==r.node.from&&e.type==r.node.type);e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)r={node:t[e],next:r}}return N(r,t,n)}(t,n,e):null}class I{constructor(t,e={}){this.state=t,this.options=e,this.unit=M(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:r,simulateDoubleBreak:o}=this.options;if(null!=r&&r>=n.from&&r<=n.to)return o&&r==t?{text:"",from:t}:(e<0?r<t:r<=t)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from};return n}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(t,e);return n.slice(t-r,Math.min(n.length,t+100-r))}column(t,e=1){let{text:n,from:r}=this.lineAt(t,e),o=this.countColumn(n,t-r),s=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return s>-1&&(o+=s-this.countColumn(n,n.search(/\S|$/))),o}countColumn(t,e=t.length){return(0,s.IS)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e),o=this.options.overrideIndentation;if(o){let t=o(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let F=new o.md;function N(t,e,n){for(let r=t;r;r=r.next){let t=function(t){let e=t.type.prop(F);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(o.md.closedBy))){let e=t.lastChild,n=e&&r.indexOf(e.name)>-1;return t=>{var r;return R(t,!0,1,void 0,n&&!((r=t).pos==r.options.simulateBreak&&r.options.simulateDoubleBreak)?e.from:void 0)}}return null==t.parent?L:null}(r.node);if(t)return t(_.create(e,n,r))}return 0}function L(){return 0}class _ extends I{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.context=n}get node(){return this.context.node}static create(t,e,n){return new _(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){return N(this.context.next,this.base,this.pos)}}function X({closing:t,align:e=!0,units:n=1}){return r=>R(r,e,n,t)}function R(t,e,n,r,o){let s=t.textAfter,a=s.match(/^\s*/)[0].length,u=r&&s.slice(a,a+r.length)==r||o==t.pos+a,l=e?function(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let o=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),a=null==o||o<=s.from?s.to:Math.min(s.to,o);for(let t=n.to;;){let o=e.childAfter(t);if(!o||o==r)return null;if(!o.type.isSkipped){if(o.from>=a)return null;let t=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return{from:n.from,to:n.to+t}}t=o.to}}(t):null;return l?u?t.column(l.from):t.column(l.to):t.baseIndent+(u?0:t.unit*n)}let j=t=>t.baseIndent;function $({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}function V(){return s.yy.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,o=n.lineAt(r);if(r>o.from+200)return t;let s=n.sliceString(o.from,r);if(!e.some(t=>t.test(s)))return t;let{state:a}=t,u=-1,l=[];for(let{head:t}of a.selection.ranges){let e=a.doc.lineAt(t);if(e.from==u)continue;u=e.from;let n=B(a,e.from);if(null==n)continue;let r=/^\s*/.exec(e.text)[0],o=P(a,n);r!=o&&l.push({from:e.from,to:e.from+r.length,insert:o})}return l.length?[t,{changes:l,sequential:!0}]:t})}let H=s.r$.define(),W=new o.md;function z(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function q(t,e,n){for(let r of t.facet(H)){let o=r(t,e,n);if(o)return o}return function(t,e,n){let r=g(t);if(r.length<n)return null;let o=r.resolveStack(n,1),s=null;for(let a=o;a;a=a.next){let o=a.node;if(o.to<=n||o.from>n)continue;if(s&&o.from<e)break;let u=o.type.prop(W);if(u&&(o.to<r.length-50||r.length==t.doc.length||!function(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}(o))){let r=u(o,t);r&&r.from<=n&&r.from>=e&&r.to>n&&(s=r)}}return s}(t,e,n)}function U(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}let Y=s.Py.define({map:U}),G=s.Py.define({map:U});function Q(t){let e=[];for(let{head:n}of t.state.selection.ranges)!e.some(t=>t.from<=n&&t.to>=n)&&e.push(t.lineBlockAt(n));return e}let K=s.QQ.define({create:()=>a.p.none,update(t,e){for(let n of(t=t.map(e.changes),e.effects))if(n.is(Y)&&!function(t,e,n){let r=!1;return t.between(e,e,(t,o)=>{t==e&&o==n&&(r=!0)}),r}(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(tr),o=r?a.p.replace({widget:new ta(r(e.state,n.value))}):ts;t=t.update({add:[o.range(n.value.from,n.value.to)]})}else n.is(G)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,(t,e)=>{t<r&&e>r&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r}))}return t},provide:t=>a.tk.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(t,e)=>{n.push(t,e)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],o=t[n++];if("number"!=typeof r||"number"!=typeof o)throw RangeError("Invalid JSON for fold state");e.push(ts.range(r,o))}return a.p.set(e,!0)}});function J(t,e,n){var r;let o=null;return null===(r=t.field(K,!1))||void 0===r||r.between(e,n,(t,e)=>{(!o||o.from>t)&&(o={from:t,to:e})}),o}function Z(t,e){return t.field(K,!1)?e:e.concat(s.Py.appendConfig.of(ti()))}function tt(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,o=t.state.doc.lineAt(e.to).number;return a.tk.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${o}.`)}let te=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of Q(t)){let n=q(t.state,e.from,e.to);if(n)return t.dispatch({effects:Z(t.state,[Y.of(n),tt(t,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(K,!1))return!1;let e=[];for(let n of Q(t)){let r=J(t.state,n.from,n.to);r&&e.push(G.of(r),tt(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let o=t.lineBlockAt(r),s=q(e,o.from,o.to);s&&n.push(Y.of(s)),r=(s?t.lineBlockAt(s.to):o).to+1}return n.length&&t.dispatch({effects:Z(t.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:t=>{let e=t.state.field(K,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(t,e)=>{n.push(G.of({from:t,to:e}))}),t.dispatch({effects:n}),!0}}],tn={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},tr=s.r$.define({combine:t=>(0,s.BO)(t,tn)});function ti(t){let e=[K,th];return t&&e.push(tr.of(t)),e}function to(t,e){let{state:n}=t,r=n.facet(tr),o=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),r=J(t.state,n.from,n.to);r&&t.dispatch({effects:G.of(r)}),e.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,o,e);let s=document.createElement("span");return s.textContent=r.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=o,s}let ts=a.p.replace({widget:new class extends a.l9{toDOM(t){return to(t,null)}}});class ta extends a.l9{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return to(t,this.value)}}let tu={openText:"⌄",closedText:"",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class tl extends a.SJ{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function tc(t={}){let e={...tu,...t},n=new tl(e,!0),r=new tl(e,!1),o=a.lg.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(E)!=t.state.facet(E)||t.startState.field(K,!1)!=t.state.field(K,!1)||g(t.startState)!=g(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new s.f_;for(let o of t.viewportLineBlocks){let s=J(t.state,o.from,o.to)?r:q(t.state,o.from,o.to)?n:null;s&&e.add(o.from,o.from,s)}return e.finish()}}),{domEventHandlers:u}=e;return[o,(0,a.v5)({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(o))||void 0===e?void 0:e.markers)||s.Xs.empty},initialSpacer:()=>new tl(e,!1),domEventHandlers:{...u,click:(t,e,n)=>{if(u.click&&u.click(t,e,n))return!0;let r=J(t.state,e.from,e.to);if(r)return t.dispatch({effects:G.of(r)}),!0;let o=q(t.state,e.from,e.to);return!!o&&(t.dispatch({effects:Y.of(o)}),!0)}}}),ti()]}let th=a.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class tf{constructor(t,e){let n;function r(t){let e=l.V.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;let o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof p?t=>t.prop(c)==s.data:s?t=>t==s:void 0,this.style=(0,u.QR)(t.map(t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))})),{all:o}).style,this.module=n?new l.V(n):null,this.themeType=e.themeType}static define(t,e){return new tf(t,e||{})}}let tp=s.r$.define(),td=s.r$.define({combine:t=>t.length?[t[0]]:null});function tm(t){let e=t.facet(tp);return e.length?e:t.facet(td)}function tg(t,e){let n=[ty],r;return t instanceof tf&&(t.module&&n.push(a.tk.styleModule.of(t.module)),r=t.themeType),(null==e?void 0:e.fallback)?n.push(td.of(t)):r?n.push(tp.computeN([a.tk.darkTheme],e=>e.facet(a.tk.darkTheme)==("dark"==r)?[t]:[])):n.push(tp.of(t)),n}let ty=s.Wl.high(a.lg.fromClass(class t{constructor(t){this.markCache=Object.create(null),this.tree=g(t.state),this.decorations=this.buildDeco(t,tm(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=g(t.state),n=tm(t.state),r=n!=tm(t.startState),{viewport:o}=t.view,s=t.changes.mapPos(this.decoratedTo,1);e.length<o.to&&!r&&e.type==this.tree.type&&s>=o.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(e!=this.tree||t.viewportChanged||r)&&(this.tree=e,this.decorations=this.buildDeco(t.view,n),this.decoratedTo=o.to)}buildDeco(t,e){if(!e||!this.tree.length)return a.p.none;let n=new s.f_;for(let{from:r,to:o}of t.visibleRanges)(0,u.bW)(this.tree,e,(t,e,r)=>{n.add(t,e,this.markCache[r]||(this.markCache[r]=a.p.mark({class:r})))},r,o);return n.finish()}},{decorations:t=>t.decorations})),tv=tf.define([{tag:u.pJ.meta,color:"#404740"},{tag:u.pJ.link,textDecoration:"underline"},{tag:u.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:u.pJ.emphasis,fontStyle:"italic"},{tag:u.pJ.strong,fontWeight:"bold"},{tag:u.pJ.strikethrough,textDecoration:"line-through"},{tag:u.pJ.keyword,color:"#708"},{tag:[u.pJ.atom,u.pJ.bool,u.pJ.url,u.pJ.contentSeparator,u.pJ.labelName],color:"#219"},{tag:[u.pJ.literal,u.pJ.inserted],color:"#164"},{tag:[u.pJ.string,u.pJ.deleted],color:"#a11"},{tag:[u.pJ.regexp,u.pJ.escape,u.pJ.special(u.pJ.string)],color:"#e40"},{tag:u.pJ.definition(u.pJ.variableName),color:"#00f"},{tag:u.pJ.local(u.pJ.variableName),color:"#30a"},{tag:[u.pJ.typeName,u.pJ.namespace],color:"#085"},{tag:u.pJ.className,color:"#167"},{tag:[u.pJ.special(u.pJ.variableName),u.pJ.macroName],color:"#256"},{tag:u.pJ.definition(u.pJ.propertyName),color:"#00c"},{tag:u.pJ.comment,color:"#940"},{tag:u.pJ.invalid,color:"#f00"}]),tb=new o.md;function tO(t,e,n){let r=t.prop(e<0?o.md.openedBy:o.md.closedBy);if(r)return r;if(1==t.name.length){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function tw(t){let e=t.type.prop(tb);return e?e(t.node):t}function tx(t,e,n,r={}){let o=r.maxScanDistance||1e4,s=r.brackets||"()[]{}",a=g(t),u=a.resolveInner(e,n);for(let r=u;r;r=r.parent){let o=tO(r.type,n,s);if(o&&r.from<r.to){let a=tw(r);if(a&&(n>0?e>=a.from&&e<a.to:e>a.from&&e<=a.to))return function(t,e,n,r,o,s,a){let u=r.parent,l={from:o.from,to:o.to},c=0,h=null==u?void 0:u.cursor();if(h&&(n<0?h.childBefore(r.from):h.childAfter(r.to)))do if(n<0?h.to<=r.from:h.from>=r.to){if(0==c&&s.indexOf(h.type.name)>-1&&h.from<h.to){let t=tw(h);return{start:l,end:t?{from:t.from,to:t.to}:void 0,matched:!0}}if(tO(h.type,n,a))c++;else if(tO(h.type,-n,a)){if(0==c){let t=tw(h);return{start:l,end:t&&t.from<t.to?{from:t.from,to:t.to}:void 0,matched:!1}}c--}}while(n<0?h.prevSibling():h.nextSibling());return{start:l,matched:!1}}(t,e,n,r,a,o,s)}}return function(t,e,n,r,o,s,a){let u=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=a.indexOf(u);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?e-1:e,to:n>0?e+1:e},h=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let t=0;!h.next().done&&t<=s;){let s=h.value;n<0&&(t+=s.length);let u=e+t*n;for(let t=n>0?0:s.length-1,e=n>0?s.length:-1;t!=e;t+=n){let e=a.indexOf(s[t]);if(!(e<0)&&r.resolveInner(u+t,1).type==o){if(e%2==0==n>0)f++;else{if(1==f)return{start:c,end:{from:u+t,to:u+t+1},matched:e>>1==l>>1};f--}}}n>0&&(t+=s.length)}return h.done?{start:c,matched:!1}:null}(t,e,n,a,u.type,o,s)}function tD(t,e,n,r=0,o=0){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);let s=o;for(let o=r;o<e;o++)9==t.charCodeAt(o)?s+=n-s%n:s++;return s}class tk{constructor(t,e,n,r){this.string=t,this.tabSize=e,this.indentUnit=n,this.overrideIndent=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(t){let e,n=this.string.charAt(this.pos);if(e="string"==typeof t?n==t:n&&(t instanceof RegExp?t.test(n):t(n)))return++this.pos,n}eatWhile(t){let e=this.pos;for(;this.eat(t););return this.pos>e}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=tD(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var t;return null!==(t=this.overrideIndent)&&void 0!==t?t:tD(this.string,null,this.tabSize)}match(t,e,n){if("string"==typeof t){let r=t=>n?t.toLowerCase():t;return r(this.string.substr(this.pos,t.length))==r(t)?(!1!==e&&(this.pos+=t.length),!0):null}{let n=this.string.slice(this.pos).match(t);return n&&n.index>0?null:(n&&!1!==e&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function tS(t){if("object"!=typeof t)return t;let e={};for(let n in t){let r=t[n];e[n]=r instanceof Array?r.slice():r}return e}let tE=new WeakMap;class tC extends p{constructor(t){var e;let n=h(t.languageData);let r={name:(e=t).name||"",token:e.token,blankLine:e.blankLine||(()=>{}),startState:e.startState||(()=>!0),copyState:e.copyState||tS,indent:e.indent||(()=>null),languageData:e.languageData||{},tokenTable:e.tokenTable||tP,mergeTokens:!1!==e.mergeTokens},s;super(n,new class extends o._b{createParse(t,e,n){return new tA(s,t,e,n)}},[],t.name),this.topNode=function(t,e){let n=o.Jq.define({id:tB.length,name:"Document",props:[c.add(()=>t),F.add(()=>t=>e.getIndent(t))],top:!0});return tB.push(n),n}(n,this),s=this,this.streamParser=r,this.stateAfter=new o.md({perNode:!0}),this.tokenTable=t.tokenTable?new t_(r.tokenTable):tX}static define(t){return new tC(t)}getIndent(t){let e;let{overrideIndentation:n}=t.options;n&&null!=(e=tE.get(t.state))&&e<t.pos-1e4&&(e=void 0);let r=tT(this,t.node.tree,t.node.from,t.node.from,null!=e?e:t.pos),o,s;if(r?(s=r.state,o=r.pos+1):(s=this.streamParser.startState(t.unit),o=t.node.from),t.pos-o>1e4)return null;for(;o<t.pos;){let e=t.state.doc.lineAt(o),r=Math.min(t.pos,e.to);if(e.length){let o=n?n(e.from):-1,a=new tk(e.text,t.state.tabSize,t.unit,o<0?void 0:o);for(;a.pos<r-e.from;)tM(this.streamParser.token,a,s)}else this.streamParser.blankLine(s,t.unit);if(r==t.pos)break;o=e.to+1}let a=t.lineAt(t.pos);return n&&null==e&&tE.set(t.state,a.from),this.streamParser.indent(s,/^\s*(.*)/.exec(a.text)[1],t)}get allowsNesting(){return!1}}function tT(t,e,n,r,s){let a=n>=r&&n+e.length<=s&&e.prop(t.stateAfter);if(a)return{state:t.streamParser.copyState(a),pos:n+e.length};for(let a=e.children.length-1;a>=0;a--){let u=e.children[a],l=n+e.positions[a],c=u instanceof o.mp&&l<s&&tT(t,u,l,r,s);if(c)return c}return null}class tA{constructor(t,e,n,r){this.lang=t,this.input=e,this.fragments=n,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let s=O.get(),a=r[0].from,{state:u,tree:l}=function(t,e,n,r,s){for(let s of e){let e=s.from+(s.openStart?25:0),a=s.to-(s.openEnd?25:0),u=e<=n&&a>n&&tT(t,s.tree,0-s.offset,n,a),l;if(u&&u.pos<=r&&(l=function t(e,n,r,s,a){if(a&&r<=0&&s>=n.length)return n;!a&&0==r&&n.type==e.topNode&&(a=!0);for(let u=n.children.length-1;u>=0;u--){let l=n.positions[u],c=n.children[u],h;if(l<s&&c instanceof o.mp){if(!(h=t(e,c,r-l,s-l,a)))break;return a?new o.mp(n.type,n.children.slice(0,u).concat(h),n.positions.slice(0,u+1),l+h.length):h}}return null}(t,s.tree,n+s.offset,u.pos+s.offset,!1)))return{state:u.state,tree:l}}return{state:t.streamParser.startState(s?M(s):4),tree:o.mp.empty}}(t,n,a,this.to,null==s?void 0:s.state);this.state=u,this.parsedPos=this.chunkStart=a+l.length;for(let t=0;t<l.children.length;t++)this.chunks.push(l.children[t]),this.chunkPos.push(l.positions[t]);s&&this.parsedPos<s.viewport.from-1e5&&r.some(t=>t.from<=s.viewport.from&&t.to>=s.viewport.from)&&(this.state=this.lang.streamParser.startState(M(s.state)),s.skipUntilInView(this.parsedPos,s.viewport.from),this.parsedPos=s.viewport.from),this.moveRangeIndex()}advance(){let t=O.get(),e=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(e,this.chunkStart+2048);for(t&&(n=Math.min(n,t.viewport.to));this.parsedPos<n;)this.parseLine(t);return(this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=e)?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)"\n"==e&&(e="");else{let t=e.indexOf("\n");t>-1&&(e=e.slice(0,t))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let t=this.rangeIndex;;){let r=this.ranges[t].to;if(r>=n)break;if(e=e.slice(0,r-(n-e.length)),++t==this.ranges.length)break;let o=this.ranges[t].from,s=this.lineAfter(o);e+=s,n=o+s.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let r=this.ranges[this.rangeIndex].to,o=t+e;if(n>0?r>o:r>=o)break;let s=this.ranges[++this.rangeIndex].from;e+=s-r}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(t,e,n,r){let o=4;if(this.ranges.length>1){r=this.skipGapsTo(e,r,1),e+=r;let t=this.chunk.length;r=this.skipGapsTo(n,r,-1),n+=r,o+=this.chunk.length-t}let s=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&4==o&&s>=0&&this.chunk[s]==t&&this.chunk[s+2]==e?this.chunk[s+2]=n:this.chunk.push(t,e,n,o),r}parseLine(t){let{line:e,end:n}=this.nextLine(),r=0,{streamParser:o}=this.lang,s=new tk(e,t?t.state.tabSize:4,t?M(t.state):2);if(s.eol())o.blankLine(this.state,s.indentUnit);else for(;!s.eol();){let t=tM(o.token,s,this.state);if(t&&(r=this.emitToken(this.lang.tokenTable.resolve(t),this.parsedPos+s.start,this.parsedPos+s.pos,r)),s.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let t=o.mp.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:tI,topID:0,maxBufferLength:2048,reused:this.chunkReused});t=new o.mp(t.type,t.children,t.positions,t.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(t),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new o.mp(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function tM(t,e,n){e.start=e.pos;for(let r=0;r<10;r++){let r=t(e,n);if(e.pos>e.start)return r}throw Error("Stream parser failed to advance stream.")}let tP=Object.create(null),tB=[o.Jq.none],tI=new o.Lj(tB),tF=[],tN=Object.create(null),tL=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])tL[t]=tj(tP,e);class t_{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),tL)}resolve(t){return t?this.table[t]||(this.table[t]=tj(this.extra,t)):0}}let tX=new t_(tP);function tR(t,e){!(tF.indexOf(t)>-1)&&(tF.push(t),console.warn(e))}function tj(t,e){let n=[];for(let r of e.split(" ")){let e=[];for(let n of r.split(".")){let r=t[n]||u.pJ[n];r?"function"==typeof r?e.length?e=e.map(r):tR(n,`Modifier ${n} used at start of tag`):e.length?tR(n,`Tag ${n} used as modifier`):e=Array.isArray(r)?r:[r]:tR(n,`Unknown highlighting tag ${n}`)}for(let t of e)n.push(t)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),s=r+" "+n.map(t=>t.id),a=tN[s];if(a)return a.id;let l=tN[s]=o.Jq.define({id:tB.length,name:r,props:[(0,u.Gv)({[r]:n})]});return tB.push(l),l.id}function t$(t){return t.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(t)}let tV={rtl:a.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:a.Nm.RTL}),ltr:a.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:a.Nm.LTR}),auto:a.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})}},913693:function(t,e,n){"use strict";let r;n.d(e,{Py:()=>tg,q6:()=>tp,n0:()=>B,Xs:()=>tP,xv:()=>p,YW:()=>ty,as:()=>I,F6:()=>te,IS:()=>tH,gm:()=>S,jT:()=>$,gc:()=>P,bg:()=>E,uU:()=>tC,f_:()=>tB,yy:()=>tS,BO:()=>tE,QQ:()=>Q,r$:()=>W,D0:()=>tD,nZ:()=>C,cp:()=>k,Gz:()=>tW,Wl:()=>Z});let o=[],s=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?s:o).push(n+=t[e])})();function a(t){return t>=127462&&t<=127487}function u(t,e,n){if(e==t.length)return e;e&&c(t.charCodeAt(e))&&h(t.charCodeAt(e-1))&&e--;let r=l(t,e);for(e+=f(r);e<t.length;){let u=l(t,e);if(8205==r||8205==u||n&&function(t){if(t<768)return!1;for(let e=0,n=o.length;;){let r=e+n>>1;if(t<o[r])n=r;else{if(!(t>=s[r]))return!0;e=r+1}if(e==n)return!1}}(u))e+=f(u),r=u;else if(a(u)){let n=0,r=e-2;for(;r>=0&&a(l(t,r));)n++,r-=2;if(n%2==0)break;e+=2}else break}return e}function l(t,e){let n=t.charCodeAt(e);if(!h(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return c(r)?(n-55296<<10)+(r-56320)+65536:n}function c(t){return t>=56320&&t<57344}function h(t){return t>=55296&&t<56320}function f(t){return t<65536?1:2}class p{lineAt(t){if(t<0||t>this.length)throw RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){[t,e]=D(this,t,e);let r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),m.from(r,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=D(this,t,e);let n=[];return this.decompose(t,e,n,0),m.from(n,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),r=new b(this),o=new b(t);for(let t=e,s=e;;){if(r.next(t),o.next(t),t=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(t=1){return new b(this,t)}iterRange(t,e=this.length){return new O(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let r=this.line(t).from;n=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new w(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new d(t):m.from(d.split(t,[])):p.empty}}class d extends p{constructor(t,e=function(t){let e=-1;for(let n of t)e+=n.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((e?n:a)>=t)return new x(r,a,n,s);r=a+1,n++}}decompose(t,e,n,r){let o=t<=0&&e>=this.length?this:new d(function(t,e,n){return g(t,[""],e,n)}(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&r){let t=n.pop(),e=g(o.text,t.text.slice(),0,o.length);if(e.length<=32)n.push(new d(e,t.length+o.length));else{let t=e.length>>1;n.push(new d(e.slice(0,t)),new d(e.slice(t)))}}else n.push(o)}replace(t,e,n){if(!(n instanceof d))return super.replace(t,e,n);[t,e]=D(this,t,e);let r=g(this.text,g(n.text,function(t,e,n){return g(t,[""],e,n)}(this.text,0,t)),e),o=this.length+n.length-(e-t);return r.length<=32?new d(r,o):m.from(d.split(r,[]),o)}sliceString(t,e=this.length,n="\n"){[t,e]=D(this,t,e);let r="";for(let o=0,s=0;o<=e&&s<this.text.length;s++){let a=this.text[s],u=o+a.length;o>t&&s&&(r+=n),t<u&&e>o&&(r+=a.slice(Math.max(0,t-o),e-o)),o=u+1}return r}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],r=-1;for(let o of t)n.push(o),r+=o.length+1,32==n.length&&(e.push(new d(n,r)),n=[],r=-1);return r>-1&&e.push(new d(n,r)),e}}class m extends p{constructor(t,e){for(let n of(super(),this.children=t,this.length=e,this.lines=0,t))this.lines+=n.lines}lineInner(t,e,n,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,u=n+s.lines-1;if((e?u:a)>=t)return s.lineInner(t,e,n,r);r=a+1,n=u+1}}decompose(t,e,n,r){for(let o=0,s=0;s<=e&&o<this.children.length;o++){let a=this.children[o],u=s+a.length;if(t<=u&&e>=s){let o=r&((s<=t?1:0)|(u>=e?2:0));s>=t&&u<=e&&!o?n.push(a):a.decompose(t-s,e-s,n,o)}s=u+1}}replace(t,e,n){if([t,e]=D(this,t,e),n.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(t>=o&&e<=a){let u=s.replace(t-o,e-o,n),l=this.lines-s.lines+u.lines;if(u.lines<l>>4&&u.lines>l>>6){let o=this.children.slice();return o[r]=u,new m(o,this.length-(e-t)+n.length)}return super.replace(o,a,u)}o=a+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){[t,e]=D(this,t,e);let r="";for(let o=0,s=0;o<this.children.length&&s<=e;o++){let a=this.children[o],u=s+a.length;s>t&&o&&(r+=n),t<u&&e>s&&(r+=a.sliceString(t-s,e-s,n)),s=u+1}return r}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof m))return 0;let n=0,[r,o,s,a]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;r+=e,o+=e){if(r==s||o==a)return n;let u=this.children[r],l=t.children[o];if(u!=l)return n+u.scanIdentical(l,e);n+=u.length+1}}static from(t,e=t.reduce((t,e)=>t+e.length+1,-1)){let n=0;for(let e of t)n+=e.lines;if(n<32){let n=[];for(let e of t)e.flatten(n);return new d(n,e)}let r=Math.max(32,n>>5),o=r<<1,s=r>>1,a=[],u=0,l=-1,c=[];function h(){0!=u&&(a.push(1==c.length?c[0]:m.from(c,l)),l=-1,u=c.length=0)}for(let e of t)!function t(e){let n;if(e.lines>o&&e instanceof m)for(let n of e.children)t(n);else e.lines>s&&(u>s||!u)?(h(),a.push(e)):e instanceof d&&u&&(n=c[c.length-1])instanceof d&&e.lines+n.lines<=32?(u+=e.lines,l+=e.length+1,c[c.length-1]=new d(n.text.concat(e.text),n.length+1+e.length)):(u+e.lines>r&&h(),u+=e.lines,l+=e.length+1,c.push(e))}(e);return h(),1==a.length?a[0]:new m(a,e)}}p.empty=new d([""],0);function g(t,e,n=0,r=1e9){for(let o=0,s=0,a=!0;s<t.length&&o<=r;s++){let u=t[s],l=o+u.length;l>=n&&(l>r&&(u=u.slice(0,r-o)),o<n&&(u=u.slice(n-o)),a?(e[e.length-1]+=u,a=!1):e.push(u)),o=l+1}return e}function y(t,e,n){return g(t,[""],e,n)}class b{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof d?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],s=o>>1,a=r instanceof d?r.text.length:r.children.length;if(s==(e>0?a:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(r instanceof d){let o=r.text[s+(e<0?-1:0)];if(this.offsets[n]+=e,o.length>Math.max(0,t))return this.value=0==t?o:e>0?o.slice(t):o.slice(0,o.length-t),this;t-=o.length}else{let o=r.children[s+(e<0?-1:0)];t>o.length?(t-=o.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(e>0?1:(o instanceof d?o.text.length:o.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class O{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new b(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:r}=this.cursor.next(t);return this.pos+=(r.length+t)*e,this.value=r.length<=n?r:e<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class w{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:r}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(p.prototype[Symbol.iterator]=function(){return this.iter()},b.prototype[Symbol.iterator]=O.prototype[Symbol.iterator]=w.prototype[Symbol.iterator]=function(){return this});class x{constructor(t,e,n,r){this.from=t,this.to=e,this.number=n,this.text=r}get length(){return this.to-this.from}}function D(t,e,n){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,n))]}function k(t,e,n=!0,r=!0){return function(t,e,n=!0,r=!0){return(n?u:function(t,e,n){for(;e>0;){let r=u(t,e-2,n);if(r<e)return r;e--}return 0})(t,e,r)}(t,e,n,r)}function S(t,e){var n,r;let o=t.charCodeAt(e);if(!((n=o)>=55296&&n<56320)||e+1==t.length)return o;let s=t.charCodeAt(e+1);return(r=s)>=56320&&r<57344?(o-55296<<10)+(s-56320)+65536:o}function E(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,(1023&t)+56320)}function C(t){return t<65536?1:2}let T=/\r\n?|\n/;var A,M,P=((A=P||(P={}))[A.Simple=0]="Simple",A[A.TrackDel=1]="TrackDel",A[A.TrackBefore=2]="TrackBefore",A[A.TrackAfter=3]="TrackAfter",A);class B{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e+1];t+=n<0?this.sections[e]:n}return t}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(t){for(let e=0,n=0,r=0;e<this.sections.length;){let o=this.sections[e++],s=this.sections[e++];s<0?(t(n,r,o),r+=o):r+=s,n+=o}}iterChangedRanges(t,e=!1){L(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new B(t)}composeDesc(t){return this.empty?t:t.empty?this:X(this,t)}mapDesc(t,e=!1){return t.empty?this:_(this,t,e)}mapPos(t,e=-1,n=P.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],u=this.sections[s++],l=r+a;if(u<0){if(l>t)return o+(t-r);o+=a}else{if(n!=P.Simple&&l>=t&&(n==P.TrackDel&&r<t&&l>t||n==P.TrackBefore&&r<t||n==P.TrackAfter&&l>t))return null;if(l>t||l==t&&e<0&&!a)return t==r||e<0?o:o+u;o+=u}r=l}if(t>r)throw RangeError(`Position ${t} is out of range for changeset of length ${r}`);return o}touchesRange(t,e=t){for(let n=0,r=0;n<this.sections.length&&r<=e;){let o=this.sections[n++],s=this.sections[n++],a=r+o;if(s>=0&&r<=e&&a>=t)return!(r<t)||!(a>e)||"cover";r=a}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];t+=(t?" ":"")+n+(r>=0?":"+r:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(t=>"number"!=typeof t))throw RangeError("Invalid JSON representation of ChangeDesc");return new B(t)}static create(t){return new B(t)}}class I extends B{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw RangeError("Applying change set to a document with the wrong length");return L(this,(e,n,r,o,s)=>t=t.replace(r,r+(n-e),s),!1),t}mapDesc(t,e=!1){return _(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let r=0,o=0;r<e.length;r+=2){let s=e[r],a=e[r+1];if(a>=0){e[r]=a,e[r+1]=s;let u=r>>1;for(;n.length<u;)n.push(p.empty);n.push(s?t.slice(o,o+s):p.empty)}o+=s}return new I(e,n)}compose(t){return this.empty?t:t.empty?this:X(this,t,!0)}map(t,e=!1){return t.empty?this:_(this,t,e,!0)}iterChanges(t,e=!1){L(this,t,e)}get desc(){return B.create(this.sections)}filter(t){let e=[],n=[],r=[],o=new R(this);o:for(let s=0,a=0;;){let u=s==t.length?1e9:t[s++];for(;a<u||a==u&&0==o.len;){if(o.done)break o;let t=Math.min(o.len,u-a);F(r,t,-1);let s=-1==o.ins?-1:0==o.off?o.ins:0;F(e,t,s),s>0&&N(n,e,o.text),o.forward(t),a+=t}let l=t[s++];for(;a<l;){if(o.done)break o;let t=Math.min(o.len,l-a);F(e,t,-1),F(r,t,-1==o.ins?-1:0==o.off?o.ins:0),o.forward(t),a+=t}}return{changes:new I(e,n),filtered:B.create(r)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e],r=this.sections[e+1];r<0?t.push(n):0==r?t.push([n]):t.push([n].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,n){let r=[],o=[],s=0,a=null;function u(t=!1){if(!t&&!r.length)return;s<e&&F(r,e-s,-1);let n=new I(r,o);a=a?a.compose(n.map(a)):n,r=[],o=[],s=0}return!function t(l){if(Array.isArray(l))for(let e of l)t(e);else if(l instanceof I){if(l.length!=e)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${e})`);u(),a=a?a.compose(l.map(a)):l}else{let{from:t,to:a=t,insert:c}=l;if(t>a||t<0||a>e)throw RangeError(`Invalid change range ${t} to ${a} (in doc of length ${e})`);let h=c?"string"==typeof c?p.of(c.split(n||T)):c:p.empty,f=h.length;if(t==a&&0==f)return;t<s&&u(),t>s&&F(r,t-s,-1),F(r,a-t,f),N(o,r,h),s=a}}(t),u(!a),a}static empty(t){return new I(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r];if("number"==typeof o)e.push(o,-1);else if(!Array.isArray(o)||"number"!=typeof o[0]||o.some((t,e)=>e&&"string"!=typeof t))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==o.length)e.push(o[0],0);else{for(;n.length<r;)n.push(p.empty);n[r]=p.of(o.slice(1)),e.push(o[0],n[r].length)}}return new I(e,n)}static createSet(t,e){return new I(t,e)}}function F(t,e,n,r=!1){if(0==e&&n<=0)return;let o=t.length-2;o>=0&&n<=0&&n==t[o+1]?t[o]+=e:o>=0&&0==e&&0==t[o]?t[o+1]+=n:r?(t[o]+=e,t[o+1]+=n):t.push(e,n)}function N(t,e,n){if(0==n.length)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(p.empty);t.push(n)}}function L(t,e,n){let r=t.inserted;for(let o=0,s=0,a=0;a<t.sections.length;){let u=t.sections[a++],l=t.sections[a++];if(l<0)o+=u,s+=u;else{let c=o,h=s,f=p.empty;for(;c+=u,h+=l,l&&r&&(f=f.append(r[a-2>>1])),!n&&a!=t.sections.length&&!(t.sections[a+1]<0);){;u=t.sections[a++],l=t.sections[a++]}e(o,c,s,h,f),o=c,s=h}}}function _(t,e,n,r=!1){let o=[],s=r?[]:null,a=new R(t),u=new R(e);for(let t=-1;;){if(a.done&&u.len||u.done&&a.len)throw Error("Mismatched change set lengths");if(-1==a.ins&&-1==u.ins){let t=Math.min(a.len,u.len);F(o,t,-1),a.forward(t),u.forward(t)}else if(u.ins>=0&&(a.ins<0||t==a.i||0==a.off&&(u.len<a.len||u.len==a.len&&!n))){let e=u.len;for(F(o,u.ins,-1);e;){let n=Math.min(a.len,e);a.ins>=0&&t<a.i&&a.len<=n&&(F(o,0,a.ins),s&&N(s,o,a.text),t=a.i),a.forward(n),e-=n}u.next()}else if(a.ins>=0){let e=0,n=a.len;for(;n;)if(-1==u.ins){let t=Math.min(n,u.len);e+=t,n-=t,u.forward(t)}else if(0==u.ins&&u.len<n)n-=u.len,u.next();else break;F(o,e,t<a.i?a.ins:0),s&&t<a.i&&N(s,o,a.text),t=a.i,a.forward(a.len-n)}else if(a.done&&u.done)return s?I.createSet(o,s):B.create(o);else throw Error("Mismatched change set lengths")}}function X(t,e,n=!1){let r=[],o=n?[]:null,s=new R(t),a=new R(e);for(let t=!1;;){if(s.done&&a.done)return o?I.createSet(r,o):B.create(r);if(0==s.ins)F(r,s.len,0,t),s.next();else if(0!=a.len||a.done){if(s.done||a.done)throw Error("Mismatched change set lengths");else{let e=Math.min(s.len2,a.len),n=r.length;if(-1==s.ins){let n=-1==a.ins?-1:a.off?0:a.ins;F(r,e,n,t),o&&n&&N(o,r,a.text)}else -1==a.ins?(F(r,s.off?0:s.len,e,t),o&&N(o,r,s.textBit(e))):(F(r,s.off?0:s.len,a.off?0:a.ins,t),o&&!a.off&&N(o,r,a.text));t=(s.ins>e||a.ins>=0&&a.len>e)&&(t||r.length>n),s.forward2(e),a.forward(e)}}else F(r,0,a.ins,t),o&&N(o,r,a.text),a.next()}}class R{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,e=this.i-2>>1;return e>=t.length?p.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?p.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class j{constructor(t,e,n){this.from=t,this.to=e,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 0xffffff==t?void 0:t}map(t,e=-1){let n,r;return this.empty?n=r=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new j(n,r,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return $.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return $.range(this.anchor,n)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid JSON representation for SelectionRange");return $.range(t.anchor,t.head)}static create(t,e,n){return new j(t,e,n)}}class ${constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:$.create(this.ranges.map(n=>n.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new $([this.main],0)}addRange(t,e=!0){return $.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let n=this.ranges.slice();return n[e]=t,$.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new $(t.ranges.map(t=>j.fromJSON(t)),t.main)}static single(t,e=t){return new $([$.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;r<t.length;r++){let o=t[r];if(o.empty?o.from<=n:o.from<n)return $.normalized(t.slice(),e);n=o.to}return new $(t,e)}static cursor(t,e=0,n,r){return j.create(t,t,(0==e?0:e<0?8:16)|(null==n?7:Math.min(6,n))|(null!=r?r:0xffffff)<<6)}static range(t,e,n,r){let o=(null!=n?n:0xffffff)<<6|(null==r?7:Math.min(6,r));return e<t?j.create(e,t,48|o):j.create(t,e,(e>t?8:0)|o)}static normalized(t,e=0){let n=t[e];t.sort((t,e)=>t.from-e.from),e=t.indexOf(n);for(let n=1;n<t.length;n++){let r=t[n],o=t[n-1];if(r.empty?r.from<=o.to:r.from<o.to){let s=o.from,a=Math.max(r.to,o.to);n<=e&&e--,t.splice(--n,2,r.anchor>r.head?$.range(a,s):$.range(s,a))}}return new $(t,e)}}function V(t,e){for(let n of t.ranges)if(n.to>e)throw RangeError("Selection points outside of document")}let H=0;class W{constructor(t,e,n,r,o){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=r,this.id=H++,this.default=t([]),this.extensions="function"==typeof o?o(this):o}get reader(){return this}static define(t={}){return new W(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:z),!!t.static,t.enables)}of(t){return new q([],this,0,t)}compute(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new q(t,this,1,e)}computeN(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new q(t,this,2,e)}from(t,e){return!e&&(e=t=>t),this.compute([t],n=>e(n.field(t)))}}function z(t,e){return t==e||t.length==e.length&&t.every((t,n)=>t===e[n])}class q{constructor(t,e,n,r){this.dependencies=t,this.facet=e,this.type=n,this.value=r,this.id=H++}dynamicSlot(t){var e;let n=this.value,r=this.facet.compareInput,o=this.id,s=t[o]>>1,a=2==this.type,u=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?u=!0:"selection"==n?l=!0:((null!==(e=t[n.id])&&void 0!==e?e:1)&1)==0&&c.push(t[n.id]);return{create:t=>(t.values[s]=n(t),1),update(t,e){if(u&&e.docChanged||l&&(e.docChanged||e.selection)||Y(t,c)){let e=n(t);if(a?!U(e,t.values[s],r):!r(e,t.values[s]))return t.values[s]=e,1}return 0},reconfigure:(t,e)=>{let u,l=e.config.address[o];if(null!=l){let o=to(e,l);if(this.dependencies.every(n=>n instanceof W?e.facet(n)===t.facet(n):!(n instanceof Q)||e.field(n,!1)==t.field(n,!1))||(a?U(u=n(t),o,r):r(u=n(t),o)))return t.values[s]=o,0}else u=n(t);return t.values[s]=u,1}}}}function U(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function Y(t,e){let n=!1;for(let r of e)1&ti(t,r)&&(n=!0);return n}let G=W.define({static:!0});class Q{constructor(t,e,n,r,o){this.id=t,this.createF=e,this.updateF=n,this.compareF=r,this.spec=o,this.provides=void 0}static define(t){let e=new Q(H++,t.create,t.update,t.compare||((t,e)=>t===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(G).find(t=>t.field==this);return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,n)=>{let r=t.values[e],o=this.updateF(r,n);return this.compareF(r,o)?0:(t.values[e]=o,1)},reconfigure:(t,n)=>{let r=t.facet(G),o=n.facet(G),s;return(s=r.find(t=>t.field==this))&&s!=o.find(t=>t.field==this)?(t.values[e]=s.create(t),1):null!=n.config.address[this.id]?(t.values[e]=n.field(this),0):(t.values[e]=this.create(t),1)}}}init(t){return[this,G.of({field:this,create:t})]}get extension(){return this}}let K={lowest:4,low:3,default:2,high:1,highest:0};function J(t){return e=>new tt(e,t)}let Z={highest:J(K.highest),high:J(K.high),default:J(K.default),low:J(K.low),lowest:J(K.lowest)};class tt{constructor(t,e){this.inner=t,this.prec=e}}class te{of(t){return new tn(this,t)}reconfigure(t){return te.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class tn{constructor(t,e){this.compartment=t,this.inner=e}}class tr{constructor(t,e,n,r,o,s){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return null==e?t.default:this.staticValues[e>>1]}static resolve(t,e,n){let r=[],o=Object.create(null),s=new Map;for(let n of function(t,e,n){let r=[[],[],[],[],[]],o=new Map;return!function t(s,a){let u=o.get(s);if(null!=u){if(u<=a)return;let t=r[u].indexOf(s);t>-1&&r[u].splice(t,1),s instanceof tn&&n.delete(s.compartment)}if(o.set(s,a),Array.isArray(s))for(let e of s)t(e,a);else if(s instanceof tn){if(n.has(s.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=e.get(s.compartment)||s.inner;n.set(s.compartment,r),t(r,a)}else if(s instanceof tt)t(s.inner,s.prec);else if(s instanceof Q)r[a].push(s),s.provides&&t(s.provides,a);else if(s instanceof q)r[a].push(s),s.facet.extensions&&t(s.facet.extensions,K.default);else{let e=s.extension;if(!e)throw Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);t(e,a)}}(t,K.default),r.reduce((t,e)=>t.concat(e))}(t,e,s))n instanceof Q?r.push(n):(o[n.facet.id]||(o[n.facet.id]=[])).push(n);let a=Object.create(null),u=[],l=[];for(let t of r)a[t.id]=l.length<<1,l.push(e=>t.slot(e));let c=null==n?void 0:n.config.facets;for(let t in o){let e=o[t],r=e[0].facet,s=c&&c[t]||[];if(e.every(t=>0==t.type)){if(a[r.id]=u.length<<1|1,z(s,e))u.push(n.facet(r));else{let t=r.combine(e.map(t=>t.value));u.push(n&&r.compare(t,n.facet(r))?n.facet(r):t)}}else{for(let t of e)0==t.type?(a[t.id]=u.length<<1|1,u.push(t.value)):(a[t.id]=l.length<<1,l.push(e=>t.dynamicSlot(e)));a[r.id]=l.length<<1,l.push(t=>(function(t,e,n){let r=n.map(e=>t[e.id]),o=n.map(t=>t.type),s=r.filter(t=>!(1&t)),a=t[e.id]>>1;function u(t){let n=[];for(let e=0;e<r.length;e++){let s=to(t,r[e]);if(2==o[e])for(let t of s)n.push(t);else n.push(s)}return e.combine(n)}return{create(t){for(let e of r)ti(t,e);return t.values[a]=u(t),1},update(t,n){if(!Y(t,s))return 0;let r=u(t);return e.compare(r,t.values[a])?0:(t.values[a]=r,1)},reconfigure(t,o){let s=Y(t,r),l=o.config.facets[e.id],c=o.facet(e);if(l&&!s&&z(n,l))return t.values[a]=c,0;let h=u(t);return e.compare(h,c)?(t.values[a]=c,0):(t.values[a]=h,1)}}})(t,r,e))}}return new tr(t,s,l.map(t=>t(a)),a,u,o)}}function ti(t,e){if(1&e)return 2;let n=e>>1,r=t.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;t.status[n]=4;let o=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|o}function to(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}let ts=W.define(),ta=W.define({combine:t=>t.some(t=>t),static:!0}),tu=W.define({combine:t=>t.length?t[0]:void 0,static:!0}),tl=W.define(),tc=W.define(),th=W.define(),tf=W.define({combine:t=>!!t.length&&t[0]});class tp{constructor(t,e){this.type=t,this.value=e}static define(){return new td}}class td{of(t){return new tp(this,t)}}class tm{constructor(t){this.map=t}of(t){return new tg(this,t)}}class tg{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new tg(this.type,e)}is(t){return this.type==t}static define(t={}){return new tm(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let r of t){let t=r.map(e);t&&n.push(t)}return n}}tg.reconfigure=tg.define(),tg.appendConfig=tg.define();class ty{constructor(t,e,n,r,o,s){this.startState=t,this.changes=e,this.selection=n,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,n&&V(n,e.newLength),!o.some(t=>t.type==ty.time)&&(this.annotations=o.concat(ty.time.of(Date.now())))}static create(t,e,n,r,o,s){return new ty(t,e,n,r,o,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return!this._state&&this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(ty.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}ty.time=tp.define(),ty.userEvent=tp.define(),ty.addToHistory=tp.define(),ty.remote=tp.define();function tv(t,e,n){var r;let o,s,a;return n?(o=e.changes,s=I.empty(e.changes.length),a=t.changes.compose(e.changes)):(o=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),a=t.changes.compose(o)),{changes:a,selection:e.selection?e.selection.map(s):null===(r=t.selection)||void 0===r?void 0:r.map(o),effects:tg.mapEffects(t.effects,o).concat(tg.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function tb(t,e,n){let r=e.selection,o=tx(e.annotations);return e.userEvent&&(o=o.concat(ty.userEvent.of(e.userEvent))),{changes:e.changes instanceof I?e.changes:I.of(e.changes||[],n,t.facet(tu)),selection:r&&(r instanceof $?r:$.single(r.anchor,r.head)),effects:tx(e.effects),annotations:o,scrollIntoView:!!e.scrollIntoView}}function tO(t,e,n){let r=tb(t,e.length?e[0]:{},t.doc.length);e.length&&!1===e[0].filter&&(n=!1);for(let o=1;o<e.length;o++){!1===e[o].filter&&(n=!1);let s=!!e[o].sequential;r=tv(r,tb(t,e[o],s?r.changes.newLength:t.doc.length),s)}let o=ty.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(t){let e=t.startState,n=e.facet(th),r=t;for(let o=n.length-1;o>=0;o--){let s=n[o](t);s&&Object.keys(s).length&&(r=tv(r,tb(e,s,t.changes.newLength),!0))}return r==t?t:ty.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(t){let e=t.startState,n=!0;for(let r of e.facet(tl)){let e=r(t);if(!1===e){n=!1;break}Array.isArray(e)&&(n=!0===n?e:function(t,e){let n=[];for(let r=0,o=0;;){let s,a;if(r<t.length&&(o==e.length||e[o]>=t[r]))s=t[r++],a=t[r++];else{if(!(o<e.length))return n;s=e[o++],a=e[o++]}!n.length||n[n.length-1]<s?n.push(s,a):n[n.length-1]<a&&(n[n.length-1]=a)}}(n,e))}if(!0!==n){let r,o;if(!1===n)o=t.changes.invertedDesc,r=I.empty(e.doc.length);else{let e=t.changes.filter(n);r=e.changes,o=e.filtered.mapDesc(e.changes).invertedDesc}t=ty.create(e,r,t.selection&&t.selection.map(o),tg.mapEffects(t.effects,o),t.annotations,t.scrollIntoView)}let r=e.facet(tc);for(let n=r.length-1;n>=0;n--){let o=r[n](t);t=o instanceof ty?o:Array.isArray(o)&&1==o.length&&o[0]instanceof ty?o[0]:tO(e,tx(o),!1)}return t}(o):o)}let tw=[];function tx(t){return null==t?tw:Array.isArray(t)?t:[t]}var tD=((M=tD||(tD={}))[M.Word=0]="Word",M[M.Space=1]="Space",M[M.Other=2]="Other",M);let tk=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{r=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(t){}class tS{constructor(t,e,n,r,o,s){this.config=t,this.doc=e,this.selection=n,this.values=r,this.status=t.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(let t=0;t<this.config.dynamicSlots.length;t++)ti(this,t<<1);this.computeSlot=null}field(t,e=!0){let n=this.config.address[t.id];if(null==n){if(e)throw RangeError("Field is not present in this state");return}return ti(this,n),to(this,n)}update(...t){return tO(this,t,!0)}applyTransaction(t){let e,n=this.config,{base:r,compartments:o}=n;for(let e of t.effects)e.is(te.reconfigure)?(n&&(o=new Map,n.compartments.forEach((t,e)=>o.set(e,t)),n=null),o.set(e.value.compartment,e.value.extension)):e.is(tg.reconfigure)?(n=null,r=e.value):e.is(tg.appendConfig)&&(n=null,r=tx(r).concat(e.value));e=n?t.startState.values.slice():new tS(n=tr.resolve(r,o,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(t,e)=>e.reconfigure(t,this),null).values;let s=t.startState.facet(ta)?t.newSelection:t.newSelection.asSingle();new tS(n,t.newDoc,s,e,(e,n)=>n.update(e,t),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:$.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,n=t(e.ranges[0]),r=this.changes(n.changes),o=[n.range],s=tx(n.effects);for(let n=1;n<e.ranges.length;n++){let a=t(e.ranges[n]),u=this.changes(a.changes),l=u.map(r);for(let t=0;t<n;t++)o[t]=o[t].map(l);let c=r.mapDesc(u,!0);o.push(a.range.map(c)),r=r.compose(l),s=tg.mapEffects(s,l).concat(tg.mapEffects(tx(a.effects),c))}return{changes:r,selection:$.create(o,e.mainIndex),effects:s}}changes(t=[]){return t instanceof I?t:I.of(t,this.doc.length,this.facet(tS.lineSeparator))}toText(t){return p.of(t.split(this.facet(tS.lineSeparator)||T))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return null==e?t.default:(ti(this,e),to(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let n in t){let r=t[n];r instanceof Q&&null!=this.config.address[r.id]&&(e[n]=r.spec.toJSON(this.field(t[n]),this))}return e}static fromJSON(t,e={},n){if(!t||"string"!=typeof t.doc)throw RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let e in n)if(Object.prototype.hasOwnProperty.call(t,e)){let o=n[e],s=t[e];r.push(o.init(t=>o.spec.fromJSON(s,t)))}}return tS.create({doc:t.doc,selection:$.fromJSON(t.selection),extensions:e.extensions?r.concat([e.extensions]):r})}static create(t={}){let e=tr.resolve(t.extensions||[],new Map),n=t.doc instanceof p?t.doc:p.of((t.doc||"").split(e.staticFacet(tS.lineSeparator)||T)),r=t.selection?t.selection instanceof $?t.selection:$.single(t.selection.anchor,t.selection.head):$.single(0);return V(r,n.length),!e.staticFacet(ta)&&(r=r.asSingle()),new tS(e,n,r,e.dynamicSlots.map(()=>null),(t,e)=>e.create(t),null)}get tabSize(){return this.facet(tS.tabSize)}get lineBreak(){return this.facet(tS.lineSeparator)||"\n"}get readOnly(){return this.facet(tf)}phrase(t,...e){for(let e of this.facet(tS.phrases))if(Object.prototype.hasOwnProperty.call(e,t)){t=e[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(t,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>e.length?t:e[r-1]})),t}languageDataAt(t,e,n=-1){let r=[];for(let o of this.facet(ts))for(let s of o(this,e,n))Object.prototype.hasOwnProperty.call(s,t)&&r.push(s[t]);return r}charCategorizer(t){var e;return e=this.languageDataAt("wordChars",t).join(""),t=>{if(!/\S/.test(t))return tD.Space;if(function(t){if(r)return r.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||tk.test(n)))return!0}return!1}(t))return tD.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return tD.Word;return tD.Other}}wordAt(t){let{text:e,from:n,length:r}=this.doc.lineAt(t),o=this.charCategorizer(t),s=t-n,a=t-n;for(;s>0;){let t=k(e,s,!1);if(o(e.slice(t,s))!=tD.Word)break;s=t}for(;a<r;){let t=k(e,a);if(o(e.slice(a,t))!=tD.Word)break;a=t}return s==a?null:$.range(s+n,a+n)}}function tE(t,e,n={}){let r={};for(let e of t)for(let t of Object.keys(e)){let o=e[t],s=r[t];if(void 0===s)r[t]=o;else if(s===o||void 0===o);else if(Object.hasOwnProperty.call(n,t))r[t]=n[t](s,o);else throw Error("Config merge conflict for field "+t)}for(let t in e)void 0===r[t]&&(r[t]=e[t]);return r}tS.allowMultipleSelections=ta,tS.tabSize=W.define({combine:t=>t.length?t[0]:4}),tS.lineSeparator=tu,tS.readOnly=tf,tS.phrases=W.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(n=>t[n]==e[n])}}),tS.languageData=ts,tS.changeFilter=tl,tS.transactionFilter=tc,tS.transactionExtender=th,te.reconfigure=tg.define();class tC{eq(t){return this==t}range(t,e=t){return tT.create(t,e,this)}}tC.prototype.startSide=tC.prototype.endSide=0,tC.prototype.point=!1,tC.prototype.mapMode=P.TrackDel;class tT{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new tT(t,e,n)}}function tA(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class tM{constructor(t,e,n,r){this.from=t,this.to=e,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,r=0){let o=n?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let r=s+a>>1,u=o[r]-t||(n?this.value[r].endSide:this.value[r].startSide)-e;if(r==s)return u>=0?s:a;u>=0?a=r:s=r+1}}between(t,e,n,r){for(let o=this.findIndex(e,-1e9,!0),s=this.findIndex(n,1e9,!1,o);o<s;o++)if(!1===r(this.from[o]+t,this.to[o]+t,this.value[o]))return!1}map(t,e){let n=[],r=[],o=[],s=-1,a=-1;for(let u=0;u<this.value.length;u++){let l=this.value[u],c=this.from[u]+t,h=this.to[u]+t,f,p;if(c==h){let t=e.mapPos(c,l.startSide,l.mapMode);if(null==t)continue;if(f=p=t,l.startSide!=l.endSide&&(p=e.mapPos(c,l.endSide))<f)continue}else if(f=e.mapPos(c,l.startSide),f>(p=e.mapPos(h,l.endSide))||f==p&&l.startSide>0&&l.endSide<=0)continue;!(0>(p-f||l.endSide-l.startSide))&&(s<0&&(s=f),l.point&&(a=Math.max(a,p-f)),n.push(l),r.push(f-s),o.push(p-s))}return{mapped:n.length?new tM(r,o,n,a):null,pos:s}}}class tP{constructor(t,e,n,r){this.chunkPos=t,this.chunk=e,this.nextLayer=n,this.maxPoint=r}static create(t,e,n,r){return new tP(t,e,n,r)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=!1,filterFrom:r=0,filterTo:o=this.length}=t,s=t.filter;if(0==e.length&&!s)return this;if(n&&(e=e.slice().sort(tA)),this.isEmpty)return e.length?tP.of(e):this;let a=new tF(this,null,-1).goto(0),u=0,l=[],c=new tB;for(;a.value||u<e.length;)if(u<e.length&&(a.from-e[u].from||a.startSide-e[u].value.startSide)>=0){let t=e[u++];!c.addInner(t.from,t.to,t.value)&&l.push(t)}else 1==a.rangeIndex&&a.chunkIndex<this.chunk.length&&(u==e.length||this.chunkEnd(a.chunkIndex)<e[u].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&!c.addInner(a.from,a.to,a.value)&&l.push(tT.create(a.from,a.to,a.value)),a.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?tP.empty:this.nextLayer.update({add:l,filter:s,filterFrom:r,filterTo:o}))}map(t){if(t.empty||this.isEmpty)return this;let e=[],n=[],r=-1;for(let o=0;o<this.chunk.length;o++){let s=this.chunkPos[o],a=this.chunk[o],u=t.touchesRange(s,s+a.length);if(!1===u)r=Math.max(r,a.maxPoint),e.push(a),n.push(t.mapPos(s));else if(!0===u){let{mapped:o,pos:u}=a.map(s,t);o&&(r=Math.max(r,o.maxPoint),e.push(o),n.push(u))}}let o=this.nextLayer.map(t);return 0==e.length?o:new tP(n,e,o||tP.empty,r)}between(t,e,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(e>=o&&t<=o+s.length&&!1===s.between(o,t-o,e-o,n))return}this.nextLayer.between(t,e,n)}}iter(t=0){return tN.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return tN.from(t).goto(e)}static compare(t,e,n,r,o=-1){let s=t.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=o),a=e.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=o),u=tI(s,a,n),l=new t_(s,u,o),c=new t_(a,u,o);n.iterGaps((t,e,n)=>tX(l,t,c,e,n,r)),n.empty&&0==n.length&&tX(l,0,c,0,0,r)}static eq(t,e,n=0,r){null==r&&(r=0x3b9ac9ff);let o=t.filter(t=>!t.isEmpty&&0>e.indexOf(t)),s=e.filter(e=>!e.isEmpty&&0>t.indexOf(e));if(o.length!=s.length)return!1;if(!o.length)return!0;let a=tI(o,s),u=new t_(o,a,0).goto(n),l=new t_(s,a,0).goto(n);for(;;){if(u.to!=l.to||!tR(u.active,l.active)||u.point&&(!l.point||!u.point.eq(l.point)))return!1;if(u.to>r)return!0;u.next(),l.next()}}static spans(t,e,n,r,o=-1){let s=new t_(t,null,o).goto(e),a=e,u=s.openStart;for(;;){let t=Math.min(s.to,n);if(s.point){let n=s.activeForPoint(s.to),o=s.pointFrom<e?n.length+1:s.point.startSide<0?n.length:Math.min(n.length,u);r.point(a,t,s.point,n,o,s.pointRank),u=Math.min(s.openEnd(t),n.length)}else t>a&&(r.span(a,t,s.active,u),u=s.openEnd(t));if(s.to>n)return u+(s.point&&s.to>n?1:0);a=s.to,s.next()}}static of(t,e=!1){let n=new tB;for(let r of t instanceof tT?[t]:e?function(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(tA(e,r)>0)return t.slice().sort(tA);e=r}return t}(t):t)n.add(r.from,r.to,r.value);return n.finish()}static join(t){if(!t.length)return tP.empty;let e=t[t.length-1];for(let n=t.length-2;n>=0;n--)for(let r=t[n];r!=tP.empty;r=r.nextLayer)e=new tP(r.chunkPos,r.chunk,e,Math.max(r.maxPoint,e.maxPoint));return e}}tP.empty=new tP([],[],null,-1);tP.empty.nextLayer=tP.empty;class tB{finishChunk(t){this.chunks.push(new tM(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,n){!this.addInner(t,e,n)&&(this.nextLayer||(this.nextLayer=new tB)).add(t,e,n)}addInner(t,e,n){let r=t-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(t-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if(0>(t-this.lastTo||e.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(tP.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=tP.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function tI(t,e,n){let r=new Map;for(let e of t)for(let t=0;t<e.chunk.length;t++)e.chunk[t].maxPoint<=0&&r.set(e.chunk[t],e.chunkPos[t]);let o=new Set;for(let t of e)for(let e=0;e<t.chunk.length;e++){let s=r.get(t.chunk[e]);null!=s&&(n?n.mapPos(s):s)==t.chunkPos[e]&&!(null==n?void 0:n.touchesRange(s,s+t.chunk[e].length))&&o.add(t.chunk[e])}return o}class tF{constructor(t,e,n,r=0){this.layer=t,this.skip=e,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,e=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}gotoInner(t,e,n){for(;this.chunkIndex<this.layer.chunk.length;){let e=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(e)||this.layer.chunkEnd(this.chunkIndex)<t||e.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],e,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(t,e){0>(this.to-t||this.endSide-e)&&this.gotoInner(t,e,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],n=t+e.from[this.rangeIndex];if(this.from=n,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class tN{constructor(t){this.heap=t}static from(t,e=null,n=-1){let r=[];for(let o=0;o<t.length;o++)for(let s=t[o];!s.isEmpty;s=s.nextLayer)s.maxPoint>=n&&r.push(new tF(s,e,n,o));return 1==r.length?r[0]:new tN(r)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let t=this.heap.length>>1;t>=0;t--)tL(this.heap,t);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let t=this.heap.length>>1;t>=0;t--)tL(this.heap,t);0>(this.to-t||this.value.endSide-e)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),tL(this.heap,0)}}}function tL(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let o=t[r];if(r+1<t.length&&o.compare(t[r+1])>=0&&(o=t[r+1],r++),0>n.compare(o))break;t[r]=n,t[e]=o,e=r}}class t_{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=tN.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e);)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){tj(this.active,t),tj(this.activeTo,t),tj(this.activeRank,t),this.minActive=tV(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:r,rank:o}=this.cursor;for(;e<this.activeRank.length&&(o-this.activeRank[e]||r-this.activeTo[e])>0;)e++;t$(this.active,e,n),t$(this.activeTo,e,r),t$(this.activeRank,e,o),t&&t$(t,e,this.cursor.from),this.minActive=tV(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&0>(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)){if(this.activeTo[r]>t){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&tj(n,r)}else if(this.cursor.value){if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let t=this.cursor.value;if(t.point){if(e&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=t,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=t.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else this.addActive(n),this.cursor.next()}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let e=n.length-1;e>=0&&n[e]<t;e--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let e=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function tX(t,e,n,r,o,s){t.goto(e),n.goto(r);let a=r+o,u=r,l=r-e;for(;;){let e=t.to+l-n.to,r=e||t.endSide-n.endSide,o=r<0?t.to+l:n.to,c=Math.min(o,a);if(t.point||n.point?!(t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&tR(t.activeForPoint(t.to),n.activeForPoint(n.to)))&&s.comparePoint(u,c,t.point,n.point):c>u&&!tR(t.active,n.active)&&s.compareRange(u,c,t.active,n.active),o>a)break;(e||t.openEnd!=n.openEnd)&&s.boundChange&&s.boundChange(o),u=o,r<=0&&t.next(),r>=0&&n.next()}}function tR(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function tj(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function t$(t,e,n){for(let n=t.length-1;n>=e;n--)t[n+1]=t[n];t[e]=n}function tV(t,e){let n=-1,r=1e9;for(let o=0;o<e.length;o++)0>(e[o]-r||t[o].endSide-t[n].endSide)&&(n=o,r=e[o]);return n}function tH(t,e,n=t.length){let r=0;for(let o=0;o<n&&o<t.length;)9==t.charCodeAt(o)?(r+=e-r%e,o++):(r++,o=k(t,o));return r}function tW(t,e,n,r){for(let r=0,o=0;;){if(o>=e)return r;if(r==t.length)break;o+=9==t.charCodeAt(r)?n-o%n:1,r=k(t,r)}return!0===r?-1:t.length}},249294:function(t,e,n){"use strict";let r;n.d(e,{$1:function(){return nN},$f:function(){return nB},AE:function(){return n7},EY:function(){return nW},Eu:function(){return r1},HQ:function(){return r4},Nm:function(){return tw},OO:function(){return tK},S2:function(){return rc},SJ:function(){return rN},Sd:function(){return rM},Uw:function(){return nq},Y1:function(){return n3},ZO:function(){return rr},Zs:function(){return ra},bF:function(){return rE},dc:function(){return nR},gB:function(){return rC},hJ:function(){return rw},jH:function(){return rp},kH:function(){return tu},l9:function(){return ta},lg:function(){return t1},mH:function(){return rF},p:function(){return tl},qr:function(){return n1},tk:function(){return nk},v5:function(){return rj}});var o,s,a,u=n(913693),l=n(775985),c=n(896433);function h(t){let e;return(e=11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function f(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function p(t,e){if(!e.anchorNode)return!1;try{return f(t,e.anchorNode)}catch(t){return!1}}function d(t){return 3==t.nodeType?E(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function m(t,e,n,r){return!!n&&(b(t,e,n,r,-1)||b(t,e,n,r,1))}function g(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function y(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function b(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:O(t))){if("DIV"==t.nodeName)return!1;let n=t.parentNode;if(!n||1!=n.nodeType)return!1;e=g(t)+(o<0?0:1),t=n}else{if(1!=t.nodeType)return!1;if(1==(t=t.childNodes[e+(o<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=o<0?O(t):0}}}function O(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function w(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function x(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||1>Math.abs(e.width-t.offsetWidth))&&(n=1),(r>.995&&r<1.005||!isFinite(r)||1>Math.abs(e.height-t.offsetHeight))&&(r=1),{scaleX:n,scaleY:r}}class D{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:n}=t;this.set(e,Math.min(t.anchorOffset,e?O(e):0),n,Math.min(t.focusOffset,n?O(n):0))}set(t,e,n,r){this.anchorNode=t,this.anchorOffset=e,this.focusNode=n,this.focusOffset=r}}let k=null;function S(t){if(t.setActive)return t.setActive();if(k)return t.focus(k);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(null==k?{get preventScroll(){return k={preventScroll:!0},!0}}:void 0),!k){k=!1;for(let t=0;t<e.length;){let n=e[t++],r=e[t++],o=e[t++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=o&&(n.scrollLeft=o)}}}function E(t,e,n=e){let o=r||(r=document.createRange());return o.setEnd(t,n),o.setStart(t,e),o}function C(t,e,n,r){let o={key:e,code:e,keyCode:n,which:n,cancelable:!0};r&&({altKey:o.altKey,ctrlKey:o.ctrlKey,shiftKey:o.shiftKey,metaKey:o.metaKey}=r);let s=new KeyboardEvent("keydown",o);s.synthetic=!0,t.dispatchEvent(s);let a=new KeyboardEvent("keyup",o);return a.synthetic=!0,t.dispatchEvent(a),s.defaultPrevented||a.defaultPrevented}function T(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function A(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function M(t,e){for(let n=t,r=e;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;r=O(n=n.childNodes[r-1])}else{if(!n.parentNode||y(n))return null;r=g(n),n=n.parentNode}}}function P(t,e){for(let n=t,r=e;;){if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r};if(1==n.nodeType&&r<n.childNodes.length){if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{if(!n.parentNode||y(n))return null;r=g(n)+1,n=n.parentNode}}}class B{constructor(t,e,n=!0){this.node=t,this.offset=e,this.precise=n}static before(t,e){return new B(t.parentNode,g(t),e)}static after(t,e){return new B(t.parentNode,g(t)+1,e)}}let I=[];class F{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let e=this.posAtStart;for(let n of this.children){if(n==t)return e;e+=n.length+n.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,e){if(2&this.flags){let n=this.dom,r=null,o;for(let s of this.children){if(7&s.flags){if(!s.dom&&(o=r?r.nextSibling:n.firstChild)){let t=F.get(o);(!t||!t.parent&&t.canReuseDOM(s))&&s.reuseDOM(o)}s.sync(t,e),s.flags&=-8}if(o=r?r.nextSibling:n.firstChild,e&&!e.written&&e.node==n&&o!=s.dom&&(e.written=!0),s.dom.parentNode==n)for(;o&&o!=s.dom;)o=N(o);else n.insertBefore(s.dom,o);r=s.dom}for((o=r?r.nextSibling:n.firstChild)&&e&&e.node==n&&(e.written=!0);o;)o=N(o)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(t,e),n.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,e){let n;if(t==this.dom)n=this.dom.childNodes[e];else{let r=0==O(t)?0:0==e?-1:1;for(;;){let e=t.parentNode;if(e==this.dom)break;0==r&&e.firstChild!=e.lastChild&&(r=t==e.firstChild?-1:1),t=e}n=r<0?t:t.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!F.get(n);)n=n.nextSibling;if(!n)return this.length;for(let t=0,e=0;;t++){let r=this.children[t];if(r.dom==n)return e;e+=r.length+r.breakAfter}}domBoundsAround(t,e,n=0){let r=-1,o=-1,s=-1,a=-1;for(let u=0,l=n,c=n;u<this.children.length;u++){let n=this.children[u],h=l+n.length;if(l<t&&h>e)return n.domBoundsAround(t,e,l);if(h>=t&&-1==r&&(r=u,o=l),l>e&&n.dom.parentNode==this.dom){s=u,a=c;break}c=h,l=h+n.breakAfter}return{from:o,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s<this.children.length&&s>=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,n=I){this.markDirty();for(let r=t;r<e;r++){let t=this.children[r];t.parent==this&&0>n.indexOf(t)&&t.destroy()}n.length<250?this.children.splice(t,e-t,...n):this.children=[].concat(this.children.slice(0,t),n,this.children.slice(e));for(let t=0;t<n.length;t++)n[t].setParent(this)}ignoreMutation(t){return!1}ignoreEvent(t){return!1}childCursor(t=this.length){return new L(this.children,t,this.children.length)}childPos(t,e=1){return this.childCursor().findPos(t,e)}toString(){let t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==t?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(t){return t.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(t,e,n,r,o,s){return!1}become(t){return!1}canReuseDOM(t){return t.constructor==this.constructor&&!((this.flags|t.flags)&8)}getSide(){return 0}destroy(){for(let t of this.children)t.parent==this&&t.destroy();this.parent=null}}function N(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}F.prototype.breakAfter=0;class L{constructor(t,e,n){this.children=t,this.pos=e,this.i=n,this.off=0}findPos(t,e=1){for(;;){if(t>this.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function _(t,e,n,r,o,s,a,u,l){let{children:c}=t,h=c.length?c[e]:null,f=s.length?s[s.length-1]:null,p=f?f.breakAfter:a;if(!(e==r&&h&&!a&&!p&&s.length<2&&h.merge(n,o,s.length?f:null,0==n,u,l))){if(r<c.length){let t=c[r];t&&(o<t.length||t.breakAfter&&(null==f?void 0:f.breakAfter))?(e==r&&(t=t.split(o),o=0),!p&&f&&t.merge(0,o,f,!0,0,l)?s[s.length-1]=t:((o||t.children.length&&!t.children[0].length)&&t.merge(0,o,null,!1,0,l),s.push(t))):(null==t?void 0:t.breakAfter)&&(f?f.breakAfter=1:a=1),r++}for(h&&(h.breakAfter=a,n>0&&(!a&&s.length&&h.merge(n,h.length,s[0],!1,u,0)?h.breakAfter=s.shift().breakAfter:(n<h.length||h.children.length&&0==h.children[h.children.length-1].length)&&h.merge(n,h.length,null,!1,u,0),e++));e<r&&s.length;)if(c[r-1].become(s[s.length-1]))r--,s.pop(),l=s.length?0:u;else if(c[e].become(s[0]))e++,s.shift(),u=s.length?0:l;else break;!s.length&&e&&r<c.length&&!c[e-1].breakAfter&&c[r].merge(0,0,c[e-1],!1,u,l)&&e--,(e<r||s.length)&&t.replaceChildren(e,r,s)}}function X(t,e,n,r,o,s){let a=t.childCursor(),{i:u,off:l}=a.findPos(n,1),{i:c,off:h}=a.findPos(e,-1),f=e-n;for(let t of r)f+=t.length;t.length+=f,_(t,c,h,u,l,r,0,o,s)}let R="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},j="undefined"!=typeof document?document:{documentElement:{style:{}}},$=/Edge\/(\d+)/.exec(R.userAgent),V=/MSIE \d/.test(R.userAgent),H=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(R.userAgent),W=!!(V||H||$),z=!W&&/gecko\/(\d+)/i.test(R.userAgent),q=!W&&/Chrome\/(\d+)/.exec(R.userAgent),U="webkitFontSmoothing"in j.documentElement.style,Y=!W&&/Apple Computer/.test(R.vendor),G=Y&&(/Mobile\/\w+/.test(R.userAgent)||R.maxTouchPoints>2);var Q={mac:G||/Mac/.test(R.platform),windows:/Win/.test(R.platform),linux:/Linux|X11/.test(R.platform),ie:W,ie_version:V?j.documentMode||6:H?+H[1]:$?+$[1]:0,gecko:z,gecko_version:z?+(/Firefox\/(\d+)/.exec(R.userAgent)||[0,0])[1]:0,chrome:!!q,chrome_version:q?+q[1]:0,ios:G,android:/Android\b/.test(R.userAgent),webkit:U,safari:Y,webkit_version:U?+(/\bAppleWebKit\/(\d+)/.exec(R.userAgent)||[0,0])[1]:0,tabSize:null!=j.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class K extends F{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){!this.dom&&this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,n){return!(8&this.flags)&&(!n||n instanceof K&&!(this.length-(e-t)+n.length>256)&&!(8&n.flags))&&(this.text=this.text.slice(0,t)+(n?n.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new K(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new B(this.dom,t)}domBoundsAround(t,e,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return function(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let o=e,s=e,a=0;0==e&&n<0||e==r&&n>=0?!(Q.chrome||Q.gecko)&&(e?(o--,a=1):s<r&&(s++,a=-1)):n<0?o--:s<r&&s++;let u=E(t,o,s).getClientRects();if(!u.length)return null;let l=u[(a?a<0:n>=0)?0:u.length-1];return Q.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(u,t=>t.width)||l),a?w(l,a<0):l||null}(this.dom,t,e)}}class J extends F{constructor(t,e=[],n=0){for(let r of(super(),this.mark=t,this.children=e,this.length=n,e))r.setParent(this)}setAttrs(t){if(T(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,n,r,o,s){return(!n||!!(n instanceof J&&n.mark.eq(this.mark))&&(!t||!(o<=0))&&(!(e<this.length)||!(s<=0)))&&(X(this,t,e,n?n.children.slice():[],o-1,s-1),this.markDirty(),!0)}split(t){let e=[],n=0,r=-1,o=0;for(let s of this.children){let a=n+s.length;a>t&&e.push(n<t?s.split(t-n):s),r<0&&n>=t&&(r=o),n=a,o++}let s=this.length-t;return this.length=t,r>-1&&(this.children.length=r,this.markDirty()),new J(this.mark,e,s)}domAtPos(t){return te(this,t)}coordsAt(t,e){return tn(this,t,e)}}class Z extends F{static create(t,e,n){return new Z(t,e,n)}constructor(t,e,n){super(),this.widget=t,this.length=e,this.side=n,this.prevWidget=null}split(t){let e=Z.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),!this.widget.editable&&(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,e,n,r,o,s){return(!n||n instanceof Z&&!!this.widget.compare(n.widget)&&(!(t>0)||!(o<=0))&&(!(e<this.length)||!(s<=0)))&&(this.length=t+(n?n.length:0)+(this.length-e),!0)}become(t){return t instanceof Z&&t.side==this.side&&this.widget.constructor==t.widget.constructor&&(!this.widget.compare(t.widget)&&this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,!0)}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get overrideDOMText(){if(0==this.length)return u.xv.empty;let t=this;for(;t.parent;)t=t.parent;let{view:e}=t,n=e&&e.state.doc,r=this.posAtStart;return n?n.slice(r,r+this.length):u.xv.empty}domAtPos(t){return(this.length?0==t:this.side>0)?B.before(this.dom):B.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let n=this.widget.coordsAt(this.dom,t,e);if(n)return n;let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let s=this.side?this.side<0:t>0;for(let e=s?r.length-1:0;o=r[e],t>0?0!=e:e!=r.length-1&&!(o.top<o.bottom);e+=s?-1:1);return w(o,!s)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class tt extends F{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof tt&&t.side==this.side}split(){return new tt(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return this.side>0?B.before(this.dom):B.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return u.xv.empty}get isHidden(){return!0}}function te(t,e){let n=t.dom,{children:r}=t,o=0;for(let t=0;o<r.length;o++){let s=r[o],a=t+s.length;if(!(a==t&&0>=s.getSide())){if(e>t&&e<a&&s.dom.parentNode==n)return s.domAtPos(e-t);if(e<=t)break;t=a}}for(let t=o;t>0;t--){let e=r[t-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let t=o;t<r.length;t++){let e=r[t];if(e.dom.parentNode==n)return e.domAtPos(0)}return new B(n,0)}K.prototype.children=Z.prototype.children=tt.prototype.children=I;function tn(t,e,n){let r=null,o=-1,s=null,a=-1;!function t(e,u){for(let l=0,c=0;l<e.children.length&&c<=u;l++){let h=e.children[l],f=c+h.length;f>=u&&(h.children.length?t(h,u-c):(!s||s.isHidden&&(n>0||function(t,e){let n=t.coordsAt(0,1),r=e.coordsAt(0,1);return n&&r&&r.top<n.bottom}(s,h)))&&(f>u||c==f&&h.getSide()>0)?(s=h,a=u-c):(c<u||c==f&&0>h.getSide()&&!h.isHidden)&&(r=h,o=u-c)),c=f}}(t,e);let u=(n<0?r:s)||r||s;return u?u.coordsAt(Math.max(0,u==r?o:a),n):function(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=d(e);return n[n.length-1]||null}(t)}function tr(t,e){for(let n in t)"class"==n&&e.class?e.class+=" "+t.class:"style"==n&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}let ti=Object.create(null);function to(t,e,n){if(t==e)return!0;!t&&(t=ti),!e&&(e=ti);let r=Object.keys(t),o=Object.keys(e);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=o.length-(n&&o.indexOf(n)>-1?1:0))return!1;for(let s of r)if(s!=n&&(-1==o.indexOf(s)||t[s]!==e[s]))return!1;return!0}function ts(t,e,n){let r=!1;if(e)for(let o in e)!(n&&o in n)&&(r=!0,"style"==o?t.style.cssText="":t.removeAttribute(o));if(n)for(let o in n)!(e&&e[o]==n[o])&&(r=!0,"style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r}class ta{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var tu=((o=tu||(tu={}))[o.Text=0]="Text",o[o.WidgetBefore=1]="WidgetBefore",o[o.WidgetAfter=2]="WidgetAfter",o[o.WidgetRange=3]="WidgetRange",o);class tl extends u.uU{constructor(t,e,n,r){super(),this.startSide=t,this.endSide=e,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(t){return new tc(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),n=!!t.block;return e+=n&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new tf(t,e,e,n,t.widget||null,!1)}static replace(t){let e=!!t.block,n,r;if(t.isBlockGap)n=-5e8,r=4e8;else{let{start:o,end:s}=tp(t,e);n=(o?e?-3e8:-1:5e8)-1,r=(s?e?2e8:1:-6e8)+1}return new tf(t,n,r,e,t.widget||null,!0)}static line(t){return new th(t)}static set(t,e=!1){return u.Xs.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}tl.none=u.Xs.empty;class tc extends tl{constructor(t){let{start:e,end:n}=tp(t);super(e?-1:5e8,n?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,n;return this==t||t instanceof tc&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(n=t.attrs)||void 0===n?void 0:n.class))&&to(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw RangeError("Mark decorations may not be empty");return super.range(t,e)}}tc.prototype.point=!1;class th extends tl{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof th&&this.spec.class==t.spec.class&&to(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}th.prototype.mapMode=u.gc.TrackBefore,th.prototype.point=!0;class tf extends tl{constructor(t,e,n,r,o,s){super(e,n,o,t),this.block=r,this.isReplace=s,this.mapMode=r?e<=0?u.gc.TrackBefore:u.gc.TrackAfter:u.gc.TrackDel}get type(){return this.startSide!=this.endSide?tu.WidgetRange:this.startSide<=0?tu.WidgetBefore:tu.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof tf&&function(t,e){return t==e||!!(t&&e&&t.compare(e))}(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function tp(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return null==n&&(n=t.inclusive),null==r&&(r=t.inclusive),{start:null!=n?n:e,end:null!=r?r:e}}tf.prototype.point=!0;function td(t,e,n,r=0){let o=n.length-1;o>=0&&n[o]+r>=t?n[o]=Math.max(n[o],e):n.push(t,e)}class tm extends F{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,n,r,o,s){if(n){if(!(n instanceof tm))return!1;!this.dom&&n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),X(this,t,e,n?n.children.slice():[],o,s),!0}split(t){let e=new tm;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i:n,off:r}=this.childPos(t);r&&(e.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let t=n;t<this.children.length;t++)e.append(this.children[t],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){!to(this.attrs,t)&&(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){!function t(e,n,r){let o,{children:s}=e;r>0&&n instanceof J&&s.length&&(o=s[s.length-1])instanceof J&&o.mark.eq(n.mark)?t(o,n.children[0],r-1):(s.push(n),n.setParent(e)),e.length+=n.length}(this,t,e)}addLineDeco(t){let e=t.spec.attributes,n=t.spec.class;e&&(this.attrs=tr(e,this.attrs||{})),n&&(this.attrs=tr({class:n},this.attrs||{}))}domAtPos(t){return te(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=6)}sync(t,e){var n;this.dom?4&this.flags&&(T(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ts(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let r=this.dom.lastChild;for(;r&&F.get(r)instanceof J;)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&(null===(n=F.get(r))||void 0===n?void 0:n.isEditable)==!1&&(!Q.ios||!this.children.some(t=>t instanceof K))){let t=document.createElement("BR");t.cmIgnore=!0,this.dom.appendChild(t)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t=0,e;for(let n of this.children){if(!(n instanceof K)||/[^ -~]/.test(n.text))return null;let r=d(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(t,e){let n=tn(this,t,e);if(!this.children.length&&n&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=n.bottom-n.top;if(2>Math.abs(e-t.lineHeight)&&t.textHeight<e){let r=(e-t.textHeight)/2;return{top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(t){return t instanceof tm&&0==this.children.length&&0==t.children.length&&to(this.attrs,t.attrs)&&this.breakAfter==t.breakAfter}covers(){return!0}static find(t,e){for(let n=0,r=0;n<t.children.length;n++){let o=t.children[n],s=r+o.length;if(s>=e){if(o instanceof tm)return o;if(s>e)break}r=s+o.breakAfter}return null}}class tg extends F{constructor(t,e,n){super(),this.widget=t,this.length=e,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(t,e,n,r,o,s){return(!n||n instanceof tg&&!!this.widget.compare(n.widget)&&(!(t>0)||!(o<=0))&&(!(e<this.length)||!(s<=0)))&&(this.length=t+(n?n.length:0)+(this.length-e),!0)}domAtPos(t){return 0==t?B.before(this.dom):B.after(this.dom,t==this.length)}split(t){let e=this.length-t;this.length=t;let n=new tg(this.widget,e,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return I}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),!this.widget.editable&&(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):u.xv.empty}domBoundsAround(){return null}become(t){return t instanceof tg&&t.widget.constructor==this.widget.constructor&&(!t.widget.compare(this.widget)&&this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,this.deco=t.deco,this.breakAfter=t.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(t,e){let n=this.widget.coordsAt(this.dom,t,e);return n?n:this.widget instanceof ty?null:w(this.dom.getBoundingClientRect(),this.length?0==t:e<=0)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(t){let{startSide:e,endSide:n}=this.deco;return e!=n&&(t<0?e<0:n>0)}}class ty extends ta{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class tv{constructor(t,e,n,r){this.doc=t,this.pos=e,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof tg&&t.deco.endSide<0)}getLine(){return!this.curLine&&(this.content.push(this.curLine=new tm),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(tb(new tt(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof tg)&&this.getLine()}buildText(t,e,n){for(;t>0;){if(this.textOff==this.text.length){let{value:e,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw Error("Ran out of text content when drawing inline views");if(n){!this.posCovered()&&this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=e,this.textOff=0}let r=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-n)),this.getLine().append(tb(new K(this.text.slice(this.textOff,this.textOff+r)),e),n),this.atCursorPos=!0,this.textOff+=r,t-=r,n=0}}span(t,e,n,r){this.buildText(e-t,n,r),this.pos=e,this.openStart<0&&(this.openStart=r)}point(t,e,n,r,o,s){if(this.disallowBlockEffectsFor[s]&&n instanceof tf){if(n.block)throw RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=e-t;if(n instanceof tf){if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new tg(n.widget||tO.block,a,n));else{let s=Z.create(n.widget||tO.inline,a,a?0:n.startSide),u=this.atCursorPos&&!s.isEditable&&o<=r.length&&(t<e||n.startSide>0),l=!s.isEditable&&(t<e||o>r.length||n.startSide<=0),c=this.getLine();2==this.pendingBuffer&&!u&&!s.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),u&&(c.append(tb(new tt(1),r),o),o=r.length+Math.max(0,o-r.length)),c.append(tb(s,r),o),this.atCursorPos=l,this.pendingBuffer=l?t<e||o>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}static build(t,e,n,r,o){let s=new tv(t,e,n,o);return s.openEnd=u.Xs.spans(r,e,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function tb(t,e){for(let n of e)t=new J(n,[t],t.length);return t}class tO extends ta{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}tO.inline=new tO("span"),tO.block=new tO("div");var tw=((s=tw||(tw={}))[s.LTR=0]="LTR",s[s.RTL=1]="RTL",s);let tx=tw.LTR,tD=tw.RTL;function tk(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}let tS=tk("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),tE=tk("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),tC=Object.create(null),tT=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);tC[e]=n,tC[n]=-e}function tA(t){return t<=247?tS[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?tE[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}let tM=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class tP{get dir(){return this.level%2?tD:tx}constructor(t,e,n){this.from=t,this.to=e,this.level=n}side(t,e){return this.dir==e==t?this.to:this.from}forward(t,e){return t==(this.dir==e)}static find(t,e,n,r){let o=-1;for(let s=0;s<t.length;s++){let a=t[s];if(a.from<=e&&a.to>=e){if(a.level==n)return s;(o<0||(0!=r?r<0?a.from<e:a.to>e:t[o].level>a.level))&&(o=s)}}if(o<0)throw RangeError("Index out of range");return o}}let tB=[];function tI(t,e,n,r,o,s,a){let u=e%2?2:1;!function(t,e,n,r,o){for(let s=0;s<=r.length;s++){let a=s?r[s-1].to:e,u=s<r.length?r[s].from:n,l=s?256:o;for(let e=a,n=l,r=l;e<u;e++){let o=tA(t.charCodeAt(e));512==o?o=n:8==o&&4==r&&(o=16),tB[e]=4==o?2:o,7&o&&(r=o),n=o}for(let t=a,e=l,r=l;t<u;t++){let o=tB[t];if(128==o)t<u-1&&e==tB[t+1]&&24&e?o=tB[t]=e:tB[t]=256;else if(64==o){let o=t+1;for(;o<u&&64==tB[o];)o++;let s=t&&8==e||o<n&&8==tB[o]?1==r?1:8:256;for(let e=t;e<o;e++)tB[e]=s;t=o-1}else 8==o&&1==r&&(tB[t]=1);e=o,7&o&&(r=o)}}}(t,o,s,r,u),!function(t,e,n,r,o){let s=1==o?2:1;for(let a=0,u=0,l=0;a<=r.length;a++){let c=a?r[a-1].to:e,h=a<r.length?r[a].from:n;for(let e=c,n,r,a;e<h;e++)if(r=tC[n=t.charCodeAt(e)]){if(r<0){for(let t=u-3;t>=0;t-=3)if(tT[t+1]==-r){let n=tT[t+2],r=2&n?o:4&n?1&n?s:o:0;r&&(tB[e]=tB[tT[t]]=r),u=t;break}}else if(189==tT.length)break;else tT[u++]=e,tT[u++]=n,tT[u++]=l}else if(2==(a=tB[e])||1==a){let t=a==o;l=t?0:1;for(let e=u-3;e>=0;e-=3){let n=tT[e+2];if(2&n)break;if(t)tT[e+2]|=2;else{if(4&n)break;tT[e+2]|=4}}}}}(t,o,s,r,u),!function(t,e,n,r){for(let o=0,s=r;o<=n.length;o++){let a=o?n[o-1].to:t,u=o<n.length?n[o].from:e;for(let l=a;l<u;){let a=tB[l];if(256==a){let a=l+1;for(;;)if(a==u){if(o==n.length)break;a=n[o++].to,u=o<n.length?n[o].from:e}else if(256==tB[a])a++;else break;let c=1==s,h=c==((a<e?tB[a]:r)==1)?c?1:2:r;for(let e=a,r=o,s=r?n[r-1].to:t;e>l;)e==s&&(e=n[--r].from,s=r?n[r-1].to:t),tB[--e]=h;l=a}else s=a,l++}}}(o,s,r,u),!function t(e,n,r,o,s,a,u){let l=o%2?2:1;if(o%2==s%2)for(let c=n,h=0;c<r;){let n=!0,f=!1;if(h==a.length||c<a[h].from){let t=tB[c];t!=l&&(n=!1,f=16==t)}let p=n||1!=l?null:[],d=n?o:o+1,m=c;s:for(;;)if(h<a.length&&m==a[h].from){if(f)break;let t=a[h];if(!n)for(let e=t.to,n=h+1;;){if(e==r)break s;if(n<a.length&&a[n].from==e)e=a[n++].to;else if(tB[e]==l)break s;else break}h++,p?p.push(t):(t.from>c&&u.push(new tP(c,t.from,d)),tI(e,t.direction==tx!=!(d%2)?o+1:o,s,t.inner,t.from,t.to,u),c=t.to),m=t.to}else if(m==r||(n?tB[m]!=l:tB[m]==l))break;else m++;p?t(e,c,m,o+1,s,p,u):c<m&&u.push(new tP(c,m,d)),c=m}else for(let c=r,h=a.length;c>n;){let r=!0,f=!1;if(!h||c>a[h-1].to){let t=tB[c-1];t!=l&&(r=!1,f=16==t)}let p=r||1!=l?null:[],d=r?o:o+1,m=c;s:for(;;)if(h&&m==a[h-1].to){if(f)break;let t=a[--h];if(!r)for(let e=t.from,r=h;;){if(e==n)break s;if(r&&a[r-1].to==e)e=a[--r].from;else if(tB[e-1]==l)break s;else break}p?p.push(t):(t.to<c&&u.push(new tP(t.to,c,d)),tI(e,t.direction==tx!=!(d%2)?o+1:o,s,t.inner,t.from,t.to,u),c=t.from),m=t.from}else if(m==n||(r?tB[m-1]!=l:tB[m-1]==l))break;else m--;p?t(e,m,c,o+1,s,p,u):m<c&&u.push(new tP(m,c,d)),c=m}}(t,o,s,e,n,r,a)}function tF(t){return[new tP(0,t,0)]}let tN="",tL=u.r$.define(),t_=u.r$.define(),tX=u.r$.define(),tR=u.r$.define(),tj=u.r$.define(),t$=u.r$.define(),tV=u.r$.define(),tH=u.r$.define(),tW=u.r$.define(),tz=u.r$.define({combine:t=>t.some(t=>t)}),tq=u.r$.define({combine:t=>t.some(t=>t)}),tU=u.r$.define();class tY{constructor(t,e="nearest",n="nearest",r=5,o=5,s=!1){this.range=t,this.y=e,this.x=n,this.yMargin=r,this.xMargin=o,this.isSnapshot=s}map(t){return t.empty?this:new tY(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new tY(u.jT.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}let tG=u.Py.define({map:(t,e)=>t.map(e)}),tQ=u.Py.define();function tK(t,e,n){let r=t.facet(tR);r.length?r[0](e):window.onerror&&window.onerror(String(e),n,void 0,void 0,e)||(n?console.error(n+":",e):console.error(e))}let tJ=u.r$.define({combine:t=>!t.length||t[0]}),tZ=0,t0=u.r$.define({combine:t=>t.filter((e,n)=>{for(let r=0;r<n;r++)if(t[r].plugin==e.plugin)return!1;return!0})});class t1{constructor(t,e,n,r,o){this.id=t,this.create=e,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=o(this),this.extension=this.baseExtensions.concat(t0.of({plugin:this,arg:void 0}))}of(t){return this.baseExtensions.concat(t0.of({plugin:this,arg:t}))}static define(t,e){let{eventHandlers:n,eventObservers:r,provide:o,decorations:s}=e||{};return new t1(tZ++,t,n,r,t=>{let e=[];return s&&e.push(t4.of(e=>{let n=e.plugin(t);return n?s(n):tl.none})),o&&e.push(o(t)),e})}static fromClass(t,e){return t1.define((e,n)=>new t(e,n),e)}}class t2{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(t){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(tK(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(t){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(t,this.spec.arg)}catch(e){tK(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(e){tK(t.state,e,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let t3=u.r$.define(),t5=u.r$.define(),t4=u.r$.define(),t9=u.r$.define(),t8=u.r$.define(),t6=u.r$.define();function t7(t,e){let n=t.state.facet(t6);if(!n.length)return n;let r=n.map(e=>e instanceof Function?e(t):e),o=[];return u.Xs.spans(r,e.from,e.to,{point(){},span(t,n,r,s){let a=t-e.from,u=n-e.from,l=o;for(let t=r.length-1;t>=0;t--,s--){let n=r[t].spec.bidiIsolate,o;if(null==n&&(n=function(t,e,n){for(let r=e;r<n;r++){let e=tA(t.charCodeAt(r));if(1==e)break;if(2==e||4==e)return tD}return tx}(e.text,a,u)),s>0&&l.length&&(o=l[l.length-1]).to==a&&o.direction==n)o.to=u,l=o.inner;else{let t={from:a,to:u,direction:n,inner:[]};l.push(t),l=t.inner}}}}),o}let et=u.r$.define();function ee(t){let e=0,n=0,r=0,o=0;for(let s of t.state.facet(et)){let a=s(t);a&&(null!=a.left&&(e=Math.max(e,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(o=Math.max(o,a.bottom)))}return{left:e,right:n,top:r,bottom:o}}let en=u.r$.define();class er{constructor(t,e,n,r){this.fromA=t,this.toA=e,this.fromB=n,this.toB=r}join(t){return new er(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,n=this;for(;e>0;e--){let r=t[e-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),t.splice(e-1,1)}}return t.splice(e,0,n),t}static extendWithRanges(t,e){if(0==e.length)return t;let n=[];for(let r=0,o=0,s=0,a=0;;r++){let u=r==t.length?null:t[r],l=s-a,c=u?u.fromB:1e9;for(;o<e.length&&e[o]<c;){let t=e[o],r=e[o+1],s=Math.max(a,t),u=Math.min(c,r);if(s<=u&&new er(s+l,u+l,s,u).addToSet(n),r>c)break;o+=2}if(!u)return n;new er(u.fromA,u.toA,u.fromB,u.toB).addToSet(n),s=u.toA,a=u.toB}}}class ei{constructor(t,e,n){for(let r of(this.view=t,this.state=e,this.transactions=n,this.flags=0,this.startState=t.state,this.changes=u.as.empty(this.startState.doc.length),n))this.changes=this.changes.compose(r.changes);let r=[];this.changes.iterChangedRanges((t,e,n,o)=>r.push(new er(t,e,n,o))),this.changedRanges=r}static create(t,e,n){return new ei(t,e,n)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}class eo extends F{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=tl.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new tm],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new er(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let n=t.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:t,toA:e})=>e<this.minWidthFrom||t>this.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(e=this.domChanged)||void 0===e?void 0:e.newSel)?r=this.domChanged.newSel.head:!function(t,e){let n=!1;return e&&t.iterChangedRanges((t,r)=>{t<e.to&&r>e.from&&(n=!0)}),n}(t.changes,this.hasComposition)&&!t.selectionSet&&(r=t.state.selection.main.head));let o=r>-1?function(t,e,n){let r=es(t,n);if(!r)return null;let{node:o,from:s,to:a}=r,u=o.nodeValue;if(/[\n\r]/.test(u)||t.state.doc.sliceString(r.from,r.to)!=u)return null;let l=e.invertedDesc,c=new er(l.mapPos(s),l.mapPos(a),s,a),h=[];for(let e=o.parentNode;;e=e.parentNode){let n=F.get(e);if(n instanceof J)h.push({node:e,deco:n.mark});else{if(n instanceof tm||"DIV"==e.nodeName&&e.parentNode==t.contentDOM)return{range:c,text:o,marks:h,line:e};if(e==t.contentDOM)return null;h.push({node:e,deco:new tc({inclusive:!0,attributes:function(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value}return e}(e),tagName:e.tagName.toLowerCase()})})}}}(this.view,t.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:e,to:r}=this.hasComposition;n=new er(e,r,t.changes.mapPos(e,-1),t.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(Q.ie||Q.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=function(t,e,n){let r=new ea;return u.Xs.compare(t,e,n,r),r.changes}(this.decorations,this.updateDeco(),t.changes);return n=er.extendWithRanges(n,s),(!!(7&this.flags)||0!=n.length)&&(this.updateInner(n,t.startState.doc.length,o),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,n);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=Q.chrome||Q.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,t),this.flags&=-8,t&&(t.written||r.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(t=>t.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let t of this.children)t instanceof tg&&t.widget instanceof ty&&o.push(t.dom);r.updateGaps(o)}updateChildren(t,e,n){let r=n?n.range.addToSet(t.slice()):t,o=this.childCursor(e);for(let t=r.length-1;;t--){let e=t>=0?r[t]:null;if(!e)break;let{fromA:s,toA:a,fromB:u,toB:l}=e,c,h,f,p;if(n&&n.range.fromB<l&&n.range.toB>u){let t=tv.build(this.view.state.doc,u,n.range.fromB,this.decorations,this.dynamicDecorationMap),e=tv.build(this.view.state.doc,n.range.toB,l,this.decorations,this.dynamicDecorationMap);h=t.breakAtStart,f=t.openStart,p=e.openEnd;let r=this.compositionView(n);e.breakAtStart?r.breakAfter=1:e.content.length&&r.merge(r.length,r.length,e.content[0],!1,e.openStart,0)&&(r.breakAfter=e.content[0].breakAfter,e.content.shift()),t.content.length&&r.merge(0,0,t.content[t.content.length-1],!0,0,t.openEnd)&&t.content.pop(),c=t.content.concat(r).concat(e.content)}else({content:c,breakAtStart:h,openStart:f,openEnd:p}=tv.build(this.view.state.doc,u,l,this.decorations,this.dynamicDecorationMap));let{i:d,off:m}=o.findPos(a,1),{i:g,off:y}=o.findPos(s,-1);_(this,g,y,d,m,c,h,f,p)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(t){for(let e of(this.editContextFormatting=this.editContextFormatting.map(t.changes),t.transactions))for(let t of e.effects)t.is(tQ)&&(this.editContextFormatting=t.value)}compositionView(t){let e=new K(t.text.nodeValue);for(let{deco:n}of(e.flags|=8,t.marks))e=new J(n,[e],e.length);let n=new tm;return n.append(e,0),n}fixCompositionDOM(t){let e=(t,e)=>{e.flags|=8|(e.children.some(t=>7&t.flags)?1:0),this.markedForComposition.add(e);let n=F.get(t);n&&n!=e&&(n.dom=null),e.setDOM(t)},n=this.childPos(t.range.fromB,1),r=this.children[n.i];e(t.line,r);for(let o=t.marks.length-1;o>=-1;o--)n=r.childPos(n.off,1),r=r.children[n.i],e(o>=0?t.marks[o].node:t.text,r)}updateSelection(t=!1,e=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,o=!r&&!(this.view.state.facet(tJ)||this.dom.tabIndex>-1)&&p(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||e||o))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,u=this.moveToLine(this.domAtPos(a.anchor)),l=a.empty?u:this.moveToLine(this.domAtPos(a.head));if(Q.gecko&&a.empty&&!this.hasComposition&&function(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(u)){let t=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(t,u.node.childNodes[u.offset]||null)),u=l=new B(t,0),s=!0}let c=this.view.observer.selectionRange;(s||!c.focusNode||(!m(u.node,u.offset,c.anchorNode,c.anchorOffset)||!m(l.node,l.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,a))&&(this.view.observer.ignore(()=>{Q.android&&Q.chrome&&this.dom.contains(c.focusNode)&&function(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=h(this.view.root);if(t){if(a.empty){if(Q.gecko){let t=function(t,e){return 1!=t.nodeType?0:(e&&"false"==t.childNodes[e-1].contentEditable?1:0)|(e<t.childNodes.length&&"false"==t.childNodes[e].contentEditable?2:0)}(u.node,u.offset);if(t&&3!=t){let e=(1==t?M:P)(u.node,u.offset);e&&(u=new B(e.node,e.offset))}}t.collapse(u.node,u.offset),null!=a.bidiLevel&&void 0!==t.caretBidiLevel&&(t.caretBidiLevel=a.bidiLevel)}else if(t.extend){t.collapse(u.node,u.offset);try{t.extend(l.node,l.offset)}catch(t){}}else{let e=document.createRange();a.anchor>a.head&&([u,l]=[l,u]),e.setEnd(l.node,l.offset),e.setStart(u.node,u.offset),t.removeAllRanges(),t.addRange(e)}}else;o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(u,l)),this.impreciseAnchor=u.precise?null:new B(c.anchorNode,c.anchorOffset),this.impreciseHead=l.precise?null:new B(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&m(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,n=h(t.root),{anchorNode:r,anchorOffset:o}=t.observer.selectionRange;if(!n||!e.empty||!e.assoc||!n.modify)return;let s=tm.find(this,e.head);if(!s)return;let a=s.posAtStart;if(e.head==a||e.head==a+s.length)return;let u=this.coordsAt(e.head,-1),l=this.coordsAt(e.head,1);if(!u||!l||u.bottom>l.top)return;let c=this.domAtPos(e.head+e.assoc);n.collapse(c.node,c.offset),n.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let f=t.observer.selectionRange;t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=e.from&&n.collapse(r,o)}moveToLine(t){let e=this.dom,n;if(t.node!=e)return t;for(let r=t.offset;!n&&r<e.childNodes.length;r++){let t=F.get(e.childNodes[r]);t instanceof tm&&(n=t.domAtPos(0))}for(let r=t.offset-1;!n&&r>=0;r--){let t=F.get(e.childNodes[r]);t instanceof tm&&(n=t.domAtPos(t.length))}return n?new B(n.node,n.offset,!0):t}nearest(t){for(let e=t;e;){let t=F.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let n=this.nearest(t);if(!n)throw RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(t,e)+n.posAtStart}domAtPos(t){let{i:e,off:n}=this.childCursor().findPos(t,-1);for(;e<this.children.length-1;){let t=this.children[e];if(n<t.length||t instanceof tm)break;e++,n=0}return this.children[e].domAtPos(n)}coordsAt(t,e){let n=null,r=0;for(let o=this.length,s=this.children.length-1;s>=0;s--){let a=this.children[s],u=o-a.breakAfter,l=u-a.length;if(u<t)break;if(l<=t&&(l<t||a.covers(-1))&&(u>t||a.covers(1))&&(!n||a instanceof tm&&!(n instanceof tm&&e>=0)))n=a,r=l;else if(n&&l==t&&u==t&&a instanceof tg&&2>Math.abs(e)){if(a.deco.startSide<0)break;s&&(n=null)}o=l}return n?n.coordsAt(t-r,e):null}coordsForChar(t){let{i:e,off:n}=this.childPos(t,1),r=this.children[e];if(!(r instanceof tm))return null;for(;r.children.length;){let{i:t,off:e}=r.childPos(n,1);for(;;t++){if(t==r.children.length)return null;if((r=r.children[t]).length)break}n=e}if(!(r instanceof K))return null;let o=(0,u.cp)(r.text,n);if(o==n)return null;let s=E(r.dom,n,o).getClientRects();for(let t=0;t<s.length;t++){let e=s[t];if(t==s.length-1||e.top<e.bottom&&e.left<e.right)return e}return null}measureVisibleLineHeights(t){let e=[],{from:n,to:r}=t,o=this.view.contentDOM.clientWidth,s=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,u=this.view.textDirection==tw.LTR;for(let t=0,l=0;l<this.children.length;l++){let c=this.children[l],h=t+c.length;if(h>r)break;if(t>=n){let n=c.dom.getBoundingClientRect();if(e.push(n.height),s){let e=c.dom.lastChild,r=e?d(e):[];if(r.length){let e=r[r.length-1],s=u?e.right-n.left:n.right-e.left;s>a&&(a=s,this.minWidth=o,this.minWidthFrom=t,this.minWidthTo=h)}}}t=h+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?tw.RTL:tw.LTR}measureTextSize(){for(let t of this.children)if(t instanceof tm){let e=t.measureTextSize();if(e)return e}let t=document.createElement("div"),e,n,r;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let o=d(t.firstChild)[0];e=t.getBoundingClientRect().height,n=o?o.width/27:7,r=o?o.height:e,t.remove()}),{lineHeight:e,charWidth:n,textHeight:r}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new L(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let n=0,r=0;;r++){let o=r==e.viewports.length?null:e.viewports[r],s=o?o.from-1:this.length;if(s>n){let r=(e.lineBlockAt(s).bottom-e.lineBlockAt(n).top)/this.view.scaleY;t.push(tl.replace({widget:new ty(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,s))}if(!o)break;n=o.to+1}return tl.set(t)}updateDeco(){let t=1,e=this.view.state.facet(t4).map(e=>(this.dynamicDecorationMap[t++]="function"==typeof e)?e(this.view):e),n=!1,r=this.view.state.facet(t9).map((t,e)=>{let r="function"==typeof t;return r&&(n=!0),r?t(this.view):t});for(r.length&&(this.dynamicDecorationMap[t++]=n,e.push(u.Xs.join(r))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];t<this.decorations.length;)this.dynamicDecorationMap[t++]=!1;return this.decorations}scrollIntoView(t){if(t.isSnapshot){let e=this.view.viewState.lineBlockAt(t.range.head);this.view.scrollDOM.scrollTop=e.top-t.yMargin,this.view.scrollDOM.scrollLeft=t.xMargin;return}for(let e of this.view.state.facet(tU))try{if(e(this.view,t.range,t))return!0}catch(t){tK(this.view.state,t,"scroll handler")}let{range:e}=t,n=this.coordsAt(e.head,e.empty?e.assoc:e.head>e.anchor?-1:1),r;if(!n)return;!e.empty&&(r=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let o=ee(this.view),s={left:n.left-o.left,top:n.top-o.top,right:n.right+o.right,bottom:n.bottom+o.bottom},{offsetWidth:a,offsetHeight:u}=this.view.scrollDOM;!function(t,e,n,r,o,s,a,u){let l=t.ownerDocument,c=l.defaultView||window;for(let h=t,f=!1;h&&!f;)if(1==h.nodeType){let t,p=h==l.body,d=1,m=1;if(p)t=function(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(h).position)&&(f=!0),h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.assignedSlot||h.parentNode;continue}let e=h.getBoundingClientRect();({scaleX:d,scaleY:m}=x(h,e)),t={left:e.left,right:e.left+h.clientWidth*d,top:e.top,bottom:e.top+h.clientHeight*m}}let g=0,y=0;if("nearest"==o)e.top<t.top?(y=e.top-(t.top+a),n>0&&e.bottom>t.bottom+y&&(y=e.bottom-t.bottom+a)):e.bottom>t.bottom&&(y=e.bottom-t.bottom+a,n<0&&e.top-y<t.top&&(y=e.top-(t.top+a)));else{let r=e.bottom-e.top,s=t.bottom-t.top;y=("center"==o&&r<=s?e.top+r/2-s/2:"start"==o||"center"==o&&n<0?e.top-a:e.bottom-s+a)-t.top}if("nearest"==r?e.left<t.left?(g=e.left-(t.left+s),n>0&&e.right>t.right+g&&(g=e.right-t.right+s)):e.right>t.right&&(g=e.right-t.right+s,n<0&&e.left<t.left+g&&(g=e.left-(t.left+s))):g=("center"==r?e.left+(e.right-e.left)/2-(t.right-t.left)/2:"start"==r==u?e.left-s:e.right-(t.right-t.left)+s)-t.left,g||y){if(p)c.scrollBy(g,y);else{let t=0,n=0;if(y){let t=h.scrollTop;h.scrollTop+=y/m,n=(h.scrollTop-t)*m}if(g){let e=h.scrollLeft;h.scrollLeft+=g/d,t=(h.scrollLeft-e)*d}e={left:e.left-t,top:e.top-n,right:e.right-t,bottom:e.bottom-n},t&&1>Math.abs(t-g)&&(r="nearest"),n&&1>Math.abs(n-y)&&(o="nearest")}}if(p)break;(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)&&(e={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)}),h=h.assignedSlot||h.parentNode}else if(11==h.nodeType)h=h.host;else break}(this.view.scrollDOM,s,e.head<e.anchor?-1:1,t.x,t.y,Math.max(Math.min(t.xMargin,a),-a),Math.max(Math.min(t.yMargin,u),-u),this.view.textDirection==tw.LTR)}}function es(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=M(n.focusNode,n.focusOffset),o=P(n.focusNode,n.focusOffset),s=r||o;if(o&&r&&o.node!=r.node){let e=F.get(o.node);if(!e||e instanceof K&&e.text!=o.node.nodeValue)s=o;else if(t.docView.lastCompositionAfterCursor){let t=F.get(r.node);!(!t||t instanceof K&&t.text!=r.node.nodeValue)&&(s=o)}}if(t.docView.lastCompositionAfterCursor=s!=r,!s)return null;let a=e-s.offset;return{from:a,to:a+s.node.nodeValue.length,node:s.node}}let ea=class{constructor(){this.changes=[]}compareRange(t,e){td(t,e,this.changes)}comparePoint(t,e){td(t,e,this.changes)}boundChange(t){td(t,t,this.changes)}};function eu(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function el(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function ec(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function eh(t,e,n){let r=t.nodeValue.length,o=-1,s=1e9,a=0;for(let u=0;u<r;u++){let r=E(t,u,u+1).getClientRects();for(let l=0;l<r.length;l++){let c=r[l];if(c.top==c.bottom)continue;!a&&(a=e-c.left);let h=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&h<s){let n=e>=(c.left+c.right)/2,r=n;if((Q.chrome||Q.gecko)&&E(t,u).getBoundingClientRect().left==c.right&&(r=!n),h<=0)return{node:t,offset:u+(r?1:0)};o=u+(r?1:0),s=h}}}return{node:t,offset:o>-1?o:a>0?t.nodeValue.length:0}}function ef(t,e,n,r=-1){var o,s;let a=t.contentDOM.getBoundingClientRect(),u=a.top+t.viewState.paddingTop,l,{docHeight:c}=t.viewState,{x:h,y:f}=e,p=f-u;if(p<0)return 0;if(p>c)return t.state.doc.length;for(let e=t.viewState.heightOracle.textHeight/2,o=!1;(l=t.elementAtHeight(p)).type!=tu.Text;){;for(;!((p=r>0?l.bottom+e:l.top-e)>=0)||!(p<=c);){;if(o)return n?null:0;o=!0,r=-r}}f=u+p;let m=l.from;if(m<t.viewport.from)return 0==t.viewport.from?0:n?null:ep(t,a,l,h,f);if(m>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:ep(t,a,l,h,f);let g=t.dom.ownerDocument,y=t.root.elementFromPoint?t.root:g,b=y.elementFromPoint(h,f);b&&!t.contentDOM.contains(b)&&(b=null),!b&&(h=Math.max(a.left+1,Math.min(a.right-1,h)),(b=y.elementFromPoint(h,f))&&!t.contentDOM.contains(b)&&(b=null));let w,x=-1;if(b&&(null===(o=t.docView.nearest(b))||void 0===o?void 0:o.isEditable)!=!1){if(g.caretPositionFromPoint){let t=g.caretPositionFromPoint(h,f);t&&({offsetNode:w,offset:x}=t)}else if(g.caretRangeFromPoint){let e=g.caretRangeFromPoint(h,f);e&&({startContainer:w,startOffset:x}=e,(!t.contentDOM.contains(w)||Q.safari&&function(t,e,n){let r,o=t;if(3!=t.nodeType||e!=(r=t.nodeValue.length))return!1;for(;;){let t=o.nextSibling;if(t){if("BR"==t.nodeName)break;return!1}{let t=o.parentNode;if(!t||"DIV"==t.nodeName)break;o=t}}return E(t,r-1,r).getBoundingClientRect().right>n}(w,x,h)||Q.chrome&&function(t,e,n){if(0!=e)return!1;for(let e=t;;){let t=e.parentNode;if(!t||1!=t.nodeType||t.firstChild!=e)return!1;if(t.classList.contains("cm-line"))break;e=t}return n-(1==t.nodeType?t.getBoundingClientRect():E(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(w,x,h))&&(w=void 0))}w&&(x=Math.min(O(w),x))}if(!w||!t.docView.dom.contains(w)){let e=tm.find(t.docView,m);if(!e)return p>l.top+l.height/2?l.to:l.from;({node:w,offset:x}=function t(e,n,r){let o,s,a,u,l,c,h,f,p=!1;for(let O=e.firstChild;O;O=O.nextSibling){let e=d(O);for(let d=0;d<e.length;d++){var m,g,y,b;let w=e[d];c&&eu(c,w)&&(w=el(ec(w,c.bottom),c.top));let x=(m=n,(g=w).left>m?g.left-m:Math.max(0,m-g.right)),D=(y=r,(b=w).top>y?b.top-y:Math.max(0,y-b.bottom));if(0==x&&0==D)return 3==O.nodeType?eh(O,n,r):t(O,n,r);(!l||f>D||f==D&&h>x)&&(l=O,c=w,h=x,f=D,p=!x||(n<w.left?d>0:d<e.length-1)),0==x?r>w.bottom&&(!a||a.bottom<w.bottom)?(o=O,a=w):r<w.top&&(!u||u.top>w.top)&&(s=O,u=w):a&&eu(a,w)?a=ec(a,w.bottom):u&&eu(u,w)&&(u=el(u,w.top))}}if(a&&a.bottom>=r?(l=o,c=a):u&&u.top<=r&&(l=s,c=u),!l)return{node:e,offset:0};let O=Math.max(c.left,Math.min(c.right,n));if(3==l.nodeType)return eh(l,O,r);if(p&&"false"!=l.contentEditable)return t(l,O,r);let w=Array.prototype.indexOf.call(e.childNodes,l)+(n>=(c.left+c.right)/2?1:0);return{node:e,offset:w}}(e.dom,h,f))}let D=t.docView.nearest(w);if(!D)return null;if(!D.isWidget||(null===(s=D.dom)||void 0===s?void 0:s.nodeType)!=1)return D.localPosFromDOM(w,x)+D.posAtStart;{let t=D.dom.getBoundingClientRect();return e.y<t.top||e.y<=t.bottom&&e.x<=(t.left+t.right)/2?D.posAtStart:D.posAtEnd}}function ep(t,e,n,r,o){let s=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>1.5*t.defaultLineHeight){let e=t.viewState.heightOracle.textHeight;s+=Math.floor((o-n.top-(t.defaultLineHeight-e)*.5)/e)*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+(0,u.Gz)(a,s,t.state.tabSize)}function ed(t,e,n){let r=t.lineBlockAt(e);if(Array.isArray(r.type)){let t;for(let o of r.type){if(o.from>e)break;if(!(o.to<e)){if(o.from<e&&o.to>e)return o;(!t||o.type==tu.Text&&(t.type!=o.type||(n<0?o.from<e:o.to>e)))&&(t=o)}}return t||r}return r}function em(t,e,n,r){let o=t.state.doc.lineAt(e.head),s=t.bidiSpans(o),a=t.textDirectionAt(o.from);for(let l=e,c=null;;){let e=function(t,e,n,r,o){var s;let a=r.head-t.from,l=tP.find(e,a,null!==(s=r.bidiLevel)&&void 0!==s?s:-1,r.assoc),c=e[l],h=c.side(o,n);if(a==h){let t=l+=o?1:-1;if(t<0||t>=e.length)return null;a=(c=e[l=t]).side(!o,n),h=c.side(o,n)}let f=(0,u.cp)(t.text,a,c.forward(o,n));(f<c.from||f>c.to)&&(f=h),tN=t.text.slice(Math.min(a,f),Math.max(a,f));let p=l==(o?e.length-1:0)?null:e[l+(o?1:-1)];return p&&f==h&&p.level+(o?0:1)<c.level?u.jT.cursor(p.side(!o,n)+t.from,p.forward(o,n)?1:-1,p.level):u.jT.cursor(f+t.from,c.forward(o,n)?-1:1,c.level)}(o,s,a,l,n),h=tN;if(!e){if(o.number==(n?t.state.doc.lines:1))return l;h="\n",o=t.state.doc.line(o.number+(n?1:-1)),s=t.bidiSpans(o),e=t.visualLineSide(o,!n)}if(c){if(!c(h))return l}else{if(!r)return e;c=r(h)}l=e}}function eg(t,e,n){for(;;){let r=0;for(let o of t)o.between(e-1,e+1,(t,o,s)=>{if(e>t&&e<o){let s=r||n||(e-t<o-e?-1:1);e=s<0?t:o,r=s}});if(!r)return e}}function ey(t,e,n){let r=eg(t.state.facet(t8).map(e=>e(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:u.jT.cursor(r,r<n.from?1:-1)}class ev{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(u.yy.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="￿"}readRange(t,e){if(!t)return this;let n=t.parentNode;for(let r=t;;){this.findPointBefore(n,r);let t=this.text.length;this.readNode(r);let o=r.nextSibling;if(o==e)break;let s=F.get(r),a=F.get(o);(s&&a?s.breakAfter:(s?s.breakAfter:y(r))||y(o)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>t)&&this.lineBreak(),r=o}return this.findPointBefore(n,e),this}readTextNode(t){let e=t.nodeValue;for(let n of this.points)n.node==t&&(n.pos=this.text.length+Math.min(n.offset,e.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=e.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(a=r.exec(e))&&(o=a.index,s=a[0].length),this.append(e.slice(n,o<0?e.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let e of this.points)e.node==t&&e.pos>this.text.length&&(e.pos-=s-1);n=o+s}}readNode(t){if(t.cmIgnore)return;let e=F.get(t),n=e&&e.overrideDOMText;if(null!=n){this.findPointInside(t,n.length);for(let t=n.iter();!t.next().done;)t.lineBreak?this.lineBreak():this.append(t.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let n of this.points)n.node==t&&t.childNodes[n.offset]==e&&(n.pos=this.text.length)}findPointInside(t,e){for(let n of this.points)(3==t.nodeType?n.node==t:t.contains(n.node))&&(n.pos=this.text.length+(function(t,e,n){for(;;){if(!e||n<O(e))return!1;if(e==t)return!0;n=g(e)+1,e=e.parentNode}}(t,n.node,n.offset)?e:0))}}class eb{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class eO{constructor(t,e,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=e>-1;let{impreciseHead:o,impreciseAnchor:s}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,n,0))){let e=o||s?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new eb(n,r)),(o!=n||s!=r)&&e.push(new eb(o,s))),e}(t),n=new ev(e,t.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(t,e){if(0==t.length)return null;let n=t[0].pos,r=2==t.length?t[1].pos:n;return n>-1&&r>-1?u.jT.single(n+e,r+e):null}(e,this.bounds.from)}else{let e=t.observer.selectionRange,n=o&&o.node==e.focusNode&&o.offset==e.focusOffset||!f(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset),r=s&&s.node==e.anchorNode&&s.offset==e.anchorOffset||!f(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset),a=t.viewport;if((Q.ios||Q.chrome)&&t.state.selection.main.empty&&n!=r&&(a.from>0||a.to<t.state.doc.length)){let e=Math.min(n,r),o=Math.max(n,r),s=a.from-e,u=a.to-o;(0==s||1==s||0==e)&&(0==u||-1==u||o==t.state.doc.length)&&(n=0,r=t.state.doc.length)}this.newSel=u.jT.single(r,n)}}}function ew(t,e){let n;let{newSel:r}=e,o=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:r,to:a}=e.bounds,l=o.from,c=null;(8===s||Q.android&&e.text.length<a-r)&&(l=o.to,c="end");let h=function(t,e,n,r){let o=Math.min(t.length,e.length),s=0;for(;s<o&&t.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==o&&t.length==e.length)return null;let a=t.length,u=e.length;for(;a>0&&u>0&&t.charCodeAt(a-1)==e.charCodeAt(u-1);)a--,u--;if("end"==r){let t=Math.max(0,s-Math.min(a,u));n-=a+t-s}if(a<s&&t.length<e.length){let t=n<=s&&n>=a?s-n:0;s-=t,u=s+(u-a),a=s}else if(u<s){let t=n<=s&&n>=u?s-n:0;s-=t,a=s+(a-u),u=s}return{from:s,toA:a,toB:u}}(t.state.doc.sliceString(r,a,"￿"),e.text,l-r,c);h&&(Q.chrome&&13==s&&h.toB==h.from+2&&"￿￿"==e.text.slice(h.from,h.toB)&&h.toB--,n={from:r+h.from,to:r+h.toA,insert:u.xv.of(e.text.slice(h.from,h.toB).split("￿"))})}else r&&(!t.hasFocus&&t.state.facet(tJ)||r.main.eq(o))&&(r=null);if(!n&&!r)return!1;if(!n&&e.typeOver&&!o.empty&&r&&r.main.empty?n={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,o.to)}:(Q.mac||Q.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=u.jT.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:u.xv.of([n.insert.toString().replace("."," ")])}):n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,o.to))}:Q.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&t.lineWrapping&&(r&&(r=u.jT.single(r.main.anchor-1,r.main.head-1)),n={from:o.from,to:o.to,insert:u.xv.of([" "])}),n)return ex(t,n,r,s);if(!r||r.main.eq(o))return!1;{let e=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(e=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:e,userEvent:n}),!0}}function ex(t,e,n,r=-1){let o;if(Q.ios&&t.inputState.flushIOSKey(e))return!0;let s=t.state.selection.main;if(Q.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&" "==t.state.sliceDoc(e.from,s.from))&&1==e.insert.length&&2==e.insert.lines&&C(t.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&0==e.insert.length||8==r&&e.insert.length<e.to-e.from&&e.to>s.head)&&C(t.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&0==e.insert.length&&C(t.contentDOM,"Delete",46)))return!0;let a=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let l=()=>o||(o=function(t,e,n){let r,o=t.state,s=o.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=s.from<e.from?o.sliceDoc(s.from,e.from):"",a=s.to>e.to?o.sliceDoc(e.to,s.to):"";r=o.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+a))}else{let a=o.changes(e),l=n&&n.main.to<=a.newLength?n.main:void 0;if(o.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=t.state.sliceDoc(e.from,e.to),h,f=n&&es(t,n.main.head);if(f){let t=e.insert.length-(e.to-e.from);h={from:f.from,to:f.to-t}}else h=t.state.doc.lineAt(s.head);let p=s.to-e.to,d=s.to-s.from;r=o.changeByRange(n=>{if(n.from==s.from&&n.to==s.to)return{changes:a,range:l||n.map(a)};let r=n.to-p,f=r-c.length;if(n.to-n.from!=d||t.state.sliceDoc(f,r)!=c||n.to>=h.from&&n.from<=h.to)return{range:n};let m=o.changes({from:f,to:r,insert:e.insert}),g=n.to-s.to;return{changes:m,range:l?u.jT.range(Math.max(0,l.anchor+g),Math.max(0,l.head+g)):n.map(m)}})}else r={changes:a,selection:l&&o.selection.replaceRange(l)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),o.update(r,{userEvent:a,scrollIntoView:!0})}(t,e,n));return!t.state.facet(t$).some(n=>n(t,e.from,e.to,a,l))&&t.dispatch(l()),!0}class eD{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,Q.safari&&t.contentDOM.addEventListener("input",()=>null),Q.gecko&&function(t){!eY.has(t)&&(eY.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}(t.contentDOM.ownerDocument)}handleEvent(t){if(!(!function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(r=F.get(n))&&r.ignoreEvent(e))return!1;return!0}(this.view,t)||this.ignoreDuringComposition(t)))!("keydown"==t.type&&this.keydown(t))&&(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(t.type,t)):this.runHandlers(t.type,t))}runHandlers(t,e){let n=this.handlers[t];if(n){for(let t of n.observers)t(this.view,e);for(let t of n.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=function(t){let e=Object.create(null);function n(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let e of t){let t=e.spec,r=t&&t.plugin.domEventHandlers,o=t&&t.plugin.domEventObservers;if(r)for(let t in r){let o=r[t];o&&n(t).handlers.push(ek(e.value,o))}if(o)for(let t in o){let r=o[t];r&&n(t).observers.push(ek(e.value,r))}}for(let t in eM)n(t).handlers.push(eM[t]);for(let t in eP)n(t).observers.push(eP[t]);return e}(t),n=this.handlers,r=this.view.contentDOM;for(let t in e)if("scroll"!=t){let o=!e[t].handlers.length,s=n[t];s&&!s.handlers.length!=o&&(r.removeEventListener(t,this.handleEvent),s=null),!s&&r.addEventListener(t,this.handleEvent,{passive:o})}for(let t in n)"scroll"!=t&&!e[t]&&r.removeEventListener(t,this.handleEvent);this.handlers=e}keydown(t){let e;return this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),!!(9==t.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))||((this.tabFocusMode>0&&27!=t.keyCode&&0>eC.indexOf(t.keyCode)&&(this.tabFocusMode=-1),Q.android&&Q.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))?(this.view.observer.delayAndroidKey(t.key,t.keyCode),!0):Q.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=eS.find(e=>e.keyCode==t.keyCode))&&!t.ctrlKey||eE.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0):(229!=t.keyCode&&this.view.observer.forceFlush(),!1))}flushIOSKey(t){let e=this.pendingIOSKey;return!(!e||"Enter"==e.key&&t&&t.from<t.to&&/^\S+$/.test(t.insert.toString()))&&(this.pendingIOSKey=void 0,C(this.view.contentDOM,e.key,e.keyCode,e instanceof KeyboardEvent?e:void 0))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(!!(this.composing>0)||!!(Q.safari&&!Q.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function ek(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(t){tK(n.state,t)}}}let eS=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],eE="dthko",eC=[16,17,18,20,91,92,224,225];function eT(t){return .7*Math.max(0,t)+8}class eA{constructor(t,e,n,r){this.view=t,this.startEvent=e,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParents=function(t){let e=t.ownerDocument,n,r;for(let o=t.parentNode;o&&o!=e.body&&(!n||!r);){;if(1==o.nodeType)!r&&o.scrollHeight>o.clientHeight&&(r=o),!n&&o.scrollWidth>o.clientWidth&&(n=o),o=o.assignedSlot||o.parentNode;else if(11==o.nodeType)o=o.host;else break}return{x:n,y:r}}(t.contentDOM),this.atoms=t.state.facet(t8).map(e=>e(t));let o=t.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(u.yy.allowMultipleSelections)&&function(t,e){let n=t.state.facet(tL);return n.length?n[0](e):Q.mac?e.metaKey:e.ctrlKey}(t,e),this.dragging=!!function(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=h(t.root);if(!r||0==r.rangeCount)return!0;let o=r.getRangeAt(0).getClientRects();for(let t=0;t<o.length;t++){let n=o[t];if(n.left<=e.clientX&&n.right>=e.clientX&&n.top<=e.clientY&&n.bottom>=e.clientY)return!0}return!1}(t,e)&&1==eV(e)&&null}start(t){!1===this.dragging&&this.select(t)}move(t){var e,n;if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&10>(e=this.startEvent,n=t,Math.max(Math.abs(e.clientX-n.clientX),Math.abs(e.clientY-n.clientY))))return;this.select(this.lastEvent=t);let r=0,o=0,s=0,a=0,u=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:u}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:a,bottom:l}=this.scrollParents.y.getBoundingClientRect());let c=ee(this.view);t.clientX-c.left<=s+6?r=-eT(s-t.clientX):t.clientX+c.right>=u-6&&(r=eT(t.clientX-u)),t.clientY-c.top<=a+6?o=-eT(a-t.clientY):t.clientY+c.bottom>=l-6&&(o=eT(t.clientY-l)),this.setScrollSpeed(r,o)}up(t){null==this.dragging&&this.select(this.lastEvent),!this.dragging&&t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:t,y:e}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),e&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=e,e=0),(t||e)&&this.view.win.scrollBy(t,e),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let n=0;n<t.ranges.length;n++){let r=t.ranges[n],o=null;if(r.empty){let t=eg(this.atoms,r.from,0);t!=r.from&&(o=u.jT.cursor(t,-1))}else{let t=eg(this.atoms,r.from,-1),e=eg(this.atoms,r.to,1);(t!=r.from||e!=r.to)&&(o=u.jT.range(r.from==r.anchor?t:e,r.from==r.head?t:e))}o&&(!e&&(e=t.ranges.slice()),e[n]=o)}return e?u.jT.create(e,t.mainIndex):t}select(t){let{view:e}=this,n=this.skipAtoms(this.style.get(t,this.extend,this.multiple));(this.mustSelect||!n.eq(e.state.selection,!1===this.dragging))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}let eM=Object.create(null),eP=Object.create(null),eB=Q.ie&&Q.ie_version<15||Q.ios&&Q.webkit_version<604;function eI(t,e,n){for(let r of t.facet(e))n=r(n,t);return n}function eF(t,e){e=eI(t.state,tH,e);let{state:n}=t,r,o=1,s=n.toText(e),a=s.lines==n.selection.ranges.length;if(null!=eW&&n.selection.ranges.every(t=>t.empty)&&eW==s.toString()){let t=-1;r=n.changeByRange(r=>{let l=n.doc.lineAt(r.from);if(l.from==t)return{range:r};t=l.from;let c=n.toText((a?s.line(o++).text:e)+n.lineBreak);return{changes:{from:l.from,insert:c},range:u.jT.cursor(r.from+c.length)}})}else r=a?n.changeByRange(t=>{let e=s.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:u.jT.cursor(t.from+e.length)}}):n.replaceSelection(s);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}function eN(t,e,n,r){if(1==r)return u.jT.cursor(e,n);if(2==r)return function(t,e,n=1){let r=t.charCategorizer(e),o=t.doc.lineAt(e),s=e-o.from;if(0==o.length)return u.jT.cursor(e);0==s?n=1:s==o.length&&(n=-1);let a=s,l=s;n<0?a=(0,u.cp)(o.text,s,!1):l=(0,u.cp)(o.text,s);let c=r(o.text.slice(a,l));for(;a>0;){let t=(0,u.cp)(o.text,a,!1);if(r(o.text.slice(t,a))!=c)break;a=t}for(;l<o.length;){let t=(0,u.cp)(o.text,l);if(r(o.text.slice(l,t))!=c)break;l=t}return u.jT.range(a+o.from,l+o.from)}(t.state,e,n);{let n=tm.find(t.docView,e),r=t.state.doc.lineAt(n?n.posAtEnd:e),o=n?n.posAtStart:r.from,s=n?n.posAtEnd:r.to;return s<t.state.doc.length&&s==r.to&&s++,u.jT.range(o,s)}}eP.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},eM.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&0!=t.inputState.tabFocusMode&&(t.inputState.tabFocusMode=Date.now()+2e3),!1),eP.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},eP.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},eM.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet(tX))if(n=r(t,e))break;if(!n&&0==e.button&&(n=function(t,e){let n=e_(t,e),r=eV(e),o=t.state.selection;return{update(t){t.docChanged&&(n.pos=t.changes.mapPos(n.pos),o=o.map(t.changes))},get(e,s,a){let l=e_(t,e),c,h=eN(t,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let e=eN(t,n.pos,n.bias,r),o=Math.min(e.from,h.from),s=Math.max(e.to,h.to);h=o<h.from?u.jT.range(o,s):u.jT.range(s,o)}if(s)return o.replaceRange(o.main.extend(h.from,h.to));if(a&&1==r&&o.ranges.length>1&&(c=function(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:o}=t.ranges[n];if(r<=e&&o>=e)return u.jT.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}(o,l.pos)))return c;if(a)return o.addRange(h);else return u.jT.create([h])}}}(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new eA(t,e,n,r)),r&&t.observer.ignore(()=>{S(t.contentDOM);let e=t.root.activeElement;e&&!e.contains(t.contentDOM)&&e.blur()});let o=t.inputState.mouseSelection;if(o)return o.start(e),!1===o.dragging}return!1};let eL=(t,e,n)=>e>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function e_(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:function(t,e,n,r){let o=tm.find(t.docView,e);if(!o)return 1;let s=e-o.posAtStart;if(0==s)return 1;if(s==o.length)return -1;let a=o.coordsAt(s,-1);if(a&&eL(n,r,a))return -1;let u=o.coordsAt(s,1);return u&&eL(n,r,u)?1:a&&a.bottom>=r?-1:1}(t,n,e.clientX,e.clientY)}}let eX=Q.ie&&Q.ie_version<=11,eR=null,ej=0,e$=0;function eV(t){if(!eX)return t.detail;let e=eR,n=e$;return eR=t,e$=Date.now(),ej=!e||n>Date.now()-400&&2>Math.abs(e.clientX-t.clientX)&&2>Math.abs(e.clientY-t.clientY)?(ej+1)%3:1}function eH(t,e,n,r){var o,s;let a;if(!(n=eI(t.state,tH,n)))return;let u=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:l}=t.inputState;let c=r&&l&&(o=t,s=e,(a=o.state.facet(t_)).length?a[0](s):Q.mac?!s.altKey:!s.ctrlKey)?{from:l.from,to:l.to}:null,h={from:u,insert:n},f=t.state.changes(c?[c,h]:h);t.focus(),t.dispatch({changes:f,selection:{anchor:f.mapPos(u,-1),head:f.mapPos(u,1)},userEvent:c?"move.drop":"input.drop"}),t.inputState.draggedContent=null}eM.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let t=r.posAtStart,e=t+r.length;(t>=n.to||e<=n.from)&&(n=u.jT.range(t,e))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",eI(t.state,tW,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1},eM.dragend=t=>(t.inputState.draggedContent=null,!1),eM.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),o=0,s=()=>{++o==n.length&&eH(t,e,r.filter(t=>null!=t).join(t.state.lineBreak),!1)};for(let t=0;t<n.length;t++){let e=new FileReader;e.onerror=s,e.onload=()=>{!/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)&&(r[t]=e.result),s()},e.readAsText(n[t])}return!0}{let n=e.dataTransfer.getData("Text");if(n)return eH(t,e,n,!0),!0}return!1},eM.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=eB?null:e.clipboardData;return n?(eF(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(!function(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),eF(t,n.value)},50)}(t),!1)};let eW=null;eM.copy=eM.cut=(t,e)=>{let{text:n,ranges:r,linewise:o}=function(t){let e=[],n=[],r=!1;for(let r of t.selection.ranges)!r.empty&&(e.push(t.sliceDoc(r.from,r.to)),n.push(r));if(!e.length){let o=-1;for(let{from:r}of t.selection.ranges){let s=t.doc.lineAt(r);s.number>o&&(e.push(s.text),n.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),o=s.number}r=!0}return{text:eI(t,tW,e.join(t.lineBreak)),ranges:n,linewise:r}}(t.state);if(!n&&!o)return!1;eW=o?n:null,"cut"==e.type&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let s=eB?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(!function(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}(t,n),!1)};let ez=u.q6.define();function eq(t,e){let n=[];for(let r of t.facet(tV)){let o=r(t,e);o&&n.push(o)}return n.length?t.update({effects:n,annotations:ez.of(!0)}):null}function eU(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=eq(t.state,e);n?t.dispatch(n):t.update([])}},10)}eP.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),eU(t)},eP.blur=t=>{t.observer.clearSelectionRange(),eU(t)},eP.compositionstart=eP.compositionupdate=t=>{!t.observer.editContext&&(null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))},eP.compositionend=t=>{!t.observer.editContext&&(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Q.chrome&&Q.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))},eP.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},eM.beforeinput=(t,e)=>{var n,r;let o;if("insertReplacementText"==e.inputType&&t.observer.editContext){let r=null===(n=e.dataTransfer)||void 0===n?void 0:n.getData("text/plain"),o=e.getTargetRanges();if(r&&o.length){let e=o[0],n=t.posAtDOM(e.startContainer,e.startOffset),s=t.posAtDOM(e.endContainer,e.endOffset);return ex(t,{from:n,to:s,insert:t.state.toText(r)},null),!0}}if(Q.chrome&&Q.android&&(o=eS.find(t=>t.inputType==e.inputType))&&(t.observer.delayAndroidKey(o.key,o.keyCode),"Backspace"==o.key||"Delete"==o.key)){let e=(null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0;setTimeout(()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>e+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Q.ios&&"deleteContentForward"==e.inputType&&t.observer.flushSoon(),Q.safari&&"insertText"==e.inputType&&t.inputState.composing>=0&&setTimeout(()=>eP.compositionend(t,e),20),!1};let eY=new Set,eG=["pre-wrap","normal","pre-line","break-spaces"],eQ=!1;function eK(){eQ=!1}class eJ{constructor(t){this.lineWrapping=t,this.doc=u.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(t,e){let n=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((e-t-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return eG.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let n=0;n<t.length;n++){let r=t[n];r<0?n++:!this.heightSamples[Math.floor(10*r)]&&(e=!0,this.heightSamples[Math.floor(10*r)]=!0)}return e}refresh(t,e,n,r,o,s){let a=eG.indexOf(t)>-1,u=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=e,this.charWidth=n,this.textHeight=r,this.lineLength=o,u){this.heightSamples={};for(let t=0;t<s.length;t++){let e=s[t];e<0?t++:this.heightSamples[Math.floor(10*e)]=!0}}return u}}class eZ{constructor(t,e){this.from=t,this.heights=e,this.index=0}get more(){return this.index<this.heights.length}}class e0{constructor(t,e,n,r,o){this.from=t,this.length=e,this.top=n,this.height=r,this._content=o}get type(){return"number"==typeof this._content?tu.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof tf?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(t){let e=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new e0(this.from,this.length+t.length,this.top,this.height+t.height,e)}}var e1=((a=e1||(e1={}))[a.ByPos=0]="ByPos",a[a.ByHeight=1]="ByHeight",a[a.ByPosNoHeight=2]="ByPosNoHeight",a);class e2{constructor(t,e,n=2){this.length=t,this.height=e,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>.001&&(eQ=!0),this.height=t)}replace(t,e,n){return e2.of(n)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,n,r){let o=this,s=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:u,toA:l,fromB:c,toB:h}=r[a],f=o.lineAt(u,e1.ByPosNoHeight,n.setDoc(e),0,0),p=f.to>=l?f:o.lineAt(l,e1.ByPosNoHeight,n,0,0);for(h+=p.to-l,l=p.to;a>0&&f.from<=r[a-1].toA;)u=r[a-1].fromA,c=r[a-1].fromB,a--,u<f.from&&(f=o.lineAt(u,e1.ByPosNoHeight,n,0,0));c+=f.from-u,u=f.from;let d=e7.build(n.setDoc(s),t,c,h);o=e3(o,o.replace(u,l,d))}return o.updateHeight(n,0)}static empty(){return new e4(0,0)}static of(t){if(1==t.length)return t[0];let e=0,n=t.length,r=0,o=0;for(;;)if(e==n){if(r>2*o){let o=t[e-1];o.break?t.splice(--e,1,o.left,null,o.right):t.splice(--e,1,o.left,o.right),n+=1+o.break,r-=o.size}else if(o>2*r){let e=t[n];e.break?t.splice(n,1,e.left,null,e.right):t.splice(n,1,e.left,e.right),n+=2+e.break,o-=e.size}else break}else if(r<o){let n=t[e++];n&&(r+=n.size)}else{let e=t[--n];e&&(o+=e.size)}let s=0;return null==t[e-1]?(s=1,e--):null==t[e]&&(s=1,n++),new e8(e2.of(t.slice(0,e)),s,e2.of(t.slice(n)))}}function e3(t,e){return t==e?t:(t.constructor!=e.constructor&&(eQ=!0),e)}e2.prototype.size=1;class e5 extends e2{constructor(t,e,n){super(t,e),this.deco=n}blockAt(t,e,n,r){return new e0(r,this.length,n,this.height,this.deco||0)}lineAt(t,e,n,r,o){return this.blockAt(0,n,r,o)}forEachLine(t,e,n,r,o,s){t<=o+this.length&&e>=o&&s(this.blockAt(0,n,r,o))}updateHeight(t,e=0,n=!1,r){return r&&r.from<=e&&r.more&&this.setHeight(r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class e4 extends e5{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,n,r){return new e0(r,this.length,n,this.height,this.breaks)}replace(t,e,n){let r=n[0];return 1==n.length&&(r instanceof e4||r instanceof e9&&4&r.flags)&&10>Math.abs(this.length-r.length)?(r instanceof e9?r=new e4(r.length,this.height):r.height=this.height,!this.outdated&&(r.outdated=!1),r):e2.of(n)}updateHeight(t,e=0,n=!1,r){return r&&r.from<=e&&r.more?this.setHeight(r.heights[r.index++]):(n||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class e9 extends e2{constructor(t){super(t,0)}heightMetrics(t,e){let n=t.doc.lineAt(e).number,r=t.doc.lineAt(e+this.length).number,o=r-n+1,s,a=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*o);s=e/o,this.length>o+1&&(a=(this.height-e)/(this.length-o-1))}else s=this.height/o;return{firstLine:n,lastLine:r,perLine:s,perChar:a}}blockAt(t,e,n,r){let{firstLine:o,lastLine:s,perLine:a,perChar:u}=this.heightMetrics(e,r);if(e.lineWrapping){let o=r+(t<e.lineHeight?0:Math.round(Math.max(0,Math.min(1,(t-n)/this.height))*this.length)),s=e.doc.lineAt(o),l=a+s.length*u,c=Math.max(n,t-l/2);return new e0(s.from,s.length,c,l,0)}{let r=Math.max(0,Math.min(s-o,Math.floor((t-n)/a))),{from:u,length:l}=e.doc.line(o+r);return new e0(u,l,n+a*r,a,0)}}lineAt(t,e,n,r,o){if(e==e1.ByHeight)return this.blockAt(t,n,r,o);if(e==e1.ByPosNoHeight){let{from:e,to:r}=n.doc.lineAt(t);return new e0(e,r-e,0,0,0)}let{firstLine:s,perLine:a,perChar:u}=this.heightMetrics(n,o),l=n.doc.lineAt(t),c=a+l.length*u,h=l.number-s,f=r+a*h+u*(l.from-o-h);return new e0(l.from,l.length,Math.max(r,Math.min(f,r+this.height-c)),c,0)}forEachLine(t,e,n,r,o,s){t=Math.max(t,o),e=Math.min(e,o+this.length);let{firstLine:a,perLine:u,perChar:l}=this.heightMetrics(n,o);for(let c=t,h=r;c<=e;){let e=n.doc.lineAt(c);if(c==t){let n=e.number-a;h+=u*n+l*(t-o-n)}let r=u+l*e.length;s(new e0(e.from,e.length,h,r,0)),h+=r,c=e.to+1}}replace(t,e,n){let r=this.length-e;if(r>0){let t=n[n.length-1];t instanceof e9?n[n.length-1]=new e9(t.length+r):n.push(null,new e9(r-1))}if(t>0){let e=n[0];e instanceof e9?n[0]=new e9(t+e.length):n.unshift(new e9(t-1),null)}return e2.of(n)}decomposeLeft(t,e){e.push(new e9(t-1),null)}decomposeRight(t,e){e.push(null,new e9(this.length-t-1))}updateHeight(t,e=0,n=!1,r){let o=e+this.length;if(r&&r.from<=e+this.length&&r.more){let n=[],s=Math.max(e,r.from),a=-1;for(r.from>e&&n.push(new e9(r.from-e-1).updateHeight(t,e));s<=o&&r.more;){let e=t.doc.lineAt(s).length;n.length&&n.push(null);let o=r.heights[r.index++];-1==a?a=o:Math.abs(o-a)>=.001&&(a=-2);let u=new e4(e,o);u.outdated=!1,n.push(u),s+=e+1}s<=o&&n.push(null,new e9(o-s).updateHeight(t,s));let u=e2.of(n);return(a<0||Math.abs(u.height-this.height)>=.001||Math.abs(a-this.heightMetrics(t,e).perLine)>=.001)&&(eQ=!0),e3(this,u)}return(n||this.outdated)&&(this.setHeight(t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class e8 extends e2{constructor(t,e,n){super(t.length+e+n.length,t.height+n.height,e|(t.outdated||n.outdated?2:0)),this.left=t,this.right=n,this.size=t.size+n.size}get break(){return 1&this.flags}blockAt(t,e,n,r){let o=n+this.left.height;return t<o?this.left.blockAt(t,e,n,r):this.right.blockAt(t,e,o,r+this.left.length+this.break)}lineAt(t,e,n,r,o){let s=r+this.left.height,a=o+this.left.length+this.break,u=e==e1.ByHeight?t<s:t<a,l=u?this.left.lineAt(t,e,n,r,o):this.right.lineAt(t,e,n,s,a);if(this.break||(u?l.to<a:l.from>a))return l;let c=e==e1.ByPosNoHeight?e1.ByPosNoHeight:e1.ByPos;return u?l.join(this.right.lineAt(a,c,n,s,a)):this.left.lineAt(a,c,n,r,o).join(l)}forEachLine(t,e,n,r,o,s){let a=r+this.left.height,u=o+this.left.length+this.break;if(this.break)t<u&&this.left.forEachLine(t,e,n,r,o,s),e>=u&&this.right.forEachLine(t,e,n,a,u,s);else{let l=this.lineAt(u,e1.ByPos,n,r,o);t<l.from&&this.left.forEachLine(t,l.from-1,n,r,o,s),l.to>=t&&l.from<=e&&s(l),e>l.to&&this.right.forEachLine(l.to+1,e,n,a,u,s)}}replace(t,e,n){let r=this.left.length+this.break;if(e<r)return this.balanced(this.left.replace(t,e,n),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-r,e-r,n));let o=[];t>0&&this.decomposeLeft(t,o);let s=o.length;for(let t of n)o.push(t);if(t>0&&e6(o,s-1),e<this.length){let t=o.length;this.decomposeRight(e,o),e6(o,t)}return e2.of(o)}decomposeLeft(t,e){let n=this.left.length;if(t<=n)return this.left.decomposeLeft(t,e);e.push(this.left),this.break&&t>=++n&&e.push(null),t>n&&this.right.decomposeLeft(t-n,e)}decomposeRight(t,e){let n=this.left.length,r=n+this.break;if(t>=r)return this.right.decomposeRight(t-r,e);t<n&&this.left.decomposeRight(t,e),this.break&&t<r&&e.push(null),e.push(this.right)}balanced(t,e){return t.size>2*e.size||e.size>2*t.size?e2.of(this.break?[t,null,e]:[t,e]):(this.left=e3(this.left,t),this.right=e3(this.right,e),this.setHeight(t.height+e.height),this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,n=!1,r){let{left:o,right:s}=this,a=e+o.length+this.break,u=null;return(r&&r.from<=e+o.length&&r.more?u=o=o.updateHeight(t,e,n,r):o.updateHeight(t,e,n),r&&r.from<=a+s.length&&r.more?u=s=s.updateHeight(t,a,n,r):s.updateHeight(t,a,n),u)?this.balanced(o,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function e6(t,e){let n,r;null==t[e]&&(n=t[e-1])instanceof e9&&(r=t[e+1])instanceof e9&&t.splice(e-1,3,new e9(n.length+1+r.length))}class e7{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof e4?n.length+=t-this.pos:(t>this.pos||!this.isCovered)&&this.nodes.push(new e4(t-this.pos,-1)),this.writtenTo=t,e>t&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,n){if(t<e||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,o=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let s=e-t;n.block?this.addBlock(new e5(s,r,n)):(s||o||r>=5)&&this.addLineDeco(r,o,s)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTo<t&&((this.writtenTo<t-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new e4(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let n=new e9(e-t);return this.oracle.doc.lineAt(t).to==e&&(n.flags|=4),n}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof e4)return t;let e=new e4(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,t),r.breaks+=e,this.writtenTo=this.pos=this.pos+n}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof e4||this.isCovered?(this.writtenTo<this.pos||null==e)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new e4(0,-1));let n=t;for(let t of this.nodes)t instanceof e4&&t.updateHeight(this.oracle,n),n+=t?t.length:1;return this.nodes}static build(t,e,n,r){let o=new e7(n,t);return u.Xs.spans(e,n,r,o,0),o.finish(n)}}class nt{constructor(){this.changes=[]}compareRange(){}comparePoint(t,e,n,r){(t<e||n&&n.heightRelevant||r&&r.heightRelevant)&&td(t,e,this.changes,5)}}class ne{constructor(t,e,n,r){this.from=t,this.to=e,this.size=n,this.displaySize=r}static same(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=e[n];if(r.from!=o.from||r.to!=o.to||r.size!=o.size)return!1}return!0}draw(t,e){return tl.replace({widget:new nn(this.displaySize*(e?t.scaleY:t.scaleX),e)}).range(this.from,this.to)}}class nn extends ta{constructor(t,e){super(),this.size=t,this.vertical=e}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}}class nr{constructor(t){this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=na,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=tw.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let e=t.facet(t5).some(t=>"function"!=typeof t&&"cm-lineWrapping"==t.class);this.heightOracle=new eJ(e),this.stateDeco=t.facet(t4).filter(t=>"function"!=typeof t),this.heightMap=e2.empty().applyChanges(this.stateDeco,u.xv.empty,this.heightOracle.setDoc(t.doc),[new er(0,0,0,t.doc.length)]);for(let t=0;t<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());t++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=tl.set(this.lineGaps.map(t=>t.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let n=0;n<=1;n++){let r=n?e.head:e.anchor;if(!t.some(({from:t,to:e})=>r>=t&&r<=e)){let{from:e,to:n}=this.lineBlockAt(r);t.push(new ni(e,n))}}return this.viewports=t.sort((t,e)=>t.from-e.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?na:new nu(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(nl(t,this.scaler))})}update(t,e=null){var n,r,o;let s;this.state=t.state;let a=this.stateDeco;this.stateDeco=this.state.facet(t4).filter(t=>"function"!=typeof t);let l=t.changedRanges;let c=er.extendWithRanges(l,(n=a,r=this.stateDeco,o=t?t.changes:u.as.empty(this.state.doc.length),s=new nt,u.Xs.compare(n,r,o,s,0),s.changes)),h=this.heightMap.height,f=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);eQ=!1,this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),c),(this.heightMap.height!=h||eQ)&&(t.flags|=2),f?(this.scrollAnchorPos=t.changes.mapPos(f.from,-1),this.scrollAnchorHeight=f.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=h);let p=c.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.head<p.from||e.range.head>p.to)||!this.viewportIsAppropriate(p))&&(p=this.getViewport(0,e));let d=p.from!=this.viewport.from||p.to!=this.viewport.to;this.viewport=p,t.flags|=this.updateForViewport(),(d||!t.changes.empty||2&t.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(t.changes),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(tq)&&(this.mustEnforceCursorAssoc=!0)}measure(t){var e;let n,r,o=t.contentDOM,s=window.getComputedStyle(o),a=this.heightOracle,l=s.whiteSpace;this.defaultTextDirection="rtl"==s.direction?tw.RTL:tw.LTR;let c=this.heightOracle.mustRefreshForWrapping(l),h=o.getBoundingClientRect(),f=c||this.mustMeasureContent||this.contentDOMHeight!=h.height;this.contentDOMHeight=h.height,this.mustMeasureContent=!1;let p=0,d=0;if(h.width&&h.height){let{scaleX:t,scaleY:e}=x(o,h);(t>.005&&Math.abs(this.scaleX-t)>.005||e>.005&&Math.abs(this.scaleY-e)>.005)&&(this.scaleX=t,this.scaleY=e,p|=16,c=f=!0)}let m=(parseInt(s.paddingTop)||0)*this.scaleY,g=(parseInt(s.paddingBottom)||0)*this.scaleY;(this.paddingTop!=m||this.paddingBottom!=g)&&(this.paddingTop=m,this.paddingBottom=g,p|=18),this.editorWidth!=t.scrollDOM.clientWidth&&(a.lineWrapping&&(f=!0),this.editorWidth=t.scrollDOM.clientWidth,p|=16);let y=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=A(t.scrollDOM);let b=(this.printing?function(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}:function(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,o=r.defaultView||window,s=Math.max(0,n.left),a=Math.min(o.innerWidth,n.right),u=Math.max(0,n.top),l=Math.min(o.innerHeight,n.bottom);for(let e=t.parentNode;e&&e!=r.body;)if(1==e.nodeType){let n=e,r=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();s=Math.max(s,r.left),a=Math.min(a,r.right),u=Math.max(u,r.top),l=Math.min(e==t.parentNode?o.innerHeight:l,r.bottom)}e="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else if(11==e.nodeType)e=e.host;else break;return{left:s-n.left,right:Math.max(s,a)-n.left,top:u-(n.top+e),bottom:Math.max(u,l)-(n.top+e)}})(o,this.paddingTop),O=b.top-this.pixelViewport.top,w=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let D=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;D!=this.inView&&(this.inView=D,D&&(f=!0));if(!this.inView&&!this.scrollTarget&&(n=(e=t.dom).getBoundingClientRect(),r=e.ownerDocument.defaultView||window,!(n.left<r.innerWidth)||!(n.right>0)||!(n.top<r.innerHeight)||!(n.bottom>0)))return 0;let k=h.width;if((this.contentDOMWidth!=k||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=h.width,this.editorHeight=t.scrollDOM.clientHeight,p|=16),f){let e=t.docView.measureVisibleLineHeights(this.viewport);if(a.mustRefreshForHeights(e)&&(c=!0),c||a.lineWrapping&&Math.abs(k-this.contentDOMWidth)>a.charWidth){let{lineHeight:n,charWidth:r,textHeight:o}=t.docView.measureTextSize();(c=n>0&&a.refresh(l,n,r,o,k/r,e))&&(t.docView.minWidth=0,p|=16)}for(let n of(O>0&&w>0?d=Math.max(O,w):O<0&&w<0&&(d=Math.min(O,w)),eQ=!1,this.viewports)){let r=n.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(n);this.heightMap=(c?e2.empty().applyChanges(this.stateDeco,u.xv.empty,this.heightOracle,[new er(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(a,0,c,new eZ(n.from,r))}eQ&&(p|=2)}let S=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return S&&(2&p&&(p|=this.updateScaler()),this.viewport=this.getViewport(d,this.scrollTarget),p|=this.updateForViewport()),(2&p||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(c?[]:this.lineGaps,t)),p|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),p}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let n=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),r=this.heightMap,o=this.heightOracle,{visibleTop:s,visibleBottom:a}=this,u=new ni(r.lineAt(s-1e3*n,e1.ByHeight,o,0,0).from,r.lineAt(a+(1-n)*1e3,e1.ByHeight,o,0,0).to);if(e){let{head:t}=e.range;if(t<u.from||t>u.to){let n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=r.lineAt(t,e1.ByPos,o,0,0),a;a="center"==e.y?(s.top+s.bottom)/2-n/2:"start"==e.y||"nearest"==e.y&&t<u.from?s.top:s.bottom-n,u=new ni(r.lineAt(a-500,e1.ByHeight,o,0,0).from,r.lineAt(a+n+500,e1.ByHeight,o,0,0).to)}}return u}mapViewport(t,e){let n=e.mapPos(t.from,-1),r=e.mapPos(t.to,1);return new ni(this.heightMap.lineAt(n,e1.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,e1.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:e},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(t,e1.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(e,e1.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:a}=this;return(0==t||r<=s-Math.max(10,Math.min(-n,250)))&&(e==this.state.doc.length||o>=a+Math.max(10,Math.min(n,250)))&&r>s-2e3&&o<a+2e3}mapLineGaps(t,e){if(!t.length||e.empty)return t;let n=[];for(let r of t)!e.touchesRange(r.from,r.to)&&n.push(new ne(e.mapPos(r.from),e.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(t,e){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,o=r>>1,s=r<<1;if(this.defaultTextDirection!=tw.LTR&&!n)return[];let a=[],l=(r,s,c,h)=>{if(s-r<o)return;let f=this.state.selection.main,p=[f.from];for(let t of(!f.empty&&p.push(f.to),p))if(t>r&&t<s){l(r,t-10,c,h),l(t+10,s,c,h);return}let d=function(t,e){for(let n of t)if(e(n))return n}(t,t=>t.from>=c.from&&t.to<=c.to&&Math.abs(t.from-r)<o&&Math.abs(t.to-s)<o&&!p.some(e=>t.from<e&&t.to>e));if(!d){if(s<c.to&&e&&n&&e.visibleRanges.some(t=>t.from<=s&&t.to>=s)){let t=e.moveToLineBoundary(u.jT.cursor(s),!1,!0).head;t>r&&(s=t)}let t=this.gapSize(c,r,s,h),o=n||t<2e6?t:2e6;d=new ne(r,s,t,o)}a.push(d)},c=e=>{let o,a;if(e.length<s||e.type!=tu.Text)return;let c=function(t,e,n){let r=[],o=t,s=0;return u.Xs.spans(n,t,e,{span(){},point(t,e){t>o&&(r.push({from:o,to:t}),s+=t-o),o=e}},20),o<e&&(r.push({from:o,to:e}),s+=e-o),{total:s,ranges:r}}(e.from,e.to,this.stateDeco);if(c.total<s)return;let h=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let t,n,s=r/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=h){let r=ns(c,h),o=((this.visibleBottom-this.visibleTop)/2+s)/e.height;t=r-o,n=r+o}else t=(this.visibleTop-e.top-s)/e.height,n=(this.visibleBottom-e.top+s)/e.height;o=no(c,t),a=no(c,n)}else{let n,s,u=c.total*this.heightOracle.charWidth,l=r*this.heightOracle.charWidth,f=0;if(u>2e6)for(let n of t)n.from>=e.from&&n.from<e.to&&n.size!=n.displaySize&&n.from*this.heightOracle.charWidth+f<this.pixelViewport.left&&(f=n.size-n.displaySize);let p=this.pixelViewport.left+f,d=this.pixelViewport.right+f;if(null!=h){let t=ns(c,h),e=((d-p)/2+l)/u;n=t-e,s=t+e}else n=(p-l)/u,s=(d+l)/u;o=no(c,n),a=no(c,s)}o>e.from&&l(e.from,o,e,c),a<e.to&&l(a,e.to,e,c)};for(let t of this.viewportLines)Array.isArray(t.type)?t.type.forEach(c):c(t);return a}gapSize(t,e,n,r){let o=ns(r,n)-ns(r,e);return this.heightOracle.lineWrapping?t.height*o:r.total*this.heightOracle.charWidth*o}updateLineGaps(t){!ne.same(t,this.lineGaps)&&(this.lineGaps=t,this.lineGapDeco=tl.set(t.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(t){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];u.Xs.spans(e,this.viewport.from,this.viewport.to,{span(t,e){n.push({from:t,to:e})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let e=0;e<n.length&&!(8&r);e++){let o=this.visibleRanges[e],s=n[e];(o.from!=s.from||o.to!=s.to)&&(r|=4,!(t&&t.mapPos(o.from,-1)==s.from&&t.mapPos(o.to,1)==s.to)&&(r|=8))}return this.visibleRanges=n,r}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||nl(this.heightMap.lineAt(t,e1.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(e=>e.top<=t&&e.bottom>=t)||nl(this.heightMap.lineAt(this.scaler.fromDOM(t),e1.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return nl(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class ni{constructor(t,e){this.from=t,this.to=e}}function no({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let t=0;;t++){let{from:n,to:o}=e[t],s=o-n;if(r<=s)return n+r;r-=s}}function ns(t,e){let n=0;for(let{from:r,to:o}of t.ranges){if(e<=o){n+=e-r;break}n+=o-r}return n/t.total}let na={toDOM:t=>t,fromDOM:t=>t,scale:1,eq(t){return t==this}};class nu{constructor(t,e,n){let r=0,o=0,s=0;for(let a of(this.viewports=n.map(({from:n,to:o})=>{let s=e.lineAt(n,e1.ByPos,t,0,0).top,a=e.lineAt(o,e1.ByPos,t,0,0).bottom;return r+=a-s,{from:n,to:o,top:s,bottom:a,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r),this.viewports))a.domTop=s+(a.top-o)*this.scale,s=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(t){for(let e=0,n=0,r=0;;e++){let o=e<this.viewports.length?this.viewports[e]:null;if(!o||t<o.top)return r+(t-n)*this.scale;if(t<=o.bottom)return o.domTop+(t-o.top);n=o.bottom,r=o.domBottom}}fromDOM(t){for(let e=0,n=0,r=0;;e++){let o=e<this.viewports.length?this.viewports[e]:null;if(!o||t<o.domTop)return n+(t-r)/this.scale;if(t<=o.domBottom)return o.top+(t-o.domTop);n=o.bottom,r=o.domBottom}}eq(t){return t instanceof nu&&this.scale==t.scale&&this.viewports.length==t.viewports.length&&this.viewports.every((e,n)=>e.from==t.viewports[n].from&&e.to==t.viewports[n].to)}}function nl(t,e){if(1==e.scale)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new e0(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(t=>nl(t,e)):t._content)}let nc=u.r$.define({combine:t=>t.join(" ")}),nh=u.r$.define({combine:t=>t.indexOf(!0)>-1}),nf=l.V.newName(),np=l.V.newName(),nd=l.V.newName(),nm={"&light":"."+np,"&dark":"."+nd};function ng(t,e,n){return new l.V(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,e=>{if("&"==e)return t;if(!n||!n[e])throw RangeError(`Unsupported selector: ${e}`);return n[e]}):t+" "+e})}let ny=ng("."+nf,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},nm),nv={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},nb=Q.ie&&Q.ie_version<=11;class nO{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new D,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let t of e)this.queue.push(t);(Q.ie&&Q.ie_version<=11||Q.ios&&t.composing)&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&!1!==t.constructor.EDIT_CONTEXT&&!(Q.chrome&&Q.chrome_version<126)&&(this.editContext=new nD(t),t.state.facet(tJ)&&(t.contentDOM.editContext=this.editContext.editContext)),nb&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(t.scrollDOM)),this.addWindowListeners(this.win=t.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){("change"!=t.type&&t.type||t.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,n)=>e!=t[n]))){for(let e of(this.gapIntersection.disconnect(),t))this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(tJ)?n.root.activeElement!=this.dom:!p(this.dom,r))return;let o=r.anchorNode&&n.docView.nearest(r.anchorNode);if(o&&o.ignoreEvent(t)){!e&&(this.selectionChanged=!1);return}(Q.ie&&Q.ie_version<=11||Q.android&&Q.chrome)&&!n.state.selection.main.empty&&r.focusNode&&m(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=h(t.root);if(!e)return!1;let n=Q.safari&&11==t.root.nodeType&&t.root.activeElement==this.dom&&function(t,e){if(e.getComposedRanges){let n=e.getComposedRanges(t.root)[0];if(n)return nx(t,n)}let n=null;function r(t){t.preventDefault(),t.stopImmediatePropagation(),n=t.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?nx(t,n):null}(this.view,e)||e;if(!n||this.selectionRange.eq(n))return!1;let r=p(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&function(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,O(n));;)if(r){if(1!=n.nodeType)return!1;let t=n.childNodes[r-1];"false"==t.contentEditable?r--:r=O(n=t)}else{if(n==t)return!0;r=g(n),n=n.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(t,e){this.selectionRange.set(t.node,t.offset,e.node,e.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,e=null;for(let n=this.dom;n;)if(1==n.nodeType)!e&&t<this.scrollTargets.length&&this.scrollTargets[t]==n?t++:!e&&(e=this.scrollTargets.slice(0,t)),e&&e.push(n),n=n.assignedSlot||n.parentNode;else if(11==n.nodeType)n=n.host;else break;if(t<this.scrollTargets.length&&!e&&(e=this.scrollTargets.slice(0,t)),e){for(let t of this.scrollTargets)t.removeEventListener("scroll",this.onScroll);for(let t of this.scrollTargets=e)t.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){!this.active&&(this.observer.observe(this.dom,nv),nb&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),nb&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,e){var n;!this.delayedAndroidKey&&(this.flushingAndroidKey=this.view.win.requestAnimationFrame(()=>{let t=this.delayedAndroidKey;t&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=t.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&t.force&&C(this.dom,t.key,t.keyCode))})),(!this.delayedAndroidKey||"Enter"==t)&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,n=-1,r=!1;for(let o of t){let t=this.readMutation(o);t&&(t.typeOver&&(r=!0),-1==e?{from:e,to:n}=t:(e=Math.min(t.from,e),n=Math.max(t.to,n)))}return{from:e,to:n,typeOver:r}}readChange(){let{from:t,to:e,typeOver:n}=this.processRecords(),r=this.selectionChanged&&p(this.dom,this.selectionRange);if(t<0&&!r)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new eO(this.view,t,e,n);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let n=this.view.state,r=ew(this.view,e);return this.view.state==n&&(e.domChanged||e.newSel&&!e.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let n=nw(e,t.previousSibling||t.target.previousSibling,-1),r=nw(e,t.nextSibling||t.target.nextSibling,1);return{from:n?e.posAfter(n):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}if("characterData"==t.type)return{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue};return null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(tJ)!=t.state.facet(tJ)&&(t.view.contentDOM.editContext=t.state.facet(tJ)?this.editContext.editContext:null))}destroy(){var t,e,n;for(let r of(this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),this.scrollTargets))r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function nw(t,e,n){for(;e;){let r=F.get(e);if(r&&r.parent==t)return r;let o=e.parentNode;e=o!=t.dom?o:n>0?e.nextSibling:e.previousSibling}return null}function nx(t,e){let n=e.startContainer,r=e.startOffset,o=e.endContainer,s=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return m(a.node,a.offset,o,s)&&([n,r,o,s]=[o,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:s}}class nD{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});for(let n in this.handlers.textupdate=e=>{let n=t.state.selection.main,{anchor:r,head:o}=n,s=this.toEditorPos(e.updateRangeStart),a=this.toEditorPos(e.updateRangeEnd);t.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:e.updateRangeStart,editorBase:s,drifted:!1});let l={from:s,to:a,insert:u.xv.of(e.text.split("\n"))};if(l.from==this.from&&r<this.from?l.from=r:l.to==this.to&&r>this.to&&(l.to=r),l.from==l.to&&!l.insert.length){let r=u.jT.single(this.toEditorPos(e.selectionStart),this.toEditorPos(e.selectionEnd));!r.main.eq(n)&&t.dispatch({selection:r,userEvent:"select"});return}if((Q.mac||Q.android)&&l.from==o-1&&/^\. ?$/.test(e.text)&&"off"==t.contentDOM.getAttribute("autocorrect")&&(l={from:s,to:a,insert:u.xv.of([e.text.replace("."," ")])}),this.pendingContextChange=l,!t.state.readOnly){let n=this.to-this.from+(l.to-l.from+l.insert.length);ex(t,l,u.jT.single(this.toEditorPos(e.selectionStart,n),this.toEditorPos(e.selectionEnd,n)))}this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state))},this.handlers.characterboundsupdate=n=>{let r=[],o=null;for(let e=this.toEditorPos(n.rangeStart),s=this.toEditorPos(n.rangeEnd);e<s;e++){let n=t.coordsForChar(e);o=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||o||new DOMRect,r.push(o)}e.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=e=>{let n=[];for(let t of e.getTextFormats()){let e=t.underlineStyle,r=t.underlineThickness;if("None"!=e&&"None"!=r){let o=this.toEditorPos(t.rangeStart),s=this.toEditorPos(t.rangeEnd);if(o<s){let t=`text-decoration: underline ${"Dashed"==e?"dashed ":"Squiggle"==e?"wavy ":""}${"Thin"==r?1:2}px`;n.push(tl.mark({attributes:{style:t}}).range(o,s))}}}t.dispatch({effects:tQ.of(tl.set(n))})},this.handlers.compositionstart=()=>{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(t.inputState.composing=-1,t.inputState.compositionFirstChange=null,this.composing){let{drifted:e}=this.composing;this.composing=null,e&&this.reset(t.state)}},this.handlers)e.addEventListener(n,this.handlers[n]);this.measureReq={read:t=>{this.editContext.updateControlBounds(t.contentDOM.getBoundingClientRect());let e=h(t.root);e&&e.rangeCount&&this.editContext.updateSelectionBounds(e.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,n=!1,r=this.pendingContextChange;return t.changes.iterChanges((o,s,a,u,l)=>{if(n)return;let c=l.length-(s-o);if(r&&s>=r.to){if(r.from==o&&r.to==s&&r.insert.eq(l)){r=this.pendingContextChange=null,e+=c,this.to+=c;return}r=null,this.revertPending(t.state)}if(o+=e,(s+=e)<=this.from)this.from+=c,this.to+=c;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+l.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),l.toString()),this.to+=c}e+=c}),r&&!n&&this.revertPending(t.state),!n}update(t){let e=this.pendingContextChange,n=t.startState.selection.main;this.composing&&(this.composing.drifted||!t.changes.touchesRange(n.from,n.to)&&t.transactions.some(t=>!t.isUserEvent("input.type")&&t.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)):this.applyEdits(t)&&this.rangeIsValid(t.state)?(t.docChanged||t.selectionSet||e)&&this.setSelection(t.state):(this.pendingContextChange=null,this.reset(t.state)),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4)}reset(t){this.resetRange(t),this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to)),this.setSelection(t)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),r=this.toContextPos(e.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to<t.doc.length&&this.to-e<500||this.to-this.from>3e4)}toEditorPos(t,e=this.to-this.from){t=Math.min(t,e);let n=this.composing;return n&&n.drifted?n.editorBase+(t-n.contextBase):t+this.from}toContextPos(t){let e=this.composing;return e&&e.drifted?e.contextBase+(t-e.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class nk{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var e;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;for(let e of(this.dispatchTransactions=t.dispatchTransactions||n&&(t=>t.forEach(t=>n(t,this)))||(t=>this.update(t)),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new nr(t.state||u.yy.create(t)),t.scrollTo&&t.scrollTo.is(tG)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(t0).map(t=>new t2(t)),this.plugins))e.update(this);this.observer=new nO(this),this.inputState=new eD(this),this.inputState.ensureHandlers(this.plugins),this.docView=new eo(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(e=document.fonts)||void 0===e?void 0:e.ready)&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...t){let e=1==t.length&&t[0]instanceof u.YW?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,n=!1,r,o=this.state;for(let e of t){if(e.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=e.state}if(this.destroyed){this.viewState.state=o;return}let s=this.hasFocus,a=0,l=null;t.some(t=>t.annotation(ez))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,!(l=eq(o,s))&&(a=1));let c=this.observer.delayedAndroidKey,h=null;if(c?(this.observer.clearDelayedAndroidKey(),((h=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(h=null)):this.observer.clear(),o.facet(u.yy.phrases)!=this.state.facet(u.yy.phrases))return this.setState(o);r=ei.create(this,o,t),r.flags|=a;let f=this.viewState.scrollTarget;try{for(let e of(this.updateState=2,t)){if(f&&(f=f.map(e.changes)),e.scrollIntoView){let{main:t}=e.state.selection;f=new tY(t.empty?t:u.jT.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)t.is(tG)&&(f=t.value.clip(this.state))}this.viewState.update(r,f),this.bidiCache=nC.update(this.bidiCache,r.changes),!r.empty&&(this.updatePlugins(r),this.inputState.update(r)),e=this.docView.update(r),this.state.facet(en)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(t=>t.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(nc)!=r.state.facet(nc)&&(this.viewState.mustMeasureContent=!0),(e||n||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),e&&this.docViewUpdate(),!r.empty)for(let t of this.state.facet(tj))try{t(r)}catch(t){tK(this.state,t,"update listener")}(l||h)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),h&&!ew(this,h)&&c.force&&C(this.contentDOM,c.key,c.keyCode)})}setState(t){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);for(let e of(this.viewState=new nr(t),this.plugins=t.facet(t0).map(t=>new t2(t)),this.pluginMap.clear(),this.plugins))e.update(this);this.docView.destroy(),this.docView=new eo(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(t0),n=t.state.facet(t0);if(e!=n){let r=[];for(let o of n){let n=e.indexOf(o);if(n<0)r.push(new t2(o));else{let e=this.plugins[n];e.mustUpdate=t,r.push(e)}}for(let e of this.plugins)e.mustUpdate!=t&&e.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let e of this.plugins)e.mustUpdate=t;for(let t=0;t<this.plugins.length;t++)this.plugins[t].update(this);e!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let t of this.plugins){let e=t.value;if(e&&e.docViewUpdate)try{e.docViewUpdate(this)}catch(t){tK(this.state,t,"doc view update listener")}}}measure(t=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:s}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(s<0){if(A(n))o=-1,s=this.viewState.heightMap.height;else{let t=this.viewState.scrollAnchorAt(r);o=t.from,s=t.top}}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];!(4&a)&&([this.measureRequests,u]=[u,this.measureRequests]);let l=u.map(t=>{try{return t.read(this)}catch(t){return tK(this.state,t),nE}}),c=ei.create(this,this.state,[]),h=!1;c.flags|=a,e?e.flags|=a:e=c,this.updateState=2,!c.empty&&(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),(h=this.docView.update(c))&&this.docViewUpdate());for(let t=0;t<u.length;t++)if(l[t]!=nE)try{let e=u[t];e.write&&e.write(l[t],this)}catch(t){tK(this.state,t)}if(h&&this.docView.updateSelection(!0),!c.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}{let t=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-s;if(t>1||t<-1){r+=t,n.scrollTop=r/this.scaleY,s=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let t of this.state.facet(tj))t(e)}get themeClasses(){return nf+" "+(this.state.facet(nh)?nd:np)+" "+this.state.facet(nc)}updateAttrs(){let t=nT(this,t3,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(tJ)?"true":"false",class:"cm-content",style:`${Q.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),nT(this,t5,e);let n=this.observer.ignore(()=>{let n=ts(this.contentDOM,this.contentAttrs,e),r=ts(this.dom,this.editorAttrs,t);return n||r});return this.editorAttrs=t,this.contentAttrs=e,n}showAnnouncements(t){let e=!0;for(let n of t)for(let t of n.effects)t.is(nk.announce)&&(e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=t.value)}mountStyles(){this.styleModules=this.state.facet(en);let t=this.state.facet(nk.cspNonce);l.V.mount(this.root,this.styleModules.concat(ny).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(!(this.measureRequests.indexOf(t)>-1)){if(null!=t.key){for(let e=0;e<this.measureRequests.length;e++)if(this.measureRequests[e].key===t.key){this.measureRequests[e]=t;return}}this.measureRequests.push(t)}}}plugin(t){let e=this.pluginMap.get(t);return(void 0===e||e&&e.plugin!=t)&&this.pluginMap.set(t,e=this.plugins.find(e=>e.plugin==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,n){return ey(this,t,em(this,t,e,n))}moveByGroup(t,e){return ey(this,t,em(this,t,e,e=>{var n,r,o;let s,a;return n=this,r=t.head,o=e,a=(s=n.state.charCategorizer(r))(o),t=>{let e=s(t);return a==u.D0.Space&&(a=e),a==e}}))}visualLineSide(t,e){let n=this.bidiSpans(t),r=this.textDirectionAt(t.from),o=n[e?n.length-1:0];return u.jT.cursor(o.side(e,r)+t.from,o.forward(!e,r)?1:-1)}moveToLineBoundary(t,e,n=!0){return function(t,e,n,r){let o=ed(t,e.head,e.assoc||-1),s=r&&o.type==tu.Text&&(t.lineWrapping||o.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(s){let e=t.dom.getBoundingClientRect(),r=t.textDirectionAt(o.from),a=t.posAtCoords({x:n==(r==tw.LTR)?e.right-1:e.left+1,y:(s.top+s.bottom)/2});if(null!=a)return u.jT.cursor(a,n?-1:1)}return u.jT.cursor(n?o.to:o.from,n?-1:1)}(this,t,e,n)}moveVertically(t,e,n){return ey(this,t,function(t,e,n,r){let o=e.head,s=n?1:-1;if(o==(n?t.state.doc.length:0))return u.jT.cursor(o,e.assoc);let a=e.goalColumn,l,c=t.contentDOM.getBoundingClientRect(),h=t.coordsAtPos(o,e.assoc||-1),f=t.documentTop;if(h)null==a&&(a=h.left-c.left),l=s<0?h.top:h.bottom;else{let e=t.viewState.lineBlockAt(o);null==a&&(a=Math.min(c.right-c.left,t.defaultCharacterWidth*(o-e.from))),l=(s<0?e.top:e.bottom)+f}let p=c.left+a,d=null!=r?r:t.viewState.heightOracle.textHeight>>1;for(let e=0;;e+=10){let n=l+(d+e)*s,r=ef(t,{x:p,y:n},!1,s);if(n<c.top||n>c.bottom||(s<0?r<o:r>o)){let e=t.docView.coordsForChar(r),o=!e||n<e.top?-1:1;return u.jT.cursor(r,o,void 0,a)}}}(this,t,e,n))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),ef(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let n=this.docView.coordsAt(t,e);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(t),o=this.bidiSpans(r);return w(n,o[tP.find(o,t-r.from,-1,e)].dir==tw.LTR==e>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(tz)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>nS)return tF(t.length);let e=this.textDirectionAt(t.from),n;for(let r of this.bidiCache)if(r.from==t.from&&r.dir==e&&(r.fresh||function t(e,n){if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],s=n[r];if(o.from!=s.from||o.to!=s.to||o.direction!=s.direction||!t(o.inner,s.inner))return!1}return!0}(r.isolates,n=t7(this,t))))return r.order;!n&&(n=t7(this,t));let r=function(t,e,n){if(!t)return[new tP(0,0,e==tD?1:0)];if(e==tx&&!n.length&&!tM.test(t))return tF(t.length);if(n.length)for(;t.length>tB.length;)tB[tB.length]=256;let r=[],o=e==tx?0:1;return tI(t,o,o,n,0,t.length,r),r}(t.text,e,n);return this.bidiCache.push(new nC(t.from,t.to,e,n,!0,r)),r}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Q.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{S(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of(this.root.activeElement==this.contentDOM&&this.contentDOM.blur(),this.plugins))t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return tG.of(new tY("number"==typeof t?u.jT.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,n=this.viewState.scrollAnchorAt(t);return tG.of(new tY(u.jT.cursor(n.from),"start","start",n.top-t,e,!0))}setTabFocusMode(t){null==t?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof t?this.inputState.tabFocusMode=t?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return t1.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return t1.define(()=>({}),{eventObservers:t})}static theme(t,e){let n=l.V.newName(),r=[nc.of(n),en.of(ng(`.${n}`,t))];return e&&e.dark&&r.push(nh.of(!0)),r}static baseTheme(t){return u.Wl.lowest(en.of(ng("."+nf,t,nm)))}static findFromDOM(t){var e;let n=t.querySelector(".cm-content"),r=n&&F.get(n)||F.get(t);return(null===(e=null==r?void 0:r.rootView)||void 0===e?void 0:e.view)||null}}nk.styleModule=en,nk.inputHandler=t$,nk.clipboardInputFilter=tH,nk.clipboardOutputFilter=tW,nk.scrollHandler=tU,nk.focusChangeEffect=tV,nk.perLineTextDirection=tz,nk.exceptionSink=tR,nk.updateListener=tj,nk.editable=tJ,nk.mouseSelectionStyle=tX,nk.dragMovesSelection=t_,nk.clickAddsSelectionRange=tL,nk.decorations=t4,nk.outerDecorations=t9,nk.atomicRanges=t8,nk.bidiIsolatedRanges=t6,nk.scrollMargins=et,nk.darkTheme=nh,nk.cspNonce=u.r$.define({combine:t=>t.length?t[0]:""}),nk.contentAttributes=t5,nk.editorAttributes=t3,nk.lineWrapping=nk.contentAttributes.of({class:"cm-lineWrapping"}),nk.announce=u.Py.define();let nS=4096,nE={};class nC{constructor(t,e,n,r,o,s){this.from=t,this.to=e,this.dir=n,this.isolates=r,this.fresh=o,this.order=s}static update(t,e){if(e.empty&&!t.some(t=>t.fresh))return t;let n=[],r=t.length?t[t.length-1].dir:tw.LTR;for(let o=Math.max(0,t.length-10);o<t.length;o++){let s=t[o];s.dir==r&&!e.touchesRange(s.from,s.to)&&n.push(new nC(e.mapPos(s.from,1),e.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return n}}function nT(t,e,n){for(let r=t.state.facet(e),o=r.length-1;o>=0;o--){let e=r[o],s="function"==typeof e?e(t):e;s&&tr(s,n)}return n}let nA=Q.mac?"mac":Q.windows?"win":Q.linux?"linux":"key";function nM(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==n&&e.shiftKey&&(t="Shift-"+t),t}let nP=u.Wl.default(nk.domEventHandlers({keydown:(t,e)=>nX(nF(e.state),t,e,"editor")})),nB=u.r$.define({enables:nP}),nI=new WeakMap;function nF(t){let e=t.facet(nB),n=nI.get(e);return!n&&nI.set(e,n=function(t,e=nA){let n=Object.create(null),r=Object.create(null),o=(t,e)=>{let n=r[t];if(null==n)r[t]=e;else if(n!=e)throw Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},s=(t,r,s,a,u)=>{var l,c;let h=n[t]||(n[t]=Object.create(null)),f=r.split(/ (?!$)/).map(t=>(function(t,e){let n,r,o,s;let a=t.split(/-(?!$)/),u=a[a.length-1];"Space"==u&&(u=" ");for(let t=0;t<a.length-1;++t){let u=a[t];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))n=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else if(/^s(hift)?$/i.test(u))o=!0;else if(/^mod$/i.test(u))"mac"==e?s=!0:r=!0;else throw Error("Unrecognized modifier name: "+u)}return n&&(u="Alt-"+u),r&&(u="Ctrl-"+u),s&&(u="Meta-"+u),o&&(u="Shift-"+u),u})(t,e));for(let e=1;e<f.length;e++){let n=f.slice(0,e).join(" ");o(n,!0),!h[n]&&(h[n]={preventDefault:!0,stopPropagation:!1,run:[e=>{let r=nL={view:e,prefix:n,scope:t};return setTimeout(()=>{nL==r&&(nL=null)},4e3),!0}]})}let p=f.join(" ");o(p,!1);let d=h[p]||(h[p]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(l=h._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]});s&&d.run.push(s),a&&(d.preventDefault=!0),u&&(d.stopPropagation=!0)};for(let r of t){let t=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let e of t){let t=n[e]||(n[e]=Object.create(null));!t._any&&(t._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:o}=r;for(let e in t)t[e].run.push(t=>o(t,n_))}let o=r[e]||r.key;if(o)for(let e of t)s(e,o,r.run,r.preventDefault,r.stopPropagation),r.shift&&s(e,"Shift-"+o,r.shift,r.preventDefault,r.stopPropagation)}return n}(e.reduce((t,e)=>t.concat(e),[]))),n}function nN(t,e,n){return nX(nF(t.state),e,t,n)}let nL=null,n_=null;function nX(t,e,n,r){n_=e;let o=(0,c.YG)(e),s=(0,u.gm)(o,0),a=(0,u.nZ)(s)==o.length&&" "!=o,l="",h=!1,f=!1,p=!1;nL&&nL.view==n&&nL.scope==r&&(l=nL.prefix+" ",0>eC.indexOf(e.keyCode)&&(f=!0,nL=null));let d=new Set,m=t=>{if(t){for(let e of t.run)if(!d.has(e)&&(d.add(e),e(n)))return t.stopPropagation&&(p=!0),!0;t.preventDefault&&(t.stopPropagation&&(p=!0),f=!0)}return!1},g=t[r],y,b;return g&&(m(g[l+nM(o,e,!a)])?h=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Q.windows&&e.ctrlKey&&e.altKey)&&(y=c.ue[e.keyCode])&&y!=o?m(g[l+nM(y,e,!0)])?h=!0:e.shiftKey&&(b=c.uY[e.keyCode])!=o&&b!=y&&m(g[l+nM(b,e,!1)])&&(h=!0):a&&e.shiftKey&&m(g[l+nM(o,e,!0)])&&(h=!0),!h&&m(g._any)&&(h=!0)),f&&(h=!0),h&&p&&e.stopPropagation(),n_=null,h}class nR{constructor(t,e,n,r,o){this.className=t,this.left=e,this.top=n,this.width=r,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,n){if(!n.empty)return function(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),o=Math.min(n.to,t.viewport.to),s=t.textDirection==tw.LTR,a=t.contentDOM,u=a.getBoundingClientRect(),l=nj(t),c=a.querySelector(".cm-line"),h=c&&window.getComputedStyle(c),f=u.left+(h?parseInt(h.paddingLeft)+Math.min(0,parseInt(h.textIndent)):0),p=u.right-(h?parseInt(h.paddingRight):0),d=ed(t,r,1),m=ed(t,o,-1),g=d.type==tu.Text?d:null,y=m.type==tu.Text?m:null;if(g&&(t.lineWrapping||d.widgetLineBreaks)&&(g=n$(t,r,1,g)),y&&(t.lineWrapping||m.widgetLineBreaks)&&(y=n$(t,o,-1,y)),g&&y&&g.from==y.from&&g.to==y.to)return O(w(n.from,n.to,g));{let e=g?w(n.from,null,g):x(d,!1),r=y?w(null,n.to,y):x(m,!0),o=[];return(g||d).to<(y||m).from-(g&&y?1:0)||d.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2<r.top?o.push(b(f,e.bottom,p,r.top)):e.bottom<r.top&&t.elementAtHeight((e.bottom+r.top)/2).type==tu.Text&&(e.bottom=r.top=(e.bottom+r.top)/2),O(e).concat(o).concat(O(r))}function b(t,n,r,o){return new nR(e,t-l.left,n-l.top,r-t,o-n)}function O({top:t,bottom:e,horizontal:n}){let r=[];for(let o=0;o<n.length;o+=2)r.push(b(n[o],t,n[o+1],e));return r}function w(e,n,r){let o=1e9,a=-1e9,u=[];function l(e,n,l,c,h){let d=t.coordsAtPos(e,e==r.to?-2:2),m=t.coordsAtPos(l,l==r.from?2:-2);d&&m&&(o=Math.min(d.top,m.top,o),a=Math.max(d.bottom,m.bottom,a),h==tw.LTR?u.push(s&&n?f:d.left,s&&c?p:m.right):u.push(!s&&c?f:m.left,!s&&n?p:d.right))}let c=null!=e?e:r.from,h=null!=n?n:r.to;for(let r of t.visibleRanges)if(r.to>c&&r.from<h)for(let o=Math.max(r.from,c),s=Math.min(r.to,h);;){let r=t.state.doc.lineAt(o);for(let a of t.bidiSpans(r)){let t=a.from+r.from,u=a.to+r.from;if(t>=s)break;u>o&&l(Math.max(t,o),null==e&&t<=c,Math.min(u,s),null==n&&u>=h,a.dir)}if((o=r.to+1)>=s)break}return 0==u.length&&l(c,null==e,h,null==n,t.textDirection),{top:o,bottom:a,horizontal:u}}function x(t,e){let n=u.top+(e?t.top:t.bottom);return{top:n,bottom:n,horizontal:[]}}}(t,e,n);{let r=t.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let o=nj(t);return[new nR(e,r.left-o.left,r.top-o.top,null,r.bottom-r.top)]}}}function nj(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==tw.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function n$(t,e,n,r){let o=t.coordsAtPos(e,2*n);if(!o)return r;let s=t.dom.getBoundingClientRect(),a=(o.top+o.bottom)/2,u=t.posAtCoords({x:s.left+1,y:a}),l=t.posAtCoords({x:s.right-1,y:a});return null==u||null==l?r:{from:Math.max(r.from,Math.min(u,l)),to:Math.min(r.to,Math.max(u,l))}}class nV{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(nH)!=t.state.facet(nH)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){!1!==this.layer.updateOnDocViewUpdate&&t.requestMeasure(this.measureReq)}setOrder(t){let e=0,n=t.facet(nH);for(;e<n.length&&n[e]!=this.layer;)e++;this.dom.style.zIndex=String((this.layer.above?150:-1)-e)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:t,scaleY:e}=this.view;(t!=this.scaleX||e!=this.scaleY)&&(this.scaleX=t,this.scaleY=e,this.dom.style.transform=`scale(${1/t}, ${1/e})`)}draw(t){if(t.length!=this.drawn.length||t.some((t,e)=>{var n,r;return n=t,r=this.drawn[e],!(n.constructor==r.constructor&&n.eq(r))})){let e=this.dom.firstChild,n=0;for(let r of t)r.update&&e&&r.constructor&&this.drawn[n].constructor&&r.update(e,this.drawn[n])?(e=e.nextSibling,n++):this.dom.insertBefore(r.draw(),e);for(;e;){let t=e.nextSibling;e.remove(),e=t}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}let nH=u.r$.define();function nW(t){return[t1.define(e=>new nV(e,t)),nH.of(t)]}let nz=u.r$.define({combine:t=>(0,u.BO)(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function nq(t={}){return[nz.of(t),nY,nQ,nK,tq.of(!0)]}function nU(t){return t.startState.facet(nz)!=t.state.facet(nz)}let nY=nW({above:!0,markers(t){let{state:e}=t,n=e.facet(nz),r=[];for(let o of e.selection.ranges){let s=o==e.selection.main;if(o.empty||n.drawRangeCursor){let e=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:u.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let o of nR.forRange(t,e,n))r.push(o)}}return r},update(t,e){t.transactions.some(t=>t.selection)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let n=nU(t);return n&&nG(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){nG(e.state,t)},class:"cm-cursorLayer"});function nG(t,e){e.style.animationDuration=t.facet(nz).cursorBlinkRate+"ms"}let nQ=nW({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:nR.forRange(t,"cm-selectionBackground",e)).reduce((t,e)=>t.concat(e)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||nU(t),class:"cm-selectionLayer"}),nK=u.Wl.highest(nk.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),nJ=u.Py.define({map:(t,e)=>null==t?null:e.mapPos(t)}),nZ=u.QQ.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((t,e)=>e.is(nJ)?e.value:t,t))}),n0=t1.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(nZ);null==n?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(!this.cursor&&(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(nZ)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(nZ),n=null!=e&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(nZ)!=t&&this.view.dispatch({effects:nJ.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function n1(){return[nZ,n0]}function n2(t,e,n,r,o){e.lastIndex=0;for(let s=t.iterRange(n,r),a=n,u;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;u=e.exec(s.value);)o(a+u.index,u)}class n3{constructor(t){let{regexp:e,decoration:n,decorate:r,boundary:o,maxLength:s=1e3}=t;if(!e.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=(t,e,n,o)=>r(o,n,n+t[0].length,t,e);else if("function"==typeof n)this.addMatch=(t,e,r,o)=>{let s=n(t,e,r);s&&o(r,r+t[0].length,s)};else if(n)this.addMatch=(t,e,r,o)=>o(r,r+t[0].length,n);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=s}createDeco(t){let e=new u.f_,n=e.add.bind(e);for(let{from:e,to:r}of function(t,e){let n=t.visibleRanges;if(1==n.length&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:o,to:s}of n)o=Math.max(t.state.doc.lineAt(o).from,o-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),r.length&&r[r.length-1].to>=o?r[r.length-1].to=s:r.push({from:o,to:s});return r}(t,this.maxLength))n2(t.state.doc,this.regexp,e,r,(e,r)=>this.addMatch(r,t,e,n));return e.finish()}updateDeco(t,e){let n=1e9,r=-1;return(t.docChanged&&t.changes.iterChanges((e,o,s,a)=>{a>=t.view.viewport.from&&s<=t.view.viewport.to&&(n=Math.min(s,n),r=Math.max(a,r))}),t.viewportMoved||r-n>1e3)?this.createDeco(t.view):r>-1?this.updateRange(t.view,e.map(t.changes),n,r):e}updateRange(t,e,n,r){for(let o of t.visibleRanges){let s=Math.max(o.from,n),a=Math.min(o.to,r);if(a>=s){let n=t.state.doc.lineAt(s),r=n.to<a?t.state.doc.lineAt(a):n,u=Math.max(o.from,n.from),l=Math.min(o.to,r.to);if(this.boundary){for(;s>n.from;s--)if(this.boundary.test(n.text[s-1-n.from])){u=s;break}for(;a<r.to;a++)if(this.boundary.test(r.text[a-r.from])){l=a;break}}let c=[],h,f=(t,e,n)=>c.push(n.range(t,e));if(n==r)for(this.regexp.lastIndex=u-n.from;(h=this.regexp.exec(n.text))&&h.index<l-n.from;)this.addMatch(h,t,h.index+n.from,f);else n2(t.state.doc,this.regexp,u,l,(e,n)=>this.addMatch(n,t,e,f));e=e.update({filterFrom:u,filterTo:l,filter:(t,e)=>t<u||e>l,add:c})}}return e}}let n5=null!=/x/.unicode?"gu":"g",n4=RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜\u2028\u2029\uFEFF-]",n5),n9={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},n8=null,n6=u.r$.define({combine(t){let e=(0,u.BO)(t,{render:null,specialChars:n4,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==n8&&"undefined"!=typeof document&&document.body){let e=document.body.style;n8=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)!=null}return n8||!1}())&&(e.specialChars=RegExp(" |"+e.specialChars.source,n5)),e.addSpecialChars&&(e.specialChars=RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,n5)),e}});function n7(t={}){return[n6.of(t),function(){return rt||(rt=t1.fromClass(class{constructor(t){this.view=t,this.decorations=tl.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(n6)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new n3({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:o}=n.state,s=(0,u.gm)(e[0],0);if(9==s){let t=o.lineAt(r),e=n.state.tabSize,s=(0,u.IS)(t.text,e,r-t.from);return tl.replace({widget:new rn((e-s%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=tl.replace({widget:new re(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(n6);t.startState.facet(n6)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}()]}let rt=null;class re extends ta{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){var e;let n=(e=this.code)>=32?"•":10==e?"␤":String.fromCharCode(9216+e),r=t.state.phrase("Control character")+" "+(n9[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,r,n);if(o)return o;let s=document.createElement("span");return s.textContent=n,s.title=r,s.setAttribute("aria-label",r),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class rn extends ta{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function rr(){return ro}let ri=tl.line({class:"cm-activeLine"}),ro=t1.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let o=t.lineBlockAt(r.head);o.from>e&&(n.push(ri.range(o.from)),e=o.from)}return tl.set(n)}},{decorations:t=>t.decorations});function rs(t,e){var n,r;let o,s=t.posAtCoords({x:e.clientX,y:e.clientY},!1),a=t.state.doc.lineAt(s),l=s-a.from;let c=l>2e3?-1:l==a.length?(n=t,r=e.clientX,(o=n.coordsAtPos(n.viewport.from))?Math.round(Math.abs((o.left-r)/n.defaultCharacterWidth)):-1):(0,u.IS)(a.text,t.state.tabSize,s-a.from);return{line:a.number,col:c,off:l}}function ra(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return nk.mouseSelectionStyle.of((t,n)=>{var r;let o,s;return e(n)?(o=rs(r=t,n),s=r.state.selection,o?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(o.line).from),n=t.state.doc.lineAt(e);o={line:n.number,col:o.col,off:Math.min(o.off,n.length)},s=s.map(t.changes)}},get(t,e,n){let a=rs(r,t);if(!a)return s;let l=function(t,e,n){let r=Math.min(e.line,n.line),o=Math.max(e.line,n.line),s=[];if(e.off>2e3||n.off>2e3||e.col<0||n.col<0){let a=Math.min(e.off,n.off),l=Math.max(e.off,n.off);for(let e=r;e<=o;e++){let n=t.doc.line(e);n.length<=l&&s.push(u.jT.range(n.from+a,n.to+l))}}else{let a=Math.min(e.col,n.col),l=Math.max(e.col,n.col);for(let e=r;e<=o;e++){let n=t.doc.line(e),r=(0,u.Gz)(n.text,a,t.tabSize,!0);if(r<0)s.push(u.jT.cursor(n.to));else{let e=(0,u.Gz)(n.text,l,t.tabSize);s.push(u.jT.range(n.from+r,n.from+e))}}}return s}(r.state,o,a);return l.length?n?u.jT.create(l.concat(s.ranges)):u.jT.create(l):s}}:null):null})}let ru={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},rl={style:"cursor: crosshair"};function rc(t={}){let[e,n]=ru[t.key||"Alt"],r=t1.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventObservers:{keydown(t){this.set(t.keyCode==e||n(t))},keyup(t){(t.keyCode==e||!n(t))&&this.set(!1)},mousemove(t){this.set(n(t))}}});return[r,nk.contentAttributes.of(t=>{var e;return(null===(e=t.plugin(r))||void 0===e?void 0:e.isDown)?rl:null})]}let rh="-10000px";class rf{constructor(t,e,n,r){this.facet=e,this.createTooltipView=n,this.removeTooltipView=r,this.input=t.state.facet(e),this.tooltips=this.input.filter(t=>t);let o=null;this.tooltipViews=this.tooltips.map(t=>o=n(t,o))}update(t,e){var n;let r=t.state.facet(this.facet),o=r.filter(t=>t);if(r===this.input){for(let e of this.tooltipViews)e.update&&e.update(t);return!1}let s=[],a=e?[]:null;for(let n=0;n<o.length;n++){let r=o[n],u=-1;if(r){for(let t=0;t<this.tooltips.length;t++){let e=this.tooltips[t];e&&e.create==r.create&&(u=t)}if(u<0)s[n]=this.createTooltipView(r,n?s[n-1]:null),a&&(a[n]=!!r.above);else{let r=s[n]=this.tooltipViews[u];a&&(a[n]=e[u]),r.update&&r.update(t)}}}for(let t of this.tooltipViews)0>s.indexOf(t)&&(this.removeTooltipView(t),null===(n=t.destroy)||void 0===n||n.call(t));return e&&(a.forEach((t,n)=>e[n]=t),e.length=a.length),this.input=r,this.tooltips=o,this.tooltipViews=s,!0}}function rp(t={}){return rm.of(t)}function rd(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}let rm=u.r$.define({combine:t=>{var e,n,r;return{position:Q.ios?"absolute":(null===(e=t.find(t=>t.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(n=t.find(t=>t.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=t.find(t=>t.tooltipSpace))||void 0===r?void 0:r.tooltipSpace)||rd}}}),rg=new WeakMap,ry=t1.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(rm);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new rf(t,rw,(t,e)=>this.createTooltip(t,e),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let t of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(t.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(rm);if(r.position!=this.position&&!this.madeAbsolute){for(let t of(this.position=r.position,this.manager.tooltipViews))t.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){for(let t of(this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(t.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",n.dom.appendChild(t)}return n.dom.style.position=this.position,n.dom.style.top=rh,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;for(let e of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))e.dom.remove(),null===(t=e.destroy)||void 0===t||t.call(e);this.parent&&this.container.remove(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(Q.gecko)n=t.offsetParent!=this.container.ownerDocument.body;else if(t.style.top==rh&&"0px"==t.style.left){let e=t.getBoundingClientRect();n=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(n||"absolute"==this.position){if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(t=n.width/this.parent.offsetWidth,e=n.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState)}let r=this.view.scrollDOM.getBoundingClientRect(),o=ee(this.view);return{visible:{left:r.left+o.left,top:r.top+o.top,right:r.right-o.right,bottom:r.bottom-o.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((t,e)=>{let n=this.manager.tooltipViews[e];return n.getCoords?n.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(rm).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(t){var e;if(t.makeAbsolute)for(let t of(this.madeAbsolute=!0,this.position="absolute",this.manager.tooltipViews))t.dom.style.position="absolute";let{visible:n,space:r,scaleX:o,scaleY:s}=t,a=[];for(let u=0;u<this.manager.tooltips.length;u++){let l=this.manager.tooltips[u],c=this.manager.tooltipViews[u],{dom:h}=c,f=t.pos[u],p=t.size[u];if(!f||!1!==l.clip&&(f.bottom<=Math.max(n.top,r.top)||f.top>=Math.min(n.bottom,r.bottom)||f.right<Math.max(n.left,r.left)-.1||f.left>Math.min(n.right,r.right)+.1)){h.style.top=rh;continue}let d=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,m=d?7:0,g=p.right-p.left,y=null!==(e=rg.get(c))&&void 0!==e?e:p.bottom-p.top,b=c.offset||rO,O=this.view.textDirection==tw.LTR,w=p.width>r.right-r.left?O?r.left:r.right-p.width:O?Math.max(r.left,Math.min(f.left-(d?14:0)+b.x,r.right-g)):Math.min(Math.max(r.left,f.left-g+(d?14:0)-b.x),r.right-g),x=this.above[u];!l.strictSide&&(x?f.top-y-m-b.y<r.top:f.bottom+y+m+b.y>r.bottom)&&x==r.bottom-f.bottom>f.top-r.top&&(x=this.above[u]=!x);let D=(x?f.top-r.top:r.bottom-f.bottom)-m;if(D<y&&!1!==c.resize){if(D<this.view.defaultLineHeight){h.style.top=rh;continue}rg.set(c,y),h.style.height=(y=D)/s+"px"}else h.style.height&&(h.style.height="");let k=x?f.top-y-m-b.y:f.bottom+m+b.y,S=w+g;if(!0!==c.overlap)for(let t of a)t.left<S&&t.right>w&&t.top<k+y&&t.bottom>k&&(k=x?t.top-y-2-m:t.bottom+m+2);if("absolute"==this.position?(h.style.top=(k-t.parent.top)/s+"px",rv(h,(w-t.parent.left)/o)):(h.style.top=k/s+"px",rv(h,w/o)),d){let t=f.left+(O?b.x:-b.x)-(w+14-7);d.style.left=t/o+"px"}!0!==c.overlap&&a.push({left:w,top:k,right:S,bottom:k+y}),h.classList.toggle("cm-tooltip-above",x),h.classList.toggle("cm-tooltip-below",!x),c.positioned&&c.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=rh}},{eventObservers:{scroll(){this.maybeMeasure()}}});function rv(t,e){let n=parseInt(t.style.left,10);(isNaN(n)||Math.abs(e-n)>1)&&(t.style.left=e+"px")}let rb=nk.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),rO={x:0,y:0},rw=u.r$.define({enables:[ry,rb]}),rx=u.r$.define({combine:t=>t.reduce((t,e)=>t.concat(e),[])});class rD{static create(t){return new rD(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new rf(t,rx,(t,e)=>this.createHostedView(t,e),t=>t.dom.remove())}createHostedView(t,e){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,e?e.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}passProp(t){let e;for(let n of this.manager.tooltipViews){let r=n[t];if(void 0!==r){if(void 0===e)e=r;else if(e!==r)return}}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}let rk=rw.compute([rx],t=>{let e=t.facet(rx);return 0===e.length?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var e;return null!==(e=t.end)&&void 0!==e?e:t.pos})),create:rD.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class rS{constructor(t,e,n,r,o){this.view=t,this.source=e,this.field=n,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let t=Date.now()-this.lastMove.time;t<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-t):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:t,lastMove:e}=this,n=t.docView.nearest(e.target);if(!n)return;let r,o=1;if(n instanceof Z)r=n.posAtStart;else{if(null==(r=t.posAtCoords(e)))return;let n=t.coordsAtPos(r);if(!n||e.y<n.top||e.y>n.bottom||e.x<n.left-t.defaultCharacterWidth||e.x>n.right+t.defaultCharacterWidth)return;let s=t.bidiSpans(t.state.doc.lineAt(r)).find(t=>t.from<=r&&t.to>=r),a=s&&s.dir==tw.RTL?-1:1;o=e.x<n.left?-a:a}let s=this.source(t,r,o);if(null==s?void 0:s.then){let e=this.pending={pos:r};s.then(n=>{this.pending==e&&(this.pending=null,n&&!(Array.isArray(n)&&!n.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])}))},e=>tK(t.state,e,"hover tooltip"))}else s&&!(Array.isArray(s)&&!s.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let t=this.view.plugin(ry),e=t?t.manager.tooltips.findIndex(t=>t.create==rD.create):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e,n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:o}=this;if(r.length&&o&&!function(t,e){let{left:n,right:r,top:o,bottom:s}=t.getBoundingClientRect(),a;if(a=t.querySelector(".cm-tooltip-arrow")){let t=a.getBoundingClientRect();o=Math.min(t.top,o),s=Math.max(t.bottom,s)}return e.clientX>=n-4&&e.clientX<=r+4&&e.clientY>=o-4&&e.clientY<=s+4}(o.dom,t)||this.pending){let{pos:o}=r[0]||this.pending,s=null!==(n=null===(e=r[0])||void 0===e?void 0:e.end)&&void 0!==n?n:o;(o==s?this.view.posAtCoords(this.lastMove)!=o:!function(t,e,n,r,o,s){let a=t.scrollDOM.getBoundingClientRect(),u=t.documentTop+t.documentPadding.top+t.contentHeight;if(a.left>r||a.right<r||a.top>o||Math.min(a.bottom,u)<o)return!1;let l=t.posAtCoords({x:r,y:o},!1);return l>=e&&l<=n}(this.view,o,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:e}=this;if(e.length){let{tooltip:e}=this;e&&e.dom.contains(t.relatedTarget)?this.watchTooltipLeave(e.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(t){let e=n=>{t.removeEventListener("mouseleave",e),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function rE(t,e={}){let n=u.Py.define(),r=u.QQ.define({create:()=>[],update(t,r){if(t.length&&(e.hideOnChange&&(r.docChanged||r.selection)?t=[]:e.hideOn&&(t=t.filter(t=>!e.hideOn(r,t))),r.docChanged)){let e=[];for(let n of t){let t=r.changes.mapPos(n.pos,-1,u.gc.TrackDel);if(null!=t){let o=Object.assign(Object.create(null),n);o.pos=t,null!=o.end&&(o.end=r.changes.mapPos(o.end)),e.push(o)}}t=e}for(let e of r.effects)e.is(n)&&(t=e.value),e.is(rT)&&(t=[]);return t},provide:t=>rx.from(t)});return{active:r,extension:[r,t1.define(o=>new rS(o,t,r,n,e.hoverTime||300)),rk]}}function rC(t,e){let n=t.plugin(ry);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}let rT=u.Py.define(),rA=u.r$.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function rM(t,e){let n=t.plugin(rP),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}let rP=t1.fromClass(class{constructor(t){this.input=t.state.facet(rF),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(e=>e(t));let e=t.state.facet(rA);for(let n of(this.top=new rB(t,!0,e.topContainer),this.bottom=new rB(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top)),this.panels))n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(rA);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new rB(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new rB(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(rF);if(n!=this.input){let e=n.filter(t=>t),r=[],o=[],s=[],a=[];for(let n of e){let e=this.specs.indexOf(n),u;e<0?(u=n(t.view),a.push(u)):(u=this.panels[e]).update&&u.update(t),r.push(u),(u.top?o:s).push(u)}for(let t of(this.specs=e,this.panels=r,this.top.sync(o),this.bottom.sync(s),a))t.dom.classList.add("cm-panel"),t.mount&&t.mount()}else for(let e of this.panels)e.update&&e.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>nk.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class rB{constructor(t,e,n){this.view=t,this.top=e,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&0>t.indexOf(e)&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=rI(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=rI(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function rI(t){let e=t.nextSibling;return t.remove(),e}let rF=u.r$.define({enables:rP});class rN extends u.uU{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}rN.prototype.elementClass="",rN.prototype.toDOM=void 0,rN.prototype.mapMode=u.gc.TrackBefore,rN.prototype.startSide=rN.prototype.endSide=-1,rN.prototype.point=!0;let rL=u.r$.define(),r_=u.r$.define(),rX={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>u.Xs.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},rR=u.r$.define();function rj(t){return[rV(),rR.of({...rX,...t})]}let r$=u.r$.define({combine:t=>t.some(t=>t)});function rV(t){let e=[rH];return t&&!1===t.fixed&&e.push(r$.of(!0)),e}let rH=t1.fromClass(class{constructor(t){for(let e of(this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(rR).map(e=>new rU(t,e)),this.gutters))this.dom.appendChild(e.dom);this.fixed=!t.state.facet(r$),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(r$)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=u.Xs.iter(this.view.state.facet(rL),this.view.viewport.from),r=[],o=this.gutters.map(t=>new rq(t,this.view.viewport,-this.view.documentPadding.top));for(let t of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(t.type)){let e=!0;for(let s of t.type)if(s.type==tu.Text&&e){for(let t of(rz(n,r,s.from),o))t.line(this.view,s,r);e=!1}else if(s.widget)for(let t of o)t.widget(this.view,s)}else if(t.type==tu.Text)for(let e of(rz(n,r,t.from),o))e.line(this.view,t,r);else if(t.widget)for(let e of o)e.widget(this.view,t);for(let t of o)t.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(rR),n=t.state.facet(rR),r=t.docChanged||t.heightChanged||t.viewportChanged||!u.Xs.eq(t.startState.facet(rL),t.state.facet(rL),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let e of this.gutters)e.update(t)&&(r=!0);else{r=!0;let o=[];for(let r of n){let n=e.indexOf(r);n<0?o.push(new rU(this.view,r)):(this.gutters[n].update(t),o.push(this.gutters[n]))}for(let t of this.gutters)t.dom.remove(),0>o.indexOf(t)&&t.destroy();for(let t of o)this.dom.appendChild(t.dom);this.gutters=o}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>nk.scrollMargins.of(e=>{let n=e.plugin(t);return n&&0!=n.gutters.length&&n.fixed?e.textDirection==tw.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}:null})});function rW(t){return Array.isArray(t)?t:[t]}function rz(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class rq{constructor(t,e,n){this.gutter=t,this.height=n,this.i=0,this.cursor=u.Xs.iter(t.markers,e.from)}addElement(t,e,n){let{gutter:r}=this,o=(e.top-this.height)/t.scaleY,s=e.height/t.scaleY;if(this.i==r.elements.length){let e=new rY(t,s,o,n);r.elements.push(e),r.dom.appendChild(e.dom)}else r.elements[this.i].update(t,s,o,n);this.height=e.bottom,this.i++}line(t,e,n){let r=[];rz(this.cursor,r,e.from),n.length&&(r=r.concat(n));let o=this.gutter.config.lineMarker(t,e,r);o&&r.unshift(o);let s=this.gutter;(0!=r.length||s.config.renderEmptyElements)&&this.addElement(t,e,r)}widget(t,e){let n=this.gutter.config.widgetMarker(t,e.widget,e),r=n?[n]:null;for(let n of t.state.facet(r_)){let o=n(t,e.widget,e);o&&(r||(r=[])).push(o)}r&&this.addElement(t,e,r)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class rU{constructor(t,e){for(let n in this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),e.domEventHandlers)this.dom.addEventListener(n,r=>{let o=r.target,s;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let t=o.getBoundingClientRect();s=(t.top+t.bottom)/2}else s=r.clientY;let a=t.lineBlockAtHeight(s-t.documentTop);e.domEventHandlers[n](t,a,r)&&r.preventDefault()});this.markers=rW(e.markers(t)),e.initialSpacer&&(this.spacer=new rY(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=rW(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let n=t.view.viewport;return!u.Xs.eq(this.markers,e,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class rY{constructor(t,e,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,n,r)}update(t,e,n,r){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),!function(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}(this.markers,r)&&this.setMarkers(t,r)}setMarkers(t,e){let n="cm-gutterElement",r=this.dom.firstChild;for(let o=0,s=0;;){let a=s,u=o<e.length?e[o++]:null,l=!1;if(u){let t=u.elementClass;t&&(n+=" "+t);for(let t=s;t<this.markers.length;t++)if(this.markers[t].compare(u)){a=t,l=!0;break}}else a=this.markers.length;for(;s<a;){let t=this.markers[s++];if(t.toDOM){t.destroy(r);let e=r.nextSibling;r.remove(),r=e}}if(!u)break;u.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(u.toDOM(t),r)),l&&s++}this.dom.className=n,this.markers=e}destroy(){this.setMarkers(null,[])}}let rG=u.r$.define(),rQ=u.r$.define(),rK=u.r$.define({combine:t=>(0,u.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let n=Object.assign({},t);for(let t in e){let r=n[t],o=e[t];n[t]=r?(t,e,n)=>r(t,e,n)||o(t,e,n):o}return n}})});class rJ extends rN{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function rZ(t,e){return t.state.facet(rK).formatNumber(e,t.state)}let r0=rR.compute([rK],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(rG),lineMarker:(t,e,n)=>n.some(t=>t.toDOM)?null:new rJ(rZ(t,t.state.doc.lineAt(e.from).number)),widgetMarker:(t,e,n)=>{for(let r of t.state.facet(rQ)){let o=r(t,e,n);if(o)return o}return null},lineMarkerChange:t=>t.startState.facet(rK)!=t.state.facet(rK),initialSpacer:t=>new rJ(rZ(t,r2(t.state.doc.lines))),updateSpacer(t,e){let n=rZ(e.view,r2(e.view.state.doc.lines));return n==t.number?t:new rJ(n)},domEventHandlers:t.facet(rK).domEventHandlers}));function r1(t={}){return[rK.of(t),rV(),r0]}function r2(t){let e=9;for(;e<t;)e=10*e+9;return e}let r3=new class extends rN{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},r5=rL.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let o=t.doc.lineAt(r.head).from;o>n&&(n=o,e.push(r3.range(o)))}return u.Xs.of(e)});function r4(){return r5}},437254:function(t,e,n){"use strict";var r,o;n.d(e,{FE:function(){return R},Jq:function(){return f},L3:function(){return s},Lj:function(){return p},_b:function(){return _},hr:function(){return N},i9:function(){return L},md:function(){return l},mp:function(){return g},vj:function(){return r}});let s=1024,a=0;class u{constructor(t,e){this.from=t,this.to=e}}class l{constructor(t={}){this.id=a++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=f.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}l.closedBy=new l({deserialize:t=>t.split(" ")}),l.openedBy=new l({deserialize:t=>t.split(" ")}),l.group=new l({deserialize:t=>t.split(" ")}),l.isolate=new l({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw RangeError("Invalid value for isolate: "+t);return t||"auto"}}),l.contextHash=new l({perNode:!0}),l.lookAhead=new l({perNode:!0}),l.mounted=new l({perNode:!0});class c{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}static get(t){return t&&t.props&&t.props[l.mounted.id]}}let h=Object.create(null);class f{constructor(t,e,n,r=0){this.name=t,this.props=e,this.id=n,this.flags=r}static define(t){let e=t.props&&t.props.length?Object.create(null):h,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),r=new f(t.name||"",e,t.id,n);if(t.props){for(let n of t.props)if(!Array.isArray(n)&&(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");e[n[0].id]=n[1]}}return r}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(l.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let r of n.split(" "))e[r]=t[n];return t=>{for(let n=t.prop(l.group),r=-1;r<(n?n.length:0);r++){let o=e[r<0?t.name:n[r]];if(o)return o}}}}f.none=new f("",Object.create(null),0,8);class p{constructor(t){this.types=t;for(let e=0;e<t.length;e++)if(t[e].id!=e)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let n of this.types){let r=null;for(let e of t){let t=e(n);t&&(!r&&(r=Object.assign({},n.props)),r[t[0].id]=t[1])}e.push(r?new f(n.name,r,n.id,n.flags):n)}return new p(e)}}let d=new WeakMap,m=new WeakMap;(o=r||(r={}))[o.ExcludeBuffers=1]="ExcludeBuffers",o[o.IncludeAnonymous=2]="IncludeAnonymous",o[o.IgnoreMounts=4]="IgnoreMounts",o[o.IgnoreOverlays=8]="IgnoreOverlays";class g{constructor(t,e,n,r,o){if(this.type=t,this.children=e,this.positions=n,this.length=r,this.props=null,o&&o.length)for(let[t,e]of(this.props=Object.create(null),o))this.props["number"==typeof t?t:t.id]=e}toString(){let t=c.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let t of this.children){let n=t.toString();n&&(e&&(e+=","),e+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new M(this.topNode,t)}cursorAt(t,e=0,n=0){let r=new M(d.get(this)||this.topNode);return r.moveTo(t,e),d.set(this,r._tree),r}get topNode(){return new D(this,0,0,null)}resolve(t,e=0){let n=w(d.get(this)||this.topNode,t,e,!1);return d.set(this,n),n}resolveInner(t,e=0){let n=w(m.get(this)||this.topNode,t,e,!0);return m.set(this,n),n}resolveStack(t,e=0){return function(t,e,n){let r=t.resolveInner(e,n),o=null;for(let t=r instanceof D?r:r.context.parent;t;t=t.parent)if(t.index<0){let s=t.parent;(o||(o=[r])).push(s.resolve(e,n)),t=s}else{let s=c.get(t.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let a=new D(s.tree,s.overlay[0].from+t.from,-1,t);(o||(o=[r])).push(w(a,e,n,!1))}}return o?T(o):r}(this,t,e)}iterate(t){let{enter:e,leave:n,from:o=0,to:s=this.length}=t,a=t.mode||0,u=(a&r.IncludeAnonymous)>0;for(let t=this.cursor(a|r.IncludeAnonymous);;){let r=!1;if(t.from<=s&&t.to>=o&&(!u&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;r=!0}for(;r&&n&&(u||!t.type.isAnonymous)&&n(t),!t.nextSibling();){;if(!t.parent())return;r=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:F(f.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,n)=>new g(this.type,t,e,n,this.propValues),t.makeTree||((t,e,n)=>new g(f.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:o=s,reused:a=[],minRepeatType:u=r.types.length}=t,c=Array.isArray(n)?new y(n,n.length):n,h=r.types,f=0,p=0;function d(t,e,n,o,s,a,u,l,c){let h=[],f=[];for(;t.length>o;)h.push(t.pop()),f.push(e.pop()+n-s);t.push(m(r.types[u],h,f,a-s,l-a,c)),e.push(s-n)}function m(t,e,n,r,o,s,a){if(s){let t=[l.contextHash,s];a=a?[t].concat(a):[t]}if(o>25){let t=[l.lookAhead,o];a=a?[t].concat(a):[t]}return new g(t,e,n,r,a)}let O=[],w=[];for(;c.pos>0;)!function t(e,n,s,y,O,w){let{id:x,start:D,end:k,size:S}=c,E=p,C=f;for(;S<0;){if(c.next(),-1==S){let t=a[x];s.push(t),y.push(D-e);return}if(-3==S){f=x;return}else if(-4==S){p=x;return}else throw RangeError(`Unrecognized record size: ${S}`)}let T=h[x],A,M,P=D-e;if(k-D<=o&&(M=function(t,e){let n=c.fork(),r=0,s=0,a=0,l=n.end-o,h={size:0,start:0,skip:0};a:for(let o=n.pos-t;n.pos>o;){let t=n.size;if(n.id==e&&t>=0){h.size=r,h.start=s,h.skip=a,a+=4,r+=4,n.next();continue}let c=n.pos-t;if(t<0||c<o||n.start<l)break;let f=n.id>=u?4:0,p=n.start;for(n.next();n.pos>c;){if(n.size<0){if(-3==n.size)f+=4;else break a}else n.id>=u&&(f+=4);n.next()}s=p,r+=t,a+=f}return(e<0||r==t)&&(h.size=r,h.start=s,h.skip=a),h.size>4?h:void 0}(c.pos-n,O))){let t=new Uint16Array(M.size-M.skip),n=c.pos-M.size,o=t.length;for(;c.pos>n;)o=function t(e,n,r){let{id:o,start:s,end:a,size:l}=c;if(c.next(),l>=0&&o<u){let u=r;if(l>4){let o=c.pos-(l-4);for(;c.pos>o;)r=t(e,n,r)}n[--r]=u,n[--r]=a-e,n[--r]=s-e,n[--r]=o}else -3==l?f=o:-4==l&&(p=o);return r}(M.start,t,o);A=new b(t,k-M.start,r),P=M.start-e}else{let e=c.pos-S;c.next();let n=[],s=[],a=x>=u?x:-1,h=0,f=k;for(;c.pos>e;)a>=0&&c.id==a&&c.size>=0?(c.end<=f-o&&(d(n,s,D,h,c.end,f,a,E,C),h=n.length,f=c.end),c.next()):w>2500?function(t,e,n,s){let a=[],u=0,l=-1;for(;c.pos>e;){let{id:t,start:e,end:n,size:r}=c;if(r>4)c.next();else if(l>-1&&e<l)break;else l<0&&(l=n-o),a.push(t,e,n),u++,c.next()}if(u){let e=new Uint16Array(4*u),o=a[a.length-2];for(let t=a.length-3,n=0;t>=0;t-=3)e[n++]=a[t],e[n++]=a[t+1]-o,e[n++]=a[t+2]-o,e[n++]=n;n.push(new b(e,a[2]-o,r)),s.push(o-t)}}(D,e,n,s):t(D,e,n,s,a,w+1);if(a>=0&&h>0&&h<n.length&&d(n,s,D,h,D,f,a,E,C),n.reverse(),s.reverse(),a>-1&&h>0){let t=function(t,e){return(n,r,o)=>{let s=0,a=n.length-1,u,c;if(a>=0&&(u=n[a])instanceof g){if(!a&&u.type==t&&u.length==o)return u;(c=u.prop(l.lookAhead))&&(s=r[a]+u.length+c)}return m(t,n,r,o,s,e)}}(T,C);A=F(T,n,s,0,n.length,0,k-D,t,t)}else A=m(T,n,s,k-D,E-k,C)}s.push(A),y.push(P)}(t.start||0,t.bufferStart||0,O,w,-1,0);let x=null!==(e=t.length)&&void 0!==e?e:O.length?w[0]+O[0].length:0;return new g(h[t.topID],O.reverse(),w.reverse(),x)}(t)}}g.empty=new g(f.none,[],[],0);class y{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new y(this.buffer,this.index)}}class b{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return f.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],n=this.buffer[t+3],r=this.set.types[e],o=r.name;if(/\W/.test(o)&&!r.isError&&(o=JSON.stringify(o)),n==(t+=4))return o;let s=[];for(;t<n;)s.push(this.childString(t)),t=this.buffer[t+3];return o+"("+s.join(",")+")"}findChild(t,e,n,r,o){let{buffer:s}=this,a=-1;for(let u=t;u!=e&&(!O(o,r,s[u+1],s[u+2])||(a=u,!(n>0)));u=s[u+3]);return a}slice(t,e,n){let r=this.buffer,o=new Uint16Array(e-t),s=0;for(let a=t,u=0;a<e;){o[u++]=r[a++],o[u++]=r[a++]-n;let e=o[u++]=r[a++]-n;o[u++]=r[a++]-t,s=Math.max(s,e)}return new b(o,s,this.set)}}function O(t,e,n,r){switch(t){case -2:return n<e;case -1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function w(t,e,n,o){for(var s;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let e=!o&&t instanceof D&&t.index<0?null:t.parent;if(!e)return t;t=e}let a=o?0:r.IgnoreOverlays;if(o)for(let r=t,o=r.parent;o;o=(r=o).parent)r instanceof D&&r.index<0&&(null===(s=o.enter(e,n,a))||void 0===s?void 0:s.from)!=r.from&&(t=o);for(;;){let r=t.enter(e,n,a);if(!r)return t;t=r}}class x{cursor(t=0){return new M(this,t)}getChild(t,e=null,n=null){let r=k(this,t,e,n);return r.length?r[0]:null}getChildren(t,e=null,n=null){return k(this,t,e,n)}resolve(t,e=0){return w(this,t,e,!1)}resolveInner(t,e=0){return w(this,t,e,!0)}matchContext(t){return S(this.parent,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),n=this;for(;e;){let t=e.lastChild;if(!t||t.to!=e.to)break;t.type.isError&&t.from==t.to?(n=e,e=t.prevSibling):e=t}return n}get node(){return this}get next(){return this.parent}}class D extends x{constructor(t,e,n,r){super(),this._tree=t,this.from=e,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,e,n,o,s=0){for(let a=this;;){for(let{children:u,positions:l}=a._tree,h=e>0?u.length:-1;t!=h;t+=e){let h=u[t],f=l[t]+a.from;if(O(o,n,f,f+h.length)){if(h instanceof b){if(s&r.ExcludeBuffers)continue;let u=h.findChild(0,h.buffer.length,e,n-f,o);if(u>-1)return new C(new E(a,h,t,f),null,u)}else if(s&r.IncludeAnonymous||!h.type.isAnonymous||P(h)){let u;if(!(s&r.IgnoreMounts)&&(u=c.get(h))&&!u.overlay)return new D(u.tree,f,t,a);let l=new D(h,f,t,a);return s&r.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(e<0?h.children.length-1:0,e,n,o)}}}if(s&r.IncludeAnonymous||!a.type.isAnonymous)return null;if(t=a.index>=0?a.index+e:e<0?-1:a._parent._tree.children.length,!(a=a._parent))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let o;if(!(n&r.IgnoreOverlays)&&(o=c.get(this._tree))&&o.overlay){let n=t-this.from;for(let{from:t,to:r}of o.overlay)if((e>0?t<=n:t<n)&&(e<0?r>=n:r>n))return new D(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function k(t,e,n,r){let o=t.cursor(),s=[];if(!o.firstChild())return s;if(null!=n){for(let t=!1;!t;)if(t=o.type.is(n),!o.nextSibling())return s}for(;;){if(null!=r&&o.type.is(r))return s;if(o.type.is(e)&&s.push(o.node),!o.nextSibling())return null==r?s:[]}}function S(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class E{constructor(t,e,n,r){this.parent=t,this.buffer=e,this.index=n,this.start=r}}class C extends x{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.context.start,n);return o<0?null:new C(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,n=0){if(n&r.ExcludeBuffers)return null;let{buffer:o}=this.context,s=o.findChild(this.index+4,o.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return s<0?null:new C(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new C(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new C(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,r=this.index+4,o=n.buffer[this.index+3];if(o>r){let s=n.buffer[this.index+1];t.push(n.slice(r,o,s)),e.push(0)}return new g(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function T(t){if(!t.length)return null;let e=0,n=t[0];for(let r=1;r<t.length;r++){let o=t[r];(o.from>n.from||o.to<n.to)&&(n=o,e=r)}let r=n instanceof D&&n.index<0?null:n.parent,o=t.slice();return r?o[e]=r:o.splice(e,1),new A(o,n)}class A{constructor(t,e){this.heads=t,this.node=e}get next(){return T(this.heads)}}class M{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof D)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:r}=this.buffer;return this.type=e||r.set.types[r.buffer[t]],this.from=n+r.buffer[t+1],this.to=n+r.buffer[t+2],!0}yield(t){return!!t&&(t instanceof D?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:r}=this.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.buffer.start,n);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&r.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&r.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&r.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let t=n<0?0:this.stack[n]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(t)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:o}=this;if(o){if(t>0){if(this.index<o.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(o.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:n}=o)}else({index:e,_parent:n}=this._tree);for(;n;{index:e,_parent:n}=n)if(e>-1)for(let o=e+t,s=t<0?-1:n._tree.children.length;o!=s;o+=t){let t=n._tree.children[o];if(this.mode&r.IncludeAnonymous||t instanceof b||!t.type.isAnonymous||P(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,n=0;if(t&&t.context==this.buffer)a:for(let r=this.index,o=this.stack.length;o>=0;){for(let s=t;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,n=o+1;break a}r=this.stack[--o]}for(let t=n;t<this.stack.length;t++)e=new C(this.buffer,e,this.stack[t]);return this.bufferNode=new C(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){n++;continue}!this.type.isAnonymous&&(r=!0)}for(;;){if(r&&e&&e(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(t){if(!this.buffer)return S(this.node.parent,t);let{buffer:e}=this.buffer,{types:n}=e.set;for(let r=t.length-1,o=this.stack.length-1;r>=0;o--){if(o<0)return S(this._tree,t,r);let s=n[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(t[r]&&t[r]!=s.name)return!1;r--}}return!0}}function P(t){return t.children.some(t=>t instanceof b||!t.type.isAnonymous||P(t))}let B=new WeakMap;function I(t,e){if(!t.isAnonymous||e instanceof b||e.type!=t)return 1;let n=B.get(e);if(null==n){for(let r of(n=1,e.children)){if(r.type!=t||!(r instanceof g)){n=1;break}n+=I(t,r)}B.set(e,n)}return n}function F(t,e,n,r,o,s,a,u,l){let c=0;for(let n=r;n<o;n++)c+=I(t,e[n]);let h=Math.ceil(1.5*c/8),f=[],p=[];return!function e(n,r,o,a,u){for(let c=o;c<a;){let o=c,d=r[c],m=I(t,n[c]);for(c++;c<a;c++){let e=I(t,n[c]);if(m+e>=h)break;m+=e}if(c==o+1){if(m>h){let t=n[o];e(t.children,t.positions,0,t.children.length,r[o]+u);continue}f.push(n[o])}else{let e=r[c-1]+n[c-1].length-d;f.push(F(t,n,r,o,c,d,e,null,l))}p.push(d+u-s)}}(e,n,r,o,0),(u||l)(f,p,a)}class N{constructor(){this.map=new WeakMap}setBuffer(t,e,n){let r=this.map.get(t);!r&&this.map.set(t,r=new Map),r.set(e,n)}getBuffer(t,e){let n=this.map.get(t);return n&&n.get(e)}set(t,e){t instanceof C?this.setBuffer(t.context.buffer,t.index,e):t instanceof D&&this.map.set(t.tree,e)}get(t){return t instanceof C?this.getBuffer(t.context.buffer,t.index):t instanceof D?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class L{constructor(t,e,n,r,o=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=r,this.open=(o?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let r=[new L(0,t.length,t,0,!1,n)];for(let n of e)n.to>t.length&&r.push(n);return r}static applyChanges(t,e,n=128){if(!e.length)return t;let r=[],o=1,s=t.length?t[0]:null;for(let a=0,u=0,l=0;;a++){let c=a<e.length?e[a]:null,h=c?c.fromA:1e9;if(h-u>=n)for(;s&&s.from<h;){let e=s;if(u>=e.from||h<=e.to||l){let t=Math.max(e.from,u)-l,n=Math.min(e.to,h)-l;e=t>=n?null:new L(t,n,e.tree,e.offset+l,a>0,!!c)}if(e&&r.push(e),s.to>h)break;s=o<t.length?t[o++]:null}if(!c)break;u=c.toA,l=c.toA-c.toB}return r}}class _{startParse(t,e,n){return"string"==typeof t&&(t=new X(t)),n=n?n.length?n.map(t=>new u(t.from,t.to)):[new u(0,0)]:[new u(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let r=this.startParse(t,e,n);for(;;){let t=r.advance();if(t)return t}}}class X{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}function R(t){return(e,n,r,o)=>new W(e,t,n,r,o)}class j{constructor(t,e,n,r,o){this.parser=t,this.parse=e,this.overlay=n,this.target=r,this.from=o}}function $(t){if(!t.length||t.some(t=>t.from>=t.to))throw RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class V{constructor(t,e,n,r,o,s,a){this.parser=t,this.predicate=e,this.mounts=n,this.index=r,this.start=o,this.target=s,this.prev=a,this.depth=0,this.ranges=[]}}let H=new l({perNode:!0});class W{constructor(t,e,n,r,o){this.nest=e,this.input=n,this.fragments=r,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let t=this.baseParse.advance();if(!t)return null;if(this.baseParse=null,this.baseTree=t,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let t=this.baseTree;return null!=this.stoppedAt&&(t=new g(t.type,t.children,t.positions,t.length,t.propValues.concat([[H,this.stoppedAt]]))),t}let t=this.inner[this.innerDone],e=t.parse.advance();if(e){this.innerDone++;let n=Object.assign(Object.create(null),t.target.props);n[l.mounted.id]=new c(e,t.overlay,t.parser),t.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;e<this.inner.length;e++)this.inner[e].from<t&&(t=Math.min(t,this.inner[e].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let e=this.innerDone;e<this.inner.length;e++)this.inner[e].parse.stopAt(t)}startInner(){let t=new U(this.fragments),e=null,n=null,o=new M(new D(this.baseTree,this.ranges[0].from,0,null),r.IncludeAnonymous|r.IgnoreMounts);a:for(let r,s;;){let a=!0,l;if(null!=this.stoppedAt&&o.from>=this.stoppedAt)a=!1;else if(t.hasNode(o)){if(e){let t=e.mounts.find(t=>t.frag.from<=o.from&&t.frag.to>=o.to&&t.mount.overlay);if(t)for(let n of t.mount.overlay){let r=n.from+t.pos,s=n.to+t.pos;r>=o.from&&s<=o.to&&!e.ranges.some(t=>t.from<s&&t.to>r)&&e.ranges.push({from:r,to:s})}}a=!1}else if(n&&(s=function(t,e,n){for(let r of t){if(r.from>=n)break;if(r.to>e)return r.from<=e&&r.to>=n?2:1}return 0}(n.ranges,o.from,o.to)))a=2!=s;else if(!o.type.isAnonymous&&(r=this.nest(o,this.input))&&(o.from<o.to||!r.overlay)){!o.tree&&function(t){let{node:e}=t,n=[],r=e.context.buffer;do n.push(t.index),t.parent();while(!t.tree);let o=t.tree,s=o.children.indexOf(r),a=o.children[s],u=a.buffer,l=[s];for(let r of(o.children[s]=function t(r,o,s,c,h,f){let p=n[f],d=[],m=[];z(a,r,p,d,m,c);let y=u[p+1],b=u[p+2];l.push(d.length);let O=f?t(p+4,u[p+3],a.set.types[u[p]],y,b-y,f-1):e.toTree();return d.push(O),m.push(y-c),z(a,u[p+3],o,d,m,c),new g(s,d,m,h)}(0,u.length,f.none,0,a.length,n.length-1),l)){let e=t.tree.children[r],n=t.tree.positions[r];t.yield(new D(e,n+t.from,r,t._tree))}}(o);let s=t.findMounts(o.from,r.parser);if("function"==typeof r.overlay)e=new V(r.parser,r.overlay,s,this.inner.length,o.from,o.tree,e);else{let t=Y(this.ranges,r.overlay||(o.from<o.to?[new u(o.from,o.to)]:[]));t.length&&$(t),(t.length||!r.overlay)&&this.inner.push(new j(r.parser,t.length?r.parser.startParse(this.input,G(s,t),t):r.parser.startParse(""),r.overlay?r.overlay.map(t=>new u(t.from-o.from,t.to-o.from)):null,o.tree,t.length?t[0].from:o.from)),r.overlay?t.length&&(n={ranges:t,depth:0,prev:n}):a=!1}}else if(e&&(l=e.predicate(o))&&(!0===l&&(l=new u(o.from,o.to)),l.from<l.to)){let t=e.ranges.length-1;t>=0&&e.ranges[t].to==l.from?e.ranges[t]={from:e.ranges[t].from,to:l.to}:e.ranges.push(l)}if(a&&o.firstChild())e&&e.depth++,n&&n.depth++;else for(;!o.nextSibling();){if(!o.parent())break a;if(e&&!--e.depth){let t=Y(this.ranges,e.ranges);t.length&&($(t),this.inner.splice(e.index,0,new j(e.parser,e.parser.startParse(this.input,G(e.mounts,t),t),e.ranges.map(t=>new u(t.from-e.start,t.to-e.start)),e.target,t[0].from))),e=e.prev}n&&!--n.depth&&(n=n.prev)}}}}function z(t,e,n,r,o,s){if(e<n){let a=t.buffer[e+1];r.push(t.slice(e,n,a)),o.push(a-s)}}class q{constructor(t,e){this.offset=e,this.done=!1,this.cursor=t.cursor(r.IncludeAnonymous|r.IgnoreMounts)}moveTo(t){let{cursor:e}=this,n=t-this.offset;for(;!this.done&&e.from<n;)e.to>=t&&e.enter(n,1,r.IgnoreOverlays|r.ExcludeBuffers)||!e.next(!1)&&(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let e=this.cursor.tree;;){if(e==t.tree)return!0;if(e.children.length&&0==e.positions[0]&&e.children[0]instanceof g)e=e.children[0];else break}return!1}}class U{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let n=this.curFrag=t[0];this.curTo=null!==(e=n.tree.prop(H))&&void 0!==e?e:n.to,this.inner=new q(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(t=e.tree.prop(H))&&void 0!==t?t:e.to,this.inner=new q(e.tree,-e.offset)}}findMounts(t,e){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let t=this.inner.cursor.node;t;t=t.parent){let o=null===(n=t.tree)||void 0===n?void 0:n.prop(l.mounted);if(o&&o.parser==e)for(let e=this.fragI;e<this.fragments.length;e++){let n=this.fragments[e];if(n.from>=t.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:t.from-n.offset,mount:o})}}}return r}}function Y(t,e){let n=null,r=e;for(let o=1,s=0;o<t.length;o++){let a=t[o-1].to,l=t[o].from;for(;s<r.length;s++){let t=r[s];if(t.from>=l)break;!(t.to<=a)&&(!n&&(r=n=e.slice()),t.from<a?(n[s]=new u(t.from,a),t.to>l&&n.splice(s+1,0,new u(l,t.to))):t.to>l?n[s--]=new u(l,t.to):n.splice(s--,1))}}return r}function G(t,e){let n=[];for(let{pos:r,mount:o,frag:s}of t){let t=r+(o.overlay?o.overlay[0].from:0),a=t+o.tree.length,l=Math.max(s.from,t),c=Math.min(s.to,a);if(o.overlay){let a=function(t,e,n,r){let o=0,s=0,a=!1,l=!1,c=-1e9,h=[];for(;;){let f=o==t.length?1e9:a?t[o].to:t[o].from,p=s==e.length?1e9:l?e[s].to:e[s].from;if(a!=l){let t=Math.max(c,n),e=Math.min(f,p,r);t<e&&h.push(new u(t,e))}if(1e9==(c=Math.min(f,p)))break;f==c&&(a?(a=!1,o++):a=!0),p==c&&(l?(l=!1,s++):l=!0)}return h}(e,o.overlay.map(t=>new u(t.from+r,t.to+r)),l,c);for(let e=0,r=l;;e++){let u=e==a.length,l=u?c:a[e].from;if(l>r&&n.push(new L(r,l,o.tree,-t,s.from>=r||s.openStart,s.to<=l||s.openEnd)),u)break;r=a[e].to}}else n.push(new L(l,c,o.tree,-t,s.from>=t||s.openStart,s.to<=a||s.openEnd))}return n}},888855:function(t,e,n){"use strict";n.d(e,{Gv:function(){return l},QR:function(){return f},Vp:function(){return s},bW:function(){return p},pJ:function(){return P}});var r=n(437254);let o=0;class s{constructor(t,e,n,r){this.name=t,this.set=e,this.base=n,this.modified=r,this.id=o++}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){if(t instanceof s&&(e=t),null==e?void 0:e.base)throw Error("Can not derive from a modified tag");let n=new s("string"==typeof t?t:"?",[],null,[]);if(n.set.push(n),e)for(let t of e.set)n.set.push(t);return n}static defineModifier(t){let e=new u(t);return t=>t.modified.indexOf(e)>-1?t:u.get(t.base||t,t.modified.concat(e).sort((t,e)=>t.id-e.id))}}let a=0;class u{constructor(t){this.name=t,this.instances=[],this.id=a++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(n=>n.base==t&&function(t,e){return t.length==e.length&&t.every((t,n)=>t==e[n])}(e,n.modified));if(n)return n;let r=[],o=new s(t.name,r,t,e);for(let t of e)t.instances.push(o);let a=function(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,o=e.length;r<o;r++)e.push(e[r].concat(t[n]));return e.sort((t,e)=>e.length-t.length)}(e);for(let e of t.set)if(!e.modified.length)for(let t of a)r.push(u.get(e,t));return o}}function l(t){let e=Object.create(null);for(let n in t){let r=t[n];for(let t of(!Array.isArray(r)&&(r=[r]),n.split(" ")))if(t){let n=[],o=2,s=t;for(let e=0;;){if("..."==s&&e>0&&e+3==t.length){o=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!r)throw RangeError("Invalid path: "+t);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(e+=r[0].length)==t.length)break;let a=t[e++];if(e==t.length&&"!"==a){o=0;break}if("/"!=a)throw RangeError("Invalid path: "+t);s=t.slice(e)}let a=n.length-1,u=n[a];if(!u)throw RangeError("Invalid path: "+t);let l=new h(r,o,a>0?n.slice(0,a):null);e[u]=l.sort(e[u])}}return c.add(e)}let c=new r.md;class h{constructor(t,e,n,r){this.tags=t,this.mode=e,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}function f(t,e){let n=Object.create(null);for(let e of t)if(Array.isArray(e.tag))for(let t of e.tag)n[t.id]=e.class;else n[e.tag.id]=e.class;let{scope:r,all:o=null}=e||{};return{style:t=>{let e=o;for(let r of t)for(let t of r.set){let r=n[t.id];if(r){e=e?e+" "+r:r;break}}return e},scope:r}}h.empty=new h([],2,null);function p(t,e,n,r=0,o=t.length){let s=new d(r,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),r,o,"",s.highlighters),s.flush(o)}class d{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,o,s){let{type:a,from:u,to:l}=t;if(u>=n||l<=e)return;a.isTop&&(s=this.highlighters.filter(t=>!t.scope||t.scope(a)));let f=o,p=function(t){let e=t.type.prop(c);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||h.empty,d=function(t,e){let n=null;for(let r of t){let t=r.style(e);t&&(n=n?n+" "+t:t)}return n}(s,p.tags);if(d&&(f&&(f+=" "),f+=d,1==p.mode&&(o+=(o?" ":"")+d)),this.startSpan(Math.max(e,u),f),p.opaque)return;let m=t.tree&&t.tree.prop(r.md.mounted);if(m&&m.overlay){let r=t.node.enter(m.overlay[0].from+u,1),a=this.highlighters.filter(t=>!t.scope||t.scope(m.tree.type)),c=t.firstChild();for(let h=0,p=u;;h++){let d=h<m.overlay.length?m.overlay[h]:null,g=d?d.from+u:l,y=Math.max(e,p),b=Math.min(n,g);if(y<b&&c)for(;t.from<b&&(this.highlightRange(t,y,b,o,s),this.startSpan(Math.min(b,t.to),f),!(t.to>=g)&&t.nextSibling()););if(!d||g>n)break;(p=d.to+u)>e&&(this.highlightRange(r.cursor(),Math.max(e,d.from+u),Math.min(n,p),"",a),this.startSpan(Math.min(n,p),f))}c&&t.parent()}else if(t.firstChild()){m&&(o="");do{if(t.to<=e)continue;if(t.from>=n)break;this.highlightRange(t,e,n,o,s),this.startSpan(Math.min(n,t.to),f)}while(t.nextSibling());t.parent()}}}let m=s.define,g=m(),y=m(),b=m(y),O=m(y),w=m(),x=m(w),D=m(w),k=m(),S=m(k),E=m(),C=m(),T=m(),A=m(T),M=m(),P={comment:g,lineComment:m(g),blockComment:m(g),docComment:m(g),name:y,variableName:m(y),typeName:b,tagName:m(b),propertyName:O,attributeName:m(O),className:m(y),labelName:m(y),namespace:m(y),macroName:m(y),literal:w,string:x,docString:m(x),character:m(x),attributeValue:m(x),number:D,integer:m(D),float:m(D),bool:m(w),regexp:m(w),escape:m(w),color:m(w),url:m(w),keyword:E,self:m(E),null:m(E),atom:m(E),unit:m(E),modifier:m(E),operatorKeyword:m(E),controlKeyword:m(E),definitionKeyword:m(E),moduleKeyword:m(E),operator:C,derefOperator:m(C),arithmeticOperator:m(C),logicOperator:m(C),bitwiseOperator:m(C),compareOperator:m(C),updateOperator:m(C),definitionOperator:m(C),typeOperator:m(C),controlOperator:m(C),punctuation:T,separator:m(T),bracket:A,angleBracket:m(A),squareBracket:m(A),paren:m(A),brace:m(A),content:k,heading:S,heading1:m(S),heading2:m(S),heading3:m(S),heading4:m(S),heading5:m(S),heading6:m(S),contentSeparator:m(k),list:m(k),quote:m(k),emphasis:m(k),strong:m(k),link:m(k),monospace:m(k),strikethrough:m(k),inserted:m(),deleted:m(),changed:m(),invalid:m(),meta:M,documentMeta:m(M),annotation:m(M),processingInstruction:m(M),definition:s.defineModifier("definition"),constant:s.defineModifier("constant"),function:s.defineModifier("function"),standard:s.defineModifier("standard"),local:s.defineModifier("local"),special:s.defineModifier("special")};for(let t in P){let e=P[t];e instanceof s&&(e.name=t)}f([{tag:P.link,class:"tok-link"},{tag:P.heading,class:"tok-heading"},{tag:P.emphasis,class:"tok-emphasis"},{tag:P.strong,class:"tok-strong"},{tag:P.keyword,class:"tok-keyword"},{tag:P.atom,class:"tok-atom"},{tag:P.bool,class:"tok-bool"},{tag:P.url,class:"tok-url"},{tag:P.labelName,class:"tok-labelName"},{tag:P.inserted,class:"tok-inserted"},{tag:P.deleted,class:"tok-deleted"},{tag:P.literal,class:"tok-literal"},{tag:P.string,class:"tok-string"},{tag:P.number,class:"tok-number"},{tag:[P.regexp,P.escape,P.special(P.string)],class:"tok-string2"},{tag:P.variableName,class:"tok-variableName"},{tag:P.local(P.variableName),class:"tok-variableName tok-local"},{tag:P.definition(P.variableName),class:"tok-variableName tok-definition"},{tag:P.special(P.variableName),class:"tok-variableName2"},{tag:P.definition(P.propertyName),class:"tok-propertyName tok-definition"},{tag:P.typeName,class:"tok-typeName"},{tag:P.namespace,class:"tok-namespace"},{tag:P.className,class:"tok-className"},{tag:P.macroName,class:"tok-macroName"},{tag:P.propertyName,class:"tok-propertyName"},{tag:P.operator,class:"tok-operator"},{tag:P.comment,class:"tok-comment"},{tag:P.meta,class:"tok-meta"},{tag:P.invalid,class:"tok-invalid"},{tag:P.punctuation,class:"tok-punctuation"}])},290483:function(t,e,n){"use strict";n.d(e,{IK:function(){return T},Jq:function(){return m},RA:function(){return d},WQ:function(){return A}});var r=n(437254);class o{constructor(t,e,n,r,o,s,a,u,l,c=0,h){this.p=t,this.stack=e,this.state=n,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=u,this.curContext=l,this.lookAhead=c,this.parent=h}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,n=0){let r=t.parser.context;return new o(t,[],e,n,n,0,[],0,r?new s(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let n=t>>19,r=65535&t,{parser:o}=this.p,s=this.reducePos<this.pos-25;s&&this.setLookAhead(this.pos);let a=o.dynamicPrecedence(r);if(a&&(this.score+=a),0==n){this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(r,this.reducePos);return}let u=this.stack.length-(n-1)*3-(262144&t?6:0),l=u?this.stack[u-2]:this.p.ranges[0].from,c=this.reducePos-l;c>=2e3&&!(null===(e=this.p.parser.nodeSet.types[r])||void 0===e?void 0:e.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let h=u?this.stack[u-1]:0,f=this.bufferBase+this.buffer.length-h;if(r<o.minRepeatTerm||131072&t){let t=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,t,f+4,!0)}if(262144&t)this.state=this.stack[u];else{let t=this.stack[u-3];this.state=o.getGoto(t,r,!0)}for(;this.stack.length>u;)this.stack.pop();this.reduceContext(r,l)}storeNode(t,e,n,r=4,o=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let t=this,r=this.buffer.length;if(0==r&&t.parent&&(r=t.bufferBase-t.parent.bufferBase,t=t.parent),r>0&&0==t.buffer[r-4]&&t.buffer[r-1]>-1){if(e==n)return;if(t.buffer[r-2]>=e){t.buffer[r-2]=n;return}}}if(o&&this.pos!=n){let o=this.buffer.length;if(o>0&&0!=this.buffer[o-4]){let t=!1;for(let e=o;e>0&&this.buffer[e-2]>n;e-=4)if(this.buffer[e-1]>=0){t=!0;break}if(t)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4)}this.buffer[o]=t,this.buffer[o+1]=e,this.buffer[o+2]=n,this.buffer[o+3]=r}else this.buffer.push(t,e,n,r)}shift(t,e,n,r){if(131072&t)this.pushState(65535&t,this.pos);else if((262144&t)==0){let{parser:o}=this.p;(r>this.pos||e<=o.maxNode)&&(this.pos=r,!o.stateFlag(t,1)&&(this.reducePos=r)),this.pushState(t,n),this.shiftContext(e,n),e<=o.maxNode&&this.buffer.push(e,n,r,4)}else this.pos=r,this.shiftContext(e,n),e<=this.p.parser.maxNode&&this.buffer.push(e,n,r,4)}apply(t,e,n,r){65536&t?this.reduce(t):this.shift(t,e,n,r)}useNode(t,e){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let r=this.pos;this.reducePos=this.pos=r+t.length,this.pushState(e,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let n=t.buffer.slice(e),r=t.bufferBase+e;for(;t&&r==t.bufferBase;)t=t.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,n?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new a(this);;){let n=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==n)return!1;if((65536&n)==0)return!0;e.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let n=[];for(let r=0,o;r<e.length;r+=2)(o=e[r+1])!=this.state&&this.p.parser.hasAction(o,t)&&n.push(e[r],o);if(this.stack.length<120)for(let t=0;n.length<8&&t<e.length;t+=2){let r=e[t+1];!n.some((t,e)=>1&e&&t==r)&&n.push(e[t],r)}e=n}let n=[];for(let t=0;t<e.length&&n.length<4;t+=2){let r=e[t+1];if(r==this.state)continue;let o=this.split();o.pushState(r,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(e[t],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((65536&e)==0)return!1;if(!t.validAction(this.state,e)){let n=e>>19,r=65535&e,o=this.stack.length-3*n;if(o<0||0>t.getGoto(this.stack[o],r,!1)){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],n=(r,o)=>{if(!e.includes(r))return e.push(r),t.allActions(r,e=>{if(393216&e);else if(65536&e){let n=(e>>19)-o;if(n>1){let r=65535&e,o=this.stack.length-3*n;if(o>=0&&t.getGoto(this.stack[o],r,!1)>=0)return n<<19|65536|r}}else{let t=n(e,o+1);if(null!=t)return t}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||-3!=this.buffer[t])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||-4!=this.buffer[t])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new s(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class s{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class a{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t>>19;0==e?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(e-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&t,!0);this.state=n}}class u{constructor(t,e,n){this.stack=t,this.pos=e,this.index=n,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new u(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new u(this.stack,this.pos,this.index)}}function l(t,e=Uint16Array){if("string"!=typeof t)return t;let n=null;for(let r=0,o=0;r<t.length;){let s=0;for(;;){let e=t.charCodeAt(r++),n=!1;if(126==e){s=65535;break}e>=92&&e--,e>=34&&e--;let o=e-32;if(o>=46&&(o-=46,n=!0),s+=o,n)break;s*=46}n?n[o++]=s:n=new e(s)}return n}class c{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let h=new c;class f{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=h,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let n=this.range,r=this.rangeIndex,o=this.pos+t;for(;o<n.from;){if(!r)return null;let t=this.ranges[--r];o-=n.from-t.to,n=t}for(;e<0?o>n.to:o>=n.to;){if(r==this.ranges.length-1)return null;let t=this.ranges[++r];o+=t.from-n.to,n=t}return o}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,n,r;if(e>=0&&e<this.chunk.length)n=this.pos+t,r=this.chunk.charCodeAt(e);else{let e=this.resolveOffset(t,1);if(null==e)return -1;if((n=e)>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let t=this.rangeIndex,e=this.range;for(;e.to<=n;)e=this.ranges[++t];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>e.to&&(this.chunk2=this.chunk2.slice(0,e.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(t,e=0){let n=e?this.resolveOffset(e,-1):this.pos;if(null==n||n<this.token.start)throw RangeError("Token end out of bounds");this.token.value=t,this.token.end=n}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=h,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let n="";for(let r of this.ranges){if(r.from>=e)break;r.to>t&&(n+=this.input.read(Math.max(r.from,t),Math.min(r.to,e)))}return n}}class p{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:n}=e.p;g(this.data,t,e,this.id,n.data,n.tokenPrecTable)}}p.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class d{constructor(t,e,n){this.precTable=e,this.elseToken=n,this.data="string"==typeof t?l(t):t}token(t,e){let n=t.pos,r=0;for(;;){let n=t.next<0,o=t.resolveOffset(1,1);if(g(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(!n&&r++,null==o)break;t.reset(o,t.token)}r&&(t.reset(n,t.token),t.acceptToken(this.elseToken,r))}}d.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class m{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function g(t,e,n,r,o,s){let a=0,u=1<<r,{dialect:l}=n.p.parser;a:for(;(u&t[a])!=0;){let n=t[a+1];for(let r=a+3;r<n;r+=2)if((t[r+1]&u)>0){let n=t[r];if(l.allows(n)&&(-1==e.token.value||e.token.value==n||function(t,e,n,r){let o=y(n,r,e);return o<0||y(n,r,t)<o}(n,e.token.value,o,s))){e.acceptToken(n);break}}let r=e.next,c=0,h=t[a+2];if(e.next<0&&h>c&&65535==t[n+3*h-3]){a=t[n+3*h-1];continue}for(;c<h;){let o=c+h>>1,s=n+o+(o<<1),u=t[s],l=t[s+1]||65536;if(r<u)h=o;else if(r>=l)c=o+1;else{a=t[s+2],e.advance();continue a}}break}}function y(t,e,n){for(let r=e,o;65535!=(o=t[r]);r++)if(o==n)return r-e;return -1}let b="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG),O=null;function w(t,e,n){let o=t.cursor(r.vj.IncludeAnonymous);for(o.moveTo(e);;)if(!(n<0?o.childBefore(e):o.childAfter(e)))for(;;){if((n<0?o.to<e:o.from>e)&&!o.type.isError)return n<0?Math.max(0,Math.min(o.to-1,e-25)):Math.min(t.length,Math.max(o.from+1,e+25));if(n<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return n<0?0:t.length}}class x{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?w(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?w(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let n=this.trees[e],o=this.index[e];if(o==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[o],a=this.start[e]+n.positions[o];if(a>t)return this.nextStart=a,null;if(s instanceof r.mp){if(a==t){if(a<this.safeFrom)return null;let t=a+s.length;if(t<=this.safeTo){let e=s.prop(r.md.lookAhead);if(!e||t+e<this.fragment.to)return s}}this.index[e]++,a+s.length>=Math.max(this.safeFrom,t)&&(this.trees.push(s),this.start.push(a),this.index.push(0))}else this.index[e]++,this.nextStart=a+s.length}}}class D{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(t=>new c)}getActions(t){let e=0,n=null,{parser:r}=t.p,{tokenizers:o}=r,s=r.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,u=0;for(let r=0;r<o.length;r++){if((1<<r&s)==0)continue;let l=o[r],c=this.tokens[r];if((!n||l.fallback)&&((l.contextual||c.start!=t.pos||c.mask!=s||c.context!=a)&&(this.updateCachedToken(c,l,t),c.mask=s,c.context=a),c.lookAhead>c.end+25&&(u=Math.max(c.lookAhead,u)),0!=c.value)){let r=e;if(c.extended>-1&&(e=this.addActions(t,c.extended,c.end,e)),e=this.addActions(t,c.value,c.end,e),!l.extend&&(n=c,e>r))break}}for(;this.actions.length>e;)this.actions.pop();return u&&t.setLookAhead(u),!n&&t.pos==this.stream.end&&((n=new c).value=t.p.parser.eofTerm,n.start=n.end=t.pos,e=this.addActions(t,n.value,n.end,e)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new c,{pos:n,p:r}=t;return e.start=n,e.end=Math.min(n+1,r.stream.end),e.value=n==r.stream.end?r.parser.eofTerm:0,e}updateCachedToken(t,e,n){let r=this.stream.clipPos(n.pos);if(e.token(this.stream.reset(r,t),n),t.value>-1){let{parser:e}=n.p;for(let r=0;r<e.specialized.length;r++)if(e.specialized[r]==t.value){let o=e.specializers[r](this.stream.read(t.start,t.end),n);if(o>=0&&n.p.parser.dialect.allows(o>>1)){(1&o)==0?t.value=o>>1:t.extended=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(r+1)}putAction(t,e,n,r){for(let e=0;e<r;e+=3)if(this.actions[e]==t)return r;return this.actions[r++]=t,this.actions[r++]=e,this.actions[r++]=n,r}addActions(t,e,n,r){let{state:o}=t,{parser:s}=t.p,{data:a}=s;for(let t=0;t<2;t++)for(let u=s.stateSlot(o,t?2:1);;u+=3){if(65535==a[u]){if(1==a[u+1])u=M(a,u+2);else{0==r&&2==a[u+1]&&(r=this.putAction(M(a,u+2),e,n,r));break}}a[u]==e&&(r=this.putAction(M(a,u+1),e,n,r))}return r}}class k{constructor(t,e,n,r){this.parser=t,this.input=e,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new f(e,r),this.tokens=new D(t,this.stream),this.topTerm=t.top[1];let{from:s}=r[0];this.stacks=[o.start(this,t.top[0],s)],this.fragments=n.length&&this.stream.end-s>4*t.bufferLength?new x(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,n=this.stacks,r=this.minStackPos,o=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[t]=n;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<n.length;s++){let a=n[s];for(;;){if(this.tokens.mainToken=null,a.pos>r)o.push(a);else{if(this.advanceStack(a,o,n))continue;!t&&(t=[],e=[]),t.push(a);let r=this.tokens.getMainToken(a);e.push(r.value,r.end)}break}}if(!o.length){let e=t&&function(t){let e=null;for(let n of t){let t=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=t&&n.pos>t)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}(t);if(e)return b&&console.log("Finish with "+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw b&&t&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+r);!this.recovering&&(this.recovering=5)}if(this.recovering&&t){let n=null!=this.stoppedAt&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,e,o);if(n)return b&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(o.length>t)for(o.sort((t,e)=>e.score-t.score);o.length>t;)o.pop();o.some(t=>t.reducePos>r)&&this.recovering--}else if(o.length>1){n:for(let t=0;t<o.length-1;t++){let e=o[t];for(let n=t+1;n<o.length;n++){let r=o[n];if(e.sameState(r)||e.buffer.length>500&&r.buffer.length>500){if((e.score-r.score||e.buffer.length-r.buffer.length)>0)o.splice(n--,1);else{o.splice(t--,1);continue n}}}}o.length>12&&o.splice(12,o.length-12)}this.minStackPos=o[0].pos;for(let t=1;t<o.length;t++)o[t].pos<this.minStackPos&&(this.minStackPos=o[t].pos);return null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,n){let o=t.pos,{parser:s}=this,a=b?this.stackID(t)+" -> ":"";if(null!=this.stoppedAt&&o>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,n=e?t.curContext.hash:0;for(let u=this.fragments.nodeAt(o);u;){let o=this.parser.nodeSet.types[u.type.id]==u.type?s.getGoto(t.state,u.type.id):-1;if(o>-1&&u.length&&(!e||(u.prop(r.md.contextHash)||0)==n))return t.useNode(u,o),b&&console.log(a+this.stackID(t)+` (via reuse of ${s.getName(u.type.id)})`),!0;if(!(u instanceof r.mp)||0==u.children.length||u.positions[0]>0)break;let l=u.children[0];if(l instanceof r.mp&&0==u.positions[0])u=l;else break}}let u=s.stateSlot(t.state,4);if(u>0)return t.reduce(u),b&&console.log(a+this.stackID(t)+` (via always-reduce ${s.getName(65535&u)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let r=0;r<l.length;){let u=l[r++],c=l[r++],h=l[r++],f=r==l.length||!n,p=f?t:t.split(),d=this.tokens.mainToken;if(p.apply(u,c,d?d.start:p.pos,h),b&&console.log(a+this.stackID(p)+` (via ${(65536&u)==0?"shift":`reduce of ${s.getName(65535&u)}`} for ${s.getName(c)} @ ${o}${p==t?"":", split"})`),f)return!0;p.pos>o?e.push(p):n.push(p)}return!1}advanceFully(t,e){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return S(t,e),!0}}runRecovery(t,e,n){let r=null,o=!1;for(let s=0;s<t.length;s++){let a=t[s],u=e[s<<1],l=e[(s<<1)+1],c=b?this.stackID(a)+" -> ":"";if(a.deadEnd){if(o)continue;if(o=!0,a.restart(),b&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))continue}let h=a.split(),f=c;for(let t=0;h.forceReduce()&&t<10&&(b&&console.log(f+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,n));t++){;b&&(f=this.stackID(h)+" -> ")}for(let t of a.recoverByInsert(u))b&&console.log(c+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,n);this.stream.end>a.pos?(l==a.pos&&(l++,u=0),a.recoverByDelete(u,l),b&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(u)})`),S(a,n)):(!r||r.score<a.score)&&(r=a)}return r}stackToTree(t){return t.close(),r.mp.build({buffer:u.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(O||(O=new WeakMap)).get(t);return!e&&O.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function S(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class E{constructor(t,e,n){this.source=t,this.flags=e,this.disabled=n}allows(t){return!this.disabled||0==this.disabled[t]}}let C=t=>t;class T{constructor(t){this.start=t.start,this.shift=t.shift||C,this.reduce=t.reduce||C,this.reuse=t.reuse||C,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class A extends r._b{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let n=Object.keys(t.topRules).map(e=>t.topRules[e][1]),o=[];for(let t=0;t<e.length;t++)o.push([]);function s(t,e,n){o[t].push([e,e.deserialize(String(n))])}if(t.nodeProps)for(let e of t.nodeProps){let t=e[0];"string"==typeof t&&(t=r.md[t]);for(let n=1;n<e.length;){let r=e[n++];if(r>=0)s(r,t,e[n++]);else{let o=e[n+-r];for(let a=-r;a>0;a--)s(e[n++],t,o);n++}}}this.nodeSet=new r.Lj(e.map((e,s)=>r.Jq.define({name:s>=this.minRepeatTerm?void 0:e,id:s,props:o[s],top:n.indexOf(s)>-1,error:0==s,skipped:t.skippedNodes&&t.skippedNodes.indexOf(s)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=r.L3;let a=l(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t<this.specializerSpecs.length;t++)this.specialized[t]=this.specializerSpecs[t].term;this.specializers=this.specializerSpecs.map(P),this.states=l(t.states,Uint32Array),this.data=l(t.stateData),this.goto=l(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(t=>"number"==typeof t?new p(a,t):t),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,n){let r=new k(this,t,e,n);for(let o of this.wrappers)r=o(r,t,e,n);return r}getGoto(t,e,n=!1){let r=this.goto;if(e>=r[0])return -1;for(let o=r[e+1];;){let e=r[o++],s=1&e,a=r[o++];if(s&&n)return a;for(let n=o+(e>>1);o<n;o++)if(r[o]==t)return a;if(s)return -1}}hasAction(t,e){let n=this.data;for(let r=0;r<2;r++)for(let o=this.stateSlot(t,r?2:1),s;;o+=3){if(65535==(s=n[o])){if(1==n[o+1])s=n[o=M(n,o+2)];else if(2==n[o+1])return M(n,o+2);else break}if(s==e||0==s)return M(n,o+1)}return 0}stateSlot(t,e){return this.states[6*t+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,t=>t==e||null)}allActions(t,e){let n=this.stateSlot(t,4),r=n?e(n):void 0;for(let n=this.stateSlot(t,1);null==r;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=M(this.data,n+2);else break}r=e(M(this.data,n+1))}return r}nextStates(t){let e=[];for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=M(this.data,n+2);else break}if((1&this.data[n+2])==0){let t=this.data[n+1];!e.some((e,n)=>1&n&&e==t)&&e.push(this.data[n],t)}}return e}configure(t){let e=Object.assign(Object.create(A.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let n=this.topRules[t.top];if(!n)throw RangeError(`Invalid top rule name ${t.top}`);e.top=n}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(e=>{let n=t.tokenizers.find(t=>t.from==e);return n?n.to:e})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((n,r)=>{let o=t.specializers.find(t=>t.from==n.external);if(!o)return n;let s=Object.assign(Object.assign({},n),{external:o.to});return e.specializers[r]=P(s),s})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),n=e.map(()=>!1);if(t)for(let r of t.split(" ")){let t=e.indexOf(r);t>=0&&(n[t]=!0)}let r=null;for(let t=0;t<e.length;t++)if(!n[t])for(let n=this.dialects[e[t]],o;65535!=(o=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[o]=1;return new E(t,n,r)}static deserialize(t){return new A(t)}}function M(t,e){return t[e]|t[e+1]<<16}function P(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}},853220:function(t,e,n){"use strict";n.d(e,{v4:function(){return a}});for(var r,o=256,s=[];o--;)s[o]=(o+256).toString(16).substring(1);function a(){var t,e=0,n="";if(!r||o+16>256){for(r=Array(e=256);e--;)r[e]=256*Math.random()|0;e=o=0}for(;e<16;e++)t=r[o+e],6==e?n+=s[15&t|64]:8==e?n+=s[63&t|128]:n+=s[t],1&e&&e>1&&e<11&&(n+="-");return o++,n}},252321:function(t,e,n){"use strict";function r(t,e,...n){if(function(){return"undefined"!=typeof process}()&&void 0===e)throw Error("invariant requires an error message argument");if(!t){let t;if(void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;(t=Error(e.replace(/%s/g,function(){return n[r++]}))).name="Invariant Violation"}throw t.framesToPop=1,t}}n.d(e,{k:function(){return r}})},260433:function(t,e,n){"use strict";function r(t,e,n,r){let o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;let s=Object.keys(t),a=Object.keys(e);if(s.length!==a.length)return!1;let u=Object.prototype.hasOwnProperty.bind(e);for(let a=0;a<s.length;a++){let l=s[a];if(!u(l))return!1;let c=t[l],h=e[l];if(!1===(o=n?n.call(r,c,h,l):void 0)||void 0===o&&c!==h)return!1}return!0}n.d(e,{w:function(){return r}})},478641:function(t,e,n){"use strict";if(n.d(e,{Z:function(){return a}}),!r)var r={map:function(t,e){var n={};return e?t.map(function(t,r){return n.index=r,e.call(n,t)}):t.slice()},naturalOrder:function(t,e){return t<e?-1:t>e?1:0},sum:function(t,e){var n={};return t.reduce(e?function(t,r,o){return n.index=o,t+e.call(n,r)}:function(t,e){return t+e},0)},max:function(t,e){return Math.max.apply(null,e?r.map(t,e):t)}};var o=function(){var t=3;function e(t,e,n){return(t<<10)+(e<<5)+n}function n(t){var e=[],n=!1;function r(){e.sort(t),n=!0}return{push:function(t){e.push(t),n=!1},peek:function(t){return n||r(),void 0===t&&(t=e.length-1),e[t]},pop:function(){return n||r(),e.pop()},size:function(){return e.length},map:function(t){return e.map(t)},debug:function(){return n||r(),e}}}function o(t,e,n,r,o,s,a){this.r1=t,this.r2=e,this.g1=n,this.g2=r,this.b1=o,this.b2=s,this.histo=a}function s(){this.vboxes=new n(function(t,e){return r.naturalOrder(t.vbox.count()*t.vbox.volume(),e.vbox.count()*e.vbox.volume())})}return o.prototype={volume:function(t){return this._volume&&!t||(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1)),this._volume},count:function(t){var n=this.histo;if(!this._count_set||t){var r,o,s,a=0;for(r=this.r1;r<=this.r2;r++)for(o=this.g1;o<=this.g2;o++)for(s=this.b1;s<=this.b2;s++)a+=n[e(r,o,s)]||0;this._count=a,this._count_set=!0}return this._count},copy:function(){return new o(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo)},avg:function(t){var n=this.histo;if(!this._avg||t){var r,o,s,a,u=0,l=8,c=0,h=0,f=0;for(o=this.r1;o<=this.r2;o++)for(s=this.g1;s<=this.g2;s++)for(a=this.b1;a<=this.b2;a++)u+=r=n[e(o,s,a)]||0,c+=r*(o+.5)*l,h+=r*(s+.5)*l,f+=r*(a+.5)*l;this._avg=u?[~~(c/u),~~(h/u),~~(f/u)]:[~~(l*(this.r1+this.r2+1)/2),~~(l*(this.g1+this.g2+1)/2),~~(l*(this.b1+this.b2+1)/2)]}return this._avg},contains:function(e){var n=e[0]>>t;return gval=e[1]>>t,bval=e[2]>>t,n>=this.r1&&n<=this.r2&&gval>=this.g1&&gval<=this.g2&&bval>=this.b1&&bval<=this.b2}},s.prototype={push:function(t){this.vboxes.push({vbox:t,color:t.avg()})},palette:function(){return this.vboxes.map(function(t){return t.color})},size:function(){return this.vboxes.size()},map:function(t){for(var e=this.vboxes,n=0;n<e.size();n++)if(e.peek(n).vbox.contains(t))return e.peek(n).color;return this.nearest(t)},nearest:function(t){for(var e,n,r,o=this.vboxes,s=0;s<o.size();s++)((n=Math.sqrt(Math.pow(t[0]-o.peek(s).color[0],2)+Math.pow(t[1]-o.peek(s).color[1],2)+Math.pow(t[2]-o.peek(s).color[2],2)))<e||void 0===e)&&(e=n,r=o.peek(s).color);return r},forcebw:function(){var t=this.vboxes;t.sort(function(t,e){return r.naturalOrder(r.sum(t.color),r.sum(e.color))});var e=t[0].color;e[0]<5&&e[1]<5&&e[2]<5&&(t[0].color=[0,0,0]);var n=t.length-1,o=t[n].color;o[0]>251&&o[1]>251&&o[2]>251&&(t[n].color=[255,255,255])}},{quantize:function(a,u){if(!a.length||u<2||u>256)return!1;var l,c,h,f,p,d,m,g,y,b,O,w,x,D,k=(l=a,h=Array(32768),l.forEach(function(n){h[c=e(n[0]>>t,n[1]>>t,n[2]>>t)]=(h[c]||0)+1}),h);k.forEach(function(){});var S=(f=a,p=k,y=1e6,b=0,O=1e6,w=0,x=1e6,D=0,f.forEach(function(e){(d=e[0]>>t)<y?y=d:d>b&&(b=d),(m=e[1]>>t)<O?O=m:m>w&&(w=m),(g=e[2]>>t)<x?x=g:g>D&&(D=g)}),new o(y,b,O,w,x,D,p)),E=new n(function(t,e){return r.naturalOrder(t.count(),e.count())});function C(t,n){for(var o,s=t.size(),a=0;a<1e3;){if(s>=n||a++>1e3)return;if((o=t.pop()).count()){var u=function(t,n){if(n.count()){var o=n.r2-n.r1+1,s=n.g2-n.g1+1,a=r.max([o,s,n.b2-n.b1+1]);if(1==n.count())return[n.copy()];var u,l,c,h,f=0,p=[],d=[];if(a==o)for(u=n.r1;u<=n.r2;u++){for(h=0,l=n.g1;l<=n.g2;l++)for(c=n.b1;c<=n.b2;c++)h+=t[e(u,l,c)]||0;p[u]=f+=h}else if(a==s)for(u=n.g1;u<=n.g2;u++){for(h=0,l=n.r1;l<=n.r2;l++)for(c=n.b1;c<=n.b2;c++)h+=t[e(l,u,c)]||0;p[u]=f+=h}else for(u=n.b1;u<=n.b2;u++){for(h=0,l=n.r1;l<=n.r2;l++)for(c=n.g1;c<=n.g2;c++)h+=t[e(l,c,u)]||0;p[u]=f+=h}return p.forEach(function(t,e){d[e]=f-t}),function(t){var e,r,o,s,a,l=t+"1",c=t+"2",h=0;for(u=n[l];u<=n[c];u++)if(p[u]>f/2){for(o=n.copy(),s=n.copy(),a=(e=u-n[l])<=(r=n[c]-u)?Math.min(n[c]-1,~~(u+r/2)):Math.max(n[l],~~(u-1-e/2));!p[a];)a++;for(h=d[a];!h&&p[a-1];)h=d[--a];return o[c]=a,s[l]=o[c]+1,[o,s]}}(a==o?"r":a==s?"g":"b")}}(k,o),l=u[0],c=u[1];if(!l)return;t.push(l),c&&(t.push(c),s++)}else t.push(o),a++}}E.push(S),C(E,.75*u);for(var T=new n(function(t,e){return r.naturalOrder(t.count()*t.volume(),e.count()*e.volume())});E.size();)T.push(E.pop());C(T,u);for(var A=new s;T.size();)A.push(T.pop());return A}}}().quantize,s=function(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=t.naturalWidth,this.height=this.canvas.height=t.naturalHeight,this.context.drawImage(t,0,0,this.width,this.height)};s.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var a=function(){};a.prototype.getColor=function(t,e){return void 0===e&&(e=10),this.getPalette(t,5,e)[0]},a.prototype.getPalette=function(t,e,n){var r=function(t){var e=t.colorCount,n=t.quality;if(void 0!==e&&Number.isInteger(e)){if(1===e)throw Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");e=Math.min(e=Math.max(e,2),20)}else e=10;return(void 0===n||!Number.isInteger(n)||n<1)&&(n=10),{colorCount:e,quality:n}}({colorCount:e,quality:n}),a=new s(t),u=o(function(t,e,n){for(var r,o,s,a,u,l=[],c=0;c<e;c+=n)o=t[0+(r=4*c)],s=t[r+1],a=t[r+2],(void 0===(u=t[r+3])||u>=125)&&(o>250&&s>250&&a>250||l.push([o,s,a]));return l}(a.getImageData().data,a.width*a.height,r.quality),r.colorCount);return u?u.palette():null},a.prototype.getColorFromUrl=function(t,e,n){var r=this,o=document.createElement("img");o.addEventListener("load",function(){e(r.getPalette(o,5,n)[0],t)}),o.src=t},a.prototype.getImageData=function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){if(200==this.status){var t=new Uint8Array(this.response);i=t.length;for(var n=Array(i),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);var o=n.join("");e("data:image/png;base64,"+window.btoa(o))}},n.send()},a.prototype.getColorAsync=function(t,e,n){var r=this;this.getImageData(t,function(t){var o=document.createElement("img");o.addEventListener("load",function(){e(r.getPalette(o,5,n)[0],this)}),o.src=t})}},889514:function(t,e,n){"use strict";function r(t,e){let n=e||{};return(""===t[t.length-1]?[...t,""]:t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(e,{P:function(){return r}})},734083:function(t,e,n){"use strict";n.d(e,{J:function(){return s}});var r=Object.prototype.hasOwnProperty;function o(t,e,n){for(n of t.keys())if(s(n,e))return n}function s(t,e){var n,a,u;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((a=t.length)===e.length)for(;a--&&s(t[a],e[a]););return -1===a}if(n===Set){if(t.size!==e.size)return!1;for(a of t)if((u=a)&&"object"==typeof u&&!(u=o(e,u))||!e.has(u))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(a of t)if((u=a[0])&&"object"==typeof u&&!(u=o(e,u))||!s(a[1],e.get(u)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((a=t.byteLength)===e.byteLength)for(;a--&&t.getInt8(a)===e.getInt8(a););return -1===a}if(ArrayBuffer.isView(t)){if((a=t.byteLength)===e.byteLength)for(;a--&&t[a]===e[a];);return -1===a}if(!n||"object"==typeof t){for(n in a=0,t)if(r.call(t,n)&&++a&&!r.call(e,n)||!(n in e)||!s(t[n],e[n]))return!1;return Object.keys(e).length===a}}return t!=t&&e!=e}},640652:function(t,e,n){"use strict";function r(t){return"[object Object]"===Object.prototype.toString.call(t)}function o(t){var e,n;return!1!==r(t)&&(void 0===(e=t.constructor)||!1!==r(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")&&!0)}n.d(e,{P:function(){return o}})},924907:function(t,e,n){"use strict";var r=n(52141);e.Z=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:(0,r.Z)(t,e,n)}},590709:function(t,e,n){"use strict";n.d(e,{Z:()=>m});var r=n("59110"),o="\ud800-\udfff",s="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\ud83c[\udffb-\udfff]",u="[^"+o+"]",l="(?:\ud83c[\udde6-\uddff]){2}",c="[\ud800-\udbff][\udc00-\udfff]",h="(?:"+s+"|"+a+")?",f="[\\ufe0e\\ufe0f]?",p="(?:\\u200d(?:"+[u,l,c].join("|")+")"+f+h+")*",d=RegExp(a+"(?="+a+")|"+("(?:"+[u+s+"?",s,l,c,"["+o+"]"].join("|")+")")+(f+h+p),"g"),m=function(t){return(0,r.Z)(t)?t.match(d)||[]:t.split("")}},492570:function(t,e,n){"use strict";var r=(0,n(709794).Z)("floor");e.Z=r},573242:function(t,e,n){"use strict";n.d(e,{PD:()=>k});var r={};function o(t){let e=null;return()=>(null==e&&(e=t()),e)}n.r(r),n.d(r,{FILE:()=>u,HTML:()=>h,TEXT:()=>c,URL:()=>l});class s{enter(t){let e=this.entered.length;return this.entered=function(t,e){let n=new Set,r=t=>n.add(t);t.forEach(r),e.forEach(r);let o=[];return n.forEach(t=>o.push(t)),o}(this.entered.filter(e=>this.isNodeInDocument(e)&&(!e.contains||e.contains(t))),[t]),0===e&&this.entered.length>0}leave(t){var e,n;let r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter(t=>t!==n)),r>0&&0===this.entered.length}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class a{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null)})})}loadDataTransfer(t){if(t){let e={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];null!=r&&(e[n]={value:r(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,e)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,e){return e===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}let u="__NATIVE_FILE__",l="__NATIVE_URL__",c="__NATIVE_TEXT__",h="__NATIVE_HTML__";function f(t,e,n){let r=e.reduce((e,n)=>e||t.getData(n),"");return null!=r?r:n}let p={[u]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[h]:{exposeProperties:{html:(t,e)=>f(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[l]:{exposeProperties:{urls:(t,e)=>f(t,e,"").split("\n"),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[c]:{exposeProperties:{text:(t,e)=>f(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function d(t){if(!t)return null;let e=Array.prototype.slice.call(t.types||[]);return Object.keys(p).filter(t=>{let n=p[t];return(null==n?!!void 0:!!n.matchesTypes)&&n.matchesTypes.some(t=>e.indexOf(t)>-1)})[0]||null}let m=o(()=>/firefox/i.test(navigator.userAgent)),g=o(()=>!!window.safari);class y{interpolate(t){let e;let{xs:n,ys:r,c1s:o,c2s:s,c3s:a}=this,u=n.length-1;if(t===n[u])return r[u];let l=0,c=a.length-1;for(;l<=c;){let o=n[e=Math.floor(.5*(l+c))];if(o<t)l=e+1;else{if(!(o>t))return r[e];c=e-1}}let h=t-n[u=Math.max(0,c)],f=h*h;return r[u]+o[u]*h+s[u]*f+a[u]*h*f}constructor(t,e){let n,r,o;let{length:s}=t,a=[];for(let t=0;t<s;t++)a.push(t);a.sort((e,n)=>t[e]<t[n]?-1:1);let u=[],l=[],c=[];for(let o=0;o<s-1;o++)n=t[o+1]-t[o],r=e[o+1]-e[o],l.push(n),u.push(r),c.push(r/n);let h=[c[0]];for(let t=0;t<l.length-1;t++){let e=c[t],r=c[t+1];if(e*r<=0)h.push(0);else{n=l[t];let o=l[t+1],s=n+o;h.push(3*s/((s+o)/e+(s+n)/r))}}h.push(c[c.length-1]);let f=[],p=[];for(let t=0;t<h.length-1;t++){o=c[t];let e=h[t],n=1/l[t],r=e+h[t+1]-o-o;f.push((o-e-r)*n),p.push(r*n*n)}this.xs=t,this.ys=e,this.c1s=h,this.c2s=f,this.c3s=p}}function b(t){let e=1===t.nodeType?t:t.parentElement;if(!e)return null;let{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function O(t){return{x:t.clientX,y:t.clientY}}class w{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var t;return(null===(t=this.globalContext)||void 0===t?void 0:t.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}constructor(t,e){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=e}}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r,o,s;r=t,o=e,s=n[e],o in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s})}return t}class D{profile(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){let t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId){var e;null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)}}}connectDragPreview(t,e,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,e,n){this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);let r=e=>this.handleDragStart(e,t),o=t=>this.handleSelectStart(t);return e.setAttribute("draggable","true"),e.addEventListener("dragstart",r),e.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",r),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}connectDropTarget(t,e){let n=e=>this.handleDragEnter(e,t),r=e=>this.handleDragOver(e,t),o=e=>this.handleDrop(e,t);return e.addEventListener("dragenter",n),e.addEventListener("dragover",r),e.addEventListener("drop",o),()=>{e.removeEventListener("dragenter",n),e.removeEventListener("dragover",r),e.removeEventListener("drop",o)}}addEventListeners(t){if(!!t.addEventListener)t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0)}removeEventListeners(t){if(!!t.removeEventListener)t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0)}getCurrentSourceNodeOptions(){let t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return x({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let t=this.monitor.getSourceId();return x({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}isDraggingNativeItem(){let t=this.monitor.getItemType();return Object.keys(r).some(e=>r[e]===t)}beginDragNativeItem(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){let n=p[t];if(!n)throw Error(`native type ${t} has no configuration`);let r=new a(n);return r.loadDataTransfer(e),r}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;this.mouseMoveTimeoutTimer=setTimeout(()=>{var t;return null===(t=this.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,e){if(!t.defaultPrevented)!this.dragStartSourceIds&&(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e)}handleDragEnter(t,e){this.dragEnterTargetIds.unshift(e)}handleDragOver(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}handleDrop(t,e){this.dropTargetIds.unshift(e)}constructor(t,e,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=t=>{let e=this.sourceNodes.get(t);return e&&b(e)||null},this.endDragNativeItem=()=>{if(!!this.isDraggingNativeItem())this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null},this.isNodeInDocument=t=>!!(t&&this.document&&this.document.body&&this.document.body.contains(t)),this.endDragIfSourceWasRemovedFromDOM=()=>{let t=this.currentDragSourceNode;if(!(null==t||this.isNodeInDocument(t)))this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.scheduleHover=t=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(t||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=t=>{if(t.defaultPrevented)return;let{dragStartSourceIds:e}=this;this.dragStartSourceIds=null;let n=O(t);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});let{dataTransfer:r}=t,o=d(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){let t=this.monitor.getSourceId(),e=this.sourceNodes.get(t),o=this.sourcePreviewNodes.get(t)||e;if(o){let{anchorX:t,anchorY:s,offsetX:a,offsetY:u}=this.getCurrentSourcePreviewNodeOptions(),l=function(t,e,n,r,o){var s,a,u,l,c,h;let f,p,d;let O="IMG"===(s=e).nodeName&&(m()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(s))),w=b(O?t:e),x={x:n.x-w.x,y:n.y-w.y},{offsetWidth:D,offsetHeight:k}=t,{anchorX:S,anchorY:E}=r;let{dragPreviewWidth:C,dragPreviewHeight:T}=(u=O,l=e,c=D,h=k,f=u?l.width:c,p=u?l.height:h,g()&&u&&(p/=window.devicePixelRatio,f/=window.devicePixelRatio),{dragPreviewWidth:f,dragPreviewHeight:p}),{offsetX:A,offsetY:M}=o;return{x:0===A||A?A:new y([0,.5,1],[x.x,x.x/D*C,x.x+C-D]).interpolate(S),y:0===M||M?M:(d=new y([0,.5,1],[x.y,x.y/k*T,x.y+T-k]).interpolate(E),g()&&O&&(d+=(window.devicePixelRatio-1)*T),d)}}(e,o,n,{anchorX:t,anchorY:s},{offsetX:a,offsetY:u});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(t){}this.setCurrentDragSourceNode(t.target);let{captureDraggingState:e}=this.getCurrentSourcePreviewNodeOptions();e?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=t=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var e;null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)}if(!this.enterLeaveCounter.enter(t.target)||this.monitor.isDragging())return;let{dataTransfer:n}=t,r=d(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=t=>{let{dragEnterTargetIds:e}=this;if(this.dragEnterTargetIds=[],!!this.monitor.isDragging())this.altKeyPressed=t.altKey,e.length>0&&this.actions.hover(e,{clientOffset:O(t)}),e.some(t=>this.monitor.canDropOnTarget(t))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=t=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var e;null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)}},this.handleTopDragOver=t=>{let{dragOverTargetIds:e}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none");return}this.altKeyPressed=t.altKey,this.lastClientOffset=O(t),this.scheduleHover(e),(e||[]).some(t=>this.monitor.canDropOnTarget(t))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=t=>{if(this.isDraggingNativeItem()&&t.preventDefault(),!!this.enterLeaveCounter.leave(t.target))this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover()},this.handleTopDropCapture=t=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var e;t.preventDefault(),null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)}else d(t.dataTransfer)&&t.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=t=>{let{dropTargetIds:e}=this;this.dropTargetIds=[],this.actions.hover(e,{clientOffset:O(t)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=t=>{let e=t.target;if("function"==typeof e.dragDrop&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)t.preventDefault(),e.dragDrop()},this.options=new w(e,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new s(this.isNodeInDocument)}}let k=function(t,e,n){return new D(t,e,n)}},545690:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});let r=(0,n(455069).createContext)({dragDropManager:void 0})},879179:function(t,e,n){"use strict";n.d(e,{W:()=>Q});var r,o,s=n("151064"),a=n("275211"),u=n("252321");function l(t){return"object"==typeof t}let c="dnd-core/INIT_COORDS",h="dnd-core/BEGIN_DRAG",f="dnd-core/PUBLISH_DRAG_SOURCE",p="dnd-core/HOVER",d="dnd-core/DROP",m="dnd-core/END_DRAG";function g(t,e){return{type:c,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}let y={type:c,payload:{clientOffset:null,sourceClientOffset:null}};function b(t,e){return null===e?null===t:Array.isArray(t)?t.some(t=>t===e):t===e}class O{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){var t,e,n,r,o,s;let a=this,{dispatch:c}=this.store;let O=(t=this,{beginDrag:(e=t,function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:o,getSourceClientOffset:s}=n,a=e.getMonitor(),c=e.getRegistry();e.dispatch(g(o)),function(t,e,n){(0,u.k)(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(t){(0,u.k)(n.getSource(t),"Expected sourceIds to be registered.")})}(t,a,c);let f=function(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}(t,a);if(null==f){e.dispatch(y);return}let p=null;if(o){if(!s)throw Error("getSourceClientOffset must be defined");(function(t){(0,u.k)("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")})(s),p=s(f)}e.dispatch(g(o,p));let d=c.getSource(f).beginDrag(a,f);if(null!=d)return function(t){(0,u.k)(l(t),"Item must be an object.")}(d),c.pinSource(f),{type:h,payload:{itemType:c.getSourceType(f),item:d,sourceId:f,clientOffset:o||null,sourceClientOffset:p||null,isSourcePublic:!!r}}}),publishDragSource:(n=t,function(){if(n.getMonitor().isDragging())return{type:f}}),hover:(r=t,function(t,{clientOffset:e}={}){(function(t){(0,u.k)(Array.isArray(t),"Expected targetIds to be an array.")})(t);let n=t.slice(0),o=r.getMonitor(),s=r.getRegistry();return function(t,e,n){for(let r=t.length-1;r>=0;r--){let o=t[r];!b(e.getTargetType(o),n)&&t.splice(r,1)}}(n,s,o.getItemType()),function(t,e,n){(0,u.k)(e.isDragging(),"Cannot call hover while not dragging."),(0,u.k)(!e.didDrop(),"Cannot call hover after drop.");for(let e=0;e<t.length;e++){let r=t[e];(0,u.k)(t.lastIndexOf(r)===e,"Expected targetIds to be unique in the passed array.");let o=n.getTarget(r);(0,u.k)(o,"Expected targetIds to be registered.")}}(n,o,s),function(t,e,n){t.forEach(function(t){n.getTarget(t).hover(e,t)})}(n,o,s),{type:p,payload:{targetIds:n,clientOffset:e||null}}}),drop:(o=t,function(t={}){let e=o.getMonitor(),n=o.getRegistry();(function(t){(0,u.k)(t.isDragging(),"Cannot call drop while not dragging."),(0,u.k)(!t.didDrop(),"Cannot call drop twice during one drag operation.")})(e),(function(t){let e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e})(e).forEach((r,s)=>{let a={type:d,payload:{dropResult:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r,o,s;r=t,o=e,s=n[e],o in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s})}return t}({},t,function(t,e,n,r){let o=n.getTarget(t),s=o?o.drop(r,t):void 0;return function(t){(0,u.k)(void 0===t||l(t),"Drop result must either be an object or undefined.")}(s),void 0===s&&(s=0===e?{}:r.getDropResult()),s}(r,s,n,e))}};o.dispatch(a)})}),endDrag:(s=t,function(){let t=s.getMonitor(),e=s.getRegistry();(function(t){(0,u.k)(t.isDragging(),"Cannot call endDrag while not dragging.")})(t);let n=t.getSourceId();return null!=n&&(e.getSource(n,!0).endDrag(t,n),e.unpinSource()),{type:m}})});return Object.keys(O).reduce((t,e)=>{var n;let r=O[e];return t[e]=(n=r,(...t)=>{let e=n.apply(a,t);void 0!==e&&c(e)}),t},{})}dispatch(t){this.store.dispatch(t)}constructor(t,e){this.isSetUp=!1,this.handleRefCountChange=()=>{let t=this.store.getState().refCount>0;this.backend&&(t&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!t&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=e,t.subscribe(this.handleRefCountChange)}}function w(t,e){return{x:t.x-e.x,y:t.y-e.y}}let x=[],D=[];x.__IS_NONE__=!0,D.__IS_ALL__=!0;class k{subscribeToStateChange(t,e={}){let{handlerIds:n}=e;(0,u.k)("function"==typeof t,"listener must be a function."),(0,u.k)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{let e=this.store.getState(),o=e.stateId;try{!(o===r||o===r+1&&!function(t,e){var n,r;if(t===x)return!1;if(t===D||void 0===e)return!0;return(n=e,r=t,n.filter(t=>r.indexOf(t)>-1)).length>0}(e.dirtyHandlerIds,n))&&t()}finally{r=o}})}subscribeToOffsetChange(t){(0,u.k)("function"==typeof t,"listener must be a function.");let e=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;if(n!==e)e=n,t()})}canDragSource(t){if(!t)return!1;let e=this.registry.getSource(t);return(0,u.k)(e,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()&&e.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;let e=this.registry.getTarget(t);if((0,u.k)(e,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;let n=this.registry.getTargetType(t);return b(n,this.getItemType())&&e.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;let e=this.registry.getSource(t,!0);if((0,u.k)(e,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;let n=this.registry.getSourceType(t);return n===this.getItemType()&&e.isDragging(this,t)}isOverTarget(t,e={shallow:!1}){if(!t)return!1;let{shallow:n}=e;if(!this.isDragging())return!1;let r=this.registry.getTargetType(t),o=this.getItemType();if(o&&!b(r,o))return!1;let s=this.getTargetIds();if(!s.length)return!1;let a=s.indexOf(t);return n?a===s.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(t){var e,n;let{clientOffset:r,initialClientOffset:o,initialSourceClientOffset:s}=t;if(!r||!o||!s)return null;return w((e=r,n=s,{x:e.x+n.x,y:e.y+n.y}),o)}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(t){let{clientOffset:e,initialClientOffset:n}=t;return e&&n?w(e,n):null}(this.store.getState().dragOffset)}constructor(t,e){this.store=t,this.registry=e}}let S="undefined"!=typeof global?global:self,E=S.MutationObserver||S.WebKitMutationObserver;function C(t){return function(){let e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}let T="function"==typeof E?function(t){let e=1,n=new E(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:C;class A{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}let M=new class t{enqueueTask(t){let{queue:e,requestFlush:n}=this;!e.length&&(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:t}=this;for(;this.index<t.length;){let e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=T(this.flush),this.requestErrorThrow=C(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},P=new class t{create(t){let e=this.freeTasks,n=e.length?e.pop():new A(this.onError,t=>e[e.length]=t);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(M.registerPendingError),B="dnd-core/ADD_SOURCE",I="dnd-core/ADD_TARGET",F="dnd-core/REMOVE_SOURCE",N="dnd-core/REMOVE_TARGET";function L(t,e){if(e&&Array.isArray(t)){t.forEach(t=>L(t,!1));return}(0,u.k)("string"==typeof t||"symbol"==typeof t,e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}(r=o||(o={})).SOURCE="SOURCE",r.TARGET="TARGET";let _=0;function X(t){switch(t[0]){case"S":return o.SOURCE;case"T":return o.TARGET;default:throw Error(`Cannot parse handler ID: ${t}`)}}function R(t,e){let n=t.entries(),r=!1;do{let{done:t,value:[,o]}=n.next();if(o===e)return!0;r=!!t}while(!r);return!1}class j{addSource(t,e){var n;L(t),n=e,(0,u.k)("function"==typeof n.canDrag,"Expected canDrag to be a function."),(0,u.k)("function"==typeof n.beginDrag,"Expected beginDrag to be a function."),(0,u.k)("function"==typeof n.endDrag,"Expected endDrag to be a function.");let r=this.addHandler(o.SOURCE,t,e);return this.store.dispatch({type:B,payload:{sourceId:r}}),r}addTarget(t,e){var n;L(t,!0),n=e,(0,u.k)("function"==typeof n.canDrop,"Expected canDrop to be a function."),(0,u.k)("function"==typeof n.hover,"Expected hover to be a function."),(0,u.k)("function"==typeof n.drop,"Expected beginDrag to be a function.");let r=this.addHandler(o.TARGET,t,e);return this.store.dispatch({type:I,payload:{targetId:r}}),r}containsHandler(t){return R(this.dragSources,t)||R(this.dropTargets,t)}getSource(t,e=!1){return(0,u.k)(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return(0,u.k)(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return(0,u.k)(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return(0,u.k)(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return X(t)===o.SOURCE}isTargetId(t){return X(t)===o.TARGET}removeSource(t){var e;(0,u.k)(this.getSource(t),"Expected an existing source."),this.store.dispatch({type:F,payload:{sourceId:t}}),e=()=>{this.dragSources.delete(t),this.types.delete(t)},M.enqueueTask(P.create(e))}removeTarget(t){(0,u.k)(this.getTarget(t),"Expected an existing target."),this.store.dispatch({type:N,payload:{targetId:t}}),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){let e=this.getSource(t);(0,u.k)(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}unpinSource(){(0,u.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,e,n){let r=function(t){let e=(_++).toString();switch(t){case o.SOURCE:return`S${e}`;case o.TARGET:return`T${e}`;default:throw Error(`Unknown Handler Role: ${t}`)}}(t);return this.types.set(r,e),t===o.SOURCE?this.dragSources.set(r,n):t===o.TARGET&&this.dropTargets.set(r,n),r}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}let $=(t,e)=>t===e,V={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r,o,s;r=t,o=e,s=n[e],o in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s})}return t}let W={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function z(t={},e){var n,r;return{dirtyHandlerIds:function(t=x,e){switch(e.type){case p:break;case B:case I:case N:case F:return x;default:return D}let{targetIds:n=[],prevTargetIds:r=[]}=e.payload,o=function(t,e){let n=new Map,r=t=>{n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);let o=[];return n.forEach((t,e)=>{1===t&&o.push(e)}),o}(n,r);if(!(o.length>0||!function(t,e,n=$){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}(n,r)))return x;let s=r[r.length-1],a=n[n.length-1];return s!==a&&(s&&o.push(s),a&&o.push(a)),o}(t.dirtyHandlerIds,{type:e.type,payload:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r,o,s;r=t,o=e,s=n[e],o in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s})}return t}({},e.payload,{prevTargetIds:(n=t,r=[],"dragOperation.targetIds".split(".").reduce((t,e)=>t&&t[e]?t[e]:r||null,n))})}),dragOffset:function(t=V,e){let{payload:n}=e;switch(e.type){case c:case h:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case p:var r,o;if(r=t.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y)return t;return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r,o,s;r=t,o=e,s=n[e],o in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s})}return t}({},t,{clientOffset:n.clientOffset});case m:case d:return V;default:return t}}(t.dragOffset,e),refCount:function(t=0,e){switch(e.type){case B:case I:return t+1;case F:case N:return t-1;default:return t}}(t.refCount,e),dragOperation:function(t=W,e){let{payload:n}=e;switch(e.type){case h:return H({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case f:return H({},t,{isSourcePublic:!0});case p:return H({},t,{targetIds:n.targetIds});case N:var r,o;if(-1===t.targetIds.indexOf(n.targetId))return t;return H({},t,{targetIds:(r=t.targetIds,o=n.targetId,r.filter(t=>t!==o))});case d:return H({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case m:return H({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}(t.dragOperation,e),stateId:function(t=0){return t+1}(t.stateId)}}var q=n("455069"),U=n("545690");let Y=0,G=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Q=(0,q.memo)(function(t){var{children:e}=t;let[n,r]=function(t){if("manager"in t)return[{dragDropManager:t.manager},!1];let e=function(t,e=K(),n,r){return!e[G]&&(e[G]={dragDropManager:function(t,e,n={},r=!1){let o=function(t){let e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,a.MT)(z,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}(r),s=new k(o,new j(o)),u=new O(o,s),l=t(u,e,n);return u.receiveBackend(l),u}(t,e,n,r)}),e[G]}(t.backend,t.context,t.options,t.debugMode);return[e,!t.context]}(function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],!(e.indexOf(n)>=0)&&(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++){if(n=s[r],!(e.indexOf(n)>=0))Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}}return o}(t,["children"]));return(0,q.useEffect)(()=>{if(r){let t=K();return++Y,()=>{0==--Y&&(t[G]=null)}}},[]),(0,s.jsx)(U.L.Provider,{value:n,children:e})});function K(){return"undefined"!=typeof global?global:window}},195731:function(t,e,n){"use strict";n.d(e,{J:()=>s});var r=n("313321"),o=n("622117");function s(t,e,n){return function(t,e,n){let[s,a]=(0,r.r)(t,e,n);return(0,o.L)(function(){let e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(a,{handlerIds:[e]})},[t,a]),s}(e,t||(()=>({})),()=>n.reconnect())}},313321:function(t,e,n){"use strict";n.d(e,{r:function(){return a}});var r=n(739561),o=n(455069),s=n(622117);function a(t,e,n){let[a,u]=(0,o.useState)(()=>e(t)),l=(0,o.useCallback)(()=>{let o=e(t);!r(a,o)&&(u(o),n&&n())},[a,t,n]);return(0,s.L)(l),[a,l]}},990828:function(t,e,n){"use strict";n.d(e,{c:()=>O});var r=n("252321"),o=n("195731"),s=n("569024"),a=n("455069"),u=n("260433"),l=n("562310"),c=n("262265");class h{receiveHandlerId(t){if(this.handlerId!==t)this.handlerId=t,this.reconnect()}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){let t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){let t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return(e&&this.disconnectDragSource(),this.handlerId)?t?(e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),e):(this.lastConnectedDragSource=t,e):e}reconnectDragPreview(t=!1){let e=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!e){this.lastConnectedDragPreview=e;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,u.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,u.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=(0,c.p)({dragSource:(t,e)=>{this.clearDragSource(),this.dragSourceOptions=e||null,(0,l.d)(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,e)=>{this.clearDragPreview(),this.dragPreviewOptions=e||null,(0,l.d)(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}var f=n("604022"),p=n("622117");let d=!1,m=!1;class g{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){(0,r.k)(!d,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return d=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{d=!1}}isDragging(){if(!this.sourceId)return!1;(0,r.k)(!m,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return m=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{m=!1}}subscribeToStateChange(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,e){return this.internalMonitor.isOverTarget(t,e)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}var y=n("613948");class b{beginDrag(){let t=this.spec,e=this.monitor,n=null;return null!=(n="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(e):{})?n:null}canDrag(){let t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}isDragging(t,e){let n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):e===t.getSourceId()}endDrag(){let t=this.spec,e=this.monitor,n=this.connector,{end:r}=t;r&&r(e.getItem(),e),n.reconnect()}constructor(t,e,n){this.spec=t,this.monitor=e,this.connector=n}}function O(t,e){var n,u;let l=(0,s.w)(t,e);(0,r.k)(!l.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");let c=function(){let t=(0,f.N)();return(0,a.useMemo)(()=>new g(t),[t])}(),d=function(t,e){let n=(0,f.N)(),r=(0,a.useMemo)(()=>new h(n.getBackend()),[n]);return(0,p.L)(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),(0,p.L)(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}(l.options,l.previewOptions);return!function(t,e,n){var o;let s=(0,f.N)(),u=function(t,e,n){let r=(0,a.useMemo)(()=>new b(t,e,n),[e,n]);return(0,a.useEffect)(()=>{r.spec=t},[t]),r}(t,e,n);let l=(o=t,(0,a.useMemo)(()=>{let t=o.type;return(0,r.k)(null!=t,"spec.type must be defined"),t},[o]));(0,p.L)(function(){if(null!=l){let[t,r]=(0,y.w)(l,u,s);return e.receiveHandlerId(t),n.receiveHandlerId(t),r}},[s,e,n,u,l])}(l,c,d),[(0,o.J)(l.collect,c,d),(n=d,(0,a.useMemo)(()=>n.hooks.dragSource(),[n])),(u=d,(0,a.useMemo)(()=>u.hooks.dragPreview(),[u]))]}},604022:function(t,e,n){"use strict";n.d(e,{N:function(){return a}});var r=n(252321),o=n(455069),s=n(545690);function a(){let{dragDropManager:t}=(0,o.useContext)(s.L);return(0,r.k)(null!=t,"Expected drag drop context"),t}},221478:function(t,e,n){"use strict";n.d(e,{L:()=>b});var r=n("195731"),o=n("569024"),s=n("455069"),a=n("260433"),u=n("562310"),l=n("262265");class c{get connectTarget(){return this.dropTarget}reconnect(){let t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();let e=this.dropTarget;if(!!this.handlerId){if(!e){this.lastConnectedDropTarget=e;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions))}}receiveHandlerId(t){if(t!==this.handlerId)this.handlerId=t,this.reconnect()}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,a.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=(0,l.p)({dropTarget:(t,e)=>{this.clearDropTarget(),this.dropTargetOptions=e,(0,u.d)(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}var h=n("604022"),f=n("622117"),p=n("252321");let d=!1;class m{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}canDrop(){if(!this.targetId)return!1;(0,p.k)(!d,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return d=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{d=!1}}isOver(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}var g=n("613948");class y{canDrop(){let t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}hover(){let t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}drop(){let t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}constructor(t,e){this.spec=t,this.monitor=e}}function b(t,e){var n;let a=(0,o.w)(t,e),u=function(){let t=(0,h.N)();return(0,s.useMemo)(()=>new m(t),[t])}(),l=function(t){let e=(0,h.N)(),n=(0,s.useMemo)(()=>new c(e.getBackend()),[e]);return(0,f.L)(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}(a.options);return!function(t,e,n){let r=(0,h.N)(),o=function(t,e){let n=(0,s.useMemo)(()=>new y(t,e),[e]);return(0,s.useEffect)(()=>{n.spec=t},[t]),n}(t,e),a=function(t){let{accept:e}=t;return(0,s.useMemo)(()=>((0,p.k)(null!=t.accept,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}(t);(0,f.L)(function(){let[t,s]=(0,g.n)(a,o,r);return e.receiveHandlerId(t),n.receiveHandlerId(t),s},[r,e,o,n,a.map(t=>t.toString()).join("|")])}(a,u,l),[(0,r.J)(a.collect,u,l),(n=l,(0,s.useMemo)(()=>n.hooks.dropTarget(),[n]))]}},622117:function(t,e,n){"use strict";n.d(e,{L:function(){return o}});var r=n(455069);let o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},569024:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var r=n(455069);function o(t,e){let n=[...e||[]];return null==e&&"function"!=typeof t&&n.push(t),(0,r.useMemo)(()=>"function"==typeof t?t():t,n)}},562310:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{d:function(){return r}})},613948:function(t,e,n){"use strict";function r(t,e,n){let r=n.getRegistry(),o=r.addTarget(t,e);return[o,()=>r.removeTarget(o)]}function o(t,e,n){let r=n.getRegistry(),o=r.addSource(t,e);return[o,()=>r.removeSource(o)]}n.d(e,{n:function(){return r},w:function(){return o}})},262265:function(t,e,n){"use strict";n.d(e,{p:function(){return s}});var r=n(252321),o=n(455069);function s(t){let e={};return Object.keys(t).forEach(n=>{let s=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var u;let t=(u=s,(t=null,e=null)=>(0,o.isValidElement)(t)?(!function(t){if("string"==typeof t.type)return;let e=t.type.displayName||t.type.name||"the component";throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}(t),function(t,e){let n=t.ref;return((0,r.k)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n)?(0,o.cloneElement)(t,{ref:t=>{a(n,t),a(e,t)}}):(0,o.cloneElement)(t,{ref:e})}(t,e?t=>u(t,e):u)):(u(t,e),t));e[n]=()=>t}}),e}function a(t,e){"function"==typeof t?t(e):t.current=e}},651088:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(174434);function o(t){Object.assign(this,{Parser:e=>{let n=this.data("settings");return(0,r.V)(e,Object.assign({},n,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}},263055:function(t,e,n){"use strict";function r(t){return t.join(" ").trim()}n.d(e,{P:function(){return r}})},775985:function(t,e,n){"use strict";n.d(e,{V:function(){return a}});let r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),o="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class a{constructor(t,e){this.rules=[];let{finish:n}=e||{};function r(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}for(let e in t)!function t(e,o,s,a){let u=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==o)return s.push(e[0]+";");for(let n in o){let a=o[n];if(/&/.test(n))t(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((t,e)=>t.concat(e)),a,s);else if(a&&"object"==typeof a){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");t(r(n),a,u,c)}else null!=a&&u.push(n.replace(/_.*/,"").replace(/[A-Z]/g,t=>"-"+t.toLowerCase())+": "+a+";")}(u.length||c)&&s.push((!n||l||a?e:e.map(n)).join(", ")+" {"+u.join(" ")+"}")}(r(e),t[e],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=s[r]||1;return s[r]=t+1,"ͼ"+t.toString(36)}static mount(t,e,n){let r=t[o],s=n&&n.nonce;r?s&&r.setNonce(s):r=new l(t,s),r.mount(Array.isArray(e)?e:[e],t)}}let u=new Map;class l{constructor(t,e){let n=t.ownerDocument||t,r=n.defaultView;if(!t.head&&t.adoptedStyleSheets&&r.CSSStyleSheet){let e=u.get(n);if(e)return t[o]=e;this.sheet=new r.CSSStyleSheet,u.set(n,this)}else this.styleTag=n.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[o]=this}mount(t,e){let n=this.sheet,r=0,o=0;for(let e=0;e<t.length;e++){let s=t[e],a=this.modules.indexOf(s);if(a<o&&a>-1&&(this.modules.splice(a,1),o--,a=-1),-1==a){if(this.modules.splice(o++,0,s),n)for(let t=0;t<s.rules.length;t++)n.insertRule(s.rules[t],r++)}else{for(;o<a;)r+=this.modules[o++].rules.length;r+=s.rules.length,o++}}if(n)0>e.adoptedStyleSheets.indexOf(this.sheet)&&(e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets]);else{let t="";for(let e=0;e<this.modules.length;e++)t+=this.modules[e].getRules()+"\n";this.styleTag.textContent=t;let n=e.head||e;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}},812579:function(t,e,n){"use strict";function r(t){if(t)throw t}n.d(e,{l:()=>l});var o=n("377996"),s=n("815651");function a(t){if("object"!=typeof t||null===t)return!1;let e=Object.getPrototypeOf(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}var u=n("830644");let l=(function t(){let e;let n=function(){let t=[],e={run:function(...e){let n=-1,r=e.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function o(s,...a){let u=t[++n],l=-1;if(s){r(s);return}for(;++l<e.length;)(null===a[l]||void 0===a[l])&&(a[l]=e[l]);e=a,u?(function(t,e){let n;return function(...e){let s;let a=t.length>e.length;a&&e.push(r);try{s=t.apply(this,e)}catch(t){if(a&&n)throw t;return r(t)}!a&&(s&&s.then&&"function"==typeof s.then?s.then(o,r):s instanceof Error?r(s):o(s))};function r(t,...o){!n&&(n=!0,e(t,...o))}function o(t){r(null,t)}})(u,o)(...a):r(null,...a)})(null,...e)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return t.push(n),e}};return e}(),u=[],l={},b=-1;return O.data=function(t,n){if("string"==typeof t)return 2==arguments.length?(d("data",e),l[t]=n,O):c.call(l,t)&&l[t]||null;return t?(d("data",e),l=t,O):l},O.Parser=void 0,O.Compiler=void 0,O.freeze=function(){if(e)return O;for(;++b<u.length;){let[t,...e]=u[b];if(!1===e[0])continue;!0===e[0]&&(e[0]=void 0);let r=t.call(O,...e);"function"==typeof r&&n.use(r)}return e=!0,b=Number.POSITIVE_INFINITY,O},O.attachers=u,O.use=function(t,...n){let r;if(d("use",e),null==t);else if("function"==typeof t)h(t,...n);else if("object"==typeof t)Array.isArray(t)?c(t):o(t);else throw TypeError("Expected usable value, not `"+t+"`");return r&&(l.settings=Object.assign(l.settings||{},r)),O;function o(t){c(t.plugins),t.settings&&(r=Object.assign(r||{},t.settings))}function c(t){let e=-1;if(null==t);else if(Array.isArray(t))for(;++e<t.length;)!function(t){if("function"==typeof t)h(t);else if("object"==typeof t){if(Array.isArray(t)){let[e,...n]=t;h(e,...n)}else o(t)}else throw TypeError("Expected usable value, not `"+t+"`")}(t[e]);else throw TypeError("Expected a list of plugins, not `"+t+"`")}function h(t,e){let n,r=-1;for(;++r<u.length;)if(u[r][0]===t){n=u[r];break}n?(a(n[1])&&a(e)&&(e=s(!0,n[1],e)),n[1]=e):u.push([...arguments])}},O.parse=function(t){O.freeze();let e=y(t),n=O.Parser;return(f("parse",n),h(n,"parse"))?new n(String(e),e).parse():n(String(e),e)},O.stringify=function(t,e){O.freeze();let n=y(e),r=O.Compiler;return(p("stringify",r),m(t),h(r,"compile"))?new r(t,n).compile():r(t,n)},O.run=function(t,e,r){if(m(t),O.freeze(),!r&&"function"==typeof e&&(r=e,e=void 0),!r)return new Promise(o);function o(o,s){n.run(t,y(e),function(e,n,a){n=n||t,e?s(e):o?o(n):r(null,n,a)})}o(null,r)},O.runSync=function(t,e){let n,o;return O.run(t,e,function(t,e){r(t),n=e,o=!0}),g("runSync","run",o),n},O.process=function(t,e){if(O.freeze(),f("process",O.Parser),p("process",O.Compiler),!e)return new Promise(n);function n(n,r){let s=y(t);function a(t,o){t||!o?r(t):n?n(o):e(null,o)}O.run(O.parse(s),s,(t,e,n)=>{if(!t&&e&&n){let r=O.stringify(e,n);null==r||(function(t){return"string"==typeof t||o(t)}(r)?n.value=r:n.result=r),a(t,n)}else a(t)})}n(null,e)},O.processSync=function(t){let e;O.freeze(),f("processSync",O.Parser),p("processSync",O.Compiler);let n=y(t);return O.process(n,function(t){e=!0,r(t)}),g("processSync","process",e),n},O;function O(){let e=t(),n=-1;for(;++n<u.length;)e.use(...u[n]);return e.data(s(!0,{},l)),e}})().freeze(),c={}.hasOwnProperty;function h(t,e){return"function"==typeof t&&t.prototype&&(function(t){let e;for(e in t)if(c.call(t,e))return!0;return!1}(t.prototype)||e in t.prototype)}function f(t,e){if("function"!=typeof e)throw TypeError("Cannot `"+t+"` without `Parser`")}function p(t,e){if("function"!=typeof e)throw TypeError("Cannot `"+t+"` without `Compiler`")}function d(t,e){if(e)throw Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function m(t){if(!a(t)||"string"!=typeof t.type)throw TypeError("Expected node, got `"+t+"`")}function g(t,e,n){if(!n)throw Error("`"+t+"` finished async. Use `"+e+"` instead")}function y(t){return function(t){return!!(t&&"object"==typeof t&&"message"in t&&"messages"in t)}(t)?t:new u.k(t)}},830644:function(t,e,n){"use strict";n.d(e,{k:()=>f});var r=n("377996"),o=n("395937");class s extends Error{constructor(t,e,n){let r=[null,null],s={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof e&&(n=e,e=void 0),"string"==typeof n){let t=n.indexOf(":");-1===t?r[1]=n:(r[0]=n.slice(0,t),r[1]=n.slice(t+1))}e&&("type"in e||"position"in e?e.position&&(s=e.position):"start"in e||"end"in e?s=e:("line"in e||"column"in e)&&(s.start=e)),this.name=(0,o.y)(e)||"1:1",this.message="object"==typeof t?t.message:t,this.stack="","object"==typeof t&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=s.start.line,this.column=s.start.column,this.position=s,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}s.prototype.file="",s.prototype.name="",s.prototype.reason="",s.prototype.message="",s.prototype.stack="",s.prototype.fatal=null,s.prototype.column=null,s.prototype.line=null,s.prototype.source=null,s.prototype.ruleId=null,s.prototype.position=null;let a={basename:function(t,e){let n;if(void 0!==e&&"string"!=typeof e)throw TypeError('"ext" argument must be a string');u(t);let r=0,o=-1,s=t.length;if(void 0===e||0===e.length||e.length>t.length){for(;s--;)if(47===t.charCodeAt(s)){if(n){r=s+1;break}}else o<0&&(n=!0,o=s+1);return o<0?"":t.slice(r,o)}if(e===t)return"";let a=-1,l=e.length-1;for(;s--;)if(47===t.charCodeAt(s)){if(n){r=s+1;break}}else a<0&&(n=!0,a=s+1),l>-1&&(t.charCodeAt(s)===e.charCodeAt(l--)?l<0&&(o=s):(l=-1,o=a));return r===o?o=a:o<0&&(o=t.length),t.slice(r,o)},dirname:function(t){let e;if(u(t),0===t.length)return".";let n=-1,r=t.length;for(;--r;)if(47===t.charCodeAt(r)){if(e){n=r;break}}else!e&&(e=!0);return n<0?47===t.charCodeAt(0)?"/":".":1===n&&47===t.charCodeAt(0)?"//":t.slice(0,n)},extname:function(t){let e;u(t);let n=t.length,r=-1,o=0,s=-1,a=0;for(;n--;){let u=t.charCodeAt(n);if(47===u){if(e){o=n+1;break}continue}r<0&&(e=!0,r=n+1),46===u?s<0?s=n:1!==a&&(a=1):s>-1&&(a=-1)}return s<0||r<0||0===a||1===a&&s===r-1&&s===o+1?"":t.slice(s,r)},join:function(...t){let e,n=-1;for(;++n<t.length;)u(t[n]),t[n]&&(e=void 0===e?t[n]:e+"/"+t[n]);return void 0===e?".":function(t){u(t);let e=47===t.charCodeAt(0),n=function(t,e){let n,r,o="",s=0,a=-1,u=0,l=-1;for(;++l<=t.length;){if(l<t.length)n=t.charCodeAt(l);else if(47===n)break;else n=47;if(47===n){if(a===l-1||1===u);else if(a!==l-1&&2===u){if(o.length<2||2!==s||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2)){if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",s=0):s=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),a=l,u=0;continue}}else if(o.length>0){o="",s=0,a=l,u=0;continue}}e&&(o=o.length>0?o+"/..":"..",s=2)}else o.length>0?o+="/"+t.slice(a+1,l):o=t.slice(a+1,l),s=l-a-1;a=l,u=0}else 46===n&&u>-1?u++:u=-1}return o}(t,!e);return 0===n.length&&!e&&(n="."),n.length>0&&47===t.charCodeAt(t.length-1)&&(n+="/"),e?"/"+n:n}(e)},sep:"/"};function u(t){if("string"!=typeof t)throw TypeError("Path must be a string. Received "+JSON.stringify(t))}let l=function(){return"/"};function c(t){return null!==t&&"object"==typeof t&&t.href&&t.origin}let h=["history","path","basename","stem","extname","dirname"];class f{constructor(t){let e,n;e=t?"string"==typeof t||function(t){return r(t)}(t)?{value:t}:c(t)?{path:t}:t:{},this.data={},this.messages=[],this.history=[],this.cwd=l(),this.value,this.stored,this.result,this.map;let o=-1;for(;++o<h.length;){let t=h[o];t in e&&void 0!==e[t]&&null!==e[t]&&(this[t]="history"===t?[...e[t]]:e[t])}for(n in e)!h.includes(n)&&(this[n]=e[n])}get path(){return this.history[this.history.length-1]}set path(t){c(t)&&(t=function(t){if("string"==typeof t)t=new URL(t);else if(!c(t)){let e=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if("file:"!==t.protocol){let t=TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function(t){if(""!==t.hostname){let t=TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}let e=t.pathname,n=-1;for(;++n<e.length;)if(37===e.charCodeAt(n)&&50===e.charCodeAt(n+1)){let t=e.charCodeAt(n+2);if(70===t||102===t){let t=TypeError("File URL path must not include encoded / characters");throw t.code="ERR_INVALID_FILE_URL_PATH",t}}return decodeURIComponent(e)}(t)}(t)),d(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return"string"==typeof this.path?a.dirname(this.path):void 0}set dirname(t){m(this.basename,"dirname"),this.path=a.join(t||"",this.basename)}get basename(){return"string"==typeof this.path?a.basename(this.path):void 0}set basename(t){d(t,"basename"),p(t,"basename"),this.path=a.join(this.dirname||"",t)}get extname(){return"string"==typeof this.path?a.extname(this.path):void 0}set extname(t){if(p(t,"extname"),m(this.dirname,"extname"),t){if(46!==t.charCodeAt(0))throw Error("`extname` must start with `.`");if(t.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=a.join(this.dirname,this.stem+(t||""))}get stem(){return"string"==typeof this.path?a.basename(this.path,this.extname):void 0}set stem(t){d(t,"stem"),p(t,"stem"),this.path=a.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,e,n){let r=new s(t,e,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(t,e,n){let r=this.message(t,e,n);return r.fatal=null,r}fail(t,e,n){let r=this.message(t,e,n);throw r.fatal=!0,r}}function p(t,e){if(t&&t.includes(a.sep))throw Error("`"+e+"` cannot be a path: did not expect `"+a.sep+"`")}function d(t,e){if(!t)throw Error("`"+e+"` cannot be empty")}function m(t,e){if(!t)throw Error("Setting `"+e+"` requires `path` to be set too")}},896433:function(t,e,n){"use strict";n.d(e,{YG:function(){return c},uY:function(){return o},ue:function(){return r}});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=0;u<10;u++)r[48+u]=r[96+u]=String(u);for(var u=1;u<=24;u++)r[u+111]="F"+u;for(var u=65;u<=90;u++)r[u]=String.fromCharCode(u+32),o[u]=String.fromCharCode(u);for(var l in r)!o.hasOwnProperty(l)&&(o[l]=r[l]);function c(t){var e=!(s&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||a&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?o:r)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}},494308:function(t,e,n){"use strict";let r;n.d(e,{Qc:()=>eJ,Pz:()=>eZ});let o=Symbol.for("yaml.alias"),s=Symbol.for("yaml.document"),a=Symbol.for("yaml.map"),u=Symbol.for("yaml.pair"),l=Symbol.for("yaml.scalar"),c=Symbol.for("yaml.seq"),h=Symbol.for("yaml.node.type"),f=t=>!!t&&"object"==typeof t&&t[h]===o,p=t=>!!t&&"object"==typeof t&&t[h]===s,d=t=>!!t&&"object"==typeof t&&t[h]===a,m=t=>!!t&&"object"==typeof t&&t[h]===u,g=t=>!!t&&"object"==typeof t&&t[h]===l,y=t=>!!t&&"object"==typeof t&&t[h]===c;function b(t){if(t&&"object"==typeof t)switch(t[h]){case a:case c:return!0}return!1}function O(t){if(t&&"object"==typeof t)switch(t[h]){case o:case a:case l:case c:return!0}return!1}let w=t=>(g(t)||b(t))&&!!t.anchor,x=Symbol("break visit"),D=Symbol("skip children"),k=Symbol("remove node");function S(t,e){let n=A(e);p(t)?E(null,t.contents,n,Object.freeze([t]))===k&&(t.contents=null):E(null,t,n,Object.freeze([]))}function E(t,e,n,r){let o=M(t,e,n,r);if(O(o)||m(o))return P(t,r,o),E(t,o,n,r);if("symbol"!=typeof o){if(b(e)){r=Object.freeze(r.concat(e));for(let t=0;t<e.items.length;++t){let o=E(t,e.items[t],n,r);if("number"==typeof o)t=o-1;else{if(o===x)return x;o===k&&(e.items.splice(t,1),t-=1)}}}else if(m(e)){r=Object.freeze(r.concat(e));let t=E("key",e.key,n,r);if(t===x)return x;t===k&&(e.key=null);let o=E("value",e.value,n,r);if(o===x)return x;o===k&&(e.value=null)}}return o}async function C(t,e){let n=A(e);p(t)?await T(null,t.contents,n,Object.freeze([t]))===k&&(t.contents=null):await T(null,t,n,Object.freeze([]))}async function T(t,e,n,r){let o=await M(t,e,n,r);if(O(o)||m(o))return P(t,r,o),T(t,o,n,r);if("symbol"!=typeof o){if(b(e)){r=Object.freeze(r.concat(e));for(let t=0;t<e.items.length;++t){let o=await T(t,e.items[t],n,r);if("number"==typeof o)t=o-1;else{if(o===x)return x;o===k&&(e.items.splice(t,1),t-=1)}}}else if(m(e)){r=Object.freeze(r.concat(e));let t=await T("key",e.key,n,r);if(t===x)return x;t===k&&(e.key=null);let o=await T("value",e.value,n,r);if(o===x)return x;o===k&&(e.value=null)}}return o}function A(t){return"object"==typeof t&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function M(t,e,n,r){return"function"==typeof n?n(t,e,r):d(e)?n.Map?.(t,e,r):y(e)?n.Seq?.(t,e,r):m(e)?n.Pair?.(t,e,r):g(e)?n.Scalar?.(t,e,r):f(e)?n.Alias?.(t,e,r):void 0}function P(t,e,n){let r=e[e.length-1];if(b(r))r.items[t]=n;else if(m(r))"key"===t?r.key=n:r.value=n;else if(p(r))r.contents=n;else{let t=f(r)?"alias":"scalar";throw Error(`Cannot replace node with ${t} parent`)}}S.BREAK=x,S.SKIP=D,S.REMOVE=k,C.BREAK=x,C.SKIP=D,C.REMOVE=k;let B={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},I=t=>t.replace(/[!,[\]{}]/g,t=>B[t]);class F{constructor(t,e){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},F.defaultYaml,t),this.tags=Object.assign({},F.defaultTags,e)}clone(){let t=new F(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new F(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:F.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},F.defaultTags)}return t}add(t,e){this.atNextDocument&&(this.yaml={explicit:F.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},F.defaultTags),this.atNextDocument=!1);let n=t.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(e(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[t,r]=n;return this.tags[t]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return e(0,"%YAML directive should contain exactly one part"),!1;let[t]=n;if("1.1"===t||"1.2"===t)return this.yaml.version=t,!0;{let n=/^\d+\.\d+$/.test(t);return e(6,`Unsupported YAML version ${t}`,n),!1}}default:return e(0,`Unknown directive ${r}`,!0),!1}}tagName(t,e){if("!"===t)return"!";if("!"!==t[0])return e(`Not a valid tag: ${t}`),null;if("<"===t[1]){let n=t.slice(2,-1);return"!"===n||"!!"===n?(e(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(">"!==t[t.length-1]&&e("Verbatim tags must end with a >"),n)}let[,n,r]=t.match(/^(.*!)([^!]*)$/s);!r&&e(`The ${t} tag has no suffix`);let o=this.tags[n];if(o)try{return o+decodeURIComponent(r)}catch(t){return e(String(t)),null}return"!"===n?t:(e(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[e,n]of Object.entries(this.tags))if(t.startsWith(n))return e+I(t.substring(n.length));return"!"===t[0]?t:`!<${t}>`}toString(t){let e;let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(t&&r.length>0&&O(t.contents)){let n={};S(t.contents,(t,e)=>{O(e)&&e.tag&&(n[e.tag]=!0)}),e=Object.keys(n)}else e=[];for(let[o,s]of r)("!!"!==o||"tag:yaml.org,2002:"!==s)&&(!t||e.some(t=>t.startsWith(s)))&&n.push(`%TAG ${o} ${s}`);return n.join("\n")}}function N(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){let e=JSON.stringify(t);throw Error(`Anchor must not contain whitespace or control characters: ${e}`)}return!0}function L(t){let e=new Set;return S(t,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function _(t,e){for(let n=1;;++n){let r=`${t}${n}`;if(!e.has(r))return r}}F.defaultYaml={explicit:!1,version:"1.2"},F.defaultTags={"!!":"tag:yaml.org,2002:"};function X(t,e,n,r){if(r&&"object"==typeof r){if(Array.isArray(r))for(let e=0,n=r.length;e<n;++e){let n=r[e],o=X(t,r,String(e),n);void 0===o?delete r[e]:o!==n&&(r[e]=o)}else if(r instanceof Map)for(let e of Array.from(r.keys())){let n=r.get(e),o=X(t,r,e,n);void 0===o?r.delete(e):o!==n&&r.set(e,o)}else if(r instanceof Set)for(let e of Array.from(r)){let n=X(t,r,e,e);void 0===n?r.delete(e):n!==e&&(r.delete(e),r.add(n))}else for(let[e,n]of Object.entries(r)){let o=X(t,r,e,n);void 0===o?delete r[e]:o!==n&&(r[e]=o)}}return t.call(e,n,r)}function R(t,e,n){if(Array.isArray(t))return t.map((t,e)=>R(t,String(e),n));if(t&&"function"==typeof t.toJSON){if(!n||!w(t))return t.toJSON(e,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(t,r),n.onCreate=t=>{r.res=t,delete n.onCreate};let o=t.toJSON(e,n);return n.onCreate&&n.onCreate(o),o}return"bigint"!=typeof t||n?.keep?t:Number(t)}class j{constructor(t){Object.defineProperty(this,h,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:e,maxAliasCount:n,onAnchor:r,reviver:o}={}){if(!p(t))throw TypeError("A document argument is required");let s={anchors:new Map,doc:t,keep:!0,mapAsMap:!0===e,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},a=R(this,"",s);if("function"==typeof r)for(let{count:t,res:e}of s.anchors.values())r(e,t);return"function"==typeof o?X(o,{"":a},"",a):a}}class $ extends j{constructor(t){super(o),this.source=t,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(t,e){let n,r;e?.aliasResolveCache?n=e.aliasResolveCache:(n=[],S(t,{Node:(t,e)=>{(f(e)||w(e))&&n.push(e)}}),e&&(e.aliasResolveCache=n));for(let t of n){if(t===this)break;t.anchor===this.source&&(r=t)}return r}toJSON(t,e){if(!e)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:o}=e,s=this.resolve(r,e);if(!s)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let a=n.get(s);if(!a&&(R(s,null,e),a=n.get(s)),!a||void 0===a.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=function t(e,n,r){if(f(n)){let t=n.resolve(e),o=r&&t&&r.get(t);return o?o.count*o.aliasCount:0}if(b(n)){let o=0;for(let s of n.items){let n=t(e,s,r);n>o&&(o=n)}return o}if(m(n)){let o=t(e,n.key,r);return Math.max(o,t(e,n.value,r))}return 1}(r,s,n)),a.count*a.aliasCount>o))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return a.res}toString(t,e,n){let r=`*${this.source}`;if(t){if(N(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(t.implicitKey)return`${r} `}return r}}let V=t=>!t||"function"!=typeof t&&"object"!=typeof t;class H extends j{constructor(t){super(l),this.value=t}toJSON(t,e){return e?.keep?this.value:R(this.value,t,e)}toString(){return String(this.value)}}H.BLOCK_FOLDED="BLOCK_FOLDED",H.BLOCK_LITERAL="BLOCK_LITERAL",H.PLAIN="PLAIN",H.QUOTE_DOUBLE="QUOTE_DOUBLE",H.QUOTE_SINGLE="QUOTE_SINGLE";function W(t,e,n){let r;if(p(t)&&(t=t.contents),O(t))return t;if(m(t)){let e=n.schema[a].createNode?.(n.schema,null,n);return e.items.push(t),e}(t instanceof String||t instanceof Number||t instanceof Boolean||"undefined"!=typeof BigInt&&t instanceof BigInt)&&(t=t.valueOf());let{aliasDuplicateObjects:o,onAnchor:s,onTagObj:u,schema:l,sourceObjects:h}=n;if(o&&t&&"object"==typeof t){if(r=h.get(t))return r.anchor??(r.anchor=s(t)),new $(r.anchor);r={anchor:null,node:null},h.set(t,r)}e?.startsWith("!!")&&(e="tag:yaml.org,2002:"+e.slice(2));let f=function(t,e,n){if(e){let t=n.filter(t=>t.tag===e),r=t.find(t=>!t.format)??t[0];if(!r)throw Error(`Tag ${e} not found`);return r}return n.find(e=>e.identify?.(t)&&!e.format)}(t,e,l.tags);if(!f){if(t&&"function"==typeof t.toJSON&&(t=t.toJSON()),!t||"object"!=typeof t){let e=new H(t);return r&&(r.node=e),e}f=t instanceof Map?l[a]:Symbol.iterator in Object(t)?l[c]:l[a]}u&&(u(f),delete n.onTagObj);let d=f?.createNode?f.createNode(n.schema,t,n):"function"==typeof f?.nodeClass?.from?f.nodeClass.from(n.schema,t,n):new H(t);return e?d.tag=e:!f.default&&(d.tag=f.tag),r&&(r.node=d),d}function z(t,e,n){let r=n;for(let t=e.length-1;t>=0;--t){let n=e[t];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let t=[];t[n]=r,r=t}else r=new Map([[n,r]])}return W(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}let q=t=>null==t||"object"==typeof t&&!!t[Symbol.iterator]().next().done;class U extends j{constructor(t,e){super(t),Object.defineProperty(this,"schema",{value:e,configurable:!0,enumerable:!1,writable:!0})}clone(t){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(e.schema=t),e.items=e.items.map(e=>O(e)||m(e)?e.clone(t):e),this.range&&(e.range=this.range.slice()),e}addIn(t,e){if(q(t))this.add(e);else{let[n,...r]=t,o=this.get(n,!0);if(b(o))o.addIn(r,e);else if(void 0===o&&this.schema)this.set(n,z(this.schema,r,e));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(t){let[e,...n]=t;if(0===n.length)return this.delete(e);let r=this.get(e,!0);if(b(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn(t,e){let[n,...r]=t,o=this.get(n,!0);return 0===r.length?!e&&g(o)?o.value:o:b(o)?o.getIn(r,e):void 0}hasAllNullValues(t){return this.items.every(e=>{if(!m(e))return!1;let n=e.value;return null==n||t&&g(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){let[e,...n]=t;if(0===n.length)return this.has(e);let r=this.get(e,!0);return!!b(r)&&r.hasIn(n)}setIn(t,e){let[n,...r]=t;if(0===r.length)this.set(n,e);else{let t=this.get(n,!0);if(b(t))t.setIn(r,e);else if(void 0===t&&this.schema)this.set(n,z(this.schema,r,e));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let Y=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function G(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}let Q=(t,e,n)=>t.endsWith("\n")?G(n,e):n.includes("\n")?"\n"+G(n,e):(t.endsWith(" ")?"":" ")+n,K="flow",J="block",Z="quoted";function tt(t,e,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:a,onOverflow:u}={}){let l,c,h;if(!o||o<0)return t;o<s&&(s=0);let f=Math.max(1+s,1+o-e.length);if(t.length<=f)return t;let p=[],d={},m=o-e.length;"number"==typeof r&&(r>o-Math.max(2,s)?p.push(0):m=o-r);let g=!1,y=-1,b=-1,O=-1;n===J&&-1!==(y=te(t,y,e.length))&&(m=y+f);for(;h=t[y+=1];){if(n===Z&&"\\"===h){switch(b=y,t[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}O=y}if("\n"===h)n===J&&(y=te(t,y,e.length)),m=y+e.length+f,l=void 0;else{if(" "===h&&c&&" "!==c&&"\n"!==c&&" "!==c){let e=t[y+1];e&&" "!==e&&"\n"!==e&&" "!==e&&(l=y)}if(y>=m){if(l)p.push(l),m=l+f,l=void 0;else if(n===Z){for(;" "===c||" "===c;)c=h,h=t[y+=1],g=!0;let e=y>O+1?y-2:b-1;if(d[e])return t;p.push(e),d[e]=!0,m=e+f,l=void 0}else g=!0}}c=h}if(g&&u&&u(),0===p.length)return t;a&&a();let w=t.slice(0,p[0]);for(let r=0;r<p.length;++r){let o=p[r],s=p[r+1]||t.length;0===o?w=`
${e}${t.slice(0,s)}`:(n===Z&&d[o]&&(w+=`${t[o]}\\`),w+=`
${e}${t.slice(o+1,s)}`)}return w}function te(t,e,n){let r=e,o=e+1,s=t[o];for(;" "===s||" "===s;)if(e<o+n)s=t[++e];else{do s=t[++e];while(s&&"\n"!==s);r=e,s=t[o=e+1]}return r}let tn=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),tr=t=>/^(%|---|\.\.\.)/m.test(t);function ti(t,e){let n=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=e,o=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(tr(t)?" ":""),a="",u=0;for(let t=0,e=n[t];e;e=n[++t])if(" "===e&&"\\"===n[t+1]&&"n"===n[t+2]&&(a+=n.slice(u,t)+"\\ ",t+=1,u=t,e="\\"),"\\"===e)switch(n[t+1]){case"u":{a+=n.slice(u,t);let e=n.substr(t+2,4);switch(e){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===e.substr(0,2)?a+="\\x"+e.substr(2):a+=n.substr(t,6)}t+=5,u=t+1}break;case"n":if(r||'"'===n[t+2]||n.length<o)t+=1;else{for(a+=n.slice(u,t)+"\n\n";"\\"===n[t+2]&&"n"===n[t+3]&&'"'!==n[t+4];)a+="\n",t+=2;a+=s," "===n[t+2]&&(a+="\\"),t+=1,u=t+1}break;default:t+=1}return a=u?a+n.slice(u):n,r?a:tt(a,s,Z,tn(e,!1))}function to(t,e){if(!1===e.options.singleQuote||e.implicitKey&&t.includes("\n")||/[ \t]\n|\n[ \t]/.test(t))return ti(t,e);let n=e.indent||(tr(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return e.implicitKey?r:tt(r,n,K,tn(e,!1))}function ts(t,e){let n;let{singleQuote:r}=e.options;if(!1===r)n=ti;else{let e=t.includes('"'),o=t.includes("'");n=e&&!o?to:o&&!e?ti:r?to:ti}return n(t,e)}try{r=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{r=/\n+(?!\n|$)/g}function ta({comment:t,type:e,value:n},o,s,a){let u,l,c;let{blockQuote:h,commentString:f,lineWidth:p}=o.options;if(!h||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return ts(n,o);let d=o.indent||(o.forceBlockIndent||tr(n)?" ":""),m="literal"===h||"folded"!==h&&e!==H.BLOCK_FOLDED&&(e===H.BLOCK_LITERAL||!function(t,e,n){if(!e||e<0)return!1;let r=e-n,o=t.length;if(o<=r)return!1;for(let e=0,n=0;e<o;++e)if("\n"===t[e]){if(e-n>r)return!0;if(o-(n=e+1)<=r)return!1}return!0}(n,p,d.length));if(!n)return m?"|\n":">\n";for(l=n.length;l>0;--l){let t=n[l-1];if("\n"!==t&&" "!==t&&" "!==t)break}let g=n.substring(l),y=g.indexOf("\n");-1===y?u="-":n===g||y!==g.length-1?(u="+",a&&a()):u="",g&&(n=n.slice(0,-g.length),"\n"===g[g.length-1]&&(g=g.slice(0,-1)),g=g.replace(r,`$&${d}`));let b=!1,O=-1;for(c=0;c<n.length;++c){let t=n[c];if(" "===t)b=!0;else if("\n"===t)O=c;else break}let w=n.substring(0,O<c?O+1:c);w&&(n=n.substring(w.length),w=w.replace(/\n+/g,`$&${d}`));let x=d?"2":"1",D=(b?x:"")+u;if(t&&(D+=" "+f(t.replace(/ ?[\r\n]+/g," ")),s&&s()),!m){let t=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`),r=!1,s=tn(o,!0);"folded"!==h&&e!==H.BLOCK_FOLDED&&(s.onOverflow=()=>{r=!0});let a=tt(`${w}${t}${g}`,d,J,s);if(!r)return`>${D}
${d}${a}`}return n=n.replace(/\n+/g,`$&${d}`),`|${D}
${d}${w}${n}${g}`}function tu(t,e,n,r){let{implicitKey:o,inFlow:s}=e,a="string"==typeof t.value?t:Object.assign({},t,{value:String(t.value)}),{type:u}=t;u!==H.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(u=H.QUOTE_DOUBLE);let l=t=>{switch(t){case H.BLOCK_FOLDED:case H.BLOCK_LITERAL:return o||s?ts(a.value,e):ta(a,e,n,r);case H.QUOTE_DOUBLE:return ti(a.value,e);case H.QUOTE_SINGLE:return to(a.value,e);case H.PLAIN:return function(t,e,n,r){let{type:o,value:s}=t,{actualString:a,implicitKey:u,indent:l,indentStep:c,inFlow:h}=e;if(u&&s.includes("\n")||h&&/[[\]{},]/.test(s))return ts(s,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return u||h||!s.includes("\n")?ts(s,e):ta(t,e,n,r);if(!u&&!h&&o!==H.PLAIN&&s.includes("\n"))return ta(t,e,n,r);if(tr(s)){if(""===l)return e.forceBlockIndent=!0,ta(t,e,n,r);if(u&&l===c)return ts(s,e)}let f=s.replace(/\n+/g,`$&
${l}`);if(a){let t=t=>t.default&&"tag:yaml.org,2002:str"!==t.tag&&t.test?.test(f),{compat:n,tags:r}=e.doc.schema;if(r.some(t)||n?.some(t))return ts(s,e)}return u?f:tt(f,l,K,tn(e,!1))}(a,e,n,r);default:return null}},c=l(u);if(null===c){let{defaultKeyType:t,defaultStringType:n}=e.options,r=o&&t||n;if(null===(c=l(r)))throw Error(`Unsupported default string type ${r}`)}return c}function tl(t,e){let n;let r=Object.assign({blockQuote:!0,commentString:Y,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function tc(t,e,n,r){let o;if(m(t))return t.toString(e,n,r);if(f(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let s=O(t)?t:e.doc.createNode(t,{onTagObj:t=>o=t});o??(o=function(t,e){let n,r;if(e.tag){let n=t.filter(t=>t.tag===e.tag);if(n.length>0)return n.find(t=>t.format===e.format)??n[0]}if(g(e)){n=e.value;let o=t.filter(t=>t.identify?.(n));if(o.length>1){let t=o.filter(t=>t.test);t.length>0&&(o=t)}r=o.find(t=>t.format===e.format)??o.find(t=>!t.format)}else n=e,r=t.find(t=>t.nodeClass&&n instanceof t.nodeClass);if(!r){let t=n?.constructor?.name??(null===n?"null":typeof n);throw Error(`Tag not resolved for ${t} value`)}return r}(e.doc.schema.tags,s));let a=function(t,e,{anchors:n,doc:r}){if(!r.directives)return"";let o=[],s=(g(t)||b(t))&&t.anchor;s&&N(s)&&(n.add(s),o.push(`&${s}`));let a=t.tag??(e.default?null:e.tag);return a&&o.push(r.directives.tagString(a)),o.join(" ")}(s,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart??0)+a.length+1);let u="function"==typeof o.stringify?o.stringify(s,e,n,r):g(s)?tu(s,e,n,r):s.toString(e,n,r);return a?g(s)||"{"===u[0]||"["===u[0]?`${a} ${u}`:`${a}
${e.indent}${u}`:u}function th(t,e){("debug"===t||"warn"===t)&&console.warn(e)}let tf={identify:t=>"<<"===t||"symbol"==typeof t&&"<<"===t.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new H(Symbol("<<")),{addToJSMap:td}),stringify:()=>"<<"},tp=(t,e)=>(tf.identify(e)||g(e)&&(!e.type||e.type===H.PLAIN)&&tf.identify(e.value))&&t?.doc.schema.tags.some(t=>t.tag===tf.tag&&t.default);function td(t,e,n){if(y(n=t&&f(n)?n.resolve(t.doc):n))for(let r of n.items)tm(t,e,r);else if(Array.isArray(n))for(let r of n)tm(t,e,r);else tm(t,e,n)}function tm(t,e,n){let r=t&&f(n)?n.resolve(t.doc):n;if(!d(r))throw Error("Merge sources must be maps or map aliases");for(let[n,o]of r.toJSON(null,t,Map))e instanceof Map?!e.has(n)&&e.set(n,o):e instanceof Set?e.add(n):!Object.prototype.hasOwnProperty.call(e,n)&&Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function tg(t,e,{key:n,value:r}){if(O(n)&&n.addToJSMap)n.addToJSMap(t,e,r);else if(tp(t,n))td(t,e,r);else{let o=R(n,"",t);if(e instanceof Map)e.set(o,R(r,o,t));else if(e instanceof Set)e.add(o);else{let s=function(t,e,n){if(null===e)return"";if("object"!=typeof e)return String(e);if(O(t)&&n?.doc){let e=tl(n.doc,{});for(let t of(e.anchors=new Set,n.anchors.keys()))e.anchors.add(t.anchor);e.inFlow=!0,e.inStringifyKey=!0;let r=t.toString(e);if(!n.mapKeyWarned){let t=JSON.stringify(r);t.length>40&&(t=t.substring(0,36)+'..."'),th(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${t}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(e)}(n,o,t),a=R(r,s,t);s in e?Object.defineProperty(e,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):e[s]=a}}return e}function ty(t,e,n){let r=W(t,void 0,n);return new tv(r,W(e,void 0,n))}class tv{constructor(t,e=null){Object.defineProperty(this,h,{value:u}),this.key=t,this.value=e}clone(t){let{key:e,value:n}=this;return O(e)&&(e=e.clone(t)),O(n)&&(n=n.clone(t)),new tv(e,n)}toJSON(t,e){let n=e?.mapAsMap?new Map:{};return tg(e,n,this)}toString(t,e,n){return t?.doc?function({key:t,value:e},n,r,o){let s,a,u;let{allNullValues:l,doc:c,indent:h,indentStep:f,options:{commentString:p,indentSeq:d,simpleKeys:m}}=n,w=O(t)&&t.comment||null;if(m){if(w)throw Error("With simple keys, key nodes cannot have comments");if(b(t)||!O(t)&&"object"==typeof t)throw Error("With simple keys, collection cannot be used as a key value")}let x=!m&&(!t||w&&null==e&&!n.inFlow||b(t)||(g(t)?t.type===H.BLOCK_FOLDED||t.type===H.BLOCK_LITERAL:"object"==typeof t));n=Object.assign({},n,{allNullValues:!1,implicitKey:!x&&(m||!l),indent:h+f});let D=!1,k=!1,S=tc(t,n,()=>D=!0,()=>k=!0);if(!x&&!n.inFlow&&S.length>1024){if(m)throw Error("With simple keys, single line scalar must not span more than 1024 characters");x=!0}if(n.inFlow){if(l||null==e)return D&&r&&r(),""===S?"?":x?`? ${S}`:S}else if(l&&!m||null==e&&x)return S=`? ${S}`,w&&!D?S+=Q(S,n.indent,p(w)):k&&o&&o(),S;D&&(w=null),x?(w&&(S+=Q(S,n.indent,p(w))),S=`? ${S}
${h}:`):(S=`${S}:`,w&&(S+=Q(S,n.indent,p(w)))),O(e)?(s=!!e.spaceBefore,a=e.commentBefore,u=e.comment):(s=!1,a=null,u=null,e&&"object"==typeof e&&(e=c.createNode(e))),n.implicitKey=!1,!x&&!w&&g(e)&&(n.indentAtStart=S.length+1),k=!1,!d&&f.length>=2&&!n.inFlow&&!x&&y(e)&&!e.flow&&!e.tag&&!e.anchor&&(n.indent=n.indent.substring(2));let E=!1,C=tc(e,n,()=>E=!0,()=>k=!0),T=" ";if(w||s||a){if(T=s?"\n":"",a){let t=p(a);T+=`
${G(t,n.indent)}`}""!==C||n.inFlow?T+=`
${n.indent}`:"\n"===T&&(T="\n\n")}else if(!x&&b(e)){let t=C[0],r=C.indexOf("\n"),o=-1!==r,s=n.inFlow??e.flow??0===e.items.length;if(o||!s){let e=!1;if(o&&("&"===t||"!"===t)){let n=C.indexOf(" ");"&"===t&&-1!==n&&n<r&&"!"===C[n+1]&&(n=C.indexOf(" ",n+1)),(-1===n||r<n)&&(e=!0)}!e&&(T=`
${n.indent}`)}}else(""===C||"\n"===C[0])&&(T="");return S+=T+C,n.inFlow?E&&r&&r():u&&!E?S+=Q(S,n.indent,p(u)):k&&o&&o(),S}(this,t,e,n):JSON.stringify(this)}}function tb(t,e,n){let r=e.inFlow??t.flow;return(r?tw:tO)(t,e,n)}function tO({comment:t,items:e},n,{blockItemPrefix:r,flowChars:o,itemIndent:s,onChompKeep:a,onComment:u}){let l;let{indent:c,options:{commentString:h}}=n,f=Object.assign({},n,{indent:s,type:null}),p=!1,d=[];for(let t=0;t<e.length;++t){let o=e[t],a=null;if(O(o))!p&&o.spaceBefore&&d.push(""),tx(n,d,o.commentBefore,p),o.comment&&(a=o.comment);else if(m(o)){let t=O(o.key)?o.key:null;t&&(!p&&t.spaceBefore&&d.push(""),tx(n,d,t.commentBefore,p))}p=!1;let u=tc(o,f,()=>a=null,()=>p=!0);a&&(u+=Q(u,s,h(a))),p&&a&&(p=!1),d.push(r+u)}if(0===d.length)l=o.start+o.end;else{l=d[0];for(let t=1;t<d.length;++t){let e=d[t];l+=e?`
${c}${e}`:"\n"}}return t?(l+="\n"+G(h(t),c),u&&u()):p&&a&&a(),l}function tw({items:t},e,{flowChars:n,itemIndent:r}){let{indent:o,indentStep:s,flowCollectionPadding:a,options:{commentString:u}}=e,l=Object.assign({},e,{indent:r+=s,inFlow:!0,type:null}),c=!1,h=0,f=[];for(let n=0;n<t.length;++n){let o=t[n],s=null;if(O(o))o.spaceBefore&&f.push(""),tx(e,f,o.commentBefore,!1),o.comment&&(s=o.comment);else if(m(o)){let t=O(o.key)?o.key:null;t&&(t.spaceBefore&&f.push(""),tx(e,f,t.commentBefore,!1),t.comment&&(c=!0));let n=O(o.value)?o.value:null;n?(n.comment&&(s=n.comment),n.commentBefore&&(c=!0)):null==o.value&&t?.comment&&(s=t.comment)}s&&(c=!0);let a=tc(o,l,()=>s=null);n<t.length-1&&(a+=","),s&&(a+=Q(a,r,u(s))),!c&&(f.length>h||a.includes("\n"))&&(c=!0),f.push(a),h=f.length}let{start:p,end:d}=n;if(0===f.length)return p+d;if(!c){let t=f.reduce((t,e)=>t+e.length+2,2);c=e.options.lineWidth>0&&t>e.options.lineWidth}if(!c)return`${p}${a}${f.join(" ")}${a}${d}`;{let t=p;for(let e of f)t+=e?`
${s}${o}${e}`:"\n";return`${t}
${o}${d}`}}function tx({indent:t,options:{commentString:e}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){let o=G(e(r),t);n.push(o.trimStart())}}function tD(t,e){let n=g(e)?e.value:e;for(let r of t)if(m(r)&&(r.key===e||r.key===n||g(r.key)&&r.key.value===n))return r}class tk extends U{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(a,t),this.items=[]}static from(t,e,n){let{keepUndefined:r,replacer:o}=n,s=new this(t),a=(t,a)=>{if("function"==typeof o)a=o.call(e,t,a);else if(Array.isArray(o)&&!o.includes(t))return;(void 0!==a||r)&&s.items.push(ty(t,a,n))};if(e instanceof Map)for(let[t,n]of e)a(t,n);else if(e&&"object"==typeof e)for(let t of Object.keys(e))a(t,e[t]);return"function"==typeof t.sortMapEntries&&s.items.sort(t.sortMapEntries),s}add(t,e){let n;n=m(t)?t:t&&"object"==typeof t&&"key"in t?new tv(t.key,t.value):new tv(t,t?.value);let r=tD(this.items,n.key),o=this.schema?.sortMapEntries;if(r){if(!e)throw Error(`Key ${n.key} already set`);g(r.value)&&V(n.value)?r.value.value=n.value:r.value=n.value}else if(o){let t=this.items.findIndex(t=>0>o(n,t));-1===t?this.items.push(n):this.items.splice(t,0,n)}else this.items.push(n)}delete(t){let e=tD(this.items,t);return!!e&&this.items.splice(this.items.indexOf(e),1).length>0}get(t,e){let n=tD(this.items,t),r=n?.value;return(!e&&g(r)?r.value:r)??void 0}has(t){return!!tD(this.items,t)}set(t,e){this.add(new tv(t,e),!0)}toJSON(t,e,n){let r=n?new n:e?.mapAsMap?new Map:{};for(let t of(e?.onCreate&&e.onCreate(r),this.items))tg(e,r,t);return r}toString(t,e,n){if(!t)return JSON.stringify(this);for(let t of this.items)if(!m(t))throw Error(`Map items must all be pairs; found ${JSON.stringify(t)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),tb(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:e})}}let tS={collection:"map",default:!0,nodeClass:tk,tag:"tag:yaml.org,2002:map",resolve:(t,e)=>(!d(t)&&e("Expected a mapping for this tag"),t),createNode:(t,e,n)=>tk.from(t,e,n)};class tE extends U{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(c,t),this.items=[]}add(t){this.items.push(t)}delete(t){let e=tC(t);return"number"==typeof e&&this.items.splice(e,1).length>0}get(t,e){let n=tC(t);if("number"!=typeof n)return;let r=this.items[n];return!e&&g(r)?r.value:r}has(t){let e=tC(t);return"number"==typeof e&&e<this.items.length}set(t,e){let n=tC(t);if("number"!=typeof n)throw Error(`Expected a valid index, not ${t}.`);let r=this.items[n];g(r)&&V(e)?r.value=e:this.items[n]=e}toJSON(t,e){let n=[];e?.onCreate&&e.onCreate(n);let r=0;for(let t of this.items)n.push(R(t,String(r++),e));return n}toString(t,e,n){return t?tb(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:n,onComment:e}):JSON.stringify(this)}static from(t,e,n){let{replacer:r}=n,o=new this(t);if(e&&Symbol.iterator in Object(e)){let t=0;for(let s of e){if("function"==typeof r){let n=e instanceof Set?s:String(t++);s=r.call(e,n,s)}o.items.push(W(s,void 0,n))}}return o}}function tC(t){let e=g(t)?t.value:t;return e&&"string"==typeof e&&(e=Number(e)),"number"==typeof e&&Number.isInteger(e)&&e>=0?e:null}let tT={collection:"seq",default:!0,nodeClass:tE,tag:"tag:yaml.org,2002:seq",resolve:(t,e)=>(!y(t)&&e("Expected a sequence for this tag"),t),createNode:(t,e,n)=>tE.from(t,e,n)},tA={identify:t=>"string"==typeof t,default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:(t,e,n,r)=>tu(t,e=Object.assign({actualString:!0},e),n,r)},tM={identify:t=>null==t,createNode:()=>new H(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new H(null),stringify:({source:t},e)=>"string"==typeof t&&tM.test.test(t)?t:e.options.nullStr},tP={identify:t=>"boolean"==typeof t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new H("t"===t[0]||"T"===t[0]),stringify:({source:t,value:e},n)=>t&&tP.test.test(t)&&e===("t"===t[0]||"T"===t[0])?t:e?n.options.trueStr:n.options.falseStr};function tB({format:t,minFractionDigits:e,tag:n,value:r}){if("bigint"==typeof r)return String(r);let o="number"==typeof r?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let t=s.indexOf(".");t<0&&(t=s.length,s+=".");let n=e-(s.length-t-1);for(;n-- >0;)s+="0"}return s}let tI={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>"nan"===t.slice(-3).toLowerCase()?NaN:"-"===t[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tB},tF={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():tB(t)}},tN={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){let e=new H(parseFloat(t)),n=t.indexOf(".");return -1!==n&&"0"===t[t.length-1]&&(e.minFractionDigits=t.length-n-1),e},stringify:tB},tL=t=>"bigint"==typeof t||Number.isInteger(t),t_=(t,e,n,{intAsBigInt:r})=>r?BigInt(t):parseInt(t.substring(e),n);function tX(t,e,n){let{value:r}=t;return tL(r)&&r>=0?n+r.toString(e):tB(t)}let tR={identify:t=>tL(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>t_(t,2,8,n),stringify:t=>tX(t,8,"0o")},tj={identify:tL,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>t_(t,0,10,n),stringify:tB},t$={identify:t=>tL(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>t_(t,2,16,n),stringify:t=>tX(t,16,"0x")},tV=[tS,tT,tA,tM,tP,tR,tj,t$,tI,tF,tN];function tH(t){return"bigint"==typeof t||Number.isInteger(t)}let tW=({value:t})=>JSON.stringify(t),tz=[{identify:t=>"string"==typeof t,default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:tW},{identify:t=>null==t,createNode:()=>new H(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:tW},{identify:t=>"boolean"==typeof t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>"true"===t,stringify:tW},{identify:tH,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>tH(t)?t.toString():JSON.stringify(t)},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:tW}],tq=[tS,tT].concat(tz,{default:!0,tag:"",test:/^/,resolve:(t,e)=>(e(`Unresolved plain scalar ${JSON.stringify(t)}`),t)}),tU={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if("function"!=typeof atob)return e("This environment does not support reading binary tags; either Buffer or atob is required"),t;{let e=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(e.length);for(let t=0;t<e.length;++t)n[t]=e.charCodeAt(t);return n}},stringify({comment:t,type:e,value:n},r,o,s){let a;if(!n)return"";if("function"==typeof btoa){let t="";for(let e=0;e<n.length;++e)t+=String.fromCharCode(n[e]);a=btoa(t)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=H.BLOCK_LITERAL),e!==H.QUOTE_DOUBLE){let t=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(a.length/t),o=Array(n);for(let e=0,r=0;e<n;++e,r+=t)o[e]=a.substr(r,t);a=o.join(e===H.BLOCK_LITERAL?"\n":" ")}return tu({comment:t,type:e,value:a},r,o,s)}};function tY(t,e){if(y(t))for(let n=0;n<t.items.length;++n){let r=t.items[n];if(!m(r)){if(d(r)){r.items.length>1&&e("Each pair must have its own sequence indicator");let t=r.items[0]||new tv(new H(null));if(r.commentBefore&&(t.key.commentBefore=t.key.commentBefore?`${r.commentBefore}
${t.key.commentBefore}`:r.commentBefore),r.comment){let e=t.value??t.key;e.comment=e.comment?`${r.comment}
${e.comment}`:r.comment}r=t}t.items[n]=m(r)?r:new tv(r)}}else e("Expected a sequence for this tag");return t}function tG(t,e,n){let{replacer:r}=n,o=new tE(t);o.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let t of e){let a,u;if("function"==typeof r&&(t=r.call(e,String(s++),t)),Array.isArray(t)){if(2===t.length)a=t[0],u=t[1];else throw TypeError(`Expected [key, value] tuple: ${t}`)}else if(t&&t instanceof Object){let e=Object.keys(t);if(1===e.length)u=t[a=e[0]];else throw TypeError(`Expected tuple with one key, not ${e.length} keys`)}else a=t;o.items.push(ty(a,u,n))}return o}let tQ={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:tY,createNode:tG};class tK extends tE{constructor(){super(),this.add=tk.prototype.add.bind(this),this.delete=tk.prototype.delete.bind(this),this.get=tk.prototype.get.bind(this),this.has=tk.prototype.has.bind(this),this.set=tk.prototype.set.bind(this),this.tag=tK.tag}toJSON(t,e){if(!e)return super.toJSON(t);let n=new Map;for(let t of(e?.onCreate&&e.onCreate(n),this.items)){let r,o;if(m(t)?(r=R(t.key,"",e),o=R(t.value,r,e)):r=R(t,"",e),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(t,e,n){let r=tG(t,e,n),o=new this;return o.items=r.items,o}}tK.tag="tag:yaml.org,2002:omap";let tJ={collection:"seq",identify:t=>t instanceof Map,nodeClass:tK,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){let n=tY(t,e),r=[];for(let{key:t}of n.items)g(t)&&(r.includes(t.value)?e(`Ordered maps must not include duplicate keys: ${t.value}`):r.push(t.value));return Object.assign(new tK,n)},createNode:(t,e,n)=>tK.from(t,e,n)};function tZ({value:t,source:e},n){let r=t?t0:t1;return e&&r.test.test(e)?e:t?n.options.trueStr:n.options.falseStr}let t0={identify:t=>!0===t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new H(!0),stringify:tZ},t1={identify:t=>!1===t,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new H(!1),stringify:tZ},t2=t=>"bigint"==typeof t||Number.isInteger(t);function t3(t,e,n,{intAsBigInt:r}){let o=t[0];if(("-"===o||"+"===o)&&(e+=1),t=t.substring(e).replace(/_/g,""),r){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`}let e=BigInt(t);return"-"===o?BigInt(-1)*e:e}let s=parseInt(t,n);return"-"===o?-1*s:s}function t5(t,e,n){let{value:r}=t;if(t2(r)){let t=r.toString(e);return r<0?"-"+n+t.substr(1):n+t}return tB(t)}class t4 extends tk{constructor(t){super(t),this.tag=t4.tag}add(t){let e;e=m(t)?t:t&&"object"==typeof t&&"key"in t&&"value"in t&&null===t.value?new tv(t.key,null):new tv(t,null),!tD(this.items,e.key)&&this.items.push(e)}get(t,e){let n=tD(this.items,t);return!e&&m(n)?g(n.key)?n.key.value:n.key:n}set(t,e){if("boolean"!=typeof e)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof e}`);let n=tD(this.items,t);n&&!e?this.items.splice(this.items.indexOf(n),1):!n&&e&&this.items.push(new tv(t))}toJSON(t,e){return super.toJSON(t,e,Set)}toString(t,e,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),e,n);throw Error("Set items must all have null values")}static from(t,e,n){let{replacer:r}=n,o=new this(t);if(e&&Symbol.iterator in Object(e))for(let t of e)"function"==typeof r&&(t=r.call(e,t,t)),o.items.push(ty(t,null,n));return o}}t4.tag="tag:yaml.org,2002:set";let t9={collection:"map",identify:t=>t instanceof Set,nodeClass:t4,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>t4.from(t,e,n),resolve(t,e){if(d(t)){if(t.hasAllNullValues(!0))return Object.assign(new t4,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function t8(t,e){let n=t[0],r="-"===n||"+"===n?t.substring(1):t,o=t=>e?BigInt(t):Number(t),s=r.replace(/_/g,"").split(":").reduce((t,e)=>t*o(60)+o(e),o(0));return"-"===n?o(-1)*s:s}function t6(t){let{value:e}=t,n=t=>t;if("bigint"==typeof e)n=t=>BigInt(t);else if(isNaN(e)||!isFinite(e))return tB(t);let r="";e<0&&(r="-",e*=n(-1));let o=n(60),s=[e%o];return e<60?s.unshift(0):(e=(e-s[0])/o,s.unshift(e%o),e>=60&&(e=(e-s[0])/o,s.unshift(e))),r+s.map(t=>String(t).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let t7={identify:t=>"bigint"==typeof t||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>t8(t,n),stringify:t6},et={identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>t8(t,!1),stringify:t6},ee={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){let e=t.match(ee.test);if(!e)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,o,s,a,u]=e.map(Number),l=Date.UTC(n,r-1,o,s||0,a||0,u||0,e[7]?Number((e[7]+"00").substr(1,3)):0),c=e[8];if(c&&"Z"!==c){let t=t8(c,!1);30>Math.abs(t)&&(t*=60),l-=6e4*t}return new Date(l)},stringify:({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},en=[tS,tT,tA,tM,t0,t1,{identify:t2,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>t3(t,2,2,n),stringify:t=>t5(t,2,"0b")},{identify:t2,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>t3(t,1,8,n),stringify:t=>t5(t,8,"0")},{identify:t2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>t3(t,0,10,n),stringify:tB},{identify:t2,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>t3(t,2,16,n),stringify:t=>t5(t,16,"0x")},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>"nan"===t.slice(-3).toLowerCase()?NaN:"-"===t[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tB},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():tB(t)}},{identify:t=>"number"==typeof t,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){let e=new H(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(-1!==n){let r=t.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(e.minFractionDigits=r.length)}return e},stringify:tB},tU,tf,tJ,tQ,t9,t7,et,ee],er=new Map([["core",tV],["failsafe",[tS,tT,tA]],["json",tq],["yaml11",en],["yaml-1.1",en]]),ei={binary:tU,bool:tP,float:tN,floatExp:tF,floatNaN:tI,floatTime:et,int:tj,intHex:t$,intOct:tR,intTime:t7,map:tS,merge:tf,null:tM,omap:tJ,pairs:tQ,seq:tT,set:t9,timestamp:ee},eo={"tag:yaml.org,2002:binary":tU,"tag:yaml.org,2002:merge":tf,"tag:yaml.org,2002:omap":tJ,"tag:yaml.org,2002:pairs":tQ,"tag:yaml.org,2002:set":t9,"tag:yaml.org,2002:timestamp":ee};function es(t,e,n){let r=er.get(e);if(r&&!t)return n&&!r.includes(tf)?r.concat(tf):r.slice();let o=r;if(!o){if(Array.isArray(t))o=[];else{let t=Array.from(er.keys()).filter(t=>"yaml11"!==t).map(t=>JSON.stringify(t)).join(", ");throw Error(`Unknown schema "${e}"; use one of ${t} or define customTags array`)}}if(Array.isArray(t))for(let e of t)o=o.concat(e);else"function"==typeof t&&(o=t(o.slice()));return n&&(o=o.concat(tf)),o.reduce((t,e)=>{let n="string"==typeof e?ei[e]:e;if(!n){let t=JSON.stringify(e),n=Object.keys(ei).map(t=>JSON.stringify(t)).join(", ");throw Error(`Unknown custom tag ${t}; use one of ${n}`)}return!t.includes(n)&&t.push(n),t},[])}let ea=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;class eu{constructor({compat:t,customTags:e,merge:n,resolveKnownTags:r,schema:o,sortMapEntries:s,toStringDefaults:u}){this.compat=Array.isArray(t)?es(t,"compat"):t?es(null,t):null,this.name="string"==typeof o&&o||"core",this.knownTags=r?eo:{},this.tags=es(e,this.name,n),this.toStringOptions=u??null,Object.defineProperty(this,a,{value:tS}),Object.defineProperty(this,l,{value:tA}),Object.defineProperty(this,c,{value:tT}),this.sortMapEntries="function"==typeof s?s:!0===s?ea:null}clone(){let t=Object.create(eu.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}class el{constructor(t,e,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,h,{value:s});let r=null;"function"==typeof e||Array.isArray(e)?r=e:void 0===n&&e&&(n=e,e=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:a}=o;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new F({version:a}),this.setSchema(a,n),this.contents=void 0===t?null:this.createNode(t,r,n)}clone(){let t=Object.create(el.prototype,{[h]:{value:s}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=O(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){ec(this.contents)&&this.contents.add(t)}addIn(t,e){ec(this.contents)&&this.contents.addIn(t,e)}createAlias(t,e){if(!t.anchor){let n=L(this);t.anchor=!e||n.has(e)?_(e||"a",n):e}return new $(t.anchor)}createNode(t,e,n){let r;if("function"==typeof e)t=e.call({"":t},"",t),r=e;else if(Array.isArray(e)){let t=e.filter(t=>"number"==typeof t||t instanceof String||t instanceof Number).map(String);t.length>0&&(e=e.concat(t)),r=e}else void 0===n&&e&&(n=e,e=void 0);let{aliasDuplicateObjects:o,anchorPrefix:s,flow:a,keepUndefined:u,onTagObj:l,tag:c}=n??{},{onAnchor:h,setAnchors:f,sourceObjects:p}=function(t,e){let n=[],r=new Map,o=null;return{onAnchor:r=>{n.push(r),o??(o=L(t));let s=_(e,o);return o.add(s),s},setAnchors:()=>{for(let t of n){let e=r.get(t);if("object"==typeof e&&e.anchor&&(g(e.node)||b(e.node)))e.node.anchor=e.anchor;else{let e=Error("Failed to resolve repeated object (this should not happen)");throw e.source=t,e}}},sourceObjects:r}}(this,s||"a"),d={aliasDuplicateObjects:o??!0,keepUndefined:u??!1,onAnchor:h,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:p},m=W(t,c,d);return a&&b(m)&&(m.flow=!0),f(),m}createPair(t,e,n={}){let r=this.createNode(t,null,n);return new tv(r,this.createNode(e,null,n))}delete(t){return!!ec(this.contents)&&this.contents.delete(t)}deleteIn(t){if(q(t))return null!=this.contents&&(this.contents=null,!0);return!!ec(this.contents)&&this.contents.deleteIn(t)}get(t,e){return b(this.contents)?this.contents.get(t,e):void 0}getIn(t,e){return q(t)?!e&&g(this.contents)?this.contents.value:this.contents:b(this.contents)?this.contents.getIn(t,e):void 0}has(t){return!!b(this.contents)&&this.contents.has(t)}hasIn(t){return q(t)?void 0!==this.contents:!!b(this.contents)&&this.contents.hasIn(t)}set(t,e){null==this.contents?this.contents=z(this.schema,[t],e):ec(this.contents)&&this.contents.set(t,e)}setIn(t,e){q(t)?this.contents=e:null==this.contents?this.contents=z(this.schema,Array.from(t),e):ec(this.contents)&&this.contents.setIn(t,e)}setSchema(t,e={}){let n;switch("number"==typeof t&&(t=String(t)),t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new F({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new F({version:t}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let e=JSON.stringify(t);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${e}`)}}if(e.schema instanceof Object)this.schema=e.schema;else if(n)this.schema=new eu(Object.assign(n,e));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:e,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){let a={anchors:new Map,doc:this,keep:!t,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},u=R(this.contents,e??"",a);if("function"==typeof o)for(let{count:t,res:e}of a.anchors.values())o(e,t);return"function"==typeof s?X(s,{"":u},"",u):u}toJSON(t,e){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:e})}toString(t={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||0>=Number(t.indent))){let e=JSON.stringify(t.indent);throw Error(`"indent" option must be a positive integer, not ${e}`)}return function(t,e){let n=[],r=!0===e.directives;if(!1!==e.directives&&t.directives){let e=t.directives.toString(t);e?(n.push(e),r=!0):t.directives.docStart&&(r=!0)}r&&n.push("---");let o=tl(t,e),{commentString:s}=o.options;if(t.commentBefore){1!==n.length&&n.unshift("");let e=s(t.commentBefore);n.unshift(G(e,""))}let a=!1,u=null;if(t.contents){if(O(t.contents)){if(t.contents.spaceBefore&&r&&n.push(""),t.contents.commentBefore){let e=s(t.contents.commentBefore);n.push(G(e,""))}o.forceBlockIndent=!!t.comment,u=t.contents.comment}let e=u?void 0:()=>a=!0,l=tc(t.contents,o,()=>u=null,e);u&&(l+=Q(l,"",s(u))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(tc(t.contents,o));if(t.directives?.docEnd){if(t.comment){let e=s(t.comment);e.includes("\n")?(n.push("..."),n.push(G(e,""))):n.push(`... ${e}`)}else n.push("...")}else{let e=t.comment;e&&a&&(e=e.replace(/^\n+/,"")),e&&((!a||u)&&""!==n[n.length-1]&&n.push(""),n.push(G(s(e),"")))}return n.join("\n")+"\n"}(this,t)}}function ec(t){if(b(t))return!0;throw Error("Expected a YAML collection as document contents")}class eh extends Error{constructor(t,e,n,r){super(),this.name=t,this.code=n,this.message=r,this.pos=e}}class ef extends eh{constructor(t,e,n){super("YAMLParseError",t,e,n)}}class ep extends eh{constructor(t,e,n){super("YAMLWarning",t,e,n)}}let ed=(t,e)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(t=>e.linePos(t));let{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let s=o-1,a=t.substring(e.lineStarts[r-1],e.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&a.length>80){let t=Math.min(s-39,a.length-79);a="…"+a.substring(t),s-=t-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,s))){let n=t.substring(e.lineStarts[r-2],e.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),a=n+a}if(/[^ ]/.test(a)){let t=1,e=n.linePos[1];e&&e.line===r&&e.col>o&&(t=Math.max(1,Math.min(e.col-o,80-s)));let u=" ".repeat(s)+"^".repeat(t);n.message+=`:
${a}
${u}
`}};function em(t,{flow:e,indicator:n,next:r,offset:o,onError:s,parentIndent:a,startOnNewline:u}){let l=!1,c=u,h=u,f="",p="",d=!1,m=!1,g=null,y=null,b=null,O=null,w=null,x=null,D=null;for(let o of t)switch(m&&("space"!==o.type&&"newline"!==o.type&&"comma"!==o.type&&s(o.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),g&&(c&&"comment"!==o.type&&"newline"!==o.type&&s(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),g=null),o.type){case"space":!e&&("doc-start"!==n||r?.type!=="flow-collection")&&o.source.includes(" ")&&(g=o),h=!0;break;case"comment":{!h&&s(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=o.source.substring(1)||" ";f?f+=p+t:f=t,p="",c=!1;break}case"newline":c?f?f+=o.source:(!x||"seq-item-ind"!==n)&&(l=!0):p+=o.source,c=!0,d=!0,(y||b)&&(O=o),h=!0;break;case"anchor":y&&s(o,"MULTIPLE_ANCHORS","A node can have at most one anchor"),o.source.endsWith(":")&&s(o.offset+o.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=o,D??(D=o.offset),c=!1,h=!1,m=!0;break;case"tag":b&&s(o,"MULTIPLE_TAGS","A node can have at most one tag"),b=o,D??(D=o.offset),c=!1,h=!1,m=!0;break;case n:(y||b)&&s(o,"BAD_PROP_ORDER",`Anchors and tags must be after the ${o.source} indicator`),x&&s(o,"UNEXPECTED_TOKEN",`Unexpected ${o.source} in ${e??"collection"}`),x=o,c="seq-item-ind"===n||"explicit-key-ind"===n,h=!1;break;case"comma":if(e){w&&s(o,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),w=o,c=!1,h=!1;break}default:s(o,"UNEXPECTED_TOKEN",`Unexpected ${o.type} token`),c=!1,h=!1}let k=t[t.length-1],S=k?k.offset+k.source.length:o;return m&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g&&(c&&g.indent<=a||r?.type==="block-map"||r?.type==="block-seq")&&s(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:w,found:x,spaceBefore:l,comment:f,hasNewline:d,anchor:y,tag:b,newlineAfterProp:O,end:S,start:D??S}}function eg(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes("\n"))return!0;if(t.end){for(let e of t.end)if("newline"===e.type)return!0}return!1;case"flow-collection":for(let e of t.items){for(let t of e.start)if("newline"===t.type)return!0;if(e.sep){for(let t of e.sep)if("newline"===t.type)return!0}if(eg(e.key)||eg(e.value))return!0}return!1;default:return!0}}function ey(t,e,n){if(e?.type==="flow-collection"){let r=e.end[0];r.indent===t&&("]"===r.source||"}"===r.source)&&eg(e)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function ev(t,e,n){let{uniqueKeys:r}=t.options;if(!1===r)return!1;let o="function"==typeof r?r:(t,e)=>t===e||g(t)&&g(e)&&t.value===e.value;return e.some(t=>o(t.key,n))}let eb="All mapping items must start at the same column";function eO(t,e,n,r){let o="";if(t){let s=!1,a="";for(let u of t){let{source:t,type:l}=u;switch(l){case"space":s=!0;break;case"comment":{n&&!s&&r(u,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=t.substring(1)||" ";o?o+=a+e:o=e,a="";break}case"newline":o&&(a+=t),s=!0;break;default:r(u,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}e+=t.length}}return{comment:o,offset:e}}let ew="Block collections are not allowed within flow collections",ex=t=>t&&("block-map"===t.type||"block-seq"===t.type);function eD(t,e,n,r,o,s){let a="block-map"===n.type?function({composeNode:t,composeEmptyNode:e},n,r,o,s){let a=new(s?.nodeClass??tk)(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,l=null;for(let s of r.items){let{start:c,key:h,sep:f,value:p}=s,d=em(c,{indicator:"explicit-key-ind",next:h??f?.[0],offset:u,onError:o,parentIndent:r.indent,startOnNewline:!0}),m=!d.found;if(m){if(h&&("block-seq"===h.type?o(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&o(u,"BAD_INDENT",eb)),!d.anchor&&!d.tag&&!f){l=d.end,d.comment&&(a.comment?a.comment+="\n"+d.comment:a.comment=d.comment);continue}(d.newlineAfterProp||eg(h))&&o(h??c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==r.indent&&o(u,"BAD_INDENT",eb);n.atKey=!0;let g=d.end,y=h?t(n,h,d,o):e(n,g,c,null,d,o);n.schema.compat&&ey(r.indent,h,o),n.atKey=!1,ev(n,a.items,y)&&o(g,"DUPLICATE_KEY","Map keys must be unique");let b=em(f??[],{indicator:"map-value-ind",next:p,offset:y.range[2],onError:o,parentIndent:r.indent,startOnNewline:!h||"block-scalar"===h.type});if(u=b.end,b.found){m&&(p?.type==="block-map"&&!b.hasNewline&&o(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&d.start<b.found.offset-1024&&o(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=p?t(n,p,b,o):e(n,u,f,null,b,o);n.schema.compat&&ey(r.indent,p,o),u=l.range[2];let c=new tv(y,l);n.options.keepSourceTokens&&(c.srcToken=s),a.items.push(c)}else{m&&o(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),b.comment&&(y.comment?y.comment+="\n"+b.comment:y.comment=b.comment);let t=new tv(y);n.options.keepSourceTokens&&(t.srcToken=s),a.items.push(t)}}return l&&l<u&&o(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[r.offset,u,l??u],a}(t,e,n,r,s):"block-seq"===n.type?function({composeNode:t,composeEmptyNode:e},n,r,o,s){let a=new(s?.nodeClass??tE)(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let u=r.offset,l=null;for(let{start:s,value:c}of r.items){let h=em(s,{indicator:"seq-item-ind",next:c,offset:u,onError:o,parentIndent:r.indent,startOnNewline:!0});if(!h.found){if(h.anchor||h.tag||c)c&&"block-seq"===c.type?o(h.end,"BAD_INDENT","All sequence items must start at the same column"):o(u,"MISSING_CHAR","Sequence item without - indicator");else{l=h.end,h.comment&&(a.comment=h.comment);continue}}let f=c?t(n,c,h,o):e(n,h.end,s,null,h,o);n.schema.compat&&ey(r.indent,c,o),u=f.range[2],a.items.push(f)}return a.range=[r.offset,u,l??u],a}(t,e,n,r,s):function({composeNode:t,composeEmptyNode:e},n,r,o,s){let a="{"===r.start.source,u=a?"flow map":"flow sequence",l=new(s?.nodeClass??(a?tk:tE))(n.schema);l.flow=!0;let c=n.atRoot;c&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let h=r.offset+r.start.source.length;for(let s=0;s<r.items.length;++s){let c=r.items[s],{start:f,key:p,sep:d,value:g}=c,y=em(f,{flow:u,indicator:"explicit-key-ind",next:p??d?.[0],offset:h,onError:o,parentIndent:r.indent,startOnNewline:!1});if(!y.found){if(!y.anchor&&!y.tag&&!d&&!g){0===s&&y.comma?o(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`):s<r.items.length-1&&o(y.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${u}`),y.comment&&(l.comment?l.comment+="\n"+y.comment:l.comment=y.comment),h=y.end;continue}!a&&n.options.strict&&eg(p)&&o(p,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===s)y.comma&&o(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`);else if(!y.comma&&o(y.start,"MISSING_CHAR",`Missing , between ${u} items`),y.comment){let t="";r:for(let e of f)switch(e.type){case"comma":case"space":break;case"comment":t=e.source.substring(1);break r;default:break r}if(t){let e=l.items[l.items.length-1];m(e)&&(e=e.value??e.key),e.comment?e.comment+="\n"+t:e.comment=t,y.comment=y.comment.substring(t.length+1)}}if(a||d||y.found){n.atKey=!0;let s=y.end,m=p?t(n,p,y,o):e(n,s,f,null,y,o);ex(p)&&o(m.range,"BLOCK_IN_FLOW",ew),n.atKey=!1;let b=em(d??[],{flow:u,indicator:"map-value-ind",next:g,offset:m.range[2],onError:o,parentIndent:r.indent,startOnNewline:!1});if(b.found){if(!a&&!y.found&&n.options.strict){if(d)for(let t of d){if(t===b.found)break;if("newline"===t.type){o(t,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}y.start<b.found.offset-1024&&o(b.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else g&&("source"in g&&g.source&&":"===g.source[0]?o(g,"MISSING_CHAR",`Missing space after : in ${u}`):o(b.start,"MISSING_CHAR",`Missing , or : between ${u} items`));let O=g?t(n,g,b,o):b.found?e(n,b.end,d,null,b,o):null;O?ex(g)&&o(O.range,"BLOCK_IN_FLOW",ew):b.comment&&(m.comment?m.comment+="\n"+b.comment:m.comment=b.comment);let w=new tv(m,O);if(n.options.keepSourceTokens&&(w.srcToken=c),a)ev(n,l.items,m)&&o(s,"DUPLICATE_KEY","Map keys must be unique"),l.items.push(w);else{let t=new tk(n.schema);t.flow=!0,t.items.push(w);let e=(O??m).range;t.range=[m.range[0],e[1],e[2]],l.items.push(t)}h=O?O.range[2]:b.end}else{let r=g?t(n,g,y,o):e(n,y.end,d,null,y,o);l.items.push(r),h=r.range[2],ex(g)&&o(r.range,"BLOCK_IN_FLOW",ew)}}let f=a?"}":"]",[p,...d]=r.end,g=h;if(p&&p.source===f)g=p.offset+p.source.length;else{let t=u[0].toUpperCase()+u.substring(1),e=c?`${t} must end with a ${f}`:`${t} in block collection must be sufficiently indented and end with a ${f}`;o(h,c?"MISSING_CHAR":"BAD_INDENT",e),p&&1!==p.source.length&&d.unshift(p)}if(d.length>0){let t=eO(d,g,n.options.strict,o);t.comment&&(l.comment?l.comment+="\n"+t.comment:l.comment=t.comment),l.range=[r.offset,g,t.offset]}else l.range=[r.offset,g,g];return l}(t,e,n,r,s),u=a.constructor;return"!"===o||o===u.tagName?(a.tag=u.tagName,a):(o&&(a.tag=o),a)}function ek(t){let e,n;try{e=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),n=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=e.exec(t);if(!r)return t;let o=r[1],s=" ",a=e.lastIndex;for(n.lastIndex=a;r=n.exec(t);)""===r[1]?"\n"===s?o+=s:s="\n":(o+=s+r[1],s=" "),a=n.lastIndex;let u=/[ \t]*(.*)/sy;return u.lastIndex=a,r=u.exec(t),o+s+(r?.[1]??"")}let eS={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function eE(t,e,n,r){let o,s;let{value:a,type:u,comment:c,range:h}="block-scalar"===e.type?function(t,e,n){let r=e.offset,o=function({offset:t,props:e},n,r){if("block-scalar-header"!==e[0].type)return r(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:o}=e[0],s=o[0],a=0,u="",l=-1;for(let e=1;e<o.length;++e){let n=o[e];if(u||"-"!==n&&"+"!==n){let r=Number(n);!a&&r?a=r:-1===l&&(l=t+e)}else u=n}-1!==l&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let c=!1,h="",f=o.length;for(let t=1;t<e.length;++t){let o=e[t];switch(o.type){case"space":c=!0;case"newline":f+=o.source.length;break;case"comment":n&&!c&&r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=o.source.length,h=o.source.substring(1);break;case"error":r(o,"UNEXPECTED_TOKEN",o.message),f+=o.source.length;break;default:{let t=`Unexpected token in block scalar header: ${o.type}`;r(o,"UNEXPECTED_TOKEN",t);let e=o.source;e&&"string"==typeof e&&(f+=e.length)}}}return{mode:s,indent:a,chomp:u,comment:h,length:f}}(e,t.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};let s=">"===o.mode?H.BLOCK_FOLDED:H.BLOCK_LITERAL,a=e.source?function(t){let e=t.split(/\n( *)/),n=e[0],r=n.match(/^( *)/),o=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let t=1;t<e.length;t+=2)o.push([e[t],e[t+1]]);return o}(e.source):[],u=a.length;for(let t=a.length-1;t>=0;--t){let e=a[t][1];if(""===e||"\r"===e)u=t;else break}if(0===u){let t="+"===o.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"",n=r+o.length;return e.source&&(n+=e.source.length),{value:t,type:s,comment:o.comment,range:[r,n,n]}}let l=e.indent+o.indent,c=e.offset+o.length,h=0;for(let e=0;e<u;++e){let[r,s]=a[e];if(""===s||"\r"===s)0===o.indent&&r.length>l&&(l=r.length);else{r.length<l&&n(c+r.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===o.indent&&(l=r.length),h=e,0===l&&!t.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=r.length+s.length+1}for(let t=a.length-1;t>=u;--t)a[t][0].length>l&&(u=t+1);let f="",p="",d=!1;for(let t=0;t<h;++t)f+=a[t][0].slice(l)+"\n";for(let t=h;t<u;++t){let[e,r]=a[t];c+=e.length+r.length+1;let u="\r"===r[r.length-1];if(u&&(r=r.slice(0,-1)),r&&e.length<l){let t=o.indent?"explicit indentation indicator":"first line",s=`Block scalar lines must not be less indented than their ${t}`;n(c-r.length-(u?2:1),"BAD_INDENT",s),e=""}s===H.BLOCK_LITERAL?(f+=p+e.slice(l)+r,p="\n"):e.length>l||" "===r[0]?(" "===p?p="\n":!d&&"\n"===p&&(p="\n\n"),f+=p+e.slice(l)+r,p="\n",d=!0):""===r?"\n"===p?f+="\n":p="\n":(f+=p+r,p=" ",d=!1)}switch(o.chomp){case"-":break;case"+":for(let t=u;t<a.length;++t)f+="\n"+a[t][0].slice(l);"\n"!==f[f.length-1]&&(f+="\n");break;default:f+="\n"}let m=r+o.length+e.source.length;return{value:f,type:s,comment:o.comment,range:[r,m,m]}}(t,e,r):function(t,e,n){let r,o;let{offset:s,type:a,source:u,end:l}=t,c=(t,e,r)=>n(s+t,e,r);switch(a){case"scalar":r=H.PLAIN,o=function(t,e){let n="";switch(t[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${t[0]}`;break;case"@":case"`":n=`reserved character ${t[0]}`}return n&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),ek(t)}(u,c);break;case"single-quoted-scalar":r=H.QUOTE_SINGLE,o=function(t,e){return("'"!==t[t.length-1]||1===t.length)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),ek(t.slice(1,-1)).replace(/''/g,"'")}(u,c);break;case"double-quoted-scalar":r=H.QUOTE_DOUBLE,o=function(t,e){let n="";for(let r=1;r<t.length-1;++r){let o=t[r];if("\r"!==o||"\n"!==t[r+1]){if("\n"===o){let{fold:e,offset:o}=function(t,e){let n="",r=t[e+1];for(;(" "===r||" "===r||"\n"===r||"\r"===r)&&("\r"!==r||"\n"===t[e+2]);){;"\n"===r&&(n+="\n"),e+=1,r=t[e+1]}return!n&&(n=" "),{fold:n,offset:e}}(t,r);n+=e,r=o}else if("\\"===o){let o=t[++r],s=eS[o];if(s)n+=s;else if("\n"===o)for(o=t[r+1];" "===o||" "===o;)o=t[++r+1];else if("\r"===o&&"\n"===t[r+1])for(o=t[++r+1];" "===o||" "===o;)o=t[++r+1];else if("x"===o||"u"===o||"U"===o){let s={x:2,u:4,U:8}[o];n+=function(t,e,n,r){let o=t.substr(e,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){let o=t.substr(e-2,n+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(s)}(t,r+1,s,e),r+=s}else{let o=t.substr(r-1,2);e(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}}else if(" "===o||" "===o){let e=r,s=t[r+1];for(;" "===s||" "===s;)s=t[++r+1];"\n"!==s&&!("\r"===s&&"\n"===t[r+2])&&(n+=r>e?t.slice(e,r+1):o)}else n+=o}}return('"'!==t[t.length-1]||1===t.length)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}(u,c);break;default:return n(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[s,s+u.length,s+u.length]}}let h=s+u.length,f=eO(l,h,e,n);return{value:o,type:r,comment:f.comment,range:[s,h,f.offset]}}(e,t.options.strict,r),f=n?t.directives.tagName(n.source,t=>r(n,"TAG_RESOLVE_FAILED",t)):null;o=t.options.stringKeys&&t.atKey?t.schema[l]:f?function(t,e,n,r,o){if("!"===n)return t[l];let s=[];for(let e of t.tags)if(!e.collection&&e.tag===n){if(!e.default||!e.test)return e;s.push(e)}for(let t of s)if(t.test?.test(e))return t;let a=t.knownTags[n];return a&&!a.collection?(t.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),t[l])}(t.schema,a,f,n,r):"scalar"===e.type?function({atKey:t,directives:e,schema:n},r,o,s){let a=n.tags.find(e=>(!0===e.default||t&&"key"===e.default)&&e.test?.test(r))||n[l];if(n.compat){let t=n.compat.find(t=>t.default&&t.test?.test(r))??n[l];if(a.tag!==t.tag){let n=e.tagString(a.tag),r=e.tagString(t.tag);s(o,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${n} or ${r}`,!0)}}return a}(t,a,e,r):t.schema[l];try{let u=o.resolve(a,t=>r(n??e,"TAG_RESOLVE_FAILED",t),t.options);s=g(u)?u:new H(u)}catch(t){r(n??e,"TAG_RESOLVE_FAILED",t instanceof Error?t.message:String(t)),s=new H(a)}return s.range=h,s.source=a,u&&(s.type=u),f&&(s.tag=f),o.format&&(s.format=o.format),c&&(s.comment=c),s}let eC={composeNode:eT,composeEmptyNode:eA};function eT(t,e,n,r){let o;let s=t.atKey,{spaceBefore:a,comment:u,anchor:l,tag:c}=n,h=!0;switch(e.type){case"alias":o=function({options:t},{offset:e,source:n,end:r},o){let s=new $(n.substring(1));""===s.source&&o(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=e+n.length,u=eO(r,a,t.strict,o);return s.range=[e,a,u.offset],u.comment&&(s.comment=u.comment),s}(t,e,r),(l||c)&&r(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":o=eE(t,e,c,r),l&&(o.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":o=function(t,e,n,r,o){let s=r.tag,a=s?e.directives.tagName(s.source,t=>o(s,"TAG_RESOLVE_FAILED",t)):null;if("block-seq"===n.type){let{anchor:t,newlineAfterProp:e}=r,n=t&&s?t.offset>s.offset?t:s:t??s;n&&(!e||e.offset<n.offset)&&o(n,"MISSING_CHAR","Missing newline after block sequence props")}let u="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!s||!a||"!"===a||a===tk.tagName&&"map"===u||a===tE.tagName&&"seq"===u)return eD(t,e,n,o,a);let l=e.schema.tags.find(t=>t.tag===a&&t.collection===u);if(!l){let r=e.schema.knownTags[a];if(!r||r.collection!==u)return r?o(s,"BAD_COLLECTION_TYPE",`${r.tag} used for ${u} collection, but expects ${r.collection??"scalar"}`,!0):o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),eD(t,e,n,o,a);e.schema.tags.push(Object.assign({},r,{default:!1})),l=r}let c=eD(t,e,n,o,a,l),h=l.resolve?.(c,t=>o(s,"TAG_RESOLVE_FAILED",t),e.options)??c,f=O(h)?h:new H(h);return f.range=c.range,f.tag=a,l?.format&&(f.format=l.format),f}(eC,t,e,n,r),l&&(o.anchor=l.source.substring(1));break;default:{let s="error"===e.type?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",s),o=eA(t,e.offset,void 0,null,n,r),h=!1}}return l&&""===o.anchor&&r(l,"BAD_ALIAS","Anchor cannot be an empty string"),s&&t.options.stringKeys&&(!g(o)||"string"!=typeof o.value||o.tag&&"tag:yaml.org,2002:str"!==o.tag)&&r(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(o.spaceBefore=!0),u&&("scalar"===e.type&&""===e.source?o.comment=u:o.commentBefore=u),t.options.keepSourceTokens&&h&&(o.srcToken=e),o}function eA(t,e,n,r,{spaceBefore:o,comment:s,anchor:a,tag:u,end:l},c){let h=eE(t,{type:"scalar",offset:function(t,e,n){if(e){n??(n=e.length);for(let r=n-1;r>=0;--r){let n=e[r];switch(n.type){case"space":case"comment":case"newline":t-=n.source.length;continue}for(n=e[++r];n?.type==="space";)t+=n.source.length,n=e[++r];break}}return t}(e,n,r),indent:-1,source:""},u,c);return a&&(h.anchor=a.source.substring(1),""===h.anchor&&c(a,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),s&&(h.comment=s,h.range[2]=l),h}function eM(t){if("number"==typeof t)return[t,t+1];if(Array.isArray(t))return 2===t.length?t:[t[0],t[1]];let{offset:e,source:n}=t;return[e,e+("string"==typeof n?n.length:1)]}function eP(t){let e="",n=!1,r=!1;for(let o=0;o<t.length;++o){let s=t[o];switch(s[0]){case"#":e+=(""===e?"":r?"\n\n":"\n")+(s.substring(1)||" "),n=!0,r=!1;break;case"%":t[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:!n&&(r=!0),n=!1}}return{comment:e,afterEmptyLine:r}}class eB{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,e,n,r)=>{let o=eM(t);r?this.warnings.push(new ep(o,e,n)):this.errors.push(new ef(o,e,n))},this.directives=new F({version:t.version||"1.2"}),this.options=t}decorate(t,e){let{comment:n,afterEmptyLine:r}=eP(this.prelude);if(n){let o=t.contents;if(e)t.comment=t.comment?`${t.comment}
${n}`:n;else if(r||t.directives.docStart||!o)t.commentBefore=n;else if(b(o)&&!o.flow&&o.items.length>0){let t=o.items[0];m(t)&&(t=t.key);let e=t.commentBefore;t.commentBefore=e?`${n}
${e}`:n}else{let t=o.commentBefore;o.commentBefore=t?`${n}
${t}`:n}}e?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:eP(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,e=!1,n=-1){for(let e of t)yield*this.next(e);yield*this.end(e,n)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(e,n,r)=>{let o=eM(t);o[0]+=e,this.onError(o,"BAD_DIRECTIVE",n,r)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let e=function(t,e,{offset:n,start:r,value:o,end:s},a){let u=new el(void 0,Object.assign({_directives:e},t)),l={atKey:!1,atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},c=em(r,{indicator:"doc-start",next:o??s?.[0],offset:n,onError:a,parentIndent:0,startOnNewline:!0});c.found&&(u.directives.docStart=!0,o&&("block-map"===o.type||"block-seq"===o.type)&&!c.hasNewline&&a(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=o?eT(l,o,c,a):eA(l,c.end,r,null,c,a);let h=u.contents.range[2],f=eO(s,h,!1,a);return f.comment&&(u.comment=f.comment),u.range=[n,h,f.offset],u}(this.options,this.directives,t,this.onError);this.atDirectives&&!e.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(e,!1),this.doc&&(yield this.doc),this.doc=e,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let e=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new ef(eM(t),"UNEXPECTED_TOKEN",e);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new ef(eM(t),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let e=eO(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),e.comment){let t=this.doc.comment;this.doc.comment=t?`${t}
${e.comment}`:e.comment}this.doc.range[2]=e.offset;break}default:this.errors.push(new ef(eM(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,e=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let t=new el(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(e,"MISSING_CHAR","Missing directives-end indicator line"),t.range=[0,e,e],this.decorate(t,!1),yield t}}}let eI=Symbol("break visit"),eF=Symbol("skip children"),eN=Symbol("remove item");function eL(t,e){"type"in t&&"document"===t.type&&(t={start:t.start,value:t.value}),function t(e,n,r){let o=r(n,e);if("symbol"==typeof o)return o;for(let s of["key","value"]){let a=n[s];if(a&&"items"in a){for(let n=0;n<a.items.length;++n){let o=t(Object.freeze(e.concat([[s,n]])),a.items[n],r);if("number"==typeof o)n=o-1;else{if(o===eI)return eI;o===eN&&(a.items.splice(n,1),n-=1)}}"function"==typeof o&&"key"===s&&(o=o(n,e))}}return"function"==typeof o?o(n,e):o}(Object.freeze([]),t,e)}eL.BREAK=eI,eL.SKIP=eF,eL.REMOVE=eN,eL.itemAtPath=(t,e)=>{let n=t;for(let[t,r]of e){let e=n?.[t];if(!e||!("items"in e))return;n=e.items[r]}return n},eL.parentCollection=(t,e)=>{let n=eL.itemAtPath(t,e.slice(0,-1)),r=e[e.length-1][0],o=n?.[r];if(o&&"items"in o)return o;throw Error("Parent collection not found")};function e_(t){switch(t){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let eX=new Set("0123456789ABCDEFabcdef"),eR=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),ej=new Set(",[]{}"),e$=new Set(" ,[]{}\n\r "),eV=t=>!t||e$.has(t);class eH{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,e=!1){if(t){if("string"!=typeof t)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!e;let n=this.next??"stream";for(;n&&(e||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,e=this.buffer[t];for(;" "===e||" "===e;)e=this.buffer[++t];return!e||"#"===e||"\n"===e||"\r"===e&&"\n"===this.buffer[t+1]}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let e=this.buffer[t];if(this.indentNext>0){let n=0;for(;" "===e;)e=this.buffer[++n+t];if("\r"===e){let e=this.buffer[n+t+1];if("\n"===e||!e&&!this.atEnd)return t+n+1}return"\n"!==e&&!(n>=this.indentNext)&&(e||this.atEnd)?-1:t+n}if("-"===e||"."===e){let e=this.buffer.substr(t,3);if(("---"===e||"..."===e)&&e_(this.buffer[t+3]))return -1}return t}getLine(){let t=this.lineEndPos;return(("number"!=typeof t||-1!==t&&t<this.pos)&&(t=this.buffer.indexOf("\n",this.pos),this.lineEndPos=t),-1===t)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[t-1]&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(null===t)return this.setNext("stream");if("\uFEFF"===t[0]&&(yield*this.pushCount(1),t=t.substring(1)),"%"===t[0]){let e=t.length,n=t.indexOf("#");for(;-1!==n;){let r=t[n-1];if(" "===r||" "===r){e=n-1;break}n=t.indexOf("#",n+1)}for(;;){let n=t[e-1];if(" "===n||" "===n)e-=1;else break}let r=(yield*this.pushCount(e))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let e=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-e),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if("-"===t||"."===t){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if(("---"===t||"..."===t)&&e_(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===t?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!e_(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,e]=this.peek(2);if(!e&&!this.atEnd)return this.setNext("block-start");if(("-"===t||"?"===t||":"===t)&&e_(e)){let t=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=t,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(null===t)return this.setNext("doc");let e=yield*this.pushIndicators();switch(t[e]){case"#":yield*this.pushCount(t.length-e);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(eV),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return e+=yield*this.parseBlockScalarHeader(),e+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-e),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,e;let n=-1;do(t=yield*this.pushNewline())>0?(e=yield*this.pushSpaces(!1),this.indentValue=n=e):e=0,e+=yield*this.pushSpaces(!0);while(t+e>0);let r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&e_(r[3]))&&!(n===this.indentNext-1&&1===this.flowLevel&&("]"===r[0]||"}"===r[0])))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let o=0;for(;","===r[o];)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r[o+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(eV),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let t=this.charAt(1);if(this.flowKey||e_(t)||","===t)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),e=this.buffer.indexOf(t,this.pos+1);if("'"===t)for(;-1!==e&&"'"===this.buffer[e+1];)e=this.buffer.indexOf("'",e+2);else for(;-1!==e;){let t=0;for(;"\\"===this.buffer[e-1-t];)t+=1;if(t%2==0)break;e=this.buffer.indexOf('"',e+1)}let n=this.buffer.substring(0,e),r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){let t=this.continueScalar(r+1);if(-1===t)break;r=n.indexOf("\n",t)}-1!==r&&(e=r-("\r"===n[r-1]?2:1))}if(-1===e){if(!this.atEnd)return this.setNext("quoted-scalar");e=this.buffer.length}return yield*this.pushToIndex(e+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let e=this.buffer[++t];if("+"===e)this.blockScalarKeep=!0;else if(e>"0"&&e<="9")this.blockScalarIndent=Number(e)-1;else if("-"!==e)break}return yield*this.pushUntil(t=>e_(t)||"#"===t)}*parseBlockScalar(){let t,e=this.pos-1,n=0;r:for(let r=this.pos;t=this.buffer[r];++r)switch(t){case" ":n+=1;break;case"\n":e=r,n=0;break;case"\r":{let t=this.buffer[r+1];if(!t&&!this.atEnd)return this.setNext("block-scalar");if("\n"===t)break}default:break r}if(!t&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let t=this.continueScalar(e+1);if(-1===t)break;e=this.buffer.indexOf("\n",t)}while(-1!==e);if(-1===e){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;for(t=this.buffer[r];" "===t;)t=this.buffer[++r];if(" "===t){for(;" "===t||" "===t||"\r"===t||"\n"===t;)t=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)for(;;){let t=e-1,r=this.buffer[t];"\r"===r&&(r=this.buffer[--t]);let o=t;for(;" "===r;)r=this.buffer[--t];if("\n"===r&&t>=this.pos&&t+1+n>o)e=t;else break}return yield"\x1f",yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t;let e=this.flowLevel>0,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){let t=this.buffer[r+1];if(e_(t)||e&&ej.has(t))break;n=r}else if(e_(t)){let o=this.buffer[r+1];if("\r"===t&&("\n"===o?(r+=1,t="\n",o=this.buffer[r+1]):n=r),"#"===o||e&&ej.has(o))break;if("\n"===t){let t=this.continueScalar(r+1);if(-1===t)break;r=Math.max(r,t-2)}}else{if(e&&ej.has(t))break;n=r}return t||this.atEnd?(yield"\x1f",yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,e){let n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(e&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(eV))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,e=this.charAt(1);if(e_(e)||t&&ej.has(e))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let t=this.pos+2,e=this.buffer[t];for(;!e_(e)&&">"!==e;)e=this.buffer[++t];return yield*this.pushToIndex(">"===e?t+1:t,!1)}{let t=this.pos+1,e=this.buffer[t];for(;e;)if(eR.has(e))e=this.buffer[++t];else if("%"===e&&eX.has(this.buffer[t+1])&&eX.has(this.buffer[t+2]))e=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return"\n"===t?yield*this.pushCount(1):"\r"===t&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(t){let e,n=this.pos-1;do e=this.buffer[++n];while(" "===e||t&&" "===e);let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(t){let e=this.pos,n=this.buffer[e];for(;!t(n);)n=this.buffer[++e];return yield*this.pushToIndex(e,!1)}}function eW(t,e){for(let n=0;n<t.length;++n)if(t[n].type===e)return!0;return!1}function ez(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return -1}function eq(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function eU(t){switch(t.type){case"document":return t.start;case"block-map":{let e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function eY(t){if(0===t.length)return[];let e=t.length;r:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break r}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}function eG(t){if("flow-seq-start"===t.start.type)for(let e of t.items)e.sep&&!e.value&&!eW(e.start,"explicit-key-ind")&&!eW(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,eq(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class eQ{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new eH,this.onNewLine=t}*parse(t,e=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(t,e)))yield*this.next(n);!e&&(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let e=function(t){switch(t){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(t);if(e){if("scalar"===e)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=e,yield*this.step(),e){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&" "===t[0]&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}}else{let e=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:e,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if("doc-end"===this.type&&(!t||"doc-end"!==t.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let e=t??this.stack.pop();if(e){if(0===this.stack.length)yield e;else{let t=this.peek(1);switch("block-scalar"===e.type?e.indent="indent"in t?t.indent:0:"flow-collection"===e.type&&"document"===t.type&&(e.indent=0),"flow-collection"===e.type&&eG(e),t.type){case"document":t.value=e;break;case"block-scalar":t.props.push(e);break;case"block-map":{let n=t.items[t.items.length-1];if(n.value){t.items.push({start:[],key:e,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=e;else{Object.assign(n,{key:e,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=t.items[t.items.length-1];n.value?t.items.push({start:[],value:e}):n.value=e;break}case"flow-collection":{let n=t.items[t.items.length-1];!n||n.value?t.items.push({start:[],key:e,sep:[]}):n.sep?n.value=e:Object.assign(n,{key:e,sep:[]});return}default:yield*this.pop(),yield*this.pop(e)}if(("document"===t.type||"block-map"===t.type||"block-seq"===t.type)&&("block-map"===e.type||"block-seq"===e.type)){let n=e.items[e.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===ez(n.start)&&(0===e.indent||n.start.every(t=>"comment"!==t.type||t.indent<e.indent))&&("document"===t.type?t.end=n.start:t.items.push({start:n.start}),e.items.splice(-1,1))}}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":-1!==ez(t.start)?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let e=this.startBlockValue(t);e?this.stack.push(e):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if("map-value-ind"===this.type){let e;let n=eY(eU(this.peek(2)));t.end?((e=t.end).push(this.sourceToken),delete t.end):e=[this.sourceToken];let r={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:n,key:t,sep:e}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf("\n")+1;for(;0!==t;)this.onNewLine(this.offset+t),t=this.source.indexOf("\n",t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let e=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,e.value){let n="end"in e.value?e.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"space":case"comment":if(e.value)t.items.push({start:[this.sourceToken]});else if(e.sep)e.sep.push(this.sourceToken);else{if(this.atIndentedComment(e.start,t.indent)){let n=t.items[t.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,e.start),r.push(this.sourceToken),t.items.pop();return}}e.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let n=!this.onKeyLine&&this.indent===t.indent,r=n&&(e.sep||e.explicitKey)&&"seq-item-ind"!==this.type,o=[];if(r&&e.sep&&!e.value){let n=[];for(let r=0;r<e.sep.length;++r){let o=e.sep[r];switch(o.type){case"newline":n.push(r);break;case"space":break;case"comment":o.indent>t.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(o=e.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":r||e.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"explicit-key-ind":e.sep||e.explicitKey?r||e.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(e.start.push(this.sourceToken),e.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(e.explicitKey){if(e.sep){if(e.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(eW(e.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(eq(e.key)&&!eW(e.sep,"newline")){let t=eY(e.start),n=e.key,r=e.sep;r.push(this.sourceToken),delete e.key,delete e.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:n,sep:r}]})}else o.length>0?e.sep=e.sep.concat(o,this.sourceToken):e.sep.push(this.sourceToken)}else if(eW(e.start,"newline"))Object.assign(e,{key:null,sep:[this.sourceToken]});else{let t=eY(e.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]})}}else e.sep?e.value||r?t.items.push({start:o,key:null,sep:[this.sourceToken]}):eW(e.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):e.sep.push(this.sourceToken):Object.assign(e,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);r||e.value?(t.items.push({start:o,key:n,sep:[]}),this.onKeyLine=!0):e.sep?this.stack.push(n):(Object.assign(e,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(t);if(r){if("block-seq"===r.type){if(!e.explicitKey&&e.sep&&!eW(e.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&t.items.push({start:o});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let e=t.items[t.items.length-1];switch(this.type){case"newline":if(e.value){let n="end"in e.value?e.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else e.start.push(this.sourceToken);return;case"space":case"comment":if(e.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(e.start,t.indent)){let n=t.items[t.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,e.start),r.push(this.sourceToken),t.items.pop();return}}e.start.push(this.sourceToken)}return;case"anchor":case"tag":if(e.value||this.indent<=t.indent)break;e.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;e.value||eW(e.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):e.start.push(this.sourceToken);return}if(this.indent>t.indent){let e=this.startBlockValue(t);if(e){this.stack.push(e);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let e=t.items[t.items.length-1];if("flow-error-end"===this.type){let t;do yield*this.pop(),t=this.peek(1);while(t&&"flow-collection"===t.type)}else if(0===t.end.length){switch(this.type){case"comma":case"explicit-key-ind":!e||e.sep?t.items.push({start:[this.sourceToken]}):e.start.push(this.sourceToken);return;case"map-value-ind":!e||e.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):e.sep?e.sep.push(this.sourceToken):Object.assign(e,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!e||e.value?t.items.push({start:[this.sourceToken]}):e.sep?e.sep.push(this.sourceToken):e.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!e||e.value?t.items.push({start:[],key:n,sep:[]}):e.sep?this.stack.push(n):Object.assign(e,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let e=this.peek(2);if("block-map"!==e.type||("map-value-ind"!==this.type||e.indent!==t.indent)&&("newline"!==this.type||e.items[e.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==e.type){let n=eY(eU(e));eG(t);let r=t.end.splice(1,t.end.length);r.push(this.sourceToken);let o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:n,key:t,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}else yield*this.pop(),yield*this.step()}}flowScalar(t){if(this.onNewLine){let t=this.source.indexOf("\n")+1;for(;0!==t;)this.onNewLine(this.offset+t),t=this.source.indexOf("\n",t)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let e=eY(eU(t));return e.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let e=eY(eU(t));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,e){return"comment"===this.type&&!(this.indent<=e)&&t.every(t=>"newline"===t.type||"space"===t.type)}*documentEnd(t){"doc-mode"!==this.type&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class eK{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let e=0,n=this.lineStarts.length;for(;e<n;){let r=e+n>>1;this.lineStarts[r]<t?e=r+1:n=r}if(this.lineStarts[e]===t)return{line:e+1,col:1};if(0===e)return{line:0,col:t};let r=this.lineStarts[e-1];return{line:e,col:t-r+1}}}}function eJ(t,e,n){let r;"function"==typeof e?r=e:void 0===n&&e&&"object"==typeof e&&(n=e);let o=function(t,e={}){let{lineCounter:n,prettyErrors:r}=function(t){let e=!1!==t.prettyErrors;return{lineCounter:t.lineCounter||e&&new eK||null,prettyErrors:e}}(e),o=new eQ(n?.addNewLine),s=new eB(e),a=null;for(let e of s.compose(o.parse(t),!0,t.length))if(a){if("silent"!==a.options.logLevel){a.errors.push(new ef(e.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else a=e;return r&&n&&(a.errors.forEach(ed(t,n)),a.warnings.forEach(ed(t,n))),a}(t,n);if(!o)return null;if(o.warnings.forEach(t=>th(o.options.logLevel,t)),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function eZ(t,e,n){let r=null;if("function"==typeof e||Array.isArray(e)?r=e:void 0===n&&e&&(n=e),"string"==typeof n&&(n=n.length),"number"==typeof n){let t=Math.round(n);n=t<1?void 0:t>8?{indent:8}:{indent:t}}if(void 0===t){let{keepUndefined:t}=n??e??{};if(!t)return}return p(t)&&!r?t.toString(n):new el(t,r,n).toString(n)}}}]);
//# sourceMappingURL=8517.7a7806f4.js.map