/home/bdqbpbxa/api-uniferx.goodface.com.ua/public/vendor/nova/vendor.js
/*! For license information please see vendor.js.LICENSE.txt */
(self.webpackChunklaravel_nova=self.webpackChunklaravel_nova||[]).push([[660],{39038:(e,t,n)=>{function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=r(n(72307)),o=n(70821),a=r(n(83465)),s=n(9680);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(){var e=[].slice.call(arguments),t="string"==typeof e[0]?e[0]:null,n=("string"==typeof e[0]?e[1]:e[0])||{},r=t?s.Inertia.restore(t):null,c=a(n),u=null,p=null,d=function(e){return e},f=o.reactive(l({},r?r.data:n,{isDirty:!1,errors:r?r.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,data:function(){var e=this;return Object.keys(n).reduce((function(t,n){return t[n]=e[n],t}),{})},transform:function(e){return d=e,this},defaults:function(e,t){var n;return c=void 0===e?this.data():Object.assign({},a(c),t?((n={})[e]=t,n):e),this},reset:function(){var e=[].slice.call(arguments),t=a(c);return Object.assign(this,0===e.length?t:Object.keys(t).filter((function(t){return e.includes(t)})).reduce((function(e,n){return e[n]=t[n],e}),{})),this},setError:function(e,t){var n;return Object.assign(this.errors,t?((n={})[e]=t,n):e),this.hasErrors=Object.keys(this.errors).length>0,this},clearErrors:function(){var e=this,t=[].slice.call(arguments);return this.errors=Object.keys(this.errors).reduce((function(n,r){var i;return l({},n,t.length>0&&!t.includes(r)?((i={})[r]=e.errors[r],i):{})}),{}),this.hasErrors=Object.keys(this.errors).length>0,this},submit:function(e,t,n){var r=this,i=this;void 0===n&&(n={});var o=d(this.data()),f=l({},n,{onCancelToken:function(e){if(u=e,n.onCancelToken)return n.onCancelToken(e)},onBefore:function(e){if(i.wasSuccessful=!1,i.recentlySuccessful=!1,clearTimeout(p),n.onBefore)return n.onBefore(e)},onStart:function(e){if(i.processing=!0,n.onStart)return n.onStart(e)},onProgress:function(e){if(i.progress=e,n.onProgress)return n.onProgress(e)},onSuccess:function(e){try{var t=function(e){return c=a(r.data()),r.isDirty=!1,e};return r.processing=!1,r.progress=null,r.clearErrors(),r.wasSuccessful=!0,r.recentlySuccessful=!0,p=setTimeout((function(){return r.recentlySuccessful=!1}),2e3),Promise.resolve(n.onSuccess?Promise.resolve(n.onSuccess(e)).then(t):t(null))}catch(e){return Promise.reject(e)}},onError:function(e){if(i.processing=!1,i.progress=null,i.clearErrors().setError(e),n.onError)return n.onError(e)},onCancel:function(){if(i.processing=!1,i.progress=null,n.onCancel)return n.onCancel()},onFinish:function(){if(i.processing=!1,i.progress=null,u=null,n.onFinish)return n.onFinish()}});"delete"===e?s.Inertia.delete(t,l({},f,{data:o})):s.Inertia[e](t,o,f)},get:function(e,t){this.submit("get",e,t)},post:function(e,t){this.submit("post",e,t)},put:function(e,t){this.submit("put",e,t)},patch:function(e,t){this.submit("patch",e,t)},delete:function(e,t){this.submit("delete",e,t)},cancel:function(){u&&u.cancel()},__rememberable:null===t,__remember:function(){return{data:this.data(),errors:this.errors}},__restore:function(e){Object.assign(this,e.data),this.setError(e.errors)}}));return o.watch(f,(function(e){f.isDirty=!i(f.data(),c),t&&s.Inertia.remember(a(e.__remember()),t)}),{immediate:!0,deep:!0}),f}var u={created:function(){var e=this;if(this.$options.remember){Array.isArray(this.$options.remember)&&(this.$options.remember={data:this.$options.remember}),"string"==typeof this.$options.remember&&(this.$options.remember={data:[this.$options.remember]}),"string"==typeof this.$options.remember.data&&(this.$options.remember={data:[this.$options.remember.data]});var t=this.$options.remember.key instanceof Function?this.$options.remember.key.call(this):this.$options.remember.key,n=s.Inertia.restore(t),r=this.$options.remember.data.filter((function(t){return!(null!==e[t]&&"object"==typeof e[t]&&!1===e[t].__rememberable)})),i=function(t){return null!==e[t]&&"object"==typeof e[t]&&"function"==typeof e[t].__remember&&"function"==typeof e[t].__restore};r.forEach((function(o){void 0!==e[o]&&void 0!==n&&void 0!==n[o]&&(i(o)?e[o].__restore(n[o]):e[o]=n[o]),e.$watch(o,(function(){s.Inertia.remember(r.reduce((function(t,n){var r;return l({},t,((r={})[n]=a(i(n)?e[n].__remember():e[n]),r))}),{}),t)}),{immediate:!0,deep:!0})}))}}},p=o.ref(null),d=o.ref({}),f=o.ref(null),h=null,m={name:"Inertia",props:{initialPage:{type:Object,required:!0},initialComponent:{type:Object,required:!1},resolveComponent:{type:Function,required:!1},titleCallback:{type:Function,required:!1,default:function(e){return e}},onHeadUpdate:{type:Function,required:!1,default:function(){return function(){}}}},setup:function(e){var t=e.initialPage,n=e.initialComponent,r=e.resolveComponent,i=e.titleCallback,a=e.onHeadUpdate;p.value=n?o.markRaw(n):null,d.value=t,f.value=null;var c="undefined"==typeof window;return h=s.createHeadManager(c,i,a),c||s.Inertia.init({initialPage:t,resolveComponent:r,swapComponent:function(e){try{return p.value=o.markRaw(e.component),d.value=e.page,f.value=e.preserveState?f.value:Date.now(),Promise.resolve()}catch(e){return Promise.reject(e)}}}),function(){if(p.value){p.value.inheritAttrs=!!p.value.inheritAttrs;var e=o.h(p.value,l({},d.value.props,{key:f.value}));return p.value.layout?"function"==typeof p.value.layout?p.value.layout(o.h,e):(Array.isArray(p.value.layout)?p.value.layout:[p.value.layout]).concat(e).reverse().reduce((function(e,t){return t.inheritAttrs=!!t.inheritAttrs,o.h(t,l({},d.value.props),(function(){return e}))})):e}}}},g={install:function(e){s.Inertia.form=c,Object.defineProperty(e.config.globalProperties,"$inertia",{get:function(){return s.Inertia}}),Object.defineProperty(e.config.globalProperties,"$page",{get:function(){return d.value}}),Object.defineProperty(e.config.globalProperties,"$headManager",{get:function(){return h}}),e.mixin(u)}},v={props:{title:{type:String,required:!1}},data:function(){return{provider:this.$headManager.createProvider()}},beforeUnmount:function(){this.provider.disconnect()},methods:{isUnaryTag:function(e){return["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(e.type)>-1},renderTagStart:function(e){e.props=e.props||{},e.props.inertia=void 0!==e.props["head-key"]?e.props["head-key"]:"";var t=Object.keys(e.props).reduce((function(t,n){var r=e.props[n];return["key","head-key"].includes(n)?t:""===r?t+" "+n:t+" "+n+'="'+r+'"'}),"");return"<"+e.type+t+">"},renderTagChildren:function(e){var t=this;return"string"==typeof e.children?e.children:e.children.reduce((function(e,n){return e+t.renderTag(n)}),"")},renderTag:function(e){if("Symbol(Text)"===e.type.toString())return e.children;if("Symbol()"===e.type.toString())return"";if("Symbol(Comment)"===e.type.toString())return"";var t=this.renderTagStart(e);return e.children&&(t+=this.renderTagChildren(e)),this.isUnaryTag(e)||(t+="</"+e.type+">"),t},addTitleElement:function(e){return this.title&&!e.find((function(e){return e.startsWith("<title")}))&&e.push("<title inertia>"+this.title+"</title>"),e},renderNodes:function(e){var t=this;return this.addTitleElement(e.flatMap((function(e){return"Symbol(Fragment)"===e.type.toString()?e.children:e})).map((function(e){return t.renderTag(e)})).filter((function(e){return e})))}},render:function(){this.provider.update(this.renderNodes(this.$slots.default?this.$slots.default():[]))}},y={name:"InertiaLink",props:{as:{type:String,default:"a"},data:{type:Object,default:function(){return{}}},href:{type:String},method:{type:String,default:"get"},replace:{type:Boolean,default:!1},preserveScroll:{type:Boolean,default:!1},preserveState:{type:Boolean,default:null},only:{type:Array,default:function(){return[]}},headers:{type:Object,default:function(){return{}}},queryStringArrayFormat:{type:String,default:"brackets"}},setup:function(e,t){var n=t.slots,r=t.attrs;return function(e){var t=e.as.toLowerCase(),i=e.method.toLowerCase(),a=s.mergeDataIntoQueryString(i,e.href||"",e.data,e.queryStringArrayFormat),c=a[0],u=a[1];return"a"===t&&"get"!==i&&console.warn('Creating POST/PUT/PATCH/DELETE <a> links is discouraged as it causes "Open Link in New Tab/Window" accessibility issues.\n\nPlease specify a more appropriate element using the "as" attribute. For example:\n\n<Link href="'+c+'" method="'+i+'" as="button">...</Link>'),o.h(e.as,l({},r,"a"===t?{href:c}:{},{onClick:function(t){var n;s.shouldIntercept(t)&&(t.preventDefault(),s.Inertia.visit(c,{data:u,method:i,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:null!=(n=e.preserveState)?n:"get"!==i,only:e.only,headers:e.headers,onCancelToken:r.onCancelToken||function(){return{}},onBefore:r.onBefore||function(){return{}},onStart:r.onStart||function(){return{}},onProgress:r.onProgress||function(){return{}},onFinish:r.onFinish||function(){return{}},onCancel:r.onCancel||function(){return{}},onSuccess:r.onSuccess||function(){return{}},onError:r.onError||function(){return{}}}))}}),n)}}};t.Fb=v,t.rU=y,t.yP=function(e){try{var t,n,r,i,a,s,l;n=void 0===(t=e.id)?"app":t,r=e.resolve,i=e.setup,a=e.title,s=e.page,l=e.render;var c="undefined"==typeof window,u=c?null:document.getElementById(n),p=s||JSON.parse(u.dataset.page),d=function(e){return Promise.resolve(r(e)).then((function(e){return e.default||e}))},f=[];return Promise.resolve(d(p.component).then((function(e){return i({el:u,app:m,App:m,props:{initialPage:p,initialComponent:e,resolveComponent:d,titleCallback:a,onHeadUpdate:c?function(e){return f=e}:null},plugin:g})}))).then((function(e){return function(){if(c)return Promise.resolve(l(o.createSSRApp({render:function(){return o.h("div",{id:n,"data-page":JSON.stringify(p),innerHTML:l(e)})}}))).then((function(e){return{head:f,body:e}}))}()}))}catch(e){return Promise.reject(e)}},t.qt=function(){return{props:o.computed((function(){return d.value.props})),url:o.computed((function(){return d.value.url})),component:o.computed((function(){return d.value.component})),version:o.computed((function(){return d.value.version}))}}},9680:(e,t,n)=>{function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=r(n(9669)),o=n(80129),a=r(n(9996));function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l,c={modal:null,listener:null,show:function(e){var t=this;"object"==typeof e&&(e="All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>"+JSON.stringify(e));var n=document.createElement("html");n.innerHTML=e,n.querySelectorAll("a").forEach((function(e){return e.setAttribute("target","_top")})),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",(function(){return t.hide()}));var r=document.createElement("iframe");if(r.style.backgroundColor="white",r.style.borderRadius="5px",r.style.width="100%",r.style.height="100%",this.modal.appendChild(r),document.body.prepend(this.modal),document.body.style.overflow="hidden",!r.contentWindow)throw new Error("iframe not yet ready.");r.contentWindow.document.open(),r.contentWindow.document.write(n.outerHTML),r.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide:function(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape:function(e){27===e.keyCode&&this.hide()}};function u(e,t){var n;return function(){var r=arguments,i=this;clearTimeout(n),n=setTimeout((function(){return e.apply(i,[].slice.call(r))}),t)}}function p(e,t,n){for(var r in void 0===t&&(t=new FormData),void 0===n&&(n=null),e=e||{})Object.prototype.hasOwnProperty.call(e,r)&&f(t,d(n,r),e[r]);return t}function d(e,t){return e?e+"["+t+"]":t}function f(e,t,n){return Array.isArray(n)?Array.from(n.keys()).forEach((function(r){return f(e,d(t,r.toString()),n[r])})):n instanceof Date?e.append(t,n.toISOString()):n instanceof File?e.append(t,n,n.name):n instanceof Blob?e.append(t,n):"boolean"==typeof n?e.append(t,n?"1":"0"):"string"==typeof n?e.append(t,n):"number"==typeof n?e.append(t,""+n):null==n?e.append(t,""):void p(n,e,t)}function h(e){return new URL(e.toString(),window.location.toString())}function m(e,n,r,i){void 0===i&&(i="brackets");var s=/^https?:\/\//.test(n.toString()),l=s||n.toString().startsWith("/"),c=!l&&!n.toString().startsWith("#")&&!n.toString().startsWith("?"),u=n.toString().includes("?")||e===t.Method.GET&&Object.keys(r).length,p=n.toString().includes("#"),d=new URL(n.toString(),"http://localhost");return e===t.Method.GET&&Object.keys(r).length&&(d.search=o.stringify(a(o.parse(d.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:i}),r={}),[[s?d.protocol+"//"+d.host:"",l?d.pathname:"",c?d.pathname.substring(1):"",u?d.search:"",p?d.hash:""].join(""),r]}function g(e){return(e=new URL(e.href)).hash="",e}function v(e,t){return document.dispatchEvent(new CustomEvent("inertia:"+e,t))}(l=t.Method||(t.Method={})).GET="get",l.POST="post",l.PUT="put",l.PATCH="patch",l.DELETE="delete";var y=function(e){return v("finish",{detail:{visit:e}})},b=function(e){return v("navigate",{detail:{page:e}})},x="undefined"==typeof window,w=function(){function e(){this.visitId=null}var n=e.prototype;return n.init=function(e){var t=e.resolveComponent,n=e.swapComponent;this.page=e.initialPage,this.resolveComponent=t,this.swapComponent=n,this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()},n.handleInitialPageVisit=function(e){this.page.url+=window.location.hash,this.setPage(e,{preserveState:!0}).then((function(){return b(e)}))},n.setupEventListeners=function(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",u(this.handleScrollEvent.bind(this),100),!0)},n.scrollRegions=function(){return document.querySelectorAll("[scroll-region]")},n.handleScrollEvent=function(e){"function"==typeof e.target.hasAttribute&&e.target.hasAttribute("scroll-region")&&this.saveScrollPositions()},n.saveScrollPositions=function(){this.replaceState(s({},this.page,{scrollRegions:Array.from(this.scrollRegions()).map((function(e){return{top:e.scrollTop,left:e.scrollLeft}}))}))},n.resetScrollPositions=function(){var e;window.scrollTo(0,0),this.scrollRegions().forEach((function(e){"function"==typeof e.scrollTo?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)})),this.saveScrollPositions(),window.location.hash&&(null==(e=document.getElementById(window.location.hash.slice(1)))||e.scrollIntoView())},n.restoreScrollPositions=function(){var e=this;this.page.scrollRegions&&this.scrollRegions().forEach((function(t,n){var r=e.page.scrollRegions[n];r&&("function"==typeof t.scrollTo?t.scrollTo(r.left,r.top):(t.scrollTop=r.top,t.scrollLeft=r.left))}))},n.isBackForwardVisit=function(){return window.history.state&&window.performance&&window.performance.getEntriesByType("navigation").length>0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},n.handleBackForwardVisit=function(e){var t=this;window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then((function(){t.restoreScrollPositions(),b(e)}))},n.locationVisit=function(e,t){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:t})),window.location.href=e.href,g(window.location).href===g(e).href&&window.location.reload()}catch(e){return!1}},n.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(e){return!1}},n.handleLocationVisit=function(e){var t,n,r,i,o=this,a=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=null!=(t=null==(n=window.history.state)?void 0:n.rememberedState)?t:{},e.scrollRegions=null!=(r=null==(i=window.history.state)?void 0:i.scrollRegions)?r:[],this.setPage(e,{preserveScroll:a.preserveScroll,preserveState:!0}).then((function(){a.preserveScroll&&o.restoreScrollPositions(),b(e)}))},n.isLocationVisitResponse=function(e){return e&&409===e.status&&e.headers["x-inertia-location"]},n.isInertiaResponse=function(e){return null==e?void 0:e.headers["x-inertia"]},n.createVisitId=function(){return this.visitId={},this.visitId},n.cancelVisit=function(e,t){var n=t.cancelled,r=void 0!==n&&n,i=t.interrupted,o=void 0!==i&&i;!e||e.completed||e.cancelled||e.interrupted||(e.cancelToken.cancel(),e.onCancel(),e.completed=!1,e.cancelled=r,e.interrupted=o,y(e),e.onFinish(e))},n.finishVisit=function(e){e.cancelled||e.interrupted||(e.completed=!0,e.cancelled=!1,e.interrupted=!1,y(e),e.onFinish(e))},n.resolvePreserveOption=function(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e},n.visit=function(e,n){var r=this,o=void 0===n?{}:n,a=o.method,l=void 0===a?t.Method.GET:a,u=o.data,d=void 0===u?{}:u,f=o.replace,y=void 0!==f&&f,b=o.preserveScroll,x=void 0!==b&&b,w=o.preserveState,A=void 0!==w&&w,_=o.only,C=void 0===_?[]:_,k=o.headers,S=void 0===k?{}:k,E=o.errorBag,T=void 0===E?"":E,O=o.forceFormData,M=void 0!==O&&O,L=o.onCancelToken,B=void 0===L?function(){}:L,D=o.onBefore,N=void 0===D?function(){}:D,j=o.onStart,P=void 0===j?function(){}:j,R=o.onProgress,F=void 0===R?function(){}:R,I=o.onFinish,z=void 0===I?function(){}:I,$=o.onCancel,q=void 0===$?function(){}:$,H=o.onSuccess,W=void 0===H?function(){}:H,U=o.onError,V=void 0===U?function(){}:U,K=o.queryStringArrayFormat,G=void 0===K?"brackets":K,Y="string"==typeof e?h(e):e;if(!function e(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some((function(t){return e(t)}))||"object"==typeof t&&null!==t&&Object.values(t).some((function(t){return e(t)}))}(d)&&!M||d instanceof FormData||(d=p(d)),!(d instanceof FormData)){var X=m(l,Y,d,G),J=X[1];Y=h(X[0]),d=J}var Z={url:Y,method:l,data:d,replace:y,preserveScroll:x,preserveState:A,only:C,headers:S,errorBag:T,forceFormData:M,queryStringArrayFormat:G,cancelled:!1,completed:!1,interrupted:!1};if(!1!==N(Z)&&function(e){return v("before",{cancelable:!0,detail:{visit:e}})}(Z)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Q=this.createVisitId();this.activeVisit=s({},Z,{onCancelToken:B,onBefore:N,onStart:P,onProgress:F,onFinish:z,onCancel:q,onSuccess:W,onError:V,queryStringArrayFormat:G,cancelToken:i.CancelToken.source()}),B({cancel:function(){r.activeVisit&&r.cancelVisit(r.activeVisit,{cancelled:!0})}}),function(e){v("start",{detail:{visit:e}})}(Z),P(Z),i({method:l,url:g(Y).href,data:l===t.Method.GET?{}:d,params:l===t.Method.GET?d:{},cancelToken:this.activeVisit.cancelToken.token,headers:s({},S,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},C.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":C.join(",")}:{},T&&T.length?{"X-Inertia-Error-Bag":T}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(e){d instanceof FormData&&(e.percentage=Math.round(e.loaded/e.total*100),function(e){v("progress",{detail:{progress:e}})}(e),F(e))}}).then((function(e){var t;if(!r.isInertiaResponse(e))return Promise.reject({response:e});var n=e.data;C.length&&n.component===r.page.component&&(n.props=s({},r.page.props,n.props)),x=r.resolvePreserveOption(x,n),(A=r.resolvePreserveOption(A,n))&&null!=(t=window.history.state)&&t.rememberedState&&n.component===r.page.component&&(n.rememberedState=window.history.state.rememberedState);var i=Y,o=h(n.url);return i.hash&&!o.hash&&g(i).href===o.href&&(o.hash=i.hash,n.url=o.href),r.setPage(n,{visitId:Q,replace:y,preserveScroll:x,preserveState:A})})).then((function(){var e=r.page.props.errors||{};if(Object.keys(e).length>0){var t=T?e[T]?e[T]:{}:e;return function(e){v("error",{detail:{errors:e}})}(t),V(t)}return v("success",{detail:{page:r.page}}),W(r.page)})).catch((function(e){if(r.isInertiaResponse(e.response))return r.setPage(e.response.data,{visitId:Q});if(r.isLocationVisitResponse(e.response)){var t=h(e.response.headers["x-inertia-location"]),n=Y;n.hash&&!t.hash&&g(n).href===t.href&&(t.hash=n.hash),r.locationVisit(t,!0===x)}else{if(!e.response)return Promise.reject(e);v("invalid",{cancelable:!0,detail:{response:e.response}})&&c.show(e.response.data)}})).then((function(){r.activeVisit&&r.finishVisit(r.activeVisit)})).catch((function(e){if(!i.isCancel(e)){var t=v("exception",{cancelable:!0,detail:{exception:e}});if(r.activeVisit&&r.finishVisit(r.activeVisit),t)return Promise.reject(e)}}))}},n.setPage=function(e,t){var n=this,r=void 0===t?{}:t,i=r.visitId,o=void 0===i?this.createVisitId():i,a=r.replace,s=void 0!==a&&a,l=r.preserveScroll,c=void 0!==l&&l,u=r.preserveState,p=void 0!==u&&u;return Promise.resolve(this.resolveComponent(e.component)).then((function(t){o===n.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},(s=s||h(e.url).href===window.location.href)?n.replaceState(e):n.pushState(e),n.swapComponent({component:t,page:e,preserveState:p}).then((function(){c||n.resetScrollPositions(),s||b(e)})))}))},n.pushState=function(e){this.page=e,window.history.pushState(e,"",e.url)},n.replaceState=function(e){this.page=e,window.history.replaceState(e,"",e.url)},n.handlePopstateEvent=function(e){var t=this;if(null!==e.state){var n=e.state,r=this.createVisitId();Promise.resolve(this.resolveComponent(n.component)).then((function(e){r===t.visitId&&(t.page=n,t.swapComponent({component:e,page:n,preserveState:!1}).then((function(){t.restoreScrollPositions(),b(n)})))}))}else{var i=h(this.page.url);i.hash=window.location.hash,this.replaceState(s({},this.page,{url:i.href})),this.resetScrollPositions()}},n.get=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({},r,{method:t.Method.GET,data:n}))},n.reload=function(e){return void 0===e&&(e={}),this.visit(window.location.href,s({},e,{preserveScroll:!0,preserveState:!0}))},n.replace=function(e,t){var n;return void 0===t&&(t={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(n=t.method)?n:"get")+"() instead."),this.visit(e,s({preserveState:!0},t,{replace:!0}))},n.post=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.POST,data:n}))},n.put=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.PUT,data:n}))},n.patch=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.PATCH,data:n}))},n.delete=function(e,n){return void 0===n&&(n={}),this.visit(e,s({preserveState:!0},n,{method:t.Method.DELETE}))},n.remember=function(e,t){var n,r;void 0===t&&(t="default"),x||this.replaceState(s({},this.page,{rememberedState:s({},null==(n=this.page)?void 0:n.rememberedState,(r={},r[t]=e,r))}))},n.restore=function(e){var t,n;if(void 0===e&&(e="default"),!x)return null==(t=window.history.state)||null==(n=t.rememberedState)?void 0:n[e]},n.on=function(e,t){var n=function(e){var n=t(e);e.cancelable&&!e.defaultPrevented&&!1===n&&e.preventDefault()};return document.addEventListener("inertia:"+e,n),function(){return document.removeEventListener("inertia:"+e,n)}},e}(),A={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var n=t.content.firstChild;if(!e.startsWith("<script "))return n;var r=document.createElement("script");return r.innerHTML=n.innerHTML,n.getAttributeNames().forEach((function(e){r.setAttribute(e,n.getAttribute(e)||"")})),r},isInertiaManagedElement:function(e){return e.nodeType===Node.ELEMENT_NODE&&null!==e.getAttribute("inertia")},findMatchingElementIndex:function(e,t){var n=e.getAttribute("inertia");return null!==n?t.findIndex((function(e){return e.getAttribute("inertia")===n})):-1},update:u((function(e){var t=this,n=e.map((function(e){return t.buildDOMElement(e)}));Array.from(document.head.childNodes).filter((function(e){return t.isInertiaManagedElement(e)})).forEach((function(e){var r=t.findMatchingElementIndex(e,n);if(-1!==r){var i,o=n.splice(r,1)[0];o&&!e.isEqualNode(o)&&(null==e||null==(i=e.parentNode)||i.replaceChild(o,e))}else{var a;null==e||null==(a=e.parentNode)||a.removeChild(e)}})),n.forEach((function(e){return document.head.appendChild(e)}))}),1)},_=new w;t.Inertia=_,t.createHeadManager=function(e,t,n){var r={},i=0;function o(){var e=Object.values(r).reduce((function(e,t){return e.concat(t)}),[]).reduce((function(e,n){if(-1===n.indexOf("<"))return e;if(0===n.indexOf("<title ")){var r=n.match(/(<title [^>]+>)(.*?)(<\/title>)/);return e.title=r?""+r[1]+t(r[2])+r[3]:n,e}var i=n.match(/ inertia="[^"]+"/);return i?e[i[0]]=n:e[Object.keys(e).length]=n,e}),{});return Object.values(e)}function a(){e?n(o()):A.update(o())}return{createProvider:function(){var e=function(){var e=i+=1;return r[e]=[],e.toString()}();return{update:function(t){return function(e,t){void 0===t&&(t=[]),null!==e&&Object.keys(r).indexOf(e)>-1&&(r[e]=t),a()}(e,t)},disconnect:function(){return function(e){null!==e&&-1!==Object.keys(r).indexOf(e)&&(delete r[e],a())}(e)}}}}},t.hrefToUrl=h,t.mergeDataIntoQueryString=m,t.shouldIntercept=function(e){var t="a"===e.currentTarget.tagName.toLowerCase();return!(e.target&&null!=e&&e.target.isContentEditable||e.defaultPrevented||t&&e.which>1||t&&e.altKey||t&&e.ctrlKey||t&&e.metaKey||t&&e.shiftKey)},t.urlWithoutHash=g},31966:(e,t,n)=>{var r,i=(r=n(74865))&&"object"==typeof r&&"default"in r?r.default:r,o=null;function a(e){document.addEventListener("inertia:start",s.bind(null,e)),document.addEventListener("inertia:progress",l),document.addEventListener("inertia:finish",c)}function s(e){o=setTimeout((function(){return i.start()}),e)}function l(e){i.isStarted()&&e.detail.progress.percentage&&i.set(Math.max(i.status,e.detail.progress.percentage/100*.9))}function c(e){clearTimeout(o),i.isStarted()&&(e.detail.visit.completed?i.done():e.detail.visit.interrupted?i.set(0):e.detail.visit.cancelled&&(i.done(),i.remove()))}t.I={init:function(e){var t=void 0===e?{}:e,n=t.delay,r=t.color,o=void 0===r?"#29d":r,s=t.includeCSS,l=void 0===s||s,c=t.showSpinner,u=void 0!==c&&c;a(void 0===n?250:n),i.configure({showSpinner:u}),l&&function(e){var t=document.createElement("style");t.type="text/css",t.textContent="\n    #nprogress {\n      pointer-events: none;\n    }\n\n    #nprogress .bar {\n      background: "+e+";\n\n      position: fixed;\n      z-index: 1031;\n      top: 0;\n      left: 0;\n\n      width: 100%;\n      height: 2px;\n    }\n\n    #nprogress .peg {\n      display: block;\n      position: absolute;\n      right: 0px;\n      width: 100px;\n      height: 100%;\n      box-shadow: 0 0 10px "+e+", 0 0 5px "+e+";\n      opacity: 1.0;\n\n      -webkit-transform: rotate(3deg) translate(0px, -4px);\n          -ms-transform: rotate(3deg) translate(0px, -4px);\n              transform: rotate(3deg) translate(0px, -4px);\n    }\n\n    #nprogress .spinner {\n      display: block;\n      position: fixed;\n      z-index: 1031;\n      top: 15px;\n      right: 15px;\n    }\n\n    #nprogress .spinner-icon {\n      width: 18px;\n      height: 18px;\n      box-sizing: border-box;\n\n      border: solid 2px transparent;\n      border-top-color: "+e+";\n      border-left-color: "+e+";\n      border-radius: 50%;\n\n      -webkit-animation: nprogress-spinner 400ms linear infinite;\n              animation: nprogress-spinner 400ms linear infinite;\n    }\n\n    .nprogress-custom-parent {\n      overflow: hidden;\n      position: relative;\n    }\n\n    .nprogress-custom-parent #nprogress .spinner,\n    .nprogress-custom-parent #nprogress .bar {\n      position: absolute;\n    }\n\n    @-webkit-keyframes nprogress-spinner {\n      0%   { -webkit-transform: rotate(0deg); }\n      100% { -webkit-transform: rotate(360deg); }\n    }\n    @keyframes nprogress-spinner {\n      0%   { transform: rotate(0deg); }\n      100% { transform: rotate(360deg); }\n    }\n  ",document.head.appendChild(t)}(o)}}},95551:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function o(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{fi:()=>ge});var s=Math.max,l=Math.min,c=Math.round;function u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function p(){return!/^((?!chrome|android).)*safari/i.test(u())}function d(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=1,l=1;t&&o(e)&&(s=e.offsetWidth>0&&c(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&c(a.height)/e.offsetHeight||1);var u=(i(e)?r(e):window).visualViewport,d=!p()&&n,f=(a.left+(d&&u?u.offsetLeft:0))/s,h=(a.top+(d&&u?u.offsetTop:0))/l,m=a.width/s,g=a.height/l;return{width:m,height:g,top:h,right:f+m,bottom:h+g,left:f,x:f,y:h}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return d(m(e)).left+f(e).scrollLeft}function v(e){return r(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function b(e,t,n){void 0===n&&(n=!1);var i,a,s=o(t),l=o(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),p=d(e,l,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!n)&&(("body"!==h(t)||y(u))&&(v=(i=t)!==r(i)&&o(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:f(i)),o(t)?((b=d(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=g(u))),{x:p.left+v.scrollLeft-b.x,y:p.top+v.scrollTop-b.y,width:p.width,height:p.height}}function x(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function w(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||m(e)}function A(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:o(e)&&y(e)?e:A(w(e))}function _(e,t){var n;void 0===t&&(t=[]);var i=A(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=r(i),s=o?[a].concat(a.visualViewport||[],y(i)?i:[]):i,l=t.concat(s);return o?l:l.concat(_(w(s)))}function C(e){return["table","td","th"].indexOf(h(e))>=0}function k(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function S(e){for(var t=r(e),n=k(e);n&&C(n)&&"static"===v(n).position;)n=k(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(u());if(/Trident/i.test(u())&&o(e)&&"fixed"===v(e).position)return null;var n=w(e);for(a(n)&&(n=n.host);o(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var E="top",T="bottom",O="right",M="left",L="auto",B=[E,T,O,M],D="start",N="end",j="clippingParents",P="viewport",R="popper",F="reference",I=B.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+N])}),[]),z=[].concat(B,[L]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+N])}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var H={placement:"bottom",modifiers:[],strategy:"absolute"};function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function U(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?H:o;return function(e,t,n){void 0===n&&(n=a);var o,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,p={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:i(e)?_(e):e.contextElement?_(e.contextElement):[],popper:_(t)};var s,u,f=function(e){var t=q(e);return $.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,l.options.modifiers),u=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:l,name:t,instance:p,options:r}),a=function(){};c.push(o||a)}})),p.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(W(t,n)){l.rects={reference:b(t,S(n),"fixed"===l.options.strategy),popper:x(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var i=l.orderedModifiers[r],o=i.fn,a=i.options,s=void 0===a?{}:a,c=i.name;"function"==typeof o&&(l=o({state:l,options:s,name:c,instance:p})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(l)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){d(),u=!0}};if(!W(e,t))return p;function d(){c.forEach((function(e){return e()})),c=[]}return p.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var V={passive:!0};function K(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?K(i):null,a=i?G(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case E:t={x:s,y:n.y-r.height};break;case T:t={x:s,y:n.y+n.height};break;case O:t={x:n.x+n.width,y:l};break;case M:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Y(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case D:t[c]=t[c]-(n[u]/2-r[u]/2);break;case N:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,p=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,g=void 0===h?0:h,y=s.y,b=void 0===y?0:y,x="function"==typeof d?d({x:g,y:b}):{x:g,y:b};g=x.x,b=x.y;var w=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),_=M,C=E,k=window;if(p){var L=S(n),B="clientHeight",D="clientWidth";if(L===r(n)&&"static"!==v(L=m(n)).position&&"absolute"===l&&(B="scrollHeight",D="scrollWidth"),o===E||(o===M||o===O)&&a===N)C=T,b-=(f&&L===k&&k.visualViewport?k.visualViewport.height:L[B])-i.height,b*=u?1:-1;if(o===M||(o===E||o===T)&&a===N)_=O,g-=(f&&L===k&&k.visualViewport?k.visualViewport.width:L[D])-i.width,g*=u?1:-1}var j,P=Object.assign({position:l},p&&J),R=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:c(n*i)/i||0,y:c(r*i)/i||0}}({x:g,y:b},r(n)):{x:g,y:b};return g=R.x,b=R.y,u?Object.assign({},P,((j={})[C]=A?"0":"",j[_]=w?"0":"",j.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",j)):Object.assign({},P,((t={})[C]=A?b+"px":"",t[_]=w?g+"px":"",t.transform="",t))}const Q={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=z.reduce((function(e,n){return e[n]=function(e,t,n){var r=K(e),i=[M,E].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[M,O].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ne={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,(function(e){return ne[e]}))}function ie(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ae(e,t,n){return t===P?oe(function(e,t){var n=r(e),i=m(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;var u=p();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l+g(e),y:c}}(e,n)):i(t)?function(e,t){var n=d(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):oe(function(e){var t,n=m(e),r=f(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+g(e),c=-r.scrollTop;return"rtl"===v(i||n).direction&&(l+=s(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}(m(e)))}function se(e,t,n,r){var a="clippingParents"===t?function(e){var t=_(w(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?S(e):e;return i(n)?t.filter((function(e){return i(e)&&ie(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),c=[].concat(a,[n]),u=c[0],p=c.reduce((function(t,n){var i=ae(e,n,r);return t.top=s(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=s(i.left,t.left),t}),ae(e,u,r));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function le(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,l=n.boundary,c=void 0===l?j:l,u=n.rootBoundary,p=void 0===u?P:u,f=n.elementContext,h=void 0===f?R:f,g=n.altBoundary,v=void 0!==g&&g,y=n.padding,b=void 0===y?0:y,x=le("number"!=typeof b?b:ce(b,B)),w=h===R?F:R,A=e.rects.popper,_=e.elements[v?w:h],C=se(i(_)?_:_.contextElement||m(e.elements.popper),c,p,s),k=d(e.elements.reference),S=X({reference:k,element:A,strategy:"absolute",placement:o}),M=oe(Object.assign({},A,S)),L=h===R?M:k,D={top:C.top-L.top+x.top,bottom:L.bottom-C.bottom+x.bottom,left:C.left-L.left+x.left,right:L.right-C.right+x.right},N=e.modifiersData.offset;if(h===R&&N){var I=N[o];Object.keys(D).forEach((function(e){var t=[O,T].indexOf(e)>=0?1:-1,n=[E,T].indexOf(e)>=0?"y":"x";D[e]+=I[n]*t}))}return D}function pe(e,t,n){return s(e,l(t,n))}const de={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=ue(t,{boundary:u,rootBoundary:p,padding:f,altBoundary:d}),b=K(t.placement),w=G(t.placement),A=!w,_=Y(b),C="x"===_?"y":"x",k=t.modifiersData.popperOffsets,L=t.rects.reference,B=t.rects.popper,N="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,j="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(k){if(o){var F,I="y"===_?E:M,z="y"===_?T:O,$="y"===_?"height":"width",q=k[_],H=q+y[I],W=q-y[z],U=m?-B[$]/2:0,V=w===D?L[$]:B[$],X=w===D?-B[$]:-L[$],J=t.elements.arrow,Z=m&&J?x(J):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[I],te=Q[z],ne=pe(0,L[$],Z[$]),re=A?L[$]/2-U-ne-ee-j.mainAxis:V-ne-ee-j.mainAxis,ie=A?-L[$]/2+U+ne+te+j.mainAxis:X+ne+te+j.mainAxis,oe=t.elements.arrow&&S(t.elements.arrow),ae=oe?"y"===_?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(F=null==P?void 0:P[_])?F:0,le=q+ie-se,ce=pe(m?l(H,q+re-se-ae):H,q,m?s(W,le):W);k[_]=ce,R[_]=ce-q}if(c){var de,fe="x"===_?E:M,he="x"===_?T:O,me=k[C],ge="y"===C?"height":"width",ve=me+y[fe],ye=me-y[he],be=-1!==[E,M].indexOf(b),xe=null!=(de=null==P?void 0:P[C])?de:0,we=be?ve:me-L[ge]-B[ge]-xe+j.altAxis,Ae=be?me+L[ge]+B[ge]-xe-j.altAxis:ye,_e=m&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(we,me,Ae):pe(m?we:ve,me,m?Ae:ye);k[C]=_e,R[C]=_e-me}t.modifiersData[r]=R}},requiresIfExists:["offset"]};const fe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=K(n.placement),l=Y(s),c=[M,O].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return le("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,B))}(i.padding,n),p=x(o),d="y"===l?E:M,f="y"===l?T:O,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=S(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[d],w=v-p[c]-u[f],A=v/2-p[c]/2+y,_=pe(b,A,w),C=l;n.modifiersData[r]=((t={})[C]=_,t.centerOffset=_-A,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ie(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[E,O,T,M].some((function(t){return e[t]>=0}))}var ge=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,l=void 0===s||s,c=r(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,V)})),l&&c.addEventListener("resize",n.update,V),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,V)})),l&&c.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:K(t.placement),variation:G(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Z(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&h(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Q,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=K(g),y=l||(v===g||!h?[te(g)]:function(e){if(K(e)===L)return[];var t=te(e);return[re(e),t,re(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(K(n)===L?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?z:l,u=G(r),p=u?s?I:I.filter((function(e){return G(e)===u})):B,d=p.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,n){return t[n]=ue(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[K(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,A=new Map,_=!0,C=b[0],k=0;k<b.length;k++){var S=b[k],N=K(S),j=G(S)===D,P=[E,T].indexOf(N)>=0,R=P?"width":"height",F=ue(t,{placement:S,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),$=P?j?O:M:j?T:E;x[R]>w[R]&&($=te($));var q=te($),H=[];if(o&&H.push(F[N]<=0),s&&H.push(F[$]<=0,F[q]<=0),H.every((function(e){return e}))){C=S,_=!1;break}A.set(S,H)}if(_)for(var W=function(e){var t=b.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},U=h?3:1;U>0;U--){if("break"===W(U))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},de,fe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),l=he(a,r),c=he(s,i,o),u=me(l),p=me(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]})},10175:(e,t,n)=>{var r=n(34155);function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(76914)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))})),e.splice(o,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())},76914:(e,t,n)=>{var r;function i(e){function n(){if(n.enabled){var e=n,i=+new Date,o=i-(r||i);e.diff=o,e.prev=r,e.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var i=t.formatters[r];if("function"==typeof i){var o=a[l];n=i.call(e,o),a.splice(l,1),l--}return n})),t.formatArgs.call(e,a),(n.log||t.log||console.log.bind(console)).apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(46601),t.names=[],t.skips=[],t.formatters={}},77055:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},46601:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,o=365.25*i;function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,s){s=s||{};var l,c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!a)return;var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return s.long?a(l=e,i,"day")||a(l,r,"hour")||a(l,n,"minute")||a(l,t,"second")||l+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=r)return Math.round(e/r)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},51580:(e,t,n)=>{var r=n(34155);e.exports=c;var i=n(23733),o=n(93753),a=n(99437),s=n(44475),l=r.env.RESET_APP_DATA_TIMER&&parseInt(r.env.RESET_APP_DATA_TIMER,10)||12e4;function c(e,t,r){var o=n(10175)("algoliasearch"),a=n(82882),s=n(77055),l=n(37164),c="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==r._allowEmptyCredentials&&!e)throw new i.AlgoliaSearchError("Please provide an application ID. "+c);if(!0!==r._allowEmptyCredentials&&!t)throw new i.AlgoliaSearchError("Please provide an API key. "+c);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},r=r||{},this._timeouts=r.timeouts||{connect:1e3,read:2e3,write:3e4},r.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=r.timeout);var p=r.protocol||"https:";if(/:$/.test(p)||(p+=":"),"http:"!==p&&"https:"!==p)throw new i.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+r.protocol+"`)");if(this._checkAppIdData(),r.hosts)s(r.hosts)?(this.hosts.read=a(r.hosts),this.hosts.write=a(r.hosts)):(this.hosts.read=a(r.hosts.read),this.hosts.write=a(r.hosts.write));else{var d=l(this._shuffleResult,(function(t){return e+"-"+t+".algolianet.com"})),f=(!1===r.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+f].concat(d),this.hosts.write=[this.applicationID+".algolia.net"].concat(d)}this.hosts.read=l(this.hosts.read,u(p)),this.hosts.write=l(this.hosts.write,u(p)),this.extraHeaders={},this.cache=r._cache||{},this._ua=r._ua,this._useCache=!(void 0!==r._useCache&&!r._cache)||r._useCache,this._useRequestCache=this._useCache&&r._useRequestCache,this._useFallback=void 0===r.useFallback||r.useFallback,this._setTimeout=r._setTimeout,o("init done, %j",this)}function u(e){return function(t){return e+"//"+t.toLowerCase()}}function p(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(e);return Array.prototype.toJSON=t,n}function d(e){var t={};for(var n in e){var r;if(Object.prototype.hasOwnProperty.call(e,n))r="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],t[n]=r}return t}c.prototype.initIndex=function(e){return new a(this,e)},c.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},c.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},c.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},c.prototype.addAlgoliaAgent=function(e){var t="; "+e;-1===this._ua.indexOf(t)&&(this._ua+=t)},c.prototype._jsonRequest=function(e){this._checkAppIdData();var t,r,a,s=n(10175)("algoliasearch:"+e.url),l=e.additionalUA||"",c=e.cache,u=this,f=0,h=!1,m=u._useFallback&&u._request.fallback&&e.fallback;this.apiKey.length>500&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,a=this._computeRequestHeaders({additionalUA:l,withApiKey:!1,headers:e.headers})):a=this._computeRequestHeaders({additionalUA:l,headers:e.headers}),void 0!==e.body&&(t=p(e.body)),s("request start");var g=[];function v(e,t,n){return u._useCache&&e&&t&&void 0!==t[n]}function y(t,n){if(v(u._useRequestCache,c,r)&&t.catch((function(){delete c[r]})),"function"!=typeof e.callback)return t.then(n);t.then((function(t){o((function(){e.callback(null,n(t))}),u._setTimeout||setTimeout)}),(function(t){o((function(){e.callback(t)}),u._setTimeout||setTimeout)}))}if(u._useCache&&u._useRequestCache&&(r=e.url),u._useCache&&u._useRequestCache&&t&&(r+="_body_"+t),v(u._useRequestCache,c,r)){s("serving request from cache");var b=c[r];return y("function"!=typeof b.then?u._promise.resolve({responseText:b}):b,(function(e){return JSON.parse(e.responseText)}))}var x=function n(o,y){u._checkAppIdData();var b=new Date;if(u._useCache&&!u._useRequestCache&&(r=e.url),u._useCache&&!u._useRequestCache&&t&&(r+="_body_"+y.body),v(!u._useRequestCache,c,r)){s("serving response from cache");var x=c[r];return u._promise.resolve({body:JSON.parse(x),responseText:x})}if(f>=u.hosts[e.hostType].length)return!m||h?(s("could not get any response"),u._promise.reject(new i.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+u.applicationID,{debugData:g}))):(s("switching to fallback"),f=0,y.method=e.fallback.method,y.url=e.fallback.url,y.jsonBody=e.fallback.body,y.jsonBody&&(y.body=p(y.jsonBody)),a=u._computeRequestHeaders({additionalUA:l,headers:e.headers}),y.timeouts=u._getTimeoutsForRequest(e.hostType),u._setHostIndexByType(0,e.hostType),h=!0,n(u._request.fallback,y));var w=u._getHostByType(e.hostType),A=w+y.url,_={body:y.body,jsonBody:y.jsonBody,method:y.method,headers:a,timeouts:y.timeouts,debug:s,forceAuthHeaders:y.forceAuthHeaders};return s("method: %s, url: %s, headers: %j, timeouts: %d",_.method,A,_.headers,_.timeouts),o===u._request.fallback&&s("using fallback"),o.call(u,A,_).then((function(e){var n=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;s("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,n,e.headers);var o=2===Math.floor(n/100),l=new Date;if(g.push({currentHost:w,headers:d(a),content:t||null,contentLength:void 0!==t?t.length:null,method:y.method,timeouts:y.timeouts,url:y.url,startTime:b,endTime:l,duration:l-b,statusCode:n}),o)return u._useCache&&!u._useRequestCache&&c&&(c[r]=e.responseText),{responseText:e.responseText,body:e.body};if(4!==Math.floor(n/100))return f+=1,C();s("unrecoverable error");var p=new i.AlgoliaSearchError(e.body&&e.body.message,{debugData:g,statusCode:n});return u._promise.reject(p)}),(function(r){s("error: %s, stack: %s",r.message,r.stack);var l=new Date;g.push({currentHost:w,headers:d(a),content:t||null,contentLength:void 0!==t?t.length:null,method:y.method,timeouts:y.timeouts,url:y.url,startTime:b,endTime:l,duration:l-b}),r instanceof i.AlgoliaSearchError||(r=new i.Unknown(r&&r.message,r));if(f+=1,r instanceof i.Unknown||r instanceof i.UnparsableJSON||f>=u.hosts[e.hostType].length&&(h||!m))return r.debugData=g,u._promise.reject(r);if(r instanceof i.RequestTimeout)return s("retrying request with higher timeout"),u._incrementHostIndex(e.hostType),u._incrementTimeoutMultipler(),y.timeouts=u._getTimeoutsForRequest(e.hostType),n(o,y);return C()}));function C(){return s("retrying request"),u._incrementHostIndex(e.hostType),n(o,y)}}(u._request,{url:e.url,method:e.method,body:t,jsonBody:e.body,timeouts:u._getTimeoutsForRequest(e.hostType),forceAuthHeaders:e.forceAuthHeaders});return u._useCache&&u._useRequestCache&&c&&(c[r]=x),y(x,(function(e){return e.body}))},c.prototype._getSearchParams=function(e,t){if(null==e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?p(e[n]):e[n]));return t},c.prototype._computeRequestHeaders=function(e){var t=n(49804),r={"x-algolia-agent":e.additionalUA?this._ua+"; "+e.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(r["x-algolia-api-key"]=this.apiKey),this.userToken&&(r["x-algolia-usertoken"]=this.userToken),this.securityTags&&(r["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,(function(e,t){r[t]=e})),e.headers&&t(e.headers,(function(e,t){r[t]=e})),r},c.prototype.search=function(e,t,r){var i=n(77055),o=n(37164);if(!i(e))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var a=this,s={requests:o(e,(function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:a._getSearchParams(e.params,t)}}))},l=o(s.requests,(function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)})).join("&");return void 0!==t.strategy&&(s.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:s,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:l}},callback:r})},c.prototype.searchForFacetValues=function(e){var t=n(77055),r=n(37164),i="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(i);var o=this;return o._promise.all(r(e,(function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw new Error(i);var t=n(82882),r=n(33076),a=e.indexName,s=e.params,l=s.facetName,c=r(t(s),(function(e){return"facetName"===e})),u=o._getSearchParams(c,"");return o._jsonRequest({cache:o.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(a)+"/facets/"+encodeURIComponent(l)+"/query",hostType:"read",body:{params:u}})})))},c.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;n<e.length;++n)if("[object Array]"===Object.prototype.toString.call(e[n])){for(var r=[],i=0;i<e[n].length;++i)r.push(e[n][i]);t.push("("+r.join(",")+")")}else t.push(e[n]);e=t.join(",")}this.securityTags=e},c.prototype.setUserToken=function(e){this.userToken=e},c.prototype.clearCache=function(){this.cache={}},c.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},c.prototype.setTimeouts=function(e){this._timeouts=e},c.prototype.getTimeouts=function(){return this._timeouts},c.prototype._getAppIdData=function(){var e=s.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},c.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),s.set(this.applicationID,e)},c.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>l?this._resetInitialAppIdData(e):e},c.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||function(e){var t,n,r=e.length;for(;0!==r;)n=Math.floor(Math.random()*r),t=e[r-=1],e[r]=e[n],e[n]=t;return e}([1,2,3]),this._setAppIdData(t)},c.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},c.prototype._partialAppIdDataUpdate=function(e){var t=n(49804),r=this._getAppIdData();return t(e,(function(e,t){r[t]=e})),this._setAppIdData(r)},c.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},c.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},c.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},c.prototype._setHostIndexByType=function(e,t){var r=n(82882)(this._hostIndexes);return r[t]=e,this._partialAppIdDataUpdate({hostIndexes:r}),e},c.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},c.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},c.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}},99437:(e,t,n)=>{var r=n(10148),i=n(93043),o=n(10137);function a(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}e.exports=a,a.prototype.clearCache=function(){this.cache={}},a.prototype.search=r("query"),a.prototype.similarSearch=i(r("similarQuery"),o("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),a.prototype.browse=function(e,t,r){var i,o,a=n(51004);0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(i=0,r=arguments[0],e=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?o=arguments[1]:"function"==typeof arguments[1]&&(r=arguments[1],o=void 0),e=void 0,t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(r=arguments[1]),t=arguments[0],e=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(r=arguments[1],t=void 0),t=a({},t||{},{page:i,hitsPerPage:o,query:e});var s=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{params:s},hostType:"read",callback:r})},a.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},a.prototype.searchForFacetValues=function(e,t){var r=n(82882),i=n(33076);if(void 0===e.facetName||void 0===e.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var o=e.facetName,a=i(r(e),(function(e){return"facetName"===e})),s=this.as._getSearchParams(a,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(o)+"/query",hostType:"read",body:{params:s},callback:t})},a.prototype.searchFacet=i((function(e,t){return this.searchForFacetValues(e,t)}),o("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),a.prototype._search=function(e,t,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:r})},a.prototype.getObject=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var r="";if(void 0!==t){r="?attributes=";for(var i=0;i<t.length;++i)0!==i&&(r+=","),r+=t[i]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e)+r,hostType:"read",callback:n})},a.prototype.getObjects=function(e,t,r){var i=n(77055),o=n(37164);if(!i(e))throw new Error("Usage: index.getObjects(arrayOfObjectIDs[, callback])");var a=this;1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0);var s={requests:o(e,(function(e){var n={indexName:a.indexName,objectID:e};return t&&(n.attributesToRetrieve=t.join(",")),n}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:s,callback:r})},a.prototype.as=null,a.prototype.indexName=null,a.prototype.typeAheadArgs=null,a.prototype.typeAheadValueOption=null},67191:(e,t,n)=>{"use strict";var r=n(51580),i=n(8779);e.exports=i(r,"Browser (lite)")},8779:(e,t,n)=>{"use strict";var r=n(58908),i=r.Promise||n(82702).Promise;e.exports=function(e,t){var o=n(35717),a=n(23733),s=n(80660),l=n(53970),c=n(94504);function u(e,t,r){return(r=n(82882)(r||{}))._ua=r._ua||u.ua,new d(e,t,r)}t=t||"",u.version=n(4572),u.ua="Algolia for JavaScript ("+u.version+"); "+t,u.initPlaces=c(u),r.__algolia={debug:n(10175),algoliasearch:u};var p={hasXMLHttpRequest:"XMLHttpRequest"in r,hasXDomainRequest:"XDomainRequest"in r};function d(){e.apply(this,arguments)}return p.hasXMLHttpRequest&&(p.cors="withCredentials"in new XMLHttpRequest),o(d,e),d.prototype._request=function(e,t){return new i((function(n,r){if(p.cors||p.hasXDomainRequest){e=s(e,t.headers);var i,o,l=t.body,c=p.cors?new XMLHttpRequest:new XDomainRequest,u=!1;i=setTimeout(d,t.timeouts.connect),c.onprogress=function(){u||f()},"onreadystatechange"in c&&(c.onreadystatechange=function(){!u&&c.readyState>1&&f()}),c.onload=function(){if(o)return;var e;clearTimeout(i);try{e={body:JSON.parse(c.responseText),responseText:c.responseText,statusCode:c.status,headers:c.getAllResponseHeaders&&c.getAllResponseHeaders()||{}}}catch(t){e=new a.UnparsableJSON({more:c.responseText})}e instanceof a.UnparsableJSON?r(e):n(e)},c.onerror=function(e){if(o)return;clearTimeout(i),r(new a.Network({more:e}))},c instanceof XMLHttpRequest?(c.open(t.method,e,!0),t.forceAuthHeaders&&(c.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),c.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):c.open(t.method,e),p.cors&&(l&&("POST"===t.method?c.setRequestHeader("content-type","application/x-www-form-urlencoded"):c.setRequestHeader("content-type","application/json")),c.setRequestHeader("accept","application/json")),l?c.send(l):c.send()}else r(new a.Network("CORS not supported"));function d(){o=!0,c.abort(),r(new a.RequestTimeout)}function f(){u=!0,clearTimeout(i),i=setTimeout(d,t.timeouts.complete)}}))},d.prototype._request.fallback=function(e,t){return e=s(e,t.headers),new i((function(n,r){l(e,t,(function(e,t){e?r(e):n(t)}))}))},d.prototype._promise={reject:function(e){return i.reject(e)},resolve:function(e){return i.resolve(e)},delay:function(e){return new i((function(t){setTimeout(t,e)}))},all:function(e){return i.all(e)}},u}},80660:(e,t,n)=>{"use strict";e.exports=function(e,t){/\?/.test(e)?e+="&":e+="?";return e+r(t)};var r=n(68795)},53970:(e,t,n)=>{"use strict";e.exports=function(e,t,n){if("GET"!==t.method)return void n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));t.debug("JSONP: start");var o=!1,a=!1;i+=1;var s=document.getElementsByTagName("head")[0],l=document.createElement("script"),c="algoliaJSONP_"+i,u=!1;window[c]=function(e){!function(){try{delete window[c],delete window[c+"_loaded"]}catch(e){window[c]=window[c+"_loaded"]=void 0}}(),a?t.debug("JSONP: Late answer, ignoring"):(o=!0,f(),n(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+c,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var p=setTimeout((function(){t.debug("JSONP: Script timeout"),a=!0,f(),n(new r.RequestTimeout)}),t.timeouts.complete);function d(){t.debug("JSONP: success"),u||a||(u=!0,o||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),f(),n(new r.JSONPScriptFail)))}function f(){clearTimeout(p),l.onload=null,l.onreadystatechange=null,l.onerror=null,s.removeChild(l)}l.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||d()},l.onload=d,l.onerror=function(){t.debug("JSONP: Script error"),u||a||(f(),n(new r.JSONPScriptError))},l.async=!0,l.defer=!0,l.src=e,s.appendChild(l)};var r=n(23733),i=0},10148:(e,t,n)=>{e.exports=function(e,t){return function(n,i,o){if("function"==typeof n&&"object"==typeof i||"object"==typeof o)throw new r.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(o=n,n=""):1!==arguments.length&&"function"!=typeof i||(o=i,i=void 0),"object"==typeof n&&null!==n?(i=n,n=void 0):null==n&&(n="");var a,s="";return void 0!==n&&(s+=e+"="+encodeURIComponent(n)),void 0!==i&&(i.additionalUA&&(a=i.additionalUA,delete i.additionalUA),s=this.as._getSearchParams(i,s)),this._search(s,t,o,a)}};var r=n(23733)},82882:e=>{e.exports=function(e){return JSON.parse(JSON.stringify(e))}},93043:e=>{e.exports=function(e,t){var n=!1;return function(){return n||(console.warn(t),n=!0),e.apply(this,arguments)}}},10137:e=>{e.exports=function(e,t){var n=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},23733:(e,t,n)=>{"use strict";var r=n(35717);function i(e,t){var r=n(49804),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&r(t,(function(e,t){i[t]=e}))}function o(e,t){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(t),i.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return r(n,i),n}r(i,Error),e.exports={AlgoliaSearchError:i,UnparsableJSON:o("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:o("RequestTimeout","Request timed out before getting a response"),Network:o("Network","Network issue, see err.more for details"),JSONPScriptFail:o("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:o("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:o("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:o("ObjectNotFound","Object not found"),Unknown:o("Unknown","Unknown error occured")}},93753:e=>{e.exports=function(e,t){t(e,0)}},37164:(e,t,n)=>{var r=n(49804);e.exports=function(e,t){var n=[];return r(e,(function(r,i){n.push(t(r,i,e))})),n}},51004:(e,t,n)=>{var r=n(49804);e.exports=function e(t){var n=Array.prototype.slice.call(arguments);return r(n,(function(n){for(var r in n)n.hasOwnProperty(r)&&("object"==typeof t[r]&&"object"==typeof n[r]?t[r]=e({},t[r],n[r]):void 0!==n[r]&&(t[r]=n[r]))})),t}},33076:(e,t,n)=>{e.exports=function(e,t){var r=n(82215),i=n(49804),o={};return i(r(e),(function(n){!0!==t(n)&&(o[n]=e[n])})),o}},94504:(e,t,n)=>{e.exports=function(e){return function(t,o,a){var s=n(82882);(a=a&&s(a)||{}).hosts=a.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof t&&void 0!==t||(t="",o="",a._allowEmptyCredentials=!0);var l=e(t,o,a).initIndex("places");return l.search=i("query","/1/places/query"),l.reverse=function(e,t){var n=r.encode(e);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+n,hostType:"read",callback:t})},l.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},l}};var r=n(87735),i=n(10148)},44475:(e,t,n)=>{var r,i=n(10175)("algoliasearch:src/hostIndexState.js"),o="algoliasearch-client-js",a={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},s={set:function(e,t){a.set(e,t);try{var r=JSON.parse(n.g.localStorage[o]);return r[e]=t,n.g.localStorage[o]=JSON.stringify(r),r[e]}catch(t){return l(e,t)}},get:function(e){try{return JSON.parse(n.g.localStorage[o])[e]||null}catch(t){return l(e,t)}}};function l(e,t){return i("localStorage failed with",t),function(){try{n.g.localStorage.removeItem(o)}catch(e){}}(),(r=a).get(e)}function c(e,t){return 1===arguments.length?r.get(e):r.set(e,t)}function u(){try{return"localStorage"in n.g&&null!==n.g.localStorage&&(n.g.localStorage[o]||n.g.localStorage.setItem(o,JSON.stringify({})),!0)}catch(e){return!1}}r=u()?s:a,e.exports={get:c,set:c,supportsLocalStorage:u}},4572:e=>{"use strict";e.exports="3.35.1"},67277:function(e,t,n){var r,i,o,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},a.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n.g&&null!=n.g?n.g:e},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(e){return a.SYMBOL_PREFIX+(e||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var e=a.global.Symbol.iterator;e||(e=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&a.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(e){var t=0;return a.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},a.iteratorPrototype=function(e){return a.initSymbolIterator(),(e={next:e})[a.global.Symbol.iterator]=function(){return this},e},a.array=a.array||{},a.iteratorFromArray=function(e,t){a.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},a.polyfill=function(e,t,n,r){if(t){for(n=a.global,e=e.split("."),r=0;r<e.length-1;r++){var i=e[r];i in n||(n[i]={}),n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&a.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},a.polyfill("Array.prototype.keys",(function(e){return e||function(){return a.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var s=this;i=[],r=function(){function e(e){if(!F.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in e){var a=e[o];t.call(r,a,o,e)&&i.push(a)}return i}function n(e){return e.reduce((function(e,t){return e.concat(F.arr(t)?n(t):t)}),[])}function r(t){return F.arr(t)?t:(F.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function i(e,t){return e.some((function(e){return e===t}))}function o(e){var t,n={};for(t in e)n[t]=e[t];return n}function a(e,t){var n,r=o(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function l(e,t){var n,r=o(e);for(n in t)r[n]=F.und(e[n])?t[n]:e[n];return r}function c(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}function u(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,i=parseInt(n[3])/100;if(n=n[4]||1,0==r)i=r=e=i;else{var o=.5>i?i*(1+r):i+r-i*r,a=2*i-o;i=t(a,o,e+1/3),r=t(a,o,e),e=t(a,o,e-1/3)}return"rgba("+255*i+","+255*r+","+255*e+","+n+")"}function p(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function d(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}function f(e,t){return F.fnc(e)?e(t.target,t.id,t.total):e}function h(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function m(e,t){return F.dom(e)&&i(R,t)?"transform":F.dom(e)&&(e.getAttribute(t)||F.svg(e)&&e[t])?"attribute":F.dom(e)&&"transform"!==t&&h(e,t)?"css":null!=e[t]?"object":void 0}function g(e,n){var r=d(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var i=[],o=[],a=[],s=/(\w+)\((.+?)\)/g;i=s.exec(e);)o.push(i[1]),a.push(i[2]);return e=t(a,(function(e,t){return o[t]===n})),e.length?e[0]:r}function v(e,t){switch(m(e,t)){case"transform":return g(e,t);case"css":return h(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function y(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=p(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function b(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function x(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var i=e.getItem(r);0<r&&(n+=b(t,i)),t=i}return n}function w(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return b({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return x(e);case"polygon":var t=e.points;return x(e)+b(t.getItem(t.numberOfItems-1),t.getItem(0))}}function A(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),i=n(-1),o=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(o.y-i.y,o.x-i.x)/Math.PI}}function _(e,t){var n,r=/-?\d*\.?\d+/g;if(n=F.pth(e)?e.totalLength:e,F.col(n))if(F.rgb(n)){var i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=i?"rgba("+i[1]+",1)":n}else n=F.hex(n)?c(n):F.hsl(n)?u(n):void 0;else i=(i=p(n))?n.substr(0,n.length-i.length):n,n=t&&!/\s/g.test(n)?i+t:i;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:F.str(e)||t?n.split(r):[]}}function C(e){return t(e=e?n(F.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function k(e){var t=C(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}function S(e,t){var n=o(t);if(F.arr(e)){var i=e.length;2!==i||F.obj(e[0])?F.fnc(t.duration)||(n.duration=t.duration/i):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=F.obj(e)&&!F.pth(e)?e:{value:e},F.und(e.delay)&&(e.delay=n),e})).map((function(e){return l(e,n)}))}function E(e,t){var n,r={};for(n in e){var i=f(e[n],t);F.arr(i)&&(i=i.map((function(e){return f(e,t)})),1===i.length&&(i=i[0])),r[n]=i}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function T(e){return F.arr(e)?I.apply(this,e):z[e]}function O(e,t){var n;return e.tweens.map((function(r){var i=(r=E(r,t)).value,o=v(t.target,e.name),a=n?n.to.original:o,s=(a=F.arr(i)?i[0]:a,y(F.arr(i)?i[1]:i,a));return o=p(s)||p(a)||p(o),r.from=_(a,o),r.to=_(s,o),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=T(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=F.pth(i),r.isColor=F.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function M(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=m(e.target,t.name);if(n){var r=O(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!F.und(e)}))}function L(e,t,n,r){var i="delay"===e;return t.length?(i?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):i?r.delay:n.offset+r.delay+r.duration}function B(e){var t,n=a(j,e),r=a(P,e),i=k(e.targets),o=[],s=l(n,r);for(t in e)s.hasOwnProperty(t)||"targets"===t||o.push({name:t,offset:s.offset,tweens:S(e[t],r)});return l(n,{children:[],animatables:i,animations:e=M(i,o),duration:L("duration",e,n,r),delay:L("delay",e,n,r)})}function D(e){function n(){return window.Promise&&new Promise((function(e){return p=e}))}function r(e){return f.reversed?f.duration-e:e}function i(e){for(var n=0,r={},i=f.animations,o=i.length;n<o;){var a=i[n],s=a.animatable,l=(c=a.tweens)[d=c.length-1];d&&(l=t(c,(function(t){return e<t.end}))[0]||l);for(var c=Math.min(Math.max(e-l.start-l.delay,0),l.duration)/l.duration,u=isNaN(c)?1:l.easing(c,l.elasticity),p=(c=l.to.strings,l.round),d=[],m=void 0,g=(m=l.to.numbers.length,0);g<m;g++){var v=void 0,y=(v=l.to.numbers[g],l.from.numbers[g]);v=l.isPath?A(l.value,u*v):y+u*(v-y),p&&(l.isColor&&2<g||(v=Math.round(v*p)/p)),d.push(v)}if(l=c.length)for(m=c[0],u=0;u<l;u++)p=c[u+1],g=d[u],isNaN(g)||(m=p?m+(g+p):m+(g+" "));else m=d[0];$[a.type](s.target,a.property,m,r,s.id),a.currentValue=m,n++}if(n=Object.keys(r).length)for(i=0;i<n;i++)N||(N=h(document.body,"transform")?"transform":"-webkit-transform"),f.animatables[i].target.style[N]=r[i].join(" ");f.currentTime=e,f.progress=e/f.duration*100}function o(e){f[e]&&f[e](f)}function a(){f.remaining&&!0!==f.remaining&&f.remaining--}function s(e){var t=f.duration,s=f.offset,h=s+f.delay,m=f.currentTime,g=f.reversed,v=r(e);if(f.children.length){var y=f.children,b=y.length;if(v>=f.currentTime)for(var x=0;x<b;x++)y[x].seek(v);else for(;b--;)y[b].seek(v)}(v>=h||!t)&&(f.began||(f.began=!0,o("begin")),o("run")),v>s&&v<t?i(v):(v<=s&&0!==m&&(i(0),g&&a()),(v>=t&&m!==t||!t)&&(i(t),g||a())),o("update"),e>=t&&(f.remaining?(c=l,"alternate"===f.direction&&(f.reversed=!f.reversed)):(f.pause(),f.completed||(f.completed=!0,o("complete"),"Promise"in window&&(p(),d=n()))),u=0)}e=void 0===e?{}:e;var l,c,u=0,p=null,d=n(),f=B(e);return f.reset=function(){var e=f.direction,t=f.loop;for(f.currentTime=0,f.progress=0,f.paused=!0,f.began=!1,f.completed=!1,f.reversed="reverse"===e,f.remaining="alternate"===e&&1===t?2:t,i(0),e=f.children.length;e--;)f.children[e].reset()},f.tick=function(e){l=e,c||(c=l),s((u+l-c)*D.speed)},f.seek=function(e){s(r(e))},f.pause=function(){var e=q.indexOf(f);-1<e&&q.splice(e,1),f.paused=!0},f.play=function(){f.paused&&(f.paused=!1,c=0,u=r(f.currentTime),q.push(f),H||W())},f.reverse=function(){f.reversed=!f.reversed,c=0,u=r(f.currentTime)},f.restart=function(){f.pause(),f.reset(),f.play()},f.finished=d,f.reset(),f.autoplay&&f.play(),f}var N,j={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},P={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},R="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),F={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return F.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||F.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return F.hex(e)||F.rgb(e)||F.hsl(e)}},I=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,i){if(0<=t&&1>=t&&0<=r&&1>=r){var o=new Float32Array(11);if(t!==n||r!==i)for(var a=0;11>a;++a)o[a]=e(.1*a,t,r);return function(a){if(t===n&&r===i)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,l=1;10!==l&&o[l]<=a;++l)s+=.1;--l,l=s+(a-o[l])/(o[l+1]-o[l])*.1;var c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t;if(.001<=c){for(s=0;4>s&&0!=(c=3*(1-3*r+3*t)*l*l+2*(3*r-6*t)*l+3*t);++s){var u=e(l,t,r)-a;l-=u/c}a=l}else if(0===c)a=l;else{l=s,s+=.1;var p=0;do{0<(c=e(u=l+(s-l)/2,t,r)-a)?s=u:l=u}while(1e-7<Math.abs(c)&&10>++p);a=u}return e(a,n,i)}}}}(),z=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},i={linear:I(.25,.25,.75,.75)},o={};for(t in r)o.type=t,r[o.type].forEach(function(e){return function(t,r){i["ease"+e.type+n[r]]=F.fnc(t)?t:I.apply(s,t)}}(o)),o={type:o.type};return i}(),$={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,i){r[i]||(r[i]=[]),r[i].push(t+"("+n+")")}},q=[],H=0,W=function(){function e(){H=requestAnimationFrame(t)}function t(t){var n=q.length;if(n){for(var r=0;r<n;)q[r]&&q[r].tick(t),r++;e()}else cancelAnimationFrame(H),H=0}return e}();return D.version="2.2.0",D.speed=1,D.running=q,D.remove=function(e){e=C(e);for(var t=q.length;t--;)for(var n=q[t],r=n.animations,o=r.length;o--;)i(e,r[o].animatable.target)&&(r.splice(o,1),r.length||n.pause())},D.getValue=v,D.path=function(t,n){var r=F.str(t)?e(t)[0]:t,i=n||100;return function(e){return{el:r,property:e,totalLength:w(r)*(i/100)}}},D.setDashoffset=function(e){var t=w(e);return e.setAttribute("stroke-dasharray",t),t},D.bezier=I,D.easings=z,D.timeline=function(e){var t=D(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=l(n,a(P,e||{}));r.targets=r.targets||e.targets,n=t.duration;var i=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=F.und(i)?n:y(i,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=D(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},D.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},D},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},71639:(e,t,n)=>{"use strict";e.exports=n(29281)},47114:(e,t,n)=>{"use strict";var r=n(85670),i={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};r.isMsie()&&r.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),r.isMsie()&&r.isMsie()<=7&&r.mixin(i.input,{marginTop:"-1px"}),e.exports=i},13312:(e,t,n)=>{"use strict";var r="aaDataset",i="aaValue",o="aaDatum",a=n(85670),s=n(33855),l=n(26619),c=n(47114),u=n(6823);function p(e){var t;(e=e||{}).templates=e.templates||{},e.source||a.error("missing source"),e.name&&(t=e.name,!/^[_a-zA-Z0-9-]+$/.test(t))&&a.error("invalid dataset name: "+e.name),this.query=null,this._isEmpty=!0,this.highlight=!!e.highlight,this.name=void 0===e.name||null===e.name?a.getUniqueId():e.name,this.source=e.source,this.displayFn=function(e){return e=e||"value",a.isFunction(e)?e:t;function t(t){return t[e]}}(e.display||e.displayKey),this.debounce=e.debounce,this.cache=!1!==e.cache,this.templates=function(e,t){return{empty:e.empty&&a.templatify(e.empty),header:e.header&&a.templatify(e.header),footer:e.footer&&a.templatify(e.footer),suggestion:e.suggestion||n};function n(e){return"<p>"+t(e)+"</p>"}}(e.templates,this.displayFn),this.css=a.mixin({},c,e.appendTo?c.appendTo:{}),this.cssClasses=e.cssClasses=a.mixin({},c.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||a.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var n=a.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=e.$menu&&e.$menu.find(n+"-"+this.name).length>0?s.element(e.$menu.find(n+"-"+this.name)[0]):s.element(l.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=e.$menu,this.clearCachedSuggestions()}p.extractDatasetName=function(e){return s.element(e).data(r)},p.extractValue=function(e){return s.element(e).data(i)},p.extractDatum=function(e){var t=s.element(e).data(o);return"string"==typeof t&&(t=JSON.parse(t)),t},a.mixin(p.prototype,u,{_render:function(e,t){if(this.$el){var n,c=this,u=[].slice.call(arguments,2);if(this.$el.empty(),n=t&&t.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(function(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!0}].concat(t),c.templates.empty.apply(this,t)}.apply(this,u)).prepend(c.templates.header?p.apply(this,u):null).append(c.templates.footer?d.apply(this,u):null);else if(n)this.$el.html(function(){var e,n,u=[].slice.call(arguments,0),p=this,d=l.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return e=s.element(d).css(this.css.suggestions),n=a.map(t,f),e.append.apply(e,n),e;function f(e){var t,n=l.suggestion.replace("%PREFIX%",p.cssClasses.prefix).replace("%SUGGESTION%",p.cssClasses.suggestion);return(t=s.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(c.templates.suggestion.apply(this,[e].concat(u)))).data(r,c.name),t.data(i,c.displayFn(e)||void 0),t.data(o,JSON.stringify(e)),t.children().each((function(){s.element(this).css(p.css.suggestionChild)})),t}}.apply(this,u)).prepend(c.templates.header?p.apply(this,u):null).append(c.templates.footer?d.apply(this,u):null);else if(t&&!Array.isArray(t))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",e)}function p(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),c.templates.header.apply(this,t)}function d(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),c.templates.footer.apply(this,t)}},getRoot:function(){return this.$el},update:function(e){function t(t){if(!this.canceled&&e===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(e,t,n),this._render.apply(this,[e,t].concat(n))}}if(this.query=e,this.canceled=!1,this.shouldFetchFromCache(e))t.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,r=function(){n.canceled||n.source(e,t.bind(n))};if(this.debounce){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,r()}),this.debounce)}else r()}},cacheSuggestions:function(e,t,n){this.cachedQuery=e,this.cachedSuggestions=t,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(e){return this.cache&&this.cachedQuery===e&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),e.exports=p},35445:(e,t,n)=>{"use strict";var r=n(85670),i=n(33855),o=n(6823),a=n(13312),s=n(47114);function l(e){var t,n,o,a=this;(e=e||{}).menu||r.error("menu is required"),r.isArray(e.datasets)||r.isObject(e.datasets)||r.error("1 or more datasets required"),e.datasets||r.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=e.minLength||0,this.templates={},this.appendTo=e.appendTo||!1,this.css=r.mixin({},s,e.appendTo?s.appendTo:{}),this.cssClasses=e.cssClasses=r.mixin({},s.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),t=r.bind(this._onSuggestionClick,this),n=r.bind(this._onSuggestionMouseEnter,this),o=r.bind(this._onSuggestionMouseLeave,this);var c=r.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=i.element(e.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,o).on("click.aa",c,t),this.$container=e.appendTo?e.wrapper:this.$menu,e.templates&&e.templates.header&&(this.templates.header=r.templatify(e.templates.header),this.$menu.prepend(this.templates.header())),e.templates&&e.templates.empty&&(this.templates.empty=r.templatify(e.templates.empty),this.$empty=i.element('<div class="'+r.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=r.map(e.datasets,(function(t){return function(e,t,n){return new l.Dataset(r.mixin({$menu:e,cssClasses:n},t))}(a.$menu,t,e.cssClasses)})),r.each(this.datasets,(function(e){var t=e.getRoot();t&&0===t.parent().length&&a.$menu.append(t),e.onSync("rendered",a._onRendered,a)})),e.templates&&e.templates.footer&&(this.templates.footer=r.templatify(e.templates.footer),this.$menu.append(this.templates.footer()));var u=this;i.element(window).resize((function(){u._redraw()}))}r.mixin(l.prototype,o,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",i.element(e.currentTarget))},_onSuggestionMouseEnter:function(e){var t=i.element(e.currentTarget);if(!t.hasClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(t,!1)}),0)}},_onSuggestionMouseLeave:function(e){if(e.relatedTarget&&i.element(e.relatedTarget).closest("."+r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return;this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(e,t){if(this.isEmpty=r.every(this.datasets,(function(e){return e.isEmpty()})),this.isEmpty)if(t.length>=this.minLength&&this.trigger("empty"),this.$empty)if(t.length<this.minLength)this._hide();else{var n=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query});this.$empty.html(n),this.$empty.show(),this._show()}else r.any(this.datasets,(function(e){return e.templates&&e.templates.empty}))?t.length<this.minLength?this._hide():this._show():this._hide();else this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),t.length>=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(r.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(r.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(e,t){e.first().addClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",t)},_removeCursor:function(){this._getCursor().removeClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(e){var t,n,r,i;this.isOpen&&(n=this._getCursor(),t=this._getSuggestions(),this._removeCursor(),-1!==(r=((r=t.index(n)+e)+1)%(t.length+1)-1)?(r<-1&&(r=t.length-1),this._setCursor(i=t.eq(r),!0),this._ensureVisible(i)):this.trigger("cursorRemoved"))},_ensureVisible:function(e){var t,n,r,i;n=(t=e.position().top)+e.height()+parseInt(e.css("margin-top"),10)+parseInt(e.css("margin-bottom"),10),r=this.$menu.scrollTop(),i=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),t<0?this.$menu.scrollTop(r+t):i<n&&this.$menu.scrollTop(r+(n-i))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(e){this.$menu.css("ltr"===e?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(e){var t=null;return e.length&&(t={raw:a.extractDatum(e),value:a.extractValue(e),datasetName:a.extractDatasetName(e)}),t},getCurrentCursor:function(){return this._getCursor().first()},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},cursorTopSuggestion:function(){this._setCursor(this._getSuggestions().first(),!1)},update:function(e){r.each(this.datasets,(function(t){t.update(e)}))},empty:function(){r.each(this.datasets,(function(e){e.clear()})),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".aa"),this.$menu=null,r.each(this.datasets,(function(e){e.destroy()}))}}),l.Dataset=a,e.exports=l},47368:(e,t,n)=>{"use strict";var r=n(85670),i=n(33855);function o(e){e&&e.el||r.error("EventBus initialized without el"),this.$el=i.element(e.el)}r.mixin(o.prototype,{trigger:function(e,t,n,i){var o=r.Event("autocomplete:"+e);return this.$el.trigger(o,[t,n,i]),o}}),e.exports=o},6823:(e,t,n)=>{"use strict";var r=n(70624),i=/\s+/;function o(e,t,n,r){var o;if(!n)return this;for(t=t.split(i),n=r?function(e,t){return e.bind?e.bind(t):function(){e.apply(t,[].slice.call(arguments,0))}}(n,r):n,this._callbacks=this._callbacks||{};o=t.shift();)this._callbacks[o]=this._callbacks[o]||{sync:[],async:[]},this._callbacks[o][e].push(n);return this}function a(e,t,n){return function(){for(var r,i=0,o=e.length;!r&&i<o;i+=1)r=!1===e[i].apply(t,n);return!r}}e.exports={onSync:function(e,t,n){return o.call(this,"sync",e,t,n)},onAsync:function(e,t,n){return o.call(this,"async",e,t,n)},off:function(e){var t;if(!this._callbacks)return this;e=e.split(i);for(;t=e.shift();)delete this._callbacks[t];return this},trigger:function(e){var t,n,o,s,l;if(!this._callbacks)return this;e=e.split(i),o=[].slice.call(arguments,1);for(;(t=e.shift())&&(n=this._callbacks[t]);)s=a(n.sync,this,[t].concat(o)),l=a(n.async,this,[t].concat(o)),s()&&r(l);return this}}},26619:e=>{"use strict";e.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%%SUGGESTION%"></div>'}},21286:(e,t,n)=>{"use strict";var r;r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var i=n(85670),o=n(33855),a=n(6823);function s(e){var t,n,a,s,l,c=this;(e=e||{}).input||i.error("input is missing"),t=i.bind(this._onBlur,this),n=i.bind(this._onFocus,this),a=i.bind(this._onKeydown,this),s=i.bind(this._onInput,this),this.$hint=o.element(e.hint),this.$input=o.element(e.input).on("blur.aa",t).on("focus.aa",n).on("keydown.aa",a),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=i.noop),i.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(e){r[e.which||e.keyCode]||i.defer(i.bind(c._onInput,c,e))})):this.$input.on("input.aa",s),this.query=this.$input.val(),this.$overflowHelper=(l=this.$input,o.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:l.css("font-family"),fontSize:l.css("font-size"),fontStyle:l.css("font-style"),fontVariant:l.css("font-variant"),fontWeight:l.css("font-weight"),wordSpacing:l.css("word-spacing"),letterSpacing:l.css("letter-spacing"),textIndent:l.css("text-indent"),textRendering:l.css("text-rendering"),textTransform:l.css("text-transform")}).insertAfter(l))}function l(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}s.normalizeQuery=function(e){return(e||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},i.mixin(s.prototype,a,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(e){var t=r[e.which||e.keyCode];this._managePreventDefault(t,e),t&&this._shouldTrigger(t,e)&&this.trigger(t+"Keyed",e)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(e,t){var n,r,i;switch(e){case"tab":r=this.getHint(),i=this.getInputValue(),n=r&&r!==i&&!l(t);break;case"up":case"down":n=!l(t);break;default:n=!1}n&&t.preventDefault()},_shouldTrigger:function(e,t){var n;if("tab"===e)n=!l(t);else n=!0;return n},_checkInputValue:function(){var e,t,n,r,i;e=this.getInputValue(),r=e,i=this.query,n=!(!(t=s.normalizeQuery(r)===s.normalizeQuery(i))||!this.query)&&this.query.length!==e.length,this.query=e,t?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(e){this.query=e},getInputValue:function(){return this.$input.val()},setInputValue:function(e,t){void 0===e&&(e=this.query),this.$input.val(e),t?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(e){this.$input.attr("aria-activedescendant",e)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(e){this.$hint.val(e)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var e,t,n;n=(e=this.getInputValue())!==(t=this.getHint())&&0===t.indexOf(e),""!==e&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var e,t,n;return e=this.$input.val().length,t=this.$input[0].selectionStart,i.isNumber(t)?t===e:!document.selection||((n=document.selection.createRange()).moveStart("character",-e),e===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),e.exports=s},4520:(e,t,n)=>{"use strict";var r="aaAttrs",i=n(85670),o=n(33855),a=n(47368),s=n(21286),l=n(35445),c=n(26619),u=n(47114);function p(e){var t,n;if((e=e||{}).input||i.error("missing input"),this.isActivated=!1,this.debug=!!e.debug,this.autoselect=!!e.autoselect,this.autoselectOnBlur=!!e.autoselectOnBlur,this.openOnFocus=!!e.openOnFocus,this.minLength=i.isNumber(e.minLength)?e.minLength:1,this.autoWidth=void 0===e.autoWidth||!!e.autoWidth,this.clearOnSelected=!!e.clearOnSelected,this.tabAutocomplete=void 0===e.tabAutocomplete||!!e.tabAutocomplete,e.hint=!!e.hint,e.hint&&e.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=e.css=i.mixin({},u,e.appendTo?u.appendTo:{}),this.cssClasses=e.cssClasses=i.mixin({},u.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix=i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=e.listboxId=[this.cssClasses.root,"listbox",i.getUniqueId()].join("-");var s=function(e){var t,n,a,s;t=o.element(e.input),n=o.element(c.wrapper.replace("%ROOT%",e.cssClasses.root)).css(e.css.wrapper),e.appendTo||"block"!==t.css("display")||"table"!==t.parent().css("display")||n.css("display","table-cell");var l=c.dropdown.replace("%PREFIX%",e.cssClasses.prefix).replace("%DROPDOWN_MENU%",e.cssClasses.dropdownMenu);a=o.element(l).css(e.css.dropdown).attr({role:"listbox",id:e.listboxId}),e.templates&&e.templates.dropdownMenu&&a.html(i.templatify(e.templates.dropdownMenu)());s=t.clone().css(e.css.hint).css(function(e){return{backgroundAttachment:e.css("background-attachment"),backgroundClip:e.css("background-clip"),backgroundColor:e.css("background-color"),backgroundImage:e.css("background-image"),backgroundOrigin:e.css("background-origin"),backgroundPosition:e.css("background-position"),backgroundRepeat:e.css("background-repeat"),backgroundSize:e.css("background-size")}}(t)),s.val("").addClass(i.className(e.cssClasses.prefix,e.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),s.removeData&&s.removeData();t.data(r,{"aria-autocomplete":t.attr("aria-autocomplete"),"aria-expanded":t.attr("aria-expanded"),"aria-owns":t.attr("aria-owns"),autocomplete:t.attr("autocomplete"),dir:t.attr("dir"),role:t.attr("role"),spellcheck:t.attr("spellcheck"),style:t.attr("style"),type:t.attr("type")}),t.addClass(i.className(e.cssClasses.prefix,e.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":e.datasets&&e.datasets[0]&&e.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":e.ariaLabel,"aria-owns":e.listboxId}).css(e.hint?e.css.input:e.css.inputWithNoHint);try{t.attr("dir")||t.attr("dir","auto")}catch(e){}return n=e.appendTo?n.appendTo(o.element(e.appendTo).eq(0)).eq(0):t.wrap(n).parent(),n.prepend(e.hint?s:null).append(a),{wrapper:n,input:t,hint:s,menu:a}}(e);this.$node=s.wrapper;var l=this.$input=s.input;t=s.menu,n=s.hint,e.dropdownMenuContainer&&o.element(e.dropdownMenuContainer).css("position","relative").append(t.css("top","0")),l.on("blur.aa",(function(e){var n=document.activeElement;i.isMsie()&&(t[0]===n||t[0].contains(n))&&(e.preventDefault(),e.stopImmediatePropagation(),i.defer((function(){l.focus()})))})),t.on("mousedown.aa",(function(e){e.preventDefault()})),this.eventBus=e.eventBus||new a({el:l}),this.dropdown=new p.Dropdown({appendTo:e.appendTo,wrapper:this.$node,menu:t,datasets:e.datasets,templates:e.templates,cssClasses:e.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new p.Input({input:l,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(e),this._setLanguageDirection()}i.mixin(p.prototype,{_bindKeyboardShortcuts:function(e){if(e.keyboardShortcuts){var t=this.$input,n=[];i.each(e.keyboardShortcuts,(function(e){"string"==typeof e&&(e=e.toUpperCase().charCodeAt(0)),n.push(e)})),o.element(document).keydown((function(e){var r=e.target||e.srcElement,i=r.tagName;if(!r.isContentEditable&&"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i){var o=e.which||e.keyCode;-1!==n.indexOf(o)&&(t.focus(),e.stopPropagation(),e.preventDefault())}}))}},_onSuggestionClicked:function(e,t){var n;(n=this.dropdown.getDatumForSuggestion(t))&&this._select(n,{selectionMethod:"click"})},_onCursorMoved:function(e,t){var n=this.dropdown.getDatumForCursor(),r=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(r),n&&(t&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var e=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",e.width+"px");var t=this.$node[0].getBoundingClientRect(),n=e.bottom-t.top;this.$node.css("top",n+"px");var r=e.left-t.left;this.$node.css("left",r+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var e=this.input.getQuery();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var e,t;e=this.dropdown.getDatumForCursor(),t=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&e?this._select(e,n):this.autoselectOnBlur&&t?this._select(t,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(e,t){var n,r;n=this.dropdown.getDatumForCursor(),r=this.dropdown.getDatumForTopSuggestion();var i={selectionMethod:"enterKey"};n?(this._select(n,i),t.preventDefault()):this.autoselect&&r&&(this._select(r,i),t.preventDefault())},_onTabKeyed:function(e,t){if(this.tabAutocomplete){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),t.preventDefault()):this._autocomplete(!0)}else this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(e,t){this.input.clearHintIfInvalid(),t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var e=this.input.getLanguageDirection();this.dir!==e&&(this.dir=e,this.$node.css("direction",e),this.dropdown.setLanguageDirection(e))},_updateHint:function(){var e,t,n,r,o;(e=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(t=this.input.getInputValue(),n=s.normalizeQuery(t),r=i.escapeRegExChars(n),(o=new RegExp("^(?:"+r+")(.+$)","i").exec(e.value))?this.input.setHint(t+o[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(e){var t,n,r,i;t=this.input.getHint(),n=this.input.getQuery(),r=e||this.input.isCursorAtEnd(),t&&n!==t&&r&&((i=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(i.value),this.eventBus.trigger("autocompleted",i.raw,i.datasetName))},_select:function(e,t){void 0!==e.value&&this.input.setQuery(e.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(e.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",e.raw,e.datasetName,t).isDefaultPrevented()&&(this.dropdown.close(),i.defer(i.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var e=this.input.getInputValue();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(e){e=i.toStr(e),this.isActivated?this.input.setInputValue(e):(this.input.setQuery(e),this.input.setInputValue(e,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),function(e,t){var n=e.find(i.className(t.prefix,t.input));i.each(n.data(r),(function(e,t){void 0===e?n.removeAttr(t):n.attr(t,e)})),n.detach().removeClass(i.className(t.prefix,t.input,!0)).insertAfter(e),n.removeData&&n.removeData(r);e.remove()}(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),p.Dropdown=l,p.Input=s,p.sources=n(86331),e.exports=p},33855:e=>{"use strict";e.exports={element:null}},22926:e=>{"use strict";e.exports=function(e){var t=e.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||e.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(t)return[t[1],t[2],t[3]]}},85670:(e,t,n)=>{"use strict";var r,i=n(33855);function o(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}e.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(e){if(void 0===e&&(e=navigator.userAgent),/(msie|trident)/i.test(e)){var t=e.match(/(msie |rv:)(\d+(.\d+)?)/i);if(t)return t[2]}return!1},escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(e){return"number"==typeof e},toStr:function(e){return null==e?"":e+""},cloneDeep:function(e){var t=this.mixin({},e),n=this;return this.each(t,(function(e,r){e&&(n.isArray(e)?t[r]=[].concat(e):n.isObject(e)&&(t[r]=n.cloneDeep(e)))})),t},error:function(e){throw new Error(e)},every:function(e,t){var n=!0;return e?(this.each(e,(function(r,i){n&&(n=t.call(null,r,i,e)&&n)})),!!n):n},any:function(e,t){var n=!1;return e?(this.each(e,(function(r,i){if(t.call(null,r,i,e))return n=!0,!1})),n):n},getUniqueId:(r=0,function(){return r++}),templatify:function(e){if(this.isFunction(e))return e;var t=i.element(e);return"SCRIPT"===t.prop("tagName")?function(){return t.text()}:function(){return String(e)}},defer:function(e){setTimeout(e,0)},noop:function(){},formatPrefix:function(e,t){return t?"":e+"-"},className:function(e,t,n){return(n?"":".")+e+t},escapeHighlightedString:function(e,t,n){t=t||"<em>";var r=document.createElement("div");r.appendChild(document.createTextNode(t)),n=n||"</em>";var i=document.createElement("div");i.appendChild(document.createTextNode(n));var a=document.createElement("div");return a.appendChild(document.createTextNode(e)),a.innerHTML.replace(RegExp(o(r.innerHTML),"g"),t).replace(RegExp(o(i.innerHTML),"g"),n)}}},42683:(e,t,n)=>{"use strict";var r=n(85670),i=n(93489),o=n(22926);e.exports=function(e,t){var n=o(e.as._ua);return n&&n[0]>=3&&n[1]>20&&((t=t||{}).additionalUA="autocomplete.js "+i),function(n,i){e.search(n,t,(function(e,t){e?r.error(e.message):i(t.hits,t)}))}}},86331:(e,t,n)=>{"use strict";e.exports={hits:n(42683),popularIn:n(82226)}},82226:(e,t,n)=>{"use strict";var r=n(85670),i=n(93489),o=n(22926);e.exports=function(e,t,n,a){var s=o(e.as._ua);if(s&&s[0]>=3&&s[1]>20&&((t=t||{}).additionalUA="autocomplete.js "+i),!n.source)return r.error("Missing 'source' key");var l=r.isFunction(n.source)?n.source:function(e){return e[n.source]};if(!n.index)return r.error("Missing 'index' key");var c=n.index;return a=a||{},function(s,u){e.search(s,t,(function(e,s){if(e)r.error(e.message);else{if(s.hits.length>0){var p=s.hits[0],d=r.mixin({hitsPerPage:0},n);delete d.source,delete d.index;var f=o(c.as._ua);return f&&f[0]>=3&&f[1]>20&&(t.additionalUA="autocomplete.js "+i),void c.search(l(p),d,(function(e,t){if(e)r.error(e.message);else{var n=[];if(a.includeAll){var i=a.allTitle||"All departments";n.push(r.mixin({facet:{value:i,count:t.nbHits}},r.cloneDeep(p)))}r.each(t.facets,(function(e,t){r.each(e,(function(e,i){n.push(r.mixin({facet:{facet:t,value:i,count:e}},r.cloneDeep(p)))}))}));for(var o=1;o<s.hits.length;++o)n.push(s.hits[o]);u(n,s)}}))}u([])}}))}}},29281:(e,t,n)=>{"use strict";var r=n(7939);n(33855).element=r;var i=n(85670);i.isArray=r.isArray,i.isFunction=r.isFunction,i.isObject=r.isPlainObject,i.bind=r.proxy,i.each=function(e,t){r.each(e,(function(e,n){return t(n,e)}))},i.map=r.map,i.mixin=r.extend,i.Event=r.Event;var o="aaAutocomplete",a=n(4520),s=n(47368);function l(e,t,n,l){n=i.isArray(n)?n:[].slice.call(arguments,2);var c=r(e).each((function(e,i){var c=r(i),u=new s({el:c}),p=l||new a({input:c,eventBus:u,dropdownMenuContainer:t.dropdownMenuContainer,hint:void 0===t.hint||!!t.hint,minLength:t.minLength,autoselect:t.autoselect,autoselectOnBlur:t.autoselectOnBlur,tabAutocomplete:t.tabAutocomplete,openOnFocus:t.openOnFocus,templates:t.templates,debug:t.debug,clearOnSelected:t.clearOnSelected,cssClasses:t.cssClasses,datasets:n,keyboardShortcuts:t.keyboardShortcuts,appendTo:t.appendTo,autoWidth:t.autoWidth,ariaLabel:t.ariaLabel||i.getAttribute("aria-label")});c.data(o,p)}));return c.autocomplete={},i.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(e){c.autocomplete[e]=function(){var t,n=arguments;return c.each((function(i,a){var s=r(a).data(o);t=s[e].apply(s,n)})),t}})),c}l.sources=a.sources,l.escapeHighlightedString=i.escapeHighlightedString;var c="autocomplete"in window,u=window.autocomplete;l.noConflict=function(){return c?window.autocomplete=u:delete window.autocomplete,l},e.exports=l},93489:e=>{e.exports="0.37.1"},7939:e=>{var t;t=window,e.exports=function(e){var t,n,r=function(){var t,n,r,i,o,a,s=[],l=s.concat,c=s.filter,u=s.slice,p=e.document,d={},f={},h={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},m=/^\s*<(\w+|!)[^>]*>/,g=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,y=/^(?:body|html)$/i,b=/([A-Z])/g,x=["val","css","html","text","data","width","height","offset"],w=["after","prepend","before","append"],A=p.createElement("table"),_=p.createElement("tr"),C={tr:p.createElement("tbody"),tbody:A,thead:A,tfoot:A,td:_,th:_,"*":p.createElement("div")},k=/complete|loaded|interactive/,S=/^[\w-]*$/,E={},T=E.toString,O={},M=p.createElement("div"),L={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},B=Array.isArray||function(e){return e instanceof Array};function D(e){return null==e?String(e):E[T.call(e)]||"object"}function N(e){return"function"==D(e)}function j(e){return null!=e&&e==e.window}function P(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function R(e){return"object"==D(e)}function F(e){return R(e)&&!j(e)&&Object.getPrototypeOf(e)==Object.prototype}function I(e){var t=!!e&&"length"in e&&e.length,n=r.type(e);return"function"!=n&&!j(e)&&("array"==n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function z(e){return c.call(e,(function(e){return null!=e}))}function $(e){return e.length>0?r.fn.concat.apply([],e):e}function q(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function H(e){return e in f?f[e]:f[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function W(e,t){return"number"!=typeof t||h[q(e)]?t:t+"px"}function U(e){var t,n;return d[e]||(t=p.createElement(e),p.body.appendChild(t),n=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),d[e]=n),d[e]}function V(e){return"children"in e?u.call(e.children):r.map(e.childNodes,(function(e){if(1==e.nodeType)return e}))}function K(e,t){var n,r=e?e.length:0;for(n=0;n<r;n++)this[n]=e[n];this.length=r,this.selector=t||""}function G(e,r,i){for(n in r)i&&(F(r[n])||B(r[n]))?(F(r[n])&&!F(e[n])&&(e[n]={}),B(r[n])&&!B(e[n])&&(e[n]=[]),G(e[n],r[n],i)):r[n]!==t&&(e[n]=r[n])}function Y(e,t){return null==t?r(e):r(e).filter(t)}function X(e,t,n,r){return N(t)?t.call(e,n,r):t}function J(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Z(e,n){var r=e.className||"",i=r&&r.baseVal!==t;if(n===t)return i?r.baseVal:r;i?r.baseVal=n:e.className=n}function Q(e){try{return e?"true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?r.parseJSON(e):e):e}catch(t){return e}}function ee(e,t){t(e);for(var n=0,r=e.childNodes.length;n<r;n++)ee(e.childNodes[n],t)}return O.matches=function(e,t){if(!t||!e||1!==e.nodeType)return!1;var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(n)return n.call(e,t);var r,i=e.parentNode,o=!i;return o&&(i=M).appendChild(e),r=~O.qsa(i,t).indexOf(e),o&&M.removeChild(e),r},o=function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},a=function(e){return c.call(e,(function(t,n){return e.indexOf(t)==n}))},O.fragment=function(e,n,i){var o,a,s;return g.test(e)&&(o=r(p.createElement(RegExp.$1))),o||(e.replace&&(e=e.replace(v,"<$1></$2>")),n===t&&(n=m.test(e)&&RegExp.$1),n in C||(n="*"),(s=C[n]).innerHTML=""+e,o=r.each(u.call(s.childNodes),(function(){s.removeChild(this)}))),F(i)&&(a=r(o),r.each(i,(function(e,t){x.indexOf(e)>-1?a[e](t):a.attr(e,t)}))),o},O.Z=function(e,t){return new K(e,t)},O.isZ=function(e){return e instanceof O.Z},O.init=function(e,n){var i;if(!e)return O.Z();if("string"==typeof e)if("<"==(e=e.trim())[0]&&m.test(e))i=O.fragment(e,RegExp.$1,n),e=null;else{if(n!==t)return r(n).find(e);i=O.qsa(p,e)}else{if(N(e))return r(p).ready(e);if(O.isZ(e))return e;if(B(e))i=z(e);else if(R(e))i=[e],e=null;else if(m.test(e))i=O.fragment(e.trim(),RegExp.$1,n),e=null;else{if(n!==t)return r(n).find(e);i=O.qsa(p,e)}}return O.Z(i,e)},(r=function(e,t){return O.init(e,t)}).extend=function(e){var t,n=u.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach((function(n){G(e,n,t)})),e},O.qsa=function(e,t){var n,r="#"==t[0],i=!r&&"."==t[0],o=r||i?t.slice(1):t,a=S.test(o);return e.getElementById&&a&&r?(n=e.getElementById(o))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:u.call(a&&!r&&e.getElementsByClassName?i?e.getElementsByClassName(o):e.getElementsByTagName(t):e.querySelectorAll(t))},r.contains=p.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},r.type=D,r.isFunction=N,r.isWindow=j,r.isArray=B,r.isPlainObject=F,r.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},r.isNumeric=function(e){var t=Number(e),n=typeof e;return null!=e&&"boolean"!=n&&("string"!=n||e.length)&&!isNaN(t)&&isFinite(t)||!1},r.inArray=function(e,t,n){return s.indexOf.call(t,e,n)},r.camelCase=o,r.trim=function(e){return null==e?"":String.prototype.trim.call(e)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(e,t){var n,r,i,o=[];if(I(e))for(r=0;r<e.length;r++)null!=(n=t(e[r],r))&&o.push(n);else for(i in e)null!=(n=t(e[i],i))&&o.push(n);return $(o)},r.each=function(e,t){var n,r;if(I(e)){for(n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e}else for(r in e)if(!1===t.call(e[r],r,e[r]))return e;return e},r.grep=function(e,t){return c.call(e,t)},e.JSON&&(r.parseJSON=JSON.parse),r.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){E["[object "+t+"]"]=t.toLowerCase()})),r.fn={constructor:O.Z,length:0,forEach:s.forEach,reduce:s.reduce,push:s.push,sort:s.sort,splice:s.splice,indexOf:s.indexOf,concat:function(){var e,t,n=[];for(e=0;e<arguments.length;e++)t=arguments[e],n[e]=O.isZ(t)?t.toArray():t;return l.apply(O.isZ(this)?this.toArray():this,n)},map:function(e){return r(r.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return r(u.apply(this,arguments))},ready:function(e){return k.test(p.readyState)&&p.body?e(r):p.addEventListener("DOMContentLoaded",(function(){e(r)}),!1),this},get:function(e){return e===t?u.call(this):this[e>=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(e){return s.every.call(this,(function(t,n){return!1!==e.call(t,n,t)})),this},filter:function(e){return N(e)?this.not(this.not(e)):r(c.call(this,(function(t){return O.matches(t,e)})))},add:function(e,t){return r(a(this.concat(r(e,t))))},is:function(e){return this.length>0&&O.matches(this[0],e)},not:function(e){var n=[];if(N(e)&&e.call!==t)this.each((function(t){e.call(this,t)||n.push(this)}));else{var i="string"==typeof e?this.filter(e):I(e)&&N(e.item)?u.call(e):r(e);this.forEach((function(e){i.indexOf(e)<0&&n.push(e)}))}return r(n)},has:function(e){return this.filter((function(){return R(e)?r.contains(this,e):r(this).find(e).size()}))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!R(e)?e:r(e)},last:function(){var e=this[this.length-1];return e&&!R(e)?e:r(e)},find:function(e){var t=this;return e?"object"==typeof e?r(e).filter((function(){var e=this;return s.some.call(t,(function(t){return r.contains(t,e)}))})):1==this.length?r(O.qsa(this[0],e)):this.map((function(){return O.qsa(this,e)})):r()},closest:function(e,t){var n=[],i="object"==typeof e&&r(e);return this.each((function(r,o){for(;o&&!(i?i.indexOf(o)>=0:O.matches(o,e));)o=o!==t&&!P(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)})),r(n)},parents:function(e){for(var t=[],n=this;n.length>0;)n=r.map(n,(function(e){if((e=e.parentNode)&&!P(e)&&t.indexOf(e)<0)return t.push(e),e}));return Y(t,e)},parent:function(e){return Y(a(this.pluck("parentNode")),e)},children:function(e){return Y(this.map((function(){return V(this)})),e)},contents:function(){return this.map((function(){return this.contentDocument||u.call(this.childNodes)}))},siblings:function(e){return Y(this.map((function(e,t){return c.call(V(t.parentNode),(function(e){return e!==t}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return r.map(this,(function(t){return t[e]}))},show:function(){return this.each((function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=U(this.nodeName))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var t=N(e);if(this[0]&&!t)var n=r(e).get(0),i=n.parentNode||this.length>1;return this.each((function(o){r(this).wrapAll(t?e.call(this,o):i?n.cloneNode(!0):n)}))},wrapAll:function(e){if(this[0]){var t;for(r(this[0]).before(e=r(e));(t=e.children()).length;)e=t.first();r(e).append(this)}return this},wrapInner:function(e){var t=N(e);return this.each((function(n){var i=r(this),o=i.contents(),a=t?e.call(this,n):e;o.length?o.wrapAll(a):i.append(a)}))},unwrap:function(){return this.parent().each((function(){r(this).replaceWith(r(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(e){return this.each((function(){var n=r(this);(e===t?"none"==n.css("display"):e)?n.show():n.hide()}))},prev:function(e){return r(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return r(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each((function(t){var n=this.innerHTML;r(this).empty().append(X(this,e,t,n))})):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each((function(t){var n=X(this,e,t,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(e,r){var i;return"string"!=typeof e||1 in arguments?this.each((function(t){if(1===this.nodeType)if(R(e))for(n in e)J(this,n,e[n]);else J(this,e,X(this,r,t,this.getAttribute(e)))})):0 in this&&1==this[0].nodeType&&null!=(i=this[0].getAttribute(e))?i:t},removeAttr:function(e){return this.each((function(){1===this.nodeType&&e.split(" ").forEach((function(e){J(this,e)}),this)}))},prop:function(e,t){return e=L[e]||e,1 in arguments?this.each((function(n){this[e]=X(this,t,n,this[e])})):this[0]&&this[0][e]},removeProp:function(e){return e=L[e]||e,this.each((function(){delete this[e]}))},data:function(e,n){var r="data-"+e.replace(b,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,n):this.attr(r);return null!==i?Q(i):t},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each((function(t){this.value=X(this,e,t,this.value)}))):this[0]&&(this[0].multiple?r(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each((function(e){var n=r(this),i=X(this,t,e,n.offset()),o=n.offsetParent().offset(),a={top:i.top-o.top,left:i.left-o.left};"static"==n.css("position")&&(a.position="relative"),n.css(a)}));if(!this.length)return null;if(p.documentElement!==this[0]&&!r.contains(p.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+e.pageXOffset,top:n.top+e.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(e,t){if(arguments.length<2){var i=this[0];if("string"==typeof e){if(!i)return;return i.style[o(e)]||getComputedStyle(i,"").getPropertyValue(e)}if(B(e)){if(!i)return;var a={},s=getComputedStyle(i,"");return r.each(e,(function(e,t){a[t]=i.style[o(t)]||s.getPropertyValue(t)})),a}}var l="";if("string"==D(e))t||0===t?l=q(e)+":"+W(e,t):this.each((function(){this.style.removeProperty(q(e))}));else for(n in e)e[n]||0===e[n]?l+=q(n)+":"+W(n,e[n])+";":this.each((function(){this.style.removeProperty(q(n))}));return this.each((function(){this.style.cssText+=";"+l}))},index:function(e){return e?this.indexOf(r(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&s.some.call(this,(function(e){return this.test(Z(e))}),H(e))},addClass:function(e){return e?this.each((function(t){if("className"in this){i=[];var n=Z(this);X(this,e,t,n).split(/\s+/g).forEach((function(e){r(this).hasClass(e)||i.push(e)}),this),i.length&&Z(this,n+(n?" ":"")+i.join(" "))}})):this},removeClass:function(e){return this.each((function(n){if("className"in this){if(e===t)return Z(this,"");i=Z(this),X(this,e,n,i).split(/\s+/g).forEach((function(e){i=i.replace(H(e)," ")})),Z(this,i.trim())}}))},toggleClass:function(e,n){return e?this.each((function(i){var o=r(this);X(this,e,i,Z(this)).split(/\s+/g).forEach((function(e){(n===t?!o.hasClass(e):n)?o.addClass(e):o.removeClass(e)}))})):this},scrollTop:function(e){if(this.length){var n="scrollTop"in this[0];return e===t?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var n="scrollLeft"in this[0];return e===t?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),n=this.offset(),i=y.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(r(e).css("margin-top"))||0,n.left-=parseFloat(r(e).css("margin-left"))||0,i.top+=parseFloat(r(t[0]).css("border-top-width"))||0,i.left+=parseFloat(r(t[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||p.body;e&&!y.test(e.nodeName)&&"static"==r(e).css("position");)e=e.offsetParent;return e}))}},r.fn.detach=r.fn.remove,["width","height"].forEach((function(e){var n=e.replace(/./,(function(e){return e[0].toUpperCase()}));r.fn[e]=function(i){var o,a=this[0];return i===t?j(a)?a["inner"+n]:P(a)?a.documentElement["scroll"+n]:(o=this.offset())&&o[e]:this.each((function(t){(a=r(this)).css(e,X(this,i,t,a[e]()))}))}})),w.forEach((function(n,i){var o=i%2;r.fn[n]=function(){var n,a,s=r.map(arguments,(function(e){var i=[];return"array"==(n=D(e))?(e.forEach((function(e){return e.nodeType!==t?i.push(e):r.zepto.isZ(e)?i=i.concat(e.get()):void(i=i.concat(O.fragment(e)))})),i):"object"==n||null==e?e:O.fragment(e)})),l=this.length>1;return s.length<1?this:this.each((function(t,n){a=o?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var c=r.contains(p.documentElement,a);s.forEach((function(t){if(l)t=t.cloneNode(!0);else if(!a)return r(t).remove();a.insertBefore(t,n),c&&ee(t,(function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var n=t.ownerDocument?t.ownerDocument.defaultView:e;n.eval.call(n,t.innerHTML)}}))}))}))},r.fn[o?n+"To":"insert"+(i?"Before":"After")]=function(e){return r(e)[n](this),this}})),O.Z.prototype=K.prototype=r.fn,O.uniq=a,O.deserializeValue=Q,r.zepto=O,r}();return function(t){var n,r=1,i=Array.prototype.slice,o=t.isFunction,a=function(e){return"string"==typeof e},s={},l={},c="onfocusin"in e,u={focus:"focusin",blur:"focusout"},p={mouseenter:"mouseover",mouseleave:"mouseout"};function d(e){return e._zid||(e._zid=r++)}function f(e,t,n,r){if((t=h(t)).ns)var i=m(t.ns);return(s[d(e)]||[]).filter((function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||i.test(e.ns))&&(!n||d(e.fn)===d(n))&&(!r||e.sel==r)}))}function h(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function m(e){return new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)")}function g(e,t){return e.del&&!c&&e.e in u||!!t}function v(e){return p[e]||c&&u[e]||e}function y(e,r,i,o,a,l,c){var u=d(e),f=s[u]||(s[u]=[]);r.split(/\s/).forEach((function(r){if("ready"==r)return t(document).ready(i);var s=h(r);s.fn=i,s.sel=a,s.e in p&&(i=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return s.fn.apply(this,arguments)}),s.del=l;var u=l||i;s.proxy=function(t){if(!(t=C(t)).isImmediatePropagationStopped()){try{var r=Object.getOwnPropertyDescriptor(t,"data");r&&!r.writable||(t.data=o)}catch(t){}var i=u.apply(e,t._args==n?[t]:[t].concat(t._args));return!1===i&&(t.preventDefault(),t.stopPropagation()),i}},s.i=f.length,f.push(s),"addEventListener"in e&&e.addEventListener(v(s.e),s.proxy,g(s,c))}))}function b(e,t,n,r,i){var o=d(e);(t||"").split(/\s/).forEach((function(t){f(e,t,n,r).forEach((function(t){delete s[o][t.i],"removeEventListener"in e&&e.removeEventListener(v(t.e),t.proxy,g(t,i))}))}))}l.click=l.mousedown=l.mouseup=l.mousemove="MouseEvents",t.event={add:y,remove:b},t.proxy=function(e,n){var r=2 in arguments&&i.call(arguments,2);if(o(e)){var s=function(){return e.apply(n,r?r.concat(i.call(arguments)):arguments)};return s._zid=d(e),s}if(a(n))return r?(r.unshift(e[n],e),t.proxy.apply(null,r)):t.proxy(e[n],e);throw new TypeError("expected function")},t.fn.bind=function(e,t,n){return this.on(e,t,n)},t.fn.unbind=function(e,t){return this.off(e,t)},t.fn.one=function(e,t,n,r){return this.on(e,t,n,r,1)};var x=function(){return!0},w=function(){return!1},A=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function C(e,r){if(r||!e.isDefaultPrevented){r||(r=e),t.each(_,(function(t,n){var i=r[t];e[t]=function(){return this[n]=x,i&&i.apply(r,arguments)},e[n]=w}));try{e.timeStamp||(e.timeStamp=Date.now())}catch(e){}(r.defaultPrevented!==n?r.defaultPrevented:"returnValue"in r?!1===r.returnValue:r.getPreventDefault&&r.getPreventDefault())&&(e.isDefaultPrevented=x)}return e}function k(e){var t,r={originalEvent:e};for(t in e)A.test(t)||e[t]===n||(r[t]=e[t]);return C(r,e)}t.fn.delegate=function(e,t,n){return this.on(t,e,n)},t.fn.undelegate=function(e,t,n){return this.off(t,e,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,r,s,l,c){var u,p,d=this;return e&&!a(e)?(t.each(e,(function(e,t){d.on(e,r,s,t,c)})),d):(a(r)||o(l)||!1===l||(l=s,s=r,r=n),l!==n&&!1!==s||(l=s,s=n),!1===l&&(l=w),d.each((function(n,o){c&&(u=function(e){return b(o,e.type,l),l.apply(this,arguments)}),r&&(p=function(e){var n,a=t(e.target).closest(r,o).get(0);if(a&&a!==o)return n=t.extend(k(e),{currentTarget:a,liveFired:o}),(u||l).apply(a,[n].concat(i.call(arguments,1)))}),y(o,e,l,s,r,p||u)})))},t.fn.off=function(e,r,i){var s=this;return e&&!a(e)?(t.each(e,(function(e,t){s.off(e,r,t)})),s):(a(r)||o(i)||!1===i||(i=r,r=n),!1===i&&(i=w),s.each((function(){b(this,e,i,r)})))},t.fn.trigger=function(e,n){return(e=a(e)||t.isPlainObject(e)?t.Event(e):C(e))._args=n,this.each((function(){e.type in u&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)}))},t.fn.triggerHandler=function(e,n){var r,i;return this.each((function(o,s){(r=k(a(e)?t.Event(e):e))._args=n,r.target=s,t.each(f(s,e.type||e),(function(e,t){if(i=t.proxy(r),r.isImmediatePropagationStopped())return!1}))})),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}})),t.Event=function(e,t){a(e)||(e=(t=e).type);var n=document.createEvent(l[e]||"Events"),r=!0;if(t)for(var i in t)"bubbles"==i?r=!!t[i]:n[i]=t[i];return n.initEvent(e,r,!0),C(n)}}(r),n=[],r.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",t&&clearTimeout(t),t=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(e){var t={},n=e.fn.data,r=e.camelCase,i=e.expando="Zepto"+ +new Date,o=[];function a(o,a){var l=o[i],c=l&&t[l];if(void 0===a)return c||s(o);if(c){if(a in c)return c[a];var u=r(a);if(u in c)return c[u]}return n.call(e(o),a)}function s(n,o,a){var s=n[i]||(n[i]=++e.uuid),c=t[s]||(t[s]=l(n));return void 0!==o&&(c[r(o)]=a),c}function l(t){var n={};return e.each(t.attributes||o,(function(t,i){0==i.name.indexOf("data-")&&(n[r(i.name.replace("data-",""))]=e.zepto.deserializeValue(i.value))})),n}e.fn.data=function(t,n){return void 0===n?e.isPlainObject(t)?this.each((function(n,r){e.each(t,(function(e,t){s(r,e,t)}))})):0 in this?a(this[0],t):void 0:this.each((function(){s(this,t,n)}))},e.data=function(t,n,r){return e(t).data(n,r)},e.hasData=function(n){var r=n[i],o=r&&t[r];return!!o&&!e.isEmptyObject(o)},e.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var o=this[i],a=o&&t[o];a&&e.each(n||a,(function(e){delete a[n?r(this):e]}))}))},["remove","empty"].forEach((function(t){var n=e.fn[t];e.fn[t]=function(){var e=this.find("*");return"remove"===t&&(e=e.add(this)),e.removeData(),n.call(this)}}))}(r),r}(t)},79367:function(e,t){var n,r,i;r=[e,t],n=function(e,t){"use strict";var n,r,i="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),o=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!i.has(e)){var t=null,n=null,r=null,a=function(){e.clientWidth!==n&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),i.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",i.set(e,{destroy:s,update:d}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),d()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function p(){if(0!==e.scrollHeight){var r=u(e),i=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,r.forEach((function(e){e.node.scrollTop=e.scrollTop})),i&&(document.documentElement.scrollTop=i)}}function d(){p();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i<t?"hidden"===n.overflowY&&(c("scroll"),p(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),p(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==i){r=i;var a=o("autosize:resized");try{e.dispatchEvent(a)}catch(e){}}}}function s(e){var t=i.get(e);t&&t.destroy()}function l(e){var t=i.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return a(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(i="function"==typeof n?n.apply(t,r):n)||(e.exports=i)},9669:(e,t,n)=>{e.exports=n(51609)},55448:(e,t,n)=>{"use strict";var r=n(64867),i=n(36026),o=n(4372),a=n(15327),s=n(94097),l=n(84109),c=n(67985),u=n(85061);e.exports=function(e){return new Promise((function(t,n){var p=e.data,d=e.headers,f=e.responseType;r.isFormData(p)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+g)}var v=s(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),f&&"json"!==f&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),p||(p=null),h.send(p)}))}},51609:(e,t,n)=>{"use strict";var r=n(64867),i=n(91849),o=n(30321),a=n(47185);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=s(n(45655));l.Axios=o,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n(65263),l.CancelToken=n(14972),l.isCancel=n(26502),l.all=function(e){return Promise.all(e)},l.spread=n(8713),l.isAxiosError=n(16268),e.exports=l,e.exports.default=l},65263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:(e,t,n)=>{"use strict";var r=n(65263);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},26502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:(e,t,n)=>{"use strict";var r=n(64867),i=n(15327),o=n(80782),a=n(13572),s=n(47185),l=n(54875),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var p=e;n.length;){var d=n.shift(),f=n.shift();try{p=d(p)}catch(e){f(e);break}}try{i=a(p)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},80782:(e,t,n)=>{"use strict";var r=n(64867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},94097:(e,t,n)=>{"use strict";var r=n(91793),i=n(7303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},85061:(e,t,n)=>{"use strict";var r=n(80481);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},13572:(e,t,n)=>{"use strict";var r=n(64867),i=n(18527),o=n(26502),a=n(45655);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},47185:(e,t,n)=>{"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var u=i.concat(o).concat(a).concat(s),p=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(p,c),n}},36026:(e,t,n)=>{"use strict";var r=n(85061);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:(e,t,n)=>{"use strict";var r=n(64867),i=n(45655);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},45655:(e,t,n)=>{"use strict";var r=n(34155),i=n(64867),o=n(16016),a=n(80481),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(c=n(55448)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(s)})),e.exports=u},91849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:(e,t,n)=>{"use strict";var r=n(64867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},16268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},67985:(e,t,n)=>{"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:(e,t,n)=>{"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84109:(e,t,n)=>{"use strict";var r=n(64867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:(e,t,n)=>{"use strict";var r=n(88593),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},64867:(e,t,n)=>{"use strict";var r=n(91849),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},21924:(e,t,n)=>{"use strict";var r=n(40210),i=n(55559),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},55559:(e,t,n)=>{"use strict";var r=n(58612),i=n(40210),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,a,arguments);l&&c&&(l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var p=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},22662:function(e,t,n){var r,i,o;void 0===(o=this)&&void 0!==window&&(o=window),r=[n(69259)],void 0===(i=function(e){return o["Chartist.plugins.tooltip"]=(t=e,function(e,t,n){"use strict";var r={currency:void 0,currencyFormatCallback:void 0,tooltipOffset:{x:0,y:-20},anchorToPoint:!1,appendToBody:!0,class:void 0,pointClass:"ct-point"};function i(e,t){return(" "+e.getAttribute("class")+" ").indexOf(" "+t+" ")>-1}function o(e,t){do{e=e.nextSibling}while(e&&!i(e,t));return e}function a(e){return e.innerText||e.textContent}function s(n){var r;return s in n?((r=n.offsetParent)||(r=t.body.parentElement),r):(r=n.parentNode)?"static"!==e.getComputedStyle(r).position?r:"BODY"===r.tagName?r.parentElement:s(r):t.body.parentElement}n.plugins=n.plugins||{},n.plugins.tooltip=function(l){return l=n.extend({},r,l),function(r){var c=l.pointClass;r instanceof n.Bar?c="ct-bar":r instanceof n.Pie&&(c=r.options.donut?r.options.donutSolid?"ct-slice-donut-solid":"ct-slice-donut":"ct-slice-pie");var u,p=r.container,d=!1,f=s(p);(u=l.appendToBody?t.querySelector(".chartist-tooltip"):p.querySelector(".chartist-tooltip"))||((u=t.createElement("div")).className=l.class?"chartist-tooltip "+l.class:"chartist-tooltip",l.appendToBody?t.body.appendChild(u):p.appendChild(u));var h=u.offsetHeight,m=u.offsetWidth;function g(e,t,n){p.addEventListener(e,(function(e){t&&!i(e.target,t)||n(e)}))}function v(t){h=h||u.offsetHeight;var n=-(m=m||u.offsetWidth)/2+l.tooltipOffset.x,r=-h+l.tooltipOffset.y,i=!0===l.anchorToPoint&&t.target.x2&&t.target.y2;if(!0===l.appendToBody)if(i){var o=p.getBoundingClientRect(),a=t.target.x2.baseVal.value+o.left+e.pageXOffset,s=t.target.y2.baseVal.value+o.top+e.pageYOffset;u.style.left=a+n+"px",u.style.top=s+r+"px"}else u.style.left=t.pageX+n+"px",u.style.top=t.pageY+r+"px";else{var c=f.getBoundingClientRect(),d=-c.left-e.pageXOffset+n,g=-c.top-e.pageYOffset+r;i?(o=p.getBoundingClientRect(),a=t.target.x2.baseVal.value+o.left+e.pageXOffset,s=t.target.y2.baseVal.value+o.top+e.pageYOffset,u.style.left=a+d+"px",u.style.top=s+g+"px"):(u.style.left=t.pageX+d+"px",u.style.top=t.pageY+g+"px")}}function y(e){d=!0,i(e,"tooltip-show")||(e.className=e.className+" tooltip-show")}function b(e){d=!1;var t=new RegExp("tooltip-show\\s*","gi");e.className=e.className.replace(t,"").trim()}b(u),g("mouseover",c,(function(e){var i=e.target,c="",d=(r instanceof n.Pie?i:i.parentNode)?i.parentNode.getAttribute("ct:meta")||i.parentNode.getAttribute("ct:series-name"):"",g=i.getAttribute("ct:meta")||d||"",b=!!g,x=i.getAttribute("ct:value");if(l.transformTooltipTextFnc&&"function"==typeof l.transformTooltipTextFnc&&(x=l.transformTooltipTextFnc(x)),l.tooltipFnc&&"function"==typeof l.tooltipFnc)c=l.tooltipFnc(g,x);else{if(l.metaIsHTML){var w=t.createElement("textarea");w.innerHTML=g,g=w.value}if(g='<span class="chartist-tooltip-meta">'+g+"</span>",b)c+=g+"<br>";else if(r instanceof n.Pie){var A=o(i,"ct-label");A&&(c+=a(A)+"<br>")}x&&(l.currency&&(x=null!=l.currencyFormatCallback?l.currencyFormatCallback(x,l):l.currency+x.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g,"$1,")),c+=x='<span class="chartist-tooltip-value">'+x+"</span>")}c&&(u.innerHTML=c,h=u.offsetHeight,m=u.offsetWidth,!0!==l.appendToBody&&(f=s(p)),"absolute"!==u.style.display&&(u.style.display="absolute"),v(e),y(u),h=u.offsetHeight,m=u.offsetWidth)})),g("mouseout",c,(function(){b(u)})),g("mousemove",null,(function(e){!1===l.anchorToPoint&&d&&v(e)}))}}}(window,document,t),t.plugins.tooltip);var t}.apply(t,r))||(e.exports=i)},69259:function(e,t,n){var r,i;i=this,r=function(){return i.Chartist=function(){var e={version:"0.11.4"};return function(e,t){"use strict";var n=e.window,r=e.document;t.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},t.noop=function(e){return e},t.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},t.extend=function(e){var n,r,i;for(e=e||{},n=1;n<arguments.length;n++)for(var o in r=arguments[n])i=r[o],e[o]="object"!=typeof i||null===i||i instanceof Array?i:t.extend(e[o],i);return e},t.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},t.ensureUnit=function(e,t){return"number"==typeof e&&(e+=t),e},t.quantity=function(e){if("string"==typeof e){var t=/^(\d+)\s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||void 0}}return{value:e}},t.querySelector=function(e){return e instanceof Node?e:r.querySelector(e)},t.times=function(e){return Array.apply(null,new Array(e))},t.sum=function(e,t){return e+(t||0)},t.mapMultiply=function(e){return function(t){return t*e}},t.mapAdd=function(e){return function(t){return t+e}},t.serialMap=function(e,n){var r=[],i=Math.max.apply(null,e.map((function(e){return e.length})));return t.times(i).forEach((function(t,i){var o=e.map((function(e){return e[i]}));r[i]=n.apply(null,o)})),r},t.roundWithPrecision=function(e,n){var r=Math.pow(10,n||t.precision);return Math.round(e*r)/r},t.precision=8,t.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},t.serialize=function(e){return null==e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(t.escapingMap).reduce((function(e,n){return t.replaceAll(e,n,t.escapingMap[n])}),e))},t.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(t.escapingMap).reduce((function(e,n){return t.replaceAll(e,t.escapingMap[n],n)}),e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(e){}return e},t.createSvg=function(e,n,r,i){var o;return n=n||"100%",r=r||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter((function(e){return e.getAttributeNS(t.namespaces.xmlns,"ct")})).forEach((function(t){e.removeChild(t)})),(o=new t.Svg("svg").attr({width:n,height:r}).addClass(i))._node.style.width=n,o._node.style.height=r,e.appendChild(o._node),o},t.normalizeData=function(e,n,r){var i,o={raw:e,normalized:{}};return o.normalized.series=t.getDataArray({series:e.series||[]},n,r),i=o.normalized.series.every((function(e){return e instanceof Array}))?Math.max.apply(null,o.normalized.series.map((function(e){return e.length}))):o.normalized.series.length,o.normalized.labels=(e.labels||[]).slice(),Array.prototype.push.apply(o.normalized.labels,t.times(Math.max(0,i-o.normalized.labels.length)).map((function(){return""}))),n&&t.reverseData(o.normalized),o},t.safeHasProperty=function(e,t){return null!==e&&"object"==typeof e&&e.hasOwnProperty(t)},t.isDataHoleValue=function(e){return null==e||"number"==typeof e&&isNaN(e)},t.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;t<e.series.length;t++)"object"==typeof e.series[t]&&void 0!==e.series[t].data?e.series[t].data.reverse():e.series[t]instanceof Array&&e.series[t].reverse()},t.getDataArray=function(e,n,r){function i(e){if(t.safeHasProperty(e,"value"))return i(e.value);if(t.safeHasProperty(e,"data"))return i(e.data);if(e instanceof Array)return e.map(i);if(!t.isDataHoleValue(e)){if(r){var n={};return"string"==typeof r?n[r]=t.getNumberOrUndefined(e):n.y=t.getNumberOrUndefined(e),n.x=e.hasOwnProperty("x")?t.getNumberOrUndefined(e.x):n.x,n.y=e.hasOwnProperty("y")?t.getNumberOrUndefined(e.y):n.y,n}return t.getNumberOrUndefined(e)}}return e.series.map(i)},t.normalizePadding=function(e,t){return t=t||0,"number"==typeof e?{top:e,right:e,bottom:e,left:e}:{top:"number"==typeof e.top?e.top:t,right:"number"==typeof e.right?e.right:t,bottom:"number"==typeof e.bottom?e.bottom:t,left:"number"==typeof e.left?e.left:t}},t.getMetaData=function(e,t){var n=e.data?e.data[t]:e[t];return n?n.meta:void 0},t.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)},t.projectLength=function(e,t,n){return t/n.range*e},t.getAvailableHeight=function(e,n){return Math.max((t.quantity(n.height).value||e.height())-(n.chartPadding.top+n.chartPadding.bottom)-n.axisX.offset,0)},t.getHighLow=function(e,n,r){var i={high:void 0===(n=t.extend({},n,r?n["axis"+r.toUpperCase()]:{})).high?-Number.MAX_VALUE:+n.high,low:void 0===n.low?Number.MAX_VALUE:+n.low},o=void 0===n.high,a=void 0===n.low;function s(e){if(void 0!==e)if(e instanceof Array)for(var t=0;t<e.length;t++)s(e[t]);else{var n=r?+e[r]:+e;o&&n>i.high&&(i.high=n),a&&n<i.low&&(i.low=n)}}return(o||a)&&s(e),(n.referenceValue||0===n.referenceValue)&&(i.high=Math.max(n.referenceValue,i.high),i.low=Math.min(n.referenceValue,i.low)),i.high<=i.low&&(0===i.low?i.high=1:i.low<0?i.high=0:(i.high>0||(i.high=1),i.low=0)),i},t.isNumeric=function(e){return null!==e&&isFinite(e)},t.isFalseyButZero=function(e){return!e&&0!==e},t.getNumberOrUndefined=function(e){return t.isNumeric(e)?+e:void 0},t.isMultiValue=function(e){return"object"==typeof e&&("x"in e||"y"in e)},t.getMultiValue=function(e,n){return t.isMultiValue(e)?t.getNumberOrUndefined(e[n||"y"]):t.getNumberOrUndefined(e)},t.rho=function(e){if(1===e)return e;function t(e,n){return e%n==0?n:t(n,e%n)}function n(e){return e*e+1}var r,i=2,o=2;if(e%2==0)return 2;do{i=n(i)%e,o=n(n(o))%e,r=t(Math.abs(i-o),e)}while(1===r);return r},t.getBounds=function(e,n,r,i){var o,a,s,l=0,c={high:n.high,low:n.low};c.valueRange=c.high-c.low,c.oom=t.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var u=t.projectLength(e,c.step,c)<r,p=i?t.rho(c.range):0;if(i&&t.projectLength(e,1,c)>=r)c.step=1;else if(i&&p<c.step&&t.projectLength(e,p,c)>=r)c.step=p;else for(;;){if(u&&t.projectLength(e,c.step,c)<=r)c.step*=2;else{if(u||!(t.projectLength(e,c.step/2,c)>=r))break;if(c.step/=2,i&&c.step%1!=0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var d=2221e-19;function f(e,t){return e===(e+=t)&&(e*=1+(t>0?d:-d)),e}for(c.step=Math.max(c.step,d),a=c.min,s=c.max;a+c.step<=c.low;)a=f(a,c.step);for(;s-c.step>=c.high;)s=f(s,-c.step);c.min=a,c.max=s,c.range=c.max-c.min;var h=[];for(o=c.min;o<=c.max;o=f(o,c.step)){var m=t.roundWithPrecision(o);m!==h[h.length-1]&&h.push(m)}return c.values=h,c},t.polarToCartesian=function(e,t,n,r){var i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},t.createChartRect=function(e,n,r){var i=!(!n.axisX&&!n.axisY),o=i?n.axisY.offset:0,a=i?n.axisX.offset:0,s=e.width()||t.quantity(n.width).value||0,l=e.height()||t.quantity(n.height).value||0,c=t.normalizePadding(n.chartPadding,r);s=Math.max(s,o+c.left+c.right),l=Math.max(l,a+c.top+c.bottom);var u={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return i?("start"===n.axisX.position?(u.y2=c.top+a,u.y1=Math.max(l-c.bottom,u.y2+1)):(u.y2=c.top,u.y1=Math.max(l-c.bottom-a,u.y2+1)),"start"===n.axisY.position?(u.x1=c.left+o,u.x2=Math.max(s-c.right,u.x1+1)):(u.x1=c.left,u.x2=Math.max(s-c.right-o,u.x1+1))):(u.x1=c.left,u.x2=Math.max(s-c.right,u.x1+1),u.y2=c.top,u.y1=Math.max(l-c.bottom,u.y2+1)),u},t.createGrid=function(e,n,r,i,o,a,s,l){var c={};c[r.units.pos+"1"]=e,c[r.units.pos+"2"]=e,c[r.counterUnits.pos+"1"]=i,c[r.counterUnits.pos+"2"]=i+o;var u=a.elem("line",c,s.join(" "));l.emit("draw",t.extend({type:"grid",axis:r,index:n,group:a,element:u},c))},t.createGridBackground=function(e,t,n,r){var i=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);r.emit("draw",{type:"gridBackground",group:e,element:i})},t.createLabel=function(e,n,i,o,a,s,l,c,u,p,d){var f,h={};if(h[a.units.pos]=e+l[a.units.pos],h[a.counterUnits.pos]=l[a.counterUnits.pos],h[a.units.len]=n,h[a.counterUnits.len]=Math.max(0,s-10),p){var m=r.createElement("span");m.className=u.join(" "),m.setAttribute("xmlns",t.namespaces.xhtml),m.innerText=o[i],m.style[a.units.len]=Math.round(h[a.units.len])+"px",m.style[a.counterUnits.len]=Math.round(h[a.counterUnits.len])+"px",f=c.foreignObject(m,t.extend({style:"overflow: visible;"},h))}else f=c.elem("text",h,u.join(" ")).text(o[i]);d.emit("draw",t.extend({type:"label",axis:a,index:i,group:c,element:f,text:o[i]},h))},t.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){var r=t.series[e.name];return r.hasOwnProperty(n)?r[n]:t[n]}return t[n]},t.optionsProvider=function(e,r,i){var o,a,s=t.extend({},e),l=[];function c(e){var l=o;if(o=t.extend({},s),r)for(a=0;a<r.length;a++)n.matchMedia(r[a][0]).matches&&(o=t.extend(o,r[a][1]));i&&e&&i.emit("optionsChanged",{previousOptions:l,currentOptions:o})}function u(){l.forEach((function(e){e.removeListener(c)}))}if(!n.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(r)for(a=0;a<r.length;a++){var p=n.matchMedia(r[a][0]);p.addListener(c),l.push(p)}return c(),{removeMediaQueryListeners:u,getCurrentOptions:function(){return t.extend({},o)}}},t.splitIntoSegments=function(e,n,r){var i={increasingX:!1,fillHoles:!1};r=t.extend({},i,r);for(var o=[],a=!0,s=0;s<e.length;s+=2)void 0===t.getMultiValue(n[s/2].value)?r.fillHoles||(a=!0):(r.increasingX&&s>=2&&e[s]<=e[s-2]&&(a=!0),a&&(o.push({pathCoordinates:[],valueData:[]}),a=!1),o[o.length-1].pathCoordinates.push(e[s],e[s+1]),o[o.length-1].valueData.push(n[s/2]));return o}}(this||n.g,e),function(e,t){"use strict";t.Interpolation={},t.Interpolation.none=function(e){var n={fillHoles:!1};return e=t.extend({},n,e),function(n,r){for(var i=new t.Svg.Path,o=!0,a=0;a<n.length;a+=2){var s=n[a],l=n[a+1],c=r[a/2];void 0!==t.getMultiValue(c.value)?(o?i.move(s,l,!1,c):i.line(s,l,!1,c),o=!1):e.fillHoles||(o=!0)}return i}},t.Interpolation.simple=function(e){var n={divisor:2,fillHoles:!1};e=t.extend({},n,e);var r=1/Math.max(1,e.divisor);return function(n,i){for(var o,a,s,l=new t.Svg.Path,c=0;c<n.length;c+=2){var u=n[c],p=n[c+1],d=(u-o)*r,f=i[c/2];void 0!==f.value?(void 0===s?l.move(u,p,!1,f):l.curve(o+d,a,u-d,p,u,p,!1,f),o=u,a=p,s=f):e.fillHoles||(o=u=s=void 0)}return l}},t.Interpolation.cardinal=function(e){var n={tension:1,fillHoles:!1};e=t.extend({},n,e);var r=Math.min(1,Math.max(0,e.tension)),i=1-r;return function n(o,a){var s=t.splitIntoSegments(o,a,{fillHoles:e.fillHoles});if(s.length){if(s.length>1){var l=[];return s.forEach((function(e){l.push(n(e.pathCoordinates,e.valueData))})),t.Svg.Path.join(l)}if(o=s[0].pathCoordinates,a=s[0].valueData,o.length<=4)return t.Interpolation.none()(o,a);for(var c,u=(new t.Svg.Path).move(o[0],o[1],!1,a[0]),p=0,d=o.length;d-2*!c>p;p+=2){var f=[{x:+o[p-2],y:+o[p-1]},{x:+o[p],y:+o[p+1]},{x:+o[p+2],y:+o[p+3]},{x:+o[p+4],y:+o[p+5]}];c?p?d-4===p?f[3]={x:+o[0],y:+o[1]}:d-2===p&&(f[2]={x:+o[0],y:+o[1]},f[3]={x:+o[2],y:+o[3]}):f[0]={x:+o[d-2],y:+o[d-1]}:d-4===p?f[3]=f[2]:p||(f[0]={x:+o[p],y:+o[p+1]}),u.curve(r*(-f[0].x+6*f[1].x+f[2].x)/6+i*f[2].x,r*(-f[0].y+6*f[1].y+f[2].y)/6+i*f[2].y,r*(f[1].x+6*f[2].x-f[3].x)/6+i*f[2].x,r*(f[1].y+6*f[2].y-f[3].y)/6+i*f[2].y,f[2].x,f[2].y,!1,a[(p+2)/2])}return u}return t.Interpolation.none()([])}},t.Interpolation.monotoneCubic=function(e){var n={fillHoles:!1};return e=t.extend({},n,e),function n(r,i){var o=t.splitIntoSegments(r,i,{fillHoles:e.fillHoles,increasingX:!0});if(o.length){if(o.length>1){var a=[];return o.forEach((function(e){a.push(n(e.pathCoordinates,e.valueData))})),t.Svg.Path.join(a)}if(r=o[0].pathCoordinates,i=o[0].valueData,r.length<=4)return t.Interpolation.none()(r,i);var s,l,c=[],u=[],p=r.length/2,d=[],f=[],h=[],m=[];for(s=0;s<p;s++)c[s]=r[2*s],u[s]=r[2*s+1];for(s=0;s<p-1;s++)h[s]=u[s+1]-u[s],m[s]=c[s+1]-c[s],f[s]=h[s]/m[s];for(d[0]=f[0],d[p-1]=f[p-2],s=1;s<p-1;s++)0===f[s]||0===f[s-1]||f[s-1]>0!=f[s]>0?d[s]=0:(d[s]=3*(m[s-1]+m[s])/((2*m[s]+m[s-1])/f[s-1]+(m[s]+2*m[s-1])/f[s]),isFinite(d[s])||(d[s]=0));for(l=(new t.Svg.Path).move(c[0],u[0],!1,i[0]),s=0;s<p-1;s++)l.curve(c[s]+m[s]/3,u[s]+d[s]*m[s]/3,c[s+1]-m[s]/3,u[s+1]-d[s+1]*m[s]/3,c[s+1],u[s+1],!1,i[s+1]);return l}return t.Interpolation.none()([])}},t.Interpolation.step=function(e){var n={postpone:!0,fillHoles:!1};return e=t.extend({},n,e),function(n,r){for(var i,o,a,s=new t.Svg.Path,l=0;l<n.length;l+=2){var c=n[l],u=n[l+1],p=r[l/2];void 0!==p.value?(void 0===a?s.move(c,u,!1,p):(e.postpone?s.line(c,o,!1,a):s.line(i,u,!1,p),s.line(c,u,!1,p)),i=c,o=u,a=p):e.fillHoles||(i=o=a=void 0)}return s}}}(this||n.g,e),function(e,t){"use strict";t.EventEmitter=function(){var e=[];function t(t,n){e[t]=e[t]||[],e[t].push(n)}function n(t,n){e[t]&&(n?(e[t].splice(e[t].indexOf(n),1),0===e[t].length&&delete e[t]):delete e[t])}function r(t,n){e[t]&&e[t].forEach((function(e){e(n)})),e["*"]&&e["*"].forEach((function(e){e(t,n)}))}return{addEventHandler:t,removeEventHandler:n,emit:r}}}(this||n.g,e),function(e,t){"use strict";function n(e){var t=[];if(e.length)for(var n=0;n<e.length;n++)t.push(e[n]);return t}function r(e,n){var r=n||this.prototype||t.Class,i=Object.create(r);t.Class.cloneDefinitions(i,e);var o=function(){var e,n=i.constructor||function(){};return e=this===t?Object.create(i):this,n.apply(e,Array.prototype.slice.call(arguments,0)),e};return o.prototype=i,o.super=r,o.extend=this.extend,o}function i(){var e=n(arguments),t=e[0];return e.splice(1,e.length-1).forEach((function(e){Object.getOwnPropertyNames(e).forEach((function(n){delete t[n],Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))})),t}t.Class={extend:r,cloneDefinitions:i}}(this||n.g,e),function(e,t){"use strict";var n=e.window;function r(e,n,r){return e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),n&&(this.options=t.extend({},r?this.options:this.defaultOptions,n),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this}function i(){return this.initializeTimeoutId?n.clearTimeout(this.initializeTimeoutId):(n.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this}function o(e,t){return this.eventEmitter.addEventHandler(e,t),this}function a(e,t){return this.eventEmitter.removeEventHandler(e,t),this}function s(){n.addEventListener("resize",this.resizeListener),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(e){e instanceof Array?e[0](this,e[1]):e(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}function l(e,n,r,i,o){this.container=t.querySelector(e),this.data=n||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=r,this.options=i,this.responsiveOptions=o,this.eventEmitter=t.EventEmitter(),this.supportsForeignObject=t.Svg.isSupported("Extensibility"),this.supportsAnimations=t.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(s.bind(this),0)}t.Base=t.Class.extend({constructor:l,optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:r,detach:i,on:o,off:a,version:t.version,supportsForeignObject:!1})}(this||n.g,e),function(e,t){"use strict";var n=e.document;function r(e,r,i,o,a){e instanceof Element?this._node=e:(this._node=n.createElementNS(t.namespaces.svg,e),"svg"===e&&this.attr({"xmlns:ct":t.namespaces.ct})),r&&this.attr(r),i&&this.addClass(i),o&&(a&&o._node.firstChild?o._node.insertBefore(this._node,o._node.firstChild):o._node.appendChild(this._node))}function i(e,n){return"string"==typeof e?n?this._node.getAttributeNS(n,e):this._node.getAttribute(e):(Object.keys(e).forEach(function(n){if(void 0!==e[n])if(-1!==n.indexOf(":")){var r=n.split(":");this._node.setAttributeNS(t.namespaces[r[0]],n,e[n])}else this._node.setAttribute(n,e[n])}.bind(this)),this)}function o(e,n,r,i){return new t.Svg(e,n,r,this,i)}function a(){return this._node.parentNode instanceof SVGElement?new t.Svg(this._node.parentNode):null}function s(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new t.Svg(e)}function l(e){var n=this._node.querySelector(e);return n?new t.Svg(n):null}function c(e){var n=this._node.querySelectorAll(e);return n.length?new t.Svg.List(n):null}function u(){return this._node}function p(e,r,i,o){if("string"==typeof e){var a=n.createElement("div");a.innerHTML=e,e=a.firstChild}e.setAttribute("xmlns",t.namespaces.xmlns);var s=this.elem("foreignObject",r,i,o);return s._node.appendChild(e),s}function d(e){return this._node.appendChild(n.createTextNode(e)),this}function f(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}function h(){return this._node.parentNode.removeChild(this._node),this.parent()}function m(e){return this._node.parentNode.replaceChild(e._node,this._node),e}function g(e,t){return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this}function v(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]}function y(e){return this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/\s+/)).filter((function(e,t,n){return n.indexOf(e)===t})).join(" ")),this}function b(e){var t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter((function(e){return-1===t.indexOf(e)})).join(" ")),this}function x(){return this._node.setAttribute("class",""),this}function w(){return this._node.getBoundingClientRect().height}function A(){return this._node.getBoundingClientRect().width}function _(e,n,r){return void 0===n&&(n=!0),Object.keys(e).forEach(function(i){function o(e,n){var o,a,s,l={};e.easing&&(s=e.easing instanceof Array?e.easing:t.Svg.Easing[e.easing],delete e.easing),e.begin=t.ensureUnit(e.begin,"ms"),e.dur=t.ensureUnit(e.dur,"ms"),s&&(e.calcMode="spline",e.keySplines=s.join(" "),e.keyTimes="0;1"),n&&(e.fill="freeze",l[i]=e.from,this.attr(l),a=t.quantity(e.begin||0).value,e.begin="indefinite"),o=this.elem("animate",t.extend({attributeName:i},e)),n&&setTimeout(function(){try{o._node.beginElement()}catch(t){l[i]=e.to,this.attr(l),o.remove()}}.bind(this),a),r&&o._node.addEventListener("beginEvent",function(){r.emit("animationBegin",{element:this,animate:o._node,params:e})}.bind(this)),o._node.addEventListener("endEvent",function(){r&&r.emit("animationEnd",{element:this,animate:o._node,params:e}),n&&(l[i]=e.to,this.attr(l),o.remove())}.bind(this))}e[i]instanceof Array?e[i].forEach(function(e){o.bind(this)(e,!1)}.bind(this)):o.bind(this)(e[i],n)}.bind(this)),this}t.Svg=t.Class.extend({constructor:r,attr:i,elem:o,parent:a,root:s,querySelector:l,querySelectorAll:c,getNode:u,foreignObject:p,text:d,empty:f,remove:h,replace:m,append:g,classes:v,addClass:y,removeClass:b,removeAllClasses:x,height:w,width:A,animate:_}),t.Svg.isSupported=function(e){return n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")};var C={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};function k(e){var n=this;this.svgElements=[];for(var r=0;r<e.length;r++)this.svgElements.push(new t.Svg(e[r]));Object.keys(t.Svg.prototype).filter((function(e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)})).forEach((function(e){n[e]=function(){var r=Array.prototype.slice.call(arguments,0);return n.svgElements.forEach((function(n){t.Svg.prototype[e].apply(n,r)})),n}}))}t.Svg.Easing=C,t.Svg.List=t.Class.extend({constructor:k})}(this||n.g,e),function(e,t){"use strict";var n={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},r={accuracy:3};function i(e,n,r,i,o,a){var s=t.extend({command:o?e.toLowerCase():e.toUpperCase()},n,a?{data:a}:{});r.splice(i,0,s)}function o(e,t){e.forEach((function(r,i){n[r.command.toLowerCase()].forEach((function(n,o){t(r,n,i,o,e)}))}))}function a(e,n){this.pathElements=[],this.pos=0,this.close=e,this.options=t.extend({},r,n)}function s(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos}function l(e){return this.pathElements.splice(this.pos,e),this}function c(e,t,n,r){return i("M",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this}function u(e,t,n,r){return i("L",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this}function p(e,t,n,r,o,a,s,l){return i("C",{x1:+e,y1:+t,x2:+n,y2:+r,x:+o,y:+a},this.pathElements,this.pos++,s,l),this}function d(e,t,n,r,o,a,s,l,c){return i("A",{rx:+e,ry:+t,xAr:+n,lAf:+r,sf:+o,x:+a,y:+s},this.pathElements,this.pos++,l,c),this}function f(e){var r=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((function(e,t){return t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e}),[]);"Z"===r[r.length-1][0].toUpperCase()&&r.pop();var i=r.map((function(e){var r=e.shift(),i=n[r.toLowerCase()];return t.extend({command:r},i.reduce((function(t,n,r){return t[n]=+e[r],t}),{}))})),o=[this.pos,0];return Array.prototype.push.apply(o,i),Array.prototype.splice.apply(this.pathElements,o),this.pos+=i.length,this}function h(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(t,r){var i=n[r.command.toLowerCase()].map(function(t){return this.options.accuracy?Math.round(r[t]*e)/e:r[t]}.bind(this));return t+r.command+i.join(",")}.bind(this),"")+(this.close?"Z":"")}function m(e,t){return o(this.pathElements,(function(n,r){n[r]*="x"===r[0]?e:t})),this}function g(e,t){return o(this.pathElements,(function(n,r){n[r]+="x"===r[0]?e:t})),this}function v(e){return o(this.pathElements,(function(t,n,r,i,o){var a=e(t,n,r,i,o);(a||0===a)&&(t[n]=a)})),this}function y(e){var n=new t.Svg.Path(e||this.close);return n.pos=this.pos,n.pathElements=this.pathElements.slice().map((function(e){return t.extend({},e)})),n.options=t.extend({},this.options),n}function b(e){var n=[new t.Svg.Path];return this.pathElements.forEach((function(r){r.command===e.toUpperCase()&&0!==n[n.length-1].pathElements.length&&n.push(new t.Svg.Path),n[n.length-1].pathElements.push(r)})),n}function x(e,n,r){for(var i=new t.Svg.Path(n,r),o=0;o<e.length;o++)for(var a=e[o],s=0;s<a.pathElements.length;s++)i.pathElements.push(a.pathElements[s]);return i}t.Svg.Path=t.Class.extend({constructor:a,position:s,remove:l,move:c,line:u,curve:p,arc:d,scale:m,translate:g,transform:v,parse:f,stringify:h,clone:y,splitByCommand:b}),t.Svg.Path.elementDescriptions=n,t.Svg.Path.join=x}(this||n.g,e),function(e,t){"use strict";e.window,e.document;var n={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};function r(e,t,r,i){this.units=e,this.counterUnits=e===n.x?n.y:n.x,this.chartRect=t,this.axisLength=t[e.rectEnd]-t[e.rectStart],this.gridOffset=t[e.rectOffset],this.ticks=r,this.options=i}function i(e,n,r,i,o){var a=i["axis"+this.units.pos.toUpperCase()],s=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(a.labelInterpolationFnc);s.forEach(function(c,u){var p,d={x:0,y:0};p=s[u+1]?s[u+1]-c:Math.max(this.axisLength-c,30),t.isFalseyButZero(l[u])&&""!==l[u]||("x"===this.units.pos?(c=this.chartRect.x1+c,d.x=i.axisX.labelOffset.x,"start"===i.axisX.position?d.y=this.chartRect.padding.top+i.axisX.labelOffset.y+(r?5:20):d.y=this.chartRect.y1+i.axisX.labelOffset.y+(r?5:20)):(c=this.chartRect.y1-c,d.y=i.axisY.labelOffset.y-(r?p:0),"start"===i.axisY.position?d.x=r?this.chartRect.padding.left+i.axisY.labelOffset.x:this.chartRect.x1-10:d.x=this.chartRect.x2+i.axisY.labelOffset.x+10),a.showGrid&&t.createGrid(c,u,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[i.classNames.grid,i.classNames[this.units.dir]],o),a.showLabel&&t.createLabel(c,p,u,l,this,a.offset,d,n,[i.classNames.label,i.classNames[this.units.dir],"start"===a.position?i.classNames[a.position]:i.classNames.end],r,o))}.bind(this))}t.Axis=t.Class.extend({constructor:r,createGridAndLabels:i,projectValue:function(e,t,n){throw new Error("Base axis can't be instantiated!")}}),t.Axis.units=n}(this||n.g,e),function(e,t){"use strict";function n(e,n,r,i){var o=i.highLow||t.getHighLow(n,i,e.pos);this.bounds=t.getBounds(r[e.rectEnd]-r[e.rectStart],o,i.scaleMinSpace||20,i.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},t.AutoScaleAxis.super.constructor.call(this,e,r,this.bounds.values,i)}function r(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}e.window,e.document,t.AutoScaleAxis=t.Axis.extend({constructor:n,projectValue:r})}(this||n.g,e),function(e,t){"use strict";function n(e,n,r,i){var o=i.highLow||t.getHighLow(n,i,e.pos);this.divisor=i.divisor||1,this.ticks=i.ticks||t.times(this.divisor).map(function(e,t){return o.low+(o.high-o.low)/this.divisor*t}.bind(this)),this.ticks.sort((function(e,t){return e-t})),this.range={min:o.low,max:o.high},t.FixedScaleAxis.super.constructor.call(this,e,r,this.ticks,i),this.stepLength=this.axisLength/this.divisor}function r(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}e.window,e.document,t.FixedScaleAxis=t.Axis.extend({constructor:n,projectValue:r})}(this||n.g,e),function(e,t){"use strict";function n(e,n,r,i){t.StepAxis.super.constructor.call(this,e,r,i.ticks,i);var o=Math.max(1,i.ticks.length-(i.stretch?1:0));this.stepLength=this.axisLength/o}function r(e,t){return this.stepLength*t}e.window,e.document,t.StepAxis=t.Axis.extend({constructor:n,projectValue:r})}(this||n.g,e),function(e,t){"use strict";e.window,e.document;var n={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};function r(e){var r=t.normalizeData(this.data,e.reverseData,!0);this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart);var i,o,a=this.svg.elem("g").addClass(e.classNames.gridGroup),s=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup),c=t.createChartRect(this.svg,e,n.padding);i=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,r.normalized.series,c,t.extend({},e.axisX,{ticks:r.normalized.labels,stretch:e.fullWidth})):e.axisX.type.call(t,t.Axis.units.x,r.normalized.series,c,e.axisX),o=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,r.normalized.series,c,t.extend({},e.axisY,{high:t.isNumeric(e.high)?e.high:e.axisY.high,low:t.isNumeric(e.low)?e.low:e.axisY.low})):e.axisY.type.call(t,t.Axis.units.y,r.normalized.series,c,e.axisY),i.createGridAndLabels(a,l,this.supportsForeignObject,e,this.eventEmitter),o.createGridAndLabels(a,l,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&t.createGridBackground(a,c,e.classNames.gridBackground,this.eventEmitter),r.raw.series.forEach(function(n,a){var l=s.elem("g");l.attr({"ct:series-name":n.name,"ct:meta":t.serialize(n.meta)}),l.addClass([e.classNames.series,n.className||e.classNames.series+"-"+t.alphaNumerate(a)].join(" "));var u=[],p=[];r.normalized.series[a].forEach(function(e,s){var l={x:c.x1+i.projectValue(e,s,r.normalized.series[a]),y:c.y1-o.projectValue(e,s,r.normalized.series[a])};u.push(l.x,l.y),p.push({value:e,valueIndex:s,meta:t.getMetaData(n,s)})}.bind(this));var d={lineSmooth:t.getSeriesOption(n,e,"lineSmooth"),showPoint:t.getSeriesOption(n,e,"showPoint"),showLine:t.getSeriesOption(n,e,"showLine"),showArea:t.getSeriesOption(n,e,"showArea"),areaBase:t.getSeriesOption(n,e,"areaBase")},f=("function"==typeof d.lineSmooth?d.lineSmooth:d.lineSmooth?t.Interpolation.monotoneCubic():t.Interpolation.none())(u,p);if(d.showPoint&&f.pathElements.forEach(function(r){var s=l.elem("line",{x1:r.x,y1:r.y,x2:r.x+.01,y2:r.y},e.classNames.point).attr({"ct:value":[r.data.value.x,r.data.value.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(r.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:r.data.value,index:r.data.valueIndex,meta:r.data.meta,series:n,seriesIndex:a,axisX:i,axisY:o,group:l,element:s,x:r.x,y:r.y})}.bind(this)),d.showLine){var h=l.elem("path",{d:f.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.normalized.series[a],path:f.clone(),chartRect:c,index:a,series:n,seriesIndex:a,seriesMeta:n.meta,axisX:i,axisY:o,group:l,element:h})}if(d.showArea&&o.range){var m=Math.max(Math.min(d.areaBase,o.range.max),o.range.min),g=c.y1-o.projectValue(m);f.splitByCommand("M").filter((function(e){return e.pathElements.length>1})).map((function(e){var t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,g).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,g)})).forEach(function(t){var s=l.elem("path",{d:t.stringify()},e.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.normalized.series[a],path:t.clone(),series:n,seriesIndex:a,axisX:i,axisY:o,chartRect:c,index:a,group:l,element:s})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:o.bounds,chartRect:c,axisX:i,axisY:o,svg:this.svg,options:e})}function i(e,r,i,o){t.Line.super.constructor.call(this,e,r,n,t.extend({},n,i),o)}t.Line=t.Base.extend({constructor:i,createChart:r})}(this||n.g,e),function(e,t){"use strict";e.window,e.document;var n={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};function r(e){var r,i;e.distributeSeries?(r=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y")).normalized.series=r.normalized.series.map((function(e){return[e]})):r=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y"),this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var o=this.svg.elem("g").addClass(e.classNames.gridGroup),a=this.svg.elem("g"),s=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars&&0!==r.normalized.series.length){var l=t.serialMap(r.normalized.series,(function(){return Array.prototype.slice.call(arguments).map((function(e){return e})).reduce((function(e,t){return{x:e.x+(t&&t.x)||0,y:e.y+(t&&t.y)||0}}),{x:0,y:0})}));i=t.getHighLow([l],e,e.horizontalBars?"x":"y")}else i=t.getHighLow(r.normalized.series,e,e.horizontalBars?"x":"y");i.high=+e.high||(0===e.high?0:i.high),i.low=+e.low||(0===e.low?0:i.low);var c,u,p,d,f,h=t.createChartRect(this.svg,e,n.padding);u=e.distributeSeries&&e.stackBars?r.normalized.labels.slice(0,1):r.normalized.labels,e.horizontalBars?(c=d=void 0===e.axisX.type?new t.AutoScaleAxis(t.Axis.units.x,r.normalized.series,h,t.extend({},e.axisX,{highLow:i,referenceValue:0})):e.axisX.type.call(t,t.Axis.units.x,r.normalized.series,h,t.extend({},e.axisX,{highLow:i,referenceValue:0})),p=f=void 0===e.axisY.type?new t.StepAxis(t.Axis.units.y,r.normalized.series,h,{ticks:u}):e.axisY.type.call(t,t.Axis.units.y,r.normalized.series,h,e.axisY)):(p=d=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,r.normalized.series,h,{ticks:u}):e.axisX.type.call(t,t.Axis.units.x,r.normalized.series,h,e.axisX),c=f=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,r.normalized.series,h,t.extend({},e.axisY,{highLow:i,referenceValue:0})):e.axisY.type.call(t,t.Axis.units.y,r.normalized.series,h,t.extend({},e.axisY,{highLow:i,referenceValue:0})));var m=e.horizontalBars?h.x1+c.projectValue(0):h.y1-c.projectValue(0),g=[];p.createGridAndLabels(o,s,this.supportsForeignObject,e,this.eventEmitter),c.createGridAndLabels(o,s,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&t.createGridBackground(o,h,e.classNames.gridBackground,this.eventEmitter),r.raw.series.forEach(function(n,i){var o,s,l=i-(r.raw.series.length-1)/2;o=e.distributeSeries&&!e.stackBars?p.axisLength/r.normalized.series.length/2:e.distributeSeries&&e.stackBars?p.axisLength/2:p.axisLength/r.normalized.series[i].length/2,(s=a.elem("g")).attr({"ct:series-name":n.name,"ct:meta":t.serialize(n.meta)}),s.addClass([e.classNames.series,n.className||e.classNames.series+"-"+t.alphaNumerate(i)].join(" ")),r.normalized.series[i].forEach(function(a,u){var v,y,b,x;if(x=e.distributeSeries&&!e.stackBars?i:e.distributeSeries&&e.stackBars?0:u,v=e.horizontalBars?{x:h.x1+c.projectValue(a&&a.x?a.x:0,u,r.normalized.series[i]),y:h.y1-p.projectValue(a&&a.y?a.y:0,x,r.normalized.series[i])}:{x:h.x1+p.projectValue(a&&a.x?a.x:0,x,r.normalized.series[i]),y:h.y1-c.projectValue(a&&a.y?a.y:0,u,r.normalized.series[i])},p instanceof t.StepAxis&&(p.options.stretch||(v[p.units.pos]+=o*(e.horizontalBars?-1:1)),v[p.units.pos]+=e.stackBars||e.distributeSeries?0:l*e.seriesBarDistance*(e.horizontalBars?-1:1)),b=g[u]||m,g[u]=b-(m-v[p.counterUnits.pos]),void 0!==a){var w={};w[p.units.pos+"1"]=v[p.units.pos],w[p.units.pos+"2"]=v[p.units.pos],!e.stackBars||"accumulate"!==e.stackMode&&e.stackMode?(w[p.counterUnits.pos+"1"]=m,w[p.counterUnits.pos+"2"]=v[p.counterUnits.pos]):(w[p.counterUnits.pos+"1"]=b,w[p.counterUnits.pos+"2"]=g[u]),w.x1=Math.min(Math.max(w.x1,h.x1),h.x2),w.x2=Math.min(Math.max(w.x2,h.x1),h.x2),w.y1=Math.min(Math.max(w.y1,h.y2),h.y1),w.y2=Math.min(Math.max(w.y2,h.y2),h.y1);var A=t.getMetaData(n,u);y=s.elem("line",w,e.classNames.bar).attr({"ct:value":[a.x,a.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(A)}),this.eventEmitter.emit("draw",t.extend({type:"bar",value:a,index:u,meta:A,series:n,seriesIndex:i,axisX:d,axisY:f,chartRect:h,group:s,element:y},w))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:h,axisX:d,axisY:f,svg:this.svg,options:e})}function i(e,r,i,o){t.Bar.super.constructor.call(this,e,r,n,t.extend({},n,i),o)}t.Bar=t.Base.extend({constructor:i,createChart:r})}(this||n.g,e),function(e,t){"use strict";e.window,e.document;var n={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:t.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function r(e,t,n){var r=t.x>e.x;return r&&"explode"===n||!r&&"implode"===n?"start":r&&"implode"===n||!r&&"explode"===n?"end":"middle"}function i(e){var i,o,a,s,l,c=t.normalizeData(this.data),u=[],p=e.startAngle;this.svg=t.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie),o=t.createChartRect(this.svg,e,n.padding),a=Math.min(o.width()/2,o.height()/2),l=e.total||c.normalized.series.reduce((function(e,t){return e+t}),0);var d=t.quantity(e.donutWidth);"%"===d.unit&&(d.value*=a/100),a-=e.donut&&!e.donutSolid?d.value/2:0,s="outside"===e.labelPosition||e.donut&&!e.donutSolid?a:"center"===e.labelPosition?0:e.donutSolid?a-d.value/2:a/2,s+=e.labelOffset;var f={x:o.x1+o.width()/2,y:o.y2+o.height()/2},h=1===c.raw.series.filter((function(e){return e.hasOwnProperty("value")?0!==e.value:0!==e})).length;c.raw.series.forEach(function(e,t){u[t]=this.svg.elem("g",null,null)}.bind(this)),e.showLabel&&(i=this.svg.elem("g",null,null)),c.raw.series.forEach(function(n,o){if(0!==c.normalized.series[o]||!e.ignoreEmptyValues){u[o].attr({"ct:series-name":n.name}),u[o].addClass([e.classNames.series,n.className||e.classNames.series+"-"+t.alphaNumerate(o)].join(" "));var m=l>0?p+c.normalized.series[o]/l*360:0,g=Math.max(0,p-(0===o||h?0:.2));m-g>=359.99&&(m=g+359.99);var v,y,b,x=t.polarToCartesian(f.x,f.y,a,g),w=t.polarToCartesian(f.x,f.y,a,m),A=new t.Svg.Path(!e.donut||e.donutSolid).move(w.x,w.y).arc(a,a,0,m-p>180,0,x.x,x.y);e.donut?e.donutSolid&&(b=a-d.value,v=t.polarToCartesian(f.x,f.y,b,p-(0===o||h?0:.2)),y=t.polarToCartesian(f.x,f.y,b,m),A.line(v.x,v.y),A.arc(b,b,0,m-p>180,1,y.x,y.y)):A.line(f.x,f.y);var _=e.classNames.slicePie;e.donut&&(_=e.classNames.sliceDonut,e.donutSolid&&(_=e.classNames.sliceDonutSolid));var C=u[o].elem("path",{d:A.stringify()},_);if(C.attr({"ct:value":c.normalized.series[o],"ct:meta":t.serialize(n.meta)}),e.donut&&!e.donutSolid&&(C._node.style.strokeWidth=d.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:c.normalized.series[o],totalDataSum:l,index:o,meta:n.meta,series:n,group:u[o],element:C,path:A.clone(),center:f,radius:a,startAngle:p,endAngle:m}),e.showLabel){var k,S;k=1===c.raw.series.length?{x:f.x,y:f.y}:t.polarToCartesian(f.x,f.y,s,p+(m-p)/2),S=c.normalized.labels&&!t.isFalseyButZero(c.normalized.labels[o])?c.normalized.labels[o]:c.normalized.series[o];var E=e.labelInterpolationFnc(S,o);if(E||0===E){var T=i.elem("text",{dx:k.x,dy:k.y,"text-anchor":r(f,k,e.labelDirection)},e.classNames.label).text(""+E);this.eventEmitter.emit("draw",{type:"label",index:o,group:i,element:T,text:""+E,x:k.x,y:k.y})}}p=m}}.bind(this)),this.eventEmitter.emit("created",{chartRect:o,svg:this.svg,options:e})}function o(e,r,i,o){t.Pie.super.constructor.call(this,e,r,n,t.extend({},n,i),o)}t.Pie=t.Base.extend({constructor:o,createChart:i,determineAnchorPosition:r})}(this||n.g,e),e}()}.apply(t,[]),void 0===r||(e.exports=r)},55292:(e,t,n)=>{!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function c(t){if("string"==typeof t)p.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var u,p=a.getElementsByTagName("input")[0];return p?(p.focus(),o.value&&(p.value=o.value,!1!==o.selectValueOnOpen&&p.select()),o.onInput&&e.on(p,"input",(function(e){o.onInput(e,p.value,c)})),o.onKeyUp&&e.on(p,"keyup",(function(e){o.onKeyUp(e,p.value,c)})),e.on(p,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,p.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(p.blur(),e.e_stop(t),c()),13==t.keyCode&&i(p.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",(function(){c(),l.focus()})),!1!==o.closeOnBlur&&e.on(u,"blur",c),u.focus()),c})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function p(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var d=0;d<s.length;++d){var f=s[d];!function(t){e.on(f,"click",(function(n){e.e_preventDefault(n),p(),t&&t(c)}))}(i[d]),e.on(f,"blur",(function(){--u,setTimeout((function(){u<=0&&p()}),200)})),e.on(f,"focus",(function(){++u}))}})),e.defineExtension("openNotification",(function(r,i){n(this,c);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function c(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),c()})),l&&(o=setTimeout(c,l)),c}))}(n(4631))},4328:(e,t,n)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=i(o),p=!c&&l>=0&&u.test(s.text.charAt(l))&&r[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!p)return null;var d=">"==p.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(d>0?1:0)),d,f,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==p.charAt(0),forward:d>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],p=i(s),d=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),f=t.line;f!=d;f+=o){var h=e.getLine(f);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(f==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(p.test(v)&&(void 0===a||(e.getTokenTypeAt(n(f,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)u.push(v);else{if(!u.length)return{pos:n(f,m),ch:v};u.pop()}}}}}return f-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],c=e.listSelections(),u=0;u<c.length;u++){var p=c[u].empty()&&o(e,c[u].head,i);if(p&&(p.match||!1!==s)&&e.getLine(p.from.line).length<=a){var d=p.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(p.from,n(p.from.line,p.from.ch+1),{className:d})),p.to&&e.getLine(p.to.line).length<=a&&l.push(e.markText(p.to,n(p.to.line,p.to.ch+1),{className:d}))}}if(l.length){t&&e.state.focused&&e.focus();var f=function(){e.operation((function(){for(var e=0;e<l.length;e++)l[e].clear()}))};if(!r)return f;setTimeout(f,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(4631))},87093:(e,t,n)=>{!function(e){"use strict";e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&i>-1?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null,startingInner:!1}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner),startingInner:n.startingInner}},token:function(i,o){if(o.innerActive){var a=o.innerActive;if(c=i.string,!a.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((p=a.close&&!o.startingInner?r(c,a.close,i.pos,a.parseDelimiters):-1)==i.pos&&!a.parseDelimiters)return i.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";p>-1&&(i.string=c.slice(0,p));var s=a.mode.token(i,o.inner);return p>-1?i.string=c:i.pos>i.start&&(o.startingInner=!1),p==i.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var l=1/0,c=i.string,u=0;u<n.length;++u){var p,d=n[u];if((p=r(c,d.open,i.pos))==i.pos){d.parseDelimiters||i.match(d.open),o.startingInner=!!d.parseDelimiters,o.innerActive=d;var f=0;if(t.indent){var h=t.indent(o.outer,"","");h!==e.Pass&&(f=h)}return o.inner=e.startState(d.mode,f),d.delimStyle&&d.delimStyle+" "+d.delimStyle+"-open"}-1!=p&&p<l&&(l=p)}l!=1/0&&(i.string=c.slice(0,l));var m=t.token(i,o.outer);return l!=1/0&&(i.string=c),m},indent:function(n,r,i){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(r){var i=r.innerActive?r.innerActive.mode:t;if(i.blankLine&&i.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var o=0;o<n.length;++o){var a=n[o];"\n"===a.open&&(r.innerActive=a,r.inner=e.startState(a.mode,i.indent?i.indent(r.outer,"",""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}(n(4631))},14146:(e,t,n)=>{!function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}(n(4631))},40790:(e,t,n)=>{!function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e.unicode&&(n+="u"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}function i(e,i){(e.next||e.push)&&t(i,e.next||e.push),this.regex=n(e.regex),this.token=r(e.token),this.data=e}function o(e,t){return function(n,r){if(r.pending){var i=r.pending.shift();return 0==r.pending.length&&(r.pending=null),n.pos+=i.text.length,i.token}if(r.local){if(r.local.end&&n.match(r.local.end)){var o=r.local.endToken||null;return r.local=r.localState=null,o}var a;return o=r.local.mode.token(n,r.localState),r.local.endScan&&(a=r.local.endScan.exec(n.current()))&&(n.pos=n.start+a.index),o}for(var l=e[r.state],c=0;c<l.length;c++){var u=l[c],p=(!u.data.sol||n.sol())&&n.match(u.regex);if(p){u.data.next?r.state=u.data.next:u.data.push?((r.stack||(r.stack=[])).push(r.state),r.state=u.data.push):u.data.pop&&r.stack&&r.stack.length&&(r.state=r.stack.pop()),u.data.mode&&s(t,r,u.data.mode,u.token),u.data.indent&&r.indent.push(n.indentation()+t.indentUnit),u.data.dedent&&r.indent.pop();var d=u.token;if(d&&d.apply&&(d=d(p)),p.length>2&&u.token&&"string"!=typeof u.token){for(var f=2;f<p.length;f++)p[f]&&(r.pending||(r.pending=[])).push({text:p[f],token:u.token[f-1]});return n.backUp(p[0].length-(p[1]?p[1].length:0)),d[0]}return d&&d.join?d[0]:d}}return n.next(),null}}function a(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!a(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function s(t,r,i,o){var s;if(i.persistent)for(var l=r.persistentStates;l&&!s;l=l.next)(i.spec?a(i.spec,l.spec):i.mode==l.mode)&&(s=l);var c=s?s.mode:i.mode||e.getMode(t,i.spec),u=s?s.state:e.startState(c);i.persistent&&!s&&(r.persistentStates={mode:c,spec:i.spec,state:u,next:r.persistentStates}),r.localState=u,r.local={mode:c,end:i.end&&n(i.end),endScan:i.end&&!1!==i.forceEnd&&n(i.end,!1),endToken:o&&o.join?o[o.length-1]:o}}function l(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}function c(t,n){return function(r,i,o){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,o);if(null==r.indent||r.local||n.dontIndentStates&&l(r.state,n.dontIndentStates)>-1)return e.Pass;var a=r.indent.length-1,s=t[r.state];e:for(;;){for(var c=0;c<s.length;c++){var u=s[c];if(u.data.dedent&&!1!==u.data.dedentIfLineStart){var p=u.regex.exec(i);if(p&&p[0]){a--,(u.next||u.push)&&(s=t[u.next||u.push]),i=i.slice(p[0].length);continue e}}}break}return a<0?0:r.indent[a]}}e.defineSimpleMode=function(t,n){e.defineMode(t,(function(t){return e.simpleMode(t,n)}))},e.simpleMode=function(n,r){t(r,"start");var a={},s=r.meta||{},l=!1;for(var u in r)if(u!=s&&r.hasOwnProperty(u))for(var p=a[u]=[],d=r[u],f=0;f<d.length;f++){var h=d[f];p.push(new i(h,r)),(h.indent||h.dedent)&&(l=!0)}var m={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:l?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:o(a,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:c(a,s)};if(s)for(var g in s)s.hasOwnProperty(g)&&(m[g]=s[g]);return m}}(n(4631))},32095:(e,t,n)=>{!function(e){"use strict";var t,n,r=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=i(e),r=n,o=0;o<t.length;o++)-1==r.indexOf(t.charAt(o))&&(r+=t.charAt(o));return n==r?e:new RegExp(e.source,r)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.lastLine();i<=s;i++,a=0){t.lastIndex=a;var l=e.getLine(i),c=t.exec(l);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function l(e,t,n){if(!a(t))return s(e,t,n);t=o(t,"gm");for(var i,l=1,c=n.line,u=e.lastLine();c<=u;){for(var p=0;p<l&&!(c>u);p++){var d=e.getLine(c++);i=null==i?d:i+"\n"+d}l*=2,t.lastIndex=n.ch;var f=t.exec(i);if(f){var h=i.slice(0,f.index).split("\n"),m=f[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:f}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.firstLine();i>=s;i--,a=-1){var l=e.getLine(i),u=c(l,t,a<0?0:l.length-a);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function p(e,t,n){if(!a(t))return u(e,t,n);t=o(t,"gm");for(var i,s=1,l=e.getLine(n.line).length-n.ch,p=n.line,d=e.firstLine();p>=d;){for(var f=0;f<s&&p>=d;f++){var h=e.getLine(p--);i=null==i?h:h+"\n"+i}s*=2;var m=c(i,t,l);if(m){var g=i.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=p+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,p=e.lastLine()+1-l.length;c<=p;c++,u=0){var f=e.getLine(c).slice(u),h=s(f);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(f,h,m,s)+u,{from:r(c,d(f,h,m,s)+u),to:r(c,d(f,h,m+l[0].length,s)+u)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),b=s(y),x=l[l.length-1];if(b.slice(0,x.length)==x)return{from:r(c,d(f,h,g,s)+u),to:r(c+l.length-1,d(y,b,x.length,s))}}}}function h(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,p=e.firstLine()-1+l.length;c>=p;c--,u=-1){var f=e.getLine(c);u>-1&&(f=f.slice(0,u));var h=s(f);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(c,d(f,h,m,s)),to:r(c,d(f,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(c+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(c,d(f,h,g.length,s))}}}}function m(e,t,n,i){var a;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?a=i.caseFold:(a=i,i=null),"string"==typeof t?(null==a&&(a=!1),this.matches=function(n,r){return(n?h:f)(e,t,r,a)}):(t=o(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?u:s)(e,t,r)}:this.matches=function(n,r){return(n?p:l)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),m.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new m(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new m(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(4631))},82585:(e,t,n)=>{!function(e){"use strict";function t(e){var t=e.Pos;function n(e,n){var r=e.state.vim;if(!r||r.insertMode)return n.head;var i=r.sel.head;return i?r.visualBlock&&n.head.line!=i.line?void 0:n.from()!=n.anchor||n.empty()||n.head.line!=i.line||n.head.ch==i.ch?n.head:new t(n.head.line,n.head.ch-1):n.head}var r=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],i=r.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}];function a(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",zt),q(t),e.on(t.getInputField(),"paste",h(t))}function s(t){t.setOption("disableInput",!1),t.off("cursorActivity",zt),e.off(t.getInputField(),"paste",h(t)),t.state.vim=null,bt&&clearTimeout(bt)}function l(t,n){this==e.keyMap.vim&&(t.options.$customCursor=null,e.rmClass(t.getWrapperElement(),"cm-fat-cursor")),n&&n.attach==c||s(t)}function c(t,r){this==e.keyMap.vim&&(t.curOp&&(t.curOp.selectionChanged=!0),t.options.$customCursor=n,e.addClass(t.getWrapperElement(),"cm-fat-cursor")),r&&r.attach==c||a(t)}function u(t,n){if(n){if(this[t])return this[t];var r=f(t);if(!r)return!1;var i=W.findKey(n,r);return"function"==typeof i&&e.signal(n,"vim-keypress",r),i}}e.defineOption("vimMode",!1,(function(t,n,r){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&r!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")}));var p={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},d={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function f(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var r=!1,i=0;i<t.length;i++){var o=t[i];o in p?t[i]=p[o]:r=!0,o in d&&(t[i]=d[o])}return!!r&&(O(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}function h(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(se(e.getCursor(),0,1)),re.enterInsertMode(e,{},t))}),t.onPasteFn}var m=/[\d]/,g=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],v=[function(e){return/\S/.test(e)}];function y(e,t){for(var n=[],r=e;r<e+t;r++)n.push(String.fromCharCode(r));return n}var b,x=y(65,26),w=y(97,26),A=y(48,10),_=[].concat(x,w,A,["<",">"]),C=[].concat(x,w,A,["-",'"',".",":","_","/"]);try{b=new RegExp("^[\\p{Lu}]$","u")}catch(e){b=/^[A-Z]$/}function k(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function S(e){return/^[a-z]$/.test(e)}function E(e){return-1!="()[]{}".indexOf(e)}function T(e){return m.test(e)}function O(e){return b.test(e)}function M(e){return/^\s*$/.test(e)}function L(e){return-1!=".?!".indexOf(e)}function B(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}var D={};function N(e,t,n,r,i){if(void 0===t&&!i)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),D[e]={type:n,defaultValue:t,callback:i},r)for(var o=0;o<r.length;o++)D[r[o]]=D[e];t&&j(e,t)}function j(e,t,n,r){var i=D[e],o=(r=r||{}).scope;if(!i)return new Error("Unknown option: "+e);if("boolean"==i.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}i.callback?("local"!==o&&i.callback(t,void 0),"global"!==o&&n&&i.callback(t,n)):("local"!==o&&(i.value="boolean"==i.type?!!t:t),"global"!==o&&n&&(n.state.vim.options[e]={value:t}))}function P(e,t,n){var r=D[e],i=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+e);if(r.callback){var o=t&&r.callback(void 0,t);return"global"!==i&&void 0!==o?o:"local"!==i?r.callback():void 0}return((o="global"!==i&&t&&t.state.vim.options[e])||"local"!==i&&r||{}).value}N("filetype",void 0,"string",["ft"],(function(e,t){if(void 0!==t){if(void 0===e)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}}));var R,F,I=function(){var e=100,t=-1,n=0,r=0,i=new Array(e);function o(o,a,s){var l=i[t%e];function c(n){var r=++t%e,a=i[r];a&&a.clear(),i[r]=o.setBookmark(n)}if(l){var u=l.find();u&&!fe(u,a)&&c(a)}else c(a);c(s),n=t,(r=t-e+1)<0&&(r=0)}function a(o,a){(t+=a)>n?t=n:t<r&&(t=r);var s=i[(e+t)%e];if(s&&!s.find()){var l,c=a>0?1:-1,u=o.getCursor();do{if((s=i[(e+(t+=c))%e])&&(l=s.find())&&!fe(u,l))break}while(t<n&&t>r)}return s}function s(e,n){var r=t,i=a(e,n);return t=r,i&&i.find()}return{cachedCursor:void 0,add:o,find:s,move:a}},z=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function $(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=z()}function q(e){return e.state.vim||(e.state.vim={inputState:new U,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function H(){for(var e in R={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:I(),macroModeState:new $,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Y({}),searchHistoryController:new X,exCommandHistoryController:new X},D){var t=D[e];t.value=t.defaultValue}}$.prototype={exitMacroRecordMode:function(){var e=R.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=R.registerController.getRegister(t);if(n){if(n.clear(),this.latestRegister=t,e.openDialog){var r=dt("span",{class:"cm-vim-message"},"recording @"+t);this.onRecordingDone=e.openDialog(r,null,{bottom:!0})}this.isRecording=!0}}};var W={enterVimMode:a,buildKeyMap:function(){},getRegisterController:function(){return R.registerController},resetVimGlobalState_:H,getVimGlobalState_:function(){return R},maybeInitVimState_:q,suppressErrorLogging:!1,InsertModeKey:qt,map:function(e,t,n){Mt.map(e,t,n)},unmap:function(e,t){return Mt.unmap(e,t)},noremap:function(e,t,n){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(n),s=r.length,l=s-i;l<s&&a.length;l++){var c=r[l];if(!(c.keys!=t||n&&c.context&&c.context!==n||"ex"===c.type.substr(0,2)||"key"===c.type.substr(0,3))){var u={};for(var p in c)u[p]=c[p];u.keys=e,n&&!u.context&&(u.context=n),this._mapCommand(u);var d=o(c.context);a=a.filter((function(e){return-1===d.indexOf(e)}))}}},mapclear:function(e){var t=r.length,n=i,o=r.slice(0,t-n);if(r=r.slice(t-n),e)for(var a=o.length-1;a>=0;a--){var s=o[a];if(e!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var c in l)if(l[c]!==e){var u={};for(var p in s)u[p]=s[p];u.context=l[c],this._mapCommand(u)}}}},setOption:j,getOption:P,defineOption:N,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;Ot[e]=n,Mt.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if("function"==typeof r)return r()},multiSelectHandleKey:Kt,findKey:function(e,t,n){var i,o=q(e);function a(){var r=R.macroModeState;if(r.isRecording){if("q"==t)return r.exitMacroRecordMode(),V(e),!0;"mapping"!=n&&Pt(r,t)}}function s(){if("<Esc>"==t){if(o.visualMode)Le(e);else{if(!o.insertMode)return;Bt(e)}return V(e),!0}}function l(n){for(var r;n;)r=/<\w+-.+?>|<\w+>|./.exec(n),t=r[0],n=n.substring(r.index+t.length),W.handleKey(e,t,"mapping")}function c(){if(s())return!0;for(var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t,i=1==t.length,a=J.matchCommand(n,r,o.inputState,"insert");n.length>1&&"full"!=a.type;){n=o.inputState.keyBuffer=n.slice(1);var l=J.matchCommand(n,r,o.inputState,"insert");"none"!=l.type&&(a=l)}if("none"==a.type)return V(e),!1;if("partial"==a.type)return F&&window.clearTimeout(F),F=window.setTimeout((function(){o.insertMode&&o.inputState.keyBuffer&&V(e)}),P("insertModeEscKeysTimeout")),!i;if(F&&window.clearTimeout(F),i){for(var c=e.listSelections(),u=0;u<c.length;u++){var p=c[u].head;e.replaceRange("",se(p,0,-(n.length-1)),p,"+input")}R.macroModeState.lastInsertModeChanges.changes.pop()}return V(e),a.command}function u(){if(a()||s())return!0;var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t;if(/^[1-9]\d*$/.test(n))return!0;var i=/^(\d*)(.*)$/.exec(n);if(!i)return V(e),!1;var l=o.visualMode?"visual":"normal",c=i[2]||i[1];o.inputState.operatorShortcut&&o.inputState.operatorShortcut.slice(-1)==c&&(c=o.inputState.operatorShortcut);var u=J.matchCommand(c,r,o.inputState,l);return"none"==u.type?(V(e),!1):"partial"==u.type||("clear"==u.type?(V(e),!0):(o.inputState.keyBuffer="",(i=/^(\d*)(.*)$/.exec(n))[1]&&"0"!=i[1]&&o.inputState.pushRepeatDigit(i[1]),u.command))}return!1===(i=o.insertMode?c():u())?o.insertMode||1!==t.length?void 0:function(){return!0}:!0===i?function(){return!0}:function(){return e.operation((function(){e.curOp.isVimOp=!0;try{"keyToKey"==i.type?l(i.toKeys):J.processCommand(e,o,i)}catch(t){throw e.state.vim=void 0,q(e),W.suppressErrorLogging||console.log(t),t}return!0}))}},handleEx:function(e,t){Mt.processCommand(e,t)},defineMotion:Q,defineAction:ie,defineOperator:ne,mapCommand:Nt,_mapCommand:Dt,defineRegister:G,exitVisualMode:Le,exitInsertMode:Bt};function U(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function V(t,n){t.state.vim.inputState=new U,e.signal(t,"vim-command-done",n)}function K(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function G(e,t){var n=R.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(n[e])throw Error("Register already defined "+e);n[e]=t,C.push(e)}function Y(e){this.registers=e,this.unnamedRegister=e['"']=new K,e["."]=new K,e[":"]=new K,e["/"]=new K}function X(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}U.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},U.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},K.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(z(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},Y.prototype={pushText:function(e,t,n,r,i){if("_"!==e){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)O(e)?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r);else{switch(t){case"yank":this.registers[0]=new K(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new K(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new K(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new K),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&B(e,C)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},X.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i<n.length;i+=r)for(var o=n[i],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=i,o;return i>=n.length?(this.iterator=n.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var J={matchCommand:function(e,t,n,r){var i,o=le(e,t,r,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a<o.full.length;a++){var s=o.full[a];i||(i=s)}if("<character>"==i.keys.slice(-11)){var l=ue(e);if(!l||l.length>1)return{type:"clear"};n.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=ae(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);V(e)}r.operator=n.operator,r.operatorArgs=ae(n.operatorArgs),n.keys.length>1&&(r.operatorShortcut=n.keys),n.exitVisualBlock&&(t.visualBlock=!1,Te(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=ae(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=ae(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,V(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),re[n.action](e,a,t)},processSearch:function(t,n,r){if(t.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;tt(t).setReversed(!i);var a=i?"/":"?",s=tt(t).getQuery(),l=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var c=R.macroModeState;c.isPlaying?f(d=c.replaySearchQueries.shift(),!0,!1):mt(t,{onClose:h,prefix:a,desc:"(JavaScript regexp)",onKeyUp:m,onKeyDown:g});break;case"wordUnderCursor":var u=je(t,!1,!0,!1,!0),p=!0;if(u||(u=je(t,!1,!0,!1,!1),p=!1),!u)return;var d=t.getLine(u.start.line).substring(u.start.ch,u.end.ch);d=p&&o?"\\b"+d+"\\b":xe(d),R.jumpList.cachedCursor=t.getCursor(),t.setCursor(u.start),f(d,!0,!1)}}function f(e,i,o){R.searchHistoryController.pushInput(e),R.searchHistoryController.reset();try{vt(t,e,i,o)}catch(n){return ft(t,"Invalid regex: "+e),void V(t)}J.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}function h(e){t.scrollTo(l.left,l.top),f(e,!0,!0);var n=R.macroModeState;n.isRecording&&Ft(n,e)}function m(n,r,o){var a,s,c,u=e.keyName(n);"Up"==u||"Down"==u?(a="Up"==u,s=n.target?n.target.selectionEnd:0,o(r=R.searchHistoryController.nextMatch(r,a)||""),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=u&&"Right"!=u&&"Ctrl"!=u&&"Alt"!=u&&"Shift"!=u&&R.searchHistoryController.reset();try{c=vt(t,r,!0,!0)}catch(n){}c?t.scrollIntoView(wt(t,!i,c),30):(_t(t),t.scrollTo(l.left,l.top))}function g(n,r,i){var o=e.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?(R.searchHistoryController.pushInput(r),R.searchHistoryController.reset(),vt(t,s),_t(t),t.scrollTo(l.left,l.top),e.e_stop(n),V(t),i(),t.focus()):"Up"==o||"Down"==o?e.e_stop(n):"Ctrl-U"==o&&(e.e_stop(n),i(""))}},processEx:function(t,n,r){function i(e){R.exCommandHistoryController.pushInput(e),R.exCommandHistoryController.reset(),Mt.processCommand(t,e),V(t)}function o(n,r,i){var o,a,s=e.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(R.exCommandHistoryController.pushInput(r),R.exCommandHistoryController.reset(),e.e_stop(n),V(t),i(),t.focus()),"Up"==s||"Down"==s?(e.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,i(r=R.exCommandHistoryController.nextMatch(r,o)||""),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(e.e_stop(n),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&R.exCommandHistoryController.reset()}"keyToEx"==r.type?Mt.processCommand(t,r.exArgs.input):n.visualMode?mt(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):mt(t,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,n){var r,i,o,a=n.inputState,s=a.motion,l=a.motionArgs||{},c=a.operator,u=a.operatorArgs||{},p=a.registerName,d=n.sel,f=de(n.visualMode?oe(e,d.head):e.getCursor("head")),h=de(n.visualMode?oe(e,d.anchor):e.getCursor("anchor")),m=de(f),g=de(h);if(c&&this.recordLastEdit(n,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=u.selectedCharacter=a.selectedCharacter),l.repeat=o,V(e),s){var v=Z[s](e,f,l,n,a);if(n.lastMotion=Z[s],!v)return;if(l.toJumplist){var y=R.jumpList,b=y.cachedCursor;b?(Re(e,b,v),delete y.cachedCursor):Re(e,f,v)}v instanceof Array?(i=v[0],r=v[1]):r=v,r||(r=de(f)),n.visualMode?(n.visualBlock&&r.ch===1/0||(r=oe(e,r)),i&&(i=oe(e,i)),i=i||g,d.anchor=i,d.head=r,Te(e),Ke(e,n,"<",he(i,r)?i:r),Ke(e,n,">",he(i,r)?r:i)):c||(r=oe(e,r),e.setCursor(r.line,r.ch))}if(c){if(u.lastSel){i=g;var x=u.lastSel,w=Math.abs(x.head.line-x.anchor.line),A=Math.abs(x.head.ch-x.anchor.ch);r=x.visualLine?new t(g.line+w,g.ch):x.visualBlock?new t(g.line+w,g.ch+A):x.head.line==x.anchor.line?new t(g.line,g.ch+A):new t(g.line+w,g.ch),n.visualMode=!0,n.visualLine=x.visualLine,n.visualBlock=x.visualBlock,d=n.sel={anchor:i,head:r},Te(e)}else n.visualMode&&(u.lastSel={anchor:de(d.anchor),head:de(d.head),visualBlock:n.visualBlock,visualLine:n.visualLine});var _,C,k,S,E;if(n.visualMode){if(_=me(d.head,d.anchor),C=ge(d.head,d.anchor),k=n.visualLine||u.linewise,E=Oe(e,{anchor:_,head:C},S=n.visualBlock?"block":k?"line":"char"),k){var T=E.ranges;if("block"==S)for(var O=0;O<T.length;O++)T[O].head.ch=ye(e,T[O].head.line);else"line"==S&&(T[0].head=new t(T[0].head.line+1,0))}}else{if(_=de(i||g),he(C=de(r||m),_)){var M=_;_=C,C=M}(k=l.linewise||u.linewise)?De(e,_,C):l.forward&&Be(e,_,C),E=Oe(e,{anchor:_,head:C},S="char",!l.inclusive||k)}e.setSelections(E.ranges,E.primary),n.lastMotion=null,u.repeat=o,u.registerName=p,u.linewise=k;var L=te[c](e,u,E.ranges,g,r);n.visualMode&&Le(e,null!=L),L&&e.setCursor(L)}},recordLastEdit:function(e,t,n){var r=R.macroModeState;r.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},Z={moveToTopLine:function(e,n,r){var i=kt(e).top+r.repeat-1;return new t(i,Ne(e.getLine(i)))},moveToMiddleLine:function(e){var n=kt(e),r=Math.floor(.5*(n.top+n.bottom));return new t(r,Ne(e.getLine(r)))},moveToBottomLine:function(e,n,r){var i=kt(e).bottom-r.repeat+1;return new t(i,Ne(e.getLine(i)))},expandToLine:function(e,n,r){return new t(n.line+r.repeat-1,1/0)},findNext:function(e,t,n){var r=tt(e),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,xt(e,i),wt(e,o,i,n.repeat)}},findAndSelectNextInclusive:function(n,r,i,o,a){var s=tt(n),l=s.getQuery();if(l){var c=!i.forward,u=At(n,c=s.isReversed()?!c:c,l,i.repeat,o);if(u){if(a.operator)return u;var p=u[0],d=new t(u[1].line,u[1].ch-1);if(o.visualMode){(o.visualLine||o.visualBlock)&&(o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""}));var f=o.sel.anchor;if(f)return s.isReversed()?i.forward?[f,p]:[f,d]:i.forward?[f,d]:[f,p]}else o.visualMode=!0,o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""});return c?[d,p]:[p,d]}}},goToMark:function(e,t,n,r){var i=St(e,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:Ne(e.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(e,n,r,i){if(i.visualBlock&&r.sameLine){var o=i.sel;return[oe(e,new t(o.anchor.line,o.head.ch)),oe(e,new t(o.head.line,o.anchor.ch))]}return[i.sel.head,i.sel.anchor]},jumpToMark:function(e,n,r,i){for(var o=n,a=0;a<r.repeat;a++){var s=o;for(var l in i.marks)if(S(l)){var c=i.marks[l].find();if(!((r.forward?he(c,s):he(s,c))||r.linewise&&c.line==s.line)){var u=fe(s,o),p=r.forward?ve(s,c,o):ve(o,c,s);(u||p)&&(o=c)}}}return r.linewise&&(o=new t(o.line,Ne(e.getLine(o.line)))),o},moveByCharacters:function(e,n,r){var i=n,o=r.repeat,a=r.forward?i.ch+o:i.ch-o;return new t(i.line,a)},moveByLines:function(e,n,r,i){var o=n,a=o.ch;switch(i.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=i.lastHPos;break;default:i.lastHPos=a}var s=r.repeat+(r.repeatOffset||0),l=r.forward?o.line+s:o.line-s,c=e.firstLine(),u=e.lastLine(),p=e.findPosV(o,r.forward?s:-s,"line",i.lastHSPos);return(r.forward?p.line>l:p.line<l)&&(l=p.line,a=p.ch),l<c&&o.line==c?this.moveToStartOfLine(e,n,r,i):l>u&&o.line==u?We(e,n,r,i,!0):(r.toFirstChar&&(a=Ne(e.getLine(l)),i.lastHPos=a),i.lastHSPos=e.charCoords(new t(l,a),"div").left,new t(l,a))},moveByDisplayLines:function(e,n,r,i){var o=n;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var a=r.repeat;if((l=e.findPosV(o,r.forward?a:-a,"line",i.lastHSPos)).hitSide)if(r.forward)var s={top:e.charCoords(l,"div").top+8,left:i.lastHSPos},l=e.coordsChar(s,"div");else{var c=e.charCoords(new t(e.firstLine(),0),"div");c.left=i.lastHSPos,l=e.coordsChar(c,"div")}return i.lastHPos=l.ch,l},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return Ye(e,t,n.repeat,r)},moveBySentence:function(e,t,n){var r=n.forward?1:-1;return Je(e,t,n.repeat,r)},moveByScroll:function(e,t,n,r){var i=e.getScrollInfo(),o=null,a=n.repeat;a||(a=i.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");if(n.repeat=a,!(o=Z.moveByDisplayLines(e,t,n,r)))return null;var l=e.charCoords(o,"local");return e.scrollTo(null,i.top+l.top-s.top),o},moveByWords:function(e,t,n){return He(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var r=Ue(e,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return Fe(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(e,t,n){var r=n.repeat;return Fe(0,n),Ue(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){return $e(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,r){var i=n.repeat;return r.lastHPos=i-1,r.lastHSPos=e.charCoords(t,"div").left,Ve(e,i)},moveToEol:function(e,t,n,r){return We(e,t,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,n){var r=n;return new t(r.line,Ne(e.getLine(r.line)))},moveToMatchedSymbol:function(e,n){for(var r,i=n,o=i.line,a=i.ch,s=e.getLine(o);a<s.length;a++)if((r=s.charAt(a))&&E(r)){var l=e.getTokenTypeAt(new t(o,a+1));if("string"!==l&&"comment"!==l)break}if(a<s.length){var c="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new t(o,a),{bracketRegex:c}).to}return i},moveToStartOfLine:function(e,n){return new t(n.line,0)},moveToLineOrEdgeOfDocument:function(e,n,r){var i=r.forward?e.lastLine():e.firstLine();return r.repeatIsExplicit&&(i=r.repeat-e.getOption("firstLineNumber")),new t(i,Ne(e.getLine(i)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(e,t,n,r){var i={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},o={"'":!0,'"':!0,"`":!0},a=n.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var s,l=!n.textObjectInner;if(i[a])s=Ze(e,t,a,l);else if(o[a])s=Qe(e,t,a,l);else if("W"===a)s=je(e,l,!0,!0);else if("w"===a)s=je(e,l,!0,!1);else if("p"===a)if(s=Ye(e,t,n.repeat,0,l),n.linewise=!0,r.visualMode)r.visualLine||(r.visualLine=!0);else{var c=r.inputState.operatorArgs;c&&(c.linewise=!0),s.end.line--}else if("t"===a)s=Pe(e,t,l);else{if("s"!==a)return null;var u=e.getLine(t.line);t.ch>0&&L(u[t.ch])&&(t.ch-=1);var p=Xe(e,t,n.repeat,1,l),d=Xe(e,t,n.repeat,-1,l);M(e.getLine(d.line)[d.ch])&&M(e.getLine(p.line)[p.ch-1])&&(d={line:d.line,ch:d.ch+1}),s={start:d,end:p}}return e.state.vim.visualMode?Ee(e,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(e,t,n){var r=R.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var s=Ue(e,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}};function Q(e,t){Z[e]=t}function ee(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n}var te={change:function(n,r,i){var o,a,s=n.state.vim,l=i[0].anchor,c=i[0].head;if(s.visualMode)if(r.fullLine)c.ch=Number.MAX_VALUE,c.line--,n.setSelection(l,c),a=n.getSelection(),n.replaceSelection(""),o=l;else{a=n.getSelection();var u=ee("",i.length);n.replaceSelections(u),o=me(i[0].head,i[0].anchor)}else{a=n.getRange(l,c);var p=s.lastEditInputState||{};if("moveByWords"==p.motion&&!M(a)){var d=/\s+$/.exec(a);d&&p.motionArgs&&p.motionArgs.forward&&(c=se(c,0,-d[0].length),a=a.slice(0,-d[0].length))}var f=new t(l.line-1,Number.MAX_VALUE),h=n.firstLine()==n.lastLine();c.line>n.lastLine()&&r.linewise&&!h?n.replaceRange("",f,c):n.replaceRange("",l,c),r.linewise&&(h||(n.setCursor(f),e.commands.newlineAndIndent(n)),l.ch=Number.MAX_VALUE),o=l}R.registerController.pushText(r.registerName,"change",a,r.linewise,i.length>1),re.enterInsertMode(n,{head:o},n.state.vim)},delete:function(e,n,r){var i,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=ee("",r.length);e.replaceSelections(s),i=me(r[0].head,r[0].anchor)}else{var l=r[0].anchor,c=r[0].head;n.linewise&&c.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==c.line-1&&(l.line==e.firstLine()?l.ch=0:l=new t(l.line-1,ye(e,l.line-1))),o=e.getRange(l,c),e.replaceRange("",l,c),i=l,n.linewise&&(i=Z.moveToFirstNonWhiteSpaceCharacter(e,l))}return R.registerController.pushText(n.registerName,"delete",o,n.linewise,a.visualBlock),oe(e,i)},indent:function(e,t,n){var r=e.state.vim;if(e.indentMore)for(var i=r.visualMode?t.repeat:1,o=0;o<i;o++)t.indentRight?e.indentMore():e.indentLess();else{var a=n[0].anchor.line,s=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line;i=r.visualMode?t.repeat:1,t.linewise&&s--;for(var l=a;l<=s;l++)for(o=0;o<i;o++)e.indentLine(l,t.indentRight)}return Z.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),Z.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,r,i){for(var o=e.getSelections(),a=[],s=t.toLower,l=0;l<o.length;l++){var c=o[l],u="";if(!0===s)u=c.toLowerCase();else if(!1===s)u=c.toUpperCase();else for(var p=0;p<c.length;p++){var d=c.charAt(p);u+=O(d)?d.toLowerCase():d.toUpperCase()}a.push(u)}return e.replaceSelections(a),t.shouldMoveCursor?i:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?Z.moveToFirstNonWhiteSpaceCharacter(e,r):t.linewise?r:me(n[0].anchor,n[0].head)},yank:function(e,t,n,r){var i=e.state.vim,o=e.getSelection(),a=i.visualMode?me(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return R.registerController.pushText(t.registerName,"yank",o,t.linewise,i.visualBlock),a}};function ne(e,t){te[e]=t}var re={jumpListWalk:function(e,t,n){if(!n.visualMode){var r=t.repeat,i=t.forward,o=R.jumpList.move(e,i?r:-r),a=o?o.find():void 0;a=a||e.getCursor(),e.setCursor(a)}},scroll:function(e,t,n){if(!n.visualMode){var r=t.repeat||1,i=e.defaultTextHeight(),o=e.getScrollInfo().top,a=i*r,s=t.forward?o+a:o-a,l=de(e.getCursor()),c=e.charCoords(l,"local");if(t.forward)s>c.top?(l.line+=(s-c.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,s);else{var u=s+e.getScrollInfo().clientHeight;u<c.bottom?(l.line-=(c.bottom-u)/i,l.line=Math.floor(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,s)}}},scrollToCursor:function(e,n){var r=e.getCursor().line,i=e.charCoords(new t(r,0),"local"),o=e.getScrollInfo().clientHeight,a=i.top;switch(n.position){case"center":a=i.bottom-o/2;break;case"bottom":var s=new t(r,e.getLine(r).length-1);a=a-o+(e.charCoords(s,"local").bottom-a)}e.scrollTo(null,a)},replayMacro:function(e,t,n){var r=t.selectedCharacter,i=t.repeat,o=R.macroModeState;for("@"==r?r=o.latestRegister:o.latestRegister=r;i--;)jt(e,n,o,r)},enterMacroRecordMode:function(e,t){var n=R.macroModeState,r=t.selectedCharacter;R.registerController.isValidRegister(r)&&n.enterMacroRecordMode(e,r)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(n,r,i){if(!n.getOption("readOnly")){i.insertMode=!0,i.insertModeRepeat=r&&r.repeat||1;var o=r?r.insertAt:null,a=i.sel,s=r.head||n.getCursor("head"),l=n.listSelections().length;if("eol"==o)s=new t(s.line,ye(n,s.line));else if("bol"==o)s=new t(s.line,0);else if("charAfter"==o)s=se(s,0,1);else if("firstNonBlank"==o)s=Z.moveToFirstNonWhiteSpaceCharacter(n,s);else if("startOfSelectedArea"==o){if(!i.visualMode)return;i.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:new t(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!i.visualMode)return;i.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch,a.anchor.ch)+1),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?se(a.head,0,1):new t(a.anchor.line,0)}else if("inplace"==o){if(i.visualMode)return}else"lastEdit"==o&&(s=Et(n)||s);n.setOption("disableInput",!1),r&&r.replace?(n.toggleOverwrite(!0),n.setOption("keyMap","vim-replace"),e.signal(n,"vim-mode-change",{mode:"replace"})):(n.toggleOverwrite(!1),n.setOption("keyMap","vim-insert"),e.signal(n,"vim-mode-change",{mode:"insert"})),R.macroModeState.isPlaying||(n.on("change",It),e.on(n.getInputField(),"keydown",Ht)),i.visualMode&&Le(n),_e(n,s,l)}},toggleVisualMode:function(n,r,i){var o,a=r.repeat,s=n.getCursor();i.visualMode?i.visualLine^r.linewise||i.visualBlock^r.blockwise?(i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),Te(n)):Le(n):(i.visualMode=!0,i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,o=oe(n,new t(s.line,s.ch+a-1)),i.sel={anchor:s,head:o},e.signal(n,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),Te(n),Ke(n,i,"<",me(s,o)),Ke(n,i,">",ge(s,o)))},reselectLastSelection:function(t,n,r){var i=r.lastSelection;if(r.visualMode&&Se(t,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,Te(t),Ke(t,r,"<",me(o,a)),Ke(t,r,">",ge(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,n,r){var i,o;if(r.visualMode){if(i=e.getCursor("anchor"),he(o=e.getCursor("head"),i)){var a=o;o=i,i=a}o.ch=ye(e,o.line)-1}else{var s=Math.max(n.repeat,2);i=e.getCursor(),o=oe(e,new t(i.line+s-1,1/0))}for(var l=0,c=i.line;c<o.line;c++){l=ye(e,i.line),a=new t(i.line+1,ye(e,i.line+1));var u=e.getRange(i,a);u=n.keepSpaces?u.replace(/\n\r?/g,""):u.replace(/\n\s*/g," "),e.replaceRange(u,i,a)}var p=new t(i.line,l);r.visualMode&&Le(e,!1),e.setCursor(p)},newLineAndEnterInsertMode:function(n,r,i){i.insertMode=!0;var o=de(n.getCursor());o.line!==n.firstLine()||r.after?(o.line=r.after?o.line:o.line-1,o.ch=ye(n,o.line),n.setCursor(o),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n)):(n.replaceRange("\n",new t(n.firstLine(),0)),n.setCursor(n.firstLine(),0)),this.enterInsertMode(n,{repeat:r.repeat},i)},paste:function(e,n,r){var i=de(e.getCursor()),o=R.registerController.getRegister(n.registerName);if(f=o.toString()){if(n.matchIndent){var a=e.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*a+1*n},l=e.getLine(e.getCursor().line),c=s(l.match(/^\s*/)[0]),u=f.replace(/\n$/,""),p=f!==u,d=s(f.match(/^\s*/)[0]),f=u.replace(/^\s*/gm,(function(t){var n=c+(s(t)-d);if(n<0)return"";if(e.getOption("indentWithTabs")){var r=Math.floor(n/a);return Array(r+1).join("\t")}return Array(n+1).join(" ")}));f+=p?"\n":""}n.repeat>1&&(f=Array(n.repeat+1).join(f));var h,m,g=o.linewise,v=o.blockwise;if(v){f=f.split("\n"),g&&f.pop();for(var y=0;y<f.length;y++)f[y]=""==f[y]?" ":f[y];i.ch+=n.after?1:0,i.ch=Math.min(ye(e,i.line),i.ch)}else g?r.visualMode?f=r.visualLine?f.slice(0,-1):"\n"+f.slice(0,f.length-1)+"\n":n.after?(f="\n"+f.slice(0,f.length-1),i.ch=ye(e,i.line)):i.ch=0:i.ch+=n.after?1:0;if(r.visualMode){var b;r.lastPastedText=f;var x=ke(e,r),w=x[0],A=x[1],_=e.getSelection(),C=e.listSelections(),k=new Array(C.length).join("1").split("1");r.lastSelection&&(b=r.lastSelection.headMark.find()),R.registerController.unnamedRegister.setText(_),v?(e.replaceSelections(k),A=new t(w.line+f.length-1,w.ch),e.setCursor(w),Ae(e,A),e.replaceSelections(f),h=w):r.visualBlock?(e.replaceSelections(k),e.setCursor(w),e.replaceRange(f,w,w),h=w):(e.replaceRange(f,w,A),h=e.posFromIndex(e.indexFromPos(w)+f.length-1)),b&&(r.lastSelection.headMark=e.setBookmark(b)),g&&(h.ch=0)}else if(v){for(e.setCursor(i),y=0;y<f.length;y++){var S=i.line+y;S>e.lastLine()&&e.replaceRange("\n",new t(S,0)),ye(e,S)<i.ch&&we(e,S,i.ch)}e.setCursor(i),Ae(e,new t(i.line+f.length-1,i.ch)),e.replaceSelections(f),h=i}else e.replaceRange(f,i),g&&n.after?h=new t(i.line+1,Ne(e.getLine(i.line+1))):g&&!n.after?h=new t(i.line,Ne(e.getLine(i.line))):!g&&n.after?(m=e.indexFromPos(i),h=e.posFromIndex(m+f.length-1)):(m=e.indexFromPos(i),h=e.posFromIndex(m+f.length));r.visualMode&&Le(e,!1),e.setCursor(h)}},undo:function(t,n){t.operation((function(){pe(t,e.commands.undo,n.repeat)(),t.setCursor(t.getCursor("anchor"))}))},redo:function(t,n){pe(t,e.commands.redo,n.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){Ke(e,n,t.selectedCharacter,e.getCursor())},replace:function(n,r,i){var o,a,s=r.selectedCharacter,l=n.getCursor(),c=n.listSelections();if(i.visualMode)l=n.getCursor("start"),a=n.getCursor("end");else{var u=n.getLine(l.line);(o=l.ch+r.repeat)>u.length&&(o=u.length),a=new t(l.line,o)}if("\n"==s)i.visualMode||n.replaceRange("",l,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n);else{var p=n.getRange(l,a);if(p=p.replace(/[^\n]/g,s),i.visualBlock){var d=new Array(n.getOption("tabSize")+1).join(" ");p=(p=n.getSelection()).replace(/\t/g,d).replace(/[^\n]/g,s).split("\n"),n.replaceSelections(p)}else n.replaceRange(p,l,a);i.visualMode?(l=he(c[0].anchor,c[0].head)?c[0].anchor:c[0].head,n.setCursor(l),Le(n,!1)):n.setCursor(se(a,0,-1))}},incrementNumberToken:function(e,n){for(var r,i,o,a,s=e.getCursor(),l=e.getLine(s.line),c=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(r=c.exec(l))&&(o=(i=r.index)+r[0].length,!(s.ch<o)););if((n.backtrack||!(o<=s.ch))&&r){var u=r[2]||r[4],p=r[3]||r[5],d=n.increase?1:-1,f={"0b":2,0:8,"":10,"0x":16}[u.toLowerCase()];a=(parseInt(r[1]+p,f)+d*n.repeat).toString(f);var h=u?new Array(p.length-a.length+1+r[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+u+h+a.substr(1):u+h+a;var m=new t(s.line,i),g=new t(s.line,o);e.replaceRange(a,m,g),e.setCursor(new t(s.line,i+a.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var r=t.repeat;r&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=r:r=n.lastEditInputState.repeatOverride||r,Wt(e,n,r,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Bt};function ie(e,t){re[e]=t}function oe(e,n){var r=e.state.vim,i=r.insertMode||r.visualMode,o=Math.min(Math.max(e.firstLine(),n.line),e.lastLine()),a=ye(e,o)-1+!!i,s=Math.min(Math.max(0,n.ch),a);return new t(o,s)}function ae(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function se(e,n,r){return"object"==typeof n&&(r=n.ch,n=n.line),new t(e.line+n,e.ch+r)}function le(e,t,n,r){for(var i,o=[],a=[],s=0;s<t.length;s++){var l=t[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||r.operator&&"action"==l.type||!(i=ce(e,l.keys))||("partial"==i&&o.push(l),"full"==i&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}function ce(e,t){if("<character>"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function ue(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}function pe(e,t,n){return function(){for(var r=0;r<n;r++)t(e)}}function de(e){return new t(e.line,e.ch)}function fe(e,t){return e.ch==t.ch&&e.line==t.line}function he(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function me(e,t){return arguments.length>2&&(t=me.apply(void 0,Array.prototype.slice.call(arguments,1))),he(e,t)?e:t}function ge(e,t){return arguments.length>2&&(t=ge.apply(void 0,Array.prototype.slice.call(arguments,1))),he(e,t)?t:e}function ve(e,t,n){var r=he(e,t),i=he(t,n);return r&&i}function ye(e,t){return e.getLine(t).length}function be(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function xe(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function we(e,n,r){var i=ye(e,n),o=new Array(r-i+1).join(" ");e.setCursor(new t(n,i)),e.replaceRange(o,e.getCursor())}function Ae(e,n){var r=[],i=e.listSelections(),o=de(e.clipPos(n)),a=!fe(n,o),s=Ce(i,e.getCursor("head")),l=fe(i[s].head,i[s].anchor),c=i.length-1,u=c-s>s?c:0,p=i[u].anchor,d=Math.min(p.line,o.line),f=Math.max(p.line,o.line),h=p.ch,m=o.ch,g=i[u].head.ch-h,v=m-h;g>0&&v<=0?(h++,a||m--):g<0&&v>=0?(h--,l||m++):g<0&&-1==v&&(h--,m++);for(var y=d;y<=f;y++){var b={anchor:new t(y,h),head:new t(y,m)};r.push(b)}return e.setSelections(r),n.ch=m,p.ch=h,p}function _e(e,t,n){for(var r=[],i=0;i<n;i++){var o=se(t,i,0);r.push({anchor:o,head:o})}e.setSelections(r,0)}function Ce(e,t,n){for(var r=0;r<e.length;r++){var i="head"!=n&&fe(e[r].anchor,t),o="anchor"!=n&&fe(e[r].head,t);if(i||o)return r}return-1}function ke(e,n){var r=n.lastSelection,i=function(){var t=e.listSelections(),n=t[0],r=t[t.length-1];return[he(n.anchor,n.head)?n.anchor:n.head,he(r.anchor,r.head)?r.head:r.anchor]},o=function(){var n=e.getCursor(),i=e.getCursor(),o=r.visualBlock;if(o){var a=o.width,s=o.height;i=new t(n.line+s,n.ch+a);for(var l=[],c=n.line;c<i.line;c++){var u={anchor:new t(c,n.ch),head:new t(c,i.ch)};l.push(u)}e.setSelections(l)}else{var p=r.anchorMark.find(),d=r.headMark.find(),f=d.line-p.line,h=d.ch-p.ch;i={line:i.line+f,ch:f?i.ch:h+i.ch},r.visualLine&&(n=new t(n.line,0),i=new t(i.line,ye(e,i.line))),e.setSelection(n,i)}return[n,i]};return n.visualMode?i():o()}function Se(e,t){var n=t.sel.anchor,r=t.sel.head;t.lastPastedText&&(r=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(r),anchor:de(n),head:de(r),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function Ee(e,n,r){var i,o=e.state.vim.sel,a=o.head,s=o.anchor;return he(r,n)&&(i=r,r=n,n=i),he(a,s)?(a=me(n,a),s=ge(s,r)):(s=me(n,s),-1==(a=se(a=ge(a,r),0,-1)).ch&&a.line!=e.firstLine()&&(a=new t(a.line-1,ye(e,a.line-1)))),[s,a]}function Te(e,t,n){var r=e.state.vim,i=Oe(e,t=t||r.sel,n=n||r.visualLine?"line":r.visualBlock?"block":"char");e.setSelections(i.ranges,i.primary)}function Oe(e,n,r,i){var o=de(n.head),a=de(n.anchor);if("char"==r){var s=i||he(n.head,n.anchor)?0:1,l=he(n.head,n.anchor)?1:0;return o=se(n.head,0,s),{ranges:[{anchor:a=se(n.anchor,0,l),head:o}],primary:0}}if("line"==r){if(he(n.head,n.anchor))o.ch=0,a.ch=ye(e,a.line);else{a.ch=0;var c=e.lastLine();o.line>c&&(o.line=c),o.ch=ye(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==r){var u=Math.min(a.line,o.line),p=a.ch,d=Math.max(a.line,o.line),f=o.ch;p<f?f+=1:p+=1;for(var h=d-u+1,m=o.line==u?0:h-1,g=[],v=0;v<h;v++)g.push({anchor:new t(u+v,p),head:new t(u+v,f)});return{ranges:g,primary:m}}}function Me(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=me(t,e.getCursor("anchor"))),t}function Le(t,n){var r=t.state.vim;!1!==n&&t.setCursor(oe(t,r.sel.head)),Se(t,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,r.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"})}function Be(e,t,n){var r=e.getRange(t,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var o=i.pop();i.length>0&&o&&M(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=ye(e,n.line)):n.ch=0}}function De(e,t,n){t.ch=0,n.ch=0,n.line++}function Ne(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function je(e,n,r,i,o){for(var a=Me(e),s=e.getLine(a.line),l=a.ch,c=o?g[0]:v[0];!c(s.charAt(l));)if(++l>=s.length)return null;i?c=v[0]:(c=g[0])(s.charAt(l))||(c=g[1]);for(var u=l,p=l;c(s.charAt(u))&&u<s.length;)u++;for(;c(s.charAt(p))&&p>=0;)p--;if(p++,n){for(var d=u;/\s/.test(s.charAt(u))&&u<s.length;)u++;if(d==u){for(var f=p;/\s/.test(s.charAt(p-1))&&p>0;)p--;p||(p=f)}}return{start:new t(a.line,p),end:new t(a.line,u)}}function Pe(t,n,r){var i=n;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:i,end:i};var o=e.findMatchingTag(t,n)||e.findEnclosingTag(t,n);return o&&o.open&&o.close?r?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}function Re(e,t,n){fe(t,n)||R.jumpList.add(e,t,n)}function Fe(e,t){R.lastCharacterSearch.increment=e,R.lastCharacterSearch.forward=t.forward,R.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var Ie={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},ze={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function $e(e,n,r,i){var o=de(e.getCursor()),a=r?1:-1,s=r?e.lineCount():-1,l=o.ch,c=o.line,u=e.getLine(c),p={lineText:u,nextCh:u.charAt(l),lastCh:null,index:l,symb:i,reverseSymb:(r?{")":"(","}":"{"}:{"(":")","{":"}"})[i],forward:r,depth:0,curMoveThrough:!1},d=Ie[i];if(!d)return o;var f=ze[d].init,h=ze[d].isComplete;for(f&&f(p);c!==s&&n;){if(p.index+=a,p.nextCh=p.lineText.charAt(p.index),!p.nextCh){if(c+=a,p.lineText=e.getLine(c)||"",a>0)p.index=0;else{var m=p.lineText.length;p.index=m>0?m-1:0}p.nextCh=p.lineText.charAt(p.index)}h(p)&&(o.line=c,o.ch=p.index,n--)}return p.nextCh||p.curMoveThrough?new t(c,p.index):o}function qe(e,t,n,r,i){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,c=r?v:g;if(i&&""==s){if(o+=l,s=e.getLine(o),!k(e,o))return null;a=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:o};for(var u=l>0?s.length:-1,p=u,d=u;a!=u;){for(var f=!1,h=0;h<c.length&&!f;++h)if(c[h](s.charAt(a))){for(p=a;a!=u&&c[h](s.charAt(a));)a+=l;if(f=p!=(d=a),p==t.ch&&o==t.line&&d==p+l)continue;return{from:Math.min(p,d+1),to:Math.max(p,d),line:o}}f||(a+=l)}if(!k(e,o+=l))return null;s=e.getLine(o),a=l>0?0:s.length}}function He(e,n,r,i,o,a){var s=de(n),l=[];(i&&!o||!i&&o)&&r++;for(var c=!(i&&o),u=0;u<r;u++){var p=qe(e,n,i,a,c);if(!p){var d=ye(e,e.lastLine());l.push(i?{line:e.lastLine(),from:d,to:d}:{line:0,from:0,to:0});break}l.push(p),n=new t(p.line,i?p.to-1:p.from)}var f=l.length!=r,h=l[0],m=l.pop();return i&&!o?(f||h.from==s.ch&&h.line==s.line||(m=l.pop()),new t(m.line,m.from)):i&&o?new t(m.line,m.to-1):!i&&o?(f||h.to==s.ch&&h.line==s.line||(m=l.pop()),new t(m.line,m.to)):new t(m.line,m.from)}function We(e,n,r,i,o){var a=new t(n.line+r.repeat-1,1/0),s=e.clipPos(a);return s.ch--,o||(i.lastHPos=1/0,i.lastHSPos=e.charCoords(s,"div").left),a}function Ue(e,n,r,i){for(var o,a=e.getCursor(),s=a.ch,l=0;l<n;l++){if(-1==(o=Ge(s,e.getLine(a.line),i,r,!0)))return null;s=o}return new t(e.getCursor().line,o)}function Ve(e,n){var r=e.getCursor().line;return oe(e,new t(r,n-1))}function Ke(e,t,n,r){B(n,_)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(r))}function Ge(e,t,n,r,i){var o;return r?-1==(o=t.indexOf(n,e+1))||i||(o-=1):-1==(o=t.lastIndexOf(n,e-1))||i||(o+=1),o}function Ye(e,n,r,i,o){var a,s=n.line,l=e.firstLine(),c=e.lastLine(),u=s;function p(t){return!e.getLine(t)}function d(e,t,n){return n?p(e)!=p(e+t):!p(e)&&p(e+t)}if(i){for(;l<=u&&u<=c&&r>0;)d(u,i)&&r--,u+=i;return new t(u,0)}var f=e.state.vim;if(f.visualLine&&d(s,1,!0)){var h=f.sel.anchor;d(h.line,-1,!0)&&(o&&h.line==s||(s+=1))}var m=p(s);for(u=s;u<=c&&r;u++)d(u,1,!0)&&(o&&p(u)==m||r--);for(a=new t(u,0),u>c&&!m?m=!0:o=!1,u=s;u>l&&(o&&p(u)!=m&&u!=s||!d(u,-1,!0));u--);return{start:new t(u,0),end:a}}function Xe(e,n,r,i,o){function a(e){e.pos+e.dir<0||e.pos+e.dir>=e.line.length?e.line=null:e.pos+=e.dir}function s(e,t,n,r){var i={line:e.getLine(t),ln:t,pos:n,dir:r};if(""===i.line)return{ln:i.ln,pos:i.pos};var s=i.pos;for(a(i);null!==i.line;){if(s=i.pos,L(i.line[i.pos])){if(o){for(a(i);null!==i.line&&M(i.line[i.pos]);)s=i.pos,a(i);return{ln:i.ln,pos:s+1}}return{ln:i.ln,pos:i.pos+1}}a(i)}return{ln:i.ln,pos:s+1}}function l(e,t,n,r){var i=e.getLine(t),s={line:i,ln:t,pos:n,dir:r};if(""===s.line)return{ln:s.ln,pos:s.pos};var l=s.pos;for(a(s);null!==s.line;){if(M(s.line[s.pos])||L(s.line[s.pos])){if(L(s.line[s.pos]))return o&&M(s.line[s.pos+1])?{ln:s.ln,pos:s.pos+1}:{ln:s.ln,pos:l}}else l=s.pos;a(s)}return s.line=i,o&&M(s.line[s.pos])?{ln:s.ln,pos:s.pos}:{ln:s.ln,pos:l}}for(var c={ln:n.line,pos:n.ch};r>0;)c=i<0?l(e,c.ln,c.pos,i):s(e,c.ln,c.pos,i),r--;return new t(c.ln,c.pos)}function Je(e,n,r,i){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!k(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function a(e,t,n,r){var i=""===(c=e.getLine(t)),a={line:c,ln:t,pos:n,dir:r},s={ln:a.ln,pos:a.pos},l=""===a.line;for(o(e,a);null!==a.line;){if(s.ln=a.ln,s.pos=a.pos,""===a.line&&!l)return{ln:a.ln,pos:a.pos};if(i&&""!==a.line&&!M(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!L(a.line[a.pos])||i||a.pos!==a.line.length-1&&!M(a.line[a.pos+1])||(i=!0),o(e,a)}var c=e.getLine(s.ln);s.pos=0;for(var u=c.length-1;u>=0;--u)if(!M(c[u])){s.pos=u;break}return s}function s(e,t,n,r){var i={line:l=e.getLine(t),ln:t,pos:n,dir:r},a={ln:i.ln,pos:null},s=""===i.line;for(o(e,i);null!==i.line;){if(""===i.line&&!s)return null!==a.pos?a:{ln:i.ln,pos:i.pos};if(L(i.line[i.pos])&&null!==a.pos&&(i.ln!==a.ln||i.pos+1!==a.pos))return a;""===i.line||M(i.line[i.pos])||(s=!1,a={ln:i.ln,pos:i.pos}),o(e,i)}var l=e.getLine(a.ln);a.pos=0;for(var c=0;c<l.length;++c)if(!M(l[c])){a.pos=c;break}return a}for(var l={ln:n.line,pos:n.ch};r>0;)l=i<0?s(e,l.ln,l.pos,i):a(e,l.ln,l.pos,i),r--;return new t(l.ln,l.pos)}function Ze(e,n,r,i){var o,a,s=n,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[r],c={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[r],u=e.getLine(s.line).charAt(s.ch)===c?1:0;if(o=e.scanForBracket(new t(s.line,s.ch+u),-1,void 0,{bracketRegex:l}),a=e.scanForBracket(new t(s.line,s.ch+u),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var p=o;o=a,a=p}return i?a.ch+=1:o.ch+=1,{start:o,end:a}}function Qe(e,n,r,i){var o,a,s,l,c=de(n),u=e.getLine(c.line).split(""),p=u.indexOf(r);if(c.ch<p?c.ch=p:p<c.ch&&u[c.ch]==r&&(a=c.ch,--c.ch),u[c.ch]!=r||a)for(s=c.ch;s>-1&&!o;s--)u[s]==r&&(o=s+1);else o=c.ch+1;if(o&&!a)for(s=o,l=u.length;s<l&&!a;s++)u[s]==r&&(a=s);return o&&a?(i&&(--o,++a),{start:new t(c.line,o),end:new t(c.line,a)}):{start:c,end:c}}function et(){}function tt(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new et)}function nt(e){return it(e,"/")}function rt(e){return ot(e,"/")}function it(e,t){var n=ot(e,t)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i<n.length;i++)"number"==typeof n[i]&&r.push(e.substring(n[i]+1,n[i+1]));return r}}function ot(e,t){t||(t="/");for(var n=!1,r=[],i=0;i<e.length;i++){var o=e.charAt(i);n||o!=t||r.push(i),n=!n&&"\\"==o}return r}function at(e){for(var t="|(){",n="}",r=!1,i=[],o=-1;o<e.length;o++){var a=e.charAt(o)||"",s=e.charAt(o+1)||"",l=s&&-1!=t.indexOf(s);r?("\\"===a&&l||i.push(a),r=!1):"\\"===a?(r=!0,s&&-1!=n.indexOf(s)&&(l=!0),l&&"\\"!==s||i.push(a)):(i.push(a),l&&"\\"!==s&&i.push("\\"))}return i.join("")}N("pcre",!0,"boolean"),et.prototype={getQuery:function(){return R.query},setQuery:function(e){R.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return R.isReversed},setReversed:function(e){R.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var st={"\\n":"\n","\\r":"\r","\\t":"\t"};function lt(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"";st[i+o]?(n.push(st[i+o]),r++):t?(n.push(i),t=!1):"\\"===i?(t=!0,T(o)||"$"===o?n.push("$"):"/"!==o&&"\\"!==o&&n.push("\\")):("$"===i&&n.push("$"),n.push(i),"/"===o&&n.push("\\"))}return n.join("")}var ct={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function ut(t){for(var n=new e.StringStream(t),r=[];!n.eol();){for(;n.peek()&&"\\"!=n.peek();)r.push(n.next());var i=!1;for(var o in ct)if(n.match(o,!0)){i=!0,r.push(ct[o]);break}i||r.push(n.next())}return r.join("")}function pt(e,t,n){if(R.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var r,i,o=rt(e);return o.length?(r=e.substring(0,o[0]),i=-1!=e.substring(o[0]).indexOf("i")):r=e,r?(P("pcre")||(r=at(r)),n&&(t=/^[^A-Z]*$/.test(r)),new RegExp(r,t||i?"im":"m")):null}function dt(e){"string"==typeof e&&(e=document.createElement(e));for(var t,n=1;n<arguments.length;n++)if(t=arguments[n])if("object"!=typeof t&&(t=document.createTextNode(t)),t.nodeType)e.appendChild(t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&("$"===r[0]?e.style[r.slice(1)]=t[r]:e.setAttribute(r,t[r]));return e}function ft(e,t){var n=dt("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},t);e.openNotification?e.openNotification(n,{bottom:!0,duration:5e3}):alert(n.innerText)}function ht(e,t){return dt(document.createDocumentFragment(),dt("span",{$fontFamily:"monospace",$whiteSpace:"pre"},e,dt("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false"})),t&&dt("span",{$color:"#888"},t))}function mt(e,t){var n=ht(t.prefix,t.desc);if(e.openDialog)e.openDialog(n,t.onClose,{onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:t.value});else{var r="";"string"!=typeof t.prefix&&t.prefix&&(r+=t.prefix.textContent),t.desc&&(r+=" "+t.desc),t.onClose(prompt(r,""))}}function gt(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}return!1}function vt(e,t,n,r){if(t){var i=tt(e),o=pt(t,!!n,!!r);if(o)return xt(e,o),gt(o,i.getQuery())||i.setQuery(o),o}}function yt(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(n){if(!t||n.sol()){var r=n.match(e,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),e.exec(n.next()+r[0]))?(n.match(e),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););}else n.skipToEnd()},query:e}}var bt=0;function xt(e,t){clearTimeout(bt),bt=setTimeout((function(){if(e.state.vim){var n=tt(e),r=n.getOverlay();r&&t==r.query||(r&&e.removeOverlay(r),r=yt(t),e.addOverlay(r),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(r))}}),50)}function wt(e,n,r,i){return void 0===i&&(i=1),e.operation((function(){for(var o=e.getCursor(),a=e.getSearchCursor(r,o),s=0;s<i;s++){var l=a.find(n);if(0==s&&l&&fe(a.from(),o)){var c=n?a.from():a.to();(l=a.find(n))&&!l[0]&&fe(a.from(),c)&&e.getLine(c.line).length==c.ch&&(l=a.find(n))}if(!l&&!(a=e.getSearchCursor(r,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return}return a.from()}))}function At(e,n,r,i,o){return void 0===i&&(i=1),e.operation((function(){var a=e.getCursor(),s=e.getSearchCursor(r,a),l=s.find(!n);!o.visualMode&&l&&fe(s.from(),a)&&s.find(!n);for(var c=0;c<i;c++)if(!(l=s.find(n))&&!(s=e.getSearchCursor(r,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return;return[s.from(),s.to()]}))}function _t(e){var t=tt(e);e.removeOverlay(tt(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function Ct(e,t,n){return"number"!=typeof e&&(e=e.line),t instanceof Array?B(e,t):"number"==typeof n?e>=t&&e<=n:e==t}function kt(e){var t=e.getScrollInfo(),n=6,r=10,i=e.coordsChar({left:0,top:n+t.top},"local"),o=t.clientHeight-r+t.top,a=e.coordsChar({left:0,top:o},"local");return{top:i.line,bottom:a.line}}function St(e,n,r){if("'"==r||"`"==r)return R.jumpList.find(e,-1)||new t(0,0);if("."==r)return Et(e);var i=n.marks[r];return i&&i.find()}function Et(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return de(t[n].changes[0].to)}var Tt=function(){this.buildCommandMap_()};Tt.prototype={processCommand:function(e,t,n){var r=this;e.operation((function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)}))},_processCommand:function(t,n,r){var i=t.state.vim,o=R.registerController.getRegister(":"),a=o.toString();i.visualMode&&Le(t);var s=new e.StringStream(n);o.setText(n);var l,c,u=r||{};u.input=n;try{this.parseInput_(t,s,u)}catch(e){throw ft(t,e.toString()),e}if(u.commandName){if(l=this.matchCommand_(u.commandName)){if(c=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,u,l),"exToKey"==l.type){for(var p=0;p<l.toKeys.length;p++)W.handleKey(t,l.toKeys[p],"mapping");return}if("exToEx"==l.type)return void this.processCommand(t,l.toInput)}}else void 0!==u.line&&(c="move");if(c)try{Ot[c](t,u),l&&l.possiblyAsync||!u.callback||u.callback()}catch(e){throw ft(t,e.toString()),e}else ft(t,'Not an editor command ":'+n+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var r=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=r?r[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var r=t.next(),i=St(e,e.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,i.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=be(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<o.length;e++){var t=o[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,t,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:t,user:!0}}else if(":"!=t&&":"==t.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:t.substring(1)}};n&&(o.context=n),r.unshift(o)}else o={keys:e,type:"keyToKey",toKeys:t},n&&(o.context=n),r.unshift(o)},unmap:function(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var n=e.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user)return delete this.commandMap_[n],!0}else for(var i=e,o=0;o<r.length;o++)if(i==r[o].keys&&r[o].context===t)return r.splice(o,1),!0}};var Ot={colorscheme:function(e,t){!t.args||t.args.length<1?ft(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var r=t.args;!r||r.length<2?e&&ft(e,"Invalid mapping: "+t.input):Mt.map(r[0],r[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var r=t.args;(!r||r.length<1||!Mt.unmap(r[0],n))&&e&&ft(e,"No such mapping: "+t.input)},move:function(e,t){J.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,r=t.setCfg||{};if(!n||n.length<1)e&&ft(e,"Invalid mapping: "+t.input);else{var i=n[0].split("="),o=i[0],a=i[1],s=!1;if("?"==o.charAt(o.length-1)){if(a)throw Error("Trailing characters: "+t.argString);o=o.substring(0,o.length-1),s=!0}void 0===a&&"no"==o.substring(0,2)&&(o=o.substring(2),a=!1);var l=D[o]&&"boolean"==D[o].type;if(l&&null==a&&(a=!0),!l&&void 0===a||s){var c=P(o,e,r);c instanceof Error?ft(e,c.message):ft(e,!0===c||!1===c?" "+(c?"":"no")+o:"  "+o+"="+c)}else{var u=j(o,a,e,r);u instanceof Error&&ft(e,u.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,r=R.registerController.registers,i="----------Registers----------\n\n";if(n){n=n.join("");for(var o=0;o<n.length;o++)a=n.charAt(o),R.registerController.isValidRegister(a)&&(i+='"'+a+"    "+(r[a]||new K).toString()+"\n")}else for(var a in r){var s=r[a].toString();s.length&&(i+='"'+a+"    "+s+"\n")}ft(e,i)},sort:function(n,r){var i,o,a,s,l;function c(){if(r.argString){var t=new e.StringStream(r.argString);if(t.eat("!")&&(i=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var n=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!n&&!t.eol())return"Invalid arguments";if(n[1]){o=-1!=n[1].indexOf("i"),a=-1!=n[1].indexOf("u");var c=-1!=n[1].indexOf("d")||-1!=n[1].indexOf("n")&&1,u=-1!=n[1].indexOf("x")&&1,p=-1!=n[1].indexOf("o")&&1;if(c+u+p>1)return"Invalid arguments";s=(c?"decimal":u&&"hex")||p&&"octal"}n[2]&&(l=new RegExp(n[2].substr(1,n[2].length-2),o?"i":""))}}var u=c();if(u)ft(n,u+": "+r.argString);else{var p=r.line||n.firstLine(),d=r.lineEnd||r.line||n.lastLine();if(p!=d){var f=new t(p,0),h=new t(d,ye(n,d)),m=n.getRange(f,h).split("\n"),g=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),v="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,y=[],b=[];if(s||l)for(var x=0;x<m.length;x++){var w=l?m[x].match(l):null;w&&""!=w[0]?y.push(w):!l&&g.exec(m[x])?y.push(m[x]):b.push(m[x])}else b=m;if(y.sort(l?k:C),l)for(x=0;x<y.length;x++)y[x]=y[x].input;else s||b.sort(C);if(m=i?y.concat(b):b.concat(y),a){var A,_=m;for(m=[],x=0;x<_.length;x++)_[x]!=A&&m.push(_[x]),A=_[x]}n.replaceRange(m.join("\n"),f,h)}}function C(e,t){var n;i&&(n=e,e=t,t=n),o&&(e=e.toLowerCase(),t=t.toLowerCase());var r=s&&g.exec(e),a=s&&g.exec(t);return r?(r=parseInt((r[1]+r[2]).toLowerCase(),v))-(a=parseInt((a[1]+a[2]).toLowerCase(),v)):e<t?-1:1}function k(e,t){var n;return i&&(n=e,e=t,t=n),o&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}},vglobal:function(e,t){this.global(e,t)},global:function(e,t){var n=t.argString;if(n){var r,i="v"===t.commandName[0],o=void 0!==t.line?t.line:e.firstLine(),a=t.lineEnd||t.line||e.lastLine(),s=nt(n),l=n;if(s.length&&(l=s[0],r=s.slice(1,s.length).join("/")),l)try{vt(e,l,!0,!0)}catch(t){return void ft(e,"Invalid regex: "+l)}for(var c=tt(e).getQuery(),u=[],p=o;p<=a;p++){var d=e.getLineHandle(p);c.test(d.text)!==i&&u.push(r?d:d.text)}if(r){var f=0,h=function(){if(f<u.length){var t=u[f++],n=e.getLineNumber(t);if(null==n)return void h();var i=n+1+r;Mt.processCommand(e,i,{callback:h})}};h()}else ft(e,u.join("\n"))}else ft(e,"Regular Expression missing from global")},substitute:function(e,n){if(!e.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var r,i,o,a,s=n.argString,l=s?it(s,s[0]):[],c="",u=!1,p=!1;if(l.length)r=l[0],P("pcre")&&""!==r&&(r=new RegExp(r).source),void 0!==(c=l[1])&&(c=P("pcre")?ut(c.replace(/([^\\])&/g,"$1$$&")):lt(c),R.lastSubstituteReplacePart=c),i=l[2]?l[2].split(" "):[];else if(s&&s.length)return void ft(e,"Substitutions should be of the form :s/pattern/replace/");if(i&&(o=i[0],a=parseInt(i[1]),o&&(-1!=o.indexOf("c")&&(u=!0),-1!=o.indexOf("g")&&(p=!0),r=P("pcre")?r+"/"+o:r.replace(/\//g,"\\/")+"/"+o)),r)try{vt(e,r,!0,!0)}catch(t){return void ft(e,"Invalid regex: "+r)}if(void 0!==(c=c||R.lastSubstituteReplacePart)){var d=tt(e).getQuery(),f=void 0!==n.line?n.line:e.getCursor().line,h=n.lineEnd||f;f==e.firstLine()&&h==e.lastLine()&&(h=1/0),a&&(h=(f=h)+a-1);var m=oe(e,new t(f,0)),g=e.getSearchCursor(d,m);Lt(e,u,p,f,h,g,d,c,n.callback)}else ft(e,"No previous substitute regular expression")},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){_t(e)},yank:function(e){var t=de(e.getCursor()).line,n=e.getLine(t);R.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(t,n){if(n.argString&&be(n.argString))for(var r=t.state.vim,i=new e.StringStream(be(n.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void ft(t,"Invalid argument: "+n.argString.substring(o));var a=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void ft(t,"Invalid argument: "+n.argString.substring(o));var s=a,l=i.next();if(!(S(s)&&S(l)||O(s)&&O(l)))return void ft(t,"Invalid argument: "+s+"-");var c=s.charCodeAt(0),u=l.charCodeAt(0);if(c>=u)return void ft(t,"Invalid argument: "+n.argString.substring(o));for(var p=0;p<=u-c;p++){var d=String.fromCharCode(c+p);delete r.marks[d]}}else delete r.marks[a]}else ft(t,"Argument required")}},Mt=new Tt;function Lt(t,n,r,i,o,a,s,l,c){t.state.vim.exMode=!0;var u,p,d,f=!1;function h(){t.operation((function(){for(;!f;)m(),v();y()}))}function m(){var e=t.getRange(a.from(),a.to()).replace(s,l),n=a.to().line;a.replace(e),p=a.to().line,o+=p-n,d=p<n}function g(){var e=u&&de(a.to()),t=a.findNext();return t&&!t[0]&&e&&fe(a.from(),e)&&(t=a.findNext()),t}function v(){for(;g()&&Ct(a.from(),i,o);)if(r||a.from().line!=p||d)return t.scrollIntoView(a.from(),30),t.setSelection(a.from(),a.to()),u=a.from(),void(f=!1);f=!0}function y(e){if(e&&e(),t.focus(),u){t.setCursor(u);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=u.ch}c&&c()}function b(n,r,i){switch(e.e_stop(n),e.keyName(n)){case"Y":m(),v();break;case"N":v();break;case"A":var o=c;c=void 0,t.operation(h),c=o;break;case"L":m();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":y(i)}return f&&y(i),!0}if(v(),!f)return n?void mt(t,{prefix:dt("span","replace with ",dt("strong",l)," (y/n/a/q/l)"),onKeyDown:b}):(h(),void(c&&c()));ft(t,"No matches for "+s.source)}function Bt(t){var n=t.state.vim,r=R.macroModeState,i=R.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",It),e.off(t.getInputField(),"keydown",Ht)),!o&&n.insertModeRepeat>1&&(Wt(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&Rt(r)}function Dt(e){r.unshift(e)}function Nt(e,t,n,r,i){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=r,i)o[a]=i[a];Dt(o)}function jt(e,t,n,r){var i=R.registerController.getRegister(r);if(":"==r)return i.keyBuffer[0]&&Mt.processCommand(e,i.keyBuffer[0]),void(n.isPlaying=!1);var o=i.keyBuffer,a=0;n.isPlaying=!0,n.replaySearchQueries=i.searchQueries.slice(0);for(var s=0;s<o.length;s++)for(var l,c,u=o[s];u;)if(c=(l=/<\w+-.+?>|<\w+>|./.exec(u))[0],u=u.substring(l.index+c.length),W.handleKey(e,c,"macro"),t.insertMode){var p=i.insertModeChanges[a++].changes;R.macroModeState.lastInsertModeChanges.changes=p,Ut(e,p,1),Bt(e)}n.isPlaying=!1}function Pt(e,t){if(!e.isPlaying){var n=e.latestRegister,r=R.registerController.getRegister(n);r&&r.pushText(t)}}function Rt(e){if(!e.isPlaying){var t=e.latestRegister,n=R.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function Ft(e,t){if(!e.isPlaying){var n=e.latestRegister,r=R.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}}function It(e,t){var n=R.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var o=t.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}t=t.next}}function zt(e){var t=e.state.vim;if(t.insertMode){var n=R.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else e.curOp.isVimOp||$t(e,t)}function $t(t,n){var r=t.getCursor("anchor"),i=t.getCursor("head");if(n.visualMode&&!t.somethingSelected()?Le(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=he(i,r)?0:-1,a=he(i,r)?-1:0;i=se(i,0,o),r=se(r,0,a),n.sel={anchor:r,head:i},Ke(t,n,"<",me(i,r)),Ke(t,n,">",ge(i,r))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}function qt(e){this.keyName=e}function Ht(t){var n=R.macroModeState.lastInsertModeChanges,r=e.keyName(t);function i(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new qt(r)),!0}r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||e.lookupKey(r,"vim-insert",i))}function Wt(e,t,n,r){var i=R.macroModeState;i.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function s(){o?J.processAction(e,t,t.lastEditActionCommand):J.evalInput(e,t)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;Ut(e,r.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c<n;c++)s(),l(1);else r||s(),l(n);t.inputState=a,t.insertMode&&!r&&Bt(e),i.isPlaying=!1}function Ut(t,n,r){function i(n){return"string"==typeof n?e.commands[n](t):n(t),!0}var o=t.getCursor("head"),a=R.macroModeState.lastInsertModeChanges.visualBlock;a&&(_e(t,o,a+1),r=t.listSelections().length,t.setCursor(o));for(var s=0;s<r;s++){a&&t.setCursor(se(o,s,0));for(var l=0;l<n.length;l++){var c=n[l];if(c instanceof qt)e.lookupKey(c.keyName,"vim-insert",i);else if("string"==typeof c)t.replaceSelection(c);else{var u=t.getCursor(),p=se(u,0,c[0].length);t.replaceRange(c[0],u,p),t.setCursor(p)}}}a&&t.setCursor(se(o,0,1))}function Vt(e){var t=new e.constructor;return Object.keys(e).forEach((function(n){var r=e[n];Array.isArray(r)?r=r.slice():r&&"object"==typeof r&&r.constructor!=Object&&(r=Vt(r)),t[n]=r})),e.sel&&(t.sel={head:e.sel.head&&de(e.sel.head),anchor:e.sel.anchor&&de(e.sel.anchor)}),t}function Kt(e,t,n){var r=!1,i=W.maybeInitVimState_(e),o=i.visualBlock||i.wasInVisualBlock,a=e.isInMultiSelectMode();if(i.wasInVisualBlock&&!a?i.wasInVisualBlock=!1:a&&i.visualBlock&&(i.wasInVisualBlock=!0),"<Esc>"!=t||i.insertMode||i.visualMode||!a||"<Esc>"!=i.status)if(o||!a||e.inVirtualSelectionMode)r=W.handleKey(e,t,n);else{var s=Vt(i);e.operation((function(){e.curOp.isVimOp=!0,e.forEachSelection((function(){var i=e.getCursor("head"),o=e.getCursor("anchor"),a=he(i,o)?0:-1,l=he(i,o)?-1:0;i=se(i,0,a),o=se(o,0,l),e.state.vim.sel.head=i,e.state.vim.sel.anchor=o,r=W.handleKey(e,t,n),e.virtualSelection&&(e.state.vim=Vt(s))})),e.curOp.cursorActivity&&!r&&(e.curOp.cursorActivity=!1),e.state.vim=i}),!0)}else V(e);return!r||i.visualMode||i.insert||i.visualMode==e.somethingSelected()||$t(e,i),r}return e.keyMap.vim={attach:c,detach:l,call:u},N("insertModeEscKeysTimeout",200,"number"),e.keyMap["vim-insert"]={fallthrough:["default"],attach:c,detach:l,call:u},e.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:c,detach:l,call:u},H(),W}function n(e){return e.Vim=t(e),e.Vim}e.Vim=n(e)}(n(4631),n(32095),n(55292),n(4328))},4631:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),p=u&&+u[1],d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),x=/\bCrOS\b/.test(e),w=/win/i.test(t),A=d&&e.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(d=!1,l=!0);var _=b&&(c||d&&(null==A||A<12.11)),C=n||a&&s>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,E=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return T(e).appendChild(t)}function M(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function L(e,t,n,r){var i=M(e,t,n,r);return i.setAttribute("role","presentation"),i}function B(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function N(e,t){var n=e.className;k(t).test(n)||(e.className+=(n?" ":"")+t)}function j(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!k(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var P=function(e){e.select()};function R(e){return e.display.wrapper.ownerDocument}function F(e){return R(e).defaultView}function I(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function z(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function $(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(P=function(e){try{e.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},q.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var W=50,U={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},K={origin:"*mouse"},G={origin:"+move"};function Y(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function J(e){for(;X.length<=e;)X.push(Z(X)+" ");return X[e]}function Z(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&z(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function pe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var de=null;function fe(e,t,n){var r;de=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,p=[],d=0;d<u;++d)p.push(n(e.charCodeAt(d)));for(var f=0,h=c;f<u;++f){var m=p[f];"m"==m?p[f]=h:h=m}for(var g=0,v=c;g<u;++g){var y=p[g];"1"==y&&"r"==v?p[g]="n":o.test(y)&&(v=y,"r"==y&&(p[g]="R"))}for(var b=1,x=p[0];b<u-1;++b){var w=p[b];"+"==w&&"1"==x&&"1"==p[b+1]?p[b]="1":","!=w||x!=p[b+1]||"1"!=x&&"n"!=x||(p[b]=x),x=w}for(var A=0;A<u;++A){var _=p[A];if(","==_)p[A]="N";else if("%"==_){var C=void 0;for(C=A+1;C<u&&"%"==p[C];++C);for(var k=A&&"!"==p[A-1]||C<u&&"1"==p[C]?"1":"N",S=A;S<C;++S)p[S]=k;A=C-1}}for(var E=0,T=c;E<u;++E){var O=p[E];"L"==T&&"1"==O?p[E]="L":o.test(O)&&(T=O)}for(var M=0;M<u;++M)if(i.test(p[M])){var L=void 0;for(L=M+1;L<u&&i.test(p[L]);++L);for(var B="L"==(M?p[M-1]:c),D=B==("L"==(L<u?p[L]:c))?B?"L":"R":c,N=M;N<L;++N)p[N]=D;M=L-1}for(var j,P=[],R=0;R<u;)if(a.test(p[R])){var F=R;for(++R;R<u&&a.test(p[R]);++R);P.push(new l(0,F,R))}else{var I=R,z=P.length,$="rtl"==t?1:0;for(++R;R<u&&"L"!=p[R];++R);for(var q=I;q<R;)if(s.test(p[q])){I<q&&(P.splice(z,0,new l(1,I,q)),z+=$);var H=q;for(++q;q<R&&s.test(p[q]);++q);P.splice(z,0,new l(2,H,q)),z+=$,I=q}else++q;I<R&&P.splice(z,0,new l(1,I,R))}return"ltr"==t&&(1==P[0].level&&(j=e.match(/^\s+/))&&(P[0].from=j[0].length,P.unshift(new l(0,0,j[0].length))),1==Z(P).level&&(j=e.match(/\s+$/))&&(Z(P).to-=j[0].length,P.push(new l(0,u-j[0].length,u)))),"rtl"==t?P.reverse():P}}();function me(e,t){var n=e.order;return null==n&&(n=e.order=he(e.text,t)),n}var ge=[],ve=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ge).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||ge}function be(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=H(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function xe(e,t){var n=ye(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function we(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),xe(e,n||t.type,e,t),Ee(t)||t.codemirrorIgnore}function Ae(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==H(n,t[r])&&n.push(t[r])}function _e(e,t){return ye(e,t).length>0}function Ce(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){ke(e),Se(e)}function Oe(e){return e.target||e.srcElement}function Me(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Le,Be,De=function(){if(a&&s<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Ne(e){if(null==Le){var t=M("span","​");O(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Le=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Le?M("span","​"):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function je(e){if(null!=Be)return Be;var t=O(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Be=r.right-n.right<3)}var Pe,Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Pe=M("div"))||(Pe.setAttribute("oncopy","return;"),"function"==typeof Pe.oncopy),ze=null;function $e(e){if(null!=ze)return ze;var t=O(e,M("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return ze=Math.abs(n.left-r.left)>1}var qe={},He={};function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Ue(e,t){He[e]=t}function Ve(e){if("string"==typeof e&&He.hasOwnProperty(e))e=He[e];else if(e&&"string"==typeof e.name&&He.hasOwnProperty(e.name)){var t=He[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ve(t);var n=qe[t.name];if(!n)return Ke(e,"text/plain");var r=n(e,t);if(Ge.hasOwnProperty(t.name)){var i=Ge[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ge={};function Ye(e,t){z(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Xe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Je(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ze(e,t,n){return!e.startState||e.startState(t,n)}var Qe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function et(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function tt(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function nt(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function rt(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function it(e){if(null==e.parent)return null;for(var t=e.parent,n=H(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function ot(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function at(e,t){return t>=e.first&&t<e.first+e.size}function st(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function lt(e,t,n){if(void 0===n&&(n=null),!(this instanceof lt))return new lt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ct(e,t){return e.line-t.line||e.ch-t.ch}function ut(e,t){return e.sticky==t.sticky&&0==ct(e,t)}function pt(e){return lt(e.line,e.ch)}function dt(e,t){return ct(e,t)<0?t:e}function ft(e,t){return ct(e,t)<0?e:t}function ht(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function mt(e,t){if(t.line<e.first)return lt(e.first,0);var n=e.first+e.size-1;return t.line>n?lt(n,et(e,n).text.length):gt(t,et(e,t.line).text.length)}function gt(e,t){var n=e.ch;return null==n||n>t?lt(e.line,t):n<0?lt(e.line,0):e}function vt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=mt(e,t[r]);return n}Qe.prototype.eol=function(){return this.pos>=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qe.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?$(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.indentation=function(){return $(this.string,null,this.tabSize)-(this.lineStart?$(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function xt(e,t,n,r){var i=[e.state.modeGen],o={};Ot(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Ot(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function wt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=At(e,it(t)),i=t.text.length>e.options.maxHighlightLength&&Xe(e.doc.mode,r.state),o=xt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function At(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new bt(r,!0,t);var o=Mt(e,t,n),a=o>r.first&&et(r,o-1).stateAfter,s=a?bt.fromSaved(r,a,o):new bt(r,Ze(r.mode),o);return r.iter(o,t,(function(n){_t(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function _t(e,t,n,r){var i=e.doc.mode,o=new Qe(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Ct(i,n.state);!o.eol();)kt(i,o,n.state),o.start=o.pos}function Ct(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Je(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function kt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Je(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof yt?new bt(e,Xe(e.mode,t.state),n,t.lookAhead):new bt(e,Xe(e.mode,t),n)},bt.prototype.save=function(e){var t=!1!==e?Xe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var St=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Et(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=et(a,(t=mt(a,t)).line),c=At(e,t.line,n),u=new Qe(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=kt(s,u,c.state),r&&o.push(new St(u,i,Xe(a.mode,c.state)));return r?o:new St(u,i,c.state)}function Tt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ot(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,p=new Qe(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&Tt(Ct(n,r.state),o);!p.eol();){if(p.pos>e.options.maxHighlightLength?(s=!1,a&&_t(e,t,r,p.pos),p.pos=t.length,l=null):l=Tt(kt(n,p,r.state,d),o),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<p.start;)i(c=Math.min(p.start,c+5e3),u);u=l}p.start=p.pos}for(;c<p.pos;){var h=Math.min(p.pos,c+5e3);i(h,u),c=h}}function Mt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=et(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof yt?c.lookAhead:0)<=o.modeFrontier))return s;var u=$(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function Lt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=et(e,r).stateAfter;if(i&&(!(i instanceof yt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Bt=!1,Dt=!1;function Nt(){Bt=!0}function jt(){Dt=!0}function Pt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ft(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function It(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function zt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Pt(a,o.from,s?null:o.to))}}return r}function $t(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Pt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function qt(e,t){if(t.full)return null;var n=at(e,t.from.line)&&et(e,t.from.line).markedSpans,r=at(e,t.to.line)&&et(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ct(t.from,t.to),s=zt(n,i,a),l=$t(r,o,a),c=1==t.text.length,u=Z(t.text).length+(c?i:0);if(s)for(var p=0;p<s.length;++p){var d=s[p];if(null==d.to){var f=Rt(l,d.marker);f?c&&(d.to=null==f.to?null:f.to+u):d.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=u),null==m.from?Rt(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=Ht(s)),l&&l!=s&&(l=Ht(l));var g=[s];if(!c){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Pt(s[b].marker,null,null));for(var x=0;x<y;++x)g.push(v);g.push(l)}return g}function Ht(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Wt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=H(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(ct(c.to,s.from)<0||ct(c.from,s.to)>0)){var u=[l,1],p=ct(c.from,s.from),d=ct(c.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Ut(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Vt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Kt(e){return e.inclusiveLeft?-1:0}function Gt(e){return e.inclusiveRight?1:0}function Yt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ct(r.from,i.from)||Kt(e)-Kt(t);if(o)return-o;var a=ct(r.to,i.to)||Gt(e)-Gt(t);return a||t.id-e.id}function Xt(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Yt(n,i.marker)<0)&&(n=i.marker);return n}function Jt(e){return Xt(e,!0)}function Zt(e){return Xt(e,!1)}function Qt(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Yt(n,o.marker)<0)&&(n=o.marker)}return n}function en(e,t,n,r,i){var o=et(e,t),a=Dt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ct(c.from,n)||Kt(l.marker)-Kt(i),p=ct(c.to,r)||Gt(l.marker)-Gt(i);if(!(u>=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(c.to,n)>=0:ct(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(c.from,r)<=0:ct(c.from,r)<0)))return!0}}}function tn(e){for(var t;t=Jt(e);)e=t.find(-1,!0).line;return e}function nn(e){for(var t;t=Zt(e);)e=t.find(1,!0).line;return e}function rn(e){for(var t,n;t=Zt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function on(e,t){var n=et(e,t),r=tn(n);return n==r?t:it(r)}function an(e,t){if(t>e.lastLine())return t;var n,r=et(e,t);if(!sn(e,r))return t;for(;n=Zt(r);)r=n.find(1,!0).line;return it(r)+1}function sn(e,t){var n=Dt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&ln(e,t,r))return!0}}function ln(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return ln(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ln(e,t,i))return!0}function cn(e){for(var t=0,n=(e=tn(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function un(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Jt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Zt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function pn(e){var t=e.display,n=e.doc;t.maxLine=et(n,n.first),t.maxLineLength=un(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=un(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var dn=function(e,t,n){this.text=e,Vt(this,t),this.height=n?n(this):1};function fn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),Vt(e,n);var i=r?r(e):1;i!=e.height&&rt(e,i)}function hn(e){e.parent=null,Ut(e)}dn.prototype.lineNo=function(){return it(this)},Ce(dn);var mn={},gn={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?gn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function yn(e,t){var n=L("span",null,null,l?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=xn,je(e.display.measure)&&(a=me(o,e.doc.direction))&&(r.addToken=An(r.addToken,a)),r.map=[],Cn(o,r,wt(e,o,t!=e.display.externalMeasured&&it(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ne(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return xe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function bn(e){var t=M("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function xn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?wn(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){c=document.createDocumentFragment();for(var f=0;;){p.lastIndex=f;var h=p.exec(t),m=h?h.index-f:t.length-f;if(m){var g=document.createTextNode(u.slice(f,f+m));a&&s<9?c.appendChild(M("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;f+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(M("span",J(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(M("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(M("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||d||o||l){var x=n||"";r&&(x+=r),i&&(x+=i);var w=M("span",[c],x,o);if(l)for(var A in l)l.hasOwnProperty(A)&&"style"!=A&&"class"!=A&&w.setAttribute(A,l[A]);return e.content.appendChild(w)}e.content.appendChild(c)}}function wn(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function An(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var p=void 0,d=0;d<t.length&&!((p=t[d]).to>c&&p.from<=c);d++);if(p.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,p.to-c),i,o,null,s,l),o=null,r=r.slice(p.to-c),c=p.to}}}function _n(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Cn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,p,d,f=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=c=u=s="",d=null,p=null,v=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var w=r[x],A=w.marker;if("bookmark"==A.type&&w.from==h&&A.widgetNode)y.push(A);else if(w.from<=h&&(null==w.to||w.to>h||A.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,c=""),A.className&&(l+=" "+A.className),A.css&&(s=(s?s+";":"")+A.css),A.startStyle&&w.from==h&&(u+=" "+A.startStyle),A.endStyle&&w.to==v&&(b||(b=[])).push(A.endStyle,w.to),A.title&&((d||(d={})).title=A.title),A.attributes)for(var _ in A.attributes)(d||(d={}))[_]=A.attributes[_];A.collapsed&&(!p||Yt(p.marker,A)<0)&&(p=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(c+=" "+b[C]);if(!p||p.from==h)for(var k=0;k<y.length;++k)_n(t,0,y[k]);if(p&&(p.from||0)==h){if(_n(t,(null==p.to?f+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=f)break;for(var S=Math.min(f,v);;){if(g){var E=h+g.length;if(!p){var T=E>S?g.slice(0,S-h):g;t.addToken(t,T,a?a+l:l,u,h+T.length==v?c:"",s,d)}if(E>=S){g=g.slice(S-h),h=S;break}h=E,u=""}g=i.slice(o,o=n[m++]),a=vn(n[m++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),vn(n[O+1],t.cm.options))}function kn(e,t,n){this.line=t,this.rest=rn(t),this.size=this.rest?it(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=sn(e,t)}function Sn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new kn(e.doc,et(e.doc,o),o);r=o+a.size,i.push(a)}return i}var En=null;function Tn(e){En?En.ops.push(e):e.ownsGroup=En={ops:[e],delayedCallbacks:[]}}function On(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Mn(e,t){var n=e.ownsGroup;if(n)try{On(n)}finally{En=null,t(n)}}var Ln=null;function Bn(e,t){var n=ye(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);En?r=En.delayedCallbacks:Ln?r=Ln:(r=Ln=[],setTimeout(Dn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function Dn(){var e=Ln;Ln=null;for(var t=0;t<e.length;++t)e[t]()}function Nn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Fn(e,t):"gutter"==o?zn(e,t,n,r):"class"==o?In(e,t):"widget"==o&&$n(e,t,r)}t.changes=null}function jn(e){return e.node==e.text&&(e.node=M("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Pn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=jn(t);t.background=r.insertBefore(M("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Rn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):yn(e,t)}function Fn(e,t){var n=t.text.className,r=Rn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,In(e,t)):n&&(t.text.className=n)}function In(e,t){Pn(e,t),t.line.wrapClass?jn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function zn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=jn(t);t.gutterBackground=M("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=jn(t),s=t.gutter=M("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(M("div",st(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(M("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function $n(e,t,n){t.alignable&&(t.alignable=null);for(var r=k("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Hn(e,t,n)}function qn(e,t,n,r){var i=Rn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),In(e,t),zn(e,t,n,r),Hn(e,t,r),t.node}function Hn(e,t,n){if(Wn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Wn(e,t.rest[r],t,n,!1)}function Wn(e,t,n,r,i){if(t.widgets)for(var o=jn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=M("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Un(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),Bn(l,"redraw")}}function Un(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Vn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!B(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),O(t.display.measure,M("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Kn(e,t){for(var n=Oe(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Gn(e){return e.lineSpace.offsetTop}function Yn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Xn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,M("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Jn(e){return W-e.display.nativeBarWidth}function Zn(e){return e.display.scroller.clientWidth-Jn(e)-e.display.barWidth}function Qn(e){return e.display.scroller.clientHeight-Jn(e)-e.display.barHeight}function er(e,t,n){var r=e.options.lineWrapping,i=r&&Zn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function tr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(it(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function nr(e,t){var n=it(t=tn(t)),r=e.display.externalMeasured=new kn(e.doc,t,n);r.lineN=n;var i=r.built=yn(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}function rr(e,t,n,r){return ar(e,or(e,t),n,r)}function ir(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ir(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function or(e,t){var n=it(t),r=ir(e,n);r&&!r.text?r=null:r&&r.changes&&(Nn(e,r,n,Nr(e)),e.curOp.forceUpdate=!0),r||(r=nr(e,t));var i=tr(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function ar(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(er(e,t.view,t.rect),t.hasHeights=!0),(o=pr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var sr,lr={left:0,right:0,top:0,bottom:0};function cr(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function ur(e,t){var n=lr;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function pr(e,t,n,r){var i,o=cr(t.map,n,r),l=o.node,c=o.start,u=o.end,p=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&le(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&le(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ur(S(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,p="right"}a&&s<11&&(i=dr(e.display.measure,i))}else{var f;c>0&&(p=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Dr(e.display),top:h.top,bottom:h.bottom}:lr}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var x=b?y[b-1]:0,w=y[b],A={left:("right"==p?i.right:i.left)-t.rect.left,right:("left"==p?i.left:i.right)-t.rect.left,top:x,bottom:w};return i.left||i.right||(A.bogus=!0),e.options.singleCursorHeightPerLine||(A.rtop=m,A.rbottom=g),A}function dr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!$e(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function fr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function hr(e){e.display.externalMeasure=null,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fr(e.display.view[t])}function mr(e){hr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function gr(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function vr(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function yr(e){var t=tn(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Vn(t[r]));return n}function br(e,t,n,r,i){if(!i){var o=yr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=cn(t);if("local"==r?a+=Gn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:vr(R(e)));var l=s.left+("window"==r?0:gr(R(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function xr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=gr(R(e)),i-=vr(R(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function wr(e,t,n,r,i){return r||(r=et(e.doc,t.line)),br(e,r,rr(e,r,t.ch,i),n)}function Ar(e,t,n,r,i,o){function a(t,a){var s=ar(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,br(e,r,s,n)}r=r||et(e.doc,t.line),i||(i=or(e,r));var s=me(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=fe(s,l,c),d=de,f=u(l,p,"before"==c);return null!=d&&(f.other=u(l,d,"before"!=c)),f}function _r(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Dr(e.display)*t.ch);var r=et(e.doc,t.line),i=cn(r)+Gn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Cr(e,t,n,r,i){var o=lt(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function kr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Cr(r.first,0,null,-1,-1);var i=ot(r,n),o=r.first+r.size-1;if(i>o)return Cr(r.first+r.size-1,et(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=et(r,i);;){var s=Or(e,a,i,t,n),l=Qt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=et(r,i=c.line)}}function Sr(e,t,n,r){r-=yr(t);var i=t.text.length,o=ue((function(t){return ar(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ue((function(t){return ar(e,n,t).top>r}),o,i)}}function Er(e,t,n,r){return n||(n=or(e,t)),Sr(e,t,n,br(e,t,ar(e,n,r),"line").top)}function Tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Or(e,t,n,r,i){i-=cn(t);var o=or(e,t),a=yr(t),s=0,l=t.text.length,c=!0,u=me(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?Lr:Mr)(e,t,n,o,u,r,i);s=(c=1!=p.level)?p.from:p.to-1,l=c?p.to:p.from-1}var d,f,h=null,m=null,g=ue((function(t){var n=ar(e,o,t);return n.top+=a,n.bottom+=a,!!Tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==c;g=h+(b?0:1),f=b?"after":"before",d=y?m.left:m.right}else{c||g!=l&&g!=s||g++,f=0==g?"after":g==t.text.length?"before":ar(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var x=Ar(e,lt(n,g,f),"line",t,o);d=x.left,v=i<x.top?-1:i>=x.bottom?1:0}return Cr(n,g=ce(t.text,g,1),f,v,r-d)}function Mr(e,t,n,r,i,o,a){var s=ue((function(s){var l=i[s],c=1!=l.level;return Tr(Ar(e,lt(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Ar(e,lt(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Tr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Lr(e,t,n,r,i,o,a){var s=Sr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,p=null,d=0;d<i.length;d++){var f=i[d];if(!(f.from>=c||f.to<=l)){var h=ar(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,m=h<o?o-h+1e9:h-o;(!u||p>m)&&(u=f,p=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Br(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==sr){sr=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)sr.appendChild(document.createTextNode("x")),sr.appendChild(M("br"));sr.appendChild(document.createTextNode("x"))}O(e.measure,sr);var n=sr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function Dr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Nr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:jr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function jr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Pr(e){var t=Br(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Dr(e.display)-3);return function(i){if(sn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Rr(e){var t=e.doc,n=Pr(e);t.iter((function(e){var t=n(e);t!=e.height&&rt(e,t)}))}function Fr(e,t,n,r){var i=e.display;if(!n&&"true"==Oe(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=kr(e,o,a);if(r&&c.xRel>0&&(l=et(e.doc,c.line).text).length==c.ch){var u=$(l,l.length,e.options.tabSize)-l.length;c=lt(c.line,Math.max(0,Math.round((o-Xn(e.display).left)/Dr(e.display))-u))}return c}function Ir(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function zr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Dt&&on(e.doc,t)<i.viewTo&&qr(e);else if(n<=i.viewFrom)Dt&&an(e.doc,n+r)>i.viewFrom?qr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)qr(e);else if(t<=i.viewFrom){var o=Hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):qr(e)}else if(n>=i.viewTo){var a=Hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):qr(e)}else{var s=Hr(e,t,t,-1),l=Hr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Sn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):qr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function $r(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Ir(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==H(a,n)&&a.push(n)}}}function qr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Hr(e,t,n,r){var i,o=Ir(e,t),a=e.display.view;if(!Dt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;on(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Wr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Sn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Sn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Ir(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Sn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Ir(e,n)))),r.viewTo=n}function Ur(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Kr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&Gr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&Gr(e,l.head,i);c||Xr(e,l,o)}}return r}function Gr(e,t,n){var r=Ar(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(M("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=wr(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Yr(e,t){return e.top-t.top||e.left-t.left}function Xr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Xn(e.display),s=a.left,l=Math.max(r.sizerWidth,Zn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=et(i,t),d=p.text.length;function f(n,r){return wr(e,lt(t,n),"div",p,r)}function h(t,n,r){var i=Er(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=me(p,i.direction);return pe(m,n||0,null==r?d:r,(function(e,t,i,p){var g="ltr"==i,v=f(e,g?"left":"right"),y=f(t-1,g?"right":"left"),b=null==n&&0==e,x=null==r&&t==d,w=0==p,A=!m||p==m.length-1;if(y.top-v.top<=3){var _=(c?x:b)&&A,C=(c?b:x)&&w?s:(g?v:y).left,k=_?l:(g?y:v).right;u(C,v.top,k-C,v.bottom)}else{var S,E,T,O;g?(S=c&&b&&w?s:v.left,E=c?l:h(e,i,"before"),T=c?s:h(t,i,"after"),O=c&&x&&A?l:y.right):(S=c?h(e,i,"before"):s,E=!c&&b&&w?l:v.right,T=!c&&x&&A?s:y.left,O=c?h(t,i,"after"):l),u(S,v.top,E-S,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(T,y.top,O-T,y.bottom)}(!o||Yr(v,o)<0)&&(o=v),Yr(y,o)<0&&(o=y),(!a||Yr(v,a)<0)&&(a=v),Yr(y,a)<0&&(a=y)})),{start:o,end:a}}var d=t.from(),f=t.to();if(d.line==f.line)p(d.line,d.ch,f.ch);else{var h=et(i,d.line),m=et(i,f.line),g=tn(h)==tn(m),v=p(d.line,d.ch,g?h.text.length+1:null).end,y=p(f.line,g?0:null,f.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(o)}function Jr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||ti(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Zr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ei(e))}function Qr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ti(e))}),100)}function ei(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Jr(e))}function ti(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,E(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ni(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,p=void 0,d=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var f=c.node.offsetTop+c.node.offsetHeight;p=f-n,n=f}else{var h=c.node.getBoundingClientRect();p=h.bottom-h.top,!u&&c.text.firstChild&&(d=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=c.line.height-p;if((m>.005||m<-.005)&&(i<r&&(o-=m),rt(c.line,p),ri(c.line),c.rest))for(var g=0;g<c.rest.length;g++)ri(c.rest[g]);if(d>e.display.sizerWidth){var v=Math.ceil(d/Dr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ri(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ii(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Gn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=ot(t,r),a=ot(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=ot(t,cn(et(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=ot(t,cn(et(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function oi(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=M("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function ai(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?lt(t.line,t.ch+1,"before"):t,t=t.ch?lt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Ar(e,t),l=n&&n!=t?Ar(e,n):s,c=li(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=c.scrollTop&&(mi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(vi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}function si(e,t){var n=li(e,t);null!=n.scrollTop&&mi(e,n.scrollTop),null!=n.scrollLeft&&vi(e,n.scrollLeft)}function li(e,t){var n=e.display,r=Br(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Yn(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,f=Zn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left+p-(h?0:10)):t.right>f+d-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function ci(e,t){null!=t&&(fi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ui(e){fi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function pi(e,t,n){null==t&&null==n||fi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function di(e,t){fi(e),e.curOp.scrollToPos=t}function fi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,hi(e,_r(e,t.from),_r(e,t.to),t.margin))}function hi(e,t,n,r){var i=li(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});pi(e,i.scrollLeft,i.scrollTop)}function mi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Vi(e,{top:t}),gi(e,t,!0),n&&Vi(e),Fi(e,100))}function gi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Xi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Yn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var bi=function(e,t,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ve(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ve(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},bi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bi.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},bi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},bi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var xi=function(){};function wi(e,t){t||(t=yi(e));var n=e.display.barWidth,r=e.display.barHeight;Ai(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ni(e),Ai(e,yi(e)),n=e.display.barWidth,r=e.display.barHeight}function Ai(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}xi.prototype.update=function(){return{bottom:0,right:0}},xi.prototype.setScrollLeft=function(){},xi.prototype.setScrollTop=function(){},xi.prototype.clear=function(){};var _i={native:bi,null:xi};function Ci(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new _i[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?vi(e,t):mi(e,t)}),e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var ki=0;function Si(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ki,markArrays:null},Tn(e.curOp)}function Ei(e){var t=e.curOp;t&&Mn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ti(e)}))}function Ti(e){for(var t=e.ops,n=0;n<t.length;n++)Oi(t[n]);for(var r=0;r<t.length;r++)Mi(t[r]);for(var i=0;i<t.length;i++)Li(t[i]);for(var o=0;o<t.length;o++)Bi(t[o]);for(var a=0;a<t.length;a++)Di(t[a])}function Oi(e){var t=e.cm,n=t.display;$i(t),e.updateMaxLine&&pn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new zi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mi(e){e.updatedDisplay=e.mustUpdate&&Wi(e.cm,e.update)}function Li(e){var t=e.cm,n=t.display;e.updatedDisplay&&ni(t),e.barMeasure=yi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=rr(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Zn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Bi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&vi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D(R(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&wi(t,e.barMeasure),e.updatedDisplay&&Yi(t,e.barMeasure),e.selectionChanged&&Jr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Zr(e.cm)}function Di(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Ui(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&gi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&vi(t,e.scrollLeft,!0,!0),e.scrollToPos&&oi(t,ai(t,mt(r,e.scrollToPos.from),mt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||xe(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&xe(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&xe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ni(e,t){if(e.curOp)return t();Si(e);try{return t()}finally{Ei(e)}}function ji(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Si(e);try{return t.apply(e,arguments)}finally{Ei(e)}}}function Pi(e){return function(){if(this.curOp)return e.apply(this,arguments);Si(this);try{return e.apply(this,arguments)}finally{Ei(this)}}}function Ri(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Si(t);try{return e.apply(this,arguments)}finally{Ei(t)}}}function Fi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,I(Ii,e))}function Ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=At(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Xe(t.mode,r.state):null,l=xt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!p&&d<a.length;++d)p=a[d]!=o.styles[d];p&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&_t(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Fi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ni(e,(function(){for(var t=0;t<i.length;t++)$r(e,i[t],"text")}))}}var zi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ii(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Zn(e),this.force=n,this.dims=Nr(e),this.events=[]};function $i(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Jn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Jn(e)+"px",t.scrollbarsClipped=!0)}function qi(e){if(e.hasFocus())return null;var t=D(R(e));if(!t||!B(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=F(e).getSelection();r.anchorNode&&r.extend&&B(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Hi(e){if(e&&e.activeElt&&e.activeElt!=D(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&B(document.body,e.anchorNode)&&B(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function Wi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return qr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ur(e))return!1;Ji(e)&&(qr(e),t.dims=Nr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Dt&&(o=on(e.doc,o),a=an(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wr(e,o,a),n.viewOffset=cn(et(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ur(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=qi(e);return l>4&&(n.lineDiv.style.display="none"),Ki(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Hi(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Fi(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Zn(e))r&&(t.visible=ii(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Yn(e.display)-Qn(e),n.top)}),t.visible=ii(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Wi(e,t))break;ni(e);var i=yi(e);Vr(e),wi(e,i),Yi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Vi(e,t){var n=new zi(e,t);if(Wi(e,n)){ni(e),Ui(e,n);var r=yi(e);Vr(e),wi(e,r),Yi(e,r),n.finish()}}function Ki(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,p=0;p<c.length;p++){var d=c[p];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;a!=d.node;)a=s(a);var f=i&&null!=t&&t<=u&&d.lineNumber;d.changes&&(H(d.changes,"gutter")>-1&&(f=!1),Nn(e,d,u,n)),f&&(T(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(st(e.options,u)))),a=d.node.nextSibling}else{var h=qn(e,d,u,n);o.insertBefore(h,a)}u+=d.size}for(;a;)a=s(a)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Bn(e,"gutterChanged",e)}function Yi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jn(e)+"px"}function Xi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=jr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ji(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=st(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(M("div",[M("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Gi(e.display),!0}return!1}function Zi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Qi(e){var t=e.gutters,n=e.gutterSpecs;T(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(M("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Gi(e)}function eo(e){Qi(e.display),zr(e),Xi(e)}function to(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=M("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=M("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=L("div",null,"CodeMirror-code"),o.selectionDiv=M("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=M("div",null,"CodeMirror-cursors"),o.measure=M("div",null,"CodeMirror-measure"),o.lineMeasure=M("div",null,"CodeMirror-measure"),o.lineSpace=L("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=L("div",[o.lineSpace],"CodeMirror-lines");o.mover=M("div",[c],null,"position: relative"),o.sizer=M("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=M("div",null,null,"position: absolute; height: "+W+"px; width: 1px;"),o.gutters=M("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=M("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=M("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&p>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Zi(i.gutters,i.lineNumbers),Qi(o),r.init(o)}zi.prototype.signal=function(e,t){_e(e,t)&&this.events.push(arguments)},zi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)xe.apply(null,this.events[e])};var no=0,ro=null;function io(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function oo(e){var t=io(e);return t.x*=ro,t.y*=ro,t}function ao(e,t){u&&102==p&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=io(t),i=r.x,o=r.y,a=ro;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,f=c.scrollWidth>c.clientWidth,h=c.scrollHeight>c.clientHeight;if(i&&f||o&&h){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=c;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!d&&null!=a)return o&&h&&mi(e,Math.max(0,c.scrollTop+o*a)),vi(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&h)&&ke(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,x=e.doc.scrollTop,w=x+s.wrapper.clientHeight;y<0?x=Math.max(0,x+y-50):w=Math.min(e.doc.height,w+y+50),Vi(e,{top:x,bottom:w})}no<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ro=(ro*no+n)/(no+1),++no)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?ro=-.53:n?ro=15:u?ro=-.7:f&&(ro=-1/3);var so=function(e,t){this.ranges=e,this.primIndex=t};so.prototype.primary=function(){return this.ranges[this.primIndex]},so.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ut(n.anchor,r.anchor)||!ut(n.head,r.head))return!1}return!0},so.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new lo(pt(this.ranges[t].anchor),pt(this.ranges[t].head));return new so(e,this.primIndex)},so.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},so.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ct(t,r.from())>=0&&ct(e,r.to())<=0)return n}return-1};var lo=function(e,t){this.anchor=e,this.head=t};function co(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ct(e.from(),t.from())})),n=H(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ct(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ft(s.from(),a.from()),u=dt(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new lo(p?u:c,p?c:u))}}return new so(t,n)}function uo(e,t){return new so([new lo(e,t||e)],0)}function po(e){return e.text?lt(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function fo(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return po(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=po(t).ch-t.to.ch),lt(n,r)}function ho(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new lo(fo(i.anchor,t),fo(i.head,t)))}return co(e.cm,n,e.sel.primIndex)}function mo(e,t,n){return e.line==t.line?lt(n.line,e.ch-t.ch+n.ch):lt(n.line+(e.line-t.line),e.ch)}function go(e,t,n){for(var r=[],i=lt(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=mo(s.from,i,o),c=mo(po(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],p=ct(u.head,u.anchor)<0;r[a]=new lo(p?c:l,p?l:c)}else r[a]=new lo(l,l)}return new so(r,e.sel.primIndex)}function vo(e){e.doc.mode=Ke(e.options,e.doc.modeOption),yo(e)}function yo(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Fi(e,100),e.state.modeGen++,e.curOp&&zr(e)}function bo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Z(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function xo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){fn(e,n,i,r),Bn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new dn(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=et(e,s.line),p=et(e,l.line),d=Z(c),f=i(c.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(bo(e,t)){var m=a(0,c.length-1);o(p,p.text,f),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==p)if(1==c.length)o(u,u.text.slice(0,s.ch)+d+u.text.slice(l.ch),f);else{var g=a(1,c.length-1);g.push(new dn(d+u.text.slice(l.ch),f,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+p.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(p,d+p.text.slice(l.ch),f);var v=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}Bn(e,"change",e,t)}function wo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function Ao(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Rr(e),vo(e),_o(e),e.options.direction=t.direction,e.options.lineWrapping||pn(e),e.options.mode=t.modeOption,zr(e)}function _o(e){("rtl"==e.doc.direction?N:E)(e.display.lineDiv,"CodeMirror-rtl")}function Co(e){Ni(e,(function(){_o(e),zr(e)}))}function ko(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function So(e,t){var n={from:pt(t.from),to:po(t),text:tt(e,t.from,t.to)};return Do(e,n,t.from.line,t.to.line+1),wo(e,(function(e){return Do(e,n,t.from.line,t.to.line+1)}),!0),n}function Eo(e){for(;e.length&&Z(e).ranges;)e.pop()}function To(e,t){return t?(Eo(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}function Oo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=To(i,i.lastOp==r)))a=Z(o.changes),0==ct(t.from,t.to)&&0==ct(t.from,a.to)?a.to=po(t):o.changes.push(So(e,t));else{var l=Z(i.done);for(l&&l.ranges||Bo(e.sel,i.done),o={changes:[So(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||xe(e,"historyAdded")}function Mo(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Lo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Mo(e,o,Z(i.done),t))?i.done[i.done.length-1]=t:Bo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Eo(i.undone)}function Bo(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Do(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function No(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function jo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(No(n[i]));return r}function Po(e,t){var n=jo(e,t),r=qt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Ro(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?so.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var p in c)(u=p.match(/^spans_(\d+)$/))&&H(t,Number(u[1]))>-1&&(Z(s)[p]=c[p],delete c[p])}}}return r}function Fo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ct(t,i)<0;o!=ct(n,i)<0?(i=t,t=n):o!=ct(t,n)<0&&(t=n)}return new lo(i,t)}return new lo(n||t,t)}function Io(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new so([Fo(e.sel.primary(),t,n,i)],0),r)}function zo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Fo(e.sel.ranges[o],t[o],null,i);Uo(e,co(e.cm,r,e.sel.primIndex),n)}function $o(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Uo(e,co(e.cm,i,e.sel.primIndex),r)}function qo(e,t,n,r){Uo(e,uo(t,n),r)}function Ho(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new lo(mt(e,t[n].anchor),mt(e,t[n].head))},origin:n&&n.origin};return xe(e,"beforeSelectionChange",e,r),e.cm&&xe(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?co(e.cm,r.ranges,r.ranges.length-1):t}function Wo(e,t,n){var r=e.history.done,i=Z(r);i&&i.ranges?(r[r.length-1]=t,Vo(e,t,n)):Uo(e,t,n)}function Uo(e,t,n){Vo(e,t,n),Lo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Vo(e,t,n){(_e(e,"beforeSelectionChange")||e.cm&&_e(e.cm,"beforeSelectionChange"))&&(t=Ho(e,t,n));var r=n&&n.bias||(ct(t.primary().head,e.sel.primary().head)<0?-1:1);Ko(e,Yo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ui(e.cm)}function Ko(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),Bn(e,"cursorActivity",e))}function Go(e){Ko(e,Yo(e,e.sel,null,!1))}function Yo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Jo(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:Jo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new lo(l,c))}return i?co(e.cm,i,t.primIndex):t}function Xo(e,t,n,r,i){var o=et(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(xe(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(p=Zo(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(d=ct(p,n))&&(r<0?d<0:d>0))return Xo(e,p,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=Zo(e,f,r,f.line==t.line?o:null)),f?Xo(e,f,t,r,i):null}}return t}function Jo(e,t,n,r,i){var o=r||1,a=Xo(e,t,n,o,i)||!i&&Xo(e,t,n,o,!0)||Xo(e,t,n,-o,i)||!i&&Xo(e,t,n,-o,!0);return a||(e.cantEdit=!0,lt(e.first,0))}function Zo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?mt(e,lt(t.line-1)):null:n>0&&t.ch==(r||et(e,t.line)).text.length?t.line<e.first+e.size-1?lt(t.line+1,0):null:new lt(t.line,t.ch+n)}function Qo(e){e.setSelection(lt(e.firstLine(),0),lt(e.lastLine()),V)}function ea(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=mt(e,t)),n&&(r.to=mt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),xe(e,"beforeChange",e,r),e.cm&&xe(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ta(e,t,n){if(e.cm){if(!e.cm.curOp)return ji(e.cm,ta)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(_e(e,"beforeChange")||e.cm&&_e(e.cm,"beforeChange"))||(t=ea(e,t,!0))){var r=Bt&&!n&&Wt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)na(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else na(e,t)}}function na(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var n=ho(e,t);Oo(e,t,n,e.cm?e.cm.curOp.id:NaN),oa(e,t,n,qt(e,t));var r=[];wo(e,(function(e,n){n||-1!=H(r,e.history)||(ua(e.history,t),r.push(e.history)),oa(e,t,null,qt(e,t))}))}}function ra(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Bo(i,l),n&&!i.equals(e.sel))return void Uo(e,i,{clearRedo:!1});a=i}var u=[];Bo(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var p=_e(e,"beforeChange")||e.cm&&_e(e.cm,"beforeChange"),d=function(n){var r=i.changes[n];if(r.origin=t,p&&!ea(e,r,!1))return s.length=0,{};u.push(So(e,r));var o=n?ho(e,r):Z(s);oa(e,r,o,Po(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:po(r)});var a=[];wo(e,(function(e,t){t||-1!=H(a,e.history)||(ua(e.history,r),a.push(e.history)),oa(e,r,null,Po(e,r))}))},f=i.changes.length-1;f>=0;--f){var h=d(f);if(h)return h.v}}}}function ia(e,t){if(0!=t&&(e.first+=t,e.sel=new so(Q(e.sel.ranges,(function(e){return new lo(lt(e.anchor.line+t,e.anchor.ch),lt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){zr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)$r(e.cm,r,"gutter")}}function oa(e,t,n,r){if(e.cm&&!e.cm.curOp)return ji(e.cm,oa)(e,t,n,r);if(t.to.line<e.first)ia(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ia(e,i),t={from:lt(e.first,0),to:lt(t.to.line+i,t.to.ch),text:[Z(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:lt(o,et(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),n||(n=ho(e,t)),e.cm?aa(e.cm,t,r):xo(e,t,r),Vo(e,n,V),e.cantEdit&&Jo(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}}function aa(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=it(tn(et(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Ae(e),xo(r,t,n,Pr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=un(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Lt(r,o.line),Fi(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?zr(e):o.line!=a.line||1!=t.text.length||bo(e.doc,t)?zr(e,o.line,a.line+1,c):$r(e,o.line,"text");var u=_e(e,"changes"),p=_e(e,"change");if(p||u){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&Bn(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function sa(e,t,n,r,i){var o;r||(r=n),ct(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ta(e,{from:n,to:r,text:t,origin:i})}function la(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ca(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)la(o.ranges[s].anchor,t,n,r),la(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=lt(c.from.line+r,c.from.ch),c.to=lt(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ua(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ca(e.done,n,r,i),ca(e.undone,n,r,i)}function pa(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=et(e,ht(e,t)):i=it(t),null==i?null:(r(o,i)&&e.cm&&$r(e.cm,i,n),o)}function da(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function fa(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}lo.prototype.from=function(){return ft(this.anchor,this.head)},lo.prototype.to=function(){return dt(this.anchor,this.head)},lo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},da.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,hn(i),Bn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},fa.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof da))){var s=[];this.collapse(s),this.children=[new da(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new da(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new fa(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=H(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new fa(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ha=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ma(e,t,n){cn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ci(e,n)}function ga(e,t,n,r){var i=new ha(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),pa(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!sn(e,t)){var r=cn(t)<e.scrollTop;rt(t,t.height+Vn(i)),r&&ci(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&Bn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:it(t)),i}ha.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=it(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Vn(this);rt(n,Math.max(0,n.height-o)),e&&(Ni(e,(function(){ma(e,n,-o),$r(e,r,"widget")})),Bn(e,"lineWidgetCleared",e,this,r))}},ha.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Vn(this)-t;i&&(sn(this.doc,r)||rt(r,r.height+i),n&&Ni(n,(function(){n.curOp.forceUpdate=!0,ma(n,r,i),Bn(n,"lineWidgetChanged",n,e,it(r))})))},Ce(ha);var va=0,ya=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++va};function ba(e,t,n,r,i){if(r&&r.shared)return wa(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ji(e.cm,ba)(e,t,n,r,i);var o=new ya(e,i),a=ct(t,n);if(r&&z(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(en(e,t.line,t,n,o)||t.line!=n.line&&en(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");jt()}o.addToHistory&&Oo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&tn(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&rt(r,0),It(r,new Pt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){sn(e,t)&&rt(t,0)})),o.clearOnEnter&&ve(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Nt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++va,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)zr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)$r(c,u,"text");o.atomic&&Go(c.doc),Bn(c,"markerAdded",c,o)}return o}ya.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Si(e),_e(this,"clear")){var n=this.find();n&&Bn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Rt(a.markedSpans,this);e&&!this.collapsed?$r(e,it(a),"text"):e&&(null!=s.to&&(i=it(a)),null!=s.from&&(r=it(a))),a.markedSpans=Ft(a.markedSpans,s),null==s.from&&this.collapsed&&!sn(this.doc,a)&&e&&rt(a,Br(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=tn(this.lines[l]),u=un(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&zr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&Bn(e,"markerCleared",e,this,r,i),t&&Ei(e),this.parent&&this.parent.clear()}},ya.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Rt(o.markedSpans,this);if(null!=a.from&&(n=lt(t?o:it(o),a.from),-1==e))return n;if(null!=a.to&&(r=lt(t?o:it(o),a.to),1==e))return r}return n&&{from:n,to:r}},ya.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Ni(r,(function(){var i=t.line,o=it(t.line),a=ir(r,o);if(a&&(fr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!sn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Vn(n)-s;l&&rt(i,i.height+l)}Bn(r,"markerChanged",r,e)}))},ya.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=H(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ya.prototype.detachLine=function(e){if(this.lines.splice(H(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ce(ya);var xa=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function wa(e,t,n,r,i){(r=z(r)).shared=!1;var o=[ba(e,t,n,r,i)],a=o[0],s=r.widgetNode;return wo(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ba(e,mt(e,t),mt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Z(o)})),new xa(o,a)}function Aa(e){return e.findMarks(lt(e.first,0),e.clipPos(lt(e.lastLine())),(function(e){return e.parent}))}function _a(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ct(o,a)){var s=ba(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Ca(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];wo(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==H(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}xa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Bn(this,"clear")}},xa.prototype.find=function(e,t){return this.primary.find(e,t)},Ce(xa);var ka=0,Sa=function(e,t,n,r,i){if(!(this instanceof Sa))return new Sa(e,t,n,r,i);null==n&&(n=0),fa.call(this,[new da([new dn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=lt(n,0);this.sel=uo(o),this.history=new ko(null),this.id=++ka,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),xo(this,{from:o,to:o,text:e}),Uo(this,uo(o),V)};Sa.prototype=ne(fa.prototype,{constructor:Sa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=nt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Ri((function(e){var t=lt(this.first,0),n=this.first+this.size-1;ta(this,{from:t,to:lt(n,et(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&pi(this.cm,0,0),Uo(this,uo(t),V)})),replaceRange:function(e,t,n,r){sa(this,e,t=mt(this,t),n=n?mt(this,n):t,r)},getRange:function(e,t,n){var r=tt(this,mt(this,e),mt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(at(this,e))return et(this,e)},getLineNumber:function(e){return it(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=et(this,e)),tn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return mt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ri((function(e,t,n){qo(this,mt(this,"number"==typeof e?lt(e,t||0):e),null,n)})),setSelection:Ri((function(e,t,n){qo(this,mt(this,e),mt(this,t||e),n)})),extendSelection:Ri((function(e,t,n){Io(this,mt(this,e),t&&mt(this,t),n)})),extendSelections:Ri((function(e,t){zo(this,vt(this,e),t)})),extendSelectionsBy:Ri((function(e,t){zo(this,vt(this,Q(this.sel.ranges,e)),t)})),setSelections:Ri((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new lo(mt(this,e[i].anchor),mt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Uo(this,co(this.cm,r,t),n)}})),addSelection:Ri((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new lo(mt(this,e),mt(this,t||e))),Uo(this,co(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=tt(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=tt(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Ri((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&go(this,r,t),l=r.length-1;l>=0;l--)ta(this,r[l]);s?Wo(this,s):this.cm&&ui(this.cm)})),undo:Ri((function(){ra(this,"undo")})),redo:Ri((function(){ra(this,"redo")})),undoSelection:Ri((function(){ra(this,"undo",!0)})),redoSelection:Ri((function(){ra(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new ko(this.history),wo(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(e){var t=this.history=new ko(this.history);t.done=Ro(e.done.slice(0),null,!0),t.undone=Ro(e.undone.slice(0),null,!0)},setGutterMarker:Ri((function(e,t,n){return pa(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Ri((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&pa(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!at(this,e))return null;if(t=e,!(e=et(this,e)))return null}else if(null==(t=it(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Ri((function(e,t,n){return pa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(k(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Ri((function(e,t,n){return pa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(k(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Ri((function(e,t,n){return ga(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ba(this,mt(this,e),mt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ba(this,e=mt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=et(this,(e=mt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),mt(this,lt(n,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Sa(nt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Sa(nt(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],_a(r,Aa(this)),r},unlinkDoc:function(e){if(e instanceof zs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ca(Aa(this));break}if(e.history==this.history){var n=[e.id];wo(e,(function(e){return n.push(e.id)}),!0),e.history=new ko(null),e.history.done=Ro(this.history.done,n),e.history.undone=Ro(this.history.undone,n)}},iterLinkedDocs:function(e){wo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Ri((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Co(this.cm))}))}),Sa.prototype.eachLine=Sa.prototype.iter;var Ea=0;function Ta(e){var t=this;if(La(t),!we(t,e)&&!Kn(t.display,e)){ke(e),a&&(Ea=+new Date);var n=Fr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ji(t,(function(){var e={from:n=mt(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ta(t.doc,e),Wo(t.doc,uo(mt(t.doc,n),mt(t.doc,po(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==H(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Vo(t.doc,uo(n,n)),d)for(var f=0;f<d.length;++f)sa(t.doc,"",d[f].anchor,d[f].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Oa(e,t){if(a&&(!e.state.draggingText||+new Date-Ea<100))Te(t);else if(!we(e,t)&&!Kn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=M("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Ma(e,t){var n=Fr(e,t);if(n){var r=document.createDocumentFragment();Gr(e,n,r),e.display.dragCursor||(e.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}function La(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ba(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Da=!1;function Na(){Da||(ja(),Da=!0)}function ja(){var e;ve(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ba(Pa)}),100))})),ve(window,"blur",(function(){return Ba(ti)}))}function Pa(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ra={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fa=0;Fa<10;Fa++)Ra[Fa+48]=Ra[Fa+96]=String(Fa);for(var Ia=65;Ia<=90;Ia++)Ra[Ia]=String.fromCharCode(Ia);for(var za=1;za<=12;za++)Ra[za+111]=Ra[za+63235]="F"+za;var $a={};function qa(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ha(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Q(n.split(" "),qa),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Wa(e,t,n,r){var i=(t=Ga(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Wa(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Wa(e,t.fallthrough[o],n,r);if(a)return a}}}function Ua(e){var t="string"==typeof e?e:Ra[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Va(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(_?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(_?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ka(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Ra[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Va(n,e,t))}function Ga(e){return"string"==typeof e?$a[e]:e}function Ya(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ct(o.from,Z(r).to)<=0;){var a=r.pop();if(ct(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ni(e,(function(){for(var t=r.length-1;t>=0;t--)sa(e.doc,"",r[t].from,r[t].to,"+delete");ui(e)}))}function Xa(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ja(e,t,n){var r=Xa(e,t.ch,n);return null==r?null:new lt(t.line,r,n<0?"after":"before")}function Za(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=me(n,t.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=or(t,n);a=i<0?n.text.length-1:0;var u=ar(t,c,a).top;a=ue((function(e){return ar(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Xa(n,a,1))}else a=i<0?s.to:s.from;return new lt(r,a,l)}}return new lt(r,i<0?n.text.length:0,i<0?"before":"after")}function Qa(e,t,n,r){var i=me(t,e.doc.direction);if(!i)return Ja(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ja(t,n,r);var s,l=function(e,n){return Xa(t,e instanceof lt?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||or(e,t),Er(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var p=1==a.level==r<0,d=l(n,p?1:-1);if(null!=d&&(p?d<=a.to&&d<=u.end:d>=a.from&&d>=u.begin)){var f=p?"before":"after";return new lt(n.line,d,f)}}var h=function(e,t,r){for(var o=function(e,t){return t?new lt(n.line,l(e,1),"before"):new lt(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=h(o+r,r,u);if(m)return m;var g=r>0?u.end:l(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,c(g)))?null:m}$a.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},$a.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},$a.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},$a.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},$a.default=b?$a.macDefault:$a.pcDefault;var es={selectAll:Qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Ya(e,(function(t){if(t.empty()){var n=et(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:lt(t.head.line+1,0)}:{from:t.head,to:lt(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ya(e,(function(t){return{from:lt(t.from().line,0),to:mt(e.doc,lt(t.to().line+1,0))}}))},delLineLeft:function(e){return Ya(e,(function(e){return{from:lt(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ya(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Ya(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(lt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(lt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return ts(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return rs(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return ns(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?rs(e,t.head):r}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=$(e.getLine(o.line),o.ch,r);t.push(J(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ni(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=et(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new lt(i.line,i.ch-1)),i.ch>0)i=new lt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),lt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=et(e.doc,i.line-1).text;a&&(i=new lt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),lt(i.line-1,a.length-1),i,"+transpose"))}n.push(new lo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ni(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ui(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ts(e,t){var n=et(e.doc,t),r=tn(n);return r!=n&&(t=it(r)),Za(!0,e,r,t,1)}function ns(e,t){var n=et(e.doc,t),r=nn(n);return r!=n&&(t=it(r)),Za(!0,e,n,t,-1)}function rs(e,t){var n=ts(e,t.line),r=et(e.doc,n.line),i=me(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return lt(n.line,a?0:o,n.sticky)}return n}function is(e,t,n){if("string"==typeof t&&!(t=es[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function os(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Wa(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Wa(t,e.options.extraKeys,n,e)||Wa(t,e.options.keyMap,n,e)}var as=new q;function ss(e,t,n,r){var i=e.state.keySeq;if(i){if(Ua(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:as.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ls(e,i+" "+t,n,r))return!0}return ls(e,t,n,r)}function ls(e,t,n,r){var i=os(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Bn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ke(n),Jr(e)),!!i}function cs(e,t){var n=Ka(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ss(e,"Shift-"+n,t,(function(t){return is(e,t,!0)}))||ss(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return is(e,t)})):ss(e,n,t,(function(t){return is(e,t)})))}function us(e,t,n){return ss(e,"'"+n+"'",t,(function(t){return is(e,t,!0)}))}var ps=null;function ds(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(R(t)),we(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=cs(t,e);d&&(ps=i?r:null,i||88!=r||Ie||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||fs(t)}}function fs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(E(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n))}N(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n)}function hs(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function ms(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Kn(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ps)return ps=null,void ke(e);if(!d||e.which&&!(e.which<10)||!cs(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(us(t,e,i)||t.display.input.onKeyPress(e))}}}var gs,vs,ys=400,bs=function(e,t,n){this.time=e,this.pos=t,this.button=n};function xs(e,t){var n=+new Date;return vs&&vs.compare(n,e,t)?(gs=vs=null,"triple"):gs&&gs.compare(n,e,t)?(vs=new bs(n,e,t),gs=null,"double"):(gs=new bs(n,e,t),vs=null,"single")}function ws(e){var t=this,n=t.display;if(!(we(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Kn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ms(t,e)){var r=Fr(t,e),i=Me(e),o=r?xs(r,i):"single";F(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&As(t,i,r,o,e)||(1==i?r?Cs(t,r,o,e):Oe(e)==n.scroller&&ke(e):2==i?(r&&Io(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?t.display.input.onContextMenu(e):Qr(t)))}}function As(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ss(e,Va(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=es[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}function _s(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=x?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function Cs(e,t,n,r){a?setTimeout(I(Zr,e),0):e.curOp.focus=D(R(e));var i,o=_s(e,n,r),s=e.doc.sel;e.options.dragDrop&&De&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ct((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ct(i.to(),t)>0||t.xRel<0)?ks(e,r,t,o):Es(e,r,t,o)}function ks(e,t,n,r){var i=e.display,o=!1,c=ji(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qr(e)),be(i.wrapper.ownerDocument,"mouseup",c),be(i.wrapper.ownerDocument,"mousemove",u),be(i.scroller,"dragstart",p),be(i.scroller,"drop",c),o||(ke(t),r.addNew||Io(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",p),ve(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ss(e,t,n){if("char"==n)return new lo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new lo(lt(t.line,0),mt(e.doc,lt(t.line+1,0)));var r=n(e,t);return new lo(r.from,r.to)}function Es(e,t,n,r){a&&Qr(e);var i=e.display,o=e.doc;ke(t);var s,l,c=o.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new lo(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new lo(n,n)),n=Fr(e,t,!0,!0),l=-1;else{var p=Ss(e,n,r.unit);s=r.extend?Fo(s,p.anchor,p.head,r.extend):p}r.addNew?-1==l?(l=u.length,Uo(o,co(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Uo(o,co(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):$o(o,l,s,K):(l=0,Uo(o,new so([s],0),K),c=o.sel);var d=n;function f(t){if(0!=ct(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=$(et(o,n.line).text,n.ch,a),p=$(et(o,t.line).text,t.ch,a),f=Math.min(u,p),h=Math.max(u,p),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=et(o,m).text,y=Y(v,f,a);f==h?i.push(new lo(lt(m,y),lt(m,y))):v.length>y&&i.push(new lo(lt(m,y),lt(m,Y(v,h,a))))}i.length||i.push(new lo(n,n)),Uo(o,co(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=s,w=Ss(e,t,r.unit),A=x.anchor;ct(w.anchor,A)>0?(b=w.head,A=ft(x.from(),w.anchor)):(b=w.anchor,A=dt(x.to(),w.head));var _=c.ranges.slice(0);_[l]=Ts(e,new lo(mt(o,A),b)),Uo(o,co(e,_,l),K)}}var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=Fr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ct(a,d)){e.curOp.focus=D(R(e)),f(a);var s=ii(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(ji(e,(function(){m==n&&g(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(ji(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(ke(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=ji(e,(function(e){0!==e.buttons&&Me(e)?g(e):v(e)})),b=ji(e,v);e.state.selectingText=b,ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",b)}function Ts(e,t){var n=t.anchor,r=t.head,i=et(e.doc,n.line);if(0==ct(n,r)&&n.sticky==r.sticky)return t;var o=me(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=fe(o,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?p<0:p>0}var d=o[c+(l?-1:0)],f=l==(1==d.level),h=f?d.from:d.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new lo(new lt(n.line,h,m),r)}function Os(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ke(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!_e(e,n))return Ee(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return xe(e,n,e,ot(e.doc,o),e.display.gutterSpecs[l].className,t),Ee(t)}}function Ms(e,t){return Os(e,t,"gutterClick",!0)}function Ls(e,t){Kn(e.display,t)||Bs(e,t)||we(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Bs(e,t){return!!_e(e,"gutterContextMenu")&&Os(e,t,"gutterContextMenu",!1)}function Ds(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mr(e)}bs.prototype.compare=function(e,t,n){return this.time+ys>e&&0==ct(t,this.pos)&&n==this.button};var Ns={toString:function(){return"CodeMirror.Init"}},js={},Ps={};function Rs(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ns&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ns,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,vo(e)}),!0),n("indentUnit",2,vo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){yo(e),mr(e),zr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(lt(r,o))}r++}));for(var i=n.length-1;i>=0;i--)sa(e.doc,t,n[i],lt(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ns&&e.refresh()})),n("specialCharPlaceholder",bn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ds(e),eo(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ga(t),i=n!=Ns&&Ga(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Is,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Zi(t,e.options.lineNumbers),eo(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?jr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return wi(e)}),!0),n("scrollbarStyle","native",(function(e){Ci(e),wi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Zi(e.options.gutters,t),eo(e)}),!0),n("firstLineNumber",1,eo,!0),n("lineNumberFormatter",(function(e){return e}),eo,!0),n("showCursorWhenSelecting",!1,Vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ti(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Vr,!0),n("singleCursorHeightPerLine",!0,Vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,yo,!0),n("addModeClass",!1,yo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,yo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Fs(e,t,n){if(!t!=!(n&&n!=Ns)){var r=e.display.dragFunctions,i=t?ve:be;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Is(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(E(e.display.wrapper,"CodeMirror-wrap"),pn(e)),Rr(e),zr(e),mr(e),setTimeout((function(){return wi(e)}),100)}function zs(e,t){var n=this;if(!(this instanceof zs))return new zs(e,t);this.options=t=t?z(t):{},z(js,t,!1);var r=t.value;"string"==typeof r?r=new Sa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new zs.inputStyles[t.inputStyle](this),o=this.display=new to(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Ds(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ci(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),$s(this),Na(),Si(this),this.curOp.forceUpdate=!0,Ao(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&ei(n)}),20):ti(this),Ps)Ps.hasOwnProperty(c)&&Ps[c](this,t[c],Ns);Ji(this),t.finishInit&&t.finishInit(this);for(var u=0;u<qs.length;++u)qs[u](this);Ei(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function $s(e){var t=e.display;ve(t.scroller,"mousedown",ji(e,ws)),ve(t.scroller,"dblclick",a&&s<11?ji(e,(function(t){if(!we(e,t)){var n=Fr(e,t);if(n&&!Ms(e,t)&&!Kn(e.display,t)){ke(t);var r=e.findWordAt(n);Io(e.doc,r.anchor,r.head)}}})):function(t){return we(e,t)||ke(t)}),ve(t.scroller,"contextmenu",(function(t){return Ls(e,t)})),ve(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ls(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ve(t.scroller,"touchstart",(function(i){if(!we(e,i)&&!o(i)&&!Ms(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Kn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new lo(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new lo(lt(a.line,0),mt(e.doc,lt(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ke(n)}i()})),ve(t.scroller,"touchcancel",i),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mi(e,t.scroller.scrollTop),vi(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return ao(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return ao(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||Te(t)},over:function(t){we(e,t)||(Ma(e,t),Te(t))},start:function(t){return Oa(e,t)},drop:ji(e,Ta),leave:function(t){we(e,t)||La(e)}};var c=t.input.getField();ve(c,"keyup",(function(t){return hs.call(e,t)})),ve(c,"keydown",ji(e,ds)),ve(c,"keypress",ji(e,ms)),ve(c,"focus",(function(t){return ei(e,t)})),ve(c,"blur",(function(t){return ti(e,t)}))}zs.defaults=js,zs.optionHandlers=Ps;var qs=[];function Hs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=At(e,t).state:n="prev");var a=e.options.tabSize,s=et(o,t),l=$(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==U||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?$(et(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var p="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)d+=a,p+="\t";if(d<c&&(p+=J(c-d)),p!=u)return sa(o,p,lt(t,0),lt(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var g=lt(t,u.length);$o(o,h,new lo(g,g));break}}}zs.defineInitHook=function(e){return qs.push(e)};var Ws=null;function Us(e){Ws=e}function Vs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Re(t),c=null;if(s&&r.ranges.length>1)if(Ws&&Ws.text.join("\n")==t){if(r.ranges.length%Ws.text.length==0){c=[];for(var u=0;u<Ws.text.length;u++)c.push(o.splitLines(Ws.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Q(l,(function(e){return[e]})));for(var p=e.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var f=r.ranges[d],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=lt(h.line,h.ch-n):e.state.overwrite&&!s?m=lt(m.line,Math.min(et(o,m.line).text.length,m.ch+Z(l).length)):s&&Ws&&Ws.lineWise&&Ws.text.join("\n")==l.join("\n")&&(h=m=lt(h.line,0)));var g={from:h,to:m,text:c?c[d%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ta(e.doc,g),Bn(e,"inputRead",e,g)}t&&!s&&Gs(e,t),ui(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ks(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Ni(t,(function(){return Vs(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Hs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(et(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Hs(e,i.head.line,"smart"));a&&Bn(e,"electricInput",e,i.head.line)}}}function Ys(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:lt(i,0),head:lt(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Xs(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Js(){var e=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=M("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function Zs(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){F(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ji(this,t[e])(this,n,i),xe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ga(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Pi((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,zr(this)})),removeOverlay:Pi((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void zr(this)}})),indentLine:Pi((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),at(this.doc,e)&&Hs(this,e,t,n)})),indentSelection:Pi((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Hs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ui(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Hs(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&$o(this.doc,r,new lo(o,c[r].to()),V)}}})),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,lt(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,n=wt(this,et(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==H(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return At(this,(e=ht(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Ar(this,null==e?n.head:"object"==typeof e?mt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return wr(this,mt(this.doc,e),t||"page")},coordsChar:function(e,t){return kr(this,(e=xr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=xr(this,{top:e,left:0},t||"page").top,ot(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=et(this.doc,e)}else r=e;return br(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-cn(r):0)},defaultTextHeight:function(){return Br(this.display)},defaultCharWidth:function(){return Dr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=Ar(this,mt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&si(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Pi(ds),triggerOnKeyPress:Pi(ms),triggerOnKeyUp:hs,triggerOnMouseDown:Pi(ws),execCommand:function(e){if(es.hasOwnProperty(e))return es[e].call(null,this)},triggerElectric:Pi((function(e){Gs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=mt(this.doc,e),a=0;a<t&&!(o=Qs(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Pi((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Qs(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),G)})),deleteH:Pi((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ya(this,(function(n){var i=Qs(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=mt(this.doc,e),s=0;s<t;++s){var l=Ar(this,a,"div");if(null==o?o=l.left:l.left=o,(a=el(this,l,i,n)).hitSide)break}return a},moveV:Pi((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Ar(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=el(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ci(n,wr(n,l,"div").top-s.top),l}),G),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=et(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new lo(lt(e.line,n),lt(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),xe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D(R(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Pi((function(e,t){pi(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Jn(this)-this.display.barHeight,width:e.scrollWidth-Jn(this)-this.display.barWidth,clientHeight:Qn(this),clientWidth:Zn(this)}},scrollIntoView:Pi((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:lt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?di(this,e):hi(this,e.from,e.to,e.margin)})),setSize:Pi((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&hr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){$r(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,xe(this,"refresh",this)})),operation:function(e){return Ni(this,e)},startOperation:function(){return Si(this)},endOperation:function(){return Ei(this)},refresh:Pi((function(){var e=this.display.cachedTextHeight;zr(this),this.curOp.forceUpdate=!0,mr(this),pi(this,this.doc.scrollLeft,this.doc.scrollTop),Gi(this.display),(null==e||Math.abs(e-Br(this.display))>.5||this.options.lineWrapping)&&Rr(this),xe(this,"refresh",this)})),swapDoc:Pi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ao(this,e),mr(this),this.display.input.reset(),pi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Bn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ce(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Qs(e,t,n,r,i){var o=t,a=n,s=et(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new lt(n,t.ch,t.sticky),s=et(e,n))}function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new lt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?Qa(e.cm,s,t,n):Ja(s,t,n);if(null==a){if(o||!c())return!1;t=Za(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var p=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||u(!h);h=!1){var m=s.text.charAt(t.ch)||"\n",g=oe(m,f)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(!d||h||g||(g="s"),p&&p!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(p=g),n>0&&!u(!h))break}var v=Jo(e,t,o,a,!0);return ut(o,v)&&(v.hitSide=!0),v}function el(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,F(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*Br(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=kr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var tl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function nl(e,t){var n=ir(e,t.line);if(!n||n.hidden)return null;var r=et(e.doc,t.line),i=tr(n,r,t.line),o=me(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var s=cr(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function rl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function il(e,t){return t&&(e.bad=!0),e}function ol(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function p(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void p(n);var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(lt(r,0),lt(i+1,0),c(+f));return void(h.length&&(o=h[0].find(0))&&p(tt(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g<t.childNodes.length;g++)d(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),m&&(a=!0)}else 3==t.nodeType&&p(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}function al(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return il(e.clipPos(lt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return sl(o,t,n)}}function sl(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!B(r,t))return il(lt(it(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Z(e.rest):e.line;return il(lt(it(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=it(i<0?e.line:e.rest[i]),p=o[a]+r;return(r<0||s!=t)&&(p=o[a+(r?1:0)]),lt(u,p)}}}var p=u(a,s,n);if(p)return il(p,i);for(var d=s.nextSibling,f=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(p=u(d,d.firstChild,0))return il(lt(p.line,p.ch-f),i);f+=d.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(p=u(h,h.firstChild,-1))return il(lt(p.line,p.ch+m),i);m+=h.textContent.length}}tl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!we(r,e)){if(r.somethingSelected())Us({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ys(r);Us({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,V),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Ws.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Js(),l=s.firstChild;Xs(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ws.text.join("\n");var c=D(i.ownerDocument);P(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Xs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ve(i,"paste",(function(e){!o(e)||we(r,e)||Ks(e,r)||s<=11&&setTimeout(ji(r,(function(){return t.updateFromDOM()})),20)})),ve(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ve(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ve(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ve(i,"touchstart",(function(){return n.forceCompositionEnd()})),ve(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ve(i,"copy",a),ve(i,"cut",a)},tl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},tl.prototype.prepareSelection=function(){var e=Kr(this.cm,!1);return e.focus=D(this.div.ownerDocument)==this.div,e},tl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=al(t,e.anchorNode,e.anchorOffset),s=al(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ct(ft(a,s),i)||0!=ct(dt(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&nl(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&nl(t,o);if(!u){var p=l[l.length-1].measure,d=p.maps?p.maps[p.maps.length-1]:p.map;u={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(c&&u){var f,h=e.rangeCount&&e.getRangeAt(0);try{f=S(c.node,c.offset,u.offset,u.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},tl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},tl.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},tl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return B(this.div,t)},tl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&D(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},tl.prototype.blur=function(){this.div.blur()},tl.prototype.getField=function(){return this.div},tl.prototype.supportsTouch=function(){return!0},tl.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Ni(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},tl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&rl(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=al(t,e.anchorNode,e.anchorOffset),r=al(t,e.focusNode,e.focusOffset);n&&r&&Ni(t,(function(){Uo(t.doc,uo(n,r),V),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},tl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=lt(a.line-1,et(r.doc,a.line-1).length)),s.ch==et(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=lt(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Ir(r,a.line))?(t=it(i.view[0].line),n=i.view[0].node):(t=it(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=Ir(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=it(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(ol(r,n,c,t,l)),d=tt(r.doc,lt(t,0),lt(l,et(r.doc,l).text.length));p.length>1&&d.length>1;)if(Z(p)==Z(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var f=0,h=0,m=p[0],g=d[0],v=Math.min(m.length,g.length);f<v&&m.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=Z(p),b=Z(d),x=Math.min(y.length-(1==p.length?f:0),b.length-(1==d.length?f:0));h<x&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==p.length&&1==d.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;p[p.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(f).replace(/\u200b+$/,"");var w=lt(t,f),A=lt(l,d.length?Z(d).length-h:0);return p.length>1||p[0]||ct(w,A)?(sa(r.doc,p,w,A,"+input"),!0):void 0},tl.prototype.ensurePolled=function(){this.forceCompositionEnd()},tl.prototype.reset=function(){this.forceCompositionEnd()},tl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},tl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ni(this.cm,(function(){return zr(e.cm)}))},tl.prototype.setUneditable=function(e){e.contentEditable="false"},tl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ji(this.cm,Vs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},tl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},tl.prototype.onContextMenu=function(){},tl.prototype.resetPosition=function(){},tl.prototype.needsContentAttribute=!0;var ll=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null,this.resetting=!1};function cl(e,t){if((t=t?z(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ve(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=zs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function ul(e){e.off=be,e.on=ve,e.wheelEventPixels=oo,e.Doc=Sa,e.splitLines=Re,e.countColumn=$,e.findColumn=Y,e.isWordChar=ie,e.Pass=U,e.signal=xe,e.Line=dn,e.changeEnd=po,e.scrollbarModel=_i,e.Pos=lt,e.cmpPos=ct,e.modes=qe,e.mimeModes=He,e.resolveMode=Ve,e.getMode=Ke,e.modeExtensions=Ge,e.extendMode=Ye,e.copyState=Xe,e.startState=Ze,e.innerMode=Je,e.commands=es,e.keyMap=$a,e.keyName=Ka,e.isModifierKey=Ua,e.lookupKey=Wa,e.normalizeKeyMap=Ha,e.StringStream=Qe,e.SharedTextMarker=xa,e.TextMarker=ya,e.LineWidget=ha,e.e_preventDefault=ke,e.e_stopPropagation=Se,e.e_stop=Te,e.addClass=N,e.contains=B,e.rmClass=E,e.keyNames=Ra}ll.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!we(r,e)){if(r.somethingSelected())Us({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ys(r);Us({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ve(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ve(i,"paste",(function(e){we(r,e)||Ks(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ve(i,"cut",o),ve(i,"copy",o),ve(e.scroller,"paste",(function(t){if(!Kn(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),ve(e.lineSpace,"selectstart",(function(t){Kn(e,t)||ke(t)})),ve(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ll.prototype.createField=function(e){this.wrapper=Js(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Xs(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},ll.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ll.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Kr(e);if(e.options.moveInputWithCursor){var i=Ar(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ll.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ll.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},ll.prototype.getField=function(){return this.textarea},ll.prototype.supportsTouch=function(){return!1},ll.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},ll.prototype.blur=function(){this.textarea.blur()},ll.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ll.prototype.receivedFocus=function(){this.slowPoll()},ll.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ll.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ll.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Ni(t,(function(){Vs(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ll.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ll.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ll.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Fr(n,e),c=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ji(n,Uo)(n.doc,uo(o),V);var u,p=i.style.cssText,f=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),C){Te(e);var m=function(){be(window,"mouseup",m),setTimeout(v,20)};ve(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ji(n,Qo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},ll.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ll.prototype.setUneditable=function(){},ll.prototype.needsContentAttribute=!1,Rs(zs),Zs(zs);var pl="iter insert remove copy getEditor constructor".split(" ");for(var dl in Sa.prototype)Sa.prototype.hasOwnProperty(dl)&&H(pl,dl)<0&&(zs.prototype[dl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Sa.prototype[dl]));return Ce(Sa),zs.inputStyles={textarea:ll,contenteditable:tl},zs.defineMode=function(e){zs.defaults.mode||"null"==e||(zs.defaults.mode=e),We.apply(this,arguments)},zs.defineMIME=Ue,zs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),zs.defineMIME("text/plain","null"),zs.defineExtension=function(e,t){zs.prototype[e]=t},zs.defineDocExtension=function(e,t){Sa.prototype[e]=t},zs.fromTextArea=cl,ul(zs),zs.version="5.65.15",zs}()},99762:(e,t,n)=>{!function(e){"use strict";function t(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function n(e,n,r,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,i,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",(function(a,l){var c,u,p=a.indentUnit,d=l.statementIndentUnit||p,f=l.dontAlignCalls,h=l.keywords||{},m=l.types||{},g=l.builtin||{},v=l.blockKeywords||{},y=l.defKeywords||{},b=l.atoms||{},x=l.hooks||{},w=l.multiLineStrings,A=!1!==l.indentStatements,_=!1!==l.indentSwitch,C=l.namespaceSeparator,k=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,S=l.numberStart||/[\d\.]/,E=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,T=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,O=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,M=l.isReservedIdentifier||!1;function L(e,t){var n=e.next();if(x[n]){var r=x[n](e,t);if(!1!==r)return r}if('"'==n||"'"==n)return t.tokenize=B(n),t.tokenize(e,t);if(S.test(n)){if(e.backUp(1),e.match(E))return"number";e.next()}if(k.test(n))return c=n,null;if("/"==n){if(e.eat("*"))return t.tokenize=D,D(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(T.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(T););return"operator"}if(e.eatWhile(O),C)for(;e.match(C);)e.eatWhile(O);var i=e.current();return s(h,i)?(s(v,i)&&(c="newstatement"),s(y,i)&&(u=!0),"keyword"):s(m,i)?"type":s(g,i)||M&&M(i)?(s(v,i)&&(c="newstatement"),"builtin"):s(b,i)?"atom":"variable"}function B(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!w)&&(n.tokenize=null),"string"}}function D(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function N(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-p,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return N(e,t),null;c=u=null;var s=(t.tokenize||L)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==c||":"==c||","==c&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==c)n(t,e.column(),"}");else if("["==c)n(t,e.column(),"]");else if("("==c)n(t,e.column(),")");else if("}"==c){for(;"statement"==a.type;)a=r(t);for("}"==a.type&&(a=r(t));"statement"==a.type;)a=r(t)}else c==a.type?r(t):A&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),x.token){var p=x.token(e,t,s);void 0!==p&&(s=p)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=u?"def":s||c,N(e,t),s},indent:function(t,n){if(t.tokenize!=L&&null!=t.tokenize||t.typeAtEndOfLine&&o(t.context))return e.Pass;var r=t.context,i=n&&n.charAt(0),a=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),l.dontIndentStatements)for(;"statement"==r.type&&l.dontIndentStatements.test(r.info);)r=r.prev;if(x.indent){var s=x.indent(t,r,n,p);if("number"==typeof s)return s}var c=r.prev&&"switch"==r.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:d):!r.align||f&&")"==r.type?")"!=r.type||a?r.indented+(a?0:p)+(a||!c||/^(?:case|default)\b/.test(n)?0:p):r.indented+d:r.column+(a?0:1)},electricInput:_?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",u="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",p="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION  NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",d=a("int long char short double float unsigned signed void bool"),f=a("SEL instancetype id Class Protocol BOOL");function h(e){return s(d,e)||/.+_t$/.test(e)}function m(e){return h(e)||s(f,e)}var g="case do else for if switch while struct enum union",v="struct enum union";function y(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=y;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function b(e,t){return"type"==t.prevToken&&"type"}function x(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function w(e){return e.eatWhile(/[\w\.']/),"number"}function A(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=k,k(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function _(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function C(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function k(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function S(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.types),i(n.builtin),i(n.atoms),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function E(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function T(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=T(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=T(e+1),n.tokenize(t,n)}return"comment"}}function O(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!e&&!i&&t.match('"')){o=!0;break}if(e&&t.match('"""')){o=!0;break}r=t.next(),!i&&"$"==r&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==r&&!e}return!o&&e||(n.tokenize=null),"string"}}S(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:h,blockKeywords:a(g),defKeywords:a(v),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:x,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),S(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+" "+c),types:h,blockKeywords:a(g+" class try catch"),defKeywords:a(v+" class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:x,hooks:{"#":y,"*":b,u:A,U:A,L:A,R:A,0:w,1:w,2:w,3:w,4:w,5:w,6:w,7:w,8:w,9:w,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&_(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),S("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match(/""$/)&&(t.tokenize=E,t.tokenize(e,t))}},modeProps:{fold:["brace","import"]}}),S("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=C,C(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),S("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=E,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),S("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=O(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),S(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":y},modeProps:{fold:["brace","include"]}}),S("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:h,blockKeywords:a(g),atoms:a("null true false"),hooks:{"#":y},modeProps:{fold:["brace","include"]}}),S("text/x-objectivec",{name:"clike",keywords:a(l+" "+u),types:m,builtin:a(p),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(v+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),S("text/x-objectivec++",{name:"clike",keywords:a(l+" "+u+" "+c),types:m,builtin:a(p),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(v+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":y,"*":b,u:A,U:A,L:A,R:A,0:w,1:w,2:w,3:w,4:w,5:w,6:w,7:w,8:w,9:w,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&_(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),S("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:h,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":y},modeProps:{fold:["brace","include"]}});var M=null;function L(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){M=L(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}S("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=L(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!M||!e.match("`"))&&(t.tokenize=M,M=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(4631))},90044:(e,t,n)=>{!function(e){"use strict";e.defineMode("coffeescript",(function(e,t){var n="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,o=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,a=/^[_A-Za-z$][_A-Za-z$0-9]*/,s=/^@[_A-Za-z$][_A-Za-z$0-9]*/,l=r(["and","or","not","is","isnt","in","instanceof","typeof"]),c=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],u=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],p=r(c.concat(u));c=r(c);var d=/^('{3}|\"{3}|['\"])/,f=/^(\/{3}|\/)/,h=r(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function m(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var r=t.scope.offset;if(e.eatSpace()){var c=e.indentation();return c>r&&"coffee"==t.scope.type?"indent":c<r?"dedent":null}r>0&&b(e,t)}if(e.eatSpace())return null;var u=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=v,t.tokenize(e,t);if("#"===u)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var m=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(m=!0),e.match(/^-?\d+\.\d*/)&&(m=!0),e.match(/^-?\.\d+/)&&(m=!0),m)return"."==e.peek()&&e.backUp(1),"number";var y=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(y=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),e.match(/^-?0(?![\dx])/i)&&(y=!0),y)return"number"}if(e.match(d))return t.tokenize=g(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(f)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=g(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(i)||e.match(l)?"operator":e.match(o)?"punctuation":e.match(h)?"atom":e.match(s)||t.prop&&e.match(a)?"property":e.match(p)?"keyword":e.match(a)?"variable":(e.next(),n)}function g(e,r,i){return function(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\/\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return a.tokenize=m,i;o.eat(/['"\/]/)}return r&&(t.singleLineStringErrors?i=n:a.tokenize=m),i}}function v(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=m;break}e.eatWhile("#")}return"comment"}function y(t,n,r){r=r||"coffee";for(var i=0,o=!1,a=null,s=n.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==r?(o=null,a=t.column()+t.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:o,alignOffset:a}}function b(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}function x(e,t){var r=t.tokenize(e,t),i=e.current();"return"===i&&(t.dedent=!0),(("->"===i||"=>"===i)&&e.eol()||"indent"===r)&&y(e,t);var o="[({".indexOf(i);if(-1!==o&&y(e,t,"])}".slice(o,o+1)),c.exec(i)&&y(e,t),"then"==i&&b(e,t),"dedent"===r&&b(e,t))return n;if(-1!==(o="])}".indexOf(i))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),r}return{startState:function(e){return{tokenize:m,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var r=x(e,t);return r&&"comment"!=r&&(n&&(n.align=!0),t.prop="punctuation"==r&&"."==e.current()),r},indent:function(e,t){if(e.tokenize!=m)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},lineComment:"#",fold:"indent"}})),e.defineMIME("application/vnd.coffeescript","coffeescript"),e.defineMIME("text/x-coffeescript","coffeescript"),e.defineMIME("text/coffeescript","coffeescript")}(n(4631))},36629:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,o,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},c=n.mediaTypes||{},u=n.mediaFeatures||{},p=n.mediaValueKeywords||{},d=n.propertyKeywords||{},f=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},m=n.counterDescriptors||{},g=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,x=!0===n.supportsAtComponent,w=!1!==t.highlightNonStandardPropertyKeywords;function A(e,t){return i=t,e}function _(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),A("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?A(null,"compare"):'"'==n||"'"==n?(t.tokenize=C(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),A("atom","hash")):"!"==n?(e.match(/^\s*\w*/),A("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),A("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?A(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?A("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?A(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=k),A("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),A("property","word")):A(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),A("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?A("variable-2","variable-definition"):A("variable-2","variable")):e.match(/^\w+-/)?A("meta","meta"):void 0}function C(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),A("string","string")}}function k(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=C(")"),A(null,"(")}function S(e,t,n){this.type=e,this.indent=t,this.prev=n}function E(e,t,n,r){return e.context=new S(n,t.indentation()+(!1===r?0:a),e.context),n}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function O(e,t,n){return B[n.context.type](e,t,n)}function M(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return O(e,t,n)}function L(e){var t=e.current().toLowerCase();o=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var B={top:function(e,t,n){if("{"==e)return E(n,t,"block");if("}"==e&&n.context.prev)return T(n);if(x&&/@component/i.test(e))return E(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return E(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return E(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return E(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return E(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return E(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return d.hasOwnProperty(r)?(o="property","maybeprop"):f.hasOwnProperty(r)?(o=w?"string-2":"property","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?B.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?E(n,t,"prop"):O(e,t,n)},prop:function(e,t,n){if(";"==e)return T(n);if("{"==e&&y)return E(n,t,"propBlock");if("}"==e||"{"==e)return M(e,t,n);if("("==e)return E(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)L(t);else if("interpolation"==e)return E(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?T(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?M(e,t,n):")"==e?T(n):"("==e?E(n,t,"parens"):"interpolation"==e?E(n,t,"interpolation"):("word"==e&&L(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):O(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):B.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return E(n,t,"atBlock_parens");if("}"==e||";"==e)return M(e,t,n);if("{"==e)return T(n)&&E(n,t,y?"block":"top");if("interpolation"==e)return E(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?"keyword":d.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?w?"string-2":"property":v.hasOwnProperty(r)?"atom":g.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?M(e,t,n):"{"==e?T(n)&&E(n,t,y?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?T(n):"{"==e||"}"==e?M(e,t,n,2):B.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?E(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):O(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,T(n)):"word"==e?(o="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?E(n,t,"top"):O(e,t,n)},at:function(e,t,n){return";"==e?T(n):"{"==e||"}"==e?M(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?T(n):"{"==e||";"==e?M(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new S(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||_)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(t.state=B[t.state](i,e,t)),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],c=t(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(u),d=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],f=t(d),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(g),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),x=n.concat(i).concat(a).concat(l).concat(u).concat(d).concat(g).concat(y);function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",x),e.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:h,counterDescriptors:m,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css",helperType:"gss"})}(n(4631))},75258:(e,t,n)=>{!function(e){"use strict";var t="from",n=new RegExp("^(\\s*)\\b("+t+")\\b","i"),r=["run","cmd","entrypoint","shell"],i=new RegExp("^(\\s*)("+r.join("|")+")(\\s+\\[)","i"),o="expose",a=new RegExp("^(\\s*)("+o+")(\\s+)","i"),s=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],l="("+[t,o].concat(r).concat(s).join("|")+")",c=new RegExp("^(\\s*)"+l+"(\\s*)(#.*)?$","i"),u=new RegExp("^(\\s*)"+l+"(\\s+)","i");e.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:n,token:[null,"keyword"],sol:!0,next:"from"},{regex:c,token:[null,"keyword",null,"error"],sol:!0},{regex:i,token:[null,"keyword",null],sol:!0,next:"array"},{regex:a,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:u,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),e.defineMIME("text/x-dockerfile","dockerfile")}(n(4631),n(40790))},62101:(e,t,n)=>{!function(e){"use strict";e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",(function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:/\}\}\}?/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-handlebars-template","handlebars")}(n(4631),n(40790),n(87093))},16531:(e,t,n)=>{!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}var r={};function i(e){var t=r[e];return t||(r[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function o(e,t){var n=e.match(i(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"</\\s*"+e+"\\s*>","i")}function s(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}function l(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r[0]||r[1].test(o(t,r[0])))return r[2]}}e.defineMode("htmlmixed",(function(r,i){var o=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag,allowMissingTagName:i.allowMissingTagName}),c={},u=i&&i.tags,p=i&&i.scriptTypes;if(s(t,c),u&&s(u,c),p)for(var d=p.length-1;d>=0;d--)c.script.unshift(["type",p[d].matches,p[d].mode]);function f(t,i){var s,u=o.token(t,i.htmlState),p=/\btag\b/.test(u);if(p&&!/[<>\s\/]/.test(t.current())&&(s=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))i.inTag=s+" ";else if(i.inTag&&p&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var h=">"==t.current()&&l(c[d[1]],d[2]),m=e.getMode(r,h),g=a(d[1],!0),v=a(d[1],!1);i.token=function(e,t){return e.match(g,!1)?(t.token=f,t.localState=t.localMode=null,null):n(e,v,t.localMode.token(e,t.localState))},i.localMode=m,i.localState=e.startState(m,o.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=" "));return u}return{startState:function(){return{token:f,inTag:null,localMode:null,localState:null,htmlState:e.startState(o)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(o,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?o.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||o}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n(4631),n(29589),n(96876),n(36629))},96876:(e,t,n)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=!1!==n.trackScope,u=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function g(e,t,n){return r=e,i=n,t}function v(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if("."==n&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("="==n&&e.eat(">"))return g("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),g("comment","comment")):it(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(e.eat("="),g("operator","operator",e.current()));if("`"==n)return t.tokenize=x,x(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),g("meta","meta");if("#"==n&&e.eatWhile(p))return g("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),g("comment","comment");if(f.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?g("."):g("operator","operator",e.current());if(p.test(n)){e.eatWhile(p);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return g(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",r)}return g("variable","variable",r)}}function y(e){return function(t,n){var r,i=!1;if(s&&"@"==t.peek()&&t.match(h))return n.tokenize=v,g("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=v),g("string","string")}}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return g("comment","comment")}function x(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=v;break}r=!r&&"\\"==n}return g("quasi","string-2",e.current())}var w="([{}])";function A(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=w.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(p.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function C(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function k(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function S(e,t,n,r,i){var o=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=o,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?U:H)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return E.marked?E.marked:"variable"==n&&k(e,r)?"variable-2":t}}var E={state:null,column:null,marked:null,cc:null};function T(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function O(){return T.apply(null,arguments),!0}function M(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function L(e){var t=E.state;if(E.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=B(e,t.context);if(null!=r)return void(t.context=r)}else if(!M(e,t.localVars))return void(t.localVars=new j(e,t.localVars));n.globalVars&&!M(e,t.globalVars)&&(t.globalVars=new j(e,t.globalVars))}}function B(e,t){if(t){if(t.block){var n=B(e,t.prev);return n?n==t.prev?t:new N(n,t.vars,!0):null}return M(e,t.vars)?t:new N(t.prev,new j(e,t.vars),!1)}return null}function D(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function N(e,t,n){this.prev=e,this.vars=t,this.block=n}function j(e,t){this.name=e,this.next=t}var P=new j("this",new j("arguments",null));function R(){E.state.context=new N(E.state.context,E.state.localVars,!1),E.state.localVars=P}function F(){E.state.context=new N(E.state.context,E.state.localVars,!0),E.state.localVars=null}function I(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function z(e,t){var n=function(){var n=E.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new C(r,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function $(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function q(e){function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?T():O(t)}return t}function H(e,t){return"var"==e?O(z("vardef",t),Te,q(";"),$):"keyword a"==e?O(z("form"),K,H,$):"keyword b"==e?O(z("form"),H,$):"keyword d"==e?E.stream.match(/^\s*$/,!1)?O():O(z("stat"),Y,q(";"),$):"debugger"==e?O(q(";")):"{"==e?O(z("}"),F,de,$,I):";"==e?O():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==$&&E.state.cc.pop()(),O(z("form"),K,H,$,Ne)):"function"==e?O(Fe):"for"==e?O(z("form"),F,je,H,I,$):"class"==e||u&&"interface"==t?(E.marked="keyword",O(z("form","class"==e?e:t),He,$)):"variable"==e?u&&"declare"==t?(E.marked="keyword",O(H)):u&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?O(tt):"type"==t?O(ze,q("operator"),ve,q(";")):O(z("form"),Oe,q("{"),z("}"),de,$,$)):u&&"namespace"==t?(E.marked="keyword",O(z("form"),U,H,$)):u&&"abstract"==t?(E.marked="keyword",O(H)):O(z("stat"),oe):"switch"==e?O(z("form"),K,q("{"),z("}","switch"),F,de,$,$,I):"case"==e?O(U,q(":")):"default"==e?O(q(":")):"catch"==e?O(z("form"),R,W,H,$,I):"export"==e?O(z("stat"),Ke,$):"import"==e?O(z("stat"),Ye,$):"async"==e?O(H):"@"==t?O(U,H):T(z("stat"),U,q(";"),$)}function W(e){if("("==e)return O($e,q(")"))}function U(e,t){return G(e,t,!1)}function V(e,t){return G(e,t,!0)}function K(e){return"("!=e?T():O(z(")"),Y,q(")"),$)}function G(e,t,n){if(E.state.fatArrowAt==E.stream.start){var r=n?te:ee;if("("==e)return O(R,z(")"),ue($e,")"),$,q("=>"),r,I);if("variable"==e)return T(R,Oe,q("=>"),r,I)}var i=n?J:X;return _.hasOwnProperty(e)?O(i):"function"==e?O(Fe,i):"class"==e||u&&"interface"==t?(E.marked="keyword",O(z("form"),qe,$)):"keyword c"==e||"async"==e?O(n?V:U):"("==e?O(z(")"),Y,q(")"),$,i):"operator"==e||"spread"==e?O(n?V:U):"["==e?O(z("]"),et,$,i):"{"==e?pe(se,"}",null,i):"quasi"==e?T(Z,i):"new"==e?O(ne(n)):O()}function Y(e){return e.match(/[;\}\)\],]/)?T():T(U)}function X(e,t){return","==e?O(Y):J(e,t,!1)}function J(e,t,n){var r=0==n?X:J,i=0==n?U:V;return"=>"==e?O(R,n?te:ee,I):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?O(r):u&&"<"==t&&E.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(z(">"),ue(ve,">"),$,r):"?"==t?O(U,q(":"),i):O(i):"quasi"==e?T(Z,r):";"!=e?"("==e?pe(V,")","call",r):"."==e?O(ae,r):"["==e?O(z("]"),Y,q("]"),$,r):u&&"as"==t?(E.marked="keyword",O(ve,r)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),O(i)):void 0:void 0}function Z(e,t){return"quasi"!=e?T():"${"!=t.slice(t.length-2)?O(Z):O(Y,Q)}function Q(e){if("}"==e)return E.marked="string-2",E.state.tokenize=x,O(Z)}function ee(e){return A(E.stream,E.state),T("{"==e?H:U)}function te(e){return A(E.stream,E.state),T("{"==e?H:V)}function ne(e){return function(t){return"."==t?O(e?ie:re):"variable"==t&&u?O(ke,e?J:X):T(e?V:U)}}function re(e,t){if("target"==t)return E.marked="keyword",O(X)}function ie(e,t){if("target"==t)return E.marked="keyword",O(J)}function oe(e){return":"==e?O($,H):T(X,q(";"),$)}function ae(e){if("variable"==e)return E.marked="property",O()}function se(e,t){return"async"==e?(E.marked="property",O(se)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?O(le):(u&&E.state.fatArrowAt==E.stream.start&&(n=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+n[0].length),O(ce))):"number"==e||"string"==e?(E.marked=s?"property":E.style+" property",O(ce)):"jsonld-keyword"==e?O(ce):u&&D(t)?(E.marked="keyword",O(se)):"["==e?O(U,fe,q("]"),ce):"spread"==e?O(V,ce):"*"==t?(E.marked="keyword",O(se)):":"==e?T(ce):void 0;var n}function le(e){return"variable"!=e?T(ce):(E.marked="property",O(Fe))}function ce(e){return":"==e?O(V):"("==e?T(Fe):void 0}function ue(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=E.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?T():T(e)}),r)}return i==t||o==t?O():n&&n.indexOf(";")>-1?T(e):O(q(t))}return function(n,i){return n==t||i==t?O():T(e,r)}}function pe(e,t,n){for(var r=3;r<arguments.length;r++)E.cc.push(arguments[r]);return O(z(t,n),ue(e,t),$)}function de(e){return"}"==e?O():T(H,de)}function fe(e,t){if(u){if(":"==e)return O(ve);if("?"==t)return O(fe)}}function he(e,t){if(u&&(":"==e||"in"==t))return O(ve)}function me(e){if(u&&":"==e)return E.stream.match(/^\s*\w+\s+is\b/,!1)?O(U,ge,ve):O(ve)}function ge(e,t){if("is"==t)return E.marked="keyword",O()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(E.marked="keyword",O("typeof"==t?V:ve)):"variable"==e||"void"==t?(E.marked="type",O(Ce)):"|"==t||"&"==t?O(ve):"string"==e||"number"==e||"atom"==e?O(Ce):"["==e?O(z("]"),ue(ve,"]",","),$,Ce):"{"==e?O(z("}"),be,$,Ce):"("==e?O(ue(_e,")"),ye,Ce):"<"==e?O(ue(ve,">"),ve):"quasi"==e?T(we,Ce):void 0}function ye(e){if("=>"==e)return O(ve)}function be(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(be):T(xe,be)}function xe(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",O(xe)):"?"==t||"number"==e||"string"==e?O(xe):":"==e?O(ve):"["==e?O(q("variable"),he,q("]"),xe):"("==e?T(Ie,xe):e.match(/[;\}\)\],]/)?void 0:O()}function we(e,t){return"quasi"!=e?T():"${"!=t.slice(t.length-2)?O(we):O(ve,Ae)}function Ae(e){if("}"==e)return E.marked="string-2",E.state.tokenize=x,O(we)}function _e(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?O(_e):":"==e?O(ve):"spread"==e?O(_e):T(ve)}function Ce(e,t){return"<"==t?O(z(">"),ue(ve,">"),$,Ce):"|"==t||"."==e||"&"==t?O(ve):"["==e?O(ve,q("]"),Ce):"extends"==t||"implements"==t?(E.marked="keyword",O(ve)):"?"==t?O(ve,q(":"),ve):void 0}function ke(e,t){if("<"==t)return O(z(">"),ue(ve,">"),$,Ce)}function Se(){return T(ve,Ee)}function Ee(e,t){if("="==t)return O(ve)}function Te(e,t){return"enum"==t?(E.marked="keyword",O(tt)):T(Oe,fe,Be,De)}function Oe(e,t){return u&&D(t)?(E.marked="keyword",O(Oe)):"variable"==e?(L(t),O()):"spread"==e?O(Oe):"["==e?pe(Le,"]"):"{"==e?pe(Me,"}"):void 0}function Me(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?O(Oe):"}"==e?T():"["==e?O(U,q("]"),q(":"),Me):O(q(":"),Oe,Be)):(L(t),O(Be))}function Le(){return T(Oe,Be)}function Be(e,t){if("="==t)return O(V)}function De(e){if(","==e)return O(Te)}function Ne(e,t){if("keyword b"==e&&"else"==t)return O(z("form","else"),H,$)}function je(e,t){return"await"==t?O(je):"("==e?O(z(")"),Pe,$):void 0}function Pe(e){return"var"==e?O(Te,Re):"variable"==e?O(Re):T(Re)}function Re(e,t){return")"==e?O():";"==e?O(Re):"in"==t||"of"==t?(E.marked="keyword",O(U,Re)):T(U,Re)}function Fe(e,t){return"*"==t?(E.marked="keyword",O(Fe)):"variable"==e?(L(t),O(Fe)):"("==e?O(R,z(")"),ue($e,")"),$,me,H,I):u&&"<"==t?O(z(">"),ue(Se,">"),$,Fe):void 0}function Ie(e,t){return"*"==t?(E.marked="keyword",O(Ie)):"variable"==e?(L(t),O(Ie)):"("==e?O(R,z(")"),ue($e,")"),$,me,I):u&&"<"==t?O(z(">"),ue(Se,">"),$,Ie):void 0}function ze(e,t){return"keyword"==e||"variable"==e?(E.marked="type",O(ze)):"<"==t?O(z(">"),ue(Se,">"),$):void 0}function $e(e,t){return"@"==t&&O(U,$e),"spread"==e?O($e):u&&D(t)?(E.marked="keyword",O($e)):u&&"this"==e?O(fe,Be):T(Oe,fe,Be)}function qe(e,t){return"variable"==e?He(e,t):We(e,t)}function He(e,t){if("variable"==e)return L(t),O(We)}function We(e,t){return"<"==t?O(z(">"),ue(Se,">"),$,We):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(E.marked="keyword"),O(u?ve:U,We)):"{"==e?O(z("}"),Ue,$):void 0}function Ue(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&D(t))&&E.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",O(Ue)):"variable"==e||"keyword"==E.style?(E.marked="property",O(Ve,Ue)):"number"==e||"string"==e?O(Ve,Ue):"["==e?O(U,fe,q("]"),Ve,Ue):"*"==t?(E.marked="keyword",O(Ue)):u&&"("==e?T(Ie,Ue):";"==e||","==e?O(Ue):"}"==e?O():"@"==t?O(U,Ue):void 0}function Ve(e,t){if("!"==t)return O(Ve);if("?"==t)return O(Ve);if(":"==e)return O(ve,Be);if("="==t)return O(V);var n=E.state.lexical.prev;return T(n&&"interface"==n.info?Ie:Fe)}function Ke(e,t){return"*"==t?(E.marked="keyword",O(Qe,q(";"))):"default"==t?(E.marked="keyword",O(U,q(";"))):"{"==e?O(ue(Ge,"}"),Qe,q(";")):T(H)}function Ge(e,t){return"as"==t?(E.marked="keyword",O(q("variable"))):"variable"==e?T(V,Ge):void 0}function Ye(e){return"string"==e?O():"("==e?T(U):"."==e?T(X):T(Xe,Je,Qe)}function Xe(e,t){return"{"==e?pe(Xe,"}"):("variable"==e&&L(t),"*"==t&&(E.marked="keyword"),O(Ze))}function Je(e){if(","==e)return O(Xe,Je)}function Ze(e,t){if("as"==t)return E.marked="keyword",O(Xe)}function Qe(e,t){if("from"==t)return E.marked="keyword",O(U)}function et(e){return"]"==e?O():T(ue(V,"]"))}function tt(){return T(z("form"),Oe,q("{"),z("}"),ue(nt,"}"),$,$)}function nt(){return T(Oe,Be)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return R.lex=F.lex=!0,I.lex=!0,$.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new C((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new N(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),A(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",S(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==b||t.tokenize==x)return e.Pass;if(t.tokenize!=v)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==$)l=l.prev;else if(u!=Ne&&u!=I)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==X||i==J)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var p=l.type,d=s==p;return"vardef"==p?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==p&&"{"==s?l.indented:"form"==p?l.indented+o:"stat"==p?l.indented+(rt(t,r)?a||o:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:it,skipExpression:function(t){S(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4631))},49047:(e,t,n)=>{!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;function o(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,p=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,h=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v="    ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function x(e){return!e||!/\S/.test(e.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==_){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=E,t.block=A,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function A(t,r){var i=t.column()===r.indentation,s=x(r.prevLine.stream),f=r.indentedCode,g=r.prevLine.hr,v=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){for(r.list=null;w<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}var A=!(s||g||r.prevLine.header||v&&f||r.prevLine.fencedCodeEnd),_=(!1===r.list||g||s)&&r.indentation<=b&&t.match(l),S=null;if(r.indentationDiff>=4&&(f||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=b&&(S=t.match(p))&&S[1].length<=6)return r.quote=0,r.header=S[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,k(r);if(r.indentation<=b&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),k(r);if(!_&&!r.setext&&i&&r.indentation<=b&&(S=t.match(c))){var E=S[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+E]),k(r)}return i&&r.indentation<=b&&(S=t.match(h,!0))?(r.quote=0,r.fencedEndRE=new RegExp(S[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(S[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=C,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,k(r)):r.setext||!(A&&v||r.quote||!1!==r.list||r.code||_||m.test(t.string))&&(S=t.lookAhead(1))&&(S=S.match(d))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==S[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,k(r)):_?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?y(t,r,B):y(t,r,r.inline)}function _(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=E,n.block=A,n.htmlState=null)}return o}function C(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(o||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),o||(r=k(t)),t.localMode=t.localState=null,t.block=A,t.f=E,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,o?b(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),a.code)}function k(e){var t=[];if(e.formatting){t.push(a.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(a.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(a.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function S(e,t){if(e.match(f,!0))return k(t)}function E(t,i){var o=i.text(t,i);if(void 0!==o)return o;if(i.list)return i.list=null,k(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,k(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),k(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return a.linkHref}if("`"===s){var p=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var d=t.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var f=k(i);return i.code=0,f}return i.formatting=p,k(i)}return i.code=d,k(i)}if(i.code)return k(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var h=k(i),m=a.formatting+"-escape";return h?h+" "+m:m}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),k(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),k(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var h=k(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=O,h}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),k(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var h=k(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?O:E,h}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=T,n.highlightFormatting&&(i.formatting="link"),(h=k(i))?h+=" ":h="",h+a.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=T,n.highlightFormatting&&(i.formatting="link"),(h=k(i))?h+=" ":h="",h+a.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=t.string.indexOf(">",t.pos);if(-1!=v){var y=t.string.substring(t.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,_)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var x=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);x<3&&t.eat(s);)x++;var A=t.peek()||" ",C=!/\s/.test(A)&&(!g.test(A)||/\s/.test(w)||g.test(w)),S=!/\s/.test(w)&&(!g.test(w)||/\s/.test(A)||g.test(A)),M=null,L=null;if(x%2&&(i.em||!C||"*"!==s&&S&&!g.test(w)?i.em!=s||!S||"*"!==s&&C&&!g.test(A)||(M=!1):M=!0),x>1&&(i.strong||!C||"*"!==s&&S&&!g.test(w)?i.strong!=s||!S||"*"!==s&&C&&!g.test(A)||(L=!1):L=!0),null!=L||null!=M)return n.highlightFormatting&&(i.formatting=null==M?"strong":null==L?"em":"strong em"),!0===M&&(i.em=s),!0===L&&(i.strong=s),f=k(i),!1===M&&(i.em=!1),!1===L&&(i.strong=!1),f}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return k(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),f=k(i),i.strikethrough=!1,f;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),k(i)}else if(" "===s&&t.match("~~",!0)){if(" "===t.peek())return k(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var B=k(i);return i.emoji=!1,B}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),k(i)}function T(e,t){if(">"===e.next()){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link");var r=k(t);return r?r+=" ":r="",r+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function O(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=L("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,k(t)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function L(e){return function(t,r){if(t.next()===e){r.f=r.inline=E,n.highlightFormatting&&(r.formatting="link-string");var i=k(r);return r.linkHref=!1,i}return t.match(M[e]),r.linkHref=!0,k(r)}}function B(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=D,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,k(t)):y(e,t,E)}function D(e,t){if(e.match("]:",!0)){t.f=t.inline=N,n.highlightFormatting&&(t.formatting="link");var r=k(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function N(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=E,a.linkHref+" url")}var j={startState:function(){return{f:A,prevLine:{stream:null},thisLine:{stream:null},block:A,htmlState:null,indentation:0,inline:E,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=_)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==_?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:j}},indent:function(t,n,i){return t.block==_&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:w,getType:k,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(4631),n(29589),n(52539))},52539:(e,t,n)=>{!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(n(4631))},10131:(e,t,n)=>{!function(e){"use strict";e.defineMode("nginx",(function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n,r=t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),i=t("http mail events server types location upstream charset_map limit_except if geo map"),o=t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),a=e.indentUnit;function s(e,t){return n=t,e}function l(e,t){e.eatWhile(/[\w\$_]/);var n=e.current();if(r.propertyIsEnumerable(n))return"keyword";if(i.propertyIsEnumerable(n))return"variable-2";if(o.propertyIsEnumerable(n))return"string-2";var a=e.next();return"@"==a?(e.eatWhile(/[\w\\\-]/),s("meta",e.current())):"/"==a&&e.eat("*")?(t.tokenize=c,c(e,t)):"<"==a&&e.eat("!")?(t.tokenize=u,u(e,t)):"="!=a?"~"!=a&&"|"!=a||!e.eat("=")?'"'==a||"'"==a?(t.tokenize=p(a),t.tokenize(e,t)):"#"==a?(e.skipToEnd(),s("comment","comment")):"!"==a?(e.match(/^\s*\w*/),s("keyword","important")):/\d/.test(a)?(e.eatWhile(/[\w.%]/),s("number","unit")):/[,.+>*\/]/.test(a)?s(null,"select-op"):/[;{}:\[\]]/.test(a)?s(null,a):(e.eatWhile(/[\w\\\-]/),s("variable","variable")):s(null,"compare"):void s(null,"compare")}function c(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=l;break}r="*"==n}return s("comment","comment")}function u(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=l;break}r="-"==n?r+1:0}return s("comment","comment")}function p(e){return function(t,n){for(var r,i=!1;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=l),s("string","string")}}return{startState:function(e){return{tokenize:l,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;n=null;var r=t.tokenize(e,t),i=t.stack[t.stack.length-1];return"hash"==n&&"rule"==i?r="atom":"variable"==r&&("rule"==i?r="number":i&&"@media{"!=i||(r="tag")),"rule"==i&&/^[\{\};]$/.test(n)&&t.stack.pop(),"{"==n?"@media"==i?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==n?t.stack.pop():"@media"==n?t.stack.push("@media"):"{"==i&&"comment"!=n&&t.stack.push("rule"),r},indent:function(e,t){var n=e.stack.length;return/^\}/.test(t)&&(n-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+n*a},electricChars:"}"}})),e.defineMIME("text/x-nginx-conf","nginx")}(n(4631))},36702:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t,i){return 0==e.length?r(t):function(o,a){for(var s=e[0],l=0;l<s.length;l++)if(o.match(s[l][0]))return a.tokenize=n(e.slice(1),t),s[l][1];return a.tokenize=r(t,i),"string"}}function r(e,t){return function(n,r){return i(n,r,e,t)}}function i(e,t,r,i){if(!1!==i&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==i&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,i)),e.match(/^->\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r,i)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}var o="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[o,a,s].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var l={name:"clike",helperType:"php",keywords:t(o),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class enum function interface namespace trait"),atoms:t(a),builtin:t(s),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/^<<\s*/)){var i=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(n[0].length+(i?2:1));if(i&&e.eat(i),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=r(o,"'"!=i),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&! --t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",(function(t,n){var r=e.getMode(t,n&&n.htmlMode||"text/html"),i=e.getMode(t,l);function o(t,n){var o=n.curMode==i;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&t.match("?>")?(n.curMode=r,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):i.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=i,n.php||(n.php=e.startState(i,r.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var a="string"}else n.pending&&t.pos<n.pending.end?(t.pos=n.pending.end,a=n.pending.style):a=r.token(t,n.curState);n.pending&&(n.pending=null);var s,l=t.current(),c=l.search(/<\?/);return-1!=c&&("string"==a&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:t.pos,style:a},t.backUp(l.length-c)),a}return{startState:function(){var t=e.startState(r),o=n.startOpen?e.startState(i):null;return{html:t,php:o,curMode:n.startOpen?i:r,curState:n.startOpen?o:t,pending:null}},copyState:function(t){var n,o=t.html,a=e.copyState(r,o),s=t.php,l=s&&e.copyState(i,s);return n=t.curMode==r?a:l,{html:a,php:l,curMode:t.curMode,curState:n,pending:t.pending}},token:o,indent:function(e,t,n){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?r.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}}),"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",l)}(n(4631),n(16531),n(99762))},75354:(e,t,n)=>{!function(e){"use strict";e.defineMode("pug",(function(t){var n="keyword",r="meta",i="builtin",o="qualifier",a={"{":"}","(":")","[":"]"},s=e.getMode(t,"javascript");function l(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(s),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function c(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=s.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}function u(e,t){if(t.javaScriptArguments)return 0===t.javaScriptArgumentsDepth&&"("!==e.peek()?void(t.javaScriptArguments=!1):("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth?void(t.javaScriptArguments=!1):s.token(e,t.jsState)||!0)}function p(e){if(e.match(/^yield\b/))return"keyword"}function d(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return r}function f(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function h(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&t.interpolationNesting++;return s.token(e,t.jsState)||!0}}function m(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,n}function g(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,n}function v(e){if(e.match(/^default\b/))return n}function y(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string",n}function b(e,t){if(e.match(/^append\b/))return t.restOfLine="variable",n}function x(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable",n}function w(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable",n}function A(e,t){if(e.match(/^include\b/))return t.restOfLine="string",n}function _(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,n}function C(e,t){if(t.isIncludeFiltered){var n=D(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}function k(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,n}function S(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match("+#{",!1)?(e.next(),t.mixinCallAfter=!0,f(e,t)):void 0}function E(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}function T(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,n}function O(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,n}function M(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,n;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}function L(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,n}function B(e,t){var n;if(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"}function D(n,r){var i;if(n.match(/^:([\w\-]+)/))return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||(i=n.current().substring(1)),"string"==typeof i&&(i=e.getMode(t,i)),V(n,r,i),"atom"}function N(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}function j(e){if(e.match(/^#([\w-]+)/))return i}function P(e){if(e.match(/^\.([\w-]+)/))return o}function R(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}function F(t,n){if(n.isAttrs){if(a[t.peek()]&&n.attrsNest.push(a[t.peek()]),n.attrsNest[n.attrsNest.length-1]===t.peek())n.attrsNest.pop();else if(t.eat(")"))return n.isAttrs=!1,"punctuation";if(n.inAttributeName&&t.match(/^[^=,\)!]+/))return"="!==t.peek()&&"!"!==t.peek()||(n.inAttributeName=!1,n.jsState=e.startState(s),"script"===n.lastTag&&"type"===t.current().trim().toLowerCase()?n.attributeIsType=!0:n.attributeIsType=!1),"attribute";var r=s.token(t,n.jsState);if(n.attributeIsType&&"string"===r&&(n.scriptType=t.current().toString()),0===n.attrsNest.length&&("string"===r||"variable"===r||"keyword"===r))try{return Function("","var x "+n.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),n.inAttributeName=!0,n.attrValue="",t.backUp(t.current().length),F(t,n)}catch(e){}return n.attrValue+=t.current(),r||!0}}function I(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}function z(e){if(e.sol()&&e.eatSpace())return"indent"}function $(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}function q(e){if(e.match(/^: */))return"colon"}function H(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(V(e,t,"htmlmixed"),t.innerModeForLine=!0,K(e,t,!0)):void 0}function W(e,t){if(e.eat(".")){var n=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?n=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(n="css"),V(e,t,n),"dot"}}function U(e){return e.next(),null}function V(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes&&t.innerModes(i)||i,i=e.mimeModes[i]||i,i=e.getMode(t,i),r.indentOf=n.indentation(),i&&"null"!==i.name?r.innerMode=i:r.indentToken="string"}function K(t,n,r){if(t.indentation()>n.indentOf||n.innerModeForLine&&!t.sol()||r)return n.innerMode?(n.innerState||(n.innerState=n.innerMode.startState?e.startState(n.innerMode,t.indentation()):{}),t.hideFirstChars(n.indentOf+2,(function(){return n.innerMode.token(t,n.innerState)||!0}))):(t.skipToEnd(),n.indentToken);t.sol()&&(n.indentOf=1/0,n.indentToken=null,n.innerMode=null,n.innerState=null)}function G(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}function Y(){return new l}function X(e){return e.copy()}function J(e,t){var n=K(e,t)||G(e,t)||h(e,t)||C(e,t)||M(e,t)||F(e,t)||c(e,t)||u(e,t)||E(e,t)||p(e)||d(e)||f(e,t)||m(e,t)||g(e,t)||v(e)||y(e,t)||b(e,t)||x(e,t)||w(e,t)||A(e,t)||_(e,t)||k(e,t)||S(e,t)||T(e,t)||O(e,t)||L(e,t)||B(e,t)||D(e,t)||N(e,t)||j(e)||P(e)||R(e,t)||I(e,t)||z(e)||H(e,t)||$(e,t)||q(e)||W(e,t)||U(e);return!0===n?null:n}return l.prototype.copy=function(){var t=new l;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=e.copyState(s,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:Y,copyState:X,token:J}}),"javascript","css","htmlmixed"),e.defineMIME("text/x-pug","pug"),e.defineMIME("text/x-jade","pug")}(n(4631),n(96876),n(36629),n(16531))},80853:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}var n=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],r=t(n),i=t(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),o=t(["end","until"]),a={"[":"]","{":"}","(":")"},s={"]":"[","}":"{",")":"("};e.defineMode("ruby",(function(t){var n;function l(e,t,n){return n.tokenize.push(e),e(t,n)}function c(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(m),"comment";if(e.eatSpace())return null;var r,i=e.next();if("`"==i||"'"==i||'"'==i)return l(f(i,"string",'"'==i||"`"==i),e,t);if("/"==i)return u(e)?l(f(i,"string-2",!0),e,t):"operator";if("%"==i){var o="string",s=!0;e.eat("s")?o="atom":e.eat(/[WQ]/)?o="string":e.eat(/[r]/)?o="string-2":e.eat(/[wxq]/)&&(o="string",s=!1);var c=e.eat(/[^\w\s=]/);return c?(a.propertyIsEnumerable(c)&&(c=a[c]),l(f(c,o,s,!0),e,t)):"operator"}if("#"==i)return e.skipToEnd(),"comment";if("<"==i&&(r=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l(h(r[2],r[1]),e,t);if("0"==i)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(i))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==i){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==i)return e.eat("'")?l(f("'","atom",!1),e,t):e.eat('"')?l(f('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==i&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==i)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(i))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=i||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(i))return n=i,null;if("-"==i&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(i)){var p=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=i||p||(n="."),"operator"}return null}return n="|",null}function u(e){for(var t,n=e.pos,r=0,i=!1,o=!1;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}function p(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=p(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=p(e+1));return c(t,n)}}function d(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,c(t,n))}}function f(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(p());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(d());break}}s=!s&&"\\"==a}return t}}function h(e,t){return function(n,r){return t&&n.eatSpace(),n.match(e)?r.tokenize.pop():n.skipToEnd(),"string"}}function m(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[c],indented:0,context:{type:"top",indented:-t.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){n=null,e.sol()&&(t.indented=e.indentation());var a,s=t.tokenize[t.tokenize.length-1](e,t),l=n;if("ident"==s){var c=e.current();"keyword"==(s="."==t.lastTok?"property":r.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(c)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(l=c,i.propertyIsEnumerable(c)?a="indent":o.propertyIsEnumerable(c)?a="dedent":"if"!=c&&"unless"!=c||e.column()!=e.indentation()?"do"==c&&t.context.indented<t.indented&&(a="indent"):a="indent")}return(n||s&&"comment"!=s)&&(t.lastTok=l),"|"==n&&(t.varList=!t.varList),"indent"==a||/[\(\[\{]/.test(n)?t.context={prev:t.context,type:n||s,indented:t.indented}:("dedent"==a||/[\)\]\}]/.test(n))&&t.context.prev&&(t.context=t.context.prev),e.eol()&&(t.continuedLine="\\"==n||"operator"==s),s},indent:function(n,r){if(n.tokenize[n.tokenize.length-1]!=c)return e.Pass;var i=r&&r.charAt(0),o=n.context,a=o.type==s[i]||"keyword"==o.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(r);return o.indented+(a?0:t.indentUnit)+(n.continuedLine?t.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-ruby","ruby"),e.registerHelper("hintWords","ruby",n)}(n(4631))},81201:(e,t,n)=>{!function(e){"use strict";e.defineMode("sass",(function(t){var n=e.mimeModes["text/css"],r=n.propertyKeywords||{},i=n.colorKeywords||{},o=n.valueKeywords||{},a=n.fontProperties||{};function s(e){return new RegExp("^"+e.join("|"))}var l,c=new RegExp("^"+["true","false","null","auto"].join("|")),u=s(["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"]),p=/^::?[a-zA-Z_][\w\-]*/;function d(e){return!e.peek()||e.match(/\s+$/,!1)}function f(e,t){var n=e.peek();return")"===n?(e.next(),t.tokenizer=b,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=m(e.next()),"string"):(t.tokenizer=m(")",!1),"string")}function h(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=b,b(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=b):n.skipToEnd(),"comment")}}function m(e,t){function n(r,i){var o=r.next(),a=r.peek(),s=r.string.charAt(r.pos-2);return"\\"!==o&&a===e||o===e&&"\\"!==s?(o!==e&&t&&r.next(),d(r)&&(i.cursorHalf=0),i.tokenizer=b,"string"):"#"===o&&"{"===a?(i.tokenizer=g(n),r.next(),"operator"):"string"}return null==t&&(t=!0),n}function g(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):b(t,n)}}function v(e){if(0==e.indentCount){e.indentCount++;var n=e.scopes[0].offset+t.indentUnit;e.scopes.unshift({offset:n})}}function y(e){1!=e.scopes.length&&e.scopes.shift()}function b(e,t){var n=e.peek();if(e.match("/*"))return t.tokenizer=h(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=h(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=g(b),"operator";if('"'===n||"'"===n)return e.next(),t.tokenizer=m(n),"string";if(t.cursorHalf){if("#"===n&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return d(e)&&(t.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return d(e)&&(t.cursorHalf=0),"unit";if(e.match(c))return d(e)&&(t.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,d(e)&&(t.cursorHalf=0),"atom";if("$"===n)return e.next(),e.eatWhile(/[\w-]/),d(e)&&(t.cursorHalf=0),"variable-2";if("!"===n)return e.next(),t.cursorHalf=0,e.match(/^[\w]+/)?"keyword":"operator";if(e.match(u))return d(e)&&(t.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return d(e)&&(t.cursorHalf=0),l=e.current().toLowerCase(),o.hasOwnProperty(l)?"atom":i.hasOwnProperty(l)?"keyword":r.hasOwnProperty(l)?(t.prevProp=e.current().toLowerCase(),"property"):"tag";if(d(e))return t.cursorHalf=0,null}else{if("-"===n&&e.match(/^-\w+-/))return"meta";if("."===n){if(e.next(),e.match(/^[\w-]+/))return v(t),"qualifier";if("#"===e.peek())return v(t),"tag"}if("#"===n){if(e.next(),e.match(/^[\w-]+/))return v(t),"builtin";if("#"===e.peek())return v(t),"tag"}if("$"===n)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(c))return"keyword";if(e.match(/^url/)&&"("===e.peek())return t.tokenizer=f,"atom";if("="===n&&e.match(/^=[\w-]+/))return v(t),"meta";if("+"===n&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===n&&e.match("@extend")&&(e.match(/\s*[\w]/)||y(t)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return v(t),"def";if("@"===n)return e.next(),e.eatWhile(/[\w-]/),"def";if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){l=e.current().toLowerCase();var s=t.prevProp+"-"+l;return r.hasOwnProperty(s)?"property":r.hasOwnProperty(l)?(t.prevProp=l,"property"):a.hasOwnProperty(l)?"property":"tag"}return e.match(/ *:/,!1)?(v(t),t.cursorHalf=1,t.prevProp=e.current().toLowerCase(),"property"):(e.match(/ *,/,!1)||v(t),"tag")}if(":"===n)return e.match(p)?"variable-3":(e.next(),t.cursorHalf=1,"operator")}return e.match(u)?"operator":(e.next(),null)}function x(e,n){e.sol()&&(n.indentCount=0);var r=n.tokenizer(e,n),i=e.current();if("@return"!==i&&"}"!==i||y(n),null!==r){for(var o=e.pos-i.length+t.indentUnit*n.indentCount,a=[],s=0;s<n.scopes.length;s++){var l=n.scopes[s];l.offset<=o&&a.push(l)}n.scopes=a}return r}return{startState:function(){return{tokenizer:b,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,t){var n=x(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e){return e.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}}),"css"),e.defineMIME("text/x-sass","sass")}(n(4631),n(36629))},31149:(e,t,n)=>{!function(e){"use strict";e.defineMode("shell",(function(){var t={};function n(e,n){for(var r=0;r<n.length;r++)t[n[r]]=e}var r=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function a(e,n){if(e.eatSpace())return null;var r=e.sol(),i=e.next();if("\\"===i)return e.next(),null;if("'"===i||'"'===i||"`"===i)return n.tokens.unshift(s(i,"`"===i?"quote":"string")),p(e,n);if("#"===i)return r&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===i)return n.tokens.unshift(c),p(e,n);if("+"===i||"="===i)return"operator";if("-"===i)return e.eat("-"),e.eatWhile(/\w/),"attribute";if("<"==i){if(e.match("<<"))return"operator";var o=e.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(o)return n.tokens.unshift(u(o[1])),"string-2"}if(/\d/.test(i)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var a=e.current();return"="===e.peek()&&/\w+/.test(a)?"def":t.hasOwnProperty(a)?t[a]:null}function s(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){for(var o,a=!1;null!=(o=r.next());){if(o===n&&!a){i.tokens.shift();break}if("$"===o&&!a&&"'"!==e&&r.peek()!=n){a=!0,r.backUp(1),i.tokens.unshift(c);break}if(!a&&e!==n&&o===e)return i.tokens.unshift(s(e,t)),p(r,i);if(!a&&/['"]/.test(o)&&!/['"]/.test(e)){i.tokens.unshift(l(o,"string")),r.backUp(1);break}a=!a&&"\\"===o}return t}}function l(e,t){return function(n,r){return r.tokens[0]=s(e,t),n.next(),p(n,r)}}e.registerHelper("hintWords","shell",r.concat(i,o)),n("atom",r),n("keyword",i),n("builtin",o);var c=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),p(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function u(e){return function(t,n){return t.sol()&&t.string==e&&n.tokens.shift(),t.skipToEnd(),"string-2"}}function p(e,t){return(t.tokens[0]||a)(e,t)}return{startState:function(){return{tokens:[]}},token:function(e,t){return p(e,t)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),e.defineMIME("text/x-sh","shell"),e.defineMIME("application/x-sh","shell")}(n(4631))},54086:(e,t,n)=>{!function(e){"use strict";function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function r(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function i(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},i=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||a(s),c=n.keywords||a(o),u=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,p=n.support||{},d=n.hooks||{},f=n.dateSQL||{date:!0,time:!0,timestamp:!0},h=!1!==n.backslashStringEscapes,m=n.brackets||/^[\{}\(\)\[\]]/,g=n.punctuation||/^[;.,:]/;function v(e,t){var n=e.next();if(d[n]){var o=d[n](e,t);if(!1!==o)return o}if(p.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]*'/)))return"number";if(p.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]*'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),p.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&p.doubleQuote)return t.tokenize=y(n),t.tokenize(e,t);if((p.nCharCast&&("n"==n||"N"==n)||p.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(p.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&p.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=y(e.next(),!0))(e,t)},"keyword";if(p.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(p.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!p.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=b(1),t.tokenize(e,t);if("."!=n){if(u.test(n))return e.eatWhile(u),"operator";if(m.test(n))return"bracket";if(g.test(n))return e.eatWhile(g),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var a=e.current().toLowerCase();return f.hasOwnProperty(a)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":i.hasOwnProperty(a)?"atom":l.hasOwnProperty(a)?"type":c.hasOwnProperty(a)?"keyword":r.hasOwnProperty(a)?"builtin":null}return p.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:e.match(/^[\w\d_$#]+/)?"variable-2":void 0}function y(e,t){return function(n,r){for(var i,o=!1;null!=(i=n.next());){if(i==e&&!o){r.tokenize=v;break}o=(h||t)&&!o&&"\\"==i}return"string"}}function b(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=b(e+1):n.tokenize=e>1?b(e-1):v:t.skipToEnd(),"comment"}}function x(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}function w(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:v,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==v&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?x(e,t,")"):"["==r?x(e,t,"]"):t.context&&t.context.type==r&&w(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:p.commentSlashSlash?"//":p.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:n}}));var o="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function a(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var s="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";e.defineMIME("text/x-sql",{name:"sql",keywords:a(o+"begin"),builtin:a(s),atoms:a("false true null unknown"),dateSQL:a("date time timestamp"),support:a("doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:a("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:a(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:a("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:a("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":r}}),e.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-sqlite",{name:"sql",client:a("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:a(o+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":r,":":r,"?":r,$:r,'"':n,"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:a("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:a("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:a("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:a("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:a("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(o+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time zone timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:a("date time timestamp"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:a("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:a("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:a("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords:a("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-trino",{name:"sql",keywords:a("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:a("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:a("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:a("date time timestamp zone"),support:a("decimallessFloat zerolessFloat hexNumber")})}(n(4631))},60742:(e,t,n)=>{!function(e){"use strict";e.defineMode("stylus",(function(e){for(var f,h,y,b,x=e.indentUnit,w="",A=g(t),_=/^(a|b|i|s|col|em)$/i,C=g(o),k=g(a),S=g(c),E=g(l),T=g(n),O=m(n),M=g(i),L=g(r),B=g(s),D=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,N=m(u),j=g(p),P=new RegExp(/^\-(moz|ms|o|webkit)-/i),R=g(d),F="",I={};w.length<x;)w+=" ";function z(e,t){if(F=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=F?F[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),f=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=$,$(e,t);if('"'==f||"'"==f)return e.next(),t.tokenize=q(f),t.tokenize(e,t);if("@"==f)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==f){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(P)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==f?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==f&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(O)?("("==e.peek()&&(t.tokenize=H),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variable-3","reference"]):e.match(/^&{1}\s*$/)?["variable-3","reference"]:e.match(N)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!Y(e.current())?(e.match("."),["variable-2","variable-name"]):["variable-2","word"]:e.match(D)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(f)?(e.next(),[null,f]):(e.next(),[null,null])}function $(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function q(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function H(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=q(")"),[null,"("]}function W(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function U(e,t,n,r){return r=r>=0?r:x,e.context=new W(n,t.indentation()+r,e.context),n}function V(e,t){var n=e.context.indent-x;return t=t||!1,e.context=e.context.prev,t&&(e.context.indent=n),e.context.type}function K(e,t,n){return I[n.context.type](e,t,n)}function G(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return K(e,t,n)}function Y(e){return e.toLowerCase()in A}function X(e){return(e=e.toLowerCase())in C||e in B}function J(e){return e.toLowerCase()in j}function Z(e){return e.toLowerCase().match(P)}function Q(e){var t=e.toLowerCase(),n="variable-2";return Y(e)?n="tag":J(e)?n="block-keyword":X(e)?n="property":t in S||t in R?n="atom":"return"==t||t in E?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function ee(e,t){return ie(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function te(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function ne(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function re(e){return e.sol()||e.string.match(new RegExp("^\\s*"+v(e.current())))}function ie(e){return e.eol()||e.match(/^\s*$/,!1)}function oe(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}return I.block=function(e,t,n){if("comment"==e&&re(t)||","==e&&ie(t)||"mixin"==e)return U(n,t,"block",0);if(te(e,t))return U(n,t,"interpolation");if(ie(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!Y(oe(t)))return U(n,t,"block",0);if(ee(e,t))return U(n,t,"block");if("}"==e&&ie(t))return U(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||J(oe(t))?U(n,t,"variableName"):U(n,t,"variableName",0);if("="==e)return ie(t)||J(oe(t))?U(n,t,"block"):U(n,t,"block",0);if("*"==e&&(ie(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return b="tag",U(n,t,"block");if(ne(e,t))return U(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return U(n,t,ie(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return U(n,t,"keyframes");if(/@extends?/.test(e))return U(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&X(t.current().slice(1))?(b="variable-2","block"):/(@import|@require|@charset)/.test(e)?U(n,t,"block",0):U(n,t,"block");if("reference"==e&&ie(t))return U(n,t,"block");if("("==e)return U(n,t,"parens");if("vendor-prefixes"==e)return U(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(b=Q(r)))return re(t)?U(n,t,"block",0):(b="atom","block");if("tag"==b){if(/embed|menu|pre|progress|sub|table/.test(r)&&X(oe(t)))return b="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return b="atom","block";if(_.test(r)&&(re(t)&&t.string.match(/=/)||!re(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!Y(oe(t))))return b="variable-2",J(oe(t))?"block":U(n,t,"block",0);if(ie(t))return U(n,t,"block")}if("block-keyword"==b)return b="keyword",t.current(/(if|unless)/)&&!re(t)?"block":U(n,t,"block");if("return"==r)return U(n,t,"block",0);if("variable-2"==b&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return U(n,t,"block")}return n.context.type},I.parens=function(e,t,n){if("("==e)return U(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?V(n):t.string.match(/^[a-z][\w-]*\(/i)&&ie(t)||J(oe(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(oe(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&Y(oe(t))?U(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?U(n,t,"block",0):ie(t)?U(n,t,"block"):U(n,t,"block",0);if(e&&"@"==e.charAt(0)&&X(t.current().slice(1))&&(b="variable-2"),"word"==e){var r=t.current();"tag"==(b=Q(r))&&_.test(r)&&(b="variable-2"),"property"!=b&&"to"!=r||(b="atom")}return"variable-name"==e?U(n,t,"variableName"):ne(e,t)?U(n,t,"pseudo"):n.context.type},I.vendorPrefixes=function(e,t,n){return"word"==e?(b="property",U(n,t,"block",0)):V(n)},I.pseudo=function(e,t,n){return X(oe(t.string))?G(e,t,n):(t.match(/^[a-z-]+/),b="variable-3",ie(t)?U(n,t,"block"):V(n))},I.atBlock=function(e,t,n){if("("==e)return U(n,t,"atBlock_parens");if(ee(e,t))return U(n,t,"block");if(te(e,t))return U(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(b=/^(only|not|and|or)$/.test(r)?"keyword":T.hasOwnProperty(r)?"tag":L.hasOwnProperty(r)?"attribute":M.hasOwnProperty(r)?"property":k.hasOwnProperty(r)?"string-2":Q(t.current()))&&ie(t))return U(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(b="keyword"),n.context.type},I.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return ie(t)?U(n,t,"block"):U(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return b=Q(r),/^(max|min)/.test(r)&&(b="property"),"tag"==b&&(b=_.test(r)?"variable-2":"atom"),n.context.type}return I.atBlock(e,t,n)},I.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&re(t)||"]"==e||"hash"==e||"qualifier"==e||Y(t.current()))?G(e,t,n):"{"==e?U(n,t,"keyframes"):"}"==e?re(t)?V(n,!0):U(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?U(n,t,"keyframes"):"word"==e&&"block-keyword"==(b=Q(t.current()))?(b="keyword",U(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?U(n,t,ie(t)?"block":"atBlock"):"mixin"==e?U(n,t,"block",0):n.context.type},I.interpolation=function(e,t,n){return"{"==e&&V(n)&&U(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&Y(oe(t))?U(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?U(n,t,"block",0):U(n,t,"block"):"variable-name"==e?U(n,t,"variableName",0):("word"==e&&"tag"==(b=Q(t.current()))&&(b="atom"),n.context.type)},I.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?V(n):"word"==e?(b=Q(t.current()),"extend"):V(n)},I.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(b="variable-2"),"variableName"):G(e,t,n)},{startState:function(e){return{tokenize:null,state:"block",context:new W("block",e||0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((h=(t.tokenize||z)(e,t))&&"object"==typeof h&&(y=h[1],h=h[0]),b=h,t.state=I[t.state](y,e,t),b)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=oe(t),s=n.match(/^\s*/)[0].replace(/\t/g,w).length,l=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-x:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||J(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||Y(a)?o=/\,\s*$/.test(l)?c:/^\s+/.test(n)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||Y(l))?s<=c?c:c+x:s:/,\s*$/.test(n)||!Z(a)&&!X(a)||(o=J(l)?s<=c?c:c+x:/^\{/.test(l)?s<=c?s:c+x:Z(l)||X(l)?s>=c?c:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||Y(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?c+x:s)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}}));var t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],n=["domain","regexp","url-prefix","url"],r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],c=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],u=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],p=["for","if","else","unless","from","to"],d=["null","true","false","href","title","type","not-allowed","readonly","disabled"],f=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],h=t.concat(n,r,i,o,a,l,c,s,u,p,d,f);function m(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function g(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function v(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}e.registerHelper("hintWords","stylus",h),e.defineMIME("text/x-styl","stylus")}(n(4631))},54702:(e,t,n)=>{!function(e){"use strict";e.defineMode("twig:inner",(function(){var e=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],t=/^[+\-*&%=<>!?|~^]/,n=/^[:\[\(\{]/,r=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function o(o,a){var s=o.peek();if(a.incomment)return o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.sign){if(a.sign=!1,o.match(r))return"atom";if(o.match(i))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),o.next(),"string";if("'"==s||'"'==s)return a.instring=s,o.next(),"string";if(o.match(a.intag+"}")||o.eat("-")&&o.match(a.intag+"}"))return a.intag=!1,"tag";if(o.match(t))return a.operator=!0,"operator";if(o.match(n))a.sign=!0;else if(o.eat(" ")||o.sol()){if(o.match(e))return"keyword";if(o.match(r))return"atom";if(o.match(i))return"number";o.sol()&&o.next()}else o.next();return"variable"}if(o.eat("{")){if(o.eat("#"))return a.incomment=!0,o.skipTo("#}")?(o.eatWhile(/\#|}/),a.incomment=!1):o.skipToEnd(),"comment";if(s=o.eat(/\{|%/))return a.intag=s,"{"==s&&(a.intag="}"),o.eat("-"),"tag"}o.next()}return e=new RegExp("(("+e.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{}},token:function(e,t){return o(e,t)}}})),e.defineMode("twig",(function(t,n){var r=e.getMode(t,"twig:inner");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:r,parseDelimiters:!0}):r})),e.defineMIME("text/x-twig","twig")}(n(4631),n(87093))},2426:(e,t,n)=>{!function(e){"use strict";var t,r;t=n(4631),n(14146),n(29589),n(96876),n(90044),n(36629),n(81201),n(60742),n(75354),n(62101),r={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]},t.defineMode("vue-template",(function(e,n){var r={token:function(e){if(e.match(/^\{\{.*?\}\}/))return"meta mustache";for(;e.next()&&!e.match("{{",!1););return null}};return t.overlayMode(t.getMode(e,n.backdrop||"text/html"),r)})),t.defineMode("vue",(function(e){return t.getMode(e,{name:"htmlmixed",tags:r})}),"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),t.defineMIME("script/x-vue","vue"),t.defineMIME("text/x-vue","vue")}()},29589:(e,t,n)=>{!function(e){"use strict";var t={autoSelfClosers:{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},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{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}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function p(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(h("atom","]]>")):null:e.match("--")?n(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=p,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=p,t.state=x,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function h(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=p;break}n.next()}return e}}function m(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=p;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(t)))return;y(e)}}function x(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?A:x}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",k):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,t,n)):(a="error",w)}function A(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",_):(a="tag error",C)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,t,n)):(a="error",C)}function _(e,t,n){return"endTag"!=e?(a="error",_):(y(n),x)}function C(e,t,n){return a="error",_(e,t,n)}function k(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(g(r))?b(n,r):(b(n,r),n.context=new v(n,r,i==n.indented)),x}return a="error",k}function S(e,t,n){return"equals"==e?E:(l.allowMissing||(a="error"),k(e,t,n))}function E(e,t,n){return"string"==e?T:"word"==e&&l.allowUnquoted?(a="string",k):(a="error",k(e,t,n))}function T(e,t,n){return"string"==e?T:k(e,t,n)}return p.isInText=!0,{startState:function(e){var t={tokenize:p,state:x,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=p)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(g(i.tagName)))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[g(i.tagName)];if(!a||!a.hasOwnProperty(g(o[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==E&&(e.state=k)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(4631))},98554:(e,t,n)=>{var r,i,o,a;r=n(4631),n(53631),i=0,o=1,a=2,r.defineMode("yaml-frontmatter",(function(e,t){var n=r.getMode(e,"yaml"),s=r.getMode(e,t&&t.base||"gfm");function l(e){return e.state==o?{mode:n,state:e.yaml}:{mode:s,state:e.inner}}return{startState:function(){return{state:i,yaml:null,inner:r.startState(s)}},copyState:function(e){return{state:e.state,yaml:e.yaml&&r.copyState(n,e.yaml),inner:r.copyState(s,e.inner)}},token:function(e,t){if(t.state==i)return e.match("---",!1)?(t.state=o,t.yaml=r.startState(n),n.token(e,t.yaml)):(t.state=a,s.token(e,t.inner));if(t.state==o){var l=e.sol()&&e.match(/(---|\.\.\.)/,!1),c=n.token(e,t.yaml);return l&&(t.state=a,t.yaml=null),c}return s.token(e,t.inner)},innerMode:l,indent:function(e,t,n){var i=l(e);return i.mode.indent?i.mode.indent(i.state,t,n):r.Pass},blankLine:function(e){var t=l(e);if(t.mode.blankLine)return t.mode.blankLine(t.state)}}}))},53631:(e,t,n)=>{!function(e){"use strict";e.defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,n){var r=t.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&t.indentation()>n.keyCol)return t.skipToEnd(),"string";if(n.literal&&(n.literal=!1),t.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,t.match("---"))return"def";if(t.match("..."))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return t.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,t.next(),"meta";if(n.pairStart){if(t.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!n.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(n.pair=!0,n.keyCol=t.indentation(),"atom"):n.pair&&t.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}(n(4631))},36714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(94015),i=n.n(r),o=n(23645),a=n.n(o)()(i());a.push([e.id,'.chartist-tooltip{background:#f4c63d;color:#453d3f;display:inline-block;font-family:Oxygen,Helvetica,Arial,sans-serif;font-weight:700;min-width:5em;opacity:0;padding:.5em;pointer-events:none;position:absolute;text-align:center;transition:opacity .2s linear;z-index:1}.chartist-tooltip:before{border:15px solid transparent;border-top-color:#f4c63d;content:"";height:0;left:50%;margin-left:-15px;position:absolute;top:100%;width:0}.chartist-tooltip.tooltip-show{opacity:1}.ct-area,.ct-line{pointer-events:none}',"",{version:3,sources:["webpack://./node_modules/chartist-plugin-tooltips-updated/scss/chartist-plugin-tooltip.scss"],names:[],mappings:"AAEA,kBAME,kBARwB,CASxB,aAR2B,CAG3B,oBAAqB,CAMrB,6CAAiD,CACjD,eAAgB,CALhB,aAAc,CADd,SAAU,CAEV,YAAa,CAMb,mBAAoB,CAVpB,iBAAkB,CASlB,iBAAkB,CAMlB,6BAA8B,CAJ9B,SAI8B,CAhBhC,yBA0BI,6BA5BsB,CA4BtB,wBA5BsB,CAoBtB,UAAW,CAKX,QAAS,CAFT,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAClB,QAAS,CAET,OAxBsB,CAE1B,+BA6BI,SAAU,CAId,kBACE,mBAAoB",sourceRoot:""}]);const s=a},82862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(94015),i=n.n(r),o=n(23645),a=n.n(o)()(i());a.push([e.id,'.ct-double-octave:after,.ct-golden-section:after,.ct-major-eleventh:after,.ct-major-second:after,.ct-major-seventh:after,.ct-major-sixth:after,.ct-major-tenth:after,.ct-major-third:after,.ct-major-twelfth:after,.ct-minor-second:after,.ct-minor-seventh:after,.ct-minor-sixth:after,.ct-minor-third:after,.ct-octave:after,.ct-perfect-fifth:after,.ct-perfect-fourth:after,.ct-square:after{clear:both;content:""}.ct-label{fill:rgba(0,0,0,.4);color:rgba(0,0,0,.4);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:block;display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{text-anchor:start;align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{text-anchor:start;align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{text-anchor:end;align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{text-anchor:start;align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{text-anchor:start;align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{text-anchor:start;align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{text-anchor:start;align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{text-anchor:start;align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{text-anchor:end;align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{text-anchor:end;align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0,0,0,.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-area,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-slice-pie{fill:#f05b4f}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{content:"";display:block;float:left;height:0;padding-bottom:100%;width:0}.ct-square:after{display:table}.ct-square>svg{display:block;left:0;position:absolute;top:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{content:"";display:block;float:left;height:0;padding-bottom:93.75%;width:0}.ct-minor-second:after{display:table}.ct-minor-second>svg{display:block;left:0;position:absolute;top:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{content:"";display:block;float:left;height:0;padding-bottom:88.8888888889%;width:0}.ct-major-second:after{display:table}.ct-major-second>svg{display:block;left:0;position:absolute;top:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{content:"";display:block;float:left;height:0;padding-bottom:83.3333333333%;width:0}.ct-minor-third:after{display:table}.ct-minor-third>svg{display:block;left:0;position:absolute;top:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{content:"";display:block;float:left;height:0;padding-bottom:80%;width:0}.ct-major-third:after{display:table}.ct-major-third>svg{display:block;left:0;position:absolute;top:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{content:"";display:block;float:left;height:0;padding-bottom:75%;width:0}.ct-perfect-fourth:after{display:table}.ct-perfect-fourth>svg{display:block;left:0;position:absolute;top:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{content:"";display:block;float:left;height:0;padding-bottom:66.6666666667%;width:0}.ct-perfect-fifth:after{display:table}.ct-perfect-fifth>svg{display:block;left:0;position:absolute;top:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{content:"";display:block;float:left;height:0;padding-bottom:62.5%;width:0}.ct-minor-sixth:after{display:table}.ct-minor-sixth>svg{display:block;left:0;position:absolute;top:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{content:"";display:block;float:left;height:0;padding-bottom:61.804697157%;width:0}.ct-golden-section:after{display:table}.ct-golden-section>svg{display:block;left:0;position:absolute;top:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{content:"";display:block;float:left;height:0;padding-bottom:60%;width:0}.ct-major-sixth:after{display:table}.ct-major-sixth>svg{display:block;left:0;position:absolute;top:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{content:"";display:block;float:left;height:0;padding-bottom:56.25%;width:0}.ct-minor-seventh:after{display:table}.ct-minor-seventh>svg{display:block;left:0;position:absolute;top:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{content:"";display:block;float:left;height:0;padding-bottom:53.3333333333%;width:0}.ct-major-seventh:after{display:table}.ct-major-seventh>svg{display:block;left:0;position:absolute;top:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{content:"";display:block;float:left;height:0;padding-bottom:50%;width:0}.ct-octave:after{display:table}.ct-octave>svg{display:block;left:0;position:absolute;top:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{content:"";display:block;float:left;height:0;padding-bottom:40%;width:0}.ct-major-tenth:after{display:table}.ct-major-tenth>svg{display:block;left:0;position:absolute;top:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{content:"";display:block;float:left;height:0;padding-bottom:37.5%;width:0}.ct-major-eleventh:after{display:table}.ct-major-eleventh>svg{display:block;left:0;position:absolute;top:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{content:"";display:block;float:left;height:0;padding-bottom:33.3333333333%;width:0}.ct-major-twelfth:after{display:table}.ct-major-twelfth>svg{display:block;left:0;position:absolute;top:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{content:"";display:block;float:left;height:0;padding-bottom:25%;width:0}.ct-double-octave:after{display:table}.ct-double-octave>svg{display:block;left:0;position:absolute;top:0}',"",{version:3,sources:["webpack://./node_modules/chartist/dist/chartist.min.css"],names:[],mappings:"AAAA,iYAA4Y,UAAS,CAApB,UAAqB,CAAC,UAAU,mBAAmB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,aAAa,CAAC,iDAAiD,aAAa,CAA+E,YAAY,CAAC,kDAAkD,yBAAyB,CAAC,iCAAyQ,iBAAgB,CAAxK,oBAAoB,CAAyF,0BAA0B,CAAC,eAAiC,CAAC,+BAA+Q,iBAAgB,CAA1K,sBAAsB,CAAyF,0BAA0B,CAAC,eAAiC,CAAC,+BAAgQ,eAAc,CAA/J,oBAAoB,CAAmF,wBAAwB,CAAC,gBAAgC,CAAC,6BAAqQ,iBAAgB,CAAxK,oBAAoB,CAAyF,0BAA0B,CAAC,eAAiC,CAAC,+CAAyQ,iBAAgB,CAA1J,oBAAoB,CAA6E,sBAAsB,CAAC,iBAAmC,CAAC,6CAA+Q,iBAAgB,CAA5J,sBAAsB,CAA6E,sBAAsB,CAAC,iBAAmC,CAAC,kEAA0S,iBAAgB,CAAxK,oBAAoB,CAAyF,0BAA0B,CAAC,eAAiC,CAAC,gEAAgT,iBAAgB,CAA1K,sBAAsB,CAAyF,0BAA0B,CAAC,eAAiC,CAAC,gEAAyR,eAAc,CAA7J,kBAAkB,CAAmF,wBAAwB,CAAC,gBAAgC,CAAC,8DAA8R,eAAc,CAApK,kBAAkB,CAAyF,0BAA0B,CAAC,eAA+B,CAAC,SAAS,qBAAqB,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,oBAAoB,SAAS,CAAC,UAAU,iBAAiB,CAAC,oBAAoB,CAAC,SAAS,SAAS,CAAC,gBAAgB,CAAC,SAAS,WAAW,CAAC,eAAe,CAAC,QAAQ,SAAS,CAAC,iBAAiB,CAAC,gBAAgB,SAAS,CAAC,iBAAiB,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,+FAA+F,cAAc,CAAC,oFAAoF,YAAY,CAAC,WAAW,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,kBAA2C,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,mBAAkB,CAAnC,OAAoC,CAAC,iBAAiB,aAAa,CAAC,eAAe,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,iBAAiB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,wBAAiD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,qBAAoB,CAArC,OAAsC,CAAC,uBAAuB,aAAa,CAAC,qBAAqB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,iBAAiB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,wBAAiD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,6BAA4B,CAA7C,OAA8C,CAAC,uBAAuB,aAAa,CAAC,qBAAqB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,gBAAgB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,uBAAgD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,6BAA4B,CAA7C,OAA8C,CAAC,sBAAsB,aAAa,CAAC,oBAAoB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,gBAAgB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,uBAAgD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,kBAAiB,CAAlC,OAAmC,CAAC,sBAAsB,aAAa,CAAC,oBAAoB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,mBAAmB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,0BAAmD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,kBAAiB,CAAlC,OAAmC,CAAC,yBAAyB,aAAa,CAAC,uBAAuB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,kBAAkB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,yBAAkD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,6BAA4B,CAA7C,OAA8C,CAAC,wBAAwB,aAAa,CAAC,sBAAsB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,gBAAgB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,uBAAgD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,oBAAmB,CAApC,OAAqC,CAAC,sBAAsB,aAAa,CAAC,oBAAoB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,mBAAmB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,0BAAmD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,4BAA2B,CAA5C,OAA6C,CAAC,yBAAyB,aAAa,CAAC,uBAAuB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,gBAAgB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,uBAAgD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,kBAAiB,CAAlC,OAAmC,CAAC,sBAAsB,aAAa,CAAC,oBAAoB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,kBAAkB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,yBAAkD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,qBAAoB,CAArC,OAAsC,CAAC,wBAAwB,aAAa,CAAC,sBAAsB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,kBAAkB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,yBAAkD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,6BAA4B,CAA7C,OAA8C,CAAC,wBAAwB,aAAa,CAAC,sBAAsB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,WAAW,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,kBAA2C,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,kBAAiB,CAAlC,OAAmC,CAAC,iBAAiB,aAAa,CAAC,eAAe,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,gBAAgB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,uBAAgD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,kBAAiB,CAAlC,OAAmC,CAAC,sBAAsB,aAAa,CAAC,oBAAoB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,mBAAmB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,0BAAmD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,oBAAmB,CAApC,OAAqC,CAAC,yBAAyB,aAAa,CAAC,uBAAuB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,kBAAkB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,yBAAkD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,6BAA4B,CAA7C,OAA8C,CAAC,wBAAwB,aAAa,CAAC,sBAAsB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY,CAAC,kBAAkB,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,yBAAkD,UAAU,CAAnC,aAAa,CAAC,UAAU,CAAoB,QAAQ,CAAC,kBAAiB,CAAlC,OAAmC,CAAC,wBAAwB,aAAa,CAAC,sBAAsB,aAAa,CAAyB,MAAK,CAA7B,iBAAiB,CAAC,KAAY",sourcesContent:['.ct-double-octave:after,.ct-golden-section:after,.ct-major-eleventh:after,.ct-major-second:after,.ct-major-seventh:after,.ct-major-sixth:after,.ct-major-tenth:after,.ct-major-third:after,.ct-major-twelfth:after,.ct-minor-second:after,.ct-minor-seventh:after,.ct-minor-sixth:after,.ct-minor-third:after,.ct-octave:after,.ct-perfect-fifth:after,.ct-perfect-fourth:after,.ct-square:after{content:"";clear:both}.ct-label{fill:rgba(0,0,0,.4);color:rgba(0,0,0,.4);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0,0,0,.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-area,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-slice-pie{fill:#f05b4f}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{display:table}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{display:table}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{display:table}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{display:table}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{display:table}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{display:table}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{display:table}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{display:table}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{display:table}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{display:table}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{display:table}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{display:table}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{display:table}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{display:table}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{display:table}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{display:table}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{display:table}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}'],sourceRoot:""}]);const s=a},54163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(94015),i=n.n(r),o=n(23645),a=n.n(o)()(i());a.push([e.id,".resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}.v-popper__popper{left:0;outline:none;top:0;z-index:10000}.v-popper__popper.v-popper__popper--hidden{opacity:0;pointer-events:none;transition:opacity .15s,visibility .15s;visibility:hidden}.v-popper__popper.v-popper__popper--shown{opacity:1;transition:opacity .15s;visibility:visible}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{display:none;height:100%;left:0;position:absolute;top:0;width:100%}.v-popper__inner{box-sizing:border-box;overflow-y:auto;position:relative}.v-popper__inner>div{max-height:inherit;max-width:inherit;position:relative;z-index:1}.v-popper__arrow-container{height:10px;position:absolute;width:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;height:0;left:0;position:absolute;top:0;width:0}.v-popper__arrow-inner{border-width:7px;visibility:hidden}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-color:transparent!important;border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important;border-top-width:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-bottom-color:transparent!important;border-left-color:transparent!important;border-left-width:0;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-bottom-color:transparent!important;border-right-color:transparent!important;border-right-width:0;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-dropdown .v-popper__inner{background:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:0 6px 30px #0000001a;color:#000}.v-popper--theme-dropdown .v-popper__arrow-inner{border-color:#fff;visibility:visible}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);border-radius:6px;color:#fff;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}","",{version:3,sources:["webpack://./node_modules/floating-vue/dist/style.css"],names:[],mappings:"AAAA,kCAA+G,4BAA4B,CAAxC,WAAW,CAAgF,SAAS,CAAC,2EAAxC,aAAa,CAAtF,WAAW,CAAxC,MAAM,CAA8G,eAAe,CAAjD,mBAAmB,CAA7H,iBAAiB,CAAC,KAAK,CAAmB,UAAU,CAArB,UAAkS,CAAC,kBAAsC,MAAM,CAAC,YAAW,CAAxB,KAAK,CAAnB,aAAuC,CAAC,2CAA6D,SAAS,CAAyC,mBAAkB,CAA1D,uCAAuC,CAAnE,iBAAuF,CAAC,0CAA6D,SAAS,CAAC,uBAAsB,CAAnD,kBAAoD,CAAC,2HAA2H,yBAAyB,CAAC,oBAA0E,YAAW,CAAvB,WAAW,CAA7B,MAAM,CAA9B,iBAAiB,CAAC,KAAK,CAAQ,UAAmC,CAAC,iBAAmC,qBAAqB,CAAC,eAAc,CAAtD,iBAAuD,CAAC,qBAAmE,kBAAiB,CAAnC,iBAAiB,CAA7C,iBAAiB,CAAC,SAA8C,CAAC,2BAAwD,WAAU,CAAvC,iBAAiB,CAAC,UAAsB,CAAC,0HAA0H,YAAY,CAAC,8CAA8C,kBAAkB,CAAwC,QAAO,CAAtB,MAAM,CAA9B,iBAAiB,CAAC,KAAK,CAAQ,OAAgB,CAAC,uBAAyC,gBAAe,CAAjC,iBAAkC,CAAC,uBAAuB,gBAAgB,CAAC,6IAA6I,SAAS,CAAC,6IAA6I,SAAS,CAAC,0IAAiP,yCAAwC,CAA/I,qBAAqB,CAAC,uCAAuC,CAAC,wCAAkF,CAAC,qEAAqE,QAAQ,CAAC,4EAA4E,KAAK,CAAC,gJAAmK,uCAAuC,CAAC,wCAAwC,CAAC,sCAAqC,CAAzI,kBAA0I,CAAC,wEAAwE,QAAQ,CAAC,wEAAwE,QAAQ,CAAC,6IAA6I,QAAQ,CAAC,6IAA6I,QAAQ,CAAC,8IAAiP,yCAAwC,CAAvH,uCAAuC,CAA3D,mBAAmB,CAAyC,sCAAgF,CAAC,uEAAuE,SAAS,CAAC,uEAAuE,SAAS,CAAC,0EAA0E,WAAW,CAAC,4IAAiP,yCAAwC,CAAjF,wCAAwC,CAApG,oBAAoB,CAAC,sCAAyH,CAAC,sEAAsE,SAAS,CAAC,2CAA2C,eAAe,CAA8B,qBAAqB,CAAvC,iBAAiB,CAAuB,+BAA8B,CAAjF,UAAkF,CAAC,iDAAoE,iBAAgB,CAAnC,kBAAoC,CAAC,iDAAiD,iBAAiB,CAAC,0CAA0C,yBAAyB,CAAY,iBAAiB,CAA5B,UAAU,CAAmB,oBAAoB,CAAC,gDAAgD,kBAAkB",sourcesContent:[".resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}\n"],sourceRoot:""}]);const s=a},3141:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(94015),i=n.n(r),o=n(23645),a=n.n(o)()(i());a.push([e.id,"@charset \"UTF-8\";trix-editor{border:1px solid #bbb;border-radius:3px;margin:0;min-height:5em;outline:none;padding:.4em .6em}trix-toolbar *{box-sizing:border-box}trix-toolbar .trix-button-row{display:flex;flex-wrap:nowrap;justify-content:space-between;overflow-x:auto}trix-toolbar .trix-button-group{border-color:#ccc #bbb #888;border-radius:3px;border-style:solid;border-width:1px;display:flex;margin-bottom:10px}trix-toolbar .trix-button-group:not(:first-child){margin-left:1.5vw}@media (max-device-width:768px){trix-toolbar .trix-button-group:not(:first-child){margin-left:0}}trix-toolbar .trix-button-group-spacer{flex-grow:1}@media (max-device-width:768px){trix-toolbar .trix-button-group-spacer{display:none}}trix-toolbar .trix-button{background:transparent;border:none;border-bottom:1px solid #ddd;border-radius:0;color:rgba(0,0,0,.6);float:left;font-size:.75em;font-weight:600;margin:0;outline:none;padding:0 .5em;position:relative;white-space:nowrap}trix-toolbar .trix-button:not(:first-child){border-left:1px solid #ccc}trix-toolbar .trix-button.trix-active{background:#cbeefa;color:#000}trix-toolbar .trix-button:not(:disabled){cursor:pointer}trix-toolbar .trix-button:disabled{color:rgba(0,0,0,.125)}@media (max-device-width:768px){trix-toolbar .trix-button{letter-spacing:-.01em;padding:0 .3em}}trix-toolbar .trix-button--icon{font-size:inherit;height:1.6em;max-width:calc(.8em + 4vw);text-indent:-9999px;width:2.6em}@media (max-device-width:768px){trix-toolbar .trix-button--icon{height:2em;max-width:calc(.8em + 3.5vw)}}trix-toolbar .trix-button--icon:before{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;content:\"\";display:inline-block;left:0;opacity:.6;position:absolute;right:0;top:0}@media (max-device-width:768px){trix-toolbar .trix-button--icon:before{left:6%;right:6%}}trix-toolbar .trix-button--icon.trix-active:before{opacity:1}trix-toolbar .trix-button--icon:disabled:before{opacity:.125}trix-toolbar .trix-button--icon-attach:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M16.5 6v11.5a4 4 0 1 1-8 0V5a2.5 2.5 0 0 1 5 0v10.5a1 1 0 1 1-2 0V6H10v9.5a2.5 2.5 0 0 0 5 0V5a4 4 0 1 0-8 0v12.5a5.5 5.5 0 0 0 11 0V6h-1.5z'/%3E%3C/svg%3E\");bottom:4%;top:8%}trix-toolbar .trix-button--icon-bold:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M15.6 11.8c1-.7 1.6-1.8 1.6-2.8a4 4 0 0 0-4-4H7v14h7c2.1 0 3.7-1.7 3.7-3.8 0-1.5-.8-2.8-2.1-3.4zM10 7.5h3a1.5 1.5 0 1 1 0 3h-3v-3zm3.5 9H10v-3h3.5a1.5 1.5 0 1 1 0 3z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-italic:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M10 5v3h2.2l-3.4 8H6v3h8v-3h-2.2l3.4-8H18V5h-8z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-link:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M9.88 13.7a4.3 4.3 0 0 1 0-6.07l3.37-3.37a4.26 4.26 0 0 1 6.07 0 4.3 4.3 0 0 1 0 6.06l-1.96 1.72a.91.91 0 1 1-1.3-1.3l1.97-1.71a2.46 2.46 0 0 0-3.48-3.48l-3.38 3.37a2.46 2.46 0 0 0 0 3.48.91.91 0 1 1-1.3 1.3z'/%3E%3Cpath d='M4.25 19.46a4.3 4.3 0 0 1 0-6.07l1.93-1.9a.91.91 0 1 1 1.3 1.3l-1.93 1.9a2.46 2.46 0 0 0 3.48 3.48l3.37-3.38c.96-.96.96-2.52 0-3.48a.91.91 0 1 1 1.3-1.3 4.3 4.3 0 0 1 0 6.07l-3.38 3.38a4.26 4.26 0 0 1-6.07 0z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-strike:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='m12.73 14 .28.14c.26.15.45.3.57.44.12.14.18.3.18.5 0 .3-.15.56-.44.75-.3.2-.76.3-1.39.3A13.52 13.52 0 0 1 7 14.95v3.37a10.64 10.64 0 0 0 4.84.88c1.26 0 2.35-.19 3.28-.56.93-.37 1.64-.9 2.14-1.57s.74-1.45.74-2.32c0-.26-.02-.51-.06-.75h-5.21zm-5.5-4c-.08-.34-.12-.7-.12-1.1 0-1.29.52-2.3 1.58-3.02 1.05-.72 2.5-1.08 4.34-1.08 1.62 0 3.28.34 4.97 1l-1.3 2.93c-1.47-.6-2.73-.9-3.8-.9-.55 0-.96.08-1.2.26-.26.17-.38.38-.38.64 0 .27.16.52.48.74.17.12.53.3 1.05.53H7.23zM3 13h18v-2H3v2z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-quote:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg version='1' xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-heading-1:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg version='1' xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 9v3H9v7H6v-7H3V9h9zM8 4h14v3h-6v12h-3V7H8V4z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-code:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M18.2 12 15 15.2l1.4 1.4L21 12l-4.6-4.6L15 8.8l3.2 3.2zM5.8 12 9 8.8 7.6 7.4 3 12l4.6 4.6L9 15.2 5.8 12z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-bullet-list:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg version='1' xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm4 3h14v-2H8v2zm0-6h14v-2H8v2zm0-8v2h14V5H8z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-number-list:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-undo:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12.5 8c-2.6 0-5 1-6.9 2.6L2 7v9h9l-3.6-3.6A8 8 0 0 1 20 16l2.4-.8a10.5 10.5 0 0 0-10-7.2z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-redo:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M18.4 10.6a10.5 10.5 0 0 0-16.9 4.6L4 16a8 8 0 0 1 12.7-3.6L13 16h9V7l-3.6 3.6z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-decrease-nesting-level:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M3 19h19v-2H3v2zm7-6h12v-2H10v2zm-8.3-.3 2.8 2.9L6 14.2 4 12l2-2-1.4-1.5L1 12l.7.7zM3 5v2h19V5H3z'/%3E%3C/svg%3E\")}trix-toolbar .trix-button--icon-increase-nesting-level:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M3 19h19v-2H3v2zm7-6h12v-2H10v2zm-6.9-1L1 14.2l1.4 1.4L6 12l-.7-.7-2.8-2.8L1 9.9 3.1 12zM3 5v2h19V5H3z'/%3E%3C/svg%3E\")}trix-toolbar .trix-dialogs{position:relative}trix-toolbar .trix-dialog{background:#fff;border-radius:5px;border-top:2px solid #888;box-shadow:0 .3em 1em #ccc;font-size:.75em;left:0;padding:15px 10px;position:absolute;right:0;top:0;z-index:5}trix-toolbar .trix-input--dialog{-webkit-appearance:none;-moz-appearance:none;background-color:#fff;border:1px solid #bbb;border-radius:3px;box-shadow:none;font-size:inherit;font-weight:400;margin:0 10px 0 0;outline:none;padding:.5em .8em}trix-toolbar .trix-input--dialog.validate:invalid{box-shadow:0 0 1.5px 1px red}trix-toolbar .trix-button--dialog{border-bottom:none;font-size:inherit;padding:.5em}trix-toolbar .trix-dialog--link{max-width:600px}trix-toolbar .trix-dialog__link-fields{align-items:baseline;display:flex}trix-toolbar .trix-dialog__link-fields .trix-input{flex:1}trix-toolbar .trix-dialog__link-fields .trix-button-group{flex:0 0 content;margin:0}trix-editor [data-trix-mutable]:not(.attachment__caption-editor){-webkit-user-select:none;-moz-user-select:none;user-select:none}trix-editor [data-trix-cursor-target]::-moz-selection,trix-editor [data-trix-mutable] ::-moz-selection,trix-editor [data-trix-mutable]::-moz-selection{background:none}trix-editor [data-trix-cursor-target]::selection,trix-editor [data-trix-mutable] ::selection,trix-editor [data-trix-mutable]::selection{background:none}trix-editor [data-trix-mutable].attachment__caption-editor:focus::-moz-selection{background:highlight}trix-editor [data-trix-mutable].attachment__caption-editor:focus::selection{background:highlight}trix-editor [data-trix-mutable].attachment.attachment--file{border-color:transparent;box-shadow:0 0 0 2px highlight}trix-editor [data-trix-mutable].attachment img{box-shadow:0 0 0 2px highlight}trix-editor .attachment{position:relative}trix-editor .attachment:hover{cursor:default}trix-editor .attachment--preview .attachment__caption:hover{cursor:text}trix-editor .attachment__progress{height:20px;left:5%;opacity:.9;position:absolute;top:calc(50% - 10px);transition:opacity .2s ease-in;width:90%;z-index:1}trix-editor .attachment__progress[value=\"100\"]{opacity:0}trix-editor .attachment__caption-editor{-webkit-appearance:none;-moz-appearance:none;border:none;color:inherit;display:inline-block;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;outline:none;padding:0;text-align:center;vertical-align:top;width:100%}trix-editor .attachment__toolbar{left:0;position:absolute;text-align:center;top:-.9em;width:100%;z-index:1}trix-editor .trix-button-group{display:inline-flex}trix-editor .trix-button{background:transparent;border:none;border-radius:0;color:#666;float:left;font-size:80%;margin:0;outline:none;padding:0 .8em;position:relative;white-space:nowrap}trix-editor .trix-button:not(:first-child){border-left:1px solid #ccc}trix-editor .trix-button.trix-active{background:#cbeefa}trix-editor .trix-button:not(:disabled){cursor:pointer}trix-editor .trix-button--remove{background-color:#fff;border:2px solid highlight;border-radius:50%;box-shadow:1px 1px 6px rgba(0,0,0,.25);display:inline-block;height:1.8em;line-height:1.8em;outline:none;padding:0;text-indent:-9999px;width:1.8em}trix-editor .trix-button--remove:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg height='24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:90%;bottom:0;content:\"\";display:inline-block;left:0;opacity:.7;position:absolute;right:0;top:0}trix-editor .trix-button--remove:hover{border-color:#333}trix-editor .trix-button--remove:hover:before{opacity:1}trix-editor .attachment__metadata-container{position:relative}trix-editor .attachment__metadata{background-color:rgba(0,0,0,.7);border-radius:3px;color:#fff;font-size:.8em;left:50%;max-width:90%;padding:.1em .6em;position:absolute;top:2em;transform:translate(-50%)}trix-editor .attachment__metadata .attachment__name{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}trix-editor .attachment__metadata .attachment__size{margin-left:.2em;white-space:nowrap}.trix-content{line-height:1.5}.trix-content *{box-sizing:border-box;margin:0;padding:0}.trix-content h1{font-size:1.2em;line-height:1.2}.trix-content blockquote{border:solid #ccc;border-width:0 0 0 .3em;margin-left:.3em;padding-left:.6em}.trix-content [dir=rtl] blockquote,.trix-content blockquote[dir=rtl]{border-width:0 .3em 0 0;margin-right:.3em;padding-right:.6em}.trix-content li{margin-left:1em}.trix-content [dir=rtl] li{margin-right:1em}.trix-content pre{background-color:#eee;display:inline-block;font-family:monospace;font-size:.9em;overflow-x:auto;padding:.5em;vertical-align:top;white-space:pre;width:100%}.trix-content img{height:auto;max-width:100%}.trix-content .attachment{display:inline-block;max-width:100%;position:relative}.trix-content .attachment a{color:inherit;text-decoration:none}.trix-content .attachment a:hover,.trix-content .attachment a:visited:hover{color:inherit}.trix-content .attachment__caption{text-align:center}.trix-content .attachment__caption .attachment__name+.attachment__size:before{content:\" · \"}.trix-content .attachment--preview{text-align:center;width:100%}.trix-content .attachment--preview .attachment__caption{color:#666;font-size:.9em;line-height:1.2}.trix-content .attachment--file{border:1px solid #bbb;border-radius:5px;color:#333;line-height:1;margin:0 2px 2px;padding:.4em 1em}.trix-content .attachment-gallery{display:flex;flex-wrap:wrap;position:relative}.trix-content .attachment-gallery .attachment{flex:1 0 33%;max-width:33%;padding:0 .5em}.trix-content .attachment-gallery.attachment-gallery--2 .attachment,.trix-content .attachment-gallery.attachment-gallery--4 .attachment{flex-basis:50%;max-width:50%}","",{version:3,sources:["webpack://./node_modules/trix/dist/trix.css"],names:[],mappings:"AA4VI,gBACkB,CAxVtB,YACE,qBAAsB,CACtB,iBAAkB,CAClB,QAAS,CAET,cAAe,CACf,YAAa,CAFb,iBAEe,CACjB,eACE,qBAAwB,CAC1B,8BACE,YAAa,CACb,gBAAiB,CACjB,6BAA8B,CAC9B,eAAkB,CACpB,gCAKE,2BAAyB,CACzB,iBAAkB,CADlB,kBAAyB,CAAzB,gBAAyB,CAJzB,YAAa,CACb,kBAIoB,CACpB,kDACE,iBAAoB,CACpB,gCACE,kDACE,aAAgB,CAAE,CAC1B,uCACE,WAAc,CACd,gCACE,uCACE,YAAe,CAAE,CACvB,0BAaE,sBAAuB,CAFvB,WAA6B,CAA7B,4BAA6B,CAC7B,eAAgB,CAThB,oBAAyB,CADzB,UAAW,CAEX,eAAiB,CACjB,eAAgB,CAGhB,QAAS,CACT,YAAa,CAFb,cAAgB,CANhB,iBAAkB,CAKlB,kBAOyB,CACzB,4CACE,0BAA6B,CAC/B,sCACE,kBAAmB,CACnB,UAAc,CAChB,yCACE,cAAiB,CACnB,mCACE,sBAA6B,CAC/B,gCACE,0BACE,qBAAuB,CACvB,cAAkB,CAAE,CAC1B,gCACE,iBAAkB,CAElB,YAAa,CACb,0BAA4B,CAC5B,mBAAoB,CAHpB,WAGsB,CACtB,gCACE,gCACE,UAAW,CACX,4BAAgC,CAAE,CACtC,uCASE,uBAA2B,CAC3B,2BAA4B,CAC5B,uBAAwB,CANxB,QAAS,CAGT,UAAW,CAPX,oBAAqB,CAKrB,MAAO,CACP,UAAY,CALZ,iBAAkB,CAElB,OAAQ,CADR,KAQ0B,CAC1B,gCACE,uCAEE,OAAQ,CADR,QACU,CAAE,CAClB,mDACE,SAAY,CACd,gDACE,YAAgB,CACpB,8CACE,kSAAqY,CAErY,SAAU,CADV,MACY,CACd,4CACE,2TAA8Y,CAChZ,8CACE,qMAA0O,CAC5O,4CACE,skBAAqwB,CACvwB,8CACE,qnBAA4tB,CAC9tB,6CACE,0MAAuP,CACzP,iDACE,kNAA+P,CACjQ,4CACE,8PAA+T,CACjU,mDACE,iTAA0a,CAC5a,mDACE,gSAA2U,CAC7U,4CACE,gPAA+S,CACjT,4CACE,qOAAkS,CACpS,8DACE,uPAAsS,CACxS,8DACE,4PAA6S,CAC/S,2BACE,iBAAoB,CACtB,0BAOE,eAAgB,CAGhB,iBAAkB,CADlB,yBAA0B,CAD1B,0BAA4B,CAH5B,eAAiB,CAFjB,MAAO,CAGP,iBAAkB,CALlB,iBAAkB,CAGlB,OAAQ,CAFR,KAAM,CASN,SAAY,CACd,iCAUE,uBAAwB,CACxB,oBAAqB,CAJrB,qBAAsB,CADtB,qBAAsB,CADtB,iBAAkB,CAGlB,eAAgB,CAPhB,iBAAkB,CAClB,eAAmB,CAEnB,iBAAkB,CAKlB,YAAa,CANb,iBAQuB,CACvB,kDACE,4BAAoC,CACxC,kCAGE,kBAAmB,CAFnB,iBAAkB,CAClB,YACqB,CACvB,gCACE,eAAkB,CACpB,uCAEE,oBAAqB,CADrB,YACuB,CACvB,mDACE,MAAS,CACX,0DACE,gBAAiB,CACjB,QAAW,CACf,iEACE,wBAAyB,CACzB,qBAAsB,CAEtB,gBAAmB,CAKrB,uJAEE,eAAkB,CAFpB,wIAEE,eAAkB,CAEpB,iFACE,oBAAuB,CACzB,4EACE,oBAAuB,CAEzB,4DAEE,wBAAyB,CADzB,8BAC2B,CAC7B,+CACE,8BAAiC,CACnC,wBACE,iBAAoB,CACpB,8BACE,cAAiB,CACrB,4DACE,WAAc,CAChB,kCAGE,WAAY,CAEZ,OAAQ,CAER,UAAY,CANZ,iBAAkB,CAGlB,oBAAqB,CAIrB,8BAAiC,CAFjC,SAAU,CAJV,SAMmC,CACnC,+CACE,SAAY,CAChB,wCAaE,uBAAwB,CACxB,oBAAqB,CAHrB,WAAY,CAHZ,aAAc,CAPd,oBAAqB,CAKrB,mBAAoB,CADpB,iBAAkB,CAElB,mBAAoB,CAJpB,QAAS,CAST,YAAa,CARb,SAAU,CAKV,iBAAkB,CAClB,kBAAmB,CARnB,UAYuB,CACzB,iCAIE,MAAO,CAHP,iBAAkB,CAKlB,iBAAkB,CAHlB,SAAW,CAEX,UAAW,CAHX,SAIoB,CACtB,+BACE,mBAAsB,CACxB,yBAWE,sBAAuB,CAFvB,WAAY,CACZ,eAAgB,CAPhB,UAAW,CADX,UAAW,CAGX,aAAc,CAEd,QAAS,CACT,YAAa,CAFb,cAAgB,CALhB,iBAAkB,CAGlB,kBAOyB,CACzB,2CACE,0BAA6B,CAC/B,qCACE,kBAAqB,CACvB,wCACE,cAAiB,CACrB,iCASE,qBAAsB,CACtB,0BAA2B,CAF3B,iBAAkB,CAGlB,sCAA2C,CAT3C,oBAAqB,CAIrB,YAAa,CACb,iBAAkB,CAHlB,YAAa,CADb,SAAU,CAFV,mBAAoB,CAIpB,WAM6C,CAC7C,wCASE,wRAAyW,CACzW,uBAA2B,CAC3B,2BAA4B,CAC5B,mBAAoB,CAPpB,QAAS,CAGT,UAAW,CAPX,oBAAqB,CAKrB,MAAO,CACP,UAAY,CALZ,iBAAkB,CAElB,OAAQ,CADR,KASsB,CACxB,uCACE,iBAAoB,CACpB,8CACE,SAAY,CAClB,4CACE,iBAAoB,CACtB,kCASE,+BAAoC,CACpC,iBAAkB,CAFlB,UAAW,CADX,cAAgB,CALhB,QAAS,CAGT,aAAc,CACd,iBAAoB,CALpB,iBAAkB,CAElB,OAAQ,CACR,yBAMoB,CACpB,oDACE,oBAAqB,CACrB,cAAe,CAEf,eAAgB,CAChB,sBAAuB,CAFvB,qBAAsB,CAGtB,kBAAqB,CACvB,oDACE,gBAAkB,CAClB,kBAAqB,CAEzB,cACE,eAAkB,CAClB,gBACE,qBAAsB,CACtB,QAAS,CACT,SAAY,CACd,iBACE,eAAgB,CAChB,eAAkB,CACpB,yBAEE,iBAAwB,CAAxB,uBAAwB,CACxB,gBAAkB,CAClB,iBAAqB,CACvB,qEAGE,uBAAyB,CACzB,iBAAmB,CACnB,kBAAsB,CACxB,iBACE,eAAkB,CACpB,2BACE,gBAAmB,CACrB,kBAQE,qBAAsB,CAPtB,oBAAqB,CAGrB,qBAAsB,CACtB,cAAgB,CAIhB,eAAgB,CAHhB,YAAc,CAHd,kBAAmB,CAInB,eAAgB,CALhB,UAOkB,CACpB,kBAEE,WAAY,CADZ,cACc,CAChB,0BACE,oBAAqB,CAErB,cAAe,CADf,iBACiB,CACjB,4BACE,aAAc,CACd,oBAAuB,CACvB,4EACE,aAAgB,CACtB,mCACE,iBAAoB,CACpB,8EACE,aAAgB,CACpB,mCAEE,iBAAkB,CADlB,UACoB,CACpB,wDACE,UAAW,CACX,cAAgB,CAChB,eAAkB,CACtB,gCAKE,qBAAsB,CACtB,iBAAkB,CALlB,UAAW,CACX,aAAc,CACd,gBAAqB,CACrB,gBAEoB,CACtB,kCACE,YAAa,CACb,cAAe,CACf,iBAAoB,CACpB,8CACE,YAAa,CAEb,aAAc,CADd,cACgB,CAClB,wIACE,cAAe,CACf,aAAgB",sourcesContent:['@charset "UTF-8";\n/*\nTrix 1.3.1\nCopyright © 2020 Basecamp, LLC\nhttp://trix-editor.org/*/\ntrix-editor {\n  border: 1px solid #bbb;\n  border-radius: 3px;\n  margin: 0;\n  padding: 0.4em 0.6em;\n  min-height: 5em;\n  outline: none; }\ntrix-toolbar * {\n  box-sizing: border-box; }\ntrix-toolbar .trix-button-row {\n  display: flex;\n  flex-wrap: nowrap;\n  justify-content: space-between;\n  overflow-x: auto; }\ntrix-toolbar .trix-button-group {\n  display: flex;\n  margin-bottom: 10px;\n  border: 1px solid #bbb;\n  border-top-color: #ccc;\n  border-bottom-color: #888;\n  border-radius: 3px; }\n  trix-toolbar .trix-button-group:not(:first-child) {\n    margin-left: 1.5vw; }\n    @media (max-device-width: 768px) {\n      trix-toolbar .trix-button-group:not(:first-child) {\n        margin-left: 0; } }\ntrix-toolbar .trix-button-group-spacer {\n  flex-grow: 1; }\n  @media (max-device-width: 768px) {\n    trix-toolbar .trix-button-group-spacer {\n      display: none; } }\ntrix-toolbar .trix-button {\n  position: relative;\n  float: left;\n  color: rgba(0, 0, 0, 0.6);\n  font-size: 0.75em;\n  font-weight: 600;\n  white-space: nowrap;\n  padding: 0 0.5em;\n  margin: 0;\n  outline: none;\n  border: none;\n  border-bottom: 1px solid #ddd;\n  border-radius: 0;\n  background: transparent; }\n  trix-toolbar .trix-button:not(:first-child) {\n    border-left: 1px solid #ccc; }\n  trix-toolbar .trix-button.trix-active {\n    background: #cbeefa;\n    color: black; }\n  trix-toolbar .trix-button:not(:disabled) {\n    cursor: pointer; }\n  trix-toolbar .trix-button:disabled {\n    color: rgba(0, 0, 0, 0.125); }\n  @media (max-device-width: 768px) {\n    trix-toolbar .trix-button {\n      letter-spacing: -0.01em;\n      padding: 0 0.3em; } }\ntrix-toolbar .trix-button--icon {\n  font-size: inherit;\n  width: 2.6em;\n  height: 1.6em;\n  max-width: calc(0.8em + 4vw);\n  text-indent: -9999px; }\n  @media (max-device-width: 768px) {\n    trix-toolbar .trix-button--icon {\n      height: 2em;\n      max-width: calc(0.8em + 3.5vw); } }\n  trix-toolbar .trix-button--icon::before {\n    display: inline-block;\n    position: absolute;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    opacity: 0.6;\n    content: "";\n    background-position: center;\n    background-repeat: no-repeat;\n    background-size: contain; }\n    @media (max-device-width: 768px) {\n      trix-toolbar .trix-button--icon::before {\n        right: 6%;\n        left: 6%; } }\n  trix-toolbar .trix-button--icon.trix-active::before {\n    opacity: 1; }\n  trix-toolbar .trix-button--icon:disabled::before {\n    opacity: 0.125; }\ntrix-toolbar .trix-button--icon-attach::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M16.5%206v11.5a4%204%200%201%201-8%200V5a2.5%202.5%200%200%201%205%200v10.5a1%201%200%201%201-2%200V6H10v9.5a2.5%202.5%200%200%200%205%200V5a4%204%200%201%200-8%200v12.5a5.5%205.5%200%200%200%2011%200V6h-1.5z%22%2F%3E%3C%2Fsvg%3E);\n  top: 8%;\n  bottom: 4%; }\ntrix-toolbar .trix-button--icon-bold::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M15.6%2011.8c1-.7%201.6-1.8%201.6-2.8a4%204%200%200%200-4-4H7v14h7c2.1%200%203.7-1.7%203.7-3.8%200-1.5-.8-2.8-2.1-3.4zM10%207.5h3a1.5%201.5%200%201%201%200%203h-3v-3zm3.5%209H10v-3h3.5a1.5%201.5%200%201%201%200%203z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-italic::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M10%205v3h2.2l-3.4%208H6v3h8v-3h-2.2l3.4-8H18V5h-8z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-link::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M9.88%2013.7a4.3%204.3%200%200%201%200-6.07l3.37-3.37a4.26%204.26%200%200%201%206.07%200%204.3%204.3%200%200%201%200%206.06l-1.96%201.72a.91.91%200%201%201-1.3-1.3l1.97-1.71a2.46%202.46%200%200%200-3.48-3.48l-3.38%203.37a2.46%202.46%200%200%200%200%203.48.91.91%200%201%201-1.3%201.3z%22%2F%3E%3Cpath%20d%3D%22M4.25%2019.46a4.3%204.3%200%200%201%200-6.07l1.93-1.9a.91.91%200%201%201%201.3%201.3l-1.93%201.9a2.46%202.46%200%200%200%203.48%203.48l3.37-3.38c.96-.96.96-2.52%200-3.48a.91.91%200%201%201%201.3-1.3%204.3%204.3%200%200%201%200%206.07l-3.38%203.38a4.26%204.26%200%200%201-6.07%200z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-strike::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M12.73%2014l.28.14c.26.15.45.3.57.44.12.14.18.3.18.5%200%20.3-.15.56-.44.75-.3.2-.76.3-1.39.3A13.52%2013.52%200%200%201%207%2014.95v3.37a10.64%2010.64%200%200%200%204.84.88c1.26%200%202.35-.19%203.28-.56.93-.37%201.64-.9%202.14-1.57s.74-1.45.74-2.32c0-.26-.02-.51-.06-.75h-5.21zm-5.5-4c-.08-.34-.12-.7-.12-1.1%200-1.29.52-2.3%201.58-3.02%201.05-.72%202.5-1.08%204.34-1.08%201.62%200%203.28.34%204.97%201l-1.3%202.93c-1.47-.6-2.73-.9-3.8-.9-.55%200-.96.08-1.2.26-.26.17-.38.38-.38.64%200%20.27.16.52.48.74.17.12.53.3%201.05.53H7.23zM3%2013h18v-2H3v2z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-quote::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20version%3D%221%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M6%2017h3l2-4V7H5v6h3zm8%200h3l2-4V7h-6v6h3z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-heading-1::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20version%3D%221%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M12%209v3H9v7H6v-7H3V9h9zM8%204h14v3h-6v12h-3V7H8V4z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-code::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M18.2%2012L15%2015.2l1.4%201.4L21%2012l-4.6-4.6L15%208.8l3.2%203.2zM5.8%2012L9%208.8%207.6%207.4%203%2012l4.6%204.6L9%2015.2%205.8%2012z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-bullet-list::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20version%3D%221%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%204a2%202%200%201%200%200%204%202%202%200%200%200%200-4zm0%206a2%202%200%201%200%200%204%202%202%200%200%200%200-4zm0%206a2%202%200%201%200%200%204%202%202%200%200%200%200-4zm4%203h14v-2H8v2zm0-6h14v-2H8v2zm0-8v2h14V5H8z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-number-list::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M2%2017h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1%203h1.8L2%2013.1v.9h3v-1H3.2L5%2010.9V10H2v1zm5-6v2h14V5H7zm0%2014h14v-2H7v2zm0-6h14v-2H7v2z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-undo::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M12.5%208c-2.6%200-5%201-6.9%202.6L2%207v9h9l-3.6-3.6A8%208%200%200%201%2020%2016l2.4-.8a10.5%2010.5%200%200%200-10-7.2z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-redo::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M18.4%2010.6a10.5%2010.5%200%200%200-16.9%204.6L4%2016a8%208%200%200%201%2012.7-3.6L13%2016h9V7l-3.6%203.6z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-decrease-nesting-level::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M3%2019h19v-2H3v2zm7-6h12v-2H10v2zm-8.3-.3l2.8%202.9L6%2014.2%204%2012l2-2-1.4-1.5L1%2012l.7.7zM3%205v2h19V5H3z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-button--icon-increase-nesting-level::before {\n  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M3%2019h19v-2H3v2zm7-6h12v-2H10v2zm-6.9-1L1%2014.2l1.4%201.4L6%2012l-.7-.7-2.8-2.8L1%209.9%203.1%2012zM3%205v2h19V5H3z%22%2F%3E%3C%2Fsvg%3E); }\ntrix-toolbar .trix-dialogs {\n  position: relative; }\ntrix-toolbar .trix-dialog {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  font-size: 0.75em;\n  padding: 15px 10px;\n  background: #fff;\n  box-shadow: 0 0.3em 1em #ccc;\n  border-top: 2px solid #888;\n  border-radius: 5px;\n  z-index: 5; }\ntrix-toolbar .trix-input--dialog {\n  font-size: inherit;\n  font-weight: normal;\n  padding: 0.5em 0.8em;\n  margin: 0 10px 0 0;\n  border-radius: 3px;\n  border: 1px solid #bbb;\n  background-color: #fff;\n  box-shadow: none;\n  outline: none;\n  -webkit-appearance: none;\n  -moz-appearance: none; }\n  trix-toolbar .trix-input--dialog.validate:invalid {\n    box-shadow: #F00 0px 0px 1.5px 1px; }\ntrix-toolbar .trix-button--dialog {\n  font-size: inherit;\n  padding: 0.5em;\n  border-bottom: none; }\ntrix-toolbar .trix-dialog--link {\n  max-width: 600px; }\ntrix-toolbar .trix-dialog__link-fields {\n  display: flex;\n  align-items: baseline; }\n  trix-toolbar .trix-dialog__link-fields .trix-input {\n    flex: 1; }\n  trix-toolbar .trix-dialog__link-fields .trix-button-group {\n    flex: 0 0 content;\n    margin: 0; }\ntrix-editor [data-trix-mutable]:not(.attachment__caption-editor) {\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none; }\n\ntrix-editor [data-trix-mutable]::-moz-selection,\ntrix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {\n  background: none; }\ntrix-editor [data-trix-mutable]::selection,\ntrix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {\n  background: none; }\n\ntrix-editor [data-trix-mutable].attachment__caption-editor:focus::-moz-selection {\n  background: highlight; }\ntrix-editor [data-trix-mutable].attachment__caption-editor:focus::selection {\n  background: highlight; }\n\ntrix-editor [data-trix-mutable].attachment.attachment--file {\n  box-shadow: 0 0 0 2px highlight;\n  border-color: transparent; }\ntrix-editor [data-trix-mutable].attachment img {\n  box-shadow: 0 0 0 2px highlight; }\ntrix-editor .attachment {\n  position: relative; }\n  trix-editor .attachment:hover {\n    cursor: default; }\ntrix-editor .attachment--preview .attachment__caption:hover {\n  cursor: text; }\ntrix-editor .attachment__progress {\n  position: absolute;\n  z-index: 1;\n  height: 20px;\n  top: calc(50% - 10px);\n  left: 5%;\n  width: 90%;\n  opacity: 0.9;\n  transition: opacity 200ms ease-in; }\n  trix-editor .attachment__progress[value="100"] {\n    opacity: 0; }\ntrix-editor .attachment__caption-editor {\n  display: inline-block;\n  width: 100%;\n  margin: 0;\n  padding: 0;\n  font-size: inherit;\n  font-family: inherit;\n  line-height: inherit;\n  color: inherit;\n  text-align: center;\n  vertical-align: top;\n  border: none;\n  outline: none;\n  -webkit-appearance: none;\n  -moz-appearance: none; }\ntrix-editor .attachment__toolbar {\n  position: absolute;\n  z-index: 1;\n  top: -0.9em;\n  left: 0;\n  width: 100%;\n  text-align: center; }\ntrix-editor .trix-button-group {\n  display: inline-flex; }\ntrix-editor .trix-button {\n  position: relative;\n  float: left;\n  color: #666;\n  white-space: nowrap;\n  font-size: 80%;\n  padding: 0 0.8em;\n  margin: 0;\n  outline: none;\n  border: none;\n  border-radius: 0;\n  background: transparent; }\n  trix-editor .trix-button:not(:first-child) {\n    border-left: 1px solid #ccc; }\n  trix-editor .trix-button.trix-active {\n    background: #cbeefa; }\n  trix-editor .trix-button:not(:disabled) {\n    cursor: pointer; }\ntrix-editor .trix-button--remove {\n  text-indent: -9999px;\n  display: inline-block;\n  padding: 0;\n  outline: none;\n  width: 1.8em;\n  height: 1.8em;\n  line-height: 1.8em;\n  border-radius: 50%;\n  background-color: #fff;\n  border: 2px solid highlight;\n  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }\n  trix-editor .trix-button--remove::before {\n    display: inline-block;\n    position: absolute;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    opacity: 0.7;\n    content: "";\n    background-image: url(data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.4L17.6%205%2012%2010.6%206.4%205%205%206.4l5.6%205.6L5%2017.6%206.4%2019l5.6-5.6%205.6%205.6%201.4-1.4-5.6-5.6z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E);\n    background-position: center;\n    background-repeat: no-repeat;\n    background-size: 90%; }\n  trix-editor .trix-button--remove:hover {\n    border-color: #333; }\n    trix-editor .trix-button--remove:hover::before {\n      opacity: 1; }\ntrix-editor .attachment__metadata-container {\n  position: relative; }\ntrix-editor .attachment__metadata {\n  position: absolute;\n  left: 50%;\n  top: 2em;\n  transform: translate(-50%, 0);\n  max-width: 90%;\n  padding: 0.1em 0.6em;\n  font-size: 0.8em;\n  color: #fff;\n  background-color: rgba(0, 0, 0, 0.7);\n  border-radius: 3px; }\n  trix-editor .attachment__metadata .attachment__name {\n    display: inline-block;\n    max-width: 100%;\n    vertical-align: bottom;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap; }\n  trix-editor .attachment__metadata .attachment__size {\n    margin-left: 0.2em;\n    white-space: nowrap; }\n@charset "UTF-8";\n.trix-content {\n  line-height: 1.5; }\n  .trix-content * {\n    box-sizing: border-box;\n    margin: 0;\n    padding: 0; }\n  .trix-content h1 {\n    font-size: 1.2em;\n    line-height: 1.2; }\n  .trix-content blockquote {\n    border: 0 solid #ccc;\n    border-left-width: 0.3em;\n    margin-left: 0.3em;\n    padding-left: 0.6em; }\n  .trix-content [dir=rtl] blockquote,\n  .trix-content blockquote[dir=rtl] {\n    border-width: 0;\n    border-right-width: 0.3em;\n    margin-right: 0.3em;\n    padding-right: 0.6em; }\n  .trix-content li {\n    margin-left: 1em; }\n  .trix-content [dir=rtl] li {\n    margin-right: 1em; }\n  .trix-content pre {\n    display: inline-block;\n    width: 100%;\n    vertical-align: top;\n    font-family: monospace;\n    font-size: 0.9em;\n    padding: 0.5em;\n    white-space: pre;\n    background-color: #eee;\n    overflow-x: auto; }\n  .trix-content img {\n    max-width: 100%;\n    height: auto; }\n  .trix-content .attachment {\n    display: inline-block;\n    position: relative;\n    max-width: 100%; }\n    .trix-content .attachment a {\n      color: inherit;\n      text-decoration: none; }\n      .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {\n        color: inherit; }\n  .trix-content .attachment__caption {\n    text-align: center; }\n    .trix-content .attachment__caption .attachment__name + .attachment__size::before {\n      content: \' · \'; }\n  .trix-content .attachment--preview {\n    width: 100%;\n    text-align: center; }\n    .trix-content .attachment--preview .attachment__caption {\n      color: #666;\n      font-size: 0.9em;\n      line-height: 1.2; }\n  .trix-content .attachment--file {\n    color: #333;\n    line-height: 1;\n    margin: 0 2px 2px 2px;\n    padding: 0.4em 1em;\n    border: 1px solid #bbb;\n    border-radius: 5px; }\n  .trix-content .attachment-gallery {\n    display: flex;\n    flex-wrap: wrap;\n    position: relative; }\n    .trix-content .attachment-gallery .attachment {\n      flex: 1 0 33%;\n      padding: 0 0.5em;\n      max-width: 33%; }\n    .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {\n      flex-basis: 50%;\n      max-width: 50%; }\n'],sourceRoot:""}]);const s=a},23645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},94015:e=>{"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n=t(e,4),r=n[1],i=n[3];if(!i)return r;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),s="/*# ".concat(a," */"),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[r].concat(l).concat([s]).join("\n")}return[r].join("\n")}},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?o.arrayMerge(e,n,o):s(e,n,o):r(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},8091:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var l=o[a],c=Object.getOwnPropertyDescriptor(i,l);void 0!==c&&c.enumerable&&(n[l]=i[l])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},82702:function(e,t,n){var r=n(34155);e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var i=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,a=void 0,s=void 0,l=function(e,t){w[o]=e,w[o+1]=t,2===(o+=2)&&(s?s(A):C())};function c(e){s=e}function u(e){l=e}var p="undefined"!=typeof window?window:void 0,d=p||{},f=d.MutationObserver||d.WebKitMutationObserver,h="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),m="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function g(){return function(){return r.nextTick(A)}}function v(){return void 0!==a?function(){a(A)}:x()}function y(){var e=0,t=new f(A),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function b(){var e=new MessageChannel;return e.port1.onmessage=A,function(){return e.port2.postMessage(0)}}function x(){var e=setTimeout;return function(){return e(A,1)}}var w=new Array(1e3);function A(){for(var e=0;e<o;e+=2)(0,w[e])(w[e+1]),w[e]=void 0,w[e+1]=void 0;o=0}function _(){try{var e=Function("return this")().require("vertx");return a=e.runOnLoop||e.runOnContext,v()}catch(e){return x()}}var C=void 0;function k(e,t){var n=this,r=new this.constructor(T);void 0===r[E]&&G(r);var i=n._state;if(i){var o=arguments[i-1];l((function(){return W(i,r,o,n._result)}))}else q(n,r,e,t);return r}function S(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(T);return F(n,e),n}C=h?g():f?y():m?b():void 0===p?_():x();var E=Math.random().toString(36).substring(2);function T(){}var O=void 0,M=1,L=2;function B(){return new TypeError("You cannot resolve a promise with itself")}function D(){return new TypeError("A promises callback cannot return that same promise.")}function N(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function j(e,t,n){l((function(e){var r=!1,i=N(n,t,(function(n){r||(r=!0,t!==n?F(e,n):z(e,n))}),(function(t){r||(r=!0,$(e,t))}),"Settle: "+(e._label||" unknown promise"));!r&&i&&(r=!0,$(e,i))}),e)}function P(e,t){t._state===M?z(e,t._result):t._state===L?$(e,t._result):q(t,void 0,(function(t){return F(e,t)}),(function(t){return $(e,t)}))}function R(e,n,r){n.constructor===e.constructor&&r===k&&n.constructor.resolve===S?P(e,n):void 0===r?z(e,n):t(r)?j(e,n,r):z(e,n)}function F(t,n){if(t===n)$(t,B());else if(e(n)){var r=void 0;try{r=n.then}catch(e){return void $(t,e)}R(t,n,r)}else z(t,n)}function I(e){e._onerror&&e._onerror(e._result),H(e)}function z(e,t){e._state===O&&(e._result=t,e._state=M,0!==e._subscribers.length&&l(H,e))}function $(e,t){e._state===O&&(e._state=L,e._result=t,l(I,e))}function q(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+M]=n,i[o+L]=r,0===o&&e._state&&l(H,e)}function H(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?W(n,r,i,o):i(o);e._subscribers.length=0}}function W(e,n,r,i){var o=t(r),a=void 0,s=void 0,l=!0;if(o){try{a=r(i)}catch(e){l=!1,s=e}if(n===a)return void $(n,D())}else a=i;n._state!==O||(o&&l?F(n,a):!1===l?$(n,s):e===M?z(n,a):e===L&&$(n,a))}function U(e,t){try{t((function(t){F(e,t)}),(function(t){$(e,t)}))}catch(t){$(e,t)}}var V=0;function K(){return V++}function G(e){e[E]=V++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Y(){return new Error("Array Methods must be provided an Array")}var X=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(T),this.promise[E]||G(this.promise),i(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?z(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&z(this.promise,this._result))):$(this.promise,Y())}return e.prototype._enumerate=function(e){for(var t=0;this._state===O&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===S){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===k&&e._state!==O)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===ne){var s=new n(T);a?$(s,o):R(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===O&&(this._remaining--,e===L?$(r,n):this._result[t]=n),0===this._remaining&&z(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;q(e,void 0,(function(e){return n._settledAt(M,t,e)}),(function(e){return n._settledAt(L,t,e)}))},e}();function J(e){return new X(this,e).promise}function Z(e){var t=this;return i(e)?new t((function(n,r){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function Q(e){var t=new this(T);return $(t,e),t}function ee(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function te(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ne=function(){function e(t){this[E]=K(),this._result=this._state=void 0,this._subscribers=[],T!==t&&("function"!=typeof t&&ee(),this instanceof e?U(this,t):te())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=this,r=n.constructor;return t(e)?n.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}();function re(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=ne}return ne.prototype.then=k,ne.all=J,ne.race=Z,ne.resolve=S,ne.reject=Q,ne._setScheduler=c,ne._setAsap=u,ne._asap=l,ne.polyfill=re,ne.Promise=ne,ne}()},17187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},49804:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,i){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)r.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&r.call(i,e[s],s,e)}},31528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.record(t)}return n(e,[{key:"all",value:function(){return this.errors}},{key:"has",value:function(e){var t=this.errors.hasOwnProperty(e);t||(t=Object.keys(this.errors).filter((function(t){return t.startsWith(e+".")||t.startsWith(e+"[")})).length>0);return t}},{key:"first",value:function(e){return this.get(e)[0]}},{key:"get",value:function(e){return this.errors[e]||[]}},{key:"any",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===t.length)return Object.keys(this.errors).length>0;var n={};return t.forEach((function(t){return n[t]=e.get(t)})),n}},{key:"record",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.errors=e}},{key:"clear",value:function(e){if(e){var t=Object.assign({},this.errors);Object.keys(t).filter((function(t){return t===e||t.startsWith(e+".")||t.startsWith(e+"[")})).forEach((function(e){return delete t[e]})),this.errors=t}else this.errors={}}}]),e}();t.default=r},94365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(31528),s=(r=a)&&r.__esModule?r:{default:r},l=n(27019);var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processing=!1,this.successful=!1,this.withData(t).withOptions(n).withErrors({})}return o(e,[{key:"withData",value:function(e){for(var t in(0,l.isArray)(e)&&(e=e.reduce((function(e,t){return e[t]="",e}),{})),this.setInitialValues(e),this.errors=new s.default,this.processing=!1,this.successful=!1,e)(0,l.guardAgainstReservedFieldName)(t),this[t]=e[t];return this}},{key:"withErrors",value:function(e){return this.errors=new s.default(e),this}},{key:"withOptions",value:function(e){this.__options={resetOnSuccess:!0},e.hasOwnProperty("resetOnSuccess")&&(this.__options.resetOnSuccess=e.resetOnSuccess),e.hasOwnProperty("onSuccess")&&(this.onSuccess=e.onSuccess),e.hasOwnProperty("onFail")&&(this.onFail=e.onFail);var t="undefined"!=typeof window&&window.axios;if(this.__http=e.http||t||n(9669),!this.__http)throw new Error("No http library provided. Either pass an http option, or install axios.");return this}},{key:"data",value:function(){var e={};for(var t in this.initial)e[t]=this[t];return e}},{key:"only",value:function(e){var t=this;return e.reduce((function(e,n){return e[n]=t[n],e}),{})}},{key:"reset",value:function(){(0,l.merge)(this,this.initial),this.errors.clear()}},{key:"setInitialValues",value:function(e){this.initial={},(0,l.merge)(this.initial,e)}},{key:"populate",value:function(e){var t=this;return Object.keys(e).forEach((function(n){(0,l.guardAgainstReservedFieldName)(n),t.hasOwnProperty(n)&&(0,l.merge)(t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,e[n]))})),this}},{key:"clear",value:function(){for(var e in this.initial)this[e]="";this.errors.clear()}},{key:"post",value:function(e){return this.submit("post",e)}},{key:"put",value:function(e){return this.submit("put",e)}},{key:"patch",value:function(e){return this.submit("patch",e)}},{key:"delete",value:function(e){return this.submit("delete",e)}},{key:"submit",value:function(e,t){var n=this;return this.__validateRequestType(e),this.errors.clear(),this.processing=!0,this.successful=!1,new Promise((function(r,i){n.__http[e](t,n.hasFiles()?(0,l.objectToFormData)(n.data()):n.data()).then((function(e){n.processing=!1,n.onSuccess(e.data),r(e.data)})).catch((function(e){n.processing=!1,n.onFail(e),i(e)}))}))}},{key:"hasFiles",value:function(){for(var e in this.initial)if(this.hasFilesDeep(this[e]))return!0;return!1}},{key:"hasFilesDeep",value:function(e){if(null===e)return!1;if("object"===(void 0===e?"undefined":i(e)))for(var t in e)if(e.hasOwnProperty(t)&&this.hasFilesDeep(e[t]))return!0;if(Array.isArray(e))for(var n in e)if(e.hasOwnProperty(n))return this.hasFilesDeep(e[n]);return(0,l.isFile)(e)}},{key:"onSuccess",value:function(e){this.successful=!0,this.__options.resetOnSuccess&&this.reset()}},{key:"onFail",value:function(e){this.successful=!1,e.response&&e.response.data.errors&&this.errors.record(e.response.data.errors)}},{key:"hasError",value:function(e){return this.errors.has(e)}},{key:"getError",value:function(e){return this.errors.first(e)}},{key:"getErrors",value:function(e){return this.errors.get(e)}},{key:"__validateRequestType",value:function(e){var t=["get","delete","head","post","put","patch"];if(-1===t.indexOf(e))throw new Error("`"+e+"` is not a valid request type, must be one of: `"+t.join("`, `")+"`.")}}],[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(new e).withData(t)}}]),e}();t.default=c},48062:(e,t,n)=>{"use strict";var r=n(94365);Object.defineProperty(t,"ZP",{enumerable:!0,get:function(){return o(r).default}});var i=n(31528);function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"D1",{enumerable:!0,get:function(){return o(i).default}})},69924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guardAgainstReservedFieldName=function(e){if(-1!==n.indexOf(e))throw new Error("Field name "+e+" isn't allowed to be used in a Form or Errors instance.")};var n=t.reservedFieldNames=["__http","__options","__validateRequestType","clear","data","delete","errors","getError","getErrors","hasError","initial","onFail","only","onSuccess","patch","populate","post","processing","successful","put","reset","submit","withData","withErrors","withOptions"]},27823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new FormData,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===e||"undefined"===e||0===e.length)return t.append(n,e);for(var r in e)e.hasOwnProperty(r)&&o(t,i(n,r),e[r]);return t}function i(e,t){return e?e+"["+t+"]":t}function o(e,t,i){return i instanceof Date?e.append(t,i.toISOString()):i instanceof File?e.append(t,i,i.name):"boolean"==typeof i?e.append(t,i?"1":"0"):null===i?e.append(t,""):"object"!==(void 0===i?"undefined":n(i))?e.append(t,i):void r(i,e,t)}t.objectToFormData=r},27019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(50933);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var i=n(27823);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var o=n(69924);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}))},50933:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){return e instanceof File||e instanceof FileList}function i(e){if(null===e)return null;if(r(e))return e;if(Array.isArray(e)){var t=[];for(var o in e)e.hasOwnProperty(o)&&(t[o]=i(e[o]));return t}if("object"===(void 0===e?"undefined":n(e))){var a={};for(var s in e)e.hasOwnProperty(s)&&(a[s]=i(e[s]));return a}return e}t.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.isFile=r,t.merge=function(e,t){for(var n in t)e[n]=i(t[n])},t.cloneDeep=i},17648:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,o=t.call(arguments,1),a=Math.max(0,r.length-o.length),s=[],l=0;l<a;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var n=r.apply(this,o.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,o.concat(t.call(arguments)))})),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i}},58612:(e,t,n)=>{"use strict";var r=n(17648);e.exports=Function.prototype.bind||r},40210:(e,t,n)=>{"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new a},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,p=n(41405)(),d=n(28185)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(f)try{null.error}catch(e){var v=f(f(e));g["%Error.prototype%"]=v}var y=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&f&&(n=f(i.prototype))}return g[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n(58612),w=n(17642),A=x.call(Function.call,Array.prototype.concat),_=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),k=x.call(Function.call,String.prototype.slice),S=x.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,O=function(e,t){var n,r=e;if(w(b,r)&&(r="%"+(n=b[r])[0]+"%"),w(g,r)){var o=g[r];if(o===h&&(o=y(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=k(e,0,1),n=k(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,E,(function(e,t,n,i){r[r.length]=n?C(i,T,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),s=o.name,c=o.value,u=!1,p=o.alias;p&&(r=p[0],_(n,A([0,1],p)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=k(h,0,1),v=k(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&f||(u=!0),w(g,s="%"+(r+="."+h)+"%"))c=g[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var y=l(c,h);c=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[h]}else f=w(c,h),c=c[h];f&&!u&&(g[s]=c)}}return c}},58908:(e,t,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},50840:(e,t,n)=>{var r;!function(i,o,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=o.createElement("div"),p="function",d=Math.round,f=Math.abs,h=Date.now;function m(e,t,n){return setTimeout(A(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(v(e,n[t],n),!0)}function v(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function y(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var b=y((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),x=y((function(e,t){return b(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&l(r,n)}function A(e,t){return function(){return e.apply(t,arguments)}}function _(e,t){return typeof e==p?e.apply(t&&t[0]||s,t):e}function C(e,t){return e===s?t:e}function k(e,t,n){v(O(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){v(O(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return e.indexOf(t)>-1}function O(e){return e.trim().split(/\s+/g)}function M(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function L(e){return Array.prototype.slice.call(e,0)}function B(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];M(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function D(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:t)in e)return r;o++}return s}var N=1;function j(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var P="ontouchstart"in i,R=D(i,"PointerEvent")!==s,F=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),I="touch",z="mouse",$=25,q=1,H=4,W=8,U=1,V=2,K=4,G=8,Y=16,X=V|K,J=G|Y,Z=X|J,Q=["x","y"],ee=["clientX","clientY"];function te(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){_(e.options.enable,[e])&&n.handler(t)},this.init()}function ne(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=t&q&&r-i==0,a=t&(H|W)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=re(t));i>1&&!n.firstMultiple?n.firstMultiple=re(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,l=a?a.center:o.center,c=t.center=ie(r);t.timeStamp=h(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=le(l,c),t.distance=se(l,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==q&&o.eventType!==H||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=ae(t.deltaX,t.deltaY);var u=oe(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=f(u.x)>f(u.y)?u.x:u.y,t.scale=a?(p=a.pointers,d=r,se(d[0],d[1],ee)/se(p[0],p[1],ee)):1,t.rotation=a?function(e,t){return le(t[1],t[0],ee)+le(e[1],e[0],ee)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=W&&(l>$||a.velocity===s)){var c=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,p=oe(l,c,u);r=p.x,i=p.y,n=f(p.x)>f(p.y)?p.x:p.y,o=ae(c,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var p,d;var m=e.element;E(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function re(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:t,center:ie(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ie(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:d(n/t),y:d(r/t)}}function oe(e,t,n){return{x:t/e||0,y:n/e||0}}function ae(e,t){return e===t?U:f(e)>=f(t)?e<0?V:K:t<0?G:Y}function se(e,t,n){n||(n=Q);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function le(e,t,n){n||(n=Q);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}te.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(j(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(j(this.element),this.evWin,this.domHandler)}};var ce={mousedown:q,mousemove:2,mouseup:H},ue="mousedown",pe="mousemove mouseup";function de(){this.evEl=ue,this.evWin=pe,this.pressed=!1,te.apply(this,arguments)}w(de,te,{handler:function(e){var t=ce[e.type];t&q&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=H),this.pressed&&(t&H&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:z,srcEvent:e}))}});var fe={pointerdown:q,pointermove:2,pointerup:H,pointercancel:W,pointerout:W},he={2:I,3:"pen",4:z,5:"kinect"},me="pointerdown",ge="pointermove pointerup pointercancel";function ve(){this.evEl=me,this.evWin=ge,te.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(me="MSPointerDown",ge="MSPointerMove MSPointerUp MSPointerCancel"),w(ve,te,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=fe[r],o=he[e.pointerType]||e.pointerType,a=o==I,s=M(t,e.pointerId,"pointerId");i&q&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):i&(H|W)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var ye={touchstart:q,touchmove:2,touchend:H,touchcancel:W};function be(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,te.apply(this,arguments)}function xe(e,t){var n=L(e.touches),r=L(e.changedTouches);return t&(H|W)&&(n=B(n.concat(r),"identifier",!0)),[n,r]}w(be,te,{handler:function(e){var t=ye[e.type];if(t===q&&(this.started=!0),this.started){var n=xe.call(this,e,t);t&(H|W)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:I,srcEvent:e})}}});var we={touchstart:q,touchmove:2,touchend:H,touchcancel:W},Ae="touchstart touchmove touchend touchcancel";function _e(){this.evTarget=Ae,this.targetIds={},te.apply(this,arguments)}function Ce(e,t){var n=L(e.touches),r=this.targetIds;if(t&(2|q)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=L(e.changedTouches),s=[],l=this.target;if(o=n.filter((function(e){return E(e.target,l)})),t===q)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),t&(H|W)&&delete r[a[i].identifier],i++;return s.length?[B(o.concat(s),"identifier",!0),s]:void 0}w(_e,te,{handler:function(e){var t=we[e.type],n=Ce.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:I,srcEvent:e})}});var ke=2500;function Se(){te.apply(this,arguments);var e=A(this.handler,this);this.touch=new _e(this.manager,e),this.mouse=new de(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Ee(e,t){e&q?(this.primaryTouch=t.changedPointers[0].identifier,Te.call(this,t)):e&(H|W)&&Te.call(this,t)}function Te(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),ke)}}function Oe(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}w(Se,te,{handler:function(e,t,n){var r=n.pointerType==I,i=n.pointerType==z;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)Ee.call(this,t,n);else if(i&&Oe.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Me=D(u.style,"touchAction"),Le=Me!==s,Be="compute",De="auto",Ne="manipulation",je="none",Pe="pan-x",Re="pan-y",Fe=function(){if(!Le)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function Ie(e,t){this.manager=e,this.set(t)}Ie.prototype={set:function(e){e==Be&&(e=this.compute()),Le&&this.manager.element.style&&Fe[e]&&(this.manager.element.style[Me]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return v(this.manager.recognizers,(function(t){_(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(T(e,je))return je;var t=T(e,Pe),n=T(e,Re);if(t&&n)return je;if(t||n)return t?Pe:Re;if(T(e,Ne))return Ne;return De}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=T(r,je)&&!Fe[je],o=T(r,Re)&&!Fe[Re],a=T(r,Pe)&&!Fe[Pe];if(i){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return i||o&&n&X||a&&n&J?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ze=1,$e=32;function qe(e){this.options=l({},this.defaults,e||{}),this.id=N++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=ze,this.simultaneous={},this.requireFail=[]}function He(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function We(e){return e==Y?"down":e==G?"up":e==V?"left":e==K?"right":""}function Ue(e,t){var n=t.manager;return n?n.get(e):e}function Ve(){qe.apply(this,arguments)}function Ke(){Ve.apply(this,arguments),this.pX=null,this.pY=null}function Ge(){Ve.apply(this,arguments)}function Ye(){qe.apply(this,arguments),this._timer=null,this._input=null}function Xe(){Ve.apply(this,arguments)}function Je(){Ve.apply(this,arguments)}function Ze(){qe.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Qe(e,t){return(t=t||{}).recognizers=C(t.recognizers,Qe.defaults.preset),new et(e,t)}qe.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ue(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)||(e=Ue(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===M(t,e=Ue(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=Ue(e,this);var t=M(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+He(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+He(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=$e},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&($e|ze)))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!_(this.options.enable,[this,t]))return this.reset(),void(this.state=$e);56&this.state&&(this.state=ze),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Ve,qe,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(n&W||!i)?16|t:r||i?n&H?8|t:2&t?4|t:2:$e}}),w(Ke,Ve,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var e=this.options.direction,t=[];return e&X&&t.push(Re),e&J&&t.push(Pe),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(t.direction&X?(i=0===o?U:o<0?V:K,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?U:a<0?G:Y,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Ve.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=We(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ge,Ve,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Ye,qe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[De]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(H|W)&&!i)this.reset();else if(e.eventType&q)this.reset(),this._timer=m((function(){this.state=8,this.tryEmit()}),t.time,this);else if(e.eventType&H)return 8;return $e},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&H?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),w(Xe,Ve,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Je,Ve,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:X|J,pointers:1},getTouchAction:function(){return Ke.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(X|J)?t=e.overallVelocity:n&X?t=e.overallVelocityX:n&J&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&e.eventType&H},emit:function(e){var t=We(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Ze,qe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ne]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&q&&0===this.count)return this.failTimeout();if(r&&i&&n){if(e.eventType!=H)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||se(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=m((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return $e},failTimeout:function(){return this._timer=m((function(){this.state=$e}),this.options.interval,this),$e},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Qe.VERSION="2.0.7",Qe.defaults={domEvents:!1,touchAction:Be,enable:!0,inputTarget:null,inputClass:null,preset:[[Xe,{enable:!1}],[Ge,{enable:!1},["rotate"]],[Je,{direction:X}],[Ke,{direction:X},["swipe"]],[Ze],[Ze,{event:"doubletap",taps:2},["tap"]],[Ye]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function et(e,t){var n;this.options=l({},Qe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ve:F?_e:P?Se:de))(n,ne),this.touchAction=new Ie(this,this.options.touchAction),tt(this,!0),v(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function tt(e,t){var n,r=e.element;r.style&&(v(e.options.cssProps,(function(i,o){n=D(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}et.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof qe)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=M(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return v(O(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return v(O(e),(function(e){t?n[e]&&n[e].splice(M(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&tt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Qe,{INPUT_START:q,INPUT_MOVE:2,INPUT_END:H,INPUT_CANCEL:W,STATE_POSSIBLE:ze,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:$e,DIRECTION_NONE:U,DIRECTION_LEFT:V,DIRECTION_RIGHT:K,DIRECTION_UP:G,DIRECTION_DOWN:Y,DIRECTION_HORIZONTAL:X,DIRECTION_VERTICAL:J,DIRECTION_ALL:Z,Manager:et,Input:te,TouchAction:Ie,TouchInput:_e,MouseInput:de,PointerEventInput:ve,TouchMouseInput:Se,SingleTouchInput:be,Recognizer:qe,AttrRecognizer:Ve,Tap:Ze,Pan:Ke,Swipe:Je,Pinch:Ge,Rotate:Xe,Press:Ye,on:k,off:S,each:v,merge:x,extend:b,assign:l,inherit:w,bindFn:A,prefixed:D}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Qe,(r=function(){return Qe}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},28185:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},41405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(55419);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},55419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},17642:(e,t,n)=>{"use strict";var r=n(58612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},70624:(e,t,n)=>{"use strict";var r,i,o,a=[n(15525),n(64785),n(28291),n(2709),n(42506),n(79176)],s=-1,l=[],c=!1;function u(){r&&i&&(r=!1,i.length?l=i.concat(l):s=-1,l.length&&p())}function p(){if(!r){c=!1,r=!0;for(var e=l.length,t=setTimeout(u);e;){for(i=l,l=[];i&&++s<e;)i[s].run();s=-1,e=l.length}i=null,s=-1,r=!1,clearTimeout(t)}}for(var d=-1,f=a.length;++d<f;)if(a[d]&&a[d].test&&a[d].test()){o=a[d].install(p);break}function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){var e=this.fun,t=this.array;switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);default:return e.apply(null,t)}},e.exports=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),c||r||(c=!0,o())}},2709:(e,t,n)=>{"use strict";t.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},t.install=function(e){var t=new n.g.MessageChannel;return t.port1.onmessage=e,function(){t.port2.postMessage(0)}}},28291:(e,t,n)=>{"use strict";var r=n.g.MutationObserver||n.g.WebKitMutationObserver;t.test=function(){return r},t.install=function(e){var t=0,i=new r(e),o=n.g.document.createTextNode("");return i.observe(o,{characterData:!0}),function(){o.data=t=++t%2}}},64785:(e,t,n)=>{"use strict";t.test=function(){return"function"==typeof n.g.queueMicrotask},t.install=function(e){return function(){n.g.queueMicrotask(e)}}},42506:(e,t,n)=>{"use strict";t.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},t.install=function(e){return function(){var t=n.g.document.createElement("script");return t.onreadystatechange=function(){e(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.g.document.documentElement.appendChild(t),e}}},79176:(e,t)=>{"use strict";t.test=function(){return!0},t.install=function(e){return function(){setTimeout(e,0)}}},23923:e=>{"use strict";var t={uncountableWords:["equipment","information","rice","money","species","series","fish","sheep","moose","deer","news"],pluralRules:[[new RegExp("(m)an$","gi"),"$1en"],[new RegExp("(pe)rson$","gi"),"$1ople"],[new RegExp("(child)$","gi"),"$1ren"],[new RegExp("^(ox)$","gi"),"$1en"],[new RegExp("(ax|test)is$","gi"),"$1es"],[new RegExp("(octop|vir)us$","gi"),"$1i"],[new RegExp("(alias|status)$","gi"),"$1es"],[new RegExp("(bu)s$","gi"),"$1ses"],[new RegExp("(buffal|tomat|potat)o$","gi"),"$1oes"],[new RegExp("([ti])um$","gi"),"$1a"],[new RegExp("sis$","gi"),"ses"],[new RegExp("(?:([^f])fe|([lr])f)$","gi"),"$1$2ves"],[new RegExp("(hive)$","gi"),"$1s"],[new RegExp("([^aeiouy]|qu)y$","gi"),"$1ies"],[new RegExp("(x|ch|ss|sh)$","gi"),"$1es"],[new RegExp("(matr|vert|ind)ix|ex$","gi"),"$1ices"],[new RegExp("([m|l])ouse$","gi"),"$1ice"],[new RegExp("(quiz)$","gi"),"$1zes"],[new RegExp("s$","gi"),"s"],[new RegExp("$","gi"),"s"]],singularRules:[[new RegExp("(m)en$","gi"),"$1an"],[new RegExp("(pe)ople$","gi"),"$1rson"],[new RegExp("(child)ren$","gi"),"$1"],[new RegExp("([ti])a$","gi"),"$1um"],[new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),"$1$2sis"],[new RegExp("(hive)s$","gi"),"$1"],[new RegExp("(tive)s$","gi"),"$1"],[new RegExp("(curve)s$","gi"),"$1"],[new RegExp("([lr])ves$","gi"),"$1f"],[new RegExp("([^fo])ves$","gi"),"$1fe"],[new RegExp("([^aeiouy]|qu)ies$","gi"),"$1y"],[new RegExp("(s)eries$","gi"),"$1eries"],[new RegExp("(m)ovies$","gi"),"$1ovie"],[new RegExp("(x|ch|ss|sh)es$","gi"),"$1"],[new RegExp("([m|l])ice$","gi"),"$1ouse"],[new RegExp("(bus)es$","gi"),"$1"],[new RegExp("(o)es$","gi"),"$1"],[new RegExp("(shoe)s$","gi"),"$1"],[new RegExp("(cris|ax|test)es$","gi"),"$1is"],[new RegExp("(octop|vir)i$","gi"),"$1us"],[new RegExp("(alias|status)es$","gi"),"$1"],[new RegExp("^(ox)en","gi"),"$1"],[new RegExp("(vert|ind)ices$","gi"),"$1ex"],[new RegExp("(matr)ices$","gi"),"$1ix"],[new RegExp("(quiz)zes$","gi"),"$1"],[new RegExp("s$","gi"),""]],nonTitlecasedWords:["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],idSuffix:new RegExp("(_ids|_id)$","g"),underbar:new RegExp("_","g"),spaceOrUnderbar:new RegExp("[ _]","g"),uppercase:new RegExp("([A-Z])","g"),underbarPrefix:new RegExp("^_"),applyRules:function(e,t,n,r){if(r)e=r;else if(!(n.indexOf(e.toLowerCase())>-1))for(var i=0;i<t.length;i++)if(e.match(t[i][0])){e=e.replace(t[i][0],t[i][1]);break}return e},pluralize:function(e,t){return this.applyRules(e,this.pluralRules,this.uncountableWords,t)},singularize:function(e,t){return this.applyRules(e,this.singularRules,this.uncountableWords,t)},camelize:function(e,t){for(var n=e.split("/"),r=0;r<n.length;r++){for(var i=n[r].split("_"),o=t&&r+1===n.length?1:0;o<i.length;o++)i[o]=i[o].charAt(0).toUpperCase()+i[o].substring(1);n[r]=i.join("")}if(e=n.join("::"),!0===t){var a=e.charAt(0).toLowerCase(),s=e.slice(1);e=a+s}return e},underscore:function(e){for(var t=e.split("::"),n=0;n<t.length;n++)t[n]=t[n].replace(this.uppercase,"_$1"),t[n]=t[n].replace(this.underbarPrefix,"");return e=t.join("/").toLowerCase()},humanize:function(e,t){return e=(e=(e=e.toLowerCase()).replace(this.idSuffix,"")).replace(this.underbar," "),t||(e=this.capitalize(e)),e},capitalize:function(e){return e=(e=e.toLowerCase()).substring(0,1).toUpperCase()+e.substring(1)},dasherize:function(e){return e=e.replace(this.spaceOrUnderbar,"-")},camel2words:function(e,t){!0===t?(e=this.camelize(e),e=this.underscore(e)):e=e.toLowerCase();for(var n=(e=e.replace(this.underbar," ")).split(" "),r=0;r<n.length;r++){for(var i=n[r].split("-"),o=0;o<i.length;o++)this.nonTitlecasedWords.indexOf(i[o].toLowerCase())<0&&(i[o]=this.capitalize(i[o]));n[r]=i.join("-")}return e=(e=n.join(" ")).substring(0,1).toUpperCase()+e.substring(1)},demodulize:function(e){var t=e.split("::");return e=t[t.length-1]},tableize:function(e){return e=this.pluralize(this.underscore(e))},classify:function(e){return e=this.singularize(this.camelize(e))},foreignKey:function(e,t){return e=this.underscore(this.demodulize(e))+(t?"":"_")+"id"},ordinalize:function(e){for(var t=e.split(" "),n=0;n<t.length;n++){if(NaN===parseInt(t[n])){var r=t[n].substring(t[n].length-2),i=t[n].substring(t[n].length-1),o="th";"11"!=r&&"12"!=r&&"13"!=r&&("1"===i?o="st":"2"===i?o="nd":"3"===i&&(o="rd")),t[n]+=o}}return e=t.join(" ")}};e.exports=t},35717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},38186:e=>{var t=[],n=[];function r(e,r){if(r=r||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var i,o=!0===r.prepend?"prepend":"append",a=void 0!==r.container?r.container:document.querySelector("head"),s=t.indexOf(a);return-1===s&&(s=t.push(a)-1,n[s]={}),void 0!==n[s]&&void 0!==n[s][o]?i=n[s][o]:(i=n[s][o]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===o?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}e.exports=r,e.exports.insertCss=r},36808:(e,t,n)=>{var r,i;!function(o){if(void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function o(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(r.read||r)(l,c)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(i[c]=l,e===c)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},72229:(e,t,n)=>{var r=n(9669),i=function(){};i.prototype.store=function(e,t){void 0===t&&(t={});try{return Promise.resolve(r.post("/vapor/signed-storage-url",{bucket:t.bucket||"",content_type:t.contentType||e.type,expires:t.expires||"",visibility:t.visibility||""},{baseURL:t.baseURL||null,headers:t.headers||{}})).then((function(n){var i=n.data.headers;return"Host"in i&&delete i.Host,void 0===t.progress&&(t.progress=function(){}),Promise.resolve(r.put(n.data.url,e,{cancelToken:t.cancelToken||"",headers:i,onUploadProgress:function(e){t.progress(e.loaded/e.total)}})).then((function(){return n.data.extension=e.name.split(".").pop(),n.data}))}))}catch(e){return Promise.reject(e)}},e.exports=new i},83465:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",l="[object Function]",c="[object GeneratorFunction]",u="[object Map]",p="[object Number]",d="[object Object]",f="[object Promise]",h="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",A="[object Float64Array]",_="[object Int8Array]",C="[object Int16Array]",k="[object Int32Array]",S="[object Uint8Array]",E="[object Uint8ClampedArray]",T="[object Uint16Array]",O="[object Uint32Array]",M=/\w*$/,L=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,D={};D[o]=D["[object Array]"]=D[b]=D[x]=D[a]=D[s]=D[w]=D[A]=D[_]=D[C]=D[k]=D[u]=D[p]=D[d]=D[h]=D[m]=D[g]=D[v]=D[S]=D[E]=D[T]=D[O]=!0,D["[object Error]"]=D[l]=D[y]=!1;var N="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,j="object"==typeof self&&self&&self.Object===Object&&self,P=N||j||Function("return this")(),R=t&&!t.nodeType&&t,F=R&&e&&!e.nodeType&&e,I=F&&F.exports===R;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function q(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function U(e,t){return function(n){return e(t(n))}}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var K,G=Array.prototype,Y=Function.prototype,X=Object.prototype,J=P["__core-js_shared__"],Z=(K=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",Q=Y.toString,ee=X.hasOwnProperty,te=X.toString,ne=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=I?P.Buffer:void 0,ie=P.Symbol,oe=P.Uint8Array,ae=U(Object.getPrototypeOf,Object),se=Object.create,le=X.propertyIsEnumerable,ce=G.splice,ue=Object.getOwnPropertySymbols,pe=re?re.isBuffer:void 0,de=U(Object.keys,Object),fe=Fe(P,"DataView"),he=Fe(P,"Map"),me=Fe(P,"Promise"),ge=Fe(P,"Set"),ve=Fe(P,"WeakMap"),ye=Fe(Object,"create"),be=He(fe),xe=He(he),we=He(me),Ae=He(ge),_e=He(ve),Ce=ie?ie.prototype:void 0,ke=Ce?Ce.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new Ee(e)}function Me(e,t){var n=Ue(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&ee.call(e,"callee")&&(!le.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!ee.call(e,a)||i&&("length"==a||$e(a,r))||n.push(a);return n}function Le(e,t,n){var r=e[t];ee.call(e,t)&&We(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Be(e,t){for(var n=e.length;n--;)if(We(e[n][0],t))return n;return-1}function De(e,t,n,r,i,f,y){var L;if(r&&(L=f?r(e,i,f,y):r(e)),void 0!==L)return L;if(!Ye(e))return e;var B=Ue(e);if(B){if(L=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,L)}else{var N=ze(e),j=N==l||N==c;if(Ke(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(N==d||N==o||j&&!f){if(H(e))return f?e:{};if(L=function(e){return"function"!=typeof e.constructor||qe(e)?{}:(t=ae(e),Ye(t)?se(t):{});var t}(j?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,Xe(t),e)}(L,e))}else{if(!D[N])return f?e:{};L=function(e,t,n,r){var i=e.constructor;switch(t){case b:return je(e);case a:case s:return new i(+e);case x:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case A:case _:case C:case k:case S:case E:case T:case O:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){var r=t?n(W(e),!0):W(e);return q(r,z,new e.constructor)}(e,r,n);case p:case g:return new i(e);case h:return function(e){var t=new e.constructor(e.source,M.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){var r=t?n(V(e),!0):V(e);return q(r,$,new e.constructor)}(e,r,n);case v:return o=e,ke?Object(ke.call(o)):{}}var o}(e,N,De,t)}}y||(y=new Oe);var P=y.get(e);if(P)return P;if(y.set(e,L),!B)var R=n?function(e){return function(e,t,n){var r=t(e);return Ue(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Xe,Ie)}(e):Xe(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(R||e,(function(i,o){R&&(i=e[o=i]),Le(L,o,De(i,t,n,r,o,e,y))})),L}function Ne(e){return!(!Ye(e)||(t=e,Z&&Z in t))&&(Ge(e)||H(e)?ne:L).test(He(e));var t}function je(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;Le(n,a,void 0===s?e[a]:s)}return n}function Re(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ne(n)?n:void 0}Se.prototype.clear=function(){this.__data__=ye?ye(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:ee.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},Ee.prototype.clear=function(){this.__data__=[]},Ee.prototype.delete=function(e){var t=this.__data__,n=Be(t,e);return!(n<0)&&(n==t.length-1?t.pop():ce.call(t,n,1),!0)},Ee.prototype.get=function(e){var t=this.__data__,n=Be(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return Be(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Se,map:new(he||Ee),string:new Se}},Te.prototype.delete=function(e){return Re(this,e).delete(e)},Te.prototype.get=function(e){return Re(this,e).get(e)},Te.prototype.has=function(e){return Re(this,e).has(e)},Te.prototype.set=function(e,t){return Re(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new Ee},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new Te(r)}return n.set(e,t),this};var Ie=ue?U(ue,Object):function(){return[]},ze=function(e){return te.call(e)};function $e(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function qe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||X)}function He(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function We(e,t){return e===t||e!=e&&t!=t}(fe&&ze(new fe(new ArrayBuffer(1)))!=x||he&&ze(new he)!=u||me&&ze(me.resolve())!=f||ge&&ze(new ge)!=m||ve&&ze(new ve)!=y)&&(ze=function(e){var t=te.call(e),n=t==d?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case be:return x;case xe:return u;case we:return f;case Ae:return m;case _e:return y}return t});var Ue=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!Ge(e)}var Ke=pe||function(){return!1};function Ge(e){var t=Ye(e)?te.call(e):"";return t==l||t==c}function Ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Xe(e){return Ve(e)?Me(e):function(e){if(!qe(e))return de(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return De(e,!0,!0)}},72307:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",p="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",y="[object Object]",b="[object Promise]",x="[object Proxy]",w="[object RegExp]",A="[object Set]",_="[object String]",C="[object Symbol]",k="[object Undefined]",S="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",O=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,L={};L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L[s]=L[l]=L[E]=L[u]=L[T]=L[p]=L[d]=L[f]=L[m]=L[g]=L[y]=L[w]=L[A]=L[_]=L[S]=!1;var B="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,D="object"==typeof self&&self&&self.Object===Object&&self,N=B||D||Function("return this")(),j=t&&!t.nodeType&&t,P=j&&e&&!e.nodeType&&e,R=P&&P.exports===j,F=R&&B.process,I=function(){try{return F&&F.binding&&F.binding("util")}catch(e){}}(),z=I&&I.isTypedArray;function $(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function H(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var W,U,V,K=Array.prototype,G=Function.prototype,Y=Object.prototype,X=N["__core-js_shared__"],J=G.toString,Z=Y.hasOwnProperty,Q=(W=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",ee=Y.toString,te=RegExp("^"+J.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=R?N.Buffer:void 0,re=N.Symbol,ie=N.Uint8Array,oe=Y.propertyIsEnumerable,ae=K.splice,se=re?re.toStringTag:void 0,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,ue=(U=Object.keys,V=Object,function(e){return U(V(e))}),pe=Ie(N,"DataView"),de=Ie(N,"Map"),fe=Ie(N,"Promise"),he=Ie(N,"Set"),me=Ie(N,"WeakMap"),ge=Ie(Object,"create"),ve=He(pe),ye=He(de),be=He(fe),xe=He(he),we=He(me),Ae=re?re.prototype:void 0,_e=Ae?Ae.valueOf:void 0;function Ce(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Se;++t<n;)this.add(e[t])}function Te(e){var t=this.__data__=new ke(e);this.size=t.size}function Oe(e,t){var n=Ve(e),r=!n&&Ue(e),i=!n&&!r&&Ke(e),o=!n&&!r&&!i&&Ze(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!Z.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qe(c,l))||s.push(c);return s}function Me(e,t){for(var n=e.length;n--;)if(We(e[n][0],t))return n;return-1}function Le(e){return null==e?void 0===e?k:v:se&&se in Object(e)?function(e){var t=Z.call(e,se),n=e[se];try{e[se]=void 0;var r=!0}catch(e){}var i=ee.call(e);r&&(t?e[se]=n:delete e[se]);return i}(e):function(e){return ee.call(e)}(e)}function Be(e){return Je(e)&&Le(e)==s}function De(e,t,n,r,a){return e===t||(null==e||null==t||!Je(e)&&!Je(t)?e!=e&&t!=t:function(e,t,n,r,a,c){var f=Ve(e),h=Ve(t),v=f?l:$e(e),b=h?l:$e(t),x=(v=v==s?y:v)==y,k=(b=b==s?y:b)==y,S=v==b;if(S&&Ke(e)){if(!Ke(t))return!1;f=!0,x=!1}if(S&&!x)return c||(c=new Te),f||Ze(e)?Pe(e,t,n,r,a,c):function(e,t,n,r,a,s,l){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!s(new ie(e),new ie(t)));case u:case p:case g:return We(+e,+t);case d:return e.name==t.name&&e.message==t.message;case w:case _:return e==t+"";case m:var c=q;case A:var f=r&i;if(c||(c=H),e.size!=t.size&&!f)return!1;var h=l.get(e);if(h)return h==t;r|=o,l.set(e,t);var v=Pe(c(e),c(t),r,a,s,l);return l.delete(e),v;case C:if(_e)return _e.call(e)==_e.call(t)}return!1}(e,t,v,n,r,a,c);if(!(n&i)){var O=x&&Z.call(e,"__wrapped__"),M=k&&Z.call(t,"__wrapped__");if(O||M){var L=O?e.value():e,B=M?t.value():t;return c||(c=new Te),a(L,B,n,r,c)}}if(!S)return!1;return c||(c=new Te),function(e,t,n,r,o,a){var s=n&i,l=Re(e),c=l.length,u=Re(t),p=u.length;if(c!=p&&!s)return!1;var d=c;for(;d--;){var f=l[d];if(!(s?f in t:Z.call(t,f)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var m=!0;a.set(e,t),a.set(t,e);var g=s;for(;++d<c;){var v=e[f=l[d]],y=t[f];if(r)var b=s?r(y,v,f,t,e,a):r(v,y,f,e,t,a);if(!(void 0===b?v===y||o(v,y,n,r,a):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,a,c)}(e,t,n,r,De,a))}function Ne(e){return!(!Xe(e)||function(e){return!!Q&&Q in e}(e))&&(Ge(e)?te:O).test(He(e))}function je(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Y,t!==r)return ue(e);var t,n,r,i=[];for(var o in Object(e))Z.call(e,o)&&"constructor"!=o&&i.push(o);return i}function Pe(e,t,n,r,a,s){var l=n&i,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var d=-1,f=!0,h=n&o?new Ee:void 0;for(s.set(e,t),s.set(t,e);++d<c;){var m=e[d],g=t[d];if(r)var v=l?r(g,m,d,t,e,s):r(m,g,d,e,t,s);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!$(t,(function(e,t){if(i=t,!h.has(i)&&(m===e||a(m,e,n,r,s)))return h.push(t);var i}))){f=!1;break}}else if(m!==g&&!a(m,g,n,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function Re(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Qe,ze)}function Fe(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ne(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ge?ge(null):{},this.size=0},Ce.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ce.prototype.get=function(e){var t=this.__data__;if(ge){var n=t[e];return n===r?void 0:n}return Z.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:Z.call(t,e)},Ce.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ge&&void 0===t?r:t,this},ke.prototype.clear=function(){this.__data__=[],this.size=0},ke.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0)&&(n==t.length-1?t.pop():ae.call(t,n,1),--this.size,!0)},ke.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return Me(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Se.prototype.clear=function(){this.size=0,this.__data__={hash:new Ce,map:new(de||ke),string:new Ce}},Se.prototype.delete=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t},Se.prototype.get=function(e){return Fe(this,e).get(e)},Se.prototype.has=function(e){return Fe(this,e).has(e)},Se.prototype.set=function(e,t){var n=Fe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,r),this},Ee.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new ke,this.size=0},Te.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Se(r)}return n.set(e,t),this.size=n.size,this};var ze=le?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(le(e),(function(t){return oe.call(e,t)})))}:function(){return[]},$e=Le;function qe(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function He(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function We(e,t){return e===t||e!=e&&t!=t}(pe&&$e(new pe(new ArrayBuffer(1)))!=T||de&&$e(new de)!=m||fe&&$e(fe.resolve())!=b||he&&$e(new he)!=A||me&&$e(new me)!=S)&&($e=function(e){var t=Le(e),n=t==y?e.constructor:void 0,r=n?He(n):"";if(r)switch(r){case ve:return T;case ye:return m;case be:return b;case xe:return A;case we:return S}return t});var Ue=Be(function(){return arguments}())?Be:function(e){return Je(e)&&Z.call(e,"callee")&&!oe.call(e,"callee")},Ve=Array.isArray;var Ke=ce||function(){return!1};function Ge(e){if(!Xe(e))return!1;var t=Le(e);return t==f||t==h||t==c||t==x}function Ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Xe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Je(e){return null!=e&&"object"==typeof e}var Ze=z?function(e){return function(t){return e(t)}}(z):function(e){return Je(e)&&Ye(e.length)&&!!L[Le(e)]};function Qe(e){return null!=(t=e)&&Ye(t.length)&&!Ge(t)?Oe(e):je(e);var t}e.exports=function(e,t){return De(e,t)}},18552:(e,t,n)=>{var r=n(10852)(n(55639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(51789),i=n(80401),o=n(57667),a=n(21327),s=n(81866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},38407:(e,t,n)=>{var r=n(27040),i=n(14125),o=n(82117),a=n(67518),s=n(54705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},57071:(e,t,n)=>{var r=n(10852)(n(55639),"Map");e.exports=r},83369:(e,t,n)=>{var r=n(24785),i=n(11285),o=n(96e3),a=n(49916),s=n(95265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},53818:(e,t,n)=>{var r=n(10852)(n(55639),"Promise");e.exports=r},58525:(e,t,n)=>{var r=n(10852)(n(55639),"Set");e.exports=r},88668:(e,t,n)=>{var r=n(83369),i=n(90619),o=n(72385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},46384:(e,t,n)=>{var r=n(38407),i=n(37465),o=n(63779),a=n(67599),s=n(44758),l=n(34309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},62705:(e,t,n)=>{var r=n(55639).Symbol;e.exports=r},11149:(e,t,n)=>{var r=n(55639).Uint8Array;e.exports=r},70577:(e,t,n)=>{var r=n(10852)(n(55639),"WeakMap");e.exports=r},96874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},44174:e=>{e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},77412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},34963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},47443:(e,t,n)=>{var r=n(42118);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},1196:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},14636:(e,t,n)=>{var r=n(22545),i=n(35694),o=n(1469),a=n(44144),s=n(65776),l=n(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),p=!n&&!u&&a(e),d=!n&&!u&&!p&&l(e),f=n||u||p||d,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||p&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},29932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},62488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},62663:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},82908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},44286:e=>{e.exports=function(e){return e.split("")}},49029:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},86556:(e,t,n)=>{var r=n(89465),i=n(77813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},34865:(e,t,n)=>{var r=n(89465),i=n(77813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},18470:(e,t,n)=>{var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},81119:(e,t,n)=>{var r=n(89881);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,e,n(e),o)})),i}},44037:(e,t,n)=>{var r=n(98363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},63886:(e,t,n)=>{var r=n(98363),i=n(81704);e.exports=function(e,t){return e&&r(t,i(t),e)}},89465:(e,t,n)=>{var r=n(38777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},85990:(e,t,n)=>{var r=n(46384),i=n(77412),o=n(34865),a=n(44037),s=n(63886),l=n(64626),c=n(278),u=n(18805),p=n(1911),d=n(58234),f=n(46904),h=n(64160),m=n(43824),g=n(29148),v=n(38517),y=n(1469),b=n(44144),x=n(56688),w=n(13218),A=n(72928),_=n(3674),C=n(81704),k="[object Arguments]",S="[object Function]",E="[object Object]",T={};T[k]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[E]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[S]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,O,M,L,B){var D,N=1&n,j=2&n,P=4&n;if(O&&(D=L?O(t,M,L,B):O(t)),void 0!==D)return D;if(!w(t))return t;var R=y(t);if(R){if(D=m(t),!N)return c(t,D)}else{var F=h(t),I=F==S||"[object GeneratorFunction]"==F;if(b(t))return l(t,N);if(F==E||F==k||I&&!L){if(D=j||I?{}:v(t),!N)return j?p(t,s(D,t)):u(t,a(D,t))}else{if(!T[F])return L?t:{};D=g(t,F,N)}}B||(B=new r);var z=B.get(t);if(z)return z;B.set(t,D),A(t)?t.forEach((function(r){D.add(e(r,n,O,r,t,B))})):x(t)&&t.forEach((function(r,i){D.set(i,e(r,n,O,i,t,B))}));var $=R?void 0:(P?j?f:d:j?C:_)(t);return i($||t,(function(r,i){$&&(r=t[i=r]),o(D,i,e(r,n,O,i,t,B))})),D}},3118:(e,t,n)=>{var r=n(13218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},89881:(e,t,n)=>{var r=n(47816),i=n(99291)(r);e.exports=i},80760:(e,t,n)=>{var r=n(89881);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},41848:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},21078:(e,t,n)=>{var r=n(62488),i=n(37285);e.exports=function e(t,n,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];n>0&&o(u)?n>1?e(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},28483:(e,t,n)=>{var r=n(25063)();e.exports=r},47816:(e,t,n)=>{var r=n(28483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},97786:(e,t,n)=>{var r=n(71811),i=n(40327);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},68866:(e,t,n)=>{var r=n(62488),i=n(1469);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},44239:(e,t,n)=>{var r=n(62705),i=n(89607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},42118:(e,t,n)=>{var r=n(41848),i=n(62722),o=n(42351);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},9454:(e,t,n)=>{var r=n(44239),i=n(37005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},90939:(e,t,n)=>{var r=n(2492),i=n(37005);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},2492:(e,t,n)=>{var r=n(46384),i=n(67114),o=n(18351),a=n(16096),s=n(64160),l=n(1469),c=n(44144),u=n(36719),p="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),x=y?d:s(e),w=b?d:s(t),A=(x=x==p?f:x)==f,_=(w=w==p?f:w)==f,C=x==w;if(C&&c(e)){if(!c(t))return!1;y=!0,A=!1}if(C&&!A)return v||(v=new r),y||u(e)?i(e,t,n,m,g,v):o(e,t,x,n,m,g,v);if(!(1&n)){var k=A&&h.call(e,"__wrapped__"),S=_&&h.call(t,"__wrapped__");if(k||S){var E=k?e.value():e,T=S?t.value():t;return v||(v=new r),g(E,T,n,m,v)}}return!!C&&(v||(v=new r),a(e,t,n,m,g,v))}},25588:(e,t,n)=>{var r=n(64160),i=n(37005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(46384),i=n(90939);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],p=e[u],d=c[1];if(l&&c[2]){if(void 0===p&&!(u in e))return!1}else{var f=new r;if(o)var h=o(p,d,u,e,t,f);if(!(void 0===h?i(d,p,3,o,f):h))return!1}}return!0}},62722:e=>{e.exports=function(e){return e!=e}},28458:(e,t,n)=>{var r=n(23560),i=n(15346),o=n(13218),a=n(80346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},29221:(e,t,n)=>{var r=n(64160),i=n(37005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},38749:(e,t,n)=>{var r=n(44239),i=n(41780),o=n(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},67206:(e,t,n)=>{var r=n(91573),i=n(16432),o=n(6557),a=n(1469),s=n(39601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(25726),i=n(86916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},10313:(e,t,n)=>{var r=n(13218),i=n(25726),o=n(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},69199:(e,t,n)=>{var r=n(89881),i=n(98612);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},91573:(e,t,n)=>{var r=n(2958),i=n(1499),o=n(42634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},16432:(e,t,n)=>{var r=n(90939),i=n(27361),o=n(79095),a=n(15403),s=n(89162),l=n(42634),c=n(40327);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},42980:(e,t,n)=>{var r=n(46384),i=n(86556),o=n(28483),a=n(59783),s=n(13218),l=n(81704),c=n(36390);e.exports=function e(t,n,u,p,d){t!==n&&o(n,(function(o,l){if(d||(d=new r),s(o))a(t,n,l,u,e,p,d);else{var f=p?p(c(t,l),o,l+"",t,n,d):void 0;void 0===f&&(f=o),i(t,l,f)}}),l)}},59783:(e,t,n)=>{var r=n(86556),i=n(64626),o=n(77133),a=n(278),s=n(38517),l=n(35694),c=n(1469),u=n(29246),p=n(44144),d=n(23560),f=n(13218),h=n(68630),m=n(36719),g=n(36390),v=n(59881);e.exports=function(e,t,n,y,b,x,w){var A=g(e,n),_=g(t,n),C=w.get(_);if(C)r(e,n,C);else{var k=x?x(A,_,n+"",e,t,w):void 0,S=void 0===k;if(S){var E=c(_),T=!E&&p(_),O=!E&&!T&&m(_);k=_,E||T||O?c(A)?k=A:u(A)?k=a(A):T?(S=!1,k=i(_,!0)):O?(S=!1,k=o(_,!0)):k=[]:h(_)||l(_)?(k=A,l(A)?k=v(A):f(A)&&!d(A)||(k=s(_))):S=!1}S&&(w.set(_,k),b(k,_,y,x,w),w.delete(_)),r(e,n,k)}}},25970:(e,t,n)=>{var r=n(63012),i=n(79095);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},63012:(e,t,n)=>{var r=n(97786),i=n(10611),o=n(71811);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=r(e,c);n(u,c)&&i(l,o(c,e),u)}return l}},40371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},79152:(e,t,n)=>{var r=n(97786);e.exports=function(e){return function(t){return r(t,e)}}},18674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},10107:e=>{e.exports=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}},5976:(e,t,n)=>{var r=n(6557),i=n(45357),o=n(30061);e.exports=function(e,t){return o(i(e,t,r),e+"")}},10611:(e,t,n)=>{var r=n(34865),i=n(71811),o=n(65776),a=n(13218),s=n(40327);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,p=u-1,d=e;null!=d&&++c<u;){var f=s(t[c]),h=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=p){var m=d[f];void 0===(h=l?l(m,f,d):void 0)&&(h=a(m)?m:o(t[c+1])?[]:{})}r(d,f,h),d=d[f]}return e}},56560:(e,t,n)=>{var r=n(75703),i=n(38777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},14259:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},67762:e=>{e.exports=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}},22545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80531:(e,t,n)=>{var r=n(62705),i=n(29932),o=n(1469),a=n(33448),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},27561:(e,t,n)=>{var r=n(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},45652:(e,t,n)=>{var r=n(88668),i=n(47443),o=n(1196),a=n(74757),s=n(23593),l=n(21814);e.exports=function(e,t,n){var c=-1,u=i,p=e.length,d=!0,f=[],h=f;if(n)d=!1,u=o;else if(p>=200){var m=t?null:s(e);if(m)return l(m);d=!1,u=a,h=new r}else h=t?[]:f;e:for(;++c<p;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,d&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),f.push(g)}else u(h,v,n)||(h!==f&&h.push(v),f.push(g))}return f}},57406:(e,t,n)=>{var r=n(71811),i=n(10928),o=n(40292),a=n(40327);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},47415:(e,t,n)=>{var r=n(29932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},74757:e=>{e.exports=function(e,t){return e.has(t)}},54290:(e,t,n)=>{var r=n(6557);e.exports=function(e){return"function"==typeof e?e:r}},71811:(e,t,n)=>{var r=n(1469),i=n(15403),o=n(55514),a=n(79833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},40180:(e,t,n)=>{var r=n(14259);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},5512:(e,t,n)=>{var r=n(42118);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},89817:(e,t,n)=>{var r=n(42118);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},74318:(e,t,n)=>{var r=n(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},64626:(e,t,n)=>{e=n.nmd(e);var r=n(55639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},57157:(e,t,n)=>{var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},93147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},40419:(e,t,n)=>{var r=n(62705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},77133:(e,t,n)=>{var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},98363:(e,t,n)=>{var r=n(34865),i=n(89465);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},18805:(e,t,n)=>{var r=n(98363),i=n(99551);e.exports=function(e,t){return r(e,i(e),t)}},1911:(e,t,n)=>{var r=n(98363),i=n(51442);e.exports=function(e,t){return r(e,i(e),t)}},14429:(e,t,n)=>{var r=n(55639)["__core-js_shared__"];e.exports=r},55189:(e,t,n)=>{var r=n(44174),i=n(81119),o=n(67206),a=n(1469);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,c=t?t():{};return l(n,e,o(s,2),c)}}},21463:(e,t,n)=>{var r=n(5976),i=n(16612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},99291:(e,t,n)=>{var r=n(98612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},25063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},98805:(e,t,n)=>{var r=n(40180),i=n(62689),o=n(83140),a=n(79833);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},35393:(e,t,n)=>{var r=n(62663),i=n(53816),o=n(58748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},67740:(e,t,n)=>{var r=n(67206),i=n(98612),o=n(3674);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},23593:(e,t,n)=>{var r=n(58525),i=n(50308),o=n(21814),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},60696:(e,t,n)=>{var r=n(68630);e.exports=function(e){return r(e)?void 0:e}},69389:(e,t,n)=>{var r=n(18674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},38777:(e,t,n)=>{var r=n(10852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},67114:(e,t,n)=>{var r=n(88668),i=n(82908),o=n(74757);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var d=l.get(e),f=l.get(t);if(d&&f)return d==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},18351:(e,t,n)=>{var r=n(62705),i=n(11149),o=n(77813),a=n(67114),s=n(68776),l=n(21814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=l),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var g=a(f(e),f(t),r,c,p,d);return d.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},16096:(e,t,n)=>{var r=n(58234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var p=u;p--;){var d=c[p];if(!(l?d in t:i.call(t,d)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++p<u;){var v=e[d=c[p]],y=t[d];if(o)var b=l?o(y,v,d,t,e,s):o(v,y,d,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},99021:(e,t,n)=>{var r=n(85564),i=n(45357),o=n(30061);e.exports=function(e){return o(i(e,void 0,r),e+"")}},31957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:(e,t,n)=>{var r=n(68866),i=n(99551),o=n(3674);e.exports=function(e){return r(e,o,i)}},46904:(e,t,n)=>{var r=n(68866),i=n(51442),o=n(81704);e.exports=function(e){return r(e,o,i)}},45050:(e,t,n)=>{var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(89162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},10852:(e,t,n)=>{var r=n(28458),i=n(47801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},85924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},89607:(e,t,n)=>{var r=n(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},99551:(e,t,n)=>{var r=n(34963),i=n(70479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},51442:(e,t,n)=>{var r=n(62488),i=n(85924),o=n(99551),a=n(70479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},64160:(e,t,n)=>{var r=n(18552),i=n(57071),o=n(53818),a=n(58525),s=n(70577),l=n(44239),c=n(80346),u="[object Map]",p="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),v=c(o),y=c(a),b=c(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=h||i&&x(new i)!=u||o&&x(o.resolve())!=p||a&&x(new a)!=d||s&&x(new s)!=f)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return p;case y:return d;case b:return f}return t}),e.exports=x},47801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(71811),i=n(35694),o=n(1469),a=n(65776),s=n(41780),l=n(40327);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,p=!1;++c<u;){var d=l(t[c]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++c!=u?p:!!(u=null==e?0:e.length)&&s(u)&&a(d,u)&&(o(e)||i(e))}},62689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},93157:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},51789:(e,t,n)=>{var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:(e,t,n)=>{var r=n(94536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},21327:(e,t,n)=>{var r=n(94536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},81866:(e,t,n)=>{var r=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},29148:(e,t,n)=>{var r=n(74318),i=n(57157),o=n(93147),a=n(40419),s=n(77133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},38517:(e,t,n)=>{var r=n(3118),i=n(85924),o=n(25726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},37285:(e,t,n)=>{var r=n(62705),i=n(35694),o=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},65776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},16612:(e,t,n)=>{var r=n(77813),i=n(98612),o=n(65776),a=n(13218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},15403:(e,t,n)=>{var r=n(1469),i=n(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:(e,t,n)=>{var r,i=n(14429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},25726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},89162:(e,t,n)=>{var r=n(13218);e.exports=function(e){return e==e&&!r(e)}},27040:e=>{e.exports=function(){this.__data__=[],this.size=0}},14125:(e,t,n)=>{var r=n(18470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},82117:(e,t,n)=>{var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:(e,t,n)=>{var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},54705:(e,t,n)=>{var r=n(18470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},24785:(e,t,n)=>{var r=n(1989),i=n(38407),o=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11285:(e,t,n)=>{var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:(e,t,n)=>{var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:(e,t,n)=>{var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:(e,t,n)=>{var r=n(45050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},68776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},42634:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},24523:(e,t,n)=>{var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:(e,t,n)=>{var r=n(10852)(Object,"create");e.exports=r},86916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},33498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:(e,t,n)=>{e=n.nmd(e);var r=n(31957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},45357:(e,t,n)=>{var r=n(96874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},40292:(e,t,n)=>{var r=n(97786),i=n(14259);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},55639:(e,t,n)=>{var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},36390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},90619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:e=>{e.exports=function(e){return this.__data__.has(e)}},21814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},30061:(e,t,n)=>{var r=n(56560),i=n(21275)(r);e.exports=i},21275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:(e,t,n)=>{var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:e=>{e.exports=function(e){return this.__data__.get(e)}},44758:e=>{e.exports=function(e){return this.__data__.has(e)}},34309:(e,t,n)=>{var r=n(38407),i=n(57071),o=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},42351:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},83140:(e,t,n)=>{var r=n(44286),i=n(62689),o=n(676);e.exports=function(e){return i(e)?o(e):r(e)}},55514:(e,t,n)=>{var r=n(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},40327:(e,t,n)=>{var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},80346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},676:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),p="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+p+u,"g");e.exports=function(e){return e.match(d)||[]}},2757:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+o+s+n+r+i+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+i+"]",h="(?:"+c+"|"+u+")",m="(?:"+f+"|"+u+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",x=b+y+("(?:\\u200d(?:"+["[^"+t+"]",p,d].join("|")+")"+b+y+")*"),w="(?:"+[l,p,d].join("|")+")"+x,A=RegExp([f+"?"+c+"+"+g+"(?="+[a,f,"$"].join("|")+")",m+"+"+v+"(?="+[a,f+h,"$"].join("|")+")",f+"?"+h+"+"+g,f+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,w].join("|"),"g");e.exports=function(e){return e.match(A)||[]}},89567:(e,t,n)=>{var r=n(40554);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},68929:(e,t,n)=>{var r=n(48403),i=n(35393)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},48403:(e,t,n)=>{var r=n(79833),i=n(11700);e.exports=function(e){return i(r(e).toLowerCase())}},50361:(e,t,n)=>{var r=n(85990);e.exports=function(e){return r(e,5)}},75703:e=>{e.exports=function(e){return function(){return e}}},23279:(e,t,n)=>{var r=n(13218),i=n(7771),o=n(14841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,p,d,f,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,p=e.apply(r,n)}function b(e){var n=e-f;return void 0===f||n>=t||n<0||g&&e-h>=u}function x(){var e=i();if(b(e))return w(e);d=setTimeout(x,function(e){var n=t-(e-f);return g?s(n,u-(e-h)):n}(e))}function w(e){return d=void 0,v&&l?y(e):(l=c=void 0,p)}function A(){var e=i(),n=b(e);if(l=arguments,c=this,f=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(x,t),m?y(e):p}(f);if(g)return clearTimeout(d),d=setTimeout(x,t),y(f)}return void 0===d&&(d=setTimeout(x,t)),p}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=f=c=d=void 0},A.flush=function(){return void 0===d?p:w(i())},A}},53816:(e,t,n)=>{var r=n(69389),i=n(79833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},66073:(e,t,n)=>{e.exports=n(84486)},77813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},63105:(e,t,n)=>{var r=n(34963),i=n(80760),o=n(67206),a=n(1469);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},13311:(e,t,n)=>{var r=n(67740)(n(30998));e.exports=r},30998:(e,t,n)=>{var r=n(41848),i=n(67206),o=n(40554),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},8804:(e,t,n)=>{e.exports=n(91175)},85564:(e,t,n)=>{var r=n(21078);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},84486:(e,t,n)=>{var r=n(77412),i=n(89881),o=n(54290),a=n(1469);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},62620:(e,t,n)=>{var r=n(28483),i=n(54290),o=n(81704);e.exports=function(e,t){return null==e?e:r(e,i(t),o)}},17204:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}},27361:(e,t,n)=>{var r=n(97786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},7739:(e,t,n)=>{var r=n(89465),i=n(55189),o=Object.prototype.hasOwnProperty,a=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},79095:(e,t,n)=>{var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},91175:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},6557:e=>{e.exports=function(e){return e}},64721:(e,t,n)=>{var r=n(42118),i=n(98612),o=n(47037),a=n(40554),s=n(52628),l=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var u=e.length;return n<0&&(n=l(u+n,0)),o(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}},3651:(e,t,n)=>{var r=n(42118),i=n(40554),o=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=null==n?0:i(n);return s<0&&(s=o(a+s,0)),r(e,t,s)}},35694:(e,t,n)=>{var r=n(9454),i=n(37005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},98612:(e,t,n)=>{var r=n(23560),i=n(41780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},29246:(e,t,n)=>{var r=n(98612),i=n(37005);e.exports=function(e){return i(e)&&r(e)}},44144:(e,t,n)=>{e=n.nmd(e);var r=n(55639),i=n(95062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},41609:(e,t,n)=>{var r=n(280),i=n(64160),o=n(35694),a=n(1469),s=n(98612),l=n(44144),c=n(25726),u=n(36719),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},23560:(e,t,n)=>{var r=n(44239),i=n(13218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:(e,t,n)=>{var r=n(25588),i=n(7518),o=n(31167),a=o&&o.isMap,s=a?i(a):r;e.exports=s},14293:e=>{e.exports=function(e){return null==e}},45220:e=>{e.exports=function(e){return null===e}},13218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},68630:(e,t,n)=>{var r=n(44239),i=n(85924),o=n(37005),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},72928:(e,t,n)=>{var r=n(29221),i=n(7518),o=n(31167),a=o&&o.isSet,s=a?i(a):r;e.exports=s},47037:(e,t,n)=>{var r=n(44239),i=n(1469),o=n(37005);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},33448:(e,t,n)=>{var r=n(44239),i=n(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},36719:(e,t,n)=>{var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:(e,t,n)=>{var r=n(14636),i=n(280),o=n(98612);e.exports=function(e){return o(e)?r(e):i(e)}},81704:(e,t,n)=>{var r=n(14636),i=n(10313),o=n(98612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},10928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},35161:(e,t,n)=>{var r=n(29932),i=n(67206),o=n(69199),a=n(1469);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},88306:(e,t,n)=>{var r=n(83369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},82492:(e,t,n)=>{var r=n(42980),i=n(21463)((function(e,t,n){r(e,t,n)}));e.exports=i},94885:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},50308:e=>{e.exports=function(){}},7771:(e,t,n)=>{var r=n(55639);e.exports=function(){return r.Date.now()}},57557:(e,t,n)=>{var r=n(29932),i=n(85990),o=n(57406),a=n(71811),s=n(98363),l=n(60696),c=n(99021),u=n(46904),p=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=i(n,7,l));for(var p=t.length;p--;)o(n,t[p]);return n}));e.exports=p},14176:(e,t,n)=>{var r=n(67206),i=n(94885),o=n(35937);e.exports=function(e,t){return o(e,i(r(t)))}},51463:(e,t,n)=>{var r=n(89567);e.exports=function(e){return r(2,e)}},78718:(e,t,n)=>{var r=n(25970),i=n(99021)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},35937:(e,t,n)=>{var r=n(29932),i=n(67206),o=n(63012),a=n(46904);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=i(t),o(e,n,(function(e,n){return t(e,n[0])}))}},39601:(e,t,n)=>{var r=n(40371),i=n(79152),o=n(15403),a=n(40327);e.exports=function(e){return o(e)?r(a(e)):i(e)}},54061:(e,t,n)=>{var r=n(62663),i=n(89881),o=n(67206),a=n(10107),s=n(1469);e.exports=function(e,t,n){var l=s(e)?r:a,c=arguments.length<3;return l(e,o(t,4),n,c,i)}},43063:(e,t,n)=>{var r=n(34963),i=n(80760),o=n(67206),a=n(1469),s=n(94885);e.exports=function(e,t){return(a(e)?r:i)(e,s(o(t,3)))}},18029:(e,t,n)=>{var r=n(35393),i=n(11700),o=r((function(e,t,n){return e+(n?" ":"")+i(t)}));e.exports=o},70479:e=>{e.exports=function(){return[]}},95062:e=>{e.exports=function(){return!1}},73303:(e,t,n)=>{var r=n(67206),i=n(67762);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):0}},81962:e=>{e.exports=function(e,t){return t(e),e}},18601:(e,t,n)=>{var r=n(14841),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},40554:(e,t,n)=>{var r=n(18601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},14841:(e,t,n)=>{var r=n(27561),i=n(13218),o=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},59881:(e,t,n)=>{var r=n(98363),i=n(81704);e.exports=function(e){return r(e,i(e))}},79833:(e,t,n)=>{var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},92742:(e,t,n)=>{var r=n(80531),i=n(27561),o=n(40180),a=n(5512),s=n(89817),l=n(83140),c=n(79833);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return i(e);if(!e||!(t=r(t)))return e;var u=l(e),p=l(t),d=s(u,p),f=a(u,p)+1;return o(u,d,f).join("")}},45578:(e,t,n)=>{var r=n(67206),i=n(45652);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},11700:(e,t,n)=>{var r=n(98805)("toUpperCase");e.exports=r},52628:(e,t,n)=>{var r=n(47415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},58748:(e,t,n)=>{var r=n(49029),i=n(93157),o=n(79833),a=n(2757);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},99490:(e,t)=>{"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t,n){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i},s.apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}var p=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(l(Error)),d=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return i(t,e),t}(p),f=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return i(t,e),t}(p),h=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return i(t,e),t}(p),m=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(p),g=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return i(t,e),t}(p),v=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(p),y=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return i(t,e),t}(p),b="numeric",x="short",w="long",A={year:b,month:b,day:b},_={year:b,month:x,day:b},C={year:b,month:x,day:b,weekday:x},k={year:b,month:w,day:b},S={year:b,month:w,day:b,weekday:w},E={hour:b,minute:b},T={hour:b,minute:b,second:b},O={hour:b,minute:b,second:b,timeZoneName:x},M={hour:b,minute:b,second:b,timeZoneName:w},L={hour:b,minute:b,hour12:!1},B={hour:b,minute:b,second:b,hour12:!1},D={hour:b,minute:b,second:b,hour12:!1,timeZoneName:x},N={hour:b,minute:b,second:b,hour12:!1,timeZoneName:w},j={year:b,month:b,day:b,hour:b,minute:b},P={year:b,month:b,day:b,hour:b,minute:b,second:b},R={year:b,month:x,day:b,hour:b,minute:b},F={year:b,month:x,day:b,hour:b,minute:b,second:b},I={year:b,month:x,day:b,weekday:x,hour:b,minute:b},z={year:b,month:w,day:b,hour:b,minute:b,timeZoneName:x},$={year:b,month:w,day:b,hour:b,minute:b,second:b,timeZoneName:x},q={year:b,month:w,day:b,weekday:w,hour:b,minute:b,timeZoneName:w},H={year:b,month:w,day:b,weekday:w,hour:b,minute:b,second:b,timeZoneName:w};function W(e){return void 0===e}function U(e){return"number"==typeof e}function V(e){return"number"==typeof e&&e%1==0}function K(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function G(){return!W(Intl.DateTimeFormat.prototype.formatToParts)}function Y(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function X(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function J(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}function Z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t,n){return V(e)&&e>=t&&e<=n}function ee(e,t){void 0===t&&(t=2);var n=e<0?"-":"",r=n?-1*e:e;return""+n+(r.toString().length<t?("0".repeat(t)+r).slice(-t):r.toString())}function te(e){return W(e)||null===e||""===e?void 0:parseInt(e,10)}function ne(e){if(!W(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function re(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function ie(e){return e%4==0&&(e%100!=0||e%400==0)}function oe(e){return ie(e)?366:365}function ae(e,t){var n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?ie(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function se(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function le(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function ce(e){return e>99?e:e>60?1900+e:2e3+e}function ue(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=Object.assign({timeZoneName:t},o),s=K();if(s&&G()){var l=new Intl.DateTimeFormat(n,a).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}if(s){var c=new Intl.DateTimeFormat(n,o).format(i);return new Intl.DateTimeFormat(n,a).format(i).substring(c.length).replace(/^[, \u200e]+/,"")}return null}function pe(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function de(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new v("Invalid unit value "+e);return t}function fe(e,t,n){var r={};for(var i in e)if(Z(e,i)){if(n.indexOf(i)>=0)continue;var o=e[i];if(null==o)continue;r[t(i)]=de(o)}return r}function he(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+ee(n,2)+":"+ee(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+ee(n,2)+ee(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return J(e,["hour","minute","second","millisecond"])}var ge=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function ve(e){return JSON.stringify(e,Object.keys(e).sort())}var ye=["January","February","March","April","May","June","July","August","September","October","November","December"],be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xe=["J","F","M","A","M","J","J","A","S","O","N","D"];function we(e){switch(e){case"narrow":return[].concat(xe);case"short":return[].concat(be);case"long":return[].concat(ye);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Ae=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],_e=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ce=["M","T","W","T","F","S","S"];function ke(e){switch(e){case"narrow":return[].concat(Ce);case"short":return[].concat(_e);case"long":return[].concat(Ae);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Se=["AM","PM"],Ee=["Before Christ","Anno Domini"],Te=["BC","AD"],Oe=["B","A"];function Me(e){switch(e){case"narrow":return[].concat(Oe);case"short":return[].concat(Te);case"long":return[].concat(Ee);default:return null}}function Le(e,t){for(var n,r="",i=u(e);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=t(o.val)}return r}var Be={D:A,DD:_,DDD:k,DDDD:S,t:E,tt:T,ttt:O,tttt:M,T:L,TT:B,TTT:D,TTTT:N,f:j,ff:R,fff:z,ffff:q,F:P,FF:F,FFF:$,FFFF:H},De=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(n.length>0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Be[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ee(e,t);var n=Object.assign({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&G(),a=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(){return i?function(e){return Se[e.hour<12?0:1]}(t):a({hour:"numeric",hour12:!0},"dayperiod")},c=function(e,n){return i?function(e,t){return we(t)[e.month-1]}(t,e):a(n?{month:e}:{month:e,day:"numeric"},"month")},u=function(e,n){return i?function(e,t){return ke(t)[e.weekday-1]}(t,e):a(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},p=function(e){return i?function(e,t){return Me(t)[e.year<0?0:1]}(t,e):a({era:e},"era")};return Le(e.parseFormat(n),(function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return l();case"d":return o?a({day:"numeric"},"day"):r.num(t.day);case"dd":return o?a({day:"2-digit"},"day"):r.num(t.day,2);case"c":case"E":return r.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?a({month:"numeric"},"month"):r.num(t.month);case"MM":return o?a({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?a({year:"numeric"},"year"):r.num(t.year);case"yy":return o?a({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):r.num(t.year,6);case"G":return p("short");case"GG":return p("long");case"GGGGG":return p("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,i=this,o=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},a=e.parseFormat(n),s=a.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),l=t.shiftTo.apply(t,s.map(o).filter((function(e){return e})));return Le(a,(r=l,function(e){var t=o(e);return t?i.num(r.get(t),e.length):e}))},e}(),Ne=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),je=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new y},t.formatOffset=function(e,t){throw new y},t.offset=function(e){throw new y},t.equals=function(e){throw new y},r(e,[{key:"type",get:function(){throw new y}},{key:"name",get:function(){throw new y}},{key:"universal",get:function(){throw new y}},{key:"isValid",get:function(){throw new y}}]),e}(),Pe=null,Re=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.offsetName=function(e,t){return ue(e,t.format,t.locale)},n.formatOffset=function(e,t){return he(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},r(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return K()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Pe&&(Pe=new t),Pe}}]),t}(je),Fe=RegExp("^"+ge.source+"$"),Ie={};var ze={year:0,month:1,day:2,hour:3,minute:4,second:5};var $e={},qe=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}i(t,e),t.create=function(e){return $e[e]||($e[e]=new t(e)),$e[e]},t.resetCache=function(){$e={},Ie={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Fe))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return ue(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return he(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,Ie[n]||(Ie[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Ie[n]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,s=o.value,l=ze[a];W(l)||(r[l]=parseInt(s,10))}return r}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],o=r[2];return[r[3],i,o,r[4],r[5],r[6]]}(r,t),o=i[0],a=i[1],s=i[2],l=i[3],c=+t,u=c%1e3;return(se({year:o,month:a,day:s,hour:24===l?0:l,minute:i[4],second:i[5],millisecond:0})-(c-=u>=0?u:1e3+u))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},r(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(je),He=null,We=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}i(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(pe(n[1],n[2]))}return null},r(t,null,[{key:"utcInstance",get:function(){return null===He&&(He=new t(0)),He}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return he(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},r(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+he(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(je),Ue=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}i(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},r(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(je);function Ve(e,t){var n;if(W(e)||null===e)return t;if(e instanceof je)return e;if("string"==typeof e){var r=e.toLowerCase();return"local"===r?t:"utc"===r||"gmt"===r?We.utcInstance:null!=(n=qe.parseGMTOffset(e))?We.instance(n):qe.isValidSpecifier(r)?qe.create(e):We.parseSpecifier(r)||new Ue(e)}return U(e)?We.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ue(e)}var Ke=function(){return Date.now()},Ge=null,Ye=null,Xe=null,Je=null,Ze=!1,Qe=function(){function e(){}return e.resetCaches=function(){ut.resetCache(),qe.resetCache()},r(e,null,[{key:"now",get:function(){return Ke},set:function(e){Ke=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Ge=e?Ve(e):null}},{key:"defaultZone",get:function(){return Ge||Re.instance}},{key:"defaultLocale",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultNumberingSystem",get:function(){return Xe},set:function(e){Xe=e}},{key:"defaultOutputCalendar",get:function(){return Je},set:function(e){Je=e}},{key:"throwOnInvalid",get:function(){return Ze},set:function(e){Ze=e}}]),e}(),et={};function tt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=et[n];return r||(r=new Intl.DateTimeFormat(e,t),et[n]=r),r}var nt={};var rt={};function it(e,t){void 0===t&&(t={});var n=t,r=(n.base,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["base"])),i=JSON.stringify([e,r]),o=rt[i];return o||(o=new Intl.RelativeTimeFormat(e,t),rt[i]=o),o}var ot=null;function at(e,t,n,r,i){var o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}var st=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&K()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=nt[n];return r||(r=new Intl.NumberFormat(e,t),nt[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ee(this.floor?Math.floor(e):re(e,3),this.padTo)},e}(),lt=function(){function e(e,t,n){var r;if(this.opts=n,this.hasIntl=K(),e.zone.universal&&this.hasIntl){var i=e.offset/60*-1,o=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,a=qe.isValidZone(o);0!==e.offset&&a?(r=o,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:fr.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);if(this.hasIntl){var s=Object.assign({},this.opts);r&&(s.timeZone=r),this.dtf=tt(t,s)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(ve(J(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case ve(A):return"M/d/yyyy";case ve(_):return"LLL d, yyyy";case ve(C):return"EEE, LLL d, yyyy";case ve(k):return"LLLL d, yyyy";case ve(S):return"EEEE, LLLL d, yyyy";case ve(E):return"h:mm a";case ve(T):return"h:mm:ss a";case ve(O):case ve(M):return"h:mm a";case ve(L):return"HH:mm";case ve(B):return"HH:mm:ss";case ve(D):case ve(N):return"HH:mm";case ve(j):return"M/d/yyyy, h:mm a";case ve(R):return"LLL d, yyyy, h:mm a";case ve(z):return"LLLL d, yyyy, h:mm a";case ve(q):return t;case ve(P):return"M/d/yyyy, h:mm:ss a";case ve(F):return"LLL d, yyyy, h:mm:ss a";case ve(I):return"EEE, d LLL yyyy, h:mm a";case ve($):return"LLLL d, yyyy, h:mm:ss a";case ve(H):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}(this.opts),t=ut.create("en-US");return De.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&G()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),ct=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&Y()&&(this.rtf=it(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var s=Object.is(t,-0)||t<0,l=Math.abs(t),c=1===l,u=i[e],p=r?c?u[1]:u[2]||u[1]:c?i[e][0]:e;return s?l+" "+p+" ago":"in "+l+" "+p}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),ut=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=tt(e).resolvedOptions()}catch(e){n=tt(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),o=i[0],a=i[1],s=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return K()?n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var o=t||Qe.defaultLocale;return new e(o||(i?"en-US":function(){if(ot)return ot;if(K()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return ot=e&&"und"!==e?e:"en-US"}return ot="en-US"}()),n||Qe.defaultNumberingSystem,r||Qe.defaultOutputCalendar,o)},e.resetCache=function(){ot=null,et={},nt={},rt={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return e.create(r,i,o)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=K()&&G(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),at(this,e,n,we,(function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=fr.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,"month")}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),at(this,e,n,ke,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=fr.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),at(this,void 0,e,(function(){return Se}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[fr.utc(2016,11,13,9),fr.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),at(this,e,t,Me,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[fr.utc(-40,1,1),fr.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new st(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new lt(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ct(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||K()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},r(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||K()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+r+"$")}function dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(t,n){var r=t[0],i=t[1],o=t[2],a=n(e,o),s=a[0],l=a[1],c=a[2];return[Object.assign(r,s),i||l,c]}),[{},null,1]).slice(0,2)}}function ft(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],l=a[1],c=s.exec(e);if(c)return l(c)}return[null,null]}function ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){var r,i={};for(r=0;r<t.length;r++)i[t[r]]=te(e[n+r]);return[i,null,n+r]}}var mt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,vt=RegExp(""+gt.source+mt.source+"?"),yt=RegExp("(?:T"+vt.source+")?"),bt=ht("weekYear","weekNumber","weekDay"),xt=ht("year","ordinal"),wt=RegExp(gt.source+" ?(?:"+mt.source+"|("+ge.source+"))?"),At=RegExp("(?: "+wt.source+")?");function _t(e,t,n){var r=e[t];return W(r)?n:te(r)}function Ct(e,t){return[{year:_t(e,t),month:_t(e,t+1,1),day:_t(e,t+2,1)},null,t+3]}function kt(e,t){return[{hours:_t(e,t,0),minutes:_t(e,t+1,0),seconds:_t(e,t+2,0),milliseconds:ne(e[t+3])},null,t+4]}function St(e,t){var n=!e[t]&&!e[t+1],r=pe(e[t+1],e[t+2]);return[{},n?null:We.instance(r),t+3]}function Et(e,t){return[{},e[t]?qe.create(e[t]):null,t+1]}var Tt=RegExp("^T?"+gt.source+"$"),Ot=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Mt(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u="-"===t[0],p=l&&"-"===l[0],d=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&u)?-e:e};return[{years:d(te(n)),months:d(te(r)),weeks:d(te(i)),days:d(te(o)),hours:d(te(a)),minutes:d(te(s)),seconds:d(te(l),"-0"===l),milliseconds:d(ne(c),p)}]}var Lt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Bt(e,t,n,r,i,o,a){var s={year:2===t.length?ce(te(t)):te(t),month:be.indexOf(n)+1,day:te(r),hour:te(i),minute:te(o)};return a&&(s.second=te(a)),e&&(s.weekday=e.length>3?Ae.indexOf(e)+1:_e.indexOf(e)+1),s}var Dt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nt(e){var t,n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],p=e[10],d=e[11],f=Bt(n,o,i,r,a,s,l);return t=c?Lt[c]:u?0:pe(p,d),[f,new We(t)]}var jt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Pt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Rt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ft(e){var t=e[1],n=e[2],r=e[3];return[Bt(t,e[4],r,n,e[5],e[6],e[7]),We.utcInstance]}function It(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[Bt(t,e[7],n,r,i,o,a),We.utcInstance]}var zt=pt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yt),$t=pt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,yt),qt=pt(/(\d{4})-?(\d{3})/,yt),Ht=pt(vt),Wt=dt(Ct,kt,St),Ut=dt(bt,kt,St),Vt=dt(xt,kt,St),Kt=dt(kt,St);var Gt=dt(kt);var Yt=pt(/(\d{4})-(\d\d)-(\d\d)/,At),Xt=pt(wt),Jt=dt(Ct,kt,St,Et),Zt=dt(kt,St,Et);var Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},en=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),tn=365.2425,nn=30.436875,rn=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:tn,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:nn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),on=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],an=on.slice(0).reverse();function sn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new cn(r)}function ln(e,t,n,r,i){var o=e[i][n],a=t[n]/o,s=!(Math.sign(a)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(a)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(a):Math.trunc(a);r[i]+=s,t[n]-=s*o}var cn=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||ut.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?rn:en,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject(Object.assign({milliseconds:t},n))},e.fromObject=function(t){if(null==t||"object"!=typeof t)throw new v("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:fe(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:ut.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return ft(e,[Ot,Mt])}(t),i=r[0];if(i){var o=Object.assign(i,n);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=function(e){return ft(e,[Tt,Gt])}(t),i=r[0];if(i){var o=Object.assign(i,n);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new v("need to specify a reason the Duration is invalid");var r=t instanceof Ne?t:new Ne(t,n);if(Qe.throwOnInvalid)throw new h(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new g(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?De.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=re(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,n=un(e),r={},i=u(on);!(t=i()).done;){var o=t.value;(Z(n.values,o)||Z(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return sn(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=un(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=de(e(this.values[i],i))}return sn(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?sn(this,{values:Object.assign(this.values,fe(t,e.normalizeUnit,[]))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.conversionAccuracy,o={loc:this.loc.clone({locale:n,numberingSystem:r})};return i&&(o.conversionAccuracy=i),sn(this,o)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){an.reduce((function(n,r){return W(t[r])?n:(n&&ln(e,t,n,t,r),r)}),null)}(this.matrix,e),sn(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!this.isValid)return this;if(0===n.length)return this;n=n.map((function(t){return e.normalizeUnit(t)}));for(var i,o,a={},s={},l=this.toObject(),c=u(on);!(o=c()).done;){var p=o.value;if(n.indexOf(p)>=0){i=p;var d=0;for(var f in s)d+=this.matrix[f][p]*s[f],s[f]=0;U(l[p])&&(d+=l[p]);var h=Math.trunc(d);for(var m in a[p]=h,s[p]=d-h,l)on.indexOf(m)>on.indexOf(p)&&ln(this.matrix,l,m,a,p)}else U(l[p])&&(s[p]=l[p])}for(var g in s)0!==s[g]&&(a[i]+=g===i?s[g]:s[g]/this.matrix[i][g]);return sn(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return sn(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=u(on);!(t=n()).done;){var r=t.value;if(i=this.values[r],o=e.values[r],!(void 0===i||0===i?void 0===o||0===o:i===o))return!1}var i,o;return!0},r(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function un(e){if(U(e))return cn.fromMillis(e);if(cn.isDuration(e))return e;if("object"==typeof e)return cn.fromObject(e);throw new v("Unknown duration argument "+e+" of type "+typeof e)}var pn="Invalid Interval";function dn(e,t){return e&&e.isValid?t&&t.isValid?t<e?fn.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:fn.invalid("missing or invalid end"):fn.invalid("missing or invalid start")}var fn=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new v("need to specify a reason the Interval is invalid");var r=t instanceof Ne?t:new Ne(t,n);if(Qe.throwOnInvalid)throw new f(r);return new e({invalid:r})},e.fromDateTimes=function(t,n){var r=hr(t),i=hr(n),o=dn(r,i);return null==o?new e({start:r,end:i}):o},e.after=function(t,n){var r=un(n),i=hr(t);return e.fromDateTimes(i,i.plus(r))},e.before=function(t,n){var r=un(n),i=hr(t);return e.fromDateTimes(i.minus(r),i)},e.fromISO=function(t,n){var r=(t||"").split("/",2),i=r[0],o=r[1];if(i&&o){var a,s,l,c;try{s=(a=fr.fromISO(i,n)).isValid}catch(o){s=!1}try{c=(l=fr.fromISO(o,n)).isValid}catch(o){c=!1}if(s&&c)return e.fromDateTimes(a,l);if(s){var u=cn.fromISO(o,n);if(u.isValid)return e.after(a,u)}else if(c){var p=cn.fromISO(i,n);if(p.isValid)return e.before(l,p)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.map(hr).filter((function(e){return t.contains(e)})).sort(),a=[],s=this.s,l=0;s<this.e;){var c=o[l]||this.e,u=+c>+this.e?this.e:c;a.push(e.fromDateTimes(s,u)),s=u,l+=1}return a},t.splitBy=function(t){var n=un(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,o=1,a=[];i<this.e;){var s=this.start.plus(n.mapUnits((function(e){return e*o})));r=+s>+this.e?this.e:s,a.push(e.fromDateTimes(i,r)),i=r,o+=1}return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,o=0,a=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=u((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=l()).done;){var c=r.value;1===(o+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&a.push(e.fromDateTimes(i,c.time)),i=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.xor([this].concat(r)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":pn},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):pn},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():pn},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):pn},t.toFormat=function(e,t){var n=(void 0===t?{}:t).separator,r=void 0===n?" – ":n;return this.isValid?""+this.s.toFormat(e)+r+this.e.toFormat(e):pn},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):cn.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},r(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),hn=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Qe.defaultZone);var t=fr.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return qe.isValidSpecifier(e)&&qe.isValidZone(e)},e.normalizeZone=function(e){return Ve(e,Qe.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,s=n.locObj,l=void 0===s?null:s,c=n.outputCalendar,u=void 0===c?"gregory":c;return(l||ut.create(i,a,u)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,s=n.locObj,l=void 0===s?null:s,c=n.outputCalendar,u=void 0===c?"gregory":c;return(l||ut.create(i,a,u)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,s=n.locObj;return((void 0===s?null:s)||ut.create(i,a,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,s=n.locObj;return((void 0===s?null:s)||ut.create(i,a,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,n=void 0===t?null:t;return ut.create(n).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var n=(void 0===t?{}:t).locale,r=void 0===n?null:n;return ut.create(r,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if(K()){e=!0,t=G(),r=Y();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e}();function mn(e,t){var n=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},r=n(t)-n(e);return Math.floor(cn.fromMillis(r).as("days"))}function gn(e,t,n,r){var i=function(e,t,n){for(var r,i,o={},a=0,s=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var n=mn(e,t);return(n-n%7)/7}],["days",mn]];a<s.length;a++){var l=s[a],c=l[0],u=l[1];if(n.indexOf(c)>=0){var p;r=c;var d,f=u(e,t);(i=e.plus(((p={})[c]=f,p)))>t?(e=e.plus(((d={})[c]=f-1,d)),f-=1):e=i,o[c]=f}}return[e,o,i,r]}(e,t,n),o=i[0],a=i[1],s=i[2],l=i[3],c=t-o,u=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===u.length){var p;if(s<t)s=o.plus(((p={})[l]=1,p));s!==o&&(a[l]=(a[l]||0)+c/(s-o))}var d,f=cn.fromObject(Object.assign(a,r));return u.length>0?(d=cn.fromMillis(c,r)).shiftTo.apply(d,u).plus(f):f}var vn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},bn=vn.hanidec.replace(/[\[|\]]/g,"").split("");function xn(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+vn[n||"latn"]+t)}var wn="missing Intl.DateTimeFormat.formatToParts support";function An(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(vn.hanidec))t+=bn.indexOf(e[n]);else for(var i in yn){var o=yn[i],a=o[0],s=o[1];r>=a&&r<=s&&(t+=r-a)}}return parseInt(t,10)}return t}(n))}}}var _n="( |"+String.fromCharCode(160)+")",Cn=new RegExp(_n,"g");function kn(e){return e.replace(/\./g,"\\.?").replace(Cn,_n)}function Sn(e){return e.replace(/\./g,"").replace(Cn," ").toLowerCase()}function En(e,t){return null===e?null:{regex:RegExp(e.map(kn).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return Sn(r)===Sn(e)}))+t}}}function Tn(e,t){return{regex:e,deser:function(e){return pe(e[1],e[2])},groups:t}}function On(e){return{regex:e,deser:function(e){return e[0]}}}var Mn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Ln=null;function Bn(e,t){if(e.literal)return e;var n=De.macroTokenToFormatOpts(e.val);if(!n)return e;var r=De.create(t,n).formatDateTimeParts((Ln||(Ln=fr.fromMillis(1555555555555)),Ln)).map((function(e){return function(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var o=n[r],a=Mn[r];return"object"==typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}function Dn(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return Bn(e,t)})))}(De.parseFormat(n),e),i=r.map((function(t){return n=t,i=xn(r=e),o=xn(r,"{2}"),a=xn(r,"{3}"),s=xn(r,"{4}"),l=xn(r,"{6}"),c=xn(r,"{1,2}"),u=xn(r,"{1,3}"),p=xn(r,"{1,6}"),d=xn(r,"{1,9}"),f=xn(r,"{2,4}"),h=xn(r,"{4,6}"),m=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},g=function(e){if(n.literal)return m(e);switch(e.val){case"G":return En(r.eras("short",!1),0);case"GG":return En(r.eras("long",!1),0);case"y":return An(p);case"yy":case"kk":return An(f,ce);case"yyyy":case"kkkk":return An(s);case"yyyyy":return An(h);case"yyyyyy":return An(l);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return An(c);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return An(o);case"MMM":return En(r.months("short",!0,!1),1);case"MMMM":return En(r.months("long",!0,!1),1);case"LLL":return En(r.months("short",!1,!1),1);case"LLLL":return En(r.months("long",!1,!1),1);case"o":case"S":return An(u);case"ooo":case"SSS":return An(a);case"u":return On(d);case"a":return En(r.meridiems(),0);case"E":case"c":return An(i);case"EEE":return En(r.weekdays("short",!1,!1),1);case"EEEE":return En(r.weekdays("long",!1,!1),1);case"ccc":return En(r.weekdays("short",!0,!1),1);case"cccc":return En(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Tn(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return Tn(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return On(/[a-z_+-/]{1,256}?/i);default:return m(e)}}(n)||{invalidReason:wn},g.token=n,g;var n,r,i,o,a,s,l,c,u,p,d,f,h,m,g})),o=i.find((function(e){return e.invalidReason}));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};var a=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(i),s=a[0],l=a[1],c=RegExp(s,"i"),u=function(e,t,n){var r=e.match(t);if(r){var i={},o=1;for(var a in n)if(Z(n,a)){var s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+l))),o+=l}return[r,i]}return[r,{}]}(t,c,l),p=u[0],d=u[1],f=d?function(e){var t;return t=W(e.Z)?W(e.z)?null:qe.create(e.z):new We(e.Z),W(e.q)||(e.M=3*(e.q-1)+1),W(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),W(e.u)||(e.S=ne(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),t]}(d):[null,null],h=f[0],g=f[1];if(Z(d,"a")&&Z(d,"H"))throw new m("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:c,rawMatches:p,matches:d,result:h,zone:g}}var Nn=[0,31,59,90,120,151,181,212,243,273,304,334],jn=[0,31,60,91,121,152,182,213,244,274,305,335];function Pn(e,t){return new Ne("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Rn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Fn(e,t,n){return n+(ie(e)?jn:Nn)[t-1]}function In(e,t){var n=ie(e)?jn:Nn,r=n.findIndex((function(e){return e<t}));return{month:r+1,day:t-n[r]}}function zn(e){var t,n=e.year,r=e.month,i=e.day,o=Fn(n,r,i),a=Rn(n,r,i),s=Math.floor((o-a+10)/7);return s<1?s=le(t=n-1):s>le(n)?(t=n+1,s=1):t=n,Object.assign({weekYear:t,weekNumber:s,weekday:a},me(e))}function $n(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=Rn(n,1,4),a=oe(n),s=7*r+i-o-3;s<1?s+=oe(t=n-1):s>a?(t=n+1,s-=oe(n)):t=n;var l=In(t,s),c=l.month,u=l.day;return Object.assign({year:t,month:c,day:u},me(e))}function qn(e){var t=e.year,n=Fn(t,e.month,e.day);return Object.assign({year:t,ordinal:n},me(e))}function Hn(e){var t=e.year,n=In(t,e.ordinal),r=n.month,i=n.day;return Object.assign({year:t,month:r,day:i},me(e))}function Wn(e){var t=V(e.year),n=Q(e.month,1,12),r=Q(e.day,1,ae(e.year,e.month));return t?n?!r&&Pn("day",e.day):Pn("month",e.month):Pn("year",e.year)}function Un(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,o=Q(t,0,23)||24===t&&0===n&&0===r&&0===i,a=Q(n,0,59),s=Q(r,0,59),l=Q(i,0,999);return o?a?s?!l&&Pn("millisecond",i):Pn("second",r):Pn("minute",n):Pn("hour",t)}var Vn="Invalid DateTime",Kn=864e13;function Gn(e){return new Ne("unsupported zone",'the zone "'+e.name+'" is not supported')}function Yn(e){return null===e.weekData&&(e.weekData=zn(e.c)),e.weekData}function Xn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new fr(Object.assign({},n,t,{old:n}))}function Jn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Zn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Qn(e,t,n){return Jn(se(e),t,n)}function er(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,ae(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=cn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Jn(se(o),n,e.zone),l=s[0],c=s[1];return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function tr(e,t,n,r,i){var o=n.setZone,a=n.zone;if(e&&0!==Object.keys(e).length){var s=t||a,l=fr.fromObject(Object.assign(e,n,{zone:s,setZone:void 0}));return o?l:l.setZone(a)}return fr.invalid(new Ne("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function nr(e,t,n){return void 0===n&&(n=!0),e.isValid?De.create(ut.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function rr(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,s=t.includePrefix,l=void 0!==s&&s,c=t.includeZone,u=void 0!==c&&c,p=t.spaceZone,d=void 0!==p&&p,f=t.format,h=void 0===f?"extended":f,m="basic"===h?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(m+="basic"===h?"ss":":ss",o&&0===e.millisecond||(m+=".SSS")),(u||a)&&d&&(m+=" "),u?m+="z":a&&(m+="basic"===h?"ZZZ":"ZZ");var g=nr(e,m);return l&&(g="T"+g),g}var ir={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},or={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ar={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sr=["year","month","day","hour","minute","second","millisecond"],lr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],cr=["year","ordinal","hour","minute","second","millisecond"];function ur(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new g(e);return t}function pr(e,t){for(var n,r=u(sr);!(n=r()).done;){var i=n.value;W(e[i])&&(e[i]=ir[i])}var o=Wn(e)||Un(e);if(o)return fr.invalid(o);var a=Qe.now(),s=Qn(e,t.offset(a),t),l=s[0],c=s[1];return new fr({ts:l,zone:t,o:c})}function dr(e,t,n){var r=!!W(n.round)||n.round,i=function(e,i){return e=re(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},o=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,s=u(n.units);!(a=s()).done;){var l=a.value,c=o(l);if(Math.abs(c)>=1)return i(c,l)}return i(e>t?-0:0,n.units[n.units.length-1])}var fr=function(){function e(e){var t=e.zone||Qe.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Ne("invalid input"):null)||(t.isValid?null:Gn(t));this.ts=W(e.ts)?Qe.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];r=o[0],i=o[1]}else{var a=t.offset(this.ts);r=Zn(this.ts,a),r=(n=Number.isNaN(r.year)?new Ne("invalid input"):null)?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||ut.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(t,n,r,i,o,a,s){return W(t)?e.now():pr({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},Qe.defaultZone)},e.utc=function(t,n,r,i,o,a,s){return W(t)?new e({ts:Qe.now(),zone:We.utcInstance}):pr({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},We.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var o=Ve(n.zone,Qe.defaultZone);return o.isValid?new e({ts:i,zone:o,loc:ut.fromObject(n)}):e.invalid(Gn(o))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),U(t))return t<-Kn||t>Kn?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ve(n.zone,Qe.defaultZone),loc:ut.fromObject(n)});throw new v("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),U(t))return new e({ts:1e3*t,zone:Ve(n.zone,Qe.defaultZone),loc:ut.fromObject(n)});throw new v("fromSeconds requires a numerical input")},e.fromObject=function(t){var n=Ve(t.zone,Qe.defaultZone);if(!n.isValid)return e.invalid(Gn(n));var r=Qe.now(),i=n.offset(r),o=fe(t,ur,["zone","locale","outputCalendar","numberingSystem"]),a=!W(o.ordinal),s=!W(o.year),l=!W(o.month)||!W(o.day),c=s||l,p=o.weekYear||o.weekNumber,d=ut.fromObject(t);if((c||a)&&p)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new m("Can't mix ordinal dates with month/day");var f,h,g=p||o.weekday&&!c,v=Zn(r,i);g?(f=lr,h=or,v=zn(v)):a?(f=cr,h=ar,v=qn(v)):(f=sr,h=ir);for(var y,b=!1,x=u(f);!(y=x()).done;){var w=y.value;W(o[w])?o[w]=b?h[w]:v[w]:b=!0}var A=g?function(e){var t=V(e.weekYear),n=Q(e.weekNumber,1,le(e.weekYear)),r=Q(e.weekday,1,7);return t?n?!r&&Pn("weekday",e.weekday):Pn("week",e.week):Pn("weekYear",e.weekYear)}(o):a?function(e){var t=V(e.year),n=Q(e.ordinal,1,oe(e.year));return t?!n&&Pn("ordinal",e.ordinal):Pn("year",e.year)}(o):Wn(o),_=A||Un(o);if(_)return e.invalid(_);var C=Qn(g?$n(o):a?Hn(o):o,i,n),k=new e({ts:C[0],zone:n,o:C[1],loc:d});return o.weekday&&c&&t.weekday!==k.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+k.toISO()):k},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return ft(e,[zt,Wt],[$t,Ut],[qt,Vt],[Ht,Kt])}(e);return tr(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return ft(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Dt,Nt])}(e);return tr(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return ft(e,[jt,Ft],[Pt,Ft],[Rt,It])}(e);return tr(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),W(t)||W(n))throw new v("fromFormat requires an input string and a format");var i=r,o=i.locale,a=void 0===o?null:o,s=i.numberingSystem,l=void 0===s?null:s,c=function(e,t,n){var r=Dn(e,t,n);return[r.result,r.zone,r.invalidReason]}(ut.fromOpts({locale:a,numberingSystem:l,defaultToEN:!0}),t,n),u=c[0],p=c[1],d=c[2];return d?e.invalid(d):tr(u,p,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return ft(e,[Yt,Jt],[Xt,Zt])}(e);return tr(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new v("need to specify a reason the DateTime is invalid");var r=t instanceof Ne?t:new Ne(t,n);if(Qe.throwOnInvalid)throw new d(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=De.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(We.instance(e),t)},t.toLocal=function(){return this.setZone(Qe.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,s=void 0!==a&&a;if((t=Ve(t,Qe.defaultZone)).equals(this.zone))return this;if(t.isValid){var l=this.ts;if(o||s){var c=t.offset(this.ts);l=Qn(this.toObject(),c,t)[0]}return Xn(this,{ts:l,zone:t})}return e.invalid(Gn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Xn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=fe(e,ur,[]),r=!W(n.weekYear)||!W(n.weekNumber)||!W(n.weekday),i=!W(n.ordinal),o=!W(n.year),a=!W(n.month)||!W(n.day),s=o||a,l=n.weekYear||n.weekNumber;if((s||i)&&l)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new m("Can't mix ordinal dates with month/day");r?t=$n(Object.assign(zn(this.c),n)):W(n.ordinal)?(t=Object.assign(this.toObject(),n),W(n.day)&&(t.day=Math.min(ae(t.year,t.month),t.day))):t=Hn(Object.assign(qn(this.c),n));var c=Qn(t,this.o,this.zone);return Xn(this,{ts:c[0],o:c[1]})},t.plus=function(e){return this.isValid?Xn(this,er(this,un(e))):this},t.minus=function(e){return this.isValid?Xn(this,er(this,un(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=cn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?De.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Vn},t.toLocaleString=function(e){return void 0===e&&(e=A),this.isValid?De.create(this.loc.clone(e),e).formatDateTime(this):Vn},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?De.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),nr(this,n)},t.toISOWeekDate=function(){return nr(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset,s=void 0===a||a,l=t.includePrefix,c=void 0!==l&&l,u=t.format;return rr(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:s,includePrefix:c,format:void 0===u?"extended":u})},t.toRFC2822=function(){return nr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return nr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return nr(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return rr(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Vn},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return cn.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var r,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=t,Array.isArray(r)?r:[r]).map(cn.normalizeUnit),a=e.valueOf()>this.valueOf(),s=gn(a?this:e,a?e:this,o,i);return a?s.negate():s},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?fn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),dr(n,this.plus(r),Object.assign(t,{numeric:"always",units:i,unit:o}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?dr(t.base||e.fromObject({zone:this.zone}),this,Object.assign(t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new v("min requires all arguments be DateTimes");return X(n,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.every(e.isDateTime))throw new v("max requires all arguments be DateTimes");return X(n,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,n){void 0===n&&(n={});var r=n,i=r.locale,o=void 0===i?null:i,a=r.numberingSystem,s=void 0===a?null:a;return Dn(ut.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,n,r){return void 0===r&&(r={}),e.fromFormatExplain(t,n,r)},r(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Yn(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Yn(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Yn(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?qn(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?hn.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?hn.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?hn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?hn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ie(this.year)}},{key:"daysInMonth",get:function(){return ae(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?oe(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?le(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return A}},{key:"DATE_MED",get:function(){return _}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return C}},{key:"DATE_FULL",get:function(){return k}},{key:"DATE_HUGE",get:function(){return S}},{key:"TIME_SIMPLE",get:function(){return E}},{key:"TIME_WITH_SECONDS",get:function(){return T}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return O}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return M}},{key:"TIME_24_SIMPLE",get:function(){return L}},{key:"TIME_24_WITH_SECONDS",get:function(){return B}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return D}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return N}},{key:"DATETIME_SHORT",get:function(){return j}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return P}},{key:"DATETIME_MED",get:function(){return R}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return I}},{key:"DATETIME_FULL",get:function(){return z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return $}},{key:"DATETIME_HUGE",get:function(){return q}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return H}}]),e}();function hr(e){if(fr.isDateTime(e))return e;if(e&&e.valueOf&&U(e.valueOf()))return fr.fromJSDate(e);if(e&&"object"==typeof e)return fr.fromObject(e);throw new v("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=fr,t.Zr=Qe},42441:(e,t,n)=>{var r;!function(i,o,a){if(i){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},p={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)l[111+d]="f"+d;for(d=0;d<=9;++d)l[d+96]=d.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},b.init=function(){var e=b(o);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),i.Mousetrap=b,e.exports&&(e.exports=b),void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function g(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function v(e,t){var n,r,i,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i<n.length;++i)r=n[i],p[r]&&(r=p[r]),t&&"keypress"!=t&&u[r]&&(r=u[r],o.push("shift")),m(r)&&o.push(r);return{key:r,modifiers:o,action:t=g(r,o,t)}}function y(e,t){return null!==e&&e!==o&&(e===t||y(e.parentNode,t))}function b(e){var t=this;if(e=e||o,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},i=!1,a=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function c(e,n,i,o,a,s){var l,c,u,p,d=[],f=i.type;if(!t._callbacks[e])return[];for("keyup"==f&&m(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(c=t._callbacks[e][l],(o||!c.seq||r[c.seq]==c.level)&&f==c.action&&("keypress"==f&&!i.metaKey&&!i.ctrlKey||(u=n,p=c.modifiers,u.sort().join(",")===p.sort().join(",")))){var h=!o&&c.combo==a,g=o&&c.seq==o&&c.level==s;(h||g)&&t._callbacks[e].splice(l,1),d.push(c)}return d}function u(e,n,r,i){t.stopCallback(n,n.target||n.srcElement,r,i)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function p(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||i!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):i=!1)}function d(e,t,o,a){function c(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(l,1e3)}}function p(t){u(o,t,e),"keyup"!==a&&(i=h(t)),setTimeout(l,10)}r[e]=0;for(var d=0;d<t.length;++d){var f=d+1===t.length?p:c(a||v(t[d+1]).action);g(t[d],f,a,e,d)}}function g(e,n,r,i,o){t._directMap[e+":"+r]=n;var a,s=(e=e.replace(/\s+/g," ")).split(" ");s.length>1?d(e,s,n,r):(a=v(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],c(a.key,a.modifiers,{type:a.action},i,e,o),t._callbacks[a.key][i?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:e}))}t._handleKey=function(e,t,n){var r,i=c(e,t,n),o={},p=0,d=!1;for(r=0;r<i.length;++r)i[r].seq&&(p=Math.max(p,i[r].level));for(r=0;r<i.length;++r)if(i[r].seq){if(i[r].level!=p)continue;d=!0,o[i[r].seq]=1,u(i[r].callback,n,i[r].combo,i[r].seq)}else d||u(i[r].callback,n,i[r].combo);var f="keypress"==n.type&&a;n.type!=s||m(e)||f||l(o),a=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)g(e[r],t,n)},f(e,"keypress",p),f(e,"keydown",p),f(e,"keyup",p)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},74865:function(e,t,n){var r,i;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function a(e,t,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,i}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=i(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(r.barSelector),u=r.speed,p=r.easing;return o.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,a(e,u,p)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var i,a=t.querySelector(r.barSelector),s=e?"-100":o(n.status||0),c=document.querySelector(r.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(i=t.querySelector(r.spinnerSelector))&&f(i),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+o)in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,i[1],i[2])}}();function c(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=d(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function p(e,t){var n,r=d(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(i="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=i)},83505:function(e,t,n){e.exports=function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var t={},r={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"bg",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"И",million:"А",billion:"M",trillion:"T"},ordinal:()=>".",currency:{symbol:"лв.",code:"BGN"}})}()}(r);var i=r.exports,o={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"cs-CZ",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},spaceSeparated:!0,currency:{symbol:"Kč",position:"postfix",code:"CZK"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,spaceSeparatedAbbreviation:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(o);var a=o.exports,s={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"da-DK",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"t",million:"mio",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",position:"postfix",code:"DKK"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(s);var l=s.exports,c={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"de-AT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}})}()}(c);var u=c.exports,p={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"de-CH",delimiters:{thousands:"’",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix",code:"CHF"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(p);var d=p.exports,f={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"de-DE",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"Mi",billion:"Ma",trillion:"Bi"},ordinal:function(){return"."},spaceSeparated:!0,currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{totalLength:4,thousandSeparated:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(f);var h=f.exports,m={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"de-LI",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix",code:"CHF"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(m);var g=m.exports,v={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"el",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"χ",million:"ε",billion:"δ",trillion:"τ"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}})}()}(v);var y=v.exports,b={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"en-AU",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"AUD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}})}()}(b);var x=b.exports,w={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"en-GB",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"£",position:"prefix",code:"GBP"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!1,spaceSeparatedCurrency:!1,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!1,average:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,spaceSeparated:!1,mantissa:2},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,spaceSeparated:!1,mantissa:0}}})}()}(w);var A=w.exports,_={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"en-IE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"€",position:"prefix",code:"EUR"}})}()}(_);var C=_.exports,k={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"en-NZ",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"NZD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}})}()}(k);var S=k.exports,E={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"en-ZA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R",position:"prefix",code:"ZAR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}})}()}(E);var T=E.exports,O={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-AR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"postfix",code:"ARS"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(O);var M=O.exports,L={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-CL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix",code:"CLP"},currencyFormat:{output:"currency",thousandSeparated:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(L);var B=L.exports,D={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-CO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(D);var N=D.exports,j={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-CR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"₡",position:"postfix",code:"CRC"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(j);var P=j.exports,R={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-ES",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(R);var F=R.exports,I={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-MX",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"postfix",code:"MXN"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(I);var z=I.exports,$={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-NI",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"C$",position:"prefix",code:"NIO"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}($);var q=$.exports,H={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-PE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"S/.",position:"prefix",code:"PEN"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(H);var W=H.exports,U={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-PR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(U);var V=U.exports,K={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"es-SV",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix",code:"SVC"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(K);var G=K.exports,Y={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"et-EE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tuh",million:"mln",billion:"mld",trillion:"trl"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Y);var X=Y.exports,J={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"fa-IR",delimiters:{thousands:"،",decimal:"."},abbreviations:{thousand:"هزار",million:"میلیون",billion:"میلیارد",trillion:"تریلیون"},ordinal:function(){return"ام"},currency:{symbol:"﷼",code:"IRR"}})}()}(J);var Z=J.exports,Q={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"fi-FI",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Q);var ee=Q.exports,te={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"fil-PH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:e=>{let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"₱",code:"PHP"}})}()}(te);var ne=te.exports,re={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"fr-CA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:e=>1===e?"er":"ème",spaceSeparated:!0,currency:{symbol:"$",position:"postfix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}})}()}(re);var ie=re.exports,oe={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"fr-CH",delimiters:{thousands:" ",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:e=>1===e?"er":"ème",currency:{symbol:"CHF",position:"postfix",code:"CHF"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(oe);var ae=oe.exports,se={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"fr-FR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"Mrd",trillion:"billion"},ordinal:e=>1===e?"er":"ème",bytes:{binarySuffixes:["o","Kio","Mio","Gio","Tio","Pio","Eio","Zio","Yio"],decimalSuffixes:["o","Ko","Mo","Go","To","Po","Eo","Zo","Yo"]},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(se);var le=se.exports,ce={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"he-IL",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"אלף",million:"מיליון",billion:"מיליארד",trillion:"טריליון"},currency:{symbol:"₪",position:"prefix",code:"ILS"},ordinal:()=>"",currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(ce);var ue=ce.exports,pe={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"hu-HU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"Ft",position:"postfix",code:"HUF"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(pe);var de=pe.exports,fe={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"id",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"r",million:"j",billion:"m",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Rp",code:"IDR"}})}()}(fe);var he=fe.exports,me={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"it-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"°"},currency:{symbol:"CHF",code:"CHF"}})}()}(me);var ge=me.exports,ve={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"it-IT",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(ve);var ye=ve.exports,be={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"ja-JP",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix",code:"JPY"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}})}()}(be);var xe=be.exports,we={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"ko-KR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"천",million:"백만",billion:"십억",trillion:"일조"},ordinal:function(){return"."},currency:{symbol:"₩",code:"KPW"}})}()}(we);var Ae=we.exports,_e={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"lv-LV",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tūkst.",million:"milj.",billion:"mljrd.",trillion:"trilj."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(_e);var Ce=_e.exports,ke={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"nb-NO",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"b"},ordinal:()=>"",currency:{symbol:"kr",position:"postfix",code:"NOK"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(ke);var Se=ke.exports,Ee={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"nb",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",code:"NOK"}})}()}(Ee);var Te=Ee.exports,Oe={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"nl-BE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mld",trillion:"bln"},ordinal:e=>{let t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Oe);var Me=Oe.exports,Le={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"nl-NL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:e=>{let t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"€",position:"prefix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Le);var Be=Le.exports,De={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"nn",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",code:"NOK"}})}()}(De);var Ne=De.exports,je={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"pl-PL",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:()=>".",currency:{symbol:" zł",position:"postfix",code:"PLN"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(je);var Pe=je.exports,Re={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"pt-BR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"R$",position:"prefix",code:"BRL"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Re);var Fe=Re.exports,Ie={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"pt-PT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Ie);var ze=Ie.exports,$e={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"ro-RO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mii",million:"mil",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" lei",position:"postfix",code:"RON"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}($e);var qe=$e.exports,He={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"ro-RO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mii",million:"mil",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" lei",position:"postfix",code:"RON"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(He);var We=He.exports,Ue={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"ru-RU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"руб.",position:"postfix",code:"RUB"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Ue);var Ve=Ue.exports,Ke={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"ru-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴",position:"postfix",code:"UAH"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Ke);var Ge=Ke.exports,Ye={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"sk-SK",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},spaceSeparated:!0,currency:{symbol:"€",position:"postfix",code:"EUR"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(Ye);var Xe=Ye.exports,Je={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"sl",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}})}()}(Je);var Ze=Je.exports,Qe={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"sr-Cyrl-RS",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:()=>".",currency:{symbol:"RSD",code:"RSD"}})}()}(Qe);var et=Qe.exports,tt={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"sv-SE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"tmd"},ordinal:()=>"",currency:{symbol:"kr",position:"postfix",code:"SEK"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(tt);var nt=tt.exports,rt={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"th-TH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(){return"."},currency:{symbol:"฿",position:"postfix",code:"THB"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(rt);var it=rt.exports,ot={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",40:"'ıncı",60:"'ıncı",90:"'ıncı"};return e({languageTag:"tr-TR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:e=>{if(0===e)return"'ıncı";let n=e%10;return t[n]||t[e%100-n]||t[e>=100?100:null]},currency:{symbol:"₺",position:"postfix",code:"TRY"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(ot);var at=ot.exports,st={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"uk-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:()=>"",currency:{symbol:"₴",position:"postfix",code:"UAH"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{output:"currency",mantissa:2,spaceSeparated:!0,thousandSeparated:!0},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",spaceSeparated:!0,thousandSeparated:!0,mantissa:0}}})}()}(st);var lt=st.exports,ct={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"zh-CN",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix",code:"CNY"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,average:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0,average:!0},fullWithTwoDecimals:{thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{mantissa:2,thousandSeparated:!0},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}})}()}(ct);var ut=ct.exports,pt={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"zh-MO",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"MOP",code:"MOP"}})}()}(pt);var dt=pt.exports,ft={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"zh-SG",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"$",code:"SGD"}})}()}(ft);var ht=ft.exports,mt={exports:{}};!function(e,t){e.exports=function(){function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}return e({languageTag:"zh-TW",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"第"},currency:{symbol:"NT$",code:"TWD"}})}()}(mt);var gt=mt.exports;return function(e){e.bg=i,e["cs-CZ"]=a,e["da-DK"]=l,e["de-AT"]=u,e["de-CH"]=d,e["de-DE"]=h,e["de-LI"]=g,e.el=y,e["en-AU"]=x,e["en-GB"]=A,e["en-IE"]=C,e["en-NZ"]=S,e["en-ZA"]=T,e["es-AR"]=M,e["es-CL"]=B,e["es-CO"]=N,e["es-CR"]=P,e["es-ES"]=F,e["es-MX"]=z,e["es-NI"]=q,e["es-PE"]=W,e["es-PR"]=V,e["es-SV"]=G,e["et-EE"]=X,e["fa-IR"]=Z,e["fi-FI"]=ee,e["fil-PH"]=ne,e["fr-CA"]=ie,e["fr-CH"]=ae,e["fr-FR"]=le,e["he-IL"]=ue,e["hu-HU"]=de,e.id=he,e["it-CH"]=ge,e["it-IT"]=ye,e["ja-JP"]=xe,e["ko-KR"]=Ae,e["lv-LV"]=Ce,e["nb-NO"]=Se,e.nb=Te,e["nl-BE"]=Me,e["nl-NL"]=Be,e.nn=Ne,e["pl-PL"]=Pe,e["pt-BR"]=Fe,e["pt-PT"]=ze,e["ro-RO"]=qe,e.ro=We,e["ru-RU"]=Ve,e["ru-UA"]=Ge,e["sk-SK"]=Xe,e.sl=Ze,e["sr-Cyrl-RS"]=et,e["sv-SE"]=nt,e["th-TH"]=it,e["tr-TR"]=at,e["uk-UA"]=lt,e["zh-CN"]=ut,e["zh-MO"]=dt,e["zh-SG"]=ht,e["zh-TW"]=gt}(t),e(t)}()},94316:function(e,t,n){e.exports=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,i,o,a,s={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}};function l(){if(i)return r;i=1;const e=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function n(r,i,o,a,s,l,c){if(!isNaN(+r))return+r;let u="",p=r.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(p!==r)return-1*n(p,i,o,a,s,l);for(let t=0;t<e.length;t++){let c=e[t];if(u=r.replace(RegExp(`([0-9 ])(${c.key})$`),"$1"),u!==r)return n(u,i,o,a,s,l)*c.factor}if(u=r.replace("%",""),u!==r)return n(u,i,o,a,s,l)/100;let d=parseFloat(r);if(isNaN(d))return;let f=a(d);if(f&&"."!==f&&(u=r.replace(new RegExp(`${t(f)}$`),""),u!==r))return n(u,i,o,a,s,l);let h={};Object.keys(l).forEach((e=>{h[l[e]]=e}));let m=Object.keys(h).sort().reverse(),g=m.length;for(let e=0;e<g;e++){let t=m[e],c=h[t];if(u=r.replace(t,""),u!==r){let e;switch(c){case"thousand":e=Math.pow(10,3);break;case"million":e=Math.pow(10,6);break;case"billion":e=Math.pow(10,9);break;case"trillion":e=Math.pow(10,12)}return n(u,i,o,a,s,l)*e}}}function o(e,r,i="",o,a,s,l){if(""===e)return;if(e===a)return 0;let c=function(e,n,r){let i=e.replace(r,"");return i=i.replace(new RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2"),i=i.replace(n.decimal,"."),i}(e,r,i);return n(c,r,i,o,a,s)}return r={unformat:function(e,t){const n=f();let r,i=n.currentDelimiters(),a=n.currentCurrency().symbol,s=n.currentOrdinal(),l=n.getZeroFormat(),c=n.currentAbbreviations();if("string"==typeof e)r=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;let n=e.split(":");if(3!==n.length)return!1;let r=+n[0],i=+n[1],o=+n[2];return!isNaN(r)&&!isNaN(i)&&!isNaN(o)}(e,i)?function(e){let t=e.split(":"),n=+t[0],r=+t[1];return+t[2]+60*r+3600*n}(e):o(e,i,a,s,l,c);else{if("number"!=typeof e)return;r=e}if(void 0!==r)return r}},r}function c(){if(a)return o;a=1;let e=l();const t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,n={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},r={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function i(t){return void 0!==e.unformat(t)}function s(e,t,r,i=!1){let o=Object.keys(e).map((i=>{if(!t[i])return console.error(`${r} Invalid key: ${i}`),!1;let o=e[i],a=t[i];if("string"==typeof a&&(a={type:a}),"format"===a.type){if(!s(o,n,`[Validate ${i}]`,!0))return!1}else if(typeof o!==a.type)return console.error(`${r} ${i} type mismatched: "${a.type}" expected, "${typeof o}" provided`),!1;if(a.restrictions&&a.restrictions.length){let t=a.restrictions.length;for(let n=0;n<t;n++){let{restriction:t,message:s}=a.restrictions[n];if(!t(o,e))return console.error(`${r} ${i} invalid value: ${s}`),!1}}return a.restriction&&!a.restriction(o,e)?(console.error(`${r} ${i} invalid value: ${a.message}`),!1):a.validValues&&-1===a.validValues.indexOf(o)?(console.error(`${r} ${i} invalid value: must be among ${JSON.stringify(a.validValues)}, "${o}" provided`),!1):!(a.children&&!s(o,a.children,`[Validate ${i}]`))}));return i||o.push(...Object.keys(t).map((n=>{let i=t[n];if("string"==typeof i&&(i={type:i}),i.mandatory){let t=i.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[n])return console.error(`${r} Missing mandatory key "${n}"`),!1}return!0}))),o.reduce(((e,t)=>e&&t),!0)}function c(e){return s(e,n,"[Validate format]")}return o={validate:function(e,t){let n=i(e),r=c(t);return n&&r},validateFormat:c,validateInput:i,validateLanguage:function(e){return s(e,r,"[Validate language]")}},o}var u,p,d={parseFormat:function(e,t={}){return"string"!=typeof e?e:(function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",void(t.base="general")):-1!==e.indexOf("b")?(t.output="byte",void(t.base="binary")):-1!==e.indexOf("d")?(t.output="byte",void(t.base="decimal")):void(-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time");t.output="percent"}else t.output="currency"}(e=function(e,t){let n=e.match(/{([^}]*)}$/);return n?(t.postfix=n[1],e.slice(0,-n[0].length)):e}(e=function(e,t){let n=e.match(/^{([^}]*)}/);return n?(t.prefix=n[1],e.slice(n[0].length)):e}(e,t),t),t),function(e,t){let n=e.match(/[1-9]+[0-9]*/);n&&(t.totalLength=+n[0])}(e,t),function(e,t){let n=e.split(".")[0].match(/0+/);n&&(t.characteristic=n[0].length)}(e,t),function(e,t){if(-1!==e.indexOf(".")){let n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,t),function(e,t){-1!==e.indexOf("a")&&(t.average=!0)}(e,t),function(e,t){-1!==e.indexOf("K")?t.forceAverage="thousand":-1!==e.indexOf("M")?t.forceAverage="million":-1!==e.indexOf("B")?t.forceAverage="billion":-1!==e.indexOf("T")&&(t.forceAverage="trillion")}(e,t),function(e,t){let n=e.split(".")[1];if(n){let e=n.match(/0+/);e&&(t.mantissa=e[0].length)}}(e,t),function(e,t){e.match(/\[\.]/)?t.optionalMantissa=!0:e.match(/\./)&&(t.optionalMantissa=!1)}(e,t),function(e,t){const n=e.split(".")[1];n&&(t.trimMantissa=-1!==n.indexOf("["))}(e,t),function(e,t){-1!==e.indexOf(",")&&(t.thousandSeparated=!0)}(e,t),function(e,t){-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0))}(e,t),function(e,t){e.match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),e.match(/^\+?-/)&&(t.negative="sign")}(e,t),function(e,t){e.match(/^\+/)&&(t.forceSign=!0)}(e,t),t)}};function f(){if(p)return u;p=1;const e=s,t=c(),n=d;let r,i={},o={},a=null,l={};function f(e){r=e}function h(){return o[r]}return i.languages=()=>Object.assign({},o),i.currentLanguage=()=>r,i.currentBytes=()=>h().bytes||{},i.currentCurrency=()=>h().currency,i.currentAbbreviations=()=>h().abbreviations,i.currentDelimiters=()=>h().delimiters,i.currentOrdinal=()=>h().ordinal,i.currentDefaults=()=>Object.assign({},h().defaults,l),i.currentOrdinalDefaultFormat=()=>Object.assign({},i.currentDefaults(),h().ordinalFormat),i.currentByteDefaultFormat=()=>Object.assign({},i.currentDefaults(),h().byteFormat),i.currentPercentageDefaultFormat=()=>Object.assign({},i.currentDefaults(),h().percentageFormat),i.currentCurrencyDefaultFormat=()=>Object.assign({},i.currentDefaults(),h().currencyFormat),i.currentTimeDefaultFormat=()=>Object.assign({},i.currentDefaults(),h().timeFormat),i.setDefaults=e=>{e=n.parseFormat(e),t.validateFormat(e)&&(l=e)},i.getZeroFormat=()=>a,i.setZeroFormat=e=>a="string"==typeof e?e:null,i.hasZeroFormat=()=>null!==a,i.languageData=e=>{if(e){if(o[e])return o[e];throw new Error(`Unknown tag "${e}"`)}return h()},i.registerLanguage=(e,n=!1)=>{if(!t.validateLanguage(e))throw new Error("Invalid language data");o[e.languageTag]=e,n&&f(e.languageTag)},i.setLanguage=(t,n=e.languageTag)=>{if(!o[t]){let e=t.split("-")[0],r=Object.keys(o).find((t=>t.split("-")[0]===e));return o[r]?void f(r):void f(n)}f(t)},i.registerLanguage(e),r=e.languageTag,u=i}function h(e,t){e.forEach((e=>{let n;try{n=function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}n&&t.registerLanguage(n)}))}var m={exports:{}};!function(t){!function(e){var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,a="[BigNumber Error] ",s=a+"Number primitive has more than 15 significant digits: ",l=1e14,c=14,u=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,f=1e9;function h(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=c-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(e,t){var n,r,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,c=t.e;if(!a||!s)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==c,!i||!o)return r?0:!i^n?1:-1;if(!r)return l>c^n?1:-1;for(s=(l=i.length)<(c=o.length)?l:c,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^n?1:-1;return l==c?0:l>c^n?1:-1}function v(e,t,n,r){if(e<t||e>n||e!==o(e))throw Error(a+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var t=e.c.length-1;return h(e.e/c)==t&&e.c[t]%2!=0}function b(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}n=function e(t){var n,w,A,_,C,k,S,E,T,O,M=W.prototype={constructor:W,toString:null,valueOf:null},L=new W(1),B=20,D=4,N=-7,j=21,P=-1e7,R=1e7,F=!1,I=1,z=0,$={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},q="0123456789abcdefghijklmnopqrstuvwxyz",H=!0;function W(e,t){var n,i,a,l,p,d,f,h,m=this;if(!(m instanceof W))return new W(e,t);if(null==t){if(e&&!0===e._isBigNumber)return m.s=e.s,void(!e.c||e.e>R?m.c=m.e=null:e.e<P?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice()));if((d="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,p=e;p>=10;p/=10,l++);return void(l>R?m.c=m.e=null:(m.e=l,m.c=[e]))}h=String(e)}else{if(!r.test(h=String(e)))return A(m,h,d);m.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(l=h.indexOf("."))>-1&&(h=h.replace(".","")),(p=h.search(/e/i))>0?(l<0&&(l=p),l+=+h.slice(p+1),h=h.substring(0,p)):l<0&&(l=h.length)}else{if(v(t,2,q.length,"Base"),10==t&&H)return G(m=new W(e),B+m.e+1,D);if(h=String(e),d="number"==typeof e){if(0*e!=0)return A(m,h,d,t);if(m.s=1/e<0?(h=h.slice(1),-1):1,W.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(s+e)}else m.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(n=q.slice(0,t),l=p=0,f=h.length;p<f;p++)if(n.indexOf(i=h.charAt(p))<0){if("."==i){if(p>l){l=f;continue}}else if(!a&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){a=!0,p=-1,l=0;continue}return A(m,String(e),d,t)}d=!1,(l=(h=w(h,t,10,m.s)).indexOf("."))>-1?h=h.replace(".",""):l=h.length}for(p=0;48===h.charCodeAt(p);p++);for(f=h.length;48===h.charCodeAt(--f););if(h=h.slice(p,++f)){if(f-=p,d&&W.DEBUG&&f>15&&(e>u||e!==o(e)))throw Error(s+m.s*e);if((l=l-p-1)>R)m.c=m.e=null;else if(l<P)m.c=[m.e=0];else{if(m.e=l,m.c=[],p=(l+1)%c,l<0&&(p+=c),p<f){for(p&&m.c.push(+h.slice(0,p)),f-=c;p<f;)m.c.push(+h.slice(p,p+=c));p=c-(h=h.slice(p)).length}else p-=f;for(;p--;h+="0");m.c.push(+h)}}else m.c=[m.e=0]}function U(e,t,n,r){var i,o,a,s,l;if(null==n?n=D:v(n,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=m(e.c),l=1==r||2==r&&(a<=N||a>=j)?b(l,a):x(l,a,"0");else if(o=(e=G(new W(e),t,n)).e,s=(l=m(e.c)).length,1==r||2==r&&(t<=o||o<=N)){for(;s<t;l+="0",s++);l=b(l,o)}else if(t-=a,l=x(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function V(e,t){for(var n,r,i=1,o=new W(e[0]);i<e.length;i++)(!(r=new W(e[i])).s||(n=g(o,r))===t||0===n&&o.s===t)&&(o=r);return o}function K(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*c-1)>R?e.c=e.e=null:n<P?e.c=[e.e=0]:(e.e=n,e.c=t),e}function G(e,t,n,r){var a,s,u,d,f,h,m,g=e.c,v=p;if(g){e:{for(a=1,d=g[0];d>=10;d/=10,a++);if((s=t-a)<0)s+=c,u=t,f=g[h=0],m=o(f/v[a-u-1]%10);else if((h=i((s+1)/c))>=g.length){if(!r)break e;for(;g.length<=h;g.push(0));f=m=0,a=1,u=(s%=c)-c+1}else{for(f=d=g[h],a=1;d>=10;d/=10,a++);m=(u=(s%=c)-c+a)<0?0:o(f/v[a-u-1]%10)}if(r=r||t<0||null!=g[h+1]||(u<0?f:f%v[a-u-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(s>0?u>0?f/v[a-u]:0:g[h-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=v[(c-t%c)%c],e.e=-t||0):g[0]=e.e=0,e;if(0==s?(g.length=h,d=1,h--):(g.length=h+1,d=v[c-s],g[h]=u>0?o(f/v[a-u]%v[u])*d:0),r)for(;;){if(0==h){for(s=1,u=g[0];u>=10;u/=10,s++);for(u=g[0]+=d,d=1;u>=10;u/=10,d++);s!=d&&(e.e++,g[0]==l&&(g[0]=1));break}if(g[h]+=d,g[h]!=l)break;g[h--]=0,d=1}for(s=g.length;0===g[--s];g.pop());}e.e>R?e.c=e.e=null:e.e<P&&(e.c=[e.e=0])}return e}function Y(e){var t,n=e.e;return null===n?e.toString():(t=m(e.c),t=n<=N||n>=j?b(t,n):x(t,n,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(a+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(n=e[t],0,f,t),B=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(n=e[t],0,8,t),D=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(v(n[0],-f,0,t),v(n[1],0,f,t),N=n[0],j=n[1]):(v(n,-f,f,t),N=-(j=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)v(n[0],-f,-1,t),v(n[1],1,f,t),P=n[0],R=n[1];else{if(v(n,-f,f,t),!n)throw Error(a+t+" cannot be zero: "+n);P=-(R=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(a+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!n,Error(a+"crypto unavailable");F=n}else F=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(n=e[t],0,9,t),I=n),e.hasOwnProperty(t="POW_PRECISION")&&(v(n=e[t],0,f,t),z=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(a+t+" not an object: "+n);$=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(a+t+" invalid: "+n);H="0123456789"==n.slice(0,10),q=n}}return{DECIMAL_PLACES:B,ROUNDING_MODE:D,EXPONENTIAL_AT:[N,j],RANGE:[P,R],CRYPTO:F,MODULO_MODE:I,POW_PRECISION:z,FORMAT:$,ALPHABET:q}},W.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!W.DEBUG)return!0;var t,n,r=e.c,i=e.e,s=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===s||-1===s)&&i>=-f&&i<=f&&i===o(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%c)<1&&(t+=c),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=l||n!==o(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(a+"Invalid BigNumber: "+e)},W.maximum=W.max=function(){return V(arguments,-1)},W.minimum=W.min=function(){return V(arguments,1)},W.random=(_=9007199254740992,C=Math.random()*_&2097151?function(){return o(Math.random()*_)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,s,l,u=0,d=[],h=new W(L);if(null==e?e=B:v(e,0,f),s=i(e/c),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(s*=2));u<s;)(l=131072*t[u]+(t[u+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[u]=n[0],t[u+1]=n[1]):(d.push(l%1e14),u+=2);u=s/2}else{if(!crypto.randomBytes)throw F=!1,Error(a+"crypto unavailable");for(t=crypto.randomBytes(s*=7);u<s;)(l=281474976710656*(31&t[u])+1099511627776*t[u+1]+4294967296*t[u+2]+16777216*t[u+3]+(t[u+4]<<16)+(t[u+5]<<8)+t[u+6])>=9e15?crypto.randomBytes(7).copy(t,u):(d.push(l%1e14),u+=7);u=s/7}if(!F)for(;u<s;)(l=C())<9e15&&(d[u++]=l%1e14);for(s=d[--u],e%=c,s&&e&&(l=p[c-e],d[u]=o(s/l)*l);0===d[u];d.pop(),u--);if(u<0)d=[r=0];else{for(r=-1;0===d[0];d.splice(0,1),r-=c);for(u=1,l=d[0];l>=10;l/=10,u++);u<c&&(r-=c-u)}return h.e=r,h.c=d,h}),W.sum=function(){for(var e=1,t=arguments,n=new W(t[0]);e<t.length;)n=n.plus(t[e++]);return n},w=function(){var e="0123456789";function t(e,t,n,r){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var l,c,u,p,d,f,h,g,v=r.indexOf("."),y=B,b=D;for(v>=0&&(p=z,z=0,r=r.replace(".",""),f=(g=new W(i)).pow(r.length-v),z=p,g.c=t(x(m(f.c),f.e,"0"),10,o,e),g.e=g.c.length),u=p=(h=t(r,i,o,s?(l=q,e):(l=e,q))).length;0==h[--p];h.pop());if(!h[0])return l.charAt(0);if(v<0?--u:(f.c=h,f.e=u,f.s=a,h=(f=n(f,g,y,b,o)).c,d=f.r,u=f.e),v=h[c=u+y+1],p=o/2,d=d||c<0||null!=h[c+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>p||v==p&&(4==b||d||6==b&&1&h[c-1]||b==(f.s<0?8:7)),c<1||!h[0])r=d?x(l.charAt(1),-y,l.charAt(0)):l.charAt(0);else{if(h.length=c,d)for(--o;++h[--c]>o;)h[c]=0,c||(++u,h=[1].concat(h));for(p=h.length;!h[--p];);for(v=0,r="";v<=p;r+=l.charAt(h[v++]));r=x(r,u,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,c=t%d,u=t/d|0;for(e=e.slice();l--;)s=((i=c*(o=e[l]%d)+(r=u*o+(a=e[l]/d|0)*c)%d*d+s)/n|0)+(r/d|0)+u*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,s,u){var p,d,f,m,g,v,y,b,x,w,A,_,C,k,S,E,T,O=r.s==i.s?1:-1,M=r.c,L=i.c;if(!(M&&M[0]&&L&&L[0]))return new W(r.s&&i.s&&(M?!L||M[0]!=L[0]:L)?M&&0==M[0]||!L?0*O:O/0:NaN);for(x=(b=new W(O)).c=[],O=a+(d=r.e-i.e)+1,u||(u=l,d=h(r.e/c)-h(i.e/c),O=O/c|0),f=0;L[f]==(M[f]||0);f++);if(L[f]>(M[f]||0)&&d--,O<0)x.push(1),m=!0;else{for(k=M.length,E=L.length,f=0,O+=2,(g=o(u/(L[0]+1)))>1&&(L=e(L,g,u),M=e(M,g,u),E=L.length,k=M.length),C=E,A=(w=M.slice(0,E)).length;A<E;w[A++]=0);T=L.slice(),T=[0].concat(T),S=L[0],L[1]>=u/2&&S++;do{if(g=0,(p=t(L,w,E,A))<0){if(_=w[0],E!=A&&(_=_*u+(w[1]||0)),(g=o(_/S))>1)for(g>=u&&(g=u-1),y=(v=e(L,g,u)).length,A=w.length;1==t(v,w,y,A);)g--,n(v,E<y?T:L,y,u),y=v.length,p=1;else 0==g&&(p=g=1),y=(v=L.slice()).length;if(y<A&&(v=[0].concat(v)),n(w,v,A,u),A=w.length,-1==p)for(;t(L,w,E,A)<1;)g++,n(w,E<A?T:L,A,u),A=w.length}else 0===p&&(g++,w=[0]);x[f++]=g,w[0]?w[A++]=M[C]||0:(w=[M[C]],A=1)}while((C++<k||null!=w[0])&&O--);m=null!=w[0],x[0]||x.splice(0,1)}if(u==l){for(f=1,O=x[0];O>=10;O/=10,f++);G(b,a+(b.e=f+d*c-1)+1,s,m)}else b.e=d,b.r=+m;return b}}(),k=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,E=/^\.([^.]+)$/,T=/^-?(Infinity|NaN)$/,O=/^\s*\+(?=[\w.])|^\s+|\s+$/g,A=function(e,t,n,r){var i,o=n?t:t.replace(O,"");if(T.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(k,(function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t})),r&&(i=r,o=o.replace(S,"$1").replace(E,"0.$1")),t!=o))return new W(o,i);if(W.DEBUG)throw Error(a+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},M.absoluteValue=M.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},M.comparedTo=function(e,t){return g(this,new W(e,t))},M.decimalPlaces=M.dp=function(e,t){var n,r,i,o=this;if(null!=e)return v(e,0,f),null==t?t=D:v(t,0,8),G(new W(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-h(this.e/c))*c,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},M.dividedBy=M.div=function(e,t){return n(this,new W(e,t),B,D)},M.dividedToIntegerBy=M.idiv=function(e,t){return n(this,new W(e,t),0,1)},M.exponentiatedBy=M.pow=function(e,t){var n,r,s,l,u,p,d,f,h=this;if((e=new W(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new W(t)),u=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return f=new W(Math.pow(+Y(h),u?e.s*(2-y(e)):+Y(e))),t?f.mod(t):f;if(p=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(r=!p&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||u&&h.c[1]>=24e7:h.c[0]<8e13||u&&h.c[0]<=9999975e7)))return l=h.s<0&&y(e)?-0:0,h.e>-1&&(l=1/l),new W(p?1/l:l);z&&(l=i(z/c+2))}for(u?(n=new W(.5),p&&(e.s=1),d=y(e)):d=(s=Math.abs(+Y(e)))%2,f=new W(L);;){if(d){if(!(f=f.times(h)).c)break;l?f.c.length>l&&(f.c.length=l):r&&(f=f.mod(t))}if(s){if(0===(s=o(s/2)))break;d=s%2}else if(G(e=e.times(n),e.e+1,1),e.e>14)d=y(e);else{if(0==(s=+Y(e)))break;d=s%2}h=h.times(h),l?h.c&&h.c.length>l&&(h.c.length=l):r&&(h=h.mod(t))}return r?f:(p&&(f=L.div(f)),t?f.mod(t):l?G(f,z,D,void 0):f)},M.integerValue=function(e){var t=new W(this);return null==e?e=D:v(e,0,8),G(t,t.e+1,e)},M.isEqualTo=M.eq=function(e,t){return 0===g(this,new W(e,t))},M.isFinite=function(){return!!this.c},M.isGreaterThan=M.gt=function(e,t){return g(this,new W(e,t))>0},M.isGreaterThanOrEqualTo=M.gte=function(e,t){return 1===(t=g(this,new W(e,t)))||0===t},M.isInteger=function(){return!!this.c&&h(this.e/c)>this.c.length-2},M.isLessThan=M.lt=function(e,t){return g(this,new W(e,t))<0},M.isLessThanOrEqualTo=M.lte=function(e,t){return-1===(t=g(this,new W(e,t)))||0===t},M.isNaN=function(){return!this.s},M.isNegative=function(){return this.s<0},M.isPositive=function(){return this.s>0},M.isZero=function(){return!!this.c&&0==this.c[0]},M.minus=function(e,t){var n,r,i,o,a=this,s=a.s;if(t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,a.plus(e);var u=a.e/c,p=e.e/c,d=a.c,f=e.c;if(!u||!p){if(!d||!f)return d?(e.s=-t,e):new W(f?a:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new W(d[0]?a:3==D?-0:0)}if(u=h(u),p=h(p),d=d.slice(),s=u-p){for((o=s<0)?(s=-s,i=d):(p=u,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(o=(s=d.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(d[t]!=f[t]){o=d[t]<f[t];break}if(o&&(i=d,d=f,f=i,e.s=-e.s),(t=(r=f.length)-(n=d.length))>0)for(;t--;d[n++]=0);for(t=l-1;r>s;){if(d[--r]<f[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=l}d[r]-=f[r]}for(;0==d[0];d.splice(0,1),--p);return d[0]?K(e,d,p):(e.s=3==D?-1:1,e.c=[e.e=0],e)},M.modulo=M.mod=function(e,t){var r,i,o=this;return e=new W(e,t),!o.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||o.c&&!o.c[0]?new W(o):(9==I?(i=e.s,e.s=1,r=n(o,e,0,3),e.s=i,r.s*=i):r=n(o,e,0,I),(e=o.minus(r.times(e))).c[0]||1!=I||(e.s=o.s),e)},M.multipliedBy=M.times=function(e,t){var n,r,i,o,a,s,u,p,f,m,g,v,y,b,x,w=this,A=w.c,_=(e=new W(e,t)).c;if(!(A&&_&&A[0]&&_[0]))return!w.s||!e.s||A&&!A[0]&&!_||_&&!_[0]&&!A?e.c=e.e=e.s=null:(e.s*=w.s,A&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=h(w.e/c)+h(e.e/c),e.s*=w.s,(u=A.length)<(m=_.length)&&(y=A,A=_,_=y,i=u,u=m,m=i),i=u+m,y=[];i--;y.push(0));for(b=l,x=d,i=m;--i>=0;){for(n=0,g=_[i]%x,v=_[i]/x|0,o=i+(a=u);o>i;)n=((p=g*(p=A[--a]%x)+(s=v*p+(f=A[a]/x|0)*g)%x*x+y[o]+n)/b|0)+(s/x|0)+v*f,y[o--]=p%b;y[o]=n}return n?++r:y.splice(0,1),K(e,y,r)},M.negated=function(){var e=new W(this);return e.s=-e.s||null,e},M.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new W(e,t)).s,!i||!t)return new W(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/c,a=e.e/c,s=r.c,u=e.c;if(!o||!a){if(!s||!u)return new W(i/0);if(!s[0]||!u[0])return u[0]?e:new W(s[0]?r:0*i)}if(o=h(o),a=h(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=u.length)<0&&(n=u,u=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+u[t]+i)/l|0,s[t]=l===s[t]?0:s[t]%l;return i&&(s=[i].concat(s),++a),K(e,s,a)},M.precision=M.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return v(e,1,f),null==t?t=D:v(t,0,8),G(new W(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*c+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},M.shiftedBy=function(e){return v(e,-9007199254740991,u),this.times("1e"+e)},M.squareRoot=M.sqrt=function(){var e,t,r,i,o,a=this,s=a.c,l=a.s,c=a.e,u=B+4,p=new W("0.5");if(1!==l||!s||!s[0])return new W(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(l=Math.sqrt(+Y(a)))||l==1/0?(((t=m(s)).length+c)%2==0&&(t+="0"),l=Math.sqrt(+t),c=h((c+1)/2)-(c<0||c%2),r=new W(t=l==1/0?"5e"+c:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new W(l+""),r.c[0])for((l=(c=r.e)+u)<3&&(l=0);;)if(o=r,r=p.times(o.plus(n(a,o,u,1))),m(o.c).slice(0,l)===(t=m(r.c)).slice(0,l)){if(r.e<c&&--l,"9999"!=(t=t.slice(l-3,l+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(G(r,r.e+B+2,1),e=!r.times(r).eq(a));break}if(!i&&(G(o,o.e+B+2,0),o.times(o).eq(a))){r=o;break}u+=4,l+=4,i=1}return G(r,r.e+B+1,D,e)},M.toExponential=function(e,t){return null!=e&&(v(e,0,f),e++),U(this,e,t,1)},M.toFixed=function(e,t){return null!=e&&(v(e,0,f),e=e+this.e+1),U(this,e,t)},M.toFormat=function(e,t,n){var r,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=$;else if("object"!=typeof n)throw Error(a+"Argument not an object: "+n);if(r=i.toFixed(e,t),i.c){var o,s=r.split("."),l=+n.groupSize,c=+n.secondaryGroupSize,u=n.groupSeparator||"",p=s[0],d=s[1],f=i.s<0,h=f?p.slice(1):p,m=h.length;if(c&&(o=l,l=c,c=o,m-=o),l>0&&m>0){for(o=m%l||l,p=h.substr(0,o);o<m;o+=l)p+=u+h.substr(o,l);c>0&&(p+=u+h.slice(o)),f&&(p="-"+p)}r=d?p+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):p}return(n.prefix||"")+r+(n.suffix||"")},M.toFraction=function(e){var t,r,i,o,s,l,u,d,f,h,g,v,y=this,b=y.c;if(null!=e&&(!(u=new W(e)).isInteger()&&(u.c||1!==u.s)||u.lt(L)))throw Error(a+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+Y(u));if(!b)return new W(y);for(t=new W(L),f=r=new W(L),i=d=new W(L),v=m(b),s=t.e=v.length-y.e-1,t.c[0]=p[(l=s%c)<0?c+l:l],e=!e||u.comparedTo(t)>0?s>0?t:f:u,l=R,R=1/0,u=new W(v),d.c[0]=0;h=n(u,t,0,1),1!=(o=r.plus(h.times(i))).comparedTo(e);)r=i,i=o,f=d.plus(h.times(o=f)),d=o,t=u.minus(h.times(o=t)),u=o;return o=n(e.minus(r),i,0,1),d=d.plus(o.times(f)),r=r.plus(o.times(i)),d.s=f.s=y.s,g=n(f,i,s*=2,D).minus(y).abs().comparedTo(n(d,r,s,D).minus(y).abs())<1?[f,i]:[d,r],R=l,g},M.toNumber=function(){return+Y(this)},M.toPrecision=function(e,t){return null!=e&&v(e,1,f),U(this,e,t,2)},M.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=N||i>=j?b(m(n.c),i):x(m(n.c),i,"0"):10===e&&H?t=x(m((n=G(new W(n),B+i+1,D)).c),n.e,"0"):(v(e,2,q.length,"Base"),t=w(x(m(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},M.valueOf=M.toJSON=function(){return Y(this)},M._isBigNumber=!0,null!=t&&W.set(t),W}(),n.default=n.BigNumber=n,t.exports?t.exports=n:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=n)}(e)}(m);var g=m.exports;const v=f(),y=c(),b=d,x=g,w={trillion:Math.pow(10,12),billion:Math.pow(10,9),million:Math.pow(10,6),thousand:Math.pow(10,3)},A={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:_,decimalSuffixes:C}=v.currentBytes(),k={general:{scale:1024,suffixes:C,marker:"bd"},binary:{scale:1024,suffixes:_,marker:"b"},decimal:{scale:1e3,suffixes:C,marker:"d"}};function S(e,t={},n){if("string"==typeof t&&(t=b.parseFormat(t)),!y.validateFormat(t))return"ERROR: invalid format";let r=t.prefix||"",i=t.postfix||"",o=function(e,t,n){switch(t.output){case"currency":return function(e,t,n){const r=n.currentCurrency();let i,o=Object.assign({},t),a=Object.assign({},A,o),s="",l=!!a.totalLength||!!a.forceAverage||a.average,c=o.currencyPosition||r.position,u=o.currencySymbol||r.symbol;const p=void 0!==a.spaceSeparatedCurrency?a.spaceSeparatedCurrency:a.spaceSeparated;void 0===o.lowPrecision&&(o.lowPrecision=!1),p&&(s=" "),"infix"===c&&(i=s+u+s);let d=M({instance:e,providedFormat:o,state:n,decimalSeparator:i});return"prefix"===c&&(d=e._value<0&&"sign"===a.negative?`-${s}${u}${d.slice(1)}`:e._value>0&&a.forceSign?`+${s}${u}${d.slice(1)}`:u+s+d),c&&"postfix"!==c||(s=!a.spaceSeparatedAbbreviation&&l?"":s,d=d+s+u),d}(e,t=L(t,v.currentCurrencyDefaultFormat()),v);case"percent":return function(e,t,n,r){let i=t.prefixSymbol,o=M({instance:r(100*e._value),providedFormat:t,state:n}),a=Object.assign({},A,t);return i?`%${a.spaceSeparated?" ":""}${o}`:`${o}${a.spaceSeparated?" ":""}%`}(e,t=L(t,v.currentPercentageDefaultFormat()),v,n);case"byte":return function(e,t,n,r){let i=t.base||"binary",o=Object.assign({},A,t);const{binarySuffixes:a,decimalSuffixes:s}=n.currentBytes();let l={general:{scale:1024,suffixes:s||C,marker:"bd"},binary:{scale:1024,suffixes:a||_,marker:"b"},decimal:{scale:1e3,suffixes:s||C,marker:"d"}}[i],{value:c,suffix:u}=E(e._value,l.suffixes,l.scale);return`${M({instance:r(c),providedFormat:t,state:n,defaults:n.currentByteDefaultFormat()})}${o.spaceSeparated?" ":""}${u}`}(e,t=L(t,v.currentByteDefaultFormat()),v,n);case"time":return t=L(t,v.currentTimeDefaultFormat()),function(e){let t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),r=Math.round(e._value-60*t*60-60*n);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}`}(e);case"ordinal":return function(e,t,n){let r=n.currentOrdinal(),i=Object.assign({},A,t),o=M({instance:e,providedFormat:t,state:n}),a=r(e._value);return`${o}${i.spaceSeparated?" ":""}${a}`}(e,t=L(t,v.currentOrdinalDefaultFormat()),v);default:return M({instance:e,providedFormat:t,numbro:n})}}(e,t,n);return o=function(e,t){return t+e}(o,r),o=function(e,t){return e+t}(o,i),o}function E(e,t,n){let r=t[0],i=Math.abs(e);if(i>=n){for(let o=1;o<t.length;++o){let a=Math.pow(n,o),s=Math.pow(n,o+1);if(i>=a&&i<s){r=t[o],e/=a;break}}r===t[0]&&(e/=Math.pow(n,t.length-1),r=t[t.length-1])}return{value:e,suffix:r}}function T(e){let t="";for(let n=0;n<e;n++)t+="0";return t}function O(e,t,n=Math.round){return-1!==e.toString().indexOf("e")?function(e,t){let n=e.toString(),[r,i]=n.split("e"),[o,a=""]=r.split(".");if(+i>0)n=o+a+T(i-a.length);else{let e=".";e=+o<0?`-0${e}`:`0${e}`;let r=(T(-i-1)+Math.abs(o)+a).substr(0,t);r.length<t&&(r+=T(t-r.length)),n=e+r}return+i>0&&t>0&&(n+=`.${T(t)}`),n}(e,t):new x(n(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}function M({instance:e,providedFormat:t,state:n=v,decimalSeparator:r,defaults:i=n.currentDefaults()}){let o=e._value;if(0===o&&n.hasZeroFormat())return n.getZeroFormat();if(!isFinite(o))return o.toString();let a=Object.assign({},A,i,t),s=a.totalLength,l=s?0:a.characteristic,c=a.optionalCharacteristic,u=a.forceAverage,p=a.lowPrecision,d=!!s||!!u||a.average,f=s?-1:d&&void 0===t.mantissa?0:a.mantissa,h=!s&&(void 0===t.optionalMantissa?-1===f:a.optionalMantissa),m=a.trimMantissa,g=a.thousandSeparated,y=a.spaceSeparated,b=a.negative,x=a.forceSign,_=a.exponential,C=a.roundingFunction,k="";if(d){let e=function({value:e,forceAverage:t,lowPrecision:n=!0,abbreviations:r,spaceSeparated:i=!1,totalLength:o=0,roundingFunction:a=Math.round}){let s="",l=Math.abs(e),c=-1;if(t&&r[t]&&w[t]?(s=r[t],e/=w[t]):l>=w.trillion||n&&1===a(l/w.trillion)?(s=r.trillion,e/=w.trillion):l<w.trillion&&l>=w.billion||n&&1===a(l/w.billion)?(s=r.billion,e/=w.billion):l<w.billion&&l>=w.million||n&&1===a(l/w.million)?(s=r.million,e/=w.million):(l<w.million&&l>=w.thousand||n&&1===a(l/w.thousand))&&(s=r.thousand,e/=w.thousand),s&&(s=(i?" ":"")+s),o){let t=e<0,n=e.toString().split(".")[0],r=t?n.length-1:n.length;c=Math.max(o-r,0)}return{value:e,abbreviation:s,mantissaPrecision:c}}({value:o,forceAverage:u,lowPrecision:p,abbreviations:n.currentAbbreviations(),spaceSeparated:y,roundingFunction:C,totalLength:s});o=e.value,k+=e.abbreviation,s&&(f=e.mantissaPrecision)}if(_){let e=function({value:e,characteristicPrecision:t}){let[n,r]=e.toExponential().split("e"),i=+n;return t?(1<t&&(i*=Math.pow(10,t-1),r=+r-(t-1),r=r>=0?`+${r}`:r),{value:i,abbreviation:`e${r}`}):{value:i,abbreviation:`e${r}`}}({value:o,characteristicPrecision:l});o=e.value,k=e.abbreviation+k}let S=function(e,t,n,r,i,o){if(-1===r)return e;let a=O(t,r,o),[s,l=""]=a.toString().split(".");if(l.match(/^0+$/)&&(n||i))return s;let c=l.match(/0+$/);return i&&c?`${s}.${l.toString().slice(0,c.index)}`:a.toString()}(o.toString(),o,h,f,m,C);return S=function(e,t,n,r){let i=e,[o,a]=i.toString().split(".");if(o.match(/^-?0$/)&&n)return a?`${o.replace("0","")}.${a}`:o.replace("0","");const s=t<0&&0===o.indexOf("-");if(s&&(o=o.slice(1),i=i.slice(1)),o.length<r){let e=r-o.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(S,o,c,l),S=function(e,t,n,r,i){let o=r.currentDelimiters(),a=o.thousands;i=i||o.decimal;let s=o.thousandsSize||3,l=e.toString(),c=l.split(".")[0],u=l.split(".")[1];const p=t<0&&0===c.indexOf("-");if(n){p&&(c=c.slice(1));let e=function(e,t){let n=[],r=0;for(let i=e;i>0;i--)r===t&&(n.unshift(i),r=0),r++;return n}(c.length,s);e.forEach(((e,t)=>{c=c.slice(0,e+t)+a+c.slice(e+t)})),p&&(c=`-${c}`)}return l=u?c+i+u:c,l}(S,o,g,n,r),(d||_)&&(S=function(e,t){return e+t}(S,k)),(x||o<0)&&(S=function(e,t,n){return 0===t?e:0==+e?e.replace("-",""):t>0?`+${e}`:"sign"===n?e:`(${e.replace("-","")})`}(S,o,b)),S}function L(e,t){if(!e)return t;let n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}const B=g;function D(e,t,n){let r=new B(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new B(i),e._value=r.minus(i).toNumber(),e}const N=f(),j=c(),P=(e=>({loadLanguagesInNode:t=>h(t,e)}))(H),R=l();let F=(e=>({format:(...t)=>S(...t,e),getByteUnit:(...t)=>function(e){let t=k.general;return E(e._value,t.suffixes,t.scale).suffix}(...t,e),getBinaryByteUnit:(...t)=>function(e){let t=k.binary;return E(e._value,t.suffixes,t.scale).suffix}(...t,e),getDecimalByteUnit:(...t)=>function(e){let t=k.decimal;return E(e._value,t.suffixes,t.scale).suffix}(...t,e),formatOrDefault:L}))(H),I=(e=>({add:(t,n)=>function(e,t,n){let r=new B(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new B(i),e._value=r.plus(i).toNumber(),e}(t,n,e),subtract:(t,n)=>D(t,n,e),multiply:(t,n)=>function(e,t,n){let r=new B(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new B(i),e._value=r.times(i).toNumber(),e}(t,n,e),divide:(t,n)=>function(e,t,n){let r=new B(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new B(i),e._value=r.dividedBy(i).toNumber(),e}(t,n,e),set:(t,n)=>function(e,t,n){let r=t;return n.isNumbro(t)&&(r=t._value),e._value=r,e}(t,n,e),difference:(t,n)=>function(e,t,n){let r=n(e._value);return D(r,t,n),Math.abs(r._value)}(t,n,e),BigNumber:B}))(H);const z=d;class ${constructor(e){this._value=e}clone(){return H(this._value)}format(e={}){return F.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=z.parseFormat(e)),(e=F.formatOrDefault(e,N.currentCurrencyDefaultFormat())).output="currency",F.format(this,e)}formatTime(e={}){return e.output="time",F.format(this,e)}binaryByteUnits(){return F.getBinaryByteUnit(this)}decimalByteUnits(){return F.getDecimalByteUnit(this)}byteUnits(){return F.getByteUnit(this)}difference(e){return I.difference(this,e)}add(e){return I.add(this,e)}subtract(e){return I.subtract(this,e)}multiply(e){return I.multiply(this,e)}divide(e){return I.divide(this,e)}set(e){return I.set(this,q(e))}value(){return this._value}valueOf(){return this._value}}function q(e){let t=e;return H.isNumbro(e)?t=e._value:"string"==typeof e?t=H.unformat(e):isNaN(e)&&(t=NaN),t}function H(e){return new $(q(e))}return H.version="2.4.0",H.isNumbro=function(e){return e instanceof $},H.language=N.currentLanguage,H.registerLanguage=N.registerLanguage,H.setLanguage=N.setLanguage,H.languages=N.languages,H.languageData=N.languageData,H.zeroFormat=N.setZeroFormat,H.defaultFormat=N.currentDefaults,H.setDefaults=N.setDefaults,H.defaultCurrencyFormat=N.currentCurrencyDefaultFormat,H.validate=j.validate,H.loadLanguagesInNode=P.loadLanguagesInNode,H.unformat=R.unformat,H.BigNumber=I.BigNumber,t(H)}()},70631:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,A=RegExp.prototype.test,_=Array.prototype.concat,C=Array.prototype.join,k=Array.prototype.slice,S=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,L="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-S(-e):S(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(24654),P=j.custom,R=q(P)?P:null;function F(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function I(e){return b.call(String(e),/"/g,"&quot;")}function z(e){return!("[object Array]"!==U(e)||L&&"object"==typeof e&&L in e)}function $(e){return!("[object RegExp]"!==U(e)||L&&"object"==typeof e&&L in e)}function q(e){if(M)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(W(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!W(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return m?N(t,x):x}if("bigint"==typeof t){var A=String(t)+"n";return m?N(t,A):A}var S=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=S&&S>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var T=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=C.call(Array(e.indent+1)," ")}return{base:n,prev:C.call(Array(t+1),n)}}(s,r);if(void 0===i)i=[];else if(V(i,t)>=0)return"[Circular]";function P(t,n,o){if(n&&(i=k.call(i)).push(n),o){var a={depth:s.depth};return W(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t&&!$(t)){var H=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),G=Q(t,P);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(G.length>0?" { "+C.call(G,", ")+" }":"")}if(q(t)){var ee=M?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||M?ee:Y(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+w.call(String(t.nodeName)),ne=t.attributes||[],re=0;re<ne.length;re++)te+=" "+ne[re].name+"="+F(I(ne[re].value),"double",s);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+w.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var ie=Q(t,P);return T&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Z(ie,T)+"]":"[ "+C.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==U(e)||L&&"object"==typeof e&&L in e)}(t)){var oe=Q(t,P);return"cause"in Error.prototype||!("cause"in t)||B.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(oe,", ")+" }":"{ ["+String(t)+"] "+C.call(_.call("[cause]: "+P(t.cause),oe),", ")+" }"}if("object"==typeof t&&l){if(R&&"function"==typeof t[R]&&j)return j(t,{depth:S-r});if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return a&&a.call(t,(function(e,n){ae.push(P(n,t,!0)+" => "+P(e,t))})),J("Map",o.call(t),ae,T)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return u&&u.call(t,(function(e){se.push(P(e,t))})),J("Set",c.call(t),se,T)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if(function(e){return!("[object Number]"!==U(e)||L&&"object"==typeof e&&L in e)}(t))return Y(P(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return Y(P(E.call(t)));if(function(e){return!("[object Boolean]"!==U(e)||L&&"object"==typeof e&&L in e)}(t))return Y(h.call(t));if(function(e){return!("[object String]"!==U(e)||L&&"object"==typeof e&&L in e)}(t))return Y(P(String(t)));if(!function(e){return!("[object Date]"!==U(e)||L&&"object"==typeof e&&L in e)}(t)&&!$(t)){var le=Q(t,P),ce=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",pe=!ce&&L&&Object(t)===t&&L in t?y.call(U(t),8,-1):ue?"Object":"",de=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+C.call(_.call([],pe||[],ue||[]),": ")+"] ":"");return 0===le.length?de+"{}":T?de+"{"+Z(le,T)+"}":de+"{ "+C.call(le,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return H.call(e,t)}function U(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return K(y.call(e,0,t.maxStringLength),t)+r}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function Y(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?Z(n,r):C.call(n,", "))+"}"}function Z(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+C.call(e,","+n)+"\n"+t.prev}function Q(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):""}var o,a="function"==typeof T?T(e):[];if(M){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||M&&o["$"+l]instanceof Symbol||(A.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var c=0;c<a.length;c++)B.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},18987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(21414),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var v in e)h&&"prototype"===v||!i.call(e,v)||d.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!f)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!i.call(e,u[b])||d.push(u[b]);return d}}e.exports=r},82215:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(21414),o=Object.keys,a=o?function(e){return o(e)}:n(18987),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},21414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},55725:(e,t,n)=>{"use strict";var r=n(59332),i=n(56148);e.exports=r.default,e.exports.version=i.default},2770:(e,t)=>{"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={},a={},s=function(e){var t,n,i,s,l,c,u,p,d,f,h,m,g,v,y,b,x,w,A,_,C,k;return t=r(r({},o),e),n=t.hitsPerPage,i=t.postcodeSearch,s=t.aroundLatLng,l=t.aroundRadius,c=t.aroundLatLngViaIP,u=t.insideBoundingBox,p=t.insidePolygon,d=t.getRankingInfo,f=t.countries,h=t.language,m=t.type,g={countries:f,hitsPerPage:n||5,language:h||navigator.language.split("-")[0],type:m},Array.isArray(f)&&(g.countries=g.countries.map((function(e){return e.toLowerCase()}))),"string"==typeof g.language&&(g.language=g.language.toLowerCase()),s?g.aroundLatLng=s:void 0!==c&&(g.aroundLatLngViaIP=c),i&&(g.restrictSearchableAttributes="postcode"),o=r(r({},g),{},{aroundRadius:l,insideBoundingBox:u,insidePolygon:p,getRankingInfo:d}),v=r(r({},a),e),y=v.useDeviceLocation,b=void 0!==y&&y,x=v.computeQueryParams,w=void 0===x?function(e){return e}:x,A=v.formatInputValue,_=v.onHits,C=void 0===_?function(){}:_,k=v.onError,a={useDeviceLocation:b,computeQueryParams:w,formatInputValue:A,onHits:C,onError:void 0===k?function(e){throw e}:k,onRateLimitReached:v.onRateLimitReached,onInvalidCredentials:v.onInvalidCredentials},{params:o,controls:a}};t.default=s},65283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=s(s({},i.default),e.templates);return{source:(0,r.default)(s(s({},e),{},{formatInputValue:t.value,templates:void 0})),templates:t,displayKey:"value",name:"places",cache:!1}};var r=o(n(32498)),i=o(n(96060));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},32498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.algoliasearch,n=e.clientOptions,a=e.apiKey,s=e.appId,c=e.hitsPerPage,u=e.postcodeSearch,p=e.aroundLatLng,d=e.aroundRadius,f=e.aroundLatLngViaIP,h=e.insideBoundingBox,m=e.insidePolygon,g=e.getRankingInfo,v=e.countries,y=e.formatInputValue,b=e.computeQueryParams,x=void 0===b?function(e){return e}:b,w=e.useDeviceLocation,A=void 0!==w&&w,_=e.language,C=void 0===_?navigator.language.split("-")[0]:_,k=e.onHits,S=void 0===k?function(){}:k,E=e.onError,T=void 0===E?function(e){throw e}:E,O=e.onRateLimitReached,M=e.onInvalidCredentials,L=e.type,B=t.initPlaces(s,a,n);B.as.addAlgoliaAgent("Algolia Places ".concat(o.default));var D,N=(0,r.default)({hitsPerPage:c,type:L,postcodeSearch:u,countries:v,language:C,aroundLatLng:p,aroundRadius:d,aroundLatLngViaIP:f,insideBoundingBox:h,insidePolygon:m,getRankingInfo:g,formatInputValue:y,computeQueryParams:x,useDeviceLocation:A,onHits:S,onError:T,onRateLimitReached:O,onInvalidCredentials:M}),j=N.params,P=N.controls,R=null;P.useDeviceLocation&&(R=navigator.geolocation.watchPosition((function(e){var t=e.coords;D="".concat(t.latitude,",").concat(t.longitude)})));function F(e,t){var n=l(l({},j),{},{query:e});return D&&(n.aroundLatLng=D),B.search(P.computeQueryParams(n)).then((function(t){var n=t.hits.map((function(n,r){return(0,i.default)({formatInputValue:P.formatInputValue,hit:n,hitIndex:r,query:e,rawAnswer:t})}));return P.onHits({hits:n,query:e,rawAnswer:t}),n})).then(t).catch((function(e){403!==e.statusCode||"Invalid Application-ID or API key"!==e.message?429!==e.statusCode?P.onError(e):P.onRateLimitReached():P.onInvalidCredentials()}))}return F.configure=function(e){var t=(0,r.default)(l(l(l({},j),P),e));j=t.params,(P=t.controls).useDeviceLocation&&null===R?R=navigator.geolocation.watchPosition((function(e){var t=e.coords;D="".concat(t.latitude,",").concat(t.longitude)})):P.useDeviceLocation||null===R||(navigator.geolocation.clearWatch(R),R=null,D=null)},F};var r=a(n(2770)),i=a(n(3991)),o=a(n(56148));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},61293:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2770)),i=s(n(3991)),o=s(n(56148)),a=s(n(96060));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){var t=e.hitsPerPage,n=e.aroundLatLng,r=e.getRankingInfo,i=e.language,o={};return"number"==typeof t&&(o.hitsPerPage=t),"string"==typeof i&&(o.language=i),"boolean"==typeof r&&(o.getRankingInfo=r),"string"==typeof n&&(o.aroundLatLng=n),o},d=function(e){var t=e.algoliasearch,n=e.clientOptions,s=e.apiKey,l=e.appId,u=e.hitsPerPage,d=e.aroundLatLng,f=e.getRankingInfo,h=e.formatInputValue,m=void 0===h?a.default.value:h,g=e.language,v=void 0===g?navigator.language.split("-")[0]:g,y=e.onHits,b=void 0===y?function(){}:y,x=e.onError,w=void 0===x?function(e){throw e}:x,A=e.onRateLimitReached,_=e.onInvalidCredentials,C=t.initPlaces(l,s,n);C.as.addAlgoliaAgent("Algolia Places ".concat(o.default));var k=(0,r.default)({apiKey:s,appId:l,hitsPerPage:u,aroundLatLng:d,getRankingInfo:f,language:v,formatInputValue:m,onHits:b,onError:w,onRateLimitReached:A,onInvalidCredentials:_}),S=p(k.params),E=k.controls,T=function(e,t){var n=e||S.aroundLatLng;if(!n){var r=new Error("A location must be provided for reverse geocoding");return Promise.reject(r)}return C.reverse(c(c({},S),{},{aroundLatLng:n})).then((function(e){var t=e.hits.map((function(t,r){return(0,i.default)({formatInputValue:E.formatInputValue,hit:t,hitIndex:r,query:n,rawAnswer:e})}));return E.onHits({hits:t,query:n,rawAnswer:e}),t})).then(t).catch((function(e){403!==e.statusCode||"Invalid Application-ID or API key"!==e.message?429!==e.statusCode?E.onError(e):E.onRateLimitReached():E.onInvalidCredentials()}))};return T.configure=function(e){var t=(0,r.default)(c(c(c({},S),E),e));return S=p(t.params),E=t.controls,T},T};t.default=d},96060:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(72574)),i=o(n(15879));function o(e){return e&&e.__esModule?e:{default:e}}var a={footer:'<div class="ap-footer">\n  <a href="https://www.algolia.com/places" title="Search by Algolia" class="ap-footer-algolia">'.concat('<svg xmlns="http://www.w3.org/2000/svg" width="117" height="17" viewBox="0 0 130 19"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path fill="#5468FF" d="M59.399.044h13.299a2.372 2.372 0 0 1 2.377 2.364v13.234a2.372 2.372 0 0 1-2.377 2.364H59.399a2.372 2.372 0 0 1-2.377-2.364V2.403A2.368 2.368 0 0 1 59.399.044z"/><path fill="#FFF" d="M66.257 4.582c-2.815 0-5.1 2.272-5.1 5.078 0 2.806 2.284 5.072 5.1 5.072 2.815 0 5.1-2.272 5.1-5.078 0-2.806-2.279-5.072-5.1-5.072zm0 8.652c-1.983 0-3.593-1.602-3.593-3.574 0-1.972 1.61-3.574 3.593-3.574 1.983 0 3.593 1.602 3.593 3.574a3.582 3.582 0 0 1-3.593 3.574zm0-6.418V9.48c0 .076.082.131.153.093l2.377-1.226c.055-.027.071-.093.044-.147a2.96 2.96 0 0 0-2.465-1.487c-.055 0-.11.044-.11.104h.001zm-3.33-1.956l-.312-.31a.783.783 0 0 0-1.106 0l-.372.37a.773.773 0 0 0 0 1.1l.307.305c.049.05.121.038.164-.01.181-.246.378-.48.597-.698.225-.223.455-.42.707-.599.055-.033.06-.109.016-.158h-.001zm5.001-.806v-.616a.781.781 0 0 0-.783-.779h-1.824a.78.78 0 0 0-.783.78v.631c0 .071.066.12.137.104a5.736 5.736 0 0 1 1.588-.223c.52 0 1.035.071 1.534.207a.106.106 0 0 0 .131-.104z"/><path fill="#252C61" d="M5.027 10.246c0 .698-.252 1.246-.757 1.644-.505.397-1.201.596-2.089.596-.888 0-1.615-.138-2.181-.414v-1.214c.358.168.739.301 1.141.397.403.097.778.145 1.125.145.508 0 .884-.097 1.125-.29a.945.945 0 0 0 .363-.779.978.978 0 0 0-.333-.747c-.222-.204-.68-.446-1.375-.725C1.33 8.57.825 8.24.531 7.865c-.294-.372-.44-.82-.44-1.343 0-.655.233-1.17.698-1.547.465-.376 1.09-.564 1.875-.564.752 0 1.5.165 2.245.494l-.408 1.047c-.698-.294-1.321-.44-1.869-.44-.415 0-.73.09-.945.271a.89.89 0 0 0-.322.717c0 .204.043.38.129.524.086.145.227.282.424.411.197.13.551.3 1.063.51.577.24.999.464 1.268.671.269.208.465.442.591.704.125.261.188.57.188.924l-.001.002zm3.98 2.24c-.924 0-1.646-.269-2.167-.808-.521-.539-.781-1.28-.781-2.226 0-.97.242-1.733.725-2.288.483-.555 1.148-.833 1.993-.833.784 0 1.404.238 1.858.714.455.476.682 1.132.682 1.966v.682H7.359c.018.577.174 1.02.467 1.33.294.31.707.464 1.241.464.351 0 .678-.033.98-.099a5.1 5.1 0 0 0 .975-.33v1.026a3.865 3.865 0 0 1-.935.312 5.723 5.723 0 0 1-1.08.091zm7.46-.107l-.252-.827h-.043c-.286.362-.575.608-.865.74-.29.13-.662.195-1.117.195-.584 0-1.039-.158-1.367-.473-.328-.315-.491-.76-.491-1.337 0-.612.227-1.074.682-1.386.455-.312 1.148-.482 2.079-.51l1.026-.032v-.317c0-.38-.089-.663-.266-.85-.177-.189-.452-.283-.824-.283-.304 0-.596.045-.875.134a6.68 6.68 0 0 0-.806.317l-.408-.902a4.414 4.414 0 0 1 1.058-.384 4.856 4.856 0 0 1 1.085-.132c.756 0 1.326.165 1.711.494.385.33.577.847.577 1.552v4.001h-.904zm5.677-6.048c.254 0 .464.018.628.054l-.124 1.176a2.383 2.383 0 0 0-.559-.064c-.505 0-.914.165-1.227.494-.313.33-.47.757-.47 1.284v3.104H19.13V6.44h.988l.167 1.047h.064c.197-.354.454-.636.771-.843a1.83 1.83 0 0 1 1.023-.312h.001zm4.125 6.155c-.899 0-1.582-.262-2.049-.787-.467-.525-.701-1.277-.701-2.259 0-.999.244-1.767.733-2.304.489-.537 1.195-.806 2.119-.806.627 0 1.191.116 1.692.35l-.381 1.014c-.534-.208-.974-.312-1.321-.312-1.028 0-1.542.682-1.542 2.046 0 .666.128 1.166.384 1.501.256.335.631.502 1.125.502a3.23 3.23 0 0 0 1.595-.419v1.101a2.53 2.53 0 0 1-.722.285 4.356 4.356 0 0 1-.932.086v.002zm8.277-.107h-1.268V8.727c0-.458-.092-.8-.277-1.026-.184-.226-.477-.338-.878-.338-.53 0-.919.158-1.168.475-.249.317-.373.848-.373 1.593v2.95H29.32V4.022h1.262v2.122c0 .34-.021.704-.064 1.09h.081a1.76 1.76 0 0 1 .717-.666c.306-.158.663-.236 1.072-.236 1.439 0 2.159.725 2.159 2.175v3.873l-.001-.002zm7.648-6.048c.741 0 1.319.27 1.732.806.414.537.62 1.291.62 2.261 0 .974-.209 1.732-.628 2.275-.419.542-1.001.814-1.746.814-.752 0-1.336-.27-1.751-.81h-.086l-.231.703h-.945V4.023h1.262V6.01l-.021.655-.032.553h.054c.401-.59.992-.886 1.772-.886zm2.917.107h1.375l1.208 3.368c.183.48.304.931.365 1.354h.043c.032-.197.091-.436.177-.717.086-.28.541-1.616 1.364-4.004h1.364l-2.541 6.73c-.462 1.235-1.232 1.853-2.31 1.853-.279 0-.551-.03-.816-.09v-1c.19.043.406.064.65.064.609 0 1.037-.353 1.284-1.058l.22-.559-2.385-5.94h.002zm-3.244.924c-.508 0-.875.15-1.098.448-.224.3-.339.8-.346 1.501v.086c0 .723.115 1.247.344 1.571.229.324.603.486 1.123.486.448 0 .787-.177 1.018-.532.231-.354.346-.867.346-1.536 0-1.35-.462-2.025-1.386-2.025l-.001.001zm-27.28 4.157c.458 0 .826-.128 1.104-.384.278-.256.416-.615.416-1.077v-.516l-.763.032c-.594.021-1.027.121-1.297.298s-.406.448-.406.814c0 .265.079.47.236.615.158.145.394.218.709.218h.001zM8.775 7.287c-.401 0-.722.127-.964.381s-.386.625-.432 1.112h2.696c-.007-.49-.125-.862-.354-1.115-.229-.252-.544-.379-.945-.379l-.001.001z"/></g><path fill="#5468FF" d="M102.162 13.784c0 1.455-.372 2.517-1.123 3.193-.75.676-1.895 1.013-3.44 1.013-.564 0-1.736-.109-2.673-.316l.345-1.689c.783.163 1.819.207 2.361.207.86 0 1.473-.174 1.84-.523.367-.349.548-.866.548-1.553v-.349a6.374 6.374 0 0 1-.838.316 4.151 4.151 0 0 1-1.194.158 4.515 4.515 0 0 1-1.616-.278 3.385 3.385 0 0 1-1.254-.817 3.744 3.744 0 0 1-.811-1.35c-.192-.54-.29-1.505-.29-2.213 0-.665.104-1.498.307-2.054a3.925 3.925 0 0 1 .904-1.433 4.124 4.124 0 0 1 1.441-.926 5.31 5.31 0 0 1 1.945-.365c.696 0 1.337.087 1.961.191a15.86 15.86 0 0 1 1.588.332v8.456h-.001zm-5.955-4.206c0 .893.197 1.885.592 2.3.394.413.904.62 1.528.62.34 0 .663-.049.964-.142a2.75 2.75 0 0 0 .734-.332v-5.29a8.531 8.531 0 0 0-1.413-.18c-.778-.022-1.369.294-1.786.801-.411.507-.619 1.395-.619 2.223zm16.121 0c0 .72-.104 1.264-.318 1.858a4.389 4.389 0 0 1-.904 1.52c-.389.42-.854.746-1.402.975-.548.23-1.391.36-1.813.36-.422-.005-1.26-.125-1.802-.36a4.088 4.088 0 0 1-1.397-.975 4.486 4.486 0 0 1-.909-1.52 5.037 5.037 0 0 1-.329-1.858c0-.719.099-1.41.318-1.999.219-.588.526-1.09.92-1.509.394-.42.865-.74 1.402-.97a4.547 4.547 0 0 1 1.786-.338 4.69 4.69 0 0 1 1.791.338c.548.23 1.019.55 1.402.97.389.42.69.921.909 1.51.23.587.345 1.28.345 1.998h.001zm-2.192.005c0-.92-.203-1.689-.597-2.223-.394-.539-.948-.806-1.654-.806-.707 0-1.26.267-1.654.806-.394.54-.586 1.302-.586 2.223 0 .932.197 1.558.592 2.098.394.545.948.812 1.654.812.707 0 1.26-.272 1.654-.812.394-.545.592-1.166.592-2.098h-.001zm6.963 4.708c-3.511.016-3.511-2.822-3.511-3.274L113.583.95l2.142-.338v10.003c0 .256 0 1.88 1.375 1.885v1.793h-.001zM120.873 14.291h-2.153V5.095l2.153-.338zM119.794 3.75c.718 0 1.304-.579 1.304-1.292 0-.714-.581-1.29-1.304-1.29-.723 0-1.304.577-1.304 1.29 0 .714.586 1.291 1.304 1.291zm6.431 1.012c.707 0 1.304.087 1.786.262.482.174.871.42 1.156.73.285.311.488.735.608 1.182.126.447.186.937.186 1.476v5.481a25.24 25.24 0 0 1-1.495.251c-.668.098-1.419.147-2.251.147a6.829 6.829 0 0 1-1.517-.158 3.213 3.213 0 0 1-1.178-.507 2.455 2.455 0 0 1-.761-.904c-.181-.37-.274-.893-.274-1.438 0-.523.104-.855.307-1.215.208-.36.487-.654.838-.883a3.609 3.609 0 0 1 1.227-.49 7.073 7.073 0 0 1 2.202-.103c.263.027.537.076.833.147v-.349c0-.245-.027-.479-.088-.697a1.486 1.486 0 0 0-.307-.583c-.148-.169-.34-.3-.581-.392a2.536 2.536 0 0 0-.915-.163c-.493 0-.942.06-1.353.131-.411.071-.75.153-1.008.245l-.257-1.749c.268-.093.668-.185 1.183-.278a9.335 9.335 0 0 1 1.66-.142h-.001zm.179 7.73c.657 0 1.145-.038 1.484-.104V10.22a5.097 5.097 0 0 0-1.978-.104c-.241.033-.46.098-.652.191a1.167 1.167 0 0 0-.466.392c-.121.17-.175.267-.175.523 0 .501.175.79.493.981.323.196.75.29 1.293.29h.001zM84.108 4.816c.707 0 1.304.087 1.786.262.482.174.871.42 1.156.73.29.316.487.735.608 1.182.126.447.186.937.186 1.476v5.481a25.24 25.24 0 0 1-1.495.251c-.668.098-1.419.147-2.251.147a6.829 6.829 0 0 1-1.517-.158 3.213 3.213 0 0 1-1.178-.507 2.455 2.455 0 0 1-.761-.904c-.181-.37-.274-.893-.274-1.438 0-.523.104-.855.307-1.215.208-.36.487-.654.838-.883a3.609 3.609 0 0 1 1.227-.49 7.073 7.073 0 0 1 2.202-.103c.257.027.537.076.833.147v-.349c0-.245-.027-.479-.088-.697a1.486 1.486 0 0 0-.307-.583c-.148-.169-.34-.3-.581-.392a2.536 2.536 0 0 0-.915-.163c-.493 0-.942.06-1.353.131-.411.071-.75.153-1.008.245l-.257-1.749c.268-.093.668-.185 1.183-.278a8.89 8.89 0 0 1 1.66-.142h-.001zm.185 7.736c.657 0 1.145-.038 1.484-.104V10.28a5.097 5.097 0 0 0-1.978-.104c-.241.033-.46.098-.652.191a1.167 1.167 0 0 0-.466.392c-.121.17-.175.267-.175.523 0 .501.175.79.493.981.318.191.75.29 1.293.29h.001zm8.683 1.738c-3.511.016-3.511-2.822-3.511-3.274L89.46.948 91.602.61v10.003c0 .256 0 1.88 1.375 1.885v1.793h-.001z"/></g></svg>'.trim(),'</a>\n  using <a href="https://community.algolia.com/places/documentation.html#license" class="ap-footer-osm" title="Algolia Places data © OpenStreetMap contributors">').concat('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12">\n  <path fill="#797979" fill-rule="evenodd" d="M6.577.5L5.304.005 2.627 1.02 0 0l.992 2.767-.986 2.685.998 2.76-1 2.717.613.22 3.39-3.45.563.06.726-.69s-.717-.92-.91-1.86c.193-.146.184-.14.355-.285C4.1 1.93 6.58.5 6.58.5zm-4.17 11.354l.22.12 2.68-1.05 2.62 1.04 2.644-1.03 1.02-2.717-.33-.944s-1.13 1.26-3.44.878c-.174.29-.25.37-.25.37s-1.11-.31-1.683-.89c-.573.58-.795.71-.795.71l.08.634-2.76 2.89zm6.26-4.395c1.817 0 3.29-1.53 3.29-3.4 0-1.88-1.473-3.4-3.29-3.4s-3.29 1.52-3.29 3.4c0 1.87 1.473 3.4 3.29 3.4z"/>\n</svg>\n'.trim()," <span>data</span></a>\n  </div>"),value:r.default,suggestion:i.default};t.default=a},53552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={multiContainers:"Algolia Places: 'container' must point to a single <input> element.\nExample: instantiate the library twice if you want to bind two <inputs>.\n\nSee https://community.algolia.com/places/documentation.html#api-options-container",badContainer:"Algolia Places: 'container' must point to an <input> element.\n\nSee https://community.algolia.com/places/documentation.html#api-options-container",rateLimitReached:"Algolia Places: Current rate limit reached.\n\nSign up for a free 100,000 queries/month account at\nhttps://www.algolia.com/users/sign_up/places.\n\nOr upgrade your 100,000 queries/month plan by contacting us at\nhttps://community.algolia.com/places/contact.html.",invalidCredentials:"The APP ID or API key provided is invalid.",invalidAppId:"Your APP ID is invalid. A Places APP ID starts with 'pl'. You must create a valid Places app first.\n\nCreate a free Places app here: https://www.algolia.com/users/sign_up/places"}},48675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=0;t<e.length;t++){var n=e[t].match(/country\/(.*)?/);if(n)return n[1]}return}},27892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={country:"country",city:"city","amenity/bus_station":"busStop","amenity/townhall":"townhall","railway/station":"trainStation","aeroway/aerodrome":"airport","aeroway/terminal":"airport","aeroway/gate":"airport"};for(var n in t)if(-1!==e.indexOf(n))return t[n];return"address"}},15879:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.type,r=e.highlight,i=r.name,o=r.administrative,a=r.city,s=r.country;return'<span class="ap-suggestion-icon">'.concat(n[t].trim(),'</span>\n<span class="ap-name">').concat(i,'</span>\n<span class="ap-address">\n  ').concat([a,o,s].filter((function(e){return void 0!==e})).join(", "),"</span>").replace(/\s*\n\s*/g," ")};var n={address:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 14 20"><path d="M7 0C3.13 0 0 3.13 0 7c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5C5.62 9.5 4.5 8.38 4.5 7S5.62 4.5 7 4.5 9.5 5.62 9.5 7 8.38 9.5 7 9.5z"/></svg>\n',city:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 18 19"><path d="M12 9V3L9 0 6 3v2H0v14h18V9h-6zm-8 8H2v-2h2v2zm0-4H2v-2h2v2zm0-4H2V7h2v2zm6 8H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V7h2v2zm0-4H8V3h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z"/></svg>\n',country:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">\n  <path d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zM9 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L7 13v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H6V8h2c.55 0 1-.45 1-1V5h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/>\n</svg>\n',busStop:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 54.9 50.5"><path d="M9.6 12.7H8.5c-2.3 0-4.1 1.9-4.1 4.1v1.1c0 2.2 1.8 4 4 4.1v21.7h-.7c-1.3 0-2.3 1-2.3 2.3h7.1c0-1.3-1-2.3-2.3-2.3h-.5V22.1c2.2-.1 4-1.9 4-4.1v-1.1c0-2.3-1.8-4.2-4.1-4.2zM46 7.6h-7.5c0-1.8-1.5-3.3-3.3-3.3h-3.6c-1.8 0-3.3 1.5-3.3 3.3H21c-2.5 0-4.6 2-4.6 4.6v26.3c0 1.7 1.3 3.1 3 3.1h.8v1.6c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3-1.4 3-3.1v-1.6h14.3v1.6c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3.1-1.4 3.1-3.1v-1.6h.8c1.7 0 3.1-1.4 3.1-3.1V12.2c-.2-2.5-2.2-4.6-4.7-4.6zm-27.4 4.6c0-1.3 1.1-2.4 2.4-2.4h25c1.3 0 2.4 1.1 2.4 2.4v.3c0 1.3-1.1 2.4-2.4 2.4H21c-1.3 0-2.4-1.1-2.4-2.4v-.3zM21 38c-1.5 0-2.7-1.2-2.7-2.7 0-1.5 1.2-2.7 2.7-2.7 1.5 0 2.7 1.2 2.7 2.7 0 1.5-1.2 2.7-2.7 2.7zm0-10.1c-1.3 0-2.4-1.1-2.4-2.4v-6.6c0-1.3 1.1-2.4 2.4-2.4h25c1.3 0 2.4 1.1 2.4 2.4v6.6c0 1.3-1.1 2.4-2.4 2.4H21zm24.8 10c-1.5 0-2.7-1.2-2.7-2.7 0-1.5 1.2-2.7 2.7-2.7 1.5 0 2.7 1.2 2.7 2.7 0 1.5-1.2 2.7-2.7 2.7z"/></svg>\n',trainStation:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 15 20">\n  <path d="M13.105 20l-2.366-3.354H4.26L1.907 20H0l3.297-4.787c-1.1-.177-2.196-1.287-2.194-2.642V2.68C1.1 1.28 2.317-.002 3.973 0h7.065c1.647-.002 2.863 1.28 2.86 2.676v9.895c.003 1.36-1.094 2.47-2.194 2.647L15 20h-1.895zM6.11 2h2.78c.264 0 .472-.123.472-.27v-.46c0-.147-.22-.268-.472-.27H6.11c-.252.002-.47.123-.47.27v.46c0 .146.206.27.47.27zm6.26 3.952V4.175c-.004-.74-.5-1.387-1.436-1.388H4.066c-.936 0-1.43.648-1.436 1.388v1.777c-.002.86.644 1.384 1.436 1.388h6.868c.793-.004 1.44-.528 1.436-1.388zm-8.465 5.386c-.69-.003-1.254.54-1.252 1.21-.002.673.56 1.217 1.252 1.222.697-.006 1.26-.55 1.262-1.22-.002-.672-.565-1.215-1.262-1.212zm8.42 1.21c-.005-.67-.567-1.213-1.265-1.21-.69-.003-1.253.54-1.25 1.21-.003.673.56 1.217 1.25 1.222.698-.006 1.26-.55 1.264-1.22z"/>\n</svg>\n',townhall:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M12 .6L2.5 6.9h18.9L12 .6zM3.8 8.2c-.7 0-1.3.6-1.3 1.3v8.8L.3 22.1c-.2.3-.3.5-.3.6 0 .6.8.6 1.3.6h21.5c.4 0 1.3 0 1.3-.6 0-.2-.1-.3-.3-.6l-2.2-3.8V9.5c0-.7-.6-1.3-1.3-1.3H3.8zm2.5 2.5c.7 0 1.1.6 1.3 1.3v7.6H5.1V12c0-.7.5-1.3 1.2-1.3zm5.7 0c.7 0 1.3.6 1.3 1.3v7.6h-2.5V12c-.1-.7.5-1.3 1.2-1.3zm5.7 0c.7 0 1.3.6 1.3 1.3v7.6h-2.5V12c-.1-.7.5-1.3 1.2-1.3z"/></svg>\n',airport:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M22.9 1.1s1.3.3-4.3 6.5l.7 3.8.2-.2c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-1.2 1.2.3 1.7.1-.1c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-1.1 1.1c.2 1.9.3 3.6.1 4.5 0 0-1.2 1.2-1.8.5 0 0-2.3-7.7-3.8-11.1-5.9 6-6.4 5.6-6.4 5.6s1.2 3.8-.2 5.2l-2.3-4.3h.1l-4.3-2.3c1.3-1.3 5.2-.2 5.2-.2s-.5-.4 5.6-6.3C8.9 7.7 1.2 5.5 1.2 5.5c-.7-.7.5-1.8.5-1.8.9-.2 2.6-.1 4.5.1l1.1-1.1c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l1.7.3 1.2-1.2c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-.2.2 3.8.7c6.2-5.5 6.5-4.2 6.5-4.2z"/></svg>\n'}},3991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.formatInputValue,n=e.hit,o=e.hitIndex,a=e.query,l=e.rawAnswer;try{var u=n.locale_names[0],p=n.country,d=n.administrative&&n.administrative[0]!==u?n.administrative[0]:void 0,f=n.city&&n.city[0]!==u?n.city[0]:void 0,h=n.suburb&&n.suburb[0]!==u?n.suburb[0]:void 0,m=n.county&&n.county[0]!==u?n.county[0]:void 0,g=n.postcode&&n.postcode.length?function(e,t){for(var n=t[0].value,r=[],i=1;i<t.length;++i)"none"!==t[i].matchLevel&&r.push({index:i,words:t[i].matchedWords});if(0===r.length)return{postcode:e[0],highlightedPostcode:n};r.sort((function(e,t){return e.words>t.words?-1:e.words<t.words?1:e.index-t.index}));var o=e[r[0].index];return{postcode:o,highlightedPostcode:t[r[0].index].value}}(n.postcode,n._highlightResult.postcode):{postcode:void 0,highlightedPostcode:void 0},v=g.postcode,y=g.highlightedPostcode,b={name:c(n._highlightResult.locale_names),city:f?c(n._highlightResult.city):void 0,administrative:d?c(n._highlightResult.administrative):void 0,country:p?n._highlightResult.country.value:void 0,suburb:h?c(n._highlightResult.suburb):void 0,county:m?c(n._highlightResult.county):void 0,postcode:y},x={name:u,administrative:d,county:m,city:f,suburb:h,country:p,countryCode:(0,r.default)(n._tags),type:(0,i.default)(n._tags),latlng:{lat:n._geoloc.lat,lng:n._geoloc.lng},postcode:v,postcodes:n.postcode&&n.postcode.length?n.postcode:void 0},w=t(x);return s(s({},x),{},{highlight:b,hit:n,hitIndex:o,query:a,rawAnswer:l,value:w})}catch(e){return console.error("Could not parse object",n),console.error(e),{value:"Could not parse object"}}};var r=o(n(48675)),i=o(n(27892));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=e[0].value,n=[],r=1;r<e.length;++r)"none"!==e[r].matchLevel&&n.push({index:r,words:e[r].matchedWords});return 0===n.length?t:(n.sort((function(e,t){return e.words>t.words?-1:e.words<t.words?1:e.index-t.index})),0===n[0].index?"".concat(t," (").concat(e[n[1].index].value,")"):"".concat(e[n[0].index].value," (").concat(t,")"))}},72574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.administrative,n=e.city,r=e.country,i=e.name,o=e.type;return"".concat(i).concat("country"!==o&&void 0!==r?",":"","\n ").concat(n?"".concat(n,","):"","\n ").concat(t?"".concat(t,","):"","\n ").concat(r||"").replace(/\s*\n\s*/g," ").trim()}},39640:()=>{"use strict";"language"in navigator||(navigator.language=navigator.userLanguage&&navigator.userLanguage.replace(/-[a-z]{2}$/,String.prototype.toUpperCase)||"en-US")},59332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=t.container,s=t.style,u=t.accessibility,p=t.autocompleteOptions,f=void 0===p?{}:p;if(n instanceof NodeList){if(n.length>1)throw new Error(l.default.multiContainers);return e(d(d({},t),{},{container:n[0]}))}if("string"==typeof n){var h=document.querySelectorAll(n);return e(d(d({},t),{},{container:h}))}if(!(n instanceof HTMLInputElement))throw new Error(l.default.badContainer);var m=new r.default,b="ap".concat(!1===s?"-nostyle":""),x=d({autoselect:!0,hint:!1,cssClasses:{root:"algolia-places".concat(!1===s?"-nostyle":""),prefix:b},debug:!1},f),w=(0,a.default)(d(d({},t),{},{algoliasearch:i.default,onHits:function(e){var t=e.hits,n=e.rawAnswer,r=e.query;return m.emit("suggestions",{rawAnswer:n,query:r,suggestions:t})},onError:function(e){return m.emit("error",e)},onRateLimitReached:function(){0!==m.listenerCount("limit")?m.emit("limit",{message:l.default.rateLimitReached}):console.log(l.default.rateLimitReached)},onInvalidCredentials:function(){t&&t.appId&&t.appId.startsWith("pl")?console.error(l.default.invalidCredentials):console.error(l.default.invalidAppId)},container:void 0})),A=(0,o.default)(n,x,w),_=n.parentNode;["selected","autocompleted"].forEach((function(e){A.on("autocomplete:".concat(e),(function(e,t){m.emit("change",{rawAnswer:t.rawAnswer,query:t.query,suggestion:t,suggestionIndex:t.hitIndex})}))})),A.on("autocomplete:cursorchanged",(function(e,t){m.emit("cursorchanged",{rawAnswer:t.rawAnswer,query:t.query,suggestion:t,suggestionIndex:t.hitIndex})}));var C=document.createElement("button");C.setAttribute("type","button"),C.setAttribute("aria-label","clear"),u&&u.clearButton&&u.clearButton instanceof Object&&y(C,u.clearButton);C.classList.add("".concat(b,"-input-icon")),C.classList.add("".concat(b,"-icon-clear")),C.innerHTML=g,_.appendChild(C),C.style.display="none";var k=document.createElement("button");k.setAttribute("type","button"),k.setAttribute("aria-label","focus"),u&&u.pinButton&&u.pinButton instanceof Object&&y(k,u.pinButton);k.classList.add("".concat(b,"-input-icon")),k.classList.add("".concat(b,"-icon-pin")),k.innerHTML=v,_.appendChild(k),k.addEventListener("click",(function(){w.source.configure({useDeviceLocation:!0}),A.focus(),m.emit("locate")})),C.addEventListener("click",(function(){A.autocomplete.setVal(""),A.focus(),C.style.display="none",k.style.display="",m.emit("clear")}));var S="",E=function(){var e=A.val();""===e?(k.style.display="",C.style.display="none",S!==e&&m.emit("clear")):(C.style.display="",k.style.display="none"),S=e};_.querySelector(".".concat(b,"-input")).addEventListener("input",E);return["open","close"].forEach((function(e){m[e]=function(){var t;(t=A.autocomplete)[e].apply(t,arguments)}})),m.getVal=function(){return A.val()},m.destroy=function(){var e;_.querySelector(".".concat(b,"-input")).removeEventListener("input",E),(e=A.autocomplete).destroy.apply(e,arguments)},m.setVal=function(){var e;""===(S=arguments.length<=0?void 0:arguments[0])?(k.style.display="",C.style.display="none"):(C.style.display="",k.style.display="none"),(e=A.autocomplete).setVal.apply(e,arguments)},m.autocomplete=A,m.search=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(t){w.source(e,t)}))},m.configure=function(e){var t=d({},e);return delete t.onHits,delete t.onError,delete t.onRateLimitReached,delete t.onInvalidCredentials,delete t.templates,w.source.configure(t),m},m.reverse=(0,c.default)(d(d({},t),{},{algoliasearch:i.default,formatInputValue:(t.templates||{}).value,onHits:function(e){var t=e.hits,n=e.rawAnswer,r=e.query;return m.emit("reverse",{rawAnswer:n,query:r,suggestions:t})},onError:function(e){return m.emit("error",e)},onRateLimitReached:function(){0!==m.listenerCount("limit")?m.emit("limit",{message:l.default.rateLimitReached}):console.log(l.default.rateLimitReached)},onInvalidCredentials:function(){t&&t.appId&&t.appId.startsWith("pl")?console.error(l.default.invalidCredentials):console.error(l.default.invalidAppId)}})),m};var r=u(n(17187)),i=u(n(67191)),o=u(n(71639));n(39640);var a=u(n(65283)),s=u(n(38186)),l=u(n(53552)),c=u(n(61293));function u(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g='<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="M.566 1.698L0 1.13 1.132 0l.565.566L6 4.868 10.302.566 10.868 0 12 1.132l-.566.565L7.132 6l4.302 4.3.566.568L10.868 12l-.565-.566L6 7.132l-4.3 4.302L1.13 12 0 10.868l.566-.565L4.868 6 .566 1.698z"/></svg>\n',v='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 14 20"><path d="M7 0C3.13 0 0 3.13 0 7c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5C5.62 9.5 4.5 8.38 4.5 7S5.62 4.5 7 4.5 9.5 5.62 9.5 7 8.38 9.5 7 9.5z"/></svg>\n';(0,s.default)(".algolia-places {\n  width: 100%;\n}\n\n.ap-input, .ap-hint {\n  width: 100%;\n  padding-right: 35px;\n  padding-left: 16px;\n  line-height: 40px;\n  height: 40px;\n  border: 1px solid #CCC;\n  border-radius: 3px;\n  outline: none;\n  font: inherit;\n  appearance: none;\n  -webkit-appearance: none;\n  box-sizing: border-box;\n}\n\n.ap-input::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n\n.ap-input::-ms-clear {\n  display: none;\n}\n\n.ap-input:hover ~ .ap-input-icon svg,\n.ap-input:focus ~ .ap-input-icon svg,\n.ap-input-icon:hover svg {\n  fill: #aaaaaa;\n}\n\n.ap-dropdown-menu {\n  width: 100%;\n  background: #ffffff;\n  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n  border-radius: 3px;\n  margin-top: 3px;\n  overflow: hidden;\n}\n\n.ap-suggestion {\n  cursor: pointer;\n  height: 46px;\n  line-height: 46px;\n  padding-left: 18px;\n  overflow: hidden;\n}\n\n.ap-suggestion em {\n  font-weight: bold;\n  font-style: normal;\n}\n\n.ap-address {\n  font-size: smaller;\n  margin-left: 12px;\n  color: #aaaaaa;\n}\n\n.ap-suggestion-icon {\n  margin-right: 10px;\n  width: 14px;\n  height: 20px;\n  vertical-align: middle;\n}\n\n.ap-suggestion-icon svg {\n  display: inherit;\n  -webkit-transform: scale(0.9) translateY(2px);\n          transform: scale(0.9) translateY(2px);\n  fill: #cfcfcf;\n}\n\n.ap-input-icon {\n  border: 0;\n  background: transparent;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  right: 16px;\n  outline: none;\n}\n\n.ap-input-icon.ap-icon-pin {\n  cursor: pointer;\n}\n\n.ap-input-icon svg {\n  fill: #cfcfcf;\n  position: absolute;\n  top: 50%;\n  right: 0;\n  -webkit-transform: translateY(-50%);\n          transform: translateY(-50%);\n}\n\n.ap-cursor {\n  background: #efefef;\n}\n\n.ap-cursor .ap-suggestion-icon svg {\n  -webkit-transform: scale(1) translateY(2px);\n          transform: scale(1) translateY(2px);\n  fill: #aaaaaa;\n}\n\n.ap-footer {\n  opacity: .8;\n  text-align: right;\n  padding: .5em 1em .5em 0;\n  font-size: 12px;\n  line-height: 12px;\n}\n\n.ap-footer a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.ap-footer a svg {\n  vertical-align: middle;\n}\n\n.ap-footer:hover {\n  opacity: 1;\n}\n",{prepend:!0});var y=function(e,t){return Object.entries(t).forEach((function(t){var n=h(t,2),r=n[0],i=n[1];e.setAttribute(r,"".concat(i))})),e}},56148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="1.19.0"},34155:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],c=!1,u=-1;function p(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&d())}function d(){if(!c){var e=a(p);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},55798:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},80129:(e,t,n)=>{"use strict";var r=n(58261),i=n(55235),o=n(55798);e.exports={formats:o,parse:i,stringify:r}},55235:(e,t,n)=>{"use strict";var r=n(12769),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var p=0;n.depth>0&&null!==(s=a.exec(o))&&p<n.depth;){if(p+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var m,g,v=d[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(c,m)?c[m]=r.combine(c[m],g):c[m]=g}return c}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var h=d[f],m=c(h,u[h],n,"string"==typeof e);p=r.merge(p,m,n)}return!0===n.allowSparse?p:r.compact(p)}},58261:(e,t,n)=>{"use strict";var r=n(37478),i=n(12769),o=n(55798),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,o,a,s,c,p,d,m,g,v,y,b,x,w,A){for(var _,C=t,k=A,S=0,E=!1;void 0!==(k=k.get(h))&&!E;){var T=k.get(t);if(S+=1,void 0!==T){if(T===S)throw new RangeError("Cyclic object value");E=!0}void 0===k.get(h)&&(S=0)}if("function"==typeof d?C=d(n,C):C instanceof Date?C=v(C):"comma"===o&&l(C)&&(C=i.maybeMap(C,(function(e){return e instanceof Date?v(e):e}))),null===C){if(s)return p&&!x?p(n,f.encoder,w,"key",y):n;C=""}if("string"==typeof(_=C)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||i.isBuffer(C))return p?[b(x?n:p(n,f.encoder,w,"key",y))+"="+b(p(C,f.encoder,w,"value",y))]:[b(n)+"="+b(String(C))];var O,M=[];if(void 0===C)return M;if("comma"===o&&l(C))x&&p&&(C=i.maybeMap(C,p)),O=[{value:C.length>0?C.join(",")||null:void 0}];else if(l(d))O=d;else{var L=Object.keys(C);O=m?L.sort(m):L}for(var B=a&&l(C)&&1===C.length?n+"[]":n,D=0;D<O.length;++D){var N=O[D],j="object"==typeof N&&void 0!==N.value?N.value:C[N];if(!c||null!==j){var P=l(C)?"function"==typeof o?o(B,N):B:B+(g?"."+N:"["+N+"]");A.set(t,S);var R=r();R.set(h,A),u(M,e(j,P,o,a,s,c,"comma"===o&&x&&l(C)?null:p,d,m,g,v,y,b,x,w,R))}}return M};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=f.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var p,d=[];if("object"!=typeof i||null===i)return"";p=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var v=r(),y=0;y<n.length;++y){var b=n[y];c.skipNulls&&null===i[b]||u(d,m(i[b],b,h,g,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var x=d.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},12769:(e,t,n)=>{"use strict";var r=n(55798),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},29335:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,i,o){r=r||"&",i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(r);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var p,d,f,h,m=e[u].replace(s,"%20"),g=m.indexOf(i);g>=0?(p=m.substr(0,g),d=m.substr(g+1)):(p=m,d=""),f=decodeURIComponent(p),h=decodeURIComponent(d),t(a,f)?n(a[f])?a[f].push(h):a[f]=[a[f],h]:a[f]=h}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},68795:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?r(i(e),(function(i){var s=encodeURIComponent(t(i))+a;return n(e[i])?r(e[i],(function(e){return s+encodeURIComponent(t(e))})).join(o):s+encodeURIComponent(t(e[i]))})).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},87735:(e,t,n)=>{"use strict";t.decode=t.parse=n(29335),t.encode=t.stringify=n(68795)},14670:(e,t,n)=>{"use strict";e.exports=n(95607)},79829:(e,t,n)=>{"use strict";var r,i,o,a=n(48946),s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){o=!1}function c(e){if(e){if(e!==r){if(e.length!==s.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. These characters were not unique: "+t.join(", "));r=e,l()}}else r!==s&&(r=s,l())}function u(){return o||(o=function(){r||c(s);for(var e,t=r.split(""),n=[],i=a.nextValue();t.length>0;)i=a.nextValue(),e=Math.floor(i*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}e.exports={get:function(){return r||s},characters:function(e){return c(e),r},seed:function(e){a.seed(e),i!==e&&(l(),i=e)},lookup:function(e){return u()[e]},shuffled:u}},90480:(e,t,n)=>{"use strict";var r,i,o=n(98416);n(79829);e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===i?r++:(r=0,i=n),t+=o(7),t+=o(e),r>0&&(t+=o(r)),t+=o(n)}},98416:(e,t,n)=>{"use strict";var r=n(79829),i=n(13766),o=n(50296);e.exports=function(e){for(var t,n=0,a="";!t;)a+=o(i,r.get(),1),t=e<Math.pow(16,n+1),n++;return a}},95607:(e,t,n)=>{"use strict";var r=n(79829),i=n(90480),o=n(41082),a=n(15636)||0;function s(){return i(a)}e.exports=s,e.exports.generate=s,e.exports.seed=function(t){return r.seed(t),e.exports},e.exports.worker=function(t){return a=t,e.exports},e.exports.characters=function(e){return void 0!==e&&r.characters(e),r.shuffled()},e.exports.isValid=o},41082:(e,t,n)=>{"use strict";var r=n(79829);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+r.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)}},13766:e=>{"use strict";var t,n="object"==typeof window&&(window.crypto||window.msCrypto);t=n&&n.getRandomValues?function(e){return n.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},e.exports=t},48946:e=>{"use strict";var t=1;e.exports={nextValue:function(){return(t=(9301*t+49297)%233280)/233280},seed:function(e){t=e}}},15636:e=>{"use strict";e.exports=0},50296:e=>{e.exports=function(e,t,n){for(var r=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*r*n/t.length),o="";;)for(var a=e(i),s=i;s--;)if((o+=t[a[s]&r]||"").length===+n)return o}},37478:(e,t,n)=>{"use strict";var r=n(40210),i=n(21924),o=n(70631),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return d(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),u(e,r,i)):l?(t||(t=new l),f(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},88383:(e,t,n)=>{"use strict";var r=n(93379),i=n.n(r),o=n(36714),a={insert:"head",singleton:!1};i()(o.Z,a),o.Z.locals},82426:(e,t,n)=>{"use strict";var r=n(93379),i=n.n(r),o=n(82862),a={insert:"head",singleton:!1};i()(o.Z,a),o.Z.locals},9217:(e,t,n)=>{"use strict";var r=n(93379),i=n.n(r),o=n(54163),a={insert:"head",singleton:!1};i()(o.Z,a),o.Z.locals},9887:(e,t,n)=>{"use strict";var r=n(93379),i=n.n(r),o=n(3141),a={insert:"head",singleton:!1};i()(o.Z,a),o.Z.locals},93379:(e,t,n)=>{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],l=t.base?o[0]+t.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var p=s(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:u,updater:g(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,p=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function g(e,t){var n,r,i;if(t.singleton){var o=m++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},49925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{parseColor:function(){return f},formatColor:function(){return h}});const r=i(n(44909));function i(e){return e&&e.__esModule?e:{default:e}}let o=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,a=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,s=/(?:\d+|\d*\.\d+)%?/,l=/(?:\s*,\s*|\s+)/,c=/\s*[,/]\s*/,u=/var\(--(?:[^ )]*?)\)/,p=new RegExp(`^(rgba?)\\(\\s*(${s.source}|${u.source})(?:${l.source}(${s.source}|${u.source}))?(?:${l.source}(${s.source}|${u.source}))?(?:${c.source}(${s.source}|${u.source}))?\\s*\\)$`),d=new RegExp(`^(hsla?)\\(\\s*((?:${s.source})(?:deg|rad|grad|turn)?|${u.source})(?:${l.source}(${s.source}|${u.source}))?(?:${l.source}(${s.source}|${u.source}))?(?:${c.source}(${s.source}|${u.source}))?\\s*\\)$`);function f(e,{loose:t=!1}={}){var n,i;if("string"!=typeof e)return null;if("transparent"===(e=e.trim()))return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in r.default)return{mode:"rgb",color:r.default[e].map((e=>e.toString()))};let s=e.replace(a,((e,t,n,r,i)=>["#",t,t,n,n,r,r,i?i+i:""].join(""))).match(o);if(null!==s)return{mode:"rgb",color:[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)].map((e=>e.toString())),alpha:s[4]?(parseInt(s[4],16)/255).toString():void 0};var l;let c=null!==(l=e.match(p))&&void 0!==l?l:e.match(d);if(null===c)return null;let u=[c[2],c[3],c[4]].filter(Boolean).map((e=>e.toString()));return 2===u.length&&u[0].startsWith("var(")?{mode:c[1],color:[u[0]],alpha:u[1]}:t||3===u.length?u.length<3&&!u.some((e=>/^var\(.*?\)$/.test(e)))?null:{mode:c[1],color:u,alpha:null===(n=c[5])||void 0===n||null===(i=n.toString)||void 0===i?void 0:i.call(n)}:null}function h({mode:e,color:t,alpha:n}){let r=void 0!==n;return"rgba"===e||"hsla"===e?`${e}(${t.join(", ")}${r?`, ${n}`:""})`:`${e}(${t.join(" ")}${r?` / ${n}`:""})`}},44909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});const n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},74279:e=>{function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t},69428:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(50840),i=n.n(r),o=n(67277),a=n.n(o);let s=300;const l=e=>{a()({targets:e,translateY:"-35px",opacity:1,duration:s,easing:"easeOutCubic"})},c=(e,t)=>{a()({targets:e,opacity:0,marginTop:"-40px",duration:s,easing:"easeOutExpo",complete:t})},u=e=>{a()({targets:e,left:0,opacity:1,duration:s,easing:"easeOutExpo"})},p=(e,t,n)=>{a()({targets:e,duration:10,easing:"easeOutQuad",left:t,opacity:n})},d=(e,t)=>{a()({targets:e,opacity:0,duration:s,easing:"easeOutExpo",complete:t})},f=e=>{let t=a().timeline();e.forEach((e=>{t.add({targets:e.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:()=>{e.destroy()}})}))},h=n(14670),m=function(e){this.options={},this.id=h.generate(),this.toast=null;let t=!1;(()=>{e.toasts.push(this)})(),this.create=(e,i)=>{if(!e||t)return;i=o(i);let c=r();return this.toast=document.createElement("div"),this.toast.classList.add("toasted"),i.className&&i.className.forEach((e=>{this.toast.classList.add(e)})),n(e),a(),s(),m(),c.appendChild(this.toast),l(this.toast),g(),this.el=this.toast,t=!0,this};let n=e=>{e&&(("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?this.toast.appendChild(e):this.toast.innerHTML=e)},r=()=>{let t=document.getElementById(e.id);return null===t&&(t=document.createElement("div"),t.id=e.id,document.body.appendChild(t)),t.className!==this.options.containerClass.join(" ")&&(t.className="",this.options.containerClass.forEach((e=>{t.classList.add(e)}))),t},o=e=>(e.position=e.position||"top-right",e.duration=e.duration||null,e.action=e.action||null,e.fullWidth=e.fullWidth||!1,e.fitToScreen=e.fitToScreen||null,e.className=e.className||null,e.containerClass=e.containerClass||null,e.icon=e.icon||null,e.type=e.type||"default",e.theme=e.theme||"material",e.color=e.color||null,e.iconColor=e.iconColor||null,e.onComplete=e.onComplete||null,e.className&&"string"==typeof e.className&&(e.className=e.className.split(" ")),e.className||(e.className=[]),e.theme&&e.className.push(e.theme.trim()),e.type&&e.className.push(e.type),e.containerClass&&"string"==typeof e.containerClass&&(e.containerClass=e.containerClass.split(" ")),e.containerClass||(e.containerClass=[]),e.position&&e.containerClass.push(e.position.trim()),e.fullWidth&&e.containerClass.push("full-width"),e.fitToScreen&&e.containerClass.push("fit-to-screen"),e.containerClass.unshift("toasted-container"),v.run("options",(t=>t(e,this.options))),this.options=e,e),a=()=>{let e=this.toast,t=new(i())(e,{prevent_default:!1});t.on("pan",(function(t){let n=t.deltaX;e.classList.contains("panning")||e.classList.add("panning");let r=1-Math.abs(n/80);r<0&&(r=0),p(e,n,r)})),t.on("panend",(t=>{let n=t.deltaX;Math.abs(n)>80?d(e,(()=>{"function"==typeof this.options.onComplete&&this.options.onComplete(),this.destroy()})):(e.classList.remove("panning"),u(e))}))},s=()=>{let e=this.options;if(e.icon){let t=document.createElement("i");t.classList.add("material-icons"),t.style.color=e.icon.color?e.icon.color:e.color,e.icon.after&&e.icon.name?(t.textContent=e.icon.name,t.classList.add("after"),this.toast.appendChild(t)):e.icon.name?(t.textContent=e.icon.name,this.toast.insertBefore(t,this.toast.firstChild)):(t.textContent=e.icon,this.toast.insertBefore(t,this.toast.firstChild))}},f=t=>{if(!t)return null;let n=document.createElement("a");if(n.style.color=t.color?t.color:this.options.color,n.classList.add("action"),t.text&&(n.text=t.text),t.href&&(n.href=t.href),t.icon){n.classList.add("icon");let e=document.createElement("i");e.classList.add("material-icons"),e.textContent=t.icon,n.appendChild(e)}if(t.class)switch(typeof t.class){case"string":t.class.split(" ").forEach((e=>{n.classList.add(e)}));break;case"array":t.class.forEach((e=>{n.classList.add(e)}))}return t.onClick&&"function"==typeof t.onClick&&n.addEventListener("click",(e=>{t.onClick&&(e.preventDefault(),t.onClick(e,this))})),v.run("actions",(r=>r(n,t,this,e))),n},m=()=>{let e=this.options,t=!1,n=document.createElement("span");if(n.classList.add("actions-wrapper"),Array.isArray(e.action))e.action.forEach((e=>{let r=f(e);r&&(n.appendChild(r),t=!0)}));else if("object"==typeof e.action){let r=f(e.action);r&&(n.appendChild(r),t=!0)}t&&this.toast.appendChild(n)},g=()=>{let e,t=this.options.duration;null!==t&&(e=setInterval((()=>{null===this.toast.parentNode&&window.clearInterval(e),this.toast.classList.contains("panning")||(t-=20),t<=0&&(c(this.toast,(()=>{"function"==typeof this.options.onComplete&&this.options.onComplete(),this.destroy()})),window.clearInterval(e))}),20))};return this.text=e=>(n(e),this),this.delete=(e=300)=>(setTimeout((()=>{c(this.toast,(()=>{this.destroy()}))}),e),!0),this.destroy=()=>{e.toasts=e.toasts.filter((e=>e.id!==this.id)),this.toast.parentNode&&this.toast.parentNode.removeChild(this.toast)},this.goAway=e=>this.delete(e),this.el=this.toast,this},g=n(14670);n(8091).polyfill();const v={hook:{options:[],actions:[]},run:function(e,t){Array.isArray(this.hook[e])?this.hook[e].forEach((e=>{(e||"function"==typeof e)&&t&&t(e)})):console.warn("[toasted] : hook not found")},utils:{warn:e=>{console.warn(`[toasted] : ${e}`)}}},y=function(e){e||(e={}),this.id=g.generate(),this.options=e,this.global={},this.groups=[],this.toasts=[],this.group=e=>{e||(e={}),e.globalToasts||(e.globalToasts={}),Object.assign(e.globalToasts,this.global);let t=new y(e);return this.groups.push(t),t};let t=(e,t)=>{let n=Object.assign({},this.options);return Object.assign(n,t),new m(this).create(e,n)},n=()=>{let e=this.options.globalToasts,n=(e,n)=>"string"==typeof n&&this[n]?this[n].apply(this,[e,{}]):t(e,n);e&&(this.global={},Object.keys(e).forEach((t=>{this.global[t]=(r={})=>e[t].apply(null,[r,n])})))};return this.register=(e,t,r)=>{r=r||{},!this.options.globalToasts&&(this.options.globalToasts={}),this.options.globalToasts[e]=function(e,n){return"function"==typeof t&&(t=t(e)),n(t,r)},n()},this.show=(e,n)=>t(e,n),this.success=(e,n)=>((n=n||{}).type="success",t(e,n)),this.info=(e,n)=>((n=n||{}).type="info",t(e,n)),this.error=(e,n)=>((n=n||{}).type="error",t(e,n)),this.clear=()=>{let e=this.toasts,t=e.slice(-1)[0];t&&t.options.position.includes("top")&&(e=e.reverse()),f(e),this.toasts=[]},n(),this};var b,x;e=n.hmd(e),y.extend=v.hook,y.utils=v.utils,b=window,x=function(){return y},"function"==typeof define&&n.amdO?define([],(function(){return b.Toasted=x()})):e.exports?e.exports=b.Toasted=x():b.Toasted=x();const w=y},36250:function(e,t,n){var r,i;(function(){}).call(this),function(){null==window.Set&&(window.Set=function(){function e(){this.clear()}return e.prototype.clear=function(){return this.values=[]},e.prototype.has=function(e){return-1!==this.values.indexOf(e)},e.prototype.add=function(e){return this.has(e)||this.values.push(e),this},e.prototype.delete=function(e){var t;return-1!==(t=this.values.indexOf(e))&&(this.values.splice(t,1),!0)},e.prototype.forEach=function(){var e;return(e=this.values).forEach.apply(e,arguments)},e}())}.call(this),function(t){function n(){}function r(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function i(e,t){for(;3===e._state;)e=e._value;return 0===e._state?void e._deferreds.push(t):(e._handled=!0,void p((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void a(t.promise,e)}o(t.promise,r)}else(1===e._state?o:a)(t.promise,e._value)})))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void c(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,s(e)}catch(t){a(e,t)}}function a(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&setTimeout((function(){e._handled||d(e._value)}),1);for(var t=0,n=e._deferreds.length;n>t;t++)i(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function c(e,t){var n=!1;try{e((function(e){n||(n=!0,o(t,e))}),(function(e){n||(n=!0,a(t,e))}))}catch(e){if(n)return;n=!0,a(t,e)}}var u=setTimeout,p="function"==typeof setImmediate&&setImmediate||function(e){u(e,1)},d=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var o=new r(n);return i(this,new l(e,t,o)),o},r.all=function(e){var t=Array.prototype.slice.call(e);return new r((function(e,n){function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){r(o,e)}),n)}t[o]=a,0==--i&&e(t)}catch(e){n(e)}}if(0===t.length)return e([]);for(var i=t.length,o=0;o<t.length;o++)r(o,t[o])}))},r.resolve=function(e){return e&&"object"==typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var r=0,i=e.length;i>r;r++)e[r].then(t,n)}))},r._setImmediateFn=function(e){p=e},r._setUnhandledRejectionFn=function(e){d=e},e.exports?e.exports=r:t.Promise||(t.Promise=r)}(this),function(){var e="object"==typeof window.customElements,t="function"==typeof document.registerElement;e||t||("undefined"==typeof WeakMap&&function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+t+++"__"};n.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!(!t||t[0]!==e)&&(t[0]=t[1]=void 0,!0)},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=n}(),function(e){function t(e){v.push(e),g||(g=!0,u(n))}function n(){g=!1;var e=v;v=[],e.sort((function(e,t){return e.uid_-t.uid_}));var t=!1;e.forEach((function(e){var n=e.takeRecords();(function(e){e.nodes_.forEach((function(t){var n=p.get(t);n&&n.forEach((function(t){t.observer===e&&t.removeTransientObservers()}))}))})(e),n.length&&(e.callback_(n,e),t=!0)})),t&&n()}function r(e,t){for(var n=e;n;n=n.parentNode){var r=p.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i],a=o.options;if(n===e||a.subtree){var s=t(a);s&&o.enqueue(s)}}}}function i(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++y}function o(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function a(e,t){return h=new o(e,t)}function s(e){return m||(m=function(e){var t=new o(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}(h),m.oldValue=e,m)}function l(e,t){return e===t?e:m&&function(e){return e===m||e===h}(e)?m:null}function c(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}if(!e.JsMutationObserver){var u,p=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))u=setTimeout;else if(window.setImmediate)u=window.setImmediate;else{var d=[],f=String(Math.random());window.addEventListener("message",(function(e){if(e.data===f){var t=d;d=[],t.forEach((function(e){e()}))}})),u=function(e){d.push(e),window.postMessage(f,"*")}}var h,m,g=!1,v=[],y=0;i.prototype={observe:function(e,t){if(e=function(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var n=p.get(e);n||p.set(e,n=[]);for(var r,i=0;i<n.length;i++)if(n[i].observer===this){(r=n[i]).removeListeners(),r.options=t;break}r||(r=new c(this,e,t),n.push(r),this.nodes_.push(e)),r.addListeners()},disconnect:function(){this.nodes_.forEach((function(e){for(var t=p.get(e),n=0;n<t.length;n++){var r=t[n];if(r.observer===this){r.removeListeners(),t.splice(n,1);break}}}),this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},c.prototype={enqueue:function(e){var n=this.observer.records_,r=n.length;if(n.length>0){var i=l(n[r-1],e);if(i)return void(n[r-1]=i)}else t(this.observer);n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=p.get(e);t||p.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach((function(e){this.removeListeners_(e);for(var t=p.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}}),this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,i=e.target;(l=new a("attributes",i)).attributeName=t,l.attributeNamespace=n;var o=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;r(i,(function(e){return!e.attributes||e.attributeFilter&&e.attributeFilter.length&&-1===e.attributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?void 0:e.attributeOldValue?s(o):l}));break;case"DOMCharacterDataModified":var l=a("characterData",i=e.target);o=e.prevValue;r(i,(function(e){return e.characterData?e.characterDataOldValue?s(o):l:void 0}));break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var c,u,p=e.target;"DOMNodeInserted"===e.type?(c=[p],u=[]):(c=[],u=[p]);var d=p.previousSibling,f=p.nextSibling;(l=a("childList",e.target.parentNode)).addedNodes=c,l.removedNodes=u,l.previousSibling=d,l.nextSibling=f,r(e.relatedNode,(function(e){return e.childList?l:void 0}))}h=m=void 0}},e.JsMutationObserver=i,e.MutationObserver||(e.MutationObserver=i,i._isPolyfilled=!0)}}(self),function(){"use strict";if(!window.performance||!window.performance.now){var e=Date.now();window.performance={now:function(){return Date.now()-e}}}window.requestAnimationFrame||(window.requestAnimationFrame=function(){var e=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return e?function(t){return e((function(){t(performance.now())}))}:function(e){return window.setTimeout(e,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAnimationFrame=window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)});var t=function(){var e=document.createEvent("Event");return e.initEvent("foo",!0,!0),e.preventDefault(),e.defaultPrevented}();if(!t){var n=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(n.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var r=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||r&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||r&&"function"!=typeof window.Event){var i=window.Event;window.Event=function(e,t){t=t||{};var n=document.createEvent("Event");return n.initEvent(e,Boolean(t.bubbles),Boolean(t.cancelable)),n},window.Event.prototype=i.prototype}}(window.WebComponents),window.CustomElements=window.CustomElements||{flags:{}},function(e){var t=e.flags,n=[];e.addModule=function(e){n.push(e)},e.initializeModules=function(){n.forEach((function(t){t(e)}))},e.hasNative=Boolean(document.registerElement),e.isIE=/Trident/.test(navigator.userAgent),e.useNative=!t.register&&e.hasNative&&!window.ShadowDOMPolyfill&&(!window.HTMLImports||window.HTMLImports.useNative)}(window.CustomElements),window.CustomElements.addModule((function(e){function t(e,t){n(e,(function(e){return!!t(e)||void r(e,t)})),r(e,t)}function n(e,t,r){var i=e.firstElementChild;if(!i)for(i=e.firstChild;i&&i.nodeType!==Node.ELEMENT_NODE;)i=i.nextSibling;for(;i;)!0!==t(i,r)&&n(i,t,r),i=i.nextElementSibling;return null}function r(e,n){for(var r=e.shadowRoot;r;)t(r,n),r=r.olderShadowRoot}function i(e,t,n){if(e=window.wrap(e),!(n.indexOf(e)>=0)){n.push(e);for(var r,a=e.querySelectorAll("link[rel="+o+"]"),s=0,l=a.length;l>s&&(r=a[s]);s++)r.import&&i(r.import,t,n);t(e)}}var o=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";e.forDocumentTree=function(e,t){i(e,t,[])},e.forSubtree=t})),window.CustomElements.addModule((function(e){function t(e,t){return n(e,t)||r(e,t)}function n(t,n){return!!e.upgrade(t,n)||void(n&&a(t))}function r(e,t){h(e,(function(e){return!!n(e,t)||void 0}))}function i(e){y.push(e),v||(v=!0,setTimeout(o))}function o(){v=!1;for(var e,t=y,n=0,r=t.length;r>n&&(e=t[n]);n++)e();y=[]}function a(e){g?i((function(){s(e)})):s(e)}function s(e){e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback&&e.attachedCallback())}function l(e){g?i((function(){c(e)})):c(e)}function c(e){e.__upgraded__&&e.__attached&&(e.__attached=!1,e.detachedCallback&&e.detachedCallback())}function u(e,n){if(f.dom){var r=n[0];if(r&&"childList"===r.type&&r.addedNodes&&r.addedNodes){for(var i=r.addedNodes[0];i&&i!==document&&!i.host;)i=i.parentNode;var o=i&&(i.URL||i._URL||i.host&&i.host.localName)||"";o=o.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",n.length,o||"")}var a=function(e){for(var t=e,n=window.wrap(document);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}(e);n.forEach((function(e){"childList"===e.type&&(b(e.addedNodes,(function(e){e.localName&&t(e,a)})),b(e.removedNodes,(function(e){e.localName&&function(e){l(e),h(e,(function(e){l(e)}))}(e)})))})),f.dom&&console.groupEnd()}function p(e){if(!e.__observer){var t=new MutationObserver(u.bind(this,e));t.observe(e,{childList:!0,subtree:!0}),e.__observer=t}}function d(e){e=window.wrap(e),f.dom&&console.group("upgradeDocument: ",e.baseURI.split("/").pop()),t(e,e===window.wrap(document)),p(e),f.dom&&console.groupEnd()}var f=e.flags,h=e.forSubtree,m=e.forDocumentTree,g=window.MutationObserver._isPolyfilled&&f["throttle-attached"];e.hasPolyfillMutations=g,e.hasThrottledAttached=g;var v=!1,y=[],b=Array.prototype.forEach.call.bind(Array.prototype.forEach),x=Element.prototype.createShadowRoot;x&&(Element.prototype.createShadowRoot=function(){var e=x.call(this);return window.CustomElements.watchShadow(this),e}),e.watchShadow=function(e){if(e.shadowRoot&&!e.shadowRoot.__watched){f.dom&&console.log("watching shadow-root for: ",e.localName);for(var t=e.shadowRoot;t;)p(t),t=t.olderShadowRoot}},e.upgradeDocumentTree=function(e){m(e,d)},e.upgradeDocument=d,e.upgradeSubtree=r,e.upgradeAll=t,e.attached=a,e.takeRecords=function(e){for((e=window.wrap(e))||(e=window.wrap(document));e.parentNode;)e=e.parentNode;var t=e.__observer;t&&(u(e,t.takeRecords()),o())}})),window.CustomElements.addModule((function(e){function t(t,i,o){return r.upgrade&&console.group("upgrade:",t.localName),i.is&&t.setAttribute("is",i.is),n(t,i),t.__upgraded__=!0,function(e){e.createdCallback&&e.createdCallback()}(t),o&&e.attached(t),e.upgradeSubtree(t,o),r.upgrade&&console.groupEnd(),t}function n(e,t){Object.__proto__||function(e,t,n){for(var r={},i=t;i!==n&&i!==HTMLElement.prototype;){for(var o,a=Object.getOwnPropertyNames(i),s=0;o=a[s];s++)r[o]||(Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o)),r[o]=1);i=Object.getPrototypeOf(i)}}(e,t.prototype,t.native),e.__proto__=t.prototype}var r=e.flags;e.upgrade=function(n,r){if("template"===n.localName&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(n),!n.__upgraded__&&n.nodeType===Node.ELEMENT_NODE){var i=n.getAttribute("is"),o=e.getRegisteredDefinition(n.localName)||e.getRegisteredDefinition(i);if(o&&(i&&o.tag==n.localName||!i&&!o.extends))return t(n,o,r)}},e.upgradeWithDefinition=t,e.implementPrototype=n})),window.CustomElements.addModule((function(e){function t(e){if(!e.setAttribute._polyfilled){var t=e.setAttribute;e.setAttribute=function(e,r){n.call(this,e,r,t)};var r=e.removeAttribute;e.removeAttribute=function(e){n.call(this,e,null,r)},e.setAttribute._polyfilled=!0}}function n(e,t,n){e=e.toLowerCase();var r=this.getAttribute(e);n.apply(this,arguments);var i=this.getAttribute(e);this.attributeChangedCallback&&i!==r&&this.attributeChangedCallback(e,r,i)}function r(e){var t=i(e);return t?r(t.extends).concat([t]):[]}function i(e){return e?m[e.toLowerCase()]:void 0}function o(e){return function(){return function(e){return p(v(e.tag),e)}(e)}}function a(e,t){e&&(e=e.toLowerCase()),t&&(t=t.toLowerCase());var n,r=i(t||e);if(r){if(e==r.tag&&t==r.is)return new r.ctor;if(!t&&!r.is)return new r.ctor}return t?((n=a(e)).setAttribute("is",t),n):(n=v(e),e.indexOf("-")>=0&&d(n,HTMLElement),n)}function s(e,t){var n=e[t];e[t]=function(){var e=n.apply(this,arguments);return u(e),e}}var l,c=(e.isIE,e.upgradeDocumentTree),u=e.upgradeAll,p=e.upgradeWithDefinition,d=e.implementPrototype,f=e.useNative,h=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],m={},g="http://www.w3.org/1999/xhtml",v=document.createElement.bind(document),y=document.createElementNS.bind(document);l=Object.__proto__||f?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;for(var n=e;n;){if(n===t.prototype)return!0;n=n.__proto__}return!1},s(Node.prototype,"cloneNode"),s(document,"importNode"),document.registerElement=function(n,a){var s=a||{};if(!n)throw new Error("document.registerElement: first argument `name` must not be empty");if(n.indexOf("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(n)+"'.");if(function(e){for(var t=0;t<h.length;t++)if(e===h[t])return!0}(n))throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed for type '"+String(n)+"'. The type name is invalid.");if(i(n))throw new Error("DuplicateDefinitionError: a type with name '"+String(n)+"' is already registered");return s.prototype||(s.prototype=Object.create(HTMLElement.prototype)),s.__name=n.toLowerCase(),s.extends&&(s.extends=s.extends.toLowerCase()),s.lifecycle=s.lifecycle||{},s.ancestry=r(s.extends),function(e){for(var t,n=e.extends,r=0;t=e.ancestry[r];r++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}(s),function(e){if(!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var n=document.createElement(e.tag);t=Object.getPrototypeOf(n)}for(var r,i=e.prototype,o=!1;i;)i==t&&(o=!0),(r=Object.getPrototypeOf(i))&&(i.__proto__=r),i=r;o||console.warn(e.tag+" prototype not found in prototype chain for "+e.is),e.native=t}}(s),t(s.prototype),function(e,t){m[e]=t}(s.__name,s),s.ctor=o(s),s.ctor.prototype=s.prototype,s.prototype.constructor=s.ctor,e.ready&&c(document),s.ctor},document.createElement=a,document.createElementNS=function(e,t,n){return e===g?a(t,n):y(e,t)},e.registry=m,e.instanceof=l,e.reservedTagList=h,e.getRegisteredDefinition=i,document.register=document.registerElement})),function(e){function t(){o(window.wrap(document)),window.CustomElements.ready=!0,(window.requestAnimationFrame||function(e){setTimeout(e,16)})((function(){setTimeout((function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}))}))}var n=e.useNative,r=e.initializeModules;if(e.isIE,n){var i=function(){};e.watchShadow=i,e.upgrade=i,e.upgradeAll=i,e.upgradeDocumentTree=i,e.upgradeSubtree=i,e.takeRecords=i,e.instanceof=function(e,t){return e instanceof t}}else r();var o=e.upgradeDocumentTree,a=e.upgradeDocument;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=window.ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}),window.HTMLImports&&(window.HTMLImports.__importsParsingHook=function(e){e.import&&a(wrap(e.import))}),"complete"===document.readyState||e.flags.eager)t();else if("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var s=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(s,t)}else t()}(window.CustomElements))}.call(this),function(){}.call(this),function(){(function(){(function(){this.Trix={VERSION:"1.3.1",ZERO_WIDTH_SPACE:"\ufeff",NON_BREAKING_SPACE:" ",OBJECT_REPLACEMENT_CHARACTER:"",browser:{composesExistingText:/Android.*Chrome/.test(navigator.userAgent),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:function(){var e,t,n;if("undefined"==typeof InputEvent)return!1;for(e=0,t=(n=["data","getTargetRanges","inputType"]).length;t>e;e++)if(!(n[e]in InputEvent.prototype))return!1;return!0}()},config:{}}}).call(this)}).call(this);var o=this.Trix;(function(){(function(){o.BasicObject=function(){function e(){}var t,n,r;return e.proxyMethod=function(e){var r,i,o,a,s;return o=n(e),r=o.name,a=o.toMethod,s=o.toProperty,i=o.optional,this.prototype[r]=function(){var e,n;return e=null!=a?i?"function"==typeof this[a]?this[a]():void 0:this[a]():null!=s?this[s]:void 0,i?null!=(n=null!=e?e[r]:void 0)?t.call(n,e,arguments):void 0:(n=e[r],t.call(n,e,arguments))}},n=function(e){var t,n;if(!(n=e.match(r)))throw new Error("can't parse @proxyMethod expression: "+e);return t={name:n[4]},null!=n[2]?t.toMethod=n[1]:t.toProperty=n[1],null!=n[3]&&(t.optional=!0),t},t=Function.prototype.apply,r=/^(.+?)(\(\))?(\?)?\.(.+?)$/,e}()}).call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.Object=function(t){function n(){this.id=++r}var r;return e(n,t),r=0,n.fromJSONString=function(e){return this.fromJSON(JSON.parse(e))},n.prototype.hasSameConstructorAs=function(e){return this.constructor===(null!=e?e.constructor:void 0)},n.prototype.isEqualTo=function(e){return this===e},n.prototype.inspect=function(){var e,t,n;return e=function(){var e,r,i;for(t in i=[],r=null!=(e=this.contentsForInspection())?e:{})n=r[t],i.push(t+"="+n);return i}.call(this),"#<"+this.constructor.name+":"+this.id+(e.length?" "+e.join(", "):"")+">"},n.prototype.contentsForInspection=function(){},n.prototype.toJSONString=function(){return JSON.stringify(this)},n.prototype.toUTF16String=function(){return o.UTF16String.box(this)},n.prototype.getCacheKey=function(){return this.id.toString()},n}(o.BasicObject)}.call(this),function(){o.extend=function(e){var t,n;for(t in e)n=e[t],this[t]=n;return this}}.call(this),function(){o.extend({defer:function(e){return setTimeout(e,1)}})}.call(this),function(){var e,t;o.extend({normalizeSpaces:function(e){return e.replace(RegExp(""+o.ZERO_WIDTH_SPACE,"g"),"").replace(RegExp(""+o.NON_BREAKING_SPACE,"g")," ")},normalizeNewlines:function(e){return e.replace(/\r\n/g,"\n")},breakableWhitespacePattern:RegExp("[^\\S"+o.NON_BREAKING_SPACE+"]"),squishBreakableWhitespace:function(e){return e.replace(RegExp(""+o.breakableWhitespacePattern.source,"g")," ").replace(/\ {2,}/g," ")},summarizeStringChange:function(e,n){var r,i,a,s;return e=o.UTF16String.box(e),(n=o.UTF16String.box(n)).length<e.length?(s=(i=t(e,n))[0],r=i[1]):(r=(a=t(n,e))[0],s=a[1]),{added:r,removed:s}}}),t=function(t,n){var r,i,a,s,l;return t.isEqualTo(n)?["",""]:(a=(s=(i=e(t,n)).utf16String.length)?(l=i.offset,r=t.codepoints.slice(0,l).concat(t.codepoints.slice(l+s)),e(n,o.UTF16String.fromCodepoints(r))):e(n,t),[i.utf16String.toString(),a.utf16String.toString()])},e=function(e,t){var n,r,i;for(n=0,r=e.length,i=t.length;r>n&&e.charAt(n).isEqualTo(t.charAt(n));)n++;for(;r>n+1&&e.charAt(r-1).isEqualTo(t.charAt(i-1));)r--,i--;return{utf16String:e.slice(n,r),offset:n}}}.call(this),function(){o.extend({copyObject:function(e){var t,n,r;for(t in null==e&&(e={}),n={},e)r=e[t],n[t]=r;return n},objectsAreEqual:function(e,t){var n;if(null==e&&(e={}),null==t&&(t={}),Object.keys(e).length!==Object.keys(t).length)return!1;for(n in e)if(e[n]!==t[n])return!1;return!0}})}.call(this),function(){var e=[].slice;o.extend({arraysAreEqual:function(e,t){var n,r,i;if(null==e&&(e=[]),null==t&&(t=[]),e.length!==t.length)return!1;for(r=n=0,i=e.length;i>n;r=++n)if(e[r]!==t[r])return!1;return!0},arrayStartsWith:function(e,t){return null==e&&(e=[]),null==t&&(t=[]),o.arraysAreEqual(e.slice(0,t.length),t)},spliceArray:function(){var t,n,r;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],(r=n.slice(0)).splice.apply(r,t),r},summarizeArrayChange:function(e,t){var n,r,i,o,a,s,l,c,u,p,d;for(null==e&&(e=[]),null==t&&(t=[]),n=[],p=[],i=new Set,o=0,l=e.length;l>o;o++)d=e[o],i.add(d);for(r=new Set,a=0,c=t.length;c>a;a++)d=t[a],r.add(d),i.has(d)||n.push(d);for(s=0,u=e.length;u>s;s++)d=e[s],r.has(d)||p.push(d);return{added:n,removed:p}}})}.call(this),function(){var e,t,n,r;e=null,t=null,r=null,n=null,o.extend({getAllAttributeNames:function(){return null!=e?e:e=o.getTextAttributeNames().concat(o.getBlockAttributeNames())},getBlockConfig:function(e){return o.config.blockAttributes[e]},getBlockAttributeNames:function(){return null!=t?t:t=Object.keys(o.config.blockAttributes)},getTextConfig:function(e){return o.config.textAttributes[e]},getTextAttributeNames:function(){return null!=r?r:r=Object.keys(o.config.textAttributes)},getListAttributeNames:function(){var e,t;return null!=n?n:n=function(){var n,r;for(e in r=[],n=o.config.blockAttributes)null!=(t=n[e].listAttribute)&&r.push(t);return r}()}})}.call(this),function(){var e,t,n,r,i,a=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=document.documentElement,t=null!=(n=null!=(r=null!=(i=e.matchesSelector)?i:e.webkitMatchesSelector)?r:e.msMatchesSelector)?n:e.mozMatchesSelector,o.extend({handleEvent:function(t,n){var r,i,a,s,l,c,u,p,d,f,h;return l=(u=null!=n?n:{}).onElement,s=u.matchingSelector,h=u.withCallback,a=u.inPhase,c=u.preventDefault,d=u.times,r=null!=l?l:e,p=s,h,f="capturing"===a,i=function(e){var t;return null!=d&&0==--d&&i.destroy(),null!=(t=o.findClosestElementFromNode(e.target,{matchingSelector:p}))&&(null!=h&&h.call(t,e,t),c)?e.preventDefault():void 0},i.destroy=function(){return r.removeEventListener(t,i,f)},r.addEventListener(t,i,f),i},handleEventOnce:function(e,t){return null==t&&(t={}),t.times=1,o.handleEvent(e,t)},triggerEvent:function(t,n){var r,i,a,s,l,c,u;return c=(u=null!=n?n:{}).onElement,i=u.bubbles,a=u.cancelable,r=u.attributes,s=null!=c?c:e,i=!1!==i,a=!1!==a,(l=document.createEvent("Events")).initEvent(t,i,a),null!=r&&o.extend.call(l,r),s.dispatchEvent(l)},elementMatchesSelector:function(e,n){return 1===(null!=e?e.nodeType:void 0)?t.call(e,n):void 0},findClosestElementFromNode:function(e,t){var n,r,i;for(n=(r=null!=t?t:{}).matchingSelector,i=r.untilNode;null!=e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.parentNode;if(null!=e){if(null==n)return e;if(e.closest&&null==i)return e.closest(n);for(;e&&e!==i;){if(o.elementMatchesSelector(e,n))return e;e=e.parentNode}}},findInnerElement:function(e){for(;null!=e?e.firstElementChild:void 0;)e=e.firstElementChild;return e},innerElementIsActive:function(e){return document.activeElement!==e&&o.elementContainsNode(e,document.activeElement)},elementContainsNode:function(e,t){if(e&&t)for(;t;){if(t===e)return!0;t=t.parentNode}},findNodeFromContainerAndOffset:function(e,t){var n;if(e)return e.nodeType===Node.TEXT_NODE?e:0===t?null!=(n=e.firstChild)?n:e:e.childNodes.item(t-1)},findElementFromContainerAndOffset:function(e,t){var n;return n=o.findNodeFromContainerAndOffset(e,t),o.findClosestElementFromNode(n)},findChildIndexOfNode:function(e){var t;if(null!=e?e.parentNode:void 0){for(t=0;e=e.previousSibling;)t++;return t}},removeNode:function(e){var t;return null!=e&&null!=(t=e.parentNode)?t.removeChild(e):void 0},walkTree:function(e,t){var n,r,i,o,a;return r=(i=null!=t?t:{}).onlyNodesOfType,o=i.usingFilter,n=i.expandEntityReferences,a=function(){switch(r){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}}(),document.createTreeWalker(e,a,null!=o?o:null,!0===n)},tagName:function(e){var t;return null!=e&&null!=(t=e.tagName)?t.toLowerCase():void 0},makeElement:function(e,t){var n,r,i,o,a,s,l,c,u,p,d,f,h,m;if(null==t&&(t={}),"object"==typeof e?e=(t=e).tagName:t={attributes:t},i=document.createElement(e),null!=t.editable&&(null==t.attributes&&(t.attributes={}),t.attributes.contenteditable=t.editable),t.attributes)for(s in u=t.attributes)m=u[s],i.setAttribute(s,m);if(t.style)for(s in p=t.style)m=p[s],i.style[s]=m;if(t.data)for(s in d=t.data)m=d[s],i.dataset[s]=m;if(t.className)for(o=0,l=(f=t.className.split(" ")).length;l>o;o++)r=f[o],i.classList.add(r);if(t.textContent&&(i.textContent=t.textContent),t.childNodes)for(a=0,c=(h=[].concat(t.childNodes)).length;c>a;a++)n=h[a],i.appendChild(n);return i},getBlockTagNames:function(){var e,t;return null!=o.blockTagNames?o.blockTagNames:o.blockTagNames=function(){var n,r;for(e in r=[],n=o.config.blockAttributes)(t=n[e].tagName)&&r.push(t);return r}()},nodeIsBlockContainer:function(e){return o.nodeIsBlockStartComment(null!=e?e.firstChild:void 0)},nodeProbablyIsBlockContainer:function(e){var t,n;return t=o.tagName(e),a.call(o.getBlockTagNames(),t)>=0&&(n=o.tagName(e.firstChild),a.call(o.getBlockTagNames(),n)<0)},nodeIsBlockStart:function(e,t){return(null!=t?t:{strict:!0}).strict?o.nodeIsBlockStartComment(e):o.nodeIsBlockStartComment(e)||!o.nodeIsBlockStartComment(e.firstChild)&&o.nodeProbablyIsBlockContainer(e)},nodeIsBlockStartComment:function(e){return o.nodeIsCommentNode(e)&&"block"===(null!=e?e.data:void 0)},nodeIsCommentNode:function(e){return(null!=e?e.nodeType:void 0)===Node.COMMENT_NODE},nodeIsCursorTarget:function(e,t){var n;return n=(null!=t?t:{}).name,e?o.nodeIsTextNode(e)?e.data===o.ZERO_WIDTH_SPACE?!n||e.parentNode.dataset.trixCursorTarget===n:void 0:o.nodeIsCursorTarget(e.firstChild):void 0},nodeIsAttachmentElement:function(e){return o.elementMatchesSelector(e,o.AttachmentView.attachmentSelector)},nodeIsEmptyTextNode:function(e){return o.nodeIsTextNode(e)&&""===(null!=e?e.data:void 0)},nodeIsTextNode:function(e){return(null!=e?e.nodeType:void 0)===Node.TEXT_NODE}})}.call(this),function(){var e,t,n,r,i;e=o.copyObject,r=o.objectsAreEqual,o.extend({normalizeRange:n=function(e){var n;if(null!=e)return Array.isArray(e)||(e=[e,e]),[t(e[0]),t(null!=(n=e[1])?n:e[0])]},rangeIsCollapsed:function(e){var t,r,o;if(null!=e)return o=(r=n(e))[0],t=r[1],i(o,t)},rangesAreEqual:function(e,t){var r,o,a,s,l,c;if(null!=e&&null!=t)return o=(a=n(e))[0],r=a[1],c=(s=n(t))[0],l=s[1],i(o,c)&&i(r,l)}}),t=function(t){return"number"==typeof t?t:e(t)},i=function(e,t){return"number"==typeof e?e===t:r(e,t)}}.call(this),function(){var e,t,n,r,i,a,s;o.registerElement=function(e,t){var n,o;return null==t&&(t={}),e=e.toLowerCase(),t=s(t),(n=(o=a(t)).defaultCSS)&&(delete o.defaultCSS,r(n,e)),i(e,o)},r=function(e,t){return n(t).textContent=e.replace(/%t/g,t)},n=function(t){var n,r;return(n=document.createElement("style")).setAttribute("type","text/css"),n.setAttribute("data-tag-name",t.toLowerCase()),(r=e())&&n.setAttribute("nonce",r),document.head.insertBefore(n,document.head.firstChild),n},e=function(){var e;return(e=t("trix-csp-nonce")||t("csp-nonce"))?e.getAttribute("content"):void 0},t=function(e){return document.head.querySelector("meta[name="+e+"]")},a=function(e){var t,n,r;for(t in n={},e)r=e[t],n[t]="function"==typeof r?{value:r}:r;return n},s=function(){var e;return e=function(e){var t,n,r,i,o;for(t={},n=0,i=(o=["initialize","connect","disconnect"]).length;i>n;n++)t[r=o[n]]=e[r],delete e[r];return t},window.customElements?function(t){var n,r,i,o,a;return a=e(t),i=a.initialize,n=a.connect,r=a.disconnect,i&&(o=n,n=function(){return this.initialized||(this.initialized=!0,i.call(this)),null!=o?o.call(this):void 0}),n&&(t.connectedCallback=n),r&&(t.disconnectedCallback=r),t}:function(t){var n,r,i,o;return i=(o=e(t)).initialize,n=o.connect,r=o.disconnect,i&&(t.createdCallback=i),n&&(t.attachedCallback=n),r&&(t.detachedCallback=r),t}}(),i=window.customElements?function(e,t){var n;return n=function(){return"object"==typeof Reflect?Reflect.construct(HTMLElement,[],n):HTMLElement.apply(this)},Object.setPrototypeOf(n.prototype,HTMLElement.prototype),Object.setPrototypeOf(n,HTMLElement),Object.defineProperties(n.prototype,t),window.customElements.define(e,n),n}:function(e,t){var n,r;return r=Object.create(HTMLElement.prototype,t),n=document.registerElement(e,{prototype:r}),Object.defineProperty(r,"constructor",{value:n}),n}}.call(this),function(){var e,t;o.extend({getDOMSelection:function(){var e;return(e=window.getSelection()).rangeCount>0?e:void 0},getDOMRange:function(){var t,n;return(t=null!=(n=o.getDOMSelection())?n.getRangeAt(0):void 0)&&!e(t)?t:void 0},setDOMRange:function(e){var t;return(t=window.getSelection()).removeAllRanges(),t.addRange(e),o.selectionChangeObserver.update()}}),e=function(e){return t(e.startContainer)||t(e.endContainer)},t=function(e){return!Object.getPrototypeOf(e)}}.call(this),function(){var e;e={"application/x-trix-feature-detection":"test"},o.extend({dataTransferIsPlainText:function(e){var t,n,r;return r=e.getData("text/plain"),n=e.getData("text/html"),r&&n?(t=(new DOMParser).parseFromString(n,"text/html").body).textContent===r?!t.querySelector("*"):void 0:null!=r?r.length:void 0},dataTransferIsWritable:function(t){var n,r;if(null!=(null!=t?t.setData:void 0)){for(n in e)if(r=e[n],!function(){try{return t.setData(n,r),t.getData(n)===r}catch(e){}}())return;return!0}},keyEventIsKeyboardCommand:/Mac|^iP/.test(navigator.platform)?function(e){return e.metaKey}:function(e){return e.ctrlKey}})}.call(this),function(){o.extend({RTL_PATTERN:/[\u05BE\u05C0\u05C3\u05D0-\u05EA\u05F0-\u05F4\u061B\u061F\u0621-\u063A\u0640-\u064A\u066D\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D5\u06E5\u06E6\u200F\u202B\u202E\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE72\uFE74\uFE76-\uFEFC]/,getDirection:function(){var e,t,n,r;return t=o.makeElement("input",{dir:"auto",name:"x",dirName:"x.dir"}),(e=o.makeElement("form")).appendChild(t),n=function(){try{return new FormData(e).has(t.dirName)}catch(e){}}(),r=function(){try{return t.matches(":dir(ltr),:dir(rtl)")}catch(e){}}(),n?function(n){return t.value=n,new FormData(e).get(t.dirName)}:r?function(e){return t.value=e,t.matches(":dir(rtl)")?"rtl":"ltr"}:function(e){var t;return t=e.trim().charAt(0),o.RTL_PATTERN.test(t)?"rtl":"ltr"}}()})}.call(this),function(){}.call(this),function(){var e,t=function(e,t){function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n={}.hasOwnProperty;e=o.arraysAreEqual,o.Hash=function(n){function r(e){null==e&&(e={}),this.values=a(e),r.__super__.constructor.apply(this,arguments)}var i,a,s,l,c;return t(r,n),r.fromCommonAttributesOfObjects=function(e){var t,n,r,o,a,s;if(null==e&&(e=[]),!e.length)return new this;for(r=(t=i(e[0])).getKeys(),n=0,o=(s=e.slice(1)).length;o>n;n++)a=s[n],r=t.getKeysCommonToHash(i(a)),t=t.slice(r);return t},r.box=function(e){return i(e)},r.prototype.add=function(e,t){return this.merge(l(e,t))},r.prototype.remove=function(e){return new o.Hash(a(this.values,e))},r.prototype.get=function(e){return this.values[e]},r.prototype.has=function(e){return e in this.values},r.prototype.merge=function(e){return new o.Hash(s(this.values,c(e)))},r.prototype.slice=function(e){var t,n,r,i;for(i={},t=0,r=e.length;r>t;t++)n=e[t],this.has(n)&&(i[n]=this.values[n]);return new o.Hash(i)},r.prototype.getKeys=function(){return Object.keys(this.values)},r.prototype.getKeysCommonToHash=function(e){var t,n,r,o,a;for(e=i(e),a=[],t=0,r=(o=this.getKeys()).length;r>t;t++)n=o[t],this.values[n]===e.values[n]&&a.push(n);return a},r.prototype.isEqualTo=function(t){return e(this.toArray(),i(t).toArray())},r.prototype.isEmpty=function(){return 0===this.getKeys().length},r.prototype.toArray=function(){var e,t,n;return(null!=this.array?this.array:this.array=function(){var r;for(e in t=[],r=this.values)n=r[e],t.push(e,n);return t}.call(this)).slice(0)},r.prototype.toObject=function(){return a(this.values)},r.prototype.toJSON=function(){return this.toObject()},r.prototype.contentsForInspection=function(){return{values:JSON.stringify(this.values)}},l=function(e,t){var n;return(n={})[e]=t,n},s=function(e,t){var n,r,i;for(n in r=a(e),t)i=t[n],r[n]=i;return r},a=function(e,t){var n,r,i,o,a;for(o={},n=0,i=(a=Object.keys(e).sort()).length;i>n;n++)(r=a[n])!==t&&(o[r]=e[r]);return o},i=function(e){return e instanceof o.Hash?e:new o.Hash(e)},c=function(e){return e instanceof o.Hash?e.values:e},r}(o.Object)}.call(this),function(){o.ObjectGroup=function(){function e(e,t){var n,r;this.objects=null!=e?e:[],r=t.depth,(n=t.asTree)&&(this.depth=r,this.objects=this.constructor.groupObjects(this.objects,{asTree:n,depth:this.depth+1}))}return e.groupObjects=function(e,t){var n,r,i,o,a,s,l,c,u;for(null==e&&(e=[]),i=(u=null!=t?t:{}).depth,(n=u.asTree)&&null==i&&(i=0),c=[],a=0,s=e.length;s>a;a++){if(l=e[a],o){if(("function"==typeof l.canBeGrouped?l.canBeGrouped(i):void 0)&&("function"==typeof(r=o[o.length-1]).canBeGroupedWith?r.canBeGroupedWith(l,i):void 0)){o.push(l);continue}c.push(new this(o,{depth:i,asTree:n})),o=null}("function"==typeof l.canBeGrouped?l.canBeGrouped(i):void 0)?o=[l]:c.push(l)}return o&&c.push(new this(o,{depth:i,asTree:n})),c},e.prototype.getObjects=function(){return this.objects},e.prototype.getDepth=function(){return this.depth},e.prototype.getCacheKey=function(){var e,t,n,r,i;for(t=["objectGroup"],e=0,n=(i=this.getObjects()).length;n>e;e++)r=i[e],t.push(r.getCacheKey());return t.join("/")},e}()}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.ObjectMap=function(t){function n(e){var t,n,r,i,o;for(null==e&&(e=[]),this.objects={},r=0,i=e.length;i>r;r++)o=e[r],n=JSON.stringify(o),null==(t=this.objects)[n]&&(t[n]=o)}return e(n,t),n.prototype.find=function(e){var t;return t=JSON.stringify(e),this.objects[t]},n}(o.BasicObject)}.call(this),function(){o.ElementStore=function(){function e(e){this.reset(e)}var t;return e.prototype.add=function(e){var n;return n=t(e),this.elements[n]=e},e.prototype.remove=function(e){var n,r;return n=t(e),(r=this.elements[n])?(delete this.elements[n],r):void 0},e.prototype.reset=function(e){var t,n,r;for(null==e&&(e=[]),this.elements={},n=0,r=e.length;r>n;n++)t=e[n],this.add(t);return e},t=function(e){return e.dataset.trixStoreKey},e}()}.call(this),function(){}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.Operation=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.isPerforming=function(){return!0===this.performing},n.prototype.hasPerformed=function(){return!0===this.performed},n.prototype.hasSucceeded=function(){return this.performed&&this.succeeded},n.prototype.hasFailed=function(){return this.performed&&!this.succeeded},n.prototype.getPromise=function(){return null!=this.promise?this.promise:this.promise=new Promise(function(e){return function(t,n){return e.performing=!0,e.perform((function(r,i){return e.succeeded=r,e.performing=!1,e.performed=!0,e.succeeded?t(i):n(i)}))}}(this))},n.prototype.perform=function(e){return e(!1)},n.prototype.release=function(){var e;return null!=(e=this.promise)&&"function"==typeof e.cancel&&e.cancel(),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null},n.proxyMethod("getPromise().then"),n.proxyMethod("getPromise().catch"),n}(o.BasicObject)}.call(this),function(){var e,t,n,r,i,a={}.hasOwnProperty;o.UTF16String=function(e){function t(e,t){this.ucs2String=e,this.codepoints=t,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}return function(e,t){function n(){this.constructor=e}for(var r in t)a.call(t,r)&&(e[r]=t[r]);n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.box=function(e){return null==e&&(e=""),e instanceof this?e:this.fromUCS2String(null!=e?e.toString():void 0)},t.fromUCS2String=function(e){return new this(e,r(e))},t.fromCodepoints=function(e){return new this(i(e),e)},t.prototype.offsetToUCS2Offset=function(e){return i(this.codepoints.slice(0,Math.max(0,e))).length},t.prototype.offsetFromUCS2Offset=function(e){return r(this.ucs2String.slice(0,Math.max(0,e))).length},t.prototype.slice=function(){var e;return this.constructor.fromCodepoints((e=this.codepoints).slice.apply(e,arguments))},t.prototype.charAt=function(e){return this.slice(e,e+1)},t.prototype.isEqualTo=function(e){return this.constructor.box(e).ucs2String===this.ucs2String},t.prototype.toJSON=function(){return this.ucs2String},t.prototype.getCacheKey=function(){return this.ucs2String},t.prototype.toString=function(){return this.ucs2String},t}(o.BasicObject),e=1===("function"==typeof Array.from?Array.from("👼").length:void 0),t=null!=("function"==typeof" ".codePointAt?" ".codePointAt(0):void 0),n=" 👼"===("function"==typeof String.fromCodePoint?String.fromCodePoint(32,128124):void 0),r=e&&t?function(e){return Array.from(e).map((function(e){return e.codePointAt(0)}))}:function(e){var t,n,r,i,o;for(i=[],t=0,r=e.length;r>t;)(o=e.charCodeAt(t++))>=55296&&56319>=o&&r>t&&(56320==(64512&(n=e.charCodeAt(t++)))?o=((1023&o)<<10)+(1023&n)+65536:t--),i.push(o);return i},i=n?function(e){return String.fromCodePoint.apply(String,e)}:function(e){var t,n,r;return t=function(){var t,i,o;for(o=[],t=0,i=e.length;i>t;t++)r=e[t],n="",r>65535&&(r-=65536,n+=String.fromCharCode(r>>>10&1023|55296),r=56320|1023&r),o.push(n+String.fromCharCode(r));return o}(),t.join("")}}.call(this),function(){}.call(this),function(){}.call(this),function(){o.config.lang={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption…",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL…",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"}}.call(this),function(){o.config.css={attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"}}.call(this),function(){var e;o.config.blockAttributes=e={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test:function(t){return o.tagName(t.parentNode)===e[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test:function(t){return o.tagName(t.parentNode)===e[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}}}.call(this),function(){var e,t;e=o.config.lang,t=[e.bytes,e.KB,e.MB,e.GB,e.TB,e.PB],o.config.fileSize={prefix:"IEC",precision:2,formatter:function(n){var r,i;switch(n){case 0:return"0 "+e.bytes;case 1:return"1 "+e.byte;default:return r=function(){switch(this.prefix){case"SI":return 1e3;case"IEC":return 1024}}.call(this),i=Math.floor(Math.log(n)/Math.log(r)),(n/Math.pow(r,i)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"")+" "+t[i]}}}}.call(this),function(){o.config.textAttributes={bold:{tagName:"strong",inheritable:!0,parser:function(e){var t;return"bold"===(t=window.getComputedStyle(e)).fontWeight||t.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:function(e){return"italic"===window.getComputedStyle(e).fontStyle}},href:{groupTagName:"a",parser:function(e){var t,n;return n="a:not("+o.AttachmentView.attachmentSelector+")",(t=o.findClosestElementFromNode(e,{matchingSelector:n}))?t.getAttribute("href"):void 0}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}}}.call(this),function(){var e,t,n,r;r=["contenteditable","data-trix-id","data-trix-store-key","data-trix-mutable","data-trix-placeholder","tabindex"],n="["+(t="data-trix-serialized-attributes")+"]",e=new RegExp("\x3c!--block--\x3e","g"),o.extend({serializers:{"application/json":function(e){var t;if(e instanceof o.Document)t=e;else{if(!(e instanceof HTMLElement))throw new Error("unserializable object");t=o.Document.fromHTML(e.innerHTML)}return t.toSerializableDocument().toJSONString()},"text/html":function(i){var a,s,l,c,u,p,d,f,h,m,g,v,y,b,x,w,A;if(i instanceof o.Document)c=o.DocumentView.render(i);else{if(!(i instanceof HTMLElement))throw new Error("unserializable object");c=i.cloneNode(!0)}for(u=0,h=(b=c.querySelectorAll("[data-trix-serialize=false]")).length;h>u;u++)l=b[u],o.removeNode(l);for(p=0,m=r.length;m>p;p++)for(a=r[p],d=0,g=(x=c.querySelectorAll("["+a+"]")).length;g>d;d++)(l=x[d]).removeAttribute(a);for(f=0,v=(w=c.querySelectorAll(n)).length;v>f;f++){l=w[f];try{for(y in s=JSON.parse(l.getAttribute(t)),l.removeAttribute(t),s)A=s[y],l.setAttribute(y,A)}catch(e){}}return c.innerHTML.replace(e,"")}},deserializers:{"application/json":function(e){return o.Document.fromJSONString(e)},"text/html":function(e){return o.Document.fromHTML(e)}},serializeToContentType:function(e,t){var n;if(n=o.serializers[t])return n(e);throw new Error("unknown content type: "+t)},deserializeFromContentType:function(e,t){var n;if(n=o.deserializers[t])return n(e);throw new Error("unknown content type: "+t)}})}.call(this),function(){var e;e=o.config.lang,o.config.toolbar={getDefaultHTML:function(){return'<div class="trix-button-row">\n  <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-bold" data-trix-attribute="bold" data-trix-key="b" title="'+e.bold+'" tabindex="-1">'+e.bold+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-italic" data-trix-attribute="italic" data-trix-key="i" title="'+e.italic+'" tabindex="-1">'+e.italic+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-strike" data-trix-attribute="strike" title="'+e.strike+'" tabindex="-1">'+e.strike+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-link" data-trix-attribute="href" data-trix-action="link" data-trix-key="k" title="'+e.link+'" tabindex="-1">'+e.link+'</button>\n  </span>\n\n  <span class="trix-button-group trix-button-group--block-tools" data-trix-button-group="block-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-attribute="heading1" title="'+e.heading1+'" tabindex="-1">'+e.heading1+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-quote" data-trix-attribute="quote" title="'+e.quote+'" tabindex="-1">'+e.quote+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-code" data-trix-attribute="code" title="'+e.code+'" tabindex="-1">'+e.code+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-bullet-list" data-trix-attribute="bullet" title="'+e.bullets+'" tabindex="-1">'+e.bullets+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-number-list" data-trix-attribute="number" title="'+e.numbers+'" tabindex="-1">'+e.numbers+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-decrease-nesting-level" data-trix-action="decreaseNestingLevel" title="'+e.outdent+'" tabindex="-1">'+e.outdent+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-increase-nesting-level" data-trix-action="increaseNestingLevel" title="'+e.indent+'" tabindex="-1">'+e.indent+'</button>\n  </span>\n\n  <span class="trix-button-group trix-button-group--file-tools" data-trix-button-group="file-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-attach" data-trix-action="attachFiles" title="'+e.attachFiles+'" tabindex="-1">'+e.attachFiles+'</button>\n  </span>\n\n  <span class="trix-button-group-spacer"></span>\n\n  <span class="trix-button-group trix-button-group--history-tools" data-trix-button-group="history-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-undo" data-trix-action="undo" data-trix-key="z" title="'+e.undo+'" tabindex="-1">'+e.undo+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-redo" data-trix-action="redo" data-trix-key="shift+z" title="'+e.redo+'" tabindex="-1">'+e.redo+'</button>\n  </span>\n</div>\n\n<div class="trix-dialogs" data-trix-dialogs>\n  <div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">\n    <div class="trix-dialog__link-fields">\n      <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="'+e.urlPlaceholder+'" aria-label="'+e.url+'" required data-trix-input>\n      <div class="trix-button-group">\n        <input type="button" class="trix-button trix-button--dialog" value="'+e.link+'" data-trix-method="setAttribute">\n        <input type="button" class="trix-button trix-button--dialog" value="'+e.unlink+'" data-trix-method="removeAttribute">\n      </div>\n    </div>\n  </div>\n</div>'}}}.call(this),function(){o.config.undoInterval=5e3}.call(this),function(){o.config.attachments={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}}}.call(this),function(){o.config.keyNames={8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"}}.call(this),function(){o.config.input={level2Enabled:!0,getLevel:function(){return this.level2Enabled&&o.browser.supportsInputEvents?2:0},pickFiles:function(e){var t;return(t=o.makeElement("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId})).addEventListener("change",(function(){return e(t.files),o.removeNode(t)})),o.removeNode(document.getElementById(this.fileInputId)),document.body.appendChild(t),t.click()},fileInputId:"trix-file-input-"+Date.now().toString(16)}}.call(this),function(){}.call(this),function(){o.registerElement("trix-toolbar",{defaultCSS:"%t {\n  display: block;\n}\n\n%t {\n  white-space: nowrap;\n}\n\n%t [data-trix-dialog] {\n  display: none;\n}\n\n%t [data-trix-dialog][data-trix-active] {\n  display: block;\n}\n\n%t [data-trix-dialog] [data-trix-validate]:invalid {\n  background-color: #ffdddd;\n}",initialize:function(){return""===this.innerHTML?this.innerHTML=o.config.toolbar.getDefaultHTML():void 0}})}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty,n=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};o.ObjectView=function(t){function r(e,t){this.object=e,this.options=null!=t?t:{},this.childViews=[],this.rootView=this}return e(r,t),r.prototype.getNodes=function(){var e,t,n,r,i;for(null==this.nodes&&(this.nodes=this.createNodes()),i=[],e=0,t=(r=this.nodes).length;t>e;e++)n=r[e],i.push(n.cloneNode(!0));return i},r.prototype.invalidate=function(){var e;return this.nodes=null,this.childViews=[],null!=(e=this.parentView)?e.invalidate():void 0},r.prototype.invalidateViewForObject=function(e){var t;return null!=(t=this.findViewForObject(e))?t.invalidate():void 0},r.prototype.findOrCreateCachedChildView=function(e,t){var n;return(n=this.getCachedViewForObject(t))?this.recordChildView(n):(n=this.createChildView.apply(this,arguments),this.cacheViewForObject(n,t)),n},r.prototype.createChildView=function(e,t,n){var r;return null==n&&(n={}),t instanceof o.ObjectGroup&&(n.viewClass=e,e=o.ObjectGroupView),r=new e(t,n),this.recordChildView(r)},r.prototype.recordChildView=function(e){return e.parentView=this,e.rootView=this.rootView,this.childViews.push(e),e},r.prototype.getAllChildViews=function(){var e,t,n,r,i;for(i=[],t=0,n=(r=this.childViews).length;n>t;t++)e=r[t],i.push(e),i=i.concat(e.getAllChildViews());return i},r.prototype.findElement=function(){return this.findElementForObject(this.object)},r.prototype.findElementForObject=function(e){var t;return(t=null!=e?e.id:void 0)?this.rootView.element.querySelector("[data-trix-id='"+t+"']"):void 0},r.prototype.findViewForObject=function(e){var t,n,r,i;for(t=0,n=(r=this.getAllChildViews()).length;n>t;t++)if((i=r[t]).object===e)return i},r.prototype.getViewCache=function(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?null!=this.viewCache?this.viewCache:this.viewCache={}:void 0},r.prototype.isViewCachingEnabled=function(){return!1!==this.shouldCacheViews},r.prototype.enableViewCaching=function(){return this.shouldCacheViews=!0},r.prototype.disableViewCaching=function(){return this.shouldCacheViews=!1},r.prototype.getCachedViewForObject=function(e){var t;return null!=(t=this.getViewCache())?t[e.getCacheKey()]:void 0},r.prototype.cacheViewForObject=function(e,t){var n;return null!=(n=this.getViewCache())?n[t.getCacheKey()]=e:void 0},r.prototype.garbageCollectCachedViews=function(){var e,t,r,i,o,a;if(e=this.getViewCache()){for(t in a=this.getAllChildViews().concat(this),r=function(){var e,t,n;for(n=[],e=0,t=a.length;t>e;e++)o=a[e],n.push(o.object.getCacheKey());return n}(),i=[],e)n.call(r,t)<0&&i.push(delete e[t]);return i}},r}(o.BasicObject)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.ObjectGroupView=function(t){function n(){n.__super__.constructor.apply(this,arguments),this.objectGroup=this.object,this.viewClass=this.options.viewClass,delete this.options.viewClass}return e(n,t),n.prototype.getChildViews=function(){var e,t,n,r;if(!this.childViews.length)for(e=0,t=(r=this.objectGroup.getObjects()).length;t>e;e++)n=r[e],this.findOrCreateCachedChildView(this.viewClass,n,this.options);return this.childViews},n.prototype.createNodes=function(){var e,t,n,r,i,o,a,s;for(e=this.createContainerElement(),t=0,r=(a=this.getChildViews()).length;r>t;t++)for(n=0,i=(s=a[t].getNodes()).length;i>n;n++)o=s[n],e.appendChild(o);return[e]},n.prototype.createContainerElement=function(e){return null==e&&(e=this.objectGroup.getDepth()),this.getChildViews()[0].createContainerElement(e)},n}(o.ObjectView)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.Controller=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(o.BasicObject)}.call(this),function(){var e,t,n,r,i,a,s=function(e,t){function n(){this.constructor=e}for(var r in t)l.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty,c=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=o.findClosestElementFromNode,n=o.nodeIsEmptyTextNode,t=o.nodeIsBlockStartComment,r=o.normalizeSpaces,i=o.summarizeStringChange,a=o.tagName,o.MutationObserver=function(o){function l(e){this.element=e,this.didMutate=function(e,t){return function(){return e.apply(t,arguments)}}(this.didMutate,this),this.observer=new window.MutationObserver(this.didMutate),this.start()}var u,p,d,f;return s(l,o),d="["+(p="data-trix-mutable")+"]",f={attributes:!0,childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},l.prototype.start=function(){return this.reset(),this.observer.observe(this.element,f)},l.prototype.stop=function(){return this.observer.disconnect()},l.prototype.didMutate=function(e){var t,n;return(t=this.mutations).push.apply(t,this.findSignificantMutations(e)),this.mutations.length?(null!=(n=this.delegate)&&"function"==typeof n.elementDidMutate&&n.elementDidMutate(this.getMutationSummary()),this.reset()):void 0},l.prototype.reset=function(){return this.mutations=[]},l.prototype.findSignificantMutations=function(e){var t,n,r,i;for(i=[],t=0,n=e.length;n>t;t++)r=e[t],this.mutationIsSignificant(r)&&i.push(r);return i},l.prototype.mutationIsSignificant=function(e){var t,n,r,i;if(this.nodeIsMutable(e.target))return!1;for(t=0,n=(i=this.nodesModifiedByMutation(e)).length;n>t;t++)if(r=i[t],this.nodeIsSignificant(r))return!0;return!1},l.prototype.nodeIsSignificant=function(e){return e!==this.element&&!this.nodeIsMutable(e)&&!n(e)},l.prototype.nodeIsMutable=function(t){return e(t,{matchingSelector:d})},l.prototype.nodesModifiedByMutation=function(e){var t;switch(t=[],e.type){case"attributes":e.attributeName!==p&&t.push(e.target);break;case"characterData":t.push(e.target.parentNode),t.push(e.target);break;case"childList":t.push.apply(t,e.addedNodes),t.push.apply(t,e.removedNodes)}return t},l.prototype.getMutationSummary=function(){return this.getTextMutationSummary()},l.prototype.getTextMutationSummary=function(){var e,t,n,r,i,o,a,s,l,u,p;for(n=(s=this.getTextChangesFromCharacterData()).additions,i=s.deletions,o=0,a=(l=(p=this.getTextChangesFromChildList()).additions).length;a>o;o++)t=l[o],c.call(n,t)<0&&n.push(t);return i.push.apply(i,p.deletions),u={},(e=n.join(""))&&(u.textAdded=e),(r=i.join(""))&&(u.textDeleted=r),u},l.prototype.getMutationsByType=function(e){var t,n,r,i,o;for(o=[],t=0,n=(i=this.mutations).length;n>t;t++)(r=i[t]).type===e&&o.push(r);return o},l.prototype.getTextChangesFromChildList=function(){var e,n,i,o,a,s,l,c,p,d;for(e=[],l=[],n=0,o=(s=this.getMutationsByType("childList")).length;o>n;n++)a=s[n],e.push.apply(e,a.addedNodes),l.push.apply(l,a.removedNodes);return 0===e.length&&1===l.length&&t(l[0])?(p=[],d=["\n"]):(p=u(e),d=u(l)),{additions:function(){var e,t,n;for(n=[],i=e=0,t=p.length;t>e;i=++e)(c=p[i])!==d[i]&&n.push(r(c));return n}(),deletions:function(){var e,t,n;for(n=[],i=e=0,t=d.length;t>e;i=++e)(c=d[i])!==p[i]&&n.push(r(c));return n}()}},l.prototype.getTextChangesFromCharacterData=function(){var e,t,n,o,a,s,l,c;return(t=this.getMutationsByType("characterData")).length&&(c=t[0],n=t[t.length-1],a=r(c.oldValue),o=r(n.target.data),e=(s=i(a,o)).added,l=s.removed),{additions:e?[e]:[],deletions:l?[l]:[]}},u=function(e){var t,n,r,i;for(null==e&&(e=[]),i=[],t=0,n=e.length;n>t;t++)switch(r=e[t],r.nodeType){case Node.TEXT_NODE:i.push(r.data);break;case Node.ELEMENT_NODE:"br"===a(r)?i.push("\n"):i.push.apply(i,u(r.childNodes))}return i},l}(o.BasicObject)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.FileVerificationOperation=function(t){function n(e){this.file=e}return e(n,t),n.prototype.perform=function(e){var t;return(t=new FileReader).onerror=function(){return e(!1)},t.onload=function(n){return function(){t.onerror=null;try{t.abort()}catch(e){}return e(!0,n.file)}}(this),t.readAsArrayBuffer(this.file)},n}(o.Operation)}.call(this),function(){var e,t,n=function(e,t){function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=o.handleEvent,t=o.innerElementIsActive,o.InputController=function(r){function i(t){var n;for(n in this.element=t,this.mutationObserver=new o.MutationObserver(this.element),this.mutationObserver.delegate=this,this.events)e(n,{onElement:this.element,withCallback:this.handlerFor(n)})}return n(i,r),i.prototype.events={},i.prototype.elementDidMutate=function(){},i.prototype.editorWillSyncDocumentView=function(){return this.mutationObserver.stop()},i.prototype.editorDidSyncDocumentView=function(){return this.mutationObserver.start()},i.prototype.requestRender=function(){var e;return null!=(e=this.delegate)&&"function"==typeof e.inputControllerDidRequestRender?e.inputControllerDidRequestRender():void 0},i.prototype.requestReparse=function(){var e;return null!=(e=this.delegate)&&"function"==typeof e.inputControllerDidRequestReparse&&e.inputControllerDidRequestReparse(),this.requestRender()},i.prototype.attachFiles=function(e){var t,n;return n=function(){var n,r,i;for(i=[],n=0,r=e.length;r>n;n++)t=e[n],i.push(new o.FileVerificationOperation(t));return i}(),Promise.all(n).then(function(e){return function(t){return e.handleInput((function(){var e,n;return null!=(e=this.delegate)&&e.inputControllerWillAttachFiles(),null!=(n=this.responder)&&n.insertFiles(t),this.requestRender()}))}}(this))},i.prototype.handlerFor=function(e){return function(n){return function(r){return r.defaultPrevented?void 0:n.handleInput((function(){return t(this.element)?void 0:(this.eventName=e,this.events[e].call(this,r))}))}}(this)},i.prototype.handleInput=function(e){var t,n;try{return null!=(t=this.delegate)&&t.inputControllerWillHandleInput(),e.call(this)}finally{null!=(n=this.delegate)&&n.inputControllerDidHandleInput()}},i.prototype.createLinkHTML=function(e,t){var n;return(n=document.createElement("a")).href=e,n.textContent=null!=t?t:e,n.outerHTML},i}(o.BasicObject)}.call(this),function(){var e,t,n,r,i,a,s,l,c,u,p,d,f=function(e,t){function n(){this.constructor=e}for(var r in t)h.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},h={}.hasOwnProperty,m=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};c=o.makeElement,u=o.objectsAreEqual,o.tagName,t=o.browser,s=o.keyEventIsKeyboardCommand,r=o.dataTransferIsWritable,n=o.dataTransferIsPlainText,l=o.config.keyNames,o.Level0InputController=function(t){function a(){a.__super__.constructor.apply(this,arguments),this.resetInputSummary()}var h;return f(a,t),h=0,a.prototype.setInputSummary=function(e){var t,n;for(t in null==e&&(e={}),this.inputSummary.eventName=this.eventName,e)n=e[t],this.inputSummary[t]=n;return this.inputSummary},a.prototype.resetInputSummary=function(){return this.inputSummary={}},a.prototype.reset=function(){return this.resetInputSummary(),o.selectionChangeObserver.reset()},a.prototype.elementDidMutate=function(e){var t;return this.isComposing()?null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidAllowUnhandledInput?t.inputControllerDidAllowUnhandledInput():void 0:this.handleInput((function(){return this.mutationIsSignificant(e)&&(this.mutationIsExpected(e)?this.requestRender():this.requestReparse()),this.reset()}))},a.prototype.mutationIsExpected=function(e){var t,n,r,i,o,a,s,l,c;return a=e.textAdded,s=e.textDeleted,!!this.inputSummary.preferDocument||(t=null!=a?a===this.inputSummary.textAdded:!this.inputSummary.textAdded,n=null!=s?this.inputSummary.didDelete:!this.inputSummary.didDelete,c="\n"===s&&!n,!!(((l=("\n"===a||" \n"===a)&&!t)&&!c||c&&!l)&&(i=this.getSelectedRange())&&(r=l?a.replace(/\n$/,"").length||-1:(null!=a?a.length:void 0)||1,null!=(o=this.responder)?o.positionIsBlockBreak(i[1]+r):void 0))||t&&n)},a.prototype.mutationIsSignificant=function(e){var t,n,r;return r=Object.keys(e).length>0,t=""===(null!=(n=this.compositionInput)?n.getEndData():void 0),r||!t},a.prototype.events={keydown:function(e){var t,n,r,i,a,c,u,p,d;if(this.isComposing()||this.resetInputSummary(),this.inputSummary.didInput=!0,i=l[e.keyCode]){for(n=this.keys,r=0,c=(p=["ctrl","alt","shift","meta"]).length;c>r;r++)e[(u=p[r])+"Key"]&&("ctrl"===u&&(u="control"),n=null!=n?n[u]:void 0);null!=(null!=n?n[i]:void 0)&&(this.setInputSummary({keyName:i}),o.selectionChangeObserver.reset(),n[i].call(this,e))}return s(e)&&(t=String.fromCharCode(e.keyCode).toLowerCase())&&(a=function(){var t,n,r,i;for(i=[],t=0,n=(r=["alt","shift"]).length;n>t;t++)e[(u=r[t])+"Key"]&&i.push(u);return i}(),a.push(t),null!=(d=this.delegate)?d.inputControllerDidReceiveKeyboardCommand(a):void 0)?e.preventDefault():void 0},keypress:function(e){var t,n,r;if(null==this.inputSummary.eventName&&!e.metaKey&&(!e.ctrlKey||e.altKey))return(r=d(e))?(null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.insertString(r),this.setInputSummary({textAdded:r,didDelete:this.selectionIsExpanded()})):void 0},textInput:function(e){var t,n,r,i;return t=e.data,(i=this.inputSummary.textAdded)&&i!==t&&i.toUpperCase()===t?(n=this.getSelectedRange(),this.setSelectedRange([n[0],n[1]+i.length]),null!=(r=this.responder)&&r.insertString(t),this.setInputSummary({textAdded:t}),this.setSelectedRange(n)):void 0},dragenter:function(e){return e.preventDefault()},dragstart:function(e){var t;return e.target,this.serializeSelectionToDataTransfer(e.dataTransfer),this.draggedRange=this.getSelectedRange(),null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidStartDrag?t.inputControllerDidStartDrag():void 0},dragover:function(e){var t,n;return!this.draggedRange&&!this.canAcceptDataTransfer(e.dataTransfer)||(e.preventDefault(),t={x:e.clientX,y:e.clientY},u(t,this.draggingPoint))?void 0:(this.draggingPoint=t,null!=(n=this.delegate)&&"function"==typeof n.inputControllerDidReceiveDragOverPoint?n.inputControllerDidReceiveDragOverPoint(this.draggingPoint):void 0)},dragend:function(){var e;return null!=(e=this.delegate)&&"function"==typeof e.inputControllerDidCancelDrag&&e.inputControllerDidCancelDrag(),this.draggedRange=null,this.draggingPoint=null},drop:function(e){var t,n,r,i,a,s,l,c,u;return e.preventDefault(),r=null!=(a=e.dataTransfer)?a.files:void 0,i={x:e.clientX,y:e.clientY},null!=(s=this.responder)&&s.setLocationRangeFromPointRange(i),(null!=r?r.length:void 0)?this.attachFiles(r):this.draggedRange?(null!=(l=this.delegate)&&l.inputControllerWillMoveText(),null!=(c=this.responder)&&c.moveTextFromRange(this.draggedRange),this.draggedRange=null,this.requestRender()):(n=e.dataTransfer.getData("application/x-trix-document"))&&(t=o.Document.fromJSONString(n),null!=(u=this.responder)&&u.insertDocument(t),this.requestRender()),this.draggedRange=null,this.draggingPoint=null},cut:function(e){var t,n;return(null!=(t=this.responder)?t.selectionIsExpanded():void 0)&&(this.serializeSelectionToDataTransfer(e.clipboardData)&&e.preventDefault(),null!=(n=this.delegate)&&n.inputControllerWillCutText(),this.deleteInDirection("backward"),e.defaultPrevented)?this.requestRender():void 0},copy:function(e){var t;return(null!=(t=this.responder)?t.selectionIsExpanded():void 0)&&this.serializeSelectionToDataTransfer(e.clipboardData)?e.preventDefault():void 0},paste:function(e){var t,r,a,s,l,c,u,d,f,g,v,y,b,x,w,A,_,C,k,S,E,T,O;return t=null!=(d=e.clipboardData)?d:e.testClipboardData,u={clipboard:t},null==t||p(e)?void this.getPastedHTMLUsingHiddenElement(function(e){return function(t){var n,r,i;return u.type="text/html",u.html=t,null!=(n=e.delegate)&&n.inputControllerWillPaste(u),null!=(r=e.responder)&&r.insertHTML(u.html),e.requestRender(),null!=(i=e.delegate)?i.inputControllerDidPaste(u):void 0}}(this)):((s=t.getData("URL"))?(u.type="text/html",O=(c=t.getData("public.url-name"))?o.squishBreakableWhitespace(c).trim():s,u.html=this.createLinkHTML(s,O),null!=(f=this.delegate)&&f.inputControllerWillPaste(u),this.setInputSummary({textAdded:O,didDelete:this.selectionIsExpanded()}),null!=(w=this.responder)&&w.insertHTML(u.html),this.requestRender(),null!=(A=this.delegate)&&A.inputControllerDidPaste(u)):n(t)?(u.type="text/plain",u.string=t.getData("text/plain"),null!=(_=this.delegate)&&_.inputControllerWillPaste(u),this.setInputSummary({textAdded:u.string,didDelete:this.selectionIsExpanded()}),null!=(C=this.responder)&&C.insertString(u.string),this.requestRender(),null!=(k=this.delegate)&&k.inputControllerDidPaste(u)):(l=t.getData("text/html"))?(u.type="text/html",u.html=l,null!=(S=this.delegate)&&S.inputControllerWillPaste(u),null!=(E=this.responder)&&E.insertHTML(u.html),this.requestRender(),null!=(T=this.delegate)&&T.inputControllerDidPaste(u)):m.call(t.types,"Files")>=0&&(a=null!=(g=t.items)&&null!=(v=g[0])&&"function"==typeof v.getAsFile?v.getAsFile():void 0)&&(!a.name&&(r=i(a))&&(a.name="pasted-file-"+ ++h+"."+r),u.type="File",u.file=a,null!=(y=this.delegate)&&y.inputControllerWillAttachFiles(),null!=(b=this.responder)&&b.insertFile(u.file),this.requestRender(),null!=(x=this.delegate)&&x.inputControllerDidPaste(u)),e.preventDefault())},compositionstart:function(e){return this.getCompositionInput().start(e.data)},compositionupdate:function(e){return this.getCompositionInput().update(e.data)},compositionend:function(e){return this.getCompositionInput().end(e.data)},beforeinput:function(){return this.inputSummary.didInput=!0},input:function(e){return this.inputSummary.didInput=!0,e.stopPropagation()}},a.prototype.keys={backspace:function(e){var t;return null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),this.deleteInDirection("backward",e)},delete:function(e){var t;return null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),this.deleteInDirection("forward",e)},return:function(){var e,t;return this.setInputSummary({preferDocument:!0}),null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(t=this.responder)?t.insertLineBreak():void 0},tab:function(e){var t,n;return(null!=(t=this.responder)?t.canIncreaseNestingLevel():void 0)?(null!=(n=this.responder)&&n.increaseNestingLevel(),this.requestRender(),e.preventDefault()):void 0},left:function(e){var t;return this.selectionIsInCursorTarget()?(e.preventDefault(),null!=(t=this.responder)?t.moveCursorInDirection("backward"):void 0):void 0},right:function(e){var t;return this.selectionIsInCursorTarget()?(e.preventDefault(),null!=(t=this.responder)?t.moveCursorInDirection("forward"):void 0):void 0},control:{d:function(e){var t;return null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),this.deleteInDirection("forward",e)},h:function(e){var t;return null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),this.deleteInDirection("backward",e)},o:function(e){var t,n;return e.preventDefault(),null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.insertString("\n",{updatePosition:!1}),this.requestRender()}},shift:{return:function(e){var t,n;return null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.insertString("\n"),this.requestRender(),e.preventDefault()},tab:function(e){var t,n;return(null!=(t=this.responder)?t.canDecreaseNestingLevel():void 0)?(null!=(n=this.responder)&&n.decreaseNestingLevel(),this.requestRender(),e.preventDefault()):void 0},left:function(e){return this.selectionIsInCursorTarget()?(e.preventDefault(),this.expandSelectionInDirection("backward")):void 0},right:function(e){return this.selectionIsInCursorTarget()?(e.preventDefault(),this.expandSelectionInDirection("forward")):void 0}},alt:{backspace:function(){var e;return this.setInputSummary({preferDocument:!1}),null!=(e=this.delegate)?e.inputControllerWillPerformTyping():void 0}},meta:{backspace:function(){var e;return this.setInputSummary({preferDocument:!1}),null!=(e=this.delegate)?e.inputControllerWillPerformTyping():void 0}}},a.prototype.getCompositionInput=function(){return this.isComposing()?this.compositionInput:this.compositionInput=new e(this)},a.prototype.isComposing=function(){return null!=this.compositionInput&&!this.compositionInput.isEnded()},a.prototype.deleteInDirection=function(e,t){var n;return!1!==(null!=(n=this.responder)?n.deleteInDirection(e):void 0)?this.setInputSummary({didDelete:!0}):t?(t.preventDefault(),this.requestRender()):void 0},a.prototype.serializeSelectionToDataTransfer=function(e){var t,n;if(r(e))return t=null!=(n=this.responder)?n.getSelectedDocument().toSerializableDocument():void 0,e.setData("application/x-trix-document",JSON.stringify(t)),e.setData("text/html",o.DocumentView.render(t).innerHTML),e.setData("text/plain",t.toString().replace(/\n$/,"")),!0},a.prototype.canAcceptDataTransfer=function(e){var t,n,r,i,o;for(o={},t=0,n=(i=null!=(r=null!=e?e.types:void 0)?r:[]).length;n>t;t++)o[i[t]]=!0;return o.Files||o["application/x-trix-document"]||o["text/html"]||o["text/plain"]},a.prototype.getPastedHTMLUsingHiddenElement=function(e){var t,n,r;return n=this.getSelectedRange(),r={position:"absolute",left:window.pageXOffset+"px",top:window.pageYOffset+"px",opacity:0},t=c({style:r,tagName:"div",editable:!0}),document.body.appendChild(t),t.focus(),requestAnimationFrame(function(r){return function(){var i;return i=t.innerHTML,o.removeNode(t),r.setSelectedRange(n),e(i)}}(this))},a.proxyMethod("responder?.getSelectedRange"),a.proxyMethod("responder?.setSelectedRange"),a.proxyMethod("responder?.expandSelectionInDirection"),a.proxyMethod("responder?.selectionIsInCursorTarget"),a.proxyMethod("responder?.selectionIsExpanded"),a}(o.InputController),i=function(e){var t,n;return null!=(t=e.type)&&null!=(n=t.match(/\/(\w+)$/))?n[1]:void 0},a=null!=("function"==typeof" ".codePointAt?" ".codePointAt(0):void 0),d=function(e){var t;return e.key&&a&&e.key.codePointAt(0)===e.keyCode?e.key:(null===e.which?t=e.keyCode:0!==e.which&&0!==e.charCode&&(t=e.charCode),null!=t&&"escape"!==l[t]?o.UTF16String.fromCodepoints([t]).toString():void 0)},p=function(e){var t,n,r,i,o,a,s,l,c;if(s=e.clipboardData){if(m.call(s.types,"text/html")>=0){for(r=0,a=(l=s.types).length;a>r;r++)if(c=l[r],t=/^CorePasteboardFlavorType/.test(c),n=/^dyn\./.test(c)&&s.getData(c),t||n)return!0;return!1}return i=m.call(s.types,"com.apple.webarchive")>=0,o=m.call(s.types,"com.apple.flat-rtfd")>=0,i||o}},e=function(e){function n(e){var t;this.inputController=e,t=this.inputController,this.responder=t.responder,this.delegate=t.delegate,this.inputSummary=t.inputSummary,this.data={}}return f(n,e),n.prototype.start=function(e){var t,n;return this.data.start=e,this.isSignificant()?("keypress"===this.inputSummary.eventName&&this.inputSummary.textAdded&&null!=(t=this.responder)&&t.deleteInDirection("left"),this.selectionIsExpanded()||(this.insertPlaceholder(),this.requestRender()),this.range=null!=(n=this.responder)?n.getSelectedRange():void 0):void 0},n.prototype.update=function(e){var t;return this.data.update=e,this.isSignificant()&&(t=this.selectPlaceholder())?(this.forgetPlaceholder(),this.range=t):void 0},n.prototype.end=function(e){var t,n,r,i;return this.data.end=e,this.isSignificant()?(this.forgetPlaceholder(),this.canApplyToDocument()?(this.setInputSummary({preferDocument:!0,didInput:!1}),null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.setSelectedRange(this.range),null!=(r=this.responder)&&r.insertString(this.data.end),null!=(i=this.responder)?i.setSelectedRange(this.range[0]+this.data.end.length):void 0):null!=this.data.start||null!=this.data.update?(this.requestReparse(),this.inputController.reset()):void 0):this.inputController.reset()},n.prototype.getEndData=function(){return this.data.end},n.prototype.isEnded=function(){return null!=this.getEndData()},n.prototype.isSignificant=function(){return!t.composesExistingText||this.inputSummary.didInput},n.prototype.canApplyToDocument=function(){var e,t;return 0===(null!=(e=this.data.start)?e.length:void 0)&&(null!=(t=this.data.end)?t.length:void 0)>0&&null!=this.range},n.proxyMethod("inputController.setInputSummary"),n.proxyMethod("inputController.requestRender"),n.proxyMethod("inputController.requestReparse"),n.proxyMethod("responder?.selectionIsExpanded"),n.proxyMethod("responder?.insertPlaceholder"),n.proxyMethod("responder?.selectPlaceholder"),n.proxyMethod("responder?.forgetPlaceholder"),n}(o.BasicObject)}.call(this),function(){var e,t,n,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty,a=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=o.dataTransferIsPlainText,t=o.keyEventIsKeyboardCommand,n=o.objectsAreEqual,o.Level2InputController=function(i){function s(){return this.render=function(e,t){return function(){return e.apply(t,arguments)}}(this.render,this),s.__super__.constructor.apply(this,arguments)}var l,c,u,p,d,f;return r(s,i),s.prototype.elementDidMutate=function(){var e;return this.scheduledRender?this.composing&&null!=(e=this.delegate)&&"function"==typeof e.inputControllerDidAllowUnhandledInput?e.inputControllerDidAllowUnhandledInput():void 0:this.reparse()},s.prototype.scheduleRender=function(){return null!=this.scheduledRender?this.scheduledRender:this.scheduledRender=requestAnimationFrame(this.render)},s.prototype.render=function(){var e;return cancelAnimationFrame(this.scheduledRender),this.scheduledRender=null,this.composing||null!=(e=this.delegate)&&e.render(),"function"==typeof this.afterRender&&this.afterRender(),this.afterRender=null},s.prototype.reparse=function(){var e;return null!=(e=this.delegate)?e.reparse():void 0},s.prototype.events={keydown:function(e){var n,r,i,o;if(t(e)){if(n=c(e),null!=(o=this.delegate)?o.inputControllerDidReceiveKeyboardCommand(n):void 0)return e.preventDefault()}else if(i=e.key,e.altKey&&(i+="+Alt"),e.shiftKey&&(i+="+Shift"),r=this.keys[i])return this.withEvent(e,r)},paste:function(e){var t,n,r,i,o,a,s,l,c;return u(e)?(e.preventDefault(),this.attachFiles(e.clipboardData.files)):p(e)?(e.preventDefault(),n={type:"text/plain",string:e.clipboardData.getData("text/plain")},null!=(r=this.delegate)&&r.inputControllerWillPaste(n),null!=(i=this.responder)&&i.insertString(n.string),this.render(),null!=(o=this.delegate)?o.inputControllerDidPaste(n):void 0):(t=null!=(a=e.clipboardData)?a.getData("URL"):void 0)?(e.preventDefault(),n={type:"text/html",html:this.createLinkHTML(t)},null!=(s=this.delegate)&&s.inputControllerWillPaste(n),null!=(l=this.responder)&&l.insertHTML(n.html),this.render(),null!=(c=this.delegate)?c.inputControllerDidPaste(n):void 0):void 0},beforeinput:function(e){var t;return(t=this.inputTypes[e.inputType])?(this.withEvent(e,t),this.scheduleRender()):void 0},input:function(){return o.selectionChangeObserver.reset()},dragstart:function(e){var t,n;return(null!=(t=this.responder)?t.selectionContainsAttachments():void 0)?(e.dataTransfer.setData("application/x-trix-dragging",!0),this.dragging={range:null!=(n=this.responder)?n.getSelectedRange():void 0,point:d(e)}):void 0},dragenter:function(e){return l(e)?e.preventDefault():void 0},dragover:function(e){var t,r;if(this.dragging){if(e.preventDefault(),t=d(e),!n(t,this.dragging.point))return this.dragging.point=t,null!=(r=this.responder)?r.setLocationRangeFromPointRange(t):void 0}else if(l(e))return e.preventDefault()},drop:function(e){var t,n,r,i;return this.dragging?(e.preventDefault(),null!=(n=this.delegate)&&n.inputControllerWillMoveText(),null!=(r=this.responder)&&r.moveTextFromRange(this.dragging.range),this.dragging=null,this.scheduleRender()):l(e)?(e.preventDefault(),t=d(e),null!=(i=this.responder)&&i.setLocationRangeFromPointRange(t),this.attachFiles(e.dataTransfer.files)):void 0},dragend:function(){var e;return this.dragging?(null!=(e=this.responder)&&e.setSelectedRange(this.dragging.range),this.dragging=null):void 0},compositionend:function(){return this.composing?(this.composing=!1,this.scheduleRender()):void 0}},s.prototype.keys={ArrowLeft:function(){var e,t;return(null!=(e=this.responder)?e.shouldManageMovingCursorInDirection("backward"):void 0)?(this.event.preventDefault(),null!=(t=this.responder)?t.moveCursorInDirection("backward"):void 0):void 0},ArrowRight:function(){var e,t;return(null!=(e=this.responder)?e.shouldManageMovingCursorInDirection("forward"):void 0)?(this.event.preventDefault(),null!=(t=this.responder)?t.moveCursorInDirection("forward"):void 0):void 0},Backspace:function(){var e,t,n;return(null!=(e=this.responder)?e.shouldManageDeletingInDirection("backward"):void 0)?(this.event.preventDefault(),null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),null!=(n=this.responder)&&n.deleteInDirection("backward"),this.render()):void 0},Tab:function(){var e,t;return(null!=(e=this.responder)?e.canIncreaseNestingLevel():void 0)?(this.event.preventDefault(),null!=(t=this.responder)&&t.increaseNestingLevel(),this.render()):void 0},"Tab+Shift":function(){var e,t;return(null!=(e=this.responder)?e.canDecreaseNestingLevel():void 0)?(this.event.preventDefault(),null!=(t=this.responder)&&t.decreaseNestingLevel(),this.render()):void 0}},s.prototype.inputTypes={deleteByComposition:function(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteByCut:function(){return this.deleteInDirection("backward")},deleteByDrag:function(){return this.event.preventDefault(),this.withTargetDOMRange((function(){var e;return this.deleteByDragRange=null!=(e=this.responder)?e.getSelectedRange():void 0}))},deleteCompositionText:function(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteContent:function(){return this.deleteInDirection("backward")},deleteContentBackward:function(){return this.deleteInDirection("backward")},deleteContentForward:function(){return this.deleteInDirection("forward")},deleteEntireSoftLine:function(){return this.deleteInDirection("forward")},deleteHardLineBackward:function(){return this.deleteInDirection("backward")},deleteHardLineForward:function(){return this.deleteInDirection("forward")},deleteSoftLineBackward:function(){return this.deleteInDirection("backward")},deleteSoftLineForward:function(){return this.deleteInDirection("forward")},deleteWordBackward:function(){return this.deleteInDirection("backward")},deleteWordForward:function(){return this.deleteInDirection("forward")},formatBackColor:function(){return this.activateAttributeIfSupported("backgroundColor",this.event.data)},formatBold:function(){return this.toggleAttributeIfSupported("bold")},formatFontColor:function(){return this.activateAttributeIfSupported("color",this.event.data)},formatFontName:function(){return this.activateAttributeIfSupported("font",this.event.data)},formatIndent:function(){var e;return(null!=(e=this.responder)?e.canIncreaseNestingLevel():void 0)?this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.increaseNestingLevel():void 0})):void 0},formatItalic:function(){return this.toggleAttributeIfSupported("italic")},formatJustifyCenter:function(){return this.toggleAttributeIfSupported("justifyCenter")},formatJustifyFull:function(){return this.toggleAttributeIfSupported("justifyFull")},formatJustifyLeft:function(){return this.toggleAttributeIfSupported("justifyLeft")},formatJustifyRight:function(){return this.toggleAttributeIfSupported("justifyRight")},formatOutdent:function(){var e;return(null!=(e=this.responder)?e.canDecreaseNestingLevel():void 0)?this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.decreaseNestingLevel():void 0})):void 0},formatRemove:function(){return this.withTargetDOMRange((function(){var e,t,n,r;for(e in r=[],null!=(t=this.responder)?t.getCurrentAttributes():void 0)r.push(null!=(n=this.responder)?n.removeCurrentAttribute(e):void 0);return r}))},formatSetBlockTextDirection:function(){return this.activateAttributeIfSupported("blockDir",this.event.data)},formatSetInlineTextDirection:function(){return this.activateAttributeIfSupported("textDir",this.event.data)},formatStrikeThrough:function(){return this.toggleAttributeIfSupported("strike")},formatSubscript:function(){return this.toggleAttributeIfSupported("sub")},formatSuperscript:function(){return this.toggleAttributeIfSupported("sup")},formatUnderline:function(){return this.toggleAttributeIfSupported("underline")},historyRedo:function(){var e;return null!=(e=this.delegate)?e.inputControllerWillPerformRedo():void 0},historyUndo:function(){var e;return null!=(e=this.delegate)?e.inputControllerWillPerformUndo():void 0},insertCompositionText:function(){return this.composing=!0,this.insertString(this.event.data)},insertFromComposition:function(){return this.composing=!1,this.insertString(this.event.data)},insertFromDrop:function(){var e,t;return(e=this.deleteByDragRange)?(this.deleteByDragRange=null,null!=(t=this.delegate)&&t.inputControllerWillMoveText(),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.moveTextFromRange(e):void 0}))):void 0},insertFromPaste:function(){var t,n,r,i,a,s,l,c,u,p,d;return t=this.event.dataTransfer,a={dataTransfer:t},(n=t.getData("URL"))?(this.event.preventDefault(),a.type="text/html",d=(i=t.getData("public.url-name"))?o.squishBreakableWhitespace(i).trim():n,a.html=this.createLinkHTML(n,d),null!=(s=this.delegate)&&s.inputControllerWillPaste(a),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.insertHTML(a.html):void 0})),this.afterRender=function(e){return function(){var t;return null!=(t=e.delegate)?t.inputControllerDidPaste(a):void 0}}(this)):e(t)?(a.type="text/plain",a.string=t.getData("text/plain"),null!=(l=this.delegate)&&l.inputControllerWillPaste(a),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.insertString(a.string):void 0})),this.afterRender=function(e){return function(){var t;return null!=(t=e.delegate)?t.inputControllerDidPaste(a):void 0}}(this)):(r=t.getData("text/html"))?(this.event.preventDefault(),a.type="text/html",a.html=r,null!=(c=this.delegate)&&c.inputControllerWillPaste(a),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.insertHTML(a.html):void 0})),this.afterRender=function(e){return function(){var t;return null!=(t=e.delegate)?t.inputControllerDidPaste(a):void 0}}(this)):(null!=(u=t.files)?u.length:void 0)?(a.type="File",a.file=t.files[0],null!=(p=this.delegate)&&p.inputControllerWillPaste(a),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.insertFile(a.file):void 0})),this.afterRender=function(e){return function(){var t;return null!=(t=e.delegate)?t.inputControllerDidPaste(a):void 0}}(this)):void 0},insertFromYank:function(){return this.insertString(this.event.data)},insertLineBreak:function(){return this.insertString("\n")},insertLink:function(){return this.activateAttributeIfSupported("href",this.event.data)},insertOrderedList:function(){return this.toggleAttributeIfSupported("number")},insertParagraph:function(){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.insertLineBreak():void 0}))},insertReplacementText:function(){return this.insertString(this.event.dataTransfer.getData("text/plain"),{updatePosition:!1})},insertText:function(){var e,t;return this.insertString(null!=(e=this.event.data)?e:null!=(t=this.event.dataTransfer)?t.getData("text/plain"):void 0)},insertTranspose:function(){return this.insertString(this.event.data)},insertUnorderedList:function(){return this.toggleAttributeIfSupported("bullet")}},s.prototype.insertString=function(e,t){var n;return null==e&&(e=""),null!=(n=this.delegate)&&n.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var n;return null!=(n=this.responder)?n.insertString(e,t):void 0}))},s.prototype.toggleAttributeIfSupported=function(e){var t;return a.call(o.getAllAttributeNames(),e)>=0?(null!=(t=this.delegate)&&t.inputControllerWillPerformFormatting(e),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.toggleCurrentAttribute(e):void 0}))):void 0},s.prototype.activateAttributeIfSupported=function(e,t){var n;return a.call(o.getAllAttributeNames(),e)>=0?(null!=(n=this.delegate)&&n.inputControllerWillPerformFormatting(e),this.withTargetDOMRange((function(){var n;return null!=(n=this.responder)?n.setCurrentAttribute(e,t):void 0}))):void 0},s.prototype.deleteInDirection=function(e,t){var n,r,i;return(null!=t?t:{recordUndoEntry:!0}).recordUndoEntry&&null!=(i=this.delegate)&&i.inputControllerWillPerformTyping(),r=function(t){return function(){var n;return null!=(n=t.responder)?n.deleteInDirection(e):void 0}}(this),(n=this.getTargetDOMRange({minLength:2}))?this.withTargetDOMRange(n,r):r()},s.prototype.withTargetDOMRange=function(e,t){var n;return"function"==typeof e&&(t=e,e=this.getTargetDOMRange()),e?null!=(n=this.responder)?n.withTargetDOMRange(e,t.bind(this)):void 0:(o.selectionChangeObserver.reset(),t.call(this))},s.prototype.getTargetDOMRange=function(e){var t,n,r,i;return r=(null!=e?e:{minLength:0}).minLength,(i="function"==typeof(t=this.event).getTargetRanges?t.getTargetRanges():void 0)&&i.length&&(n=f(i[0]),0===r||n.toString().length>=r)?n:void 0},f=function(e){var t;return(t=document.createRange()).setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),t},s.prototype.withEvent=function(e,t){var n;this.event=e;try{n=t.call(this)}finally{this.event=null}return n},l=function(e){var t,n;return a.call(null!=(t=null!=(n=e.dataTransfer)?n.types:void 0)?t:[],"Files")>=0},u=function(e){var t;return(t=e.clipboardData)?a.call(t.types,"Files")>=0&&1===t.types.length&&t.files.length>=1:void 0},p=function(e){var t;return(t=e.clipboardData)?a.call(t.types,"text/plain")>=0&&1===t.types.length:void 0},c=function(e){var t;return t=[],e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.push(e.key),t},d=function(e){return{x:e.clientX,y:e.clientY}},s}(o.InputController)}.call(this),function(){var e,t,n,r,i,a,s,l,c=function(e,t){return function(){return e.apply(t,arguments)}},u=function(e,t){function n(){this.constructor=e}for(var r in t)p.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;t=o.defer,n=o.handleEvent,a=o.makeElement,l=o.tagName,s=o.config,i=s.lang,e=s.css,r=s.keyNames,o.AttachmentEditorController=function(s){function p(e,t,n,r){this.attachmentPiece=e,this.element=t,this.container=n,this.options=null!=r?r:{},this.didBlurCaption=c(this.didBlurCaption,this),this.didChangeCaption=c(this.didChangeCaption,this),this.didInputCaption=c(this.didInputCaption,this),this.didKeyDownCaption=c(this.didKeyDownCaption,this),this.didClickActionButton=c(this.didClickActionButton,this),this.didClickToolbar=c(this.didClickToolbar,this),this.attachment=this.attachmentPiece.attachment,"a"===l(this.element)&&(this.element=this.element.firstChild),this.install()}var d;return u(p,s),d=function(e){return function(){var t;return(t=e.apply(this,arguments)).do(),null==this.undos&&(this.undos=[]),this.undos.push(t.undo)}},p.prototype.install=function(){return this.makeElementMutable(),this.addToolbar(),this.attachment.isPreviewable()?this.installCaptionEditor():void 0},p.prototype.uninstall=function(){var e,t;for(this.savePendingCaption();t=this.undos.pop();)t();return null!=(e=this.delegate)?e.didUninstallAttachmentEditor(this):void 0},p.prototype.savePendingCaption=function(){var e,t,n;return null!=this.pendingCaption?(e=this.pendingCaption,this.pendingCaption=null,e?null!=(t=this.delegate)&&"function"==typeof t.attachmentEditorDidRequestUpdatingAttributesForAttachment?t.attachmentEditorDidRequestUpdatingAttributesForAttachment({caption:e},this.attachment):void 0:null!=(n=this.delegate)&&"function"==typeof n.attachmentEditorDidRequestRemovingAttributeForAttachment?n.attachmentEditorDidRequestRemovingAttributeForAttachment("caption",this.attachment):void 0):void 0},p.prototype.makeElementMutable=d((function(){return{do:function(e){return function(){return e.element.dataset.trixMutable=!0}}(this),undo:function(e){return function(){return delete e.element.dataset.trixMutable}}(this)}})),p.prototype.addToolbar=d((function(){var t;return t=a({tagName:"div",className:e.attachmentToolbar,data:{trixMutable:!0},childNodes:a({tagName:"div",className:"trix-button-row",childNodes:a({tagName:"span",className:"trix-button-group trix-button-group--actions",childNodes:a({tagName:"button",className:"trix-button trix-button--remove",textContent:i.remove,attributes:{title:i.remove},data:{trixAction:"remove"}})})})}),this.attachment.isPreviewable()&&t.appendChild(a({tagName:"div",className:e.attachmentMetadataContainer,childNodes:a({tagName:"span",className:e.attachmentMetadata,childNodes:[a({tagName:"span",className:e.attachmentName,textContent:this.attachment.getFilename(),attributes:{title:this.attachment.getFilename()}}),a({tagName:"span",className:e.attachmentSize,textContent:this.attachment.getFormattedFilesize()})]})})),n("click",{onElement:t,withCallback:this.didClickToolbar}),n("click",{onElement:t,matchingSelector:"[data-trix-action]",withCallback:this.didClickActionButton}),{do:function(e){return function(){return e.element.appendChild(t)}}(this),undo:function(){return o.removeNode(t)}}})),p.prototype.installCaptionEditor=d((function(){var r,s,l,c,u;return(c=a({tagName:"textarea",className:e.attachmentCaptionEditor,attributes:{placeholder:i.captionPlaceholder},data:{trixMutable:!0}})).value=this.attachmentPiece.getCaption(),(u=c.cloneNode()).classList.add("trix-autoresize-clone"),u.tabIndex=-1,r=function(){return u.value=c.value,c.style.height=u.scrollHeight+"px"},n("input",{onElement:c,withCallback:r}),n("input",{onElement:c,withCallback:this.didInputCaption}),n("keydown",{onElement:c,withCallback:this.didKeyDownCaption}),n("change",{onElement:c,withCallback:this.didChangeCaption}),n("blur",{onElement:c,withCallback:this.didBlurCaption}),l=this.element.querySelector("figcaption"),s=l.cloneNode(),{do:function(n){return function(){return l.style.display="none",s.appendChild(c),s.appendChild(u),s.classList.add(e.attachmentCaption+"--editing"),l.parentElement.insertBefore(s,l),r(),n.options.editCaption?t((function(){return c.focus()})):void 0}}(this),undo:function(){return o.removeNode(s),l.style.display=null}}})),p.prototype.didClickToolbar=function(e){return e.preventDefault(),e.stopPropagation()},p.prototype.didClickActionButton=function(e){var t;if("remove"===e.target.getAttribute("data-trix-action"))return null!=(t=this.delegate)?t.attachmentEditorDidRequestRemovalOfAttachment(this.attachment):void 0},p.prototype.didKeyDownCaption=function(e){var t;return"return"===r[e.keyCode]?(e.preventDefault(),this.savePendingCaption(),null!=(t=this.delegate)&&"function"==typeof t.attachmentEditorDidRequestDeselectingAttachment?t.attachmentEditorDidRequestDeselectingAttachment(this.attachment):void 0):void 0},p.prototype.didInputCaption=function(e){return this.pendingCaption=e.target.value.replace(/\s/g," ").trim()},p.prototype.didChangeCaption=function(){return this.savePendingCaption()},p.prototype.didBlurCaption=function(){return this.savePendingCaption()},p}(o.BasicObject)}.call(this),function(){var e,t,n,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=o.makeElement,e=o.config.css,o.AttachmentView=function(i){function a(){a.__super__.constructor.apply(this,arguments),this.attachment=this.object,this.attachment.uploadProgressDelegate=this,this.attachmentPiece=this.options.piece}var s;return r(a,i),a.attachmentSelector="[data-trix-attachment]",a.prototype.createContentNodes=function(){return[]},a.prototype.createNodes=function(){var t,r,i,o,a,l,c;if(t=o=n({tagName:"figure",className:this.getClassName(),data:this.getData(),editable:!1}),(r=this.getHref())&&(o=n({tagName:"a",editable:!1,attributes:{href:r,tabindex:-1}}),t.appendChild(o)),this.attachment.hasContent())o.innerHTML=this.attachment.getContent();else for(i=0,a=(c=this.createContentNodes()).length;a>i;i++)l=c[i],o.appendChild(l);return o.appendChild(this.createCaptionElement()),this.attachment.isPending()&&(this.progressElement=n({tagName:"progress",attributes:{class:e.attachmentProgress,value:this.attachment.getUploadProgress(),max:100},data:{trixMutable:!0,trixStoreKey:["progressElement",this.attachment.id].join("/")}}),t.appendChild(this.progressElement)),[s("left"),t,s("right")]},a.prototype.createCaptionElement=function(){var t,r,i,o,a,s,l;return i=n({tagName:"figcaption",className:e.attachmentCaption}),(t=this.attachmentPiece.getCaption())?(i.classList.add(e.attachmentCaption+"--edited"),i.textContent=t):((r=this.getCaptionConfig()).name&&(o=this.attachment.getFilename()),r.size&&(s=this.attachment.getFormattedFilesize()),o&&(a=n({tagName:"span",className:e.attachmentName,textContent:o}),i.appendChild(a)),s&&(o&&i.appendChild(document.createTextNode(" ")),l=n({tagName:"span",className:e.attachmentSize,textContent:s}),i.appendChild(l))),i},a.prototype.getClassName=function(){var t,n;return n=[e.attachment,e.attachment+"--"+this.attachment.getType()],(t=this.attachment.getExtension())&&n.push(e.attachment+"--"+t),n.join(" ")},a.prototype.getData=function(){var e,t;return t={trixAttachment:JSON.stringify(this.attachment),trixContentType:this.attachment.getContentType(),trixId:this.attachment.id},(e=this.attachmentPiece.attributes).isEmpty()||(t.trixAttributes=JSON.stringify(e)),this.attachment.isPending()&&(t.trixSerialize=!1),t},a.prototype.getHref=function(){return t(this.attachment.getContent(),"a")?void 0:this.attachment.getHref()},a.prototype.getCaptionConfig=function(){var e,t,n;return n=this.attachment.getType(),e=o.copyObject(null!=(t=o.config.attachments[n])?t.caption:void 0),"file"===n&&(e.name=!0),e},a.prototype.findProgressElement=function(){var e;return null!=(e=this.findElement())?e.querySelector("progress"):void 0},s=function(e){return n({tagName:"span",textContent:o.ZERO_WIDTH_SPACE,data:{trixCursorTarget:e,trixSerialize:!1}})},a.prototype.attachmentDidChangeUploadProgress=function(){var e,t;return t=this.attachment.getUploadProgress(),null!=(e=this.findProgressElement())?e.value=t:void 0},a}(o.ObjectView),t=function(e,t){var r;return(r=n("div")).innerHTML=null!=e?e:"",r.querySelector(t)}}.call(this),function(){var e,t=function(e,t){function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n={}.hasOwnProperty;e=o.makeElement,o.PreviewableAttachmentView=function(n){function r(){r.__super__.constructor.apply(this,arguments),this.attachment.previewDelegate=this}return t(r,n),r.prototype.createContentNodes=function(){return this.image=e({tagName:"img",attributes:{src:""},data:{trixMutable:!0}}),this.refresh(this.image),[this.image]},r.prototype.createCaptionElement=function(){var e;return(e=r.__super__.createCaptionElement.apply(this,arguments)).textContent||e.setAttribute("data-trix-placeholder",o.config.lang.captionPlaceholder),e},r.prototype.refresh=function(e){var t;return null==e&&(e=null!=(t=this.findElement())?t.querySelector("img"):void 0),e?this.updateAttributesForImage(e):void 0},r.prototype.updateAttributesForImage=function(e){var t,n,r,i,o,a;return o=this.attachment.getURL(),n=this.attachment.getPreviewURL(),e.src=n||o,n===o?e.removeAttribute("data-trix-serialized-attributes"):(r=JSON.stringify({src:o}),e.setAttribute("data-trix-serialized-attributes",r)),a=this.attachment.getWidth(),t=this.attachment.getHeight(),null!=a&&(e.width=a),null!=t&&(e.height=t),i=["imageElement",this.attachment.id,e.src,e.width,e.height].join("/"),e.dataset.trixStoreKey=i},r.prototype.attachmentDidChangeAttributes=function(){return this.refresh(this.image),this.refresh()},r}(o.AttachmentView)}.call(this),function(){var e,t,n,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=o.makeElement,e=o.findInnerElement,t=o.getTextConfig,o.PieceView=function(i){function a(){var e;a.__super__.constructor.apply(this,arguments),this.piece=this.object,this.attributes=this.piece.getAttributes(),e=this.options,this.textConfig=e.textConfig,this.context=e.context,this.piece.attachment?this.attachment=this.piece.attachment:this.string=this.piece.toString()}var s;return r(a,i),a.prototype.createNodes=function(){var t,n,r,i,o,a;if(a=this.attachment?this.createAttachmentNodes():this.createStringNodes(),t=this.createElement()){for(r=e(t),n=0,i=a.length;i>n;n++)o=a[n],r.appendChild(o);a=[t]}return a},a.prototype.createAttachmentNodes=function(){var e;return e=this.attachment.isPreviewable()?o.PreviewableAttachmentView:o.AttachmentView,this.createChildView(e,this.piece.attachment,{piece:this.piece}).getNodes()},a.prototype.createStringNodes=function(){var e,t,r,i,o,a,s,l,c;if(null!=(s=this.textConfig)?s.plaintext:void 0)return[document.createTextNode(this.string)];for(a=[],r=t=0,i=(l=this.string.split("\n")).length;i>t;r=++t)c=l[r],r>0&&(e=n("br"),a.push(e)),c.length&&(o=document.createTextNode(this.preserveSpaces(c)),a.push(o));return a},a.prototype.createElement=function(){var e,r,i,o,a,s,l,c,u;for(o in c={},s=this.attributes)if(u=s[o],(e=t(o))&&(e.tagName&&(a=n(e.tagName),i?(i.appendChild(a),i=a):r=i=a),e.styleProperty&&(c[e.styleProperty]=u),e.style))for(o in l=e.style)u=l[o],c[o]=u;if(Object.keys(c).length)for(o in null==r&&(r=n("span")),c)u=c[o],r.style[o]=u;return r},a.prototype.createContainerElement=function(){var e,r,i,o,a;for(i in o=this.attributes)if(a=o[i],(r=t(i))&&r.groupTagName)return(e={})[i]=a,n(r.groupTagName,e)},s=o.NON_BREAKING_SPACE,a.prototype.preserveSpaces=function(e){return this.context.isLast&&(e=e.replace(/\ $/,s)),e=e.replace(/(\S)\ {3}(\S)/g,"$1 "+s+" $2").replace(/\ {2}/g,s+" ").replace(/\ {2}/g," "+s),(this.context.isFirst||this.context.followsWhitespace)&&(e=e.replace(/^\ /,s)),e},a}(o.ObjectView)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.TextView=function(t){function n(){n.__super__.constructor.apply(this,arguments),this.text=this.object,this.textConfig=this.options.textConfig}var r;return e(n,t),n.prototype.createNodes=function(){var e,t,n,i,a,s,l,c,u,p;for(s=[],i=(c=o.ObjectGroup.groupObjects(this.getPieces())).length-1,n=t=0,a=c.length;a>t;n=++t)l=c[n],e={},0===n&&(e.isFirst=!0),n===i&&(e.isLast=!0),r(u)&&(e.followsWhitespace=!0),p=this.findOrCreateCachedChildView(o.PieceView,l,{textConfig:this.textConfig,context:e}),s.push.apply(s,p.getNodes()),u=l;return s},n.prototype.getPieces=function(){var e,t,n,r,i;for(i=[],e=0,t=(r=this.text.getPieces()).length;t>e;e++)(n=r[e]).hasAttribute("blockBreak")||i.push(n);return i},r=function(e){return/\s$/.test(null!=e?e.toString():void 0)},n}(o.ObjectView)}.call(this),function(){var e,t,n,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;n=o.makeElement,t=o.getBlockConfig,e=o.config.css,o.BlockView=function(i){function a(){a.__super__.constructor.apply(this,arguments),this.block=this.object,this.attributes=this.block.getAttributes()}return r(a,i),a.prototype.createNodes=function(){var e,r,i,a,s,l,c,u,p,d;if(l=[document.createComment("block")],this.block.isEmpty()?l.push(n("br")):(p=null!=(c=t(this.block.getLastAttribute()))?c.text:void 0,d=this.findOrCreateCachedChildView(o.TextView,this.block.text,{textConfig:p}),l.push.apply(l,d.getNodes()),this.shouldAddExtraNewlineElement()&&l.push(n("br"))),this.attributes.length)return l;for(u=o.config.blockAttributes.default.tagName,this.block.isRTL()&&(e={dir:"rtl"}),r=n({tagName:u,attributes:e}),i=0,a=l.length;a>i;i++)s=l[i],r.appendChild(s);return[r]},a.prototype.createContainerElement=function(r){var i,o,a,s,l;return i=this.attributes[r],l=t(i).tagName,0===r&&this.block.isRTL()&&(o={dir:"rtl"}),"attachmentGallery"===i&&(s=this.block.getBlockBreakPosition(),a=e.attachmentGallery+" "+e.attachmentGallery+"--"+s),n({tagName:l,className:a,attributes:o})},a.prototype.shouldAddExtraNewlineElement=function(){return/\n\n$/.test(this.block.toString())},a}(o.ObjectView)}.call(this),function(){var e,t,n=function(e,t){function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},r={}.hasOwnProperty;e=o.defer,t=o.makeElement,o.DocumentView=function(r){function i(){i.__super__.constructor.apply(this,arguments),this.element=this.options.element,this.elementStore=new o.ElementStore,this.setDocument(this.object)}var a,s,l;return n(i,r),i.render=function(e){var n,r;return(r=new this(e,{element:n=t("div")})).render(),r.sync(),n},i.prototype.setDocument=function(e){return e.isEqualTo(this.document)?void 0:this.document=this.object=e},i.prototype.render=function(){var e,n,r,i,a,s,l;if(this.childViews=[],this.shadowElement=t("div"),!this.document.isEmpty()){for(s=[],e=0,n=(a=o.ObjectGroup.groupObjects(this.document.getBlocks(),{asTree:!0})).length;n>e;e++)i=a[e],l=this.findOrCreateCachedChildView(o.BlockView,i),s.push(function(){var e,t,n,i;for(i=[],e=0,t=(n=l.getNodes()).length;t>e;e++)r=n[e],i.push(this.shadowElement.appendChild(r));return i}.call(this));return s}},i.prototype.isSynced=function(){return a(this.shadowElement,this.element)},i.prototype.sync=function(){var e;for(e=this.createDocumentFragmentForSync();this.element.lastChild;)this.element.removeChild(this.element.lastChild);return this.element.appendChild(e),this.didSync()},i.prototype.didSync=function(){return this.elementStore.reset(s(this.element)),e(function(e){return function(){return e.garbageCollectCachedViews()}}(this))},i.prototype.createDocumentFragmentForSync=function(){var e,t,n,r,i,o,a,l,c,u;for(t=document.createDocumentFragment(),n=0,i=(l=this.shadowElement.childNodes).length;i>n;n++)a=l[n],t.appendChild(a.cloneNode(!0));for(r=0,o=(c=s(t)).length;o>r;r++)e=c[r],(u=this.elementStore.remove(e))&&e.parentNode.replaceChild(u,e);return t},s=function(e){return e.querySelectorAll("[data-trix-store-key]")},a=function(e,t){return l(e.innerHTML)===l(t.innerHTML)},l=function(e){return e.replace(/&nbsp;/g," ")},i}(o.ObjectView)}.call(this),function(){var e,t,n,r,i,a=function(e,t){return function(){return e.apply(t,arguments)}},s=function(e,t){function n(){this.constructor=e}for(var r in t)l.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;n=o.findClosestElementFromNode,r=o.handleEvent,i=o.innerElementIsActive,t=o.defer,e=o.AttachmentView.attachmentSelector,o.CompositionController=function(l){function c(t,n){this.element=t,this.composition=n,this.didClickAttachment=a(this.didClickAttachment,this),this.didBlur=a(this.didBlur,this),this.didFocus=a(this.didFocus,this),this.documentView=new o.DocumentView(this.composition.document,{element:this.element}),r("focus",{onElement:this.element,withCallback:this.didFocus}),r("blur",{onElement:this.element,withCallback:this.didBlur}),r("click",{onElement:this.element,matchingSelector:"a[contenteditable=false]",preventDefault:!0}),r("mousedown",{onElement:this.element,matchingSelector:e,withCallback:this.didClickAttachment}),r("click",{onElement:this.element,matchingSelector:"a"+e,preventDefault:!0})}return s(c,l),c.prototype.didFocus=function(){var e,t,n;return e=function(e){return function(){var t;return e.focused?void 0:(e.focused=!0,null!=(t=e.delegate)&&"function"==typeof t.compositionControllerDidFocus?t.compositionControllerDidFocus():void 0)}}(this),null!=(t=null!=(n=this.blurPromise)?n.then(e):void 0)?t:e()},c.prototype.didBlur=function(){return this.blurPromise=new Promise(function(e){return function(n){return t((function(){var t;return i(e.element)||(e.focused=null,null!=(t=e.delegate)&&"function"==typeof t.compositionControllerDidBlur&&t.compositionControllerDidBlur()),e.blurPromise=null,n()}))}}(this))},c.prototype.didClickAttachment=function(e,t){var r,i,o;return r=this.findAttachmentForElement(t),i=null!=n(e.target,{matchingSelector:"figcaption"}),null!=(o=this.delegate)&&"function"==typeof o.compositionControllerDidSelectAttachment?o.compositionControllerDidSelectAttachment(r,{editCaption:i}):void 0},c.prototype.getSerializableElement=function(){return this.isEditingAttachment()?this.documentView.shadowElement:this.element},c.prototype.render=function(){var e,t,n;return this.revision!==this.composition.revision&&(this.documentView.setDocument(this.composition.document),this.documentView.render(),this.revision=this.composition.revision),this.canSyncDocumentView()&&!this.documentView.isSynced()&&(null!=(e=this.delegate)&&"function"==typeof e.compositionControllerWillSyncDocumentView&&e.compositionControllerWillSyncDocumentView(),this.documentView.sync(),null!=(t=this.delegate)&&"function"==typeof t.compositionControllerDidSyncDocumentView&&t.compositionControllerDidSyncDocumentView()),null!=(n=this.delegate)&&"function"==typeof n.compositionControllerDidRender?n.compositionControllerDidRender():void 0},c.prototype.rerenderViewForObject=function(e){return this.invalidateViewForObject(e),this.render()},c.prototype.invalidateViewForObject=function(e){return this.documentView.invalidateViewForObject(e)},c.prototype.isViewCachingEnabled=function(){return this.documentView.isViewCachingEnabled()},c.prototype.enableViewCaching=function(){return this.documentView.enableViewCaching()},c.prototype.disableViewCaching=function(){return this.documentView.disableViewCaching()},c.prototype.refreshViewCache=function(){return this.documentView.garbageCollectCachedViews()},c.prototype.isEditingAttachment=function(){return null!=this.attachmentEditor},c.prototype.installAttachmentEditorForAttachment=function(e,t){var n,r,i;if((null!=(i=this.attachmentEditor)?i.attachment:void 0)!==e&&(r=this.documentView.findElementForObject(e)))return this.uninstallAttachmentEditor(),n=this.composition.document.getAttachmentPieceForAttachment(e),this.attachmentEditor=new o.AttachmentEditorController(n,r,this.element,t),this.attachmentEditor.delegate=this},c.prototype.uninstallAttachmentEditor=function(){var e;return null!=(e=this.attachmentEditor)?e.uninstall():void 0},c.prototype.didUninstallAttachmentEditor=function(){return this.attachmentEditor=null,this.render()},c.prototype.attachmentEditorDidRequestUpdatingAttributesForAttachment=function(e,t){var n;return null!=(n=this.delegate)&&"function"==typeof n.compositionControllerWillUpdateAttachment&&n.compositionControllerWillUpdateAttachment(t),this.composition.updateAttributesForAttachment(e,t)},c.prototype.attachmentEditorDidRequestRemovingAttributeForAttachment=function(e,t){var n;return null!=(n=this.delegate)&&"function"==typeof n.compositionControllerWillUpdateAttachment&&n.compositionControllerWillUpdateAttachment(t),this.composition.removeAttributeForAttachment(e,t)},c.prototype.attachmentEditorDidRequestRemovalOfAttachment=function(e){var t;return null!=(t=this.delegate)&&"function"==typeof t.compositionControllerDidRequestRemovalOfAttachment?t.compositionControllerDidRequestRemovalOfAttachment(e):void 0},c.prototype.attachmentEditorDidRequestDeselectingAttachment=function(e){var t;return null!=(t=this.delegate)&&"function"==typeof t.compositionControllerDidRequestDeselectingAttachment?t.compositionControllerDidRequestDeselectingAttachment(e):void 0},c.prototype.canSyncDocumentView=function(){return!this.isEditingAttachment()},c.prototype.findAttachmentForElement=function(e){return this.composition.document.getAttachmentById(parseInt(e.dataset.trixId,10))},c}(o.BasicObject)}.call(this),function(){var e,t,n,r=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var r in t)a.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty;t=o.handleEvent,n=o.triggerEvent,e=o.findClosestElementFromNode,o.ToolbarController=function(o){function a(e){this.element=e,this.didKeyDownDialogInput=r(this.didKeyDownDialogInput,this),this.didClickDialogButton=r(this.didClickDialogButton,this),this.didClickAttributeButton=r(this.didClickAttributeButton,this),this.didClickActionButton=r(this.didClickActionButton,this),this.attributes={},this.actions={},this.resetDialogInputs(),t("mousedown",{onElement:this.element,matchingSelector:s,withCallback:this.didClickActionButton}),t("mousedown",{onElement:this.element,matchingSelector:c,withCallback:this.didClickAttributeButton}),t("click",{onElement:this.element,matchingSelector:v,preventDefault:!0}),t("click",{onElement:this.element,matchingSelector:u,withCallback:this.didClickDialogButton}),t("keydown",{onElement:this.element,matchingSelector:p,withCallback:this.didKeyDownDialogInput})}var s,l,c,u,p,d,f,h,m,g,v;return i(a,o),v=(c="[data-trix-attribute]")+", "+(s="[data-trix-action]"),l=(d="[data-trix-dialog]")+"[data-trix-active]",u=d+" [data-trix-method]",p=d+" [data-trix-input]",a.prototype.didClickActionButton=function(e,t){var n,r,i;return null!=(r=this.delegate)&&r.toolbarDidClickButton(),e.preventDefault(),n=f(t),this.getDialog(n)?this.toggleDialog(n):null!=(i=this.delegate)?i.toolbarDidInvokeAction(n):void 0},a.prototype.didClickAttributeButton=function(e,t){var n,r,i;return null!=(r=this.delegate)&&r.toolbarDidClickButton(),e.preventDefault(),n=h(t),this.getDialog(n)?this.toggleDialog(n):null!=(i=this.delegate)&&i.toolbarDidToggleAttribute(n),this.refreshAttributeButtons()},a.prototype.didClickDialogButton=function(t,n){var r;return r=e(n,{matchingSelector:d}),this[n.getAttribute("data-trix-method")].call(this,r)},a.prototype.didKeyDownDialogInput=function(e,t){var n,r;return 13===e.keyCode&&(e.preventDefault(),n=t.getAttribute("name"),r=this.getDialog(n),this.setAttribute(r)),27===e.keyCode?(e.preventDefault(),this.hideDialog()):void 0},a.prototype.updateActions=function(e){return this.actions=e,this.refreshActionButtons()},a.prototype.refreshActionButtons=function(){return this.eachActionButton(function(e){return function(t,n){return t.disabled=!1===e.actions[n]}}(this))},a.prototype.eachActionButton=function(e){var t,n,r,i,o;for(o=[],n=0,r=(i=this.element.querySelectorAll(s)).length;r>n;n++)t=i[n],o.push(e(t,f(t)));return o},a.prototype.updateAttributes=function(e){return this.attributes=e,this.refreshAttributeButtons()},a.prototype.refreshAttributeButtons=function(){return this.eachAttributeButton(function(e){return function(t,n){return t.disabled=!1===e.attributes[n],e.attributes[n]||e.dialogIsVisible(n)?(t.setAttribute("data-trix-active",""),t.classList.add("trix-active")):(t.removeAttribute("data-trix-active"),t.classList.remove("trix-active"))}}(this))},a.prototype.eachAttributeButton=function(e){var t,n,r,i,o;for(o=[],n=0,r=(i=this.element.querySelectorAll(c)).length;r>n;n++)t=i[n],o.push(e(t,h(t)));return o},a.prototype.applyKeyboardCommand=function(e){var t,r,i,o,a,s;for(o=JSON.stringify(e.sort()),i=0,a=(s=this.element.querySelectorAll("[data-trix-key]")).length;a>i;i++)if(r=(t=s[i]).getAttribute("data-trix-key").split("+"),JSON.stringify(r.sort())===o)return n("mousedown",{onElement:t}),!0;return!1},a.prototype.dialogIsVisible=function(e){var t;return(t=this.getDialog(e))?t.hasAttribute("data-trix-active"):void 0},a.prototype.toggleDialog=function(e){return this.dialogIsVisible(e)?this.hideDialog():this.showDialog(e)},a.prototype.showDialog=function(e){var t,n,r,i,o,a,s,l,c;for(this.hideDialog(),null!=(a=this.delegate)&&a.toolbarWillShowDialog(),(n=this.getDialog(e)).setAttribute("data-trix-active",""),n.classList.add("trix-active"),r=0,o=(s=n.querySelectorAll("input[disabled]")).length;o>r;r++)s[r].removeAttribute("disabled");return(t=h(n))&&(i=g(n,e))&&(i.value=null!=(l=this.attributes[t])?l:"",i.select()),null!=(c=this.delegate)?c.toolbarDidShowDialog(e):void 0},a.prototype.setAttribute=function(e){var t,n,r;return t=h(e),(n=g(e,t)).willValidate&&!n.checkValidity()?(n.setAttribute("data-trix-validate",""),n.classList.add("trix-validate"),n.focus()):(null!=(r=this.delegate)&&r.toolbarDidUpdateAttribute(t,n.value),this.hideDialog())},a.prototype.removeAttribute=function(e){var t,n;return t=h(e),null!=(n=this.delegate)&&n.toolbarDidRemoveAttribute(t),this.hideDialog()},a.prototype.hideDialog=function(){var e,t;return(e=this.element.querySelector(l))?(e.removeAttribute("data-trix-active"),e.classList.remove("trix-active"),this.resetDialogInputs(),null!=(t=this.delegate)?t.toolbarDidHideDialog(m(e)):void 0):void 0},a.prototype.resetDialogInputs=function(){var e,t,n,r,i;for(i=[],e=0,n=(r=this.element.querySelectorAll(p)).length;n>e;e++)(t=r[e]).setAttribute("disabled","disabled"),t.removeAttribute("data-trix-validate"),i.push(t.classList.remove("trix-validate"));return i},a.prototype.getDialog=function(e){return this.element.querySelector("[data-trix-dialog="+e+"]")},g=function(e,t){return null==t&&(t=h(e)),e.querySelector("[data-trix-input][name='"+t+"']")},f=function(e){return e.getAttribute("data-trix-action")},h=function(e){var t;return null!=(t=e.getAttribute("data-trix-attribute"))?t:e.getAttribute("data-trix-dialog-attribute")},m=function(e){return e.getAttribute("data-trix-dialog")},a}(o.BasicObject)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.ImagePreloadOperation=function(t){function n(e){this.url=e}return e(n,t),n.prototype.perform=function(e){var t;return(t=new Image).onload=function(n){return function(){return t.width=n.width=t.naturalWidth,t.height=n.height=t.naturalHeight,e(!0,t)}}(this),t.onerror=function(){return e(!1)},t.src=this.url},n}(o.Operation)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.Attachment=function(t){function n(e){null==e&&(e={}),this.releaseFile=function(e,t){return function(){return e.apply(t,arguments)}}(this.releaseFile,this),n.__super__.constructor.apply(this,arguments),this.attributes=o.Hash.box(e),this.didChangeAttributes()}return e(n,t),n.previewablePattern=/^image(\/(gif|png|jpe?g)|$)/,n.attachmentForFile=function(e){var t;return(t=new this(this.attributesForFile(e))).setFile(e),t},n.attributesForFile=function(e){return new o.Hash({filename:e.name,filesize:e.size,contentType:e.type})},n.fromJSON=function(e){return new this(e)},n.prototype.getAttribute=function(e){return this.attributes.get(e)},n.prototype.hasAttribute=function(e){return this.attributes.has(e)},n.prototype.getAttributes=function(){return this.attributes.toObject()},n.prototype.setAttributes=function(e){var t,n,r;return null==e&&(e={}),t=this.attributes.merge(e),this.attributes.isEqualTo(t)?void 0:(this.attributes=t,this.didChangeAttributes(),null!=(n=this.previewDelegate)&&"function"==typeof n.attachmentDidChangeAttributes&&n.attachmentDidChangeAttributes(this),null!=(r=this.delegate)&&"function"==typeof r.attachmentDidChangeAttributes?r.attachmentDidChangeAttributes(this):void 0)},n.prototype.didChangeAttributes=function(){return this.isPreviewable()?this.preloadURL():void 0},n.prototype.isPending=function(){return null!=this.file&&!(this.getURL()||this.getHref())},n.prototype.isPreviewable=function(){return this.attributes.has("previewable")?this.attributes.get("previewable"):this.constructor.previewablePattern.test(this.getContentType())},n.prototype.getType=function(){return this.hasContent()?"content":this.isPreviewable()?"preview":"file"},n.prototype.getURL=function(){return this.attributes.get("url")},n.prototype.getHref=function(){return this.attributes.get("href")},n.prototype.getFilename=function(){var e;return null!=(e=this.attributes.get("filename"))?e:""},n.prototype.getFilesize=function(){return this.attributes.get("filesize")},n.prototype.getFormattedFilesize=function(){var e;return"number"==typeof(e=this.attributes.get("filesize"))?o.config.fileSize.formatter(e):""},n.prototype.getExtension=function(){var e;return null!=(e=this.getFilename().match(/\.(\w+)$/))?e[1].toLowerCase():void 0},n.prototype.getContentType=function(){return this.attributes.get("contentType")},n.prototype.hasContent=function(){return this.attributes.has("content")},n.prototype.getContent=function(){return this.attributes.get("content")},n.prototype.getWidth=function(){return this.attributes.get("width")},n.prototype.getHeight=function(){return this.attributes.get("height")},n.prototype.getFile=function(){return this.file},n.prototype.setFile=function(e){return this.file=e,this.isPreviewable()?this.preloadFile():void 0},n.prototype.releaseFile=function(){return this.releasePreloadedFile(),this.file=null},n.prototype.getUploadProgress=function(){var e;return null!=(e=this.uploadProgress)?e:0},n.prototype.setUploadProgress=function(e){var t;return this.uploadProgress!==e?(this.uploadProgress=e,null!=(t=this.uploadProgressDelegate)&&"function"==typeof t.attachmentDidChangeUploadProgress?t.attachmentDidChangeUploadProgress(this):void 0):void 0},n.prototype.toJSON=function(){return this.getAttributes()},n.prototype.getCacheKey=function(){return[n.__super__.getCacheKey.apply(this,arguments),this.attributes.getCacheKey(),this.getPreviewURL()].join("/")},n.prototype.getPreviewURL=function(){return this.previewURL||this.preloadingURL},n.prototype.setPreviewURL=function(e){var t,n;return e!==this.getPreviewURL()?(this.previewURL=e,null!=(t=this.previewDelegate)&&"function"==typeof t.attachmentDidChangeAttributes&&t.attachmentDidChangeAttributes(this),null!=(n=this.delegate)&&"function"==typeof n.attachmentDidChangePreviewURL?n.attachmentDidChangePreviewURL(this):void 0):void 0},n.prototype.preloadURL=function(){return this.preload(this.getURL(),this.releaseFile)},n.prototype.preloadFile=function(){return this.file?(this.fileObjectURL=URL.createObjectURL(this.file),this.preload(this.fileObjectURL)):void 0},n.prototype.releasePreloadedFile=function(){return this.fileObjectURL?(URL.revokeObjectURL(this.fileObjectURL),this.fileObjectURL=null):void 0},n.prototype.preload=function(e,t){return e&&e!==this.getPreviewURL()?(this.preloadingURL=e,new o.ImagePreloadOperation(e).then(function(n){return function(r){var i,o;return o=r.width,i=r.height,n.getWidth()&&n.getHeight()||n.setAttributes({width:o,height:i}),n.preloadingURL=null,n.setPreviewURL(e),"function"==typeof t?t():void 0}}(this)).catch(function(e){return function(){return e.preloadingURL=null,"function"==typeof t?t():void 0}}(this))):void 0},n}(o.Object)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.Piece=function(t){function n(e,t){null==t&&(t={}),n.__super__.constructor.apply(this,arguments),this.attributes=o.Hash.box(t)}return e(n,t),n.types={},n.registerType=function(e,t){return t.type=e,this.types[e]=t},n.fromJSON=function(e){var t;return(t=this.types[e.type])?t.fromJSON(e):void 0},n.prototype.copyWithAttributes=function(e){return new this.constructor(this.getValue(),e)},n.prototype.copyWithAdditionalAttributes=function(e){return this.copyWithAttributes(this.attributes.merge(e))},n.prototype.copyWithoutAttribute=function(e){return this.copyWithAttributes(this.attributes.remove(e))},n.prototype.copy=function(){return this.copyWithAttributes(this.attributes)},n.prototype.getAttribute=function(e){return this.attributes.get(e)},n.prototype.getAttributesHash=function(){return this.attributes},n.prototype.getAttributes=function(){return this.attributes.toObject()},n.prototype.getCommonAttributes=function(){var e,t,n;return(n=pieceList.getPieceAtIndex(0))?(e=n.attributes,t=e.getKeys(),pieceList.eachPiece((function(n){return t=e.getKeysCommonToHash(n.attributes),e=e.slice(t)})),e.toObject()):{}},n.prototype.hasAttribute=function(e){return this.attributes.has(e)},n.prototype.hasSameStringValueAsPiece=function(e){return null!=e&&this.toString()===e.toString()},n.prototype.hasSameAttributesAsPiece=function(e){return null!=e&&(this.attributes===e.attributes||this.attributes.isEqualTo(e.attributes))},n.prototype.isBlockBreak=function(){return!1},n.prototype.isEqualTo=function(e){return n.__super__.isEqualTo.apply(this,arguments)||this.hasSameConstructorAs(e)&&this.hasSameStringValueAsPiece(e)&&this.hasSameAttributesAsPiece(e)},n.prototype.isEmpty=function(){return 0===this.length},n.prototype.isSerializable=function(){return!0},n.prototype.toJSON=function(){return{type:this.constructor.type,attributes:this.getAttributes()}},n.prototype.contentsForInspection=function(){return{type:this.constructor.type,attributes:this.attributes.inspect()}},n.prototype.canBeGrouped=function(){return this.hasAttribute("href")},n.prototype.canBeGroupedWith=function(e){return this.getAttribute("href")===e.getAttribute("href")},n.prototype.getLength=function(){return this.length},n.prototype.canBeConsolidatedWith=function(){return!1},n}(o.Object)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.Piece.registerType("attachment",o.AttachmentPiece=function(t){function n(e){this.attachment=e,n.__super__.constructor.apply(this,arguments),this.length=1,this.ensureAttachmentExclusivelyHasAttribute("href"),this.attachment.hasContent()||this.removeProhibitedAttributes()}return e(n,t),n.fromJSON=function(e){return new this(o.Attachment.fromJSON(e.attachment),e.attributes)},n.permittedAttributes=["caption","presentation"],n.prototype.ensureAttachmentExclusivelyHasAttribute=function(e){return this.hasAttribute(e)?(this.attachment.hasAttribute(e)||this.attachment.setAttributes(this.attributes.slice(e)),this.attributes=this.attributes.remove(e)):void 0},n.prototype.removeProhibitedAttributes=function(){var e;return(e=this.attributes.slice(this.constructor.permittedAttributes)).isEqualTo(this.attributes)?void 0:this.attributes=e},n.prototype.getValue=function(){return this.attachment},n.prototype.isSerializable=function(){return!this.attachment.isPending()},n.prototype.getCaption=function(){var e;return null!=(e=this.attributes.get("caption"))?e:""},n.prototype.isEqualTo=function(e){var t;return n.__super__.isEqualTo.apply(this,arguments)&&this.attachment.id===(null!=e&&null!=(t=e.attachment)?t.id:void 0)},n.prototype.toString=function(){return o.OBJECT_REPLACEMENT_CHARACTER},n.prototype.toJSON=function(){var e;return(e=n.__super__.toJSON.apply(this,arguments)).attachment=this.attachment,e},n.prototype.getCacheKey=function(){return[n.__super__.getCacheKey.apply(this,arguments),this.attachment.getCacheKey()].join("/")},n.prototype.toConsole=function(){return JSON.stringify(this.toString())},n}(o.Piece))}.call(this),function(){var e,t=function(e,t){function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n={}.hasOwnProperty;e=o.normalizeNewlines,o.Piece.registerType("string",o.StringPiece=function(n){function r(t){r.__super__.constructor.apply(this,arguments),this.string=e(t),this.length=this.string.length}return t(r,n),r.fromJSON=function(e){return new this(e.string,e.attributes)},r.prototype.getValue=function(){return this.string},r.prototype.toString=function(){return this.string.toString()},r.prototype.isBlockBreak=function(){return"\n"===this.toString()&&!0===this.getAttribute("blockBreak")},r.prototype.toJSON=function(){var e;return(e=r.__super__.toJSON.apply(this,arguments)).string=this.string,e},r.prototype.canBeConsolidatedWith=function(e){return null!=e&&this.hasSameConstructorAs(e)&&this.hasSameAttributesAsPiece(e)},r.prototype.consolidateWith=function(e){return new this.constructor(this.toString()+e.toString(),this.attributes)},r.prototype.splitAtOffset=function(e){var t,n;return 0===e?(t=null,n=this):e===this.length?(t=this,n=null):(t=new this.constructor(this.string.slice(0,e),this.attributes),n=new this.constructor(this.string.slice(e),this.attributes)),[t,n]},r.prototype.toConsole=function(){var e;return(e=this.string).length>15&&(e=e.slice(0,14)+"…"),JSON.stringify(e.toString())},r}(o.Piece))}.call(this),function(){var e,t=function(e,t){function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n={}.hasOwnProperty,r=[].slice;e=o.spliceArray,o.SplittableList=function(n){function i(e){null==e&&(e=[]),i.__super__.constructor.apply(this,arguments),this.objects=e.slice(0),this.length=this.objects.length}var o,a,s;return t(i,n),i.box=function(e){return e instanceof this?e:new this(e)},i.prototype.indexOf=function(e){return this.objects.indexOf(e)},i.prototype.splice=function(){var t;return t=1<=arguments.length?r.call(arguments,0):[],new this.constructor(e.apply(null,[this.objects].concat(r.call(t))))},i.prototype.eachObject=function(e){var t,n,r,i,o,a;for(a=[],n=t=0,r=(o=this.objects).length;r>t;n=++t)i=o[n],a.push(e(i,n));return a},i.prototype.insertObjectAtIndex=function(e,t){return this.splice(t,0,e)},i.prototype.insertSplittableListAtIndex=function(e,t){return this.splice.apply(this,[t,0].concat(r.call(e.objects)))},i.prototype.insertSplittableListAtPosition=function(e,t){var n,r,i;return r=(i=this.splitObjectAtPosition(t))[0],n=i[1],new this.constructor(r).insertSplittableListAtIndex(e,n)},i.prototype.editObjectAtIndex=function(e,t){return this.replaceObjectAtIndex(t(this.objects[e]),e)},i.prototype.replaceObjectAtIndex=function(e,t){return this.splice(t,1,e)},i.prototype.removeObjectAtIndex=function(e){return this.splice(e,1)},i.prototype.getObjectAtIndex=function(e){return this.objects[e]},i.prototype.getSplittableListInRange=function(e){var t,n,r,i;return n=(r=this.splitObjectsAtRange(e))[0],t=r[1],i=r[2],new this.constructor(n.slice(t,i+1))},i.prototype.selectSplittableList=function(e){var t,n;return n=function(){var n,r,i,o;for(o=[],n=0,r=(i=this.objects).length;r>n;n++)t=i[n],e(t)&&o.push(t);return o}.call(this),new this.constructor(n)},i.prototype.removeObjectsInRange=function(e){var t,n,r,i;return n=(r=this.splitObjectsAtRange(e))[0],t=r[1],i=r[2],new this.constructor(n).splice(t,i-t+1)},i.prototype.transformObjectsInRange=function(e,t){var n,r,i,o,a,s,l;return a=this.splitObjectsAtRange(e),o=a[0],r=a[1],s=a[2],l=function(){var e,a,l;for(l=[],n=e=0,a=o.length;a>e;n=++e)i=o[n],l.push(n>=r&&s>=n?t(i):i);return l}(),new this.constructor(l)},i.prototype.splitObjectsAtRange=function(e){var t,n,r,i,a;return n=(i=this.splitObjectAtPosition(s(e)))[0],t=i[1],r=i[2],[n=(a=new this.constructor(n).splitObjectAtPosition(o(e)+r))[0],t,a[1]-1]},i.prototype.getObjectAtPosition=function(e){var t,n;return t=(n=this.findIndexAndOffsetAtPosition(e)).index,n.offset,this.objects[t]},i.prototype.splitObjectAtPosition=function(e){var t,n,r,i,o,a,s,l,c;return t=(o=this.findIndexAndOffsetAtPosition(e)).index,i=o.offset,r=this.objects.slice(0),null!=t?0===i?(l=t,c=0):(n=(a=this.getObjectAtIndex(t).splitAtOffset(i))[0],s=a[1],r.splice(t,1,n,s),l=t+1,c=n.getLength()-i):(l=r.length,c=0),[r,l,c]},i.prototype.consolidate=function(){var e,t,n,r,i,o;for(r=[],i=this.objects[0],e=0,t=(o=this.objects.slice(1)).length;t>e;e++)n=o[e],("function"==typeof i.canBeConsolidatedWith?i.canBeConsolidatedWith(n):void 0)?i=i.consolidateWith(n):(r.push(i),i=n);return null!=i&&r.push(i),new this.constructor(r)},i.prototype.consolidateFromIndexToIndex=function(e,t){var n,i;return i=this.objects.slice(0).slice(e,t+1),n=new this.constructor(i).consolidate().toArray(),this.splice.apply(this,[e,i.length].concat(r.call(n)))},i.prototype.findIndexAndOffsetAtPosition=function(e){var t,n,r,i,o,a;for(t=0,r=n=0,i=(a=this.objects).length;i>n;r=++n){if(o=t+a[r].getLength(),e>=t&&o>e)return{index:r,offset:e-t};t=o}return{index:null,offset:null}},i.prototype.findPositionAtIndexAndOffset=function(e,t){var n,r,i,o,a,s;for(a=0,n=r=0,i=(s=this.objects).length;i>r;n=++r)if(o=s[n],e>n)a+=o.getLength();else if(n===e){a+=t;break}return a},i.prototype.getEndPosition=function(){var e,t;return null!=this.endPosition?this.endPosition:this.endPosition=function(){var n,r,i;for(t=0,n=0,r=(i=this.objects).length;r>n;n++)e=i[n],t+=e.getLength();return t}.call(this)},i.prototype.toString=function(){return this.objects.join("")},i.prototype.toArray=function(){return this.objects.slice(0)},i.prototype.toJSON=function(){return this.toArray()},i.prototype.isEqualTo=function(e){return i.__super__.isEqualTo.apply(this,arguments)||a(this.objects,null!=e?e.objects:void 0)},a=function(e,t){var n,r,i,o,a;if(null==t&&(t=[]),e.length!==t.length)return!1;for(a=!0,r=n=0,i=e.length;i>n;r=++n)o=e[r],a&&!o.isEqualTo(t[r])&&(a=!1);return a},i.prototype.contentsForInspection=function(){var e;return{objects:"["+function(){var t,n,r,i;for(i=[],t=0,n=(r=this.objects).length;n>t;t++)e=r[t],i.push(e.inspect());return i}.call(this).join(", ")+"]"}},s=function(e){return e[0]},o=function(e){return e[1]},i}(o.Object)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.Text=function(t){function n(e){var t;null==e&&(e=[]),n.__super__.constructor.apply(this,arguments),this.pieceList=new o.SplittableList(function(){var n,r,i;for(i=[],n=0,r=e.length;r>n;n++)(t=e[n]).isEmpty()||i.push(t);return i}())}return e(n,t),n.textForAttachmentWithAttributes=function(e,t){return new this([new o.AttachmentPiece(e,t)])},n.textForStringWithAttributes=function(e,t){return new this([new o.StringPiece(e,t)])},n.fromJSON=function(e){var t;return new this(function(){var n,r,i;for(i=[],n=0,r=e.length;r>n;n++)t=e[n],i.push(o.Piece.fromJSON(t));return i}())},n.prototype.copy=function(){return this.copyWithPieceList(this.pieceList)},n.prototype.copyWithPieceList=function(e){return new this.constructor(e.consolidate().toArray())},n.prototype.copyUsingObjectMap=function(e){var t,n;return n=function(){var n,r,i,o,a;for(a=[],n=0,r=(i=this.getPieces()).length;r>n;n++)t=i[n],a.push(null!=(o=e.find(t))?o:t);return a}.call(this),new this.constructor(n)},n.prototype.appendText=function(e){return this.insertTextAtPosition(e,this.getLength())},n.prototype.insertTextAtPosition=function(e,t){return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(e.pieceList,t))},n.prototype.removeTextAtRange=function(e){return this.copyWithPieceList(this.pieceList.removeObjectsInRange(e))},n.prototype.replaceTextAtRange=function(e,t){return this.removeTextAtRange(t).insertTextAtPosition(e,t[0])},n.prototype.moveTextFromRangeToPosition=function(e,t){var n,r;if(!(e[0]<=t&&t<=e[1]))return n=(r=this.getTextAtRange(e)).getLength(),e[0]<t&&(t-=n),this.removeTextAtRange(e).insertTextAtPosition(r,t)},n.prototype.addAttributeAtRange=function(e,t,n){var r;return(r={})[e]=t,this.addAttributesAtRange(r,n)},n.prototype.addAttributesAtRange=function(e,t){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(t,(function(t){return t.copyWithAdditionalAttributes(e)})))},n.prototype.removeAttributeAtRange=function(e,t){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(t,(function(t){return t.copyWithoutAttribute(e)})))},n.prototype.setAttributesAtRange=function(e,t){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(t,(function(t){return t.copyWithAttributes(e)})))},n.prototype.getAttributesAtPosition=function(e){var t,n;return null!=(t=null!=(n=this.pieceList.getObjectAtPosition(e))?n.getAttributes():void 0)?t:{}},n.prototype.getCommonAttributes=function(){var e,t;return e=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.pieceList.toArray()).length;n>e;e++)t=r[e],i.push(t.getAttributes());return i}.call(this),o.Hash.fromCommonAttributesOfObjects(e).toObject()},n.prototype.getCommonAttributesAtRange=function(e){var t;return null!=(t=this.getTextAtRange(e).getCommonAttributes())?t:{}},n.prototype.getExpandedRangeForAttributeAtOffset=function(e,t){var n,r,i;for(n=i=t,r=this.getLength();n>0&&this.getCommonAttributesAtRange([n-1,i])[e];)n--;for(;r>i&&this.getCommonAttributesAtRange([t,i+1])[e];)i++;return[n,i]},n.prototype.getTextAtRange=function(e){return this.copyWithPieceList(this.pieceList.getSplittableListInRange(e))},n.prototype.getStringAtRange=function(e){return this.pieceList.getSplittableListInRange(e).toString()},n.prototype.getStringAtPosition=function(e){return this.getStringAtRange([e,e+1])},n.prototype.startsWithString=function(e){return this.getStringAtRange([0,e.length])===e},n.prototype.endsWithString=function(e){var t;return t=this.getLength(),this.getStringAtRange([t-e.length,t])===e},n.prototype.getAttachmentPieces=function(){var e,t,n,r,i;for(i=[],e=0,t=(r=this.pieceList.toArray()).length;t>e;e++)null!=(n=r[e]).attachment&&i.push(n);return i},n.prototype.getAttachments=function(){var e,t,n,r,i;for(i=[],e=0,t=(r=this.getAttachmentPieces()).length;t>e;e++)n=r[e],i.push(n.attachment);return i},n.prototype.getAttachmentAndPositionById=function(e){var t,n,r,i,o,a;for(i=0,t=0,n=(o=this.pieceList.toArray()).length;n>t;t++){if((null!=(a=(r=o[t]).attachment)?a.id:void 0)===e)return{attachment:r.attachment,position:i};i+=r.length}return{attachment:null,position:null}},n.prototype.getAttachmentById=function(e){var t,n;return t=(n=this.getAttachmentAndPositionById(e)).attachment,n.position,t},n.prototype.getRangeOfAttachment=function(e){var t,n;return e=(n=this.getAttachmentAndPositionById(e.id)).attachment,t=n.position,null!=e?[t,t+1]:void 0},n.prototype.updateAttributesForAttachment=function(e,t){var n;return(n=this.getRangeOfAttachment(t))?this.addAttributesAtRange(e,n):this},n.prototype.getLength=function(){return this.pieceList.getEndPosition()},n.prototype.isEmpty=function(){return 0===this.getLength()},n.prototype.isEqualTo=function(e){var t;return n.__super__.isEqualTo.apply(this,arguments)||(null!=e&&null!=(t=e.pieceList)?t.isEqualTo(this.pieceList):void 0)},n.prototype.isBlockBreak=function(){return 1===this.getLength()&&this.pieceList.getObjectAtIndex(0).isBlockBreak()},n.prototype.eachPiece=function(e){return this.pieceList.eachObject(e)},n.prototype.getPieces=function(){return this.pieceList.toArray()},n.prototype.getPieceAtPosition=function(e){return this.pieceList.getObjectAtPosition(e)},n.prototype.contentsForInspection=function(){return{pieceList:this.pieceList.inspect()}},n.prototype.toSerializableText=function(){var e;return e=this.pieceList.selectSplittableList((function(e){return e.isSerializable()})),this.copyWithPieceList(e)},n.prototype.toString=function(){return this.pieceList.toString()},n.prototype.toJSON=function(){return this.pieceList.toJSON()},n.prototype.toConsole=function(){var e;return JSON.stringify(function(){var t,n,r,i;for(i=[],t=0,n=(r=this.pieceList.toArray()).length;n>t;t++)e=r[t],i.push(JSON.parse(e.toConsole()));return i}.call(this))},n.prototype.getDirection=function(){return o.getDirection(this.toString())},n.prototype.isRTL=function(){return"rtl"===this.getDirection()},n}(o.Object)}.call(this),function(){var e,t,n,r,i=function(e,t){function n(){this.constructor=e}for(var r in t)a.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty,s=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},l=[].slice;e=o.arraysAreEqual,r=o.spliceArray,t=o.getBlockConfig,o.getBlockAttributeNames,n=o.getListAttributeNames,o.Block=function(a){function c(e,t){null==e&&(e=new o.Text),null==t&&(t=[]),c.__super__.constructor.apply(this,arguments),this.text=p(e),this.attributes=t}var u,p,d,f,h,m,g,v,y;return i(c,a),c.fromJSON=function(e){return new this(o.Text.fromJSON(e.text),e.attributes)},c.prototype.isEmpty=function(){return this.text.isBlockBreak()},c.prototype.isEqualTo=function(t){return c.__super__.isEqualTo.apply(this,arguments)||this.text.isEqualTo(null!=t?t.text:void 0)&&e(this.attributes,null!=t?t.attributes:void 0)},c.prototype.copyWithText=function(e){return new this.constructor(e,this.attributes)},c.prototype.copyWithoutText=function(){return this.copyWithText(null)},c.prototype.copyWithAttributes=function(e){return new this.constructor(this.text,e)},c.prototype.copyWithoutAttributes=function(){return this.copyWithAttributes(null)},c.prototype.copyUsingObjectMap=function(e){var t;return this.copyWithText((t=e.find(this.text))?t:this.text.copyUsingObjectMap(e))},c.prototype.addAttribute=function(e){var t;return t=this.attributes.concat(f(e)),this.copyWithAttributes(t)},c.prototype.removeAttribute=function(e){var n,r;return r=t(e).listAttribute,n=m(m(this.attributes,e),r),this.copyWithAttributes(n)},c.prototype.removeLastAttribute=function(){return this.removeAttribute(this.getLastAttribute())},c.prototype.getLastAttribute=function(){return h(this.attributes)},c.prototype.getAttributes=function(){return this.attributes.slice(0)},c.prototype.getAttributeLevel=function(){return this.attributes.length},c.prototype.getAttributeAtLevel=function(e){return this.attributes[e-1]},c.prototype.hasAttribute=function(e){return s.call(this.attributes,e)>=0},c.prototype.hasAttributes=function(){return this.getAttributeLevel()>0},c.prototype.getLastNestableAttribute=function(){return h(this.getNestableAttributes())},c.prototype.getNestableAttributes=function(){var e,n,r,i,o;for(o=[],n=0,r=(i=this.attributes).length;r>n;n++)e=i[n],t(e).nestable&&o.push(e);return o},c.prototype.getNestingLevel=function(){return this.getNestableAttributes().length},c.prototype.decreaseNestingLevel=function(){var e;return(e=this.getLastNestableAttribute())?this.removeAttribute(e):this},c.prototype.increaseNestingLevel=function(){var e,t,n;return(e=this.getLastNestableAttribute())?(n=this.attributes.lastIndexOf(e),t=r.apply(null,[this.attributes,n+1,0].concat(l.call(f(e)))),this.copyWithAttributes(t)):this},c.prototype.getListItemAttributes=function(){var e,n,r,i,o;for(o=[],n=0,r=(i=this.attributes).length;r>n;n++)e=i[n],t(e).listAttribute&&o.push(e);return o},c.prototype.isListItem=function(){var e;return null!=(e=t(this.getLastAttribute()))?e.listAttribute:void 0},c.prototype.isTerminalBlock=function(){var e;return null!=(e=t(this.getLastAttribute()))?e.terminal:void 0},c.prototype.breaksOnReturn=function(){var e;return null!=(e=t(this.getLastAttribute()))?e.breakOnReturn:void 0},c.prototype.findLineBreakInDirectionFromPosition=function(e,t){var n,r;return r=this.toString(),-1!==(n=function(){switch(e){case"forward":return r.indexOf("\n",t);case"backward":return r.slice(0,t).lastIndexOf("\n")}}())?n:void 0},c.prototype.contentsForInspection=function(){return{text:this.text.inspect(),attributes:this.attributes}},c.prototype.toString=function(){return this.text.toString()},c.prototype.toJSON=function(){return{text:this.text,attributes:this.attributes}},c.prototype.getDirection=function(){return this.text.getDirection()},c.prototype.isRTL=function(){return this.text.isRTL()},c.prototype.getLength=function(){return this.text.getLength()},c.prototype.canBeConsolidatedWith=function(e){return!this.hasAttributes()&&!e.hasAttributes()&&this.getDirection()===e.getDirection()},c.prototype.consolidateWith=function(e){var t,n;return t=o.Text.textForStringWithAttributes("\n"),n=this.getTextWithoutBlockBreak().appendText(t),this.copyWithText(n.appendText(e.text))},c.prototype.splitAtOffset=function(e){var t,n;return 0===e?(t=null,n=this):e===this.getLength()?(t=this,n=null):(t=this.copyWithText(this.text.getTextAtRange([0,e])),n=this.copyWithText(this.text.getTextAtRange([e,this.getLength()]))),[t,n]},c.prototype.getBlockBreakPosition=function(){return this.text.getLength()-1},c.prototype.getTextWithoutBlockBreak=function(){return g(this.text)?this.text.getTextAtRange([0,this.getBlockBreakPosition()]):this.text.copy()},c.prototype.canBeGrouped=function(e){return this.attributes[e]},c.prototype.canBeGroupedWith=function(e,r){var i,o,a,l;return o=(a=e.getAttributes())[r],!((i=this.attributes[r])!==o||!1===t(i).group&&(l=a[r+1],s.call(n(),l)<0)||this.getDirection()!==e.getDirection()&&!e.isEmpty())},p=function(e){return e=y(e),u(e)},y=function(e){var t,n,r,i,a,s;return i=!1,s=e.getPieces(),n=2<=s.length?l.call(s,0,t=s.length-1):(t=0,[]),null==(r=s[t++])?e:(n=function(){var e,t,r;for(r=[],e=0,t=n.length;t>e;e++)(a=n[e]).isBlockBreak()?(i=!0,r.push(v(a))):r.push(a);return r}(),i?new o.Text(l.call(n).concat([r])):e)},d=o.Text.textForStringWithAttributes("\n",{blockBreak:!0}),u=function(e){return g(e)?e:e.appendText(d)},g=function(e){var t;return 0!==(t=e.getLength())&&e.getTextAtRange([t-1,t]).isBlockBreak()},v=function(e){return e.copyWithoutAttribute("blockBreak")},f=function(e){var n;return null!=(n=t(e).listAttribute)?[n,e]:[e]},h=function(e){return e.slice(-1)[0]},m=function(e,t){var n;return-1===(n=e.lastIndexOf(t))?e:r(e,n,1)},c}(o.Object)}.call(this),function(){var e,t,n,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty,a=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},s=[].slice;t=o.tagName,n=o.walkTree,e=o.nodeIsAttachmentElement,o.HTMLSanitizer=function(i){function l(e,t){var n;n=null!=t?t:{},this.allowedAttributes=n.allowedAttributes,this.forbiddenProtocols=n.forbiddenProtocols,this.forbiddenElements=n.forbiddenElements,null==this.allowedAttributes&&(this.allowedAttributes=c),null==this.forbiddenProtocols&&(this.forbiddenProtocols=p),null==this.forbiddenElements&&(this.forbiddenElements=u),this.body=d(e)}var c,u,p,d;return r(l,i),c="style href src width height class".split(" "),p="javascript:".split(" "),u="script iframe".split(" "),l.sanitize=function(e,t){var n;return(n=new this(e,t)).sanitize(),n},l.prototype.sanitize=function(){return this.sanitizeElements(),this.normalizeListElementNesting()},l.prototype.getHTML=function(){return this.body.innerHTML},l.prototype.getBody=function(){return this.body},l.prototype.sanitizeElements=function(){var e,t,r,i,a;for(a=n(this.body),i=[];a.nextNode();)switch(r=a.currentNode,r.nodeType){case Node.ELEMENT_NODE:this.elementIsRemovable(r)?i.push(r):this.sanitizeElement(r);break;case Node.COMMENT_NODE:i.push(r)}for(e=0,t=i.length;t>e;e++)r=i[e],o.removeNode(r);return this.body},l.prototype.sanitizeElement=function(e){var t,n,r,i,o;for(e.hasAttribute("href")&&(i=e.protocol,a.call(this.forbiddenProtocols,i)>=0&&e.removeAttribute("href")),t=0,n=(o=s.call(e.attributes)).length;n>t;t++)r=o[t].name,a.call(this.allowedAttributes,r)>=0||0===r.indexOf("data-trix")||e.removeAttribute(r);return e},l.prototype.normalizeListElementNesting=function(){var e,n,r,i,o;for(e=0,n=(o=s.call(this.body.querySelectorAll("ul,ol"))).length;n>e;e++)(i=(r=o[e]).previousElementSibling)&&"li"===t(i)&&i.appendChild(r);return this.body},l.prototype.elementIsRemovable=function(e){return(null!=e?e.nodeType:void 0)===Node.ELEMENT_NODE?this.elementIsForbidden(e)||this.elementIsntSerializable(e):void 0},l.prototype.elementIsForbidden=function(e){var n;return n=t(e),a.call(this.forbiddenElements,n)>=0},l.prototype.elementIsntSerializable=function(t){return"false"===t.getAttribute("data-trix-serialize")&&!e(t)},d=function(e){var t,n,r,i,o;for(null==e&&(e=""),e=e.replace(/<\/html[^>]*>[^]*$/i,"</html>"),(t=document.implementation.createHTMLDocument("")).documentElement.innerHTML=e,r=0,i=(o=t.head.querySelectorAll("style")).length;i>r;r++)n=o[r],t.body.appendChild(n);return t.body},l}(o.BasicObject)}.call(this),function(){var e,t,n,r,i,a,s,l,c,u,p,d=function(e,t){function n(){this.constructor=e}for(var r in t)f.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},f={}.hasOwnProperty,h=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=o.arraysAreEqual,a=o.makeElement,u=o.tagName,i=o.getBlockTagNames,p=o.walkTree,r=o.findClosestElementFromNode,n=o.elementContainsNode,s=o.nodeIsAttachmentElement,l=o.normalizeSpaces,t=o.breakableWhitespacePattern,c=o.squishBreakableWhitespace,o.HTMLParser=function(f){function m(e,t){this.html=e,this.referenceElement=(null!=t?t:{}).referenceElement,this.blocks=[],this.blockElements=[],this.processedElements=[]}var g,v,y,b,x,w,A,_,C,k,S,E;return d(m,f),m.parse=function(e,t){var n;return(n=new this(e,t)).parse(),n},m.prototype.getDocument=function(){return o.Document.fromJSON(this.blocks)},m.prototype.parse=function(){var e,t;try{for(this.createHiddenContainer(),e=o.HTMLSanitizer.sanitize(this.html).getHTML(),this.containerElement.innerHTML=e,t=p(this.containerElement,{usingFilter:A});t.nextNode();)this.processNode(t.currentNode);return this.translateBlockElementMarginsToNewlines()}finally{this.removeHiddenContainer()}},m.prototype.createHiddenContainer=function(){return this.referenceElement?(this.containerElement=this.referenceElement.cloneNode(!1),this.containerElement.removeAttribute("id"),this.containerElement.setAttribute("data-trix-internal",""),this.containerElement.style.display="none",this.referenceElement.parentNode.insertBefore(this.containerElement,this.referenceElement.nextSibling)):(this.containerElement=a({tagName:"div",style:{display:"none"}}),document.body.appendChild(this.containerElement))},m.prototype.removeHiddenContainer=function(){return o.removeNode(this.containerElement)},A=function(e){return"style"===u(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},m.prototype.processNode=function(e){switch(e.nodeType){case Node.TEXT_NODE:if(!this.isInsignificantTextNode(e))return this.appendBlockForTextNode(e),this.processTextNode(e);break;case Node.ELEMENT_NODE:return this.appendBlockForElement(e),this.processElement(e)}},m.prototype.appendBlockForTextNode=function(t){var n,r,i;return(r=t.parentNode)===this.currentBlockElement&&this.isBlockElement(t.previousSibling)?this.appendStringWithAttributes("\n"):r!==this.containerElement&&!this.isBlockElement(r)||(n=this.getBlockAttributes(r),e(n,null!=(i=this.currentBlock)?i.attributes:void 0))?void 0:(this.currentBlock=this.appendBlockForAttributesWithElement(n,r),this.currentBlockElement=r)},m.prototype.appendBlockForElement=function(t){var r,i,o,a;if(o=this.isBlockElement(t),i=n(this.currentBlockElement,t),o&&!this.isBlockElement(t.firstChild)){if((!this.isInsignificantTextNode(t.firstChild)||!this.isBlockElement(t.firstElementChild))&&(r=this.getBlockAttributes(t),t.firstChild))return i&&e(r,this.currentBlock.attributes)?this.appendStringWithAttributes("\n"):(this.currentBlock=this.appendBlockForAttributesWithElement(r,t),this.currentBlockElement=t)}else if(this.currentBlockElement&&!i&&!o)return(a=this.findParentBlockElement(t))?this.appendBlockForElement(a):(this.currentBlock=this.appendEmptyBlock(),this.currentBlockElement=null)},m.prototype.findParentBlockElement=function(e){var t;for(t=e.parentElement;t&&t!==this.containerElement;){if(this.isBlockElement(t)&&h.call(this.blockElements,t)>=0)return t;t=t.parentElement}return null},m.prototype.processTextNode=function(e){var t,n;return n=e.data,v(e.parentNode)||(n=c(n),S(null!=(t=e.previousSibling)?t.textContent:void 0)&&(n=x(n))),this.appendStringWithAttributes(n,this.getTextAttributes(e.parentNode))},m.prototype.processElement=function(e){var t,n,r,i,o;if(s(e))return t=_(e,"attachment"),Object.keys(t).length&&(i=this.getTextAttributes(e),this.appendAttachmentWithAttributes(t,i),e.innerHTML=""),this.processedElements.push(e);switch(u(e)){case"br":return this.isExtraBR(e)||this.isBlockElement(e.nextSibling)||this.appendStringWithAttributes("\n",this.getTextAttributes(e)),this.processedElements.push(e);case"img":for(n in t={url:e.getAttribute("src"),contentType:"image"},r=b(e))o=r[n],t[n]=o;return this.appendAttachmentWithAttributes(t,this.getTextAttributes(e)),this.processedElements.push(e);case"tr":if(e.parentNode.firstChild!==e)return this.appendStringWithAttributes("\n");break;case"td":if(e.parentNode.firstChild!==e)return this.appendStringWithAttributes(" | ")}},m.prototype.appendBlockForAttributesWithElement=function(e,t){var n;return this.blockElements.push(t),n=g(e),this.blocks.push(n),n},m.prototype.appendEmptyBlock=function(){return this.appendBlockForAttributesWithElement([],null)},m.prototype.appendStringWithAttributes=function(e,t){return this.appendPiece(k(e,t))},m.prototype.appendAttachmentWithAttributes=function(e,t){return this.appendPiece(C(e,t))},m.prototype.appendPiece=function(e){return 0===this.blocks.length&&this.appendEmptyBlock(),this.blocks[this.blocks.length-1].text.push(e)},m.prototype.appendStringToTextAtIndex=function(e,t){var n,r;return"string"===(null!=(n=(r=this.blocks[t].text)[r.length-1])?n.type:void 0)?n.string+=e:r.push(k(e))},m.prototype.prependStringToTextAtIndex=function(e,t){var n,r;return"string"===(null!=(n=(r=this.blocks[t].text)[0])?n.type:void 0)?n.string=e+n.string:r.unshift(k(e))},k=function(e,t){return null==t&&(t={}),"string",{string:e=l(e),attributes:t,type:"string"}},C=function(e,t){return null==t&&(t={}),"attachment",{attachment:e,attributes:t,type:"attachment"}},g=function(e){return null==e&&(e={}),{text:[],attributes:e}},m.prototype.getTextAttributes=function(e){var t,n,i,a,l,c,u,p,d,f,h,m;for(t in i={},d=o.config.textAttributes)if((l=d[t]).tagName&&r(e,{matchingSelector:l.tagName,untilNode:this.containerElement}))i[t]=!0;else if(l.parser){if(m=l.parser(e)){for(n=!1,c=0,p=(f=this.findBlockElementAncestors(e)).length;p>c;c++)if(a=f[c],l.parser(a)===m){n=!0;break}n||(i[t]=m)}}else l.styleProperty&&(m=e.style[l.styleProperty])&&(i[t]=m);if(s(e))for(u in h=_(e,"attributes"))m=h[u],i[u]=m;return i},m.prototype.getBlockAttributes=function(e){var t,n,r,i;for(n=[];e&&e!==this.containerElement;){for(t in i=o.config.blockAttributes)!1!==(r=i[t]).parse&&u(e)===r.tagName&&(("function"==typeof r.test?r.test(e):void 0)||!r.test)&&(n.push(t),r.listAttribute&&n.push(r.listAttribute));e=e.parentNode}return n.reverse()},m.prototype.findBlockElementAncestors=function(e){var t,n;for(t=[];e&&e!==this.containerElement;)n=u(e),h.call(i(),n)>=0&&t.push(e),e=e.parentNode;return t},_=function(e,t){try{return JSON.parse(e.getAttribute("data-trix-"+t))}catch(e){return{}}},b=function(e){var t,n,r;return r=e.getAttribute("width"),n=e.getAttribute("height"),t={},r&&(t.width=parseInt(r,10)),n&&(t.height=parseInt(n,10)),t},m.prototype.isBlockElement=function(e){var t;if((null!=e?e.nodeType:void 0)===Node.ELEMENT_NODE&&!s(e)&&!r(e,{matchingSelector:"td",untilNode:this.containerElement}))return t=u(e),h.call(i(),t)>=0||"block"===window.getComputedStyle(e).display},m.prototype.isInsignificantTextNode=function(e){var t,n,r;if((null!=e?e.nodeType:void 0)===Node.TEXT_NODE&&E(e.data)&&(n=e.parentNode,r=e.previousSibling,t=e.nextSibling,(!w(n.previousSibling)||this.isBlockElement(n.previousSibling))&&!v(n)))return!r||this.isBlockElement(r)||!t||this.isBlockElement(t)},m.prototype.isExtraBR=function(e){return"br"===u(e)&&this.isBlockElement(e.parentNode)&&e.parentNode.lastChild===e},v=function(e){var t;return"pre"===(t=window.getComputedStyle(e).whiteSpace)||"pre-wrap"===t||"pre-line"===t},w=function(e){return e&&!S(e.textContent)},m.prototype.translateBlockElementMarginsToNewlines=function(){var e,t,n,r,i,o,a;for(e=this.getMarginOfDefaultBlockElement(),a=[],n=t=0,r=(o=this.blocks).length;r>t;n=++t)o[n],(i=this.getMarginOfBlockElementAtIndex(n))&&(i.top>2*e.top&&this.prependStringToTextAtIndex("\n",n),a.push(i.bottom>2*e.bottom?this.appendStringToTextAtIndex("\n",n):void 0));return a},m.prototype.getMarginOfBlockElementAtIndex=function(e){var t,n;return!(t=this.blockElements[e])||!t.textContent||(n=u(t),h.call(i(),n)>=0||h.call(this.processedElements,t)>=0)?void 0:y(t)},m.prototype.getMarginOfDefaultBlockElement=function(){var e;return e=a(o.config.blockAttributes.default.tagName),this.containerElement.appendChild(e),y(e)},y=function(e){var t;return"block"===(t=window.getComputedStyle(e)).display?{top:parseInt(t.marginTop),bottom:parseInt(t.marginBottom)}:void 0},x=function(e){return e.replace(RegExp("^"+t.source+"+"),"")},E=function(e){return RegExp("^"+t.source+"*$").test(e)},S=function(e){return/\s$/.test(e)},m}(o.BasicObject)}.call(this),function(){var e,t,n,r,i=function(e,t){function n(){this.constructor=e}for(var r in t)a.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty,s=[].slice,l=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=o.arraysAreEqual,n=o.normalizeRange,r=o.rangeIsCollapsed,t=o.getBlockConfig,o.Document=function(a){function c(e){null==e&&(e=[]),c.__super__.constructor.apply(this,arguments),0===e.length&&(e=[new o.Block]),this.blockList=o.SplittableList.box(e)}var u;return i(c,a),c.fromJSON=function(e){var t,n;return n=function(){var n,r,i;for(i=[],n=0,r=e.length;r>n;n++)t=e[n],i.push(o.Block.fromJSON(t));return i}(),new this(n)},c.fromHTML=function(e,t){return o.HTMLParser.parse(e,t).getDocument()},c.fromString=function(e,t){var n;return n=o.Text.textForStringWithAttributes(e,t),new this([new o.Block(n)])},c.prototype.isEmpty=function(){var e;return 1===this.blockList.length&&((e=this.getBlockAtIndex(0)).isEmpty()&&!e.hasAttributes())},c.prototype.copy=function(e){var t;return null==e&&(e={}),t=e.consolidateBlocks?this.blockList.consolidate().toArray():this.blockList.toArray(),new this.constructor(t)},c.prototype.copyUsingObjectsFromDocument=function(e){var t;return t=new o.ObjectMap(e.getObjects()),this.copyUsingObjectMap(t)},c.prototype.copyUsingObjectMap=function(e){var t,n,r;return n=function(){var n,i,o,a;for(a=[],n=0,i=(o=this.getBlocks()).length;i>n;n++)t=o[n],a.push((r=e.find(t))?r:t.copyUsingObjectMap(e));return a}.call(this),new this.constructor(n)},c.prototype.copyWithBaseBlockAttributes=function(e){var t,n,r;return null==e&&(e=[]),r=function(){var r,i,o,a;for(a=[],r=0,i=(o=this.getBlocks()).length;i>r;r++)n=o[r],t=e.concat(n.getAttributes()),a.push(n.copyWithAttributes(t));return a}.call(this),new this.constructor(r)},c.prototype.replaceBlock=function(e,t){var n;return-1===(n=this.blockList.indexOf(e))?this:new this.constructor(this.blockList.replaceObjectAtIndex(t,n))},c.prototype.insertDocumentAtRange=function(e,t){var i,o,a,s,l,c,u;return o=e.blockList,l=(t=n(t))[0],a=(c=this.locationFromPosition(l)).index,s=c.offset,u=this,i=this.getBlockAtPosition(l),r(t)&&i.isEmpty()&&!i.hasAttributes()?u=new this.constructor(u.blockList.removeObjectAtIndex(a)):i.getBlockBreakPosition()===s&&l++,u=u.removeTextAtRange(t),new this.constructor(u.blockList.insertSplittableListAtPosition(o,l))},c.prototype.mergeDocumentAtRange=function(t,r){var i,o,a,s,l,c,u,p,d,f,h,m;return h=(r=n(r))[0],f=this.locationFromPosition(h),o=this.getBlockAtIndex(f.index).getAttributes(),i=t.getBaseBlockAttributes(),m=o.slice(-i.length),e(i,m)?(u=o.slice(0,-i.length),c=t.copyWithBaseBlockAttributes(u)):c=t.copy({consolidateBlocks:!0}).copyWithBaseBlockAttributes(o),a=c.getBlockCount(),s=c.getBlockAtIndex(0),e(o,s.getAttributes())?(l=s.getTextWithoutBlockBreak(),d=this.insertTextAtRange(l,r),a>1&&(c=new this.constructor(c.getBlocks().slice(1)),p=h+l.getLength(),d=d.insertDocumentAtRange(c,p))):d=this.insertDocumentAtRange(c,r),d},c.prototype.insertTextAtRange=function(e,t){var r,i,o,a,s;return s=(t=n(t))[0],i=(a=this.locationFromPosition(s)).index,o=a.offset,r=this.removeTextAtRange(t),new this.constructor(r.blockList.editObjectAtIndex(i,(function(t){return t.copyWithText(t.text.insertTextAtPosition(e,o))})))},c.prototype.removeTextAtRange=function(e){var t,i,o,a,s,l,c,u,p,d,f,h,m,g,v,y,b,x;return u=(d=e=n(e))[0],y=d[1],r(e)?this:(l=(f=this.locationRangeFromRange(e))[0],g=f[1],s=l.index,c=l.offset,a=this.getBlockAtIndex(s),m=g.index,v=g.offset,h=this.getBlockAtIndex(m),y-u==1&&a.getBlockBreakPosition()===c&&h.getBlockBreakPosition()!==v&&"\n"===h.text.getStringAtPosition(v)?o=this.blockList.editObjectAtIndex(m,(function(e){return e.copyWithText(e.text.removeTextAtRange([v,v+1]))})):(p=a.text.getTextAtRange([0,c]),b=h.text.getTextAtRange([v,h.getLength()]),x=p.appendText(b),i=s!==m&&0===c&&a.getAttributeLevel()>=h.getAttributeLevel()?h.copyWithText(x):a.copyWithText(x),t=m+1-s,o=this.blockList.splice(s,t,i)),new this.constructor(o))},c.prototype.moveTextFromRangeToPosition=function(e,t){var r,i,o,a,l,c,u,p,d,f;return d=(c=e=n(e))[0],o=c[1],t>=d&&o>=t?this:(i=this.getDocumentAtRange(e),p=this.removeTextAtRange(e),(l=t>d)&&(t-=i.getLength()),a=(u=i.getBlocks())[0],0===(r=2<=u.length?s.call(u,1):[]).length?(f=a.getTextWithoutBlockBreak(),l&&(t+=1)):f=a.text,p=p.insertTextAtRange(f,t),0===r.length?p:(i=new this.constructor(r),t+=f.getLength(),p.insertDocumentAtRange(i,t)))},c.prototype.addAttributeAtRange=function(e,n,r){var i;return i=this.blockList,this.eachBlockAtRange(r,(function(r,o,a){return i=i.editObjectAtIndex(a,(function(){return t(e)?r.addAttribute(e,n):o[0]===o[1]?r:r.copyWithText(r.text.addAttributeAtRange(e,n,o))}))})),new this.constructor(i)},c.prototype.addAttribute=function(e,t){var n;return n=this.blockList,this.eachBlock((function(r,i){return n=n.editObjectAtIndex(i,(function(){return r.addAttribute(e,t)}))})),new this.constructor(n)},c.prototype.removeAttributeAtRange=function(e,n){var r;return r=this.blockList,this.eachBlockAtRange(n,(function(n,i,o){return t(e)?r=r.editObjectAtIndex(o,(function(){return n.removeAttribute(e)})):i[0]!==i[1]?r=r.editObjectAtIndex(o,(function(){return n.copyWithText(n.text.removeAttributeAtRange(e,i))})):void 0})),new this.constructor(r)},c.prototype.updateAttributesForAttachment=function(e,t){var n,r,i;return r=this.getRangeOfAttachment(t)[0],n=this.locationFromPosition(r).index,i=this.getTextAtIndex(n),new this.constructor(this.blockList.editObjectAtIndex(n,(function(n){return n.copyWithText(i.updateAttributesForAttachment(e,t))})))},c.prototype.removeAttributeForAttachment=function(e,t){var n;return n=this.getRangeOfAttachment(t),this.removeAttributeAtRange(e,n)},c.prototype.insertBlockBreakAtRange=function(e){var t,r,i,a;return a=(e=n(e))[0],i=this.locationFromPosition(a).offset,r=this.removeTextAtRange(e),0===i&&(t=[new o.Block]),new this.constructor(r.blockList.insertSplittableListAtPosition(new o.SplittableList(t),a))},c.prototype.applyBlockAttributeAtRange=function(e,n,r){var i,o,a,s;return o=(a=this.expandRangeToLineBreaksAndSplitBlocks(r)).document,r=a.range,(i=t(e)).listAttribute?(s=(o=o.removeLastListAttributeAtRange(r,{exceptAttributeName:e})).convertLineBreaksToBlockBreaksInRange(r),o=s.document,r=s.range):o=i.exclusive?o.removeBlockAttributesAtRange(r):i.terminal?o.removeLastTerminalAttributeAtRange(r):o.consolidateBlocksAtRange(r),o.addAttributeAtRange(e,n,r)},c.prototype.removeLastListAttributeAtRange=function(e,n){var r;return null==n&&(n={}),r=this.blockList,this.eachBlockAtRange(e,(function(e,i,o){var a;if((a=e.getLastAttribute())&&t(a).listAttribute&&a!==n.exceptAttributeName)return r=r.editObjectAtIndex(o,(function(){return e.removeAttribute(a)}))})),new this.constructor(r)},c.prototype.removeLastTerminalAttributeAtRange=function(e){var n;return n=this.blockList,this.eachBlockAtRange(e,(function(e,r,i){var o;if((o=e.getLastAttribute())&&t(o).terminal)return n=n.editObjectAtIndex(i,(function(){return e.removeAttribute(o)}))})),new this.constructor(n)},c.prototype.removeBlockAttributesAtRange=function(e){var t;return t=this.blockList,this.eachBlockAtRange(e,(function(e,n,r){return e.hasAttributes()?t=t.editObjectAtIndex(r,(function(){return e.copyWithoutAttributes()})):void 0})),new this.constructor(t)},c.prototype.expandRangeToLineBreaksAndSplitBlocks=function(e){var t,r,i,o,a,s,l,c,u;return u=(s=e=n(e))[0],o=s[1],c=this.locationFromPosition(u),i=this.locationFromPosition(o),l=(t=this).getBlockAtIndex(c.index),null!=(c.offset=l.findLineBreakInDirectionFromPosition("backward",c.offset))&&(a=t.positionFromLocation(c),t=t.insertBlockBreakAtRange([a,a+1]),i.index+=1,i.offset-=t.getBlockAtIndex(c.index).getLength(),c.index+=1),c.offset=0,0===i.offset&&i.index>c.index?(i.index-=1,i.offset=t.getBlockAtIndex(i.index).getBlockBreakPosition()):("\n"===(r=t.getBlockAtIndex(i.index)).text.getStringAtRange([i.offset-1,i.offset])?i.offset-=1:i.offset=r.findLineBreakInDirectionFromPosition("forward",i.offset),i.offset!==r.getBlockBreakPosition()&&(a=t.positionFromLocation(i),t=t.insertBlockBreakAtRange([a,a+1]))),u=t.positionFromLocation(c),o=t.positionFromLocation(i),{document:t,range:e=n([u,o])}},c.prototype.convertLineBreaksToBlockBreaksInRange=function(e){var t,r,i;return r=(e=n(e))[0],i=this.getStringAtRange(e).slice(0,-1),t=this,i.replace(/.*?\n/g,(function(e){return r+=e.length,t=t.insertBlockBreakAtRange([r-1,r])})),{document:t,range:e}},c.prototype.consolidateBlocksAtRange=function(e){var t,r,i,o,a;return a=(i=e=n(e))[0],r=i[1],o=this.locationFromPosition(a).index,t=this.locationFromPosition(r).index,new this.constructor(this.blockList.consolidateFromIndexToIndex(o,t))},c.prototype.getDocumentAtRange=function(e){var t;return e=n(e),t=this.blockList.getSplittableListInRange(e).toArray(),new this.constructor(t)},c.prototype.getStringAtRange=function(e){var t,r;return(r=e=n(e))[r.length-1]!==this.getLength()&&(t=-1),this.getDocumentAtRange(e).toString().slice(0,t)},c.prototype.getBlockAtIndex=function(e){return this.blockList.getObjectAtIndex(e)},c.prototype.getBlockAtPosition=function(e){var t;return t=this.locationFromPosition(e).index,this.getBlockAtIndex(t)},c.prototype.getTextAtIndex=function(e){var t;return null!=(t=this.getBlockAtIndex(e))?t.text:void 0},c.prototype.getTextAtPosition=function(e){var t;return t=this.locationFromPosition(e).index,this.getTextAtIndex(t)},c.prototype.getPieceAtPosition=function(e){var t,n,r;return t=(r=this.locationFromPosition(e)).index,n=r.offset,this.getTextAtIndex(t).getPieceAtPosition(n)},c.prototype.getCharacterAtPosition=function(e){var t,n,r;return t=(r=this.locationFromPosition(e)).index,n=r.offset,this.getTextAtIndex(t).getStringAtRange([n,n+1])},c.prototype.getLength=function(){return this.blockList.getEndPosition()},c.prototype.getBlocks=function(){return this.blockList.toArray()},c.prototype.getBlockCount=function(){return this.blockList.length},c.prototype.getEditCount=function(){return this.editCount},c.prototype.eachBlock=function(e){return this.blockList.eachObject(e)},c.prototype.eachBlockAtRange=function(e,t){var r,i,o,a,s,l,c,u,p,d,f,h;if(f=(l=e=n(e))[0],o=l[1],d=this.locationFromPosition(f),i=this.locationFromPosition(o),d.index===i.index)return r=this.getBlockAtIndex(d.index),h=[d.offset,i.offset],t(r,h,d.index);for(p=[],s=a=c=d.index,u=i.index;u>=c?u>=a:a>=u;s=u>=c?++a:--a)(r=this.getBlockAtIndex(s))?(h=function(){switch(s){case d.index:return[d.offset,r.text.getLength()];case i.index:return[0,i.offset];default:return[0,r.text.getLength()]}}(),p.push(t(r,h,s))):p.push(void 0);return p},c.prototype.getCommonAttributesAtRange=function(e){var t,i,a;return i=(e=n(e))[0],r(e)?this.getCommonAttributesAtPosition(i):(a=[],t=[],this.eachBlockAtRange(e,(function(e,n){return n[0]!==n[1]?(a.push(e.text.getCommonAttributesAtRange(n)),t.push(u(e))):void 0})),o.Hash.fromCommonAttributesOfObjects(a).merge(o.Hash.fromCommonAttributesOfObjects(t)).toObject())},c.prototype.getCommonAttributesAtPosition=function(e){var t,n,r,i,a,s,c,p,d,f;if(a=(d=this.locationFromPosition(e)).index,p=d.offset,!(r=this.getBlockAtIndex(a)))return{};for(c in i=u(r),t=r.text.getAttributesAtPosition(p),n=r.text.getAttributesAtPosition(p-1),s=function(){var e,t;for(c in t=[],e=o.config.textAttributes)(f=e[c]).inheritable&&t.push(c);return t}(),n)((f=n[c])===t[c]||l.call(s,c)>=0)&&(i[c]=f);return i},c.prototype.getRangeOfCommonAttributeAtPosition=function(e,t){var r,i,o,a,s,l,c,u;return o=(s=this.locationFromPosition(t)).index,a=s.offset,u=(l=this.getTextAtIndex(o).getExpandedRangeForAttributeAtOffset(e,a))[0],i=l[1],c=this.positionFromLocation({index:o,offset:u}),r=this.positionFromLocation({index:o,offset:i}),n([c,r])},c.prototype.getBaseBlockAttributes=function(){var e,t,n,r,i,o,a;for(e=this.getBlockAtIndex(0).getAttributes(),n=r=1,a=this.getBlockCount();a>=1?a>r:r>a;n=a>=1?++r:--r)t=this.getBlockAtIndex(n).getAttributes(),o=Math.min(e.length,t.length),e=function(){var n,r,a;for(a=[],i=n=0,r=o;(r>=0?r>n:n>r)&&t[i]===e[i];i=r>=0?++n:--n)a.push(t[i]);return a}();return e},u=function(e){var t,n;return n={},(t=e.getLastAttribute())&&(n[t]=!0),n},c.prototype.getAttachmentById=function(e){var t,n,r,i;for(n=0,r=(i=this.getAttachments()).length;r>n;n++)if((t=i[n]).id===e)return t},c.prototype.getAttachmentPieces=function(){var e;return e=[],this.blockList.eachObject((function(t){var n;return n=t.text,e=e.concat(n.getAttachmentPieces())})),e},c.prototype.getAttachments=function(){var e,t,n,r,i;for(i=[],e=0,t=(r=this.getAttachmentPieces()).length;t>e;e++)n=r[e],i.push(n.attachment);return i},c.prototype.getRangeOfAttachment=function(e){var t,r,i,o,a,s,l;for(o=0,r=t=0,i=(a=this.blockList.toArray()).length;i>t;r=++t){if(l=(s=a[r].text).getRangeOfAttachment(e))return n([o+l[0],o+l[1]]);o+=s.getLength()}},c.prototype.getLocationRangeOfAttachment=function(e){var t;return t=this.getRangeOfAttachment(e),this.locationRangeFromRange(t)},c.prototype.getAttachmentPieceForAttachment=function(e){var t,n,r,i;for(t=0,n=(i=this.getAttachmentPieces()).length;n>t;t++)if((r=i[t]).attachment===e)return r},c.prototype.findRangesForBlockAttribute=function(e){var t,n,r,i,o,a,s;for(o=0,a=[],n=0,r=(s=this.getBlocks()).length;r>n;n++)i=(t=s[n]).getLength(),t.hasAttribute(e)&&a.push([o,o+i]),o+=i;return a},c.prototype.findRangesForTextAttribute=function(e,t){var n,r,i,o,a,s,l,c,u,p;for(p=(null!=t?t:{}).withValue,s=0,l=[],c=[],o=function(t){return null!=p?t.getAttribute(e)===p:t.hasAttribute(e)},n=0,r=(u=this.getPieces()).length;r>n;n++)i=(a=u[n]).getLength(),o(a)&&(l[1]===s?l[1]=s+i:c.push(l=[s,s+i])),s+=i;return c},c.prototype.locationFromPosition=function(e){var t,n;return null!=(n=this.blockList.findIndexAndOffsetAtPosition(Math.max(0,e))).index?n:{index:(t=this.getBlocks()).length-1,offset:t[t.length-1].getLength()}},c.prototype.positionFromLocation=function(e){return this.blockList.findPositionAtIndexAndOffset(e.index,e.offset)},c.prototype.locationRangeFromPosition=function(e){return n(this.locationFromPosition(e))},c.prototype.locationRangeFromRange=function(e){var t,r,i,o;if(e=n(e))return o=e[0],r=e[1],i=this.locationFromPosition(o),t=this.locationFromPosition(r),n([i,t])},c.prototype.rangeFromLocationRange=function(e){var t,i;return e=n(e),t=this.positionFromLocation(e[0]),r(e)||(i=this.positionFromLocation(e[1])),n([t,i])},c.prototype.isEqualTo=function(e){return this.blockList.isEqualTo(null!=e?e.blockList:void 0)},c.prototype.getTexts=function(){var e,t,n,r,i;for(i=[],t=0,n=(r=this.getBlocks()).length;n>t;t++)e=r[t],i.push(e.text);return i},c.prototype.getPieces=function(){var e,t,n,r,i;for(n=[],e=0,t=(r=this.getTexts()).length;t>e;e++)i=r[e],n.push.apply(n,i.getPieces());return n},c.prototype.getObjects=function(){return this.getBlocks().concat(this.getTexts()).concat(this.getPieces())},c.prototype.toSerializableDocument=function(){var e;return e=[],this.blockList.eachObject((function(t){return e.push(t.copyWithText(t.text.toSerializableText()))})),new this.constructor(e)},c.prototype.toString=function(){return this.blockList.toString()},c.prototype.toJSON=function(){return this.blockList.toJSON()},c.prototype.toConsole=function(){var e;return JSON.stringify(function(){var t,n,r,i;for(i=[],t=0,n=(r=this.blockList.toArray()).length;n>t;t++)e=r[t],i.push(JSON.parse(e.text.toConsole()));return i}.call(this))},c}(o.Object)}.call(this),function(){o.LineBreakInsertion=function(){function e(e){var t;this.composition=e,this.document=this.composition.document,t=this.composition.getSelectedRange(),this.startPosition=t[0],this.endPosition=t[1],this.startLocation=this.document.locationFromPosition(this.startPosition),this.endLocation=this.document.locationFromPosition(this.endPosition),this.block=this.document.getBlockAtIndex(this.endLocation.index),this.breaksOnReturn=this.block.breaksOnReturn(),this.previousCharacter=this.block.text.getStringAtPosition(this.endLocation.offset-1),this.nextCharacter=this.block.text.getStringAtPosition(this.endLocation.offset)}return e.prototype.shouldInsertBlockBreak=function(){return this.block.hasAttributes()&&this.block.isListItem()&&!this.block.isEmpty()?0!==this.startLocation.offset:this.breaksOnReturn&&"\n"!==this.nextCharacter},e.prototype.shouldBreakFormattedBlock=function(){return this.block.hasAttributes()&&!this.block.isListItem()&&(this.breaksOnReturn&&"\n"===this.nextCharacter||"\n"===this.previousCharacter)},e.prototype.shouldDecreaseListLevel=function(){return this.block.hasAttributes()&&this.block.isListItem()&&this.block.isEmpty()},e.prototype.shouldPrependListItem=function(){return this.block.isListItem()&&0===this.startLocation.offset&&!this.block.isEmpty()},e.prototype.shouldRemoveLastBlockAttribute=function(){return this.block.hasAttributes()&&!this.block.isListItem()&&this.block.isEmpty()},e}()}.call(this),function(){var e,t,n,r,i,a,s,l,c,u,p=function(e,t){function n(){this.constructor=e}for(var r in t)d.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},d={}.hasOwnProperty;a=o.normalizeRange,c=o.rangesAreEqual,l=o.rangeIsCollapsed,s=o.objectsAreEqual,e=o.arrayStartsWith,u=o.summarizeArrayChange,n=o.getAllAttributeNames,r=o.getBlockConfig,i=o.getTextConfig,t=o.extend,o.Composition=function(d){function f(){this.document=new o.Document,this.attachments=[],this.currentAttributes={},this.revision=0}return p(f,d),f.prototype.setDocument=function(e){var t;return e.isEqualTo(this.document)?void 0:(this.document=e,this.refreshAttachments(),this.revision++,null!=(t=this.delegate)&&"function"==typeof t.compositionDidChangeDocument?t.compositionDidChangeDocument(e):void 0)},f.prototype.getSnapshot=function(){return{document:this.document,selectedRange:this.getSelectedRange()}},f.prototype.loadSnapshot=function(e){var t,n,r,i;return t=e.document,i=e.selectedRange,null!=(n=this.delegate)&&"function"==typeof n.compositionWillLoadSnapshot&&n.compositionWillLoadSnapshot(),this.setDocument(null!=t?t:new o.Document),this.setSelection(null!=i?i:[0,0]),null!=(r=this.delegate)&&"function"==typeof r.compositionDidLoadSnapshot?r.compositionDidLoadSnapshot():void 0},f.prototype.insertText=function(e,t){var n,r,i,o;return o=(null!=t?t:{updatePosition:!0}).updatePosition,r=this.getSelectedRange(),this.setDocument(this.document.insertTextAtRange(e,r)),n=(i=r[0])+e.getLength(),o&&this.setSelection(n),this.notifyDelegateOfInsertionAtRange([i,n])},f.prototype.insertBlock=function(e){var t;return null==e&&(e=new o.Block),t=new o.Document([e]),this.insertDocument(t)},f.prototype.insertDocument=function(e){var t,n,r;return null==e&&(e=new o.Document),n=this.getSelectedRange(),this.setDocument(this.document.insertDocumentAtRange(e,n)),t=(r=n[0])+e.getLength(),this.setSelection(t),this.notifyDelegateOfInsertionAtRange([r,t])},f.prototype.insertString=function(e,t){var n,r;return n=this.getCurrentTextAttributes(),r=o.Text.textForStringWithAttributes(e,n),this.insertText(r,t)},f.prototype.insertBlockBreak=function(){var e,t,n;return t=this.getSelectedRange(),this.setDocument(this.document.insertBlockBreakAtRange(t)),e=(n=t[0])+1,this.setSelection(e),this.notifyDelegateOfInsertionAtRange([n,e])},f.prototype.insertLineBreak=function(){var e,t;return(t=new o.LineBreakInsertion(this)).shouldDecreaseListLevel()?(this.decreaseListLevel(),this.setSelection(t.startPosition)):t.shouldPrependListItem()?(e=new o.Document([t.block.copyWithoutText()]),this.insertDocument(e)):t.shouldInsertBlockBreak()?this.insertBlockBreak():t.shouldRemoveLastBlockAttribute()?this.removeLastBlockAttribute():t.shouldBreakFormattedBlock()?this.breakFormattedBlock(t):this.insertString("\n")},f.prototype.insertHTML=function(e){var t,n,r,i;return t=o.Document.fromHTML(e),r=this.getSelectedRange(),this.setDocument(this.document.mergeDocumentAtRange(t,r)),n=(i=r[0])+t.getLength()-1,this.setSelection(n),this.notifyDelegateOfInsertionAtRange([i,n])},f.prototype.replaceHTML=function(e){var t,n,r;return t=o.Document.fromHTML(e).copyUsingObjectsFromDocument(this.document),n=this.getLocationRange({strict:!1}),r=this.document.rangeFromLocationRange(n),this.setDocument(t),this.setSelection(r)},f.prototype.insertFile=function(e){return this.insertFiles([e])},f.prototype.insertFiles=function(e){var t,n,r,i,a,s;for(n=[],i=0,a=e.length;a>i;i++)r=e[i],(null!=(s=this.delegate)?s.compositionShouldAcceptFile(r):void 0)&&(t=o.Attachment.attachmentForFile(r),n.push(t));return this.insertAttachments(n)},f.prototype.insertAttachment=function(e){return this.insertAttachments([e])},f.prototype.insertAttachments=function(e){var t,n,r,i,a,s,l,c,u;for(c=new o.Text,i=0,a=e.length;a>i;i++)u=(t=e[i]).getType(),s=null!=(l=o.config.attachments[u])?l.presentation:void 0,r=this.getCurrentTextAttributes(),s&&(r.presentation=s),n=o.Text.textForAttachmentWithAttributes(t,r),c=c.appendText(n);return this.insertText(c)},f.prototype.shouldManageDeletingInDirection=function(e){var t;if(t=this.getLocationRange(),l(t)){if("backward"===e&&0===t[0].offset)return!0;if(this.shouldManageMovingCursorInDirection(e))return!0}else if(t[0].index!==t[1].index)return!0;return!1},f.prototype.deleteInDirection=function(e,t){var n,r,i,o,a,s,c,u;return o=(null!=t?t:{}).length,a=this.getLocationRange(),s=this.getSelectedRange(),(c=l(s))?i="backward"===e&&0===a[0].offset:u=a[0].index!==a[1].index,!(i&&this.canDecreaseBlockAttributeLevel()&&(r=this.getBlock(),r.isListItem()?this.decreaseListLevel():this.decreaseBlockAttributeLevel(),this.setSelection(s[0]),r.isEmpty()))&&(c&&(s=this.getExpandedRangeInDirection(e,{length:o}),"backward"===e&&(n=this.getAttachmentAtRange(s))),n?(this.editAttachment(n),!1):(this.setDocument(this.document.removeTextAtRange(s)),this.setSelection(s[0]),!i&&!u&&void 0))},f.prototype.moveTextFromRange=function(e){var t;return t=this.getSelectedRange()[0],this.setDocument(this.document.moveTextFromRangeToPosition(e,t)),this.setSelection(t)},f.prototype.removeAttachment=function(e){var t;return(t=this.document.getRangeOfAttachment(e))?(this.stopEditingAttachment(),this.setDocument(this.document.removeTextAtRange(t)),this.setSelection(t[0])):void 0},f.prototype.removeLastBlockAttribute=function(){var e,t,n,r;return r=(n=this.getSelectedRange())[0],t=n[1],e=this.document.getBlockAtPosition(t),this.removeCurrentAttribute(e.getLastAttribute()),this.setSelection(r)}," ",f.prototype.insertPlaceholder=function(){return this.placeholderPosition=this.getPosition(),this.insertString(" ")},f.prototype.selectPlaceholder=function(){return null!=this.placeholderPosition?(this.setSelectedRange([this.placeholderPosition,this.placeholderPosition+1]),this.getSelectedRange()):void 0},f.prototype.forgetPlaceholder=function(){return this.placeholderPosition=null},f.prototype.hasCurrentAttribute=function(e){var t;return null!=(t=this.currentAttributes[e])&&!1!==t},f.prototype.toggleCurrentAttribute=function(e){var t;return(t=!this.currentAttributes[e])?this.setCurrentAttribute(e,t):this.removeCurrentAttribute(e)},f.prototype.canSetCurrentAttribute=function(e){return r(e)?this.canSetCurrentBlockAttribute(e):this.canSetCurrentTextAttribute(e)},f.prototype.canSetCurrentTextAttribute=function(){var e,t,n,r;if(e=this.getSelectedDocument()){for(t=0,n=(r=e.getAttachments()).length;n>t;t++)if(!r[t].hasContent())return!1;return!0}},f.prototype.canSetCurrentBlockAttribute=function(){var e;if(e=this.getBlock())return!e.isTerminalBlock()},f.prototype.setCurrentAttribute=function(e,t){return r(e)?this.setBlockAttribute(e,t):(this.setTextAttribute(e,t),this.currentAttributes[e]=t,this.notifyDelegateOfCurrentAttributesChange())},f.prototype.setTextAttribute=function(e,t){var n,r;if(n=this.getSelectedRange())return n[0]!==n[1]?this.setDocument(this.document.addAttributeAtRange(e,t,n)):"href"===e?(r=o.Text.textForStringWithAttributes(t,{href:t}),this.insertText(r)):void 0},f.prototype.setBlockAttribute=function(e,t){var n;if(n=this.getSelectedRange())return this.canSetCurrentAttribute(e)?(this.getBlock(),this.setDocument(this.document.applyBlockAttributeAtRange(e,t,n)),this.setSelection(n)):void 0},f.prototype.removeCurrentAttribute=function(e){return r(e)?(this.removeBlockAttribute(e),this.updateCurrentAttributes()):(this.removeTextAttribute(e),delete this.currentAttributes[e],this.notifyDelegateOfCurrentAttributesChange())},f.prototype.removeTextAttribute=function(e){var t;if(t=this.getSelectedRange())return this.setDocument(this.document.removeAttributeAtRange(e,t))},f.prototype.removeBlockAttribute=function(e){var t;if(t=this.getSelectedRange())return this.setDocument(this.document.removeAttributeAtRange(e,t))},f.prototype.canDecreaseNestingLevel=function(){var e;return(null!=(e=this.getBlock())?e.getNestingLevel():void 0)>0},f.prototype.canIncreaseNestingLevel=function(){var t,n,i;if(t=this.getBlock())return null!=(i=r(t.getLastNestableAttribute()))&&i.listAttribute?(n=this.getPreviousBlock())?e(n.getListItemAttributes(),t.getListItemAttributes()):void 0:t.getNestingLevel()>0},f.prototype.decreaseNestingLevel=function(){var e;if(e=this.getBlock())return this.setDocument(this.document.replaceBlock(e,e.decreaseNestingLevel()))},f.prototype.increaseNestingLevel=function(){var e;if(e=this.getBlock())return this.setDocument(this.document.replaceBlock(e,e.increaseNestingLevel()))},f.prototype.canDecreaseBlockAttributeLevel=function(){var e;return(null!=(e=this.getBlock())?e.getAttributeLevel():void 0)>0},f.prototype.decreaseBlockAttributeLevel=function(){var e,t;return(e=null!=(t=this.getBlock())?t.getLastAttribute():void 0)?this.removeCurrentAttribute(e):void 0},f.prototype.decreaseListLevel=function(){var e,t,n,r,i,o;for(o=this.getSelectedRange()[0],n=i=this.document.locationFromPosition(o).index,e=this.getBlock().getAttributeLevel();(t=this.document.getBlockAtIndex(n+1))&&t.isListItem()&&t.getAttributeLevel()>e;)n++;return o=this.document.positionFromLocation({index:i,offset:0}),r=this.document.positionFromLocation({index:n,offset:0}),this.setDocument(this.document.removeLastListAttributeAtRange([o,r]))},f.prototype.updateCurrentAttributes=function(){var e,t,r,i,o,a;if(a=this.getSelectedRange({ignoreLock:!0})){for(t=this.document.getCommonAttributesAtRange(a),r=0,i=(o=n()).length;i>r;r++)t[e=o[r]]||this.canSetCurrentAttribute(e)||(t[e]=!1);if(!s(t,this.currentAttributes))return this.currentAttributes=t,this.notifyDelegateOfCurrentAttributesChange()}},f.prototype.getCurrentAttributes=function(){return t.call({},this.currentAttributes)},f.prototype.getCurrentTextAttributes=function(){var e,t,n,r;for(t in e={},n=this.currentAttributes)!1!==(r=n[t])&&i(t)&&(e[t]=r);return e},f.prototype.freezeSelection=function(){return this.setCurrentAttribute("frozen",!0)},f.prototype.thawSelection=function(){return this.removeCurrentAttribute("frozen")},f.prototype.hasFrozenSelection=function(){return this.hasCurrentAttribute("frozen")},f.proxyMethod("getSelectionManager().getPointRange"),f.proxyMethod("getSelectionManager().setLocationRangeFromPointRange"),f.proxyMethod("getSelectionManager().createLocationRangeFromDOMRange"),f.proxyMethod("getSelectionManager().locationIsCursorTarget"),f.proxyMethod("getSelectionManager().selectionIsExpanded"),f.proxyMethod("delegate?.getSelectionManager"),f.prototype.setSelection=function(e){var t,n;return t=this.document.locationRangeFromRange(e),null!=(n=this.delegate)?n.compositionDidRequestChangingSelectionToLocationRange(t):void 0},f.prototype.getSelectedRange=function(){var e;return(e=this.getLocationRange())?this.document.rangeFromLocationRange(e):void 0},f.prototype.setSelectedRange=function(e){var t;return t=this.document.locationRangeFromRange(e),this.getSelectionManager().setLocationRange(t)},f.prototype.getPosition=function(){var e;return(e=this.getLocationRange())?this.document.positionFromLocation(e[0]):void 0},f.prototype.getLocationRange=function(e){var t,n;return null!=(t=null!=(n=this.targetLocationRange)?n:this.getSelectionManager().getLocationRange(e))?t:a({index:0,offset:0})},f.prototype.withTargetLocationRange=function(e,t){var n;this.targetLocationRange=e;try{n=t()}finally{this.targetLocationRange=null}return n},f.prototype.withTargetRange=function(e,t){var n;return n=this.document.locationRangeFromRange(e),this.withTargetLocationRange(n,t)},f.prototype.withTargetDOMRange=function(e,t){var n;return n=this.createLocationRangeFromDOMRange(e,{strict:!1}),this.withTargetLocationRange(n,t)},f.prototype.getExpandedRangeInDirection=function(e,t){var n,r,i,o;return r=(null!=t?t:{}).length,o=(i=this.getSelectedRange())[0],n=i[1],"backward"===e?r?o-=r:o=this.translateUTF16PositionFromOffset(o,-1):r?n+=r:n=this.translateUTF16PositionFromOffset(n,1),a([o,n])},f.prototype.shouldManageMovingCursorInDirection=function(e){var t;return!!this.editingAttachment||(t=this.getExpandedRangeInDirection(e),null!=this.getAttachmentAtRange(t))},f.prototype.moveCursorInDirection=function(e){var t,n,r,i;return this.editingAttachment?r=this.document.getRangeOfAttachment(this.editingAttachment):(i=this.getSelectedRange(),r=this.getExpandedRangeInDirection(e),n=!c(i,r)),this.setSelectedRange("backward"===e?r[0]:r[1]),n&&(t=this.getAttachmentAtRange(r))?this.editAttachment(t):void 0},f.prototype.expandSelectionInDirection=function(e,t){var n,r;return n=(null!=t?t:{}).length,r=this.getExpandedRangeInDirection(e,{length:n}),this.setSelectedRange(r)},f.prototype.expandSelectionForEditing=function(){return this.hasCurrentAttribute("href")?this.expandSelectionAroundCommonAttribute("href"):void 0},f.prototype.expandSelectionAroundCommonAttribute=function(e){var t,n;return t=this.getPosition(),n=this.document.getRangeOfCommonAttributeAtPosition(e,t),this.setSelectedRange(n)},f.prototype.selectionContainsAttachments=function(){var e;return(null!=(e=this.getSelectedAttachments())?e.length:void 0)>0},f.prototype.selectionIsInCursorTarget=function(){return this.editingAttachment||this.positionIsCursorTarget(this.getPosition())},f.prototype.positionIsCursorTarget=function(e){var t;return(t=this.document.locationFromPosition(e))?this.locationIsCursorTarget(t):void 0},f.prototype.positionIsBlockBreak=function(e){var t;return null!=(t=this.document.getPieceAtPosition(e))?t.isBlockBreak():void 0},f.prototype.getSelectedDocument=function(){var e;return(e=this.getSelectedRange())?this.document.getDocumentAtRange(e):void 0},f.prototype.getSelectedAttachments=function(){var e;return null!=(e=this.getSelectedDocument())?e.getAttachments():void 0},f.prototype.getAttachments=function(){return this.attachments.slice(0)},f.prototype.refreshAttachments=function(){var e,t,n,r,i,o,a,s,l,c,p,d;for(n=this.document.getAttachments(),e=(s=u(this.attachments,n)).added,p=s.removed,this.attachments=n,r=0,o=p.length;o>r;r++)(t=p[r]).delegate=null,null!=(l=this.delegate)&&"function"==typeof l.compositionDidRemoveAttachment&&l.compositionDidRemoveAttachment(t);for(d=[],i=0,a=e.length;a>i;i++)(t=e[i]).delegate=this,d.push(null!=(c=this.delegate)&&"function"==typeof c.compositionDidAddAttachment?c.compositionDidAddAttachment(t):void 0);return d},f.prototype.attachmentDidChangeAttributes=function(e){var t;return this.revision++,null!=(t=this.delegate)&&"function"==typeof t.compositionDidEditAttachment?t.compositionDidEditAttachment(e):void 0},f.prototype.attachmentDidChangePreviewURL=function(e){var t;return this.revision++,null!=(t=this.delegate)&&"function"==typeof t.compositionDidChangeAttachmentPreviewURL?t.compositionDidChangeAttachmentPreviewURL(e):void 0},f.prototype.editAttachment=function(e,t){var n;if(e!==this.editingAttachment)return this.stopEditingAttachment(),this.editingAttachment=e,null!=(n=this.delegate)&&"function"==typeof n.compositionDidStartEditingAttachment?n.compositionDidStartEditingAttachment(this.editingAttachment,t):void 0},f.prototype.stopEditingAttachment=function(){var e;if(this.editingAttachment)return null!=(e=this.delegate)&&"function"==typeof e.compositionDidStopEditingAttachment&&e.compositionDidStopEditingAttachment(this.editingAttachment),this.editingAttachment=null},f.prototype.updateAttributesForAttachment=function(e,t){return this.setDocument(this.document.updateAttributesForAttachment(e,t))},f.prototype.removeAttributeForAttachment=function(e,t){return this.setDocument(this.document.removeAttributeForAttachment(e,t))},f.prototype.breakFormattedBlock=function(e){var t,n,r,i,a;return n=e.document,t=e.block,a=[(i=e.startPosition)-1,i],t.getBlockBreakPosition()===e.startLocation.offset?(t.breaksOnReturn()&&"\n"===e.nextCharacter?i+=1:n=n.removeTextAtRange(a),a=[i,i]):"\n"===e.nextCharacter?"\n"===e.previousCharacter?a=[i-1,i+1]:(a=[i,i+1],i+=1):e.startLocation.offset-1!=0&&(i+=1),r=new o.Document([t.removeLastAttribute().copyWithoutText()]),this.setDocument(n.insertDocumentAtRange(r,a)),this.setSelection(i)},f.prototype.getPreviousBlock=function(){var e,t;return(t=this.getLocationRange())&&(e=t[0].index)>0?this.document.getBlockAtIndex(e-1):void 0},f.prototype.getBlock=function(){var e;return(e=this.getLocationRange())?this.document.getBlockAtIndex(e[0].index):void 0},f.prototype.getAttachmentAtRange=function(e){var t;return(t=this.document.getDocumentAtRange(e)).toString()===o.OBJECT_REPLACEMENT_CHARACTER+"\n"?t.getAttachments()[0]:void 0},f.prototype.notifyDelegateOfCurrentAttributesChange=function(){var e;return null!=(e=this.delegate)&&"function"==typeof e.compositionDidChangeCurrentAttributes?e.compositionDidChangeCurrentAttributes(this.currentAttributes):void 0},f.prototype.notifyDelegateOfInsertionAtRange=function(e){var t;return null!=(t=this.delegate)&&"function"==typeof t.compositionDidPerformInsertionAtRange?t.compositionDidPerformInsertionAtRange(e):void 0},f.prototype.translateUTF16PositionFromOffset=function(e,t){var n,r;return n=(r=this.document.toUTF16String()).offsetFromUCS2Offset(e),r.offsetToUCS2Offset(n+t)},f}(o.BasicObject)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.UndoManager=function(t){function n(e){this.composition=e,this.undoEntries=[],this.redoEntries=[]}var r;return e(n,t),n.prototype.recordUndoEntry=function(e,t){var n,i,o,a,s;return i=(a=null!=t?t:{}).context,n=a.consolidatable,o=this.undoEntries.slice(-1)[0],n&&r(o,e,i)?void 0:(s=this.createEntry({description:e,context:i}),this.undoEntries.push(s),this.redoEntries=[])},n.prototype.undo=function(){var e,t;return(t=this.undoEntries.pop())?(e=this.createEntry(t),this.redoEntries.push(e),this.composition.loadSnapshot(t.snapshot)):void 0},n.prototype.redo=function(){var e,t;return(e=this.redoEntries.pop())?(t=this.createEntry(e),this.undoEntries.push(t),this.composition.loadSnapshot(e.snapshot)):void 0},n.prototype.canUndo=function(){return this.undoEntries.length>0},n.prototype.canRedo=function(){return this.redoEntries.length>0},n.prototype.createEntry=function(e){var t,n,r;return n=(r=null!=e?e:{}).description,t=r.context,{description:null!=n?n.toString():void 0,context:JSON.stringify(t),snapshot:this.composition.getSnapshot()}},r=function(e,t,n){return(null!=e?e.description:void 0)===(null!=t?t.toString():void 0)&&(null!=e?e.context:void 0)===JSON.stringify(n)},n}(o.BasicObject)}.call(this),function(){var e;o.attachmentGalleryFilter=function(t){var n;return(n=new e(t)).perform(),n.getSnapshot()},e=function(){function e(e){this.document=e.document,this.selectedRange=e.selectedRange}var t;return t="attachmentGallery","presentation","gallery",e.prototype.perform=function(){return this.removeBlockAttribute(),this.applyBlockAttribute()},e.prototype.getSnapshot=function(){return{document:this.document,selectedRange:this.selectedRange}},e.prototype.removeBlockAttribute=function(){var e,n,r,i,o;for(o=[],e=0,n=(i=this.findRangesOfBlocks()).length;n>e;e++)r=i[e],o.push(this.document=this.document.removeAttributeAtRange(t,r));return o},e.prototype.applyBlockAttribute=function(){var e,n,r,i,o,a;for(r=0,a=[],e=0,n=(o=this.findRangesOfPieces()).length;n>e;e++)(i=o[e])[1]-i[0]>1&&(i[0]+=r,i[1]+=r,"\n"!==this.document.getCharacterAtPosition(i[1])&&(this.document=this.document.insertBlockBreakAtRange(i[1]),i[1]<this.selectedRange[1]&&this.moveSelectedRangeForward(),i[1]++,r++),0!==i[0]&&"\n"!==this.document.getCharacterAtPosition(i[0]-1)&&(this.document=this.document.insertBlockBreakAtRange(i[0]),i[0]<this.selectedRange[0]&&this.moveSelectedRangeForward(),i[0]++,r++),a.push(this.document=this.document.applyBlockAttributeAtRange(t,!0,i)));return a},e.prototype.findRangesOfBlocks=function(){return this.document.findRangesForBlockAttribute(t)},e.prototype.findRangesOfPieces=function(){return this.document.findRangesForTextAttribute("presentation",{withValue:"gallery"})},e.prototype.moveSelectedRangeForward=function(){return this.selectedRange[0]+=1,this.selectedRange[1]+=1},e}()}.call(this),function(){o.Editor=function(){function e(e,n,r){this.composition=e,this.selectionManager=n,this.element=r,this.insertFiles=function(e,t){return function(){return e.apply(t,arguments)}}(this.insertFiles,this),this.undoManager=new o.UndoManager(this.composition),this.filters=t.slice(0)}var t;return t=[o.attachmentGalleryFilter],e.prototype.loadDocument=function(e){return this.loadSnapshot({document:e,selectedRange:[0,0]})},e.prototype.loadHTML=function(e){return null==e&&(e=""),this.loadDocument(o.Document.fromHTML(e,{referenceElement:this.element}))},e.prototype.loadJSON=function(e){var t,n;return t=e.document,n=e.selectedRange,t=o.Document.fromJSON(t),this.loadSnapshot({document:t,selectedRange:n})},e.prototype.loadSnapshot=function(e){return this.undoManager=new o.UndoManager(this.composition),this.composition.loadSnapshot(e)},e.prototype.getDocument=function(){return this.composition.document},e.prototype.getSelectedDocument=function(){return this.composition.getSelectedDocument()},e.prototype.getSnapshot=function(){return this.composition.getSnapshot()},e.prototype.toJSON=function(){return this.getSnapshot()},e.prototype.deleteInDirection=function(e){return this.composition.deleteInDirection(e)},e.prototype.insertAttachment=function(e){return this.composition.insertAttachment(e)},e.prototype.insertAttachments=function(e){return this.composition.insertAttachments(e)},e.prototype.insertDocument=function(e){return this.composition.insertDocument(e)},e.prototype.insertFile=function(e){return this.composition.insertFile(e)},e.prototype.insertFiles=function(e){return this.composition.insertFiles(e)},e.prototype.insertHTML=function(e){return this.composition.insertHTML(e)},e.prototype.insertString=function(e){return this.composition.insertString(e)},e.prototype.insertText=function(e){return this.composition.insertText(e)},e.prototype.insertLineBreak=function(){return this.composition.insertLineBreak()},e.prototype.getSelectedRange=function(){return this.composition.getSelectedRange()},e.prototype.getPosition=function(){return this.composition.getPosition()},e.prototype.getClientRectAtPosition=function(e){var t;return t=this.getDocument().locationRangeFromRange([e,e+1]),this.selectionManager.getClientRectAtLocationRange(t)},e.prototype.expandSelectionInDirection=function(e){return this.composition.expandSelectionInDirection(e)},e.prototype.moveCursorInDirection=function(e){return this.composition.moveCursorInDirection(e)},e.prototype.setSelectedRange=function(e){return this.composition.setSelectedRange(e)},e.prototype.activateAttribute=function(e,t){return null==t&&(t=!0),this.composition.setCurrentAttribute(e,t)},e.prototype.attributeIsActive=function(e){return this.composition.hasCurrentAttribute(e)},e.prototype.canActivateAttribute=function(e){return this.composition.canSetCurrentAttribute(e)},e.prototype.deactivateAttribute=function(e){return this.composition.removeCurrentAttribute(e)},e.prototype.canDecreaseNestingLevel=function(){return this.composition.canDecreaseNestingLevel()},e.prototype.canIncreaseNestingLevel=function(){return this.composition.canIncreaseNestingLevel()},e.prototype.decreaseNestingLevel=function(){return this.canDecreaseNestingLevel()?this.composition.decreaseNestingLevel():void 0},e.prototype.increaseNestingLevel=function(){return this.canIncreaseNestingLevel()?this.composition.increaseNestingLevel():void 0},e.prototype.canRedo=function(){return this.undoManager.canRedo()},e.prototype.canUndo=function(){return this.undoManager.canUndo()},e.prototype.recordUndoEntry=function(e,t){var n,r,i;return r=(i=null!=t?t:{}).context,n=i.consolidatable,this.undoManager.recordUndoEntry(e,{context:r,consolidatable:n})},e.prototype.redo=function(){return this.canRedo()?this.undoManager.redo():void 0},e.prototype.undo=function(){return this.canUndo()?this.undoManager.undo():void 0},e}()}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.ManagedAttachment=function(t){function n(e,t){var n;this.attachmentManager=e,this.attachment=t,n=this.attachment,this.id=n.id,this.file=n.file}return e(n,t),n.prototype.remove=function(){return this.attachmentManager.requestRemovalOfAttachment(this.attachment)},n.proxyMethod("attachment.getAttribute"),n.proxyMethod("attachment.hasAttribute"),n.proxyMethod("attachment.setAttribute"),n.proxyMethod("attachment.getAttributes"),n.proxyMethod("attachment.setAttributes"),n.proxyMethod("attachment.isPending"),n.proxyMethod("attachment.isPreviewable"),n.proxyMethod("attachment.getURL"),n.proxyMethod("attachment.getHref"),n.proxyMethod("attachment.getFilename"),n.proxyMethod("attachment.getFilesize"),n.proxyMethod("attachment.getFormattedFilesize"),n.proxyMethod("attachment.getExtension"),n.proxyMethod("attachment.getContentType"),n.proxyMethod("attachment.getFile"),n.proxyMethod("attachment.setFile"),n.proxyMethod("attachment.releaseFile"),n.proxyMethod("attachment.getUploadProgress"),n.proxyMethod("attachment.setUploadProgress"),n}(o.BasicObject)}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;o.AttachmentManager=function(t){function n(e){var t,n,r;for(null==e&&(e=[]),this.managedAttachments={},n=0,r=e.length;r>n;n++)t=e[n],this.manageAttachment(t)}return e(n,t),n.prototype.getAttachments=function(){var e,t,n,r;for(t in r=[],n=this.managedAttachments)e=n[t],r.push(e);return r},n.prototype.manageAttachment=function(e){var t,n;return null!=(t=this.managedAttachments)[n=e.id]?t[n]:t[n]=new o.ManagedAttachment(this,e)},n.prototype.attachmentIsManaged=function(e){return e.id in this.managedAttachments},n.prototype.requestRemovalOfAttachment=function(e){var t;return this.attachmentIsManaged(e)&&null!=(t=this.delegate)&&"function"==typeof t.attachmentManagerDidRequestRemovalOfAttachment?t.attachmentManagerDidRequestRemovalOfAttachment(e):void 0},n.prototype.unmanageAttachment=function(e){var t;return t=this.managedAttachments[e.id],delete this.managedAttachments[e.id],t},n}(o.BasicObject)}.call(this),function(){var e,t,n,r,i,a,s,l,c,u,p;e=o.elementContainsNode,t=o.findChildIndexOfNode,i=o.nodeIsBlockStart,a=o.nodeIsBlockStartComment,r=o.nodeIsBlockContainer,s=o.nodeIsCursorTarget,l=o.nodeIsEmptyTextNode,c=o.nodeIsTextNode,n=o.nodeIsAttachmentElement,u=o.tagName,p=o.walkTree,o.LocationMapper=function(){function o(e){this.element=e}var d,f,h,m;return o.prototype.findLocationFromContainerAndOffset=function(n,r,o){var a,l,u,d,m,g,v;for(g=(null!=o?o:{strict:!0}).strict,l=0,u=!1,d={index:0,offset:0},(a=this.findAttachmentElementParentForNode(n))&&(n=a.parentNode,r=t(a)),v=p(this.element,{usingFilter:h});v.nextNode();){if((m=v.currentNode)===n&&c(n)){s(m)||(d.offset+=r);break}if(m.parentNode===n){if(l++===r)break}else if(!e(n,m)&&l>0)break;i(m,{strict:g})?(u&&d.index++,d.offset=0,u=!0):d.offset+=f(m)}return d},o.prototype.findContainerAndOffsetFromLocation=function(e){var n,o,a,l,u;if(0===e.index&&0===e.offset){for(n=this.element,l=0;n.firstChild;)if(n=n.firstChild,r(n)){l=1;break}return[n,l]}if(o=(u=this.findNodeAndOffsetFromLocation(e))[0],a=u[1],o){if(c(o))0===f(o)?(n=o.parentNode.parentNode,l=t(o.parentNode),s(o,{name:"right"})&&l++):(n=o,l=e.offset-a);else{if(n=o.parentNode,!i(o.previousSibling)&&!r(n))for(;o===n.lastChild&&(o=n,n=n.parentNode,!r(n)););l=t(o),0!==e.offset&&l++}return[n,l]}},o.prototype.findNodeAndOffsetFromLocation=function(e){var t,n,r,i,o,a,l,u;for(l=0,n=0,r=(u=this.getSignificantNodesForIndex(e.index)).length;r>n;n++){if(t=u[n],i=f(t),e.offset<=l+i)if(c(t)){if(o=t,a=l,e.offset===a&&s(o))break}else o||(o=t,a=l);if((l+=i)>e.offset)break}return[o,a]},o.prototype.findAttachmentElementParentForNode=function(e){for(;e&&e!==this.element;){if(n(e))return e;e=e.parentNode}},o.prototype.getSignificantNodesForIndex=function(e){var t,n,r,i,o;for(r=[],o=p(this.element,{usingFilter:d}),i=!1;o.nextNode();)if(n=o.currentNode,a(n)){if(null!=t?t++:t=0,t===e)i=!0;else if(i)break}else i&&r.push(n);return r},f=function(e){return e.nodeType===Node.TEXT_NODE?s(e)?0:e.textContent.length:"br"===u(e)||n(e)?1:0},d=function(e){return m(e)===NodeFilter.FILTER_ACCEPT?h(e):NodeFilter.FILTER_REJECT},m=function(e){return l(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},h=function(e){return n(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},o}()}.call(this),function(){var e,t,n=[].slice;e=o.getDOMRange,t=o.setDOMRange,o.PointMapper=function(){function r(){}return r.prototype.createDOMRangeFromPoint=function(n){var r,i,o,a,s,l,c,u;if(c=n.x,u=n.y,document.caretPositionFromPoint)return o=(s=document.caretPositionFromPoint(c,u)).offsetNode,i=s.offset,(r=document.createRange()).setStart(o,i),r;if(document.caretRangeFromPoint)return document.caretRangeFromPoint(c,u);if(document.body.createTextRange){a=e();try{(l=document.body.createTextRange()).moveToPoint(c,u),l.select()}catch(e){}return r=e(),t(a),r}},r.prototype.getClientRectsForDOMRange=function(e){var t;return[(t=n.call(e.getClientRects()))[0],t[t.length-1]]},r}()}.call(this),function(){var e,t=function(e,t){return function(){return e.apply(t,arguments)}},n=function(e,t){function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},r={}.hasOwnProperty,i=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=o.getDOMRange,o.SelectionChangeObserver=function(r){function o(){this.run=t(this.run,this),this.update=t(this.update,this),this.selectionManagers=[]}var a;return n(o,r),o.prototype.start=function(){return this.started?void 0:(this.started=!0,"onselectionchange"in document?document.addEventListener("selectionchange",this.update,!0):this.run())},o.prototype.stop=function(){return this.started?(this.started=!1,document.removeEventListener("selectionchange",this.update,!0)):void 0},o.prototype.registerSelectionManager=function(e){return i.call(this.selectionManagers,e)<0?(this.selectionManagers.push(e),this.start()):void 0},o.prototype.unregisterSelectionManager=function(e){var t;return this.selectionManagers=function(){var n,r,i,o;for(o=[],n=0,r=(i=this.selectionManagers).length;r>n;n++)(t=i[n])!==e&&o.push(t);return o}.call(this),0===this.selectionManagers.length?this.stop():void 0},o.prototype.notifySelectionManagersOfSelectionChange=function(){var e,t,n,r,i;for(r=[],e=0,t=(n=this.selectionManagers).length;t>e;e++)i=n[e],r.push(i.selectionDidChange());return r},o.prototype.update=function(){var t;return t=e(),a(t,this.domRange)?void 0:(this.domRange=t,this.notifySelectionManagersOfSelectionChange())},o.prototype.reset=function(){return this.domRange=null,this.update()},o.prototype.run=function(){return this.started?(this.update(),requestAnimationFrame(this.run)):void 0},a=function(e,t){return(null!=e?e.startContainer:void 0)===(null!=t?t.startContainer:void 0)&&(null!=e?e.startOffset:void 0)===(null!=t?t.startOffset:void 0)&&(null!=e?e.endContainer:void 0)===(null!=t?t.endContainer:void 0)&&(null!=e?e.endOffset:void 0)===(null!=t?t.endOffset:void 0)},o}(o.BasicObject),null==o.selectionChangeObserver&&(o.selectionChangeObserver=new o.SelectionChangeObserver)}.call(this),function(){var e,t,n,r,i,a,s,l,c,u,p=function(e,t){return function(){return e.apply(t,arguments)}},d=function(e,t){function n(){this.constructor=e}for(var r in t)f.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},f={}.hasOwnProperty;n=o.getDOMSelection,t=o.getDOMRange,u=o.setDOMRange,e=o.elementContainsNode,a=o.nodeIsCursorTarget,i=o.innerElementIsActive,r=o.handleEvent,s=o.normalizeRange,l=o.rangeIsCollapsed,c=o.rangesAreEqual,o.SelectionManager=function(f){function h(e){this.element=e,this.selectionDidChange=p(this.selectionDidChange,this),this.didMouseDown=p(this.didMouseDown,this),this.locationMapper=new o.LocationMapper(this.element),this.pointMapper=new o.PointMapper,this.lockCount=0,r("mousedown",{onElement:this.element,withCallback:this.didMouseDown})}return d(h,f),h.prototype.getLocationRange=function(e){var n;return null==e&&(e={}),!1===e.strict?this.createLocationRangeFromDOMRange(t(),{strict:!1}):e.ignoreLock?this.currentLocationRange:null!=(n=this.lockedLocationRange)?n:this.currentLocationRange},h.prototype.setLocationRange=function(e){var t;if(!this.lockedLocationRange)return e=s(e),(t=this.createDOMRangeFromLocationRange(e))?(u(t),this.updateCurrentLocationRange(e)):void 0},h.prototype.setLocationRangeFromPointRange=function(e){var t,n;return e=s(e),n=this.getLocationAtPoint(e[0]),t=this.getLocationAtPoint(e[1]),this.setLocationRange([n,t])},h.prototype.getClientRectAtLocationRange=function(e){var t;return(t=this.createDOMRangeFromLocationRange(e))?this.getClientRectsForDOMRange(t)[1]:void 0},h.prototype.locationIsCursorTarget=function(e){var t,n;return t=(n=this.findNodeAndOffsetFromLocation(e))[0],n[1],a(t)},h.prototype.lock=function(){return 0==this.lockCount++?(this.updateCurrentLocationRange(),this.lockedLocationRange=this.getLocationRange()):void 0},h.prototype.unlock=function(){var e;return 0==--this.lockCount&&(e=this.lockedLocationRange,this.lockedLocationRange=null,null!=e)?this.setLocationRange(e):void 0},h.prototype.clearSelection=function(){var e;return null!=(e=n())?e.removeAllRanges():void 0},h.prototype.selectionIsCollapsed=function(){var e;return!0===(null!=(e=t())?e.collapsed:void 0)},h.prototype.selectionIsExpanded=function(){return!this.selectionIsCollapsed()},h.prototype.createLocationRangeFromDOMRange=function(e,t){var n,r;if(null!=e&&this.domRangeWithinElement(e)&&(r=this.findLocationFromContainerAndOffset(e.startContainer,e.startOffset,t)))return e.collapsed||(n=this.findLocationFromContainerAndOffset(e.endContainer,e.endOffset,t)),s([r,n])},h.proxyMethod("locationMapper.findLocationFromContainerAndOffset"),h.proxyMethod("locationMapper.findContainerAndOffsetFromLocation"),h.proxyMethod("locationMapper.findNodeAndOffsetFromLocation"),h.proxyMethod("pointMapper.createDOMRangeFromPoint"),h.proxyMethod("pointMapper.getClientRectsForDOMRange"),h.prototype.didMouseDown=function(){return this.pauseTemporarily()},h.prototype.pauseTemporarily=function(){var t,n,i,o;return this.paused=!0,n=function(t){return function(){var n,r;for(t.paused=!1,clearTimeout(o),n=0,r=i.length;r>n;n++)i[n].destroy();return e(document,t.element)?t.selectionDidChange():void 0}}(this),o=setTimeout(n,200),i=function(){var e,i,o,a;for(a=[],e=0,i=(o=["mousemove","keydown"]).length;i>e;e++)t=o[e],a.push(r(t,{onElement:document,withCallback:n}));return a}()},h.prototype.selectionDidChange=function(){return this.paused||i(this.element)?void 0:this.updateCurrentLocationRange()},h.prototype.updateCurrentLocationRange=function(e){var n;return(null!=e?e:e=this.createLocationRangeFromDOMRange(t()))&&!c(e,this.currentLocationRange)?(this.currentLocationRange=e,null!=(n=this.delegate)&&"function"==typeof n.locationRangeDidChange?n.locationRangeDidChange(this.currentLocationRange.slice(0)):void 0):void 0},h.prototype.createDOMRangeFromLocationRange=function(e){var t,n,r,i;return r=this.findContainerAndOffsetFromLocation(e[0]),n=l(e)?r:null!=(i=this.findContainerAndOffsetFromLocation(e[1]))?i:r,null!=r&&null!=n?((t=document.createRange()).setStart.apply(t,r),t.setEnd.apply(t,n),t):void 0},h.prototype.getLocationAtPoint=function(e){var t,n;return(t=this.createDOMRangeFromPoint(e))&&null!=(n=this.createLocationRangeFromDOMRange(t))?n[0]:void 0},h.prototype.domRangeWithinElement=function(t){return t.collapsed?e(this.element,t.startContainer):e(this.element,t.startContainer)&&e(this.element,t.endContainer)},h}(o.BasicObject)}.call(this),function(){var e,t,n,r,i=function(e,t){function n(){this.constructor=e}for(var r in t)a.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty,s=[].slice;n=o.rangeIsCollapsed,r=o.rangesAreEqual,t=o.objectsAreEqual,e=o.getBlockConfig,o.EditorController=function(a){function l(e){var t,n;this.editorElement=e.editorElement,t=e.document,n=e.html,this.selectionManager=new o.SelectionManager(this.editorElement),this.selectionManager.delegate=this,this.composition=new o.Composition,this.composition.delegate=this,this.attachmentManager=new o.AttachmentManager(this.composition.getAttachments()),this.attachmentManager.delegate=this,this.inputController=new(o["Level"+o.config.input.getLevel()+"InputController"])(this.editorElement),this.inputController.delegate=this,this.inputController.responder=this.composition,this.compositionController=new o.CompositionController(this.editorElement,this.composition),this.compositionController.delegate=this,this.toolbarController=new o.ToolbarController(this.editorElement.toolbarElement),this.toolbarController.delegate=this,this.editor=new o.Editor(this.composition,this.selectionManager,this.editorElement),null!=t?this.editor.loadDocument(t):this.editor.loadHTML(n)}var c;return i(l,a),l.prototype.registerSelectionManager=function(){return o.selectionChangeObserver.registerSelectionManager(this.selectionManager)},l.prototype.unregisterSelectionManager=function(){return o.selectionChangeObserver.unregisterSelectionManager(this.selectionManager)},l.prototype.render=function(){return this.compositionController.render()},l.prototype.reparse=function(){return this.composition.replaceHTML(this.editorElement.innerHTML)},l.prototype.compositionDidChangeDocument=function(){return this.notifyEditorElement("document-change"),this.handlingInput?void 0:this.render()},l.prototype.compositionDidChangeCurrentAttributes=function(e){return this.currentAttributes=e,this.toolbarController.updateAttributes(this.currentAttributes),this.updateCurrentActions(),this.notifyEditorElement("attributes-change",{attributes:this.currentAttributes})},l.prototype.compositionDidPerformInsertionAtRange=function(e){return this.pasting?this.pastedRange=e:void 0},l.prototype.compositionShouldAcceptFile=function(e){return this.notifyEditorElement("file-accept",{file:e})},l.prototype.compositionDidAddAttachment=function(e){var t;return t=this.attachmentManager.manageAttachment(e),this.notifyEditorElement("attachment-add",{attachment:t})},l.prototype.compositionDidEditAttachment=function(e){var t;return this.compositionController.rerenderViewForObject(e),t=this.attachmentManager.manageAttachment(e),this.notifyEditorElement("attachment-edit",{attachment:t}),this.notifyEditorElement("change")},l.prototype.compositionDidChangeAttachmentPreviewURL=function(e){return this.compositionController.invalidateViewForObject(e),this.notifyEditorElement("change")},l.prototype.compositionDidRemoveAttachment=function(e){var t;return t=this.attachmentManager.unmanageAttachment(e),this.notifyEditorElement("attachment-remove",{attachment:t})},l.prototype.compositionDidStartEditingAttachment=function(e,t){return this.attachmentLocationRange=this.composition.document.getLocationRangeOfAttachment(e),this.compositionController.installAttachmentEditorForAttachment(e,t),this.selectionManager.setLocationRange(this.attachmentLocationRange)},l.prototype.compositionDidStopEditingAttachment=function(){return this.compositionController.uninstallAttachmentEditor(),this.attachmentLocationRange=null},l.prototype.compositionDidRequestChangingSelectionToLocationRange=function(e){return!this.loadingSnapshot||this.isFocused()?(this.requestedLocationRange=e,this.compositionRevisionWhenLocationRangeRequested=this.composition.revision,this.handlingInput?void 0:this.render()):void 0},l.prototype.compositionWillLoadSnapshot=function(){return this.loadingSnapshot=!0},l.prototype.compositionDidLoadSnapshot=function(){return this.compositionController.refreshViewCache(),this.render(),this.loadingSnapshot=!1},l.prototype.getSelectionManager=function(){return this.selectionManager},l.proxyMethod("getSelectionManager().setLocationRange"),l.proxyMethod("getSelectionManager().getLocationRange"),l.prototype.attachmentManagerDidRequestRemovalOfAttachment=function(e){return this.removeAttachment(e)},l.prototype.compositionControllerWillSyncDocumentView=function(){return this.inputController.editorWillSyncDocumentView(),this.selectionManager.lock(),this.selectionManager.clearSelection()},l.prototype.compositionControllerDidSyncDocumentView=function(){return this.inputController.editorDidSyncDocumentView(),this.selectionManager.unlock(),this.updateCurrentActions(),this.notifyEditorElement("sync")},l.prototype.compositionControllerDidRender=function(){return null!=this.requestedLocationRange&&(this.compositionRevisionWhenLocationRangeRequested===this.composition.revision&&this.selectionManager.setLocationRange(this.requestedLocationRange),this.requestedLocationRange=null,this.compositionRevisionWhenLocationRangeRequested=null),this.renderedCompositionRevision!==this.composition.revision&&(this.runEditorFilters(),this.composition.updateCurrentAttributes(),this.notifyEditorElement("render")),this.renderedCompositionRevision=this.composition.revision},l.prototype.compositionControllerDidFocus=function(){return this.isFocusedInvisibly()&&this.setLocationRange({index:0,offset:0}),this.toolbarController.hideDialog(),this.notifyEditorElement("focus")},l.prototype.compositionControllerDidBlur=function(){return this.notifyEditorElement("blur")},l.prototype.compositionControllerDidSelectAttachment=function(e,t){return this.toolbarController.hideDialog(),this.composition.editAttachment(e,t)},l.prototype.compositionControllerDidRequestDeselectingAttachment=function(e){var t,n;return t=null!=(n=this.attachmentLocationRange)?n:this.composition.document.getLocationRangeOfAttachment(e),this.selectionManager.setLocationRange(t[1])},l.prototype.compositionControllerWillUpdateAttachment=function(e){return this.editor.recordUndoEntry("Edit Attachment",{context:e.id,consolidatable:!0})},l.prototype.compositionControllerDidRequestRemovalOfAttachment=function(e){return this.removeAttachment(e)},l.prototype.inputControllerWillHandleInput=function(){return this.handlingInput=!0,this.requestedRender=!1},l.prototype.inputControllerDidRequestRender=function(){return this.requestedRender=!0},l.prototype.inputControllerDidHandleInput=function(){return this.handlingInput=!1,this.requestedRender?(this.requestedRender=!1,this.render()):void 0},l.prototype.inputControllerDidAllowUnhandledInput=function(){return this.notifyEditorElement("change")},l.prototype.inputControllerDidRequestReparse=function(){return this.reparse()},l.prototype.inputControllerWillPerformTyping=function(){return this.recordTypingUndoEntry()},l.prototype.inputControllerWillPerformFormatting=function(e){return this.recordFormattingUndoEntry(e)},l.prototype.inputControllerWillCutText=function(){return this.editor.recordUndoEntry("Cut")},l.prototype.inputControllerWillPaste=function(e){return this.editor.recordUndoEntry("Paste"),this.pasting=!0,this.notifyEditorElement("before-paste",{paste:e})},l.prototype.inputControllerDidPaste=function(e){return e.range=this.pastedRange,this.pastedRange=null,this.pasting=null,this.notifyEditorElement("paste",{paste:e})},l.prototype.inputControllerWillMoveText=function(){return this.editor.recordUndoEntry("Move")},l.prototype.inputControllerWillAttachFiles=function(){return this.editor.recordUndoEntry("Drop Files")},l.prototype.inputControllerWillPerformUndo=function(){return this.editor.undo()},l.prototype.inputControllerWillPerformRedo=function(){return this.editor.redo()},l.prototype.inputControllerDidReceiveKeyboardCommand=function(e){return this.toolbarController.applyKeyboardCommand(e)},l.prototype.inputControllerDidStartDrag=function(){return this.locationRangeBeforeDrag=this.selectionManager.getLocationRange()},l.prototype.inputControllerDidReceiveDragOverPoint=function(e){return this.selectionManager.setLocationRangeFromPointRange(e)},l.prototype.inputControllerDidCancelDrag=function(){return this.selectionManager.setLocationRange(this.locationRangeBeforeDrag),this.locationRangeBeforeDrag=null},l.prototype.locationRangeDidChange=function(e){return this.composition.updateCurrentAttributes(),this.updateCurrentActions(),this.attachmentLocationRange&&!r(this.attachmentLocationRange,e)&&this.composition.stopEditingAttachment(),this.notifyEditorElement("selection-change")},l.prototype.toolbarDidClickButton=function(){return this.getLocationRange()?void 0:this.setLocationRange({index:0,offset:0})},l.prototype.toolbarDidInvokeAction=function(e){return this.invokeAction(e)},l.prototype.toolbarDidToggleAttribute=function(e){return this.recordFormattingUndoEntry(e),this.composition.toggleCurrentAttribute(e),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarDidUpdateAttribute=function(e,t){return this.recordFormattingUndoEntry(e),this.composition.setCurrentAttribute(e,t),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarDidRemoveAttribute=function(e){return this.recordFormattingUndoEntry(e),this.composition.removeCurrentAttribute(e),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarWillShowDialog=function(){return this.composition.expandSelectionForEditing(),this.freezeSelection()},l.prototype.toolbarDidShowDialog=function(e){return this.notifyEditorElement("toolbar-dialog-show",{dialogName:e})},l.prototype.toolbarDidHideDialog=function(e){return this.thawSelection(),this.editorElement.focus(),this.notifyEditorElement("toolbar-dialog-hide",{dialogName:e})},l.prototype.freezeSelection=function(){return this.selectionFrozen?void 0:(this.selectionManager.lock(),this.composition.freezeSelection(),this.selectionFrozen=!0,this.render())},l.prototype.thawSelection=function(){return this.selectionFrozen?(this.composition.thawSelection(),this.selectionManager.unlock(),this.selectionFrozen=!1,this.render()):void 0},l.prototype.actions={undo:{test:function(){return this.editor.canUndo()},perform:function(){return this.editor.undo()}},redo:{test:function(){return this.editor.canRedo()},perform:function(){return this.editor.redo()}},link:{test:function(){return this.editor.canActivateAttribute("href")}},increaseNestingLevel:{test:function(){return this.editor.canIncreaseNestingLevel()},perform:function(){return this.editor.increaseNestingLevel()&&this.render()}},decreaseNestingLevel:{test:function(){return this.editor.canDecreaseNestingLevel()},perform:function(){return this.editor.decreaseNestingLevel()&&this.render()}},attachFiles:{test:function(){return!0},perform:function(){return o.config.input.pickFiles(this.editor.insertFiles)}}},l.prototype.canInvokeAction=function(e){var t,n;return!!this.actionIsExternal(e)||!!(null!=(t=this.actions[e])&&null!=(n=t.test)?n.call(this):void 0)},l.prototype.invokeAction=function(e){var t,n;return this.actionIsExternal(e)?this.notifyEditorElement("action-invoke",{actionName:e}):null!=(t=this.actions[e])&&null!=(n=t.perform)?n.call(this):void 0},l.prototype.actionIsExternal=function(e){return/^x-./.test(e)},l.prototype.getCurrentActions=function(){var e,t;for(e in t={},this.actions)t[e]=this.canInvokeAction(e);return t},l.prototype.updateCurrentActions=function(){var e;return e=this.getCurrentActions(),t(e,this.currentActions)?void 0:(this.currentActions=e,this.toolbarController.updateActions(this.currentActions),this.notifyEditorElement("actions-change",{actions:this.currentActions}))},l.prototype.runEditorFilters=function(){var e,t,n,r,i,o,a,s;for(s=this.composition.getSnapshot(),n=0,r=(i=this.editor.filters).length;r>n;n++)t=i[n],e=s.document,a=s.selectedRange,null==(s=null!=(o=t.call(this.editor,s))?o:{}).document&&(s.document=e),null==s.selectedRange&&(s.selectedRange=a);return c(s,this.composition.getSnapshot())?void 0:this.composition.loadSnapshot(s)},c=function(e,t){return r(e.selectedRange,t.selectedRange)&&e.document.isEqualTo(t.document)},l.prototype.updateInputElement=function(){var e,t;return e=this.compositionController.getSerializableElement(),t=o.serializeToContentType(e,"text/html"),this.editorElement.setInputElementValue(t)},l.prototype.notifyEditorElement=function(e,t){switch(e){case"document-change":this.documentChangedSinceLastRender=!0;break;case"render":this.documentChangedSinceLastRender&&(this.documentChangedSinceLastRender=!1,this.notifyEditorElement("change"));break;case"change":case"attachment-add":case"attachment-edit":case"attachment-remove":this.updateInputElement()}return this.editorElement.notify(e,t)},l.prototype.removeAttachment=function(e){return this.editor.recordUndoEntry("Delete Attachment"),this.composition.removeAttachment(e),this.render()},l.prototype.recordFormattingUndoEntry=function(t){var r,i;return r=e(t),i=this.selectionManager.getLocationRange(),r||!n(i)?this.editor.recordUndoEntry("Formatting",{context:this.getUndoContext(),consolidatable:!0}):void 0},l.prototype.recordTypingUndoEntry=function(){return this.editor.recordUndoEntry("Typing",{context:this.getUndoContext(this.currentAttributes),consolidatable:!0})},l.prototype.getUndoContext=function(){var e;return e=1<=arguments.length?s.call(arguments,0):[],[this.getLocationContext(),this.getTimeContext()].concat(s.call(e))},l.prototype.getLocationContext=function(){var e;return e=this.selectionManager.getLocationRange(),n(e)?e[0].index:e},l.prototype.getTimeContext=function(){return o.config.undoInterval>0?Math.floor((new Date).getTime()/o.config.undoInterval):0},l.prototype.isFocused=function(){var e;return this.editorElement===(null!=(e=this.editorElement.ownerDocument)?e.activeElement:void 0)},l.prototype.isFocusedInvisibly=function(){return this.isFocused()&&!this.getLocationRange()},l}(o.Controller)}.call(this),function(){var e,t,n,r,i,a,s,l,c,u,p,d,f,h,m,g,v=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};t=o.browser,a=o.makeElement,s=o.triggerEvent,r=o.handleEvent,i=o.handleEventOnce,n=o.findClosestElementFromNode,e=o.AttachmentView.attachmentSelector,o.registerElement("trix-editor",(h=0,c=function(e){return!document.querySelector(":focus")&&e.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===e?e.focus():void 0},m=function(e){return e.hasAttribute("contenteditable")?void 0:(e.setAttribute("contenteditable",""),i("focus",{onElement:e,withCallback:function(){return u(e)}}))},u=function(e){return d(e),g(e)},d=function(e){return("function"==typeof document.queryCommandSupported?document.queryCommandSupported("enableObjectResizing"):void 0)?(document.execCommand("enableObjectResizing",!1,!1),r("mscontrolselect",{onElement:e,preventDefault:!0})):void 0},g=function(){var e;return!("function"==typeof document.queryCommandSupported?document.queryCommandSupported("DefaultParagraphSeparator"):void 0)||"div"!==(e=o.config.blockAttributes.default.tagName)&&"p"!==e?void 0:document.execCommand("DefaultParagraphSeparator",!1,e)},l=function(e){return e.hasAttribute("role")?void 0:e.setAttribute("role","textbox")},f=function(e){var t;if(!e.hasAttribute("aria-label")&&!e.hasAttribute("aria-labelledby"))return(t=function(){var t,n,r;return r=function(){var n,r,i,o;for(o=[],n=0,r=(i=e.labels).length;r>n;n++)(t=i[n]).contains(e)||o.push(t.textContent);return o}(),(n=r.join(" "))?e.setAttribute("aria-label",n):e.removeAttribute("aria-label")})(),r("focus",{onElement:e,withCallback:t})},p=t.forcesObjectResizing?{display:"inline",width:"auto"}:{display:"inline-block",width:"1px"},{defaultCSS:"%t {\n  display: block;\n}\n\n%t:empty:not(:focus)::before {\n  content: attr(placeholder);\n  color: graytext;\n  cursor: text;\n  pointer-events: none;\n}\n\n%t a[contenteditable=false] {\n  cursor: text;\n}\n\n%t img {\n  max-width: 100%;\n  height: auto;\n}\n\n%t "+e+" figcaption textarea {\n  resize: none;\n}\n\n%t "+e+" figcaption textarea.trix-autoresize-clone {\n  position: absolute;\n  left: -9999px;\n  max-height: 0px;\n}\n\n%t "+e+" figcaption[data-trix-placeholder]:empty::before {\n  content: attr(data-trix-placeholder);\n  color: graytext;\n}\n\n%t [data-trix-cursor-target] {\n  display: "+p.display+" !important;\n  width: "+p.width+" !important;\n  padding: 0 !important;\n  margin: 0 !important;\n  border: none !important;\n}\n\n%t [data-trix-cursor-target=left] {\n  vertical-align: top !important;\n  margin-left: -1px !important;\n}\n\n%t [data-trix-cursor-target=right] {\n  vertical-align: bottom !important;\n  margin-right: -1px !important;\n}",trixId:{get:function(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++h),this.trixId)}},labels:{get:function(){var e,t,r;return t=[],this.id&&this.ownerDocument&&t.push.apply(t,this.ownerDocument.querySelectorAll("label[for='"+this.id+"']")),(e=n(this,{matchingSelector:"label"}))&&((r=e.control)===this||null===r)&&t.push(e),t}},toolbarElement:{get:function(){var e,t,n;return this.hasAttribute("toolbar")?null!=(t=this.ownerDocument)?t.getElementById(this.getAttribute("toolbar")):void 0:this.parentNode?(n="trix-toolbar-"+this.trixId,this.setAttribute("toolbar",n),e=a("trix-toolbar",{id:n}),this.parentNode.insertBefore(e,this),e):void 0}},inputElement:{get:function(){var e,t,n;return this.hasAttribute("input")?null!=(n=this.ownerDocument)?n.getElementById(this.getAttribute("input")):void 0:this.parentNode?(t="trix-input-"+this.trixId,this.setAttribute("input",t),e=a("input",{type:"hidden",id:t}),this.parentNode.insertBefore(e,this.nextElementSibling),e):void 0}},editor:{get:function(){var e;return null!=(e=this.editorController)?e.editor:void 0}},name:{get:function(){var e;return null!=(e=this.inputElement)?e.name:void 0}},value:{get:function(){var e;return null!=(e=this.inputElement)?e.value:void 0},set:function(e){var t;return this.defaultValue=e,null!=(t=this.editor)?t.loadHTML(this.defaultValue):void 0}},notify:function(e,t){return this.editorController?s("trix-"+e,{onElement:this,attributes:t}):void 0},setInputElementValue:function(e){var t;return null!=(t=this.inputElement)?t.value=e:void 0},initialize:function(){return this.hasAttribute("data-trix-internal")?void 0:(m(this),l(this),f(this))},connect:function(){return this.hasAttribute("data-trix-internal")?void 0:(this.editorController||(s("trix-before-initialize",{onElement:this}),this.editorController=new o.EditorController({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame(function(e){return function(){return s("trix-initialize",{onElement:e})}}(this))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),c(this))},disconnect:function(){var e;return null!=(e=this.editorController)&&e.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()},registerResetListener:function(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)},unregisterResetListener:function(){return window.removeEventListener("reset",this.resetListener,!1)},registerClickListener:function(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)},unregisterClickListener:function(){return window.removeEventListener("click",this.clickListener,!1)},resetBubbled:function(e){var t;if(!e.defaultPrevented&&e.target===(null!=(t=this.inputElement)?t.form:void 0))return this.reset()},clickBubbled:function(e){var t;if(!(e.defaultPrevented||this.contains(e.target)||!(t=n(e.target,{matchingSelector:"label"}))||v.call(this.labels,t)<0))return this.focus()},reset:function(){return this.value=this.defaultValue}}))}.call(this),function(){}.call(this)}).call(this),e.exports?e.exports=o:void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}.call(this)},83744:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},70821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseTransition:()=>vr,BaseTransitionPropsValidators:()=>gr,Comment:()=>To,EffectScope:()=>de,Fragment:()=>So,KeepAlive:()=>Or,ReactiveEffect:()=>Ee,Static:()=>Oo,Suspense:()=>Jn,Teleport:()=>Co,Text:()=>Eo,Transition:()=>us,TransitionGroup:()=>Os,VueElement:()=>rs,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>cn,camelize:()=>N,capitalize:()=>R,cloneVNode:()=>Xo,compatUtils:()=>Fa,compile:()=>Zp,computed:()=>Ta,createApp:()=>sl,createBlock:()=>Io,createCommentVNode:()=>Qo,createElementBlock:()=>Fo,createElementVNode:()=>Vo,createHydrationRenderer:()=>go,createPropsRestProxy:()=>Ei,createRenderer:()=>mo,createSSRApp:()=>ll,createSlots:()=>ii,createStaticVNode:()=>Zo,createTextVNode:()=>Jo,createVNode:()=>Ko,customRef:()=>Qt,defineAsyncComponent:()=>Sr,defineComponent:()=>Cr,defineCustomElement:()=>es,defineEmits:()=>hi,defineExpose:()=>mi,defineModel:()=>yi,defineOptions:()=>gi,defineProps:()=>fi,defineSSRCustomElement:()=>ts,defineSlots:()=>vi,devtools:()=>Mn,effect:()=>Oe,effectScope:()=>fe,getCurrentInstance:()=>ca,getCurrentScope:()=>me,getTransitionRawChildren:()=>_r,guardReactiveProps:()=>Yo,h:()=>Oa,handleError:()=>pn,hasInjectionContext:()=>Ki,hydrate:()=>al,initCustomFormatter:()=>Ba,initDirectivesForSSR:()=>pl,inject:()=>Vi,isMemoSame:()=>Na,isProxy:()=>jt,isReactive:()=>Bt,isReadonly:()=>Dt,isRef:()=>qt,isRuntimeOnly:()=>Aa,isShallow:()=>Nt,isVNode:()=>zo,markRaw:()=>Rt,mergeDefaults:()=>ki,mergeModels:()=>Si,mergeProps:()=>ra,nextTick:()=>wn,normalizeClass:()=>Q,normalizeProps:()=>ee,normalizeStyle:()=>G,onActivated:()=>Lr,onBeforeMount:()=>Ir,onBeforeUnmount:()=>Hr,onBeforeUpdate:()=>$r,onDeactivated:()=>Br,onErrorCaptured:()=>Gr,onMounted:()=>zr,onRenderTracked:()=>Kr,onRenderTriggered:()=>Vr,onScopeDispose:()=>ge,onServerPrefetch:()=>Ur,onUnmounted:()=>Wr,onUpdated:()=>qr,openBlock:()=>Bo,popScopeId:()=>$n,provide:()=>Ui,proxyRefs:()=>Jt,pushScopeId:()=>zn,queuePostFlushCb:()=>Cn,reactive:()=>Et,readonly:()=>Ot,ref:()=>Ht,registerRuntimeCompiler:()=>wa,render:()=>ol,renderList:()=>ri,renderSlot:()=>oi,resolveComponent:()=>Jr,resolveDirective:()=>ei,resolveDynamicComponent:()=>Qr,resolveFilter:()=>Ra,resolveTransitionHooks:()=>br,setBlockTracking:()=>Po,setDevtoolsHook:()=>Dn,setTransitionHooks:()=>Ar,shallowReactive:()=>Tt,shallowReadonly:()=>Mt,shallowRef:()=>Wt,ssrContextKey:()=>Ma,ssrUtils:()=>Pa,stop:()=>Me,toDisplayString:()=>ce,toHandlerKey:()=>F,toHandlers:()=>si,toRaw:()=>Pt,toRef:()=>rn,toRefs:()=>en,toValue:()=>Yt,transformVNodeArgs:()=>qo,triggerRef:()=>Kt,unref:()=>Gt,useAttrs:()=>wi,useCssModule:()=>is,useCssVars:()=>os,useModel:()=>Ai,useSSRContext:()=>La,useSlots:()=>xi,useTransitionState:()=>hr,vModelCheckbox:()=>Rs,vModelDynamic:()=>Ws,vModelRadio:()=>Is,vModelSelect:()=>zs,vModelText:()=>Ps,vShow:()=>Zs,version:()=>ja,warn:()=>sn,watch:()=>sr,watchEffect:()=>rr,watchPostEffect:()=>ir,watchSyncEffect:()=>or,withAsyncContext:()=>Ti,withCtx:()=>Hn,withDefaults:()=>bi,withDirectives:()=>dr,withKeys:()=>Js,withMemo:()=>Da,withModifiers:()=>Ys,withScopeId:()=>qn});var r={};function i(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.r(r),n.d(r,{BaseTransition:()=>vr,BaseTransitionPropsValidators:()=>gr,Comment:()=>To,EffectScope:()=>de,Fragment:()=>So,KeepAlive:()=>Or,ReactiveEffect:()=>Ee,Static:()=>Oo,Suspense:()=>Jn,Teleport:()=>Co,Text:()=>Eo,Transition:()=>us,TransitionGroup:()=>Os,VueElement:()=>rs,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>cn,camelize:()=>N,capitalize:()=>R,cloneVNode:()=>Xo,compatUtils:()=>Fa,computed:()=>Ta,createApp:()=>sl,createBlock:()=>Io,createCommentVNode:()=>Qo,createElementBlock:()=>Fo,createElementVNode:()=>Vo,createHydrationRenderer:()=>go,createPropsRestProxy:()=>Ei,createRenderer:()=>mo,createSSRApp:()=>ll,createSlots:()=>ii,createStaticVNode:()=>Zo,createTextVNode:()=>Jo,createVNode:()=>Ko,customRef:()=>Qt,defineAsyncComponent:()=>Sr,defineComponent:()=>Cr,defineCustomElement:()=>es,defineEmits:()=>hi,defineExpose:()=>mi,defineModel:()=>yi,defineOptions:()=>gi,defineProps:()=>fi,defineSSRCustomElement:()=>ts,defineSlots:()=>vi,devtools:()=>Mn,effect:()=>Oe,effectScope:()=>fe,getCurrentInstance:()=>ca,getCurrentScope:()=>me,getTransitionRawChildren:()=>_r,guardReactiveProps:()=>Yo,h:()=>Oa,handleError:()=>pn,hasInjectionContext:()=>Ki,hydrate:()=>al,initCustomFormatter:()=>Ba,initDirectivesForSSR:()=>pl,inject:()=>Vi,isMemoSame:()=>Na,isProxy:()=>jt,isReactive:()=>Bt,isReadonly:()=>Dt,isRef:()=>qt,isRuntimeOnly:()=>Aa,isShallow:()=>Nt,isVNode:()=>zo,markRaw:()=>Rt,mergeDefaults:()=>ki,mergeModels:()=>Si,mergeProps:()=>ra,nextTick:()=>wn,normalizeClass:()=>Q,normalizeProps:()=>ee,normalizeStyle:()=>G,onActivated:()=>Lr,onBeforeMount:()=>Ir,onBeforeUnmount:()=>Hr,onBeforeUpdate:()=>$r,onDeactivated:()=>Br,onErrorCaptured:()=>Gr,onMounted:()=>zr,onRenderTracked:()=>Kr,onRenderTriggered:()=>Vr,onScopeDispose:()=>ge,onServerPrefetch:()=>Ur,onUnmounted:()=>Wr,onUpdated:()=>qr,openBlock:()=>Bo,popScopeId:()=>$n,provide:()=>Ui,proxyRefs:()=>Jt,pushScopeId:()=>zn,queuePostFlushCb:()=>Cn,reactive:()=>Et,readonly:()=>Ot,ref:()=>Ht,registerRuntimeCompiler:()=>wa,render:()=>ol,renderList:()=>ri,renderSlot:()=>oi,resolveComponent:()=>Jr,resolveDirective:()=>ei,resolveDynamicComponent:()=>Qr,resolveFilter:()=>Ra,resolveTransitionHooks:()=>br,setBlockTracking:()=>Po,setDevtoolsHook:()=>Dn,setTransitionHooks:()=>Ar,shallowReactive:()=>Tt,shallowReadonly:()=>Mt,shallowRef:()=>Wt,ssrContextKey:()=>Ma,ssrUtils:()=>Pa,stop:()=>Me,toDisplayString:()=>ce,toHandlerKey:()=>F,toHandlers:()=>si,toRaw:()=>Pt,toRef:()=>rn,toRefs:()=>en,toValue:()=>Yt,transformVNodeArgs:()=>qo,triggerRef:()=>Kt,unref:()=>Gt,useAttrs:()=>wi,useCssModule:()=>is,useCssVars:()=>os,useModel:()=>Ai,useSSRContext:()=>La,useSlots:()=>xi,useTransitionState:()=>hr,vModelCheckbox:()=>Rs,vModelDynamic:()=>Ws,vModelRadio:()=>Is,vModelSelect:()=>zs,vModelText:()=>Ps,vShow:()=>Zs,version:()=>ja,warn:()=>sn,watch:()=>sr,watchEffect:()=>rr,watchPostEffect:()=>ir,watchSyncEffect:()=>or,withAsyncContext:()=>Ti,withCtx:()=>Hn,withDefaults:()=>bi,withDirectives:()=>dr,withKeys:()=>Js,withMemo:()=>Da,withModifiers:()=>Ys,withScopeId:()=>qn});const o={},a=[],s=()=>{},l=()=>!1,c=/^on[^a-z]/,u=e=>c.test(e),p=e=>e.startsWith("onUpdate:"),d=Object.assign,f=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,m=(e,t)=>h.call(e,t),g=Array.isArray,v=e=>"[object Map]"===S(e),y=e=>"[object Set]"===S(e),b=e=>"[object Date]"===S(e),x=e=>"function"==typeof e,w=e=>"string"==typeof e,A=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,C=e=>_(e)&&x(e.then)&&x(e.catch),k=Object.prototype.toString,S=e=>k.call(e),E=e=>S(e).slice(8,-1),T=e=>"[object Object]"===S(e),O=e=>w(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,M=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L=i("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),B=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},D=/-(\w)/g,N=B((e=>e.replace(D,((e,t)=>t?t.toUpperCase():"")))),j=/\B([A-Z])/g,P=B((e=>e.replace(j,"-$1").toLowerCase())),R=B((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=B((e=>e?`on${R(e)}`:"")),I=(e,t)=>!Object.is(e,t),z=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},q=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=w(e)?Number(e):NaN;return isNaN(t)?e:t};let W;const U=()=>W||(W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});const V={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},K=i("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");function G(e){if(g(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=w(r)?Z(r):G(r);if(i)for(const e in i)t[e]=i[e]}return t}return w(e)||_(e)?e:void 0}const Y=/;(?![^(]*\))/g,X=/:([^]+)/,J=/\/\*[^]*?\*\//g;function Z(e){const t={};return e.replace(J,"").split(Y).forEach((e=>{if(e){const n=e.split(X);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Q(e){let t="";if(w(e))t=e;else if(g(e))for(let n=0;n<e.length;n++){const r=Q(e[n]);r&&(t+=r+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ee(e){if(!e)return null;let{class:t,style:n}=e;return t&&!w(t)&&(e.class=Q(t)),n&&(e.style=G(n)),e}const te=i("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),ne=i("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),re=i("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),ie="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",oe=i(ie);function ae(e){return!!e||""===e}function se(e,t){if(e===t)return!0;let n=b(e),r=b(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=A(e),r=A(t),n||r)return e===t;if(n=g(e),r=g(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=se(e[r],t[r]);return n}(e,t);if(n=_(e),r=_(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!se(e[n],t[n]))return!1}}return String(e)===String(t)}function le(e,t){return e.findIndex((e=>se(e,t)))}const ce=e=>w(e)?e:null==e?"":g(e)||_(e)&&(e.toString===k||!x(e.toString))?JSON.stringify(e,ue,2):String(e),ue=(e,t)=>t&&t.__v_isRef?ue(e,t.value):v(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:y(t)?{[`Set(${t.size})`]:[...t.values()]}:!_(t)||g(t)||T(t)?t:String(t);let pe;class de{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pe,!e&&pe&&(this.index=(pe.scopes||(pe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=pe;try{return pe=this,e()}finally{pe=t}}else 0}on(){pe=this}off(){pe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function fe(e){return new de(e)}function he(e,t=pe){t&&t.active&&t.effects.push(e)}function me(){return pe}function ge(e){pe&&pe.cleanups.push(e)}const ve=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ye=e=>(e.w&Ae)>0,be=e=>(e.n&Ae)>0,xe=new WeakMap;let we=0,Ae=1;const _e=30;let Ce;const ke=Symbol(""),Se=Symbol("");class Ee{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,he(this,n)}run(){if(!this.active)return this.fn();let e=Ce,t=Le;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Ce,Ce=this,Le=!0,Ae=1<<++we,we<=_e?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ae})(this):Te(this),this.fn()}finally{we<=_e&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];ye(i)&&!be(i)?i.delete(e):t[n++]=i,i.w&=~Ae,i.n&=~Ae}t.length=n}})(this),Ae=1<<--we,Ce=this.parent,Le=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ce===this?this.deferStop=!0:this.active&&(Te(this),this.onStop&&this.onStop(),this.active=!1)}}function Te(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function Oe(e,t){e.effect&&(e=e.effect.fn);const n=new Ee(e);t&&(d(n,t),t.scope&&he(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r}function Me(e){e.effect.stop()}let Le=!0;const Be=[];function De(){Be.push(Le),Le=!1}function Ne(){const e=Be.pop();Le=void 0===e||e}function je(e,t,n){if(Le&&Ce){let t=xe.get(e);t||xe.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=ve());Pe(r,void 0)}}function Pe(e,t){let n=!1;we<=_e?be(e)||(e.n|=Ae,n=!ye(e)):n=!e.has(Ce),n&&(e.add(Ce),Ce.deps.push(e))}function Re(e,t,n,r,i,o){const a=xe.get(e);if(!a)return;let s=[];if("clear"===t)s=[...a.values()];else if("length"===n&&g(e)){const e=Number(r);a.forEach(((t,n)=>{("length"===n||n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(a.get(n)),t){case"add":g(e)?O(n)&&s.push(a.get("length")):(s.push(a.get(ke)),v(e)&&s.push(a.get(Se)));break;case"delete":g(e)||(s.push(a.get(ke)),v(e)&&s.push(a.get(Se)));break;case"set":v(e)&&s.push(a.get(ke))}if(1===s.length)s[0]&&Fe(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Fe(ve(e))}}function Fe(e,t){const n=g(e)?e:[...e];for(const e of n)e.computed&&Ie(e,t);for(const e of n)e.computed||Ie(e,t)}function Ie(e,t){(e!==Ce||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ze=i("__proto__,__v_isRef,__isVue"),$e=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(A)),qe=Ye(),He=Ye(!1,!0),We=Ye(!0),Ue=Ye(!0,!0),Ve=Ke();function Ke(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e<t;e++)je(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Pt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){De();const n=Pt(this)[t].apply(this,e);return Ne(),n}})),e}function Ge(e){const t=Pt(this);return je(t,0,e),t.hasOwnProperty(e)}function Ye(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?St:kt:t?Ct:_t).get(n))return n;const o=g(n);if(!e){if(o&&m(Ve,r))return Reflect.get(Ve,r,i);if("hasOwnProperty"===r)return Ge}const a=Reflect.get(n,r,i);return(A(r)?$e.has(r):ze(r))?a:(e||je(n,0,r),t?a:qt(a)?o&&O(r)?a:a.value:_(a)?e?Ot(a):Et(a):a)}}function Xe(e=!1){return function(t,n,r,i){let o=t[n];if(Dt(o)&&qt(o)&&!qt(r))return!1;if(!e&&(Nt(r)||Dt(r)||(o=Pt(o),r=Pt(r)),!g(t)&&qt(o)&&!qt(r)))return o.value=r,!0;const a=g(t)&&O(n)?Number(n)<t.length:m(t,n),s=Reflect.set(t,n,r,i);return t===Pt(i)&&(a?I(r,o)&&Re(t,"set",n,r):Re(t,"add",n,r)),s}}const Je={get:qe,set:Xe(),deleteProperty:function(e,t){const n=m(e,t),r=(e[t],Reflect.deleteProperty(e,t));return r&&n&&Re(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return A(t)&&$e.has(t)||je(e,0,t),n},ownKeys:function(e){return je(e,0,g(e)?"length":ke),Reflect.ownKeys(e)}},Ze={get:We,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Qe=d({},Je,{get:He,set:Xe(!0)}),et=d({},Ze,{get:Ue}),tt=e=>e,nt=e=>Reflect.getPrototypeOf(e);function rt(e,t,n=!1,r=!1){const i=Pt(e=e.__v_raw),o=Pt(t);n||(t!==o&&je(i,0,t),je(i,0,o));const{has:a}=nt(i),s=r?tt:n?It:Ft;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function it(e,t=!1){const n=this.__v_raw,r=Pt(n),i=Pt(e);return t||(e!==i&&je(r,0,e),je(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function ot(e,t=!1){return e=e.__v_raw,!t&&je(Pt(e),0,ke),Reflect.get(e,"size",e)}function at(e){e=Pt(e);const t=Pt(this);return nt(t).has.call(t,e)||(t.add(e),Re(t,"add",e,e)),this}function st(e,t){t=Pt(t);const n=Pt(this),{has:r,get:i}=nt(n);let o=r.call(n,e);o||(e=Pt(e),o=r.call(n,e));const a=i.call(n,e);return n.set(e,t),o?I(t,a)&&Re(n,"set",e,t):Re(n,"add",e,t),this}function lt(e){const t=Pt(this),{has:n,get:r}=nt(t);let i=n.call(t,e);i||(e=Pt(e),i=n.call(t,e));r&&r.call(t,e);const o=t.delete(e);return i&&Re(t,"delete",e,void 0),o}function ct(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&Re(e,"clear",void 0,void 0),n}function ut(e,t){return function(n,r){const i=this,o=i.__v_raw,a=Pt(o),s=t?tt:e?It:Ft;return!e&&je(a,0,ke),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function pt(e,t,n){return function(...r){const i=this.__v_raw,o=Pt(i),a=v(o),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=i[e](...r),u=n?tt:t?It:Ft;return!t&&je(o,0,l?Se:ke),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function dt(e){return function(...t){return"delete"!==e&&this}}function ft(){const e={get(e){return rt(this,e)},get size(){return ot(this)},has:it,add:at,set:st,delete:lt,clear:ct,forEach:ut(!1,!1)},t={get(e){return rt(this,e,!1,!0)},get size(){return ot(this)},has:it,add:at,set:st,delete:lt,clear:ct,forEach:ut(!1,!0)},n={get(e){return rt(this,e,!0)},get size(){return ot(this,!0)},has(e){return it.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:ut(!0,!1)},r={get(e){return rt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return it.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:ut(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=pt(i,!1,!1),n[i]=pt(i,!0,!1),t[i]=pt(i,!1,!0),r[i]=pt(i,!0,!0)})),[e,n,t,r]}const[ht,mt,gt,vt]=ft();function yt(e,t){const n=t?e?vt:gt:e?mt:ht;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(m(n,r)&&r in t?n:t,r,i)}const bt={get:yt(!1,!1)},xt={get:yt(!1,!0)},wt={get:yt(!0,!1)},At={get:yt(!0,!0)};const _t=new WeakMap,Ct=new WeakMap,kt=new WeakMap,St=new WeakMap;function Et(e){return Dt(e)?e:Lt(e,!1,Je,bt,_t)}function Tt(e){return Lt(e,!1,Qe,xt,Ct)}function Ot(e){return Lt(e,!0,Ze,wt,kt)}function Mt(e){return Lt(e,!0,et,At,St)}function Lt(e,t,n,r,i){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(E(s));var s;if(0===a)return e;const l=new Proxy(e,2===a?r:n);return i.set(e,l),l}function Bt(e){return Dt(e)?Bt(e.__v_raw):!(!e||!e.__v_isReactive)}function Dt(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function jt(e){return Bt(e)||Dt(e)}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Rt(e){return $(e,"__v_skip",!0),e}const Ft=e=>_(e)?Et(e):e,It=e=>_(e)?Ot(e):e;function zt(e){Le&&Ce&&Pe((e=Pt(e)).dep||(e.dep=ve()))}function $t(e,t){const n=(e=Pt(e)).dep;n&&Fe(n)}function qt(e){return!(!e||!0!==e.__v_isRef)}function Ht(e){return Ut(e,!1)}function Wt(e){return Ut(e,!0)}function Ut(e,t){return qt(e)?e:new Vt(e,t)}class Vt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Ft(e)}get value(){return zt(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Dt(e);e=t?e:Pt(e),I(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ft(e),$t(this))}}function Kt(e){$t(e)}function Gt(e){return qt(e)?e.value:e}function Yt(e){return x(e)?e():Gt(e)}const Xt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return qt(i)&&!qt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Jt(e){return Bt(e)?e:new Proxy(e,Xt)}class Zt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>zt(this)),(()=>$t(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Zt(e)}function en(e){const t=g(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class tn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Pt(this._object),t=this._key,null==(n=xe.get(e))?void 0:n.get(t);var e,t,n}}class nn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function rn(e,t,n){return qt(e)?e:x(e)?new nn(e):_(e)&&arguments.length>1?on(e,t,n):Ht(e)}function on(e,t,n){const r=e[t];return qt(r)?r:new tn(e,t,n)}class an{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ee(e,(()=>{this._dirty||(this._dirty=!0,$t(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Pt(this);return zt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function sn(e,...t){}function ln(e,t){}function cn(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){pn(e,t,n)}return i}function un(e,t,n,r){if(x(e)){const i=cn(e,t,n,r);return i&&C(i)&&i.catch((e=>{pn(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(un(e[o],t,n,r));return i}function pn(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void cn(a,null,10,[e,i,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let dn=!1,fn=!1;const hn=[];let mn=0;const gn=[];let vn=null,yn=0;const bn=Promise.resolve();let xn=null;function wn(e){const t=xn||bn;return e?t.then(this?e.bind(this):e):t}function An(e){hn.length&&hn.includes(e,dn&&e.allowRecurse?mn+1:mn)||(null==e.id?hn.push(e):hn.splice(function(e){let t=mn+1,n=hn.length;for(;t<n;){const r=t+n>>>1;En(hn[r])<e?t=r+1:n=r}return t}(e.id),0,e),_n())}function _n(){dn||fn||(fn=!0,xn=bn.then(On))}function Cn(e){g(e)?gn.push(...e):vn&&vn.includes(e,e.allowRecurse?yn+1:yn)||gn.push(e),_n()}function kn(e,t=(dn?mn+1:0)){for(0;t<hn.length;t++){const e=hn[t];e&&e.pre&&(hn.splice(t,1),t--,e())}}function Sn(e){if(gn.length){const e=[...new Set(gn)];if(gn.length=0,vn)return void vn.push(...e);for(vn=e,vn.sort(((e,t)=>En(e)-En(t))),yn=0;yn<vn.length;yn++)vn[yn]();vn=null,yn=0}}const En=e=>null==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function On(e){fn=!1,dn=!0,hn.sort(Tn);try{for(mn=0;mn<hn.length;mn++){const e=hn[mn];e&&!1!==e.active&&cn(e,null,14)}}finally{mn=0,hn.length=0,Sn(),dn=!1,xn=null,(hn.length||gn.length)&&On(e)}}let Mn,Ln=[],Bn=!1;function Dn(e,t){var n,r;if(Mn=e,Mn)Mn.enabled=!0,Ln.forEach((({event:e,args:t})=>Mn.emit(e,...t))),Ln=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(n=window.navigator)?void 0:n.userAgent)?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Dn(e,t)})),setTimeout((()=>{Mn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bn=!0,Ln=[])}),3e3)}else Bn=!0,Ln=[]}function Nn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const a=t.startsWith("update:"),s=a&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:a}=r[e]||o;a&&(i=n.map((e=>w(e)?e.trim():e))),t&&(i=n.map(q))}let l;let c=r[l=F(t)]||r[l=F(N(t))];!c&&a&&(c=r[l=F(P(t))]),c&&un(c,e,6,i);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,un(u,e,6,i)}}function jn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let a={},s=!1;if(!x(e)){const r=e=>{const n=jn(e,t,!0);n&&(s=!0,d(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||s?(g(o)?o.forEach((e=>a[e]=null)):d(a,o),_(e)&&r.set(e,a),a):(_(e)&&r.set(e,null),null)}function Pn(e,t){return!(!e||!u(t))&&(t=t.slice(2).replace(/Once$/,""),m(e,t[0].toLowerCase()+t.slice(1))||m(e,P(t))||m(e,t))}let Rn=null,Fn=null;function In(e){const t=Rn;return Rn=e,Fn=e&&e.type.__scopeId||null,t}function zn(e){Fn=e}function $n(){Fn=null}const qn=e=>Hn;function Hn(e,t=Rn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Po(-1);const i=In(t);let o;try{o=e(...n)}finally{In(i),r._d&&Po(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Wn(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:d,data:f,setupState:h,ctx:m,inheritAttrs:g}=e;let v,y;const b=In(e);try{if(4&n.shapeFlag){const e=i||r;v=ea(u.call(e,e,d,o,h,f,m)),y=l}else{const e=t;0,v=ea(e.length>1?e(o,{attrs:l,slots:s,emit:c}):e(o,null)),y=t.props?l:Vn(l)}}catch(t){Mo.length=0,pn(t,e,1),v=Ko(To)}let x=v;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=x;e.length&&7&t&&(a&&e.some(p)&&(y=Kn(y,a)),x=Xo(x,y))}return n.dirs&&(x=Xo(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),v=x,In(b),v}function Un(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!zo(r))return;if(r.type!==To||"v-if"===r.children){if(t)return;t=r}}return t}const Vn=e=>{let t;for(const n in e)("class"===n||"style"===n||u(n))&&((t||(t={}))[n]=e[n]);return t},Kn=(e,t)=>{const n={};for(const r in e)p(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Gn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Pn(n,o))return!0}return!1}function Yn({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Xn=e=>e.__isSuspense,Jn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,c){null==e?function(e,t,n,r,i,o,a,s,l){const{p:c,o:{createElement:u}}=l,p=u("div"),d=e.suspense=Qn(e,i,r,t,p,n,o,a,s,l);c(null,d.pendingBranch=e.ssContent,p,null,r,d,o,a),d.deps>0?(Zn(e,"onPending"),Zn(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,a),nr(d,e.ssFallback)):d.resolve(!1,!0)}(t,n,r,i,o,a,s,l,c):function(e,t,n,r,i,o,a,s,{p:l,um:c,o:{createElement:u}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const d=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=p;if(m)p.pendingBranch=d,$o(d,m)?(l(m,d,p.hiddenContainer,null,i,p,o,a,s),p.deps<=0?p.resolve():g&&(l(h,f,n,r,i,null,o,a,s),nr(p,f))):(p.pendingId++,v?(p.isHydrating=!1,p.activeBranch=m):c(m,i,p),p.deps=0,p.effects.length=0,p.hiddenContainer=u("div"),g?(l(null,d,p.hiddenContainer,null,i,p,o,a,s),p.deps<=0?p.resolve():(l(h,f,n,r,i,null,o,a,s),nr(p,f))):h&&$o(d,h)?(l(h,d,n,r,i,p,o,a,s),p.resolve(!0)):(l(null,d,p.hiddenContainer,null,i,p,o,a,s),p.deps<=0&&p.resolve()));else if(h&&$o(d,h))l(h,d,n,r,i,p,o,a,s),nr(p,d);else if(Zn(t,"onPending"),p.pendingBranch=d,p.pendingId++,l(null,d,p.hiddenContainer,null,i,p,o,a,s),p.deps<=0)p.resolve();else{const{timeout:e,pendingId:t}=p;e>0?setTimeout((()=>{p.pendingId===t&&p.fallback(f)}),e):0===e&&p.fallback(f)}}(e,t,n,r,i,a,s,l,c)},hydrate:function(e,t,n,r,i,o,a,s,l){const c=t.suspense=Qn(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,a);0===c.deps&&c.resolve(!1,!0);return u},create:Qn,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=er(r?n.default:n),e.ssFallback=r?er(n.fallback):Ko(To)}};function Zn(e,t){const n=e.props&&e.props[t];x(n)&&n()}function Qn(e,t,n,r,i,o,a,s,l,c,u=!1){const{p,m:d,um:f,n:h,o:{parentNode:m,remove:g}}=c;let v;const y=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);y&&(null==t?void 0:t.pendingBranch)&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0;const x={vnode:e,parent:t,parentComponent:n,isSVG:a,container:r,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:i,pendingBranch:o,pendingId:a,effects:s,parentComponent:l,container:c}=x;if(x.isHydrating)x.isHydrating=!1;else if(!e){const e=i&&o.transition&&"out-in"===o.transition.mode;e&&(i.transition.afterLeave=()=>{a===x.pendingId&&d(o,c,t,0)});let{anchor:t}=x;i&&(t=h(i),f(i,l,x,!0)),e||d(o,c,t,0)}nr(x,o),x.pendingBranch=null,x.isInFallback=!1;let u=x.parent,p=!1;for(;u;){if(u.pendingBranch){u.effects.push(...s),p=!0;break}u=u.parent}p||Cn(s),x.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Zn(r,"onResolve")},fallback(e){if(!x.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,isSVG:o}=x;Zn(t,"onFallback");const a=h(n),c=()=>{x.isInFallback&&(p(null,e,i,a,r,null,o,s,l),nr(x,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),x.isInFallback=!0,f(n,r,null,!0),u||c()},move(e,t,n){x.activeBranch&&d(x.activeBranch,e,t,n),x.container=e},next:()=>x.activeBranch&&h(x.activeBranch),registerDep(e,t){const n=!!x.pendingBranch;n&&x.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{pn(t,e,0)})).then((i=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:o}=e;xa(e,i,!1),r&&(o.el=r);const s=!r&&e.subTree.el;t(e,o,m(r||e.subTree.el),r?null:h(e.subTree),x,a,l),s&&g(s),Yn(e,o.el),n&&0==--x.deps&&x.resolve()}))},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&f(x.activeBranch,n,e,t),x.pendingBranch&&f(x.pendingBranch,n,e,t)}};return x}function er(e){let t;if(x(e)){const n=jo&&e._c;n&&(e._d=!1,Bo()),e=e(),n&&(e._d=!0,t=Lo,Do())}if(g(e)){const t=Un(e);0,e=t}return e=ea(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function tr(e,t){t&&t.pendingBranch?g(e)?t.effects.push(...e):t.effects.push(e):Cn(e)}function nr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Yn(r,i))}function rr(e,t){return lr(e,null,t)}function ir(e,t){return lr(e,null,{flush:"post"})}function or(e,t){return lr(e,null,{flush:"sync"})}const ar={};function sr(e,t,n){return lr(e,t,n)}function lr(e,t,{immediate:n,deep:r,flush:i,onTrack:a,onTrigger:l}=o){var c;const u=me()===(null==(c=la)?void 0:c.scope)?la:null;let p,d,h=!1,m=!1;if(qt(e)?(p=()=>e.value,h=Nt(e)):Bt(e)?(p=()=>e,r=!0):g(e)?(m=!0,h=e.some((e=>Bt(e)||Nt(e))),p=()=>e.map((e=>qt(e)?e.value:Bt(e)?pr(e):x(e)?cn(e,u,2):void 0))):p=x(e)?t?()=>cn(e,u,2):()=>{if(!u||!u.isUnmounted)return d&&d(),un(e,u,3,[y])}:s,t&&r){const e=p;p=()=>pr(e())}let v,y=e=>{d=_.onStop=()=>{cn(e,u,4)}};if(ya){if(y=s,t?n&&un(t,u,3,[p(),m?[]:void 0,y]):p(),"sync"!==i)return s;{const e=La();v=e.__watcherHandles||(e.__watcherHandles=[])}}let b=m?new Array(e.length).fill(ar):ar;const w=()=>{if(_.active)if(t){const e=_.run();(r||h||(m?e.some(((e,t)=>I(e,b[t]))):I(e,b)))&&(d&&d(),un(t,u,3,[e,b===ar?void 0:m&&b[0]===ar?[]:b,y]),b=e)}else _.run()};let A;w.allowRecurse=!!t,"sync"===i?A=w:"post"===i?A=()=>ho(w,u&&u.suspense):(w.pre=!0,u&&(w.id=u.uid),A=()=>An(w));const _=new Ee(p,A);t?n?w():b=_.run():"post"===i?ho(_.run.bind(_),u&&u.suspense):_.run();const C=()=>{_.stop(),u&&u.scope&&f(u.scope.effects,_)};return v&&v.push(C),C}function cr(e,t,n){const r=this.proxy,i=w(e)?e.includes(".")?ur(r,e):()=>r[e]:e.bind(r,r);let o;x(t)?o=t:(o=t.handler,n=t);const a=la;fa(this);const s=lr(i,o.bind(r),n);return a?fa(a):ha(),s}function ur(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function pr(e,t){if(!_(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),qt(e))pr(e.value,t);else if(g(e))for(let n=0;n<e.length;n++)pr(e[n],t);else if(y(e)||v(e))e.forEach((e=>{pr(e,t)}));else if(T(e))for(const n in e)pr(e[n],t);return e}function dr(e,t){const n=Rn;if(null===n)return e;const r=ka(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,a,s,l=o]=t[e];n&&(x(n)&&(n={mounted:n,updated:n}),n.deep&&pr(a),i.push({dir:n,instance:r,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function fr(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(De(),un(l,n,8,[e.el,s,e,t]),Ne())}}function hr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zr((()=>{e.isMounted=!0})),Hr((()=>{e.isUnmounting=!0})),e}const mr=[Function,Array],gr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mr,onEnter:mr,onAfterEnter:mr,onEnterCancelled:mr,onBeforeLeave:mr,onLeave:mr,onAfterLeave:mr,onLeaveCancelled:mr,onBeforeAppear:mr,onAppear:mr,onAfterAppear:mr,onAppearCancelled:mr},vr={name:"BaseTransition",props:gr,setup(e,{slots:t}){const n=ca(),r=hr();let i;return()=>{const o=t.default&&_r(t.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){let e=!1;for(const t of o)if(t.type!==To){0,a=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(r.isLeaving)return xr(a);const c=wr(a);if(!c)return xr(a);const u=br(c,s,r,n);Ar(c,u);const p=n.subTree,d=p&&wr(p);let f=!1;const{getTransitionKey:h}=c.type;if(h){const e=h();void 0===i?i=e:e!==i&&(i=e,f=!0)}if(d&&d.type!==To&&(!$o(c,d)||f)){const e=br(d,s,r,n);if(Ar(d,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&n.update()},xr(a);"in-out"===l&&c.type!==To&&(e.delayLeave=(e,t,n)=>{yr(r,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function yr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function br(e,t,n,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:d,onAfterLeave:f,onLeaveCancelled:h,onBeforeAppear:m,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),w=yr(n,e),A=(e,t)=>{e&&un(e,r,9,t)},_=(e,t)=>{const n=t[1];A(e,t),g(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:o,persisted:a,beforeEnter(t){let r=s;if(!n.isMounted){if(!i)return;r=m||s}t._leaveCb&&t._leaveCb(!0);const o=w[x];o&&$o(e,o)&&o.el._leaveCb&&o.el._leaveCb(),A(r,[t])},enter(e){let t=l,r=c,o=u;if(!n.isMounted){if(!i)return;t=v||l,r=y||c,o=b||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,A(t?o:r,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?_(t,[e,s]):s()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();A(p,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,r(),A(n?h:f,[t]),t._leaveCb=void 0,w[i]===e&&delete w[i])};w[i]=e,d?_(d,[t,a]):a()},clone:e=>br(e,t,n,r)};return C}function xr(e){if(Tr(e))return(e=Xo(e)).children=null,e}function wr(e){return Tr(e)?e.children?e.children[0]:void 0:e}function Ar(e,t){6&e.shapeFlag&&e.component?Ar(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function _r(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===So?(128&a.patchFlag&&i++,r=r.concat(_r(a.children,t,s))):(t||a.type!==To)&&r.push(null!=s?Xo(a,{key:s}):a)}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Cr(e,t){return x(e)?(()=>d({name:e.name},t,{setup:e}))():e}const kr=e=>!!e.type.__asyncLoader;function Sr(e){x(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:a=!0,onError:s}=e;let l,c=null,u=0;const p=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((u++,c=null,p()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return Cr({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return l},setup(){const e=la;if(l)return()=>Er(l,e);const t=t=>{c=null,pn(t,e,13,!r)};if(a&&e.suspense||ya)return p().then((t=>()=>Er(t,e))).catch((e=>(t(e),()=>r?Ko(r,{error:e}):null)));const s=Ht(!1),u=Ht(),d=Ht(!!i);return i&&setTimeout((()=>{d.value=!1}),i),null!=o&&setTimeout((()=>{if(!s.value&&!u.value){const e=new Error(`Async component timed out after ${o}ms.`);t(e),u.value=e}}),o),p().then((()=>{s.value=!0,e.parent&&Tr(e.parent.vnode)&&An(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>s.value&&l?Er(l,e):u.value&&r?Ko(r,{error:u.value}):n&&!d.value?Ko(n):void 0}})}function Er(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=Ko(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const Tr=e=>e.type.__isKeepAlive,Or={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ca(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:p}}}=r,d=p("div");function f(e){jr(e),u(e,n,s,!0)}function h(e){i.forEach(((t,n)=>{const r=Sa(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=i.get(e);a&&$o(t,a)?a&&jr(a):f(t),i.delete(e),o.delete(e)}r.activate=(e,t,n,r,i)=>{const o=e.component;c(e,t,n,0,s),l(o.vnode,e,t,n,o,s,r,e.slotScopeIds,i),ho((()=>{o.isDeactivated=!1,o.a&&z(o.a);const t=e.props&&e.props.onVnodeMounted;t&&ia(t,o.parent,e)}),s)},r.deactivate=e=>{const t=e.component;c(e,d,null,1,s),ho((()=>{t.da&&z(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ia(n,t.parent,e),t.isDeactivated=!0}),s)},sr((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>Mr(e,t))),t&&h((e=>!Mr(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&i.set(g,Pr(n.subTree))};return zr(v),qr(v),Hr((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,i=Pr(t);if(e.type!==i.type||e.key!==i.key)f(e);else{jr(i);const e=i.component.da;e&&ho(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!(zo(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return a=null,r;let s=Pr(r);const l=s.type,c=Sa(kr(s)?s.type.__asyncResolved||{}:l),{include:u,exclude:p,max:d}=e;if(u&&(!c||!Mr(u,c))||p&&c&&Mr(p,c))return a=s,r;const f=null==s.key?l:s.key,h=i.get(f);return s.el&&(s=Xo(s),128&r.shapeFlag&&(r.ssContent=s)),g=f,h?(s.el=h.el,s.component=h.component,s.transition&&Ar(s,s.transition),s.shapeFlag|=512,o.delete(f),o.add(f)):(o.add(f),d&&o.size>parseInt(d,10)&&m(o.values().next().value)),s.shapeFlag|=256,a=s,Xn(r.type)?r:s}}};function Mr(e,t){return g(e)?e.some((e=>Mr(e,t))):w(e)?e.split(",").includes(t):"[object RegExp]"===S(e)&&e.test(t)}function Lr(e,t){Dr(e,"a",t)}function Br(e,t){Dr(e,"da",t)}function Dr(e,t,n=la){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Rr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Tr(e.parent.vnode)&&Nr(r,t,n,e),e=e.parent}}function Nr(e,t,n,r){const i=Rr(t,e,r,!0);Wr((()=>{f(r[t],i)}),n)}function jr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Pr(e){return 128&e.shapeFlag?e.ssContent:e}function Rr(e,t,n=la,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;De(),fa(n);const i=un(t,n,e,r);return ha(),Ne(),i});return r?i.unshift(o):i.push(o),o}}const Fr=e=>(t,n=la)=>(!ya||"sp"===e)&&Rr(e,((...e)=>t(...e)),n),Ir=Fr("bm"),zr=Fr("m"),$r=Fr("bu"),qr=Fr("u"),Hr=Fr("bum"),Wr=Fr("um"),Ur=Fr("sp"),Vr=Fr("rtg"),Kr=Fr("rtc");function Gr(e,t=la){Rr("ec",e,t)}const Yr="components",Xr="directives";function Jr(e,t){return ti(Yr,e,!0,t)||e}const Zr=Symbol.for("v-ndc");function Qr(e){return w(e)?ti(Yr,e,!1)||e:e||Zr}function ei(e){return ti(Xr,e)}function ti(e,t,n=!0,r=!1){const i=Rn||la;if(i){const n=i.type;if(e===Yr){const e=Sa(n,!1);if(e&&(e===t||e===N(t)||e===R(N(t))))return n}const o=ni(i[e]||n[e],t)||ni(i.appContext[e],t);return!o&&r?n:o}}function ni(e,t){return e&&(e[t]||e[N(t)]||e[R(N(t))])}function ri(e,t,n,r){let i;const o=n&&n[r];if(g(e)||w(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){0,i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(_(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];i[r]=t(e[a],a,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}function ii(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(g(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function oi(e,t,n={},r,i){if(Rn.isCE||Rn.parent&&kr(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),Ko("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),Bo();const a=o&&ai(o(n)),s=Io(So,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function ai(e){return e.some((e=>!zo(e)||e.type!==To&&!(e.type===So&&!ai(e.children))))?e:null}function si(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:F(r)]=e[r];return n}const li=e=>e?ma(e)?ka(e)||e.proxy:li(e.parent):null,ci=d(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>li(e.parent),$root:e=>li(e.root),$emit:e=>e.emit,$options:e=>Di(e),$forceUpdate:e=>e.f||(e.f=()=>An(e.update)),$nextTick:e=>e.n||(e.n=wn.bind(e.proxy)),$watch:e=>cr.bind(e)}),ui=(e,t)=>e!==o&&!e.__isScriptSetup&&m(e,t),pi={get({_:e},t){const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(ui(r,t))return s[t]=1,r[t];if(i!==o&&m(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&m(u,t))return s[t]=3,a[t];if(n!==o&&m(n,t))return s[t]=4,n[t];Oi&&(s[t]=0)}}const p=ci[t];let d,f;return p?("$attrs"===t&&je(e,0,t),p(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==o&&m(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,m(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return ui(i,t)?(i[t]=n,!0):r!==o&&m(r,t)?(r[t]=n,!0):!m(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let l;return!!n[s]||e!==o&&m(e,s)||ui(t,s)||(l=a[0])&&m(l,s)||m(r,s)||m(ci,s)||m(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:m(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const di=d({},pi,{get(e,t){if(t!==Symbol.unscopables)return pi.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!K(t)});function fi(){return null}function hi(){return null}function mi(e){0}function gi(e){0}function vi(){return null}function yi(){0}function bi(e,t){return null}function xi(){return _i().slots}function wi(){return _i().attrs}function Ai(e,t,n){const r=ca();if(n&&n.local){const n=Ht(e[t]);return sr((()=>e[t]),(e=>n.value=e)),sr(n,(n=>{n!==e[t]&&r.emit(`update:${t}`,n)})),n}return{__v_isRef:!0,get value(){return e[t]},set value(e){r.emit(`update:${t}`,e)}}}function _i(){const e=ca();return e.setupContext||(e.setupContext=Ca(e))}function Ci(e){return g(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function ki(e,t){const n=Ci(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?g(r)||x(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Si(e,t){return e&&t?g(e)&&g(t)?e.concat(t):d({},Ci(e),Ci(t)):e||t}function Ei(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ti(e){const t=ca();let n=e();return ha(),C(n)&&(n=n.catch((e=>{throw fa(t),e}))),[n,()=>fa(t)]}let Oi=!0;function Mi(e){const t=Di(e),n=e.proxy,r=e.ctx;Oi=!1,t.beforeCreate&&Li(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:l,provide:c,inject:u,created:p,beforeMount:d,mounted:f,beforeUpdate:h,updated:m,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:w,destroyed:A,unmounted:C,render:k,renderTracked:S,renderTriggered:E,errorCaptured:T,serverPrefetch:O,expose:M,inheritAttrs:L,components:B,directives:D,filters:N}=t;if(u&&function(e,t,n=s){g(e)&&(e=Ri(e));for(const n in e){const r=e[n];let i;i=_(r)?"default"in r?Vi(r.from||n,r.default,!0):Vi(r.from||n):Vi(r),qt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(u,r,null),a)for(const e in a){const t=a[e];x(t)&&(r[e]=t.bind(n))}if(i){0;const t=i.call(n,n);0,_(t)&&(e.data=Et(t))}if(Oi=!0,o)for(const e in o){const t=o[e],i=x(t)?t.bind(n,n):x(t.get)?t.get.bind(n,n):s;0;const a=!x(t)&&x(t.set)?t.set.bind(n):s,l=Ta({get:i,set:a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(l)for(const e in l)Bi(l[e],r,n,e);if(c){const e=x(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Ui(t,e[t])}))}function j(e,t){g(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&Li(p,e,"c"),j(Ir,d),j(zr,f),j($r,h),j(qr,m),j(Lr,v),j(Br,y),j(Gr,T),j(Kr,S),j(Vr,E),j(Hr,w),j(Wr,C),j(Ur,O),g(M))if(M.length){const t=e.exposed||(e.exposed={});M.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});k&&e.render===s&&(e.render=k),null!=L&&(e.inheritAttrs=L),B&&(e.components=B),D&&(e.directives=D)}function Li(e,t,n){un(g(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Bi(e,t,n,r){const i=r.includes(".")?ur(n,r):()=>n[r];if(w(e)){const n=t[e];x(n)&&sr(i,n)}else if(x(e))sr(i,e.bind(n));else if(_(e))if(g(e))e.forEach((e=>Bi(e,t,n,r)));else{const r=x(e.handler)?e.handler.bind(n):t[e.handler];x(r)&&sr(i,r,e)}else 0}function Di(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:i.length||n||r?(l={},i.length&&i.forEach((e=>Ni(l,e,a,!0))),Ni(l,t,a)):l=t,_(t)&&o.set(t,l),l}function Ni(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Ni(e,o,n,!0),i&&i.forEach((t=>Ni(e,t,n,!0)));for(const i in t)if(r&&"expose"===i);else{const r=ji[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const ji={data:Pi,props:zi,emits:zi,methods:Ii,computed:Ii,beforeCreate:Fi,created:Fi,beforeMount:Fi,mounted:Fi,beforeUpdate:Fi,updated:Fi,beforeDestroy:Fi,beforeUnmount:Fi,destroyed:Fi,unmounted:Fi,activated:Fi,deactivated:Fi,errorCaptured:Fi,serverPrefetch:Fi,components:Ii,directives:Ii,watch:function(e,t){if(!e)return t;if(!t)return e;const n=d(Object.create(null),e);for(const r in t)n[r]=Fi(e[r],t[r]);return n},provide:Pi,inject:function(e,t){return Ii(Ri(e),Ri(t))}};function Pi(e,t){return t?e?function(){return d(x(e)?e.call(this,this):e,x(t)?t.call(this,this):t)}:t:e}function Ri(e){if(g(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fi(e,t){return e?[...new Set([].concat(e,t))]:t}function Ii(e,t){return e?d(Object.create(null),e,t):t}function zi(e,t){return e?g(e)&&g(t)?[...new Set([...e,...t])]:d(Object.create(null),Ci(e),Ci(null!=t?t:{})):t}function $i(){return{app:null,config:{isNativeTag:l,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let qi=0;function Hi(e,t){return function(n,r=null){x(n)||(n=d({},n)),null==r||_(r)||(r=null);const i=$i();const o=new Set;let a=!1;const s=i.app={_uid:qi++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ja,get config(){return i.config},set config(e){0},use:(e,...t)=>(o.has(e)||(e&&x(e.install)?(o.add(e),e.install(s,...t)):x(e)&&(o.add(e),e(s,...t))),s),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),s),component:(e,t)=>t?(i.components[e]=t,s):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,s):i.directives[e],mount(o,l,c){if(!a){0;const u=Ko(n,r);return u.appContext=i,l&&t?t(u,o):e(u,o,c),a=!0,s._container=o,o.__vue_app__=s,ka(u.component)||u.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,s),runWithContext(e){Wi=s;try{return e()}finally{Wi=null}}};return s}}let Wi=null;function Ui(e,t){if(la){let n=la.provides;const r=la.parent&&la.parent.provides;r===n&&(n=la.provides=Object.create(r)),n[e]=t}else 0}function Vi(e,t,n=!1){const r=la||Rn;if(r||Wi){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Wi._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&x(t)?t.call(r&&r.proxy):t}else 0}function Ki(){return!!(la||Rn||Wi)}function Gi(e,t,n,r){const[i,a]=e.propsOptions;let s,l=!1;if(t)for(let o in t){if(M(o))continue;const c=t[o];let u;i&&m(i,u=N(o))?a&&a.includes(u)?(s||(s={}))[u]=c:n[u]=c:Pn(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,l=!0)}if(a){const t=Pt(n),r=s||o;for(let o=0;o<a.length;o++){const s=a[o];n[s]=Yi(i,t,s,r[s],e,!m(r,s))}}return l}function Yi(e,t,n,r,i,o){const a=e[n];if(null!=a){const e=m(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&x(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(fa(i),r=o[n]=e.call(null,t),ha())}else r=e}a[0]&&(o&&!e?r=!1:!a[1]||""!==r&&r!==P(n)||(r=!0))}return r}function Xi(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},c=[];let u=!1;if(!x(e)){const r=e=>{u=!0;const[n,r]=Xi(e,t,!0);d(l,n),r&&c.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!u)return _(e)&&r.set(e,a),a;if(g(s))for(let e=0;e<s.length;e++){0;const t=N(s[e]);Ji(t)&&(l[t]=o)}else if(s){0;for(const e in s){const t=N(e);if(Ji(t)){const n=s[e],r=l[t]=g(n)||x(n)?{type:n}:d({},n);if(r){const e=eo(Boolean,r.type),n=eo(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||m(r,"default"))&&c.push(t)}}}}const p=[l,c];return _(e)&&r.set(e,p),p}function Ji(e){return"$"!==e[0]}function Zi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Qi(e,t){return Zi(e)===Zi(t)}function eo(e,t){return g(t)?t.findIndex((t=>Qi(t,e))):x(t)&&Qi(t,e)?0:-1}const to=e=>"_"===e[0]||"$stable"===e,no=e=>g(e)?e.map(ea):[ea(e)],ro=(e,t,n)=>{if(t._n)return t;const r=Hn(((...e)=>no(t(...e))),n);return r._c=!1,r},io=(e,t,n)=>{const r=e._ctx;for(const n in e){if(to(n))continue;const i=e[n];if(x(i))t[n]=ro(0,i,r);else if(null!=i){0;const e=no(i);t[n]=()=>e}}},oo=(e,t)=>{const n=no(t);e.slots.default=()=>n},ao=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Pt(t),$(t,"_",n)):io(t,e.slots={})}else e.slots={},t&&oo(e,t);$(e.slots,Ho,1)},so=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:(d(i,t),n||1!==e||delete i._):(a=!t.$stable,io(t,i)),s=t}else t&&(oo(e,t),s={default:1});if(a)for(const e in i)to(e)||e in s||delete i[e]};function lo(e,t,n,r,i=!1){if(g(e))return void e.forEach(((e,o)=>lo(e,t&&(g(t)?t[o]:t),n,r,i)));if(kr(r)&&!i)return;const a=4&r.shapeFlag?ka(r.component)||r.component.proxy:r.el,s=i?null:a,{i:l,r:c}=e;const u=t&&t.r,p=l.refs===o?l.refs={}:l.refs,d=l.setupState;if(null!=u&&u!==c&&(w(u)?(p[u]=null,m(d,u)&&(d[u]=null)):qt(u)&&(u.value=null)),x(c))cn(c,l,12,[s,p]);else{const t=w(c),r=qt(c);if(t||r){const o=()=>{if(e.f){const n=t?m(d,c)?d[c]:p[c]:c.value;i?g(n)&&f(n,a):g(n)?n.includes(a)||n.push(a):t?(p[c]=[a],m(d,c)&&(d[c]=p[c])):(c.value=[a],e.k&&(p[e.k]=c.value))}else t?(p[c]=s,m(d,c)&&(d[c]=s)):r&&(c.value=s,e.k&&(p[e.k]=s))};s?(o.id=-1,ho(o,n)):o()}else 0}}let co=!1;const uo=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,po=e=>8===e.nodeType;function fo(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:c}}=e,p=(n,r,s,c,u,v=!1)=>{const y=po(n)&&"["===n.data,b=()=>m(n,r,s,c,u,y),{type:x,ref:w,shapeFlag:A,patchFlag:_}=r;let C=n.nodeType;r.el=n,-2===_&&(v=!1,r.dynamicChildren=null);let k=null;switch(x){case Eo:3!==C?""===r.children?(l(r.el=i(""),a(n),n),k=n):k=b():(n.data!==r.children&&(co=!0,n.data=r.children),k=o(n));break;case To:k=8!==C||y?b():o(n);break;case Oo:if(y&&(C=(n=o(n)).nodeType),1===C||3===C){k=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===k.nodeType?k.outerHTML:k.data),t===r.staticCount-1&&(r.anchor=k),k=o(k);return y?o(k):k}b();break;case So:k=y?h(n,r,s,c,u,v):b();break;default:if(1&A)k=1!==C||r.type.toLowerCase()!==n.tagName.toLowerCase()?b():d(n,r,s,c,u,v);else if(6&A){r.slotScopeIds=u;const e=a(n);if(t(r,e,null,s,c,uo(e),v),k=y?g(n):o(n),k&&po(k)&&"teleport end"===k.data&&(k=o(k)),kr(r)){let t;y?(t=Ko(So),t.anchor=k?k.previousSibling:e.lastChild):t=3===n.nodeType?Jo(""):Ko("div"),t.el=n,r.component.subTree=t}}else 64&A?k=8!==C?b():r.type.hydrate(n,r,s,c,u,v,e,f):128&A&&(k=r.type.hydrate(n,r,s,c,uo(a(n)),u,v,e,p))}return null!=w&&lo(w,null,c,r),k},d=(e,t,n,i,o,a)=>{a=a||!!t.dynamicChildren;const{type:l,props:c,patchFlag:p,shapeFlag:d,dirs:h}=t,m="input"===l&&h||"option"===l;if(m||-1!==p){if(h&&fr(t,null,n,"created"),c)if(m||!a||48&p)for(const t in c)(m&&t.endsWith("value")||u(t)&&!M(t))&&r(e,t,null,c[t],!1,void 0,n);else c.onClick&&r(e,"onClick",null,c.onClick,!1,void 0,n);let l;if((l=c&&c.onVnodeBeforeMount)&&ia(l,n,t),h&&fr(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||h)&&tr((()=>{l&&ia(l,n,t),h&&fr(t,null,n,"mounted")}),i),16&d&&(!c||!c.innerHTML&&!c.textContent)){let r=f(e.firstChild,t,e,n,i,o,a);for(;r;){co=!0;const e=r;r=r.nextSibling,s(e)}}else 8&d&&e.textContent!==t.children&&(co=!0,e.textContent=t.children)}return e.nextSibling},f=(e,t,r,i,o,a,s)=>{s=s||!!t.dynamicChildren;const l=t.children,c=l.length;for(let t=0;t<c;t++){const c=s?l[t]:l[t]=ea(l[t]);if(e)e=p(e,c,i,o,a,s);else{if(c.type===Eo&&!c.children)continue;co=!0,n(null,c,r,null,i,o,uo(r),a)}}return e},h=(e,t,n,r,i,s)=>{const{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);const p=a(e),d=f(o(e),t,p,n,r,i,s);return d&&po(d)&&"]"===d.data?o(t.anchor=d):(co=!0,l(t.anchor=c("]"),p,d),d)},m=(e,t,r,i,l,c)=>{if(co=!0,t.el=null,c){const t=g(e);for(;;){const n=o(e);if(!n||n===t)break;s(n)}}const u=o(e),p=a(e);return s(e),n(null,t,p,u,r,i,uo(p),l),u},g=e=>{let t=0;for(;e;)if((e=o(e))&&po(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return o(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),Sn(),void(t._vnode=e);co=!1,p(t.firstChild,e,null,null,null),Sn(),t._vnode=e,co&&console.error("Hydration completed but contains mismatches.")},p]}const ho=tr;function mo(e){return vo(e)}function go(e){return vo(e,fo)}function vo(e,t){U().__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:l,createText:c,createComment:u,setText:p,setElementText:d,parentNode:f,nextSibling:h,setScopeId:g=s,insertStaticContent:v}=e,y=(e,t,n,r=null,i=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!$o(e,t)&&(r=X(e),W(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Eo:b(e,t,n,r);break;case To:x(e,t,n,r);break;case Oo:null==e&&w(t,n,r,a);break;case So:L(e,t,n,r,i,o,a,s,l);break;default:1&p?_(e,t,n,r,i,o,a,s,l):6&p?B(e,t,n,r,i,o,a,s,l):(64&p||128&p)&&c.process(e,t,n,r,i,o,a,s,l,Z)}null!=u&&i&&lo(u,e&&e.ref,o,t||e,!t)},b=(e,t,r,i)=>{if(null==e)n(t.el=c(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},x=(e,t,r,i)=>{null==e?n(t.el=u(t.children||""),r,i):t.el=e.el},w=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},A=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),r(e),e=n;r(t)},_=(e,t,n,r,i,o,a,s,l)=>{a=a||"svg"===t.type,null==e?C(t,n,r,i,o,a,s,l):E(e,t,i,o,a,s,l)},C=(e,t,r,o,a,s,c,u)=>{let p,f;const{type:h,props:m,shapeFlag:g,transition:v,dirs:y}=e;if(p=e.el=l(e.type,s,m&&m.is,m),8&g?d(p,e.children):16&g&&S(e.children,p,null,o,a,s&&"foreignObject"!==h,c,u),y&&fr(e,null,o,"created"),k(p,e,e.scopeId,c,o),m){for(const t in m)"value"===t||M(t)||i(p,t,null,m[t],s,e.children,o,a,Y);"value"in m&&i(p,"value",null,m.value),(f=m.onVnodeBeforeMount)&&ia(f,o,e)}y&&fr(e,null,o,"beforeMount");const b=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;b&&v.beforeEnter(p),n(p,t,r),((f=m&&m.onVnodeMounted)||b||y)&&ho((()=>{f&&ia(f,o,e),b&&v.enter(p),y&&fr(e,null,o,"mounted")}),a)},k=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){if(t===i.subTree){const t=i.vnode;k(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},S=(e,t,n,r,i,o,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?ta(e[c]):ea(e[c]);y(null,l,t,n,r,i,o,a,s)}},E=(e,t,n,r,a,s,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||o,m=t.props||o;let g;n&&yo(n,!1),(g=m.onVnodeBeforeUpdate)&&ia(g,n,t,e),f&&fr(t,e,n,"beforeUpdate"),n&&yo(n,!0);const v=a&&"foreignObject"!==t.type;if(p?T(e.dynamicChildren,p,c,n,r,v,s):l||I(e,t,c,null,n,r,v,s,!1),u>0){if(16&u)O(c,t,h,m,n,r,a);else if(2&u&&h.class!==m.class&&i(c,"class",null,m.class,a),4&u&&i(c,"style",h.style,m.style,a),8&u){const o=t.dynamicProps;for(let t=0;t<o.length;t++){const s=o[t],l=h[s],u=m[s];u===l&&"value"!==s||i(c,s,l,u,a,e.children,n,r,Y)}}1&u&&e.children!==t.children&&d(c,t.children)}else l||null!=p||O(c,t,h,m,n,r,a);((g=m.onVnodeUpdated)||f)&&ho((()=>{g&&ia(g,n,t,e),f&&fr(t,e,n,"updated")}),r)},T=(e,t,n,r,i,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===So||!$o(l,c)||70&l.shapeFlag)?f(l.el):n;y(l,c,u,null,r,i,o,a,!0)}},O=(e,t,n,r,a,s,l)=>{if(n!==r){if(n!==o)for(const o in n)M(o)||o in r||i(e,o,n[o],null,l,t.children,a,s,Y);for(const o in r){if(M(o))continue;const c=r[o],u=n[o];c!==u&&"value"!==o&&i(e,o,u,c,l,t.children,a,s,Y)}"value"in r&&i(e,"value",n.value,r.value)}},L=(e,t,r,i,o,a,s,l,u)=>{const p=t.el=e?e.el:c(""),d=t.anchor=e?e.anchor:c("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(p,r,i),n(d,r,i),S(t.children,r,d,o,a,s,l,u)):f>0&&64&f&&h&&e.dynamicChildren?(T(e.dynamicChildren,h,r,o,a,s,l),(null!=t.key||o&&t===o.subTree)&&bo(e,t,!0)):I(e,t,r,d,o,a,s,l,u)},B=(e,t,n,r,i,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,l):D(t,n,r,i,o,a,l):j(e,t,l)},D=(e,t,n,r,i,o,a)=>{const s=e.component=sa(e,r,i);if(Tr(e)&&(s.ctx.renderer=Z),ba(s),s.asyncDep){if(i&&i.registerDep(s,R),!e.el){const e=s.subTree=Ko(To);x(null,e,t,n)}}else R(s,e,t,n,i,o,a)},j=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||Gn(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?Gn(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!Pn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void F(r,t,n);r.next=t,function(e){const t=hn.indexOf(e);t>mn&&hn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},R=(e,t,n,r,i,o,a)=>{const s=e.effect=new Ee((()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:l,vnode:c}=e,u=n;0,yo(e,!1),n?(n.el=c.el,F(e,n,a)):n=c,r&&z(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ia(t,l,n,c),yo(e,!0);const p=Wn(e);0;const d=e.subTree;e.subTree=p,y(d,p,f(d.el),X(d),e,i,o),n.el=p.el,null===u&&Yn(e,p.el),s&&ho(s,i),(t=n.props&&n.props.onVnodeUpdated)&&ho((()=>ia(t,l,n,c)),i)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:p}=e,d=kr(t);if(yo(e,!1),c&&z(c),!d&&(a=l&&l.onVnodeBeforeMount)&&ia(a,p,t),yo(e,!0),s&&ee){const n=()=>{e.subTree=Wn(e),ee(s,e.subTree,e,i,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const a=e.subTree=Wn(e);0,y(null,a,n,r,e,i,o),t.el=a.el}if(u&&ho(u,i),!d&&(a=l&&l.onVnodeMounted)){const e=t;ho((()=>ia(a,p,e)),i)}(256&t.shapeFlag||p&&kr(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&ho(e.a,i),e.isMounted=!0,t=n=r=null}}),(()=>An(l)),e.scope),l=e.update=()=>s.run();l.id=e.uid,yo(e,!0),l()},F=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=Pt(i),[l]=e.propsOptions;let c=!1;if(!(r||a>0)||16&a){let r;Gi(e,t,i,o)&&(c=!0);for(const o in s)t&&(m(t,o)||(r=P(o))!==o&&m(t,r))||(l?!n||void 0===n[o]&&void 0===n[r]||(i[o]=Yi(l,s,o,void 0,e,!0)):delete i[o]);if(o!==s)for(const e in o)t&&m(t,e)||(delete o[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(Pn(e.emitsOptions,a))continue;const u=t[a];if(l)if(m(o,a))u!==o[a]&&(o[a]=u,c=!0);else{const t=N(a);i[t]=Yi(l,s,t,u,e,!1)}else u!==o[a]&&(o[a]=u,c=!0)}}c&&Re(e,"set","$attrs")}(e,t.props,r,n),so(e,t.children,n),De(),kn(),Ne()},I=(e,t,n,r,i,o,a,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void q(c,p,n,r,i,o,a,s,l);if(256&f)return void $(c,p,n,r,i,o,a,s,l)}8&h?(16&u&&Y(c,i,o),p!==c&&d(n,p)):16&u?16&h?q(c,p,n,r,i,o,a,s,l):Y(c,i,o,!0):(8&u&&d(n,""),16&h&&S(p,n,r,i,o,a,s,l))},$=(e,t,n,r,i,o,s,l,c)=>{t=t||a;const u=(e=e||a).length,p=t.length,d=Math.min(u,p);let f;for(f=0;f<d;f++){const r=t[f]=c?ta(t[f]):ea(t[f]);y(e[f],r,n,null,i,o,s,l,c)}u>p?Y(e,i,o,!0,!1,d):S(t,n,r,i,o,s,l,c,d)},q=(e,t,n,r,i,o,s,l,c)=>{let u=0;const p=t.length;let d=e.length-1,f=p-1;for(;u<=d&&u<=f;){const r=e[u],a=t[u]=c?ta(t[u]):ea(t[u]);if(!$o(r,a))break;y(r,a,n,null,i,o,s,l,c),u++}for(;u<=d&&u<=f;){const r=e[d],a=t[f]=c?ta(t[f]):ea(t[f]);if(!$o(r,a))break;y(r,a,n,null,i,o,s,l,c),d--,f--}if(u>d){if(u<=f){const e=f+1,a=e<p?t[e].el:r;for(;u<=f;)y(null,t[u]=c?ta(t[u]):ea(t[u]),n,a,i,o,s,l,c),u++}}else if(u>f)for(;u<=d;)W(e[u],i,o,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=c?ta(t[u]):ea(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const x=f-m+1;let w=!1,A=0;const _=new Array(x);for(u=0;u<x;u++)_[u]=0;for(u=h;u<=d;u++){const r=e[u];if(b>=x){W(r,i,o,!0);continue}let a;if(null!=r.key)a=g.get(r.key);else for(v=m;v<=f;v++)if(0===_[v-m]&&$o(r,t[v])){a=v;break}void 0===a?W(r,i,o,!0):(_[a-m]=u+1,a>=A?A=a:w=!0,y(r,t[a],n,null,i,o,s,l,c),b++)}const C=w?function(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(_):a;for(v=C.length-1,u=x-1;u>=0;u--){const e=m+u,a=t[e],d=e+1<p?t[e+1].el:r;0===_[u]?y(null,a,n,d,i,o,s,l,c):w&&(v<0||u!==C[v]?H(a,n,d,2):v--)}}},H=(e,t,r,i,o=null)=>{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void H(e.component.subTree,t,r,i);if(128&u)return void e.suspense.move(t,r,i);if(64&u)return void s.move(e,t,r,Z);if(s===So){n(a,t,r);for(let e=0;e<c.length;e++)H(c[e],t,r,i);return void n(e.anchor,t,r)}if(s===Oo)return void(({el:e,anchor:t},r,i)=>{let o;for(;e&&e!==t;)o=h(e),n(e,r,i),e=o;n(t,r,i)})(e,t,r);if(2!==i&&1&u&&l)if(0===i)l.beforeEnter(a),n(a,t,r),ho((()=>l.enter(a)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=l,s=()=>n(a,t,r),c=()=>{e(a,(()=>{s(),o&&o()}))};i?i(a,s,c):c()}else n(a,t,r)},W=(e,t,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&lo(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,h=!kr(e);let m;if(h&&(m=a&&a.onVnodeBeforeUnmount)&&ia(m,t,e),6&u)G(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&fr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,Z,r):c&&(o!==So||p>0&&64&p)?Y(c,t,n,!1,!0):(o===So&&384&p||!i&&16&u)&&Y(l,t,n),r&&V(e)}(h&&(m=a&&a.onVnodeUnmounted)||f)&&ho((()=>{m&&ia(m,t,e),f&&fr(e,null,t,"unmounted")}),n)},V=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===So)return void K(n,i);if(t===Oo)return void A(e);const a=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},K=(e,t)=>{let n;for(;e!==t;)n=h(e),r(e),e=n;r(t)},G=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:a,um:s}=e;r&&z(r),i.stop(),o&&(o.active=!1,W(a,e,t,n)),s&&ho(s,t),ho((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a<e.length;a++)W(e[a],t,n,r,i)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),J=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),kn(),Sn(),t._vnode=e},Z={p:y,um:W,m:H,r:V,mt:D,mc:S,pc:I,pbc:T,n:X,o:e};let Q,ee;return t&&([Q,ee]=t(Z)),{render:J,hydrate:Q,createApp:Hi(J,Q)}}function yo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function bo(e,t,n=!1){const r=e.children,i=t.children;if(g(r)&&g(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=ta(i[e]),o.el=t.el),n||bo(t,o)),o.type===Eo&&(o.el=t.el)}}const xo=e=>e&&(e.disabled||""===e.disabled),wo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Ao=(e,t)=>{const n=e&&e.to;if(w(n)){if(t){const e=t(n);return e}return null}return n};function _o(e,t,n,{o:{insert:r},m:i},o=2){0===o&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,p=2===o;if(p&&r(a,t,n),(!p||xo(u))&&16&l)for(let e=0;e<c.length;e++)i(c[e],t,n,2);p&&r(s,t,n)}const Co={__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,c){const{mc:u,pc:p,pbc:d,o:{insert:f,querySelector:h,createText:m,createComment:g}}=c,v=xo(t.props);let{shapeFlag:y,children:b,dynamicChildren:x}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");f(e,n,r),f(c,n,r);const p=t.target=Ao(t.props,h),d=t.targetAnchor=m("");p&&(f(d,p),a=a||wo(p));const g=(e,t)=>{16&y&&u(b,e,t,i,o,a,s,l)};v?g(n,c):p&&g(p,d)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=xo(e.props),g=m?n:u,y=m?r:f;if(a=a||wo(u),x?(d(e.dynamicChildren,x,g,i,o,a,s),bo(e,t,!0)):l||p(e,t,g,y,i,o,a,s,!1),v)m||_o(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ao(t.props,h);e&&_o(t,e,null,c,0)}else m&&_o(t,u,f,c,1)}ko(t)},remove(e,t,n,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:p,props:d}=e;if(p&&o(u),(a||!xo(d))&&(o(c),16&s))for(let e=0;e<l.length;e++){const r=l[e];i(r,t,n,!0,!!r.dynamicChildren)}},move:_o,hydrate:function(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l}},c){const u=t.target=Ao(t.props,l);if(u){const l=u._lpa||u.firstChild;if(16&t.shapeFlag)if(xo(t.props))t.anchor=c(a(e),t,s(e),n,r,i,o),t.targetAnchor=l;else{t.anchor=a(e);let s=l;for(;s;)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,u._lpa=t.targetAnchor&&a(t.targetAnchor);break}c(l,t,u,n,r,i,o)}ko(t)}return t.anchor&&a(t.anchor)}};function ko(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const So=Symbol.for("v-fgt"),Eo=Symbol.for("v-txt"),To=Symbol.for("v-cmt"),Oo=Symbol.for("v-stc"),Mo=[];let Lo=null;function Bo(e=!1){Mo.push(Lo=e?null:[])}function Do(){Mo.pop(),Lo=Mo[Mo.length-1]||null}let No,jo=1;function Po(e){jo+=e}function Ro(e){return e.dynamicChildren=jo>0?Lo||a:null,Do(),jo>0&&Lo&&Lo.push(e),e}function Fo(e,t,n,r,i,o){return Ro(Vo(e,t,n,r,i,o,!0))}function Io(e,t,n,r,i){return Ro(Ko(e,t,n,r,i,!0))}function zo(e){return!!e&&!0===e.__v_isVNode}function $o(e,t){return e.type===t.type&&e.key===t.key}function qo(e){No=e}const Ho="__vInternal",Wo=({key:e})=>null!=e?e:null,Uo=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?w(e)||qt(e)||x(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function Vo(e,t=null,n=null,r=0,i=null,o=(e===So?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wo(t),ref:t&&Uo(t),scopeId:Fn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Rn};return s?(na(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=w(n)?8:16),jo>0&&!a&&Lo&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&Lo.push(l),l}const Ko=Go;function Go(e,t=null,n=null,r=0,i=null,o=!1){if(e&&e!==Zr||(e=To),zo(e)){const r=Xo(e,t,!0);return n&&na(r,n),jo>0&&!o&&Lo&&(6&r.shapeFlag?Lo[Lo.indexOf(e)]=r:Lo.push(r)),r.patchFlag|=-2,r}if(Ea(e)&&(e=e.__vccOpts),t){t=Yo(t);let{class:e,style:n}=t;e&&!w(e)&&(t.class=Q(e)),_(n)&&(jt(n)&&!g(n)&&(n=d({},n)),t.style=G(n))}return Vo(e,t,n,r,i,w(e)?1:Xn(e)?128:(e=>e.__isTeleport)(e)?64:_(e)?4:x(e)?2:0,o,!0)}function Yo(e){return e?jt(e)||Ho in e?d({},e):e:null}function Xo(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:a}=e,s=t?ra(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Wo(s),ref:t&&t.ref?n&&i?g(i)?i.concat(Uo(t)):[i,Uo(t)]:Uo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==So?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xo(e.ssContent),ssFallback:e.ssFallback&&Xo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Jo(e=" ",t=0){return Ko(Eo,null,e,t)}function Zo(e,t){const n=Ko(Oo,null,e);return n.staticCount=t,n}function Qo(e="",t=!1){return t?(Bo(),Io(To,null,e)):Ko(To,null,e)}function ea(e){return null==e||"boolean"==typeof e?Ko(To):g(e)?Ko(So,null,e.slice()):"object"==typeof e?ta(e):Ko(Eo,null,String(e))}function ta(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Xo(e)}function na(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(g(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),na(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Ho in t?3===r&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else x(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&r?(n=16,t=[Jo(t)]):n=8);e.children=t,e.shapeFlag|=n}function ra(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=Q([t.class,r.class]));else if("style"===e)t.style=G([t.style,r.style]);else if(u(e)){const n=t[e],i=r[e];!i||n===i||g(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function ia(e,t,n,r=null){un(e,t,7,[n,r])}const oa=$i();let aa=0;function sa(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||oa,a={uid:aa++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new de(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xi(r,i),emitsOptions:jn(r,i),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Nn.bind(null,a),e.ce&&e.ce(a),a}let la=null;const ca=()=>la||Rn;let ua,pa,da="__VUE_INSTANCE_SETTERS__";(pa=U()[da])||(pa=U()[da]=[]),pa.push((e=>la=e)),ua=e=>{pa.length>1?pa.forEach((t=>t(e))):pa[0](e)};const fa=e=>{ua(e),e.scope.on()},ha=()=>{la&&la.scope.off(),ua(null)};function ma(e){return 4&e.vnode.shapeFlag}let ga,va,ya=!1;function ba(e,t=!1){ya=t;const{props:n,children:r}=e.vnode,i=ma(e);!function(e,t,n,r=!1){const i={},o={};$(o,Ho,1),e.propsDefaults=Object.create(null),Gi(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Tt(i):e.type.props?e.props=i:e.props=o,e.attrs=o}(e,n,i,t),ao(e,r);const o=i?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Rt(new Proxy(e.ctx,pi)),!1;const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Ca(e):null;fa(e),De();const i=cn(r,e,0,[e.props,n]);if(Ne(),ha(),C(i)){if(i.then(ha,ha),t)return i.then((n=>{xa(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=i}else xa(e,i,t)}else _a(e,t)}(e,t):void 0;return ya=!1,o}function xa(e,t,n){x(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_(t)&&(e.setupState=Jt(t)),_a(e,n)}function wa(e){ga=e,va=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,di))}}const Aa=()=>!ga;function _a(e,t,n){const r=e.type;if(!e.render){if(!t&&ga&&!r.render){const t=r.template||Di(e).template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,s=d(d({isCustomElement:n,delimiters:o},i),a);r.render=ga(t,s)}}e.render=r.render||s,va&&va(e)}fa(e),De(),Mi(e),Ne(),ha()}function Ca(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(je(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function ka(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Jt(Rt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ci?ci[n](e):void 0,has:(e,t)=>t in e||t in ci}))}function Sa(e,t=!0){return x(e)?e.displayName||e.name:e.name||t&&e.__name}function Ea(e){return x(e)&&"__vccOpts"in e}const Ta=(e,t)=>function(e,t,n=!1){let r,i;const o=x(e);return o?(r=e,i=s):(r=e.get,i=e.set),new an(r,i,o||!i,n)}(e,0,ya);function Oa(e,t,n){const r=arguments.length;return 2===r?_(t)&&!g(t)?zo(t)?Ko(e,null,[t]):Ko(e,t):Ko(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&zo(n)&&(n=[n]),Ko(e,t,n))}const Ma=Symbol.for("v-scx"),La=()=>{{const e=Vi(Ma);return e}};function Ba(){return void 0}function Da(e,t,n,r){const i=n[r];if(i&&Na(i,e))return i;const o=t();return o.memo=e.slice(),n[r]=o}function Na(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(I(n[e],t[e]))return!1;return jo>0&&Lo&&Lo.push(e),!0}const ja="3.3.4",Pa={createComponentInstance:sa,setupComponent:ba,renderComponentRoot:Wn,setCurrentRenderingInstance:In,isVNode:zo,normalizeVNode:ea},Ra=null,Fa=null,Ia="undefined"!=typeof document?document:null,za=Ia&&Ia.createElement("template"),$a={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Ia.createElementNS("http://www.w3.org/2000/svg",e):Ia.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ia.createTextNode(e),createComment:e=>Ia.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ia.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{za.innerHTML=r?`<svg>${e}</svg>`:e;const i=za.content;if(r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const qa=/\s*!important$/;function Ha(e,t,n){if(g(n))n.forEach((n=>Ha(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Ua[t];if(n)return n;let r=N(t);if("filter"!==r&&r in e)return Ua[t]=r;r=R(r);for(let n=0;n<Wa.length;n++){const i=Wa[n]+r;if(i in e)return Ua[t]=i}return t}(e,t);qa.test(n)?e.setProperty(P(r),n.replace(qa,""),"important"):e[r]=n}}const Wa=["Webkit","Moz","ms"],Ua={};const Va="http://www.w3.org/1999/xlink";function Ka(e,t,n,r){e.addEventListener(t,n,r)}function Ga(e,t,n,r,i=null){const o=e._vei||(e._vei={}),a=o[t];if(r&&a)a.value=r;else{const[n,s]=function(e){let t;if(Ya.test(e)){let n;for(t={};n=e.match(Ya);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):P(e.slice(2));return[n,t]}(t);if(r){const a=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(g(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Za(),n}(r,i);Ka(e,n,a,s)}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,s),o[t]=void 0)}}const Ya=/(?:Once|Passive|Capture)$/;let Xa=0;const Ja=Promise.resolve(),Za=()=>Xa||(Ja.then((()=>Xa=0)),Xa=Date.now());const Qa=/^on[a-z]/;function es(e,t){const n=Cr(e);class r extends rs{constructor(e){super(n,e,t)}}return r.def=n,r}const ts=e=>es(e,al),ns="undefined"!=typeof HTMLElement?HTMLElement:class{};class rs extends ns{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,wn((()=>{this._connected||(ol(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let i;if(n&&!g(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(i||(i=Object.create(null)))[N(e)]=!0)}this._numberProps=i,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=g(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(N))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=N(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(P(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(P(e),t+""):t||this.removeAttribute(P(e))))}_update(){ol(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Ko(this._def,d({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),P(e)!==e&&t(P(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof rs){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function is(e="$style"){{const t=ca();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;const r=n[e];return r||o}}function os(e){const t=ca();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>ss(e,n)))},r=()=>{const r=e(t.proxy);as(t.subTree,r),n(r)};ir(r),zr((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Wr((()=>e.disconnect()))}))}function as(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{as(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)ss(e.el,t);else if(e.type===So)e.children.forEach((e=>as(e,t)));else if(e.type===Oo){let{el:n,anchor:r}=e;for(;n&&(ss(n,t),n!==r);)n=n.nextSibling}}function ss(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const ls="transition",cs="animation",us=(e,{slots:t})=>Oa(vr,ms(e),t);us.displayName="Transition";const ps={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ds=us.props=d({},gr,ps),fs=(e,t=[])=>{g(e)?e.forEach((e=>e(...t))):e&&e(...t)},hs=e=>!!e&&(g(e)?e.some((e=>e.length>1)):e.length>1);function ms(e){const t={};for(const n in e)n in ps||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(_(e))return[gs(e.enter),gs(e.leave)];{const t=gs(e);return[t,t]}}(i),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:x,onLeave:w,onLeaveCancelled:A,onBeforeAppear:C=y,onAppear:k=b,onAppearCancelled:S=x}=t,E=(e,t,n)=>{ys(e,t?u:s),ys(e,t?c:a),n&&n()},T=(e,t)=>{e._isLeaving=!1,ys(e,p),ys(e,h),ys(e,f),t&&t()},O=e=>(t,n)=>{const i=e?k:b,a=()=>E(t,e,n);fs(i,[t,a]),bs((()=>{ys(t,e?l:o),vs(t,e?u:s),hs(i)||ws(t,r,g,a)}))};return d(t,{onBeforeEnter(e){fs(y,[e]),vs(e,o),vs(e,a)},onBeforeAppear(e){fs(C,[e]),vs(e,l),vs(e,c)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);vs(e,p),ks(),vs(e,f),bs((()=>{e._isLeaving&&(ys(e,p),vs(e,h),hs(w)||ws(e,r,v,n))})),fs(w,[e,n])},onEnterCancelled(e){E(e,!1),fs(x,[e])},onAppearCancelled(e){E(e,!0),fs(S,[e])},onLeaveCancelled(e){T(e),fs(A,[e])}})}function gs(e){return H(e)}function vs(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function ys(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function bs(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let xs=0;function ws(e,t,n,r){const i=e._endId=++xs,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=As(e,t);if(!a)return r();const c=a+"end";let u=0;const p=()=>{e.removeEventListener(c,d),o()},d=t=>{t.target===e&&++u>=l&&p()};setTimeout((()=>{u<l&&p()}),s+1),e.addEventListener(c,d)}function As(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(`${ls}Delay`),o=r(`${ls}Duration`),a=_s(i,o),s=r(`${cs}Delay`),l=r(`${cs}Duration`),c=_s(s,l);let u=null,p=0,d=0;t===ls?a>0&&(u=ls,p=a,d=o.length):t===cs?c>0&&(u=cs,p=c,d=l.length):(p=Math.max(a,c),u=p>0?a>c?ls:cs:null,d=u?u===ls?o.length:l.length:0);return{type:u,timeout:p,propCount:d,hasTransform:u===ls&&/\b(transform|all)(,|$)/.test(r(`${ls}Property`).toString())}}function _s(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Cs(t)+Cs(e[n]))))}function Cs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ks(){return document.body.offsetHeight}const Ss=new WeakMap,Es=new WeakMap,Ts={name:"TransitionGroup",props:d({},ds,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ca(),r=hr();let i,o;return qr((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=As(r);return i.removeChild(r),o}(i[0].el,n.vnode.el,t))return;i.forEach(Ms),i.forEach(Ls);const r=i.filter(Bs);ks(),r.forEach((e=>{const n=e.el,r=n.style;vs(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,ys(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const a=Pt(e),s=ms(a);let l=a.tag||So;i=o,o=t.default?_r(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&Ar(t,br(t,s,r,n))}if(i)for(let e=0;e<i.length;e++){const t=i[e];Ar(t,br(t,s,r,n)),Ss.set(t,t.el.getBoundingClientRect())}return Ko(l,null,o)}}},Os=Ts;function Ms(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Ls(e){Es.set(e,e.el.getBoundingClientRect())}function Bs(e){const t=Ss.get(e),n=Es.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration="0s",e}}const Ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return g(t)?e=>z(t,e):t};function Ns(e){e.target.composing=!0}function js(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ps={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Ds(i);const o=r||i.props&&"number"===i.props.type;Ka(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),o&&(r=q(r)),e._assign(r)})),n&&Ka(e,"change",(()=>{e.value=e.value.trim()})),t||(Ka(e,"compositionstart",Ns),Ka(e,"compositionend",js),Ka(e,"change",js))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=Ds(o),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&q(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},Rs={deep:!0,created(e,t,n){e._assign=Ds(n),Ka(e,"change",(()=>{const t=e._modelValue,n=qs(e),r=e.checked,i=e._assign;if(g(t)){const e=le(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(y(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Hs(e,r))}))},mounted:Fs,beforeUpdate(e,t,n){e._assign=Ds(n),Fs(e,t,n)}};function Fs(e,{value:t,oldValue:n},r){e._modelValue=t,g(t)?e.checked=le(t,r.props.value)>-1:y(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=se(t,Hs(e,!0)))}const Is={created(e,{value:t},n){e.checked=se(t,n.props.value),e._assign=Ds(n),Ka(e,"change",(()=>{e._assign(qs(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Ds(r),t!==n&&(e.checked=se(t,r.props.value))}},zs={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=y(t);Ka(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?q(qs(e)):qs(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=Ds(r)},mounted(e,{value:t}){$s(e,t)},beforeUpdate(e,t,n){e._assign=Ds(n)},updated(e,{value:t}){$s(e,t)}};function $s(e,t){const n=e.multiple;if(!n||g(t)||y(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],o=qs(i);if(n)g(t)?i.selected=le(t,o)>-1:i.selected=t.has(o);else if(se(qs(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function qs(e){return"_value"in e?e._value:e.value}function Hs(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ws={created(e,t,n){Vs(e,t,n,null,"created")},mounted(e,t,n){Vs(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Vs(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Vs(e,t,n,r,"updated")}};function Us(e,t){switch(e){case"SELECT":return zs;case"TEXTAREA":return Ps;default:switch(t){case"checkbox":return Rs;case"radio":return Is;default:return Ps}}}function Vs(e,t,n,r,i){const o=Us(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Ks=["ctrl","shift","alt","meta"],Gs={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ks.some((n=>e[`${n}Key`]&&!t.includes(n)))},Ys=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=Gs[t[e]];if(r&&r(n,t))return}return e(n,...r)},Xs={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Js=(e,t)=>n=>{if(!("key"in n))return;const r=P(n.key);return t.some((e=>e===r||Xs[e]===r))?e(n):void 0},Zs={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Qs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Qs(e,!0),r.enter(e)):r.leave(e,(()=>{Qs(e,!1)})):Qs(e,t))},beforeUnmount(e,{value:t}){Qs(e,t)}};function Qs(e,t){e.style.display=t?e._vod:"none"}const el=d({patchProp:(e,t,n,r,i=!1,o,a,s,l)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,i=w(n);if(n&&!i){if(t&&!w(t))for(const e in t)null==n[e]&&Ha(r,e,"");for(const e in n)Ha(r,e,n[e])}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}(e,n,r):u(t)?p(t)||Ga(e,t,0,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Qa.test(t)&&x(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Qa.test(t)&&w(n))return!1;return t in e}(e,t,r,i))?function(e,t,n,r,i,o,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,o),void(e[t]=null==n?"":n);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===s?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=ae(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,r,o,a,s,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Va,t.slice(6,t.length)):e.setAttributeNS(Va,t,n);else{const r=oe(t);null==n||r&&!ae(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,i))}},$a);let tl,nl=!1;function rl(){return tl||(tl=mo(el))}function il(){return tl=nl?tl:go(el),nl=!0,tl}const ol=(...e)=>{rl().render(...e)},al=(...e)=>{il().hydrate(...e)},sl=(...e)=>{const t=rl().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=cl(e);if(!r)return;const i=t._component;x(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},ll=(...e)=>{const t=il().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=cl(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function cl(e){if(w(e)){return document.querySelector(e)}return e}let ul=!1;const pl=()=>{ul||(ul=!0,Ps.getSSRProps=({value:e})=>({value:e}),Is.getSSRProps=({value:e},t)=>{if(t.props&&se(t.props.value,e))return{checked:!0}},Rs.getSSRProps=({value:e},t)=>{if(g(e)){if(t.props&&le(e,t.props.value)>-1)return{checked:!0}}else if(y(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ws.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Us(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Zs.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})};function dl(e){throw e}function fl(e){}function hl(e,t,n,r){const i=new SyntaxError(String(e));return i.code=e,i.loc=t,i}const ml=Symbol(""),gl=Symbol(""),vl=Symbol(""),yl=Symbol(""),bl=Symbol(""),xl=Symbol(""),wl=Symbol(""),Al=Symbol(""),_l=Symbol(""),Cl=Symbol(""),kl=Symbol(""),Sl=Symbol(""),El=Symbol(""),Tl=Symbol(""),Ol=Symbol(""),Ml=Symbol(""),Ll=Symbol(""),Bl=Symbol(""),Dl=Symbol(""),Nl=Symbol(""),jl=Symbol(""),Pl=Symbol(""),Rl=Symbol(""),Fl=Symbol(""),Il=Symbol(""),zl=Symbol(""),$l=Symbol(""),ql=Symbol(""),Hl=Symbol(""),Wl=Symbol(""),Ul=Symbol(""),Vl=Symbol(""),Kl=Symbol(""),Gl=Symbol(""),Yl=Symbol(""),Xl=Symbol(""),Jl=Symbol(""),Zl=Symbol(""),Ql=Symbol(""),ec={[ml]:"Fragment",[gl]:"Teleport",[vl]:"Suspense",[yl]:"KeepAlive",[bl]:"BaseTransition",[xl]:"openBlock",[wl]:"createBlock",[Al]:"createElementBlock",[_l]:"createVNode",[Cl]:"createElementVNode",[kl]:"createCommentVNode",[Sl]:"createTextVNode",[El]:"createStaticVNode",[Tl]:"resolveComponent",[Ol]:"resolveDynamicComponent",[Ml]:"resolveDirective",[Ll]:"resolveFilter",[Bl]:"withDirectives",[Dl]:"renderList",[Nl]:"renderSlot",[jl]:"createSlots",[Pl]:"toDisplayString",[Rl]:"mergeProps",[Fl]:"normalizeClass",[Il]:"normalizeStyle",[zl]:"normalizeProps",[$l]:"guardReactiveProps",[ql]:"toHandlers",[Hl]:"camelize",[Wl]:"capitalize",[Ul]:"toHandlerKey",[Vl]:"setBlockTracking",[Kl]:"pushScopeId",[Gl]:"popScopeId",[Yl]:"withCtx",[Xl]:"unref",[Jl]:"isRef",[Zl]:"withMemo",[Ql]:"isMemoSame"};const tc={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function nc(e,t,n,r,i,o,a,s=!1,l=!1,c=!1,u=tc){return e&&(s?(e.helper(xl),e.helper(dc(e.inSSR,c))):e.helper(pc(e.inSSR,c)),a&&e.helper(Bl)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:c,loc:u}}function rc(e,t=tc){return{type:17,loc:t,elements:e}}function ic(e,t=tc){return{type:15,loc:t,properties:e}}function oc(e,t){return{type:16,loc:tc,key:w(e)?ac(e,!0):e,value:t}}function ac(e,t=!1,n=tc,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function sc(e,t=tc){return{type:8,loc:t,children:e}}function lc(e,t=[],n=tc){return{type:14,loc:n,callee:e,arguments:t}}function cc(e,t=void 0,n=!1,r=!1,i=tc){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function uc(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:tc}}function pc(e,t){return e||t?_l:Cl}function dc(e,t){return e||t?wl:Al}function fc(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(pc(r,e.isComponent)),t(xl),t(dc(r,e.isComponent)))}const hc=e=>4===e.type&&e.isStatic,mc=(e,t)=>e===t||e===P(t);function gc(e){return mc(e,"Teleport")?gl:mc(e,"Suspense")?vl:mc(e,"KeepAlive")?yl:mc(e,"BaseTransition")?bl:void 0}const vc=/^\d|[^\$\w]/,yc=e=>!vc.test(e),bc=/[A-Za-z_$\xA0-\uFFFF]/,xc=/[\.\?\w$\xA0-\uFFFF]/,wc=/\s+[.[]\s*|\s*[.[]\s+/g,Ac=e=>{e=e.trim().replace(wc,(e=>e.trim()));let t=0,n=[],r=0,i=0,o=null;for(let a=0;a<e.length;a++){const s=e.charAt(a);switch(t){case 0:if("["===s)n.push(t),t=1,r++;else if("("===s)n.push(t),t=2,i++;else if(!(0===a?bc:xc).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(n.push(t),t=3,o=s):"["===s?r++:"]"===s&&(--r||(t=n.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)n.push(t),t=3,o=s;else if("("===s)i++;else if(")"===s){if(a===e.length-1)return!1;--i||(t=n.pop())}break;case 3:s===o&&(t=n.pop(),o=null)}}return!r&&!i};function _c(e,t,n){const r={source:e.source.slice(t,t+n),start:Cc(e.start,e.source,t),end:e.end};return null!=n&&(r.end=Cc(e.start,e.source,t+n)),r}function Cc(e,t,n=t.length){return kc(d({},e),t,n)}function kc(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=-1===i?e.column+n:n-i,e}function Sc(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&(w(t)?i.name===t:t.test(i.name)))return i}}function Ec(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(6===o.type){if(n)continue;if(o.name===t&&(o.value||r))return o}else if("bind"===o.name&&(o.exp||r)&&Tc(o.arg,t))return o}}function Tc(e,t){return!(!e||!hc(e)||e.content!==t)}function Oc(e){return 5===e.type||2===e.type}function Mc(e){return 7===e.type&&"slot"===e.name}function Lc(e){return 1===e.type&&3===e.tagType}function Bc(e){return 1===e.type&&2===e.tagType}const Dc=new Set([zl,$l]);function Nc(e,t=[]){if(e&&!w(e)&&14===e.type){const n=e.callee;if(!w(n)&&Dc.has(n))return Nc(e.arguments[0],t.concat(e))}return[e,t]}function jc(e,t,n){let r,i,o=13===e.type?e.props:e.arguments[2],a=[];if(o&&!w(o)&&14===o.type){const e=Nc(o);o=e[0],a=e[1],i=a[a.length-1]}if(null==o||w(o))r=ic([t]);else if(14===o.type){const e=o.arguments[0];w(e)||15!==e.type?o.callee===ql?r=lc(n.helper(Rl),[ic([t]),o]):o.arguments.unshift(ic([t])):Pc(t,e)||e.properties.unshift(t),!r&&(r=o)}else 15===o.type?(Pc(t,o)||o.properties.unshift(t),r=o):(r=lc(n.helper(Rl),[ic([t]),o]),i&&i.callee===$l&&(i=a[a.length-2]));13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function Pc(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===r))}return n}function Rc(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function Fc(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return"MODE"===e?r||3:r}function Ic(e,t){const n=Fc("MODE",t),r=Fc(e,t);return 3===n?!0===r:!1!==r}function zc(e,t,n,...r){return Ic(e,t)}const $c=/&(gt|lt|amp|apos|quot);/g,qc={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Hc={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:l,isPreTag:l,isCustomElement:l,decodeEntities:e=>e.replace($c,((e,t)=>qc[t])),onError:dl,onWarn:fl,comments:!1};function Wc(e,t={}){const n=function(e,t){const n=d({},Hc);let r;for(r in t)n[r]=void 0===t[r]?Hc[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),r=ou(n);return function(e,t=tc){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(Uc(n,0,[]),au(n,r))}function Uc(e,t,n){const r=su(n),i=r?r.ns:0,o=[];for(;!fu(e,t,n);){const a=e.source;let s;if(0===t||1===t)if(!e.inVPre&&lu(a,e.options.delimiters[0]))s=nu(e,t);else if(0===t&&"<"===a[0])if(1===a.length)du(e,5,1);else if("!"===a[1])lu(a,"\x3c!--")?s=Gc(e):lu(a,"<!DOCTYPE")?s=Yc(e):lu(a,"<![CDATA[")?0!==i?s=Kc(e,n):(du(e,1),s=Yc(e)):(du(e,11),s=Yc(e));else if("/"===a[1])if(2===a.length)du(e,5,2);else{if(">"===a[2]){du(e,14,2),cu(e,3);continue}if(/[a-z]/i.test(a[2])){du(e,23),Qc(e,Jc.End,r);continue}du(e,12,2),s=Yc(e)}else/[a-z]/i.test(a[1])?(s=Xc(e,n),Ic("COMPILER_NATIVE_TEMPLATE",e)&&s&&"template"===s.tag&&!s.props.some((e=>7===e.type&&Zc(e.name)))&&(s=s.children)):"?"===a[1]?(du(e,21,1),s=Yc(e)):du(e,12,1);if(s||(s=ru(e,t)),g(s))for(let e=0;e<s.length;e++)Vc(o,s[e]);else Vc(o,s)}let a=!1;if(2!==t&&1!==t){const t="preserve"!==e.options.whitespace;for(let n=0;n<o.length;n++){const r=o[n];if(2===r.type)if(e.inPre)r.content=r.content.replace(/\r\n/g,"\n");else if(/[^\t\r\n\f ]/.test(r.content))t&&(r.content=r.content.replace(/[\t\r\n\f ]+/g," "));else{const e=o[n-1],i=o[n+1];!e||!i||t&&(3===e.type&&3===i.type||3===e.type&&1===i.type||1===e.type&&3===i.type||1===e.type&&1===i.type&&/[\r\n]/.test(r.content))?(a=!0,o[n]=null):r.content=" "}else 3!==r.type||e.options.comments||(a=!0,o[n]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const e=o[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return a?o.filter(Boolean):o}function Vc(e,t){if(2===t.type){const n=su(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function Kc(e,t){cu(e,9);const n=Uc(e,3,t);return 0===e.source.length?du(e,6):cu(e,3),n}function Gc(e){const t=ou(e);let n;const r=/--(\!)?>/.exec(e.source);if(r){r.index<=3&&du(e,0),r[1]&&du(e,10),n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let i=1,o=0;for(;-1!==(o=t.indexOf("\x3c!--",i));)cu(e,o-i+1),o+4<t.length&&du(e,16),i=o+1;cu(e,r.index+r[0].length-i+1)}else n=e.source.slice(4),cu(e,e.source.length),du(e,7);return{type:3,content:n,loc:au(e,t)}}function Yc(e){const t=ou(e),n="?"===e.source[1]?1:2;let r;const i=e.source.indexOf(">");return-1===i?(r=e.source.slice(n),cu(e,e.source.length)):(r=e.source.slice(n,i),cu(e,i+1)),{type:3,content:r,loc:au(e,t)}}function Xc(e,t){const n=e.inPre,r=e.inVPre,i=su(t),o=Qc(e,Jc.Start,i),a=e.inPre&&!n,s=e.inVPre&&!r;if(o.isSelfClosing||e.options.isVoidTag(o.tag))return a&&(e.inPre=!1),s&&(e.inVPre=!1),o;t.push(o);const l=e.options.getTextMode(o,i),c=Uc(e,l,t);t.pop();{const t=o.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&zc("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=au(e,o.loc.end);t.value={type:2,content:n.source,loc:n}}}if(o.children=c,hu(e.source,o.tag))Qc(e,Jc.End,i);else if(du(e,24,0,o.loc.start),0===e.source.length&&"script"===o.tag.toLowerCase()){const t=c[0];t&&lu(t.loc.source,"\x3c!--")&&du(e,8)}return o.loc=au(e,o.loc.start),a&&(e.inPre=!1),s&&(e.inVPre=!1),o}var Jc=(e=>(e[e.Start=0]="Start",e[e.End=1]="End",e))(Jc||{});const Zc=i("if,else,else-if,for,slot");function Qc(e,t,n){const r=ou(e),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),o=i[1],a=e.options.getNamespace(o,n);cu(e,i[0].length),uu(e);const s=ou(e),l=e.source;e.options.isPreTag(o)&&(e.inPre=!0);let c=eu(e,t);0===t&&!e.inVPre&&c.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,d(e,s),e.source=l,c=eu(e,t).filter((e=>"v-pre"!==e.name)));let u=!1;if(0===e.source.length?du(e,9):(u=lu(e.source,"/>"),1===t&&u&&du(e,4),cu(e,u?2:1)),1===t)return;let p=0;return e.inVPre||("slot"===o?p=2:"template"===o?c.some((e=>7===e.type&&Zc(e.name)))&&(p=3):function(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||gc(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const r=t[e];if(6===r.type){if("is"===r.name&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(zc("COMPILER_IS_ON_ELEMENT",n,r.loc))return!0}}else{if("is"===r.name)return!0;if("bind"===r.name&&Tc(r.arg,"is")&&zc("COMPILER_IS_ON_ELEMENT",n,r.loc))return!0}}}(o,c,e)&&(p=1)),{type:1,ns:a,tag:o,tagType:p,props:c,isSelfClosing:u,children:[],loc:au(e,r),codegenNode:void 0}}function eu(e,t){const n=[],r=new Set;for(;e.source.length>0&&!lu(e.source,">")&&!lu(e.source,"/>");){if(lu(e.source,"/")){du(e,22),cu(e,1),uu(e);continue}1===t&&du(e,3);const i=tu(e,r);6===i.type&&i.value&&"class"===i.name&&(i.value.content=i.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(i),/^[^\t\r\n\f />]/.test(e.source)&&du(e,15),uu(e)}return n}function tu(e,t){var n;const r=ou(e),i=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(i)&&du(e,2),t.add(i),"="===i[0]&&du(e,19);{const t=/["'<]/g;let n;for(;n=t.exec(i);)du(e,17,n.index)}let o;cu(e,i.length),/^[\t\r\n\f ]*=/.test(e.source)&&(uu(e),cu(e,1),uu(e),o=function(e){const t=ou(e);let n;const r=e.source[0],i='"'===r||"'"===r;if(i){cu(e,1);const t=e.source.indexOf(r);-1===t?n=iu(e,e.source.length,4):(n=iu(e,t,4),cu(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let i;for(;i=r.exec(t[0]);)du(e,18,i.index);n=iu(e,t[0].length,4)}return{content:n,isQuoted:i,loc:au(e,t)}}(e),o||du(e,13));const a=au(e,r);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(i)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(i);let s,l=lu(i,"."),c=t[1]||(l||lu(i,":")?"bind":lu(i,"@")?"on":"slot");if(t[2]){const o="slot"===c,a=i.lastIndexOf(t[2],i.length-((null==(n=t[3])?void 0:n.length)||0)),l=au(e,pu(e,r,a),pu(e,r,a+t[2].length+(o&&t[3]||"").length));let u=t[2],p=!0;u.startsWith("[")?(p=!1,u.endsWith("]")?u=u.slice(1,u.length-1):(du(e,27),u=u.slice(1))):o&&(u+=t[3]||""),s={type:4,content:u,isStatic:p,constType:p?3:0,loc:l}}if(o&&o.isQuoted){const e=o.loc;e.start.offset++,e.start.column++,e.end=Cc(e.start,o.content),e.source=e.source.slice(1,-1)}const u=t[3]?t[3].slice(1).split("."):[];return l&&u.push("prop"),"bind"===c&&s&&u.includes("sync")&&zc("COMPILER_V_BIND_SYNC",e,0,s.loc.source)&&(c="model",u.splice(u.indexOf("sync"),1)),{type:7,name:c,exp:o&&{type:4,content:o.content,isStatic:!1,constType:0,loc:o.loc},arg:s,modifiers:u,loc:a}}return!e.inVPre&&lu(i,"v-")&&du(e,26),{type:6,name:i,value:o&&{type:2,content:o.content,loc:o.loc},loc:a}}function nu(e,t){const[n,r]=e.options.delimiters,i=e.source.indexOf(r,n.length);if(-1===i)return void du(e,25);const o=ou(e);cu(e,n.length);const a=ou(e),s=ou(e),l=i-n.length,c=e.source.slice(0,l),u=iu(e,l,t),p=u.trim(),d=u.indexOf(p);d>0&&kc(a,c,d);return kc(s,c,l-(u.length-p.length-d)),cu(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:p,loc:au(e,a,s)},loc:au(e,o)}}function ru(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let t=0;t<n.length;t++){const i=e.source.indexOf(n[t],1);-1!==i&&r>i&&(r=i)}const i=ou(e);return{type:2,content:iu(e,r,t),loc:au(e,i)}}function iu(e,t,n){const r=e.source.slice(0,t);return cu(e,t),2!==n&&3!==n&&r.includes("&")?e.options.decodeEntities(r,4===n):r}function ou(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function au(e,t,n){return{start:t,end:n=n||ou(e),source:e.originalSource.slice(t.offset,n.offset)}}function su(e){return e[e.length-1]}function lu(e,t){return e.startsWith(t)}function cu(e,t){const{source:n}=e;kc(e,n,t),e.source=n.slice(t)}function uu(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&cu(e,t[0].length)}function pu(e,t,n){return Cc(t,e.originalSource.slice(t.offset,n),n)}function du(e,t,n,r=ou(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(hl(t,{start:r,end:r,source:""}))}function fu(e,t,n){const r=e.source;switch(t){case 0:if(lu(r,"</"))for(let e=n.length-1;e>=0;--e)if(hu(r,n[e].tag))return!0;break;case 1:case 2:{const e=su(n);if(e&&hu(r,e.tag))return!0;break}case 3:if(lu(r,"]]>"))return!0}return!r}function hu(e,t){return lu(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function mu(e,t){vu(e,t,gu(e,e.children[0]))}function gu(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!Bc(t)}function vu(e,t,n=!1){const{children:r}=e,i=r.length;let o=0;for(let e=0;e<r.length;e++){const i=r[e];if(1===i.type&&0===i.tagType){const e=n?0:yu(i,t);if(e>0){if(e>=2){i.codegenNode.patchFlag="-1",i.codegenNode=t.hoist(i.codegenNode),o++;continue}}else{const e=i.codegenNode;if(13===e.type){const n=_u(e);if((!n||512===n||1===n)&&wu(i,t)>=2){const n=Au(i);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===i.type){const e=1===i.tagType;e&&t.scopes.vSlot++,vu(i,t),e&&t.scopes.vSlot--}else if(11===i.type)vu(i,t,1===i.children.length);else if(9===i.type)for(let e=0;e<i.branches.length;e++)vu(i.branches[e],t,1===i.branches[e].children.length)}o&&t.transformHoist&&t.transformHoist(r,t,e),o&&o===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&g(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(rc(e.codegenNode.children)))}function yu(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;if(_u(i))return n.set(e,0),0;{let r=3;const o=wu(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let i=0;i<e.children.length;i++){const o=yu(e.children[i],t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}if(r>1)for(let i=0;i<e.props.length;i++){const o=e.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=yu(o.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return n.set(e,0),0}t.removeHelper(xl),t.removeHelper(dc(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(pc(t.inSSR,i.isComponent))}return n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return yu(e.content,t);case 4:return e.constType;case 8:let o=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if(w(r)||A(r))continue;const i=yu(r,t);if(0===i)return 0;i<o&&(o=i)}return o}}const bu=new Set([Fl,Il,zl,$l]);function xu(e,t){if(14===e.type&&!w(e.callee)&&bu.has(e.callee)){const n=e.arguments[0];if(4===n.type)return yu(n,t);if(14===n.type)return xu(n,t)}return 0}function wu(e,t){let n=3;const r=Au(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:i,value:o}=e[r],a=yu(i,t);if(0===a)return a;let s;if(a<n&&(n=a),s=4===o.type?yu(o,t):14===o.type?xu(o,t):0,0===s)return s;s<n&&(n=s)}}return n}function Au(e){const t=e.codegenNode;if(13===t.type)return t.props}function _u(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Cu(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:i=!1,nodeTransforms:a=[],directiveTransforms:l={},transformHoist:c=null,isBuiltInComponent:u=s,isCustomElement:p=s,expressionPlugins:d=[],scopeId:f=null,slotted:h=!0,ssr:m=!1,inSSR:g=!1,ssrCssVars:v="",bindingMetadata:y=o,inline:b=!1,isTS:x=!1,onError:A=dl,onWarn:_=fl,compatConfig:C}){const k=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),S={selfName:k&&R(N(k[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:i,nodeTransforms:a,directiveTransforms:l,transformHoist:c,isBuiltInComponent:u,isCustomElement:p,expressionPlugins:d,scopeId:f,slotted:h,ssr:m,inSSR:g,ssrCssVars:v,bindingMetadata:y,inline:b,isTS:x,onError:A,onWarn:_,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=S.helpers.get(e)||0;return S.helpers.set(e,t+1),e},removeHelper(e){const t=S.helpers.get(e);if(t){const n=t-1;n?S.helpers.set(e,n):S.helpers.delete(e)}},helperString:e=>`_${ec[S.helper(e)]}`,replaceNode(e){S.parent.children[S.childIndex]=S.currentNode=e},removeNode(e){const t=S.parent.children,n=e?t.indexOf(e):S.currentNode?S.childIndex:-1;e&&e!==S.currentNode?S.childIndex>n&&(S.childIndex--,S.onNodeRemoved()):(S.currentNode=null,S.onNodeRemoved()),S.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){w(e)&&(e=ac(e)),S.hoists.push(e);const t=ac(`_hoisted_${S.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:tc}}(S.cached++,e,t)};return S.filters=new Set,S}function ku(e,t){const n=Cu(e,t);Su(e,n),t.hoistStatic&&mu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(gu(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&fc(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;V[64];0,e.codegenNode=nc(t,n(ml),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function Su(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const o=n[i](e,t);if(o&&(g(o)?r.push(...o):r.push(o)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(kl);break;case 5:t.ssr||t.helper(Pl);break;case 9:for(let n=0;n<e.branches.length;n++)Su(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];w(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Su(i,t))}}(e,t)}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function Eu(e,t){const n=w(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(Mc))return;const o=[];for(let a=0;a<i.length;a++){const s=i[a];if(7===s.type&&n(s.name)){i.splice(a,1),a--;const n=t(e,s,r);n&&o.push(n)}}return o}}}const Tu="/*#__PURE__*/",Ou=e=>`${ec[e]}: _${ec[e]}`;function Mu(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:p=!1,inSSR:d=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:p,inSSR:d,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${ec[e]}`,push(e,t){f.code+=e},indent(){h(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:h(--f.indentLevel)},newline(){h(f.indentLevel)}};function h(e){f.push("\n"+"  ".repeat(e))}return f}function Lu(e,t={}){const n=Mu(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:c,ssr:u}=n,p=Array.from(e.helpers),d=p.length>0,f=!o&&"module"!==r,h=n;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,c=s,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${c}\n`),e.hoists.length)){i(`const { ${[_l,Cl,kl,Sl,El].filter((e=>u.includes(e))).map(Ou).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:i,scopeId:o,mode:a}=t;r();for(let i=0;i<e.length;i++){const o=e[i];o&&(n(`const _hoisted_${i+1} = `),ju(o,t),r())}t.pure=!1})(e.hoists,t),o(),i("return ")}(e,h);if(i(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),f&&(i("with (_ctx) {"),a(),d&&(i(`const { ${p.map(Ou).join(", ")} } = _Vue`),i("\n"),l())),e.components.length&&(Bu(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Bu(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Bu(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n"),l()),u||i("return "),e.codegenNode?ju(e.codegenNode,n):i("null"),f&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Bu(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n("filter"===t?Ll:"component"===t?Tl:Ml);for(let n=0;n<e.length;n++){let s=e[n];const l=s.endsWith("__self");l&&(s=s.slice(0,-6)),r(`const ${Rc(s,t)} = ${a}(${JSON.stringify(s)}${l?", true":""})${o?"!":""}`),n<e.length-1&&i()}}function Du(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Nu(e,t,n),n&&t.deindent(),t.push("]")}function Nu(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];w(s)?i(s):g(s)?Du(s,t):ju(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function ju(e,t){if(w(e))t.push(e);else if(A(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:ju(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:Pu(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Tu);n(`${r(Pl)}(`),ju(e.content,t),n(")")}(e,t);break;case 8:Ru(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Tu);n(`${r(kl)}(${JSON.stringify(e.content)})`,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:c,directives:u,isBlock:p,disableTracking:d,isComponent:f}=e;u&&n(r(Bl)+"(");p&&n(`(${r(xl)}(${d?"true":""}), `);i&&n(Tu);const h=p?dc(t.inSSR,f):pc(t.inSSR,f);n(r(h)+"(",e),Nu(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([o,a,s,l,c]),t),n(")"),p&&n(")");u&&(n(", "),ju(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:i}=t,o=w(e.callee)?e.callee:r(e.callee);i&&n(Tu);n(o+"(",e),Nu(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length)return void n("{}",e);const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let e=0;e<a.length;e++){const{key:r,value:i}=a[e];Fu(r,t),n(": "),ju(i,t),e<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}(e,t);break;case 17:!function(e,t){Du(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:l,isSlot:c}=e;c&&n(`_${ec[Yl]}(`);n("(",e),g(o)?Nu(o,t):o&&ju(o,t);n(") => "),(l||s)&&(n("{"),r());a?(l&&n("return "),g(a)?Du(a,t):ju(a,t)):s&&ju(s,t);(l||s)&&(i(),n("}"));c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:s,deindent:l,newline:c}=t;if(4===n.type){const e=!yc(n.content);e&&a("("),Pu(n,t),e&&a(")")}else a("("),ju(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),ju(r,t),t.indentLevel--,o&&c(),o||a(" "),a(": ");const u=19===i.type;u||t.indentLevel++;ju(i,t),u||t.indentLevel--;o&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${r(Vl)}(-1),`),a());n(`_cache[${e.index}] = `),ju(e.value,t),e.isVNode&&(n(","),a(),n(`${r(Vl)}(1),`),a(),n(`_cache[${e.index}]`),o());n(")")}(e,t);break;case 21:Nu(e.body,t,!0,!1)}}function Pu(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Ru(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];w(r)?t.push(r):ju(r,t)}}function Fu(e,t){const{push:n}=t;if(8===e.type)n("["),Ru(e,t),n("]");else if(e.isStatic){n(yc(e.content)?e.content:JSON.stringify(e.content),e)}else n(`[${e.content}]`,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Iu=Eu(/^(if|else|else-if)$/,((e,t,n)=>function(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(hl(28,t.loc)),t.exp=ac("true",!1,r)}0;if("if"===t.name){const i=zu(e,t),o={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-- >=-1;){const a=i[o];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===t.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(hl(30,e.loc)),n.removeNode();const i=zu(e,t);0,a.branches.push(i);const o=r&&r(a,i,!1);Su(i,n),o&&o(),n.currentNode=null}else n.onError(hl(30,e.loc));break}n.removeNode(a)}}}}(e,t,n,((e,t,r)=>{const i=n.parent.children;let o=i.indexOf(e),a=0;for(;o-- >=0;){const e=i[o];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(r)e.codegenNode=$u(t,a,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=$u(t,a+e.branches.length-1,n)}}}))));function zu(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Sc(e,"for")?e.children:[e],userKey:Ec(e,"key"),isTemplateIf:n}}function $u(e,t,n){return e.condition?uc(e.condition,qu(e,t,n),lc(n.helper(kl),['""',"true"])):qu(e,t,n)}function qu(e,t,n){const{helper:r}=n,i=oc("key",ac(`${t}`,!1,tc,2)),{children:o}=e,a=o[0];if(1!==o.length||1!==a.type){if(1===o.length&&11===a.type){const e=a.codegenNode;return jc(e,i,n),e}{let t=64;V[64];return nc(n,r(ml),ic([i]),o,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(s=e).type&&s.callee===Zl?s.arguments[1].returns:s;return 13===t.type&&fc(t,n),jc(t,i,n),e}var s}const Hu=Eu("for",((e,t,n)=>{const{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(hl(31,t.loc));const i=Ku(t.exp,n);if(!i)return void n.onError(hl(32,t.loc));const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:c,key:u,index:p}=i,d={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:p,parseResult:i,children:Lc(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const f=r&&r(d);return()=>{s.vFor--,f&&f()}}(e,t,n,(t=>{const o=lc(r(Dl),[t.source]),a=Lc(e),s=Sc(e,"memo"),l=Ec(e,"key"),c=l&&(6===l.type?ac(l.value.content,!0):l.exp),u=l?oc("key",c):null,p=4===t.source.type&&t.source.constType>0,d=p?64:l?128:256;return t.codegenNode=nc(n,r(ml),void 0,o,d+"",void 0,void 0,!0,!p,!1,e.loc),()=>{let l;const{children:d}=t;const f=1!==d.length||1!==d[0].type,h=Bc(e)?e:a&&1===e.children.length&&Bc(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,a&&u&&jc(l,u,n)):f?l=nc(n,r(ml),u?ic([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,a&&u&&jc(l,u,n),l.isBlock!==!p&&(l.isBlock?(i(xl),i(dc(n.inSSR,l.isComponent))):i(pc(n.inSSR,l.isComponent))),l.isBlock=!p,l.isBlock?(r(xl),r(dc(n.inSSR,l.isComponent))):r(pc(n.inSSR,l.isComponent))),s){const e=cc(Yu(t.parseResult,[ac("_cached")]));e.body={type:21,body:[sc(["const _memo = (",s.exp,")"]),sc(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(Ql)}(_cached, _memo)) return _cached`]),sc(["const _item = ",l]),ac("_item.memo = _memo"),ac("return _item")],loc:tc},o.arguments.push(e,ac("_cache"),ac(String(n.cached++)))}else o.arguments.push(cc(Yu(t.parseResult),l,!0))}}))}));const Wu=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Uu=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vu=/^\(|\)$/g;function Ku(e,t){const n=e.loc,r=e.content,i=r.match(Wu);if(!i)return;const[,o,a]=i,s={source:Gu(n,a.trim(),r.indexOf(a,o.length)),value:void 0,key:void 0,index:void 0};let l=o.trim().replace(Vu,"").trim();const c=o.indexOf(l),u=l.match(Uu);if(u){l=l.replace(Uu,"").trim();const e=u[1].trim();let t;if(e&&(t=r.indexOf(e,c+l.length),s.key=Gu(n,e,t)),u[2]){const i=u[2].trim();i&&(s.index=Gu(n,i,r.indexOf(i,s.key?t+e.length:c+l.length)))}}return l&&(s.value=Gu(n,l,c)),s}function Gu(e,t,n){return ac(t,!1,_c(e,n,t.length))}function Yu({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||ac("_".repeat(t+1),!1)))}([e,t,n,...r])}const Xu=ac("undefined",!1),Ju=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Sc(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Zu=(e,t,n)=>cc(e,t,!1,!0,t.length?t[0].loc:n);function Qu(e,t,n=Zu){t.helper(Yl);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Sc(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!hc(e)&&(s=!0),o.push(oc(e||ac("default",!0),n(t,r,i)))}let c=!1,u=!1;const p=[],d=new Set;let f=0;for(let e=0;e<r.length;e++){const i=r[e];let h;if(!Lc(i)||!(h=Sc(i,"slot",!0))){3!==i.type&&p.push(i);continue}if(l){t.onError(hl(37,h.loc));break}c=!0;const{children:m,loc:g}=i,{arg:v=ac("default",!0),exp:y,loc:b}=h;let x;hc(v)?x=v?v.content:"default":s=!0;const w=n(y,m,g);let A,_,C;if(A=Sc(i,"if"))s=!0,a.push(uc(A.exp,ep(v,w,f++),Xu));else if(_=Sc(i,/^else(-if)?$/,!0)){let n,i=e;for(;i--&&(n=r[i],3===n.type););if(n&&Lc(n)&&Sc(n,"if")){r.splice(e,1),e--;let t=a[a.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=_.exp?uc(_.exp,ep(v,w,f++),Xu):ep(v,w,f++)}else t.onError(hl(30,_.loc))}else if(C=Sc(i,"for")){s=!0;const e=C.parseResult||Ku(C.exp);e?a.push(lc(t.helper(Dl),[e.source,cc(Yu(e),ep(v,w),!0)])):t.onError(hl(32,C.loc))}else{if(x){if(d.has(x)){t.onError(hl(38,b));continue}d.add(x),"default"===x&&(u=!0)}o.push(oc(v,w))}}if(!l){const e=(e,r)=>{const o=n(e,r,i);return t.compatConfig&&(o.isNonScopedSlot=!0),oc("default",o)};c?p.length&&p.some((e=>np(e)))&&(u?t.onError(hl(39,p[0].loc)):o.push(e(void 0,p))):o.push(e(void 0,r))}const h=s?2:tp(e.children)?3:1;let m=ic(o.concat(oc("_",ac(h+"",!1))),i);return a.length&&(m=lc(t.helper(jl),[m,rc(a)])),{slots:m,hasDynamicSlots:s}}function ep(e,t,n){const r=[oc("name",e),oc("fn",t)];return null!=n&&r.push(oc("key",ac(String(n),!0))),ic(r)}function tp(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||tp(n.children))return!0;break;case 9:if(tp(n.branches))return!0;break;case 10:case 11:if(tp(n.children))return!0}}return!1}function np(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():np(e.content))}const rp=new WeakMap,ip=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let o=i?function(e,t,n=!1){let{tag:r}=e;const i=lp(r),o=Ec(e,"is");if(o)if(i||Ic("COMPILER_IS_ON_ELEMENT",t)){const e=6===o.type?o.value&&ac(o.value.content,!0):o.exp;if(e)return lc(t.helper(Ol),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=!i&&Sc(e,"is");if(a&&a.exp)return lc(t.helper(Ol),[a.exp]);const s=gc(r)||t.isBuiltInComponent(r);if(s)return n||t.helper(s),s;return t.helper(Tl),t.components.add(r),Rc(r,"component")}(e,t):`"${n}"`;const a=_(o)&&o.callee===Ol;let s,l,c,u,p,d,f=0,h=a||o===gl||o===vl||!i&&("svg"===n||"foreignObject"===n);if(r.length>0){const n=op(e,t,void 0,i,a);s=n.props,f=n.patchFlag,p=n.dynamicPropNames;const r=n.directives;d=r&&r.length?rc(r.map((e=>function(e,t){const n=[],r=rp.get(e);r?n.push(t.helperString(r)):(t.helper(Ml),t.directives.add(e.name),n.push(Rc(e.name,"directive")));const{loc:i}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ac("true",!1,i);n.push(ic(e.modifiers.map((e=>oc(e,t))),i))}return rc(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){o===yl&&(h=!0,f|=1024);if(i&&o!==gl&&o!==yl){const{slots:n,hasDynamicSlots:r}=Qu(e,t);l=n,r&&(f|=1024)}else if(1===e.children.length&&o!==gl){const n=e.children[0],r=n.type,i=5===r||8===r;i&&0===yu(n,t)&&(f|=1),l=i||2===r?n:e.children}else l=e.children}0!==f&&(c=String(f),p&&p.length&&(u=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(p))),e.codegenNode=nc(t,o,s,l,c,u,d,!!h,!1,i,e.loc)};function op(e,t,n=e.props,r,i,o=!1){const{tag:a,loc:s,children:l}=e;let c=[];const p=[],d=[],f=l.length>0;let h=!1,m=0,g=!1,v=!1,y=!1,b=!1,x=!1,w=!1;const _=[],C=e=>{c.length&&(p.push(ic(ap(c),s)),c=[]),e&&p.push(e)},k=({key:e,value:n})=>{if(hc(e)){const o=e.content,a=u(o);if(!a||r&&!i||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||M(o)||(b=!0),a&&M(o)&&(w=!0),20===n.type||(4===n.type||8===n.type)&&yu(n,t)>0)return;"ref"===o?g=!0:"class"===o?v=!0:"style"===o?y=!0:"key"===o||_.includes(o)||_.push(o),!r||"class"!==o&&"style"!==o||_.includes(o)||_.push(o)}else x=!0};for(let i=0;i<n.length;i++){const l=n[i];if(6===l.type){const{loc:e,name:n,value:r}=l;let i=!0;if("ref"===n&&(g=!0,t.scopes.vFor>0&&c.push(oc(ac("ref_for",!0),ac("true")))),"is"===n&&(lp(a)||r&&r.content.startsWith("vue:")||Ic("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(oc(ac(n,!0,_c(e,0,n.length)),ac(r?r.content:"",i,r?r.loc:e)))}else{const{name:n,arg:i,exp:u,loc:m}=l,g="bind"===n,v="on"===n;if("slot"===n){r||t.onError(hl(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||g&&Tc(i,"is")&&(lp(a)||Ic("COMPILER_IS_ON_ELEMENT",t)))continue;if(v&&o)continue;if((g&&Tc(i,"key")||v&&f&&Tc(i,"vue:before-update"))&&(h=!0),g&&Tc(i,"ref")&&t.scopes.vFor>0&&c.push(oc(ac("ref_for",!0),ac("true"))),!i&&(g||v)){if(x=!0,u)if(g){if(C(),Ic("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(u);continue}p.push(u)}else C({type:14,loc:m,callee:t.helper(ql),arguments:r?[u]:[u,"true"]});else t.onError(hl(g?34:35,m));continue}const y=t.directiveTransforms[n];if(y){const{props:n,needRuntime:r}=y(l,e,t);!o&&n.forEach(k),v&&i&&!hc(i)?C(ic(n,s)):c.push(...n),r&&(d.push(l),A(r)&&rp.set(l,r))}else L(n)||(d.push(l),f&&(h=!0))}}let S;if(p.length?(C(),S=p.length>1?lc(t.helper(Rl),p,s):p[0]):c.length&&(S=ic(ap(c),s)),x?m|=16:(v&&!r&&(m|=2),y&&!r&&(m|=4),_.length&&(m|=8),b&&(m|=32)),h||0!==m&&32!==m||!(g||w||d.length>0)||(m|=512),!t.inSSR&&S)switch(S.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<S.properties.length;t++){const i=S.properties[t].key;hc(i)?"class"===i.content?e=t:"style"===i.content&&(n=t):i.isHandlerKey||(r=!0)}const i=S.properties[e],o=S.properties[n];r?S=lc(t.helper(zl),[S]):(i&&!hc(i.value)&&(i.value=lc(t.helper(Fl),[i.value])),o&&(y||4===o.value.type&&"["===o.value.content.trim()[0]||17===o.value.type)&&(o.value=lc(t.helper(Il),[o.value])));break;case 14:break;default:S=lc(t.helper(zl),[lc(t.helper($l),[S])])}return{props:S,directives:d,patchFlag:m,dynamicPropNames:_,shouldUseBlock:h}}function ap(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?("style"===o||"class"===o||u(o))&&sp(a,i):(t.set(o,i),n.push(i))}return n}function sp(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=rc([e.value,t.value],e.loc)}function lp(e){return"component"===e||"Component"===e}const cp=(e,t)=>{if(Bc(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=function(e,t){let n,r='"default"';const i=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];6===n.type?n.value&&("name"===n.name?r=JSON.stringify(n.value.content):(n.name=N(n.name),i.push(n))):"bind"===n.name&&Tc(n.arg,"name")?n.exp&&(r=n.exp):("bind"===n.name&&n.arg&&hc(n.arg)&&(n.arg.content=N(n.arg.content)),i.push(n))}if(i.length>0){const{props:r,directives:o}=op(e,t,i,!1,!1);n=r,o.length&&t.onError(hl(36,o[0].loc))}return{slotName:r,slotProps:n}}(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=cc([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=lc(t.helper(Nl),a,r)}};const up=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,pp=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;let s;if(e.exp||o.length||n.onError(hl(35,i)),4===a.type)if(a.isStatic){let e=a.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);s=ac(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?F(N(e)):`on:${e}`,!0,a.loc)}else s=sc([`${n.helperString(Ul)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(Ul)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Ac(l.content),t=!(e||up.test(l.content)),n=l.content.includes(";");0,(t||c&&e)&&(l=sc([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[oc(s,l||ac("() => {}",!1,i))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},dp=(e,t,n)=>{const{exp:r,modifiers:i,loc:o}=e,a=e.arg;return 4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),i.includes("camel")&&(4===a.type?a.isStatic?a.content=N(a.content):a.content=`${n.helperString(Hl)}(${a.content})`:(a.children.unshift(`${n.helperString(Hl)}(`),a.children.push(")"))),n.inSSR||(i.includes("prop")&&fp(a,"."),i.includes("attr")&&fp(a,"^")),!r||4===r.type&&!r.content.trim()?(n.onError(hl(34,o)),{props:[oc(a,ac("",!0,o))]}):{props:[oc(a,r)]}},fp=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},hp=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,i=!1;for(let e=0;e<n.length;e++){const t=n[e];if(Oc(t)){i=!0;for(let i=e+1;i<n.length;i++){const o=n[i];if(!Oc(o)){r=void 0;break}r||(r=n[e]=sc([t],t.loc)),r.children.push(" + ",o),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(Oc(r)||8===r.type){const i=[];2===r.type&&" "===r.content||i.push(r),t.ssr||0!==yu(r,t)||i.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:lc(t.helper(Sl),i)}}}}},mp=new WeakSet,gp=(e,t)=>{if(1===e.type&&Sc(e,"once",!0)){if(mp.has(e)||t.inVOnce||t.inSSR)return;return mp.add(e),t.inVOnce=!0,t.helper(Vl),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},vp=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(hl(41,e.loc)),yp();const o=r.loc.source,a=4===r.type?r.content:o,s=n.bindingMetadata[o];if("props"===s||"props-aliased"===s)return n.onError(hl(44,r.loc)),yp();if(!a.trim()||!Ac(a))return n.onError(hl(42,r.loc)),yp();const l=i||ac("modelValue",!0),c=i?hc(i)?`onUpdate:${N(i.content)}`:sc(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;u=sc([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const p=[oc(l,e.exp),oc(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(yc(e)?e:JSON.stringify(e))+": true")).join(", "),n=i?hc(i)?`${i.content}Modifiers`:sc([i,' + "Modifiers"']):"modelModifiers";p.push(oc(n,ac(`{ ${t} }`,!1,e.loc,2)))}return yp(p)};function yp(e=[]){return{props:e}}const bp=/[\w).+\-_$\]]/,xp=(e,t)=>{Ic("COMPILER_FILTER",t)&&(5===e.type&&wp(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&wp(e.exp,t)})))};function wp(e,t){if(4===e.type)Ap(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"==typeof r&&(4===r.type?Ap(r,t):8===r.type?wp(e,t):5===r.type&&wp(r.content,t))}}function Ap(e,t){const n=e.content;let r,i,o,a,s=!1,l=!1,c=!1,u=!1,p=0,d=0,f=0,h=0,m=[];for(o=0;o<n.length;o++)if(i=r,r=n.charCodeAt(o),s)39===r&&92!==i&&(s=!1);else if(l)34===r&&92!==i&&(l=!1);else if(c)96===r&&92!==i&&(c=!1);else if(u)47===r&&92!==i&&(u=!1);else if(124!==r||124===n.charCodeAt(o+1)||124===n.charCodeAt(o-1)||p||d||f){switch(r){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:f++;break;case 41:f--;break;case 91:d++;break;case 93:d--;break;case 123:p++;break;case 125:p--}if(47===r){let e,t=o-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&bp.test(e)||(u=!0)}}else void 0===a?(h=o+1,a=n.slice(0,o).trim()):g();function g(){m.push(n.slice(h,o).trim()),h=o+1}if(void 0===a?a=n.slice(0,o).trim():0!==h&&g(),m.length){for(o=0;o<m.length;o++)a=_p(a,m[o],t);e.content=a}}function _p(e,t,n){n.helper(Ll);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Rc(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${Rc(i,"filter")}(${e}${")"!==o?","+o:o}`}}const Cp=new WeakSet,kp=(e,t)=>{if(1===e.type){const n=Sc(e,"memo");if(!n||Cp.has(e))return;return Cp.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&fc(r,t),e.codegenNode=lc(t.helper(Zl),[n.exp,cc(void 0,r),"_cache",String(t.cached++)]))}}};function Sp(e,t={}){const n=t.onError||dl,r="module"===t.mode;!0===t.prefixIdentifiers?n(hl(47)):r&&n(hl(48));t.cacheHandlers&&n(hl(49)),t.scopeId&&!r&&n(hl(50));const i=w(e)?Wc(e,t):e,[o,a]=[[gp,Iu,kp,Hu,xp,cp,ip,Ju,hp],{on:pp,bind:dp,model:vp}];return ku(i,d({},t,{prefixIdentifiers:false,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:d({},a,t.directiveTransforms||{})})),Lu(i,d({},t,{prefixIdentifiers:false}))}const Ep=Symbol(""),Tp=Symbol(""),Op=Symbol(""),Mp=Symbol(""),Lp=Symbol(""),Bp=Symbol(""),Dp=Symbol(""),Np=Symbol(""),jp=Symbol(""),Pp=Symbol("");var Rp;let Fp;Rp={[Ep]:"vModelRadio",[Tp]:"vModelCheckbox",[Op]:"vModelText",[Mp]:"vModelSelect",[Lp]:"vModelDynamic",[Bp]:"withModifiers",[Dp]:"withKeys",[Np]:"vShow",[jp]:"Transition",[Pp]:"TransitionGroup"},Object.getOwnPropertySymbols(Rp).forEach((e=>{ec[e]=Rp[e]}));const Ip=i("style,iframe,script,noscript",!0),zp={isVoidTag:re,isNativeTag:e=>te(e)||ne(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Fp||(Fp=document.createElement("div")),t?(Fp.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Fp.children[0].getAttribute("foo")):(Fp.innerHTML=e,Fp.textContent)},isBuiltInComponent:e=>mc(e,"Transition")?jp:mc(e,"TransitionGroup")?Pp:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Ip(e))return 2}return 0}},$p=(e,t)=>{const n=Z(e);return ac(JSON.stringify(n),!1,t,3)};function qp(e,t){return hl(e,t)}const Hp=i("passive,once,capture"),Wp=i("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Up=i("left,right"),Vp=i("onkeyup,onkeydown,onkeypress",!0),Kp=(e,t)=>hc(e)&&"onclick"===e.content.toLowerCase()?ac(t,!0):4!==e.type?sc(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const Gp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Yp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:ac("style",!0,t.loc),exp:$p(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Xp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(qp(53,i)),t.children.length&&(n.onError(qp(54,i)),t.children.length=0),{props:[oc(ac("innerHTML",!0,i),r||ac("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(qp(55,i)),t.children.length&&(n.onError(qp(56,i)),t.children.length=0),{props:[oc(ac("textContent",!0),r?yu(r,n)>0?r:lc(n.helperString(Pl),[r],i):ac("",!0))]}},model:(e,t,n)=>{const r=vp(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(qp(58,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||o){let a=Op,s=!1;if("input"===i||o){const r=Ec(t,"type");if(r){if(7===r.type)a=Lp;else if(r.value)switch(r.value.content){case"radio":a=Ep;break;case"checkbox":a=Tp;break;case"file":s=!0,n.onError(qp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(a=Lp)}else"select"===i&&(a=Mp);s||(r.needRuntime=n.helper(a))}else n.onError(qp(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>pp(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:o}=t.props[0];const{keyModifiers:a,nonKeyModifiers:s,eventOptionModifiers:l}=((e,t,n,r)=>{const i=[],o=[],a=[];for(let r=0;r<t.length;r++){const s=t[r];"native"===s&&zc("COMPILER_V_ON_NATIVE",n)||Hp(s)?a.push(s):Up(s)?hc(e)?Vp(e.content)?i.push(s):o.push(s):(i.push(s),o.push(s)):Wp(s)?o.push(s):i.push(s)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}})(i,r,n,e.loc);if(s.includes("right")&&(i=Kp(i,"onContextmenu")),s.includes("middle")&&(i=Kp(i,"onMouseup")),s.length&&(o=lc(n.helper(Bp),[o,JSON.stringify(s)])),!a.length||hc(i)&&!Vp(i.content)||(o=lc(n.helper(Dp),[o,JSON.stringify(a)])),l.length){const e=l.map(R).join("");i=hc(i)?ac(`${i.content}${e}`,!0):sc(["(",i,`) + "${e}"`])}return{props:[oc(i,o)]}})),show:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(qp(61,i)),{props:[],needRuntime:n.helper(Np)}}};const Jp=Object.create(null);function Zp(e,t){if(!w(e)){if(!e.nodeType)return s;e=e.innerHTML}const n=e,i=Jp[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const o=d({hoistStatic:!0,onError:void 0,onWarn:s},t);o.isCustomElement||"undefined"==typeof customElements||(o.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return Sp(e,d({},zp,t,{nodeTransforms:[Gp,...Yp,...t.nodeTransforms||[]],directiveTransforms:d({},Xp,t.directiveTransforms||{}),transformHoist:null}))}(e,o);const l=new Function("Vue",a)(r);return l._rc=!0,Jp[n]=l}wa(Zp)},33907:(e,t,n)=>{"use strict";n.d(t,{_p:()=>U,MT:()=>F,nv:()=>W,Se:()=>H,OI:()=>q,oR:()=>f});var r=n(70821);function i(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==n.g?n.g:{}}const o="function"==typeof Proxy,a="devtools-plugin:setup";let s,l;function c(){return void 0!==s||("undefined"!=typeof window&&window.performance?(s=!0,l=window.performance):void 0!==n.g&&(null===(e=n.g.perf_hooks)||void 0===e?void 0:e.performance)?(s=!0,l=n.g.perf_hooks.performance):s=!1),s?l.now():Date.now();var e}class u{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch(e){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}i=e},now:()=>c()},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function p(e,t){const n=e,r=i(),s=i().__VUE_DEVTOOLS_GLOBAL_HOOK__,l=o&&n.enableEarlyProxy;if(!s||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&l){const e=l?new u(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else s.emit(a,e,t)}var d="store";function f(e){return void 0===e&&(e=null),(0,r.inject)(null!==e?e:d)}function h(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function m(e){return null!==e&&"object"==typeof e}function g(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function v(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;b(e,n,[],e._modules.root,!0),y(e,n,t)}function y(e,t,n){var i=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,s={},l={},c=(0,r.effectScope)(!0);c.run((function(){h(a,(function(t,n){s[n]=function(e,t){return function(){return e(t)}}(t,e),l[n]=(0,r.computed)((function(){return s[n]()})),Object.defineProperty(e.getters,n,{get:function(){return l[n].value},enumerable:!0})}))})),e._state=(0,r.reactive)({data:t}),e._scope=c,e.strict&&function(e){(0,r.watch)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}(e),i&&n&&e._withCommit((function(){i.data=null})),o&&o.stop()}function b(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=w(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){s[l]=r.state}))}var c=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=A(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=A(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return x(e,t)}},state:{get:function(){return w(e.state,n)}}}),i}(e,a,n);r.forEachMutation((function(t,n){!function(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}(e,a+n,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;!function(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i,o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,r,i,c)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,c)})),r.forEachChild((function(r,o){b(e,t,n.concat(o),r,i)}))}function x(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function w(e,t){return t.reduce((function(e,t){return e[t]}),e)}function A(e,t,n){return m(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var _="vuex:mutations",C="vuex:actions",k="vuex",S=0;function E(e,t){p({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:_,label:"Vuex Mutations",color:T}),n.addTimelineLayer({id:C,label:"Vuex Actions",color:T}),n.addInspector({id:k,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===k)if(n.filter){var r=[];B(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[L(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===k){var r=n.nodeId;x(t,r),n.state=function(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var o=function(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var i=t,o=r.pop();r.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[o]=D((function(){return e[n]}))}else t[n]=D((function(){return e[n]}))})),t}(t);i.getters=Object.keys(o).map((function(e){return{key:e.endsWith("/")?M(e):e,editable:!1,value:D((function(){return o[e]}))}}))}return i}((i=t._modules,(a=(o=r).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var r=e[t];if(!r)throw new Error('Missing module "'+t+'" for path "'+o+'".');return n===a.length-1?r:r._children}),"root"===o?i:i.root._children)),"root"===r?t.getters:t._makeLocalGettersCache,r)}var i,o,a})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===k){var r=n.nodeId,i=n.path;"root"!==r&&(i=r.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(k),n.sendInspectorState(k),n.addTimelineEvent({layerId:_,event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=S++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:C,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},i=Date.now()-e._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:C,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var T=8702998,O={label:"namespaced",textColor:16777215,backgroundColor:6710886};function M(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function L(e,t){return{id:t||"root",label:M(t),tags:e.namespaced?[O]:[],children:Object.keys(e._children).map((function(n){return L(e._children[n],t+n+"/")}))}}function B(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[O]:[]}),Object.keys(t._children).forEach((function(i){B(e,t._children[i],n,r+i+"/")}))}function D(e){try{return e()}catch(e){return e}}var N=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},j={namespaced:{configurable:!0}};j.namespaced.get=function(){return!!this._rawModule.namespaced},N.prototype.addChild=function(e,t){this._children[e]=t},N.prototype.removeChild=function(e){delete this._children[e]},N.prototype.getChild=function(e){return this._children[e]},N.prototype.hasChild=function(e){return e in this._children},N.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},N.prototype.forEachChild=function(e){h(this._children,e)},N.prototype.forEachGetter=function(e){this._rawModule.getters&&h(this._rawModule.getters,e)},N.prototype.forEachAction=function(e){this._rawModule.actions&&h(this._rawModule.actions,e)},N.prototype.forEachMutation=function(e){this._rawModule.mutations&&h(this._rawModule.mutations,e)},Object.defineProperties(N.prototype,j);var P=function(e){this.register([],e,!1)};function R(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;R(e.concat(r),t.getChild(r),n.modules[r])}}P.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},P.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},P.prototype.update=function(e){R([],this.root,e)},P.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new N(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&h(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},P.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},P.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};function F(e){return new I(e)}var I=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new P(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,n){return s.call(o,e,t,n)},this.strict=r;var l=this._modules.root.state;b(this,l,[],this._modules.root),y(this,l),n.forEach((function(e){return e(t)}))},z={state:{configurable:!0}};I.prototype.install=function(e,t){e.provide(t||d,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&E(e,this)},z.state.get=function(){return this._state.data},z.state.set=function(e){0},I.prototype.commit=function(e,t,n){var r=this,i=A(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},I.prototype.dispatch=function(e,t){var n=this,r=A(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(e){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(e){0}t(e)}))}))}},I.prototype.subscribe=function(e,t){return g(e,this._subscribers,t)},I.prototype.subscribeAction=function(e,t){return g("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},I.prototype.watch=function(e,t,n){var i=this;return(0,r.watch)((function(){return e(i.state,i.getters)}),t,Object.assign({},n))},I.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},I.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),b(this,this.state,e,this._modules.get(e),n.preserveState),y(this,this.state)},I.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete w(t.state,e.slice(0,-1))[e[e.length-1]]})),v(this)},I.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},I.prototype.hotUpdate=function(e){this._modules.update(e),v(this,!0)},I.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(I.prototype,z);var $=K((function(e,t){var n={};return V(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=G(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),q=K((function(e,t){var n={};return V(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=G(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),H=K((function(e,t){var n={};return V(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||G(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),W=K((function(e,t){var n={};return V(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=G(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),U=function(e){return{mapState:$.bind(null,e),mapGetters:H.bind(null,e),mapMutations:q.bind(null,e),mapActions:W.bind(null,e)}};function V(e){return function(e){return Array.isArray(e)||m(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function K(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function G(e,t,n){return e._modulesNamespaceMap[n]}},24558:(e,t,n)=>{"use strict";n.d(t,{w$:()=>ie});var r,i,o,a,s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function l(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.HEX="HEX",e.RGB="RGB",e.HSL="HSL",e.CMYK="CMYK"}(r||(r={})),function(e){e.ANALOGOUS="ANALOGOUS",e.COMPLEMENTARY="COMPLEMENTARY",e.SPLIT_COMPLEMENTARY="SPLIT_COMPLEMENTARY",e.TRIADIC="TRIADIC",e.TETRADIC="TETRADIC",e.SQUARE="SQUARE"}(i||(i={})),function(e){e.ADDITIVE="ADDITIVE",e.SUBTRACTIVE="SUBTRACTIVE"}(o||(o={})),function(e){e.black="#000000",e.silver="#C0C0C0",e.gray="#808080",e.white="#FFFFFF",e.maroon="#800000",e.red="#FF0000",e.purple="#800080",e.fuchsia="#FF00FF",e.green="#008000",e.lime="#00FF00",e.olive="#808000",e.yellow="#FFFF00",e.navy="#000080",e.blue="#0000FF",e.teal="#008080",e.aqua="#00FFFF",e.orange="#FFA500",e.aliceblue="#F0F8FF",e.antiquewhite="#FAEBD7",e.aquamarine="#7FFFD4",e.azure="#F0FFFF",e.beige="#F5F5DC",e.bisque="#FFE4C4",e.blanchedalmond="#FFEBCD",e.blueviolet="#8A2BE2",e.brown="#A52A2A",e.burlywood="#DEB887",e.cadetblue="#5F9EA0",e.chartreuse="#7FFF00",e.chocolate="#D2691E",e.coral="#FF7F50",e.cornflowerblue="#6495ED",e.cornsilk="#FFF8DC",e.crimson="#DC143C",e.cyan="#00FFFF",e.darkblue="#00008B",e.darkcyan="#008B8B",e.darkgoldenrod="#B8860B",e.darkgray="#A9A9A9",e.darkgreen="#006400",e.darkgrey="#A9A9A9",e.darkkhaki="#BDB76B",e.darkmagenta="#8B008B",e.darkolivegreen="#556B2F",e.darkorange="#FF8C00",e.darkorchid="#9932CC",e.darkred="#8B0000",e.darksalmon="#E9967A",e.darkseagreen="#8FBC8F",e.darkslateblue="#483D8B",e.darkslategray="#2F4F4F",e.darkslategrey="#2F4F4F",e.darkturquoise="#00CED1",e.darkviolet="#9400D3",e.deeppink="#FF1493",e.deepskyblue="#00BFFF",e.dimgray="#696969",e.dimgrey="#696969",e.dodgerblue="#1E90FF",e.firebrick="#B22222",e.floralwhite="#FFFAF0",e.forestgreen="#228B22",e.gainsboro="#DCDCDC",e.ghostwhite="#F8F8FF",e.gold="#FFD700",e.goldenrod="#DAA520",e.greenyellow="#ADFF2F",e.grey="#808080",e.honeydew="#F0FFF0",e.hotpink="#FF69B4",e.indianred="#CD5C5C",e.indigo="#4B0082",e.ivory="#FFFFF0",e.khaki="#F0E68C",e.lavender="#E6E6FA",e.lavenderblush="#FFF0F5",e.lawngreen="#7CFC00",e.lemonchiffon="#FFFACD",e.lightblue="#ADD8E6",e.lightcoral="#F08080",e.lightcyan="#E0FFFF",e.lightgoldenrodyellow="#FAFAD2",e.lightgray="#D3D3D3",e.lightgreen="#90EE90",e.lightgrey="#D3D3D3",e.lightpink="#FFB6C1",e.lightsalmon="#FFA07A",e.lightseagreen="#20B2AA",e.lightskyblue="#87CEFA",e.lightslategray="#778899",e.lightslategrey="#778899",e.lightsteelblue="#B0C4DE",e.lightyellow="#FFFFE0",e.limegreen="#32CD32",e.linen="#FAF0E6",e.magenta="#FF00FF",e.mediumaquamarine="#66CDAA",e.mediumblue="#0000CD",e.mediumorchid="#BA55D3",e.mediumpurple="#9370DB",e.mediumseagreen="#3CB371",e.mediumslateblue="#7B68EE",e.mediumspringgreen="#00FA9A",e.mediumturquoise="#48D1CC",e.mediumvioletred="#C71585",e.midnightblue="#191970",e.mintcream="#F5FFFA",e.mistyrose="#FFE4E1",e.moccasin="#FFE4B5",e.navajowhite="#FFDEAD",e.oldlace="#FDF5E6",e.olivedrab="#6B8E23",e.orangered="#FF4500",e.orchid="#DA70D6",e.palegoldenrod="#EEE8AA",e.palegreen="#98FB98",e.paleturquoise="#AFEEEE",e.palevioletred="#DB7093",e.papayawhip="#FFEFD5",e.peachpuff="#FFDAB9",e.peru="#CD853F",e.pink="#FFC0CB",e.plum="#DDA0DD",e.powderblue="#B0E0E6",e.rosybrown="#BC8F8F",e.royalblue="#4169E1",e.saddlebrown="#8B4513",e.salmon="#FA8072",e.sandybrown="#F4A460",e.seagreen="#2E8B57",e.seashell="#FFF5EE",e.sienna="#A0522D",e.skyblue="#87CEEB",e.slateblue="#6A5ACD",e.slategray="#708090",e.slategrey="#708090",e.snow="#FFFAFA",e.springgreen="#00FF7F",e.steelblue="#4682B4",e.tan="#D2B48C",e.thistle="#D8BFD8",e.tomato="#FF6347",e.turquoise="#40E0D0",e.violet="#EE82EE",e.wheat="#F5DEB3",e.whitesmoke="#F5F5F5",e.yellowgreen="#9ACD32",e.rebeccapurple="#663399"}(a||(a={}));var c,u,p,d,f,h,m,g=Object.keys(a),v=((c={})[r.HEX]=/^#(?:([a-f\d])([a-f\d])([a-f\d])([a-f\d])?|([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?)$/i,c[r.RGB]=/^rgba?\s*\(\s*(?:((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)(?:\s*,\s*((?:\d*\.)?\d+))?|((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)(?:\s*\/\s*((?:\d*\.)?\d+%?))?)\s*\)$/,c[r.HSL]=/^hsla?\s*\(\s*(?:(-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s*,\s*((?:\d*\.)?\d+)%\s*,\s*((?:\d*\.)?\d+)%(?:\s*,\s*((?:\d*\.)?\d+))?|(-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s*((?:\d*\.)?\d+)%\s*((?:\d*\.)?\d+)%(?:\s*\/\s*((?:\d*\.)?\d+%?))?)\s*\)$/,c[r.CMYK]=/^(?:device-cmyk|cmyk)\s*\(\s*(?:((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)(?:\s*,\s*((?:\d*\.)?\d+))?|((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)(?:\s*\/\s*((?:\d*\.)?\d+%?))?)\s*\)$/,c),y=/^(-?(?:\d*\.)?\d+)((?:deg|grad|rad|turn)?)$/,b=/^(\d+(?:\.\d+)?|\.\d+)%$/,x=/^0x([a-f\d]{1,2})$/i,w=function(e,t,n){return n<0&&(n+=6),n>=6&&(n-=6),n<1?Math.round(255*((t-e)*n+e)):n<3?Math.round(255*t):n<4?Math.round(255*((t-e)*(4-n)+e)):Math.round(255*e)},A=function(e,t,n){t/=100;var r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{r:w(i,r,2+(e/=60)),g:w(i,r,e),b:w(i,r,e-2)}},_=function(e,t,n,r){return r=1-r,{r:Math.round(255*(1-e)*r),g:Math.round(255*(1-t)*r),b:Math.round(255*(1-n)*r)}},C=function(e,t,n){e/=255,t/=255,n/=255;var r=1-Math.max(e,t,n),i=1-r,o=(i-e)/i,a=(i-t)/i,s=(i-n)/i;return{c:Math.round(100*o),m:Math.round(100*a),y:Math.round(100*s),k:Math.round(100*r)}},k=function(e,t,n,r){void 0===r&&(r=1),e/=255,t/=255,n/=255,r=Math.min(r,1);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=i-o,s=0,l=0,c=(i+o)/2;if(0===a)s=0,l=0;else{switch(i){case e:s=(t-n)/a%6;break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4}(s=Math.round(60*s))<0&&(s+=360),l=a/(1-Math.abs(2*c-1))}return{h:s,s:Math.round(100*l),l:Math.round(100*c),a:r}},S=function(e,t){if(e<0&&(e+=360),e>360&&(e-=360),360===e||0===e)return e;var n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,o=0,a=0,s=0,l=0;return(t?n:r).find((function(t,n){return e>=t[0]&&e<t[1]&&(o=t[0],a=t[1],s=i[n][0],l=i[n][1],!0)})),s+(l-s)/(a-o)*(e-o)},E=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},T=function(e){return b.test("".concat(e))?+"".concat(e).replace(b,"$1"):Math.min(+e,100)},O=function(e){return 1===e.length&&(e+=e),parseInt(e,16)},M=function(e){var t=j(e).toString(16).toUpperCase();return 1===t.length?"0x0".concat(t):"0x".concat(t)},L=function(e){var t=j(e).toString(16).toUpperCase();return 1===t.length&&(t="0".concat(t)),t},B=function(e,t){return void 0===t&&(t=!1),!t&&b.test(e)?Math.min(255*+e.replace(b,"$1")/100,255):x.test(e)?3===e.length?t?parseInt(e+e.slice(-1))/255:parseInt(e+e.slice(-1)):t?j(e,6)/255:j(e,6):Math.min(+e,t?1:255)},D=function(e){return Math.min(b.test(e)?+e.replace(b,"$1")/100:+e,1)},N=function(e){return e.sort().join("").toUpperCase()},j=function(e,t){void 0===t&&(t=0);var n=Math.pow(10,t);return Math.round(+e*n)/n},P=function(e,t,n){return Math.max(t,Math.min(e,n))},R=((u={})[r.HEX]=function(e){return"#".concat(L(e.r)).concat(L(e.g)).concat(L(e.b)).concat(E(e,"a")&&L(e.a)||"")},u[r.RGB]=function(e){return"rgb".concat(E(e,"a")?"a":"","(").concat(j(e.r),",").concat(j(e.g),",").concat(j(e.b)).concat(E(e,"a")&&",".concat(j(e.a,2))||"",")")},u[r.HSL]=function(e){return"hsl".concat(E(e,"a")?"a":"","(").concat(j(e.h),",").concat(j(e.s),"%,").concat(j(e.l),"%").concat(E(e,"a")&&",".concat(j(e.a,2))||"",")")},u[r.CMYK]=function(e){return"cmyk(".concat(j(e.c),"%,").concat(j(e.m),"%,").concat(j(e.y),"%,").concat(j(e.k),"%").concat(E(e,"a")&&",".concat(j(e.a,2))||"",")")},u),F=function(e){if("string"==typeof e){var t=e.match(y),n=+t[1];switch(t[2]){case"rad":e=Math.round(180*n/Math.PI);break;case"turn":e=Math.round(360*n);break;default:e=n}}return(e>360||e<0)&&(e-=360*Math.floor(e/360)),e},I=function(e){return"string"==typeof e&&(e=b.test(e)?+e.replace(b,"$1")/100:+e),isNaN(+e)||e>1?1:j(e,6)},z=function(e,t,n){return t.reduce((function(t,r){return l(l([],t,!0),[s(s({},e),{h:n===o.ADDITIVE?F(e.h+r):F(S(S(e.h,!1)+r,!0))})],!1)}),[s({},e)])},$=function(e,t){return z(e,[30,-30],t)},q=function(e,t){return z(e,[180],t)},H=function(e,t){return z(e,[150,-150],t)},W=function(e,t){return z(e,[120,-120],t)},U=function(e,t){return z(e,[60,-120,180],t)},V=function(e,t){return z(e,[90,-90,180],t)},K=Object.entries(r).reduce((function(e,t){var n=t[0],i=t[1];if(n!==r.HEX){var o=N(n.split(""));e[o]=i,e["A"+o]=i}return e}),{}),G=function(e){return"string"==typeof e?function(e){var t;if(Object.keys(r).some((function(n){if(v[n].test(e))return t=n,!0})),!t&&~g.indexOf(e)&&(t=r.HEX),!t)throw new Error("The provided string color doesn't have a correct format");return t}(e):function(e){var t,n=!1,i=N(Object.keys(e));if(K[i]&&(t=K[i]),t&&t===r.RGB){var o=Object.entries(e).some((function(e){return!x.test("".concat(e[1]))})),a=Object.entries(e).some((function(e){return!(b.test("".concat(e[1]))||!x.test("".concat(e[1]))&&!isNaN(+e[1])&&+e[1]<=255)}));o&&a&&(n=!0),o||(t=r.HEX)}if(!t||n)throw new Error("The provided color object doesn't have the proper keys or format");return t}(e)},Y=((p={})[r.HEX]=function(e){var t=(~g.indexOf(e)?a[e]:e).match(v.HEX),n={r:O(t[1]||t[5]),g:O(t[2]||t[6]),b:O(t[3]||t[7])},r=t[4]||t[8];return void 0!==r&&(n.a=O(r)/255),n},p[r.RGB]=function(e){var t=e.match(v.RGB),n=B(t[1]||t[5]),r=B(t[2]||t[6]),i=B(t[3]||t[7]),o=t[4]||t[8],a={r:Math.min(n,255),g:Math.min(r,255),b:Math.min(i,255)};return void 0!==o&&(a.a=I(o)),a},p[r.HSL]=function(e){var t=e.match(v.HSL),n=F(t[1]||t[5]),r=T(t[2]||t[6]),i=T(t[3]||t[7]),o=t[4]||t[8],a=A(n,r,i);return void 0!==o&&(a.a=I(o)),a},p[r.CMYK]=function(e){var t=e.match(v.CMYK),n=D(t[1]||t[6]),r=D(t[2]||t[7]),i=D(t[3]||t[8]),o=D(t[4]||t[9]),a=t[5]||t[10],s=_(n,r,i,o);return void 0!==a&&(s.a=I(a)),s},p),X=((d={})[r.HEX]=function(e){var t={r:B("".concat(e.r)),g:B("".concat(e.g)),b:B("".concat(e.b))};return E(e,"a")&&(t.a=Math.min(B("".concat(e.a),!0),1)),t},d[r.RGB]=function(e){return this.HEX(e)},d[r.HSL]=function(e){var t=T("".concat(e.s)),n=T("".concat(e.l)),r=A(F(e.h),t,n);return E(e,"a")&&(r.a=I(e.a)),r},d[r.CMYK]=function(e){var t=D("".concat(e.c)),n=D("".concat(e.m)),r=D("".concat(e.y)),i=D("".concat(e.k)),o=_(t,n,r,i);return E(e,"a")&&(o.a=I(e.a)),o},d),J=function(e,t){return void 0===t&&(t=G(e)),"string"==typeof e?Y[t](e):X[t](e)},Z=((f={})[r.HEX]=function(e){return{r:M(e.r),g:M(e.g),b:M(e.b)}},f.HEXA=function(e){var t=Z.HEX(e);return t.a=E(e,"a")?M(255*e.a):"0xFF",t},f[r.RGB]=function(e){return E(e,"a")&&delete e.a,e},f.RGBA=function(e){return e.a=E(e,"a")?j(e.a,2):1,e},f[r.HSL]=function(e){var t=k(e.r,e.g,e.b);return delete t.a,t},f.HSLA=function(e){var t=Z.HSL(e);return t.a=E(e,"a")?j(e.a,2):1,t},f[r.CMYK]=function(e){return C(e.r,e.g,e.b)},f.CMYKA=function(e){var t=C(e.r,e.g,e.b);return t.a=E(e,"a")?j(e.a,2):1,t},f),Q=function(e,t,n){var i=G(e),o="string"==typeof e,a=J(e,i),l="string"==typeof e&&E(a,"a")||"string"!=typeof e&&E(e,"a"),c=k(a.r,a.g,a.b,a.a);l||delete c.a;var u=n?c.l/(t+1):(100-c.l)/(t+1),p=Array(t).fill(null).map((function(e,t){return s(s({},c),{l:c.l+u*(t+1)*(1-2*+n)})}));switch(i){case r.HEX:default:return p.map((function(e){var t=A(e.h,e.s,e.l);return l&&(t.a=e.a),o?l?R.HEX(s(s({},t),{a:j(255*t.a,6)})):R.HEX(t):l?Z.HEXA(t):Z.HEX(t)}));case r.RGB:return p.map((function(e){var t=A(e.h,e.s,e.l);return l&&(t.a=e.a),o?R.RGB(t):l?Z.RGBA(t):Z.RGB(t)}));case r.HSL:return p.map((function(e){return o?R.HSL(e):l?Z.HSLA(s(s({},A(e.h,e.s,e.l)),{a:e.a})):Z.HSL(A(e.h,e.s,e.l))}))}},ee=((h={buildHarmony:function(e,t,n){var i=G(e),o=J(e,i),a=k(o.r,o.g,o.b,o.a),s="string"==typeof e&&E(o,"a")||"string"!=typeof e&&E(e,"a"),l="string"==typeof e;switch(i){case r.HEX:default:return s?this.HEXA(a,t,n,l):this.HEX(a,t,n,l);case r.HSL:return s?this.HSLA(a,t,n,l):this.HSL(a,t,n,l);case r.RGB:return s?this.RGBA(a,t,n,l):this.RGB(a,t,n,l)}}})[r.HEX]=function(e,t,n,r){return t(e,n).map((function(e){return r?R.HEX(A(e.h,e.s,e.l)):Z.HEX(A(e.h,e.s,e.l))}))},h.HEXA=function(e,t,n,r){return t(e,n).map((function(e){return r?R.HEX(s(s({},A(e.h,e.s,e.l)),{a:255*I(e.a)})):Z.HEXA(s(s({},A(e.h,e.s,e.l)),{a:I(e.a)}))}))},h[r.RGB]=function(e,t,n,r){return t(e,n).map((function(e){return r?R.RGB(A(e.h,e.s,e.l)):Z.RGB(A(e.h,e.s,e.l))}))},h.RGBA=function(e,t,n,r){return t(e,n).map((function(e){return r?R.RGB(s(s({},A(e.h,e.s,e.l)),{a:I(e.a)})):Z.RGBA(s(s({},A(e.h,e.s,e.l)),{a:I(e.a)}))}))},h[r.HSL]=function(e,t,n,r){return t(e,n).map((function(e){return r?R.HSL({h:e.h,s:e.s,l:e.l}):Z.HSL(A(e.h,e.s,e.l))}))},h.HSLA=function(e,t,n,r){return t(e,n).map((function(e){return r?R.HSL(s(s({},e),{a:I(e.a)})):Z.HSLA(s(s({},A(e.h,e.s,e.l)),{a:I(e.a)}))}))},h),te=((m={mix:function(e,t){var n,r,i,a,l,c,u,p,d,f,h,m,g,v,y,b=e.map((function(e){var t=G(e);return J(e,t)})),x=t===o.SUBTRACTIVE?b.map((function(e){var t,n,r,i,o,a,s,l,c,u,p,d,f,h,m=(t=e.r,n=e.g,r=e.b,i=Math.min(t,n,r),o=Math.min(255-t,255-n,255-r),s=n-i,l=r-i,u=(a=t-i)-(c=Math.min(a,s)),p=(s+c)/2,d=(l+s-c)/2,f=Math.max(u,p,d)/Math.max(a,s,l),{r:u/(h=isNaN(f)||f===1/0||f<=0?1:f)+o,y:p/h+o,b:d/h+o});return E(e,"a")&&(m.a=e.a),m})):null;function w(e){var n=t===o.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return e.reduce((function(e,n){var r=E(n,"a")?n.a:1,i={r:Math.min(e.r+n.r*r,255),b:Math.min(e.b+n.b*r,255),a:1-(1-r)*(1-e.a)},a="g"in e?e.g:e.y,l="g"in n?n.g:n.y;return s(s({},i),t===o.ADDITIVE?{g:Math.min(a+l*r,255)}:{y:Math.min(a+l*r,255)})}),n)}if(t===o.ADDITIVE)n=w(b);else{var A=w(x);r=A.r,i=A.y,a=A.b,l=Math.min(r,i,a),c=Math.min(255-r,255-i,255-a),d=a-l,h=(u=r-l)+(p=i-l)-(f=Math.min(p,d)),m=p+f,g=2*(d-f),v=Math.max(h,m,g)/Math.max(u,p,d),(n={r:h/(y=isNaN(v)||v===1/0||v<=0?1:v)+c,g:m/y+c,b:g/y+c}).a=A.a}return{r:j(n.r,2),g:j(n.g,2),b:j(n.b,2),a:P(n.a,0,1)}}})[r.HEX]=function(e,t,n){var r=this.mix(e,t);return delete r.a,n?R.HEX(r):Z.HEX(r)},m.HEXA=function(e,t,n){var r=this.mix(e,t);return r.a=n?255*I(r.a):I(r.a),n?R.HEX(r):Z.HEXA(r)},m[r.RGB]=function(e,t,n){var r=this.mix(e,t);return delete r.a,n?R.RGB(r):Z.RGB(r)},m.RGBA=function(e,t,n){var r=this.mix(e,t);return n?R.RGB(r):Z.RGBA(r)},m[r.HSL]=function(e,t,n){var r=this.mix(e,t),i=k(r.r,r.g,r.b);return delete r.a,delete i.a,n?R.HSL(i):Z.HSL(r)},m.HSLA=function(e,t,n){var r=this.mix(e,t),i=k(r.r,r.g,r.b,r.a);return n?R.HSL(i):Z.HSLA(r)},m),ne=function(e,t,n,r,i){var o=r(J(e,t));return n?i(o):o},re=function(e,t,n,r,i,o){n<1&&(n=5);var a=function(e,t,n){var r=n-1,i=(t.r-e.r)/r,o=(t.g-e.g)/r,a=(t.b-e.b)/r,s=I(e.a),l=(I(t.a)-s)/r;return Array(n).fill(null).map((function(n,c){return 0===c?e:c===r?t:{r:j(e.r+i*c),g:j(e.g+o*c),b:j(e.b+a*c),a:j(s+l*c,2)}}))}(J(e),J(t),n);return a.map((function(e){var t=i(e);return r?o(t):t}))},ie=function(){function e(e){this.rgb=J(e),this.updateHSL(),this.updateCMYK()}return e.prototype.updateRGB=function(){this.rgb=s(s({},A(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},e.prototype.updateRGBFromCMYK=function(){this.rgb=s(s({},_(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},e.prototype.updateHSL=function(){this.hsl=k(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},e.prototype.updateCMYK=function(){this.cmyk=C(this.rgb.r,this.rgb.g,this.rgb.b)},e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},e.prototype.setH=function(e){return this.hsl.h=F(e),this.updateRGBAndCMYK()},e.prototype.setS=function(e){return this.hsl.s=P(e,0,100),this.updateRGBAndCMYK()},e.prototype.setL=function(e){return this.hsl.l=P(e,0,100),this.updateRGBAndCMYK()},e.prototype.setR=function(e){return this.rgb.r=P(e,0,255),this.updateHSLAndCMYK()},e.prototype.setG=function(e){return this.rgb.g=P(e,0,255),this.updateHSLAndCMYK()},e.prototype.setB=function(e){return this.rgb.b=P(e,0,255),this.updateHSLAndCMYK()},e.prototype.setA=function(e){return this.hsl.a=this.rgb.a=P(e,0,1),this},e.prototype.setC=function(e){return this.cmyk.c=P(e,0,100),this.updateRGBAndHSL()},e.prototype.setM=function(e){return this.cmyk.m=P(e,0,100),this.updateRGBAndHSL()},e.prototype.setY=function(e){return this.cmyk.y=P(e,0,100),this.updateRGBAndHSL()},e.prototype.setK=function(e){return this.cmyk.k=P(e,0,100),this.updateRGBAndHSL()},Object.defineProperty(e.prototype,"H",{get:function(){return j(this.hsl.h)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"S",{get:function(){return j(this.hsl.s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"L",{get:function(){return j(this.hsl.l)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"R",{get:function(){return j(this.rgb.r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"G",{get:function(){return j(this.rgb.g)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"B",{get:function(){return j(this.rgb.b)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"A",{get:function(){return j(this.hsl.a,2)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"C",{get:function(){return j(this.cmyk.c)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"M",{get:function(){return j(this.cmyk.m)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Y",{get:function(){return j(this.cmyk.y)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"K",{get:function(){return j(this.cmyk.k)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXObject",{get:function(){return Z.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXAObject",{get:function(){return Z.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBAObject",{get:function(){return s(s({},this.RGBObject),{a:this.hsl.a})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLAObject",{get:function(){return s(s({},this.HSLObject),{a:this.hsl.a})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKAObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K,a:this.hsl.a}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEX",{get:function(){var e=this.rgb,t={r:e.r,g:e.g,b:e.b};return R.HEX(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXA",{get:function(){var e=this.rgb,t={r:e.r,g:e.g,b:e.b,a:255*this.hsl.a};return R.HEX(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){var e=this.rgb,t={r:e.r,g:e.g,b:e.b};return R.RGB(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBA",{get:function(){var e=this.rgb,t={r:e.r,g:e.g,b:e.b,a:this.hsl.a};return R.RGB(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSL",{get:function(){var e=this.hsl,t={h:e.h,s:e.s,l:e.l};return R.HSL(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLA",{get:function(){return R.HSL(this.hsl)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYK",{get:function(){return R.CMYK(this.cmyk)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKA",{get:function(){return R.CMYK(s(s({},this.cmyk),{a:this.hsl.a}))},enumerable:!1,configurable:!0}),e.toHEX=function(e,t){void 0===t&&(t=!0);var n=G(e);return ne(e,n,t,Z.HEX,R.HEX)},e.toHEXA=function(e,t){void 0===t&&(t=!0);var n=G(e);return ne(e,n,t,Z.HEXA,R.HEX)},e.toRGB=function(e,t){void 0===t&&(t=!0);var n=G(e);return ne(e,n,t,Z.RGB,R.RGB)},e.toRGBA=function(e,t){void 0===t&&(t=!0);var n=G(e);return ne(e,n,t,Z.RGBA,R.RGB)},e.toHSL=function(e,t){void 0===t&&(t=!0);var n=G(e);return ne(e,n,t,Z.HSL,R.HSL)},e.toHSLA=function(e,t){void 0===t&&(t=!0);var n=G(e);return ne(e,n,t,Z.HSLA,R.HSL)},e.toCMYK=function(e,t){void 0===t&&(t=!0);var n=G(e);return ne(e,n,t,Z.CMYK,R.CMYK)},e.toCMYKA=function(e,t){void 0===t&&(t=!0);var n=G(e);return ne(e,n,t,Z.CMYKA,R.CMYK)},e.getBlendHEX=function(e,t,n,r){return void 0===n&&(n=5),void 0===r&&(r=!0),re(e,t,n,r,Z.HEX,R.HEX)},e.getBlendHEXA=function(e,t,n,r){return void 0===n&&(n=5),void 0===r&&(r=!0),re(e,t,n,r,Z.HEXA,R.HEX)},e.getBlendRGB=function(e,t,n,r){return void 0===n&&(n=5),void 0===r&&(r=!0),re(e,t,n,r,Z.RGB,R.RGB)},e.getBlendRGBA=function(e,t,n,r){return void 0===n&&(n=5),void 0===r&&(r=!0),re(e,t,n,r,Z.RGBA,R.RGB)},e.getBlendHSL=function(e,t,n,r){return void 0===n&&(n=5),void 0===r&&(r=!0),re(e,t,n,r,Z.HSL,R.HSL)},e.getBlendHSLA=function(e,t,n,r){return void 0===n&&(n=5),void 0===r&&(r=!0),re(e,t,n,r,Z.HSLA,R.HSL)},e.getMixHEX=function(e,t,n){return void 0===t&&(t=o.ADDITIVE),void 0===n&&(n=!0),te.HEX(e,t,n)},e.getMixHEXA=function(e,t,n){return void 0===t&&(t=o.ADDITIVE),void 0===n&&(n=!0),te.HEXA(e,t,n)},e.getMixRGB=function(e,t,n){return void 0===t&&(t=o.ADDITIVE),void 0===n&&(n=!0),te.RGB(e,t,n)},e.getMixRGBA=function(e,t,n){return void 0===t&&(t=o.ADDITIVE),void 0===n&&(n=!0),te.RGBA(e,t,n)},e.getMixHSL=function(e,t,n){return void 0===t&&(t=o.ADDITIVE),void 0===n&&(n=!0),te.HSL(e,t,n)},e.getMixHSLA=function(e,t,n){return void 0===t&&(t=o.ADDITIVE),void 0===n&&(n=!0),te.HSLA(e,t,n)},e.getShades=function(e,t){return Q(e,t,!0)},e.getTints=function(e,t){return Q(e,t,!1)},e.getHarmony=function(e,t,n){switch(void 0===t&&(t=i.COMPLEMENTARY),void 0===n&&(n=o.ADDITIVE),t){case i.ANALOGOUS:return ee.buildHarmony(e,$,n);case i.SPLIT_COMPLEMENTARY:return ee.buildHarmony(e,H,n);case i.TRIADIC:return ee.buildHarmony(e,W,n);case i.TETRADIC:return ee.buildHarmony(e,U,n);case i.SQUARE:return ee.buildHarmony(e,V,n);default:return ee.buildHarmony(e,q,n)}},e}()},7481:(e,t,n)=>{"use strict";n.d(t,{iV:()=>wt,ZP:()=>At});var r=n(70821);const i=["start","end"],o=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+i[0],t+"-"+i[1])),[]),a=Math.min,s=Math.max,l=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),c={start:"end",end:"start"};function u(e,t,n){return s(e,a(t,n))}function p(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(d(e))?"y":"x"}function v(e){return h(g(e))}function y(e,t,n){void 0===n&&(n=!1);const r=f(e),i=v(e),o=m(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=x(a)),[a,x(a)]}function b(e){return e.replace(/start|end/g,(e=>c[e]))}function x(e){return e.replace(/left|right|bottom|top/g,(e=>l[e]))}function w(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function _(e,t,n){let{reference:r,floating:i}=e;const o=g(t),a=v(t),s=m(a),l=d(t),c="y"===o,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let y;switch(l){case"top":y={x:u,y:r.y-i.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-i.width,y:p};break;default:y={x:r.x,y:r.y}}switch(f(t)){case"start":y[a]-=h*(n&&c?-1:1);break;case"end":y[a]+=h*(n&&c?-1:1)}return y}async function C(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=p(t,e),m=w(h),g=s[f?"floating"===d?"reference":"floating":d],v=A(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{...a.floating,x:r,y:i}:a.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},_=A(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-_.top+m.top)/x.y,bottom:(_.bottom-v.bottom+m.bottom)/x.y,left:(v.left-_.left+m.left)/x.x,right:(_.right-v.right+m.right)/x.x}}const k=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:s,placement:l,platform:c,elements:u}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:g=o,autoAlignment:v=!0,...x}=p(e,t),w=void 0!==m||g===o?function(e,t,n){return(e?[...n.filter((t=>f(t)===e)),...n.filter((t=>f(t)!==e))]:n.filter((e=>d(e)===e))).filter((n=>!e||f(n)===e||!!t&&b(n)!==n))}(m||null,v,g):g,A=await C(t,x),_=(null==(n=s.autoPlacement)?void 0:n.index)||0,k=w[_];if(null==k)return{};const S=y(k,a,await(null==c.isRTL?void 0:c.isRTL(u.floating)));if(l!==k)return{reset:{placement:w[0]}};const E=[A[d(k)],A[S[0]],A[S[1]]],T=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:k,overflows:E}],O=w[_+1];if(O)return{data:{index:_+1,overflows:T},reset:{placement:O}};const M=T.map((e=>{const t=f(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),L=M.filter((e=>e[2].slice(0,f(e[0])?2:3).every((e=>e<=0)))),B=(null==(i=L[0])?void 0:i[0])||M[0][0];return B!==l?{data:{index:_+1,overflows:T},reset:{placement:B}}:{}}}},S=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...A}=p(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const _=d(i),k=d(s)===s,S=await(null==l.isRTL?void 0:l.isRTL(c.floating)),E=m||(k||!w?[x(s)]:function(e){const t=x(e);return[b(e),t,b(t)]}(s));m||"none"===v||E.push(...function(e,t,n,r){const i=f(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(d(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(b)))),o}(s,w,v,S));const T=[s,...E],O=await C(t,A),M=[];let L=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&M.push(O[_]),h){const e=y(i,a,S);M.push(O[e[0]],O[e[1]])}if(L=[...L,{placement:i,overflows:M}],!M.every((e=>e<=0))){var B,D;const e=((null==(B=o.flip)?void 0:B.index)||0)+1,t=T[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(D=L.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:D.placement;if(!n)switch(g){case"bestFit":{var N;const e=null==(N=L.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}};const E=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=d(n),s=f(n),l="y"===g(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,h=p(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&"number"==typeof y&&(v="end"===s?-1*y:y),l?{x:v*u,y:m*c}:{x:m*c,y:v*u}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function T(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){return T(e).getComputedStyle(e)}const M=Math.min,L=Math.max,B=Math.round;function D(e){const t=O(e);let n=parseFloat(t.width),r=parseFloat(t.height);const i=e.offsetWidth,o=e.offsetHeight,a=B(n)!==i||B(r)!==o;return a&&(n=i,r=o),{width:n,height:r,fallback:a}}function N(e){return I(e)?(e.nodeName||"").toLowerCase():""}let j;function P(){if(j)return j;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(j=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),j):navigator.userAgent}function R(e){return e instanceof T(e).HTMLElement}function F(e){return e instanceof T(e).Element}function I(e){return e instanceof T(e).Node}function z(e){return"undefined"!=typeof ShadowRoot&&(e instanceof T(e).ShadowRoot||e instanceof ShadowRoot)}function $(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=O(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function q(e){return["table","td","th"].includes(N(e))}function H(e){const t=/firefox/i.test(P()),n=O(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function W(){return!/^((?!chrome|android).)*safari/i.test(P())}function U(e){return["html","body","#document"].includes(N(e))}function V(e){return F(e)?e:e.contextElement}const K={x:1,y:1};function G(e){const t=V(e);if(!R(t))return K;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:o}=D(t);let a=(o?B(n.width):n.width)/r,s=(o?B(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function Y(e,t,n,r){var i,o;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),s=V(e);let l=K;t&&(r?F(r)&&(l=G(r)):l=G(e));const c=s?T(s):window,u=!W()&&n;let p=(a.left+(u&&(null==(i=c.visualViewport)?void 0:i.offsetLeft)||0))/l.x,d=(a.top+(u&&(null==(o=c.visualViewport)?void 0:o.offsetTop)||0))/l.y,f=a.width/l.x,h=a.height/l.y;if(s){const e=T(s),t=r&&F(r)?T(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=G(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,p*=e.x,d*=e.y,f*=e.x,h*=e.y,p+=t.x,d+=t.y,n=T(n).frameElement}}return{width:f,height:h,top:d,right:p+f,bottom:d+h,left:p,x:p,y:d}}function X(e){return((I(e)?e.ownerDocument:e.document)||window.document).documentElement}function J(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z(e){return Y(X(e)).left+J(e).scrollLeft}function Q(e){if("html"===N(e))return e;const t=e.assignedSlot||e.parentNode||z(e)&&e.host||X(e);return z(t)?t.host:t}function ee(e){const t=Q(e);return U(t)?t.ownerDocument.body:R(t)&&$(t)?t:ee(t)}function te(e,t){var n;void 0===t&&(t=[]);const r=ee(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=T(r);return i?t.concat(o,o.visualViewport||[],$(r)?r:[]):t.concat(r,te(r))}function ne(e,t,n){return"viewport"===t?A(function(e,t){const n=T(e),r=X(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=W();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):F(t)?A(function(e,t){const n=Y(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=R(e)?G(e):{x:1,y:1};return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n)):A(function(e){const t=X(e),n=J(e),r=e.ownerDocument.body,i=L(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=L(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Z(e);const s=-n.scrollTop;return"rtl"===O(r).direction&&(a+=L(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(X(e)))}function re(e){return R(e)&&"fixed"!==O(e).position?e.offsetParent:null}function ie(e){const t=T(e);let n=re(e);for(;n&&q(n)&&"static"===O(n).position;)n=re(n);return n&&("html"===N(n)||"body"===N(n)&&"static"===O(n).position&&!H(n))?t:n||function(e){let t=Q(e);for(;R(t)&&!U(t);){if(H(t))return t;t=Q(t)}return null}(e)||t}function oe(e,t,n){const r=R(t),i=X(t),o=Y(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==N(t)||$(i))&&(a=J(t)),R(t)){const e=Y(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Z(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}const ae={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=te(e).filter((e=>F(e)&&"body"!==N(e))),i=null;const o="fixed"===O(e).position;let a=o?Q(e):e;for(;F(a)&&!U(a);){const e=O(a),t=H(a);(o?t||i:t||"static"!==e.position||!i||!["absolute","fixed"].includes(i.position))?i=e:r=r.filter((e=>e!==a)),a=Q(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...o,r],s=a[0],l=a.reduce(((e,n)=>{const r=ne(t,n,i);return e.top=L(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=L(r.left,e.left),e}),ne(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=R(n),o=X(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==N(n)||$(o))&&(a=J(n)),R(n))){const e=Y(n);s=G(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:F,getDimensions:function(e){return R(e)?D(e):e.getBoundingClientRect()},getOffsetParent:ie,getDocumentElement:X,getScale:G,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||ie,o=this.getDimensions;return{reference:oe(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===O(e).direction};const se=(e,t,n)=>{const r=new Map,i={platform:ae,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=_(c,r,l),d=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:u,y:p,initialPlacement:r,placement:d,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,p=null!=v?v:p,f={...f,[o]:{...f[o],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:u,y:p}=_(c,d,l))),n=-1)}return{x:u,y:p,placement:d,strategy:i,middlewareData:f}})(e,t,{...i,platform:o})};function le(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&("object"==typeof t[n]&&e[n]?le(e[n],t[n]):e[n]=t[n])}const ce={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function ue(e,t){let n,r=ce.themes[e]||{};do{n=r[t],typeof n>"u"?r.$extend?r=ce.themes[r.$extend]||{}:(r=null,n=ce[t]):r=null}while(r);return n}function pe(e){const t=[e];let n=ce.themes[e]||{};do{n.$extend?(t.push(n.$extend),n=ce.themes[n.$extend]||{}):n=null}while(n);return t}let de=!1;if(typeof window<"u"){de=!1;try{const e=Object.defineProperty({},"passive",{get(){de=!0}});window.addEventListener("test",null,e)}catch{}}let fe=!1;typeof window<"u"&&typeof navigator<"u"&&(fe=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const he=["auto","top","bottom","left","right"].reduce(((e,t)=>e.concat([t,`${t}-start`,`${t}-end`])),[]),me={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},ge={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function ve(e,t){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}function ye(){return new Promise((e=>requestAnimationFrame((()=>{requestAnimationFrame(e)}))))}const be=[];let xe=null;const we={};function Ae(e){let t=we[e];return t||(t=we[e]=[]),t}let _e=function(){};function Ce(e){return function(t){return ue(t.theme,e)}}typeof window<"u"&&(_e=window.Element);const ke="__floating-vue__popper",Se=()=>(0,r.defineComponent)({name:"VPopper",provide(){return{[ke]:{parentPopper:this}}},inject:{[ke]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Ce("disabled")},positioningDisabled:{type:Boolean,default:Ce("positioningDisabled")},placement:{type:String,default:Ce("placement"),validator:e=>he.includes(e)},delay:{type:[String,Number,Object],default:Ce("delay")},distance:{type:[Number,String],default:Ce("distance")},skidding:{type:[Number,String],default:Ce("skidding")},triggers:{type:Array,default:Ce("triggers")},showTriggers:{type:[Array,Function],default:Ce("showTriggers")},hideTriggers:{type:[Array,Function],default:Ce("hideTriggers")},popperTriggers:{type:Array,default:Ce("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Ce("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Ce("popperHideTriggers")},container:{type:[String,Object,_e,Boolean],default:Ce("container")},boundary:{type:[String,_e],default:Ce("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Ce("strategy")},autoHide:{type:[Boolean,Function],default:Ce("autoHide")},handleResize:{type:Boolean,default:Ce("handleResize")},instantMove:{type:Boolean,default:Ce("instantMove")},eagerMount:{type:Boolean,default:Ce("eagerMount")},popperClass:{type:[String,Array,Object],default:Ce("popperClass")},computeTransformOrigin:{type:Boolean,default:Ce("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Ce("autoMinSize")},autoSize:{type:[Boolean,String],default:Ce("autoSize")},autoMaxSize:{type:Boolean,default:Ce("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Ce("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Ce("preventOverflow")},overflowPadding:{type:[Number,String],default:Ce("overflowPadding")},arrowPadding:{type:[Number,String],default:Ce("arrowPadding")},arrowOverflow:{type:Boolean,default:Ce("arrowOverflow")},flip:{type:Boolean,default:Ce("flip")},shift:{type:Boolean,default:Ce("shift")},shiftCrossAxis:{type:Boolean,default:Ce("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Ce("noAutoFocus")},disposeTimeout:{type:Number,default:Ce("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return null!=this.ariaId?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:"function"==typeof this.autoHide?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return null==(e=this[ke])?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return(null==(e=this.popperTriggers)?void 0:e.includes("hover"))||(null==(t=this.popperShowTriggers)?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce(((e,t)=>(e[t]="$_refreshListeners",e)),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce(((e,t)=>(e[t]="$_computePosition",e)),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map((e=>e.toString(36).substring(2,10))).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r,i;null!=(r=this.parentPopper)&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&((null==(i=this.parentPopper)?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame((()=>{this.$_showFrameLocked=!1}))),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0)return void(this.$_pendingHide=!0);if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper())return void(this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout((()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)}),1e3)));(null==(n=this.parentPopper)?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(null==(e=this.referenceNode)?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter((e=>e.nodeType===e.ELEMENT_NODE)),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(E({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(k({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push((void 0===(n={padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=p(n,e),c={x:t,y:r},f=await C(e,l),m=g(d(i)),v=h(m);let y=c[v],b=c[m];if(o){const e="y"===v?"bottom":"right";y=u(y+f["y"===v?"top":"left"],y,y-f[e])}if(a){const e="y"===m?"bottom":"right";b=u(b+f["y"===m?"top":"left"],b,b-f[e])}const x=s.fn({...e,[v]:y,[m]:b});return{...x,data:{x:x.x-t,y:x.y-r}}}})),!t&&this.flip&&e.middleware.push(S({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:c}=t,{element:d,padding:h=0}=p(e,t)||{};if(null==d)return{};const g=w(h),y={x:n,y:r},b=v(i),x=m(b),A=await s.getDimensions(d),_="y"===b,C=_?"top":"left",k=_?"bottom":"right",S=_?"clientHeight":"clientWidth",E=o.reference[x]+o.reference[b]-y[b]-o.floating[x],T=y[b]-o.reference[b],O=await(null==s.getOffsetParent?void 0:s.getOffsetParent(d));let M=O?O[S]:0;M&&await(null==s.isElement?void 0:s.isElement(O))||(M=l.floating[S]||o.floating[x]);const L=E/2-T/2,B=M/2-A[x]/2-1,D=a(g[C],B),N=a(g[k],B),j=D,P=M-A[x]-N,R=M/2-A[x]/2+L,F=u(j,R,P),I=!c.arrow&&null!=f(i)&&R!=F&&o.reference[x]/2-(R<j?D:N)-A[x]/2<0,z=I?R<j?R-j:R-P:0;return{[b]:y[b]+z,data:{[b]:F,centerOffset:R-F-z,...I&&{alignmentOffset:z}},reset:I}}}))({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:e,rects:t,middlewareData:n})=>{let r;const{centerOffset:i}=n.arrow;return r=e.startsWith("top")||e.startsWith("bottom")?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const t=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:e,placement:n,middlewareData:r})=>{var i;if(null!=(i=r.autoSize)&&i.skip)return{};let o,a;return n.startsWith("top")||n.startsWith("bottom")?o=e.reference.width:a=e.reference.height,this.$_innerNode.style["min"===t?"minWidth":"max"===t?"maxWidth":"width"]=null!=o?`${o}px`:null,this.$_innerNode.style["min"===t?"minHeight":"max"===t?"maxHeight":"height"]=null!=a?`${a}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}var n;(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:l=(()=>{}),...c}=p(e,t),u=await C(t,c),h=d(n),m=f(n),v="y"===g(n),{width:y,height:b}=r.floating;let x,w;"top"===h||"bottom"===h?(x=h,w=m===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(w=h,x="end"===m?"top":"bottom");const A=b-u[x],_=y-u[w],k=!t.middlewareData.shift;let S=A,E=_;if(v){const e=y-u.left-u.right;E=m||k?a(_,e):e}else{const e=b-u.top-u.bottom;S=m||k?a(A,e):e}if(k&&!m){const e=s(u.left,0),t=s(u.right,0),n=s(u.top,0),r=s(u.bottom,0);v?E=y-2*(0!==e||0!==t?e+t:s(u.left,u.right)):S=b-2*(0!==n||0!==r?n+r:s(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:S});const T=await i.getDimensions(o.floating);return y!==T.width||b!==T.height?{reset:{rects:!0}}:{}}}}({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=null!=e?`${e}px`:null,this.$_innerNode.style.maxHeight=null!=t?`${t}px`:null}})));const r=await se(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),xe&&this.instantMove&&xe.instantMove&&xe!==this.parentPopper)return xe.$_applyHide(!0),void this.$_applyShow(!0);t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){this.shownChildren.size>0?this.$_pendingHide=!0:(this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(xe=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide")))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await ye(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...te(this.$_referenceNode),...te(this.$_popperNode)],"scroll",(()=>{this.$_computePosition()})))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(".v-popper__wrapper"),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<be.length;n++)t=be[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}be.push(this),document.body.classList.add("v-popper--some-open");for(const e of pe(this.theme))Ae(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await ye(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0)return this.$_pendingHide=!0,void(this.$_hideInProgress=!1);if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,ve(be,this),0===be.length&&document.body.classList.remove("v-popper--some-open");for(const e of pe(this.theme)){const t=Ae(e);ve(t,this),0===t.length&&document.body.classList.remove(`v-popper--some-open--${e}`)}xe===this&&(xe=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;null!==t&&(this.$_disposeTimer=setTimeout((()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)}),t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ye(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if("string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,me,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],me,this.popperTriggers,this.popperShowTriggers,e);const t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,ge,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ge,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach((e=>e.addEventListener(t,n,de?{passive:!0}:void 0)))},$_registerTriggerListeners(e,t,n,r,i){let o=n;null!=r&&(o="function"==typeof r?r(o):r),o.forEach((n=>{const r=t[n];r&&this.$_registerEventListeners(e,r,i)}))},$_removeEventListeners(e){const t=[];this.$_events.forEach((n=>{const{targetNodes:r,eventType:i,handler:o}=n;e&&e!==i?t.push(n):r.forEach((e=>e.removeEventListener(i,o)))})),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout((()=>{this.$_preventShow=!1}),300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const r=e[n];null==r?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(De>=e.left&&De<=e.right&&Ne>=e.top&&Ne<=e.bottom){const e=this.$_popperNode.getBoundingClientRect(),t=De-Le,n=Ne-Be,r=e.left+e.width/2-Le+(e.top+e.height/2)-Be+e.width+e.height,i=Le+t*r,o=Be+n*r;return je(Le,Be,i,o,e.left,e.top,e.left,e.bottom)||je(Le,Be,i,o,e.left,e.top,e.right,e.top)||je(Le,Be,i,o,e.right,e.top,e.right,e.bottom)||je(Le,Be,i,o,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});function Ee(e){for(let t=0;t<be.length;t++){const n=be[t];try{const t=n.popperNode();n.$_mouseDownContains=t.contains(e.target)}catch{}}}function Te(e,t=!1){const n={};for(let r=be.length-1;r>=0;r--){const i=be[r];try{const r=i.$_containsGlobalTarget=Oe(i,e);i.$_pendingHide=!1,requestAnimationFrame((()=>{if(i.$_pendingHide=!1,!n[i.randomId]&&Me(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let o=i.parentPopper;for(;o&&Me(o,o.$_containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}}))}catch{}}}function Oe(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function Me(e,t,n){return n.closeAllPopover||n.closePopover&&t||function(e,t){if("function"==typeof e.autoHide){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}(e,n)&&!t}typeof document<"u"&&typeof window<"u"&&(fe?(document.addEventListener("touchstart",Ee,!de||{passive:!0,capture:!0}),document.addEventListener("touchend",(function(e){Te(e,!0)}),!de||{passive:!0,capture:!0})):(window.addEventListener("mousedown",Ee,!0),window.addEventListener("click",(function(e){Te(e)}),!0)),window.addEventListener("resize",(function(e){for(let t=0;t<be.length;t++)be[t].$_computePosition(e)})));let Le=0,Be=0,De=0,Ne=0;function je(e,t,n,r,i,o,a,s){const l=((a-i)*(t-o)-(s-o)*(e-i))/((s-o)*(n-e)-(a-i)*(r-t)),c=((n-e)*(t-o)-(r-t)*(e-i))/((s-o)*(n-e)-(a-i)*(r-t));return l>=0&&l<=1&&c>=0&&c<=1}typeof window<"u"&&window.addEventListener("mousemove",(e=>{Le=De,Be=Ne,De=e.clientX,Ne=e.clientY}),de?{passive:!0}:void 0);const Pe=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const Re=Pe({extends:Se()},[["render",function(e,t,n,i,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"reference",class:(0,r.normalizeClass)(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)(e.slotData)))],2)}]]);let Fe;function Ie(){Ie.init||(Ie.init=!0,Fe=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}var ze={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ie(),(0,r.nextTick)((()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()}));const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Fe&&this.$el.appendChild(e),e.data="about:blank",Fe||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Fe&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const $e=(0,r.withScopeId)("data-v-b329ee4c");(0,r.pushScopeId)("data-v-b329ee4c");const qe={class:"resize-observer",tabindex:"-1"};(0,r.popScopeId)();const He=$e(((e,t,n,i,o,a)=>((0,r.openBlock)(),(0,r.createBlock)("div",qe))));ze.render=He,ze.__scopeId="data-v-b329ee4c",ze.__file="src/components/ResizeObserver.vue";const We=(e="theme")=>({computed:{themeClass(){return function(e){const t=[e];let n=ce.themes[e]||{};do{n.$extend&&!n.$resetCss?(t.push(n.$extend),n=ce.themes[n.$extend]||{}):n=null}while(n);return t.map((e=>`v-popper--theme-${e}`))}(this[e])}}}),Ue=(0,r.defineComponent)({name:"VPopperContent",components:{ResizeObserver:ze},mixins:[We()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx:e=>null==e||isNaN(e)?null:`${e}px`}}),Ve=["id","aria-hidden","tabindex","data-popper-placement"],Ke={ref:"inner",class:"v-popper__inner"},Ge=[(0,r.createElementVNode)("div",{class:"v-popper__arrow-outer"},null,-1),(0,r.createElementVNode)("div",{class:"v-popper__arrow-inner"},null,-1)];const Ye=Pe(Ue,[["render",function(e,t,n,i,o,a){const s=(0,r.resolveComponent)("ResizeObserver");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{id:e.popperId,ref:"popover",class:(0,r.normalizeClass)(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:(0,r.normalizeStyle)(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=(0,r.withKeys)((t=>e.autoHide&&e.$emit("hide")),["esc"]))},[(0,r.createElementVNode)("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=t=>e.autoHide&&e.$emit("hide"))}),(0,r.createElementVNode)("div",{class:"v-popper__wrapper",style:(0,r.normalizeStyle)(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[(0,r.createElementVNode)("div",Ke,[e.mounted?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",null,[(0,r.renderSlot)(e.$slots,"default")]),e.handleResize?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,onNotify:t[1]||(t[1]=t=>e.$emit("resize",t))})):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0)],512),(0,r.createElementVNode)("div",{ref:"arrow",class:"v-popper__arrow-container",style:(0,r.normalizeStyle)(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Ge,4)],4)],46,Ve)}]]),Xe={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const Je=Pe((0,r.defineComponent)({name:"VPopperWrapper",components:{Popper:Re,PopperContent:Ye},mixins:[Xe,We("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter((e=>e!==this.$refs.popperContent.$el))}}}),[["render",function(e,t,n,i,o,a){const s=(0,r.resolveComponent)("PopperContent"),l=(0,r.resolveComponent)("Popper");return(0,r.openBlock)(),(0,r.createBlock)(l,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:(0,r.normalizeClass)([e.themeClass])},{default:(0,r.withCtx)((({popperId:t,isShown:n,shouldMountContent:i,skipTransition:o,autoHide:a,show:l,hide:c,handleResize:u,onResize:p,classes:d,result:f})=>[(0,r.renderSlot)(e.$slots,"default",{shown:n,show:l,hide:c}),(0,r.createVNode)(s,{ref:"popperContent","popper-id":t,theme:e.finalTheme,shown:n,mounted:i,"skip-transition":o,"auto-hide":a,"handle-resize":u,classes:d,result:f,onHide:c,onResize:p},{default:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,"popper",{shown:n,hide:c})])),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])])),_:3},8,["theme","target-nodes","popper-node","class"])}]]),Ze={...Je,name:"VDropdown",vPopperTheme:"dropdown"},Qe={...Je,name:"VMenu",vPopperTheme:"menu"},et={...Je,name:"VTooltip",vPopperTheme:"tooltip"},tt=(0,r.defineComponent)({name:"VTooltipDirective",components:{Popper:Se(),PopperContent:Ye},mixins:[Xe],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ue(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ue(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data:()=>({asyncContent:null}),computed:{isContentAsync(){return"function"==typeof this.content},loading(){return this.isContentAsync&&null==this.asyncContent},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if("function"==typeof this.content&&this.$_isShown&&(e||!this.$_loading&&null==this.asyncContent)){this.asyncContent=null,this.$_loading=!0;const e=++this.$_fetchId,t=this.content(this);t.then?t.then((t=>this.onResult(e,t))):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),nt=["innerHTML"],rt=["textContent"];const it=Pe(tt,[["render",function(e,t,n,i,o,a){const s=(0,r.resolveComponent)("PopperContent"),l=(0,r.resolveComponent)("Popper");return(0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:(0,r.withCtx)((({popperId:t,isShown:n,shouldMountContent:i,skipTransition:o,autoHide:a,hide:l,handleResize:c,onResize:u,classes:p,result:d})=>[(0,r.createVNode)(s,{ref:"popperContent",class:(0,r.normalizeClass)({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:i,"skip-transition":o,"auto-hide":a,"handle-resize":c,classes:p,result:d,onHide:l,onResize:u},{default:(0,r.withCtx)((()=>[e.html?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,innerHTML:e.finalContent},null,8,nt)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,textContent:(0,r.toDisplayString)(e.finalContent)},null,8,rt))])),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])])),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}]]),ot="v-popper--has-tooltip";function at(e,t,n){let r;const i=typeof t;return r="string"===i?{content:t}:t&&"object"===i?t:{content:!1},r.placement=function(e,t){let n=e.placement;if(!n&&t)for(const e of he)t[e]&&(n=e);return n||(n=ue(e.theme||"tooltip","placement")),n}(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let st,lt,ct=0;function ut(e,t,n){!function(){if(st)return;lt=(0,r.ref)([]),st=(0,r.createApp)({name:"VTooltipDirectiveApp",setup:()=>({directives:lt}),render(){return this.directives.map((e=>(0,r.h)(it,{...e.options,shown:e.shown||e.options.shown,key:e.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),st.mount(e)}();const i=(0,r.ref)(at(e,t,n)),o=(0,r.ref)(!1),a={id:ct++,options:i,shown:o};return lt.value.push(a),e.classList&&e.classList.add(ot),e.$_popper={options:i,item:a,show(){o.value=!0},hide(){o.value=!1}}}function pt(e){if(e.$_popper){const t=lt.value.indexOf(e.$_popper.item);-1!==t&&lt.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(ot)}function dt(e,{value:t,modifiers:n}){const r=at(e,t,n);if(!r.content||ue(r.theme||"tooltip","disabled"))pt(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=ut(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}const ft={beforeMount:dt,updated:dt,beforeUnmount(e){pt(e)}};function ht(e){e.addEventListener("click",gt),e.addEventListener("touchstart",vt,!!de&&{passive:!0})}function mt(e){e.removeEventListener("click",gt),e.removeEventListener("touchstart",vt),e.removeEventListener("touchend",yt),e.removeEventListener("touchcancel",bt)}function gt(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function vt(e){if(1===e.changedTouches.length){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",yt),t.addEventListener("touchcancel",bt)}}function yt(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){const n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function bt(e){e.currentTarget.$_vclosepopover_touch=!1}const xt={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&ht(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?ht(e):mt(e))},beforeUnmount(e){mt(e)}},wt=Je;const At={version:"2.0.0-beta.24",install:function(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,le(ce,t),e.directive("tooltip",ft),e.directive("close-popper",xt),e.component("VTooltip",et),e.component("VDropdown",Ze),e.component("VMenu",Qe))},options:ce}},42674:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});for(var r=36,i="";r--;)i+=r.toString(36);function o(e){for(var t="",n=e||11;n--;)t+=i[36*Math.random()|0];return t}},88593:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}}]);
//# sourceMappingURL=vendor.js.map