diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..53b0a96 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +wproperty.webart.work diff --git a/assets/default.png b/assets/default.png new file mode 100644 index 0000000..f738295 Binary files /dev/null and b/assets/default.png differ diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..47bb5e2 Binary files /dev/null and b/assets/favicon.ico differ diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..f738295 Binary files /dev/null and b/assets/logo.png differ diff --git a/chunk-2KAWLRLZ.js b/chunk-2KAWLRLZ.js new file mode 100644 index 0000000..17a2fc1 --- /dev/null +++ b/chunk-2KAWLRLZ.js @@ -0,0 +1 @@ +import{e as I}from"./chunk-EBFT2EPY.js";import{$a as l,I as a,L as u,M as y,R as _,Ua as v,X as k,cb as S,db as g,eb as C,f as p,gb as m,i as n,lb as b,r as d,s as w,sb as P,u as c,ub as j}from"./chunk-5J222IEH.js";var M={formId:"propertyworker",title:"Propertyworker",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill propertyworker title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill propertyworker description"},{name:"Label",value:"Description"}]}]};var F=(()=>{class r extends S{constructor(o,e,t,s){super({name:"propertyworker"},o,e,t,s)}static{this.\u0275fac=function(e){return new(e||r)(c(C),c(g),c(m),c(l))}}static{this.\u0275prov=d({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(o,e,t,s,h){this._translate=o,this._propertyworkerService=e,this._alert=t,this._form=s,this._core=h,this.columns=["name","description"],this.form=this._form.getForm("propertyworker",M),this.config={paginate:this.setRows.bind(this),perPage:20,setPerPage:this._propertyworkerService.setPerPage.bind(this._propertyworkerService),allDocs:!1,create:()=>{this._form.modal(this.form,{label:"Create",click:(i,f)=>p(this,null,function*(){f(),this._preCreate(i),yield n(this._propertyworkerService.create(i)),this.setRows()})})},update:i=>{this._form.modal(this.form,[],i).then(f=>{this._core.copy(f,i),this._propertyworkerService.update(i)})},delete:i=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this propertyworker?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>p(this,null,function*(){yield n(this._propertyworkerService.delete(i)),this.setRows()})}]})},buttons:[{icon:"cloud_download",click:i=>{this._form.modalUnique("propertyworker","url",i)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.rows=[],this._page=1,this.setRows()}setRows(o=this._page){this._page=o,this._core.afterWhile(this,()=>{this._propertyworkerService.get({page:o}).subscribe(e=>{this.rows.splice(0,this.rows.length),this.rows.push(...e)})},250)}_bulkManagement(o=!0){return()=>{this._form.modalDocs(o?[]:this.rows).then(e=>p(this,null,function*(){if(o)for(let t of e)this._preCreate(t),yield n(this._propertyworkerService.create(t));else{for(let t of this.rows)e.find(s=>s._id===t._id)||(yield n(this._propertyworkerService.delete(t)));for(let t of e){let s=this.rows.find(h=>h._id===t._id);s?(this._core.copy(t,s),yield n(this._propertyworkerService.update(s))):(this._preCreate(t),yield n(this._propertyworkerService.create(t)))}}this.setRows()}))}}_preCreate(o){delete o.__created}static{this.\u0275fac=function(e){return new(e||r)(a(b),a(F),a(m),a(j),a(l))}}static{this.\u0275cmp=u({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Propertiesworkers",3,"columns","config","rows"]],template:function(e,t){e&1&&k(0,"wtable",0),e&2&&_("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[P],encapsulation:2})}}return r})();var A=[{path:"",component:R}],J=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=y({type:r})}static{this.\u0275inj=w({imports:[v.forChild(A),I]})}}return r})();export{J as PropertiesworkersModule}; diff --git a/chunk-42XHXMET.js b/chunk-42XHXMET.js new file mode 100644 index 0000000..ac01511 --- /dev/null +++ b/chunk-42XHXMET.js @@ -0,0 +1 @@ +import{e as U}from"./chunk-EBFT2EPY.js";import{$ as I,H as v,I as c,L as b,M as k,P as y,R as T,Ua as V,V as f,W as u,X as w,Xa as W,Ya as j,Za as N,_ as x,aa as M,gb as P,ia as C,ka as S,la as F,lb as D,ma as A,na as L,rb as E,s as g,sb as z,tb as B,ub as R,x as d,y as _}from"./chunk-5J222IEH.js";function Y(s,h){if(s&1&&C(0),s&2){let o=h.$implicit;S(" ",o.components==null?null:o.components.length," ")}}function G(s,h){if(s&1){let o=x();f(0,"label",3)(1,"input",4),I("ngModelChange",function(){let m=d(o).$implicit,l=M();return _(l.changeStatus(m))}),L("ngModelChange",function(m){let l=d(o).$implicit;return A(l.active,m)||(l.active=m),_(m)}),u(),w(2,"span",5),f(3,"span",6),C(4,"Active"),u()()}if(s&2){let o=h.$implicit;v(),F("ngModel",o.active)}}var $=(()=>{class s{get rows(){return this._cfs.customforms}constructor(o,n,m,l){this._translate=o,this._cfs=n,this._alert=m,this._form=l,this.columns=["formId","components","active"],this.form=this._form.getForm("form",{formId:"form",title:"Custom form",components:[{name:"Text",key:"title",focused:!0,fields:[{name:"Placeholder",value:"fill title"},{name:"Label",value:"Title"}]},{name:"Select",key:"formId",fields:[{name:"Placeholder",value:"Select form id"},{name:"Label",value:"Form ID"},{name:"Items",value:this._form.formIds}]}]}),this.components=[],this.formComponents=this._form.getForm("formComponents",{formId:"formComponents",title:"Custom components",components:[{components:this.components},{name:"Select",key:"addComponent",fields:[{name:"Placeholder",value:"Select form componnet"},{name:"Label",value:"Form Component"},{name:"Value",value:"name",skipTranslation:!0},{name:"Items",value:this._form.getTemplateComponentsNames()}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(t,i)=>{this._cfs.create(t,{callback:i.bind(this)})}}).then(this._cfs.create.bind(this))},update:t=>{this._form.modal(this.form,{label:"Update",click:(i,p)=>{this._cfs.update(i,{callback:p.bind(this)})}},t).then(this._cfs.update.bind(this))},delete:t=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this user?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._cfs.delete(t)}}]})},buttons:[{icon:"text_fields",click:t=>{console.log(this.formComponents),this.components.splice(0,this.components.length);let i={addComponent:"Text"};t.components=t.components||[];for(let e=t.components.length-1;e>=0;e--){let a=this._form.getTemplateFields(t.components[e].name);t.components[e].fields=t.components[e].fields.filter(r=>a.includes(r.name));for(let r of a)t.components[e].fields.find(q=>q.name===r)||t.components[e].fields.push({value:"",name:r});i["key"+e]=t.components[e].key;for(let r of t.components[e].fields)i[r.name+e]=r.value}let p=e=>{this.components.splice(e,1),t.components.splice(e,1),this._cfs.updateAfterWhile(t)};(t.components||[]).forEach(e=>{this.components.push(this._addCustomComponent(e.name,this.components.length,p))}),this._form.modal(this.formComponents,{label:"Add component",click:()=>{let e=i.addComponent;this.components.push(this._addCustomComponent(e,this.components.length,p)),t.components.push({name:i.addComponent,fields:this._form.getTemplateFields(e).map(a=>({value:"",name:a}))})}},i,()=>{},{size:"big"}).then(()=>{for(let e=0;e({name:this._form.getCustomTemplateFields(o)[i]||"Text",key:i+n,fields:[{name:"Placeholder",value:"fill "+i},{name:"Label",value:i.charAt(0).toUpperCase()+i.slice(1,i.length)}]}));return{class:"d-f mt10",components:[{name:"Text",key:"key"+n,fields:[{name:"Placeholder",value:"fill key"},{name:"Label",value:"Key"}]},...l,{name:"Button",fields:[{name:"Label",value:"Remove"},{name:"Click",value:()=>{m(n)}}]}]}}changeStatus(o){setTimeout(()=>{if(o.active)for(let n of this._cfs.customforms)n._id===o._id||n.formId!==o.formId||n.active&&(n.active=!1,this._cfs.updateAfterWhile(n));this._cfs.updateAfterWhile(o)})}static{this.\u0275fac=function(n){return new(n||s)(c(D),c(B),c(P),c(R))}}static{this.\u0275cmp=b({type:s,selectors:[["ng-component"]],standalone:!1,decls:3,vars:3,consts:[["title","Forms Customization",3,"columns","config","rows"],["cell","components"],["cell","active"],[1,"container-box"],["type","checkbox",1,"w-input__checkbox",3,"ngModelChange","ngModel"],[1,"checkmark"],[1,"checkmark-text"]],template:function(n,m){n&1&&(f(0,"wtable",0),y(1,Y,1,1,"ng-template",1)(2,G,5,1,"ng-template",2),u()),n&2&&T("columns",m.columns)("config",m.config)("rows",m.rows)},dependencies:[W,j,N,z,E],encapsulation:2})}}return s})();var H=[{path:"",component:$}],me=(()=>{class s{static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275mod=k({type:s})}static{this.\u0275inj=g({imports:[V.forChild(H),U]})}}return s})();export{me as CustomformsModule}; diff --git a/chunk-5J222IEH.js b/chunk-5J222IEH.js new file mode 100644 index 0000000..9596f2e --- /dev/null +++ b/chunk-5J222IEH.js @@ -0,0 +1,8 @@ +var B0=Object.create;var Jo=Object.defineProperty,U0=Object.defineProperties,$0=Object.getOwnPropertyDescriptor,H0=Object.getOwnPropertyDescriptors,z0=Object.getOwnPropertyNames,Ko=Object.getOwnPropertySymbols,q0=Object.getPrototypeOf,Kc=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable;var Eh=(t,n,e)=>n in t?Jo(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,C=(t,n)=>{for(var e in n||={})Kc.call(n,e)&&Eh(t,e,n[e]);if(Ko)for(var e of Ko(n))Ih.call(n,e)&&Eh(t,e,n[e]);return t},H=(t,n)=>U0(t,H0(n));var G0=(t,n)=>{var e={};for(var r in t)Kc.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Ko)for(var r of Ko(t))n.indexOf(r)<0&&Ih.call(t,r)&&(e[r]=t[r]);return e};var MO=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),W0=(t,n)=>{for(var e in n)Jo(t,e,{get:n[e],enumerable:!0})},Z0=(t,n,e,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of z0(n))!Kc.call(t,i)&&i!==e&&Jo(t,i,{get:()=>n[i],enumerable:!(r=$0(n,i))||r.enumerable});return t};var xO=(t,n,e)=>(e=t!=null?B0(q0(t)):{},Z0(n||!t||!t.__esModule?Jo(e,"default",{value:t,enumerable:!0}):e,t));var _t=(t,n,e)=>new Promise((r,i)=>{var o=c=>{try{a(e.next(c))}catch(l){i(l)}},s=c=>{try{a(e.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((e=e.apply(t,n)).next())});function tl(t,n){return Object.is(t,n)}var Ce=null,Xo=!1,nl=1,Ke=Symbol("SIGNAL");function Z(t){let n=Ce;return Ce=t,n}function Mh(){return Ce}var ki={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ts(t){if(Xo)throw new Error("");if(Ce===null)return;Ce.consumerOnSignalRead(t);let n=Ce.nextProducerIndex++;if(is(Ce),nt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ol(t){is(t);for(let n=0;n0}function is(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Ah(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Oh(t){return t.producerNode!==void 0}function Nh(t){let n=Object.create(K0);n.computation=t;let e=()=>{if(rl(n),ts(n),n.value===es)throw n.error;return n.value};return e[Ke]=n,e}var Jc=Symbol("UNSET"),Xc=Symbol("COMPUTING"),es=Symbol("ERRORED"),K0=H(C({},ki),{value:Jc,dirty:!0,error:null,equal:tl,kind:"computed",producerMustRecompute(t){return t.value===Jc||t.value===Xc},producerRecomputeValue(t){if(t.value===Xc)throw new Error("Detected cycle in computations.");let n=t.value;t.value=Xc;let e=ns(t),r,i=!1;try{r=t.computation(),Z(null),i=n!==Jc&&n!==es&&r!==es&&t.equal(n,r)}catch(o){r=es,t.error=o}finally{il(t,e)}if(i){t.value=n;return}t.value=r,t.version++}});function J0(){throw new Error}var Rh=J0;function Ph(){Rh()}function kh(t){Rh=t}var X0=null;function Fh(t){let n=Object.create(al);n.value=t;let e=()=>(ts(n),n.value);return e[Ke]=n,e}function os(t,n){Th()||Ph(),t.equal(t.value,n)||(t.value=n,ew(t))}function Lh(t,n){Th()||Ph(),os(t,n(t.value))}var al=H(C({},ki),{equal:tl,value:void 0,kind:"signal"});function ew(t){t.version++,Y0(),xh(t),X0?.()}function F(t){return typeof t=="function"}function wr(t){let e=t(r=>{Error.call(r),r.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ss=wr(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +${e.map((r,i)=>`${i+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Fi(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var _e=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:r}=this;if(F(r))try{r()}catch(o){n=o instanceof ss?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Vh(o)}catch(s){n=n??[],s instanceof ss?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ss(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Vh(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Fi(e,n)}remove(n){let{_finalizers:e}=this;e&&Fi(e,n),n instanceof t&&n._removeParent(this)}};_e.EMPTY=(()=>{let t=new _e;return t.closed=!0,t})();var cl=_e.EMPTY;function as(t){return t instanceof _e||t&&"closed"in t&&F(t.remove)&&F(t.add)&&F(t.unsubscribe)}function Vh(t){F(t)?t():t.unsubscribe()}var wt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var br={setTimeout(t,n,...e){let{delegate:r}=br;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=br;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function cs(t){br.setTimeout(()=>{let{onUnhandledError:n}=wt;if(n)n(t);else throw t})}function Li(){}var jh=ll("C",void 0,void 0);function Bh(t){return ll("E",void 0,t)}function Uh(t){return ll("N",t,void 0)}function ll(t,n,e){return{kind:t,value:n,error:e}}var Gn=null;function Cr(t){if(wt.useDeprecatedSynchronousErrorHandling){let n=!Gn;if(n&&(Gn={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:r}=Gn;if(Gn=null,e)throw r}}else t()}function $h(t){wt.useDeprecatedSynchronousErrorHandling&&Gn&&(Gn.errorThrown=!0,Gn.error=t)}var Wn=class extends _e{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,as(n)&&n.add(this)):this.destination=rw}static create(n,e,r){return new bt(n,e,r)}next(n){this.isStopped?dl(Uh(n),this):this._next(n)}error(n){this.isStopped?dl(Bh(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?dl(jh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},tw=Function.prototype.bind;function ul(t,n){return tw.call(t,n)}var fl=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){ls(r)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){ls(r)}else ls(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){ls(e)}}},bt=class extends Wn{constructor(n,e,r){super();let i;if(F(n)||!n)i={next:n??void 0,error:e??void 0,complete:r??void 0};else{let o;this&&wt.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&ul(n.next,o),error:n.error&&ul(n.error,o),complete:n.complete&&ul(n.complete,o)}):i=n}this.destination=new fl(i)}};function ls(t){wt.useDeprecatedSynchronousErrorHandling?$h(t):cs(t)}function nw(t){throw t}function dl(t,n){let{onStoppedNotification:e}=wt;e&&br.setTimeout(()=>e(t,n))}var rw={closed:!0,next:Li,error:nw,complete:Li};var Dr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Je(t){return t}function hl(...t){return pl(t)}function pl(t){return t.length===0?Je:t.length===1?t[0]:function(e){return t.reduce((r,i)=>i(r),e)}}var z=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,i){let o=ow(e)?e:new bt(e,r,i);return Cr(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return r=Hh(r),new r((i,o)=>{let s=new bt({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)}[Dr](){return this}pipe(...e){return pl(e)(this)}toPromise(e){return e=Hh(e),new e((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=n=>new t(n),t})();function Hh(t){var n;return(n=t??wt.Promise)!==null&&n!==void 0?n:Promise}function iw(t){return t&&F(t.next)&&F(t.error)&&F(t.complete)}function ow(t){return t&&t instanceof Wn||iw(t)&&as(t)}function gl(t){return F(t?.lift)}function Y(t){return n=>{if(gl(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Q(t,n,e,r,i){return new ml(t,n,e,r,i)}var ml=class extends Wn{constructor(n,e,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Er(){return Y((t,n)=>{let e=null;t._refCount++;let r=Q(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let i=t._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}var Ir=class extends z{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,gl(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new _e;let e=this.getSubject();n.add(this.source.subscribe(Q(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=_e.EMPTY)}return n}refCount(){return Er()(this)}};var zh=wr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var te=(()=>{class t extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let r=new us(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new zh}next(e){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(e)}})}error(e){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:r,isStopped:i,observers:o}=this;return r||i?cl:(this.currentObservers=null,o.push(e),new _e(()=>{this.currentObservers=null,Fi(o,e)}))}_checkFinalizedStatuses(e){let{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){let e=new z;return e.source=this,e}}return t.create=(n,e)=>new us(n,e),t})(),us=class extends te{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0||r.call(e,n)}error(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0||r.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&r!==void 0?r:cl}};var Se=class extends te{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var yl={now(){return(yl.delegate||Date).now()},delegate:void 0};var Vi=class extends te{constructor(n=1/0,e=1/0,r=yl){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;e||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;st.complete());function qh(t){return t&&F(t.schedule)}function vl(t){return t[t.length-1]}function ds(t){return F(vl(t))?t.pop():void 0}function kt(t){return qh(vl(t))?t.pop():void 0}function Gh(t,n){return typeof vl(t)=="number"?t.pop():n}function Zh(t,n,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(t,n||[])).next())})}function Wh(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zn(t){return this instanceof Zn?(this.v=t,this):new Zn(t)}function Yh(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(t,n||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(b){return Promise.resolve(b).then(h,d)}}function a(h,b){r[h]&&(i[h]=function(E){return new Promise(function(T,k){o.push([h,E,T,k])>1||c(h,E)})},b&&(i[h]=b(i[h])))}function c(h,b){try{l(r[h](b))}catch(E){f(o[0][3],E)}}function l(h){h.value instanceof Zn?Promise.resolve(h.value.v).then(u,d):f(o[0][2],h)}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,b){h(b),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Qh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Wh=="function"?Wh(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Mr=t=>t&&typeof t.length=="number"&&typeof t!="function";function fs(t){return F(t?.then)}function hs(t){return F(t[Dr])}function ps(t){return Symbol.asyncIterator&&F(t?.[Symbol.asyncIterator])}function gs(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function sw(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ms=sw();function ys(t){return F(t?.[ms])}function vs(t){return Yh(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:r,done:i}=yield Zn(e.read());if(i)return yield Zn(void 0);yield yield Zn(r)}}finally{e.releaseLock()}})}function _s(t){return F(t?.getReader)}function se(t){if(t instanceof z)return t;if(t!=null){if(hs(t))return aw(t);if(Mr(t))return cw(t);if(fs(t))return lw(t);if(ps(t))return Kh(t);if(ys(t))return uw(t);if(_s(t))return dw(t)}throw gs(t)}function aw(t){return new z(n=>{let e=t[Dr]();if(F(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cw(t){return new z(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,cs)})}function uw(t){return new z(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Kh(t){return new z(n=>{fw(t,n).catch(e=>n.error(e))})}function dw(t){return Kh(vs(t))}function fw(t,n){var e,r,i,o;return Zh(this,void 0,void 0,function*(){try{for(e=Qh(t);r=yield e.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}n.complete()})}function $e(t,n,e,r=0,i=!1){let o=n.schedule(function(){e(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function ws(t,n=0){return Y((e,r)=>{e.subscribe(Q(r,i=>$e(r,t,()=>r.next(i),n),()=>$e(r,t,()=>r.complete(),n),i=>$e(r,t,()=>r.error(i),n)))})}function bs(t,n=0){return Y((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function Jh(t,n){return se(t).pipe(bs(n),ws(n))}function Xh(t,n){return se(t).pipe(bs(n),ws(n))}function ep(t,n){return new z(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}function tp(t,n){return new z(e=>{let r;return $e(e,n,()=>{r=t[ms](),$e(e,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){e.error(s);return}o?e.complete():e.next(i)},0,!0)}),()=>F(r?.return)&&r.return()})}function Cs(t,n){if(!t)throw new Error("Iterable cannot be null");return new z(e=>{$e(e,n,()=>{let r=t[Symbol.asyncIterator]();$e(e,n,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function np(t,n){return Cs(vs(t),n)}function rp(t,n){if(t!=null){if(hs(t))return Jh(t,n);if(Mr(t))return ep(t,n);if(fs(t))return Xh(t,n);if(ps(t))return Cs(t,n);if(ys(t))return tp(t,n);if(_s(t))return np(t,n)}throw gs(t)}function ee(t,n){return n?rp(t,n):se(t)}function P(...t){let n=kt(t);return ee(t,n)}function xr(t,n){let e=F(t)?t:()=>t,r=i=>i.error(e());return new z(n?i=>n.schedule(r,0,i):r)}function _l(t){return!!t&&(t instanceof z||F(t.lift)&&F(t.subscribe))}var Ct=wr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function hw(t,n){let e=typeof n=="object";return new Promise((r,i)=>{let o=new bt({next:s=>{r(s),o.unsubscribe()},error:i,complete:()=>{e?r(n.defaultValue):i(new Ct)}});t.subscribe(o)})}function U(t,n){return Y((e,r)=>{let i=0;e.subscribe(Q(r,o=>{r.next(t.call(n,o,i++))}))})}var{isArray:pw}=Array;function gw(t,n){return pw(n)?t(...n):t(n)}function Tr(t){return U(n=>gw(t,n))}var{isArray:mw}=Array,{getPrototypeOf:yw,prototype:vw,keys:_w}=Object;function Ds(t){if(t.length===1){let n=t[0];if(mw(n))return{args:n,keys:null};if(ww(n)){let e=_w(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}function ww(t){return t&&typeof t=="object"&&yw(t)===vw}function Es(t,n){return t.reduce((e,r,i)=>(e[r]=n[i],e),{})}function ji(...t){let n=kt(t),e=ds(t),{args:r,keys:i}=Ds(t);if(r.length===0)return ee([],n);let o=new z(bw(r,n,i?s=>Es(i,s):Je));return e?o.pipe(Tr(e)):o}function bw(t,n,e=Je){return r=>{ip(n,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let l=ee(t[c],n),u=!1;l.subscribe(Q(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(e(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ip(t,n,e){t?$e(e,t,n):n()}function op(t,n,e,r,i,o,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&n.complete()},h=E=>l{o&&n.next(E),l++;let T=!1;se(e(E,u++)).subscribe(Q(n,k=>{i?.(k),o?h(k):n.next(k)},()=>{T=!0},void 0,()=>{if(T)try{for(l--;c.length&&lb(k)):b(k)}f()}catch(k){n.error(k)}}))};return t.subscribe(Q(n,h,()=>{d=!0,f()})),()=>{a?.()}}function pe(t,n,e=1/0){return F(n)?pe((r,i)=>U((o,s)=>n(r,o,i,s))(se(t(r,i))),e):(typeof n=="number"&&(e=n),Y((r,i)=>op(r,i,t,e)))}function Ft(t=1/0){return pe(Je,t)}function sp(){return Ft(1)}function Sr(...t){return sp()(ee(t,kt(t)))}function Is(t){return new z(n=>{se(t()).subscribe(n)})}function wl(...t){let n=ds(t),{args:e,keys:r}=Ds(t),i=new z(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?Es(r,a):a),o.complete())}))}});return n?i.pipe(Tr(n)):i}var Cw=["addListener","removeListener"],Dw=["addEventListener","removeEventListener"],Ew=["on","off"];function bl(t,n,e,r){if(F(e)&&(r=e,e=void 0),r)return bl(t,n,e).pipe(Tr(r));let[i,o]=xw(t)?Dw.map(s=>a=>t[s](n,a,e)):Iw(t)?Cw.map(ap(t,n)):Mw(t)?Ew.map(ap(t,n)):[];if(!i&&Mr(t))return pe(s=>bl(s,n,e))(se(t));if(!i)throw new TypeError("Invalid event target");return new z(s=>{let a=(...c)=>s.next(1o(a)})}function ap(t,n){return e=>r=>t[e](n,r)}function Iw(t){return F(t.addListener)&&F(t.removeListener)}function Mw(t){return F(t.on)&&F(t.off)}function xw(t){return F(t.addEventListener)&&F(t.removeEventListener)}function Tw(...t){let n=kt(t),e=Gh(t,1/0),r=t;return r.length?r.length===1?se(r[0]):Ft(e)(ee(r,n)):Ae}function He(t,n){return Y((e,r)=>{let i=0;e.subscribe(Q(r,o=>t.call(n,o,i++)&&r.next(o)))})}function Dt(t){return Y((n,e)=>{let r=null,i=!1,o;r=n.subscribe(Q(e,void 0,void 0,s=>{o=se(t(s,Dt(t)(n))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function cp(t,n,e,r,i){return(o,s)=>{let a=e,c=n,l=0;o.subscribe(Q(s,u=>{let d=l++;c=a?t(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Yt(t,n){return F(n)?pe(t,n,1):pe(t,1)}function _n(t){return Y((n,e)=>{let r=!1;n.subscribe(Q(e,i=>{r=!0,e.next(i)},()=>{r||e.next(t),e.complete()}))})}function Qt(t){return t<=0?()=>Ae:Y((n,e)=>{let r=0;n.subscribe(Q(e,i=>{++r<=t&&(e.next(i),t<=r&&e.complete())}))})}function Ms(t=Sw){return Y((n,e)=>{let r=!1;n.subscribe(Q(e,i=>{r=!0,e.next(i)},()=>r?e.complete():e.error(t())))})}function Sw(){return new Ct}function wn(t){return Y((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Et(t,n){let e=arguments.length>=2;return r=>r.pipe(t?He((i,o)=>t(i,o,r)):Je,Qt(1),e?_n(n):Ms(()=>new Ct))}function Ar(t){return t<=0?()=>Ae:Y((n,e)=>{let r=[];n.subscribe(Q(e,i=>{r.push(i),t{for(let i of r)e.next(i);e.complete()},void 0,()=>{r=null}))})}function Cl(t,n){let e=arguments.length>=2;return r=>r.pipe(t?He((i,o)=>t(i,o,r)):Je,Ar(1),e?_n(n):Ms(()=>new Ct))}function Dl(t,n){return Y(cp(t,n,arguments.length>=2,!0))}function Aw(t={}){let{connector:n=()=>new te,resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,l=0,u=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,u=d=!1},b=()=>{let E=s;h(),E?.unsubscribe()};return Y((E,T)=>{l++,!d&&!u&&f();let k=c=c??n();T.add(()=>{l--,l===0&&!d&&!u&&(a=El(b,i))}),k.subscribe(T),!s&&l>0&&(s=new bt({next:oe=>k.next(oe),error:oe=>{d=!0,f(),a=El(h,e,oe),k.error(oe)},complete:()=>{u=!0,f(),a=El(h,r),k.complete()}}),se(E).subscribe(s))})(o)}}function El(t,n,...e){if(n===!0){t();return}if(n===!1)return;let r=new bt({next:()=>{r.unsubscribe(),t()}});return n(...e).subscribe(r)}function Il(...t){let n=kt(t);return Y((e,r)=>{(n?Sr(t,e,n):Sr(t,e)).subscribe(r)})}function ze(t,n){return Y((e,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();e.subscribe(Q(r,c=>{i?.unsubscribe();let l=0,u=o++;se(t(c,u)).subscribe(i=Q(r,d=>r.next(n?n(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ml(t){return Y((n,e)=>{se(t).subscribe(Q(e,()=>e.complete(),Li)),!e.closed&&n.subscribe(e)})}function Me(t,n,e){let r=F(t)||n||e?{next:t,error:n,complete:e}:t;return r?Y((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(Q(o,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),o.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Je}var Kp="https://g.co/ng/security#xss",x=class extends Error{code;constructor(n,e){super(ma(n,e)),this.code=n}};function ma(t,n){return`${`NG0${Math.abs(t)}`}${n?": "+n:""}`}var Jp=Symbol("InputSignalNode#UNSET"),Ow=H(C({},al),{transformFn:void 0,applyValueToInputSignal(t,n){os(t,n)}});function Xp(t,n){let e=Object.create(Ow);e.value=t,e.transformFn=n?.transform;function r(){if(ts(e),e.value===Jp)throw new x(-950,!1);return e.value}return r[Ke]=e,r}function Ji(t){return{toString:t}.toString()}var xs="__parameters__";function Nw(t){return function(...e){if(t){let r=t(...e);for(let i in r)this[i]=r[i]}}}function eg(t,n,e){return Ji(()=>{let r=Nw(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(xs)?c[xs]:Object.defineProperty(c,xs,{value:[]})[xs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var et=globalThis;function ne(t){for(let n in t)if(t[n]===ne)return n;throw Error("Could not find renamed property on target object.")}function Rw(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Fe(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Fe).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let n=t.toString();if(n==null)return""+n;let e=n.indexOf(` +`);return e===-1?n:n.substring(0,e)}function jl(t,n){return t==null||t===""?n===null?"":n:n==null||n===""?t:t+" "+n}var Pw=ne({__forward_ref__:ne});function or(t){return t.__forward_ref__=or,t.toString=function(){return Fe(this())},t}function ke(t){return tg(t)?t():t}function tg(t){return typeof t=="function"&&t.hasOwnProperty(Pw)&&t.__forward_ref__===or}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function le(t){return{providers:t.providers||[],imports:t.imports||[]}}function ya(t){return lp(t,rg)||lp(t,ig)}function ng(t){return ya(t)!==null}function lp(t,n){return t.hasOwnProperty(n)?t[n]:null}function kw(t){let n=t&&(t[rg]||t[ig]);return n||null}function up(t){return t&&(t.hasOwnProperty(dp)||t.hasOwnProperty(Fw))?t[dp]:null}var rg=ne({\u0275prov:ne}),dp=ne({\u0275inj:ne}),ig=ne({ngInjectableDef:ne}),Fw=ne({ngInjectorDef:ne}),M=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=D({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function og(t){return t&&!!t.\u0275providers}var Lw=ne({\u0275cmp:ne}),Vw=ne({\u0275dir:ne}),jw=ne({\u0275pipe:ne}),Bw=ne({\u0275mod:ne}),js=ne({\u0275fac:ne}),Hi=ne({__NG_ELEMENT_ID__:ne}),fp=ne({__NG_ENV_ID__:ne});function Lr(t){return typeof t=="string"?t:t==null?"":String(t)}function Uw(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Lr(t)}function $w(t,n){let e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new x(-200,t)}function zu(t,n){throw new x(-201,!1)}var q=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(q||{}),Bl;function sg(){return Bl}function qe(t){let n=Bl;return Bl=t,n}function ag(t,n,e){let r=ya(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(e&q.Optional)return null;if(n!==void 0)return n;zu(t,"Injector")}var Hw={},qi=Hw,Ul="__NG_DI_FLAG__",Bs="ngTempTokenPath",zw="ngTokenPath",qw=/\n/gm,Gw="\u0275",hp="__source",kr;function Ww(){return kr}function bn(t){let n=kr;return kr=t,n}function Zw(t,n=q.Default){if(kr===void 0)throw new x(-203,!1);return kr===null?ag(t,void 0,n):kr.get(t,n&q.Optional?null:void 0,n)}function _(t,n=q.Default){return(sg()||Zw)(ke(t),n)}function w(t,n=q.Default){return _(t,va(n))}function va(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function $l(t){let n=[];for(let e=0;e ");else if(typeof n=="object"){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Fe(a)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${t.replace(qw,` + `)}`}var qu=cg(eg("Optional"),8);var lg=cg(eg("SkipSelf"),4);function Qn(t,n){let e=t.hasOwnProperty(js);return e?t[js]:null}function Jw(t,n,e){if(t.length!==n.length)return!1;for(let r=0;rArray.isArray(e)?Gu(e,n):n(e))}function ug(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Us(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function eb(t,n){let e=[];for(let r=0;rn;){let o=i-2;t[i]=t[o],i--}t[n]=e,t[n+1]=r}}function _a(t,n,e){let r=Xi(t,n);return r>=0?t[r|1]=e:(r=~r,tb(t,r,n,e)),r}function xl(t,n){let e=Xi(t,n);if(e>=0)return t[e|1]}function Xi(t,n){return nb(t,n,1)}function nb(t,n,e){let r=0,i=t.length>>e;for(;i!==r;){let o=r+(i-r>>1),s=t[o<n?i=o:r=o+1}return~(i<{e.push(s)};return Gu(n,s=>{let a=s;Hl(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&vg(i,o),e}function vg(t,n){for(let e=0;e{n(o,r)})}}function Hl(t,n,e,r){if(t=ke(t),!t)return!1;let i=null,o=up(t),s=!o&&En(t);if(!o&&!s){let c=t.ngModule;if(o=up(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Hl(l,n,e,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Gu(o.imports,u=>{Hl(u,n,e,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&vg(l,n)}if(!a){let l=Qn(i)||(()=>new i);n({provide:i,useFactory:l,deps:Ge},i),n({provide:fg,useValue:i,multi:!0},i),n({provide:jr,useValue:()=>_(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=t;Wu(c,u=>{n(u,l)})}}else return!1;return i!==t&&t.providers!==void 0}function Wu(t,n){for(let e of t)og(e)&&(e=e.\u0275providers),Array.isArray(e)?Wu(e,n):n(e)}var ib=ne({provide:String,useValue:ne});function _g(t){return t!==null&&typeof t=="object"&&ib in t}function ob(t){return!!(t&&t.useExisting)}function sb(t){return!!(t&&t.useFactory)}function Br(t){return typeof t=="function"}function ab(t){return!!t.useClass}var ba=new M(""),Ps={},cb={},Tl;function Zu(){return Tl===void 0&&(Tl=new $s),Tl}var Le=class{},Gi=class extends Le{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,r,i){super(),this.parent=e,this.source=r,this.scopes=i,ql(n,s=>this.processProvider(s)),this.records.set(dg,Or(void 0,this)),i.has("environment")&&this.records.set(Le,Or(void 0,this));let o=this.records.get(ba);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(fg,Ge,q.Self))}destroy(){Ui(this),this._destroyed=!0;let n=Z(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Z(n)}}onDestroy(n){return Ui(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Ui(this);let e=bn(this),r=qe(void 0),i;try{return n()}finally{bn(e),qe(r)}}get(n,e=qi,r=q.Default){if(Ui(this),n.hasOwnProperty(fp))return n[fp](this);r=va(r);let i,o=bn(this),s=qe(void 0);try{if(!(r&q.SkipSelf)){let c=this.records.get(n);if(c===void 0){let l=hb(n)&&ya(n);l&&this.injectableDefInScope(l)?c=Or(zl(n),Ps):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c)}let a=r&q.Self?Zu():this.parent;return e=r&q.Optional&&e===qi?null:e,a.get(n,e)}catch(a){if(a.name==="NullInjectorError"){if((a[Bs]=a[Bs]||[]).unshift(Fe(n)),o)throw a;return Qw(a,n,"R3InjectorError",this.source)}else throw a}finally{qe(s),bn(o)}}resolveInjectorInitializers(){let n=Z(null),e=bn(this),r=qe(void 0),i;try{let o=this.get(jr,Ge,q.Self);for(let s of o)s()}finally{bn(e),qe(r),Z(n)}}toString(){let n=[],e=this.records;for(let r of e.keys())n.push(Fe(r));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=ke(n);let e=Br(n)?n:ke(n&&n.provide),r=ub(n);if(!Br(n)&&n.multi===!0){let i=this.records.get(e);i||(i=Or(void 0,Ps,!0),i.factory=()=>$l(i.multi),this.records.set(e,i)),e=n,i.multi.push(n)}this.records.set(e,r)}hydrate(n,e){let r=Z(null);try{return e.value===Ps&&(e.value=cb,e.value=e.factory()),typeof e.value=="object"&&e.value&&fb(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Z(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=ke(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function zl(t){let n=ya(t),e=n!==null?n.factory:Qn(t);if(e!==null)return e;if(t instanceof M)throw new x(204,!1);if(t instanceof Function)return lb(t);throw new x(204,!1)}function lb(t){if(t.length>0)throw new x(204,!1);let e=kw(t);return e!==null?()=>e.factory(t):()=>new t}function ub(t){if(_g(t))return Or(void 0,t.useValue);{let n=wg(t);return Or(n,Ps)}}function wg(t,n,e){let r;if(Br(t)){let i=ke(t);return Qn(i)||zl(i)}else if(_g(t))r=()=>ke(t.useValue);else if(sb(t))r=()=>t.useFactory(...$l(t.deps||[]));else if(ob(t))r=()=>_(ke(t.useExisting));else{let i=ke(t&&(t.useClass||t.provide));if(db(t))r=()=>new i(...$l(t.deps));else return Qn(i)||zl(i)}return r}function Ui(t){if(t.destroyed)throw new x(205,!1)}function Or(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function db(t){return!!t.deps}function fb(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function hb(t){return typeof t=="function"||typeof t=="object"&&t instanceof M}function ql(t,n){for(let e of t)Array.isArray(e)?ql(e,n):e&&og(e)?ql(e.\u0275providers,n):n(e)}function Ye(t,n){t instanceof Gi&&Ui(t);let e,r=bn(t),i=qe(void 0);try{return n()}finally{bn(r),qe(i)}}function bg(){return sg()!==void 0||Ww()!=null}function pb(t){if(!bg())throw new x(-203,!1)}function gb(t){let n=et.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function mb(t){return typeof t=="function"}var tn=0,j=1,L=2,Ne=3,xt=4,Qe=5,Wi=6,Hs=7,ut=8,Ur=9,Kt=10,ge=11,Zi=12,pp=13,Yr=14,dt=15,Kn=16,Nr=17,Jt=18,Ca=19,Cg=20,Cn=21,Sl=22,zs=23,Xe=24,De=25,Dg=1;var Jn=7,qs=8,$r=9,We=10;function Dn(t){return Array.isArray(t)&&typeof t[Dg]=="object"}function nn(t){return Array.isArray(t)&&t[Dg]===!0}function Yu(t){return(t.flags&4)!==0}function Da(t){return t.componentOffset>-1}function Ea(t){return(t.flags&1)===1}function In(t){return!!t.template}function Gl(t){return(t[L]&512)!==0}function eo(t){return(t[L]&256)===256}var Wl=class{previousValue;currentValue;firstChange;constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}};function Eg(t,n,e,r){n!==null?n.applyValueToInputSignal(n,r):t[e]=r}var pt=(()=>{let t=()=>Ig;return t.ngInherit=!0,t})();function Ig(t){return t.type.prototype.ngOnChanges&&(t.setInput=vb),yb}function yb(){let t=xg(this),n=t?.current;if(n){let e=t.previous;if(e===Vr)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function vb(t,n,e,r,i){let o=this.declaredInputs[r],s=xg(t)||_b(t,{previous:Vr,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new Wl(l&&l.currentValue,e,c===Vr),Eg(t,n,i,e)}var Mg="__ngSimpleChanges__";function xg(t){return t[Mg]||null}function _b(t,n){return t[Mg]=n}var gp=null;var lt=function(t,n,e){gp?.(t,n,e)},Tg="svg",wb="math";function Vt(t){for(;Array.isArray(t);)t=t[tn];return t}function Sg(t,n){return Vt(n[t])}function gt(t,n){return Vt(n[t.index])}function Qu(t,n){return t.data[n]}function to(t,n){return t[n]}function Sn(t,n){let e=n[t];return Dn(e)?e:e[tn]}function bb(t){return(t[L]&4)===4}function Ku(t){return(t[L]&128)===128}function Cb(t){return nn(t[Ne])}function Hr(t,n){return n==null?null:t[n]}function Ag(t){t[Nr]=0}function Ju(t){t[L]&1024||(t[L]|=1024,Ku(t)&&Ma(t))}function Db(t,n){for(;t>0;)n=n[Yr],t--;return n}function Ia(t){return!!(t[L]&9216||t[Xe]?.dirty)}function Zl(t){t[Kt].changeDetectionScheduler?.notify(9),t[L]&64&&(t[L]|=1024),Ia(t)&&Ma(t)}function Ma(t){t[Kt].changeDetectionScheduler?.notify(0);let n=Xn(t);for(;n!==null&&!(n[L]&8192||(n[L]|=8192,!Ku(n)));)n=Xn(n)}function Og(t,n){if(eo(t))throw new x(911,!1);t[Cn]===null&&(t[Cn]=[]),t[Cn].push(n)}function Eb(t,n){if(t[Cn]===null)return;let e=t[Cn].indexOf(n);e!==-1&&t[Cn].splice(e,1)}function Xn(t){let n=t[Ne];return nn(n)?n[Ne]:n}function Ng(t){return t[Hs]??=[]}function Rg(t){return t.cleanup??=[]}function Ib(t,n,e,r){let i=Ng(n);i.push(e),t.firstCreatePass&&Rg(t).push(r,i.length-1)}var B={lFrame:Ug(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Yl=!1;function Mb(){return B.lFrame.elementDepthCount}function xb(){B.lFrame.elementDepthCount++}function Tb(){B.lFrame.elementDepthCount--}function Pg(){return B.bindingsEnabled}function kg(){return B.skipHydrationRootTNode!==null}function Sb(t){return B.skipHydrationRootTNode===t}function Ab(){B.skipHydrationRootTNode=null}function V(){return B.lFrame.lView}function me(){return B.lFrame.tView}function N(t){return B.lFrame.contextLView=t,t[ut]}function R(t){return B.lFrame.contextLView=null,t}function Oe(){let t=Fg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Fg(){return B.lFrame.currentTNode}function Ob(){let t=B.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sr(t,n){let e=B.lFrame;e.currentTNode=t,e.isParent=n}function Xu(){return B.lFrame.isParent}function ed(){B.lFrame.isParent=!1}function Nb(){return B.lFrame.contextLView}function Lg(){return Yl}function mp(t){let n=Yl;return Yl=t,n}function An(){let t=B.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Rb(){return B.lFrame.bindingIndex}function Pb(t){return B.lFrame.bindingIndex=t}function no(){return B.lFrame.bindingIndex++}function td(t){let n=B.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function kb(){return B.lFrame.inI18n}function Fb(t,n){let e=B.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ql(n)}function Lb(){return B.lFrame.currentDirectiveIndex}function Ql(t){B.lFrame.currentDirectiveIndex=t}function Vb(t){let n=B.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Vg(){return B.lFrame.currentQueryIndex}function nd(t){B.lFrame.currentQueryIndex=t}function jb(t){let n=t[j];return n.type===2?n.declTNode:n.type===1?t[Qe]:null}function jg(t,n,e){if(e&q.SkipSelf){let i=n,o=t;for(;i=i.parent,i===null&&!(e&q.Host);)if(i=jb(o),i===null||(o=o[Yr],i.type&10))break;if(i===null)return!1;n=i,t=o}let r=B.lFrame=Bg();return r.currentTNode=n,r.lView=t,!0}function rd(t){let n=Bg(),e=t[j];B.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Bg(){let t=B.lFrame,n=t===null?null:t.child;return n===null?Ug(t):n}function Ug(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function $g(){let t=B.lFrame;return B.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Hg=$g;function id(){let t=$g();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Bb(t){return(B.lFrame.contextLView=Db(t,B.lFrame.contextLView))[ut]}function On(){return B.lFrame.selectedIndex}function er(t){B.lFrame.selectedIndex=t}function od(){let t=B.lFrame;return Qu(t.tView,t.selectedIndex)}function xa(){B.lFrame.currentNamespace=Tg}function zg(){Ub()}function Ub(){B.lFrame.currentNamespace=null}function $b(){return B.lFrame.currentNamespace}var qg=!0;function Ta(){return qg}function Sa(t){qg=t}function Hb(t,n,e){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){let s=Ig(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}i&&(e.preOrderHooks??=[]).push(0-t,i),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function Aa(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e=r)break}else n[c]<0&&(t[Nr]+=65536),(a>14>16&&(t[L]&3)===n&&(t[L]+=16384,yp(a,o)):yp(a,o)}var Fr=-1,tr=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,r){this.factory=n,this.canSeeViewProviders=e,this.injectImpl=r}};function qb(t){return t instanceof tr}function Gb(t){return(t.flags&8)!==0}function Wb(t){return(t.flags&16)!==0}function Zb(t,n,e){let r=0;for(;rn){s=o-1;break}}}for(;o>16}function Ws(t,n){let e=Qb(t),r=n;for(;e>0;)r=r[Yr],e--;return r}var Jl=!0;function Zs(t){let n=Jl;return Jl=t,n}var Kb=256,Yg=Kb-1,Qg=5,Jb=0,Lt={};function Xb(t,n,e){let r;typeof e=="string"?r=e.charCodeAt(0)||0:e.hasOwnProperty(Hi)&&(r=e[Hi]),r==null&&(r=e[Hi]=Jb++);let i=r&Yg,o=1<>Qg)]|=o}function Ys(t,n){let e=Kg(t,n);if(e!==-1)return e;let r=n[j];r.firstCreatePass&&(t.injectorIndex=n.length,Nl(r.data,t),Nl(n,null),Nl(r.blueprint,null));let i=sd(t,n),o=t.injectorIndex;if(Zg(i)){let s=Gs(i),a=Ws(i,n),c=a[j].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=i,o}function Nl(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Kg(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function sd(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,r=null,i=n;for(;i!==null;){if(r=nm(i),r===null)return Fr;if(e++,i=i[Yr],r.injectorIndex!==-1)return r.injectorIndex|e<<16}return Fr}function Xl(t,n,e){Xb(t,n,e)}function eC(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let r=e.length,i=0;for(;i>20,d=r?a:a+u,f=i?a+u:l;for(let h=d;h=c&&b.type===e)return h}if(i){let h=s[c];if(h&&In(h)&&h.type===e)return c}return null}function nr(t,n,e,r){let i=t[e],o=n.data;if(qb(i)){let s=i;s.resolving&&$w(Uw(o[e]));let a=Zs(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?qe(s.injectImpl):null,u=jg(t,r,q.Default);try{i=t[e]=s.factory(void 0,o,t,r),n.firstCreatePass&&e>=r.directiveStart&&Hb(e,o[e],n)}finally{l!==null&&qe(l),Zs(a),s.resolving=!1,Hg()}}return i}function nC(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Hi)?t[Hi]:void 0;return typeof n=="number"?n>=0?n&Yg:rC:n}function _p(t,n,e){let r=1<>Qg)]&r)}function wp(t,n){return!(t&q.Self)&&!(t&q.Host&&n)}var Yn=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,r){return em(this._tNode,this._lView,n,va(r),e)}};function rC(){return new Yn(Oe(),V())}function Qr(t){return Ji(()=>{let n=t.prototype.constructor,e=n[js]||eu(n),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[js]||eu(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function eu(t){return tg(t)?()=>{let n=eu(ke(t));return n&&n()}:Qn(t)}function iC(t,n,e,r,i){let o=t,s=n;for(;o!==null&&s!==null&&s[L]&2048&&!(s[L]&512);){let a=tm(o,s,e,r|q.Self,Lt);if(a!==Lt)return a;let c=o.parent;if(!c){let l=s[Cg];if(l){let u=l.get(e,Lt,r);if(u!==Lt)return u}c=nm(s),s=s[Yr]}o=c}return i}function nm(t){let n=t[j],e=n.type;return e===2?n.declTNode:e===1?t[Qe]:null}function ad(t){return eC(Oe(),t)}function bp(t,n=null,e=null,r){let i=rm(t,n,e,r);return i.resolveInjectorInitializers(),i}function rm(t,n=null,e=null,r,i=new Set){let o=[e||Ge,rb(t)];return r=r||(typeof t=="object"?void 0:Fe(t)),new Gi(o,n||Zu(),r||null,i)}var we=class t{static THROW_IF_NOT_FOUND=qi;static NULL=new $s;static create(n,e){if(Array.isArray(n))return bp({name:""},e,n,"");{let r=n.name??"";return bp({name:r},n.parent,n.providers,r)}}static \u0275prov=D({token:t,providedIn:"any",factory:()=>_(dg)});static __NG_ELEMENT_ID__=-1};var oC=new M("");oC.__NG_ELEMENT_ID__=t=>{let n=Oe();if(n===null)throw new x(204,!1);if(n.type&2)return n.value;if(t&q.Optional)return null;throw new x(204,!1)};var im=!1,cd=(()=>{class t{static __NG_ELEMENT_ID__=sC;static __NG_ENV_ID__=e=>e}return t})(),tu=class extends cd{_lView;constructor(n){super(),this._lView=n}onDestroy(n){return Og(this._lView,n),()=>Eb(this._lView,n)}};function sC(){return new tu(V())}var qr=class{},ld=new M("",{providedIn:"root",factory:()=>!1});var om=new M(""),sm=new M(""),rn=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Se(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}return t})();var nu=class extends te{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,bg()&&(this.destroyRef=w(cd,{optional:!0})??void 0,this.pendingTasks=w(rn,{optional:!0})??void 0)}emit(n){let e=Z(null);try{super.next(n)}finally{Z(e)}}subscribe(n,e,r){let i=n,o=e||(()=>null),s=r;if(n&&typeof n=="object"){let c=n;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return n instanceof _e&&n.add(a),a}wrapInTimeout(n){return e=>{let r=this.pendingTasks?.add();setTimeout(()=>{n(e),r!==void 0&&this.pendingTasks?.remove(r)})}}},G=nu;function Qs(...t){}function am(t){let n,e;function r(){t=Qs;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Cp(t){return queueMicrotask(()=>t()),()=>{t=Qs}}var ud="isAngularZone",Ks=ud+"_ID",aC=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new G(!1);onMicrotaskEmpty=new G(!1);onStable=new G(!1);onError=new G(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=im}=n;if(typeof Zone>"u")throw new x(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,uC(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ud)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new x(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,cC,Qs,Qs);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}},cC={};function dd(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function lC(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){am(()=>{t.callbackScheduled=!1,ru(t),t.isCheckStableRunning=!0,dd(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),ru(t)}function uC(t){let n=()=>{lC(t)},e=aC++;t._inner=t._inner.fork({name:"angular",properties:{[ud]:!0,[Ks]:e,[Ks+e]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(dC(c))return r.invokeTask(o,s,a,c);try{return Dp(t),r.invokeTask(o,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),Ep(t)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return Dp(t),r.invoke(o,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!fC(c)&&n(),Ep(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ru(t),dd(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ru(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Dp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ep(t){t._nesting--,dd(t)}var Js=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new G;onMicrotaskEmpty=new G;onStable=new G;onError=new G;run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,i){return n.apply(e,r)}};function dC(t){return cm(t,"__ignore_ng_zone__")}function fC(t){return cm(t,"__scheduler_tick__")}function cm(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}function hC(t="zone.js",n){return t==="noop"?new Js:t==="zone.js"?new ae(n):t}var Xt=class{_console=console;handleError(n){this._console.error("ERROR",n)}},pC=new M("",{providedIn:"root",factory:()=>{let t=w(ae),n=w(Xt);return e=>t.runOutsideAngular(()=>n.handleError(e))}});function Ip(t,n){return Xp(t,n)}function gC(t){return Xp(Jp,t)}var lm=(Ip.required=gC,Ip);function mC(){return Kr(Oe(),V())}function Kr(t,n){return new Ee(gt(t,n))}var Ee=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=mC}return t})();function yC(t){return t instanceof Ee?t.nativeElement:t}var Mp=new Set;function ar(t){Mp.has(t)||(Mp.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function vC(t){return typeof t=="function"&&t[Ke]!==void 0}function Oa(t,n){ar("NgSignals");let e=Fh(t),r=e[Ke];return n?.equal&&(r.equal=n.equal),e.set=i=>os(r,i),e.update=i=>Lh(r,i),e.asReadonly=_C.bind(e),e}function _C(){let t=this[Ke];if(t.readonlyFn===void 0){let n=()=>this();n[Ke]=t,t.readonlyFn=n}return t.readonlyFn}function um(t){return vC(t)&&typeof t.set=="function"}function wC(){return this._results[Symbol.iterator]()}var iu=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new te}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let r=Xw(n);(this._changesDetected=!Jw(this._results,r,e))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=wC};function dm(t){return(t.flags&128)===128}var fm=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(fm||{}),hm=new Map,bC=0;function CC(){return bC++}function DC(t){hm.set(t[Ca],t)}function ou(t){hm.delete(t[Ca])}var xp="__ngContext__";function Mn(t,n){Dn(n)?(t[xp]=n[Ca],DC(n)):t[xp]=n}function pm(t){return mm(t[Zi])}function gm(t){return mm(t[xt])}function mm(t){for(;t!==null&&!nn(t);)t=t[xt];return t}var su;function ym(t){su=t}function EC(){if(su!==void 0)return su;if(typeof document<"u")return document;throw new x(210,!1)}var fd=new M("",{providedIn:"root",factory:()=>IC}),IC="ng",hd=new M(""),$t=new M("",{providedIn:"platform",factory:()=>"unknown"});var qL=new M(""),pd=new M("",{providedIn:"root",factory:()=>EC().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var MC="h",xC="b";var vm=!1,TC=new M("",{providedIn:"root",factory:()=>vm});var gd=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(gd||{}),Jr=new M("");var Rr=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Rr||{}),_m=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}return t})(),SC=[Rr.EarlyRead,Rr.Write,Rr.MixedReadWrite,Rr.Read],AC=(()=>{class t{ngZone=w(ae);scheduler=w(qr);errorHandler=w(Xt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(Jr,{optional:!0})}execute(){this.executing=!0;for(let e of SC)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[e]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>r.hooks[e](r.pipelinedValue),r.snapshot))}catch(i){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(7))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,r){return r?r.run(gd.AFTER_NEXT_RENDER,e):e()}static \u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}return t})(),au=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,r,i,o=null){this.impl=n,this.hooks=e,this.once=r,this.snapshot=o,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function md(t,n){!n?.injector&&pb(md);let e=n?.injector??w(we);return ar("NgAfterNextRender"),NC(t,e,n,!0)}function OC(t,n){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[n]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function NC(t,n,e,r){let i=n.get(_m);i.impl??=n.get(AC);let o=n.get(Jr,null,{optional:!0}),s=e?.phase??Rr.MixedReadWrite,a=e?.manualCleanup!==!0?n.get(cd):null,c=new au(i.impl,OC(t,s),r,a,o?.snapshot(null));return i.impl.register(c),c}var RC=()=>null;function yd(t,n,e=!1){return RC(t,n,e)}function wm(t,n){let e=t.contentQueries;if(e!==null){let r=Z(null);try{for(let i=0;it,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ts}function Na(t){return PC()?.createHTML(t)||t}var Ss;function kC(){if(Ss===void 0&&(Ss=null,et.trustedTypes))try{Ss=et.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ss}function Tp(t){return kC()?.createScriptURL(t)||t}var en=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Kp})`}},lu=class extends en{getTypeName(){return"HTML"}},uu=class extends en{getTypeName(){return"Style"}},du=class extends en{getTypeName(){return"Script"}},fu=class extends en{getTypeName(){return"URL"}},hu=class extends en{getTypeName(){return"ResourceURL"}};function Tt(t){return t instanceof en?t.changingThisBreaksApplicationSecurity:t}function Nn(t,n){let e=FC(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Kp})`)}return e===n}function FC(t){return t instanceof en&&t.getTypeName()||null}function bm(t){return new lu(t)}function Cm(t){return new uu(t)}function Dm(t){return new du(t)}function Em(t){return new fu(t)}function Im(t){return new hu(t)}function LC(t){let n=new gu(t);return VC()?new pu(n):n}var pu=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(Na(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},gu=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Na(n),e}};function VC(){try{return!!new window.DOMParser().parseFromString(Na(""),"text/html")}catch{return!1}}var jC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ra(t){return t=String(t),t.match(jC)?t:"unsafe:"+t}function on(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function ro(...t){let n={};for(let e of t)for(let r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}var Mm=on("area,br,col,hr,img,wbr"),xm=on("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tm=on("rp,rt"),BC=ro(Tm,xm),UC=ro(xm,on("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),$C=ro(Tm,on("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Sp=ro(Mm,UC,$C,BC),Sm=on("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),HC=on("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zC=on("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),qC=ro(Sm,HC,zC),GC=on("script,style,template"),mu=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,r=!0,i=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild){i.push(e),e=YC(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=ZC(e);if(o){e=o;break}e=i.pop()}}return this.buf.join("")}startElement(n){let e=Ap(n).toLowerCase();if(!Sp.hasOwnProperty(e))return this.sanitizedSomething=!0,!GC.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let r=n.attributes;for(let i=0;i"),!0}endElement(n){let e=Ap(n).toLowerCase();Sp.hasOwnProperty(e)&&!Mm.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(Op(n))}};function WC(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function ZC(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw Am(n);return n}function YC(t){let n=t.firstChild;if(n&&WC(t,n))throw Am(n);return n}function Ap(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function Am(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var QC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KC=/([^\#-~ |!])/g;function Op(t){return t.replace(/&/g,"&").replace(QC,function(n){let e=n.charCodeAt(0),r=n.charCodeAt(1);return"&#"+((e-55296)*1024+(r-56320)+65536)+";"}).replace(KC,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var As;function Om(t,n){let e=null;try{As=As||LC(t);let r=n?String(n):"";e=As.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=e.innerHTML,e=As.getInertBodyElement(r)}while(r!==o);let a=new mu().sanitizeChildren(Np(e)||e);return Na(a)}finally{if(e){let r=Np(e)||e;for(;r.firstChild;)r.firstChild.remove()}}}function Np(t){return"content"in t&&JC(t)?t.content:null}function JC(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ht=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ht||{});function Pa(t){let n=Rm();return n?n.sanitize(Ht.URL,t)||"":Nn(t,"URL")?Tt(t):Ra(Lr(t))}function XC(t){let n=Rm();if(n)return Tp(n.sanitize(Ht.RESOURCE_URL,t)||"");if(Nn(t,"ResourceURL"))return Tp(Tt(t));throw new x(904,!1)}function eD(t,n){return n==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||n==="href"&&(t==="base"||t==="link")?XC:Pa}function Nm(t,n,e){return eD(n,e)(t)}function Rm(){let t=V();return t&&t[Kt].sanitizer}var tD=/^>|^->||--!>|)/g,rD="\u200B$1\u200B";function iD(t){return t.replace(tD,n=>n.replace(nD,rD))}function GL(t){return t.ownerDocument.defaultView}function Pm(t){return t.ownerDocument}function km(t){return t instanceof Function?t():t}var xn=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(xn||{});function oD(t,n,e){let r=t.length;for(;;){let i=t.indexOf(n,e);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=n.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}e=i+1}}var Fm="ng-template";function sD(t,n,e,r){let i=0;if(r){for(;i-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),r&2&&l!==d){if(It(r))return!1;s=!0}}}}return It(r)||s}function It(t){return(t&1)===0}function lD(t,n,e,r){if(n===null)return-1;let i=0;if(r||!e){let o=!1;for(;i-1)for(e++;e0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!It(s)&&(n+=Rp(o,i),i=""),r=s,o=o||!It(r);e++}return i!==""&&(n+=Rp(o,i)),n}function gD(t){return t.map(pD).join(",")}function mD(t){let n=[],e=[],r=1,i=2;for(;rDe&&Vm(t,n,De,!1),lt(s?2:0,i),e(r,i)}finally{er(o),lt(s?3:1,i)}}function wd(t,n,e){Pg()&&(ND(t,n,e,gt(e,n)),(e.flags&64)===64&&Zm(t,n,e))}function bd(t,n,e=gt){let r=n.localNames;if(r!==null){let i=n.index+1;for(let o=0;onull;function MD(t,n,e,r,i,o){let s=n?n.injectorIndex:-1,a=0;return kg()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function kp(t,n,e,r,i){for(let o in n){if(!n.hasOwnProperty(o))continue;let s=n[o];if(s===void 0)continue;r??={};let a,c=xn.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(i!==null){if(!i.hasOwnProperty(o))continue;l=i[o]}t===0?Fp(r,e,l,a,c):Fp(r,e,l,a)}return r}function Fp(t,n,e,r,i){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,r):o=t[e]=[n,r],i!==void 0&&o.push(i)}function xD(t,n,e){let r=n.directiveStart,i=n.directiveEnd,o=t.data,s=n.attrs,a=[],c=null,l=null;for(let u=r;u0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function ND(t,n,e,r){let i=e.directiveStart,o=e.directiveEnd;Da(e)&&jD(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||Ys(e,n),Mn(r,n);let s=e.initialInputs;for(let a=i;a0&&(e[i-1][xt]=n),r0&&(t[e-1][xt]=r[xt]);let o=Us(t,We+n);ZD(r[j],r);let s=o[Jt];s!==null&&s.detachView(o[j]),r[Ne]=null,r[xt]=null,r[L]&=-129}return r}function Td(t,n){if(eo(n))return;let e=n[ge];e.destroyNode&&Va(t,n,e,3,null,null),QD(n)}function Rl(t,n){if(eo(n))return;let e=Z(null);try{n[L]&=-129,n[L]|=256,n[Xe]&&sl(n[Xe]),XD(t,n),JD(t,n),n[j].type===1&&n[ge].destroy();let r=n[Kn];if(r!==null&&nn(n[Ne])){r!==n[Ne]&&xd(r,n);let i=n[Jt];i!==null&&i.detachView(t)}ou(n)}finally{Z(e)}}function JD(t,n){let e=t.cleanup,r=n[Hs];if(e!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[e[s+1]];e[s].call(a)}r!==null&&(n[Hs]=null);let i=n[Cn];if(i!==null){n[Cn]=null;for(let s=0;s-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===jt.None||o===jt.Emulated)return null}return gt(r,e)}}function ty(t,n,e){return nE(t,n,e)}function tE(t,n,e){return t.type&40?gt(t,e):null}var nE=tE,Lp;function La(t,n,e,r){let i=ey(t,r,n),o=n[ge],s=r.parent||n[Qe],a=ty(s,r,n);if(i!=null)if(Array.isArray(e))for(let c=0;c{Ma(t.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function gE(t){let n=t[Xe]??Object.create(mE);return n.lView=t,n}var mE=H(C({},ki),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Xn(t.lView);for(;n&&!sy(n[j]);)n=Xn(n);n&&Ju(n)},consumerOnSignalRead(){this.lView[Xe]=this}});function sy(t){return t.type!==2}function ay(t){if(t[zs]===null)return;let n=!0;for(;n;){let e=!1;for(let r of t[zs])r.dirty&&(e=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=e&&!!(t[L]&8192)}}var yE=100;function cy(t,n=!0,e=0){let i=t[Kt].rendererFactory,o=!1;o||i.begin?.();try{vE(t,e)}catch(s){throw n&&Km(t,s),s}finally{o||i.end?.()}}function vE(t,n){let e=Lg();try{mp(!0),_u(t,n);let r=0;for(;Ia(t);){if(r===yE)throw new x(103,!1);r++,_u(t,1)}}finally{mp(e)}}function _E(t,n,e,r){if(eo(n))return;let i=n[L],o=!1,s=!1;rd(n);let a=!0,c=null,l=null;o||(sy(t)?(l=dE(n),c=ns(l)):Mh()===null?(a=!1,l=gE(n),c=ns(l)):n[Xe]&&(sl(n[Xe]),n[Xe]=null));try{Ag(n),Pb(t.bindingStartIndex),e!==null&&zm(t,n,e,2,r);let u=(i&3)===3;if(!o)if(u){let h=t.preOrderCheckHooks;h!==null&&ks(n,h,null)}else{let h=t.preOrderHooks;h!==null&&Fs(n,h,0,null),Al(n,0)}if(s||wE(n),ay(n),ly(n,0),t.contentQueries!==null&&wm(t,n),!o)if(u){let h=t.contentCheckHooks;h!==null&&ks(n,h)}else{let h=t.contentHooks;h!==null&&Fs(n,h,1),Al(n,1)}CE(t,n);let d=t.components;d!==null&&dy(n,d,0);let f=t.viewQuery;if(f!==null&&cu(2,f,r),!o)if(u){let h=t.viewCheckHooks;h!==null&&ks(n,h)}else{let h=t.viewHooks;h!==null&&Fs(n,h,2),Al(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Sl]){for(let h of n[Sl])h();n[Sl]=null}o||(n[L]&=-73)}catch(u){throw o||Ma(n),u}finally{l!==null&&(il(l,c),a&&hE(l)),id()}}function ly(t,n){for(let e=pm(t);e!==null;e=gm(e))for(let r=We;r-1&&(ea(n,r),Us(e,r))}this._attachedToViewContainer=!1}Td(this._lView[j],this._lView)}onDestroy(n){Og(this._lView,n)}markForCheck(){Nd(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Ju(this._cdRefInjectingView||this._lView)}detach(){this._lView[L]&=-129}reattach(){Zl(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,cy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=Gl(this._lView),e=this._lView[Kn];e!==null&&!n&&xd(e,this._lView),Jm(this._lView[j],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=n;let e=Gl(this._lView),r=this._lView[Kn];r!==null&&!e&&Xm(r,this._lView),Zl(this._lView)}},ft=(()=>{class t{static __NG_ELEMENT_ID__=IE}return t})(),DE=ft,EE=class extends DE{_declarationLView;_declarationTContainer;elementRef;constructor(n,e,r){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,r){let i=Ad(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:r});return new rr(i)}};function IE(){return ja(Oe(),V())}function ja(t,n){return t.type&4?new EE(n,t,Kr(t,n)):null}var ZL=new RegExp(`^(\\d+)*(${xC}|${MC})*(.*)`);var ME=()=>null;function ra(t,n){return ME(t,n)}var wu=class{},ia=class{},bu=class{resolveComponentFactory(n){throw Error(`No component factory found for ${Fe(n)}.`)}},Ut=class{static NULL=new bu},Gr=class{},St=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>xE()}return t})();function xE(){let t=V(),n=Oe(),e=Sn(n.index,t);return(Dn(e)?e:t)[ge]}var TE=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>null})}return t})();function oa(t,n,e){let r=e?t.styles:null,i=e?t.classes:null,o=0;if(n!==null)for(let s=0;s{class t{static __NG_ELEMENT_ID__=FE}return t})();function FE(){let t=Oe();return hy(t,V())}var LE=sn,fy=class extends LE{_lContainer;_hostTNode;_hostLView;constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return Kr(this._hostTNode,this._hostLView)}get injector(){return new Yn(this._hostTNode,this._hostLView)}get parentInjector(){let n=sd(this._hostTNode,this._hostLView);if(Zg(n)){let e=Ws(n,this._hostLView),r=Gs(n),i=e[j].data[r+8];return new Yn(i,e)}else return new Yn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=jp(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-We}createEmbeddedView(n,e,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=ra(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,i,ta(this._hostTNode,s)),a}createComponent(n,e,r,i,o){let s=n&&!mb(n),a;if(s)a=e;else{let b=e||{};a=b.index,r=b.injector,i=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef}let c=s?n:new Wr(En(n)),l=r||this.parentInjector;if(!o&&c.ngModule==null){let E=(s?l:this.parentInjector).get(Le,null);E&&(o=E)}let u=En(c.componentType??{}),d=ra(this._lContainer,u?.id??null),f=d?.firstChild??null,h=c.create(l,i,f,o);return this.insertImpl(h.hostView,a,ta(this._hostTNode,d)),h}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,r){let i=n._lView;if(Cb(i)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let c=i[Ne],l=new fy(c,c[Qe],c[Ne]);l.detach(l.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return Od(s,i,o,r),n.attachToViewContainerRef(),ug(Pl(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=jp(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),r=ea(this._lContainer,e);r&&(Us(Pl(this._lContainer),e),Td(r[j],r))}detach(n){let e=this._adjustIndex(n,-1),r=ea(this._lContainer,e);return r&&Us(Pl(this._lContainer),e)!=null?new rr(r):null}_adjustIndex(n,e=0){return n??this.length+e}};function jp(t){return t[qs]}function Pl(t){return t[qs]||(t[qs]=[])}function hy(t,n){let e,r=n[t.index];return nn(r)?e=r:(e=Qm(r,n,null,t),n[t.index]=e,Fa(n,e)),jE(e,n,t,r),new fy(e,t,n)}function VE(t,n){let e=t[ge],r=e.createComment(""),i=gt(n,t),o=e.parentNode(i);return Xs(e,o,r,e.nextSibling(i),!1),r}var jE=$E,BE=()=>!1;function UE(t,n,e){return BE(t,n,e)}function $E(t,n,e,r){if(t[Jn])return;let i;e.type&8?i=Vt(r):i=VE(n,e),t[Jn]=i}var Du=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Eu=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let r=n.contentQueries!==null?n.contentQueries[0]:e.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let l=o[a+1],u=n[-c];for(let d=We;dn.trim())}function my(t,n,e){t.queries===null&&(t.queries=new Iu),t.queries.track(new Mu(n,e))}function KE(t,n){let e=t.contentQueries||(t.contentQueries=[]),r=e.length?e[e.length-1]:-1;n!==r&&e.push(t.queries.length-1,n)}function Rd(t,n){return t.queries.getByIndex(n)}function JE(t,n){let e=t[j],r=Rd(e,n);return r.crossesNgTemplate?xu(e,t,n,[]):py(e,t,r,n)}function XE(t){let n=[],e=new Map;function r(i){let o=e.get(i);if(!o){let s=t(i);e.set(i,o=s.then(rI))}return o}return ca.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(r(i.templateUrl).then(l=>{i.template=l}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let l=i.styles.length,u=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(r(d).then(h=>{a[l+f]=h,u.splice(u.indexOf(d),1),u.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(r(i.styleUrl).then(l=>{a.push(l),i.styleUrl=void 0}));let c=Promise.all(s).then(()=>iI(o));n.push(c)}),tI(),Promise.all(n).then(()=>{})}var ca=new Map,eI=new Set;function tI(){let t=ca;return ca=new Map,t}function nI(){return ca.size===0}function rI(t){return typeof t=="string"?t:t.text()}function iI(t){eI.delete(t)}var Tn=class{},Yi=class{};var la=class extends Tn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new sa(this);constructor(n,e,r,i=!0){super(),this.ngModuleType=n,this._parent=e;let o=hg(n);this._bootstrapComponents=km(o.bootstrap),this._r3Injector=rm(n,e,[{provide:Tn,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver},...r],Fe(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},ua=class extends Yi{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new la(this.moduleType,n,[])}};function oI(t,n,e){return new la(t,n,e,!1)}var Tu=class extends Tn{injector;componentFactoryResolver=new sa(this);instance=null;constructor(n){super();let e=new Gi([...n.providers,{provide:Tn,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver}],n.parent||Zu(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Ba(t,n,e=null){return new Tu({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var sI=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let r=yg(!1,e.type),i=r.length>0?Ba([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(_(Le))})}return t})();function fe(t){return Ji(()=>{let n=yy(t),e=H(C({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===fm.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?i=>i.get(sI).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||jt.Emulated,styles:t.styles||Ge,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&ar("NgStandalone"),vy(e);let r=t.dependencies;return e.directiveDefs=da(r,!1),e.pipeDefs=da(r,!0),e.id=lI(e),e})}function aI(t){return En(t)||pg(t)}function cI(t){return t!==null}function ue(t){return Ji(()=>({type:t.type,bootstrap:t.bootstrap||Ge,declarations:t.declarations||Ge,imports:t.imports||Ge,exports:t.exports||Ge,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Bp(t,n){if(t==null)return Vr;let e={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=xn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),n?(e[o]=a!==xn.None?[r,a]:r,n[o]=s):e[o]=r}return e}function re(t){return Ji(()=>{let n=yy(t);return vy(n),n})}function Rn(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function yy(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||Vr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ge,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bp(t.inputs,n),outputs:Bp(t.outputs),debugInfo:null}}function vy(t){t.features?.forEach(n=>n(t))}function da(t,n){if(!t)return null;let e=n?gg:aI;return()=>(typeof t=="function"?t():t).map(r=>e(r)).filter(cI)}function lI(t){let n=0,e=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of r.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function uI(t){return Object.getPrototypeOf(t.prototype).constructor}function Pn(t){let n=uI(t.type),e=!0,r=[t];for(;n;){let i;if(In(t))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new x(903,!1);i=n.\u0275dir}if(i){if(e){r.push(i);let s=t;s.inputs=Os(t.inputs),s.inputTransforms=Os(t.inputTransforms),s.declaredInputs=Os(t.declaredInputs),s.outputs=Os(t.outputs);let a=i.hostBindings;a&&gI(t,a);let c=i.viewQuery,l=i.contentQueries;if(c&&hI(t,c),l&&pI(t,l),dI(t,i),Rw(t.outputs,i.outputs),In(i)&&i.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=t[r];i.hostVars=n+=i.hostVars,i.hostAttrs=zr(i.hostAttrs,e=zr(e,i.hostAttrs))}}function Os(t){return t===Vr?{}:t===Ge?[]:t}function hI(t,n){let e=t.viewQuery;e?t.viewQuery=(r,i)=>{n(r,i),e(r,i)}:t.viewQuery=n}function pI(t,n){let e=t.contentQueries;e?t.contentQueries=(r,i,o)=>{n(r,i,o),e(r,i,o)}:t.contentQueries=n}function gI(t,n){let e=t.hostBindings;e?t.hostBindings=(r,i)=>{n(r,i),e(r,i)}:t.hostBindings=n}function Pd(t){let n=t.inputConfig,e={};for(let r in n)if(n.hasOwnProperty(r)){let i=n[r];Array.isArray(i)&&i[3]&&(e[r]=i[3])}t.inputTransforms=e}function _y(t){return kd(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function mI(t,n){if(Array.isArray(t))for(let e=0;e{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var Ld=new M(""),io=new M(""),Ua=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(e,r,i){this._ngZone=e,this.registry=r,Vd||(CI(i),i.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(e)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,r,i),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,i){return[]}static \u0275fac=function(r){return new(r||t)(_(ae),_($a),_(io))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),$a=(()=>{class t{_applications=new Map;registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Vd?.findTestabilityInTree(this,e,r)??null}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function CI(t){Vd=t}var Vd;function lr(t){return!!t&&typeof t.then=="function"}function Cy(t){return!!t&&typeof t.subscribe=="function"}var Ha=new M("");var Dy=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r});appInits=w(Ha,{optional:!0})??[];injector=w(we);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let i of this.appInits){let o=Ye(this.injector,i);if(lr(o))e.push(o);else if(Cy(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});e.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),e.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),DI=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>new Au})}return t})(),Au=class{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}remove(n){let e=n.zone,r=this.queues.get(e);r.has(n)&&(r.delete(n),this.queuedEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let r=this.queues.get(e);r.has(n)||(this.queuedEffectCount++,r.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run()}},za=new M("");function EI(){kh(()=>{throw new x(600,!1)})}function II(t){return t.isBoundToModule}var MI=10;function xI(t,n,e){try{let r=e();return lr(r)?r.catch(i=>{throw n.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>t.handleError(r)),r}}function Ey(t,n){return Array.isArray(n)?n.reduce(Ey,t):C(C({},t),n)}var Ze=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(pC);afterRenderManager=w(_m);zonelessEnabled=w(ld);rootEffectScheduler=w(DI);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new te;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=w(rn).hasPendingTasks.pipe(U(e=>!e));constructor(){w(Jr,{optional:!0})}whenStable(){let e;return new Promise(r=>{e=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{e.unsubscribe()})}_injector=w(Le);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,r){let i=e instanceof ia;if(!this._injector.get(Dy).done){let f=!i&&mg(e),h=!1;throw new x(405,h)}let s;i?s=e:s=this._injector.get(Ut).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let a=II(s)?void 0:this._injector.get(Tn),c=r||s.selector,l=s.create(we.NULL,[],c,a),u=l.location.nativeElement,d=l.injector.get(Ld,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Vs(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(gd.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new x(101,!1);let e=Z(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,Z(e),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Gr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let e=0;for(;this.dirtyFlags!==0&&e++Ia(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){let r=e;Vs(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(za,[]).forEach(i=>i(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Vs(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new x(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vs(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function TI(t,n,e,r){if(!e&&!Ia(t))return;cy(t,n,e&&!r?0:1)}function ur(t,n,e,r){let i=V(),o=no();if(ht(i,o,n)){let s=me(),a=od();BD(a,i,t,n,e,r)}return ur}function Iy(t,n,e,r){return ht(t,no(),e)?n+Lr(e)+r:tt}function SI(t,n,e,r,i,o){let s=Rb(),a=Qi(t,s,e,i);return td(2),a?n+Lr(e)+r+Lr(i)+o:tt}function Ns(t,n){return t<<17|n<<2}function ir(t){return t>>17&32767}function AI(t){return(t&2)==2}function OI(t,n){return t&131071|n<<17}function Ou(t){return t|2}function Zr(t){return(t&131068)>>2}function kl(t,n){return t&-131069|n<<2}function NI(t){return(t&1)===1}function Nu(t){return t|1}function RI(t,n,e,r,i,o){let s=o?n.classBindings:n.styleBindings,a=ir(s),c=Zr(s);t[r]=e;let l=!1,u;if(Array.isArray(e)){let d=e;u=d[1],(u===null||Xi(d,u)>0)&&(l=!0)}else u=e;if(i)if(c!==0){let f=ir(t[a+1]);t[r+1]=Ns(f,a),f!==0&&(t[f+1]=kl(t[f+1],r)),t[a+1]=OI(t[a+1],r)}else t[r+1]=Ns(a,0),a!==0&&(t[a+1]=kl(t[a+1],r)),a=r;else t[r+1]=Ns(c,0),a===0?a=r:t[c+1]=kl(t[c+1],r),c=r;l&&(t[r+1]=Ou(t[r+1])),Up(t,u,r,!0),Up(t,u,r,!1),PI(n,u,t,r,o),s=Ns(a,c),o?n.classBindings=s:n.styleBindings=s}function PI(t,n,e,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Xi(o,n)>=0&&(e[r+1]=Nu(e[r+1]))}function Up(t,n,e,r){let i=t[e+1],o=n===null,s=r?ir(i):Zr(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];kI(c,n)&&(a=!0,t[s+1]=r?Nu(l):Ou(l)),s=r?ir(l):Zr(l)}a&&(t[e+1]=r?Ou(i):Nu(i))}function kI(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Xi(t,n)>=0:!1}var Mt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function FI(t){return t.substring(Mt.key,Mt.keyEnd)}function LI(t){return VI(t),My(t,xy(t,0,Mt.textEnd))}function My(t,n){let e=Mt.textEnd;return e===n?-1:(n=Mt.keyEnd=jI(t,Mt.key=n,e),xy(t,n,e))}function VI(t){Mt.key=0,Mt.keyEnd=0,Mt.value=0,Mt.valueEnd=0,Mt.textEnd=t.length}function xy(t,n,e){for(;n32;)n++;return n}function y(t,n,e){let r=V(),i=no();if(ht(r,i,n)){let o=me(),s=od();Gm(o,s,r,t,n,r[ge],e,!1)}return y}function Ru(t,n,e,r,i){let o=n.inputs,s=i?"class":"style";Ed(t,e,o[s],s,r)}function Ty(t,n,e){return Ay(t,n,e,!1),Ty}function he(t,n){return Ay(t,n,null,!0),he}function an(t){Oy(qI,Sy,t,!0)}function Sy(t,n){for(let e=LI(n);e>=0;e=My(n,e))_a(t,FI(n),!0)}function Ay(t,n,e,r){let i=V(),o=me(),s=td(2);if(o.firstUpdatePass&&Ry(o,t,s,r),n!==tt&&ht(i,s,n)){let a=o.data[On()];Py(o,a,i,i[ge],t,i[s+1]=WI(n,e),r,s)}}function Oy(t,n,e,r){let i=me(),o=td(2);i.firstUpdatePass&&Ry(i,null,o,r);let s=V();if(e!==tt&&ht(s,o,e)){let a=i.data[On()];if(ky(a,r)&&!Ny(i,o)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(e=jl(c,e||"")),Ru(i,a,s,e,r)}else GI(i,a,s,s[ge],s[o+1],s[o+1]=zI(t,n,e),r,o)}}function Ny(t,n){return n>=t.expandoStartIndex}function Ry(t,n,e,r){let i=t.data;if(i[e+1]===null){let o=i[On()],s=Ny(t,e);ky(o,r)&&n===null&&!s&&(n=!1),n=BI(i,o,n,r),RI(i,o,n,e,s,r)}}function BI(t,n,e,r){let i=Vb(t),o=r?n.residualClasses:n.residualStyles;if(i===null)(r?n.classBindings:n.styleBindings)===0&&(e=Fl(null,t,n,e,r),e=Ki(e,n.attrs,r),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==i)if(e=Fl(i,t,n,e,r),o===null){let c=UI(t,n,r);c!==void 0&&Array.isArray(c)&&(c=Fl(null,t,n,c[1],r),c=Ki(c,n.attrs,r),$I(t,n,r,c))}else o=HI(t,n,r)}return o!==void 0&&(r?n.residualClasses=o:n.residualStyles=o),e}function UI(t,n,e){let r=e?n.classBindings:n.styleBindings;if(Zr(r)!==0)return t[ir(r)]}function $I(t,n,e,r){let i=e?n.classBindings:n.styleBindings;t[ir(i)]=r}function HI(t,n,e){let r,i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let c=t[i],l=Array.isArray(c),u=l?c[1]:c,d=u===null,f=e[i+1];f===tt&&(f=d?Ge:void 0);let h=d?xl(f,r):u===r?f:void 0;if(l&&!fa(h)&&(h=xl(c,r)),fa(h)&&(a=h,s))return a;let b=t[i+1];i=s?ir(b):Zr(b)}if(n!==null){let c=o?n.residualClasses:n.residualStyles;c!=null&&(a=xl(c,r))}return a}function fa(t){return t!==void 0}function WI(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Fe(Tt(t)))),t}function ky(t,n){return(t.flags&(n?8:16))!==0}function Fy(t,n,e){let r=V(),i=Iy(r,t,n,e);Oy(_a,Sy,i,!0)}function QL(t,n){ar("NgControlFlow");let e=V(),r=no(),i=e[r]!==tt?e[r]:-1,o=i!==-1?Hp(e,De+i):void 0,s=0;if(ht(e,r,t)){let a=Z(null);try{if(o!==void 0&&lE(o,s),t!==-1){let c=De+t,l=Hp(e,c),u=ZI(e[j],c),d=ra(l,u.tView.ssrId),f=Ad(e,u,n,{dehydratedView:d});Od(l,f,s,ta(u,d))}}finally{Z(a)}}else if(o!==void 0){let a=cE(o,s);a!==void 0&&(a[ut]=n)}}function Hp(t,n){return t[n]}function ZI(t,n){return Qu(t,n)}function YI(t,n,e,r,i,o){let s=n.consts,a=Hr(s,i),c=Xr(n,t,2,r,a);return Dd(n,e,c,Hr(s,o)),c.attrs!==null&&oa(c,c.attrs,!1),c.mergedAttrs!==null&&oa(c,c.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,c),c}function m(t,n,e,r){let i=V(),o=me(),s=De+t,a=i[ge],c=o.firstCreatePass?YI(s,o,i,n,e,r):o.data[s],l=QI(o,i,c,a,n,t);i[s]=l;let u=Ea(c);return sr(c,!0),iy(a,l,c),!vI(c)&&Ta()&&La(o,i,l,c),Mb()===0&&Mn(l,i),xb(),u&&(wd(o,i,c),vd(o,c,i)),r!==null&&bd(i,c),m}function v(){let t=Oe();Xu()?ed():(t=t.parent,sr(t,!1));let n=t;Sb(n)&&Ab(),Tb();let e=me();return e.firstCreatePass&&(Aa(e,t),Yu(t)&&e.queries.elementEnd(t)),n.classesWithoutHost!=null&&Gb(n)&&Ru(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Wb(n)&&Ru(e,n,V(),n.stylesWithoutHost,!1),v}function Re(t,n,e,r){return m(t,n,e,r),v(),Re}var QI=(t,n,e,r,i,o)=>(Sa(!0),Um(r,i,$b()));function KI(t,n,e,r,i){let o=n.consts,s=Hr(o,r),a=Xr(n,t,8,"ng-container",s);s!==null&&oa(a,s,!0);let c=Hr(o,i);return Dd(n,e,a,c),n.queries!==null&&n.queries.elementStart(n,a),a}function ye(t,n,e){let r=V(),i=me(),o=t+De,s=i.firstCreatePass?KI(o,i,r,n,e):i.data[o];sr(s,!0);let a=JI(i,r,s,t);return r[o]=a,Ta()&&La(i,r,a,s),Mn(a,r),Ea(s)&&(wd(i,r,s),vd(i,s,r)),e!=null&&bd(r,s),ye}function ve(){let t=Oe(),n=me();return Xu()?ed():(t=t.parent,sr(t,!1)),n.firstCreatePass&&(Aa(n,t),Yu(t)&&n.queries.elementEnd(t)),ve}function mt(t,n,e){return ye(t,n,e),ve(),mt}var JI=(t,n,e,r)=>(Sa(!0),_D(n[ge],""));function W(){return V()}var ha="en-US";var XI=ha;function eM(t){typeof t=="string"&&(XI=t.toLowerCase().replace(/_/g,"-"))}var tM=(t,n,e)=>{};function O(t,n,e,r){let i=V(),o=me(),s=Oe();return Ly(o,i,i[ge],s,t,n,r),O}function nM(t,n,e,r){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Ly(t,n,e,r,i,o,s){let a=Ea(r),l=t.firstCreatePass&&Rg(t),u=n[ut],d=Ng(n),f=!0;if(r.type&3||s){let E=gt(r,n),T=s?s(E):E,k=d.length,oe=s?Be=>s(Vt(Be[r.index])):r.index,X=null;if(!s&&a&&(X=nM(t,n,i,r.index)),X!==null){let Be=X.__ngLastListenerFn__||X;Be.__ngNextListenerFn__=o,X.__ngLastListenerFn__=o,f=!1}else{o=qp(r,n,u,o),tM(E,i,o);let Be=e.listen(T,i,o);d.push(o,Be),l&&l.push(i,oe,k,k+1)}}else o=qp(r,n,u,o);let h=r.outputs,b;if(f&&h!==null&&(b=h[i])){let E=b.length;if(E)for(let T=0;T-1?Sn(t.index,n):n;Nd(s,5);let a=zp(n,e,r,o),c=i.__ngNextListenerFn__;for(;c;)a=zp(n,e,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function g(t=1){return Bb(t)}function rM(t,n){let e=null,r=uD(t);for(let i=0;i=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}function At(t){let n=Nb();return to(n,De+t)}function A(t,n=""){let e=V(),r=me(),i=t+De,o=r.firstCreatePass?Xr(r,i,1,n,null):r.data[i],s=sM(r,e,o,n,t);e[i]=s,Ta()&&La(r,e,s,o),sr(o,!1)}var sM=(t,n,e,r,i)=>(Sa(!0),yD(n[ge],r));function Ie(t){return de("",t,""),Ie}function de(t,n,e){let r=V(),i=Iy(r,t,n,e);return i!==tt&&Vy(r,On(),i),de}function jd(t,n,e,r,i){let o=V(),s=SI(o,t,n,e,r,i);return s!==tt&&Vy(o,On(),s),jd}function Vy(t,n,e){let r=Sg(n,t);vD(t[ge],r,e)}function so(t,n,e){um(n)&&(n=n());let r=V(),i=no();if(ht(r,i,n)){let o=me(),s=od();Gm(o,s,r,t,n,r[ge],e,!1)}return so}function Ga(t,n){let e=um(t);return e&&t.set(n),e}function ao(t,n){let e=V(),r=me(),i=Oe();return Ly(r,e,e[ge],i,t,n),ao}function aM(t,n,e){let r=me();if(r.firstCreatePass){let i=In(t);Pu(e,r.data,r.blueprint,i,!0),Pu(n,r.data,r.blueprint,i,!1)}}function Pu(t,n,e,r,i){if(t=ke(t),Array.isArray(t))for(let o=0;o>20;if(Br(t)||!t.multi){let h=new tr(l,i,I),b=Vl(c,n,i?u:u+f,d);b===-1?(Xl(Ys(a,s),o,c),Ll(o,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(h),s.push(h)):(e[b]=h,s[b]=h)}else{let h=Vl(c,n,u+f,d),b=Vl(c,n,u,u+f),E=h>=0&&e[h],T=b>=0&&e[b];if(i&&!T||!i&&!E){Xl(Ys(a,s),o,c);let k=uM(i?lM:cM,e.length,i,r,l);!i&&T&&(e[b].providerFactory=k),Ll(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(k),s.push(k)}else{let k=jy(e[i?b:h],l,!i&&r);Ll(o,t,h>-1?h:b,k)}!i&&r&&T&&e[b].componentProviders++}}}function Ll(t,n,e,r){let i=Br(n),o=ab(n);if(i||o){let c=(o?ke(n.useClass):n).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!i&&n.multi){let u=l.indexOf(e);u===-1?l.push(e,[r,c]):l[u+1].push(r,c)}else l.push(e,c)}}}function jy(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Vl(t,n,e,r){for(let i=e;i{e.providersResolver=(r,i)=>aM(r,i?i(t):t,n)}}function Bd(t,n,e){let r=t.\u0275cmp;r.directiveDefs=da(n,!1),r.pipeDefs=da(e,!0)}function KL(t,n,e){let r=An()+t,i=V();return i[r]===tt?cr(i,r,e?n.call(e):n()):wy(i,r)}function kn(t,n,e,r){return $y(V(),An(),t,n,e,r)}function By(t,n,e,r,i,o,s,a,c,l,u){let d=An()+t,f=V(),h=Su(f,d,e,r,i,o);return Su(f,d+4,s,a,c,l)||h?cr(f,d+8,u?n.call(u,e,r,i,o,s,a,c,l):n(e,r,i,o,s,a,c,l)):wy(f,d+8)}function Uy(t,n,e,r){return pM(V(),An(),t,n,e,r)}function lo(t,n){let e=t[n];return e===tt?void 0:e}function $y(t,n,e,r,i,o){let s=n+e;return ht(t,s,i)?cr(t,s+1,o?r.call(o,i):r(i)):lo(t,s+1)}function dM(t,n,e,r,i,o,s){let a=n+e;return Qi(t,a,i,o)?cr(t,a+2,s?r.call(s,i,o):r(i,o)):lo(t,a+2)}function fM(t,n,e,r,i,o,s,a){let c=n+e;return yI(t,c,i,o,s)?cr(t,c+3,a?r.call(a,i,o,s):r(i,o,s)):lo(t,c+3)}function hM(t,n,e,r,i,o,s,a,c){let l=n+e;return Su(t,l,i,o,s,a)?cr(t,l+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):lo(t,l+4)}function pM(t,n,e,r,i,o){let s=n+e,a=!1;for(let c=0;c=0;e--){let r=n[e];if(t===r.name)return r}}function JL(t,n,e){let r=t+De,i=V(),o=to(i,r);return Wa(i,r)?$y(i,An(),n,o.transform,e,o):o.transform(e)}function XL(t,n,e,r){let i=t+De,o=V(),s=to(o,i);return Wa(o,i)?dM(o,An(),n,s.transform,e,r,s):s.transform(e,r)}function ti(t,n,e,r,i){let o=t+De,s=V(),a=to(s,o);return Wa(s,o)?fM(s,An(),n,a.transform,e,r,i,a):a.transform(e,r,i)}function Hy(t,n,e,r,i,o){let s=t+De,a=V(),c=to(a,s);return Wa(a,s)?hM(a,An(),n,c.transform,e,r,i,o,c):c.transform(e,r,i,o)}function Wa(t,n){return t[j].data[n].pure}function cn(t,n){return ja(t,n)}var Rs=null;function mM(t){Rs!==null&&(t.defaultEncapsulation!==Rs.defaultEncapsulation||t.preserveWhitespaces!==Rs.preserveWhitespaces)||(Rs=t)}var Fu=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},Za=(()=>{class t{compileModuleSync(e){return new ua(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let r=this.compileModuleSync(e),i=hg(e),o=km(i.declarations).reduce((s,a)=>{let c=En(a);return c&&s.push(new Wr(c)),s},[]);return new Fu(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yM=new M("");function vM(t,n,e){let r=new ua(e);return Promise.resolve(r)}function Gp(t){for(let n=t.length-1;n>=0;n--)if(t[n]!==void 0)return t[n]}var _M=(()=>{class t{zone=w(ae);changeDetectionScheduler=w(qr);applicationRef=w(Ze);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wM({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(H(C({},zy()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:jr,multi:!0,useFactory:()=>{let r=w(_M,{optional:!0});return()=>r.initialize()}},{provide:jr,multi:!0,useFactory:()=>{let r=w(bM);return()=>{r.initialize()}}},n===!0?{provide:om,useValue:!0}:[],{provide:sm,useValue:e??im}]}function zy(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var bM=(()=>{class t{subscription=new _e;initialized=!1;zone=w(ae);pendingTasks=w(rn);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var CM=(()=>{class t{appRef=w(Ze);taskService=w(rn);ngZone=w(ae);zonelessEnabled=w(ld);tracing=w(Jr,{optional:!0});disableScheduling=w(om,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new _e;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ks):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(sm,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Js||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let r=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Cp:am;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ks+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(e),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Cp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DM(){return typeof $localize<"u"&&$localize.locale||ha}var Ud=new M("",{providedIn:"root",factory:()=>w(Ud,q.Optional|q.SkipSelf)||DM()});var pa=new M(""),EM=new M("");function Bi(t){return!t.moduleRef}function IM(t){let n=Bi(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{Bi(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=n.get(Xt,null),i;if(e.runOutsideAngular(()=>{i=e.onError.subscribe({next:o=>{r.handleError(o)}})}),Bi(t)){let o=()=>n.destroy(),s=t.platformInjector.get(pa);s.add(o),n.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(pa);s.add(o),t.moduleRef.onDestroy(()=>{Vs(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return xI(r,e,()=>{let o=n.get(Dy);return o.runInitializers(),o.donePromise.then(()=>{let s=n.get(Ud,ha);if(eM(s||ha),!n.get(EM,!0))return Bi(t)?n.get(Ze):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Bi(t)){let c=n.get(Ze);return t.rootComponent!==void 0&&c.bootstrap(t.rootComponent),c}else return MM(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function MM(t,n){let e=t.injector.get(Ze);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>e.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new x(-403,!1);n.push(t)}var qy=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,r){let i=r?.scheduleInRootZone,o=()=>hC(r?.ngZone,H(C({},zy({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:i})),s=r?.ignoreChangesOutsideZone,a=[wM({ngZoneFactory:o,ignoreChangesOutsideZone:s}),{provide:qr,useExisting:CM}],c=oI(e.moduleType,this.injector,a);return IM({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,r=[]){let i=Ey({},r);return vM(this.injector,i,e).then(o=>this.bootstrapModuleFactory(o,i))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new x(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let e=this._injector.get(pa,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||t)(_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zi=null,Gy=new M("");function xM(t){if(zi&&!zi.get(Gy,!1))throw new x(400,!1);EI(),zi=t;let n=t.get(qy);return AM(t),n}function $d(t,n,e=[]){let r=`Platform: ${n}`,i=new M(r);return(o=[])=>{let s=Wy();if(!s||s.injector.get(Gy,!1)){let a=[...e,...o,{provide:i,useValue:!0}];t?t(a):xM(TM(a,r))}return SM(i)}}function TM(t=[],n){return we.create({name:n,providers:[{provide:ba,useValue:"platform"},{provide:pa,useValue:new Set([()=>zi=null])},...t]})}function SM(t){let n=Wy();if(!n)throw new x(401,!1);return n}function Wy(){return zi?.get(qy)??null}function AM(t){let n=t.get(hd,null);Ye(t,()=>{n?.forEach(e=>e())})}function eV(){return!1}var Fn=(()=>{class t{static __NG_ELEMENT_ID__=OM}return t})();function OM(t){return NM(Oe(),V(),(t&16)===16)}function NM(t,n,e){if(Da(t)&&!e){let r=Sn(t.index,n);return new rr(r,r)}else if(t.type&175){let r=n[dt];return new rr(r,n)}return null}var Lu=class{constructor(){}supports(n){return _y(n)}create(n){return new Vu(n)}},RM=(t,n)=>n,Vu=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||RM}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){let s=!r||e&&e.currentIndex{s=this._trackByFn(i,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,i),r=!0):(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,r,i){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,i)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,i),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,i)):n=this._addAfter(new ju(e,r),o,i)),n}_verifyReinsertion(n,e,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let i=n._prevRemoved,o=n._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){let i=e===null?this._itHead:e._next;return n._next=i,n._prev=e,i===null?this._itTail=n:i._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new ga),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,r=n._next;return e===null?this._itHead=r:e._next=r,r===null?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ga),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},ju=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}},Bu=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let r;for(r=this._head;r!==null;r=r._nextDup)if((e===null||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let e=n._prevDup,r=n._nextDup;return e===null?this._head=r:e._nextDup=r,r===null?this._tail=e:r._prevDup=e,this._head===null}},ga=class{map=new Map;put(n){let e=n.trackById,r=this.map.get(e);r||(r=new Bu,this.map.set(e,r)),r.add(n)}get(n,e){let r=n,i=this.map.get(r);return i?i.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Wp(t,n,e){let r=t.previousIndex;if(r===null)return r;let i=0;return e&&r{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){let r=n._prev;return e._next=n,e._prev=r,n._prev=e,r&&(r._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let i=this._records.get(n);this._maybeAddToChanges(i,e);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let r=new Hu(n);return this._records.set(n,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(r=>e(n[r],r))}},Hu=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function Zp(){return new Hd([new Lu])}var Hd=(()=>{class t{factories;static \u0275prov=D({token:t,providedIn:"root",factory:Zp});constructor(e){this.factories=e}static create(e,r){if(r!=null){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||Zp()),deps:[[t,new lg,new qu]]}}find(e){let r=this.factories.find(i=>i.supports(e));if(r!=null)return r;throw new x(901,!1)}}return t})();function Yp(){return new zd([new Uu])}var zd=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:Yp});factories;constructor(e){this.factories=e}static create(e,r){if(r){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||Yp()),deps:[[t,new lg,new qu]]}}find(e){let r=this.factories.find(i=>i.supports(e));if(r)return r;throw new x(901,!1)}}return t})();var Zy=$d(null,"core",[]),Yy=(()=>{class t{constructor(e){}static \u0275fac=function(r){return new(r||t)(_(Ze))};static \u0275mod=ue({type:t});static \u0275inj=le({})}return t})();function hr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function PM(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}function Ya(t,n){ar("NgSignals");let e=Nh(t);return n?.equal&&(e[Ke].equal=n.equal),e}function Ln(t){let n=Z(null);try{return t()}finally{Z(n)}}var Qp=class{[Ke];constructor(n){this[Ke]=n}destroy(){this[Ke].destroy()}};function Qy(t){let n=En(t);if(!n)return null;let e=new Wr(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var nv=null;function Ot(){return nv}function rv(t){nv??=t}var Qa=class{};var xe=new M(""),Qd=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(kM),providedIn:"platform"})}return t})(),iv=new M(""),kM=(()=>{class t extends Qd{_location;_history;_doc=w(xe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ot().getBaseHref(this._doc)}onPopState(e){let r=Ot().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=Ot().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,r,i){this._history.pushState(e,r,i)}replaceState(e,r,i){this._history.replaceState(e,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Kd(t,n){if(t.length==0)return n;if(n.length==0)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,e==2?t+n.substring(1):e==1?t+n:t+"/"+n}function Ky(t){let n=t.match(/#|\?|$/),e=n&&n.index||t.length,r=e-(t[e-1]==="/"?1:0);return t.slice(0,r)+t.slice(e)}function ln(t){return t&&t[0]!=="?"?"?"+t:t}var un=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(Jd),providedIn:"root"})}return t})(),ov=new M(""),Jd=(()=>{class t extends un{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??w(xe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Kd(this._baseHref,e)}path(e=!1){let r=this._platformLocation.pathname+ln(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+ln(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+ln(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(_(Qd),_(ov,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sv=(()=>{class t extends un{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(e){let r=Kd(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+ln(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+ln(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(_(Qd),_(ov,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),ri=(()=>{class t{_subject=new te;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=VM(Ky(Jy(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+ln(r))}normalize(e){return t.stripTrailingSlash(LM(this._basePath,Jy(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ln(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ln(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=ln;static joinWithSlash=Kd;static stripTrailingSlash=Ky;static \u0275fac=function(r){return new(r||t)(_(un))};static \u0275prov=D({token:t,factory:()=>FM(),providedIn:"root"})}return t})();function FM(){return new ri(_(un))}function LM(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function Jy(t){return t.replace(/\/index.html$/,"")}function VM(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function Ka(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[i,o]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var qd=/\s+/,Xy=[],dn=(()=>{class t{_ngEl;_renderer;initialClasses=Xy;rawClass;stateMap=new Map;constructor(e,r){this._ngEl=e,this._renderer=r}set klass(e){this.initialClasses=e!=null?e.trim().split(qd):Xy}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(qd):e}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,!0);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff()}_updateState(e,r){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],i=e[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(qd).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(r){return new(r||t)(I(Ee),I(St))};static \u0275dir=re({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Gd=class{$implicit;ngForOf;index;count;constructor(n,e,r,i){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ve=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Gd(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),ev(a,i)}});for(let i=0,o=r.length;i{let o=r.get(i.currentIndex);ev(o,i)})}static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(I(sn),I(ft),I(Hd))};static \u0275dir=re({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function ev(t,n){t.context.$implicit=n.item}var it=(()=>{class t{_viewContainer;_context=new Wd;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,r){this._viewContainer=e,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){tv("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){tv("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(I(sn),I(ft))};static \u0275dir=re({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Wd=class{$implicit=null;ngIf=null};function tv(t,n){if(!!!(!n||n.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Fe(n)}'.`)}var av=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,r,i){this._ngEl=e,this._differs=r,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){let[i,o]=e.split("."),s=i.indexOf("-")===-1?void 0:Bt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||t)(I(Ee),I(zd),I(St))};static \u0275dir=re({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),ii=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(e,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||t)(I(sn))};static \u0275dir=re({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[pt]})}return t})();var IV=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=Rn({name:"json",type:t,pure:!1})}return t})();var Pe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({})}return t})(),Xd="browser",jM="server";function MV(t){return t===Xd}function oi(t){return t===jM}var cv=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>new Zd(w(xe),window)})}return t})(),Zd=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=BM(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function BM(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}var ni=class{};var fo=class{},Xa=class{},ot=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` +`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var tf=class{encodeKey(n){return lv(n)}encodeValue(n){return lv(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function UM(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var $M=/%(\d[a-f0-9])/gi,HM={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function lv(t){return encodeURIComponent(t).replace($M,(n,e)=>HM[e]??n)}function Ja(t){return`${t}`}var Vn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new tf,n.fromString){if(n.fromObject)throw new x(2805,!1);this.map=UM(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(Ja):[Ja(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Ja(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(Ja(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var nf=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function zM(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function uv(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function dv(t){return typeof Blob<"u"&&t instanceof Blob}function fv(t){return typeof FormData<"u"&&t instanceof FormData}function qM(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var hv="Content-Type",yv="X-Request-URL",vv="text/plain",_v="application/json",GM=`${_v}, ${vv}, */*`,uo=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,e,r,i){this.url=e,this.method=n.toUpperCase();let o;if(zM(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new ot,this.context??=new nf,!this.params)this.params=new Vn,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":af.set(h,n.setHeaders[h]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new t(e,r,s,{params:u,headers:l,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},si=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(si||{}),ho=class{headers;status;statusText;url;ok;type;constructor(n,e=200,r="OK"){this.headers=n.headers||new ot,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},rf=class t extends ho{constructor(n={}){super(n)}type=si.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},ec=class t extends ho{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=si.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},ai=class extends ho{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},WM=200,ZM=204;function ef(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var of=(()=>{class t{handler;constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof uo)o=e;else{let c;i.headers instanceof ot?c=i.headers:c=new ot(i.headers);let l;i.params&&(i.params instanceof Vn?l=i.params:l=new Vn({fromObject:i.params})),o=new uo(e,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=P(o).pipe(Yt(c=>this.handler.handle(c)));if(e instanceof uo||i.observe==="events")return s;let a=s.pipe(He(c=>c instanceof ec));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(U(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(U(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new Vn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,ef(i,r))}post(e,r,i={}){return this.request("POST",e,ef(i,r))}put(e,r,i={}){return this.request("PUT",e,ef(i,r))}static \u0275fac=function(r){return new(r||t)(_(fo))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var YM=new M("");function wv(t,n){return n(t)}function QM(t,n){return(e,r)=>n.intercept(e,{handle:i=>t(i,r)})}function KM(t,n,e){return(r,i)=>Ye(e,()=>n(r,o=>t(o,i)))}var JM=new M(""),sf=new M(""),XM=new M(""),bv=new M("",{providedIn:"root",factory:()=>!0});function ex(){let t=null;return(n,e)=>{t===null&&(t=(w(JM,{optional:!0})??[]).reduceRight(QM,wv));let r=w(rn);if(w(bv)){let o=r.add();return t(n,e).pipe(wn(()=>r.remove(o)))}else return t(n,e)}}var pv=(()=>{class t extends fo{backend;injector;chain=null;pendingTasks=w(rn);contributeToStability=w(bv);constructor(e,r){super(),this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(sf),...this.injector.get(XM,[])]));this.chain=r.reduceRight((i,o)=>KM(i,o,this.injector),wv)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(wn(()=>this.pendingTasks.remove(r)))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(_(Xa),_(Le))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var tx=/^\)\]\}',?\n/,nx=RegExp(`^${yv}:`,"m");function rx(t){return"responseURL"in t&&t.responseURL?t.responseURL:nx.test(t.getAllResponseHeaders())?t.getResponseHeader(yv):null}var gv=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new x(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ee(r.\u0275loadImpl()):P(null)).pipe(ze(()=>new z(o=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,T)=>s.setRequestHeader(E,T.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept",GM),!e.headers.has(hv)){let E=e.detectContentTypeHeader();E!==null&&s.setRequestHeader(hv,E)}if(e.responseType){let E=e.responseType.toLowerCase();s.responseType=E!=="json"?E:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let E=s.statusText||"OK",T=new ot(s.getAllResponseHeaders()),k=rx(s)||e.url;return c=new rf({headers:T,status:s.status,statusText:E,url:k}),c},u=()=>{let{headers:E,status:T,statusText:k,url:oe}=l(),X=null;T!==ZM&&(X=typeof s.response>"u"?s.responseText:s.response),T===0&&(T=X?WM:0);let Be=T>=200&&T<300;if(e.responseType==="json"&&typeof X=="string"){let vn=X;X=X.replace(tx,"");try{X=X!==""?JSON.parse(X):null}catch(Ue){X=vn,Be&&(Be=!1,X={error:Ue,text:X})}}Be?(o.next(new ec({body:X,headers:E,status:T,statusText:k,url:oe||void 0})),o.complete()):o.error(new ai({error:X,headers:E,status:T,statusText:k,url:oe||void 0}))},d=E=>{let{url:T}=l(),k=new ai({error:E,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});o.error(k)},f=!1,h=E=>{f||(o.next(l()),f=!0);let T={type:si.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(T.total=E.total),e.responseType==="text"&&s.responseText&&(T.partialText=s.responseText),o.next(T)},b=E=>{let T={type:si.UploadProgress,loaded:E.loaded};E.lengthComputable&&(T.total=E.total),o.next(T)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:si.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),e.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(_(ni))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Cv=new M(""),ix="XSRF-TOKEN",ox=new M("",{providedIn:"root",factory:()=>ix}),sx="X-XSRF-TOKEN",ax=new M("",{providedIn:"root",factory:()=>sx}),tc=class{},cx=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ka(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)(_(xe),_($t),_(ox))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function lx(t,n){let e=t.url.toLowerCase();if(!w(Cv)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let r=w(tc).getToken(),i=w(ax);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),n(t)}var Dv=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Dv||{});function ux(t,n){return{\u0275kind:t,\u0275providers:n}}function Ev(...t){let n=[of,gv,pv,{provide:fo,useExisting:pv},{provide:Xa,useFactory:()=>w(YM,{optional:!0})??w(gv)},{provide:sf,useValue:lx,multi:!0},{provide:Cv,useValue:!0},{provide:tc,useClass:cx}];for(let e of t)n.push(...e.\u0275providers);return wa(n)}var mv=new M("");function Iv(){return ux(Dv.LegacyInterceptors,[{provide:mv,useFactory:ex},{provide:sf,useExisting:mv,multi:!0}])}var cf=class extends Qa{supportsDOMEvents=!0},lf=class t extends cf{static makeCurrent(){rv(new t)}onAndCancel(n,e,r,i){return n.addEventListener(e,r,i),()=>{n.removeEventListener(e,r,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=fx();return e==null?null:hx(e)}resetBaseElement(){po=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Ka(document.cookie,n)}},po=null;function fx(){return po=po||document.querySelector("base"),po?po.getAttribute("href"):null}function hx(t){return new URL(t,document.baseURI).pathname}var uf=class{addToWindow(n){et.getAngularTestability=(r,i=!0)=>{let o=n.findTestabilityInTree(r,i);if(o==null)throw new x(5103,!1);return o},et.getAllAngularTestabilities=()=>n.getAllTestabilities(),et.getAllAngularRootElements=()=>n.getAllRootElements();let e=r=>{let i=et.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&r()};i.forEach(a=>{a.whenStable(s)})};et.frameworkStabilizers||(et.frameworkStabilizers=[]),et.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,r){if(e==null)return null;let i=n.getTestability(e);return i??(r?Ot().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},px=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),df=new M(""),Ov=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,i,o){return this._findPluginFor(r).addEventListener(e,r,i,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new x(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(_(df),_(ae))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),rc=class{_doc;constructor(n){this._doc=n}manager},nc="ng-app-id";function Mv(t){for(let n of t)n.remove()}function xv(t,n){let e=n.createElement("style");return e.textContent=t,e}function gx(t,n,e,r){let i=t.head?.querySelectorAll(`style[${nc}="${n}"],link[${nc}="${n}"]`);if(i)for(let o of i)o.removeAttribute(nc),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function ff(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Nv=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,this.isServer=oi(o),gx(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,xv);r?.forEach(i=>this.addUsage(i,this.external,ff))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(Mv(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Mv(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,xv(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,ff(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(nc,this.appId),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(_(xe),_(fd),_(pd,8),_($t))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),af={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},pf=/%COMP%/g,Rv="%COMP%",mx=`_nghost-${Rv}`,yx=`_ngcontent-${Rv}`,vx=!0,_x=new M("",{providedIn:"root",factory:()=>vx});function wx(t){return yx.replace(pf,t)}function bx(t){return mx.replace(pf,t)}function Pv(t,n){return n.map(e=>e.replace(pf,t))}var Tv=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,a,c,l=null,u=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=u,this.platformIsServer=oi(a),this.defaultRenderer=new go(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===jt.ShadowDom&&(r=H(C({},r),{encapsulation:jt.Emulated}));let i=this.getOrCreateRenderer(e,r);return i instanceof ic?i.applyToHost(e):i instanceof mo&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case jt.Emulated:o=new ic(c,l,r,this.appId,u,s,a,d,this.tracingService);break;case jt.ShadowDom:return new hf(c,l,e,r,s,a,this.nonce,d,this.tracingService);default:o=new mo(c,l,r,u,s,a,d,this.tracingService);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||t)(_(Ov),_(Nv),_(fd),_(_x),_(xe),_($t),_(ae),_(pd),_(Jr,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),go=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(af[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Sv(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Sv(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new x(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=af[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=af[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Bt.DashCase|Bt.Important)?n.style.setProperty(e,r,i&Bt.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Bt.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r,i){if(typeof n=="string"&&(n=Ot().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);let o=this.decoratePreventDefault(r);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function Sv(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var hf=class extends go{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,r,i,o,s,a,c,l){super(n,o,s,c,l),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Pv(i.id,i.styles);for(let f of u){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=f,this.shadowRoot.appendChild(h)}let d=i.getExternalStyles?.();if(d)for(let f of d){let h=ff(f,o);a&&h.setAttribute("nonce",a),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},mo=class extends go{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,a,c,l){super(n,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=l?Pv(l,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ic=class extends mo{contentAttr;hostAttr;constructor(n,e,r,i,o,s,a,c,l){let u=i+"-"+r.id;super(n,e,r,o,s,a,c,l,u),this.contentAttr=wx(u),this.hostAttr=bx(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}},Cx=(()=>{class t extends rc{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i,o){return e.addEventListener(r,i,o),()=>this.removeEventListener(e,r,i,o)}removeEventListener(e,r,i,o){return e.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(_(xe))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Av=["alt","control","meta","shift"],Dx={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ex={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Ix=(()=>{class t extends rc{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ot().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Av.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,r){let i=Dx[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Av.forEach(s=>{if(s!==i){let a=Ex[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(_(xe))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function Mx(){lf.makeCurrent()}function xx(){return new Xt}function Tx(){return ym(document),document}var Sx=[{provide:$t,useValue:Xd},{provide:hd,useValue:Mx,multi:!0},{provide:xe,useFactory:Tx,deps:[]}],XV=$d(Zy,"browser",Sx);var Ax=[{provide:io,useClass:uf,deps:[]},{provide:Ld,useClass:Ua,deps:[ae,$a,io]},{provide:Ua,useClass:Ua,deps:[ae,$a,io]}],Ox=[{provide:ba,useValue:"root"},{provide:Xt,useFactory:xx,deps:[]},{provide:df,useClass:Cx,multi:!0,deps:[xe,ae,$t]},{provide:df,useClass:Ix,multi:!0,deps:[xe]},Tv,Nv,Ov,{provide:Gr,useExisting:Tv},{provide:ni,useClass:px,deps:[]},[]],e2=(()=>{class t{constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({providers:[...Ox,...Ax],imports:[Pe,Yy]})}return t})(),kv=(()=>{class t{_doc;_dom;constructor(e){this._doc=e,this._dom=Ot()}addTag(e,r=!1){return e?this._getOrCreateElement(e,r):null}addTags(e,r=!1){return e?e.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,r)),i),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let r=this._doc.querySelectorAll(`meta[${e}]`);return r?[].slice.call(r):[]}updateTag(e,r){if(!e)return null;r=r||this._parseSelector(e);let i=this.getTag(r);return i?this._setMetaElementAttributes(e,i):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,r=!1){if(!r){let s=this._parseSelector(e),a=this.getTags(s).filter(c=>this._containsAttributes(e,c))[0];if(a!==void 0)return a}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(e,r){return Object.keys(e).forEach(i=>r.setAttribute(this._getMetaKeyMap(i),e[i])),r}_parseSelector(e){let r=e.name?"name":"property";return`${r}="${e[r]}"`}_containsAttributes(e,r){return Object.keys(e).every(i=>r.getAttribute(this._getMetaKeyMap(i))===e[i])}_getMetaKeyMap(e){return Nx[e]||e}static \u0275fac=function(r){return new(r||t)(_(xe))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nx={httpEquiv:"http-equiv"},oc=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(_(xe))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var t2=new M("");var Fv=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=_(Rx),i},providedIn:"root"})}return t})(),Rx=(()=>{class t extends Fv{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case Ht.NONE:return r;case Ht.HTML:return Nn(r,"HTML")?Tt(r):Om(this._doc,String(r)).toString();case Ht.STYLE:return Nn(r,"Style")?Tt(r):r;case Ht.SCRIPT:if(Nn(r,"Script"))return Tt(r);throw new x(5200,!1);case Ht.URL:return Nn(r,"URL")?Tt(r):Ra(String(r));case Ht.RESOURCE_URL:if(Nn(r,"ResourceURL"))return Tt(r);throw new x(5201,!1);default:throw new x(5202,!1)}}bypassSecurityTrustHtml(e){return bm(e)}bypassSecurityTrustStyle(e){return Cm(e)}bypassSecurityTrustScript(e){return Dm(e)}bypassSecurityTrustUrl(e){return Em(e)}bypassSecurityTrustResourceUrl(e){return Im(e)}static \u0275fac=function(r){return new(r||t)(_(xe))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $="primary",So=Symbol("RouteTitle"),_f=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function hi(t){return new _f(t)}function Px(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.lengthr[o]===i)}else return t===n}function Zv(t){return t.length>0?t[t.length-1]:null}function Bn(t){return _l(t)?t:lr(t)?ee(Promise.resolve(t)):P(t)}var Fx={exact:Qv,subset:Kv},Yv={exact:Lx,subset:Vx,ignored:()=>!0};function Vv(t,n,e){return Fx[e.paths](t.root,n.root,e.matrixParams)&&Yv[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Lx(t,n){return qt(t,n)}function Qv(t,n,e){if(!gr(t.segments,n.segments)||!cc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Qv(t.children[r],n.children[r],e))return!1;return!0}function Vx(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Wv(t[e],n[e]))}function Kv(t,n,e){return Jv(t,n,n.segments,e)}function Jv(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!gr(i,e)||n.hasChildren()||!cc(i,e,r))}else if(t.segments.length===e.length){if(!gr(t.segments,e)||!cc(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Kv(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!gr(t.segments,i)||!cc(t.segments,i,r)||!t.children[$]?!1:Jv(t.children[$],n,o,r)}}function cc(t,n,e){return n.every((r,i)=>Yv[e](t[i].parameters,r.parameters))}var hn=class{root;queryParams;fragment;_queryParamMap;constructor(n=new J([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=hi(this.queryParams),this._queryParamMap}toString(){return Ux.serialize(this)}},J=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lc(this)}},pr=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=hi(this.parameters),this._parameterMap}toString(){return e_(this)}};function jx(t,n){return gr(t,n)&&t.every((e,r)=>qt(e.parameters,n[r].parameters))}function gr(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Bx(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===$&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==$&&(e=e.concat(n(i,r)))}),e}var Ao=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>new pi,providedIn:"root"})}return t})(),pi=class{parse(n){let e=new Cf(n);return new hn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${yo(n.root,!0)}`,r=zx(n.queryParams),i=typeof n.fragment=="string"?`#${$x(n.fragment)}`:"";return`${e}${r}${i}`}},Ux=new pi;function lc(t){return t.segments.map(n=>e_(n)).join("/")}function yo(t,n){if(!t.hasChildren())return lc(t);if(n){let e=t.children[$]?yo(t.children[$],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==$&&r.push(`${i}:${yo(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Bx(t,(r,i)=>i===$?[yo(t.children[$],!1)]:[`${i}:${yo(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[$]!=null?`${lc(t)}/${e[0]}`:`${lc(t)}/(${e.join("//")})`}}function Xv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sc(t){return Xv(t).replace(/%3B/gi,";")}function $x(t){return encodeURI(t)}function bf(t){return Xv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function uc(t){return decodeURIComponent(t)}function jv(t){return uc(t.replace(/\+/g,"%20"))}function e_(t){return`${bf(t.path)}${Hx(t.parameters)}`}function Hx(t){return Object.entries(t).map(([n,e])=>`;${bf(n)}=${bf(e)}`).join("")}function zx(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${sc(e)}=${sc(i)}`).join("&"):`${sc(e)}=${sc(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var qx=/^[^\/()?;#]+/;function gf(t){let n=t.match(qx);return n?n[0]:""}var Gx=/^[^\/()?;=#]+/;function Wx(t){let n=t.match(Gx);return n?n[0]:""}var Zx=/^[^=?&#]+/;function Yx(t){let n=t.match(Zx);return n?n[0]:""}var Qx=/^[^&#]+/;function Kx(t){let n=t.match(Qx);return n?n[0]:""}var Cf=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[$]=new J(n,e)),r}parseSegment(){let n=gf(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new x(4009,!1);return this.capture(n),new pr(uc(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Wx(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=gf(this.remaining);i&&(r=i,this.capture(r))}n[uc(e)]=uc(r)}parseQueryParam(n){let e=Yx(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Kx(this.remaining);s&&(r=s,this.capture(r))}let i=jv(e),o=jv(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=gf(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new x(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=$);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[$]:new J([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new x(4011,!1)}};function t_(t){return t.segments.length>0?new J([],{[$]:t}):t}function n_(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=n_(i);if(r===$&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new J(t.segments,n);return Jx(e)}function Jx(t){if(t.numberOfChildren===1&&t.children[$]){let n=t.children[$];return new J(t.segments.concat(n.segments),n.children)}return t}function mr(t){return t instanceof hn}function Xx(t,n,e=null,r=null){let i=r_(t);return i_(i,n,e,r)}function r_(t){let n;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new J(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=t_(r);return n??i}function i_(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return mf(i,i,i,e,r);let o=eT(n);if(o.toRoot())return mf(i,i,new J([],{}),e,r);let s=tT(o,i,t),a=s.processChildren?_o(s.segmentGroup,s.index,o.commands):s_(s.segmentGroup,s.index,o.commands);return mf(i,s.segmentGroup,a,e,r)}function dc(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Co(t){return typeof t=="object"&&t!=null&&t.outlets}function mf(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;t===n?s=e:s=o_(t,n,e);let a=t_(n_(s));return new hn(a,o,i)}function o_(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=o_(o,n,e)}),new J(t.segments,r)}var fc=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&dc(r[0]))throw new x(4003,!1);let i=r.find(Co);if(i&&i!==Zv(r))throw new x(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function eT(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new fc(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new fc(e,n,r)}var ui=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function tT(t,n,e){if(t.isAbsolute)return new ui(n,!0,0);if(!e)return new ui(n,!1,NaN);if(e.parent===null)return new ui(e,!0,0);let r=dc(t.commands[0])?0:1,i=e.segments.length-1+r;return nT(e,i,t.numberOfDoubleDots)}function nT(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new x(4005,!1);i=r.segments.length}return new ui(r,!1,i-o)}function rT(t){return Co(t[0])?t[0].outlets:{[$]:t}}function s_(t,n,e){if(t??=new J([],{}),t.segments.length===0&&t.hasChildren())return _o(t,n,e);let r=iT(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndexo!==$)&&t.children[$]&&t.numberOfChildren===1&&t.children[$].segments.length===0){let o=_o(t.children[$],n,e);return new J(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=s_(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new J(t.segments,i)}}function iT(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;let s=t.segments[i],a=e[r];if(Co(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Uv(c,l,s))return o;r+=2}else{if(!Uv(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Df(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Df(new J([],{}),0,r))}),n}function Bv(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Uv(t,n,e){return t==e.path&&qt(n,e.parameters)}var wo="imperative",Te=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Te||{}),yt=class{id;url;constructor(n,e){this.id=n,this.url=e}},gi=class extends yt{type=Te.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Rt=class extends yt{urlAfterRedirects;type=Te.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},at=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(at||{}),hc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(hc||{}),fn=class extends yt{reason;code;type=Te.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},jn=class extends yt{reason;code;type=Te.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Do=class extends yt{error;target;type=Te.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},pc=class extends yt{urlAfterRedirects;state;type=Te.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ef=class extends yt{urlAfterRedirects;state;type=Te.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},If=class extends yt{urlAfterRedirects;state;shouldActivate;type=Te.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Mf=class extends yt{urlAfterRedirects;state;type=Te.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xf=class extends yt{urlAfterRedirects;state;type=Te.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tf=class{route;type=Te.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Sf=class{route;type=Te.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Af=class{snapshot;type=Te.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Of=class{snapshot;type=Te.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nf=class{snapshot;type=Te.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rf=class{snapshot;type=Te.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gc=class{routerEvent;position;anchor;type=Te.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Eo=class{},mi=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function sT(t,n){return t.providers&&!t._injector&&(t._injector=Ba(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Nt(t){return t.outlet||$}function aT(t,n){let e=t.filter(r=>Nt(r)===n);return e.push(...t.filter(r=>Nt(r)!==n)),e}function Oo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Pf=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Oo(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new No(this.rootInjector)}},No=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Pf(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(_(Le))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mc=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=kf(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=kf(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Ff(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Ff(n,this._root).map(e=>e.value)}};function kf(t,n){if(t===n.value)return n;for(let e of n.children){let r=kf(t,e);if(r)return r}return null}function Ff(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Ff(t,e);if(r.length)return r.unshift(n),r}return[]}var st=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function li(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var yc=class extends mc{snapshot;constructor(n,e){super(n),this.snapshot=e,qf(this,n)}toString(){return this.snapshot.toString()}};function a_(t){let n=cT(t),e=new Se([new pr("",{})]),r=new Se({}),i=new Se({}),o=new Se({}),s=new Se(""),a=new yr(e,r,o,s,i,$,t,n.root);return a.snapshot=n.root,new yc(new st(a,[]),n)}function cT(t){let n={},e={},r={},i="",o=new di([],n,r,i,e,$,t,null,{});return new _c("",new st(o,[]))}var yr=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(U(l=>l[So]))??P(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(U(n=>hi(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(U(n=>hi(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function vc(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:C(C({},n.params),t.params),data:C(C({},n.data),t.data),resolve:C(C(C(C({},t.data),n.data),i?.data),t._resolvedData)}:r={params:C({},t.params),data:C({},t.data),resolve:C(C({},t.data),t._resolvedData??{})},i&&l_(i)&&(r.resolve[So]=i.title),r}var di=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[So]}constructor(n,e,r,i,o,s,a,c,l){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=hi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=hi(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},_c=class extends mc{url;constructor(n,e){super(e),this.url=n,qf(this,e)}toString(){return c_(this._root)}};function qf(t,n){n.value._routerState=t,n.children.forEach(e=>qf(t,e))}function c_(t){let n=t.children.length>0?` { ${t.children.map(c_).join(", ")} } `:"";return`${t.value}${n}`}function yf(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,qt(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),qt(n.params,e.params)||t.paramsSubject.next(e.params),kx(n.url,e.url)||t.urlSubject.next(e.url),qt(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Lf(t,n){let e=qt(t.params,n.params)&&jx(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Lf(t.parent,n.parent))}function l_(t){return typeof t.title=="string"||t.title===null}var lT=new M(""),uT=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=$;activateEvents=new G;deactivateEvents=new G;attachEvents=new G;detachEvents=new G;routerOutletData=lm(void 0);parentContexts=w(No);location=w(sn);changeDetector=w(Fn);inputBinder=w(Ic,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new x(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new x(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new x(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new x(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Vf(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=re({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[pt]})}return t})(),Vf=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===yr?this.route:n===No?this.childContexts:n===lT?this.outletData:this.parent.get(n,e)}},Ic=new M(""),$v=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=ji([r.queryParams,r.params,r.data]).pipe(ze(([o,s,a],c)=>(a=C(C(C({},o),s),a),c===0?P(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Qy(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function dT(t,n,e){let r=Io(t,n._root,e?e._root:void 0);return new yc(r,n)}function Io(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=fT(t,n,e);return new st(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Io(t,a)),s}}let r=hT(n.value),i=n.children.map(o=>Io(t,o));return new st(r,i)}}function fT(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Io(t,r,i);return Io(t,r)})}function hT(t){return new yr(new Se(t.url),new Se(t.params),new Se(t.queryParams),new Se(t.fragment),new Se(t.data),t.outlet,t.component,t)}var Mo=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},u_="ngNavigationCancelingError";function wc(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=mr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=d_(!1,at.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function d_(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[u_]=!0,e.cancellationCode=n,e}function pT(t){return f_(t)&&mr(t.url)}function f_(t){return!!t&&t[u_]}var gT=(t,n,e,r)=>U(i=>(new jf(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),jf=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),yf(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=li(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=li(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=li(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=li(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Rf(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Of(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(yf(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),yf(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},bc=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},fi=class{component;route;constructor(n,e){this.component=n,this.route=e}};function mT(t,n,e){let r=t._root,i=n?n._root:null;return vo(r,i,e,[r.value])}function yT(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function vi(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!ng(t)?t:n.get(t):r}function vo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=li(n);return t.children.forEach(s=>{vT(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>bo(a,e.getContext(s),i)),i}function vT(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=_T(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new bc(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?vo(t,n,a?a.children:null,r,i):vo(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new fi(a.outlet.component,s))}else s&&bo(n,a,i),i.canActivateChecks.push(new bc(r)),o.component?vo(t,null,a?a.children:null,r,i):vo(t,null,e,r,i);return i}function _T(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!gr(t.url,n.url);case"pathParamsOrQueryParamsChange":return!gr(t.url,n.url)||!qt(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Lf(t,n)||!qt(t.queryParams,n.queryParams);case"paramsChange":default:return!Lf(t,n)}}function bo(t,n,e){let r=li(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?bo(s,n.children.getContext(o),e):bo(s,null,e):bo(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new fi(n.outlet.component,i)):e.canDeactivateChecks.push(new fi(null,i)):e.canDeactivateChecks.push(new fi(null,i))}function Ro(t){return typeof t=="function"}function wT(t){return typeof t=="boolean"}function bT(t){return t&&Ro(t.canLoad)}function CT(t){return t&&Ro(t.canActivate)}function DT(t){return t&&Ro(t.canActivateChild)}function ET(t){return t&&Ro(t.canDeactivate)}function IT(t){return t&&Ro(t.canMatch)}function h_(t){return t instanceof Ct||t?.name==="EmptyError"}var ac=Symbol("INITIAL_VALUE");function yi(){return ze(t=>ji(t.map(n=>n.pipe(Qt(1),Il(ac)))).pipe(U(n=>{for(let e of n)if(e!==!0){if(e===ac)return ac;if(e===!1||MT(e))return e}return!0}),He(n=>n!==ac),Qt(1)))}function MT(t){return mr(t)||t instanceof Mo}function xT(t,n){return pe(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?P(H(C({},e),{guardsResult:!0})):TT(s,r,i,t).pipe(pe(a=>a&&wT(a)?ST(r,o,t,n):P(a)),U(a=>H(C({},e),{guardsResult:a})))})}function TT(t,n,e,r){return ee(t).pipe(pe(i=>PT(i.component,i.route,e,n,r)),Et(i=>i!==!0,!0))}function ST(t,n,e,r){return ee(n).pipe(Yt(i=>Sr(OT(i.route.parent,r),AT(i.route,r),RT(t,i.path,e),NT(t,i.route,e))),Et(i=>i!==!0,!0))}function AT(t,n){return t!==null&&n&&n(new Nf(t)),P(!0)}function OT(t,n){return t!==null&&n&&n(new Af(t)),P(!0)}function NT(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return P(!0);let i=r.map(o=>Is(()=>{let s=Oo(n)??e,a=vi(o,s),c=CT(a)?a.canActivate(n,t):Ye(s,()=>a(n,t));return Bn(c).pipe(Et())}));return P(i).pipe(yi())}function RT(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>yT(s)).filter(s=>s!==null).map(s=>Is(()=>{let a=s.guards.map(c=>{let l=Oo(s.node)??e,u=vi(c,l),d=DT(u)?u.canActivateChild(r,t):Ye(l,()=>u(r,t));return Bn(d).pipe(Et())});return P(a).pipe(yi())}));return P(o).pipe(yi())}function PT(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return P(!0);let s=o.map(a=>{let c=Oo(n)??i,l=vi(a,c),u=ET(l)?l.canDeactivate(t,n,e,r):Ye(c,()=>l(t,n,e,r));return Bn(u).pipe(Et())});return P(s).pipe(yi())}function kT(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return P(!0);let o=i.map(s=>{let a=vi(s,t),c=bT(a)?a.canLoad(n,e):Ye(t,()=>a(n,e));return Bn(c)});return P(o).pipe(yi(),p_(r))}function p_(t){return hl(Me(n=>{if(typeof n!="boolean")throw wc(t,n)}),U(n=>n===!0))}function FT(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return P(!0);let o=i.map(s=>{let a=vi(s,t),c=IT(a)?a.canMatch(n,e):Ye(t,()=>a(n,e));return Bn(c)});return P(o).pipe(yi(),p_(r))}var xo=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},To=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ci(t){return xr(new xo(t))}function LT(t){return xr(new x(4e3,!1))}function VT(t){return xr(d_(!1,at.GuardRejected))}var Bf=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return P(r);if(i.numberOfChildren>1||!i.children[$])return LT(`${n.redirectTo}`);i=i.children[$]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:f,params:h,data:b,title:E}=i,T=Ye(o,()=>a({params:h,data:b,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:f,title:E}));if(T instanceof hn)throw new To(T);e=T}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new To(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new hn(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new J(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new x(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},Uf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jT(t,n,e,r,i){let o=g_(t,n,e);return o.matched?(r=sT(n,r),FT(r,n,e,i).pipe(U(s=>s===!0?o:C({},Uf)))):P(o)}function g_(t,n,e){if(n.path==="**")return BT(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?C({},Uf):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Px)(e,t,n);if(!i)return C({},Uf);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?C(C({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function BT(t){return{matched:!0,parameters:t.length>0?Zv(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Hv(t,n,e,r){return e.length>0&&HT(t,e,r)?{segmentGroup:new J(n,$T(r,new J(e,t.children))),slicedSegments:[]}:e.length===0&&zT(t,e,r)?{segmentGroup:new J(t.segments,UT(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new J(t.segments,t.children),slicedSegments:e}}function UT(t,n,e,r){let i={};for(let o of e)if(Mc(t,n,o)&&!r[Nt(o)]){let s=new J([],{});i[Nt(o)]=s}return C(C({},r),i)}function $T(t,n){let e={};e[$]=n;for(let r of t)if(r.path===""&&Nt(r)!==$){let i=new J([],{});e[Nt(r)]=i}return e}function HT(t,n,e){return e.some(r=>Mc(t,n,r)&&Nt(r)!==$)}function zT(t,n,e){return e.some(r=>Mc(t,n,r))}function Mc(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function qT(t,n,e){return n.length===0&&!t.children[e]}var $f=class{};function GT(t,n,e,r,i,o,s="emptyOnly"){return new Hf(t,n,e,r,i,s,o).recognize()}var WT=31,Hf=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Bf(this.urlSerializer,this.urlTree)}noMatchError(n){return new x(4002,`'${n.segmentGroup}'`)}recognize(){let n=Hv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(U(({children:e,rootSnapshot:r})=>{let i=new st(r,e),o=new _c("",i),s=Xx(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new di([],Object.freeze({}),Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),$,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,$,e).pipe(U(r=>({children:r,rootSnapshot:e})),Dt(r=>{if(r instanceof To)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof xo?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(U(s=>s instanceof st?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ee(o).pipe(Yt(s=>{let a=r.children[s],c=aT(e,s);return this.processSegmentGroup(n,c,a,s,i)}),Dl((s,a)=>(s.push(...a),s)),_n(null),Cl(),pe(s=>{if(s===null)return ci(r);let a=m_(s);return ZT(a),P(a)}))}processSegment(n,e,r,i,o,s,a){return ee(e).pipe(Yt(c=>this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,s,a).pipe(Dt(l=>{if(l instanceof xo)return P(null);throw l}))),Et(c=>!!c),Dt(c=>{if(h_(c))return qT(r,i,o)?P(new $f):ci(r);throw c}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,c){return Nt(r)!==s&&(s===$||!Mc(i,o,r))?ci(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,c):ci(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:f}=g_(e,i,o);if(!c)return ci(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>WT&&(this.allowRedirects=!1));let h=new di(o,l,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,zv(i),Nt(i),i.component??i._loadedComponent??null,i,qv(i)),b=vc(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(b.params),h.data=Object.freeze(b.data);let E=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,h,n);return this.applyRedirects.lineralizeSegments(i,E).pipe(pe(T=>this.processSegment(n,r,e,T.concat(f),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=jT(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(ze(c=>c.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(ze(({routes:l})=>{let u=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:h}=c,b=new di(f,d,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,zv(r),Nt(r),r.component??r._loadedComponent??null,r,qv(r)),E=vc(b,s,this.paramsInheritanceStrategy);b.params=Object.freeze(E.params),b.data=Object.freeze(E.data);let{segmentGroup:T,slicedSegments:k}=Hv(e,f,h,l);if(k.length===0&&T.hasChildren())return this.processChildren(u,l,T,b).pipe(U(X=>new st(b,X)));if(l.length===0&&k.length===0)return P(new st(b,[]));let oe=Nt(r)===o;return this.processSegment(u,l,T,k,oe?$:o,!0,b).pipe(U(X=>new st(b,X instanceof st?[X]:[])))}))):ci(e)))}getChildConfig(n,e,r){return e.children?P({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?P({routes:e._loadedRoutes,injector:e._loadedInjector}):kT(n,e,r,this.urlSerializer).pipe(pe(i=>i?this.configLoader.loadChildren(n,e).pipe(Me(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):VT(e))):P({routes:[],injector:n})}};function ZT(t){t.sort((n,e)=>n.value.outlet===$?-1:e.value.outlet===$?1:n.value.outlet.localeCompare(e.value.outlet))}function YT(t){let n=t.value.routeConfig;return n&&n.path===""}function m_(t){let n=[],e=new Set;for(let r of t){if(!YT(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=m_(r.children);n.push(new st(r.value,i))}return n.filter(r=>!e.has(r))}function zv(t){return t.data||{}}function qv(t){return t.resolve||{}}function QT(t,n,e,r,i,o){return pe(s=>GT(t,n,e,r,s.extractedUrl,i,o).pipe(U(({state:a,tree:c})=>H(C({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function KT(t,n){return pe(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return P(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of y_(c))s.add(l);let a=0;return ee(s).pipe(Yt(c=>o.has(c)?JT(c,r,t,n):(c.data=vc(c,c.parent,t).resolve,P(void 0))),Me(()=>a++),Ar(1),pe(c=>a===s.size?P(e):Ae))})}function y_(t){let n=t.children.map(e=>y_(e)).flat();return[t,...n]}function JT(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!l_(i)&&(o[So]=i.title),XT(o,t,n,r).pipe(U(s=>(t._resolvedData=s,t.data=vc(t,t.parent,e).resolve,null)))}function XT(t,n,e,r){let i=wf(t);if(i.length===0)return P({});let o={};return ee(i).pipe(pe(s=>eS(t[s],n,e,r).pipe(Et(),Me(a=>{if(a instanceof Mo)throw wc(new pi,a);o[s]=a}))),Ar(1),U(()=>o),Dt(s=>h_(s)?Ae:xr(s)))}function eS(t,n,e,r){let i=Oo(n)??r,o=vi(t,i),s=o.resolve?o.resolve(n,e):Ye(i,()=>o(n,e));return Bn(s)}function vf(t){return ze(n=>{let e=t(n);return e?ee(e).pipe(U(()=>n)):P(n)})}var v_=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===$);return r}getResolvedTitleForRoute(e){return e.data[So]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(tS),providedIn:"root"})}return t})(),tS=(()=>{class t extends v_{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(_(oc))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Po=new M("",{providedIn:"root",factory:()=>({})}),nS=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Re(0,"router-outlet")},dependencies:[uT],encapsulation:2})}return t})();function Gf(t){let n=t.children&&t.children.map(Gf),e=n?H(C({},t),{children:n}):C({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==$&&(e.component=nS),e}var Cc=new M(""),Wf=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=w(Za);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return P(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Bn(e.loadComponent()).pipe(U(__),Me(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),wn(()=>{this.componentLoaders.delete(e)})),i=new Ir(r,()=>new te).pipe(Er());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return P({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=rS(r,this.compiler,e,this.onLoadEndListener).pipe(wn(()=>{this.childrenLoaders.delete(r)})),s=new Ir(o,()=>new te).pipe(Er());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rS(t,n,e,r){return Bn(t.loadChildren()).pipe(U(__),pe(i=>i instanceof Yi||Array.isArray(i)?P(i):ee(n.compileModuleAsync(i))),U(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Cc,[],{optional:!0,self:!0}).flat()),{routes:s.map(Gf),injector:o}}))}function iS(t){return t&&typeof t=="object"&&"default"in t}function __(t){return iS(t)?t.default:t}var Zf=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(oS),providedIn:"root"})}return t})(),oS=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),w_=new M(""),b_=new M("");function sS(t,n,e){let r=t.get(b_),i=t.get(xe);return t.get(ae).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),aS(t))),{onViewTransitionCreated:c}=r;return c&&Ye(t,()=>c({transition:a,from:n,to:e})),s})}function aS(t){return new Promise(n=>{md({read:()=>setTimeout(n)},{injector:t})})}var C_=new M(""),Yf=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new te;transitionAbortSubject=new te;configLoader=w(Wf);environmentInjector=w(Le);urlSerializer=w(Ao);rootContexts=w(No);location=w(ri);inputBindingEnabled=w(Ic,{optional:!0})!==null;titleStrategy=w(v_);options=w(Po,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=w(Zf);createViewTransition=w(w_,{optional:!0});navigationErrorHandler=w(C_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>P(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Tf(i)),r=i=>this.events.next(new Sf(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(H(C(C({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new Se({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:wo,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(He(o=>o.id!==0),U(o=>H(C({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ze(o=>{let s=!1,a=!1;return P(o).pipe(ze(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",at.SupersededByNewNavigation),Ae;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?H(C({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&u!=="reload"){let d="";return this.events.next(new jn(c.id,this.urlSerializer.serialize(c.rawUrl),d,hc.IgnoredSameUrlNavigation)),c.resolve(!1),Ae}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return P(c).pipe(ze(d=>{let f=this.transitions?.getValue();return this.events.next(new gi(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions?.getValue()?Ae:Promise.resolve(d)}),QT(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Me(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=H(C({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let f=new pc(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:f,source:h,restoredState:b,extras:E}=c,T=new gi(d,this.urlSerializer.serialize(f),h,b);this.events.next(T);let k=a_(this.rootComponentType).snapshot;return this.currentTransition=o=H(C({},c),{targetSnapshot:k,urlAfterRedirects:f,extras:H(C({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,P(o)}else{let d="";return this.events.next(new jn(c.id,this.urlSerializer.serialize(c.extractedUrl),d,hc.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ae}}),Me(c=>{let l=new Ef(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),U(c=>(this.currentTransition=o=H(C({},c),{guards:mT(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),xT(this.environmentInjector,c=>this.events.next(c)),Me(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw wc(this.urlSerializer,c.guardsResult);let l=new If(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),He(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",at.GuardRejected),!1)),vf(c=>{if(c.guards.canActivateChecks.length)return P(c).pipe(Me(l=>{let u=new Mf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),ze(l=>{let u=!1;return P(l).pipe(KT(this.paramsInheritanceStrategy,this.environmentInjector),Me({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",at.NoDataFromResolver)}}))}),Me(l=>{let u=new xf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),vf(c=>{let l=u=>{let d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Me(f=>{u.component=f}),U(()=>{})));for(let f of u.children)d.push(...l(f));return d};return ji(l(c.targetSnapshot.root)).pipe(_n(null),Qt(1))}),vf(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?ee(u).pipe(U(()=>o)):P(o)}),U(c=>{let l=dT(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=H(C({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),Me(()=>{this.events.next(new Eo)}),gT(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Qt(1),Me({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Rt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Ml(this.transitionAbortSubject.pipe(Me(c=>{throw c}))),wn(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",at.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Dt(c=>{if(a=!0,f_(c))this.events.next(new fn(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),pT(c)?this.events.next(new mi(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Do(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let u=Ye(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof Mo){let{message:d,cancellationCode:f}=wc(this.urlSerializer,u);this.events.next(new fn(o.id,this.urlSerializer.serialize(o.extractedUrl),d,f)),this.events.next(new mi(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),c}catch(u){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(u)}}return Ae}))}))}cancelNavigationTransition(e,r,i){let o=new fn(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cS(t){return t!==wo}var lS=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(uS),providedIn:"root"})}return t})(),zf=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},uS=(()=>{class t extends zf{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Qr(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),D_=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(dS),providedIn:"root"})}return t})(),dS=(()=>{class t extends D_{location=w(ri);urlSerializer=w(Ao);options=w(Po,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=w(Zf);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new hn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=a_(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof gi)this.stateMemento=this.createStateMemento();else if(e instanceof jn)this.rawUrlTree=r.initialUrl;else if(e instanceof pc){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof Eo?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof fn&&(e.code===at.GuardRejected||e.code===at.NoDataFromResolver)?this.restoreHistory(r):e instanceof Do?this.restoreHistory(r,!0):e instanceof Rt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof hn?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=C(C({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=C(C({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Qr(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function E_(t,n){t.events.pipe(He(e=>e instanceof Rt||e instanceof fn||e instanceof Do||e instanceof jn),U(e=>e instanceof Rt||e instanceof jn?0:(e instanceof fn?e.code===at.Redirect||e.code===at.SupersededByNewNavigation:!1)?2:1),He(e=>e!==2),Qt(1)).subscribe(()=>{n()})}var fS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},vt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=w(Fd);stateManager=w(D_);options=w(Po,{optional:!0})||{};pendingTasks=w(rn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=w(Yf);urlSerializer=w(Ao);location=w(ri);urlHandlingStrategy=w(Zf);_events=new te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=w(lS);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=w(Cc,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!w(Ic,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new _e;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof fn&&r.code!==at.Redirect&&r.code!==at.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Rt)this.navigated=!0;else if(r instanceof mi){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=C({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||cS(i.source)},s);this.scheduleNavigation(a,wo,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}gS(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),wo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=C({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Gf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=C(C({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let f=i?i.snapshot:this.routerState.snapshot.root;d=r_(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return i_(d,e,u,l??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=mr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,wo,null,r)}navigate(e,r={skipLocationChange:!1}){return pS(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=C({},fS):r===!1?i=C({},hS):i=r,mr(e))return Vv(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Vv(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,c=f});let u=this.pendingTasks.add();return E_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pS(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new te;constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof Rt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(mr(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Nm(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:mr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(I(vt),I(yr),ad("tabindex"),I(St),I(Ee),I(un))};static \u0275dir=re({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&O("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&ur("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",hr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",hr],replaceUrl:[2,"replaceUrl","replaceUrl",hr],routerLink:"routerLink"},features:[Pd,pt]})}return t})(),b2=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new G;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Rt&&this.update()})}ngAfterContentInit(){P(this.links.changes,P(null)).pipe(Ft()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ee(e).pipe(Ft()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=mS(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(I(vt),I(Ee),I(St),I(Fn),I(Dc,8))};static \u0275dir=re({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&dr(o,Dc,5),r&2){let s;nt(s=rt())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[pt]})}return t})();function mS(t){return!!t.paths}var Ec=class{},C2=(()=>{class t{preload(e,r){return r().pipe(Dt(()=>P(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yS=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(He(e=>e instanceof Rt),Yt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ba(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ee(i).pipe(Ft())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=P(null);let o=i.pipe(pe(s=>s===null?P(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return ee([o,s]).pipe(Ft())}else return o})}static \u0275fac=function(r){return new(r||t)(_(vt),_(Za),_(Le),_(Ec),_(Wf))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),I_=new M(""),vS=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof gi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Rt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof jn&&e.code===hc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof gc&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new gc(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){jm()};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function _S(t){return t.routerState.root}function ko(t,n){return{\u0275kind:t,\u0275providers:n}}function wS(){let t=w(we);return n=>{let e=t.get(Ze);if(n!==e.components[0])return;let r=t.get(vt),i=t.get(M_);t.get(Qf)===1&&r.initialNavigation(),t.get(x_,null,q.Optional)?.setUpPreloading(),t.get(I_,null,q.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var M_=new M("",{factory:()=>new te}),Qf=new M("",{providedIn:"root",factory:()=>1});function bS(){return ko(2,[{provide:Qf,useValue:0},{provide:Ha,multi:!0,deps:[we],useFactory:n=>{let e=n.get(iv,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(vt),o=n.get(M_);E_(i,()=>{r(!0)}),n.get(Yf).afterPreactivation=()=>(r(!0),o.closed?P(void 0):o),i.initialNavigation()}))}}])}function CS(){return ko(3,[{provide:Ha,multi:!0,useFactory:()=>{let n=w(vt);return()=>{n.setUpLocationChangeListener()}}},{provide:Qf,useValue:2}])}var x_=new M("");function DS(t){return ko(0,[{provide:x_,useExisting:yS},{provide:Ec,useExisting:t}])}function ES(){return ko(8,[$v,{provide:Ic,useExisting:$v}])}function IS(t){let n=[{provide:w_,useValue:sS},{provide:b_,useValue:C({skipNextTransition:!!t?.skipInitialTransition},t)}];return ko(9,n)}var MS=[ri,{provide:Ao,useClass:pi},vt,No,{provide:yr,useFactory:_S,deps:[vt]},Wf,[]],T_=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[MS,[],{provide:Cc,multi:!0,useValue:e},[],r?.errorHandler?{provide:C_,useValue:r.errorHandler}:[],{provide:Po,useValue:r||{}},r?.useHash?TS():SS(),xS(),r?.preloadingStrategy?DS(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?AS(r):[],r?.bindToComponentInputs?ES().\u0275providers:[],r?.enableViewTransitions?IS().\u0275providers:[],OS()]}}static forChild(e){return{ngModule:t,providers:[{provide:Cc,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({})}return t})();function xS(){return{provide:I_,useFactory:()=>{let t=w(cv),n=w(ae),e=w(Po),r=w(Yf),i=w(Ao);return e.scrollOffset&&t.setOffset(e.scrollOffset),new vS(i,r,t,n,e)}}}function TS(){return{provide:un,useClass:sv}}function SS(){return{provide:un,useClass:Jd}}function AS(t){return[t.initialNavigation==="disabled"?CS().\u0275providers:[],t.initialNavigation==="enabledBlocking"?bS().\u0275providers:[]]}var Gv=new M("");function OS(){return[{provide:Gv,useFactory:wS},{provide:za,multi:!0,useExisting:Gv}]}var _i={roles:[],production:!0,appId:"test",url:"https://webart.work",meta:{title:"Web Art Work",description:"An amazing solution to build web or mobile app for your business",icon:"https://webart.work/api/user/cdn/waw-logo.png"}};var L_=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,r){this._renderer=e,this._elementRef=r}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(r){return new(r||t)(I(St),I(Ee))};static \u0275dir=re({type:t})}return t})(),th=(()=>{class t extends L_{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Qr(t)))(i||t)}})();static \u0275dir=re({type:t,features:[Pn]})}return t})(),Oc=new M(""),NS={provide:Oc,useExisting:or(()=>nh),multi:!0},nh=(()=>{class t extends th{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Qr(t)))(i||t)}})();static \u0275dir=re({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){r&1&&O("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[co([NS]),Pn]})}return t})(),RS={provide:Oc,useExisting:or(()=>Un),multi:!0};function PS(){let t=Ot()?Ot().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var kS=new M(""),Un=(()=>{class t extends L_{_compositionMode;_composing=!1;constructor(e,r,i){super(e,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!PS())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(r){return new(r||t)(I(St),I(Ee),I(kS,8))};static \u0275dir=re({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&O("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[co([RS]),Pn]})}return t})();var FS=new M(""),LS=new M("");function V_(t){return t!=null}function j_(t){return lr(t)?ee(t):t}function B_(t){let n={};return t.forEach(e=>{n=e!=null?C(C({},n),e):n}),Object.keys(n).length===0?null:n}function U_(t,n){return n.map(e=>e(t))}function VS(t){return!t.validate}function $_(t){return t.map(n=>VS(n)?n:e=>n.validate(e))}function jS(t){if(!t)return null;let n=t.filter(V_);return n.length==0?null:function(e){return B_(U_(e,n))}}function H_(t){return t!=null?jS($_(t)):null}function BS(t){if(!t)return null;let n=t.filter(V_);return n.length==0?null:function(e){let r=U_(e,n).map(j_);return wl(r).pipe(U(B_))}}function z_(t){return t!=null?BS($_(t)):null}function A_(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function US(t){return t._rawValidators}function $S(t){return t._rawAsyncValidators}function Kf(t){return t?Array.isArray(t)?t:[t]:[]}function Tc(t,n){return Array.isArray(t)?t.includes(n):t===n}function O_(t,n){let e=Kf(n);return Kf(t).forEach(i=>{Tc(e,i)||e.push(i)}),e}function N_(t,n){return Kf(n).filter(e=>!Tc(t,e))}var Sc=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=H_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=z_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Jf=class extends Sc{name;get formDirective(){return null}get path(){return null}},Ci=class extends Sc{_parent=null;name=null;valueAccessor=null},Xf=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},HS={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},B2=H(C({},HS),{"[class.ng-submitted]":"isSubmitted"}),Ei=(()=>{class t extends Xf{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(I(Ci,2))};static \u0275dir=re({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&he("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[Pn]})}return t})();var Fo="VALID",xc="INVALID",wi="PENDING",Lo="DISABLED",Di=class{},Ac=class extends Di{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Vo=class extends Di{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},jo=class extends Di{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},bi=class extends Di{status;source;constructor(n,e){super(),this.status=n,this.source=e}};function zS(t){return(Nc(t)?t.validators:t)||null}function qS(t){return Array.isArray(t)?H_(t):t||null}function GS(t,n){return(Nc(n)?n.asyncValidators:t)||null}function WS(t){return Array.isArray(t)?z_(t):t||null}function Nc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var eh=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Ln(this.statusReactive)}set status(n){Ln(()=>this.statusReactive.set(n))}_status=Ya(()=>this.statusReactive());statusReactive=Oa(void 0);get valid(){return this.status===Fo}get invalid(){return this.status===xc}get pending(){return this.status==wi}get disabled(){return this.status===Lo}get enabled(){return this.status!==Lo}errors;get pristine(){return Ln(this.pristineReactive)}set pristine(n){Ln(()=>this.pristineReactive.set(n))}_pristine=Ya(()=>this.pristineReactive());pristineReactive=Oa(!0);get dirty(){return!this.pristine}get touched(){return Ln(this.touchedReactive)}set touched(n){Ln(()=>this.touchedReactive.set(n))}_touched=Ya(()=>this.touchedReactive());touchedReactive=Oa(!1);get untouched(){return!this.touched}_events=new te;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(O_(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(O_(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(N_(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(N_(n,this._rawAsyncValidators))}hasValidator(n){return Tc(this._rawValidators,n)}hasAsyncValidator(n){return Tc(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(H(C({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new jo(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),e&&n.emitEvent!==!1&&this._events.next(new jo(!1,r))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(H(C({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Vo(!1,r))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),e&&n.emitEvent!==!1&&this._events.next(new Vo(!0,r))}markAsPending(n={}){this.status=wi;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new bi(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(H(C({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Lo,this.errors=null,this._forEachChild(i=>{i.disable(H(C({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ac(this.value,r)),this._events.next(new bi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(H(C({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Fo,this._forEachChild(r=>{r.enable(H(C({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(H(C({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fo||this.status===wi)&&this._runAsyncValidator(r,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ac(this.value,e)),this._events.next(new bi(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(H(C({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lo:Fo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=wi,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let r=j_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(n,e){let r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new bi(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,r)}_initObservables(){this.valueChanges=new G,this.statusChanges=new G}_calculateStatus(){return this._allControlsDisabled()?Lo:this.errors?xc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wi)?wi:this._anyControlsHaveStatus(xc)?xc:Fo}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),i&&this._events.next(new Vo(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new jo(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Nc(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=qS(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=WS(this._rawAsyncValidators)}};var rh=new M("",{providedIn:"root",factory:()=>Rc}),Rc="always";function ZS(t,n){return[...n.path,t]}function YS(t,n,e=Rc){KS(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),JS(t,n),e1(t,n),XS(t,n),QS(t,n)}function R_(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function QS(t,n){if(n.valueAccessor.setDisabledState){let e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function KS(t,n){let e=US(t);n.validator!==null?t.setValidators(A_(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let r=$S(t);n.asyncValidator!==null?t.setAsyncValidators(A_(r,n.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();R_(n._rawValidators,i),R_(n._rawAsyncValidators,i)}function JS(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&q_(t,n)})}function XS(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&q_(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function q_(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function e1(t,n){let e=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function t1(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function n1(t){return Object.getPrototypeOf(t.constructor)===th}function r1(t,n){if(!n)return null;Array.isArray(n);let e,r,i;return n.forEach(o=>{o.constructor===Un?e=o:n1(o)?r=o:i=o}),i||r||e||null}function P_(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function k_(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var i1=class extends eh{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,r){super(zS(e),GS(r,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Nc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(k_(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){P_(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){P_(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){k_(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var o1={provide:Ci,useExisting:or(()=>vr)},F_=Promise.resolve(),vr=(()=>{class t extends Ci{_changeDetectorRef;callSetDisabledState;control=new i1;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new G;constructor(e,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=r1(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),t1(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){YS(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){F_.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,i=r!==0&&hr(r);F_.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ZS(e,this._parent):[e]}static \u0275fac=function(r){return new(r||t)(I(Jf,9),I(FS,10),I(LS,10),I(Oc,10),I(Fn,8),I(rh,8))};static \u0275dir=re({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[co([o1]),Pn,pt]})}return t})();var s1={provide:Oc,useExisting:or(()=>ih),multi:!0};var a1=(()=>{class t{_accessors=[];add(e,r){this._accessors.push([e,r])}remove(e){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===e){this._accessors.splice(r,1);return}}select(e){this._accessors.forEach(r=>{this._isSameGroup(r,e)&&r[1]!==e&&r[1].fireUncheck(e.value)})}_isSameGroup(e,r){return e[0].control?e[0]._parent===r._control._parent&&e[1].name===r.name:!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ih=(()=>{class t extends th{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=w(rh,{optional:!0})??Rc;constructor(e,r,i,o){super(e,r),this._registry=i,this._injector=o}ngOnInit(){this._control=this._injector.get(Ci),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(r){return new(r||t)(I(St),I(Ee),I(a1),I(we))};static \u0275dir=re({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,i){r&1&&O("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[co([s1]),Pn]})}return t})();var c1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({})}return t})();var Gt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:rh,useValue:e.callSetDisabledState??Rc}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({imports:[c1]})}return t})();var Pt=Object.create(null);Pt.open="0";Pt.close="1";Pt.ping="2";Pt.pong="3";Pt.message="4";Pt.upgrade="5";Pt.noop="6";var Bo=Object.create(null);Object.keys(Pt).forEach(t=>{Bo[Pt[t]]=t});var Uo={type:"error",data:"parser error"};var Z_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Y_=typeof ArrayBuffer=="function",Q_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,$o=({type:t,data:n},e,r)=>Z_&&n instanceof Blob?e?r(n):G_(n,r):Y_&&(n instanceof ArrayBuffer||Q_(n))?e?r(n):G_(new Blob([n]),r):r(Pt[t]+(n||"")),G_=(t,n)=>{let e=new FileReader;return e.onload=function(){let r=e.result.split(",")[1];n("b"+(r||""))},e.readAsDataURL(t)};function W_(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var sh;function K_(t,n){if(Z_&&t.data instanceof Blob)return t.data.arrayBuffer().then(W_).then(n);if(Y_&&(t.data instanceof ArrayBuffer||Q_(t.data)))return n(W_(t.data));$o(t,!1,e=>{sh||(sh=new TextEncoder),n(sh.encode(e))})}var J_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ho=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let n=t.length*.75,e=t.length,r,i=0,o,s,a,c;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);let l=new ArrayBuffer(n),u=new Uint8Array(l);for(r=0;r>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|c&63;return l};var l1=typeof ArrayBuffer=="function",zo=(t,n)=>{if(typeof t!="string")return{type:"message",data:e0(t,n)};let e=t.charAt(0);return e==="b"?{type:"message",data:u1(t.substring(1),n)}:Bo[e]?t.length>1?{type:Bo[e],data:t.substring(1)}:{type:Bo[e]}:Uo},u1=(t,n)=>{if(l1){let e=X_(t);return e0(e,n)}else return{base64:!0,data:t}},e0=(t,n)=>{switch(n){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}};var t0="",n0=(t,n)=>{let e=t.length,r=new Array(e),i=0;t.forEach((o,s)=>{$o(o,!1,a=>{r[s]=a,++i===e&&n(r.join(t0))})})},r0=(t,n)=>{let e=t.split(t0),r=[];for(let i=0;i{let r=e.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);let o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),n.enqueue(i),n.enqueue(e)})}})}var ah;function Pc(t){return t.reduce((n,e)=>n+e.length,0)}function kc(t,n){if(t[0].length===n)return t.shift();let e=new Uint8Array(n),r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(Uo);break}i=u*Math.pow(2,32)+l.getUint32(4),r=3}else{if(Pc(e)t){a.enqueue(Uo);break}}}})}var ch=4;function ce(t){if(t)return d1(t)}function d1(t){for(var n in ce.prototype)t[n]=ce.prototype[n];return t}ce.prototype.on=ce.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this};ce.prototype.once=function(t,n){function e(){this.off(t,e),n.apply(this,arguments)}return e.fn=n,this.on(t,e),this};ce.prototype.off=ce.prototype.removeListener=ce.prototype.removeAllListeners=ce.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+t];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;iPromise.resolve().then(n):(n,e)=>e(n,0),je=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),s0="arraybuffer";function Fc(t,...n){return n.reduce((e,r)=>(t.hasOwnProperty(r)&&(e[r]=t[r]),e),{})}var f1=je.setTimeout,h1=je.clearTimeout;function gn(t,n){n.useNativeTimers?(t.setTimeoutFn=f1.bind(je),t.clearTimeoutFn=h1.bind(je)):(t.setTimeoutFn=je.setTimeout.bind(je),t.clearTimeoutFn=je.clearTimeout.bind(je))}var p1=1.33;function a0(t){return typeof t=="string"?g1(t):Math.ceil((t.byteLength||t.size)*p1)}function g1(t){let n=0,e=0;for(let r=0,i=t.length;r=57344?e+=3:(r++,e+=4);return e}function Lc(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function c0(t){let n="";for(let e in t)t.hasOwnProperty(e)&&(n.length&&(n+="&"),n+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n}function l0(t){let n={},e=t.split("&");for(let r=0,i=e.length;r{this.readyState="paused",n()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||e()})),this.writable||(r++,this.once("drain",function(){--r||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){let e=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};r0(n,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,n0(n,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let n=this.opts.secure?"https":"http",e=this.query||{};return this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Lc()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.createUri(n,e)}};var u0=!1;try{u0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var d0=u0;function m1(){}var lh=class extends qo{constructor(n){if(super(n),typeof location<"u"){let e=location.protocol==="https:",r=location.port;r||(r=e?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||r!==n.port}}doWrite(n,e){let r=this.request({method:"POST",data:n});r.on("success",e),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){let n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(e,r)=>{this.onError("xhr poll error",e,r)}),this.pollXhr=n}},jc=(()=>{class t extends ce{constructor(e,r,i){super(),this.createRequest=e,gn(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;let r=Fc(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(r);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&i.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var o;i.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=m1,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return t.requestsCount=0,t.requests={},t})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",f0);else if(typeof addEventListener=="function"){let t="onpagehide"in je?"pagehide":"unload";addEventListener(t,f0,!1)}}function f0(){for(let t in jc.requests)jc.requests.hasOwnProperty(t)&&jc.requests[t].abort()}var y1=function(){let t=h0({xdomain:!1});return t&&t.responseType!==null}(),$n=class extends lh{constructor(n){super(n);let e=n&&n.forceBase64;this.supportsBinary=y1&&!e}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new jc(h0,this.uri(),n)}};function h0(t){let n=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||d0))return new XMLHttpRequest}catch{}if(!n)try{return new je[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var p0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",dh=class extends mn{get name(){return"websocket"}doOpen(){let n=this.uri(),e=this.opts.protocols,r=p0?{}:Fc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,e,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let e=0;e{try{this.doWrite(r,o)}catch{}i&&pn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let n=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=Lc()),this.supportsBinary||(e.b64=1),this.createUri(n,e)}},uh=je.WebSocket||je.MozWebSocket,Hn=class extends dh{createSocket(n,e,r){return p0?new uh(n,e,r):e?new uh(n,e):new uh(n)}doWrite(n,e){this.ws.send(e)}};var Ii=class extends mn{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{let e=o0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=n.readable.pipeThrough(e).getReader(),i=i0();i.readable.pipeTo(n.writable),this._writer=i.writable.getWriter();let o=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),o())}).catch(a=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let e=0;e{i&&pn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}};var fh={websocket:Hn,webtransport:Ii,polling:$n};var v1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,_1=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Mi(t){if(t.length>8e3)throw"URI too long";let n=t,e=t.indexOf("["),r=t.indexOf("]");e!=-1&&r!=-1&&(t=t.substring(0,e)+t.substring(e,r).replace(/:/g,";")+t.substring(r,t.length));let i=v1.exec(t||""),o={},s=14;for(;s--;)o[_1[s]]=i[s]||"";return e!=-1&&r!=-1&&(o.source=n,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=w1(o,o.path),o.queryKey=b1(o,o.query),o}function w1(t,n){let e=/\/{2,9}/g,r=n.replace(e,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&r.splice(0,1),n.slice(-1)=="/"&&r.splice(r.length-1,1),r}function b1(t,n){let e={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(e[i]=o)}),e}var hh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Bc=[];hh&&addEventListener("offline",()=>{Bc.forEach(t=>t())},!1);var Uc=(()=>{class t extends ce{constructor(e,r){if(super(),this.binaryType=s0,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let i=Mi(e);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else r.host&&(r.hostname=Mi(r.host).host);gn(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(i=>{let o=i.prototype.name;this.transports.push(o),this._transportsByName[o]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=l0(this.opts.query)),hh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Bc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=ch,r.transport=e,this.id&&(r.sid=this.id);let i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i0&&r>this._maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,pn(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,i){return this._sendPacket("message",e,r,i),this}send(e,r,i){return this._sendPacket("message",e,r,i),this}_sendPacket(e,r,i,o){if(typeof r=="function"&&(o=r,r=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let s={type:e,data:r,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),hh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let i=Bc.indexOf(this._offlineEventListener);i!==-1&&Bc.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}}return t.protocol=ch,t})(),$c=class extends Uc{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n{r||(e.send([{type:"ping",data:"probe"}]),e.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;Uc.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=e.name,this.emitReserved("upgradeError",f)}}))};function o(){r||(r=!0,u(),e.close(),e=null)}let s=d=>{let f=new Error("probe error: "+d);f.transport=e.name,o(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function c(){s("socket closed")}function l(d){e&&d.name!==e.name&&o()}let u=()=>{e.removeListener("open",i),e.removeListener("error",s),e.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};e.once("open",i),e.once("error",s),e.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{r||e.open()},200):e.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){let e=[];for(let r=0;rfh[i]).filter(i=>!!i)),super(n,r)}};var Wj=xi.protocol;function g0(t,n="",e){let r=t;e=e||typeof location<"u"&&location,t==null&&(t=e.protocol+"//"+e.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=e.protocol+t:t=e.host+t),/^(https?|wss?):\/\//.test(t)||(typeof e<"u"?t=e.protocol+"//"+t:t="https://"+t),r=Mi(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+n,r.href=r.protocol+"://"+o+(e&&e.port===r.port?"":":"+r.port),r}var _h={};W0(_h,{Decoder:()=>yh,Encoder:()=>mh,PacketType:()=>K,protocol:()=>w0});var D1=typeof ArrayBuffer=="function",E1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,m0=Object.prototype.toString,I1=typeof Blob=="function"||typeof Blob<"u"&&m0.call(Blob)==="[object BlobConstructor]",M1=typeof File=="function"||typeof File<"u"&&m0.call(File)==="[object FileConstructor]";function Wo(t){return D1&&(t instanceof ArrayBuffer||E1(t))||I1&&t instanceof Blob||M1&&t instanceof File}function Go(t,n){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let e=0,r=t.length;e=0&&t.num{delete this.acks[n];for(let a=0;a{this.io.clearTimeoutFn(o),e.apply(this,a)};s.withError=!0,this.acks[n]=s}emitWithAck(n,...e){return new Promise((r,i)=>{let o=(s,a)=>s?i(s):r(a);o.withError=!0,e.push(o),this.emit(n,...e)})}_addToQueue(n){let e;typeof n[n.length-1]=="function"&&(e=n.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(i)):(this._queue.shift(),e&&e(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;let e=this._queue[0];e.pending&&!n||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:K.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(r=>String(r.id)===n)){let r=this.acks[n];delete this.acks[n],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case K.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case K.EVENT:case K.BINARY_EVENT:this.onevent(n);break;case K.ACK:case K.BINARY_ACK:this.onack(n);break;case K.DISCONNECT:this.ondisconnect();break;case K.CONNECT_ERROR:this.destroy();let r=new Error(n.data.message);r.data=n.data.data,this.emitReserved("connect_error",r);break}}onevent(n){let e=n.data||[];n.id!=null&&e.push(this.ack(n.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){let e=this._anyListeners.slice();for(let r of e)r.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){let e=this,r=!1;return function(...i){r||(r=!0,e.packet({type:K.ACK,id:n,data:i}))}}onack(n){let e=this.acks[n.id];typeof e=="function"&&(delete this.acks[n.id],e.withError&&n.data.unshift(null),e.apply(this,n.data))}onconnect(n,e){this.id=n,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:K.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){let e=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}_r.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),e=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+e:t-e}return Math.min(t,this.max)|0};_r.prototype.reset=function(){this.attempts=0};_r.prototype.setMin=function(t){this.ms=t};_r.prototype.setMax=function(t){this.max=t};_r.prototype.setJitter=function(t){this.jitter=t};var Si=class extends ce{constructor(n,e){var r;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(e=n,n=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,gn(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((r=e.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new _r({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=n;let i=e.parser||_h;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var e;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(e=this.backoff)===null||e===void 0||e.setMin(n),this)}randomizationFactor(n){var e;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(e=this.backoff)===null||e===void 0||e.setJitter(n),this)}reconnectionDelayMax(n){var e;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(e=this.backoff)===null||e===void 0||e.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new xi(this.uri,this.opts);let e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let i=ct(e,"open",function(){r.onopen(),n&&n()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),n?n(a):this.maybeReconnectOnOpen()},s=ct(e,"error",o);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),e.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let n=this.engine;this.subs.push(ct(n,"ping",this.onping.bind(this)),ct(n,"data",this.ondata.bind(this)),ct(n,"error",this.onerror.bind(this)),ct(n,"close",this.onclose.bind(this)),ct(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(e){this.onclose("parse error",e)}}ondecoded(n){pn(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,e){let r=this.nsps[n];return r?this._autoConnect&&!r.active&&r.connect():(r=new Ti(this,n,e),this.nsps[n]=r),r}_destroy(n){let e=Object.keys(this.nsps);for(let r of e)if(this.nsps[r].active)return;this._close()}_packet(n){let e=this.encoder.encode(n);for(let r=0;rn()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,e){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(i=>{i?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",i)):n.onreconnect()}))},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}};var Zo={};function Hc(t,n){typeof t=="object"&&(n=t,t=void 0),n=n||{};let e=g0(t,n.path||"/socket.io"),r=e.source,i=e.id,o=e.path,s=Zo[i]&&o in Zo[i].nsps,a=n.forceNew||n["force new connection"]||n.multiplex===!1||s,c;return a?c=new Si(r,n):(Zo[i]||(Zo[i]=new Si(r,n)),c=Zo[i]),e.query&&!n.query&&(n.query=e.queryKey),c.socket(e.path,n)}Object.assign(Hc,{Manager:Si,Socket:Ti,io:Hc,connect:Hc});var A1=["alert"],O1=t=>({"animation-duration":t});function N1(t,n){if(t&1&&(m(0,"div",9),Re(1,"span",10),v()),t&2){let e=g(2);p(),y("ngStyle",kn(1,O1,(e.timeout+350)/1e3+"s"))}}function R1(t,n){if(t&1&&Re(0,"div"),t&2){let e=g(3);an(e.icon)}}function P1(t,n){if(t&1&&(m(0,"div",11),S(1,R1,1,3,"div",12),m(2,"div",13),A(3),v()()),t&2){let e=g(2);p(),y("ngIf",e.icon),p(2),Ie(e.text)}}function k1(t,n){if(t&1){let e=W();m(0,"button",15),O("click",function(){let i=N(e).$implicit;return g(3).remove(),R(i.callback&&i.callback())}),A(1),v()}if(t&2){let e=n.$implicit;p(),de(" ",e.text," ")}}function F1(t,n){if(t&1&&(m(0,"div"),S(1,k1,2,1,"button",14),v()),t&2){let e=g(2);p(),y("ngForOf",e.buttons)}}function L1(t,n){if(t&1){let e=W();m(0,"div",16),O("click",function(){N(e);let i=g(2);return R(i.remove())}),v()}}function V1(t,n){if(t&1&&(m(0,"div",2)(1,"div",3,0),S(3,N1,2,3,"div",4),m(4,"div",5),S(5,P1,4,2,"div",6)(6,F1,2,1,"div",7)(7,L1,1,0,"div",8),v()()()),t&2){let e=g();he("_close",e.delete_animation),y("ngClass",e.class),p(),he("waw-alert-color-blue",e.type=="info")("waw-alert-color-red",e.type=="error")("waw-alert-color-green",e.type=="success")("waw-alert-color-orange",e.type=="warning")("waw-alert-color-yellow",e.type=="question"),p(2),y("ngIf",e.progress),p(2),y("ngIf",!e.component),p(),y("ngIf",!e.component&&e.type=="question"),p(),y("ngIf",e.closable)}}function j1(t,n){if(t&1){let e=W();m(0,"span",3),O("click",function(){N(e);let i=g();return R(i.close())}),A(1,"\xD7"),v()}}function B1(t,n){if(t&1){let e=W();ye(0),m(1,"input",2,0),O("change",function(i){let o=N(e).$implicit,s=At(2);return g().fs.change(i,o),R(s.value="")}),v(),ve()}if(t&2){let e=n.$implicit;p(),y("id",e.id)("hidden",!0)("accept",e.accept||e.part&&"image/*"||"")("multiple",e.multiple&&!0||"")}}var zn=new M("config"),Ai={meta:{useTitleSuffix:!1,warnMissingGuard:!0,defaults:{}},socket:!1,http:{url:"",headers:{}},store:{prefix:""}},wh={alerts:{},text:"",type:"info",class:"",progress:!0,position:"bottomRight",timeout:5e3,closable:!0,buttons:[]};String.prototype.capitalize||(String.prototype.capitalize=function(){return this.length>0?this.charAt(0).toUpperCase()+this.slice(1).toLowerCase():""});var be=(()=>{class t{platformId;ssr=!1;localStorage;navigator;document;window;constructor(e){this.platformId=e,this.ssr=oi(this.platformId),oi(this.platformId)?(this.localStorage={getItem:()=>{},setItem:()=>{},removeItem:()=>{},clear:()=>{}},this.document={querySelectorAll:()=>{},addEventListener:()=>{},removeEventListener:()=>{},documentElement:{},body:{}},this.window={location:{host:""},addEventListener:()=>{},removeEventListener:()=>{},setTimeout:()=>{}},this.navigator={userAgent:"",platform:""}):(this.localStorage=localStorage,this.document=document,this.window=window,this.navigator=navigator),this.detectDevice()}ota(e,r=!1){if(Array.isArray(e))return e;if(typeof e!="object"||e===null)return[];let i=[];for(let o in e)e.hasOwnProperty(o)&&(e[o]||typeof e[o]=="number"||typeof e[o]=="boolean")&&(r?i.push(o):i.push(e[o]));return i}splice(e,r,i="_id"){if(!Array.isArray(e)||!Array.isArray(r))return r;let o=new Set(e.map(s=>s[i]));return r.filter(s=>!o.has(s[i]))}ids2id(...e){return e.sort((r,i)=>Number(r.toString().substring(0,8))>Number(i.toString().substring(0,8))?1:-1),e.join()}_afterWhile={};afterWhile(e,r,i=1e3){typeof e=="function"&&(r=e,e="common"),typeof r=="function"&&typeof i=="number"&&(typeof e=="string"?(clearTimeout(this._afterWhile[e]),this._afterWhile[e]=this.window.setTimeout(r,i)):typeof e=="object"?(clearTimeout(e.__afterWhile),e.__afterWhile=this.window.setTimeout(r,i)):console.warn("badly configured after while"))}copy(e,r){for(let i in e)typeof e[i]!="object"||e[i]instanceof Date||Array.isArray(e[i])||e[i]===null?r[i]=e[i]:((typeof r[i]!="object"||r[i]instanceof Date||Array.isArray(r[i])||r[i]===null)&&(r[i]={}),this.copy(e[i],r[i]))}device="";detectDevice(){let e=this.navigator.userAgent||this.navigator.vendor||this.window.opera;/windows phone/i.test(e)?this.device="Windows Phone":/android/i.test(e)?this.device="Android":/iPad|iPhone|iPod/.test(e)&&!this.window.MSStream?this.device="iOS":this.device="Web"}isMobile(){return this.device==="Windows Phone"||this.device==="Android"||this.device==="iOS"}isTablet(){return this.device==="iOS"&&/iPad/.test(navigator.userAgent)}isWeb(){return this.device==="Web"}isAndroid(){return this.device==="Android"}isIos(){return this.device==="iOS"}version="1.0.0";appVersion="";dateVersion="";setVersion(){this.version=this.appVersion||"",this.version+=this.version&&this.dateVersion?" ":"",this.version+=this.dateVersion||""}setAppVersion(e){this.appVersion=e,this.setVersion()}setDateVersion(e){this.dateVersion=e,this.setVersion()}_signals={};emit(e,r){this._signals[e]||(this._signals[e]=new te),this._signals[e].next(r)}on(e){return this._signals[e]||(this._signals[e]=new te),this._signals[e].asObservable()}off(e){this._signals[e]&&(this._signals[e].complete(),delete this._signals[e])}_completed={};_completeResolvers={};complete(e){this._completed[e]=!0,this._completeResolvers[e]&&(this._completeResolvers[e].forEach(r=>r()),this._completeResolvers[e]=[])}onComplete(e){return this._completed[e]?Promise.resolve():new Promise(r=>{this._completeResolvers[e]||(this._completeResolvers[e]=[]),this._completeResolvers[e].push(r)})}completed(e){return!!this._completed[e]}_locked={};_unlockResolvers={};lock(e){this._locked[e]=!0,this._unlockResolvers[e]||(this._unlockResolvers[e]=[])}unlock(e){this._locked[e]=!1,this._unlockResolvers[e]&&(this._unlockResolvers[e].forEach(r=>r()),this._unlockResolvers[e]=[])}onUnlock(e){return this._locked[e]?new Promise(r=>{this._unlockResolvers[e]||(this._unlockResolvers[e]=[]),this._unlockResolvers[e].push(r)}):Promise.resolve()}locked(e){return!!this._locked[e]}static \u0275fac=function(r){return new(r||t)(_($t))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yo=t=>typeof t<"u",b0=(()=>{class t{router;meta;core;titleService;config;_meta;constructor(e,r,i,o,s){this.router=e,this.meta=r,this.core=i,this.titleService=o,this.config=s,this.config=this.config||Ai,this._meta=this.config.meta||{},this._warnMissingGuard()}setDefaults(e){this._meta.defaults=e}setTitle(e,r){let i=Yo(e)?e:this._meta.defaults.title||"";return this._meta.useTitleSuffix&&(i+=Yo(r)?r:this._meta.defaults.titleSuffix||""),this._updateMetaTag("title",i),this._updateMetaTag("og:title",i),this.titleService.setTitle(i),this}setLink(e){return Object.keys(e).forEach(r=>{let i=this.core.document.createElement("link");i.setAttribute("rel",r),i.setAttribute("href",e[r]),this.core.document.head.appendChild(i)}),this}setTag(e,r,i){if(e==="title"||e==="titleSuffix")throw new Error(`Attempt to set ${e} through 'setTag': 'title' and 'titleSuffix' are reserved tag names. Please use 'MetaService.setTitle' instead`);let o=Yo(r)?r:this._meta.defaults[e]||"";return this._updateMetaTag(e,o,i),e==="description"&&(this._updateMetaTag("og:description",o,i),this._updateMetaTag("twitter:description",o,i)),this}_updateMetaTag(e,r,i){i=i||(e.startsWith("og:")||e.startsWith("twitter:")?"property":"name"),this.meta.updateTag({[i]:e,content:r})}removeTag(e,r){r=r||(e.startsWith("og:")||e.startsWith("twitter:")?"property":"name"),this.meta.removeTag(`${r}="${e}"`)}_warnMissingGuard(){if(Yo(this._meta.warnMissingGuard)&&!this._meta.warnMissingGuard)return;let e=!!Object.keys(this._meta.defaults).length,r=o=>o&&o.IDENTIFIER==="MetaGuard",i=!1;this.router.config.forEach(o=>{let s=o.data&&o.data.meta;!Yo(o.redirectTo)&&(e||s)&&!(o.canActivate||[]).some(r)&&(console.warn(`Route with path "${o.path}" has ${s?"":"default "}meta tags, but does not use MetaGuard. Please add MetaGuard to the canActivate array in your route configuration`),i=!0)}),i&&console.warn("To disable these warnings, set metaConfig.warnMissingGuard: false in your MetaConfig passed to MetaModule.forRoot()")}static \u0275fac=function(r){return new(r||t)(_(vt),_(kv),_(be),_(oc),_(zn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),U1=(()=>{class t{metaService;config;static IDENTIFIER="MetaGuard";_meta;constructor(e,r){this.metaService=e,this.config=r,this._meta=r.meta,this.config||(this.config=Ai)}canActivate(e,r){return this._processRouteMetaTags(e.data&&e.data.meta),!0}_processRouteMetaTags(e={}){e.disableUpdate||(e.title&&this.metaService.setTitle(e.title,e.titleSuffix),Array.isArray(e.links)?this.metaService.setLink(e.links):typeof e.links=="string"&&this.metaService.setLink(e.links.split(" ")),Array.isArray(this._meta.defaults?.links)?this.metaService.setLink(this._meta.defaults?.links):typeof this._meta.defaults?.links=="string"&&this.metaService.setLink(this._meta.defaults?.links.split(" ")),Object.keys(e).forEach(r=>{r==="title"||r==="titleSuffix"||r==="links"||Object.keys(e[r]).forEach(i=>{this.metaService.setTag(i,e[r][i],r)})}),Object.keys(this._meta.defaults).forEach(r=>{r in e||r==="title"||r==="titleSuffix"||r==="links"||this.metaService.setTag(r,this._meta.defaults[r])}))}static \u0275fac=function(r){return new(r||t)(_(b0),_(zn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),$1=(()=>{class t{core;alert;component;text="";class="";type="info";progress=!0;position="bottomRight";icon="";timeout=5e3;close;closable=!0;buttons=[];constructor(e){this.core=e,setTimeout(()=>{if(this.timeout){let r=JSON.parse(JSON.stringify(this.timeout)),i=setTimeout(()=>{this.remove()},r),o=new Date;this.alert.nativeElement.addEventListener("mouseenter",()=>{clearTimeout(i),r-=new Date().getTime()-o.getTime()},!1),this.alert.nativeElement.addEventListener("mouseleave",()=>{o=new Date,clearTimeout(i),i=e.window.setTimeout(()=>{this.remove()},r)},!1)}})}delete_animation=!1;remove(){this.delete_animation=!0,setTimeout(()=>{this.close(),this.delete_animation=!1},350)}static \u0275fac=function(r){return new(r||t)(I(be))};static \u0275cmp=fe({type:t,selectors:[["alert"]],viewQuery:function(r,i){if(r&1&&ei(A1,5),r&2){let o;nt(o=rt())&&(i.alert=o.first)}},standalone:!1,decls:1,vars:1,consts:[["alert",""],["class","waw-alert-container height",3,"ngClass","_close",4,"ngIf"],[1,"waw-alert-container","height",3,"ngClass"],[1,"waw-alert","bounceInUp","waw-alert-theme-light","waw-alert-animateInside","waw-alert-opened"],["class","waw-alert__progress",4,"ngIf"],[1,"waw-alert-body"],["class","waw-alert-texts",4,"ngIf"],[4,"ngIf"],["class","waw-alert__close",3,"click",4,"ngIf"],[1,"waw-alert__progress"],[3,"ngStyle"],[1,"waw-alert-texts"],[3,"class",4,"ngIf"],[1,"waw-alert-message","slideIn"],["class","alert-btn",3,"click",4,"ngFor","ngForOf"],[1,"alert-btn",3,"click"],[1,"waw-alert__close",3,"click"]],template:function(r,i){r&1&&S(0,V1,8,17,"div",1),r&2&&y("ngIf",i.text)},dependencies:[dn,Ve,it,av],styles:['@keyframes _ngcontent-%COMP%_iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes _ngcontent-%COMP%_iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert[_ngcontent-%COMP%]{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show[_ngcontent-%COMP%]{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon[_ngcontent-%COMP%]{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text[_ngcontent-%COMP%]{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text[_ngcontent-%COMP%] .text-block[_ngcontent-%COMP%]{width:99%}.alert-text[_ngcontent-%COMP%] .text-block__text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close[_ngcontent-%COMP%]{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold[_ngcontent-%COMP%]{font-weight:700}.waw-alert__progress[_ngcontent-%COMP%]{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:_ngcontent-%COMP%_waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%] span._red[_ngcontent-%COMP%]{background-color:#ffafb4}.waw-alert__progress[_ngcontent-%COMP%] span._green[_ngcontent-%COMP%]{background-color:#a6efb8}.waw-alert__progress[_ngcontent-%COMP%] span._yellow[_ngcontent-%COMP%]{background-color:#fff9b2}.waw-alert__progress[_ngcontent-%COMP%] span._orange[_ngcontent-%COMP%], .waw-alert__progress[_ngcontent-%COMP%] span._blue[_ngcontent-%COMP%]{background-color:#ffcfa5}.waw-alert__progress[_ngcontent-%COMP%] span._white[_ngcontent-%COMP%]{background-color:#fff}.waw-alert__progress[_ngcontent-%COMP%] span._black[_ngcontent-%COMP%]{background-color:#000}.waw-alert[_ngcontent-%COMP%]:hover .waw-alert__progress[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__close[_ngcontent-%COMP%]{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert__close[_ngcontent-%COMP%]:before, .waw-alert__close[_ngcontent-%COMP%]:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.waw-alert__close[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}@keyframes _ngcontent-%COMP%_waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container[_ngcontent-%COMP%]{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.waw-alert[_ngcontent-%COMP%]{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-texts[_ngcontent-%COMP%]{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper[_ngcontent-%COMP%]{padding:10px 15px}.waw-alert[_ngcontent-%COMP%]{margin:5px;border-radius:3px;width:auto}.waw-alert[_ngcontent-%COMP%]:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert[_ngcontent-%COMP%]:not(.waw-alert-rtl) .waw-alert-cover[_ngcontent-%COMP%]{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl[_ngcontent-%COMP%] .waw-alert-cover[_ngcontent-%COMP%]{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%] .waw-alert-progressbar[_ngcontent-%COMP%]{background:transparent}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%]:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target[_ngcontent-%COMP%] .waw-alert[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%]{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-color-red[_ngcontent-%COMP%]{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange[_ngcontent-%COMP%]{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow[_ngcontent-%COMP%]{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue[_ngcontent-%COMP%]{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green[_ngcontent-%COMP%]{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn[_ngcontent-%COMP%], .waw-alert[_ngcontent-%COMP%] .slideIn[_ngcontent-%COMP%]{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight[_ngcontent-%COMP%]{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both}.height[_ngcontent-%COMP%]{height:auto!important}']})}return t})(),H1=(()=>{class t{class="";size="flex";closable=!0;close;onOpen;timestart;timeout;showModal=!1;allowClose=!0;onClickOutside;ngOnInit(){typeof this.onClickOutside!="function"&&(this.onClickOutside=this.close),typeof this.onOpen=="function"&&this.onOpen(),window.addEventListener("popstate",this.popStateListener.bind(this))}ngAfterViewInit(){setTimeout(()=>{this.showModal=!0},this.timestart||0)}ngOnDestroy(){window.removeEventListener("popstate",this.popStateListener.bind(this))}popStateListener(e){this.close()}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-modal"]],standalone:!1,decls:4,vars:3,consts:[[1,"modal",3,"click","hidden","ngClass"],[1,"modal-content",3,"click"],["class","close",3,"click",4,"ngIf"],[1,"close",3,"click"]],template:function(r,i){r&1&&(m(0,"div",0),O("click",function(){return i.onClickOutside()}),m(1,"div",1),O("click",function(s){return s.stopPropagation()}),Re(2,"div"),S(3,j1,2,0,"span",2),v()()),r&2&&(y("hidden",!i.showModal)("ngClass",i.class+" "+i.size),p(3),y("ngIf",i.closable))},dependencies:[dn,it],styles:[".modal[_ngcontent-%COMP%]{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow-y:auto;background-color:#000;background-color:#00000080}.modal-content[_ngcontent-%COMP%]{position:relative;background-color:#fff;margin:15% auto;padding:20px;border:1px solid #888;min-width:20%;max-width:80%}.close[_ngcontent-%COMP%]{color:#aaa;position:absolute;right:10px;top:3px;font-size:32px;line-height:1}.close[_ngcontent-%COMP%]:hover, .close[_ngcontent-%COMP%]:focus{color:#000;text-decoration:none;cursor:pointer}"]})}return t})();var qc=(()=>{class t{elementRef;clickOutside=new G;constructor(e){this.elementRef=e}onClick(e){this.elementRef.nativeElement.contains(e.target)||this.clickOutside.emit(e)}static \u0275fac=function(r){return new(r||t)(I(Ee))};static \u0275dir=re({type:t,selectors:[["","clickOutside",""]],hostBindings:function(r,i){r&1&&O("click",function(s){return i.onClick(s)},!1,Pm)},outputs:{clickOutside:"clickOutside"},standalone:!1})}return t})();var Gc=(()=>{class t{c=0;transform(e,r,i,o,s,a){if(!r)return e;if(typeof i=="number"&&(o=i,i=null),s||!r)return o&&Array.isArray(e)?e.slice(0,o):e||[];let c=[],l={};if(!Array.isArray(r)&&typeof r=="object"){let f=[];for(let h in r)r[h]&&f.push(h);r=f}typeof r=="string"&&(r=[r]),i||(i=["name"]),typeof i=="string"&&(i=i.split(" "));let u=function(f,h,b,E){if(f){if(h.indexOf(".")>-1){let T=h.split("."),k=T.shift();if(Array.isArray(f[k])){for(let oe=0;oe-1||r[T].toLowerCase().indexOf(f[h].toString().toLowerCase())>-1)){l[E]||c.push(b),l[E]=!0,k=!0;break}if(k)break}}},d=function(f,h){for(let b=0;b{class t{now=new Date().getTime();refreshNow(){this.now=new Date().getTime()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zc=class extends z1{_config;_http;_store;_alert;_core;_url="/api/";_docs=[];_perPage=20;_filteredDocumentsCallbacks=[];constructor(n,e,r,i,o){super(),this._config=n,this._http=e,this._store=r,this._alert=i,this._core=o,this._url+=this._config.name,this._store.getJson("docs_"+this._config.name,s=>{Array.isArray(s)&&(this._docs.push(...s),this._filterDocuments())}),this._core.on("wipe").subscribe(()=>{this.clearDocs(),this._filterDocuments()})}setDocs(){this._store.setJson("docs_"+this._config.name,this._docs)}getDocs(){return this._docs}clearDocs(){this._docs.splice(0,this._docs.length),this.setDocs()}addDocs(n){if(Array.isArray(n))for(let e of n)this.addDoc(e)}addDoc(n){this._config.replace&&this._config.replace(n);let e=this._docs.find(r=>this._id(r)===this._id(n));e?(this._core.copy(n,e),this._core.copy(e,n)):this._docs.push(n),this.setDocs()}new(n={}){return H(C({},n),{_id:n._id||Date.now().toString(),__created:!1,__modified:!1})}doc(n){let e=this._docs.find(r=>this._id(r)===n)||this.new({_id:n});return!this._docs.find(r=>this._id(r)===n)&&!this._fetchingId[n]&&(this._fetchingId[n]=!0,setTimeout(()=>{this.fetch({_id:n}).subscribe(r=>{this._fetchingId[n]=!1,r&&this._core.copy(r,e)})})),e}setPerPage(n){this._perPage=n}get(n={},e={}){let r=`${this._url}/get${e.name||""}`,i=(typeof n.page=="number"||n.query?"?":"")+(n.query||"")+(typeof n.page=="number"?`&skip=${this._perPage*(n.page-1)}&limit=${this._perPage}`:""),o=this._http.get(`${r}${i}`);return o.subscribe({next:s=>{s.forEach(a=>this.addDoc(a)),e.callback&&e.callback(s),typeof n.page!="number"&&this._filterDocuments(),this._core.emit(`${this._config.name}_get`,this._docs)},error:s=>{e.errCallback&&e.errCallback(s)}}),o}create(n={},e={}){if(n.__created)return new z(i=>{i.error(new Error("Document has already been created."))});n.__created=!0;let r=this._http.post(`${this._url}/create${e.name||""}`,n);return r.subscribe({next:i=>{i?(this._core.copy(i,n),this.addDoc(n),this._filterDocuments(),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}create`,text:e.alert})):(n.__created=!1,e.errCallback&&e.errCallback(i)),this._core.emit(`${this._config.name}_create`,n)},error:i=>{n.__created=!1,e.errCallback&&e.errCallback(i)}}),r}fetch(n={},e={}){let r=this._http.post(`${this._url}/fetch${e.name||""}`,n);return r.subscribe({next:i=>{i?(this.addDoc(i),this._filterDocuments(),e.callback&&e.callback(i),e.alert&&this._alert.show({unique:`${this._config.name}create`,text:e.alert})):e.errCallback&&e.errCallback(i)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}updateAfterWhile(n,e={}){return n.__modified=!0,new z(r=>{this._core.afterWhile(this._id(n),()=>{this.update(n,e).subscribe({next:i=>{r.next(i)},error:i=>{r.error(i)},complete:()=>{r.complete()}})})})}update(n,e={}){n.__modified=!0;let r=this._http.post(`${this._url}/update${e.name||""}`,n);return r.subscribe({next:i=>{i?(n.__modified=!1,this._core.copy(i,n),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}update`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_update`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}unique(n,e={}){n.__modified=!0;let r=this._http.post(`${this._url}/unique${e.name||""}`,n);return r.subscribe({next:i=>{i?(n.__modified=!1,n[e.name]=i,e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}unique`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_unique`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}delete(n,e={}){let r=this._http.post(`${this._url}/delete${e.name||""}`,n);return r.subscribe({next:i=>{i?(this._docs.splice(this._docs.findIndex(o=>this._id(o)===this._id(n)),1),this.setDocs(),this._filterDocuments(),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}delete`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_delete`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}filteredDocuments(n,e="author",r,i=(o,s)=>o[this._id(o)]s[this._id(s)]?1:0){let o=()=>{for(let s in n)for(let a=n[s].length-1;a>=0;a--){let c=typeof e=="function"?e(n[s][a]):e,l=n[s][a];this._docs.find(u=>Array.isArray(u[c])?u[c].includes(l[this._id(u)]):u[c]===l[this._id(u)])||n[s].splice(a,1)}for(let s of this._docs){let a=typeof e=="function"?e(s):e;(typeof r=="function"?!r(s):Array.isArray(s[a])?!s[a]?.length:!s[a])||(typeof e=="function"?e(s)&&!n[s[a]].find(c=>c._id===s._id)&&n[s[a]].push(s):Array.isArray(s[a])?s[a].forEach(c=>{n[c]=n[c]||[],n[c].find(l=>l._id===s._id)||n[c].push(s)}):(n[s[a]]=n[s[a]]||[],n[s[a]].find(c=>c._id===s._id)||n[s[a]].push(s)))}for(let s in n)n[s].sort(i)};return this._filteredDocumentsCallbacks.push(o),o}_id(n){return n[this._config._id||"_id"]?.toString()}_filterDocuments(){for(let n of this._filteredDocumentsCallbacks)n();this._core.complete(this._config.name+"Loaded")}_fetchingId={}},Wt=(()=>{class t{config;core;_prefix="";constructor(e,r){this.config=e,this.core=r,this.config=this.config||Ai}setPrefix(e){this._prefix=e}set(e,r,i=()=>{},o=()=>{}){if(e=this.applyPrefix(e),this.config.store?.set)this.config.store.set(e,r,i,o);else try{this.core.localStorage.setItem(e,r),i()}catch{o()}}setAsync(e,r){return _t(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.set?yield this.config.store.set(e,r):this.core.localStorage.setItem(e,r),!0}catch(i){return console.error(i),!1}})}get(e,r=()=>{},i=()=>{}){if(e=this.applyPrefix(e),this.config.store?.get)this.config.store.get(e,r,i);else{let o=this.core.localStorage.getItem(e)||"";r(o)}}getAsync(e){return _t(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.get?yield this.config.store.get(e):this.core.localStorage.getItem(e)||""}catch(r){return console.error(r),""}})}setJson(e,r,i=()=>{},o=()=>{}){this.set(e,JSON.stringify(r),i,o)}setJsonAsync(e,r){return _t(this,null,function*(){return this.setAsync(e,JSON.stringify(r))})}getJson(e,r=()=>{},i=()=>{}){this.get(e,o=>{try{let s=JSON.parse(o);r(s)}catch{r(null)}},i)}getJsonAsync(e){return _t(this,null,function*(){let r=yield this.getAsync(e);try{return JSON.parse(r)}catch(i){return console.error(i),null}})}remove(e,r,i){return _t(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.remove?yield this.config.store.remove(e,r,i):this.core.localStorage.removeItem(e),r?.(),!0}catch(o){return console.error(o),i?.(),!1}})}clear(e,r){return _t(this,null,function*(){try{return this.config.store?.clear?yield this.config.store.clear():this.core.localStorage.clear(),e?.(),!0}catch(i){return console.error(i),r?.(),!1}})}applyPrefix(e){return this.config.store?.prefix&&(e=this.config.store.prefix+e),this._prefix&&(e=this._prefix+e),e}has(e){return _t(this,null,function*(){return!!(yield this.getAsync(e))})}static \u0275fac=function(r){return new(r||t)(_(zn,8),_(be))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Oi=(()=>{class t{store;http;_config;errors=[];url="";locked=!1;awaitLocked=[];_http;_headers={};_http_headers=new ot(this._headers);constructor(e,r,i){if(this.store=e,this.http=r,this._config=i,this._http=this._config.http||{},typeof this._http.headers=="object"){for(let o in this._http.headers)this._headers[o]=this._http.headers[o];this._http_headers=new ot(this._headers)}this.store.get("http_url",o=>{this.url=o||this._http.url||""}),this.store.getJson("http_headers",o=>{if(o){for(let s in o)this._headers[s]=o[s];this._http_headers=new ot(this._headers)}})}setUrl(e){this.url=e,this.store.set("http_url",e)}removeUrl(){this.url=this._http.url||"",this.store.remove("http_url")}set(e,r){this._headers[e]=r,this.store.setJson("http_headers",this._headers),this._http_headers=new ot(this._headers)}header(e){return this._headers[e]}remove(e){delete this._headers[e],this._http_headers=new ot(this._headers),this.store.setJson("http_headers",this._headers)}_httpMethod(e,r,i,o){return e==="post"?this.http.post(r,i,o):e==="put"?this.http.put(r,i,o):e==="patch"?this.http.patch(r,i,o):e==="delete"?this.http.delete(r,o):this.http.get(r,o)}_post(e,r,i=a=>{},o={},s="post"){if(typeof o=="function"&&(o={err:o}),o.err||(o.err=l=>{}),this.locked&&!o.skipLock)return new z(l=>{let u=setTimeout(()=>{this._post(e,r,i,o,s).subscribe(l)},100);this.awaitLocked.push(u)});let a=(o.url||this.url)+e;this.prepare_handle(a,r);let c=new Vi(1);return this._httpMethod(s,a,r,{headers:this._http_headers}).pipe(Et(),Dt(l=>(this.handleError(o.err,()=>{this._post(e,r,i,o,s).subscribe(c)})(l),c.error(l),Ae))).subscribe({next:l=>{if(o.acceptance&&typeof o.acceptance=="function"&&!o.acceptance(l)){let u=new ai({error:"Acceptance failed",status:400});this.handleError(o.err,()=>{})(u),c.error(u);return}if(o.replace&&typeof o.replace=="function"&&(Array.isArray(this._getObjectToReplace(l,o.data))?this._getObjectToReplace(l,o.data).map(u=>o.replace(u)):this._getObjectToReplace(l,o.data)&&o.replace(this._getObjectToReplace(l,o.data))),Array.isArray(o.fields)){if(Array.isArray(this._getObjectToReplace(l,o.data)))this._getObjectToReplace(l,o.data).map(u=>this._newDoc(u,o.fields));else if(this._getObjectToReplace(l,o.data)){let u=this._newDoc(this._getObjectToReplace(l,o.data),o.fields);o.data?this._setObjectToReplace(l,o.data,u):l=u}}this.response_handle(a,l,()=>i(l)),c.next(l),c.complete()},error:l=>c.error(l),complete:()=>c.complete()}),c.asObservable()}post(e,r,i=s=>{},o={}){return this._post(e,r,i,o)}put(e,r,i=s=>{},o={}){return this._post(e,r,i,o,"put")}patch(e,r,i=s=>{},o={}){return this._post(e,r,i,o,"patch")}delete(e,r=o=>{},i={}){return this._post(e,null,r,i,"delete")}get(e,r=o=>{},i={}){return this._post(e,null,r,i,"get")}clearLocked(){for(let e of this.awaitLocked)clearTimeout(e);this.awaitLocked=[]}lock(){this.locked=!0}unlock(){this.locked=!1}handleError(e,r){return i=>new Promise(o=>{this.err_handle(i,e,r),o()})}err_handle(e,r,i){typeof r=="function"&&r(e);for(let o of this.errors)typeof o=="function"&&o(e,i)}prepare_handle(e,r){}response_handle(e,r,i){typeof i=="function"&&i()}_getObjectToReplace(e,r=""){if(r.includes(".")){let i=r.split(""),o=i.pop()||"";return this._getObjectToReplace(e[o]||{},i.join("."))}else return r?e[r]:e}_setObjectToReplace(e,r="",i){for(;r.includes(".");){let o=r.split(""),s=o.pop()||"";e=e[s]||{},r=o.join(".")}e[r]=i}_newDoc(e,r){let i={};for(let o of r)i[o]=e[o];return i}static \u0275fac=function(r){return new(r||t)(_(Wt),_(of),_(zn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),C0=(()=>{class t{store;http;core;data={};socket={emit:(e,r)=>{console.log(e,r,"is not used on sockets")}};config(e,r){if(!this.data["opts"+e]){if(this.data["arr"+e]||(this.data["arr"+e]=[]),this.data["obj"+e]||(this.data["obj"+e]={}),this.data["opts"+e])for(let i in r)this.data["opts"+e][i]=r[i];else this.data["opts"+e]=r=r||{};if(typeof r.use=="string"&&(r.use=r.use.split(" ")),r.query)for(let i in r.query)typeof r.query[i]=="function"&&(r.query[i]={allow:r.query[i]}),this.data["obj"+e][i]=[];if(r.groups){if(typeof r.groups=="string"&&(r.groups=r.groups.split(" ")),Array.isArray(r.groups)){let i=r.groups;r.groups={};for(let o=0;o{s?(this.socket.emit("create",{_id:s._id,part:e}),this.push(e,s),typeof i=="function"&&i(s)):typeof i=="function"&&i(!1)},{url:o.base_url||this.http.url}))}fetch(e,r=void 0,i=void 0){if(r.query&&r.query._id&&!r.force&&this.data["obj"+e][r.query._id])return this.data["obj"+e][r.query._id];typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(e,r);let o="/api/"+e+"/fetch"+(r.name||""),s;if(r.query&&r.query._id&&this.data["obj"+e][r.query._id])s=this.data["obj"+e][r.query._id];else{s={};for(let a in this.data["opts"+e].replace)this.replace(s,a,this.data["opts"+e].replace[a])}return this.http.post(r.url||o,r.query||{},a=>{if(!a)return i&&i(!1);for(let c in a)s[c]=a[c];for(let c in s)s[c]=a[c];this.push(e,s),a&&typeof i=="function"&&i(s)},{url:r.base_url||this.http.url}),s}get(e,r=void 0,i=void 0){typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(e,r);let o="/api/"+e+"/get"+(r.name||"")+(r.param||"");return this.http.get(r.url||o,s=>{if(Array.isArray(s)){for(let a=0;a{a&&this.socket.emit("update",{_id:r._id,part:e}),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}unique(e,r,i=void 0,o=void 0){typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),r=this.prepare_update(e,r,i);let s="/api/"+e+"/unique"+(i.name||"");this.http.post(i.url||s,r,a=>{if(a){this.socket.emit("update",{_id:r._id,part:e});let c=this.data["obj"+e][r._id];for(let l in r)c[l]=r[l];this.renew(e,c)}(a||typeof a=="string")&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}delete(e,r,i=void 0,o=void 0){if(typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),i.fields){typeof i.fields=="string"&&(i.fields=i.fields.split(" "));let a={};for(let c=0;c{a&&(this.socket.emit("delete",{_id:r._id,part:e}),this.remove(e,r)),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}_id(e){typeof e=="function"&&this.http.get("/waw/newId",e)}to_id(e){if(!e)return[];if(Array.isArray(e))e=e.slice();else if(typeof e=="object"){if(e._id)return[e._id];let r=[];for(let i in e)e[i]&&r.push(e[i]._id||e[i]);e=r}for(let r=0;r-1){r=r.split(".");let o=r.shift();return typeof e[o]!="object"?void 0:this.populate(e[o],r.join("."),i)}if(Array.isArray(e[r])){for(let o=e[r].length-1;o>=0;o--)this.data["obj"+i][e[r][o]]?e[r][o]=this.data["obj"+i][e[r][o]]:e[r].splice(o,1);return}else if(typeof e[r]=="string")e[r]=this.data["obj"+i][e[r]]||null;else return}else setTimeout(()=>{this.populate(e,r,i)},100)}}on(e,r){typeof e=="string"&&(e=e.split(" "));for(var i=0;i{this.on(e,r)},100);r(this.data)}track(e,r){return r&&r._id&&r._id||e}sortAscId(){return function(e,r){return e._id>r._id?1:-1}}sortDescId(){return function(e,r){return e._idi[e.field].toLowerCase()?1:r[e.field].toLowerCase()i[e.field].toLowerCase()||!e.next?-1:e.next(r,i)}}sortAscDate(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field].getTime()>i[e.field].getTime()?1:r[e.field].getTime()i[e.field].getTime()||!e.next?-1:e.next(r,i)}}sortAscNumber(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field]>i[e.field]?1:r[e.field]i[e.field]||!e.next?-1:e.next(r,i)}}sortAscBoolean(e){return typeof e=="string"&&(e={field:e}),function(r,i){return!r[e.field]&&i[e.field]?1:r[e.field]&&!i[e.field]||!e.next?-1:e.next(r,i)}}sortDescBoolean(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field]&&!i[e.field]?1:!r[e.field]&&i[e.field]||!e.next?-1:e.next(r,i)}}beArr(e,r){Array.isArray(e)?r(e):r([])}beObj(e,r){(typeof e!="object"||Array.isArray(e)||!e)&&(e={}),r(e)}beDate(e,r){r(new Date(e))}beString(e,r){typeof e!="string"&&(e=""),r(e)}beDoc=(e,r)=>{this.beObj(e,i=>{i._id?r(i):this._id(o=>{i._id=o,r(i)})})};forceArr(e,r){r([])}forceObj(e,r){r({})}forceString(e,r){r("")}forceDoc=(e,r)=>{this._id(i=>{r({_id:i})})};getCreated(e,r,i){r(new Date(parseInt(i._id.substring(0,8),16)*1e3))}replace(e,r,i){if(r.indexOf(".")>-1){r=r.split(".");let o=r.shift();return e[o]&&(typeof e[o]!="object"||Array.isArray(e[o]))?void 0:(e[o]||(e[o]={}),this.replace(e[o],r.join("."),i))}typeof i=="function"&&i(e[r],function(o){e[r]=o},e)}renew(e,r){if(!this.data["obj"+e][r._id])return this.push(e,r);if(this.data["opts"+e].replace)for(let i in this.data["opts"+e].replace)this.replace(r,i,this.data["opts"+e].replace[i]);for(let i in this.data["obj"+e][r._id])this.data["obj"+e][r._id][i]=r[i];for(let i in r)this.data["obj"+e][r._id][i]=r[i];for(let i=0;i{if(a[l]=!0,!!l){if(Array.isArray(this.data["obj"+e][i][l])||(this.data["obj"+e][i][l]=[]),o){for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)if(this.data["obj"+e][i][l][u]._id==r._id)return;this.data["obj"+e][i][l].push(r)}else for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)this.data["obj"+e][i][l][u]._id==r._id&&this.data["obj"+e][i][l].splice(u,1);typeof s.sort=="function"&&this.data["obj"+e][i][l].sort(s.sort)}};c(s.field(r,c.bind(this)));for(let l in this.data["obj"+e][i])if(!a[l])for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)this.data["obj"+e][i][l][u]._id==r._id&&this.data["obj"+e][i][l].splice(u,1)}if(this.data["opts"+e].query)for(let i in this.data["opts"+e].query){let o=!0,s=this.data["opts"+e].query[i];if(typeof s.ignore=="function"&&s.ignore(r)&&(o=!1),typeof s.allow=="function"&&!s.allow(r)&&(o=!1),this.data["obj"+e][i]||(this.data["obj"+e][i]=[]),o){for(let a=this.data["obj"+e][i].length-1;a>=0;a--)if(this.data["obj"+e][i][a]._id==r._id)return;this.data["obj"+e][i].push(r)}else for(let a=this.data["obj"+e][i].length-1;a>=0;a--)this.data["obj"+e][i][a]._id==r._id&&this.data["obj"+e][i].splice(a,1);typeof s.sort=="function"&&this.data["obj"+e][i].sort(s.sort)}}push(e,r){if(this.data["arr"+e]||(this.data["arr"+e]=[]),this.data["obj"+e]||(this.data["obj"+e]={}),this.data["opts"+e]||(this.data["opts"+e]={}),this.data["obj"+e][r._id])return this.renew(e,r);if(this.data["opts"+e].replace)for(let i in this.data["opts"+e].replace)this.replace(r,i,this.data["opts"+e].replace[i]);if(this.data["opts"+e].populate){let i=this.data["opts"+e].populate;if(Array.isArray(i))for(let o=0;o{a&&(Array.isArray(this.data["obj"+e][i][a])||(this.data["obj"+e][i][a]=[]),this.data["obj"+e][i][a].push(r),typeof o.sort=="function"&&this.data["obj"+e][i][a].sort(o.sort))};s(o.field(r,a=>{s(a)}))}if(this.data["opts"+e].query)for(let i in this.data["opts"+e].query){let o=this.data["opts"+e].query[i];typeof o.ignore=="function"&&o.ignore(r)||typeof o.allow=="function"&&!o.allow(r)||(this.data["obj"+e][i]||(this.data["obj"+e][i]=[]),this.data["obj"+e][i].push(r),typeof o.sort=="function"&&this.data["obj"+e][i].sort(o.sort))}for(let i=0;i=0;s--)this.data["obj"+e][i][o][s]._id==r._id&&this.data["obj"+e][i][o].splice(s,1);if(this.data["opts"+e].query){for(let i in this.data["opts"+e].query)for(let o=this.data["obj"+e][i].length-1;o>=0;o--)if(this.data["obj"+e][i][o]._id==r._id){this.data["obj"+e][i].splice(o,1);break}}}}constructor(e,r,i){this.store=e,this.http=r,this.core=i,console.warn("Mongo Service is deprecated"),this.core.onComplete("socket").then(o=>{this.socket=o,o.on("create",s=>{this.fetch(s.part,{force:!0,query:{_id:s._id}})}),o.on("update",s=>{this.fetch(s.part,{force:!0,query:{_id:s._id}})}),o.on("delete",s=>{this.remove(s.part,s)})})}static \u0275fac=function(r){return new(r||t)(_(Wt),_(Oi),_(be))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var YB=(()=>{class t{core;replacements=[{from:"%20",to:" "}];hash={};done=!1;constructor(e){this.core=e,this.initialize()}initialize(){if(!this.core.window.location.hash){this.done=!0;return}this.load(),this.done=!0}load(){this.hash={};let e=this.core.window.location.hash.replace("#!#","").replace("#","").split("&");for(let r of e){let[i,o]=r.split("=");i=this.applyReplacements(i),o=this.applyReplacements(o),this.hash[i]=o}}applyReplacements(e){if(!e)return"";for(let r of this.replacements)e=e.split(r.from).join(r.to);return e}on(e,r){if(!this.done){setTimeout(()=>this.on(e,r),100);return}r(this.hash[e])}save(){let e=Object.entries(this.hash).map(([r,i])=>`${r}=${i}`).join("&");this.core.window.location.hash=e}set(e,r){this.hash[e]=r,this.save()}get(e){return this.hash[e]}clear(e){e?delete this.hash[e]:this.hash={},this.save()}static \u0275fac=function(r){return new(r||t)(_(be))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bh=(()=>{class t{componentFactoryResolver;appRef;injector;core;providedIn={};constructor(e,r,i,o){this.componentFactoryResolver=e,this.appRef=r,this.injector=i,this.core=o}appendById(e,r={},i){let o=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);this.projectComponentInputs(o,r),this.appRef.attachView(o.hostView);let s=o.hostView.rootNodes[0],a=this.core.document.getElementById(i);return a&&typeof a.appendChild=="function"&&a.appendChild(s),{nativeElement:s,componentRef:o}}appendComponent(e,r={},i=this.core.document.body){if(r.providedIn){if(this.providedIn[r.providedIn])return;this.providedIn[r.providedIn]=!0}let o=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);this.projectComponentInputs(o,r),this.appRef.attachView(o.hostView);let s=o.hostView.rootNodes[0];return i&&typeof i.appendChild=="function"&&i.appendChild(s),{nativeElement:s,componentRef:o}}getComponentRef(e,r={}){let i=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);return this.projectComponentInputs(i,r),this.appRef.attachView(i.hostView),i}projectComponentInputs(e,r){if(r){let i=Object.getOwnPropertyNames(r);for(let o of i)e.instance[o]=r[o]}return e}static \u0275fac=function(r){return new(r||t)(_(Ut),_(Ze),_(we),_(be))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),q1=(()=>{class t{constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-wrapper"]],standalone:!1,decls:8,vars:0,consts:[["id","bottomRight",1,"waw-alert-wrapper","waw-alert-wrapper-bottomRight"],["id","bottomLeft",1,"waw-alert-wrapper","waw-alert-wrapper-bottomLeft"],["id","topRight",1,"waw-alert-wrapper","waw-alert-wrapper-topRight"],["id","topLeft",1,"waw-alert-wrapper","waw-alert-wrapper-topLeft"],["id","topCenter",1,"waw-alert-wrapper","waw-alert-wrapper-topCenter"],["id","bottomCenter",1,"waw-alert-wrapper","waw-alert-wrapper-bottomCenter"],["id","center",1,"waw-alert-wrapper","waw-alert-wrapper-center"]],template:function(r,i){r&1&&(m(0,"div"),Re(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),v())},styles:[".waw-alert-wrapper[_ngcontent-%COMP%]{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft[_ngcontent-%COMP%]{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight[_ngcontent-%COMP%]{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft[_ngcontent-%COMP%]{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight[_ngcontent-%COMP%]{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter[_ngcontent-%COMP%]{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter[_ngcontent-%COMP%]{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center[_ngcontent-%COMP%]{inset:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}"]})}return t})(),D0=(()=>{class t{dom;core;config;alert;_container;constructor(e,r,i){if(this.dom=e,this.core=r,this.config=i,this.config||(this.config=Ai),this.alert=this.config.alert,!this.alert)this.alert=wh;else for(let o in wh)this.alert[o]||(this.alert[o]=wh[o]);this._container=this.dom.appendComponent(q1)}uniques={};shortcuts={tl:"topLeft",tc:"topCenter",tr:"topRight",r:"right",br:"bottomRight",bc:"bottomCenter",bl:"bottomLeft",l:"left",c:"center"};positionNumber={topLeft:3,topCenter:4,topRight:2,right:"",bottomRight:0,bottomCenter:5,bottomLeft:1,left:"",center:6};show(e){typeof e=="string"&&(e={text:e}),e||(e={}),e.type||(e.type="info");for(let o in this.alert)o=="class"?e[o]=e[o]+" "+this.alert[o]:typeof e[o]>"u"&&(e[o]=this.alert[o]);this.shortcuts[e.position]&&(e.position=this.shortcuts[e.position]),e.position||(e.position="bottomRight");var r;e.close=()=>{r&&r.componentRef.destroy(),e.component.nativeElement.remove(),typeof e.onClose=="function"&&e.onClose()};let i=!1;return typeof e.component=="string"&&this.alert.alerts[e.component]?(e.component=this.alert.alerts[e.component],i=!0):e.component=this.dom.appendById($1,e,e.position),typeof e.component=="function"&&(r=this.dom.appendComponent(e.component,e,this._container.nativeElement.children[0].children[this.positionNumber[e.position]||0])),e.unique&&(this.uniques[e.unique]&&this.uniques[e.unique].remove(),this.uniques[e.unique]=e.component.nativeElement),typeof e.timeout!="number"&&(e.timeout=2e3),e.timeout&&setTimeout(()=>{e.close()},e.timeout),e.component.nativeElement}open(e){this.show(e)}info(e){e.type="info",this.show(e)}success(e){e.type="success",this.show(e)}warning(e){e.type="warning",this.show(e)}error(e){e.type="error",this.show(e)}question(e){e.type="question",this.show(e)}destroy(){this.core.document.getElementById("bottomRight").innerHTML="",this.core.document.getElementById("bottomLeft").innerHTML="",this.core.document.getElementById("bottomCenter").innerHTML="",this.core.document.getElementById("topRight").innerHTML="",this.core.document.getElementById("topLeft").innerHTML="",this.core.document.getElementById("topCenter").innerHTML="",this.core.document.getElementById("center").innerHTML=""}static \u0275fac=function(r){return new(r||t)(_(bh),_(be),_(zn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var E0=(()=>{class t{dom;core;config;_modal;constructor(e,r,i){this.dom=e,this.core=r,this.config=i,this.config||(this.config={}),this.config.modal||(this.config.modal={}),this.config.modal.modals||(this.config.modal.modals={}),this._modal=i.modal}show(e){if(this.locked)return;if((typeof e=="string"||typeof e=="function")&&(e={component:e}),(!e||typeof e!="object")&&(e={}),typeof e.component=="string"&&this._modal.modals[e.component]&&(e.component=this._modal.modals[e.component]),typeof e.component!="function"){console.log("This component does not exists.");return}e.class||(e.class="");for(let o in this.config.modal)o=="class"?e.class+=(e.class&&" "||"")+this.config.modal.class:e[o]||(e[o]=this._modal[o]);e.id=Math.floor(Math.random()*Date.now())+Date.now(),this.opened[e.id]=e,this.core.document.body.classList.add("modalOpened");let r,i;return e.close=()=>{i.componentRef.destroy(),r.nativeElement.remove(),typeof e.onClose=="function"&&e.onClose(),delete this.opened[e.id],Object.keys(this.opened).length||this.core.document.body.classList.remove("modalOpened")},typeof e.timeout=="number"&&e.timeout>0&&setTimeout(e.close,e.timeout),r=this.dom.appendComponent(H1,e),i=this.dom.appendComponent(e.component,e,r.nativeElement.children[0].children[0].children[0]),r.nativeElement}open(e){this.show(e)}small(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="small",this.show(e)}mid(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="mid",this.show(e)}big(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="big",this.show(e)}full(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="full",this.show(e)}opened={};locked=!1;destroy(){if(!this.locked){for(let e in this.opened)this.opened[e].close();this.core.document.body.classList.remove("modalOpened")}}static \u0275fac=function(r){return new(r||t)(_(bh),_(be),_(zn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G1=(()=>{class t{fs;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-files"]],standalone:!1,decls:1,vars:1,consts:[["input",""],[4,"ngFor","ngForOf"],["type","file","name","file",3,"change","id","hidden","accept","multiple"]],template:function(r,i){r&1&&S(0,B1,3,4,"ng-container",1),r&2&&y("ngForOf",i.fs.files)},dependencies:[Ve],encapsulation:2})}return t})(),QB=(()=>{class t{dom;core;http;added={};files=[];constructor(e,r,i){this.dom=e,this.core=r,this.http=i,this.dom.appendComponent(G1,{fs:this})}add(e){if(typeof e=="string"&&(e={id:e}),!e.id){console.log("You have to pass ID into file object");return}if(e.type=e.type||"image",typeof e.resize=="number"&&(e.resize={width:e.resize,height:e.resize}),this.added[e.id]&&(this.files=this.files.filter(r=>r.id!==e.id)),this.files.push(e),this.added[e.id]=e,e.save)return()=>{e.complete?.()}}change(e,r){let i=e.target;i.files&&(r.type==="image"?r.multiple?(r.multiple_cb&&(r.multiple_files=[],r.multiple_counter=i.files.length),Array.from(i.files).forEach(o=>this.process(o,r))):this.process(i.files[0],r):r.type==="file"?(r.multiple&&r.multiple_cb?.(Array.from(i.files).map(o=>({dataUrl:"",file:o}))),Array.from(i.files).forEach(o=>r.cb?.("",o)),(r.part||r.url)&&this.uploadFiles(r,i.files)):console.log("Provide type `image` or `file`"))}remove(e,r,i={},o=()=>{}){if(i.url=r,i.save)return()=>{this.http.post(i.api||`/api/${e}/file/delete`,i,o)};this.http.post(i.api||`/api/${e}/file/delete`,i,o)}uploadFiles(e,r,i=()=>{}){let o=new FormData;e.append?e.append(o,r):r.forEach((a,c)=>o.append(`file[${c}]`,a));let s=typeof e.body=="function"?e.body():e.body||{};Object.entries(s).forEach(([a,c])=>o.append(a,c)),e.save?e.complete=()=>{this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,o,a=>{e.resp?.(a),i(a)})}:this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,o,a=>{e.resp?.(a),i(a)})}image(e,r=()=>{}){if(e.save)return()=>{this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,e,r)};this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,e,r)}update(e,r,i){if(r.cb?.(e,i),r.multiple_cb&&(r.multiple_files.push({dataUrl:e,file:i}),--r.multiple_counter===0&&r.multiple_cb(r.multiple_files)),!r.part)return;let o=typeof r.body=="function"?r.body():r.body||{};o.dataUrl=e,r.save?r.complete=()=>{this.http.post(r.api||`/api/${r.part}/file${r.name?`/${r.name}`:""}`,o,s=>{r.cb?.(s)})}:this.http.post(r.api||`/api/${r.part}/file${r.name?`/${r.name}`:""}`,o,s=>{r.cb?.(s)})}process(e,r){if(!e.type.startsWith("image/")){r.cb?.(!1,e),r.multiple_cb&&(r.multiple_files.push({dataUrl:"",file:e}),--r.multiple_counter===0&&r.multiple_cb(r.multiple_files));return}r.resize&&(r.resize.width=r.resize.width||1920,r.resize.height=r.resize.height||1080);let i=new FileReader;i.onload=o=>{if(!r.resize)return this.update(o.target?.result,r,e);let s=this.core.document.createElement("canvas"),a=this.core.document.createElement("img");a.onload=()=>{if(a.width<=r.resize.width&&a.height<=r.resize.height)return this.update(o.target?.result,r,e);let c=r.resize.width/r.resize.height,l=a.width/a.height,u,d;l>c?(u=Math.min(r.resize.width,a.width),d=u/l):(d=Math.min(r.resize.height,a.height),u=d*l),s.width=u,s.height=d,s.getContext("2d").drawImage(a,0,0,u,d);let h=s.toDataURL("image/jpeg",1);this.update(h,r,e)},a.src=o.target?.result},i.readAsDataURL(e)}static \u0275fac=function(r){return new(r||t)(_(bh),_(be),_(Oi))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),KB=(()=>{class t{core;variables={};_forms={};var={};constructor(e){this.core=e;let r=this.core.localStorage.getItem("css_variables");this.variables=r?JSON.parse(r):{};for(let i in this.variables)this.setProperty(i,this.variables[i])}form(e){return typeof e!="string"?{}:(this._forms[e]||(this._forms[e]={}),this._forms[e])}valid(e,r="email",i=0){let o={email:s=>/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,10})+$/.test(s||""),text:s=>typeof s=="string",array:s=>Array.isArray(s),object:s=>typeof s=="object"&&!Array.isArray(s)&&s!==null,number:s=>typeof s=="number",password:s=>{if(!s)return!1;switch(i){case 1:return/^((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9]))/.test(s||"");case 2:return/^(((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{8,})/.test(s||"");case 3:return/^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]))(?=.{8,})/.test(s||"");case 4:return/^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[@#$%&!-_]))(?=.{8,})/.test(s||"");default:return!!s}}};return o[r]?o[r](e):!1}level(e=""){if(!e)return 0;let r=0;return e.length>8&&r++,/[a-z]/.test(e)&&r++,/[A-Z]/.test(e)&&r++,/[1-9]/.test(e)&&r++,/[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(e)&&r++,r}save(){this.core.localStorage.setItem("css_variables",JSON.stringify(this.variables))}setProperty(e,r){this.core.document.documentElement.style.setProperty(e,r)}set(e,r={}){if(typeof r=="string"&&(r=r==="local"?{local:!0}:{host:r}),!(r.host&&this.core.window.location.host!==r.host)){for(let i in e){if(r.local)this.variables[i]=e[i];else if(this.variables[i])continue;this.setProperty(i,e[i])}r.local&&this.save()}}get(){return this.variables}remove(e){let r=Array.isArray(e)?e:e.split(" ");for(let i of r)delete this.variables[i];this.save()}arr(e=10,r="number"){let i=[];for(let o=0;o{class t{static forRoot(e=Ai){return{ngModule:t,providers:[{provide:zn,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({providers:[{provide:zn,useValue:Ai},U1,b0,Ev(Iv())],imports:[Pe,Gt]})}return t})();var W1=["*"],Z1=(t,n,e,r,i,o,s,a,c)=>({_primary:t,_secondary:n,_success:e,_danger:r,_warning:i,_info:o,_light:s,_dark:a,_link:c}),Wc=(()=>{class t{constructor(){this.type="primary",this.class="",this.disabled=!1,this.disableSubmit=!1,this.wClick=new G}clicked(){this.disabled||(typeof this.click=="function"&&this.click(),this.wClick.emit())}setDisabled(e){this.disabled=e}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["wbutton"]],inputs:{type:"type",class:"class",disabled:"disabled",disableSubmit:"disableSubmit",click:"click"},outputs:{wClick:"wClick"},standalone:!1,ngContentSelectors:W1,decls:2,vars:16,consts:[[3,"click","ngClass","type","disabled"]],template:function(r,i){r&1&&(qa(),m(0,"button",0),O("click",function(){return i.clicked()}),oo(1),v()),r&2&&(Fy("w-btn",i.class?" "+i.class:"",""),y("ngClass",Uy(6,Z1,[i.type==="primary",i.type==="secondary",i.type==="success",i.type==="danger",i.type==="warning",i.type==="info",i.type==="light",i.type==="dark",i.type==="link"]))("type",i.click||i.disableSubmit?"button":"submit")("disabled",i.disabled))},dependencies:[dn],encapsulation:2})}}return t})();var Zc=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Pe]})}}return t})();function Y1(t,n){if(t&1){let e=W();m(0,"wbutton",4),O("click",function(){let i=N(e).$implicit,o=g();return R(i.click(o.submition,o.close))}),A(1),v()}if(t&2){let e=n.$implicit;y("ngClass",e.class),p(),de(" ",e.label," ")}}var Qo=(()=>{class t{set(e){this._core.copy(e,this.submition),this._core.copy(e.data,this.submition.data)}constructor(e){this._core=e}static{this.\u0275fac=function(r){return new(r||t)(I(be))}}static{this.\u0275cmp=fe({type:t,selectors:[["ng-component"]],standalone:!1,decls:4,vars:3,consts:[["formRef",""],[3,"wSubmit","wChange","config","submition"],[1,"btn-action","btn-action_w95p"],["class","w-btn _primary",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"w-btn","_primary",3,"click","ngClass"]],template:function(r,i){if(r&1){let o=W();m(0,"wform",1,0),O("wSubmit",function(){return N(o),i.set(i.submition),i.submit(i.submition),R(i.close())})("wChange",function(){return N(o),i.set(i.submition),R(i.change(i.submition))}),v(),m(2,"div",2),S(3,Y1,2,2,"wbutton",3),v()}r&2&&(y("config",i.form)("submition",i.submition),p(3),y("ngForOf",i.buttons))},styles:[".btn-action[_ngcontent-%COMP%]{padding:30px 0 0}.btn-action[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{width:100%;display:block}"]})}}return t})();var Yc=(()=>{class t{constructor(e){this._mongo=e}get getDoc(){return this.doc}change(){this._mongo.unique(this.module,this.doc,{name:this.field},e=>{this.doc[this.field]!==e&&(this.doc[this.field]=e)})}static{this.\u0275fac=function(r){return new(r||t)(I(C0))}}static{this.\u0275cmp=fe({type:t,selectors:[["app-modal-unique"]],standalone:!1,decls:1,vars:2,consts:[[3,"wChange","config","submition"]],template:function(r,i){r&1&&(m(0,"wform",0),O("wChange",function(){return i.change()}),v()),r&2&&y("config",i.form)("submition",i.getDoc)},encapsulation:2})}}return t})();var M0=(()=>{class t extends zc{constructor(e,r,i,o){super({name:"form"},e,r,i,o),this.customforms=[],this.get().subscribe(s=>this.customforms.push(...s)),o.on("customform_create").subscribe(s=>{this.customforms.push(s)}),o.on("customform_delete").subscribe(s=>{this.customforms.splice(this.customforms.findIndex(a=>a._id===s._id),1)})}static{this.\u0275fac=function(r){return new(r||t)(_(Oi),_(Wt),_(D0),_(be))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var x0=[{name:"Afrikaans",origin:"Afrikaans",code:"af"},{name:"Albanian",origin:"shqiptare",code:"sq"},{name:"Amharic",origin:"\u12A0\u121B\u122D\u129B",code:"am"},{name:"Arabic",origin:"\u0639\u0631\u0628\u064A",code:"ar"},{name:"Armenian",origin:"\u0570\u0561\u0575\u0565\u0580\u0565\u0576",code:"hy"},{name:"Assamese",origin:"\u0985\u09B8\u09AE\u09C0\u09DF\u09BE",code:"as"},{name:"Aymara",origin:"Aymara",code:"ay"},{name:"Azerbaijani",origin:"Az\u0259rbaycan",code:"az"},{name:"Bambara",origin:"U b'a don",code:"bm"},{name:"Basque",origin:"euskara",code:"eu"},{name:"Belarusian",origin:"\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0456",code:"be"},{name:"Bengali",origin:"\u09AC\u09BE\u0982\u09B2\u09BE",code:"bn"},{name:"Bhojpuri",origin:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940",code:"bho"},{name:"Bosnian",origin:"bosanski",code:"bs"},{name:"Bulgarian",origin:"\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",code:"bg"},{name:"Catalan",origin:"catal\xE0",code:"ca"},{name:"Cebuano",origin:"Cebuano",code:"ceb"},{name:"Chinese (Simplified)",origin:"\u7B80\u4F53\u4E2D\u6587\uFF09",code:"zh-CN"},{name:"Chinese (Traditional)",origin:"\u4E2D\u570B\u50B3\u7D71\u7684\uFF09",code:"zh-TW"},{name:"Corsican",origin:"Corsu",code:"co"},{name:"Croatian",origin:"Hrvatski",code:"hr"},{name:"Czech",origin:"\u010De\u0161tina",code:"cs"},{name:"Danish",origin:"dansk",code:"da"},{name:"Dhivehi",origin:"\u078B\u07A8\u0788\u07AC\u0780\u07A8",code:"dv"},{name:"Dogri",origin:"\u0921\u094B\u0917\u0930\u0940",code:"doi"},{name:"Dutch",origin:"Nederlands",code:"nl"},{name:"English",origin:"English",code:"en"},{name:"English (British)",origin:"English (British)",code:"en-GB"},{name:"English (Australian)",origin:"English (Australian)",code:"en-AU"},{name:"Esperanto",origin:"Esperanto",code:"eo"},{name:"Estonian",origin:"eesti keel",code:"et"},{name:"Ewe",origin:"A\u014Bgba",code:"ee"},{name:"Filipino (Tagalog)",origin:"Filipino (Tagalog)",code:"fil"},{name:"Finnish",origin:"Suomalainen",code:"fi"},{name:"French",origin:"Fran\xE7ais",code:"fr"},{name:"Frisian",origin:"Frysk",code:"fy"},{name:"Galician",origin:"galego",code:"gl"},{name:"Georgian",origin:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",code:"ka"},{name:"German",origin:"Deutsch",code:"de"},{name:"Greek",origin:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",code:"el"},{name:"Guarani",origin:"guarani",code:"gn"},{name:"Gujarati",origin:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",code:"gu"},{name:"Haitian Creole",origin:"Krey\xF2l ayisyen",code:"ht"},{name:"Hausa",origin:"Hausa",code:"ha"},{name:"Hawaiian",origin:"\u02BB\u014Clelo Hawai\u02BBi",code:"haw"},{name:"Hebrew",origin:"\u05E2\u05B4\u05D1\u05E8\u05B4\u05D9\u05EA",code:"he"},{name:"Hindi",origin:"\u0928\u0939\u0940\u0902",code:"hi"},{name:"Hmong",origin:"Hmong",code:"hmn"},{name:"Hungarian",origin:"Magyar",code:"hu"},{name:"Icelandic",origin:"\xEDslenskur",code:"is"},{name:"Igbo",origin:"Igbo",code:"ig"},{name:"Ilocano",origin:"Ilocano",code:"ilo"},{name:"Indonesian",origin:"bahasa Indonesia",code:"id"},{name:"Irish",origin:"Gaeilge",code:"ga"},{name:"Italian",origin:"Italiano",code:"it"},{name:"Japanese",origin:"\u65E5\u672C",code:"ja"},{name:"Javanese",origin:"basa jawa",code:"jv"},{name:"Kannada",origin:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",code:"kn"},{name:"Kazakh",origin:"\u049B\u0430\u0437\u0430\u049B",code:"kk"},{name:"Khmer",origin:"\u1781\u17D2\u1798\u17C2\u179A",code:"km"},{name:"Kinyarwanda",origin:"Kinyarwanda",code:"rw"},{name:"Konkani",origin:"\u0915\u094B\u0902\u0915\u0923\u0940",code:"gom"},{name:"Korean",origin:"\uD55C\uAD6D\uC778",code:"ko"},{name:"Krio",origin:"Kryo we de na di w\u0254l",code:"kri"},{name:"Kurdish",origin:"Kurd\xEE",code:"ku"},{name:"Kurdish (Sorani)",origin:"\u06A9\u0648\u0631\u062F\u06CC (\u0633\u06C6\u0631\u0627\u0646\u06CC)",code:"ckb"},{name:"Kyrgyz",origin:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",code:"ky"},{name:"Lao",origin:"\u0EC1\u0EAE\u0E87\u200B\u0E87\u0EB2\u0E99",code:"lo"},{name:"Latin",origin:"Latinus",code:"la"},{name:"Latvian",origin:"latviski",code:"lv"},{name:"Lingala",origin:"Lingala",code:"ln"},{name:"Lithuanian",origin:"lietuvi\u0173",code:"lt"},{name:"Luganda",origin:"Luganda",code:"lg"},{name:"Luxembourgish",origin:"l\xEBtzebuergesch",code:"lb"},{name:"Macedonian",origin:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",code:"mk"},{name:"Maithili",origin:"\u092E\u0948\u0925\u093F\u0932\u0940",code:"mai"},{name:"Malagasy",origin:"Malagasy",code:"mg"},{name:"Malay",origin:"Melayu",code:"ms"},{name:"Malayalam",origin:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",code:"ml"},{name:"Maltese",origin:"Malti",code:"mt"},{name:"Maori",origin:"Maori",code:"mi"},{name:"Marathi",origin:"\u092E\u0930\u093E\u0920\u0940",code:"mr"},{name:"Meiteilon (Manipuri)",origin:"\uABC3\uABE6\uABCF\uABC7\uABE6\uABCF\uABC2\uABE3\uABDF (\uABC3\uABC5\uABE4\uABC4\uABE8\uABD4\uABE4) \uABF4.",code:"mni-Mtei"},{name:"Mizo",origin:"Mizo",code:"lus"},{name:"Mongolian",origin:"\u041C\u043E\u043D\u0433\u043E\u043B",code:"mn"},{name:"Myanmar (Burmese)",origin:"\u1019\u103C\u1014\u103A\u1019\u102C (\u1017\u1019\u102C)\u104A",code:"my"},{name:"Nepali",origin:"\u0928\u0947\u092A\u093E\u0932\u0940",code:"ne"},{name:"Norwegian",origin:"norsk",code:"no"},{name:"Nyanja (Chichewa)",origin:"Nyanja (Chichewa)",code:"ny"},{name:"Odia (Oriya)",origin:"\u0B13\u0B21\u0B3F\u0B06 (\u0B13\u0B21\u0B3F\u0B06)",code:"or"},{name:"Oromo",origin:"Oromo",code:"om"},{name:"Pashto",origin:"\u067E\u069A\u062A\u0648",code:"ps"},{name:"Persian",origin:"\u0641\u0627\u0631\u0633\u06CC",code:"fa"},{name:"Polish",origin:"Polski",code:"pl"},{name:"Portuguese (Portugal, Brazil)",origin:"Portugu\xEAs (Portugal, Brasil)",code:"pt"},{name:"Punjabi",origin:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",code:"pa"},{name:"Quechua",origin:"Runasimi",code:"qu"},{name:"Romanian",origin:"Rom\xE2n\u0103",code:"ro"},{name:"Russian",origin:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",code:"ru"},{name:"Samoan",origin:"Samoa",code:"sm"},{name:"Sanskrit",origin:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924",code:"sa"},{name:"Scots Gaelic",origin:"G\xE0idhlig na h-Alba",code:"gd"},{name:"Sepedi",origin:"Sepedi",code:"nso"},{name:"Serbian",origin:"\u0421\u0440\u043F\u0441\u043A\u0438",code:"sr"},{name:"Sesotho",origin:"Senyesemane",code:"st"},{name:"Shona",origin:"Shona",code:"sn"},{name:"Sindhi",origin:"\u0633\u0646\u068C\u064A",code:"sd"},{name:"Sinhala (Sinhalese)",origin:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD (\u0DC3\u0DD2\u0D82\u0DC4\u0DBD)",code:"si"},{name:"Slovak",origin:"slovensk\xFD",code:"sk"},{name:"Slovenian",origin:"Sloven\u0161\u010Dina",code:"sl"},{name:"Somali",origin:"Somali",code:"so"},{name:"Spanish",origin:"espa\xF1ol",code:"es"},{name:"Sundanese",origin:"Sundanese",code:"su"},{name:"Swahili",origin:"kiswahili",code:"sw"},{name:"Swedish",origin:"svenska",code:"sv"},{name:"Tagalog (Filipino)",origin:"Tagalog (Filipino)",code:"tl"},{name:"Tajik",origin:"\u0442\u043E\u04B7\u0438\u043A\u04E3",code:"tg"},{name:"Tamil",origin:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",code:"ta"},{name:"Tatar",origin:"\u0422\u0430\u0442\u0430\u0440",code:"tt"},{name:"Telugu",origin:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",code:"te"},{name:"Thai",origin:"\u0E41\u0E1A\u0E1A\u0E44\u0E17\u0E22",code:"th"},{name:"Tigrinya",origin:"\u1275\u130D\u122A\u129B",code:"ti"},{name:"Tsonga",origin:"Tsonga",code:"ts"},{name:"Turkish",origin:"T\xFCrk",code:"tr"},{name:"Turkmen",origin:"T\xFCrkmenler",code:"tk"},{name:"Twi (Akan)",origin:"Twi (Will) .",code:"ak"},{name:"Ukrainian",origin:"\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",code:"uk"},{name:"Urdu",origin:"\u0627\u0631\u062F\u0648",code:"ur"},{name:"Uyghur",origin:"\u0626\u06C7\u064A\u063A\u06C7\u0631",code:"ug"},{name:"Uzbek",origin:"o'zbek",code:"uz"},{name:"Vietnamese",origin:"Ti\u1EBFng Vi\u1EC7t",code:"vi"},{name:"Welsh",origin:"Cymraeg",code:"cy"},{name:"Xhosa",origin:"isiXhosa",code:"xh"},{name:"Yiddish",origin:"\u05D9\u05D9\u05D3\u05D9\u05E9",code:"yi"},{name:"Yoruba",origin:"Yoruba",code:"yo"},{name:"Zulu",origin:"Zulu",code:"zu"}];var Ri=(()=>{class t{constructor(e,r,i){this.store=e,this.http=r,this._core=i,this.allLanguages=x0,this.appId=_i.appId,this.words=[],this.pages=[],this.languages=_i.languages?_i.languages:[{code:"en",name:"English",origin:"English"}],this.language=this.languages.length?this.languages[0]:{code:"en",name:"English",origin:"English"},this.translates={},this.resets={},this.now=Date.now(),this._created={},this._wordsLoaded=!1,this.store.getJson("translates",o=>{o&&(this.translates=o||{})}),this._core.on("languages").subscribe(o=>{this.languages=o}),this.store.getJson("words",o=>{o&&(this.words=o)}),this.store.getJson("language",o=>{o&&this.set_language(o)}),this.http.get("/api/translate/get"+(this.appId?"/"+this.appId:""),o=>{o&&(this.translates=o,this.store.setJson("translates",this.translates))}),this.http.get("/api/word/get"+(this.appId?"/"+this.appId:""),o=>{if(o){this.words=o,this.store.setJson("words",this.words);for(let s=0;s=0;r--)this.words[r]._id==e._id&&this.words.splice(r,1);this.http.post("/api/word/delete"+(this.appId?"/"+this.appId:""),{_id:e._id}),this.http.post("/api/translate/delete"+(this.appId?"/"+this.appId:""),{slug:e.slug})}set_language(e){e&&(this.http.post("/api/translate/set",{appId:this.appId,language:e.code}),this.language=e,this.reset(),this.store.setJson("language",e))}next_language(){for(let e=0;ei?.slug||"").filter(i=>!!i).indexOf(e)<0&&this.create_word(e),this._slug2name(e))):""}create_word(e){this._created[e]||(this._wordsLoaded?(this._created[e]=!0,this.http.post("/api/word/create",{appId:this.appId,slug:e,word:this._slug2name(e),page:e.split(".")[0],lang:this.language.code},r=>{r&&this.words.push(r)})):setTimeout(()=>{this.create_word(e)},500))}update_translate(e,r,i){this._core.afterWhile(this,()=>{if(this.http.post("/api/translate/create",{appId:this.appId,slug:e,translate:i,lang:r}),this.store.setJson("translates",this.translates),this.language.code===r&&Array.isArray(this.resets[e]))for(let o=0;o{let r="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(this.translates)),i=document.createElement("a");i.href=r,i.download="translate.json",i.click(),i.remove()})}_slug2name(e){return e.substr(e.indexOf(".")+1)}static{this.\u0275fac=function(r){return new(r||t)(_(Wt),_(Oi),_(be))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var T0=(()=>{class t{constructor(e,r,i,o,s,a,c){this.componentFactoryResolver=e,this._cfs=r,this._translate=i,this._modal=o,this._store=s,this.appRef=a,this.injector=c,this.appId=_i.appId,this._injectedComponent={},this.templateFields={},this.customTemplateFields={},this._templateComponent={},this.forms=[],this.formIds=[],this._store.getJson("formIds",l=>{Array.isArray(l)&&this.formIds.push(...l)})}getTemplateFields(e){return this.templateFields[e]||["Placeholder","Label"]}setTemplateFields(e,r,i={}){this.templateFields[e]=r,this.customTemplateFields[e]=C(C({},this.customTemplateFields[e]||{}),i)}getCustomTemplateFields(e){return this.customTemplateFields[e]||{}}injectComponent(e,r,i=["Placeholder","Label"],o={}){if(!this._injectedComponent[e]){this._injectedComponent[e]=!0,this.templateFields[e]=i,this.customTemplateFields[e]=o;let a=this.componentFactoryResolver.resolveComponentFactory(r).create(this.injector);this.appRef.attachView(a.hostView);let c=a.hostView.rootNodes[0];document.body.appendChild(c)}}addTemplateComponent(e,r){this._templateComponent[e]||(this._templateComponent[e]=r)}getTemplateComponent(e){return this._templateComponent[e]}getTemplateComponentsNames(){let e=[];for(let r in this._templateComponent)e.push(r);return e}translateForm(e){if(e.title){e.title=this._translate.translate(`Form_${e.formId}.${e.title}`,r=>{e.title=r});for(let r of e.components)for(let i of r.fields||[])this.translateFormComponent(e,i)}}translateFormComponent(e,r){let i=r.value;typeof i=="string"&&!r.skipTranslation&&(r.value=this._translate.translate(`Form_${e.formId}.${i}`,o=>{r.value=o}))}getDefaultForm(e,r=["name","description"]){return this.formIds.indexOf(e)===-1&&(this.formIds.push(e),this._store.setJson("formIds",this.formIds)),{id:e,components:r.map((o,s)=>({name:o.includes(".")?o.split(".")[1]:"Text",key:o,focused:!s,fields:[{name:"Placeholder",value:"Enter your "+o.split(".")[0]},{name:"Label",value:o.split(".")[0].capitalize()}]}))}}getForm(e,r){if(r&&this.forms.map(o=>o.formId).indexOf(r?.formId)===-1&&this.forms.push(r),this.formIds.indexOf(e)===-1&&(this.formIds.push(e),this._store.setJson("formIds",this.formIds)),r=r||this.forms.find(o=>o.formId===e),r=r||this.getDefaultForm(e),r)for(let o of r.components)o.root=!0;let i=this._cfs.customforms.filter(o=>o.active&&o.formId===e);r.formId=e;for(let o of i){r.title=r.title||o.name,r.class=r.class||o.class;for(let s of o.components)s.root=!1,r.components.push(s)}return this.translateForm(r),r}modal(e,r=[],i={},o=a=>{},s={}){return new Promise(a=>{this._modal.show(H(C({},s),{component:Qo,class:"forms_modal",size:"big",form:e,buttons:Array.isArray(r)?r:[r],submition:i,onClose:function(){a(this.submition)},submit:c=>{a(c)},change:c=>{typeof o=="function"&&o(c)}}))})}modalDocs(e){return new Promise(r=>{let i={docs:JSON.stringify(e.length?e:[],null,4)};this._modal.show({component:Qo,class:"forms_modal",size:"big",submition:i,form:{title:"Modify content of documents",components:[{name:"Code",key:"docs",fields:[{name:"Placeholder",value:"fill content of documents"}]}]},onClose:function(){let o=i.docs?JSON.parse(i.docs):[];r(o)},submit:()=>{let o=i.docs?JSON.parse(i.docs):[];r(o)}})})}modalUnique(e,r,i,o="",s=()=>{}){this._modal.show({component:Yc,form:this.getDefaultForm("unique",[r+(o?"."+o:"")]),module:e,field:r,doc:i,class:"forms_modal",onClose:s})}static{this.\u0275fac=function(r){return new(r||t)(_(Ut),_(M0),_(Ri),_(E0),_(Wt),_(Ze),_(we))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var J1=(t,n,e,r,i,o,s,a)=>({field:t,config:n,component:e,key:r,submition:i,wSubmit:o,wChange:s,wClick:a}),X1=t=>({$implicit:t});function eA(t,n){if(t&1){let e=W();m(0,"form-component",4),O("wSubmit",function(){N(e);let i=g(3);return R(i.wSubmit.emit(i.submition))})("wChange",function(){N(e);let i=g(3);return R(i.wChange.emit())})("wClick",function(){N(e);let i=g(3);return R(i.wClick.emit())}),v()}if(t&2){let e=g(),r=e.$implicit,i=e.index,o=g(2);an(o.config.formId+"_"+o.index+"_"+i+" "+(o.component.class||"")),y("component",r)("submition",o.submition)("config",o.config)("index",o.index+"_"+i)}}function tA(t,n){if(t&1&&(ye(0),S(1,eA,1,6,"form-component",3),ve()),t&2){let e=g(2);p(),y("ngIf",!e.component.hidden)}}function nA(t,n){if(t&1&&(ye(0),m(1,"div",1),S(2,tA,2,1,"ng-container",2),v(),ve()),t&2){let e=g();p(),an(e.component.class||""),p(),y("ngForOf",e.component.components)}}function rA(t,n){t&1&&mt(0)}function iA(t,n){if(t&1&&(ye(0),m(1,"div",5),S(2,rA,1,0,"ng-container",6),v(),ve()),t&2){let e=g();p(2),y("ngTemplateOutlet",e.template)("ngTemplateOutletContext",kn(11,X1,By(2,J1,e.field,e.config,e.component,e.localKey,e.localSubmition,e.submit.bind(e),e.change.bind(e),e.click.bind(e))))}}var S0=(()=>{class t{submit(){this.wSubmit.emit(this.submition)}change(){this.wChange.emit(this.submition)}click(){this.wClick.emit(this.submition)}get hasComponents(){return Array.isArray(this.component.components)}get template(){return this._form.getTemplateComponent(this.component.name)}constructor(e){this._form=e,this.submition={},this.wSubmit=new G,this.wChange=new G,this.wClick=new G,this.field={}}ngOnInit(){if(Array.isArray(this.component.fields))for(let r of this.component.fields)this.field[r.name]=r.value;this.localSubmition=this.submition;let e=(this.component.key||"")?.split(".");for(;e.length>1;){let r=e.shift();if(r.endsWith("[]")){r=r.replace("[]","");let i=this._getIndex();for(this.localSubmition[r]=this.localSubmition[r]||[];i+1>this.localSubmition[r].length;)this.localSubmition[r].push({});this.localSubmition=this.localSubmition[r][i]}else this.localSubmition=this.localSubmition[this.localKey]}this.localKey=e[0]}_getIndex(e=this.config.components){for(let r of e)if(r.components){if(this._getIndex(r.components)>=0){for(let o=0;o=0)return r.components.indexOf(this.component)}return-1}static{this.\u0275fac=function(r){return new(r||t)(I(T0))}}static{this.\u0275cmp=fe({type:t,selectors:[["form-component"]],inputs:{index:"index",config:"config",component:"component",submition:"submition"},outputs:{wSubmit:"wSubmit",wChange:"wChange",wClick:"wClick"},standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],[1,"form-components-container"],[4,"ngFor","ngForOf"],["class","w-forms__component",3,"class","component","submition","config","index","wSubmit","wChange","wClick",4,"ngIf"],[1,"w-forms__component",3,"wSubmit","wChange","wClick","component","submition","config","index"],[1,"form-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&S(0,nA,3,3,"ng-container",0)(1,iA,3,13,"ng-container",0),r&2&&(y("ngIf",i.hasComponents),p(),y("ngIf",i.component.name&&i.template&&(!i.component.key||i.localKey&&i.localSubmition)))},dependencies:[Ve,it,ii,t],styles:["[_nghost-%COMP%]{position:relative}.w-forms[_ngcontent-%COMP%]{position:relative;padding:0!important;background-color:red}.w-forms__component[_ngcontent-%COMP%]{align-items:end;margin:0 0 10px}.w-forms__level[_ngcontent-%COMP%]{top:3px;right:5px;position:absolute;display:inline-block;color:var(--c-text-secondary);font-size:22px;line-height:calc(var(--fs) + 4px);letter-spacing:var(--letter-spacing);transition:var(--transition)}.w-forms__level._sky[_ngcontent-%COMP%]{color:var(--c-info)}.w-forms__level._orange[_ngcontent-%COMP%]{color:var(--c-warn)}.w-forms__level._green[_ngcontent-%COMP%]{color:var(--c-success)}.w-forms__input[_ngcontent-%COMP%]{padding-right:35px}.w-forms__input-block[_ngcontent-%COMP%]{position:relative}.w-forms__toggle[_ngcontent-%COMP%]{display:flex;position:absolute;right:10px;bottom:10px;color:var(--c-placeholder);transform:translateY(-50%);cursor:pointer}.w-forms__toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:21px}.w-forms[_ngcontent-%COMP%] .icon-visibility[_ngcontent-%COMP%]{color:var(--c-primary)}"]})}}return t})();function sA(t,n){if(t&1&&(m(0,"h1",4),A(1),v()),t&2){let e=g();p(),Ie(e.config.title)}}function aA(t,n){if(t&1){let e=W();m(0,"form-component",6),O("wSubmit",function(){N(e);let i=g(2);return R(i.onSubmit())})("wChange",function(){N(e);let i=g(2);return R(i.onChange())})("wClick",function(){N(e);let i=g(2);return R(i.onClick())}),v()}if(t&2){let e=g(),r=e.$implicit,i=e.index,o=g();an(o.config.formId+"_"+i+" "+(r.class||"")+" "+o.config.formId),y("component",r)("submition",o.submition)("config",o.config)("index",""+i)}}function cA(t,n){if(t&1&&(ye(0),S(1,aA,1,6,"form-component",5),ve()),t&2){let e=n.$implicit;p(),y("ngIf",!e.hidden)}}var Dh=(()=>{class t{constructor(e){this._core=e,this.submition={},this.wChange=new G,this.wSubmit=new G}ngAfterViewInit(){this.submition.data=this.submition.data||{}}component(e,r=this.config.components){for(let i of r){if(i.key===e)return i;if(i.components?.length){let o=this.component(e,i.components);if(o)return o}}return!1}onSubmit(){this._core.afterWhile(this,()=>{for(let e of this.config.components)if(e.key&&e.required&&(e.valid&&!e.valid()||!e.valid&&!this.submition[e.key])){typeof e.focus=="function"&&e.focus();return}this.wSubmit.emit(this.submition)})}onChange(){this._core.afterWhile(this,()=>{this.wChange.emit(this.submition)})}onClick(){}static{this.\u0275fac=function(r){return new(r||t)(I(be))}}static{this.\u0275cmp=fe({type:t,selectors:[["wform"]],inputs:{config:"config",submition:"submition"},outputs:{wChange:"wChange",wSubmit:"wSubmit"},standalone:!1,decls:4,vars:2,consts:[[1,"w-forms"],["class","w-forms__title",4,"ngIf"],[3,"ngSubmit"],[4,"ngFor","ngForOf"],[1,"w-forms__title"],["class","w-forms__component",3,"class","component","submition","config","index","wSubmit","wChange","wClick",4,"ngIf"],[1,"w-forms__component",3,"wSubmit","wChange","wClick","component","submition","config","index"]],template:function(r,i){r&1&&(m(0,"div",0),S(1,sA,2,1,"h1",1),m(2,"form",2),O("ngSubmit",function(){return i.onSubmit()}),S(3,cA,2,1,"ng-container",3),v()()),r&2&&(p(),y("ngIf",i.config.title),p(2),y("ngForOf",i.config.components))},dependencies:[Ve,it,S0],encapsulation:2})}}return t})();var A0=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Pe,Zc]})}}return t})();Bd(Qo,[dn,Ve,Wc,Dh],[]);Bd(Yc,[Dh],[]);var O0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(ft))}}static{this.\u0275dir=re({type:t,selectors:[["ng-template","cell",""]],inputs:{cell:"cell"},standalone:!1})}}return t})(),N0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(ft))}}static{this.\u0275dir=re({type:t,selectors:[["ng-template","sort",""]],inputs:{cell:"cell"},standalone:!1})}}return t})(),R0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(ft))}}static{this.\u0275dir=re({type:t,selectors:[["ng-template","actions",""]],standalone:!1})}}return t})(),P0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(ft))}}static{this.\u0275dir=re({type:t,selectors:[["ng-template","customEdit",""]],standalone:!1})}}return t})();var k0=(()=>{class t{transform(e,r,i,o){if(!Array.isArray(e))return[];if(r.perPage===-1)return e;e=e.slice();for(let s=0;ss[i.title]a[i.title]?i.direction=="desc"?-1:1:0),e.slice((r.page-1)*r.perPage,r.page*r.perPage)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275pipe=Rn({name:"perPage",type:t,pure:!0,standalone:!1})}}return t})();var uA=t=>({$implicit:t});function dA(t,n){if(t&1){let e=W();m(0,"div",19)(1,"input",20),O("keyup.enter",function(){N(e);let i=g();return i.search(),R(i.searchShow=!1)})("ngModelChange",function(){N(e);let i=g();return R(i.searching())}),ao("ngModelChange",function(i){N(e);let o=g();return Ga(o.searching_text,i)||(o.searching_text=i),R(i)}),v(),m(2,"span",21),O("click",function(){N(e);let i=g();return i.search(),R(i.searchShow=!1)}),A(3," search "),v()()}if(t&2){let e=g();he("table-search--active",e.searchShow),p(),so("ngModel",e.searching_text)}}function fA(t,n){if(t&1){let e=W();m(0,"div",22)(1,"span",23),O("click",function(){N(e);let i=g();return R(i.searchShow=!0)}),A(2," search "),v()()}}function hA(t,n){if(t&1&&(m(0,"i",27),A(1),v()),t&2){let e=g(2).$implicit;y("title",e.icon),p(),de(" ",e.icon," ")}}function pA(t,n){if(t&1&&(m(0,"span"),A(1),v()),t&2){let e=g(2).$implicit;p(),Ie(e.text)}}function gA(t,n){if(t&1){let e=W();m(0,"wbutton",25),O("click",function(){N(e);let i=g().$implicit;return R(i.click())}),S(1,hA,2,2,"i",26)(2,pA,2,1,"span",11),v()}if(t&2){let e=g().$implicit;an(e.class),y("disableSubmit",!0),p(),y("ngIf",e.icon),p(),y("ngIf",e.text)}}function mA(t,n){if(t&1&&(ye(0),S(1,gA,3,5,"wbutton",24),ve()),t&2){let e=n.$implicit,r=g(2);p(),y("ngIf",r.config.create&&e)}}function yA(t,n){if(t&1&&(ye(0),S(1,mA,2,1,"ng-container",17),ve()),t&2){let e=g();p(),y("ngForOf",e.config.headerButtons)}}function vA(t,n){if(t&1){let e=W();m(0,"wbutton",28),O("click",function(){N(e);let i=g();return R(i.config.create())}),A(1," + "),m(2,"span"),A(3,"Add new"),v()()}t&2&&y("disableSubmit",!0)}function _A(t,n){t&1&&(m(0,"th"),A(1,"No."),v())}function wA(t,n){t&1&&(m(0,"span",32),A(1," keyboard_backspace "),v())}function bA(t,n){if(t&1){let e=W();m(0,"th",29)(1,"div",30),O("click",function(){let i=N(e).$implicit,o=g();return R(o.sort(i))}),m(2,"span"),A(3),v(),S(4,wA,2,0,"span",31),v()()}if(t&2){let e=n.$implicit,r=g();p(),he("_sortActiveDown",r.sort_type.direction==="desc"&&e.field===r.sort_type.title)("_sortActiveUp",r.sort_type.direction==="asc"&&e.field===r.sort_type.title),p(2),Ie(e.title),p(),y("ngIf",r.sortable[e.field])}}function CA(t,n){t&1&&mt(0)}function DA(t,n){if(t&1&&S(0,CA,1,0,"ng-container",34),t&2){let e=g(2);y("ngTemplateOutlet",e.action.template)}}function EA(t,n){t&1&&A(0,"Actions")}function IA(t,n){t&1&&mt(0)}function MA(t,n){if(t&1&&(m(0,"th"),S(1,DA,1,1,"ng-template",null,0,cn)(3,EA,1,0,"ng-template",null,1,cn)(5,IA,1,0,"ng-container",33),v()),t&2){let e=At(2),r=At(4),i=g();p(5),y("ngIf",i.action)("ngIfThen",e)("ngIfElse",r)}}function xA(t,n){if(t&1&&(m(0,"td"),A(1),v()),t&2){let e=g().$implicit;p(),Ie(e.num)}}function TA(t,n){if(t&1&&(m(0,"td"),A(1),v()),t&2){let e=g().$implicit,r=g().$implicit;ur("data-label",e.title+":\xA0"),p(),de(" ",r[e.field]," ")}}function SA(t,n){t&1&&mt(0)}function AA(t,n){if(t&1&&(m(0,"td"),S(1,SA,1,0,"ng-container",36),v()),t&2){let e=g().$implicit,r=g().$implicit,i=g();ur("data-label",e.title+":\xA0"),p(),y("ngTemplateOutlet",i.custom_cell[e.field])("ngTemplateOutletContext",kn(3,uA,r))}}function OA(t,n){t&1&&mt(0)}function NA(t,n){if(t&1&&(ye(0),S(1,TA,2,2,"ng-template",null,2,cn)(3,AA,2,5,"ng-template",null,3,cn)(5,OA,1,0,"ng-container",33),ve()),t&2){let e=n.$implicit,r=At(2),i=At(4),o=g(2);p(5),y("ngIf",o.custom_cell[e.field])("ngIfThen",i)("ngIfElse",r)}}function RA(t,n){if(t&1){let e=W();m(0,"i",44),O("click",function(){N(e);let i=g(2).$implicit,o=g(3).$implicit;return R(i.click(o))}),A(1),v()}if(t&2){let e=g(2).$implicit;y("title",e.icon),p(),de(" ",e.icon," ")}}function PA(t,n){if(t&1&&(m(0,"a",45)(1,"i",27),A(2),v()()),t&2){let e=g(2).$implicit;y("href",e.ahref,Pa)("target",e.target||"_blank"),p(),y("title",e.icon),p(),de(" ",e.icon," ")}}function kA(t,n){if(t&1&&(m(0,"a",45)(1,"i",27),A(2),v()()),t&2){let e=g(2).$implicit,r=g(3).$implicit;y("href",e.ahrefFunc(r),Pa)("target",e.target||"_blank"),p(),y("title",e.icon),p(),de(" ",e.icon," ")}}function FA(t,n){if(t&1&&(m(0,"a",46)(1,"i",27),A(2),v()()),t&2){let e=g(2).$implicit;y("routerLink",e.href),p(),y("title",e.icon),p(),de(" ",e.icon," ")}}function LA(t,n){if(t&1&&(m(0,"a",46)(1,"i",27),A(2),v()()),t&2){let e=g(2).$implicit,r=g(3).$implicit;y("routerLink",e.hrefFunc(r)),p(),y("title",e.icon),p(),de(" ",e.icon," ")}}function VA(t,n){if(t&1&&(ye(0),S(1,RA,2,2,"i",41)(2,PA,3,4,"a",42)(3,kA,3,4,"a",42)(4,FA,3,3,"a",43)(5,LA,3,3,"a",43),ve()),t&2){let e=g().$implicit;p(),y("ngIf",!e.ahref&&!e.ahrefFunc&&!e.href&&!e.hrefFunc),p(),y("ngIf",e.href),p(),y("ngIf",e.ahrefFunc),p(),y("ngIf",e.href),p(),y("ngIf",e.hrefFunc)}}function jA(t,n){if(t&1&&(ye(0),S(1,VA,6,5,"ng-container",11),ve()),t&2){let e=n.$implicit;p(),y("ngIf",e)}}function BA(t,n){if(t&1&&(ye(0),S(1,jA,2,1,"ng-container",17),ve()),t&2){let e=g(3);p(),y("ngForOf",e.config.buttons)}}function UA(t,n){if(t&1){let e=W();m(0,"i",47),O("click",function(){N(e);let i=g(2).$implicit,o=g();return R(o.config.update(i))}),A(1," edit "),v()}}function $A(t,n){if(t&1){let e=W();m(0,"i",48),O("click",function(){N(e);let i=g(2).$implicit,o=g();return R(o.config.delete(i))}),A(1," delete_outline "),v()}}function HA(t,n){if(t&1&&(m(0,"td",37)(1,"div",38),S(2,BA,2,1,"ng-container",11)(3,UA,2,0,"i",39)(4,$A,2,0,"i",40),v()()),t&2){let e=g(2);p(2),y("ngIf",e.config.buttons),p(),y("ngIf",e.config.update),p(),y("ngIf",e.config.delete)}}function zA(t,n){if(t&1&&(m(0,"tr"),S(1,xA,2,1,"td",11)(2,NA,6,3,"ng-container",17)(3,HA,5,3,"td",35),v()),t&2){let e=g();p(),y("ngIf",e.config.num),p(),y("ngForOf",e.columns),p(),y("ngIf",e.config.delete||e.config.update||e.config.buttons)}}function qA(t,n){if(t&1){let e=W();m(0,"div",60)(1,"div",61),O("click",function(){let i=N(e).$implicit,o=g(3);return R(o.changePerPage(i))}),A(2),v()()}if(t&2){let e=n.$implicit,r=g(3);p(),he("selected",r.config.perPage===e),p(),de(" ",e," ")}}function GA(t,n){if(t&1){let e=W();m(0,"div",60)(1,"div",61),O("click",function(){N(e);let i=g(3);return R(i.changePerPage(-1))}),A(2," All "),v()()}if(t&2){let e=g(3);p(),he("selected",e.config.perPage===-1)}}function WA(t,n){if(t&1&&(m(0,"div",62),A(1),v()),t&2){let e=g(3);p(),de(" Page ",e.config.page," ")}}function ZA(t,n){if(t&1&&(m(0,"div",62)(1,"span"),A(2),v(),m(3,"span"),A(4," of "),v(),m(5,"span"),A(6),fr(7,"search"),v()()),t&2){let e,r=g(3);p(2),jd("",(r.config.page-1)*r.config.perPage+1," - ",r.config.page*r.config.perPage>(r.rows==null?null:r.rows.length)&&(r.rows==null?null:r.rows.length)||r.config.page*r.config.perPage,""),p(4),Ie((e=ti(7,3,r.rows,r.searching_text,r.config.searchBy||"title"))==null?null:e.length)}}function YA(t,n){if(t&1){let e=W();m(0,"div",52)(1,"div",53),A(2,"Showing items per page"),v(),m(3,"div",54),O("clickOutside",function(){N(e);let i=g(2);return R(i.select_page_size=!1)}),m(4,"div",55),O("click",function(){N(e);let i=g(2);return R(i.select_page_size=!i.select_page_size)}),A(5),v(),m(6,"div",56),S(7,qA,3,3,"div",57)(8,GA,3,2,"div",58),v()(),S(9,WA,2,1,"div",59)(10,ZA,8,7,"div",59),v()}if(t&2){let e=g(2);p(3),he("open",e.select_page_size),p(2),de(" ",e.config.perPage===-1?"All":e.config.perPage," "),p(2),y("ngForOf",e.config.pageSizeOptions),p(),y("ngIf",e.config.allDocs),p(),y("ngIf",e.config.perPage>=0&&!e.config.allDocs),p(),y("ngIf",e.config.perPage>=0&&e.config.allDocs)}}function QA(t,n){if(t&1){let e=W();m(0,"div",63)(1,"wbutton",64),O("click",function(){N(e);let i=g(2);return R(i.config.page=1)}),m(2,"span",65),A(3,"keyboard_double_arrow_left"),v()(),m(4,"wbutton",66),O("click",function(){N(e);let i=g(2);return R(i.previous())}),m(5,"span",65),A(6,"chevron_left"),v()(),m(7,"wbutton",67),O("click",function(){N(e);let i=g(2);return R(i.next())}),m(8,"span",65),A(9,"chevron_right"),v()(),m(10,"wbutton",68),O("click",function(){N(e);let i=g(2);return R(i.lastPage())}),m(11,"span",65),A(12,"keyboard_double_arrow_right"),v()()()}if(t&2){let e=g(2);p(),y("disabled",e.config.page===1),p(3),y("disabled",e.config.page===1),p(3),y("disabled",e.config.page*e.config.perPage>(e.rows==null?null:e.rows.length)),p(3),y("disabled",e.isLast())}}function KA(t,n){if(t&1){let e=W();m(0,"div",63)(1,"wbutton",66),O("click",function(){N(e);let i=g(2);return R(i.previous())}),m(2,"span",65),A(3,"chevron_left"),v()(),m(4,"wbutton",67),O("click",function(){N(e);let i=g(2);return R(i.next())}),m(5,"span",65),A(6,"chevron_right"),v()()()}if(t&2){let e=g(2);p(),y("disabled",e.config.page===1),p(3),y("disabled",e.rows.length!==e.config.perPage)}}function JA(t,n){if(t&1&&(m(0,"tfoot",49),S(1,YA,11,7,"div",50)(2,QA,13,4,"div",51)(3,KA,7,2,"div",51),v()),t&2){let e=g();p(),y("ngIf",e.config.perPage),p(),y("ngIf",e.config.perPage!==-1&&e.config.allDocs),p(),y("ngIf",!e.config.allDocs)}}var q3=(()=>{class t{constructor(e,r){this._router=e,this._store=r,this.tableId="table_"+this._router.url.split("/").filter(i=>i&&i.length!==24).join("/"),this.config={},this.columns=[],this.rows=[],this.value="_id",this.title="",this.now=Date.now(),this.searchShow=!1,this.searching_text="",this.filter_filter="",this.onSearch=new G,this.custom_cell={},this.sort_type={},this.sortable={},this.select_page_size=!1}ngOnInit(){this.default_config();for(let e=0;e{e&&this.changePerPage(Number(e))})}default_config(){this.config.pageSizeOptions||(this.config.pageSizeOptions=[1,10,20,50]),this.config.perPage||(this.config.perPage=-1),this.config.page||(this.config.page=1),this.config.searchable||(this.config.searchable=!1),typeof this.config.allDocs!="boolean"&&(this.config.allDocs=!0)}ngAfterContentInit(){for(let r=0;r{this.refresh()},1e3);setTimeout(()=>{clearInterval(e)},2e4)}refresh(){this.now=Date.now()}searching(){setTimeout(()=>{this.config.globalSearch||(this.filter_filter=this.searching_text)},100),clearTimeout(this._search_timeout),this._search_timeout=setTimeout(this.searching.bind(this),2e3)}search(){clearTimeout(this._search_timeout),setTimeout(()=>{this.config.globalSearch||(this.filter_filter=this.searching_text),this.refresh()},100),this.onSearch.emit(this.searching_text)}next(){(typeof this.config.paginate=="function"||this.config.page*this.config.perPage1&&(this.config.page-=1,typeof this.config.paginate=="function"&&this.config.paginate(this.config.page),this.refresh())}changePerPage(e){this.config.perPage=e,typeof this.config.setPerPage=="function"&&this.config.setPerPage(this.config.perPage),this.config.page=1,typeof this.config.paginate=="function"&&this.config.paginate(this.config.page),this._store.set(this.tableId+"perPage",e.toString()),(this.config.page-1)*this.config.perPage>this.rows.length&&this.lastPage(),this.select_page_size=!1,this.refresh()}lastPage(){this.config.page=Math.ceil(this.rows.length/this.config.perPage)}isLast(){return this.rows&&this.config.page==Math.ceil(this.rows.length/this.config.perPage)}sort(e){this.sort_type.title!=e.title&&(this.sort_type={}),this.sortable[e.field]&&(this.sort_type={title:e.field,direction:typeof this.sort_type.direction!="string"&&"asc"||this.sort_type.direction=="asc"&&"desc"||void 0})}static{this.\u0275fac=function(r){return new(r||t)(I(vt),I(Wt))}}static{this.\u0275cmp=fe({type:t,selectors:[["wtable"]],contentQueries:function(r,i,o){if(r&1&&(dr(o,R0,5),dr(o,P0,5),dr(o,O0,4),dr(o,N0,4)),r&2){let s;nt(s=rt())&&(i.action=s.first),nt(s=rt())&&(i.editForm=s.first),nt(s=rt())&&(i.cell=s),nt(s=rt())&&(i.sortHeaders=s)}},inputs:{config:"config",columns:"columns",rows:"rows",value:"value",title:"title"},outputs:{onSearch:"onSearch"},standalone:!1,decls:21,vars:19,consts:[["customAction",""],["defaultAction",""],["defaultRows",""],["customRows",""],[1,"wtable"],[1,"users__header","w-card__header"],[1,"w-forms__title"],["class","table-search",3,"table-search--active",4,"ngIf"],["class","table-search__icon-mobile",4,"ngIf"],[1,"users__btns"],[1,"user__icons"],[4,"ngIf"],["class","table-plus-btn",3,"disableSubmit","click",4,"ngIf"],["cellpadding","0","cellspacing","0",1,"table"],[1,"table-header"],["scope","col",4,"ngFor","ngForOf"],[1,"table-body"],[4,"ngFor","ngForOf"],["class","table-footer",4,"ngIf"],[1,"table-search"],["placeholder","Search...","type","text",1,"table-search__input",3,"keyup.enter","ngModelChange","ngModel"],[1,"material-icons","material-symbols-outlined","table-search__icon",3,"click"],[1,"table-search__icon-mobile"],[1,"material-icons","material-symbols-outlined",3,"click"],["class","edit-header",3,"disableSubmit","class","click",4,"ngIf"],[1,"edit-header",3,"click","disableSubmit"],["class","material-icons",3,"title",4,"ngIf"],[1,"material-icons",3,"title"],[1,"table-plus-btn",3,"click","disableSubmit"],["scope","col"],[1,"table-header__sort",3,"click"],["class","material-icons icon-arrow",4,"ngIf"],[1,"material-icons","icon-arrow"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngTemplateOutlet"],["class","table-body__last-td","data-label","Actions:\xA0",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-label","Actions:\xA0",1,"table-body__last-td"],[1,"table__actions"],["class","material-icons","title","Edit",3,"click",4,"ngIf"],["class","material-icons","title","Delete",3,"click",4,"ngIf"],["class","material-icons",3,"title","click",4,"ngIf"],[3,"href","target",4,"ngIf"],[3,"routerLink",4,"ngIf"],[1,"material-icons",3,"click","title"],[3,"href","target"],[3,"routerLink"],["title","Edit",1,"material-icons",3,"click"],["title","Delete",1,"material-icons",3,"click"],[1,"table-footer"],["class","item-page",4,"ngIf"],["class","table-footer__pagination",4,"ngIf"],[1,"item-page"],[1,"item-page__text"],[1,"item-page__dropdown",3,"clickOutside"],[1,"caption",3,"click"],[1,"list"],["class","item",4,"ngFor","ngForOf"],["class","item",4,"ngIf"],["class","item-page__result",4,"ngIf"],[1,"item"],[3,"click"],[1,"item-page__result"],[1,"table-footer__pagination"],[1,"table-footer__arrow","_start",3,"click","disabled"],[1,"material-icons"],[1,"table-footer__arrow","_left",3,"click","disabled"],[1,"table-footer__arrow","_right",3,"click","disabled"],[1,"table-footer__arrow","_end",3,"click","disabled"]],template:function(r,i){r&1&&(m(0,"div",4)(1,"div",5)(2,"h3",6),A(3),v(),S(4,dA,4,3,"div",7)(5,fA,3,0,"div",8),m(6,"div",9)(7,"div",10),S(8,yA,2,1,"ng-container",11)(9,vA,4,1,"wbutton",12),v()()(),m(10,"table",13)(11,"thead",14)(12,"tr"),S(13,_A,2,0,"th",11)(14,bA,5,6,"th",15)(15,MA,6,3,"th",11),v()(),m(16,"tbody",16),S(17,zA,4,3,"tr",17),fr(18,"search"),fr(19,"perPage"),v(),S(20,JA,4,3,"tfoot",18),v()()),r&2&&(p(3),Ie(i.title),p(),y("ngIf",i.config.searchable),p(),y("ngIf",!i.searchShow),p(3),y("ngIf",i.config.headerButtons),p(),y("ngIf",i.config.create),p(4),y("ngIf",i.config.num),p(),y("ngForOf",i.columns),p(),y("ngIf",i.config.delete||i.config.update),p(2),y("ngForOf",i.config.allDocs?Hy(19,14,ti(18,10,i.rows,i.filter_filter,i.config.searchBy||"title"),i.config,i.sort_type,i.filter_filter+i.now):i.rows),p(3),y("ngIf",i.config.perPage||i.config.formCreate&&i.config.create))},dependencies:[Ve,it,ii,Un,Ei,vr,qc,Wc,Dc,Gc,k0],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.wtable[_ngcontent-%COMP%]{background:var(--c-bg-secondary);box-shadow:var(--c-shadow);border-radius:10px;padding-bottom:70px;max-width:100%;height:auto;margin:0 auto;position:relative}@media (max-width: 991px){.wtable[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px}}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%]{padding-bottom:20px}}.wtable[_ngcontent-%COMP%] .edit-header[_ngcontent-%COMP%]{height:45px}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .edit-header[_ngcontent-%COMP%]{height:38px}}.wtable[_ngcontent-%COMP%] .edit-header[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%], .wtable[_ngcontent-%COMP%] .edit-header[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%]{height:45px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:auto}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;font-weight:500;border:0;display:flex;justify-content:center;align-items:center;min-width:140px;height:45px;border-radius:4px;padding:5px 12px;background-color:var(--c-primary);color:var(--c-primary);border:1px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:unset!important}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]:hover{box-shadow:0 0 3px 0 var(--c-primary);background-color:var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]{min-width:38px;max-width:38px;height:38px;top:15px}}.wtable[_ngcontent-%COMP%] .table-search[_ngcontent-%COMP%]{position:relative;display:flex;flex-grow:1;margin:0 30px}.wtable[_ngcontent-%COMP%] .table-search--active[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]{opacity:1}.wtable[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]{width:100%;height:45px;border-radius:4px;padding:0 10px;color:inherit;background:var(--c-bg-secondary);border:1px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]:focus{border:2px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-search__icon[_ngcontent-%COMP%]{width:40px;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:4;cursor:pointer}.wtable[_ngcontent-%COMP%] .table-search__icon-mobile[_ngcontent-%COMP%]{display:none;margin-left:auto;margin-right:130px}@media (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-search[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%]{display:block;position:absolute;margin:0;width:100%;z-index:2}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%] + .table-plus-btn[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%] + .w-forms__title[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search__icon-mobile[_ngcontent-%COMP%]{display:none}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-header__sort[_ngcontent-%COMP%]{position:relative;cursor:pointer}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-header__sort[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{transform:rotate(90deg);font-size:var(--fs);position:absolute;top:3px;cursor:pointer}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:relative;padding:0 16px;height:48px;text-align:left;font-weight:500;font-size:calc(var(--fs) - 2px);font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);border-bottom:1px solid var(--c-border);overflow:hidden;text-overflow:ellipsis}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover .icon-arrow[_ngcontent-%COMP%]{opacity:1;transition:.3s all ease-in-out}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .table-header__sort._sortActiveDown[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{transform:rotate(-90deg);opacity:1}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .table-header__sort._sortActiveUp[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{opacity:1}@media all and (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{display:none;text-align:left}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{width:140px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;padding:5px 16px;height:60px;text-align:left;vertical-align:middle;font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);color:var(--c-text-primary);word-break:break-word;display:table-cell;border-bottom:1px solid var(--c-border)}@media all and (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;column-gap:5px;border-bottom:0;border:2px solid var(--c-border);height:auto;min-height:60px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{content:attr(data-label);word-break:keep-all;display:inline-block;font-weight:500;font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);text-overflow:ellipsis}@media (min-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{display:none}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}@media (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:2px solid var(--c-border)}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:none}@media (max-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:2px solid var(--c-border)}}@media (max-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{margin-top:20px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{border-right:none}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table__actions[_ngcontent-%COMP%]{display:flex;gap:6px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--c-text-primary)}@media (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%]{margin-bottom:20px;border-bottom:3px solid var(--c-border)}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:22px;width:22px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{color:var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%]{height:65px;display:flex;gap:120px;position:absolute;width:100%;left:0;bottom:0;padding:0 8px 0 15px;align-items:center;justify-content:space-between}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%]{height:90px;padding:10px 20px;flex-direction:column;position:static;gap:20px}}.wtable[_ngcontent-%COMP%] .table-footer__pagination[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;bottom:15px}@media (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-footer__pagination[_ngcontent-%COMP%]{bottom:0;left:5px}}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]{border:0;background:none;width:30px;height:30px;margin-right:30px;cursor:pointer}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;display:block;min-width:22px;min-height:22px;border:2px solid transparent;border-radius:100px}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{position:absolute;width:2px;height:90%;background-color:var(--c-grey);mix-blend-mode:overlay;top:8%}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{content:"";display:block;box-sizing:border-box;position:absolute;width:10px;height:10px;border-bottom:2px solid var(--c-grey);border-right:2px solid var(--c-grey);mix-blend-mode:overlay;transform:rotate(135deg);left:2px;top:2px}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]:disabled i[_ngcontent-%COMP%]:after{border-color:#9f9f9f}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]:disabled i[_ngcontent-%COMP%]:before{background:#9f9f9f}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:1px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{left:8px;top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{display:block;left:2px;content:""}.wtable[_ngcontent-%COMP%] .table-footer__arrow._left[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._left[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._right[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{transform:rotate(315deg);top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:2px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{left:-3px;top:4px;transform:rotate(315deg)}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{display:block;left:11px;content:""}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page[_ngcontent-%COMP%]{font-size:12px;color:#9f9f9f;letter-spacing:1px;display:flex;align-items:center}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%]{position:relative;margin:0 10px;font-weight:700}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{background-color:transparent;padding:11px 24px;border-radius:4px;border:1px solid var(--c-border);cursor:pointer}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{position:absolute;background-color:var(--c-bg-secondary);width:100%;bottom:100%;flex-direction:column;border-radius:4px 4px 0 0;display:none;z-index:999}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:11px 20px;cursor:pointer;text-align:center}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item.selected[_ngcontent-%COMP%]{font-weight:700}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown.open[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown.open[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;border:1px solid var(--c-border);border-bottom:0}.users__btns[_ngcontent-%COMP%]{display:flex}']})}}return t})();var XA=["inputEl"],F0=["*","*"];function eO(t,n){if(t&1&&(m(0,"span",7),A(1),v()),t&2){let e=g(2);p(),Ie(e.label)}}function tO(t,n){if(t&1&&(m(0,"div",8),A(1),v()),t&2){let e=g(2);p(),de(" ",e.label||e.placeholder," is invalid. ")}}function nO(t,n){if(t&1){let e=W();m(0,"label",3),S(1,eO,2,1,"span",4),m(2,"input",5,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,R(o.onChange())})("keyup.enter",function(){N(e);let i=g();return R(i.onSubmit())})("blur",function(){N(e);let i=g();return R(i.wBlur.emit())}),v(),S(4,tO,2,1,"div",6),oo(5),v()}if(t&2){let e=g();y("for",e.name),p(),y("ngIf",e.label),p(),he("error",e.error),y("placeholder",e.placeholder||"Enter text...")("type",e.type||"text")("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(2),y("ngIf",e.error)}}function rO(t,n){if(t&1&&(m(0,"div",8),A(1),v()),t&2){let e=g(2);p(),de(" ",e.label||e.placeholder," is invalid. ")}}function iO(t,n){if(t&1){let e=W();ye(0),m(1,"label",3)(2,"span",7),A(3),v(),m(4,"textarea",9,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,R(o.onChange())})("keyup.enter",function(){N(e);let i=g();return R(i.onSubmit())})("blur",function(){N(e);let i=g();return R(i.wBlur.emit())}),v(),S(6,rO,2,1,"div",6),v(),ve()}if(t&2){let e=g();p(),y("for",e.name),p(2),Ie(e.label),p(),he("error",e.error),y("placeholder",e.placeholder)("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(2),y("ngIf",e.error)}}function oO(t,n){if(t&1){let e=W();m(0,"label",11)(1,"span",12),A(2),v(),m(3,"input",13,0),O("ngModelChange",function(i){N(e);let o=g(2);return o.value=i,R(o.onChange())}),v(),Re(5,"span",14),oo(6,1),v()}if(t&2){let e=n.$implicit,r=g(2);p(2),Ie(e),p(),he("error",r.error),y("disabled",r.disabled)("ngModel",r.value)("ngClass",r.wClass)("value",e)("name",r.name)}}function sO(t,n){if(t&1&&(ye(0),S(1,oO,7,8,"label",10),ve()),t&2){let e=g();p(),y("ngForOf",e.items)}}function aO(t,n){if(t&1&&(m(0,"span",19),A(1),v()),t&2){let e=g(2);p(),Ie(e.label)}}function cO(t,n){if(t&1){let e=W();ye(0),m(1,"label",15)(2,"input",16,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,R(o.onChange())}),v(),Re(4,"span",17),S(5,aO,2,1,"span",18),v(),ve()}if(t&2){let e=g();p(2),he("error",e.error),y("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(3),y("ngIf",e.label)}}var J3=(()=>{class t{constructor(e){this._core=e,this.value="",this.valid=r=>!!r,this.items=[],this.placeholder="",this.disabled=!1,this.focused=!1,this.name="name",this.type="text",this.label="",this.wChange=new G,this.wSubmit=new G,this.wBlur=new G,this.error=!1}ngOnInit(){this.focused&&this.focus(),this.setFocus&&(this.setFocus.focus=this.focus.bind(this))}ngOnChanges(e){e.disabled&&(this.disabled=e.disabled.currentValue)}focus(){setTimeout(()=>{this.inputEl.nativeElement.focus()},100)}onChange(){this._core.afterWhile("winput",()=>{this.value=typeof this.replace=="function"?this.replace(this.value):this.value,this.wChange.emit(this.value)},100)}onSubmit(){this.valid(this.value)?this.wSubmit.emit(this.value):this.error=!0}setDisabled(e){this.disabled=e}static{this.\u0275fac=function(r){return new(r||t)(I(be))}}static{this.\u0275cmp=fe({type:t,selectors:[["winput"]],viewQuery:function(r,i){if(r&1&&ei(XA,5),r&2){let o;nt(o=rt())&&(i.inputEl=o.first)}},inputs:{value:"value",replace:"replace",valid:"valid",items:"items",placeholder:"placeholder",disabled:"disabled",focused:"focused",wClass:"wClass",name:"name",type:"type",label:"label",setFocus:"setFocus"},outputs:{wChange:"wChange",wSubmit:"wSubmit",wBlur:"wBlur"},standalone:!1,features:[pt],ngContentSelectors:F0,decls:4,vars:4,consts:[["inputEl",""],["class","w-forms",3,"for",4,"ngIf"],[4,"ngIf"],[1,"w-forms",3,"for"],["class","w-forms__title",4,"ngIf"],[1,"w-forms__input",3,"ngModelChange","keyup.enter","blur","placeholder","type","disabled","ngModel","ngClass","name"],["class","error-message",4,"ngIf"],[1,"w-forms__title"],[1,"error-message"],[1,"w-forms__textarea",3,"ngModelChange","keyup.enter","blur","placeholder","disabled","ngModel","ngClass","name"],["class","check-label",4,"ngFor","ngForOf"],[1,"check-label"],[1,"form-label"],["type","radio",3,"ngModelChange","disabled","ngModel","ngClass","value","name"],[1,"checkbox","_radio"],[1,"container-box"],["type","checkbox",1,"w-input__checkbox",3,"ngModelChange","disabled","ngModel","ngClass","name"],[1,"checkmark"],["class","check-text",4,"ngIf"],[1,"check-text"]],template:function(r,i){r&1&&(qa(F0),S(0,nO,6,11,"label",1)(1,iO,7,10,"ng-container",2)(2,sO,2,1,"ng-container",2)(3,cO,6,7,"ng-container",2)),r&2&&(y("ngIf",i.type!=="radio"&&i.type!=="checkbox"&&i.type!=="textarea"),p(),y("ngIf",i.type==="textarea"),p(),y("ngIf",i.type==="radio"),p(),y("ngIf",i.type==="checkbox"))},dependencies:[Un,nh,ih,Ei,vr,dn,Ve,it],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.w-forms[_ngcontent-%COMP%]{position:relative;padding:10px 0;display:block}.w-forms__title[_ngcontent-%COMP%]{letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:var(--b-radius);margin-bottom:10px}.w-forms__field[_ngcontent-%COMP%], .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]{background-color:transparent;border:1px solid var(--c-border);border-radius:var(--b-radius);color:var(--c-text-secondary);font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 4px);transition:var(--transition);width:100%;display:block;letter-spacing:var(--letter-spacing);padding:8px 12px;appearance:textfield;-webkit-appearance:textfield;-moz-appearance:textfield}.w-forms__field[_ngcontent-%COMP%]::placeholder, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]::placeholder{color:var(--c-placeholder);transition:var(--transition)}.w-forms__field[_ngcontent-%COMP%]:focus, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]:focus{transition:var(--transition);border-color:var(--c-primary);outline:none}.w-forms__field[_ngcontent-%COMP%]:disabled, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]:disabled{background-color:var(--c-grey);border-color:var(--c-grey);color:var(--c-grey);cursor:default;opacity:.6}.w-forms__field[type=time][_ngcontent-%COMP%], .w-forms[_ngcontent-%COMP%] .w-forms__textarea[type=time][_ngcontent-%COMP%]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.w-forms__checkbox[_ngcontent-%COMP%]{display:none}.w-forms__checkbox[_ngcontent-%COMP%]:checked ~ .checkbox[_ngcontent-%COMP%]:before{opacity:1}input.error[_ngcontent-%COMP%], textarea.error[_ngcontent-%COMP%]{border:1px solid red}.error-message[_ngcontent-%COMP%]{color:red;font-size:12px;margin-top:4px}.check-label[_ngcontent-%COMP%]{display:flex;column-gap:5px;cursor:pointer}.check-label[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.check-label[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]:before{position:absolute;left:50%;top:50%;transition:var(--transition);opacity:0;transform:translate(-50%,-65%) rotate(45deg);height:11px;width:7px;display:block;content:"";border-bottom:2px solid var(--c-primary);border-right:2px solid var(--c-primary)}.container-box[_ngcontent-%COMP%]{position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:32px;width:32px;background-color:#12677a6e;border-radius:50%;transition:all .3s}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after, .container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:before{content:"";position:absolute;display:none}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{left:10px;top:47%;width:8px;height:14px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg) translate(-50%,-50%)}.container-box[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#0f353d60}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:var(--c-primary)}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}']})}}return t})();var L0=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Gt,Pe]})}}return t})();var bU=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Pe,Gt,Ni,A0,Zc,T_,L0]})}}return t})();var DU=(()=>{class t{constructor(e,r){this.elementRef=e,this.tr=r}ngOnInit(){this.elementRef.nativeElement.innerHTML=this.tr.translate(this.elementRef.nativeElement.innerHTML,e=>{this.elementRef.nativeElement.innerHTML=e})}static{this.\u0275fac=function(r){return new(r||t)(I(Ee),I(Ri))}}static{this.\u0275dir=re({type:t,selectors:[["","translate",""]],standalone:!1})}}return t})();var IU=(()=>{class t{constructor(e){this._tr=e}transform(e,r){return this._tr.translate(e)}static{this.\u0275fac=function(r){return new(r||t)(I(Ri,16))}}static{this.\u0275pipe=Rn({name:"translate",type:t,pure:!0,standalone:!1})}}return t})();var PU=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Pe,Gt,Ni]})}}return t})();var lO=["e_search"],uO=t=>({item:t});function dO(t,n){if(t&1&&(m(0,"div",21),A(1),v()),t&2){let e=g();p(),Ie(e.label)}}function fO(t,n){if(t&1&&(m(0,"div"),A(1),v()),t&2){let e=g(3);p(),Ie(e.placeholder)}}function hO(t,n){t&1&&(m(0,"span"),A(1,", "),v())}function pO(t,n){if(t&1){let e=W();m(0,"span"),A(1),m(2,"i",27),O("click",function(){N(e);let i=g().index,o=g(3);return o._values.splice(i,1),R(o.modelChange.emit(o._values))}),A(3,"close"),v()()}if(t&2){let e=g().$implicit,r=g(3);p(),de("",r._items[e][r.name]," ")}}function gO(t,n){if(t&1&&(m(0,"span"),S(1,hO,2,0,"span",25)(2,pO,4,1,"span",25),v()),t&2){let e=n.$implicit,r=n.index,i=g(3);p(),y("ngIf",r),p(),y("ngIf",i._items[e])}}function mO(t,n){if(t&1&&(m(0,"div",24),S(1,fO,2,1,"div",25)(2,gO,3,2,"span",26),v()),t&2){let e=g(2);p(),y("ngIf",!e._values.length),p(),y("ngForOf",e._values)}}function yO(t,n){if(t&1&&(m(0,"div",24),A(1),v()),t&2){let e=g(2);p(),de(" ",e._selected||e.placeholder," ")}}function vO(t,n){if(t&1&&(m(0,"div",22),S(1,mO,3,2,"div",23)(2,yO,2,1,"div",23),v()),t&2){let e=g();p(),y("ngIf",e.multiple),p(),y("ngIf",!e.multiple)}}function _O(t,n){if(t&1){let e=W();m(0,"div",17),O("click",function(){N(e);let i=g();return R(i.clear())}),m(1,"span",28),A(2,"close"),v()()}}function wO(t,n){if(t&1){let e=W();m(0,"div",33)(1,"input",34,3),ao("ngModelChange",function(i){N(e);let o=g(3);return Ga(o.search,i)||(o.search=i),R(i)}),v(),xa(),m(3,"svg",35),Re(4,"path",36),v()()}if(t&2){let e=g(3);p(),so("ngModel",e.search)}}function bO(t,n){if(t&1&&(m(0,"div"),mt(1,15),S(2,wO,5,1,"ng-template",null,2,cn),v()),t&2){let e=At(3),r=g(2);p(),y("ngTemplateOutlet",r.t_search?r.t_search:e)}}function CO(t,n){if(t&1&&mt(0,37),t&2){let e=n.$implicit;g();let r=At(8),i=g();y("ngTemplateOutlet",i.t_item?i.t_item:r)("ngTemplateOutletContext",kn(2,uO,e))}}function DO(t,n){t&1&&(m(0,"div",38),A(1," Nothing was found "),v())}function EO(t,n){if(t&1){let e=W();m(0,"div",39),O("click",function(){let i=N(e).item,o=g(2);return R(o.item_onclick(i))}),m(1,"div",40),A(2),v()()}if(t&2){let e=n.item,r=g(2);he("disabled",r._values.indexOf(e.value)!==-1),p(),he("selected",r._values.indexOf(e[r.value])!==-1),p(),de(" ",e[r.name]," ")}}function IO(t,n){if(t&1&&(m(0,"div",29),S(1,bO,4,1,"div",25),m(2,"div",30),S(3,CO,1,4,"ng-container",31),fr(4,"search"),S(5,DO,2,0,"div",32),fr(6,"search"),v(),S(7,EO,3,5,"ng-template",null,1,cn),v()),t&2){let e,r=g();he("_search",r.searchable),p(),y("ngIf",r.searchable),p(2),y("ngForOf",ti(4,5,r.items,r.search,r.searchableBy)),p(2),y("ngIf",!((e=ti(6,9,r.items,r.search,r.searchableBy))!=null&&e.length))}}var UU=(()=>{class t{constructor(){this.placeholder="",this.items=[],this._items={},this.disabled=!1,this.clearable=!1,this.name="name",this.value="_id",this.multiple=!1,this.label="",this.searchable=!1,this.searchableBy="name",this.modelChange=new G,this._values=[],this._names=[],this.search=""}clear(){this.multiple?(this._values=[],this.modelChange.emit(this._values)):(this._selected="",this.modelChange.emit(""))}ngOnInit(){for(let e=0;e{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Gt,Pe,Ni]})}}return t})();export{C as a,H as b,G0 as c,MO as d,xO as e,_t as f,hl as g,Se as h,hw as i,bl as j,Tw as k,He as l,Et as m,Aw as n,Ml as o,x as p,or as q,D as r,le as s,M as t,_ as u,w as v,pt as w,N as x,R as y,xa as z,G as A,ae as B,Ee as C,$t as D,qL as E,Pa as F,GL as G,p as H,I,ft as J,Gr as K,fe as L,ue as M,re as N,Pd as O,S as P,ur as Q,y as R,Ty as S,he as T,QL as U,m as V,v as W,Re as X,ye as Y,ve as Z,W as _,O as $,g as aa,qa as ba,oo as ca,dr as da,ei as ea,nt as fa,rt as ga,At as ha,A as ia,Ie as ja,de as ka,so as la,Ga as ma,ao as na,co as oa,KL as pa,fr as qa,JL as ra,XL as sa,cn as ta,eV as ua,Fn as va,zd as wa,hr as xa,PM as ya,xe as za,un as Aa,sv as Ba,dn as Ca,Ve as Da,it as Ea,av as Fa,ii as Ga,IV as Ha,Pe as Ia,MV as Ja,Tv as Ka,XV as La,e2 as Ma,t2 as Na,Fv as Oa,uT as Pa,vt as Qa,Dc as Ra,b2 as Sa,C2 as Ta,T_ as Ua,_i as Va,Oc as Wa,nh as Xa,Ei as Ya,vr as Za,Gt as _a,be as $a,U1 as ab,qc as bb,zc as cb,Wt as db,Oi as eb,YB as fb,D0 as gb,E0 as hb,QB as ib,KB as jb,Ni as kb,Ri as lb,DU as mb,Wc as nb,Zc as ob,J3 as pb,L0 as qb,O0 as rb,q3 as sb,M0 as tb,T0 as ub,Dh as vb,A0 as wb,bU as xb,IU as yb,PU as zb,UU as Ab,ZU as Bb}; diff --git a/chunk-CB322JUW.js b/chunk-CB322JUW.js new file mode 100644 index 0000000..52a6bb7 --- /dev/null +++ b/chunk-CB322JUW.js @@ -0,0 +1 @@ +import{$a as u,Qa as c,Va as a,cb as l,db as d,eb as m,gb as g,r as n,u as s}from"./chunk-5J222IEH.js";var y=(()=>{class i extends l{constructor(e,t,o,h,p){super({name:"user"},e,t,o,h),this._router=p,this.roles=(a.roles||[]).concat(["admin"]),this.employees=a.roles||[],this.mode="",this.users=this.getDocs(),this.user=localStorage.getItem("waw_user")?JSON.parse(localStorage.getItem("waw_user")):this.new(),this._changingPassword=!1,this.store=t,this.http=e,this.alert=o,this.core=h,this.fetch({},{name:"me"}).subscribe(r=>{r?(!localStorage.getItem("waw_user")&&this._router.url==="/sign"&&this._router.navigateByUrl("/profile"),this.setUser(r),this.get()):localStorage.getItem("waw_user")&&this.logout()}),this.store.get("mode",r=>{r&&this.setMode(r)})}setMode(e=""){e?(this.store.set("mode",e),document.body.parentNode.classList.add(e)):(this.store.remove("mode"),document.body.parentNode.classList.remove("dark")),this.mode=e}setUser(e){this.user=e,localStorage.setItem("waw_user",JSON.stringify(e)),this.core.complete("us.user")}role(e){return!!(this.user?.is||{})[e]}updateMe(){this.setUser(this.user),this.update(this.user)}updateMeAfterWhile(){this.setUser(this.user),this.updateAfterWhile(this.user)}changePassword(e,t){this._changingPassword||(this._changingPassword=!0,this.http.post("/api/user/changePassword",{newPass:t,oldPass:e},o=>{this._changingPassword=!1,o?this.alert.info({text:"Successfully changed password"}):this.alert.error({text:"Incorrect current password"})}))}logout(){this.user=this.new(),localStorage.removeItem("waw_user"),this.http.remove("token"),this.http.get("/api/user/logout"),this._router.navigateByUrl("/sign"),setTimeout(()=>{location.reload()},100)}updateAdmin(e){this.update(e,{name:"admin"})}deleteAdmin(e){this.delete(e,{name:"admin"})}static{this.\u0275fac=function(t){return new(t||i)(s(m),s(d),s(g),s(u),s(c))}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{y as a}; diff --git a/chunk-CNQ4KSTG.js b/chunk-CNQ4KSTG.js new file mode 100644 index 0000000..070d784 --- /dev/null +++ b/chunk-CNQ4KSTG.js @@ -0,0 +1 @@ +import{e as I}from"./chunk-EBFT2EPY.js";import{$a as l,I as n,L as y,M as _,R as v,Ua as S,X as w,cb as g,db as C,eb as b,f as p,gb as m,i as a,lb as P,r as f,s as u,sb as j,u as c,ub as k}from"./chunk-5J222IEH.js";var M={formId:"propertytrade",title:"Propertytrade",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill propertytrade title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill propertytrade description"},{name:"Label",value:"Description"}]}]};var F=(()=>{class r extends g{constructor(i,e,t,s){super({name:"propertytrade"},i,e,t,s)}static{this.\u0275fac=function(e){return new(e||r)(c(b),c(C),c(m),c(l))}}static{this.\u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(i,e,t,s,d){this._translate=i,this._propertytradeService=e,this._alert=t,this._form=s,this._core=d,this.columns=["name","description"],this.form=this._form.getForm("propertytrade",M),this.config={paginate:this.setRows.bind(this),perPage:20,setPerPage:this._propertytradeService.setPerPage.bind(this._propertytradeService),allDocs:!1,create:()=>{this._form.modal(this.form,{label:"Create",click:(o,h)=>p(this,null,function*(){h(),this._preCreate(o),yield a(this._propertytradeService.create(o)),this.setRows()})})},update:o=>{this._form.modal(this.form,[],o).then(h=>{this._core.copy(h,o),this._propertytradeService.update(o)})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this propertytrade?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>p(this,null,function*(){yield a(this._propertytradeService.delete(o)),this.setRows()})}]})},buttons:[{icon:"cloud_download",click:o=>{this._form.modalUnique("propertytrade","url",o)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.rows=[],this._page=1,this.setRows()}setRows(i=this._page){this._page=i,this._core.afterWhile(this,()=>{this._propertytradeService.get({page:i}).subscribe(e=>{this.rows.splice(0,this.rows.length),this.rows.push(...e)})},250)}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(e=>p(this,null,function*(){if(i)for(let t of e)this._preCreate(t),yield a(this._propertytradeService.create(t));else{for(let t of this.rows)e.find(s=>s._id===t._id)||(yield a(this._propertytradeService.delete(t)));for(let t of e){let s=this.rows.find(d=>d._id===t._id);s?(this._core.copy(t,s),yield a(this._propertytradeService.update(s))):(this._preCreate(t),yield a(this._propertytradeService.create(t)))}}this.setRows()}))}}_preCreate(i){delete i.__created}static{this.\u0275fac=function(e){return new(e||r)(n(P),n(F),n(m),n(k),n(l))}}static{this.\u0275cmp=y({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Propertiestrades",3,"columns","config","rows"]],template:function(e,t){e&1&&w(0,"wtable",0),e&2&&v("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[j],encapsulation:2})}}return r})();var A=[{path:"",component:R}],J=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=_({type:r})}static{this.\u0275inj=u({imports:[S.forChild(A),I]})}}return r})();export{J as PropertiestradesModule}; diff --git a/chunk-EBFT2EPY.js b/chunk-EBFT2EPY.js new file mode 100644 index 0000000..c8802d2 --- /dev/null +++ b/chunk-EBFT2EPY.js @@ -0,0 +1,37 @@ +import{$ as ee,A as ge,Ab as ni,B as Ve,Bb as it,C as Mt,Ca as Ae,Da as Ye,Ea as Te,F as et,Fa as Vt,G as Rt,Ga as Nt,H as le,I as ne,Ia as xe,J as Lt,L as se,M as _e,N as Tt,Na as jt,O as Ot,Oa as Ut,P as re,Q as Ne,R as q,S as je,T as Ue,U as rt,V as K,Va as Kt,W as G,Wa as Gt,X as me,Y as ot,Ya as Qt,Z as st,Za as Yt,_ as ce,_a as Oe,a as we,aa as ie,b as Pe,ba as at,ca as Ke,d as Ft,da as pt,e as yt,ea as de,eb as Xt,f as ke,fa as he,g as Et,ga as ue,h as _t,ha as It,hb as Zt,ia as be,ib as Jt,j as qe,ja as Ge,jb as qt,k as gt,ka as Qe,kb as tt,l as mt,m as xt,n as St,nb as Xe,o as $t,oa as Pt,ob as Ze,pb as Se,q as Bt,qb as ht,r as Le,s as Ee,t as Dt,ta as pe,u as We,ua as Wt,ub as fe,v as He,va as lt,w as ze,wa as Ht,wb as ei,x as Z,xa as vt,xb as ti,y as J,ya as zt,z as kt,za as ct,zb as ii}from"./chunk-5J222IEH.js";var wt=Ft((io,mi)=>{"use strict";(function(){var p="ace",b=function(){return this}();if(!b&&typeof window<"u"&&(b=window),!p&&typeof acequirejs<"u")return;var h=function(t,e,r){if(typeof t!="string"){h.original?h.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=e),h.modules[t]||(h.payloads[t]=r,h.modules[t]=null)};h.modules={},h.payloads={};var c=function(t,e,r){if(typeof e=="string"){var i=a(t,e);if(i!=null)return r&&r(),i}else if(Object.prototype.toString.call(e)==="[object Array]"){for(var o=[],s=0,g=e.length;s1&&n(e,"")>-1&&(i=RegExp(this.source,c.replace.call(a(this),"g","")),c.replace.call(t.slice(e.index),i,function(){for(var s=1;se.index&&this.lastIndex--}return e},l||(RegExp.prototype.test=function(t){var e=c.exec.call(this,t);return e&&this.global&&!e[0].length&&this.lastIndex>e.index&&this.lastIndex--,!!e});function a(t){return(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":"")}function n(t,e,r){if(Array.prototype.indexOf)return t.indexOf(e,r);for(var i=r||0;i0?M>z&&(M=z):M==null?M=0:M<0&&(M=Math.max(z+M,0)),M+kX)for(V=oe;V--;)this[Y+V]=this[X+V];if(R&&M===ae)this.length=ae,this.push.apply(this,j);else for(this.length=ae+R,V=0;V>>0;if(t(k)!="[object Function]")throw new TypeError;for(;++R>>0,R=Array(j),W=arguments[1];if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");for(var X=0;X>>0,R=[],W,X=arguments[1];if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");for(var Y=0;Y>>0,R=arguments[1];if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");for(var W=0;W>>0,R=arguments[1];if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");for(var W=0;W>>0;if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");if(!j&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var R=0,W;if(arguments.length>=2)W=arguments[1];else do{if(R in P){W=P[R++];break}if(++R>=j)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;R>>0;if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");if(!j&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var R,W=j-1;if(arguments.length>=2)R=arguments[1];else do{if(W in P){R=P[W--];break}if(--W<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);do W in this&&(R=k.call(void 0,R,P[W],W,z));while(W--);return R}),(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)&&(Array.prototype.indexOf=function(k){var z=y&&t(this)=="[object String]"?this.split(""):T(this),P=z.length>>>0;if(!P)return-1;var j=0;for(arguments.length>1&&(j=N(arguments[1])),j=j>=0?j:Math.max(0,P+j);j>>0;if(!P)return-1;var j=P-1;for(arguments.length>1&&(j=Math.min(j,N(arguments[1]))),j=j>=0?j:P-Math.abs(j);j>=0;j--)if(j in z&&k===z[j])return j;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(k){return k.__proto__||(k.constructor?k.constructor.prototype:a)}),!Object.getOwnPropertyDescriptor){var m="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(k,z){if(typeof k!="object"&&typeof k!="function"||k===null)throw new TypeError(m+k);if(e(k,z)){var P,j,R;if(P={enumerable:!0,configurable:!0},g){var W=k.__proto__;k.__proto__=a;var j=o(k,z),R=s(k,z);if(k.__proto__=W,j||R)return j&&(P.get=j),R&&(P.set=R),P}return P.value=k[z],P}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(k){return Object.keys(k)}),!Object.create){var w;Object.prototype.__proto__===null?w=function(){return{__proto__:null}}:w=function(){var M={};for(var k in M)M[k]=null;return M.constructor=M.hasOwnProperty=M.propertyIsEnumerable=M.isPrototypeOf=M.toLocaleString=M.toString=M.valueOf=M.__proto__=null,M},Object.create=function(k,z){var P;if(k===null)P=w();else{if(typeof k!="object")throw new TypeError("typeof prototype["+typeof k+"] != 'object'");var j=function(){};j.prototype=k,P=new j,P.__proto__=k}return z!==void 0&&Object.defineProperties(P,z),P}}function d(M){try{return Object.defineProperty(M,"sentinel",{}),"sentinel"in M}catch{}}if(Object.defineProperty){var v=d({}),F=typeof document>"u"||d(document.createElement("div"));if(!v||!F)var E=Object.defineProperty}if(!Object.defineProperty||E){var f="Property description must be an object: ",A="Object.defineProperty called on non-object: ",x="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(k,z,P){if(typeof k!="object"&&typeof k!="function"||k===null)throw new TypeError(A+k);if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError(f+P);if(E)try{return E.call(Object,k,z,P)}catch{}if(e(P,"value"))if(g&&(o(k,z)||s(k,z))){var j=k.__proto__;k.__proto__=a,delete k[z],k[z]=P.value,k.__proto__=j}else k[z]=P.value;else{if(!g)throw new TypeError(x);e(P,"get")&&r(k,z,P.get),e(P,"set")&&i(k,z,P.set)}return k}}Object.defineProperties||(Object.defineProperties=function(k,z){for(var P in z)e(z,P)&&Object.defineProperty(k,P,z[P]);return k}),Object.seal||(Object.seal=function(k){return k}),Object.freeze||(Object.freeze=function(k){return k});try{Object.freeze(function(){})}catch{Object.freeze=function(z){return function(j){return typeof j=="function"?j:z(j)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(k){return k}),Object.isSealed||(Object.isSealed=function(k){return!1}),Object.isFrozen||(Object.isFrozen=function(k){return!1}),Object.isExtensible||(Object.isExtensible=function(k){if(Object(k)===k)throw new TypeError;for(var z="";e(k,z);)z+="?";k[z]=!0;var P=e(k,z);return delete k[z],P}),!Object.keys){var S=!0,$=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],B=$.length;for(var D in{toString:null})S=!1;Object.keys=function(k){if(typeof k!="object"&&typeof k!="function"||k===null)throw new TypeError("Object.keys called on a non-object");var z=[];for(var P in k)e(k,P)&&z.push(P);if(S)for(var j=0,R=B;j0||-1)*Math.floor(Math.abs(M))),M}function L(M){var k=typeof M;return M===null||k==="undefined"||k==="boolean"||k==="number"||k==="string"}function U(M){var k,z,P;if(L(M))return M;if(z=M.valueOf,typeof z=="function"&&(k=z.call(M),L(k))||(P=M.toString,typeof P=="function"&&(k=P.call(M),L(k))))return k;throw new TypeError}var T=function(M){if(M==null)throw new TypeError("can't convert "+M+" to object");return Object(M)}});ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(p,b,h){"use strict";p("./regexp"),p("./es5-shim")});ace.define("ace/lib/dom",["require","exports","module"],function(p,b,h){"use strict";var c="http://www.w3.org/1999/xhtml";if(b.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},b.createElement=function(u,l){return document.createElementNS?document.createElementNS(l||c,u):document.createElement(u)},b.hasCssClass=function(u,l){var a=(u.className+"").split(/\s+/g);return a.indexOf(l)!==-1},b.addCssClass=function(u,l){b.hasCssClass(u,l)||(u.className+=" "+l)},b.removeCssClass=function(u,l){for(var a=u.className.split(/\s+/g);;){var n=a.indexOf(l);if(n==-1)break;a.splice(n,1)}u.className=a.join(" ")},b.toggleCssClass=function(u,l){for(var a=u.className.split(/\s+/g),n=!0;;){var t=a.indexOf(l);if(t==-1)break;n=!1,a.splice(t,1)}return n&&a.push(l),u.className=a.join(" "),n},b.setCssClass=function(u,l,a){a?b.addCssClass(u,l):b.removeCssClass(u,l)},b.hasCssString=function(u,l){var a=0,n;if(l=l||document,l.createStyleSheet&&(n=l.styleSheets)){for(;a"u"){b.importCssString=function(){};return}window.pageYOffset!==void 0?(b.getPageScrollTop=function(){return window.pageYOffset},b.getPageScrollLeft=function(){return window.pageXOffset}):(b.getPageScrollTop=function(){return document.body.scrollTop},b.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?b.computedStyle=function(u,l){return l?(window.getComputedStyle(u,"")||{})[l]||"":window.getComputedStyle(u,"")||{}}:b.computedStyle=function(u,l){return l?u.currentStyle[l]:u.currentStyle},b.setInnerHtml=function(u,l){var a=u.cloneNode(!1);return a.innerHTML=l,u.parentNode.replaceChild(a,u),a},"textContent"in document.documentElement?(b.setInnerText=function(u,l){u.textContent=l},b.getInnerText=function(u){return u.textContent}):(b.setInnerText=function(u,l){u.innerText=l},b.getInnerText=function(u){return u.innerText}),b.getParentWindow=function(u){return u.defaultView||u.parentWindow}});ace.define("ace/lib/oop",["require","exports","module"],function(p,b,h){"use strict";b.inherits=function(c,u){c.super_=u,c.prototype=Object.create(u.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}})},b.mixin=function(c,u){for(var l in u)c[l]=u[l];return c},b.implement=function(c,u){b.mixin(c,u)}});ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(p,b,h){"use strict";p("./fixoldbrowsers");var c=p("./oop"),u=function(){var l={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},a,n;for(n in l.FUNCTION_KEYS)a=l.FUNCTION_KEYS[n].toLowerCase(),l[a]=parseInt(n,10);for(n in l.PRINTABLE_KEYS)a=l.PRINTABLE_KEYS[n].toLowerCase(),l[a]=parseInt(n,10);return c.mixin(l,l.MODIFIER_KEYS),c.mixin(l,l.PRINTABLE_KEYS),c.mixin(l,l.FUNCTION_KEYS),l.enter=l.return,l.escape=l.esc,l.del=l.delete,l[173]="-",function(){for(var t=["cmd","ctrl","alt","shift"],e=Math.pow(2,t.length);e--;)l.KEY_MODS[e]=t.filter(function(r){return e&l.KEY_MODS[r]}).join("-")+"-"}(),l.KEY_MODS[0]="",l.KEY_MODS[-1]="input-",l}();c.mixin(b,u),b.keyCodeToString=function(l){var a=u[l];return typeof a!="string"&&(a=String.fromCharCode(l)),a.toLowerCase()}});ace.define("ace/lib/useragent",["require","exports","module"],function(p,b,h){"use strict";if(b.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},b.getOS=function(){return b.isMac?b.OS.MAC:b.isLinux?b.OS.LINUX:b.OS.WINDOWS},typeof navigator=="object"){var c=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),u=navigator.userAgent;b.isWin=c=="win",b.isMac=c=="mac",b.isLinux=c=="linux",b.isIE=navigator.appName=="Microsoft Internet Explorer"||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((u.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((u.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),b.isOldIE=b.isIE&&b.isIE<9,b.isGecko=b.isMozilla=(window.Controllers||window.controllers)&&window.navigator.product==="Gecko",b.isOldGecko=b.isGecko&&parseInt((u.match(/rv:(\d+)/)||[])[1],10)<4,b.isOpera=window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]",b.isWebKit=parseFloat(u.split("WebKit/")[1])||void 0,b.isChrome=parseFloat(u.split(" Chrome/")[1])||void 0,b.isAIR=u.indexOf("AdobeAIR")>=0,b.isIPad=u.indexOf("iPad")>=0,b.isChromeOS=u.indexOf(" CrOS ")>=0,b.isIOS=/iPad|iPhone|iPod/.test(u)&&!window.MSStream,b.isIOS&&(b.isMac=!0)}});ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("./keys"),u=p("./useragent"),l=null,a=0;b.addListener=function(i,o,s){if(i.addEventListener)return i.addEventListener(o,s,!1);if(i.attachEvent){var g=function(){s.call(i,window.event)};s._wrapper=g,i.attachEvent("on"+o,g)}},b.removeListener=function(i,o,s){if(i.removeEventListener)return i.removeEventListener(o,s,!1);i.detachEvent&&i.detachEvent("on"+o,s._wrapper||s)},b.stopEvent=function(i){return b.stopPropagation(i),b.preventDefault(i),!1},b.stopPropagation=function(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0},b.preventDefault=function(i){i.preventDefault?i.preventDefault():i.returnValue=!1},b.getButton=function(i){return i.type=="dblclick"?0:i.type=="contextmenu"||u.isMac&&i.ctrlKey&&!i.altKey&&!i.shiftKey?2:i.preventDefault?i.button:{1:0,2:2,4:1}[i.button]},b.capture=function(i,o,s){function g(C){o&&o(C),s&&s(C),b.removeListener(document,"mousemove",o,!0),b.removeListener(document,"mouseup",g,!0),b.removeListener(document,"dragstart",g,!0)}return b.addListener(document,"mousemove",o,!0),b.addListener(document,"mouseup",g,!0),b.addListener(document,"dragstart",g,!0),g},b.addTouchMoveListener=function(i,o){var s,g;b.addListener(i,"touchstart",function(C){var _=C.touches,y=_[0];s=y.clientX,g=y.clientY}),b.addListener(i,"touchmove",function(C){var _=C.touches;if(!(_.length>1)){var y=_[0];C.wheelX=s-y.clientX,C.wheelY=g-y.clientY,s=y.clientX,g=y.clientY,o(C)}})},b.addMouseWheelListener=function(i,o){"onmousewheel"in i?b.addListener(i,"mousewheel",function(s){var g=8;s.wheelDeltaX!==void 0?(s.wheelX=-s.wheelDeltaX/g,s.wheelY=-s.wheelDeltaY/g):(s.wheelX=0,s.wheelY=-s.wheelDelta/g),o(s)}):"onwheel"in i?b.addListener(i,"wheel",function(s){var g=.35;switch(s.deltaMode){case s.DOM_DELTA_PIXEL:s.wheelX=s.deltaX*g||0,s.wheelY=s.deltaY*g||0;break;case s.DOM_DELTA_LINE:case s.DOM_DELTA_PAGE:s.wheelX=(s.deltaX||0)*5,s.wheelY=(s.deltaY||0)*5;break}o(s)}):b.addListener(i,"DOMMouseScroll",function(s){s.axis&&s.axis==s.HORIZONTAL_AXIS?(s.wheelX=(s.detail||0)*5,s.wheelY=0):(s.wheelX=0,s.wheelY=(s.detail||0)*5),o(s)})},b.addMultiMouseDownListener=function(i,o,s,g){var C=0,_,y,m,w={2:"dblclick",3:"tripleclick",4:"quadclick"};function d(F){if(b.getButton(F)!==0?C=0:F.detail>1?(C++,C>4&&(C=1)):C=1,u.isIE){var E=Math.abs(F.clientX-_)>5||Math.abs(F.clientY-y)>5;(!m||E)&&(C=1),m&&clearTimeout(m),m=setTimeout(function(){m=null},o[C-1]||600),C==1&&(_=F.clientX,y=F.clientY)}if(F._clicks=C,s[g]("mousedown",F),C>4)C=0;else if(C>1)return s[g](w[C],F)}function v(F){C=2,m&&clearTimeout(m),m=setTimeout(function(){m=null},o[C-1]||600),s[g]("mousedown",F),s[g](w[C],F)}Array.isArray(i)||(i=[i]),i.forEach(function(F){b.addListener(F,"mousedown",d),u.isOldIE&&b.addListener(F,"dblclick",v)})};var n=u.isMac&&u.isOpera&&!("KeyboardEvent"in window)?function(i){return 0|(i.metaKey?1:0)|(i.altKey?2:0)|(i.shiftKey?4:0)|(i.ctrlKey?8:0)}:function(i){return 0|(i.ctrlKey?1:0)|(i.altKey?2:0)|(i.shiftKey?4:0)|(i.metaKey?8:0)};b.getModifierString=function(i){return c.KEY_MODS[n(i)]};function t(i,o,s){var g=n(o);if(!u.isMac&&l){if(o.getModifierState&&(o.getModifierState("OS")||o.getModifierState("Win"))&&(g|=8),l.altGr)if((3&g)!=3)l.altGr=0;else return;if(s===18||s===17){var C="location"in o?o.location:o.keyLocation;if(s===17&&C===1)l[s]==1&&(a=o.timeStamp);else if(s===18&&g===3&&C===2){var _=o.timeStamp-a;_<50&&(l.altGr=!0)}}}if(s in c.MODIFIER_KEYS&&(s=-1),g&8&&s>=91&&s<=93&&(s=-1),!g&&s===13){var C="location"in o?o.location:o.keyLocation;if(C===3&&(i(o,g,-s),o.defaultPrevented))return}if(u.isChromeOS&&g&8){if(i(o,g,s),o.defaultPrevented)return;g&=-9}return!g&&!(s in c.FUNCTION_KEYS)&&!(s in c.PRINTABLE_KEYS)?!1:i(o,g,s)}b.addCommandKeyListener=function(i,o){var s=b.addListener;if(u.isOldGecko||u.isOpera&&!("KeyboardEvent"in window)){var g=null;s(i,"keydown",function(_){g=_.keyCode}),s(i,"keypress",function(_){return t(o,_,g)})}else{var C=null;s(i,"keydown",function(_){l[_.keyCode]=(l[_.keyCode]||0)+1;var y=t(o,_,_.keyCode);return C=_.defaultPrevented,y}),s(i,"keypress",function(_){C&&(_.ctrlKey||_.altKey||_.shiftKey||_.metaKey)&&(b.stopEvent(_),C=null)}),s(i,"keyup",function(_){l[_.keyCode]=null}),l||(e(),s(window,"focus",e))}};function e(){l=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!u.isOldIE){var r=1;b.nextTick=function(i,o){o=o||window;var s="zero-timeout-message-"+r;b.addListener(o,"message",function g(C){C.data==s&&(b.stopPropagation(C),b.removeListener(o,"message",g),i())}),o.postMessage(s,"*")}}b.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),b.nextFrame?b.nextFrame=b.nextFrame.bind(window):b.nextFrame=function(i){setTimeout(i,17)}});ace.define("ace/lib/lang",["require","exports","module"],function(p,b,h){"use strict";b.last=function(l){return l[l.length-1]},b.stringReverse=function(l){return l.split("").reverse().join("")},b.stringRepeat=function(l,a){for(var n="";a>0;)a&1&&(n+=l),(a>>=1)&&(l+=l);return n};var c=/^\s\s*/,u=/\s\s*$/;b.stringTrimLeft=function(l){return l.replace(c,"")},b.stringTrimRight=function(l){return l.replace(u,"")},b.copyObject=function(l){var a={};for(var n in l)a[n]=l[n];return a},b.copyArray=function(l){for(var a=[],n=0,t=l.length;n_.length?V=V.substr(9):V.substr(0,4)==_.substr(0,4)?V=V.substr(4,V.length-_.length+1):V.charAt(V.length-1)==_.charAt(0)&&(V=V.slice(0,-1)),V==_.charAt(0)||V.charAt(V.length-1)==_.charAt(0)&&(V=V.slice(0,-1)),V&&s.onTextInput(V)),y&&(y=!1),O&&(O=!1))},H=function(V){if(!d){var Q=C.value;I(Q),S()}},N=function(V,Q,te){var ye=V.clipboardData||window.clipboardData;if(!(!ye||e)){var $e=r||te?"Text":"text/plain";try{return Q?ye.setData($e,Q)!==!1:ye.getData($e)}catch(Fe){if(!te)return N(Fe,Q,!0)}}},L=function(V,Q){var te=s.getCopyText();if(!te)return c.preventDefault(V);N(V,te)?(u.isIOS&&(m=Q,C.value=` + aa`+te+`a a +`,C.setSelectionRange(4,4+te.length),y={value:te}),Q?s.onCut():s.onCopy(),u.isIOS||c.preventDefault(V)):(y=!0,C.value=te,C.select(),setTimeout(function(){y=!1,S(),x(),Q?s.onCut():s.onCopy()}))},U=function(V){L(V,!0)},T=function(V){L(V,!1)},M=function(V){var Q=N(V);typeof Q=="string"?(Q&&s.onPaste(Q,V),u.isIE&&setTimeout(x),c.preventDefault(V)):(C.value="",w=!0)};c.addCommandKeyListener(C,s.onCommandKey.bind(s)),c.addListener(C,"select",B),c.addListener(C,"input",H),c.addListener(C,"cut",U),c.addListener(C,"copy",T),c.addListener(C,"paste",M);var k=function(V){d||!s.onCompositionStart||s.$readOnly||(d={},d.canUndo=s.session.$undoManager,s.onCompositionStart(),setTimeout(z,0),s.on("mousedown",P),d.canUndo&&!s.selection.isEmpty()&&(s.insert(""),s.session.markUndoGroup(),s.selection.clearSelection()),s.session.markUndoGroup())},z=function(){if(!(!d||!s.onCompositionUpdate||s.$readOnly)){var V=C.value.replace(/\x01/g,"");if(d.lastValue!==V&&(s.onCompositionUpdate(V),d.lastValue&&s.undo(),d.canUndo&&(d.lastValue=V),d.lastValue)){var Q=s.selection.getRange();s.insert(d.lastValue),s.session.markUndoGroup(),d.range=s.selection.getRange(),s.selection.setRange(Q),s.selection.clearSelection()}}},P=function(V){if(!(!s.onCompositionEnd||s.$readOnly)){var Q=d;d=!1;var te=setTimeout(function(){te=null;var $e=C.value.replace(/\x01/g,"");d||($e==Q.lastValue?S():!Q.lastValue&&$e&&(S(),I($e)))});D=function(Fe){return te&&clearTimeout(te),Fe=Fe.replace(/\x01/g,""),Fe==Q.lastValue?"":(Q.lastValue&&te&&s.undo(),Fe)},s.onCompositionEnd(),s.removeListener("mousedown",P),V.type=="compositionend"&&Q.range&&s.selection.setRange(Q.range);var ye=!!u.isChrome&&u.isChrome>=53||!!u.isWebKit&&u.isWebKit>=603;ye&&H()}},j=a.delayedCall(z,50);c.addListener(C,"compositionstart",k),u.isGecko?c.addListener(C,"text",function(){j.schedule()}):(c.addListener(C,"keyup",function(){j.schedule()}),c.addListener(C,"keydown",function(){j.schedule()})),c.addListener(C,"compositionend",P),this.getElement=function(){return C},this.setReadOnly=function(V){C.readOnly=V},this.onContextMenu=function(V){O=!0,x(s.selection.isEmpty()),s._emit("nativecontextmenu",{target:s,domEvent:V}),this.moveToMouse(V,!0)},this.moveToMouse=function(V,Q){v||(v=C.style.cssText),C.style.cssText=(Q?"z-index:100000;":"")+"height:"+C.style.height+";"+(u.isIE?"opacity:0.1;":"");var te=s.container.getBoundingClientRect(),ye=l.computedStyle(s.container),$e=te.top+(parseInt(ye.borderTopWidth)||0),Fe=te.left+(parseInt(te.borderLeftWidth)||0),Ce=te.bottom-$e-C.clientHeight-2,Be=function(Je){C.style.left=Je.clientX-Fe-2+"px",C.style.top=Math.min(Je.clientY-$e-2,Ce)+"px"};Be(V),V.type=="mousedown"&&(s.renderer.$keepTextAreaAtCursor&&(s.renderer.$keepTextAreaAtCursor=null),clearTimeout(R),u.isWin&&c.capture(s.container,Be,W))},this.onContextMenuClose=W;var R;function W(){clearTimeout(R),R=setTimeout(function(){v&&(C.style.cssText=v,v=""),s.renderer.$keepTextAreaAtCursor==null&&(s.renderer.$keepTextAreaAtCursor=!0,s.renderer.$moveTextAreaToCursor())},0)}var X=function(V){s.textInput.onContextMenu(V),W()};if(c.addListener(C,"mouseup",X),c.addListener(C,"mousedown",function(V){V.preventDefault(),W()}),c.addListener(s.renderer.scroller,"contextmenu",X),c.addListener(C,"contextmenu",X),u.isIOS){var Y=null,oe=!1;o.addEventListener("keydown",function(V){Y&&clearTimeout(Y),oe=!0}),o.addEventListener("keyup",function(V){Y=setTimeout(function(){oe=!1},100)});var ae=function(V){if(document.activeElement===C&&!oe){if(m)return setTimeout(function(){m=!1},100);var Q=C.selectionStart,te=C.selectionEnd;if(C.setSelectionRange(4,5),Q==te)switch(Q){case 0:s.onCommandKey(null,0,n.up);break;case 1:s.onCommandKey(null,0,n.home);break;case 2:s.onCommandKey(null,t.option,n.left);break;case 4:s.onCommandKey(null,0,n.left);break;case 5:s.onCommandKey(null,0,n.right);break;case 7:s.onCommandKey(null,t.option,n.right);break;case 8:s.onCommandKey(null,0,n.end);break;case 9:s.onCommandKey(null,0,n.down);break}else{switch(te){case 6:s.onCommandKey(null,t.shift,n.right);break;case 7:s.onCommandKey(null,t.shift|t.option,n.right);break;case 8:s.onCommandKey(null,t.shift,n.end);break;case 9:s.onCommandKey(null,t.shift,n.down);break}switch(Q){case 0:s.onCommandKey(null,t.shift,n.up);break;case 1:s.onCommandKey(null,t.shift,n.home);break;case 2:s.onCommandKey(null,t.shift|t.option,n.left);break;case 3:s.onCommandKey(null,t.shift,n.left);break}}}};document.addEventListener("selectionchange",ae),s.on("destroy",function(){document.removeEventListener("selectionchange",ae)})}};b.TextInput=i});ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(p,b,h){"use strict";var c=p("../lib/event"),u=p("../lib/useragent"),l=p("../lib/dom"),a=p("../lib/lang"),n=u.isChrome<18,t=u.isIE,e=p("./textinput_ios").TextInput,r=function(i,o){if(u.isIOS)return e.call(this,i,o);var s=l.createElement("textarea");s.className="ace_text-input",s.setAttribute("wrap","off"),s.setAttribute("autocorrect","off"),s.setAttribute("autocapitalize","off"),s.setAttribute("spellcheck",!1),s.style.opacity="0",i.insertBefore(s,i.firstChild);var g="\u2028\u2028",C=!1,_=!1,y=!1,m="",w=!0;try{var d=document.activeElement===s}catch{}c.addListener(s,"blur",function(R){o.onBlur(R),d=!1}),c.addListener(s,"focus",function(R){d=!0,o.onFocus(R),E()}),this.focus=function(){if(m)return s.focus();var R=s.style.top;s.style.position="fixed",s.style.top="0px",s.focus(),setTimeout(function(){s.style.position="",s.style.top=="0px"&&(s.style.top=R)},0)},this.blur=function(){s.blur()},this.isFocused=function(){return d};var v=a.delayedCall(function(){d&&E(w)}),F=a.delayedCall(function(){y||(s.value=g,d&&E())});function E(R){if(!y){if(y=!0,S)var W=0,X=R?0:s.value.length-1;else var W=R?2:1,X=2;try{s.setSelectionRange(W,X)}catch{}y=!1}}function f(){y||(s.value=g,u.isWebKit&&F.schedule())}u.isWebKit||o.addEventListener("changeSelection",function(){o.selection.isEmpty()!=w&&(w=!w,v.schedule())}),f(),d&&o.onFocus();var A=function(R){return R.selectionStart===0&&R.selectionEnd===R.value.length},x=function(R){C?C=!1:A(s)?(o.selectAll(),E()):S&&E(o.selection.isEmpty())},S=null;this.setInputHandler=function(R){S=R},this.getInputHandler=function(){return S};var $=!1,B=function(R){S&&(R=S(R),S=null),_?(E(),R&&o.onPaste(R),_=!1):R==g.charAt(0)?$?o.execCommand("del",{source:"ace"}):o.execCommand("backspace",{source:"ace"}):(R.substring(0,2)==g?R=R.substr(2):R.charAt(0)==g.charAt(0)?R=R.substr(1):R.charAt(R.length-1)==g.charAt(0)&&(R=R.slice(0,-1)),R.charAt(R.length-1)==g.charAt(0)&&(R=R.slice(0,-1)),R&&o.onTextInput(R)),$&&($=!1)},D=function(R){if(!y){var W=s.value;B(W),f()}},O=function(R,W,X){var Y=R.clipboardData||window.clipboardData;if(!(!Y||n)){var oe=t||X?"Text":"text/plain";try{return W?Y.setData(oe,W)!==!1:Y.getData(oe)}catch(ae){if(!X)return O(ae,W,!0)}}},I=function(R,W){var X=o.getCopyText();if(!X)return c.preventDefault(R);O(R,X)?(W?o.onCut():o.onCopy(),c.preventDefault(R)):(C=!0,s.value=X,s.select(),setTimeout(function(){C=!1,f(),E(),W?o.onCut():o.onCopy()}))},H=function(R){I(R,!0)},N=function(R){I(R,!1)},L=function(R){var W=O(R);typeof W=="string"?(W&&o.onPaste(W,R),u.isIE&&setTimeout(E),c.preventDefault(R)):(s.value="",_=!0)};c.addCommandKeyListener(s,o.onCommandKey.bind(o)),c.addListener(s,"select",x),c.addListener(s,"input",D),c.addListener(s,"cut",H),c.addListener(s,"copy",N),c.addListener(s,"paste",L),(!("oncut"in s)||!("oncopy"in s)||!("onpaste"in s))&&c.addListener(i,"keydown",function(R){if(!(u.isMac&&!R.metaKey||!R.ctrlKey))switch(R.keyCode){case 67:N(R);break;case 86:L(R);break;case 88:H(R);break}});var U=function(R){y||!o.onCompositionStart||o.$readOnly||(y={},y.canUndo=o.session.$undoManager,o.onCompositionStart(),setTimeout(T,0),o.on("mousedown",M),y.canUndo&&!o.selection.isEmpty()&&(o.insert(""),o.session.markUndoGroup(),o.selection.clearSelection()),o.session.markUndoGroup())},T=function(){if(!(!y||!o.onCompositionUpdate||o.$readOnly)){var R=s.value.replace(/\u2028/g,"");if(y.lastValue!==R&&(o.onCompositionUpdate(R),y.lastValue&&o.undo(),y.canUndo&&(y.lastValue=R),y.lastValue)){var W=o.selection.getRange();o.insert(y.lastValue),o.session.markUndoGroup(),y.range=o.selection.getRange(),o.selection.setRange(W),o.selection.clearSelection()}}},M=function(R){if(!(!o.onCompositionEnd||o.$readOnly)){var W=y;y=!1;var X=setTimeout(function(){X=null;var oe=s.value.replace(/\u2028/g,"");y||(oe==W.lastValue?f():!W.lastValue&&oe&&(f(),B(oe)))});S=function(ae){return X&&clearTimeout(X),ae=ae.replace(/\u2028/g,""),ae==W.lastValue?"":(W.lastValue&&X&&o.undo(),ae)},o.onCompositionEnd(),o.removeListener("mousedown",M),R.type=="compositionend"&&W.range&&o.selection.setRange(W.range);var Y=!!u.isChrome&&u.isChrome>=53||!!u.isWebKit&&u.isWebKit>=603;Y&&D()}},k=a.delayedCall(T,50);c.addListener(s,"compositionstart",U),u.isGecko?c.addListener(s,"text",function(){k.schedule()}):(c.addListener(s,"keyup",function(){k.schedule()}),c.addListener(s,"keydown",function(){k.schedule()})),c.addListener(s,"compositionend",M),this.getElement=function(){return s},this.setReadOnly=function(R){s.readOnly=R},this.onContextMenu=function(R){$=!0,E(o.selection.isEmpty()),o._emit("nativecontextmenu",{target:o,domEvent:R}),this.moveToMouse(R,!0)},this.moveToMouse=function(R,W){m||(m=s.style.cssText),s.style.cssText=(W?"z-index:100000;":"")+"height:"+s.style.height+";"+(u.isIE?"opacity:0.1;":"");var X=o.container.getBoundingClientRect(),Y=l.computedStyle(o.container),oe=X.top+(parseInt(Y.borderTopWidth)||0),ae=X.left+(parseInt(X.borderLeftWidth)||0),V=X.bottom-oe-s.clientHeight-2,Q=function(te){s.style.left=te.clientX-ae-2+"px",s.style.top=Math.min(te.clientY-oe-2,V)+"px"};Q(R),R.type=="mousedown"&&(o.renderer.$keepTextAreaAtCursor&&(o.renderer.$keepTextAreaAtCursor=null),clearTimeout(z),u.isWin&&c.capture(o.container,Q,P))},this.onContextMenuClose=P;var z;function P(){clearTimeout(z),z=setTimeout(function(){m&&(s.style.cssText=m,m=""),o.renderer.$keepTextAreaAtCursor==null&&(o.renderer.$keepTextAreaAtCursor=!0,o.renderer.$moveTextAreaToCursor())},0)}var j=function(R){o.textInput.onContextMenu(R),P()};c.addListener(s,"mouseup",j),c.addListener(s,"mousedown",function(R){R.preventDefault(),P()}),c.addListener(o.renderer.scroller,"contextmenu",j),c.addListener(s,"contextmenu",j)};b.TextInput=r});ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("../lib/dom"),u=p("../lib/event"),l=p("../lib/useragent"),a=0,n=250;function t(i){i.$clickSelection=null;var o=i.editor;o.setDefaultHandler("mousedown",this.onMouseDown.bind(i)),o.setDefaultHandler("dblclick",this.onDoubleClick.bind(i)),o.setDefaultHandler("tripleclick",this.onTripleClick.bind(i)),o.setDefaultHandler("quadclick",this.onQuadClick.bind(i)),o.setDefaultHandler("mousewheel",this.onMouseWheel.bind(i)),o.setDefaultHandler("touchmove",this.onTouchMove.bind(i));var s=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];s.forEach(function(g){i[g]=this[g]},this),i.selectByLines=this.extendSelectionBy.bind(i,"getLineRange"),i.selectByWords=this.extendSelectionBy.bind(i,"getWordRange")}(function(){this.onMouseDown=function(i){var o=i.inSelection(),s=i.getDocumentPosition();this.mousedownEvent=i;var g=this.editor,C=i.getButton();if(C!==0){var _=g.getSelectionRange(),y=_.isEmpty();g.$blockScrolling++,(y||C==1)&&g.selection.moveToPosition(s),g.$blockScrolling--,C==2&&(g.textInput.onContextMenu(i.domEvent),l.isMozilla||i.preventDefault());return}if(this.mousedownEvent.time=Date.now(),o&&!g.isFocused()&&(g.focus(),this.$focusTimout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(i);return}return this.captureMouse(i),this.startSelect(s,i.domEvent._clicks>1),i.preventDefault()},this.startSelect=function(i,o){i=i||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var s=this.editor;s.$blockScrolling++,this.mousedownEvent.getShiftKey()?s.selection.selectToPosition(i):o||s.selection.moveToPosition(i),o||this.select(),s.renderer.scroller.setCapture&&s.renderer.scroller.setCapture(),s.setStyle("ace_selecting"),this.setState("select"),s.$blockScrolling--},this.select=function(){var i,o=this.editor,s=o.renderer.screenToTextCoordinates(this.x,this.y);if(o.$blockScrolling++,this.$clickSelection){var g=this.$clickSelection.comparePoint(s);if(g==-1)i=this.$clickSelection.end;else if(g==1)i=this.$clickSelection.start;else{var C=r(this.$clickSelection,s);s=C.cursor,i=C.anchor}o.selection.setSelectionAnchor(i.row,i.column)}o.selection.selectToPosition(s),o.$blockScrolling--,o.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(i){var o,s=this.editor,g=s.renderer.screenToTextCoordinates(this.x,this.y),C=s.selection[i](g.row,g.column);if(s.$blockScrolling++,this.$clickSelection){var _=this.$clickSelection.comparePoint(C.start),y=this.$clickSelection.comparePoint(C.end);if(_==-1&&y<=0)o=this.$clickSelection.end,(C.end.row!=g.row||C.end.column!=g.column)&&(g=C.start);else if(y==1&&_>=0)o=this.$clickSelection.start,(C.start.row!=g.row||C.start.column!=g.column)&&(g=C.end);else if(_==-1&&y==1)g=C.end,o=C.start;else{var m=r(this.$clickSelection,g);g=m.cursor,o=m.anchor}s.selection.setSelectionAnchor(o.row,o.column)}s.selection.selectToPosition(g),s.$blockScrolling--,s.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var i=e(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),o=Date.now();(i>a||o-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(i){var o=i.getDocumentPosition(),s=this.editor,g=s.session,C=g.getBracketRange(o);C?(C.isEmpty()&&(C.start.column--,C.end.column++),this.setState("select")):(C=s.selection.getWordRange(o.row,o.column),this.setState("selectByWords")),this.$clickSelection=C,this.select()},this.onTripleClick=function(i){var o=i.getDocumentPosition(),s=this.editor;this.setState("selectByLines");var g=s.getSelectionRange();g.isMultiLine()&&g.contains(o.row,o.column)?(this.$clickSelection=s.selection.getLineRange(g.start.row),this.$clickSelection.end=s.selection.getLineRange(g.end.row).end):this.$clickSelection=s.selection.getLineRange(o.row),this.select()},this.onQuadClick=function(i){var o=this.editor;o.selectAll(),this.$clickSelection=o.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(i){if(!i.getAccelKey()){i.getShiftKey()&&i.wheelY&&!i.wheelX&&(i.wheelX=i.wheelY,i.wheelY=0);var o=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var s=this.$lastScroll,g=i.domEvent.timeStamp,C=g-s.t,_=i.wheelX/C,y=i.wheelY/C;C=1&&o.renderer.isScrollableBy(i.wheelX*i.speed,0)&&(w=!0),m<=1&&o.renderer.isScrollableBy(0,i.wheelY*i.speed)&&(w=!0),w)s.allowed=g;else if(g-s.allowedr.session.documentToScreenRow(E.row,E.column))return y()}if(C!=d)if(C=d.text.join("
"),o.setHtml(C),o.show(),r._signal("showGutterTooltip",o),r.on("mousewheel",y),e.$tooltipFollowsMouse)m(g);else{var f=g.domEvent.target,A=f.getBoundingClientRect(),x=o.getElement().style;x.left=A.right+"px",x.top=A.bottom+"px"}}function y(){s&&(s=clearTimeout(s)),C&&(o.hide(),C=null,r._signal("hideGutterTooltip",o),r.removeEventListener("mousewheel",y))}function m(w){o.setPosition(w.x,w.y)}e.editor.setDefaultHandler("guttermousemove",function(w){var d=w.domEvent.target||w.domEvent.srcElement;if(c.hasCssClass(d,"ace_fold-widget"))return y();C&&e.$tooltipFollowsMouse&&m(w),g=w,!s&&(s=setTimeout(function(){s=null,g&&!e.isMousePressed?_():y()},50))}),l.addListener(r.renderer.$gutter,"mouseout",function(w){g=null,!(!C||s)&&(s=setTimeout(function(){s=null,y()},50))}),r.on("changeSession",y)}function t(e){a.call(this,e)}u.inherits(t,a),function(){this.setPosition=function(e,r){var i=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,s=this.getWidth(),g=this.getHeight();e+=15,r+=15,e+s>i&&(e-=e+s-i),r+g>o&&(r-=20+g),a.prototype.setPosition.call(this,e,r)}}.call(t.prototype),b.GutterHandler=n});ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("../lib/event"),u=p("../lib/useragent"),l=b.MouseEvent=function(a,n){this.domEvent=a,this.editor=n,this.x=this.clientX=a.clientX,this.y=this.clientY=a.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){c.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){c.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var a=this.editor,n=a.getSelectionRange();if(n.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=n.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return c.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=u.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(l.prototype)});ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("../lib/dom"),u=p("../lib/event"),l=p("../lib/useragent"),a=200,n=200,t=5;function e(i){var o=i.editor,s=c.createElement("img");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",l.isOpera&&(s.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(T){i[T]=this[T]},this),o.addEventListener("mousedown",this.onMouseDown.bind(i));var C=o.container,_,y,m,w,d,v,F=0,E,f,A,x,S;this.onDragStart=function(T){if(this.cancelDrag||!C.draggable){var M=this;return setTimeout(function(){M.startSelect(),M.captureMouse(T)},0),T.preventDefault()}d=o.getSelectionRange();var k=T.dataTransfer;k.effectAllowed=o.getReadOnly()?"copy":"copyMove",l.isOpera&&(o.container.appendChild(s),s.scrollTop=0),k.setDragImage&&k.setDragImage(s,0,0),l.isOpera&&o.container.removeChild(s),k.clearData(),k.setData("Text",o.session.getTextRange()),f=!0,this.setState("drag")},this.onDragEnd=function(T){if(C.draggable=!1,f=!1,this.setState(null),!o.getReadOnly()){var M=T.dataTransfer.dropEffect;!E&&M=="move"&&o.session.remove(o.getSelectionRange()),o.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(T){if(!(o.getReadOnly()||!L(T.dataTransfer)))return y=T.clientX,m=T.clientY,_||O(),F++,T.dataTransfer.dropEffect=E=U(T),u.preventDefault(T)},this.onDragOver=function(T){if(!(o.getReadOnly()||!L(T.dataTransfer)))return y=T.clientX,m=T.clientY,_||(O(),F++),H!==null&&(H=null),T.dataTransfer.dropEffect=E=U(T),u.preventDefault(T)},this.onDragLeave=function(T){if(F--,F<=0&&_)return I(),E=null,u.preventDefault(T)},this.onDrop=function(T){if(v){var M=T.dataTransfer;if(f)switch(E){case"move":d.contains(v.row,v.column)?d={start:v,end:v}:d=o.moveText(d,v);break;case"copy":d=o.moveText(d,v,!0);break}else{var k=M.getData("Text");d={start:v,end:o.session.insert(v,k)},o.focus(),E=null}return I(),u.preventDefault(T)}},u.addListener(C,"dragstart",this.onDragStart.bind(i)),u.addListener(C,"dragend",this.onDragEnd.bind(i)),u.addListener(C,"dragenter",this.onDragEnter.bind(i)),u.addListener(C,"dragover",this.onDragOver.bind(i)),u.addListener(C,"dragleave",this.onDragLeave.bind(i)),u.addListener(C,"drop",this.onDrop.bind(i));function $(T,M){var k=Date.now(),z=!M||T.row!=M.row,P=!M||T.column!=M.column;if(!x||z||P)o.$blockScrolling+=1,o.moveCursorToPosition(T),o.$blockScrolling-=1,x=k,S={x:y,y:m};else{var j=r(S.x,S.y,y,m);j>t?x=null:k-x>=n&&(o.renderer.scrollCursorIntoView(),x=null)}}function B(T,M){var k=Date.now(),z=o.renderer.layerConfig.lineHeight,P=o.renderer.layerConfig.characterWidth,j=o.renderer.scroller.getBoundingClientRect(),R={x:{left:y-j.left,right:j.right-y},y:{top:m-j.top,bottom:j.bottom-m}},W=Math.min(R.x.left,R.x.right),X=Math.min(R.y.top,R.y.bottom),Y={row:T.row,column:T.column};W/P<=2&&(Y.column+=R.x.left=a&&o.renderer.scrollCursorIntoView(Y):A=k:A=null}function D(){var T=v;v=o.renderer.screenToTextCoordinates(y,m),$(v,T),B(v,T)}function O(){d=o.selection.toOrientedRange(),_=o.session.addMarker(d,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),D(),w=setInterval(D,20),F=0,u.addListener(document,"mousemove",N)}function I(){clearInterval(w),o.session.removeMarker(_),_=null,o.$blockScrolling+=1,o.selection.fromOrientedRange(d),o.$blockScrolling-=1,o.isFocused()&&!f&&o.renderer.$cursorLayer.setBlinking(!o.getReadOnly()),d=null,v=null,F=0,A=null,x=null,u.removeListener(document,"mousemove",N)}var H=null;function N(){H==null&&(H=setTimeout(function(){H!=null&&_&&I()},20))}function L(T){var M=T.types;return!M||Array.prototype.some.call(M,function(k){return k=="text/plain"||k=="Text"})}function U(T){var M=["copy","copymove","all","uninitialized"],k=["move","copymove","linkmove","all","uninitialized"],z=l.isMac?T.altKey:T.ctrlKey,P="uninitialized";try{P=T.dataTransfer.effectAllowed.toLowerCase()}catch{}var j="none";return z&&M.indexOf(P)>=0?j="copy":k.indexOf(P)>=0?j="move":M.indexOf(P)>=0&&(j="copy"),j}}(function(){this.dragWait=function(){var i=Date.now()-this.mousedownEvent.time;i>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var i=this.editor.container;i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(i){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var i=this.editor,o=i.container;o.draggable=!0,i.renderer.$cursorLayer.setBlinking(!1),i.setStyle("ace_dragging");var s=l.isWin?"default":"move";i.renderer.setCursorStyle(s),this.setState("dragReady")},this.onMouseDrag=function(i){var o=this.editor.container;if(l.isIE&&this.state=="dragReady"){var s=r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>3&&o.dragDrop()}if(this.state==="dragWait"){var s=r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(i){if(this.$dragEnabled){this.mousedownEvent=i;var o=this.editor,s=i.inSelection(),g=i.getButton(),C=i.domEvent.detail||1;if(C===1&&g===0&&s){if(i.editor.inMultiSelectMode&&(i.getAccelKey()||i.getShiftKey()))return;this.mousedownEvent.time=Date.now();var _=i.domEvent.target||i.domEvent.srcElement;if("unselectable"in _&&(_.unselectable="on"),o.getDragDelay()){if(l.isWebKit){this.cancelDrag=!0;var y=o.container;y.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(i,this.onMouseDrag.bind(this)),i.defaultPrevented=!0}}}}).call(e.prototype);function r(i,o,s,g){return Math.sqrt(Math.pow(s-i,2)+Math.pow(g-o,2))}b.DragdropHandler=e});ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(p,b,h){"use strict";var c=p("./dom");b.get=function(u,l){var a=new XMLHttpRequest;a.open("GET",u,!0),a.onreadystatechange=function(){a.readyState===4&&l(a.responseText)},a.send(null)},b.loadScript=function(u,l){var a=c.getDocumentHead(),n=document.createElement("script");n.src=u,a.appendChild(n),n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||n.readyState=="loaded"||n.readyState=="complete")&&(n=n.onload=n.onreadystatechange=null,e||l())}},b.qualifyURL=function(u){var l=document.createElement("a");return l.href=u,l.href}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(p,b,h){"use strict";var c={},u=function(){this.propagationStopped=!0},l=function(){this.defaultPrevented=!0};c._emit=c._dispatchEvent=function(a,n){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var t=this._eventRegistry[a]||[],e=this._defaultHandlers[a];if(!(!t.length&&!e)){(typeof n!="object"||!n)&&(n={}),n.type||(n.type=a),n.stopPropagation||(n.stopPropagation=u),n.preventDefault||(n.preventDefault=l),t=t.slice();for(var r=0;r1&&(C=s[s.length-2]);var y=t[o+"Path"];return y==null?y=t.basePath:g=="/"&&(o=g=""),y&&y.slice(-1)!="/"&&(y+="/"),y+o+g+C+this.get("suffix")},b.setModuleUrl=function(i,o){return t.$moduleUrls[i]=o},b.$loading={},b.loadModule=function(i,o){var s,g;Array.isArray(i)&&(g=i[0],i=i[1]);try{s=p(i)}catch{}if(s&&!b.$loading[i])return o&&o(s);if(b.$loading[i]||(b.$loading[i]=[]),b.$loading[i].push(o),!(b.$loading[i].length>1)){var C=function(){p([i],function(_){b._emit("load.module",{name:i,module:_});var y=b.$loading[i];b.$loading[i]=null,y.forEach(function(m){m&&m(_)})})};if(!b.get("packaged"))return C();l.loadScript(b.moduleUrl(i,g),C)}},e(!0);function e(i){if(!(!n||!n.document)){t.packaged=i||p.packaged||h.packaged||n.define&&define.packaged;for(var o={},s="",g=document.currentScript||document._currentScript,C=g&&g.ownerDocument||document,_=C.getElementsByTagName("script"),y=0;y<_.length;y++){var m=_[y],w=m.src||m.getAttribute("src");if(w){for(var d=m.attributes,v=0,F=d.length;v0)if(ye==16){for(Ce=Fe;Ce-1){for(Ce=Fe;Ce=0&&Y[nt]==A;nt--)W[nt]=l}}}function k(R,W,X){if(!(a=R){for(ae=oe+1;ae=R;)ae++;for(V=oe,Q=ae-1;V=W.length||(ae=X[Y-1])!=w&&ae!=d||(V=W[Y+1])!=w&&V!=d?v:(n&&(V=d),V==ae?V:v);case S:return ae=Y>0?X[Y-1]:F,ae==w&&Y+10&&X[Y-1]==w)return w;if(n)return v;for(te=Y+1,Q=W.length;te=1425&&ye<=2303||ye==64286;if(ae=W[te],$e&&(ae==m||ae==f))return m}return Y<1||(ae=W[Y-1])==F?v:X[Y-1];case F:return n=!1,e=!0,l;case E:return r=!0,v;case D:case O:case H:case N:case I:n=!1;case L:return v}}function P(R){var W=R.charCodeAt(0),X=W>>8;return X==0?W>191?y:U[W]:X==5?/[\u0591-\u05f4]/.test(R)?m:y:X==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(R)?B:/[\u0660-\u0669\u066b-\u066c]/.test(R)?d:W==1642?$:/[\u06f0-\u06f9]/.test(R)?w:f:X==32&&W<=8287?T[W&255]:X==254&&W>=65136?f:v}function j(R){return R>="\u064B"&&R<="\u0655"}b.L=y,b.R=m,b.EN=w,b.ON_R=3,b.AN=4,b.R_H=5,b.B=6,b.DOT="\xB7",b.doBidiReorder=function(R,W,X){if(R.length<2)return{};var Y=R.split(""),oe=new Array(Y.length),ae=new Array(Y.length),V=[];l=X?_:C,M(Y,V,Y.length,W);for(var Q=0;Qf&&W[Q]0&&Y[Q-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(Y[Q])&&(V[Q-1]=V[Q]=b.R_H,Q++);Y[Y.length-1]===b.DOT&&(V[Y.length-1]=b.B);for(var Q=0;Q=0&&(t=this.session.$docRowCache[r])}return t},this.getSplitIndex=function(){var t=0,e=this.session.$screenRowCache;if(e.length)for(var r,i=this.session.$getRowCacheIndex(e,this.currentRow);this.currentRow-t>0&&(r=this.session.$getRowCacheIndex(e,this.currentRow-t-1),r===i);)i=r,t++;return t},this.updateRowLine=function(t,e){if(t===void 0&&(t=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=t===this.session.getLength()-1,this.line=this.session.getLine(t),this.session.$useWrapMode){var r=this.session.$wrapData[t];r&&(e===void 0&&(e=this.getSplitIndex()),e>0&&r.length?(this.wrapIndent=r.indent,this.line=e0?t-1:0,this.bidiMap),r=this.bidiMap.bidiLevels,i=0;t===0&&r[e]%2!==0&&e++;for(var o=0;o=C&&d<_,y&&!m?w=s:!y&&m&&g.push({left:w,width:s-w}),s+=this.charWidths[o],m=y;return y&&v===i.length&&g.push({left:w,width:s-w}),g},this.offsetToCol=function(r){var e=0,r=Math.max(r,0),i=0,o=0,s=this.bidiMap.bidiLevels,g=this.charWidths[s[o]];for(this.wrapIndent&&(r-=this.wrapIndent*this.charWidths[c.L]);r>i+g/2;){if(i+=g,o===s.length-1){g=0;break}g=this.charWidths[s[++o]]}return o>0&&s[o-1]%2!==0&&s[o]%2===0?(r0&&s[o-1]%2===0&&s[o]%2!==0?e=1+(r>i?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===s.length-1&&g===0&&s[o-1]%2===0||!this.isRtlDir&&o===0&&s[o]%2!==0?e=1+this.bidiMap.logicalFromVisual[o]:(o>0&&s[o-1]%2!==0&&g!==0&&o--,e=this.bidiMap.logicalFromVisual[o]),e+this.wrapIndent}}).call(n.prototype),b.BidiHandler=n});ace.define("ace/range",["require","exports","module"],function(p,b,h){"use strict";var c=function(l,a){return l.row-a.row||l.column-a.column},u=function(l,a,n,t){this.start={row:l,column:a},this.end={row:n,column:t}};(function(){this.isEqual=function(l){return this.start.row===l.start.row&&this.end.row===l.end.row&&this.start.column===l.start.column&&this.end.column===l.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(l,a){return this.compare(l,a)==0},this.compareRange=function(l){var a,n=l.end,t=l.start;return a=this.compare(n.row,n.column),a==1?(a=this.compare(t.row,t.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(t.row,t.column),a==-1?-1:a==1?42:0)},this.comparePoint=function(l){return this.compare(l.row,l.column)},this.containsRange=function(l){return this.comparePoint(l.start)==0&&this.comparePoint(l.end)==0},this.intersects=function(l){var a=this.compareRange(l);return a==-1||a==0||a==1},this.isEnd=function(l,a){return this.end.row==l&&this.end.column==a},this.isStart=function(l,a){return this.start.row==l&&this.start.column==a},this.setStart=function(l,a){typeof l=="object"?(this.start.column=l.column,this.start.row=l.row):(this.start.row=l,this.start.column=a)},this.setEnd=function(l,a){typeof l=="object"?(this.end.column=l.column,this.end.row=l.row):(this.end.row=l,this.end.column=a)},this.inside=function(l,a){return this.compare(l,a)==0?!(this.isEnd(l,a)||this.isStart(l,a)):!1},this.insideStart=function(l,a){return this.compare(l,a)==0?!this.isEnd(l,a):!1},this.insideEnd=function(l,a){return this.compare(l,a)==0?!this.isStart(l,a):!1},this.compare=function(l,a){return!this.isMultiLine()&&l===this.start.row?athis.end.column?1:0:lthis.end.row?1:this.start.row===l?a>=this.start.column?0:-1:this.end.row===l?a<=this.end.column?0:1:0},this.compareStart=function(l,a){return this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},this.compareEnd=function(l,a){return this.end.row==l&&this.end.column==a?1:this.compare(l,a)},this.compareInside=function(l,a){return this.end.row==l&&this.end.column==a?1:this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},this.clipRows=function(l,a){if(this.end.row>a)var n={row:a+1,column:0};else if(this.end.rowa)var t={row:a+1,column:0};else if(this.start.rowe.row||t.row==e.row&&t.column>e.column},this.getRange=function(){var t=this.anchor,e=this.lead;return this.isEmpty()?a.fromPoints(e,e):this.isBackwards()?a.fromPoints(e,t):a.fromPoints(t,e)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var t=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(t,this.doc.getLine(t).length)},this.setRange=this.setSelectionRange=function(t,e){e?(this.setSelectionAnchor(t.end.row,t.end.column),this.selectTo(t.start.row,t.start.column)):(this.setSelectionAnchor(t.start.row,t.start.column),this.selectTo(t.end.row,t.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(t){var e=this.lead;this.$isEmpty&&this.setSelectionAnchor(e.row,e.column),t.call(this)},this.selectTo=function(t,e){this.$moveSelection(function(){this.moveCursorTo(t,e)})},this.selectToPosition=function(t){this.$moveSelection(function(){this.moveCursorToPosition(t)})},this.moveTo=function(t,e){this.clearSelection(),this.moveCursorTo(t,e)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,e){if(typeof e>"u"){var r=t||this.lead;t=r.row,e=r.column}return this.session.getWordRange(t,e)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),e=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(e)},this.getLineRange=function(t,e){var r=typeof t=="number"?t:this.lead.row,i,o=this.session.getFoldLine(r);return o?(r=o.start.row,i=o.end.row):i=r,e===!0?new a(r,0,i,this.session.getLine(i).length):new a(r,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,e,r){var i=t.column,o=t.column+e;return r<0&&(i=t.column-e,o=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(i,o).split(" ").length-1==e},this.moveCursorLeft=function(){var t=this.lead.getPosition(),e;if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(t.column===0)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var r=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,r,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-r):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t=this.lead.getPosition(),e;if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(e.column=i)}}this.moveCursorTo(e.row,e.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,e=this.doc.getLine(t).length;this.moveCursorTo(t,e)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,e=this.lead.column,r=this.doc.getLine(t),i=r.substring(e),o;this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var s=this.session.getFoldAt(t,e,1);if(s){this.moveCursorTo(s.end.row,s.end.column);return}if((o=this.session.nonTokenRe.exec(i))&&(e+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=r.substring(e)),e>=r.length){this.moveCursorTo(t,r.length),this.moveCursorRight(),t0&&this.moveCursorWordLeft();return}(s=this.session.tokenRe.exec(o))&&(e-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,e)},this.$shortWordEndIndex=function(t){var e,r=0,i,o=/\s/,s=this.session.tokenRe;if(s.lastIndex=0,e=this.session.tokenRe.exec(t))r=this.session.tokenRe.lastIndex;else{for(;(i=t[r])&&o.test(i);)r++;if(r<1){for(s.lastIndex=0;(i=t[r])&&!s.test(i);)if(s.lastIndex=0,r++,o.test(i))if(r>2){r--;break}else{for(;(i=t[r])&&o.test(i);)r++;if(r>2)break}}}return s.lastIndex=0,r},this.moveCursorShortWordRight=function(){var t=this.lead.row,e=this.lead.column,r=this.doc.getLine(t),i=r.substring(e),o=this.session.getFoldAt(t,e,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(e==r.length){var s=this.doc.getLength();do t++,i=this.doc.getLine(t);while(t0&&/^\s*$/.test(i));e=i.length,/\s+$/.test(i)||(i="")}var o=u.stringReverse(i),s=this.$shortWordEndIndex(o);return this.moveCursorTo(t,e-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,e){var r=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i;e===0&&(t!==0&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column);var o=this.session.screenToDocumentPosition(r.row+t,r.column,i);t!==0&&e===0&&o.row===this.lead.row&&o.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[o.row]&&(o.row>0||t>0)&&o.row++,this.moveCursorTo(o.row,o.column+e,e===0)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,e,r){var i=this.session.getFoldAt(t,e,1);i&&(t=i.start.row,e=i.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(o.charAt(e))&&o.charAt(e-1)&&(this.lead.row==t&&this.lead.column==e+1?e=e-1:e=e+1),this.lead.setPosition(t,e),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,e,r){var i=this.session.screenToDocumentPosition(t,e);this.moveCursorTo(i.row,i.column,r)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var e=this.getRange();return t?(t.start.column=e.start.column,t.start.row=e.start.row,t.end.column=e.end.column,t.end.row=e.end.row):t=e,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var e=this.getCursor();try{t(this);var r=this.getCursor();return a.fromPoints(e,r)}catch{return a.fromPoints(e,e)}finally{this.moveCursorToPosition(e)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map(function(e){var r=e.clone();return r.isBackwards=e.cursor==e.start,r});else{var t=this.getRange();t.isBackwards=this.isBackwards()}return t},this.fromJSON=function(t){if(t.start==null)if(this.rangeList){this.toSingleRange(t[0]);for(var e=t.length;e--;){var r=a.fromPoints(t[e].start,t[e].end);t[e].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}else t=t[0];this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var e=this.ranges.length;e--;)if(!this.ranges[e].isEqual(t[e]))return!1;return!0}}).call(n.prototype),b.Selection=n});ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(p,b,h){"use strict";var c=p("./config"),u=2e3,l=function(a){this.states=a,this.regExps={},this.matchMappings={};for(var n in this.states){for(var t=this.states[n],e=[],r=0,i=this.matchMappings[n]={defaultToken:"text"},o="g",s=[],g=0;g1?C.onMatch=this.$applyToken:C.onMatch=C.token),y>1&&(/\\\d/.test(C.regex)?_=C.regex.replace(/\\([0-9]+)/g,function(m,w){return"\\"+(parseInt(w,10)+r+1)}):(y=1,_=this.removeCapturingGroups(C.regex)),!C.splitRegex&&typeof C.token!="string"&&s.push(C)),i[r]=g,r+=y,e.push(_),C.onMatch||(C.onMatch=null)}}e.length||(i[0]=0,e.push("$")),s.forEach(function(m){m.splitRegex=this.createSplitterRegexp(m.regex,o)},this),this.regExps[n]=new RegExp("("+e.join(")|(")+")|($)",o)}};(function(){this.$setMaxTokenCount=function(a){u=a|0},this.$applyToken=function(a){var n=this.splitRegex.exec(a).slice(1),t=this.token.apply(this,n);if(typeof t=="string")return[{type:t,value:a}];for(var e=[],r=0,i=t.length;rC){var F=a.substring(C,v-d.length);y.type==m?y.value+=F:(y.type&&g.push(y),y={type:m,value:F})}for(var E=0;Eu){for(_>2*a.length&&this.reportError("infinite loop with in ace tokenizer",{startState:n,line:a});C1&&t[0]!==e&&t.unshift("#tmp",e),{tokens:g,state:t.length?t:e}},this.reportError=c.reportError}).call(l.prototype),b.Tokenizer=l});ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(p,b,h){"use strict";var c=p("../lib/lang"),u=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(n,t){if(!t){for(var e in n)this.$rules[e]=n[e];return}for(var e in n){for(var r=n[e],i=0;i=this.$rowTokens.length;){if(this.$row+=1,l||(l=this.$session.getLength()),this.$row>=l)return this.$row=l-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var l=this.$rowTokens,a=this.$tokenIndex,n=l[a].start;if(n!==void 0)return n;for(n=0;a>0;)a-=1,n+=l[a].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var l=this.$rowTokens[this.$tokenIndex],a=this.getCurrentTokenColumn();return new c(this.$row,a,this.$row,a+l.value.length)}}).call(u.prototype),b.TokenIterator=u});ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(p,b,h){"use strict";var c=p("../../lib/oop"),u=p("../behaviour").Behaviour,l=p("../../token_iterator").TokenIterator,a=p("../../lib/lang"),n=["text","paren.rparen","punctuation.operator"],t=["text","paren.rparen","punctuation.operator","comment"],e,r={},i={'"':'"',"'":"'"},o=function(C){var _=-1;if(C.multiSelect&&(_=C.selection.index,r.rangeCount!=C.multiSelect.rangeCount&&(r={rangeCount:C.multiSelect.rangeCount})),r[_])return e=r[_];e=r[_]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},s=function(C,_,y,m){var w=C.end.row-C.start.row;return{text:y+_+m,selection:[0,C.start.column+1,w,C.end.column+(w?0:1)]}},g=function(C){this.add("braces","insertion",function(_,y,m,w,d){var v=m.getCursorPosition(),F=w.doc.getLine(v.row);if(d=="{"){o(m);var E=m.getSelectionRange(),f=w.doc.getTextRange(E);if(f!==""&&f!=="{"&&m.getWrapBehavioursEnabled())return s(E,f,"{","}");if(g.isSaneInsertion(m,w))return/[\]\}\)]/.test(F[v.column])||m.inMultiSelectMode||C&&C.braces?(g.recordAutoInsert(m,w,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(m,w,"{"),{text:"{",selection:[1,1]})}else if(d=="}"){o(m);var A=F.substring(v.column,v.column+1);if(A=="}"){var x=w.$findOpeningBracket("}",{column:v.column+1,row:v.row});if(x!==null&&g.isAutoInsertedClosing(v,F,d))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(d==` +`||d==`\r +`){o(m);var S="";g.isMaybeInsertedClosing(v,F)&&(S=a.stringRepeat("}",e.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var A=F.substring(v.column,v.column+1);if(A==="}"){var $=w.findMatchingBracket({row:v.row,column:v.column+1},"}");if(!$)return null;var B=this.$getIndent(w.getLine($.row))}else if(S)var B=this.$getIndent(F);else{g.clearMaybeInsertedClosing();return}var D=B+w.getTabString();return{text:` +`+D+` +`+B+S,selection:[1,D.length,1,D.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(_,y,m,w,d){var v=w.doc.getTextRange(d);if(!d.isMultiLine()&&v=="{"){o(m);var F=w.doc.getLine(d.start.row),E=F.substring(d.end.column,d.end.column+1);if(E=="}")return d.end.column++,d;e.maybeInsertedBrackets--}}),this.add("parens","insertion",function(_,y,m,w,d){if(d=="("){o(m);var v=m.getSelectionRange(),F=w.doc.getTextRange(v);if(F!==""&&m.getWrapBehavioursEnabled())return s(v,F,"(",")");if(g.isSaneInsertion(m,w))return g.recordAutoInsert(m,w,")"),{text:"()",selection:[1,1]}}else if(d==")"){o(m);var E=m.getCursorPosition(),f=w.doc.getLine(E.row),A=f.substring(E.column,E.column+1);if(A==")"){var x=w.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(x!==null&&g.isAutoInsertedClosing(E,f,d))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(_,y,m,w,d){var v=w.doc.getTextRange(d);if(!d.isMultiLine()&&v=="("){o(m);var F=w.doc.getLine(d.start.row),E=F.substring(d.start.column+1,d.start.column+2);if(E==")")return d.end.column++,d}}),this.add("brackets","insertion",function(_,y,m,w,d){if(d=="["){o(m);var v=m.getSelectionRange(),F=w.doc.getTextRange(v);if(F!==""&&m.getWrapBehavioursEnabled())return s(v,F,"[","]");if(g.isSaneInsertion(m,w))return g.recordAutoInsert(m,w,"]"),{text:"[]",selection:[1,1]}}else if(d=="]"){o(m);var E=m.getCursorPosition(),f=w.doc.getLine(E.row),A=f.substring(E.column,E.column+1);if(A=="]"){var x=w.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(x!==null&&g.isAutoInsertedClosing(E,f,d))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(_,y,m,w,d){var v=w.doc.getTextRange(d);if(!d.isMultiLine()&&v=="["){o(m);var F=w.doc.getLine(d.start.row),E=F.substring(d.start.column+1,d.start.column+2);if(E=="]")return d.end.column++,d}}),this.add("string_dquotes","insertion",function(_,y,m,w,d){var v=w.$mode.$quotes||i;if(d.length==1&&v[d]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(d)!=-1)return;o(m);var F=d,E=m.getSelectionRange(),f=w.doc.getTextRange(E);if(f!==""&&(f.length!=1||!v[f])&&m.getWrapBehavioursEnabled())return s(E,f,F,F);if(!f){var A=m.getCursorPosition(),x=w.doc.getLine(A.row),S=x.substring(A.column-1,A.column),$=x.substring(A.column,A.column+1),B=w.getTokenAt(A.row,A.column),D=w.getTokenAt(A.row,A.column+1);if(S=="\\"&&B&&/escape/.test(B.type))return null;var O=B&&/string|escape/.test(B.type),I=!D||/string|escape/.test(D.type),H;if($==F)H=O!==I,H&&/string\.end/.test(D.type)&&(H=!1);else{if(O&&!I||O&&I)return null;var N=w.$mode.tokenRe;N.lastIndex=0;var L=N.test(S);N.lastIndex=0;var U=N.test(S);if(L||U||$&&!/[\s;,.})\]\\]/.test($))return null;H=!0}return{text:H?F+F:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(_,y,m,w,d){var v=w.doc.getTextRange(d);if(!d.isMultiLine()&&(v=='"'||v=="'")){o(m);var F=w.doc.getLine(d.start.row),E=F.substring(d.start.column+1,d.start.column+2);if(E==v)return d.end.column++,d}})};g.isSaneInsertion=function(C,_){var y=C.getCursorPosition(),m=new l(_,y.row,y.column);if(!this.$matchTokenType(m.getCurrentToken()||"text",n)){var w=new l(_,y.row,y.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",n))return!1}return m.stepForward(),m.getCurrentTokenRow()!==y.row||this.$matchTokenType(m.getCurrentToken()||"text",t)},g.$matchTokenType=function(C,_){return _.indexOf(C.type||C)>-1},g.recordAutoInsert=function(C,_,y){var m=C.getCursorPosition(),w=_.doc.getLine(m.row);this.isAutoInsertedClosing(m,w,e.autoInsertedLineEnd[0])||(e.autoInsertedBrackets=0),e.autoInsertedRow=m.row,e.autoInsertedLineEnd=y+w.substr(m.column),e.autoInsertedBrackets++},g.recordMaybeInsert=function(C,_,y){var m=C.getCursorPosition(),w=_.doc.getLine(m.row);this.isMaybeInsertedClosing(m,w)||(e.maybeInsertedBrackets=0),e.maybeInsertedRow=m.row,e.maybeInsertedLineStart=w.substr(0,m.column)+y,e.maybeInsertedLineEnd=w.substr(m.column),e.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(C,_,y){return e.autoInsertedBrackets>0&&C.row===e.autoInsertedRow&&y===e.autoInsertedLineEnd[0]&&_.substr(C.column)===e.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(C,_){return e.maybeInsertedBrackets>0&&C.row===e.maybeInsertedRow&&_.substr(C.column)===e.maybeInsertedLineEnd&&_.substr(0,C.column)==e.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){e.autoInsertedLineEnd=e.autoInsertedLineEnd.substr(1),e.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){e&&(e.maybeInsertedBrackets=0,e.maybeInsertedRow=-1)},c.inherits(g,u),b.CstyleBehaviour=g});ace.define("ace/unicode",["require","exports","module"],function(p,b,h){"use strict";b.packages={},c({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"});function c(u){var l=/\w{4}/g;for(var a in u)b.packages[a]=u[a].replace(l,"\\u$&")}});ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(p,b,h){"use strict";var c=p("../tokenizer").Tokenizer,u=p("./text_highlight_rules").TextHighlightRules,l=p("./behaviour/cstyle").CstyleBehaviour,a=p("../unicode"),n=p("../lib/lang"),t=p("../token_iterator").TokenIterator,e=p("../range").Range,r=function(){this.HighlightRules=u};(function(){this.$defaultBehaviour=new l,this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new c(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(i,o,s,g){var C=o.doc,_=!0,y=!0,m=1/0,w=o.getTabSize(),d=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(n.escapeRegExp).join("|"),v=this.lineCommentStart[0];else var E=n.escapeRegExp(this.lineCommentStart),v=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),d=o.getUseSoftTabs();var x=function(L,U){var T=L.match(E);if(T){var M=T[1].length,k=T[0].length;!B(L,M,k)&&T[0][k-1]==" "&&k--,C.removeInLine(U,M,k)}},$=v+" ",A=function(L,U){(!_||/\S/.test(L))&&(B(L,m,m)?C.insertInLine({row:U,column:m},$):C.insertInLine({row:U,column:m},v))},S=function(L,U){return E.test(L)},B=function(L,U,T){for(var M=0;U--&&L.charAt(U)==" ";)M++;if(M%w!=0)return!1;for(var M=0;L.charAt(T++)==" ";)M++;return w>2?M%w!=w-1:M%w==0}}else{if(!this.blockComment)return!1;var v=this.blockComment.start,F=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+n.escapeRegExp(v)+")"),f=new RegExp("(?:"+n.escapeRegExp(F)+")\\s*$"),A=function(I,H){S(I,H)||(!_||/\S/.test(I))&&(C.insertInLine({row:H,column:I.length},F),C.insertInLine({row:H,column:m},v))},x=function(I,H){var N;(N=I.match(f))&&C.removeInLine(H,I.length-N[0].length,I.length),(N=I.match(E))&&C.removeInLine(H,N[1].length,N[0].length)},S=function(I,H){if(E.test(I))return!0;for(var N=o.getTokens(H),L=0;LI.length&&(O=I.length)}),m==1/0&&(m=O,_=!1,y=!1),d&&m%w!=0&&(m=Math.floor(m/w)*w),D(y?x:A)},this.toggleBlockComment=function(i,o,s,g){var C=this.blockComment;if(C){!C.start&&C[0]&&(C=C[0]);var _=new t(o,g.row,g.column),y=_.getCurrentToken(),m=o.selection,w=o.selection.toOrientedRange(),d,v;if(y&&/comment/.test(y.type)){for(var F,E;y&&/comment/.test(y.type);){var f=y.value.indexOf(C.start);if(f!=-1){var A=_.getCurrentTokenRow(),x=_.getCurrentTokenColumn()+f;F=new e(A,x,A,x+C.start.length);break}y=_.stepBackward()}for(var _=new t(o,g.row,g.column),y=_.getCurrentToken();y&&/comment/.test(y.type);){var f=y.value.indexOf(C.end);if(f!=-1){var A=_.getCurrentTokenRow(),x=_.getCurrentTokenColumn()+f;E=new e(A,x,A,x+C.end.length);break}y=_.stepForward()}E&&o.remove(E),F&&(o.remove(F),d=F.start.row,v=-C.start.length)}else v=C.start.length,d=s.start.row,o.insert(s.end,C.end),o.insert(s.start,C.start);w.start.row==d&&(w.start.column+=v),w.end.row==d&&(w.end.column+=v),o.selection.fromOrientedRange(w)}},this.getNextLineIndent=function(i,o,s){return this.$getIndent(o)},this.checkOutdent=function(i,o,s){return!1},this.autoOutdent=function(i,o,s){},this.$getIndent=function(i){return i.match(/^\s*/)[0]},this.createWorker=function(i){return null},this.createModeDelegates=function(i){this.$embeds=[],this.$modes={};for(var o in i)i[o]&&(this.$embeds.push(o),this.$modes[o]=new i[o]);for(var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],o=0;o=0&&n.row=0&&n.column<=a[n.row].length}function l(a,n){n.action!="insert"&&n.action!="remove"&&c(n,"delta.action must be 'insert' or 'remove'"),n.lines instanceof Array||c(n,"delta.lines must be an Array"),(!n.start||!n.end)&&c(n,"delta.start/end must be an present");var t=n.start;u(a,n.start)||c(n,"delta.start must be contained in document");var e=n.end;n.action=="remove"&&!u(a,e)&&c(n,"delta.end must contained in document for 'remove' actions");var r=e.row-t.row,i=e.column-(r==0?t.column:0);(r!=n.lines.length-1||n.lines[r].length!=i)&&c(n,"delta.range must match delta lines")}b.applyDelta=function(a,n,t){var e=n.start.row,r=n.start.column,i=a[e]||"";switch(n.action){case"insert":var o=n.lines;if(o.length===1)a[e]=i.substring(0,r)+n.lines[0]+i.substring(r);else{var s=[e,1].concat(n.lines);a.splice.apply(a,s),a[e]=i.substring(0,r)+a[e],a[e+n.lines.length-1]+=i.substring(r)}break;case"remove":var g=n.end.column,C=n.end.row;e===C?a[e]=i.substring(0,r)+i.substring(g):a.splice(e,C-e+1,i.substring(0,r)+a[C].substring(g));break}}});ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./lib/event_emitter").EventEmitter,l=b.Anchor=function(a,n,t){this.$onChange=this.onChange.bind(this),this.attach(a),typeof t>"u"?this.setPosition(n.row,n.column):this.setPosition(n,t)};(function(){c.implement(this,u),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row)&&!(t.start.row>this.row)){var e=n(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(e.row,e.column,!0)}};function a(t,e,r){var i=r?t.column<=e.column:t.column=this.document.getLength()?(r.row=Math.max(0,this.document.getLength()-1),r.column=this.document.getLine(r.row).length):t<0?(r.row=0,r.column=0):(r.row=t,r.column=Math.min(this.document.getLine(r.row).length,Math.max(0,e))),e<0&&(r.column=0),r}}).call(l.prototype)});ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./apply_delta").applyDelta,l=p("./lib/event_emitter").EventEmitter,a=p("./range").Range,n=p("./anchor").Anchor,t=function(e){this.$lines=[""],e.length===0?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){c.implement(this,l),this.setValue=function(e){var r=this.getLength()-1;this.remove(new a(0,0,r,this.getLine(r).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,r){return new n(this,e,r)},"aaa".split(/a/).length===0?this.$split=function(e){return e.replace(/\r\n|\r/g,` +`).split(` +`)}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var r=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=r?r[1]:` +`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r +`;case"unix":return` +`;default:return this.$autoNewLine||` +`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==`\r +`||e=="\r"||e==` +`},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,r){return this.$lines.slice(e,r+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var r;if(e.start.row===e.end.row)r=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{r=this.getLines(e.start.row,e.end.row),r[0]=(r[0]||"").substring(e.start.column);var i=r.length-1;e.end.row-e.start.row==i&&(r[i]=r[i].substring(0,e.end.column))}return r},this.insertLines=function(e,r){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,r)},this.removeLines=function(e,r){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,r)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,r){return this.getLength()<=1&&this.$detectNewLine(r),this.insertMergedLines(e,this.$split(r))},this.insertInLine=function(e,r){var i=this.clippedPos(e.row,e.column),o=this.pos(e.row,e.column+r.length);return this.applyDelta({start:i,end:o,action:"insert",lines:[r]},!0),this.clonePos(o)},this.clippedPos=function(e,r){var i=this.getLength();e===void 0?e=i:e<0?e=0:e>=i&&(e=i-1,r=void 0);var o=this.getLine(e);return r==null&&(r=o.length),r=Math.min(Math.max(r,0),o.length),{row:e,column:r}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,r){return{row:e,column:r}},this.$clipPosition=function(e){var r=this.getLength();return e.row>=r?(e.row=Math.max(0,r-1),e.column=this.getLine(r-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,r){e=Math.min(Math.max(e,0),this.getLength());var i=0;e0,o=r=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,r){if(e instanceof a||(e=a.fromPoints(e.start,e.end)),r.length===0&&e.isEmpty())return e.start;if(r==this.getTextRange(e))return e.end;this.remove(e);var i;return r?i=this.insert(e.start,r):i=e.start,i},this.applyDeltas=function(e){for(var r=0;r=0;r--)this.revertDelta(e[r])},this.applyDelta=function(e,r){var i=e.action=="insert";(i?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(i&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),u(this.$lines,e,r),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,r){var i=e.lines,o=i.length,s=e.start.row,g=e.start.column,C=0,_=0;do{C=_,_+=r-1;var y=i.slice(C,_);if(_>o){e.lines=y,e.start.row=s+C,e.start.column=g;break}y.push(""),this.applyDelta({start:this.pos(s+C,g),end:this.pos(s+_,g=0),action:e.action,lines:y},!0)}while(!0)},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action=="insert"?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,r){for(var i=this.$lines||this.getAllLines(),o=this.getNewLineCharacter().length,s=r||0,g=i.length;s20){t.running=setTimeout(t.$worker,20);break}}t.currentLine=r,i==-1&&(i=r),s<=i&&t.fireUpdateEvent(s,i)}}};(function(){c.implement(this,u),this.setTokenizer=function(a){this.tokenizer=a,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(a){this.doc=a,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(a,n){var t={first:a,last:n};this._signal("update",{data:t})},this.start=function(a){this.currentLine=Math.min(a||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(a){var n=a.start.row,t=a.end.row-n;if(t===0)this.lines[n]=null;else if(a.action=="remove")this.lines.splice(n,t+1,null),this.states.splice(n,t+1,null);else{var e=Array(t+1);e.unshift(n,1),this.lines.splice.apply(this.lines,e),this.states.splice.apply(this.states,e)}this.currentLine=Math.min(n,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(a){return this.lines[a]||this.$tokenizeRow(a)},this.getState=function(a){return this.currentLine==a&&this.$tokenizeRow(a),this.states[a]||"start"},this.$tokenizeRow=function(a){var n=this.doc.getLine(a),t=this.states[a-1],e=this.tokenizer.getLineTokens(n,t,a);return this.states[a]+""!=e.state+""?(this.states[a]=e.state,this.lines[a+1]=null,this.currentLine>a+1&&(this.currentLine=a+1)):this.currentLine==a&&(this.currentLine=a+1),this.lines[a]=e.tokens}}).call(l.prototype),b.BackgroundTokenizer=l});ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(p,b,h){"use strict";var c=p("./lib/lang"),u=p("./lib/oop"),l=p("./range").Range,a=function(n,t,e){this.setRegexp(n),this.clazz=t,this.type=e||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(n){this.regExp+""!=n+""&&(this.regExp=n,this.cache=[])},this.update=function(n,t,e,r){if(this.regExp)for(var i=r.firstRow,o=r.lastRow,s=i;s<=o;s++){var g=this.cache[s];g==null&&(g=c.getMatchOffsets(e.getLine(s),this.regExp),g.length>this.MAX_RANGES&&(g=g.slice(0,this.MAX_RANGES)),g=g.map(function(_){return new l(s,_.offset,s,_.offset+_.length)}),this.cache[s]=g.length?g:"");for(var C=g.length;C--;)t.drawSingleLineMarker(n,g[C].toScreenRange(e),this.clazz,r)}}}).call(a.prototype),b.SearchHighlight=a});ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(p,b,h){"use strict";var c=p("../range").Range;function u(l,a){this.foldData=l,Array.isArray(a)?this.folds=a:a=this.folds=[a];var n=a[a.length-1];this.range=new c(a[0].start.row,a[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(t){t.setFoldLine(this)},this)}(function(){this.shiftRow=function(l){this.start.row+=l,this.end.row+=l,this.folds.forEach(function(a){a.start.row+=l,a.end.row+=l})},this.addFold=function(l){if(l.sameRow){if(l.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(l),this.folds.sort(function(a,n){return-a.range.compareEnd(n.start.row,n.start.column)}),this.range.compareEnd(l.start.row,l.start.column)>0?(this.end.row=l.end.row,this.end.column=l.end.column):this.range.compareStart(l.end.row,l.end.column)<0&&(this.start.row=l.start.row,this.start.column=l.start.column)}else if(l.start.row==this.end.row)this.folds.push(l),this.end.row=l.end.row,this.end.column=l.end.column;else if(l.end.row==this.start.row)this.folds.unshift(l),this.start.row=l.start.row,this.start.column=l.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");l.foldLine=this},this.containsRow=function(l){return l>=this.start.row&&l<=this.end.row},this.walk=function(l,a,n){var t=0,e=this.folds,r,i,o,s=!0;a==null&&(a=this.end.row,n=this.end.column);for(var g=0;g0)){var s=u(a,i.start);return o===0?n&&s!==0?-r-2:r:s>0||s===0&&!n?r:-r-1}}return-r-1},this.add=function(a){var n=!a.isEmpty(),t=this.pointIndex(a.start,n);t<0&&(t=-t-1);var e=this.pointIndex(a.end,n,t);return e<0?e=-e-1:e++,this.ranges.splice(t,e-t,a)},this.addList=function(a){for(var n=[],t=a.length;t--;)n.push.apply(n,this.add(a[t]));return n},this.substractPoint=function(a){var n=this.pointIndex(a);if(n>=0)return this.ranges.splice(n,1)},this.merge=function(){var a=[],n=this.ranges;n=n.sort(function(o,s){return u(o.start,s.start)});for(var t=n[0],e,r=1;r=0},this.containsPoint=function(a){return this.pointIndex(a)>=0},this.rangeAtPoint=function(a){var n=this.pointIndex(a);if(n>=0)return this.ranges[n]},this.clipRows=function(a,n){var t=this.ranges;if(t[0].start.row>n||t[t.length-1].start.rowe)break;if(_.start.row==e&&_.start.column>=n.column&&(_.start.column==n.column&&this.$insertRight||(_.start.column+=o,_.start.row+=i)),_.end.row==e&&_.end.column>=n.column){if(_.end.column==n.column&&this.$insertRight)continue;_.end.column==n.column&&o>0&&g_.start.column&&_.end.column==s[g+1].start.column&&(_.end.column-=o),_.end.column+=o,_.end.row+=i}}}if(i!=0&&g=t)return o;if(o.end.row>t)return null}return null},this.getNextFoldLine=function(t,e){var r=this.$foldData,i=0;for(e&&(i=r.indexOf(e)),i==-1&&(i=0),i;i=t)return o}return null},this.getFoldedRowCount=function(t,e){for(var r=this.$foldData,i=e-t+1,o=0;o=e){C=t?i-=e-C:i=0);break}else g>=t&&(C>=t?i-=g-C:i-=g-t+1)}return i},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort(function(e,r){return e.start.row-r.start.row}),t},this.addFold=function(t,e){var r=this.$foldData,i=!1,o;t instanceof l?o=t:(o=new l(e,t),o.collapseChildren=e.collapseChildren),this.$clipRangeToDocument(o.range);var s=o.start.row,g=o.start.column,C=o.end.row,_=o.end.column;if(!(s0&&(this.removeFolds(w),w.forEach(function(E){o.addSubFold(E)}));for(var d=0;d0&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(t,e){var r,i;if(t==null?(r=new c(0,0,this.getLength(),0),e=!0):typeof t=="number"?r=new c(t,0,t,this.getLine(t).length):"row"in t?r=c.fromPoints(t,t):r=t,i=this.getFoldsInRangeList(r),e)this.removeFolds(i);else for(var o=i;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(r);if(i.length)return i},this.isRowFolded=function(t,e){return!!this.getFoldLine(t,e)},this.getRowFoldEnd=function(t,e){var r=this.getFoldLine(t,e);return r?r.end.row:t},this.getRowFoldStart=function(t,e){var r=this.getFoldLine(t,e);return r?r.start.row:t},this.getFoldDisplayLine=function(t,e,r,i,o){i==null&&(i=t.start.row),o==null&&(o=0),e==null&&(e=t.end.row),r==null&&(r=this.getLine(e).length);var s=this.doc,g="";return t.walk(function(C,_,y,m){if(!(__)break;while(o&&g.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return C.end.row=i.getCurrentTokenRow(),C.end.column=i.getCurrentTokenColumn()+o.value.length-2,C}},this.foldAll=function(t,e,r){r==null&&(r=1e5);var i=this.foldWidgets;if(i){e=e||this.getLength(),t=t||0;for(var o=t;o=t){o=s.end.row;try{var g=this.addFold("...",s);g&&(g.collapseChildren=r)}catch{}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(t){if(!this.$foldStyles[t])throw new Error("invalid fold style: "+t+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=t){this.$foldStyle=t,t=="manual"&&this.unfold();var e=this.$foldMode;this.$setFolding(null),this.$setFolding(e)}},this.$setFolding=function(t){if(this.$foldMode!=t){if(this.$foldMode=t,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!t||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=t.getFoldWidget.bind(t,this,this.$foldStyle),this.getFoldWidgetRange=t.getFoldWidgetRange.bind(t,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(t,e){var r=this.foldWidgets;if(!r||e&&r[t])return{};for(var i=t-1,o;i>=0;){var s=r[i];if(s==null&&(s=r[i]=this.getFoldWidget(i)),s=="start"){var g=this.getFoldWidgetRange(i);if(o||(o=g),g&&g.end.row>=t)break}i--}return{range:i!==-1&&g,firstRange:o}},this.onFoldWidgetClick=function(t,e){e=e.domEvent;var r={children:e.shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey},i=this.$toggleFoldWidget(t,r);if(!i){var o=e.target||e.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(t,e){if(this.getFoldWidget){var r=this.getFoldWidget(t),i=this.getLine(t),o=r==="end"?-1:1,s=this.getFoldAt(t,o===-1?0:i.length,o);if(s)return e.children||e.all?this.removeFold(s):this.expandFold(s),s;var g=this.getFoldWidgetRange(t,!0);if(g&&!g.isMultiLine()&&(s=this.getFoldAt(g.start.row,g.start.column,1),s&&g.isEqual(s.range)))return this.removeFold(s),s;if(e.siblings){var C=this.getParentFoldRangeData(t);if(C.range)var _=C.range.start.row+1,y=C.range.end.row;this.foldAll(_,y,e.all?1e4:0)}else e.children?(y=g?g.end.row:this.getLength(),this.foldAll(t+1,y,e.all?1e4:0)):g&&(e.all&&(g.collapseChildren=1e4),this.addFold("...",g));return g}},this.toggleFoldWidget=function(t){var e=this.selection.getCursor().row;e=this.getRowFoldStart(e);var r=this.$toggleFoldWidget(e,{});if(!r){var i=this.getParentFoldRangeData(e,!0);if(r=i.range||i.firstRange,r){e=r.start.row;var o=this.getFoldAt(e,this.getLine(e).length,1);o?this.removeFold(o):this.addFold("...",r)}}},this.updateFoldWidgets=function(t){var e=t.start.row,r=t.end.row-e;if(r===0)this.foldWidgets[e]=null;else if(t.action=="remove")this.foldWidgets.splice(e,r+1,null);else{var i=Array(r+1);i.unshift(e,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(t){var e=t.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}b.Folding=n});ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(p,b,h){"use strict";var c=p("../token_iterator").TokenIterator,u=p("../range").Range;function l(){this.findMatchingBracket=function(a,n){if(a.column==0)return null;var t=n||this.getLine(a.row).charAt(a.column-1);if(t=="")return null;var e=t.match(/([\(\[\{])|([\)\]\}])/);return e?e[1]?this.$findClosingBracket(e[1],a):this.$findOpeningBracket(e[2],a):null},this.getBracketRange=function(a){var n=this.getLine(a.row),t=!0,e,r=n.charAt(a.column-1),i=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(i||(r=n.charAt(a.column),a={row:a.row,column:a.column+1},i=r&&r.match(/([\(\[\{])|([\)\]\}])/),t=!1),!i)return null;if(i[1]){var o=this.$findClosingBracket(i[1],a);if(!o)return null;e=u.fromPoints(a,o),t||(e.end.column++,e.start.column--),e.cursor=e.end}else{var o=this.$findOpeningBracket(i[2],a);if(!o)return null;e=u.fromPoints(o,a),t||(e.start.column++,e.end.column--),e.cursor=e.start}return e},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(a,n,t){var e=this.$brackets[a],r=1,i=new c(this,n.row,n.column),o=i.getCurrentToken();if(o||(o=i.stepForward()),!!o){t||(t=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var s=n.column-i.getCurrentTokenColumn()-2,g=o.value;;){for(;s>=0;){var C=g.charAt(s);if(C==e){if(r-=1,r==0)return{row:i.getCurrentTokenRow(),column:s+i.getCurrentTokenColumn()}}else C==a&&(r+=1);s-=1}do o=i.stepBackward();while(o&&!t.test(o.type));if(o==null)break;g=o.value,s=g.length-1}return null}},this.$findClosingBracket=function(a,n,t){var e=this.$brackets[a],r=1,i=new c(this,n.row,n.column),o=i.getCurrentToken();if(o||(o=i.stepForward()),!!o){t||(t=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var s=n.column-i.getCurrentTokenColumn();;){for(var g=o.value,C=g.length;sx&&(this.$docRowCache.splice(x,A),this.$screenRowCache.splice(x,A))},this.$getRowCacheIndex=function(f,A){for(var x=0,S=f.length-1;x<=S;){var $=x+S>>1,B=f[$];if(A>B)x=$+1;else if(A=A));B++);return S=x[B],S?(S.index=B,S.start=$-S.value.length,S):null},this.setUndoManager=function(f){if(this.$undoManager=f,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),f){var A=this;this.$syncInformUndoManager=function(){A.$informUndoManager.cancel(),A.$deltasFold.length&&(A.$deltas.push({group:"fold",deltas:A.$deltasFold}),A.$deltasFold=[]),A.$deltasDoc.length&&(A.$deltas.push({group:"doc",deltas:A.$deltasDoc}),A.$deltasDoc=[]),A.$deltas.length>0&&f.execute({action:"aceupdate",args:[A.$deltas,A],merge:A.mergeUndoDeltas}),A.mergeUndoDeltas=!1,A.$deltas=[]},this.$informUndoManager=u.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?u.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(f){this.setOption("useSoftTabs",f)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(f){this.setOption("tabSize",f)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(f){return this.$useSoftTabs&&f.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(f){this.setOption("navigateWithinSoftTabs",f)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(f){this.setOption("overwrite",f)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(f,A){this.$decorations[f]||(this.$decorations[f]=""),this.$decorations[f]+=" "+A,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(f,A){this.$decorations[f]=(this.$decorations[f]||"").replace(" "+A,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(f){this.$breakpoints=[];for(var A=0;A0&&(S=!!x.charAt(A-1).match(this.tokenRe)),S||(S=!!x.charAt(A).match(this.tokenRe)),S)var $=this.tokenRe;else if(/^\s+$/.test(x.slice(A-1,A+1)))var $=/\s/;else var $=this.nonTokenRe;var B=A;if(B>0){do B--;while(B>=0&&x.charAt(B).match($));B++}for(var D=A;Df&&(f=A.screenWidth)}),this.lineWidgetWidth=f},this.$computeWidth=function(f){if(this.$modified||f){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var A=this.doc.getAllLines(),x=this.$rowLengthCache,S=0,$=0,B=this.$foldData[$],D=B?B.start.row:1/0,O=A.length,I=0;ID){if(I=B.end.row+1,I>=O)break;B=this.$foldData[$++],D=B?B.start.row:1/0}x[I]==null&&(x[I]=this.$getStringScreenWidth(A[I])[0]),x[I]>S&&(S=x[I])}this.screenWidth=S}},this.getLine=function(f){return this.doc.getLine(f)},this.getLines=function(f,A){return this.doc.getLines(f,A)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(f){return this.doc.getTextRange(f||this.selection.getRange())},this.insert=function(f,A){return this.doc.insert(f,A)},this.remove=function(f){return this.doc.remove(f)},this.removeFullLines=function(f,A){return this.doc.removeFullLines(f,A)},this.undoChanges=function(f,A){if(f.length){this.$fromUndo=!0;for(var x=null,S=f.length-1;S!=-1;S--){var $=f[S];$.group=="doc"?(this.doc.revertDeltas($.deltas),x=this.$getUndoSelection($.deltas,!0,x)):$.deltas.forEach(function(B){this.addFolds(B.folds)},this)}return this.$fromUndo=!1,x&&this.$undoSelect&&!A&&this.selection.setSelectionRange(x),x}},this.redoChanges=function(f,A){if(f.length){this.$fromUndo=!0;for(var x=null,S=0;Sf.end.column&&(B.start.column+=O),B.end.row==f.end.row&&B.end.column>f.end.column&&(B.end.column+=O)),D&&B.start.row>=f.end.row&&(B.start.row+=D,B.end.row+=D)}if(B.end=this.insert(B.start,S),$.length){var I=f.start,H=B.start,D=H.row-I.row,O=H.column-I.column;this.addFolds($.map(function(U){return U=U.clone(),U.start.row==I.row&&(U.start.column+=O),U.end.row==I.row&&(U.end.column+=O),U.start.row+=D,U.end.row+=D,U}))}return B},this.indentRows=function(f,A,x){x=x.replace(/\t/g,this.getTabString());for(var S=f;S<=A;S++)this.doc.insertInLine({row:S,column:0},x)},this.outdentRows=function(f){for(var A=f.collapseRows(),x=new r(0,0,0,0),S=this.getTabSize(),$=A.start.row;$<=A.end.row;++$){var B=this.getLine($);x.start.row=$,x.end.row=$;for(var D=0;D0){var S=this.getRowFoldEnd(A+x);if(S>this.doc.getLength()-1)return 0;var $=S-A}else{f=this.$clipRowToDocument(f),A=this.$clipRowToDocument(A);var $=A-f+1}var B=new r(f,0,A,Number.MAX_VALUE),D=this.getFoldsInRange(B).map(function(I){return I=I.clone(),I.start.row+=$,I.end.row+=$,I}),O=x==0?this.doc.getLines(f,A):this.doc.removeFullLines(f,A);return this.doc.insertFullLines(f+$,O),D.length&&this.addFolds(D),$},this.moveLinesUp=function(f,A){return this.$moveLines(f,A,-1)},this.moveLinesDown=function(f,A){return this.$moveLines(f,A,1)},this.duplicateLines=function(f,A){return this.$moveLines(f,A,0)},this.$clipRowToDocument=function(f){return Math.max(0,Math.min(f,this.doc.getLength()-1))},this.$clipColumnToRow=function(f,A){return A<0?0:Math.min(this.doc.getLine(f).length,A)},this.$clipPositionToDocument=function(f,A){if(A=Math.max(0,A),f<0)f=0,A=0;else{var x=this.doc.getLength();f>=x?(f=x-1,A=this.doc.getLine(x-1).length):A=Math.min(this.doc.getLine(f).length,A)}return{row:f,column:A}},this.$clipRangeToDocument=function(f){f.start.row<0?(f.start.row=0,f.start.column=0):f.start.column=this.$clipColumnToRow(f.start.row,f.start.column);var A=this.doc.getLength()-1;return f.end.row>A?(f.end.row=A,f.end.column=this.doc.getLine(A).length):f.end.column=this.$clipColumnToRow(f.end.row,f.end.column),f},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(f){if(f!=this.$useWrapMode){if(this.$useWrapMode=f,this.$modified=!0,this.$resetRowCache(0),f){var A=this.getLength();this.$wrapData=Array(A),this.$updateWrapData(0,A-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(f,A){(this.$wrapLimitRange.min!==f||this.$wrapLimitRange.max!==A)&&(this.$wrapLimitRange={min:f,max:A},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(f,A){var x=this.$wrapLimitRange;x.max<0&&(x={min:A,max:A});var S=this.$constrainWrapLimit(f,x.min,x.max);return S!=this.$wrapLimit&&S>1?(this.$wrapLimit=S,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(f,A,x){return A&&(f=Math.max(A,f)),x&&(f=Math.min(x,f)),f},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(f){this.setWrapLimitRange(f,f)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(f){var A=this.$useWrapMode,x=f.action,S=f.start,$=f.end,B=S.row,D=$.row,O=D-B,I=null;if(this.$updating=!0,O!=0)if(x==="remove"){this[A?"$wrapData":"$rowLengthCache"].splice(B,O);var H=this.$foldData;I=this.getFoldsInRange(f),this.removeFolds(I);var N=this.getFoldLine($.row),L=0;if(N){N.addRemoveChars($.row,$.column,S.column-$.column),N.shiftRow(-O);var U=this.getFoldLine(B);U&&U!==N&&(U.merge(N),N=U),L=H.indexOf(N)+1}for(L;L=$.row&&N.shiftRow(-O)}D=B}else{var T=Array(O);T.unshift(B,0);var M=A?this.$wrapData:this.$rowLengthCache;M.splice.apply(M,T);var H=this.$foldData,N=this.getFoldLine(B),L=0;if(N){var k=N.range.compareInside(S.row,S.column);k==0?(N=N.split(S.row,S.column),N&&(N.shiftRow(O),N.addRemoveChars(D,0,$.column-S.column))):k==-1&&(N.addRemoveChars(B,0,$.column-S.column),N.shiftRow(O)),L=H.indexOf(N)+1}for(L;L=B&&N.shiftRow(O)}}else{O=Math.abs(f.start.column-f.end.column),x==="remove"&&(I=this.getFoldsInRange(f),this.removeFolds(I),O=-O);var N=this.getFoldLine(B);N&&N.addRemoveChars(B,S.column,O)}return A&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,A?this.$updateWrapData(B,D):this.$updateRowLengthCache(B,D),I},this.$updateRowLengthCache=function(f,A,x){this.$rowLengthCache[f]=null,this.$rowLengthCache[A]=null},this.$updateWrapData=function(f,A){var x=this.doc.getAllLines(),S=this.getTabSize(),$=this.$wrapData,B=this.$wrapLimit,D,O,I=f;for(A=Math.min(A,x.length-1);I<=A;)O=this.getFoldLine(I,O),O?(D=[],O.walk(function(H,N,L,U){var T;if(H!=null){T=this.$getDisplayTokens(H,D.length),T[0]=y;for(var M=1;MA-U;){var T=B+A-U;if(f[T-1]>=d&&f[T]>=d){L(T);continue}if(f[T]==y||f[T]==m){for(T;T!=B-1&&f[T]!=y;T--);if(T>B){L(T);continue}for(T=B+A,T;T>2)),B-1);T>M&&f[T]M&&f[T]M&&f[T]==w;)T--}else for(;T>M&&f[T]M){L(++T);continue}T=B+A,f[T]==_&&T--,L(T-U)}return S},this.$getDisplayTokens=function(f,A){var x=[],S;A=A||0;for(var $=0;$39&&B<48||B>57&&B<64?x.push(w):B>=4352&&E(B)?x.push(C,_):x.push(C)}return x},this.$getStringScreenWidth=function(f,A,x){if(A==0)return[0,0];A==null&&(A=1/0),x=x||0;var S,$;for($=0;$=4352&&E(S)?x+=2:x+=1,!(x>A));$++);return[x,$]},this.lineWidgets=null,this.getRowLength=function(f){if(this.lineWidgets)var A=this.lineWidgets[f]&&this.lineWidgets[f].rowCount||0;else A=0;return!this.$useWrapMode||!this.$wrapData[f]?1+A:this.$wrapData[f].length+1+A},this.getRowLineCount=function(f){return!this.$useWrapMode||!this.$wrapData[f]?1:this.$wrapData[f].length+1},this.getRowWrapIndent=function(f){if(this.$useWrapMode){var A=this.screenToDocumentPosition(f,Number.MAX_VALUE),x=this.$wrapData[A.row];return x.length&&x[0]=0)var O=H[N],$=this.$docRowCache[N],U=f>H[L-1];else var U=!L;for(var T=this.getLength()-1,M=this.getNextFoldLine($),k=M?M.start.row:1/0;O<=f&&(I=this.getRowLength($),!(O+I>f||$>=T));)O+=I,$++,$>k&&($=M.end.row+1,M=this.getNextFoldLine($,M),k=M?M.start.row:1/0),U&&(this.$docRowCache.push($),this.$screenRowCache.push(O));if(M&&M.start.row<=$)S=this.getFoldDisplayLine(M),$=M.start.row;else{if(O+I<=f||$>T)return{row:T,column:this.getLine(T).length};S=this.getLine($),M=null}var z=0,P=Math.floor(f-O);if(this.$useWrapMode){var j=this.$wrapData[$];j&&(D=j[P],P>0&&j.length&&(z=j.indent,B=j[P-1]||j[j.length-1],S=S.substring(B)))}return x!==void 0&&this.$bidiHandler.isBidiRow(O+P,$,P)&&(A=this.$bidiHandler.offsetToCol(x)),B+=this.$getStringScreenWidth(S,A-z)[1],this.$useWrapMode&&B>=D&&(B=D-1),M?M.idxToPosition(B):{row:$,column:B}},this.documentToScreenPosition=function(f,A){if(typeof A>"u")var x=this.$clipPositionToDocument(f.row,f.column);else x=this.$clipPositionToDocument(f,A);f=x.row,A=x.column;var S=0,$=null,B=null;B=this.getFoldAt(f,A,1),B&&(f=B.start.row,A=B.start.column);var D,O=0,I=this.$docRowCache,H=this.$getRowCacheIndex(I,f),N=I.length;if(N&&H>=0)var O=I[H],S=this.$screenRowCache[H],L=f>I[N-1];else var L=!N;for(var U=this.getNextFoldLine(O),T=U?U.start.row:1/0;O=T){if(D=U.end.row+1,D>f)break;U=this.getNextFoldLine(D,U),T=U?U.start.row:1/0}else D=O+1;S+=this.getRowLength(O),O=D,L&&(this.$docRowCache.push(O),this.$screenRowCache.push(S))}var M="";U&&O>=T?(M=this.getFoldDisplayLine(U,f,A),$=U.start.row):(M=this.getLine(f).substring(0,A),$=f);var k=0;if(this.$useWrapMode){var z=this.$wrapData[$];if(z){for(var P=0;M.length>=z[P];)S++,P++;M=M.substring(z[P-1]||0,M.length),k=P>0?z.indent:0}}return{row:S,column:k+this.$getStringScreenWidth(M)[0]}},this.documentToScreenColumn=function(f,A){return this.documentToScreenPosition(f,A).column},this.documentToScreenRow=function(f,A){return this.documentToScreenPosition(f,A).row},this.getScreenLength=function(){var f=0,A=null;if(this.$useWrapMode)for(var $=this.$wrapData.length,B=0,S=0,A=this.$foldData[S++],D=A?A.start.row:1/0;B<$;){var O=this.$wrapData[B];f+=O?O.length+1:1,B++,B>D&&(B=A.end.row+1,A=this.$foldData[S++],D=A?A.start.row:1/0)}else{f=this.getLength();for(var x=this.$foldData,S=0;Sx));B++);return[S,B]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=E;function E(f){return f<4352?!1:f>=4352&&f<=4447||f>=4515&&f<=4519||f>=4602&&f<=4607||f>=9001&&f<=9002||f>=11904&&f<=11929||f>=11931&&f<=12019||f>=12032&&f<=12245||f>=12272&&f<=12283||f>=12288&&f<=12350||f>=12353&&f<=12438||f>=12441&&f<=12543||f>=12549&&f<=12589||f>=12593&&f<=12686||f>=12688&&f<=12730||f>=12736&&f<=12771||f>=12784&&f<=12830||f>=12832&&f<=12871||f>=12880&&f<=13054||f>=13056&&f<=19903||f>=19968&&f<=42124||f>=42128&&f<=42182||f>=43360&&f<=43388||f>=44032&&f<=55203||f>=55216&&f<=55238||f>=55243&&f<=55291||f>=63744&&f<=64255||f>=65040&&f<=65049||f>=65072&&f<=65106||f>=65108&&f<=65126||f>=65128&&f<=65131||f>=65281&&f<=65376||f>=65504&&f<=65510}}.call(g.prototype),p("./edit_session/folding").Folding.call(g.prototype),p("./edit_session/bracket_match").BracketMatch.call(g.prototype),a.defineOptions(g.prototype,"session",{wrap:{set:function(C){if(!C||C=="off"?C=!1:C=="free"?C=!0:C=="printMargin"?C=-1:typeof C=="string"&&(C=parseInt(C,10)||!1),this.$wrap!=C)if(this.$wrap=C,!C)this.setUseWrapMode(!1);else{var _=typeof C=="number"?C:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(C){C=C=="auto"?this.$mode.type!="text":C!="text",C!=this.$wrapAsCode&&(this.$wrapAsCode=C,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(C){this.$useWorker=C,this.$stopWorker(),C&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(C){isNaN(C)||this.$tabSize===C||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=C,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(C){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(C){this.doc.setNewLineMode(C)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(C){this.setMode(C)},get:function(){return this.$modeId}}}),b.EditSession=g});ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(p,b,h){"use strict";var c=p("./lib/lang"),u=p("./lib/oop"),l=p("./range").Range,a=function(){this.$options={}};(function(){this.set=function(t){return u.mixin(this.$options,t),this},this.getOptions=function(){return c.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var e=this.$options,r=this.$matchIterator(t,e);if(!r)return!1;var i=null;return r.forEach(function(o,s,g,C){return i=new l(o,s,g,C),s==C&&e.start&&e.start.start&&e.skipCurrent!=!1&&i.isEqual(e.start)?(i=null,!1):!0}),i},this.findAll=function(t){var e=this.$options;if(!e.needle)return[];this.$assembleRegExp(e);var r=e.range,i=r?t.getLines(r.start.row,r.end.row):t.doc.getAllLines(),o=[],s=e.re;if(e.$isMultiLine){var g=s.length,C=i.length-g,_;e:for(var y=s.offset||0;y<=C;y++){for(var m=0;mv||(o.push(_=new l(y,v,y+g-1,F)),g>2&&(y=y+g-2))}}else for(var E=0;ES&&o[m].end.row==r.end.row;)m--;for(o=o.slice(E,m+1),E=0,m=o.length;E=C;v--)if(w(v,Number.MAX_VALUE,d))return;if(e.wrap!=!1){for(v=_,C=g.row;v>=C;v--)if(w(v,Number.MAX_VALUE,d))return}}};else var y=function(v){var F=g.row;if(!w(F,g.column,v)){for(F=F+1;F<=_;F++)if(w(F,0,v))return;if(e.wrap!=!1){for(F=C,_=g.row;F<=_;F++)if(w(F,0,v))return}}};if(e.$isMultiLine)var m=r.length,w=function(d,v,F){var E=i?d-m+1:d;if(!(E<0)){var f=t.getLine(E),A=f.search(r[0]);if(!(!i&&Av)&&F(E,A,E+m-1,S))return!0}}};else if(i)var w=function(v,F,E){var f=t.getLine(v),A=[],x,S=0;for(r.lastIndex=0;x=r.exec(f);){var $=x[0].length;if(S=x.index,!$){if(S>=f.length)break;r.lastIndex=S+=1}if(x.index+$>F)break;A.push(x.index,$)}for(var B=A.length-1;B>=0;B-=2){var D=A[B-1],$=A[B];if(E(v,D,v,D+$))return!0}};else var w=function(v,F,E){var f=t.getLine(v),A,x=F;for(r.lastIndex=F;A=r.exec(f);){var S=A[0].length;if(x=A.index,E(v,x,v,x+S))return!0;if(!S&&(r.lastIndex=x+=1,x>=f.length))return!1}};return{forEach:y}}}).call(a.prototype);function n(t,e){function r(i){return/\w/.test(i)||e.regExp?"\\b":""}return r(t[0])+t+r(t[t.length-1])}b.Search=a});ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("../lib/keys"),u=p("../lib/useragent"),l=c.KEY_MODS;function a(t,e){this.platform=e||(u.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function n(t,e){a.call(this,t,e),this.$singleCommand=!1}n.prototype=a.prototype,function(){this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,r){var i=e&&(typeof e=="string"?e:e.name);e=this.commands[i],r||delete this.commands[i];var o=this.commandKeyBinding;for(var s in o){var g=o[s];if(g==e)delete o[s];else if(Array.isArray(g)){var C=g.indexOf(e);C!=-1&&(g.splice(C,1),g.length==1&&(o[s]=g[0]))}}},this.bindKey=function(e,r,i){if(typeof e=="object"&&e&&(i==null&&(i=e.position),e=e[this.platform]),!!e){if(typeof r=="function")return this.addCommand({exec:r,bindKey:e,name:r.name||e});e.split("|").forEach(function(o){var s="";if(o.indexOf(" ")!=-1){var g=o.split(/\s+/);o=g.pop(),g.forEach(function(y){var m=this.parseKeys(y),w=l[m.hashId]+m.key;s+=(s?" ":"")+w,this._addCommandToBinding(s,"chainKeys")},this),s+=" "}var C=this.parseKeys(o),_=l[C.hashId]+C.key;this._addCommandToBinding(s+_,r,i)},this)}};function t(e){return typeof e=="object"&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this._addCommandToBinding=function(e,r,i){var o=this.commandKeyBinding,s;if(!r)delete o[e];else if(!o[e]||this.$singleCommand)o[e]=r;else{Array.isArray(o[e])?(s=o[e].indexOf(r))!=-1&&o[e].splice(s,1):o[e]=[o[e]],typeof i!="number"&&(i=t(r));var g=o[e];for(s=0;si)break}g.splice(s,0,r)}},this.addCommands=function(e){e&&Object.keys(e).forEach(function(r){var i=e[r];if(i){if(typeof i=="string")return this.bindKey(i,r);typeof i=="function"&&(i={exec:i}),typeof i=="object"&&(i.name||(i.name=r),this.addCommand(i))}},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(r){this.removeCommand(e[r])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(r){this.bindKey(r,e[r])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var r=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),i=r.pop(),o=c[i];if(c.FUNCTION_KEYS[o])i=c.FUNCTION_KEYS[o].toLowerCase();else if(r.length){if(r.length==1&&r[0]=="shift")return{key:i.toUpperCase(),hashId:-1}}else return{key:i,hashId:-1};for(var s=0,g=r.length;g--;){var C=c.KEY_MODS[r[g]];if(C==null)return typeof console<"u"&&console.error("invalid modifier "+r[g]+" in "+e),!1;s|=C}return{key:i,hashId:s}},this.findKeyCommand=function(r,i){var o=l[r]+i;return this.commandKeyBinding[o]},this.handleKeyboard=function(e,r,i,o){if(!(o<0)){var s=l[r]+i,g=this.commandKeyBinding[s];return e.$keyChain&&(e.$keyChain+=" "+s,g=this.commandKeyBinding[e.$keyChain]||g),g&&(g=="chainKeys"||g[g.length-1]=="chainKeys")?(e.$keyChain=e.$keyChain||s,{command:"null"}):(e.$keyChain&&((!r||r==4)&&i.length==1?e.$keyChain=e.$keyChain.slice(0,-s.length-1):(r==-1||o>0)&&(e.$keyChain="")),{command:g})}},this.getStatusText=function(e,r){return r.$keyChain||""}}.call(a.prototype),b.HashHandler=a,b.MultiHashHandler=n});ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("../keyboard/hash_handler").MultiHashHandler,l=p("../lib/event_emitter").EventEmitter,a=function(n,t){u.call(this,t,n),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};c.inherits(a,u),function(){c.implement(this,l),this.exec=function(n,t,e){if(Array.isArray(n)){for(var r=n.length;r--;)if(this.exec(n[r],t,e))return!0;return!1}if(typeof n=="string"&&(n=this.commands[n]),!n||t&&t.$readOnly&&!n.readOnly||n.isAvailable&&!n.isAvailable(t))return!1;var i={editor:t,command:n,args:e};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),i.returnValue!==!1},this.toggleRecording=function(n){if(!this.$inReplay)return n&&n._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(n){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(n);try{this.$inReplay=!0,this.macro.forEach(function(t){typeof t=="string"?this.exec(t,n):this.exec(t[0],n,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(n){return n.map(function(t){return typeof t[0]!="string"&&(t[0]=t[0].name),t[1]||(t=t[0]),t})}}.call(a.prototype),b.CommandManager=a});ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(p,b,h){"use strict";var c=p("../lib/lang"),u=p("../config"),l=p("../range").Range;function a(n,t){return{win:n,mac:t}}b.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(n){u.loadModule("ace/ext/settings_menu",function(t){t.init(n),n.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(n){u.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(n,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(n){u.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(n,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:a("Ctrl-A","Command-A"),exec:function(n){n.selectAll()},readOnly:!0},{name:"centerselection",bindKey:a(null,"Ctrl-L"),exec:function(n){n.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:a("Ctrl-L","Command-L"),exec:function(n){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||n.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(n){n.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(n){n.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(n){n.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(n){n.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(n){n.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:a("Alt-0","Command-Option-0"),exec:function(n){n.session.foldAll(),n.session.unfold(n.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(n){n.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:a("Ctrl-K","Command-G"),exec:function(n){n.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(n){n.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:a("Alt-K","Ctrl-G"),exec:function(n){n.selection.isEmpty()?n.selection.selectWord():n.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(n){n.selection.isEmpty()?n.selection.selectWord():n.findPrevious()},readOnly:!0},{name:"find",bindKey:a("Ctrl-F","Command-F"),exec:function(n){u.loadModule("ace/ext/searchbox",function(t){t.Search(n)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(n){n.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(n){n.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(n){n.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(n){n.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:a("Up","Up|Ctrl-P"),exec:function(n,t){n.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(n){n.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(n){n.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(n){n.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:a("Down","Down|Ctrl-N"),exec:function(n,t){n.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(n){n.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:a("Ctrl-Left","Option-Left"),exec:function(n){n.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(n){n.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(n){n.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(n){n.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:a("Left","Left|Ctrl-B"),exec:function(n,t){n.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(n){n.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:a("Ctrl-Right","Option-Right"),exec:function(n){n.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(n){n.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(n){n.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:a("Shift-Right","Shift-Right"),exec:function(n){n.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:a("Right","Right|Ctrl-F"),exec:function(n,t){n.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(n){n.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:a(null,"Option-PageDown"),exec:function(n){n.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(n){n.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(n){n.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:a(null,"Option-PageUp"),exec:function(n){n.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(n){n.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:a("Ctrl-Up",null),exec:function(n){n.renderer.scrollBy(0,-2*n.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:a("Ctrl-Down",null),exec:function(n){n.renderer.scrollBy(0,2*n.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(n){n.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(n){n.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(n){n.commands.toggleRecording(n)},readOnly:!0},{name:"replaymacro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(n){n.commands.replay(n)},readOnly:!0},{name:"jumptomatching",bindKey:a("Ctrl-P","Ctrl-P"),exec:function(n){n.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:a("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(n){n.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(n){n.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(n){},readOnly:!0},{name:"cut",exec:function(n){var t=n.getSelectionRange();n._emit("cut",t),n.selection.isEmpty()||(n.session.remove(t),n.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(n,t){n.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:a("Ctrl-D","Command-D"),exec:function(n){n.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(n){n.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(n){n.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:a("Ctrl-/","Command-/"),exec:function(n){n.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(n){n.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(n){n.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(n){n.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(n){u.loadModule("ace/ext/searchbox",function(t){t.Search(n,!0)})}},{name:"undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(n){n.undo()}},{name:"redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(n){n.redo()}},{name:"copylinesup",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(n){n.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:a("Alt-Up","Option-Up"),exec:function(n){n.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(n){n.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:a("Alt-Down","Option-Down"),exec:function(n){n.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(n){n.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(n){n.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:a("Shift-Delete",null),exec:function(n){if(n.selection.isEmpty())n.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(n){n.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(n){n.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(n){var t=n.selection.getRange();t.start.column=0,n.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(n){var t=n.selection.getRange();t.end.column=Number.MAX_VALUE,n.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(n){n.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(n){n.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(n){n.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:a("Tab","Tab"),exec:function(n){n.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(n){n.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(n){n.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(n,t){n.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(n,t){n.insert(c.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:a(null,"Ctrl-O"),exec:function(n){n.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(n){n.transposeLetters()},multiSelectAction:function(n){n.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(n){n.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(n){n.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(n){var t=n.selection.getRange();t.start.column=t.end.column=0,t.end.row++,n.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:a(null,null),exec:function(n){for(var t=n.selection.isBackwards(),e=t?n.selection.getSelectionLead():n.selection.getSelectionAnchor(),r=t?n.selection.getSelectionAnchor():n.selection.getSelectionLead(),i=n.session.doc.getLine(e.row).length,o=n.session.doc.getTextRange(n.selection.getRange()),s=o.replace(/\n\s*/," ").length,g=n.session.doc.getLine(e.row),C=e.row+1;C<=r.row+1;C++){var _=c.stringTrimLeft(c.stringTrimRight(n.session.doc.getLine(C)));_.length!==0&&(_=" "+_),g+=_}r.row+10?(n.selection.moveCursorTo(e.row,e.column),n.selection.selectTo(e.row,e.column+s)):(i=n.session.doc.getLine(e.row).length>i?i+1:i,n.selection.moveCursorTo(e.row,i))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:a(null,null),exec:function(n){var t=n.session.doc.getLength()-1,e=n.session.doc.getLine(t).length,r=n.selection.rangeList.ranges,i=[];r.length<1&&(r=[n.selection.getRange()]);for(var o=0;o0&&this.$blockScrolling--;var F=v&&v.scrollIntoView;if(F){switch(F){case"center-animate":F="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var E=this.selection.getRange(),f=this.renderer.layerConfig;(E.start.row>=f.lastRow||E.end.row<=f.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}F=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(d){if(this.$mergeUndoDeltas){var v=this.prevOp,F=this.$mergeableCommands,E=v.command&&d.command.name==v.command.name;if(d.command.name=="insertstring"){var f=d.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),E=E&&this.mergeNextCommand&&(!/\s/.test(f)||/\s/.test(v.args)),this.mergeNextCommand=!0}else E=E&&F.indexOf(d.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(E=!1),E?this.session.mergeUndoDeltas=!0:F.indexOf(d.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(d,v){if(d&&typeof d=="string"){this.$keybindingId=d;var F=this;y.loadModule(["keybinding",d],function(E){F.$keybindingId==d&&F.keyBinding.setKeyboardHandler(E&&E.handler),v&&v()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(d),v&&v()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(d){if(this.session!=d){this.curOp&&this.endOperation(),this.curOp={};var v=this.session;if(v){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var F=this.session.getSelection();F.off("changeCursor",this.$onCursorChange),F.off("changeSelection",this.$onSelectionChange)}this.session=d,d?(this.$onDocumentChange=this.onDocumentChange.bind(this),d.on("change",this.$onDocumentChange),this.renderer.setSession(d),this.$onChangeMode=this.onChangeMode.bind(this),d.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),d.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),d.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),d.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),d.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),d.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=d.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(d)),this._signal("changeSession",{session:d,oldSession:v}),this.curOp=null,v&&v._signal("changeEditor",{oldEditor:this}),d&&d._signal("changeEditor",{editor:this}),d&&d.bgTokenizer&&d.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(d,v){return this.session.doc.setValue(d),v?v==1?this.navigateFileEnd():v==-1&&this.navigateFileStart():this.selectAll(),d},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(d){this.renderer.onResize(d)},this.setTheme=function(d,v){this.renderer.setTheme(d,v)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(d){this.renderer.setStyle(d)},this.unsetStyle=function(d){this.renderer.unsetStyle(d)},this.getFontSize=function(){return this.getOption("fontSize")||u.computedStyle(this.container,"fontSize")},this.setFontSize=function(d){this.setOption("fontSize",d)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var d=this;this.$highlightPending=!0,setTimeout(function(){d.$highlightPending=!1;var v=d.session;if(!(!v||!v.bgTokenizer)){var F=v.findMatchingBracket(d.getCursorPosition());if(F)var E=new s(F.row,F.column,F.row,F.column+1);else if(v.$mode.getMatching)var E=v.$mode.getMatching(d.session);E&&(v.$bracketHighlight=v.addMarker(E,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var d=this;this.$highlightTagPending=!0,setTimeout(function(){d.$highlightTagPending=!1;var v=d.session;if(!(!v||!v.bgTokenizer)){var F=d.getCursorPosition(),E=new m(d.session,F.row,F.column),f=E.getCurrentToken();if(!f||!/\b(?:tag-open|tag-name)/.test(f.type)){v.removeMarker(v.$tagHighlight),v.$tagHighlight=null;return}if(!(f.type.indexOf("tag-open")!=-1&&(f=E.stepForward(),!f))){var A=f.value,x=0,S=E.stepBackward();if(S.value=="<")do S=f,f=E.stepForward(),f&&f.value===A&&f.type.indexOf("tag-name")!==-1&&(S.value==="<"?x++:S.value==="=0);else{do f=S,S=E.stepBackward(),f&&f.value===A&&f.type.indexOf("tag-name")!==-1&&(S.value==="<"?x++:S.value==="1)&&(v=!1)),d.$highlightLineMarker&&!v)d.removeMarker(d.$highlightLineMarker.id),d.$highlightLineMarker=null;else if(!d.$highlightLineMarker&&v){var F=new s(v.row,v.column,v.row,1/0);F.id=d.addMarker(F,"ace_active-line","screenLine"),d.$highlightLineMarker=F}else v&&(d.$highlightLineMarker.start.row=v.row,d.$highlightLineMarker.end.row=v.row,d.$highlightLineMarker.start.column=v.column,d._signal("changeBackMarker"))},this.onSelectionChange=function(d){var v=this.session;if(v.$selectionMarker&&v.removeMarker(v.$selectionMarker),v.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var F=this.selection.getRange(),E=this.getSelectionStyle();v.$selectionMarker=v.addMarker(F,"ace_selection",E)}var f=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(f),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var d=this.session,v=this.getSelectionRange();if(!(v.isEmpty()||v.isMultiLine())){var F=v.start.column-1,E=v.end.column+1,f=d.getLine(v.start.row),A=f.length,x=f.substring(Math.max(F,0),Math.min(E,A));if(!(F>=0&&/^[\w\d]/.test(x)||E<=A&&/[\w\d]$/.test(x))&&(x=f.substring(v.start.column,v.end.column),!!/^[\w\d]+$/.test(x))){var S=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:x});return S}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(d){this.renderer.updateText(),this._emit("changeMode",d)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var d=this.getSelectedText();return this._signal("copy",d),d},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(d,v){var F={text:d,event:v};this.commands.exec("paste",this,F)},this.$handlePaste=function(d){typeof d=="string"&&(d={text:d}),this._signal("paste",d);var v=d.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(v);else{var F=v.split(/\r\n|\r|\n/),E=this.selection.rangeList.ranges;if(F.length>E.length||F.length<2||!F[1])return this.commands.exec("insertstring",this,v);for(var f=E.length;f--;){var A=E[f];A.isEmpty()||this.session.remove(A),this.session.insert(A.start,F[f])}}},this.execCommand=function(d,v){return this.commands.exec(d,this,v)},this.insert=function(d,v){var F=this.session,E=F.getMode(),f=this.getCursorPosition();if(this.getBehavioursEnabled()&&!v){var A=E.transformAction(F.getState(f.row),"insertion",this,F,d);A&&(d!==A.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),d=A.text)}if(d==" "&&(d=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&d.indexOf(` +`)==-1){var x=new s.fromPoints(f,f);x.end.column+=d.length,this.session.remove(x)}}else{var x=this.getSelectionRange();f=this.session.remove(x),this.clearSelection()}if(d==` +`||d==`\r +`){var D=F.getLine(f.row);if(f.column>D.search(/\S|$/)){var S=D.substr(f.column).search(/\S|$/);F.doc.removeInLine(f.row,f.column,f.column+S)}}this.clearSelection();var $=f.column,B=F.getState(f.row),D=F.getLine(f.row),O=E.checkOutdent(B,D,d),I=F.insert(f,d);if(A&&A.selection&&(A.selection.length==2?this.selection.setSelectionRange(new s(f.row,$+A.selection[0],f.row,$+A.selection[1])):this.selection.setSelectionRange(new s(f.row+A.selection[0],A.selection[1],f.row+A.selection[2],A.selection[3]))),F.getDocument().isNewLine(d)){var H=E.getNextLineIndent(B,D.slice(0,f.column),F.getTabString());F.insert({row:f.row+1,column:0},H)}O&&E.autoOutdent(B,F,f.row)},this.onTextInput=function(d){this.keyBinding.onTextInput(d)},this.onCommandKey=function(d,v,F){this.keyBinding.onCommandKey(d,v,F)},this.setOverwrite=function(d){this.session.setOverwrite(d)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(d){this.setOption("scrollSpeed",d)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(d){this.setOption("dragDelay",d)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(d){this.setOption("selectionStyle",d)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(d){this.setOption("highlightActiveLine",d)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(d){this.setOption("highlightGutterLine",d)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(d){this.setOption("highlightSelectedWord",d)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(d){this.renderer.setAnimatedScroll(d)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(d){this.renderer.setShowInvisibles(d)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(d){this.renderer.setDisplayIndentGuides(d)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(d){this.renderer.setShowPrintMargin(d)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(d){this.renderer.setPrintMarginColumn(d)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(d){this.setOption("readOnly",d)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(d){this.setOption("behavioursEnabled",d)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(d){this.setOption("wrapBehavioursEnabled",d)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(d){this.setOption("showFoldWidgets",d)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(d){this.setOption("fadeFoldWidgets",d)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(d){this.selection.isEmpty()&&(d=="left"?this.selection.selectLeft():this.selection.selectRight());var v=this.getSelectionRange();if(this.getBehavioursEnabled()){var F=this.session,E=F.getState(v.start.row),f=F.getMode().transformAction(E,"deletion",this,F,v);if(v.end.column===0){var A=F.getTextRange(v);if(A[A.length-1]==` +`){var x=F.getLine(v.end.row);/^\s+$/.test(x)&&(v.end.column=x.length)}}f&&(v=f)}this.session.remove(v),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var d=this.getSelectionRange();d.start.column==d.end.column&&d.start.row==d.end.row&&(d.end.column=0,d.end.row++),this.session.remove(d),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var d=this.getCursorPosition();this.insert(` +`),this.moveCursorToPosition(d)},this.transposeLetters=function(){if(this.selection.isEmpty()){var d=this.getCursorPosition(),v=d.column;if(v!==0){var F=this.session.getLine(d.row),E,f;vS.toLowerCase()?1:0});for(var f=new s(0,0,0,0),E=d.first;E<=d.last;E++){var A=v.getLine(E);f.start.row=E,f.end.row=E,f.end.column=A.length,v.replace(f,F[E-d.first])}},this.toggleCommentLines=function(){var d=this.session.getState(this.getCursorPosition().row),v=this.$getSelectedRows();this.session.getMode().toggleCommentLines(d,this.session,v.first,v.last)},this.toggleBlockComment=function(){var d=this.getCursorPosition(),v=this.session.getState(d.row),F=this.getSelectionRange();this.session.getMode().toggleBlockComment(v,this.session,F,d)},this.getNumberAt=function(d,v){var F=/[\-]?[0-9]+(?:\.[0-9]+)?/g;F.lastIndex=0;for(var E=this.session.getLine(d);F.lastIndex=v){var A={value:f[0],start:f.index,end:f.index+f[0].length};return A}}return null},this.modifyNumber=function(d){var v=this.selection.getCursor().row,F=this.selection.getCursor().column,E=new s(v,F-1,v,F),f=this.session.getTextRange(E);if(!isNaN(parseFloat(f))&&isFinite(f)){var A=this.getNumberAt(v,F);if(A){var x=A.value.indexOf(".")>=0?A.start+A.value.indexOf(".")+1:A.end,S=A.start+A.value.length-x,$=parseFloat(A.value);$*=Math.pow(10,S),x!==A.end&&FH+1)break;H=N.last}for(D--,S=this.session.$moveLines(I,H,v?0:d),v&&d==-1&&(O=D+1);O<=D;)x[O].moveBy(S,0),O++;v||(S=0),$+=S}f.fromOrientedRange(f.ranges[0]),f.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(d){return d=(d||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(d.start.row),last:this.session.getRowFoldEnd(d.end.row)}},this.onCompositionStart=function(d){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(d){this.renderer.setCompositionText(d)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(d){return d>=this.getFirstVisibleRow()&&d<=this.getLastVisibleRow()},this.isRowFullyVisible=function(d){return d>=this.renderer.getFirstFullyVisibleRow()&&d<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(d,v){var F=this.renderer,E=this.renderer.layerConfig,f=d*Math.floor(E.height/E.lineHeight);this.$blockScrolling++,v===!0?this.selection.$moveSelection(function(){this.moveCursorBy(f,0)}):v===!1&&(this.selection.moveCursorBy(f,0),this.selection.clearSelection()),this.$blockScrolling--;var A=F.scrollTop;F.scrollBy(0,f*E.lineHeight),v!=null&&F.scrollCursorIntoView(null,.5),F.animateScrolling(A)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(d){this.renderer.scrollToRow(d)},this.scrollToLine=function(d,v,F,E){this.renderer.scrollToLine(d,v,F,E)},this.centerSelection=function(){var d=this.getSelectionRange(),v={row:Math.floor(d.start.row+(d.end.row-d.start.row)/2),column:Math.floor(d.start.column+(d.end.column-d.start.column)/2)};this.renderer.alignCursor(v,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(d,v){this.selection.moveCursorTo(d,v)},this.moveCursorToPosition=function(d){this.selection.moveCursorToPosition(d)},this.jumpToMatching=function(d,v){var F=this.getCursorPosition(),E=new m(this.session,F.row,F.column),f=E.getCurrentToken(),A=f||E.stepForward();if(A){var x,S=!1,$={},B=F.column-A.start,D,O={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(A.value.match(/[{}()\[\]]/g)){for(;B=0;--A)this.$tryReplace(F[A],d)&&E++;return this.selection.setSelectionRange(f),this.$blockScrolling-=1,E},this.$tryReplace=function(d,v){var F=this.session.getTextRange(d);return v=this.$search.replace(F,v),v!==null?(d.end=this.session.replace(d,v),d):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(d,v,F){v||(v={}),typeof d=="string"||d instanceof RegExp?v.needle=d:typeof d=="object"&&c.mixin(v,d);var E=this.selection.getRange();v.needle==null&&(d=this.session.getTextRange(E)||this.$search.$options.needle,d||(E=this.session.getWordRange(E.start.row,E.start.column),d=this.session.getTextRange(E)),this.$search.set({needle:d})),this.$search.set(v),v.start||this.$search.set({start:E});var f=this.$search.find(this.session);if(v.preventScroll)return f;if(f)return this.revealRange(f,F),f;v.backwards?E.start=E.end:E.end=E.start,this.selection.setRange(E)},this.findNext=function(d,v){this.find({skipCurrent:!0,backwards:!1},d,v)},this.findPrevious=function(d,v){this.find(d,{skipCurrent:!0,backwards:!0},v)},this.revealRange=function(d,v){this.$blockScrolling+=1,this.session.unfold(d),this.selection.setSelectionRange(d),this.$blockScrolling-=1;var F=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(d.start,d.end,.5),v!==!1&&this.renderer.animateScrolling(F)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(d){if(d){var v,F=this,E=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var f=this.$scrollAnchor;f.style.cssText="position:absolute",this.container.insertBefore(f,this.container.firstChild);var A=this.on("changeSelection",function(){E=!0}),x=this.renderer.on("beforeRender",function(){E&&(v=F.renderer.container.getBoundingClientRect())}),S=this.renderer.on("afterRender",function(){if(E&&v&&(F.isFocused()||F.searchBox&&F.searchBox.isFocused())){var $=F.renderer,B=$.$cursorLayer.$pixelPos,D=$.layerConfig,O=B.top-D.offset;B.top>=0&&O+v.top<0?E=!0:B.topwindow.innerHeight?E=!1:E=null,E!=null&&(f.style.top=O+"px",f.style.left=B.left+"px",f.style.height=D.lineHeight+"px",f.scrollIntoView(E)),E=v=null}});this.setAutoScrollEditorIntoView=function($){$||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",A),this.renderer.off("afterRender",S),this.renderer.off("beforeRender",x))}}},this.$resetCursorStyle=function(){var d=this.$cursorStyle||"ace",v=this.renderer.$cursorLayer;v&&(v.setSmoothBlinking(/smooth/.test(d)),v.isBlinking=!this.$readOnly&&d!="wide",u.setCssClass(v.element,"ace_slim-cursors",/slim/.test(d)))}}.call(w.prototype),y.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(d){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:d})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(d){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(d){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(d){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(d){this.setAutoScrollEditorIntoView(d)}},keyboardHandler:{set:function(d){this.setKeyboardHandler(d)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),b.Editor=w});ace.define("ace/undomanager",["require","exports","module"],function(p,b,h){"use strict";var c=function(){this.reset()};(function(){this.execute=function(n){var t=n.args[0];this.$doc=n.args[1],n.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(n){var t=this.$undoStack.pop(),e=null;return t&&(e=this.$doc.undoChanges(t,n),this.$redoStack.push(t),this.dirtyCounter--),e},this.redo=function(n){var t=this.$redoStack.pop(),e=null;return t&&(e=this.$doc.redoChanges(this.$deserializeDeltas(t),n),this.$undoStack.push(t),this.dirtyCounter++),e},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return this.dirtyCounter===0},this.$serializeDeltas=function(n){return a(n,u)},this.$deserializeDeltas=function(n){return a(n,l)};function u(n){return{action:n.action,start:n.start,end:n.end,lines:n.lines.length==1?null:n.lines,text:n.lines.length==1?n.lines[0]:null}}function l(n){return{action:n.action,start:n.start,end:n.end,lines:n.lines||[n.text]}}function a(n,t){for(var e=new Array(n.length),r=0;rs&&(F=o.end.row+1,o=e.getNextFoldLine(F,o),s=o?o.start.row:1/0),F>i){for(;this.$cells.length>v+1;)d=this.$cells.pop(),this.element.removeChild(d.element);break}d=this.$cells[++v],d||(d={element:null,textNode:null,foldWidget:null},d.element=c.createElement("div"),d.textNode=document.createTextNode(""),d.element.appendChild(d.textNode),this.element.appendChild(d.element),this.$cells[v]=d);var E="ace_gutter-cell ";C[F]&&(E+=C[F]),_[F]&&(E+=_[F]),this.$annotations[F]&&(E+=this.$annotations[F].className),d.element.className!=E&&(d.element.className=E);var f=e.getRowLength(F)*t.lineHeight+"px";if(f!=d.element.style.height&&(d.element.style.height=f),g){var A=g[F];A==null&&(A=g[F]=e.getFoldWidget(F))}if(A){d.foldWidget||(d.foldWidget=c.createElement("span"),d.element.appendChild(d.foldWidget));var E="ace_fold-widget ace_"+A;A=="start"&&F==s&&Fr.right-e.right)return"foldWidgets"}}).call(n.prototype),b.Gutter=n});ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(p,b,h){"use strict";var c=p("../range").Range,u=p("../lib/dom"),l=function(a){this.element=u.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(n){this.$padding=n},this.setSession=function(n){this.session=n},this.setMarkers=function(n){this.markers=n},this.update=function(n){if(n){this.config=n;var t=[];for(var e in this.markers){var r=this.markers[e];if(!r.range){r.update(t,this,this.session,n);continue}var i=r.range.clipRows(n.firstRow,n.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,n),s=this.$padding+(this.session.$bidiHandler.isBidiRow(i.start.row)?this.session.$bidiHandler.getPosLeft(i.start.column):i.start.column*n.characterWidth);r.renderer(t,i,s,o,n)}else r.type=="fullLine"?this.drawFullLineMarker(t,i,r.clazz,n):r.type=="screenLine"?this.drawScreenLineMarker(t,i,r.clazz,n):i.isMultiLine()?r.type=="text"?this.drawTextMarker(t,i,r.clazz,n):this.drawMultiLineMarker(t,i,r.clazz,n):this.session.$bidiHandler.isBidiRow(i.start.row)?this.drawBidiSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",n):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",n)}this.element.innerHTML=t.join("")}},this.$getTop=function(n,t){return(n-t.firstRowScreen)*t.lineHeight};function a(n,t,e,r){return(n?1:0)|(t?2:0)|(e?4:0)|(r?8:0)}this.drawTextMarker=function(n,t,e,r,i){for(var o=this.session,s=t.start.row,g=t.end.row,C=s,_=0,y=0,m=o.getScreenLastRowColumn(C),w=null,d=new c(C,t.start.column,C,y);C<=g;C++)d.start.row=d.end.row=C,d.start.column=C==s?t.start.column:o.getRowWrapIndent(C),d.end.column=m,_=y,y=m,m=C+1m,C==g),this.session.$bidiHandler.isBidiRow(C)?this.drawBidiSingleLineMarker(n,d,w,r,C==g?0:1,i):this.drawSingleLineMarker(n,d,w,r,C==g?0:1,i)},this.drawMultiLineMarker=function(n,t,e,r,i){var o=this.$padding,s,g,C;if(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var _=t.clone();_.end.row=_.start.row,_.end.column=this.session.getLine(_.start.row).length,this.drawBidiSingleLineMarker(n,_,e+" ace_br1 ace_start",r,null,i)}else s=r.lineHeight,g=this.$getTop(t.start.row,r),C=o+t.start.column*r.characterWidth,n.push("
");if(this.session.$bidiHandler.isBidiRow(t.end.row)){var _=t.clone();_.start.row=_.end.row,_.start.column=0,this.drawBidiSingleLineMarker(n,_,e+" ace_br12",r,null,i)}else{var y=t.end.column*r.characterWidth;s=r.lineHeight,g=this.$getTop(t.end.row,r),n.push("
")}if(s=(t.end.row-t.start.row-1)*r.lineHeight,!(s<=0)){g=this.$getTop(t.start.row+1,r);var m=(t.start.column?1:0)|(t.end.column?0:8);n.push("
")}},this.drawSingleLineMarker=function(n,t,e,r,i,o){var s=r.lineHeight,g=(t.end.column+(i||0)-t.start.column)*r.characterWidth,C=this.$getTop(t.start.row,r),_=this.$padding+t.start.column*r.characterWidth;n.push("
")},this.drawBidiSingleLineMarker=function(n,t,e,r,i,o){var s=r.lineHeight,g=this.$getTop(t.start.row,r),C=this.$padding,_=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);_.forEach(function(y){n.push("
")})},this.drawFullLineMarker=function(n,t,e,r,i){var o=this.$getTop(t.start.row,r),s=r.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,r)-o),n.push("
")},this.drawScreenLineMarker=function(n,t,e,r,i){var o=this.$getTop(t.start.row,r),s=r.lineHeight;n.push("
")}}).call(l.prototype),b.Marker=l});ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("../lib/dom"),l=p("../lib/lang"),a=p("../lib/useragent"),n=p("../lib/event_emitter").EventEmitter,t=function(e){this.element=u.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){c.implement(this,n),this.EOF_CHAR="\xB6",this.EOL_CHAR_LF="\xAC",this.EOL_CHAR_CRLF="\xA4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xB7",this.$padding=0,this.$updateEolChar=function(){var e=this.session.doc.getNewLineCharacter()==` +`?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(r){this._signal("changeCharacterSize",r)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles==e?!1:(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides==e?!1:(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var r=this.$tabStrings=[0],i=1;i"+l.stringRepeat(this.TAB_CHAR,i)+""):r.push(l.stringRepeat(" ",i));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var o="ace_indent-guide",s="",g="";if(this.showInvisibles){o+=" ace_invisible",s=" ace_invisible_space",g=" ace_invisible_tab";var C=l.stringRepeat(this.SPACE_CHAR,this.tabSize),_=l.stringRepeat(this.TAB_CHAR,this.tabSize)}else var C=l.stringRepeat(" ",this.tabSize),_=C;this.$tabStrings[" "]=""+C+"",this.$tabStrings[" "]=""+_+""}},this.updateLines=function(e,r,i){(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)&&this.scrollLines(e),this.config=e;for(var o=Math.max(r,e.firstRow),s=Math.min(i,e.lastRow),g=this.element.childNodes,C=0,_=e.firstRow;_m&&(_=y.end.row+1,y=this.session.getNextFoldLine(_,y),m=y?y.start.row:1/0),!(_>s);){var w=g[C++];if(w){var d=[];this.$renderLine(d,_,!this.$useLineGroups(),_==m?y:!1),w.style.height=e.lineHeight*this.session.getRowLength(_)+"px",w.innerHTML=d.join("")}_++}},this.scrollLines=function(e){var r=this.config;if(this.config=e,!r||r.lastRow0;o--)i.removeChild(i.firstChild);if(r.lastRow>e.lastRow)for(var o=this.session.getFoldedRowCount(e.lastRow+1,r.lastRow);o>0;o--)i.removeChild(i.lastChild);if(e.firstRowr.lastRow){var s=this.$renderLinesFragment(e,r.lastRow+1,e.lastRow);i.appendChild(s)}},this.$renderLinesFragment=function(e,r,i){for(var o=this.element.ownerDocument.createDocumentFragment(),s=r,g=this.session.getNextFoldLine(s),C=g?g.start.row:1/0;s>C&&(s=g.end.row+1,g=this.session.getNextFoldLine(s,g),C=g?g.start.row:1/0),!(s>i);){var _=u.createElement("div"),y=[];if(this.$renderLine(y,s,!1,s==C?g:!1),_.innerHTML=y.join(""),this.$useLineGroups())_.className="ace_line_group",o.appendChild(_),_.style.height=e.lineHeight*this.session.getRowLength(s)+"px";else for(;_.firstChild;)o.appendChild(_.firstChild);s++}return o},this.update=function(e){this.config=e;for(var r=[],i=e.firstRow,o=e.lastRow,s=i,g=this.session.getNextFoldLine(s),C=g?g.start.row:1/0;s>C&&(s=g.end.row+1,g=this.session.getNextFoldLine(s,g),C=g?g.start.row:1/0),!(s>o);)this.$useLineGroups()&&r.push("
"),this.$renderLine(r,s,!1,s==C?g:!1),this.$useLineGroups()&&r.push("
"),s++;this.element.innerHTML=r.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,r,i,o){var s=this,g=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C=function(w,d,v,F,E){if(d)return s.showInvisibles?""+l.stringRepeat(s.SPACE_CHAR,w.length)+"":w;if(w=="&")return"&";if(w=="<")return"<";if(w==">")return">";if(w==" "){var f=s.session.getScreenTabSize(r+F);return r+=f-1,s.$tabStrings[f]}else if(w=="\u3000"){var A=s.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",x=s.showInvisibles?s.SPACE_CHAR:"";return r+=1,""+x+""}else return v?""+s.SPACE_CHAR+"":(r+=1,""+w+"")},_=o.replace(g,C);if(this.$textToken[i.type])e.push(_);else{var y="ace_"+i.type.replace(/\./g," ace_"),m="";i.type=="fold"&&(m=" style='width:"+i.value.length*this.config.characterWidth+"px;' "),e.push("",_,"")}return r+o.length},this.renderIndentGuide=function(e,r,i){var o=r.search(this.$indentGuideRe);return o<=0||o>=i?r:r[0]==" "?(o-=o%this.tabSize,e.push(l.stringRepeat(this.$tabStrings[" "],o/this.tabSize)),r.substr(o)):r[0]==" "?(e.push(l.stringRepeat(this.$tabStrings[" "],o)),r.substr(o)):r},this.$renderWrappedLine=function(e,r,i,o){for(var s=0,g=0,C=i[0],_=0,y=0;y=C;)_=this.$renderToken(e,_,m,w.substring(0,C-s)),w=w.substring(C-s),s=C,o||e.push("","
"),e.push(l.stringRepeat("\xA0",i.indent)),g++,_=0,C=i[g]||Number.MAX_VALUE;w.length!=0&&(s+=w.length,_=this.$renderToken(e,_,m,w))}}},this.$renderSimpleLine=function(e,r){var i=0,o=r[0],s=o.value;this.displayIndentGuides&&(s=this.renderIndentGuide(e,s)),s&&(i=this.$renderToken(e,i,o,s));for(var g=1;g"),s.length){var g=this.session.getRowSplitData(r);g&&g.length?this.$renderWrappedLine(e,s,g,i):this.$renderSimpleLine(e,s)}this.showInvisibles&&(o&&(r=o.end.row),e.push("",r==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"")),i||e.push("
")},this.$getFoldLineTokens=function(e,r){var i=this.session,o=[];function s(C,_,y){for(var m=0,w=0;w+C[m].value.length<_;)if(w+=C[m].value.length,m++,m==C.length)return;if(w!=_){var d=C[m].value.substring(_-w);d.length>y-_&&(d=d.substring(0,y-_)),o.push({type:C[m].type,value:d}),w=_+d.length,m+=1}for(;wy?o.push({type:C[m].type,value:d.substring(0,y-w)}):o.push(C[m]),w+=d.length,m+=1}}var g=i.getTokens(e);return r.walk(function(C,_,y,m,w){C!=null?o.push({type:"fold",value:C}):(w&&(g=i.getTokens(_)),g.length&&s(g,m,y))},r.end.row,this.session.getLine(r.end.row).length),o},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(t.prototype),b.Text=t});ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(p,b,h){"use strict";var c=p("../lib/dom"),u,l=function(a){this.element=c.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),u===void 0&&(u=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),c.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(u?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(a){for(var n=this.cursors,t=n.length;t--;)n[t].style.visibility=a?"":"hidden"},this.$updateOpacity=function(a){for(var n=this.cursors,t=n.length;t--;)n[t].style.opacity=a?"":"0"},this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},this.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},this.setSmoothBlinking=function(a){a!=this.smoothBlinking&&!u&&(this.smoothBlinking=a,c.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var a=c.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},this.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},this.hideCursor=function(){this.isVisible=!1,c.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,c.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&c.removeCssClass(this.element,"ace_smooth-blinking"),a(!0),!(!this.isBlinking||!this.blinkInterval||!this.isVisible)){this.smoothBlinking&&setTimeout(function(){c.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var n=function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){a(!0),n()},this.blinkInterval),n()}},this.getPixelPosition=function(a,n){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var t=this.session.documentToScreenPosition(a),e=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,a.row)?this.session.$bidiHandler.getPosLeft(t.column):t.column*this.config.characterWidth),r=(t.row-(n?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:e,top:r}},this.update=function(a){this.config=a;var n=this.session.$selectionMarkers,t=0,e=0;(n===void 0||n.length===0)&&(n=[{cursor:null}]);for(var t=0,r=n.length;ta.height+a.offset||i.top<0)&&t>1)){var o=(this.cursors[e++]||this.addCursor()).style;this.drawCursor?this.drawCursor(o,i,a,n[t],this.session):(o.left=i.left+"px",o.top=i.top+"px",o.width=a.characterWidth+"px",o.height=a.lineHeight+"px")}}for(;this.cursors.length>e;)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s),this.$pixelPos=i,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?c.addCssClass(this.element,"ace_overwrite-cursors"):c.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(l.prototype),b.Cursor=l});ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./lib/dom"),l=p("./lib/event"),a=p("./lib/event_emitter").EventEmitter,n=32768,t=function(i){this.element=u.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=u.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)};(function(){c.implement(this,a),this.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1}}).call(t.prototype);var e=function(i,o){t.call(this,i),this.scrollTop=0,this.scrollHeight=0,o.$scrollbarWidth=this.width=u.scrollbarWidth(i.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};c.inherits(e,t),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var i=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-i)/(this.coeff-i)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(i){this.element.style.height=i+"px"},this.setInnerHeight=this.setScrollHeight=function(i){this.scrollHeight=i,i>n?(this.coeff=n/i,i=n):this.coeff!=1&&(this.coeff=1),this.inner.style.height=i+"px"},this.setScrollTop=function(i){this.scrollTop!=i&&(this.skipEvent=!0,this.scrollTop=i,this.element.scrollTop=i*this.coeff)}}.call(e.prototype);var r=function(i,o){t.call(this,i),this.scrollLeft=0,this.height=o.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};c.inherits(r,t),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(i){this.element.style.width=i+"px"},this.setInnerWidth=function(i){this.inner.style.width=i+"px"},this.setScrollWidth=function(i){this.inner.style.width=i+"px"},this.setScrollLeft=function(i){this.scrollLeft!=i&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=i)}}.call(r.prototype),b.ScrollBar=e,b.ScrollBarV=e,b.ScrollBarH=r,b.VScrollBar=e,b.HScrollBar=r});ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(p,b,h){"use strict";var c=p("./lib/event"),u=function(l,a){this.onRender=l,this.pending=!1,this.changes=0,this.window=a||window};(function(){this.schedule=function(l){if(this.changes=this.changes|l,!this.pending&&this.changes){this.pending=!0;var a=this;c.nextFrame(function(){a.pending=!1;for(var n;n=a.changes;)a.changes=0,a.onRender(n)},this.window)}}}).call(u.prototype),b.RenderLoop=u});ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(p,b,h){var c=p("../lib/oop"),u=p("../lib/dom"),l=p("../lib/lang"),a=p("../lib/useragent"),n=p("../lib/event_emitter").EventEmitter,t=0,e=b.FontMetrics=function(r){this.el=u.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=u.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=u.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),r.appendChild(this.el),t||this.$testFractionalRect(),this.$measureNode.innerHTML=l.stringRepeat("X",t),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){c.implement(this,n),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var r=u.createElement("div");this.$setMeasureNodeStyles(r.style),r.style.width="0.2px",document.documentElement.appendChild(r);var i=r.getBoundingClientRect().width;i>0&&i<1?t=50:t=100,r.parentNode.removeChild(r)},this.$setMeasureNodeStyles=function(r,i){r.width=r.height="auto",r.left=r.top="0px",r.visibility="hidden",r.position="absolute",r.whiteSpace="pre",a.isIE<8?r["font-family"]="inherit":r.font="inherit",r.overflow=i?"hidden":"visible"},this.checkForSizeChanges=function(){var r=this.$measureSizes();if(r&&(this.$characterSize.width!==r.width||this.$characterSize.height!==r.height)){this.$measureNode.style.fontWeight="bold";var i=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=r,this.charSizes=Object.create(null),this.allowBoldFonts=i&&i.width===r.width&&i.height===r.height,this._emit("changeCharacterSize",{data:r})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var r=this;return this.$pollSizeChangesTimer=setInterval(function(){r.checkForSizeChanges()},500)},this.setPolling=function(r){r?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(t===50){var r=null;try{r=this.$measureNode.getBoundingClientRect()}catch{r={width:0,height:0}}var i={height:r.height,width:r.width/t}}else var i={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/t};return i.width===0||i.height===0?null:i},this.$measureCharWidth=function(r){this.$main.innerHTML=l.stringRepeat(r,t);var i=this.$main.getBoundingClientRect();return i.width/t},this.getCharacterWidth=function(r){var i=this.charSizes[r];return i===void 0&&(i=this.charSizes[r]=this.$measureCharWidth(r)/this.$characterSize.width),i},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(e.prototype)});ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./lib/dom"),l=p("./config"),a=p("./lib/useragent"),n=p("./layer/gutter").Gutter,t=p("./layer/marker").Marker,e=p("./layer/text").Text,r=p("./layer/cursor").Cursor,i=p("./scrollbar").HScrollBar,o=p("./scrollbar").VScrollBar,s=p("./renderloop").RenderLoop,g=p("./layer/font_metrics").FontMetrics,C=p("./lib/event_emitter").EventEmitter,_=`.ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}`;u.importCssString(_,"ace_editor.css");var y=function(m,w){var d=this;this.container=m||u.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,u.addCssClass(this.container,"ace_editor"),this.setTheme(w),this.$gutter=u.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=u.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=u.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new n(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new t(this.content);var v=this.$textLayer=new e(this.content);this.canvas=v.element,this.$markerFront=new t(this.content),this.$cursorLayer=new r(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new i(this.container,this),this.scrollBarV.addEventListener("scroll",function(F){d.$scrollAnimation||d.session.setScrollTop(F.data-d.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(F){d.$scrollAnimation||d.session.setScrollLeft(F.data-d.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(F){d.updateCharacterSize(),d.onResize(!0,d.gutterWidth,d.$size.width,d.$size.height),d._signal("changeCharacterSize",F)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new s(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),l.resetOptions(this),l._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,c.implement(this,C),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(m){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=m,m&&this.scrollMargin.top&&m.getScrollTop()<=0&&m.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(m),this.$markerBack.setSession(m),this.$markerFront.setSession(m),this.$gutterLayer.setSession(m),this.$textLayer.setSession(m),m&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(m,w,d){if(w===void 0&&(w=1/0),this.$changedLines?(this.$changedLines.firstRow>m&&(this.$changedLines.firstRow=m),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(m){m?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(m,w,d,v){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=m?1:0;var F=this.container;v||(v=F.clientHeight||F.scrollHeight),d||(d=F.clientWidth||F.scrollWidth);var E=this.$updateCachedSize(m,w,d,v);if(!this.$size.scrollerHeight||!d&&!v)return this.resizing=0;m&&(this.$gutterLayer.$padding=null),m?this.$renderChanges(E|this.$changes,!0):this.$loop.schedule(E|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(m,w,d,v){v-=this.$extraHeight||0;var F=0,E=this.$size,f={width:E.width,height:E.height,scrollerHeight:E.scrollerHeight,scrollerWidth:E.scrollerWidth};return v&&(m||E.height!=v)&&(E.height=v,F|=this.CHANGE_SIZE,E.scrollerHeight=E.height,this.$horizScroll&&(E.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",F=F|this.CHANGE_SCROLL),d&&(m||E.width!=d)&&(F|=this.CHANGE_SIZE,E.width=d,w==null&&(w=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=w,this.scrollBarH.element.style.left=this.scroller.style.left=w+"px",E.scrollerWidth=Math.max(0,d-w-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||m)&&(F|=this.CHANGE_FULL)),E.$dirty=!d||!v,F&&this._signal("resize",f),F},this.onGutterResize=function(){var m=this.$showGutter?this.$gutter.offsetWidth:0;m!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,m,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var m=this.$size.scrollerWidth-this.$padding*2,w=Math.floor(m/this.characterWidth);return this.session.adjustWrapLimit(w,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(m){this.setOption("animatedScroll",m)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(m){this.setOption("showInvisibles",m),this.session.$bidiHandler.setShowInvisibles(m)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(m){this.setOption("displayIndentGuides",m)},this.setShowPrintMargin=function(m){this.setOption("showPrintMargin",m)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(m){this.setOption("printMarginColumn",m)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(m){return this.setOption("showGutter",m)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(m){this.setOption("fadeFoldWidgets",m)},this.setHighlightGutterLine=function(m){this.setOption("highlightGutterLine",m)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var m=this.$cursorLayer.$pixelPos,w=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var d=this.session.selection.getCursor();d.column=0,m=this.$cursorLayer.getPixelPosition(d,!0),w*=this.session.getRowLength(d.row)}this.$gutterLineHighlight.style.top=m.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=w+"px"},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var m=u.createElement("div");m.className="ace_layer ace_print-margin-layer",this.$printMarginEl=u.createElement("div"),this.$printMarginEl.className="ace_print-margin",m.appendChild(this.$printMarginEl),this.content.insertBefore(m,this.content.firstChild)}var w=this.$printMarginEl.style;w.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",w.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var m=this.layerConfig,w=this.$cursorLayer.$pixelPos.top,d=this.$cursorLayer.$pixelPos.left;w-=m.offset;var v=this.textarea.style,F=this.lineHeight;if(w<0||w>m.height-F){v.top=v.left="0";return}var E=this.characterWidth;if(this.$composition){var f=this.textarea.value.replace(/^\x01+/,"");E*=this.session.$getStringScreenWidth(f)[0]+2,F+=2}d-=this.scrollLeft,d>this.$size.scrollerWidth-E&&(d=this.$size.scrollerWidth-E),d+=this.gutterWidth,v.height=F+"px",v.width=E+"px",v.left=Math.min(d,this.$size.scrollerWidth-E)+"px",v.top=Math.min(w,this.$size.height-F)+"px"}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var m=this.layerConfig,w=m.lastRow,d=this.session.documentToScreenRow(w,0)*m.lineHeight;return d-this.session.getScrollTop()>m.height-m.lineHeight?w-1:w},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(m){this.$padding=m,this.$textLayer.setPadding(m),this.$cursorLayer.setPadding(m),this.$markerFront.setPadding(m),this.$markerBack.setPadding(m),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(m,w,d,v){var F=this.scrollMargin;F.top=m|0,F.bottom=w|0,F.right=v|0,F.left=d|0,F.v=F.top+F.bottom,F.h=F.left+F.right,F.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-F.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(m){this.setOption("hScrollBarAlwaysVisible",m)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(m){this.setOption("vScrollBarAlwaysVisible",m)},this.$updateScrollBarV=function(){var m=this.layerConfig.maxHeight,w=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(m-=(w-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>m-w&&(m=this.scrollTop+w,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(m+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(m,w){if(this.$changes&&(m|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!m&&!w){this.$changes|=m;return}if(this.$size.$dirty)return this.$changes|=m,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var d=this.layerConfig;if(m&this.CHANGE_FULL||m&this.CHANGE_SIZE||m&this.CHANGE_TEXT||m&this.CHANGE_LINES||m&this.CHANGE_SCROLL||m&this.CHANGE_H_SCROLL){if(m|=this.$computeLayerConfig(),d.firstRow!=this.layerConfig.firstRow&&d.firstRowScreen==this.layerConfig.firstRowScreen){var v=this.scrollTop+(d.firstRow-this.layerConfig.firstRow)*this.lineHeight;v>0&&(this.scrollTop=v,m=m|this.CHANGE_SCROLL,m|=this.$computeLayerConfig())}d=this.layerConfig,this.$updateScrollBarV(),m&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-d.offset+"px",this.content.style.marginTop=-d.offset+"px",this.content.style.width=d.width+2*this.$padding+"px",this.content.style.height=d.minHeight+"px"}if(m&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),m&this.CHANGE_FULL){this.$textLayer.update(d),this.$showGutter&&this.$gutterLayer.update(d),this.$markerBack.update(d),this.$markerFront.update(d),this.$cursorLayer.update(d),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this._signal("afterRender");return}if(m&this.CHANGE_SCROLL){m&this.CHANGE_TEXT||m&this.CHANGE_LINES?this.$textLayer.update(d):this.$textLayer.scrollLines(d),this.$showGutter&&this.$gutterLayer.update(d),this.$markerBack.update(d),this.$markerFront.update(d),this.$cursorLayer.update(d),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),this._signal("afterRender");return}m&this.CHANGE_TEXT?(this.$textLayer.update(d),this.$showGutter&&this.$gutterLayer.update(d)):m&this.CHANGE_LINES?(this.$updateLines()||m&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(d):(m&this.CHANGE_TEXT||m&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(d),m&this.CHANGE_CURSOR&&(this.$cursorLayer.update(d),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),m&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(d),m&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(d),this._signal("afterRender")},this.$autosize=function(){var m=this.session.getScreenLength()*this.lineHeight,w=this.$maxLines*this.lineHeight,d=Math.min(w,Math.max((this.$minLines||1)*this.lineHeight,m))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(d+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&d>this.$maxPixelHeight&&(d=this.$maxPixelHeight);var v=m>w;if(d!=this.desiredHeight||this.$size.height!=this.desiredHeight||v!=this.$vScroll){v!=this.$vScroll&&(this.$vScroll=v,this.scrollBarV.setVisible(v));var F=this.container.clientWidth;this.container.style.height=d+"px",this.$updateCachedSize(!0,this.$gutterWidth,F,d),this.desiredHeight=d,this._signal("autosize")}},this.$computeLayerConfig=function(){var m=this.session,w=this.$size,d=w.height<=2*this.lineHeight,v=this.session.getScreenLength(),F=v*this.lineHeight,E=this.$getLongestLine(),f=!d&&(this.$hScrollBarAlwaysVisible||w.scrollerWidth-E-2*this.$padding<0),A=this.$horizScroll!==f;A&&(this.$horizScroll=f,this.scrollBarH.setVisible(f));var x=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var S=this.scrollTop%this.lineHeight,$=w.scrollerHeight+this.lineHeight,B=!this.$maxLines&&this.$scrollPastEnd?(w.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;F+=B;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,F-w.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,E+2*this.$padding-w.scrollerWidth+D.right)));var O=!d&&(this.$vScrollBarAlwaysVisible||w.scrollerHeight-F+B<0||this.scrollTop>D.top),I=x!==O;I&&(this.$vScroll=O,this.scrollBarV.setVisible(O));var H=Math.ceil($/this.lineHeight)-1,N=Math.max(0,Math.round((this.scrollTop-S)/this.lineHeight)),L=N+H,U,T,M=this.lineHeight;N=m.screenToDocumentRow(N,0);var k=m.getFoldLine(N);k&&(N=k.start.row),U=m.documentToScreenRow(N,0),T=m.getRowLength(N)*M,L=Math.min(m.screenToDocumentRow(L,0),m.getLength()-1),$=w.scrollerHeight+m.getRowLength(L)*M+T,S=this.scrollTop-U*M;var z=0;return this.layerConfig.width!=E&&(z=this.CHANGE_H_SCROLL),(A||I)&&(z=this.$updateCachedSize(!0,this.gutterWidth,w.width,w.height),this._signal("scrollbarVisibilityChanged"),I&&(E=this.$getLongestLine())),this.layerConfig={width:E,padding:this.$padding,firstRow:N,firstRowScreen:U,lastRow:L,lineHeight:M,characterWidth:this.characterWidth,minHeight:$,maxHeight:F,offset:S,gutterOffset:M?Math.max(0,Math.ceil((S+w.height-w.scrollerHeight)/M)):0,height:this.$size.scrollerHeight},z},this.$updateLines=function(){if(this.$changedLines){var m=this.$changedLines.firstRow,w=this.$changedLines.lastRow;this.$changedLines=null;var d=this.layerConfig;if(!(m>d.lastRow+1)&&!(wE?(w&&x+f>E+this.lineHeight&&(E-=w*this.$size.scrollerHeight),E===0&&(E=-this.scrollMargin.top),this.session.setScrollTop(E)):x+this.$size.scrollerHeight-AF?(F=1-this.scrollMargin.top||w>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||m<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||m>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(m,w){var d=this.scroller.getBoundingClientRect(),v=m+this.scrollLeft-d.left-this.$padding,F=v/this.characterWidth,E=Math.floor((w+this.scrollTop-d.top)/this.lineHeight),f=Math.round(F);return{row:E,column:f,side:F-f>0?1:-1,offsetX:v}},this.screenToTextCoordinates=function(m,w){var d=this.scroller.getBoundingClientRect(),v=m+this.scrollLeft-d.left-this.$padding,F=Math.round(v/this.characterWidth),E=(w+this.scrollTop-d.top)/this.lineHeight;return this.session.screenToDocumentPosition(E,Math.max(F,0),v)},this.textToScreenCoordinates=function(m,w){var d=this.scroller.getBoundingClientRect(),v=this.session.documentToScreenPosition(m,w),F=this.$padding+(this.session.$bidiHandler.isBidiRow(v.row,m)?this.session.$bidiHandler.getPosLeft(v.column):Math.round(v.column*this.characterWidth)),E=v.row*this.lineHeight;return{pageX:d.left+F-this.scrollLeft,pageY:d.top+E-this.scrollTop}},this.visualizeFocus=function(){u.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){u.removeCssClass(this.container,"ace_focus")},this.showComposition=function(m){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,u.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(m){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(u.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(m,w){var d=this;if(this.$themeId=m,d._dispatchEvent("themeChange",{theme:m}),!m||typeof m=="string"){var v=m||this.$options.theme.initialValue;l.loadModule(["theme",v],F)}else F(m);function F(E){if(d.$themeId!=m)return w&&w();if(!E||!E.cssClass)throw new Error("couldn't load module "+m+" or it didn't call define");u.importCssString(E.cssText,E.cssClass,d.container.ownerDocument),d.theme&&u.removeCssClass(d.container,d.theme.cssClass);var f="padding"in E?E.padding:"padding"in(d.theme||{})?4:d.$padding;d.$padding&&f!=d.$padding&&d.setPadding(f),d.$theme=E.cssClass,d.theme=E,u.addCssClass(d.container,E.cssClass),u.setCssClass(d.container,"ace_dark",E.isDark),d.$size&&(d.$size.width=0,d.$updateSizeAsync()),d._dispatchEvent("themeLoaded",{theme:E}),w&&w()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(m,w){u.setCssClass(this.container,m,w!==!1)},this.unsetStyle=function(m){u.removeCssClass(this.container,m)},this.setCursorStyle=function(m){this.scroller.style.cursor!=m&&(this.scroller.style.cursor=m)},this.setMouseCursor=function(m){this.scroller.style.cursor=m},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(y.prototype),l.defineOptions(y.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(m){this.$textLayer.setShowInvisibles(m)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(m){typeof m=="number"&&(this.$printMarginColumn=m),this.$showPrintMargin=!!m,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(m){this.$gutter.style.display=m?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(m){u.setCssClass(this.$gutter,"ace_fade-fold-widgets",m)},initialValue:!1},showFoldWidgets:{set:function(m){this.$gutterLayer.setShowFoldWidgets(m)},initialValue:!0},showLineNumbers:{set:function(m){this.$gutterLayer.setShowLineNumbers(m),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(m){this.$textLayer.setDisplayIndentGuides(m)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(m){if(!this.$gutterLineHighlight){this.$gutterLineHighlight=u.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",this.$gutter.appendChild(this.$gutterLineHighlight);return}this.$gutterLineHighlight.style.display=m?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(m){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(m){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(m){typeof m=="number"&&(m=m+"px"),this.container.style.fontSize=m,this.updateFontSize()},initialValue:12},fontFamily:{set:function(m){this.container.style.fontFamily=m,this.updateFontSize()}},maxLines:{set:function(m){this.updateFull()}},minLines:{set:function(m){this.updateFull()}},maxPixelHeight:{set:function(m){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(m){m=+m||0,this.$scrollPastEnd!=m&&(this.$scrollPastEnd=m,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(m){this.$gutterLayer.$fixedWidth=!!m,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(m){this.setTheme(m)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),b.VirtualRenderer=y});ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("../lib/net"),l=p("../lib/event_emitter").EventEmitter,a=p("../config");function n(i,o){var s=o.src;""+u.qualifyURL(i);try{return new Blob([s],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,C=new g;return C.append(s),C.getBlob("application/javascript")}}function t(i,o){var s=n(i,o),g=window.URL||window.webkitURL,C=g.createObjectURL(s);return new Worker(C)}var e=function(i,o,s,g,C){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),p.nameToUrl&&!p.toUrl&&(p.toUrl=p.nameToUrl),a.get("packaged")||!p.toUrl)g=g||a.moduleUrl(o.id,"worker");else{var _=this.$normalizePath;g=g||_(p.toUrl("ace/worker/worker.js",null,"_"));var y={};i.forEach(function(m){y[m]=_(p.toUrl(m,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=t(g,o),C&&this.send("importScripts",C),this.$worker.postMessage({init:!0,tlns:y,module:o.id,classname:s}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){c.implement(this,l),this.onMessage=function(i){var o=i.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var s=this.callbacks[o.id];s&&(s(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(i){window.console&&console.error&&console.error(i)},this.$normalizePath=function(i){return u.qualifyURL(i)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(i,o){this.$worker.postMessage({command:i,args:o})},this.call=function(i,o,s){if(s){var g=this.callbackId++;this.callbacks[g]=s,o.push(g)}this.send(i,o)},this.emit=function(i,o){try{this.$worker.postMessage({event:i,data:{data:o.data}})}catch(s){console.error(s.stack)}},this.attachToDocument=function(i){this.$doc&&this.terminate(),this.$doc=i,this.call("setValue",[i.getValue()]),i.on("change",this.changeListener)},this.changeListener=function(i){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),i.action=="insert"?this.deltaQueue.push(i.start,i.lines):this.deltaQueue.push(i.start,i.end)},this.$sendDeltaQueue=function(){var i=this.deltaQueue;i&&(this.deltaQueue=null,i.length>50&&i.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:i}))}}).call(e.prototype);var r=function(i,o,s){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var g=null,C=!1,_=Object.create(l),y=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(w){y.messageBuffer.push(w),g&&(C?setTimeout(m):m())},this.setEmitSync=function(w){C=w};var m=function(){var w=y.messageBuffer.shift();w.command?g[w.command].apply(g,w.args):w.event&&_._signal(w.event,w.data)};_.postMessage=function(w){y.onMessage({data:w})},_.callback=function(w,d){this.postMessage({type:"call",id:d,data:w})},_.emit=function(w,d){this.postMessage({type:"event",name:w,data:d})},a.loadModule(["worker",o],function(w){for(g=new w[s](_);y.messageBuffer.length;)m()})};r.prototype=e.prototype,b.UIWorkerClient=r,b.WorkerClient=e,b.createWorker=t});ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(p,b,h){"use strict";var c=p("./range").Range,u=p("./lib/event_emitter").EventEmitter,l=p("./lib/oop"),a=function(n,t,e,r,i,o){var s=this;this.length=t,this.session=n,this.doc=n.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=e;var g=n.getUndoManager().$undoStack||n.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=g.length,this.setup(),n.selection.on("changeCursor",this.$onCursorChange)};(function(){l.implement(this,u),this.setup=function(){var n=this,t=this.doc,e=this.session;this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=e.addMarker(new c(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(i){var o=t.createAnchor(i.row,i.column);o.$insertRight=!0,o.detach(),n.others.push(o)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var n=this.session,t=this;this.othersActive=!0,this.others.forEach(function(e){e.markerId=n.addMarker(new c(e.row,e.column,e.row,e.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var n=0;n=this.pos.column&&t.start.column<=this.pos.column+this.length+1,i=t.start.column-this.pos.column;if(this.updateAnchors(n),r&&(this.length+=e),r&&!this.session.$fromUndo){if(n.action==="insert")for(var o=this.others.length-1;o>=0;o--){var s=this.others[o],g={row:s.row,column:s.column+i};this.doc.insertMergedLines(g,n.lines)}else if(n.action==="remove")for(var o=this.others.length-1;o>=0;o--){var s=this.others[o],g={row:s.row,column:s.column+i};this.doc.remove(new c(g.row,g.column,g.row,g.column-e))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(n){this.pos.onChange(n);for(var t=this.others.length;t--;)this.others[t].onChange(n);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var n=this,t=this.session,e=function(i,o){t.removeMarker(i.markerId),i.markerId=t.addMarker(new c(i.row,i.column,i.row,i.column+n.length),o,null,!1)};e(this.pos,this.mainClass);for(var r=this.others.length;r--;)e(this.others[r],this.othersClass)}},this.onCursorChange=function(n){if(!(this.$updating||!this.session)){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",n)):(this.hideOtherMarkers(),this._emit("cursorLeave",n))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var n=this.session.getUndoManager(),t=(n.$undoStack||n.$undostack).length-this.$undoStackDepth,e=0;e1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(m)}},this.toSingleRange=function(m){m=m||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),m&&this.fromOrientedRange(m)},this.substractPoint=function(m){var w=this.rangeList.substractPoint(m);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var m=this.rangeList.merge();m.length?this.$onRemoveRange(m):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(m){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(m),this._signal("addRange",{range:m})},this.$onRemoveRange=function(m){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();m.push(w),this.rangeCount=0}for(var d=m.length;d--;){var v=this.ranges.indexOf(m[d]);this.ranges.splice(v,1)}this._signal("removeRange",{ranges:m}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),w=w||this.ranges[0],w&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new c,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var m=this.rangeList.ranges,w=m[m.length-1],d=u.fromPoints(m[0].start,w.end);this.toSingleRange(),this.setSelectionRange(d,w.cursor==w.start)}else{var d=this.getRange(),v=this.isBackwards(),F=d.start.row,E=d.end.row;if(F==E){if(v)var f=d.end,A=d.start;else var f=d.start,A=d.end;this.addRange(u.fromPoints(A,A)),this.addRange(u.fromPoints(f,f));return}var x=[],S=this.getLineRange(F,!0);S.start.column=d.start.column,x.push(S);for(var $=F+1;$1){var m=this.rangeList.ranges,w=m[m.length-1],d=u.fromPoints(m[0].start,w.end);this.toSingleRange(),this.setSelectionRange(d,w.cursor==w.start)}else{var v=this.session.documentToScreenPosition(this.selectionLead),F=this.session.documentToScreenPosition(this.selectionAnchor),E=this.rectangularRangeBlock(v,F);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(m,w,d){var v=[],F=m.column0;)H--;if(H>0)for(var N=0;v[N].isEmpty();)N++;for(var L=H;L>=N;L--)v[L].isEmpty()&&v.splice(L,1)}return v}}.call(l.prototype);var g=p("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(m){m.cursor||(m.cursor=m.end);var w=this.getSelectionStyle();return m.marker=this.session.addMarker(m,"ace_selection",w),this.session.$selectionMarkers.push(m),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,m},this.removeSelectionMarker=function(m){if(m.marker){this.session.removeMarker(m.marker);var w=this.session.$selectionMarkers.indexOf(m);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(m){for(var w=this.session.$selectionMarkers,d=m.length;d--;){var v=m[d];if(v.marker){this.session.removeMarker(v.marker);var F=w.indexOf(v);F!=-1&&w.splice(F,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(m){this.addSelectionMarker(m.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(m){this.removeSelectionMarkers(m.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(m){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(e.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(m){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(e.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(m){var w=m.command,d=m.editor;if(d.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?v=d.forEachSelection(w,m.args):w.multiSelectAction=="forEachLine"?v=d.forEachSelection(w,m.args,!0):w.multiSelectAction=="single"?(d.exitMultiSelectMode(),v=w.exec(d,m.args||{})):v=w.multiSelectAction(d,m.args||{});else{var v=w.exec(d,m.args||{});d.multiSelect.addRange(d.multiSelect.toOrientedRange()),d.multiSelect.mergeOverlappingRanges()}return v}},this.forEachSelection=function(m,w,d){if(!this.inVirtualSelectionMode){var v=d&&d.keepOrder,F=d==!0||d&&d.$byLines,E=this.session,f=this.selection,A=f.rangeList,x=(v?f:A).ranges,S;if(!x.length)return m.exec?m.exec(this,w||{}):m(this,w||{});var $=f._eventRegistry;f._eventRegistry={};var B=new l(E);this.inVirtualSelectionMode=!0;for(var D=x.length;D--;){if(F)for(;D>0&&x[D].start.row==x[D-1].end.row;)D--;B.fromOrientedRange(x[D]),B.index=D,this.selection=E.selection=B;var O=m.exec?m.exec(this,w||{}):m(this,w||{});!S&&O!==void 0&&(S=O),B.toOrientedRange(x[D])}B.detach(),this.selection=E.selection=f,this.inVirtualSelectionMode=!1,f._eventRegistry=$,f.mergeOverlappingRanges();var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),S}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var m="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,d=[],v=0;v0);f<0&&(f=0),A>=S&&(A=S-1)}var B=this.session.removeFullLines(f,A);B=this.$reAlignText(B,x),this.session.insert({row:f,column:0},B.join(` +`)+` +`),x||(E.start.column=0,E.end.column=B[B.length-1].length),this.selection.setRange(E)}else{F.forEach(function(H){w.substractPoint(H.cursor)});var D=0,O=1/0,I=d.map(function(H){var N=H.cursor,L=m.getLine(N.row),U=L.substr(N.column).search(/\S/g);return U==-1&&(U=0),N.column>D&&(D=N.column),UT?m.insert(L,t.stringRepeat(" ",U-T)):m.remove(new u(L.row,L.column,L.row,L.column-U+T)),H.start.column=H.end.column=D,H.start.row=H.end.row=L.row,H.cursor=H.end}),w.fromOrientedRange(d[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(m,w){var d=!0,v=!0,F,E,f;return m.map(function(B){var D=B.match(/(\s*)(.*?)(\s*)([=:].*)/);return D?F==null?(F=D[1].length,E=D[2].length,f=D[3].length,D):(F+E+f!=D[1].length+D[2].length+D[3].length&&(v=!1),F!=D[1].length&&(d=!1),F>D[1].length&&(F=D[1].length),ED[3].length&&(f=D[3].length),D):[B]}).map(w?x:d?v?S:x:$);function A(B){return t.stringRepeat(" ",B)}function x(B){return B[2]?A(F)+B[2]+A(E-B[2].length+f)+B[4].replace(/^([=:])\s+/,"$1 "):B[0]}function S(B){return B[2]?A(F+E-B[2].length)+B[2]+A(f," ")+B[4].replace(/^([=:])\s+/,"$1 "):B[0]}function $(B){return B[2]?A(F)+B[2]+A(f)+B[4].replace(/^([=:])\s+/,"$1 "):B[0]}}}).call(g.prototype);function C(m,w){return m.row==w.row&&m.column==w.column}b.onSessionChange=function(m){var w=m.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var d=m.oldSession;d&&(d.multiSelect.off("addRange",this.$onAddRange),d.multiSelect.off("removeRange",this.$onRemoveRange),d.multiSelect.off("multiSelect",this.$onMultiSelect),d.multiSelect.off("singleSelect",this.$onSingleSelect),d.multiSelect.lead.off("change",this.$checkMultiselectChange),d.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function _(m){m.$multiselectOnSessionChange||(m.$onAddRange=m.$onAddRange.bind(m),m.$onRemoveRange=m.$onRemoveRange.bind(m),m.$onMultiSelect=m.$onMultiSelect.bind(m),m.$onSingleSelect=m.$onSingleSelect.bind(m),m.$multiselectOnSessionChange=b.onSessionChange.bind(m),m.$checkMultiselectChange=m.$checkMultiselectChange.bind(m),m.$multiselectOnSessionChange(m),m.on("changeSession",m.$multiselectOnSessionChange),m.on("mousedown",a),m.commands.addCommands(e.defaultCommands),y(m))}function y(m){var w=m.textInput.getElement(),d=!1;n.addListener(w,"keydown",function(F){var E=F.keyCode==18&&!(F.ctrlKey||F.shiftKey||F.metaKey);m.$blockSelectEnabled&&E?d||(m.renderer.setMouseCursor("crosshair"),d=!0):d&&v()}),n.addListener(w,"keyup",v),n.addListener(w,"blur",v);function v(F){d&&(m.renderer.setMouseCursor(""),d=!1)}}b.MultiSelect=_,p("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(m){_(this),m?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(m){this.$blockSelectEnabled=m},value:!0}})});ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(p,b,h){"use strict";var c=p("../../range").Range,u=b.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(l,a,n){var t=l.getLine(n);return this.foldingStartMarker.test(t)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(t)?"end":""},this.getFoldWidgetRange=function(l,a,n){return null},this.indentationBlock=function(l,a,n){var t=/\S/,e=l.getLine(a),r=e.search(t);if(r!=-1){for(var i=n||e.length,o=l.getLength(),s=a,g=a;++as){var _=l.getLine(g).length;return new c(s,i,g,_)}}},this.openingBracketBlock=function(l,a,n,t,e){var r={row:n,column:t+1},i=l.$findClosingBracket(a,r,e);if(i){var o=l.foldWidgets[i.row];return o==null&&(o=l.getFoldWidget(i.row)),o=="start"&&i.row>r.row&&(i.row--,i.column=l.getLine(i.row).length),c.fromPoints(r,i)}},this.closingBracketBlock=function(l,a,n,t,e){var r={row:n,column:t},i=l.$findOpeningBracket(a,r);if(i)return i.column++,r.column--,c.fromPoints(i,r)}}).call(u.prototype)});ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(p,b,h){"use strict";b.isDark=!1,b.cssClass="ace-tm",b.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var c=p("../lib/dom");c.importCssString(b.cssText,b.cssClass)});ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./lib/dom"),l=p("./range").Range;function a(n){this.session=n,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(n){var t;return this.lineWidgets?t=this.lineWidgets[n]&&this.lineWidgets[n].rowCount||0:t=0,!this.$useWrapMode||!this.$wrapData[n]?1+t:this.$wrapData[n].length+1+t},this.$getWidgetScreenLength=function(){var n=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(n+=t.rowCount)}),n},this.$onChangeEditor=function(n){this.attach(n.editor)},this.attach=function(n){n&&n.widgetManager&&n.widgetManager!=this&&n.widgetManager.detach(),this.editor!=n&&(this.detach(),this.editor=n,n&&(n.widgetManager=this,n.renderer.on("beforeRender",this.measureWidgets),n.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(n){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var e=this.session.lineWidgets;e&&e.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},this.updateOnFold=function(n,t){var e=t.lineWidgets;if(!(!e||!n.action)){for(var r=n.data,i=r.start.row,o=r.end.row,s=n.action=="add",g=i+1;g0&&!r[i];)i--;this.firstRow=e.firstRow,this.lastRow=e.lastRow,t.$cursorLayer.config=e;for(var s=i;s<=o;s++){var g=r[s];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,t.container.appendChild(g.el));var C=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;g.coverLine||(C+=e.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=C-e.offset+"px";var _=g.coverGutter?0:t.gutterWidth;g.fixedWidth||(_-=t.scrollLeft),g.el.style.left=_+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=e.width+2*e.padding+"px"),g.fixedWidth?g.el.style.right=t.scrollBar.getWidth()+"px":g.el.style.right=""}}}}}).call(a.prototype),b.LineWidgets=a});ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(p,b,h){"use strict";var c=p("../line_widgets").LineWidgets,u=p("../lib/dom"),l=p("../range").Range;function a(t,e,r){for(var i=0,o=t.length-1;i<=o;){var s=i+o>>1,g=r(e,t[s]);if(g>0)i=s+1;else if(g<0)o=s-1;else return s}return-(i+1)}function n(t,e,r){var i=t.getAnnotations().sort(l.comparePoints);if(i.length){var o=a(i,{row:e,column:-1},l.comparePoints);o<0&&(o=-o-1),o>=i.length?o=r>0?0:i.length-1:o===0&&r<0&&(o=i.length-1);var s=i[o];if(!(!s||!r)){if(s.row===e){do s=i[o+=r];while(s&&s.row===e);if(!s)return i.slice()}var g=[];e=s.row;do g[r<0?"unshift":"push"](s),s=i[o+=r];while(s&&s.row==e);return g.length&&g}}}b.showErrorMarker=function(t,e){var r=t.session;r.widgetManager||(r.widgetManager=new c(r),r.widgetManager.attach(t));var i=t.getCursorPosition(),o=i.row,s=r.widgetManager.getWidgetsAtRow(o).filter(function(F){return F.type=="errorMarker"})[0];s?s.destroy():o-=e;var g=n(r,o,e),C;if(g){var _=g[0];i.column=(_.pos&&typeof _.column!="number"?_.pos.sc:_.column)||0,i.row=_.row,C=t.renderer.$gutterLayer.$annotations[i.row]}else{if(s)return;C={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(i.row),t.selection.moveToPosition(i);var y={row:i.row,fixedWidth:!0,coverGutter:!0,el:u.createElement("div"),type:"errorMarker"},m=y.el.appendChild(u.createElement("div")),w=y.el.appendChild(u.createElement("div"));w.className="error_widget_arrow "+C.className;var d=t.renderer.$cursorLayer.getPixelPosition(i).left;w.style.left=d+t.renderer.gutterWidth-5+"px",y.el.className="error_widget_wrapper",m.className="error_widget "+C.className,m.innerHTML=C.text.join("
"),m.appendChild(u.createElement("div"));var v=function(F,E,f){if(E===0&&(f==="esc"||f==="return"))return y.destroy(),{command:"null"}};y.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(v),r.widgetManager.removeLineWidget(y),t.off("changeSelection",y.destroy),t.off("changeSession",y.destroy),t.off("mouseup",y.destroy),t.off("change",y.destroy))},t.keyBinding.addKeyboardHandler(v),t.on("changeSelection",y.destroy),t.on("changeSession",y.destroy),t.on("mouseup",y.destroy),t.on("change",y.destroy),t.session.widgetManager.addLineWidget(y),y.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:y.el.offsetHeight})},u.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")});ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(p,b,h){"use strict";p("./lib/fixoldbrowsers");var c=p("./lib/dom"),u=p("./lib/event"),l=p("./editor").Editor,a=p("./edit_session").EditSession,n=p("./undomanager").UndoManager,t=p("./virtual_renderer").VirtualRenderer;p("./worker/worker_client"),p("./keyboard/hash_handler"),p("./placeholder"),p("./multi_select"),p("./mode/folding/fold_mode"),p("./theme/textmate"),p("./ext/error_marker"),b.config=p("./config"),b.acequire=p,typeof define=="function"&&(b.define=define),b.edit=function(e){if(typeof e=="string"){var r=e;if(e=document.getElementById(r),!e)throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof l)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var o=e;i=o.value,e=c.createElement("pre"),o.parentNode.replaceChild(e,o)}else e&&(i=c.getInnerText(e),e.innerHTML="");var s=b.createEditSession(i),g=new l(new t(e));g.setSession(s);var C={document:s,editor:g,onResize:g.resize.bind(g,null)};return o&&(C.textarea=o),u.addListener(window,"resize",C.onResize),g.on("destroy",function(){u.removeListener(window,"resize",C.onResize),C.editor.container.env=null}),g.container.env=g.env=C,g},b.createEditSession=function(e,r){var i=new a(e,r);return i.setUndoManager(new n),i},b.EditSession=a,b.UndoManager=n,b.version="1.2.9"});(function(){ace.acequire(["ace/ace"],function(p){p&&(p.config.init(!0),p.define=ace.define),window.ace||(window.ace=p);for(var b in p)p.hasOwnProperty(b)&&(window.ace[b]=p[b])})})();mi.exports=window.ace.acequire("ace/ace")});var pi=Ft((no,At)=>{"use strict";At.exports.id="ace/mode/json_worker";At.exports.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0 +}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`});var Hi=["wrapper"],zi=["sourceImage"];function Vi(p,b){if(p&1){let h=ce();K(0,"img",5,1),ee("load",function(){Z(h);let u=ie();return J(u.imageLoadedInView())})("mousedown",function(u){Z(h);let l=ie();return J(l.startMove(u,l.moveTypes.Drag))})("touchstart",function(u){Z(h);let l=ie();return J(l.startMove(u,l.moveTypes.Drag))})("error",function(u){Z(h);let l=ie();return J(l.loadImageError(u))}),G()}if(p&2){let h=ie();je("visibility",h.imageVisible?"visible":"hidden")("transform",h.safeTransformStyle),Ue("ngx-ic-draggable",!h.disabled&&h.allowMoveImage),q("src",h.safeImgDataUrl,et),Ne("alt",h.imageAltText)}}function Ni(p,b){if(p&1){let h=ce();ot(0),K(1,"span",9),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"topleft"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"topleft"))}),me(2,"span",10),G(),K(3,"span",11),me(4,"span",10),G(),K(5,"span",12),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"topright"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"topright"))}),me(6,"span",10),G(),K(7,"span",13),me(8,"span",10),G(),K(9,"span",14),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottomright"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottomright"))}),me(10,"span",10),G(),K(11,"span",15),me(12,"span",10),G(),K(13,"span",16),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottomleft"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottomleft"))}),me(14,"span",10),G(),K(15,"span",17),me(16,"span",10),G(),K(17,"span",18),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"top"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"top"))}),G(),K(18,"span",19),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"right"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"right"))}),G(),K(19,"span",20),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottom"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottom"))}),G(),K(20,"span",21),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"left"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"left"))}),G(),st()}}function ji(p,b){if(p&1){let h=ce();K(0,"div",6),ee("keydown",function(u){Z(h);let l=ie();return J(l.keyboardAccess(u))}),K(1,"div",7),ee("mousedown",function(u){Z(h);let l=ie();return J(l.startMove(u,l.moveTypes.Move))})("touchstart",function(u){Z(h);let l=ie();return J(l.startMove(u,l.moveTypes.Move))}),G(),re(2,Ni,21,0,"ng-container",8),G()}if(p&2){let h=ie();je("top",h.cropper.y1,"px")("left",h.cropper.x1,"px")("width",h.cropper.x2-h.cropper.x1,"px")("height",h.cropper.y2-h.cropper.y1,"px")("margin-left",h.alignImage==="center"?h.marginLeft:null)("visibility",h.imageVisible?"visible":"hidden"),Ue("ngx-ic-round",h.roundCropper),Ne("aria-label",h.cropperFrameAriaLabel),le(2),q("ngIf",!h.hideResizeSquares)}}var Ct=class{constructor(){this.format="png",this.output="blob",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperFrameAriaLabel="Crop photo",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(b){Object.keys(b).filter(h=>h in this).forEach(h=>this[h]=b[h]),this.validateOptions()}setOptionsFromChanges(b){Object.keys(b).filter(h=>h in this).forEach(h=>this[h]=b[h].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}},Me=function(p){return p.Drag="drag",p.Move="move",p.Resize="resize",p.Pinch="pinch",p}(Me||{});function Ui(p){switch(p){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left"}}function Ki(p){switch(p){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right"}}function Gi(p,b){switch(p){case"ArrowUp":return{clientX:0,clientY:b*-1};case"ArrowRight":return{clientX:b,clientY:0};case"ArrowDown":return{clientX:0,clientY:b};case"ArrowLeft":default:return{clientX:b*-1,clientY:0}}}function Qi(p,b,h){let c=p.width,u=p.height;b=Math.round(b),h=Math.round(h);let l=c/b,a=u/h,n=Math.ceil(l/2),t=Math.ceil(a/2),e=p.getContext("2d");if(e){let r=e.getImageData(0,0,c,u),i=e.createImageData(b,h),o=r.data,s=i.data;for(let g=0;g=1)continue;m=2*L*L*L-3*L*L+1;let U=4*(H+B*c);f+=m*o[U+3],d+=m,o[U+3]<255&&(m=m*o[U+3]/250),v+=m*o[U],F+=m*o[U+1],E+=m*o[U+2],w+=m}}s[_]=v/w,s[_+1]=F/w,s[_+2]=E/w,s[_+3]=f/d}p.width=b,p.height=h,e.putImageData(i,0,0)}}function ri(p,b){return p/100*b}var Yi=(()=>{class p{crop(h,c,u,l,a){let n=this.getImagePosition(h,c,u,a),t=n.x2-n.x1,e=n.y2-n.y1,r=document.createElement("canvas");r.width=t,r.height=e;let i=r.getContext("2d");if(!i)return null;u.backgroundColor!=null&&(i.fillStyle=u.backgroundColor,i.fillRect(0,0,t,e));let o=(u.transform.scale||1)*(u.transform.flipH?-1:1),s=(u.transform.scale||1)*(u.transform.flipV?-1:1),{translateH:g,translateV:C}=this.getCanvasTranslate(h,u,a),_=h.transformed;i.setTransform(o,0,0,s,_.size.width/2+g,_.size.height/2+C),i.translate(-n.x1/o,-n.y1/s),i.rotate((u.transform.rotate||0)*Math.PI/180),i.drawImage(_.image,-_.size.width/2,-_.size.height/2);let y={width:t,height:e,imagePosition:n,cropperPosition:we({},c)};u.containWithinAspectRatio&&(y.offsetImagePosition=this.getOffsetImagePosition(h,c,u,a));let m=this.getResizeRatio(t,e,u);return m!==1&&(y.width=Math.round(t*m),y.height=u.maintainAspectRatio?Math.round(y.width/u.aspectRatio):Math.round(e*m),Qi(r,y.width,y.height)),l==="blob"?this.cropToBlob(y,r,u):(y.base64=r.toDataURL("image/"+u.format,this.getQuality(u)),y)}cropToBlob(h,c,u){return ke(this,null,function*(){return h.blob=yield new Promise(l=>c.toBlob(l,"image/"+u.format,this.getQuality(u))),h.blob&&(h.objectUrl=URL.createObjectURL(h.blob)),h})}getCanvasTranslate(h,c,u){if(c.transform.translateUnit==="px"){let l=this.getRatio(h,u);return{translateH:(c.transform.translateH||0)*l,translateV:(c.transform.translateV||0)*l}}else return{translateH:c.transform.translateH?ri(c.transform.translateH,h.transformed.size.width):0,translateV:c.transform.translateV?ri(c.transform.translateV,h.transformed.size.height):0}}getRatio(h,c){return h.transformed.size.width/c.width}getImagePosition(h,c,u,l){let a=this.getRatio(h,l),n={x1:Math.round(c.x1*a),y1:Math.round(c.y1*a),x2:Math.round(c.x2*a),y2:Math.round(c.y2*a)};return u.containWithinAspectRatio||(n.x1=Math.max(n.x1,0),n.y1=Math.max(n.y1,0),n.x2=Math.min(n.x2,h.transformed.size.width),n.y2=Math.min(n.y2,h.transformed.size.height)),n}getOffsetImagePosition(h,c,u,l){let a=u.canvasRotation+h.exifTransform.rotate,n=this.getRatio(h,l),t,e;a%2?(t=(h.transformed.size.width-h.original.size.height)/2,e=(h.transformed.size.height-h.original.size.width)/2):(t=(h.transformed.size.width-h.original.size.width)/2,e=(h.transformed.size.height-h.original.size.height)/2);let r={x1:Math.round(c.x1*n)-t,y1:Math.round(c.y1*n)-e,x2:Math.round(c.x2*n)-t,y2:Math.round(c.y2*n)-e};return u.containWithinAspectRatio||(r.x1=Math.max(r.x1,0),r.y1=Math.max(r.y1,0),r.x2=Math.min(r.x2,h.transformed.size.width),r.y2=Math.min(r.y2,h.transformed.size.height)),r}getResizeRatio(h,c,u){let l=u.resizeToWidth/h,a=u.resizeToHeight/c,n=new Array;u.resizeToWidth>0&&n.push(l),u.resizeToHeight>0&&n.push(a);let t=n.length===0?1:Math.min(...n);return t>1&&!u.onlyScaleDown?t:Math.min(t,1)}getQuality(h){return Math.min(1,Math.max(0,h.imageQuality/100))}}return p.\u0275fac=function(h){return new(h||p)},p.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"}),p})(),Xi=(()=>{class p{resetCropperPosition(h,c,u,l){if(h?.nativeElement)if(u.cropperStaticHeight&&u.cropperStaticWidth)c.x1=0,c.x2=l.width>u.cropperStaticWidth?u.cropperStaticWidth:l.width,c.y1=0,c.y2=l.height>u.cropperStaticHeight?u.cropperStaticHeight:l.height;else{let a=Math.min(u.cropperScaledMaxWidth,l.width),n=Math.min(u.cropperScaledMaxHeight,l.height);if(!u.maintainAspectRatio)c.x1=0,c.x2=a,c.y1=0,c.y2=n;else if(l.width/u.aspectRatiol.width&&(u.x1-=u.x2-l.width,u.x2=l.width),u.y1<0?(u.y2-=u.y1,u.y1=0):u.y2>l.height&&(u.y1-=u.y2-l.height,u.y2=l.height);break}a.maintainAspectRatio&&this.checkAspectRatio(c.position,u,l,a)}checkAspectRatio(h,c,u,l){let a=0,n=0;switch(h){case"top":c.x2=c.x1+(c.y2-c.y1)*l.aspectRatio,a=Math.max(c.x2-u.width,0),n=Math.max(0-c.y1,0),(a>0||n>0)&&(c.x2-=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y1+=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"bottom":c.x2=c.x1+(c.y2-c.y1)*l.aspectRatio,a=Math.max(c.x2-u.width,0),n=Math.max(c.y2-u.height,0),(a>0||n>0)&&(c.x2-=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y2-=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"topleft":c.y1=c.y2-(c.x2-c.x1)/l.aspectRatio,a=Math.max(0-c.x1,0),n=Math.max(0-c.y1,0),(a>0||n>0)&&(c.x1+=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y1+=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"topright":c.y1=c.y2-(c.x2-c.x1)/l.aspectRatio,a=Math.max(c.x2-u.width,0),n=Math.max(0-c.y1,0),(a>0||n>0)&&(c.x2-=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y1+=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"right":case"bottomright":c.y2=c.y1+(c.x2-c.x1)/l.aspectRatio,a=Math.max(c.x2-u.width,0),n=Math.max(c.y2-u.height,0),(a>0||n>0)&&(c.x2-=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y2-=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"left":case"bottomleft":c.y2=c.y1+(c.x2-c.x1)/l.aspectRatio,a=Math.max(0-c.x1,0),n=Math.max(c.y2-u.height,0),(a>0||n>0)&&(c.x1+=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y2-=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"center":c.x2=c.x1+(c.y2-c.y1)*l.aspectRatio,c.y2=c.y1+(c.x2-c.x1)/l.aspectRatio;let t=Math.max(0-c.x1,0),e=Math.max(c.x2-u.width,0),r=Math.max(c.y2-u.height,0),i=Math.max(0-c.y1,0);(t>0||e>0||r>0||i>0)&&(c.x1+=r*l.aspectRatio>t?r*l.aspectRatio:t,c.x2-=i*l.aspectRatio>e?i*l.aspectRatio:e,c.y1+=i*l.aspectRatio>e?i:e/l.aspectRatio,c.y2-=r*l.aspectRatio>t?r:t/l.aspectRatio);break}}getClientX(h){return h.touches?.[0].clientX||h.clientX||0}getClientY(h){return h.touches?.[0].clientY||h.clientY||0}}return p.\u0275fac=function(h){return new(h||p)},p.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"}),p})(),Zi="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==";function Ji(){return new Promise(p=>{let b=new Image;b.onload=()=>{let h=b.width===1&&b.height===2;p(h)},b.src=Zi})}function qi(p){switch(typeof p=="object"&&(p=en(p)),p){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}function en(p){let b=new DataView(p);if(b.getUint16(0,!1)!==65496)return-2;let h=b.byteLength,c=2;for(;c{class p{constructor(){this.autoRotateSupported=Ji()}loadImageFile(h,c){return ke(this,null,function*(){let u=yield h.arrayBuffer();return yield this.checkImageTypeAndLoadImageFromArrayBuffer(u,h.type,c)})}checkImageTypeAndLoadImageFromArrayBuffer(h,c,u){return this.isValidImageType(c)?this.loadImageFromArrayBuffer(h,u,c):Promise.reject(new Error("Invalid image type"))}isValidImageType(h){return/image\/(png|jpg|jpeg|bmp|gif|tiff|svg|webp|x-icon|vnd.microsoft.icon)/.test(h)}loadImageFromURL(h,c){return ke(this,null,function*(){let l=yield(yield fetch(h)).blob(),a=yield l.arrayBuffer();return yield this.loadImageFromArrayBuffer(a,c,l.type)})}loadBase64Image(h,c){let u=this.base64ToArrayBuffer(h);return this.loadImageFromArrayBuffer(u,c)}base64ToArrayBuffer(h){h=h.replace(/^data:([^;]+);base64,/gmi,"");let c=atob(h),u=c.length,l=new Uint8Array(u);for(let a=0;ake(this,null,function*(){try{let t=new Blob([h],u?{type:u}:void 0),e=URL.createObjectURL(t),r=new Image,o=u==="image/svg+xml"?yield this.getSvgImageSize(t):void 0;r.onload=()=>a({originalImage:r,originalImageSize:o,originalObjectUrl:e,originalArrayBuffer:h}),r.onerror=n,r.src=e}catch(t){n(t)}}));return yield this.transformImageFromArrayBuffer(l,c,l.originalImageSize!=null)})}getSvgImageSize(h){return ke(this,null,function*(){let l=new DOMParser().parseFromString(yield h.text(),"image/svg+xml").querySelector("svg");if(!l)throw Error("Failed to parse SVG image");let a=l.getAttribute("width"),n=l.getAttribute("height");if(a&&n)return null;let t=l.getAttribute("viewBox")||l.getAttribute("viewbox");if(t){let e=t.split(" ");return{width:+e[2],height:+e[3]}}throw Error("Failed to load SVG image. SVG must have width + height or viewBox definition.")})}transformImageFromArrayBuffer(h,c,u=!1){return ke(this,null,function*(){let l=yield this.autoRotateSupported,a=qi(l?-1:h.originalArrayBuffer);if(!h.originalImage||!h.originalImage.complete)return Promise.reject(new Error("No image loaded"));let n={original:{objectUrl:h.originalObjectUrl,image:h.originalImage,size:h.originalImageSize??{width:h.originalImage.naturalWidth,height:h.originalImage.naturalHeight}},exifTransform:a};return this.transformLoadedImage(n,c,u)})}transformLoadedImage(h,c,u=!1){return ke(this,null,function*(){let l=c.canvasRotation+h.exifTransform.rotate,a=h.original.size;if(!u&&l===0&&!h.exifTransform.flip&&!c.containWithinAspectRatio)return{original:{objectUrl:h.original.objectUrl,image:h.original.image,size:we({},a)},transformed:{objectUrl:h.original.objectUrl,image:h.original.image,size:we({},a)},exifTransform:h.exifTransform};let n=this.getTransformedSize(a,h.exifTransform,c),t=document.createElement("canvas");t.width=n.width,t.height=n.height;let e=t.getContext("2d");e?.setTransform(h.exifTransform.flip?-1:1,0,0,1,t.width/2,t.height/2),e?.rotate(Math.PI*(l/2)),e?.drawImage(h.original.image,-a.width/2,-a.height/2);let r=yield new Promise(s=>t.toBlob(s,c.format));if(!r)throw new Error("Failed to get Blob for transformed image.");let i=URL.createObjectURL(r),o=yield this.loadImageFromObjectUrl(i);return{original:{objectUrl:h.original.objectUrl,image:h.original.image,size:we({},a)},transformed:{objectUrl:i,image:o,size:{width:o.width,height:o.height}},exifTransform:h.exifTransform}})}loadImageFromObjectUrl(h){return new Promise((c,u)=>{let l=new Image;l.onload=()=>c(l),l.onerror=u,l.src=h})}getTransformedSize(h,c,u){let l=u.canvasRotation+c.rotate;if(u.containWithinAspectRatio)if(l%2){let a=h.width*u.aspectRatio,n=h.height/u.aspectRatio;return{width:Math.max(h.height,a),height:Math.max(h.width,n)}}else{let a=h.height*u.aspectRatio,n=h.width/u.aspectRatio;return{width:Math.max(h.width,a),height:Math.max(h.height,n)}}return l%2?{height:h.width,width:h.height}:{width:h.width,height:h.height}}}return p.\u0275fac=function(h){return new(h||p)},p.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"}),p})(),oi=(()=>{class p{constructor(h,c,u,l,a,n,t){this.cropService=h,this.cropperPositionService=c,this.loadImageService=u,this.sanitizer=l,this.cd=a,this.zone=n,this.hammerLoader=t,this.settings=new Ct,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=Me,this.imageVisible=!1,this.cropperFrameAriaLabel=this.settings.cropperFrameAriaLabel,this.output=this.settings.output,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new ge,this.startCropImage=new ge,this.imageLoaded=new ge,this.cropperReady=new ge,this.loadImageFailed=new ge,this.transformChange=new ge,this.reset()}ngOnChanges(h){this.onChangesUpdateSettings(h),this.onChangesInputImage(h),this.loadedImage?.original.image.complete&&(h.containWithinAspectRatio||h.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(c=>this.setLoadedImage(c)).catch(c=>this.loadImageError(c)),(h.cropper||h.maintainAspectRatio||h.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.maintainAspectRatio&&(this.resetCropOnAspectRatioChange||!this.aspectRatioIsCorrect())&&(h.maintainAspectRatio||h.aspectRatio)?this.resetCropperPosition():h.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop())),h.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop()),h.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(h){this.settings.setOptionsFromChanges(h),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&(this.hideResizeSquares=!0,this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1}))}onChangesInputImage(h){(h.imageChangedEvent||h.imageURL||h.imageBase64||h.imageFile)&&this.reset(),h.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),h.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),h.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),h.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){let h=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${h}, ${this.transform.translateV||0}${h}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(h){this.loadImageService.loadImageFile(h,this.settings).then(c=>this.setLoadedImage(c)).catch(c=>this.loadImageError(c))}loadBase64Image(h){this.loadImageService.loadBase64Image(h,this.settings).then(c=>this.setLoadedImage(c)).catch(c=>this.loadImageError(c))}loadImageFromURL(h){this.loadImageService.loadImageFromURL(h,this.settings).then(c=>this.setLoadedImage(c)).catch(c=>this.loadImageError(c))}setLoadedImage(h){this.loadedImage=h,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(h.transformed.objectUrl),this.cd.markForCheck()}loadImageError(h){console.error(h),this.loadImageFailed.emit()}imageLoadedInView(){this.loadedImage!=null&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit(we({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){if(this.loadedImage)if(this.hidden)this.resizedWhileHidden=!0;else{let h=we({},this.maxSize);this.setMaxSize(),this.resizeCropperPosition(h),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()}}activatePinchGesture(){return ke(this,null,function*(){yield this.hammerLoader?.();let h=window?.Hammer||null;if(h){let c=new h(this.wrapper.nativeElement);c.get("pinch").set({enable:!0}),c.on("pinchmove",this.onPinch.bind(this)),c.on("pinchend",this.pinchStop.bind(this)),c.on("pinchstart",this.startPinch.bind(this))}else Wt()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")})}resizeCropperPosition(h){(h.width!==this.maxSize.width||h.height!==this.maxSize.height)&&(this.cropper.x1=this.cropper.x1*this.maxSize.width/h.width,this.cropper.x2=this.cropper.x2*this.maxSize.width/h.width,this.cropper.y1=this.cropper.y1*this.maxSize.height/h.height,this.cropper.y2=this.cropper.y2*this.maxSize.height/h.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings,this.maxSize),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(h){this.changeKeyboardStepSize(h),this.keyboardMoveCropper(h)}changeKeyboardStepSize(h){let c=+h.key;c>=1&&c<=9&&(this.settings.stepSize=c)}keyboardMoveCropper(h){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(h.key))return;let u=h.shiftKey?Me.Resize:Me.Move,l=h.altKey?Ki(h.key):Ui(h.key),a=Gi(h.key,this.settings.stepSize);h.preventDefault(),h.stopPropagation(),this.startMove({clientX:0,clientY:0},u,l),this.handleMouseMove(a),this.handleMouseUp()}startMove(h,c,u=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===Me.Pinch||c===Me.Drag&&!this.allowMoveImage||(h.preventDefault&&h.preventDefault(),this.moveStart=we({active:!0,type:c,position:u,transform:we({},this.transform),clientX:this.cropperPositionService.getClientX(h),clientY:this.cropperPositionService.getClientY(h)},this.cropper),this.initMouseMove())}initMouseMove(){gt(qe(document,"mousemove"),qe(document,"touchmove")).pipe($t(gt(qe(document,"mouseup"),qe(document,"touchend")).pipe(xt()))).subscribe({next:h=>this.zone.run(()=>{this.handleMouseMove(h),this.cd.markForCheck()}),complete:()=>this.zone.run(()=>{this.handleMouseUp(),this.cd.markForCheck()})})}startPinch(h){this.safeImgDataUrl&&(h.preventDefault&&h.preventDefault(),this.moveStart=we({active:!0,type:Me.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2},this.cropper))}handleMouseMove(h){if(this.moveStart.active){if(h.stopPropagation&&h.stopPropagation(),h.preventDefault&&h.preventDefault(),this.moveStart.type===Me.Move)this.cropperPositionService.move(h,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===Me.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(h,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===Me.Drag){let c=this.cropperPositionService.getClientX(h)-this.moveStart.clientX,u=this.cropperPositionService.getClientY(h)-this.moveStart.clientY;this.transform=Pe(we({},this.transform),{translateH:(this.moveStart.transform?.translateH||0)+c,translateV:(this.moveStart.transform?.translateV||0)+u}),this.setCssTransform()}}}onPinch(h){this.moveStart.active&&(h.stopPropagation&&h.stopPropagation(),h.preventDefault&&h.preventDefault(),this.moveStart.type===Me.Pinch&&(this.cropperPositionService.resize(h,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.markForCheck())}setMaxSize(){if(this.sourceImage){let h=getComputedStyle(this.sourceImage.nativeElement);this.maxSize.width=parseFloat(h.width),this.maxSize.height=parseFloat(h.height),this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.maintainAspectRatio?this.settings.cropperScaledMinHeight=Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?this.settings.cropperScaledMinHeight=Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):this.settings.cropperScaledMinHeight=20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){let h=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/h:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/h:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidththis.maxSize.width&&(this.cropper.x1-=h?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=h?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}handleMouseUp(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===Me.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(h=this.settings.output){if(this.loadedImage?.transformed?.image!=null){if(this.startCropImage.emit(),h==="blob")return this.cropToBlob();if(h==="base64")return this.cropToBase64()}return null}cropToBlob(){return new Promise((h,c)=>this.zone.run(()=>ke(this,null,function*(){let u=yield this.cropService.crop(this.loadedImage,this.cropper,this.settings,"blob",this.maxSize);u?(this.imageCropped.emit(u),h(u)):c("Crop image failed")})))}cropToBase64(){let h=this.cropService.crop(this.loadedImage,this.cropper,this.settings,"base64",this.maxSize);return h?(this.imageCropped.emit(h),h):null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return p.\u0275fac=function(h){return new(h||p)(ne(Yi),ne(Xi),ne(tn),ne(Ut),ne(lt),ne(Ve),ne(jt,8))},p.\u0275cmp=se({type:p,selectors:[["image-cropper"]],viewQuery:function(h,c){if(h&1&&(de(Hi,7),de(zi,5)),h&2){let u;he(u=ue())&&(c.wrapper=u.first),he(u=ue())&&(c.sourceImage=u.first)}},hostVars:6,hostBindings:function(h,c){h&1&&ee("resize",function(){return c.onResize()},!1,Rt),h&2&&(je("text-align",c.alignImage),Ue("disabled",c.disabled)("ngx-ix-hidden",c.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",cropperFrameAriaLabel:"cropperFrameAriaLabel",output:"output",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},standalone:!1,features:[ze],decls:5,vars:10,consts:[["wrapper",""],["sourceImage",""],["class","ngx-ic-source-image","role","presentation",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],["role","presentation",1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],["role","presentation",1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(h,c){h&1&&(K(0,"div",null,0),re(2,Vi,2,8,"img",2),me(3,"div",3),re(4,ji,3,16,"div",4),G()),h&2&&(je("background",c.imageVisible&&c.backgroundColor),le(2),q("ngIf",c.safeImgDataUrl),le(),je("width",c.maxSize.width,"px")("height",c.maxSize.height,"px")("margin-left",c.alignImage==="center"?c.marginLeft:null),le(),q("ngIf",c.imageVisible))},dependencies:[Te],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),p})(),si=(()=>{class p{}return p.\u0275fac=function(h){return new(h||p)},p.\u0275mod=_e({type:p}),p.\u0275inj=Ee({imports:[[xe]]}),p})();var li=(()=>{class p{imageCropped(h){this.croppedDataUrl=h.base64}static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275cmp=se({type:p,selectors:[["app-file-cropper"]],standalone:!1,decls:3,vars:5,consts:[["output","base64","format","png",3,"imageCropped","maintainAspectRatio","imageBase64","aspectRatio","cropperStaticWidth","cropperStaticHeight"],[1,"mt10",3,"click"]],template:function(c,u){c&1&&(K(0,"image-cropper",0),ee("imageCropped",function(a){return u.imageCropped(a)}),G(),K(1,"wbutton",1),ee("click",function(){return u.uploadImage(u.croppedDataUrl),u.close()}),be(2,"Cropper"),G()),c&2&&q("maintainAspectRatio",!0)("imageBase64",u.dataUrl)("aspectRatio",1)("cropperStaticWidth",u.width)("cropperStaticHeight",u.height)},dependencies:[oi,Xe],encapsulation:2})}}return p})();var hi=(()=>{class p{constructor(h){this._file=h,this._file.add({id:"formPhoto",resize:1920,cb:c=>{typeof c=="string"&&typeof this.setFile=="function"&&this.setFile(c)}}),this._file.add({id:"formPhotos",multiple:!0,resize:1920,cb:c=>{typeof c=="string"&&typeof this.setFile=="function"&&this.setFile(c)}})}static{this.\u0275fac=function(c){return new(c||p)(We(Jt))}}static{this.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();function on(p,b){if(p&1&&(K(0,"h3"),be(1),G()),p&2){let h=ie(2);le(),Ge(h.label)}}function sn(p,b){if(p&1){let h=ce();K(0,"label",6)(1,"img",7),ee("error",function(){Z(h);let u=ie(2);return J(u.force=u.err)}),G()()}if(p&2){let h=ie(2);le(),q("src",(h.force||h.value?h.url:"")+(h.force||h.value||"/assets/default.png"),et)("ngStyle",h.imgStyle)}}function an(p,b){p&1&&(K(0,"label",8),be(1,"Add"),G())}function ln(p,b){if(p&1){let h=ce();K(0,"div",11),me(1,"img",12),K(2,"i",13),ee("click",function(){let u=Z(h).index,l=ie(3);return J(l.files.splice(u,1))}),be(3,"X"),G()()}if(p&2){let h=b.$implicit,c=ie(3);le(),q("src",(c.force||c.value?c.url:"")+h,et)}}function cn(p,b){if(p&1&&(K(0,"div",9),re(1,ln,4,1,"div",10),G()),p&2){let h=ie(2);le(),q("ngForOf",h.files)}}function hn(p,b){if(p&1){let h=ce();K(0,"div",1),ee("click",function(){Z(h);let u=ie();return J(u.set())}),re(1,on,2,1,"h3",2)(2,sn,2,2,"label",3)(3,an,2,0,"label",4)(4,cn,2,1,"div",5),G()}if(p&2){let h=ie();q("ngClass",h.class),le(),q("ngIf",h.label),le(),q("ngIf",!h.multiple),le(),q("ngIf",h.multiple),le(),q("ngIf",h.multiple)}}var ut=(()=>{class p{get files(){return this.value}constructor(h,c,u){this._modal=h,this._http=c,this._fs=u,this.url=Kt.url,this.container="general",this.name="",this.err="",this.label="",this.class="",this.imgStyle={},this.multiple=!1,this.isPhoto=!1,this.isRound=!1,this.value=this.multiple?[]:"",this.update=new ge,this.force=""}ngOnInit(){if(!this.name&&!this.multiple&&this.value){let h=(this.value||"").split("/");this.name=h[h.length-1].split("?")[0]}}set(){this._fs.setFile=h=>{this.width&&this.height?this._modal.show({uploadImage:this.uploadImage.bind(this),component:li,width:this.width,height:this.height,dataUrl:h}):this.uploadImage(h)}}uploadImage(h){this._http.post("/api/file/photo",{container:this.container,name:this.name,dataUrl:h},c=>{this.multiple?(this.value||(this.value=[]),this.value.push(c)):(this.name=c.split("/")[5].split("?")[0],this.value=c),this.update.emit(this.value)})}static{this.\u0275fac=function(c){return new(c||p)(ne(Zt),ne(Xt),ne(hi))}}static{this.\u0275cmp=se({type:p,selectors:[["ngx-file"]],inputs:{container:"container",name:"name",err:"err",label:"label",class:"class",imgStyle:"imgStyle",multiple:"multiple",isPhoto:"isPhoto",isRound:"isRound",resize:"resize",width:"width",height:"height",value:"value"},outputs:{update:"update"},standalone:!1,decls:1,vars:1,consts:[[3,"ngClass","click",4,"ngIf"],[3,"click","ngClass"],[4,"ngIf"],["for","formPhoto",4,"ngIf"],["for","formPhotos","class","file__add",4,"ngIf"],["class","file__list",4,"ngIf"],["for","formPhoto"],["alt","Picture",1,"file__img",3,"error","src","ngStyle"],["for","formPhotos",1,"file__add"],[1,"file__list"],["class","file__item",4,"ngFor","ngForOf"],[1,"file__item"],["alt","Picture",1,"file__item-img",3,"src"],[1,"file__item-remove",3,"click"]],template:function(c,u){c&1&&re(0,hn,5,5,"div",0),c&2&&q("ngIf",u.isPhoto)},dependencies:[Ae,Ye,Te,Vt],styles:[".file__img[_ngcontent-%COMP%]{display:block;max-width:100%;height:auto;border-radius:var(--file-img-border-radius, 8px);cursor:pointer}.file__img.round[_ngcontent-%COMP%]{border-radius:50%}.file__add[_ngcontent-%COMP%]{display:inline-block;padding:10px 20px;background-color:var(--file-add-bg, #007bff);color:#fff;border-radius:4px;cursor:pointer;text-align:center;transition:background-color .3s ease}.file__add[_ngcontent-%COMP%]:hover{background-color:var(--file-add-bg-hover, #0056b3)}.file__list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.file__item[_ngcontent-%COMP%]{position:relative;display:inline-block}.file__item-img[_ngcontent-%COMP%]{display:block;width:100px;height:100px;object-fit:cover;border-radius:var(--file-item-border-radius, 4px);cursor:pointer}.file__item-remove[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;background-color:#f00c;color:#fff;border-radius:50%;width:20px;height:20px;text-align:center;line-height:20px;font-size:12px;cursor:pointer;transition:background-color .3s ease}.file__item-remove[_ngcontent-%COMP%]:hover{background-color:red}"]})}}return p})();var di=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({imports:[si,xe,Ze]})}}return p})();var un=["header"],dn=["footer"],fn=[[["","header",""]],"*",[["","footer",""]]],gn=["[header]","*","[footer]"];function mn(p,b){p&1&&(K(0,"div",6),Ke(1),G())}function pn(p,b){p&1&&Ke(0,1,["*ngIf","!sections"])}function vn(p,b){if(p&1&&(K(0,"div",7),be(1),G()),p&2){let h=b.$implicit;le(),Qe(" ",h," ")}}function Cn(p,b){p&1&&(K(0,"div",8),Ke(1,2),G())}var Ur=(()=>{class p{constructor(){this.cardClass="",this.sections=null,this.hasHeader=!1,this.hasFooter=!1}ngAfterContentInit(){this.hasHeader=!!this.headerContent,this.hasFooter=!!this.footerContent}static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275cmp=se({type:p,selectors:[["wcard"]],contentQueries:function(c,u,l){if(c&1&&(pt(l,un,5),pt(l,dn,5)),c&2){let a;he(a=ue())&&(u.headerContent=a.first),he(a=ue())&&(u.footerContent=a.first)}},inputs:{cardClass:"cardClass",sections:"sections"},standalone:!1,ngContentSelectors:gn,decls:6,vars:5,consts:[[1,"w-card",3,"ngClass"],["class","w-card__header",4,"ngIf"],[1,"w-card__body"],[4,"ngIf"],["class","w-card__body-section",4,"ngFor","ngForOf"],["class","w-card__footer",4,"ngIf"],[1,"w-card__header"],[1,"w-card__body-section"],[1,"w-card__footer"]],template:function(c,u){c&1&&(at(fn),K(0,"div",0),re(1,mn,2,0,"div",1),K(2,"div",2),re(3,pn,1,0,"ng-content",3)(4,vn,2,1,"div",4),G(),re(5,Cn,2,0,"div",5),G()),c&2&&(q("ngClass",u.cardClass),le(),q("ngIf",u.hasHeader),le(2),q("ngIf",!u.sections),le(),q("ngForOf",u.sections),le(),q("ngIf",u.hasFooter))},dependencies:[Ae,Ye,Te],styles:[".w-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--c-bg-secondary);border-radius:var(--card-border-radius, 8px);box-shadow:var(--card-box-shadow, 0 2px 8px rgba(0, 0, 0, .1));overflow:hidden;margin-bottom:var(--card-margin-bottom, 20px);position:relative}.w-card__header[_ngcontent-%COMP%]{padding:var(--card-header-padding, 16px);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);flex-shrink:0}.w-card__body[_ngcontent-%COMP%]{padding:var(--card-body-padding, 16px);flex-grow:1;display:flex;flex-direction:column}.w-card__body-section[_ngcontent-%COMP%]{padding:var(--card-section-padding, 8px 0);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea)}.w-card__body-section[_ngcontent-%COMP%]:last-child{border-bottom:none}.w-card__footer[_ngcontent-%COMP%]{padding:var(--card-footer-padding, 16px);border-top:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);background-color:var(--card-footer-background, #f5f5f5);flex-shrink:0}"]})}}return p})();var fi=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({imports:[Oe,xe,tt]})}}return p})();var wn=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275cmp=se({type:p,selectors:[["icon-spider"]],standalone:!1,decls:30,vars:0,consts:[["viewBox","0 0 72 84","width","300px","height","300px","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M29.7441 38.2845C29.7441 38.2845 31.8474 35.0824 33.6034 33.46C35.2166 31.9737 35.9191 31.6079 36.0232 31.5575C36.1314 31.6079 36.8298 31.9737 38.443 33.46C40.1991 35.0824 42.3025 38.2845 42.3025 38.2845C42.3025 38.2845 47.196 35.9266 47.196 29.1802C47.196 22.4337 42.8736 18.9516 42.8736 18.9516C47.9679 27.7872 43.1013 33.2694 43.1013 33.2694C43.1013 33.2694 42.1364 33.1137 40.3998 31.0165C39.0996 29.5517 37.6333 28.246 36.031 27.126V27.1064V27.126C34.4245 28.2391 32.953 29.5384 31.6468 30.9971C29.9139 33.0942 28.9452 33.2498 28.9452 33.2498C28.9452 33.2498 24.0746 27.7679 29.1691 18.9321C29.1691 18.9321 24.8504 22.3948 24.8504 29.1607C24.8504 35.9266 29.7441 38.2845 29.7441 38.2845Z","fill","url(#paint0_linear_5_30)"],["d","M31.1333 41.3775C30.7938 44.101 32.322 45.2097 32.322 45.2097C32.3393 44.5685 32.4233 43.9308 32.5729 43.3072C32.7736 42.7159 33.8967 41.3618 35.0583 41.3618H36.988C38.1459 41.3618 39.2727 42.7003 39.4772 43.3072C39.6241 43.9312 39.707 44.5688 39.7242 45.2097C39.7242 45.2097 41.268 44.101 40.9167 41.3775C40.5965 38.8135 36.5132 35.3236 36.0464 34.9306V34.8917H36.0232H36V34.9306C35.533 35.3236 31.4499 38.8135 31.1333 41.3775Z","fill","url(#paint1_linear_5_30)"],["d","M43.2673 45.91C42.5186 47.5046 41.2429 48.7867 39.6587 49.5362C39.6587 49.5362 36.2085 44.7117 36.0386 44.5639V44.5406V44.5639C35.8688 44.7117 32.4224 49.5362 32.4224 49.5362C30.8254 48.7934 29.5365 47.5106 28.7792 45.91C27.6832 43.3578 28.7792 40.0742 28.7792 40.0742C27.8222 40.9534 25.823 45.91 28.0074 49.7775C28.644 50.9108 29.5247 51.8858 30.5848 52.6305C31.6448 53.3753 32.857 53.8708 34.1322 54.0805C34.1322 54.0805 33.395 52.9756 34.0125 51.1587C34.3557 50.1073 35.0716 49.2207 36.0232 48.6687C36.9748 49.2207 37.6907 50.1073 38.034 51.1587C38.6552 52.9756 37.9143 54.0805 37.9143 54.0805C39.1933 53.8718 40.4095 53.3761 41.473 52.6299C42.5364 51.8838 43.4201 50.9063 44.0583 49.7696C46.2235 45.879 44.2244 40.9456 43.2866 40.0663C43.2673 40.0742 44.3827 43.3578 43.2673 45.91Z","fill","url(#paint2_linear_5_30)"],["d","M18.7064 30.4135C19.2274 31.2189 25.8191 39.9729 25.8191 39.9729C25.8191 39.9729 27.1042 37.4868 25.9232 36.0005C24.7424 34.5144 21.5507 30.3474 20.9486 29.363C20.4509 28.4918 20.1627 27.515 20.1073 26.5111C20.034 25.6902 19.0767 14.6757 19.0767 14.6757C19.8965 11.6482 21.2001 8.77554 22.9362 6.17063C24.3439 4.00548 25.9018 1.94346 27.5982 0C27.5982 0 23.0403 3.23317 20.4314 7.2717C18.8838 9.64045 17.6645 12.2114 16.8074 14.913C16.8074 14.913 17.4134 24.6125 17.5407 26.5189C17.5809 27.8983 17.9831 29.2421 18.7064 30.4135Z","fill","url(#paint3_linear_5_30)"],["d","M19.0923 59.368C19.0923 59.368 19.0923 57.6639 20.1227 54.7848C21.1531 51.9056 24.7539 45.416 24.7539 45.416L25.0279 40.8056L24.3139 39.8095C24.3139 39.8095 19.096 37.7863 16.9811 36.6464C14.8663 35.5064 14.3105 35.1952 14.3105 35.1952C13.5116 33.6583 12.8328 32.0608 12.2805 30.4174C11.1922 27.3555 10.7599 25.9625 10.7599 25.9625C10.5214 22.9704 10.4609 19.9668 10.5785 16.9673C10.7599 11.781 11.0301 10.1158 11.0301 10.1158C11.0301 10.1158 9.72946 12.0067 9.15056 16.4031C8.57166 20.7996 8.44816 26.2622 8.44816 26.2622L11.7054 36.6152C11.7054 36.6152 14.407 38.4827 17.9074 40.4204C19.0234 41.0646 20.2047 41.5863 21.431 41.9767L12.4464 43.3735L3.91342 50.7658C2.51875 53.6073 1.48155 56.6135 0.825943 59.7142C-0.277831 64.9084 0.0540732 70.581 0.0540732 70.581C0.0540732 70.581 1.39713 64.9084 2.99104 59.8194C4.58495 54.7304 5.95501 52.3647 5.95501 52.3647L13.6737 46.3343L19.787 45.7468L15.0708 57.8078C15.0708 57.8078 15.0283 59.3641 15.7037 62.8657C16.3792 66.3673 19.266 75.67 19.266 75.67L26.6296 84L27.3397 83.8715L21.7822 74.6156L19.0923 59.368Z","fill","url(#paint4_linear_5_30)"],["d","M52.923 14.6757C52.923 14.6757 51.9659 25.6786 51.8888 26.5111C51.8333 27.515 51.5451 28.4918 51.0475 29.363C50.4492 30.3513 47.2537 34.5105 46.0728 36.0005C44.8918 37.4907 46.1769 39.9729 46.1769 39.9729C46.1769 39.9729 52.7725 31.2189 53.2936 30.4135C54.0144 29.2429 54.4139 27.9002 54.4514 26.5228C54.5826 24.6164 55.1886 14.9169 55.1886 14.9169C54.3296 12.216 53.1105 9.64533 51.5646 7.27559C48.9596 3.23317 44.4017 0 44.4017 0C46.1041 1.94244 47.6672 4.00452 49.0791 6.17063C50.8088 8.7772 52.1069 11.6496 52.923 14.6757Z","fill","url(#paint5_linear_5_30)"],["d","M71.1821 59.7027C70.5274 56.6015 69.4902 53.5952 68.0945 50.7541L59.5576 43.3617L50.5576 41.9689C51.7828 41.5784 52.9627 41.0566 54.0774 40.4126C57.5932 38.4673 60.2833 36.6075 60.2833 36.6075L63.5366 26.2544C63.5366 26.2544 63.4132 20.8074 62.8343 16.3992C62.2554 11.9911 60.9779 10.1158 60.9779 10.1158C60.9779 10.1158 61.248 11.7771 61.4295 16.9634C61.5448 19.9628 61.4841 22.9665 61.248 25.9586C61.248 25.9586 60.8081 27.3516 59.7313 30.4135C59.179 32.0569 58.5003 33.6544 57.7014 35.1913C57.7014 35.1913 57.1456 35.4986 55.0307 36.6425C52.9158 37.7863 47.6979 39.8056 47.6979 39.8056L46.9839 40.8017L47.2541 45.4121C47.2541 45.4121 50.8664 51.9017 51.8853 54.7808C52.9041 57.66 52.9158 59.3641 52.9158 59.3641L50.2142 74.6117L44.6528 83.8715L45.3629 84L52.7305 75.6778C52.7305 75.6778 55.6134 66.3868 56.2927 62.8735C56.972 59.3603 56.9256 57.8156 56.9256 57.8156L52.2094 45.7544L58.3189 46.3419L66.0375 52.3725C66.0375 52.3725 67.4115 54.738 69.0054 59.8272C70.5993 64.9162 71.9423 70.5888 71.9423 70.5888C71.9423 70.5888 72.2896 64.8967 71.1821 59.7027Z","fill","url(#paint6_linear_5_30)"],["id","paint0_linear_5_30","x1","36.0232","y1","18.9321","x2","36.0232","y2","38.2845","gradientUnits","userSpaceOnUse"],["stop-color","#F6C93C"],["offset","1","stop-color","#A79F1E"],["id","paint1_linear_5_30","x1","36.0264","y1","34.8917","x2","36.0264","y2","45.2097","gradientUnits","userSpaceOnUse"],["id","paint2_linear_5_30","x1","36.0264","y1","40.0663","x2","36.0264","y2","54.0805","gradientUnits","userSpaceOnUse"],["id","paint3_linear_5_30","x1","22.2029","y1","0","x2","22.2029","y2","39.9729","gradientUnits","userSpaceOnUse"],["id","paint4_linear_5_30","x1","13.6735","y1","10.1158","x2","13.6735","y2","84","gradientUnits","userSpaceOnUse"],["id","paint5_linear_5_30","x1","49.7951","y1","0","x2","49.7951","y2","39.9729","gradientUnits","userSpaceOnUse"],["id","paint6_linear_5_30","x1","58.3234","y1","10.1158","x2","58.3234","y2","84","gradientUnits","userSpaceOnUse"]],template:function(c,u){c&1&&(kt(),K(0,"svg",0),me(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),K(8,"defs")(9,"linearGradient",8),me(10,"stop",9)(11,"stop",10),G(),K(12,"linearGradient",11),me(13,"stop",9)(14,"stop",10),G(),K(15,"linearGradient",12),me(16,"stop",9)(17,"stop",10),G(),K(18,"linearGradient",13),me(19,"stop",9)(20,"stop",10),G(),K(21,"linearGradient",14),me(22,"stop",9)(23,"stop",10),G(),K(24,"linearGradient",15),me(25,"stop",9)(26,"stop",10),G(),K(27,"linearGradient",16),me(28,"stop",9)(29,"stop",10),G()()())},encapsulation:2})}}return p})();var gi=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({})}}return p})();var Co=yt(wt());ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};c.inherits(l,u),b.JsonHighlightRules=l});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(p,b,h){"use strict";var c=p("../range").Range,u=function(){};(function(){this.checkOutdent=function(l,a){return/^\s+$/.test(l)?/^\s*\}/.test(a):!1},this.autoOutdent=function(l,a){var n=l.getLine(a),t=n.match(/^(\s*\})/);if(!t)return 0;var e=t[1].length,r=l.findMatchingBracket({row:a,column:e});if(!r||r.row==a)return 0;var i=this.$getIndent(l.getLine(r.row));l.replace(new c(a,0,a,e-1),i)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(u.prototype),b.MatchingBraceOutdent=u});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(p,b,h){"use strict";var c=p("../../lib/oop"),u=p("../../range").Range,l=p("./fold_mode").FoldMode,a=b.FoldMode=function(n){n&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+n.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+n.end)))};c.inherits(a,l),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(n,t,e){var r=n.getLine(e);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(n,t,e);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(n,t,e,r){var i=n.getLine(e);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(n,i,e);var g=i.match(this.foldingStartMarker);if(g){var o=g.index;if(g[1])return this.openingBracketBlock(n,g[1],e,o);var s=n.getCommentFoldRange(e,o+g[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(n,e):t!="all"&&(s=null)),s}if(t!=="markbegin"){var g=i.match(this.foldingStopMarker);if(g){var o=g.index+g[0].length;return g[1]?this.closingBracketBlock(n,g[1],e,o):n.getCommentFoldRange(e,o,-1)}}},this.getSectionRange=function(n,t){var e=n.getLine(t),r=e.search(/\S/),i=t,o=e.length;t=t+1;for(var s=t,g=n.getLength();++tC)break;var _=this.getFoldWidgetRange(n,"all",t);if(_){if(_.start.row<=i)break;if(_.isMultiLine())t=_.end.row;else if(r==C)break}s=t}}return new u(i,o,s,n.getLine(s).length)},this.getCommentRegionBlock=function(n,t,e){for(var r=t.search(/\s*$/),i=n.getLength(),o=e,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++eo)return new u(o,r,_,t.length)}}.call(a.prototype)});ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("./text").Mode,l=p("./json_highlight_rules").JsonHighlightRules,a=p("./matching_brace_outdent").MatchingBraceOutdent,n=p("./behaviour/cstyle").CstyleBehaviour,t=p("./folding/cstyle").FoldMode,e=p("../worker/worker_client").WorkerClient,r=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new n,this.foldingRules=new t};c.inherits(r,u),function(){this.getNextLineIndent=function(i,o,s){var g=this.$getIndent(o);if(i=="start"){var C=o.match(/^.*[\{\(\[]\s*$/);C&&(g+=s)}return g},this.checkOutdent=function(i,o,s){return this.$outdent.checkOutdent(o,s)},this.autoOutdent=function(i,o,s){this.$outdent.autoOutdent(o,s)},this.createWorker=function(i){var o=new e(["ace"],pi(),"JsonWorker");return o.attachToDocument(i.getDocument()),o.on("annotate",function(s){i.setAnnotations(s.data)}),o.on("terminate",function(){i.clearAnnotations()}),o},this.$id="ace/mode/json"}.call(r.prototype),b.Mode=r});ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],function(p,b,h){b.isDark=!0,b.cssClass="ace-monokai",b.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}";var c=p("../lib/dom");c.importCssString(b.cssText,b.cssClass)});var Ci=yt(wt(),1);ace.define("ace/theme/github",["require","exports","module","ace/lib/dom"],function(p,b,h){b.isDark=!1,b.cssClass="ace-github",b.cssText='.ace-github .ace_gutter {background: #e8e8e8;color: #AAA;}.ace-github {background: #fff;color: #000;}.ace-github .ace_keyword {font-weight: bold;}.ace-github .ace_string {color: #D14;}.ace-github .ace_variable.ace_class {color: teal;}.ace-github .ace_constant.ace_numeric {color: #099;}.ace-github .ace_constant.ace_buildin {color: #0086B3;}.ace-github .ace_support.ace_function {color: #0086B3;}.ace-github .ace_comment {color: #998;font-style: italic;}.ace-github .ace_variable.ace_language {color: #0086B3;}.ace-github .ace_paren {font-weight: bold;}.ace-github .ace_boolean {font-weight: bold;}.ace-github .ace_string.ace_regexp {color: #009926;font-weight: normal;}.ace-github .ace_variable.ace_instance {color: teal;}.ace-github .ace_constant.ace_language {font-weight: bold;}.ace-github .ace_cursor {color: black;}.ace-github.ace_focus .ace_marker-layer .ace_active-line {background: rgb(255, 255, 204);}.ace-github .ace_marker-layer .ace_active-line {background: rgb(245, 245, 245);}.ace-github .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-github.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-github.ace_nobold .ace_line > span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_invisible {color: #BFBFBF}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var c=p("../lib/dom");c.importCssString(b.cssText,b.cssClass)});var bt=new Dt("ACE_CONFIG"),An=["blur","focus","copy","paste","change","changeSession"],bn=["changeCursor","changeSelection"],dt=class{readOnly;cursorStyle;selectionStyle;mergeUndoDeltas;behavioursEnabled;highlightActiveLine;highlightSelectedWord;wrapBehavioursEnabled;copyWithEmptySelection;navigateWithinSoftTabs;autoScrollEditorIntoView;mode;wrap;tabSize;overwrite;useWorker;foldStyle;newLineMode;useSoftTabs;firstLineNumber;theme;minLines;maxLines;fontSize;fontFamily;showGutter;printMargin;scrollPastEnd;animatedScroll;showInvisibles;fadeFoldWidgets;showLineNumbers;showFoldWidgets;showPrintMargin;fixedWidthGutter;printMarginColumn;displayIndentGuides;highlightGutterLine;hScrollBarAlwaysVisible;vScrollBarAlwaysVisible;dragDelay;dragEnabled;scrollSpeed;focusTimeout;tooltipFollowsMouse;enableBasicAutocompletion;enableLiveAutocompletion;enableSnippets;enableEmmet;useElasticTabstops;constructor(b={}){this.assign(b)}assign(b={},h){h=h||this;for(let c in b)b[c]&&!Array.isArray(b[c])&&typeof b[c]=="object"?(h[c]={},this.assign(b[c],h[c])):h[c]=b[c]}},vi=(()=>{class p{zone;elementRef;differs;defaults;instance=null;instanceEventListeners=[];selectionEventListeners=[];configDiff=null;disabled=!1;config;blur=new ge;focus=new ge;copy=new ge;paste=new ge;change=new ge;changeCursor=new ge;changeSession=new ge;changeSelection=new ge;constructor(h,c,u,l){this.zone=h,this.elementRef=c,this.differs=u,this.defaults=l}ngOnInit(){let h=new dt(this.defaults);h.assign(this.config),this.disabled?(h.readOnly=!0,h.highlightActiveLine=!1):h.highlightActiveLine!==!1&&(h.highlightActiveLine=!0),h.mode="ace/mode/"+(h.mode||"text"),h.theme="ace/theme/"+(h.theme||"github"),this.zone.runOutsideAngular(()=>{this.instance=Ci.edit(this.elementRef.nativeElement),this.instance.$blockScrolling=1/0,this.instance.setOptions(h)}),An.forEach(c=>{if(this.instance){let u=(...l)=>{l.length===1&&(l=l[0]),this[c]&&this.zone.run(()=>{this[c].observers.length&&this[c].emit(l)})};this.instance.on(c,u),this.instanceEventListeners.push({eventName:c,callback:u})}}),bn.forEach(c=>{if(this.instance){let u=(...l)=>{l.length===1&&(l=l[0]),this[c]&&this[c].observers.length&&this[c].emit(l)};this.instance.selection.on(c,u),this.selectionEventListeners.push({eventName:c,callback:u})}}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{}))}ngDoCheck(){this.configDiff&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnDestroy(){this.instance&&(this.instance.isFocused()&&this.blur.emit(),this.instanceEventListeners.forEach(h=>{this.instance.off(h.eventName,h.callback)}),this.instanceEventListeners=[],this.selectionEventListeners.forEach(h=>{this.instance.selection.off(h.eventName,h.callback)}),this.selectionEventListeners=[],delete this.instance,this.instance=null)}ngOnChanges(h){h.disabled&&h.disabled.currentValue!==h.disabled.previousValue&&this.zone.runOutsideAngular(()=>{if(this.instance){let c=new dt(this.defaults);c.assign(this.config),this.instance.clearSelection();let u=c.highlightActiveLine!==!1;this.instance.setHighlightActiveLine(this.disabled?!1:u),this.instance.setReadOnly(this.disabled?!0:c.readOnly||!1)}})}ace(){return this.instance}clear(){this.instance&&(this.instance.setValue(""),this.instance.clearSelection())}getValue(){if(this.instance)return this.instance.getValue()}setValue(h,c){this.instance&&this.instance.setValue(h||"",c)}static \u0275fac=function(c){return new(c||p)(ne(Ve),ne(Mt),ne(Ht),ne(bt,8))};static \u0275dir=Tt({type:p,selectors:[["","ace",""]],inputs:{disabled:"disabled",config:[0,"ace","config"]},outputs:{blur:"blur",focus:"focus",copy:"copy",paste:"paste",change:"change",changeCursor:"changeCursor",changeSession:"changeSession",changeSelection:"changeSelection"},exportAs:["ngxAce"],standalone:!1,features:[ze]})}return p})(),wi=(()=>{class p{content="";get value(){return this.content}set value(h){this.setContent(h)}disabled=!1;mode="";theme="";config;useAceClass=!0;blur=new ge;focus=new ge;copy=new ge;paste=new ge;change=new ge;valueChange=new ge;changeCursor=new ge;changeSession=new ge;changeSelection=new ge;directiveRef;constructor(){}ngAfterViewInit(){this.content!=null&&this.setContent(this.content,!0)}setContent(h,c){(c||h!==this.content)&&(this.directiveRef&&this.directiveRef.setValue(h,1),this.content=h)}getConfig(){return this.config=this.config||{},this.config.mode=this.mode||this.config.mode,this.config.theme=this.theme||this.config.theme,this.config}onContentChange(h){this.directiveRef&&(this.change.emit(h),this.content=this.directiveRef.getValue()||"",this.valueChange.emit(this.value))}static \u0275fac=function(c){return new(c||p)};static \u0275cmp=se({type:p,selectors:[["ace"]],viewQuery:function(c,u){if(c&1&&de(vi,7),c&2){let l;he(l=ue())&&(u.directiveRef=l.first)}},hostVars:2,hostBindings:function(c,u){c&2&&Ue("ace",u.useAceClass)},inputs:{value:"value",disabled:"disabled",mode:"mode",theme:"theme",config:"config",useAceClass:"useAceClass"},outputs:{blur:"blur",focus:"focus",copy:"copy",paste:"paste",change:"change",valueChange:"valueChange",changeCursor:"changeCursor",changeSession:"changeSession",changeSelection:"changeSelection"},exportAs:["ngxAce"],standalone:!1,decls:1,vars:2,consts:[[3,"blur","focus","copy","paste","change","changeCursor","changeSession","changeSelection","ace","disabled"]],template:function(c,u){c&1&&(K(0,"div",0),ee("blur",function(a){return u.blur.emit(a)})("focus",function(a){return u.focus.emit(a)})("copy",function(a){return u.copy.emit(a)})("paste",function(a){return u.paste.emit(a)})("change",function(a){return u.onContentChange(a)})("changeCursor",function(a){return u.changeCursor.emit(a)})("changeSession",function(a){return u.changeSession.emit(a)})("changeSelection",function(a){return u.changeSelection.emit(a)}),G()),c&2&&q("ace",u.getConfig())("disabled",u.disabled)},dependencies:[vi],styles:[`.ace,.ace>.ace_editor{display:block;width:100%;height:100%}.ace.flex{display:flex;flex-direction:inherit;align-items:inherit;min-width:0;min-height:0;-webkit-box-direction:inherit;-webkit-box-orient:inherit}.ace.flex>.ace_editor{flex:1 1 auto;min-width:0;min-height:0;-webkit-box-flex:1} +`],encapsulation:2})}return p})(),Ai=(()=>{class p{static \u0275fac=function(c){return new(c||p)};static \u0275mod=_e({type:p});static \u0275inj=Ee({imports:[xe,xe]})}return p})();var yn=["templateRef"];function En(p,b){if(p&1){let h=ce();K(0,"ace",1),ee("valueChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])}}var bi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Code",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(yn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["theme","monkai","mode","json",2,"width","100%",3,"valueChange","value"]],template:function(c,u){c&1&&re(0,En,1,1,"ng-template",null,0,pe)},dependencies:[wi],encapsulation:2})}}return p})();var Fi=(()=>{class p{constructor(h){this.doc=h,this.list={},this.cached={},this._notify=new _t([])}fixPaths(h){return h=h||[],Array.isArray(h)||(h=[h]),h.map(c=>{let u=typeof c=="string"?{path:c}:c;return u.type||(u.type=u.path.endsWith(".js")||u.callback?"script":"style"),u})}monitor(h){let c=this.fixPaths(h),u=[St(),mt(l=>l.length!==0)];return c.length>0&&u.push(mt(l=>l.length===c.length&&l.every(a=>a.status==="ok"&&c.find(n=>n.path===a.path)))),this._notify.asObservable().pipe(Et.apply(this,u))}clear(){this.list={},this.cached={}}load(h){return ke(this,null,function*(){return h=this.fixPaths(h),Promise.all(h.map(c=>c.type==="script"?this.loadScript(c.path,{callback:c.callback}):this.loadStyle(c.path))).then(c=>(this._notify.next(c),Promise.resolve(c)))})}loadScript(h,c){let{innerContent:u}=we({},c);return new Promise(l=>{if(this.list[h]===!0){l(Pe(we({},this.cached[h]),{status:"loading"}));return}this.list[h]=!0;let a=e=>{e.status==="ok"&&c?.callback?window[c?.callback]=()=>{n(e)}:n(e)},n=e=>{e.type="script",this.cached[h]=e,l(e),this._notify.next([e])},t=this.doc.createElement("script");t.type="text/javascript",t.src=h,t.charset="utf-8",u&&(t.innerHTML=u),t.readyState?t.onreadystatechange=()=>{(t.readyState==="loaded"||t.readyState==="complete")&&(t.onreadystatechange=null,a({path:h,status:"ok"}))}:t.onload=()=>a({path:h,status:"ok"}),t.onerror=e=>a({path:h,status:"error",error:e}),this.doc.getElementsByTagName("head")[0].appendChild(t)})}loadStyle(h,c){let{rel:u,innerContent:l}=we({rel:"stylesheet"},c);return new Promise(a=>{if(this.list[h]===!0){a(this.cached[h]);return}this.list[h]=!0;let n=this.doc.createElement("link");n.rel=u,n.type="text/css",n.href=h,l&&(n.innerHTML=l),this.doc.getElementsByTagName("head")[0].appendChild(n);let t={path:h,status:"ok",type:"style"};this.cached[h]=t,a(t)})}static{this.\u0275fac=function(c){return new(c||p)(We(ct))}}static{this.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();var _n=["*"];function xn(p,b){if(p&1&&(K(0,"div"),Ke(1),G()),p&2){let h=ie();Ne("id",h.id)}}function Sn(p,b){if(p&1&&me(0,"textarea",0),p&2){let h=ie();Ne("id",h.id)("placeholder",h.placeholder)}}function $n(p,b){if(p&1&&be(0),p&2){let h=ie(2);Qe(" ",h._loading," ")}}function Bn(p,b){}function Dn(p,b){if(p&1&&re(0,Bn,0,0,"ng-template",2),p&2){let h=ie(2);q("ngTemplateOutlet",h._loadingTpl)}}function kn(p,b){if(p&1&&(K(0,"div",1),re(1,$n,1,1)(2,Dn,1,1,null,2),G()),p&2){let h=ie();le(),rt(h._loading?1:2)}}var ft=class{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}},yi=!(typeof document=="object"&&document),Ei=(()=>{class p{constructor(){this.defConfig=He(ft,{optional:!0}),this.lazySrv=He(Fi),this.ngZone=He(Ve),this.doc=He(ct),this.cd=He(lt),this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new ge}set disabled(h){this._disabled=h,this.setDisabled()}set loading(h){h instanceof Lt?(this._loading=null,this._loadingTpl=h):this._loading=h}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}initDelay(){yi||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){let h=this._getWin();if(!h.tinymce)throw new Error("tinymce js\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25");let{defConfig:c,config:u,id:l,inline:a}=this;if(this._instance)return;if(c?.baseURL){let e=""+c.baseURL;e.endsWith("/")&&(e=e.substring(0,e.length-1)),h.tinymce.baseURL=e}let n=we(we({},c?.config),u),t=Pe(we(we({selector:"#"+l,inline:a},c?.config),u),{setup:e=>{this._instance=e,this.onChange&&e.on("change keyup",()=>{this.value=e.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),typeof n.setup=="function"&&n.setup(e)},init_instance_callback:e=>{e&&this.value&&e.setContent(this.value),this.setDisabled(),typeof n.init_instance_callback=="function"&&n.init_instance_callback(e),this.ready.emit(e)}});n.auto_focus&&(t.auto_focus=l),this.ngZone.runOutsideAngular(()=>h.tinymce.init(t)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance!=null&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove()}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{let h=this._disabled?"readonly":"design",c=this._instance.setMode;typeof c=="function"?c(h):this._instance.mode.set(h)})}ngAfterViewInit(){if(yi)return;if(this._getWin().tinymce){this.initDelay();return}let{defConfig:h}=this,c=h&&h.baseURL,u=h&&h.fileName,l=(c||"./assets/tinymce/")+(u||"tinymce.min.js");this.lazySrv.monitor(l).subscribe(()=>this.initDelay()),this.lazySrv.load(l)}ngOnChanges(h){this._instance&&h.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(h){this.value=h||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(h){this.onChange=h}registerOnTouched(h){this.onTouched=h}setDisabledState(h){this.disabled=h,this.setDisabled()}static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275cmp=se({type:p,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:[2,"inline","inline",vt],disabled:[2,"disabled","disabled",vt],loading:"loading",delay:[2,"delay","delay",zt]},outputs:{ready:"ready"},exportAs:["tinymce"],features:[Pt([{provide:Gt,useExisting:Bt(()=>p),multi:!0}]),Ot,ze],ngContentSelectors:_n,decls:3,vars:2,consts:[[1,"tinymce-selector"],[1,"loading"],[3,"ngTemplateOutlet"]],template:function(c,u){c&1&&(at(),re(0,xn,2,1,"div")(1,Sn,1,2,"textarea",0)(2,kn,3,1,"div",1)),c&2&&(rt(u.inline?0:1),le(2),rt(u.load?2:-1))},dependencies:[Nt],styles:[`tinymce .tinymce-selector{display:none} +`],encapsulation:2,changeDetection:0})}}return p})(),_i=(()=>{class p{static forRoot(h){return{ngModule:p,providers:[{provide:ft,useValue:h}]}}static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({imports:[xe]})}}return p})();var Rn=["templateRef"];function Ln(p,b){if(p&1){let h=ce();K(0,"tinymce",1),ee("ngModelChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("ngModel",h.submition[h.key])}}var xi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Html",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Rn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"ngModelChange","ngModel"]],template:function(c,u){c&1&&re(0,Ln,1,1,"ng-template",null,0,pe)},dependencies:[Qt,Yt,Ei],encapsulation:2})}}return p})();var Tn=["templateRef"];function On(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())})("wSubmit",function(){let u=Z(h).$implicit;return J(u.wSubmit())}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("setFocus",h.component)("label",h.field.Label)}}var Si=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Email",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Tn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","email",3,"wChange","wSubmit","value","placeholder","name","focused","ngClass","setFocus","label"]],template:function(c,u){c&1&&re(0,On,1,7,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var In=["templateRef"];function Pn(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return J(l.submition[l.key]=u)}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var $i=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Number",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(In,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","number",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,Pn,1,6,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var Wn=["templateRef"];function Hn(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return J(l.submition[l.key]=u)}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var Bi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Time",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Wn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","time",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,Hn,1,6,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var zn=["templateRef"];function Vn(p,b){if(p&1){let h=ce();K(0,"ngx-file",1),ee("update",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("label",h.field.Label)("width",h.field.Width)("height",h.field.Height)("isPhoto",!0)}}var Di=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Photo",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(zn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"update","value","label","width","height","isPhoto"]],template:function(c,u){c&1&&re(0,Vn,1,5,"ng-template",null,0,pe)},dependencies:[ut],encapsulation:2})}}return p})();var Nn=["templateRef"];function jn(p,b){if(p&1){let h=ce();K(0,"ngx-file",1),ee("update",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("container",h.config.formId)("label",h.field.Label)("width",h.field.Width)("height",h.field.Height)("multiple",!0)("isPhoto",!0)}}var ki=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Photos",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Nn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"update","value","container","label","width","height","multiple","isPhoto"]],template:function(c,u){c&1&&re(0,jn,1,7,"ng-template",null,0,pe)},dependencies:[ut],encapsulation:2})}}return p})();var Un=["templateRef"];function Kn(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return J(l.submition[l.key]=u)}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var Mi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Date",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Un,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","date",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,Kn,1,6,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var Gn=["templateRef"];function Qn(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("type",h.field.Textarea?"textarea":"text")("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("value",h.submition[h.key])("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var Ri=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Text",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Gn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"wChange","type","placeholder","name","value","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,Qn,1,7,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var Yn=["templateRef"];function Xn(p,b){if(p&1){let h=ce();K(0,"wbutton",1),ee("click",function(){let u=Z(h).$implicit,l=ie();return J(l.click(u))}),be(1),G()}if(p&2){let h=b.$implicit;q("disableSubmit",!0),le(),Ge(h.field.Label)}}var Li=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Button",this.templateRef)}click(h){typeof h.field.Click=="function"&&h.field.Click()}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["button-formcomponents"]],viewQuery:function(c,u){if(c&1&&de(Yn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"click","disableSubmit"]],template:function(c,u){c&1&&re(0,Xn,2,2,"ng-template",null,0,pe)},dependencies:[Xe],styles:[".w-btn[_ngcontent-%COMP%]{font-size:var(--fs);font-weight:500;font-family:var(--ff-base);background-color:var(--c-primary);border-radius:var(--b-radius-btn);transition:var(--transition);color:var(--c-white);position:relative;padding:11px 25px;line-height:19px;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;text-align:center;width:100%;border:none;cursor:pointer;transition:all .3s;border-radius:4px}.w-btn._primary[_ngcontent-%COMP%]{background-color:var(--c-primary)}.w-btn._primary[_ngcontent-%COMP%]:hover{background-color:var(--c-primary-hover)}.w-btn._second[_ngcontent-%COMP%]{border:1px solid #256eff;background-color:var(--c-white);color:#256eff}.w-btn._danger[_ngcontent-%COMP%]{background-color:var(--c-secondary);color:#fff}.w-btn._danger[_ngcontent-%COMP%]:hover{background:var(--c-secondary-hover)}.w-btn._link[_ngcontent-%COMP%]{background:transparent;color:var(--c-text-primary);font-size:14px;font-weight:400}.w-btn._link[_ngcontent-%COMP%]:hover{color:var(--c-text-secondary)}.w-btn[_ngcontent-%COMP%]:disabled{background-color:var(--c-grey-dark);cursor:default}.w-btn[_ngcontent-%COMP%]:disabled:hover{background-color:var(--c-grey-dark)}"]})}}return p})();var Zn=["templateRef"];function Jn(p,b){p&1&&me(0,"span",10)}function qn(p,b){p&1&&me(0,"span",11)}function er(p,b){p&1&&me(0,"span",12)}function tr(p,b){p&1&&me(0,"span",13)}function ir(p,b){if(p&1){let h=ce();K(0,"div",1)(1,"winput",2),ee("wChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())})("wSubmit",function(){let u=Z(h).$implicit;return J(u.wSubmit())}),G(),K(2,"div",3),re(3,Jn,1,0,"span",4)(4,qn,1,0,"span",5)(5,er,1,0,"span",6)(6,tr,1,0,"span",7),G(),K(7,"div",8)(8,"span",9),ee("click",function(){let u=Z(h).$implicit;return J(u.field.Show=!u.field.Show)}),be(9," visibility "),G()()()}if(p&2){let h=b.$implicit,c=ie();le(),q("value",h.submition[h.key])("type",h.field.Show?"text":"password")("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("setFocus",h.component)("label",h.field.Label),le(2),q("ngIf",c.ui.level(h.value)>1),le(),q("ngIf",c.ui.level(h.value)>2),le(),q("ngIf",c.ui.level(h.value)>3),le(),q("ngIf",c.ui.level(h.value)>4)}}var Ti=(()=>{class p{constructor(h,c){this._form=h,this.ui=c}ngOnInit(){this._form.addTemplateComponent("Password",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe),ne(qt))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Zn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[1,"pass_container"],["type","password",3,"wChange","wSubmit","value","type","placeholder","name","focused","ngClass","setFocus","label"],[1,"smart"],["class","red",4,"ngIf"],["class","orange",4,"ngIf"],["class","yellow",4,"ngIf"],["class","green",4,"ngIf"],[1,"eye"],[1,"material-icons",3,"click"],[1,"red"],[1,"orange"],[1,"yellow"],[1,"green"]],template:function(c,u){c&1&&re(0,ir,10,12,"ng-template",null,0,pe)},dependencies:[Se,Ae,Te],styles:[".pass_container[_ngcontent-%COMP%]{position:relative}.smart[_ngcontent-%COMP%]{position:absolute;right:0;top:0}.red[_ngcontent-%COMP%]{width:3px;height:8px;background-color:#bb1717;display:inline-block;margin-left:5px}.orange[_ngcontent-%COMP%]{width:3px;height:10px;background-color:#eb9719;display:inline-block;margin-left:5px}.yellow[_ngcontent-%COMP%]{width:3px;height:12px;background-color:#fffb00;display:inline-block;margin-left:5px}.green[_ngcontent-%COMP%]{width:3px;height:14px;background-color:#21d311;display:inline-block;margin-left:5px}.eye[_ngcontent-%COMP%]{position:relative;cursor:pointer}.eye[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:-32px;right:10px;font-size:22px;color:var(--c-text-primary)}@media screen and (max-width: 768px){.red[_ngcontent-%COMP%]{width:3px;height:8px;background-color:#bb1717;display:inline-block;margin-left:5px}.orange[_ngcontent-%COMP%]{width:3px;height:10px;background-color:#eb9719;display:inline-block;margin-left:5px}.yellow[_ngcontent-%COMP%]{width:3px;height:12px;background-color:#fffb00;display:inline-block;margin-left:5px}.green[_ngcontent-%COMP%]{width:3px;height:14px;background-color:#21d311;display:inline-block;margin-left:5px}#eye[_ngcontent-%COMP%]{position:absolute;left:165px;top:252px;font-size:22px;color:#5a5a5a}}"]})}}return p})();var nr=["templateRef"];function rr(p,b){if(p&1){let h=ce();K(0,"wselect",1),ee("modelChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("select",h.submition[h.key])("multiple",h.field.Multiple||!1)("placeholder",h.field.Placeholder)("value",h.field.Value||"_id")("name",h.field.Name||"name")("ngClass",h.component.class)("items",h.field.Items)("searchable",!0)}}var Oi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Select",this.templateRef)}select(h){return h.value?.name||h.value||""}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(nr,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"modelChange","select","multiple","placeholder","value","name","ngClass","items","searchable"]],template:function(c,u){c&1&&re(0,rr,1,8,"ng-template",null,0,pe)},dependencies:[Ae,ni],styles:[".w-select[_ngcontent-%COMP%]{width:100%}.w-select__label[_ngcontent-%COMP%]{margin-bottom:5px}.w-select__body[_ngcontent-%COMP%]{position:relative;cursor:pointer;display:flex;min-height:50px;height:50px;align-items:center;border:2px solid var(--c-text-primary);border-radius:12px;transition:var(--transition)}.w-select__body._active[_ngcontent-%COMP%]{border-color:var(--c-sky)}.w-select__header[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;overflow:hidden;white-space:nowrap;padding:14px 10px 14px 40px;color:#666;position:relative}.w-select__header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%)}.w-select__header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-primary)}.w-select__text[_ngcontent-%COMP%]{margin-right:10px;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.w-select__text[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;word-break:keep-all;color:var(--c-text-primary)}.w-select__arrow[_ngcontent-%COMP%]{margin-right:15px;transition:var(--transition);display:flex;align-items:center;justify-content:center;border-radius:50%}.w-select__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:12px;height:12px}.w-select__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-text-primary)}.w-select__arrow._active[_ngcontent-%COMP%]{transform:rotate(180deg)}.w-select[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:10px;transition:var(--transition);border-bottom:1px solid var(--c-text-primary)}.w-select[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background:var(--c-shadow);border-bottom:1px solid #1ac5eb;color:#1ac5eb}.w-select__popup[_ngcontent-%COMP%]{z-index:9;width:100%;left:0;position:absolute;top:calc(100% + 10px);background:var(--c-white);box-shadow:0 0 4px var(--c-border);border-radius:10px;border:2px solid #173b59;background:#f8f6f6;color:#666;padding-bottom:15px;padding-top:15px}.w-select__popup._search[_ngcontent-%COMP%]{padding-top:60px}.w-select__popup[_ngcontent-%COMP%] .popup-block[_ngcontent-%COMP%]{max-height:180px;overflow-y:auto;padding:0 15px}.w-select__popup[_ngcontent-%COMP%] .popup-block__empty-search[_ngcontent-%COMP%]{padding:15px;text-align:center;color:#717171}.w-select__search[_ngcontent-%COMP%]{top:10px;position:absolute;display:flex;justify-content:center;align-items:center;width:100%;left:0;padding:0 15px}.w-select__search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{outline:none;width:100%;cursor:pointer;display:flex;padding:10px 30px 10px 10px;align-items:center;border:1px solid var(--c-border);border-radius:10px;transition:var(--transition)}.w-select__search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;top:50%;right:25px;transform:translateY(-50%)}.w-select[_ngcontent-%COMP%] *[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:5px;background-color:var(--c-white)}.w-select[_ngcontent-%COMP%] *[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--c-border)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]{display:inline-flex;-webkit-user-select:none;user-select:none;cursor:pointer;padding:6px 8px;color:var(--c-text);border-radius:6px;overflow:hidden;transition:var(--transition)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:hover{background:rgba(var(--c-sky),.09)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:hover .checkbox__svg[_ngcontent-%COMP%]{border-color:var(--c-sky)}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]{display:none}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]:checked + .checkbox__body[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%]{background:var(--c-sky);border-color:var(--c-sky);animation:_ngcontent-%COMP%_wave .4s ease}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]:checked + .checkbox__body[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{stroke-dashoffset:0}.w-select[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%]{position:relative;min-width:18px;min-height:18px;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.w-select[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:3px;left:2px;fill:none;stroke:var(--c-white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-select[_ngcontent-%COMP%] .checkbox__text[_ngcontent-%COMP%]{padding-left:8px;line-height:18px;text-overflow:ellipsis;overflow:hidden}.w-select[_ngcontent-%COMP%] .checkbox__svg-icon[_ngcontent-%COMP%]{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes _ngcontent-%COMP%_wave{50%{transform:scale(.9)}}.selected[_ngcontent-%COMP%]{font-weight:700}"]})}}return p})();var or=["templateRef"];function sr(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return J(l.submition[l.key]=u)}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var Ii=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Boolean",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(or,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","checkbox",3,"wChange","value","name","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,sr,1,5,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var ar=["templateRef"],lr=["inputRef"];function cr(p,b){if(p&1){let h=ce();ot(0),K(1,"span"),be(2),G(),K(3,"i",5),ee("click",function(){let u=Z(h).index,l=ie().$implicit;return J(l.submition[l.key].splice(u,1))}),be(4,"X"),G(),st()}if(p&2){let h=b.$implicit;le(2),Ge(h)}}function hr(p,b){if(p&1){let h=ce();K(0,"div")(1,"winput",2,1),ee("wSubmit",function(){let u=Z(h).$implicit,l=ie();return J(l.addTag(u))}),G(),re(3,cr,5,1,"ng-container",3),K(4,"wbutton",4),ee("click",function(){let u=Z(h).$implicit,l=ie();return J(l.addTag(u))}),be(5),G()()}if(p&2){let h=b.$implicit,c=It(2);le(),q("placeholder",h.field.Placeholder)("label",h.field.Label),le(2),q("ngForOf",h.submition[h.key]),le(),q("disabled",!c.value),le(),Qe(" ",h.field.Button||"Add"," ")}}var Pi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Tags",this.templateRef)}addTag(h){h.submition[h.key]=h.submition[h.key]||[],h.submition[h.key].push(this.inputRef.value.replace(` +`,"")),this.inputRef.value="",h.wChange.emit(),setTimeout(()=>{this.inputRef.focus()},100)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&(de(ar,7),de(lr,5)),c&2){let l;he(l=ue())&&(u.templateRef=l.first),he(l=ue())&&(u.inputRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["inputRef",""],[3,"wSubmit","placeholder","label"],[4,"ngFor","ngForOf"],[3,"click","disabled"],[3,"click"]],template:function(c,u){c&1&&re(0,hr,6,5,"ng-template",null,0,pe)},dependencies:[Se,Xe,Ye],encapsulation:2})}}return p})();var ur={maxLines:1/0,theme:"monokai",mode:"json",minLines:10,tabSize:4},Wi=(()=>{class p{constructor(h){this._form=h,this._form.injectComponent("Code",bi),this._form.injectComponent("Html",xi),this._form.injectComponent("Boolean",Ii,["Label"]),this._form.injectComponent("Button",Li,["Label"]),this._form.injectComponent("Date",Mi),this._form.injectComponent("Email",Si),this._form.injectComponent("Number",$i),this._form.injectComponent("Password",Ti),this._form.injectComponent("Photo",Di,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent("Photos",ki,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent("Select",Oi,["Placeholder","Label","Items","Multiple"],{Items:"Tags",Multiple:"Boolean"}),this._form.injectComponent("Tags",Pi,["Button","Placeholder","Label"]),this._form.injectComponent("Text",Ri,["Textarea","Placeholder","Label"],{Textarea:"Boolean"}),this._form.injectComponent("Time",Bi)}static{this.\u0275fac=function(c){return new(c||p)(We(fe))}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({providers:[{provide:bt,useValue:ur}],imports:[ht,Ze,xe,di,it,Ai,Oe,_i.forRoot({baseURL:"//cdnjs.cloudflare.com/ajax/libs/tinymce/5.7.1/"})]})}}return p})();var Ts=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({imports:[Wi,it,xe,Oe,tt,ii,it,xe,Oe,tt,Ze,ht,fi,ei,ti,gi]})}}return p})();export{Ur as a,wn as b,ut as c,di as d,Ts as e}; diff --git a/chunk-HB3TX3ID.js b/chunk-HB3TX3ID.js new file mode 100644 index 0000000..7e3d260 --- /dev/null +++ b/chunk-HB3TX3ID.js @@ -0,0 +1 @@ +import{e as I}from"./chunk-EBFT2EPY.js";import{$a as l,I as a,L as y,M as _,R as v,Ua as S,X as w,cb as g,db as C,eb as b,f as p,gb as m,i as n,lb as P,r as d,s as u,sb as j,u as c,ub as k}from"./chunk-5J222IEH.js";var M={formId:"property",title:"Property",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill property title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill property description"},{name:"Label",value:"Description"}]}]};var F=(()=>{class r extends g{constructor(i,e,t,s){super({name:"property"},i,e,t,s)}static{this.\u0275fac=function(e){return new(e||r)(c(b),c(C),c(m),c(l))}}static{this.\u0275prov=d({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(i,e,t,s,h){this._translate=i,this._propertyService=e,this._alert=t,this._form=s,this._core=h,this.columns=["name","description"],this.form=this._form.getForm("property",M),this.config={paginate:this.setRows.bind(this),perPage:20,setPerPage:this._propertyService.setPerPage.bind(this._propertyService),allDocs:!1,create:()=>{this._form.modal(this.form,{label:"Create",click:(o,f)=>p(this,null,function*(){f(),this._preCreate(o),yield n(this._propertyService.create(o)),this.setRows()})})},update:o=>{this._form.modal(this.form,[],o).then(f=>{this._core.copy(f,o),this._propertyService.update(o)})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this property?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>p(this,null,function*(){yield n(this._propertyService.delete(o)),this.setRows()})}]})},buttons:[{icon:"cloud_download",click:o=>{this._form.modalUnique("property","url",o)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.rows=[],this._page=1,this.setRows()}setRows(i=this._page){this._page=i,this._core.afterWhile(this,()=>{this._propertyService.get({page:i}).subscribe(e=>{this.rows.splice(0,this.rows.length),this.rows.push(...e)})},250)}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(e=>p(this,null,function*(){if(i)for(let t of e)this._preCreate(t),yield n(this._propertyService.create(t));else{for(let t of this.rows)e.find(s=>s._id===t._id)||(yield n(this._propertyService.delete(t)));for(let t of e){let s=this.rows.find(h=>h._id===t._id);s?(this._core.copy(t,s),yield n(this._propertyService.update(s))):(this._preCreate(t),yield n(this._propertyService.create(t)))}}this.setRows()}))}}_preCreate(i){delete i.__created}static{this.\u0275fac=function(e){return new(e||r)(a(P),a(F),a(m),a(k),a(l))}}static{this.\u0275cmp=y({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Properties",3,"columns","config","rows"]],template:function(e,t){e&1&&w(0,"wtable",0),e&2&&v("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[j],encapsulation:2})}}return r})();var A=[{path:"",component:R}],J=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=_({type:r})}static{this.\u0275inj=u({imports:[S.forChild(A),I]})}}return r})();export{J as PropertiesModule}; diff --git a/chunk-PACLOQHK.js b/chunk-PACLOQHK.js new file mode 100644 index 0000000..936cb19 --- /dev/null +++ b/chunk-PACLOQHK.js @@ -0,0 +1 @@ +import{a as k}from"./chunk-CB322JUW.js";import{e as T}from"./chunk-EBFT2EPY.js";import{$ as y,$a as P,Da as M,H as b,I as s,L as C,M as x,P as p,R as a,Ua as O,V as f,W as _,_ as w,aa as c,gb as v,lb as U,pb as j,rb as F,s as g,sb as I,ub as S,x as u,y as h}from"./chunk-5J222IEH.js";function N(t,l){if(t&1){let n=w();f(0,"winput",3),y("wChange",function(e){let o=u(n).$implicit,d=c().$implicit,r=c();return o.is[d]=e,h(r.update(o))}),_()}if(t&2){let n=l.$implicit,i=c().$implicit;a("value",n.is[i])}}function A(t,l){if(t&1&&p(0,N,1,1,"ng-template",2),t&2){let n=l.$implicit;a("cell",n)}}var $=(()=>{class t{get roles(){return this._us.roles}get users(){return this._us.users}constructor(n,i,e,o,d){this._translate=n,this._alert=i,this._form=e,this._core=o,this._us=d,this.form=this._form.getForm("user"),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,m)=>{this._us.create(r,{alert:"User has been created",callback:m.bind(this)})}}).then(this._us.create.bind(this))},update:r=>{this._form.modal(this.form,[],r).then(m=>{this._core.copy(m,r),this._us.update(r,{alert:"User has been updated"})})},delete:r=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this user?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._us.delete(r,{name:"admin",alert:"User has been deleted",callback:()=>{}})}}]})},headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.columns=["name","email"];for(let r of this._us.roles)this.columns.push(r)}update(n){this._us.updateAdmin(n)}_bulkManagement(n=!0){return()=>{this._form.modalDocs(n?[]:this.users).then(i=>{for(let e of this.users)i.find(o=>o._id===e._id)||this._us.delete(e);for(let e of i)n?this._us.create(e):(this._core.copy(e,this._us.doc(e._id)),this._us.update(e))})}}static{this.\u0275fac=function(i){return new(i||t)(s(U),s(v),s(S),s(P),s(k))}}static{this.\u0275cmp=C({type:t,selectors:[["app-users"]],standalone:!1,decls:2,vars:4,consts:[["title","Users",3,"columns","config","rows"],[4,"ngFor","ngForOf"],[3,"cell"],["type","checkbox",3,"wChange","value"]],template:function(i,e){i&1&&(f(0,"wtable",0),p(1,A,1,1,null,1),_()),i&2&&(a("columns",e.columns)("config",e.config)("rows",e.users),b(),a("ngForOf",e.roles))},dependencies:[M,j,I,F],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.w-table-user[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.w-table-user__img[_ngcontent-%COMP%]{width:30px;height:30px;min-width:30px;min-height:30px;margin-right:10px}.w-table-user__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:var(--b-radius-img)}@media (max-width: 991.9px){.w-table-user__img[_ngcontent-%COMP%]{display:none}}@media (max-width: 991.9px){.w-table[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .w-table[_ngcontent-%COMP%] .role[_ngcontent-%COMP%]{display:none}}.w-table[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{height:18px;max-height:18px;display:block}.w-table[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]{padding:2px}.users-field[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-end}.users-field[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:10px}.users-field[_ngcontent-%COMP%] .forms[_ngcontent-%COMP%]{width:100%}@media (max-width: 575.9px){.users-field[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.users-field[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin-bottom:20px;width:100%}}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{transition:var(--transition)}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]:hover{color:var(--c-error)}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%] + i[_ngcontent-%COMP%]{margin-left:15px}.users__header[_ngcontent-%COMP%]{letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:var(--b-radius)}"]})}}return t})();var V=[{path:"",component:$}],W=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=g({imports:[O.forChild(V),T]})}}return t})();export{W as UsersModule}; diff --git a/chunk-PF4BMXZS.js b/chunk-PF4BMXZS.js new file mode 100644 index 0000000..64e4b5c --- /dev/null +++ b/chunk-PF4BMXZS.js @@ -0,0 +1 @@ +import{e as I}from"./chunk-EBFT2EPY.js";import{$a as l,I as n,L as u,M as y,R as _,Ua as S,X as w,cb as g,db as C,eb as b,f as p,gb as m,i as c,lb as P,r as v,s as d,sb as j,u as a,ub as k}from"./chunk-5J222IEH.js";var M={formId:"propertyservice",title:"Propertyservice",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill propertyservice title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill propertyservice description"},{name:"Label",value:"Description"}]}]};var F=(()=>{class r extends g{constructor(i,e,t,s){super({name:"propertyservice"},i,e,t,s)}static{this.\u0275fac=function(e){return new(e||r)(a(b),a(C),a(m),a(l))}}static{this.\u0275prov=v({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(i,e,t,s,h){this._translate=i,this._propertyserviceService=e,this._alert=t,this._form=s,this._core=h,this.columns=["name","description"],this.form=this._form.getForm("propertyservice",M),this.config={paginate:this.setRows.bind(this),perPage:20,setPerPage:this._propertyserviceService.setPerPage.bind(this._propertyserviceService),allDocs:!1,create:()=>{this._form.modal(this.form,{label:"Create",click:(o,f)=>p(this,null,function*(){f(),this._preCreate(o),yield c(this._propertyserviceService.create(o)),this.setRows()})})},update:o=>{this._form.modal(this.form,[],o).then(f=>{this._core.copy(f,o),this._propertyserviceService.update(o)})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this propertyservice?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>p(this,null,function*(){yield c(this._propertyserviceService.delete(o)),this.setRows()})}]})},buttons:[{icon:"cloud_download",click:o=>{this._form.modalUnique("propertyservice","url",o)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.rows=[],this._page=1,this.setRows()}setRows(i=this._page){this._page=i,this._core.afterWhile(this,()=>{this._propertyserviceService.get({page:i}).subscribe(e=>{this.rows.splice(0,this.rows.length),this.rows.push(...e)})},250)}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(e=>p(this,null,function*(){if(i)for(let t of e)this._preCreate(t),yield c(this._propertyserviceService.create(t));else{for(let t of this.rows)e.find(s=>s._id===t._id)||(yield c(this._propertyserviceService.delete(t)));for(let t of e){let s=this.rows.find(h=>h._id===t._id);s?(this._core.copy(t,s),yield c(this._propertyserviceService.update(s))):(this._preCreate(t),yield c(this._propertyserviceService.create(t)))}}this.setRows()}))}}_preCreate(i){delete i.__created}static{this.\u0275fac=function(e){return new(e||r)(n(P),n(F),n(m),n(k),n(l))}}static{this.\u0275cmp=u({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Propertiesservices",3,"columns","config","rows"]],template:function(e,t){e&1&&w(0,"wtable",0),e&2&&_("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[j],encapsulation:2})}}return r})();var A=[{path:"",component:R}],J=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=y({type:r})}static{this.\u0275inj=d({imports:[S.forChild(A),I]})}}return r})();export{J as PropertiesservicesModule}; diff --git a/chunk-Q7WGDE32.js b/chunk-Q7WGDE32.js new file mode 100644 index 0000000..d3bc152 --- /dev/null +++ b/chunk-Q7WGDE32.js @@ -0,0 +1 @@ +import{$ as c,Ab as L,Bb as $,H as d,I as g,Ia as T,L as w,M as C,P as b,R as u,Ua as P,V as r,W as o,_a as O,aa as v,eb as S,ia as m,ka as _,kb as j,lb as k,mb as I,nb as A,ob as E,qa as M,rb as F,s as h,sa as y,sb as N,ub as D,xb as z,yb as B,zb as J}from"./chunk-5J222IEH.js";function W(n,f){if(n&1&&m(0),n&2){let t=f.$implicit;_(" ",t==null||t.slug==null?null:t.slug.split(".")[0]," ")}}function q(n,f){if(n&1&&(m(0),M(1,"translate")),n&2){let t=f.$implicit,e=v();_(" ",y(1,1,t==null?null:t.slug,e.ts.now)," ")}}var H=(()=>{class n{setPage(t){this.page=t,localStorage.setItem("page",t)}get rows(){return this.ts.words.filter(t=>this.page&&typeof t=="object"?this.page===t.slug.split(".")[0]:!0)}constructor(t,e,a){this.ts=t,this._form=e,this._http=a,this.columns=["page","word","translation"],this.form=this._form.getForm("translate",{formId:"translate",title:"Translate",components:[{name:"Text",key:"translate",focused:!0,fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]}]}),this.formAll=this._form.getForm("translateAll",{formId:"translateAll",title:"Translate All",components:[{name:"Text",key:"words",fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]},{name:"Text",key:"translates",focused:!0,fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]}]}),this.config={update:i=>{this._form.modal(this.form,[],{translate:this.ts.translate(i.slug)}).then(l=>{this._http.post("/api/translate/create",{appId:this.ts.appId,slug:i.slug,lang:this.ts.language.code,translate:l.translate}),this.ts.translates[this.ts.language.code][i.slug]=l.translate,this.ts.reset()})}},this.pages=[{name:this.ts.translate("Common.All"),_id:""}].concat(this.ts.pages.map(i=>({name:i,_id:i}))),this.page=localStorage.getItem("page")||""}translateAll(t=!1){let e=t?this.rows.filter(s=>!this.ts.translates[this.ts.language.code][s.slug]):this.rows,a=JSON.stringify(e.map(s=>s.word)),i=e.map(s=>s.slug),l=JSON.stringify(e.map(s=>this.ts.translate(s.slug)));this._form.modal(this.formAll,[],{words:a,translates:l}).then(s=>{if(l===s.translates)return;let x=JSON.parse(s.translates);for(let p=0;pe.code===t))}static{this.\u0275fac=function(e){return new(e||n)(g(k),g(D),g(S))}}static{this.\u0275cmp=w({type:n,selectors:[["ng-component"]],standalone:!1,decls:26,vars:7,consts:[[1,"container-fluid"],[1,"page-wrapper"],[1,"translate__top-inner"],[1,"translate__inner"],["for","",1,"formboxs"],["translate","",1,"formboxs_title"],["value","code",3,"modelChange","items","select"],[2,"width","300px",3,"modelChange","items","select"],[1,"translate__buttons"],[1,"translate__dawn-jcon",3,"click"],[1,"material-icons","ng-tns-c405976996-4"],["translate",""],[3,"columns","config","rows"],["cell","page"],["cell","translation"]],template:function(e,a){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4)(5,"div",5),m(6," Common.Select language "),o(),r(7,"wselect",6),c("modelChange",function(l){return a.set_language(l)}),o()(),r(8,"label",4)(9,"div",5),m(10," Common.Select page "),o(),r(11,"wselect",7),c("modelChange",function(l){return a.setPage(l)}),o()()(),r(12,"div",8)(13,"wbutton",9),c("click",function(){return a.translateAll()}),r(14,"span",10),m(15," translate "),o(),r(16,"span",11),m(17,"Common.Translate all"),o()(),r(18,"wbutton",9),c("click",function(){return a.translateAll(!0)}),r(19,"span",10),m(20," translate "),o(),r(21,"span",11),m(22,"Common.Translate missed"),o()()()(),r(23,"wtable",12),b(24,W,1,1,"ng-template",13)(25,q,2,4,"ng-template",14),o()()()),e&2&&(d(7),u("items",a.ts.languages)("select",a.ts.language.code),d(4),u("items",a.pages)("select",a.page),d(12),u("columns",a.columns)("config",a.config)("rows",a.rows))},dependencies:[I,A,N,F,L,B],styles:['.translate__top-inner[_ngcontent-%COMP%]{width:100%;max-width:100vw;display:flex;background:var(--c-bg-secondary);padding:15px;align-items:end;flex-wrap:wrap;gap:20px;justify-content:space-between;border-radius:10px;margin:0 auto;position:relative}@media screen and (max-width: 1250px){.translate__top-inner[_ngcontent-%COMP%]{justify-content:center}}@media (max-width: 767px){.translate__top-inner[_ngcontent-%COMP%]{flex-direction:column;align-items:center;padding:15px}}.translate__top-inner[_ngcontent-%COMP%]:before{content:"";position:absolute;height:100px;width:100%;background-color:var(--c-bg-secondary);z-index:-1;left:0;right:0;bottom:-50px}.translate__btn[_ngcontent-%COMP%]{position:absolute;top:-5px;right:25px;font-size:23px}.translate__dawn-jcon[_ngcontent-%COMP%] span.material-icons[_ngcontent-%COMP%]{padding-right:5px}.translate__buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}@media (max-width: 575px){.translate__buttons[_ngcontent-%COMP%]{flex-direction:column}.translate__buttons[_ngcontent-%COMP%] wbutton[_ngcontent-%COMP%]{width:100%}}.translate__inner[_ngcontent-%COMP%]{display:flex;gap:40px;flex-wrap:wrap}@media (max-width: 575px){.translate__inner[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:20px}}.formboxs_label[_ngcontent-%COMP%]{width:100%;color:var(--c-text-primary);position:relative;display:flex;justify-content:space-between;padding-bottom:10px;padding-right:52px}.translate__main-wrap[_ngcontent-%COMP%]{justify-content:center}.translate__select[_ngcontent-%COMP%]{min-width:200px;max-width:200px;background:var(--c-grey);padding:5px;border:1px solid #7f8c8d;border-radius:5px}.translate__main-inner[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;width:100%;max-width:350px;border-radius:10px;margin:5px 15px 35px;padding:10px;height:fit-content;background:var(--c-bg-secondary);border:2px solid var(--c-primary);cursor:pointer}@media (max-width: 575px){.translate__main-inner[_ngcontent-%COMP%]{margin:0}}.title[_ngcontent-%COMP%]{text-align:center}.input[_ngcontent-%COMP%]{width:100%;margin-right:10px;border-radius:5px;padding:5px 10px;border:1px solid var(--c-text-primary)}.formboxs[_ngcontent-%COMP%]{display:flex;gap:10px;flex-direction:column;align-items:flex-start}.formboxs_title[_ngcontent-%COMP%]{color:var(--c-text-primary);display:flex;justify-content:center;align-items:center}.main__sub-inner[_ngcontent-%COMP%]{margin:20px;display:flex;flex-wrap:wrap}@media (max-width: 767px){.main__sub-inner[_ngcontent-%COMP%]{margin:20px 0}}@media (max-width: 575px){.main__sub-inner[_ngcontent-%COMP%]{gap:20px}}.img-close[_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;position:absolute;top:-6px;right:-6px;z-index:2;transition:all .3s;cursor:pointer}.img-close[_ngcontent-%COMP%]:before{content:"";position:absolute;left:50%;top:50%;width:80%;height:2px;transform:translate(-50%,-50%) rotate(45deg);background:var(--c-text-primary)}.img-close[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;width:80%;height:2px;transform:translate(-50%,-50%) rotate(-45deg);background:var(--c-text-primary)}']})}}return n})();var G=[{path:"",component:H}],dt=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=C({type:n})}static{this.\u0275inj=h({imports:[P.forChild(G),J,T,E,O,z,j,$]})}}return n})();export{dt as TranslatesModule}; diff --git a/chunk-QCGEOJ4M.js b/chunk-QCGEOJ4M.js new file mode 100644 index 0000000..693778f --- /dev/null +++ b/chunk-QCGEOJ4M.js @@ -0,0 +1 @@ +import{a as M}from"./chunk-CB322JUW.js";import{a as S,c as E,d as F,e as I}from"./chunk-EBFT2EPY.js";import{$ as s,$a as C,Ea as x,H as p,I as c,L as h,M as _,P as b,R as d,Ua as y,V as i,Va as v,W as n,_ as w,aa as f,ia as l,mb as O,nb as k,pa as P,s as m,ub as T,vb as j,x as u,y as g}from"./chunk-5J222IEH.js";var D=()=>({"border-radius":"var(--c-img-round)",width:"52px",height:"52px"});function V(t,B){if(t&1){let e=w();i(0,"wform",13),s("wChange",function(){u(e);let r=f();return g(r.update())}),n()}if(t&2){let e=f();d("config",e.formProfile)("submition",e.user)}}var L=(()=>{class t{constructor(e,o,r){this._form=e,this._core=o,this.us=r,this.url=v.url,this.formProfile=this._form.getForm("profile",{formId:"profile",title:"Profile Settings",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"Enter your name"},{name:"Label",value:"Name"}]},{name:"Text",key:"phone",fields:[{name:"Placeholder",value:"Enter your phone"},{name:"Label",value:"Phone"}]},{name:"Text",key:"bio",fields:[{name:"Placeholder",value:"Enter your bio"},{name:"Label",value:"Bio"},{name:"Textarea",value:!0}]}]}),this.formPassword=this._form.getForm("change password",{formId:"change password",title:"Change password",components:[{name:"Password",key:"oldPass",focused:!0,fields:[{name:"Placeholder",value:"Enter your old password"},{name:"Label",value:"Old Password"}]},{name:"Password",key:"newPass",fields:[{name:"Placeholder",value:"Enter your new password"},{name:"Label",value:"New Password"}]}]}),this._core.onComplete("us.user").then(()=>{let a={};this._core.copy(this.us.user,a),this.user=a})}update(){this._core.copy(this.user,this.us.user),this.us.updateMe()}changePassword(){this._form.modal(this.formPassword,{label:"Change",click:(e,o)=>{this.us.changePassword(e.oldPass,e.newPass),o()}}).then(e=>{this.us.changePassword(e.oldPass,e.newPass)})}updateThumb(e){this.us.user.thumb=Array.isArray(e)?e[0]:e,this.us.updateMe()}static{this.\u0275fac=function(o){return new(o||t)(c(T),c(C),c(M))}}static{this.\u0275cmp=h({type:t,selectors:[["app-profile"]],standalone:!1,decls:18,vars:8,consts:[[1,"container"],[1,"profile__header"],[1,"avatar","_profile"],["err","assets/default.png","container","user",3,"update","value","name","isPhoto","imgStyle","height","width"],[1,"profile__body"],[3,"config","submition","wChange",4,"ngIf"],[1,"profile__footer"],[1,"profile__logout"],["type","danger",3,"click"],[1,"material-icons"],["translate",""],[1,"profile__password"],["type","link","translate","",3,"click"],[3,"wChange","config","submition"]],template:function(o,r){o&1&&(i(0,"div",0)(1,"wcard")(2,"div",1)(3,"div")(4,"div",2)(5,"ngx-file",3),s("update",function(N){return r.updateThumb(N)}),n()()()(),i(6,"div",4),b(7,V,1,2,"wform",5),i(8,"div",6)(9,"div",7)(10,"wbutton",8),s("click",function(){return r.us.logout()}),i(11,"span",9),l(12,"logout"),n(),i(13,"span",10),l(14,"Profile.Logout"),n()()(),i(15,"div",11)(16,"wbutton",12),s("click",function(){return r.changePassword()}),l(17," Profile.Change Password "),n()()()()()()),o&2&&(p(5),d("value",r.us.user.thumb?r.url+r.us.user.thumb:"assets/default.png")("name",r.us.user._id+".jpg")("isPhoto",!0)("imgStyle",P(7,D))("height",512)("width",512),p(2),d("ngIf",r.user))},dependencies:[O,x,k,S,j,E],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] wcard[_ngcontent-%COMP%]{width:100%;transition:all .3s;display:block}.container[_ngcontent-%COMP%]{padding:unset}.profile__header[_ngcontent-%COMP%]{z-index:9;top:20px;position:absolute;right:30px;letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:12px}.profile__footer[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}@media (max-width: 767.9px){.profile__footer[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.profile__footer[_ngcontent-%COMP%] .profile__logout[_ngcontent-%COMP%]{order:2;margin-top:20px}}.profile__logout[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:0;display:flex;justify-content:space-between;align-items:center}.profile__logout[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:10px}.imgClass[_ngcontent-%COMP%]{height:52px;width:52px}.avatar[_ngcontent-%COMP%]{border-radius:50%;border:1px solid var(--c-border);position:relative;margin:0 auto;padding:3px}.avatar._profile[_ngcontent-%COMP%]{width:60px;height:60px}.avatar__img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar__upload[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:0;bottom:0;width:24px;height:24px;border-radius:50%;background:var(--c-primary);display:flex;justify-content:center;align-items:center;transition:.3s all ease-in-out}.avatar__icon[_ngcontent-%COMP%]{color:#fff;font-size:16px}.profile__password[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var A=[{path:"",component:L}],re=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=_({type:t})}static{this.\u0275inj=m({imports:[y.forChild(A),I,F]})}}return t})();export{re as ProfileModule}; diff --git a/chunk-TPD4B3J4.js b/chunk-TPD4B3J4.js new file mode 100644 index 0000000..dddd1aa --- /dev/null +++ b/chunk-TPD4B3J4.js @@ -0,0 +1 @@ +import{e as I}from"./chunk-EBFT2EPY.js";import{$a as m,I as n,L as y,M as _,R as v,Ua as S,X as w,cb as g,db as C,eb as b,f as c,gb as p,i as s,lb as P,r as d,s as u,sb as j,u as l,ub as k}from"./chunk-5J222IEH.js";var M={formId:"propertymaterial",title:"Propertymaterial",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill propertymaterial title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill propertymaterial description"},{name:"Label",value:"Description"}]}]};var F=(()=>{class r extends g{constructor(i,e,t,a){super({name:"propertymaterial"},i,e,t,a)}static{this.\u0275fac=function(e){return new(e||r)(l(b),l(C),l(p),l(m))}}static{this.\u0275prov=d({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(i,e,t,a,h){this._translate=i,this._propertymaterialService=e,this._alert=t,this._form=a,this._core=h,this.columns=["name","description"],this.form=this._form.getForm("propertymaterial",M),this.config={paginate:this.setRows.bind(this),perPage:20,setPerPage:this._propertymaterialService.setPerPage.bind(this._propertymaterialService),allDocs:!1,create:()=>{this._form.modal(this.form,{label:"Create",click:(o,f)=>c(this,null,function*(){f(),this._preCreate(o),yield s(this._propertymaterialService.create(o)),this.setRows()})})},update:o=>{this._form.modal(this.form,[],o).then(f=>{this._core.copy(f,o),this._propertymaterialService.update(o)})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this propertymaterial?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>c(this,null,function*(){yield s(this._propertymaterialService.delete(o)),this.setRows()})}]})},buttons:[{icon:"cloud_download",click:o=>{this._form.modalUnique("propertymaterial","url",o)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.rows=[],this._page=1,this.setRows()}setRows(i=this._page){this._page=i,this._core.afterWhile(this,()=>{this._propertymaterialService.get({page:i}).subscribe(e=>{this.rows.splice(0,this.rows.length),this.rows.push(...e)})},250)}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(e=>c(this,null,function*(){if(i)for(let t of e)this._preCreate(t),yield s(this._propertymaterialService.create(t));else{for(let t of this.rows)e.find(a=>a._id===t._id)||(yield s(this._propertymaterialService.delete(t)));for(let t of e){let a=this.rows.find(h=>h._id===t._id);a?(this._core.copy(t,a),yield s(this._propertymaterialService.update(a))):(this._preCreate(t),yield s(this._propertymaterialService.create(t)))}}this.setRows()}))}}_preCreate(i){delete i.__created}static{this.\u0275fac=function(e){return new(e||r)(n(P),n(F),n(p),n(k),n(m))}}static{this.\u0275cmp=y({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Propertiesmaterials",3,"columns","config","rows"]],template:function(e,t){e&1&&w(0,"wtable",0),e&2&&v("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[j],encapsulation:2})}}return r})();var A=[{path:"",component:R}],J=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=_({type:r})}static{this.\u0275inj=u({imports:[S.forChild(A),I]})}}return r})();export{J as PropertiesmaterialsModule}; diff --git a/chunk-U3DVOHFC.js b/chunk-U3DVOHFC.js new file mode 100644 index 0000000..95f6fc5 --- /dev/null +++ b/chunk-U3DVOHFC.js @@ -0,0 +1 @@ +import{e as I}from"./chunk-EBFT2EPY.js";import{$a as l,I as n,L as u,M as y,R as _,Ua as S,X as w,cb as g,db as C,eb as b,f as c,gb as m,i as p,lb as P,r as f,s as v,sb as j,u as a,ub as k}from"./chunk-5J222IEH.js";var M={formId:"propertyprovider",title:"Propertyprovider",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill propertyprovider title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill propertyprovider description"},{name:"Label",value:"Description"}]}]};var F=(()=>{class r extends g{constructor(i,e,t,s){super({name:"propertyprovider"},i,e,t,s)}static{this.\u0275fac=function(e){return new(e||r)(a(b),a(C),a(m),a(l))}}static{this.\u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(i,e,t,s,d){this._translate=i,this._propertyproviderService=e,this._alert=t,this._form=s,this._core=d,this.columns=["name","description"],this.form=this._form.getForm("propertyprovider",M),this.config={paginate:this.setRows.bind(this),perPage:20,setPerPage:this._propertyproviderService.setPerPage.bind(this._propertyproviderService),allDocs:!1,create:()=>{this._form.modal(this.form,{label:"Create",click:(o,h)=>c(this,null,function*(){h(),this._preCreate(o),yield p(this._propertyproviderService.create(o)),this.setRows()})})},update:o=>{this._form.modal(this.form,[],o).then(h=>{this._core.copy(h,o),this._propertyproviderService.update(o)})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this propertyprovider?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>c(this,null,function*(){yield p(this._propertyproviderService.delete(o)),this.setRows()})}]})},buttons:[{icon:"cloud_download",click:o=>{this._form.modalUnique("propertyprovider","url",o)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.rows=[],this._page=1,this.setRows()}setRows(i=this._page){this._page=i,this._core.afterWhile(this,()=>{this._propertyproviderService.get({page:i}).subscribe(e=>{this.rows.splice(0,this.rows.length),this.rows.push(...e)})},250)}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(e=>c(this,null,function*(){if(i)for(let t of e)this._preCreate(t),yield p(this._propertyproviderService.create(t));else{for(let t of this.rows)e.find(s=>s._id===t._id)||(yield p(this._propertyproviderService.delete(t)));for(let t of e){let s=this.rows.find(d=>d._id===t._id);s?(this._core.copy(t,s),yield p(this._propertyproviderService.update(s))):(this._preCreate(t),yield p(this._propertyproviderService.create(t)))}}this.setRows()}))}}_preCreate(i){delete i.__created}static{this.\u0275fac=function(e){return new(e||r)(n(P),n(F),n(m),n(k),n(l))}}static{this.\u0275cmp=u({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Propertiesproviders",3,"columns","config","rows"]],template:function(e,t){e&1&&w(0,"wtable",0),e&2&&_("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[j],encapsulation:2})}}return r})();var A=[{path:"",component:R}],J=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=y({type:r})}static{this.\u0275inj=v({imports:[S.forChild(A),I]})}}return r})();export{J as PropertiesprovidersModule}; diff --git a/chunk-UGAX4Q5T.js b/chunk-UGAX4Q5T.js new file mode 100644 index 0000000..dfa6d8b --- /dev/null +++ b/chunk-UGAX4Q5T.js @@ -0,0 +1 @@ +import{c as D,d as E,e as S}from"./chunk-EBFT2EPY.js";import{H as s,Ha as y,I as u,Ia as c,L as g,M as l,R as p,Ua as M,V as n,W as t,X as m,ia as i,ja as f,nb as _,ob as w,pa as v,pb as k,qa as C,ra as x,s as r,ub as b,vb as P,wb as O}from"./chunk-5J222IEH.js";var Y=()=>["banana","lemon","lime"],I=(()=>{class e{constructor(o){this._form=o,this.submition={emails:[]},this.form=this._form.getForm("testform",{formId:"testform",title:"Test Title",components:[{components:[{components:[{name:"Email",key:"emails[].name",fields:[{name:"Placeholder",value:"Enter your email 1"},{name:"Label",value:"Email"}]},{name:"Email",key:"emails[].description",fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]}]},{components:[{name:"Email",key:"emails[].name",fields:[{name:"Placeholder",value:"Enter your email 2"},{name:"Label",value:"Email"}]},{name:"Email",key:"emails[].description",fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]}]}]},{name:"Email",key:"email",fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]},{name:"Password",key:"password",fields:[{name:"Placeholder",value:"Enter your password"},{name:"Label",value:"Password"}]},{name:"Number",key:"resetPin",fields:[{name:"Placeholder",value:"Enter code from email"},{name:"Label",value:"code"}]},{name:"Button",fields:[{name:"Label",value:"Let's go"},{name:"Submit",value:!0},{name:"Click",value:()=>{alert("Button Clicked")}}]}]})}static{this.\u0275fac=function(a){return new(a||e)(u(b))}}static{this.\u0275cmp=g({type:e,selectors:[["ng-component"]],standalone:!1,decls:45,vars:7,consts:[[1,"wrapper-com"],[3,"config","submition"],["type","textarea"],["type","radio",3,"items"],["type","checkbox","label","Hello World"],["type","password"],["type","email"],["type","number"],["type","tel"],["type","url"],["type","search"],["type","date"],["type","datetime-local"],["type","month"],["type","week"],["type","time"],["type","color"],["type","datetime"],["type","range"],["type","primary"],["type","secondary"],["type","success"],["type","danger"],["type","warning"],["type","info"],["type","light"],["type","dark"],["type","link"]],template:function(a,d){a&1&&(n(0,"div",0)(1,"div")(2,"h2"),i(3,"Document Preview:"),t(),n(4,"span"),i(5),C(6,"json"),t()(),m(7,"wform",1)(8,"winput")(9,"winput",2)(10,"winput",3)(11,"winput",4)(12,"winput",5)(13,"winput",6)(14,"winput",7)(15,"winput",8)(16,"winput",9)(17,"winput",10)(18,"winput",11)(19,"winput",12)(20,"winput",13)(21,"winput",14)(22,"winput",15)(23,"winput",16)(24,"winput",17)(25,"winput",18),n(26,"wbutton",19),i(27,"Hello World"),t(),n(28,"wbutton",20),i(29,"Hello World"),t(),n(30,"wbutton",21),i(31,"Hello World"),t(),n(32,"wbutton",22),i(33,"Hello World"),t(),n(34,"wbutton",23),i(35,"Hello World"),t(),n(36,"wbutton",24),i(37,"Hello World"),t(),n(38,"wbutton",25),i(39,"Hello World"),t(),n(40,"wbutton",26),i(41,"Hello World"),t(),n(42,"wbutton",27),i(43,"Hello World"),t(),m(44,"ngx-file"),t()),a&2&&(s(5),f(x(6,4,d.submition)),s(2),p("config",d.form)("submition",d.submition),s(3),p("items",v(6,Y)))},dependencies:[_,k,P,D,y],styles:[".wrapper-com[_ngcontent-%COMP%]{height:100vh;overflow:scroll;padding:20px;background:var(--c-bg-primary)}"]})}}return e})();var F=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275mod=l({type:e})}static{this.\u0275inj=r({imports:[c]})}}return e})();var T=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275mod=l({type:e})}static{this.\u0275inj=r({imports:[c,w]})}}return e})();var L=[{path:"",component:I}],le=(()=>{class e{static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275mod=l({type:e})}static{this.\u0275inj=r({imports:[M.forChild(L),S,E,F,T,O]})}}return e})();export{le as ComponentsModule}; diff --git a/chunk-X37KD6YV.js b/chunk-X37KD6YV.js new file mode 100644 index 0000000..b996a08 --- /dev/null +++ b/chunk-X37KD6YV.js @@ -0,0 +1 @@ +import{a as j}from"./chunk-CB322JUW.js";import{b as F,e as L}from"./chunk-EBFT2EPY.js";import{$ as a,Ea as C,H as m,I as r,L as S,M as w,P as k,Qa as y,R as c,Ua as b,V as n,W as o,_ as d,aa as _,eb as I,fb as x,gb as E,ia as f,jb as M,lb as P,s as v,ub as T,vb as V,x as p,y as h}from"./chunk-5J222IEH.js";function A(t,U){if(t&1){let e=d();n(0,"span",9),a("click",function(){p(e);let i=_();return h(i.us.setMode("dark"))}),f(1," dark_mode "),o()}}function J(t,U){if(t&1){let e=d();n(0,"span",10),a("click",function(){p(e);let i=_();return h(i.us.setMode())}),f(1," light_mode "),o()}}var N=(()=>{class t{constructor(e,s,i,u,q,B,D,H){this.us=e,this.ui=s,this._alert=i,this._http=u,this._hash=q,this._router=B,this._form=D,this._translate=H,this.form=this._form.getForm("sign",{formId:"sign",title:"Sign In / Sign Up",components:[{name:"Email",key:"email",focused:!0,required:!0,fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]},{name:"Password",key:"password",required:!0,fields:[{name:"Placeholder",value:"Enter your password"},{name:"Label",value:"Password"}]},{name:"Number",key:"resetPin",fields:[{name:"Placeholder",value:"Enter code from email"},{name:"Label",value:"code"}],hidden:!0},{name:"Button",fields:[{name:"Label",value:"Let's go"},{name:"Submit",value:!0},{name:"Click",value:()=>{this.submit()}}]}]}),this.user={email:"demo@webart.work",password:"asdasdasdasd",resetPin:null},this._set=l=>{if(l){let g=l.token||"";g&&this._http.set("token",g),localStorage.setItem("waw_user",JSON.stringify(l)),this.us.setUser(l),this.us.get(),this._router.navigateByUrl("/profile")}else this._alert.error({text:"Something went wrong"})}}submit(){!this.form.components[2].hidden&&this.user.resetPin?this.save():this.user.email||this._alert.error({text:this._translate.translate("Sign.Enter your email")}),this.ui.valid(this.user.email)?this.user.password?(this._hash.set("email",this.user.email),this._http.post("/api/user/status",this.user,e=>{e.email&&e.pass?this.login():e.email?this.reset():this.sign()})):this._alert.error({text:this._translate.translate("Sign.Enter your password")}):this._alert.error({text:this._translate.translate("Sign.Enter proper email")})}login(){this._http.post("/api/user/login",this.user,this._set.bind(this))}sign(){this._http.post("/api/user/sign",this.user,this._set.bind(this))}reset(){this._http.post("/api/user/request",this.user,()=>{this.form.components[2].hidden=!1}),this._alert.info({text:"Mail will sent to your email"})}save(){this._http.post("/api/user/change",this.user,e=>{e?this._alert.info({text:"Password successfully changed"}):this._alert.error({text:"Wrong Code"}),this.login()})}static{this.\u0275fac=function(s){return new(s||t)(r(j),r(M),r(E),r(I),r(x),r(y),r(T),r(P))}}static{this.\u0275cmp=S({type:t,selectors:[["ng-component"]],standalone:!1,decls:9,vars:4,consts:[[1,"auth-wrapper"],[1,"auth__wrap"],[1,"auth__img"],[3,"click"],[1,"auth__form"],[1,"auth"],["class","material-icons",3,"click",4,"ngIf"],["class","material-icons auth__icon",3,"click",4,"ngIf"],[3,"wSubmit","submition","config"],[1,"material-icons",3,"click"],[1,"material-icons","auth__icon",3,"click"]],template:function(s,i){s&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"icon-spider",3),a("click",function(){return i.us.setMode(i.us.mode?"":"dark")}),o()(),n(4,"div",4)(5,"div",5),k(6,A,2,0,"span",6)(7,J,2,0,"span",7),n(8,"wform",8),a("wSubmit",function(){return i.submit()}),o()()()()()),s&2&&(m(6),c("ngIf",!i.us.mode),m(),c("ngIf",i.us.mode),m(),c("submition",i.user)("config",i.form))},dependencies:[C,V,F],encapsulation:2})}}return t})();var O=[{path:"",component:N}],se=(()=>{class t{static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275mod=w({type:t})}static{this.\u0275inj=v({imports:[b.forChild(O),L]})}}return t})();export{se as SignModule}; diff --git a/chunk-XMPGZRU4.js b/chunk-XMPGZRU4.js new file mode 100644 index 0000000..c4c0c4f --- /dev/null +++ b/chunk-XMPGZRU4.js @@ -0,0 +1 @@ +import{e as I}from"./chunk-EBFT2EPY.js";import{$a as l,I as n,L as y,M as _,R as v,Ua as S,X as w,cb as g,db as C,eb as b,f as p,gb as m,i as c,lb as P,r as f,s as u,sb as j,u as a,ub as k}from"./chunk-5J222IEH.js";var M={formId:"propertyrecord",title:"Propertyrecord",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill propertyrecord title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill propertyrecord description"},{name:"Label",value:"Description"}]}]};var F=(()=>{class r extends g{constructor(o,e,t,s){super({name:"propertyrecord"},o,e,t,s)}static{this.\u0275fac=function(e){return new(e||r)(a(b),a(C),a(m),a(l))}}static{this.\u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(o,e,t,s,d){this._translate=o,this._propertyrecordService=e,this._alert=t,this._form=s,this._core=d,this.columns=["name","description"],this.form=this._form.getForm("propertyrecord",M),this.config={paginate:this.setRows.bind(this),perPage:20,setPerPage:this._propertyrecordService.setPerPage.bind(this._propertyrecordService),allDocs:!1,create:()=>{this._form.modal(this.form,{label:"Create",click:(i,h)=>p(this,null,function*(){h(),this._preCreate(i),yield c(this._propertyrecordService.create(i)),this.setRows()})})},update:i=>{this._form.modal(this.form,[],i).then(h=>{this._core.copy(h,i),this._propertyrecordService.update(i)})},delete:i=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this propertyrecord?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>p(this,null,function*(){yield c(this._propertyrecordService.delete(i)),this.setRows()})}]})},buttons:[{icon:"cloud_download",click:i=>{this._form.modalUnique("propertyrecord","url",i)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.rows=[],this._page=1,this.setRows()}setRows(o=this._page){this._page=o,this._core.afterWhile(this,()=>{this._propertyrecordService.get({page:o}).subscribe(e=>{this.rows.splice(0,this.rows.length),this.rows.push(...e)})},250)}_bulkManagement(o=!0){return()=>{this._form.modalDocs(o?[]:this.rows).then(e=>p(this,null,function*(){if(o)for(let t of e)this._preCreate(t),yield c(this._propertyrecordService.create(t));else{for(let t of this.rows)e.find(s=>s._id===t._id)||(yield c(this._propertyrecordService.delete(t)));for(let t of e){let s=this.rows.find(d=>d._id===t._id);s?(this._core.copy(t,s),yield c(this._propertyrecordService.update(s))):(this._preCreate(t),yield c(this._propertyrecordService.create(t)))}}this.setRows()}))}}_preCreate(o){delete o.__created}static{this.\u0275fac=function(e){return new(e||r)(n(P),n(F),n(m),n(k),n(l))}}static{this.\u0275cmp=y({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Propertiesrecords",3,"columns","config","rows"]],template:function(e,t){e&1&&w(0,"wtable",0),e&2&&v("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[j],encapsulation:2})}}return r})();var A=[{path:"",component:R}],J=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=_({type:r})}static{this.\u0275inj=u({imports:[S.forChild(A),I]})}}return r})();export{J as PropertiesrecordsModule}; diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..7b9fa6d --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ + + + + + + + + + Platform default waw project + + + + + + + + + + + + + + + + + + + + diff --git a/main-Q43FLMKZ.js b/main-Q43FLMKZ.js new file mode 100644 index 0000000..4ccdfb3 --- /dev/null +++ b/main-Q43FLMKZ.js @@ -0,0 +1 @@ +import{a as gn}from"./chunk-CB322JUW.js";import{e as _n}from"./chunk-EBFT2EPY.js";import{$ as L,Aa as rn,B as Xt,Ba as sn,D as Zt,E as ut,Ea as on,F as Jt,H as T,I as dt,Ja as an,K as en,Ka as ln,L as we,La as cn,M as Oe,Ma as Ue,P as te,Pa as Pe,Qa as Ae,R as A,Ra as un,Sa as dn,T as Ne,Ta as hn,Ua as fn,V as v,Va as G,W as w,X as x,_ as Te,a as je,aa as de,ab as B,bb as mn,c as Ht,ia as C,ja as tn,kb as pn,mb as yn,p as b,pa as Z,r as Q,s as Me,u as X,v as Yt,x as Ee,y as be,za as nn}from"./chunk-5J222IEH.js";var vn=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=we({type:i,selectors:[["guest"]],standalone:!1,decls:1,vars:0,template:function(n,r){n&1&&x(0,"router-outlet")},dependencies:[Pe],encapsulation:2})}}return i})();var _=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(_||{}),J="*";function qe(i,e){return{type:_.Trigger,name:i,definitions:e,options:{}}}function he(i,e=null){return{type:_.Animate,styles:e,timings:i}}function Sn(i,e=null){return{type:_.Sequence,steps:i,options:e}}function j(i){return{type:_.Style,styles:i,offset:null}}function Ve(i,e,t){return{type:_.State,name:i,styles:e,options:t}}function fe(i,e,t=null){return{type:_.Transition,expr:i,animation:e,options:t}}var oe=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Ie=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Qe="!";var En=[qe("flyInOut",[Ve("in",j({transform:"translateX(0)"})),fe("void => *",[j({transform:"translateY(-10px)",opacity:0,height:"0"}),he(400)]),fe("* => void",[he(400,j({opacity:0,height:"0",transform:"translateY(-10px)"}))])]),qe("tabInOut",[Ve("in",j({transform:"translateX(0)"})),fe("void => *",[j({transform:"translateX(10px)",opacity:0}),he(300)]),fe("* => void",[he(300,j({opacity:0,transform:"translateX(10px)"}))])]),qe("showInOut",[Ve("in",j({})),fe("void => *",[j({opacity:0}),he(300)]),fe("* => void",[he(300,j({opacity:0}))])])];var ht;try{ht=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ht=!1}var bn=(()=>{class i{_platformId=Yt(Zt);isBrowser=this._platformId?an(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||ht)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Q({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ie=()=>({exact:!0});function ii(i,e){if(i&1&&x(0,"div",29),i&2){let t=de();A("@showInOut",t.showSidebar)}}function ri(i,e){if(i&1){let t=Te();v(0,"span",30),L("click",function(){Ee(t);let r=de();return be(r.us.setMode("dark"))}),C(1," dark_mode "),w()}}function si(i,e){if(i&1){let t=Te();v(0,"span",30),L("click",function(){Ee(t);let r=de();return be(r.us.setMode())}),C(1," light_mode "),w()}}function oi(i,e){if(i&1){let t=Te();v(0,"a",31),L("click",function(){Ee(t);let r=de();return be(r.hideSidebar())}),v(1,"span",5),C(2,"people"),w(),v(3,"span",23),C(4,"Theme.Users"),w()()}i&2&&A("routerLinkActiveOptions",Z(1,ie))}function ai(i,e){if(i&1){let t=Te();v(0,"a",32),L("click",function(){Ee(t);let r=de();return be(r.hideSidebar())}),v(1,"span",5),C(2,"backup_table"),w(),v(3,"span",23),C(4,"Theme.Forms"),w()()}i&2&&A("routerLinkActiveOptions",Z(1,ie))}function li(i,e){if(i&1){let t=Te();v(0,"a",33),L("click",function(){Ee(t);let r=de();return be(r.hideSidebar())}),v(1,"span",5),C(2,"translate"),w(),v(3,"span",23),C(4,"Theme.Translates"),w()()}i&2&&A("routerLinkActiveOptions",Z(1,ie))}function ci(i,e){i&1&&x(0,"hr")}function ui(i,e){i&1&&x(0,"hr")}function di(i,e){i&1&&x(0,"hr")}function hi(i,e){i&1&&x(0,"hr")}function fi(i,e){i&1&&x(0,"hr")}function mi(i,e){i&1&&x(0,"hr")}var ft=(()=>{class i{hideSidebar(){!this._platform.ANDROID&&!this._platform.IOS&&(this.showSidebar=!1)}constructor(t,n){this.us=t,this._platform=n,this.url=G.url,this.forceAvatarUrl="",this.showSidebar=!1}static{this.\u0275fac=function(n){return new(n||i)(dt(gn),dt(bn))}}static{this.\u0275cmp=we({type:i,selectors:[["app-user"]],standalone:!1,decls:62,vars:34,consts:[["id","wrapper",1,"wrapper"],[1,"nav",3,"clickOutside"],[1,"nav__ul","container"],[1,"nav__li"],["routerLinkActive","_activeLink","routerLink","/profile",1,"nav__a",3,"click"],[1,"material-icons"],[1,"nav__li","_burger",3,"click"],[1,"nav__toggle"],[1,"nav__toggle-line"],[1,"main"],["class","fade",4,"ngIf"],[1,"nav__burger","_active"],[1,"nav__burger-list"],[1,"theme-switch"],["class","material-icons",3,"click",4,"ngIf"],["routerLink","/profile",1,"nav__burger-link","nav__burger-user"],["alt","Profile Picture","height","50","width","50",1,"avatar__img",3,"error","src"],[1,"name"],["routerLinkActive","_activeLink","routerLink","/admin/users","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/forms","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/translates","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],[4,"ngIf"],["routerLinkActive","_activeLink","routerLink","properties",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["translate",""],["routerLinkActive","_activeLink","routerLink","propertiesrecords",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","propertiesmaterials",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","propertiesproviders",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","propertiesworkers",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","propertiestrades",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],[1,"fade"],[1,"material-icons",3,"click"],["routerLinkActive","_activeLink","routerLink","/admin/users",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/forms",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/translates",1,"nav__burger-link",3,"click","routerLinkActiveOptions"]],template:function(n,r){n&1&&(v(0,"div",0)(1,"nav",1),L("clickOutside",function(){return r.showSidebar=!1}),v(2,"ul",2)(3,"li",3)(4,"a",4),L("click",function(){return r.showSidebar=!1}),v(5,"span",5),C(6,"home"),w()()(),v(7,"li",6),L("click",function(){return r.showSidebar=!r.showSidebar}),v(8,"a",7),x(9,"span",8),w()()()(),v(10,"div",9),te(11,ii,1,1,"div",10),v(12,"div",11)(13,"div",12)(14,"div",13),te(15,ri,2,0,"span",14)(16,si,2,0,"span",14),w(),v(17,"a",15)(18,"img",16),L("error",function(){return r.forceAvatarUrl="assets/default.png"}),w(),v(19,"div",17),C(20),w()(),x(21,"hr"),te(22,oi,5,2,"a",18)(23,ai,5,2,"a",19)(24,li,5,2,"a",20)(25,ci,1,0,"hr",21),v(26,"a",22),L("click",function(){return r.hideSidebar()}),v(27,"span",5),C(28,"home"),w(),v(29,"span",23),C(30,"Theme.Properties"),w()(),te(31,ui,1,0,"hr",21),v(32,"a",24),L("click",function(){return r.hideSidebar()}),v(33,"span",5),C(34,"note_add"),w(),v(35,"span",23),C(36,"Theme.Records"),w()(),te(37,di,1,0,"hr",21),v(38,"a",25),L("click",function(){return r.hideSidebar()}),v(39,"span",5),C(40,"build"),w(),v(41,"span",23),C(42,"Theme.Materials"),w()(),te(43,hi,1,0,"hr",21),v(44,"a",26),L("click",function(){return r.hideSidebar()}),v(45,"span",5),C(46,"business"),w(),v(47,"span",23),C(48,"Theme.Providers"),w()(),te(49,fi,1,0,"hr",21),v(50,"a",27),L("click",function(){return r.hideSidebar()}),v(51,"span",5),C(52,"group"),w(),v(53,"span",23),C(54,"Theme.Workers"),w()(),te(55,mi,1,0,"hr",21),v(56,"a",28),L("click",function(){return r.hideSidebar()}),v(57,"span",5),C(58,"attach_money"),w(),v(59,"span",23),C(60,"Theme.Trades"),w()()()(),x(61,"router-outlet"),w()()),n&2&&(T(2),Ne("_active",r.showSidebar),T(6),Ne("_active",r.showSidebar),T(2),Ne("showTable",r.showSidebar),T(),A("ngIf",r.showSidebar),T(),Ne("_active",r.showSidebar),T(3),A("ngIf",!r.us.mode),T(),A("ngIf",r.us.mode),T(2),A("src",r.forceAvatarUrl||r.us.user.thumb?r.url+r.us.user.thumb:"assets/default.png",Jt),T(2),tn(r.us.user.name||"Profile"),T(2),A("ngIf",r.us.role("admin")),T(),A("ngIf",r.us.role("admin")),T(),A("ngIf",r.us.role("admin")),T(),A("ngIf",r.us.role("admin")),T(),A("routerLinkActiveOptions",Z(28,ie)),T(5),A("ngIf",r.us.role("admin")),T(),A("routerLinkActiveOptions",Z(29,ie)),T(5),A("ngIf",r.us.role("admin")),T(),A("routerLinkActiveOptions",Z(30,ie)),T(5),A("ngIf",r.us.role("admin")),T(),A("routerLinkActiveOptions",Z(31,ie)),T(5),A("ngIf",r.us.role("admin")),T(),A("routerLinkActiveOptions",Z(32,ie)),T(5),A("ngIf",r.us.role("admin")),T(),A("routerLinkActiveOptions",Z(33,ie)))},dependencies:[yn,on,mn,Pe,un,dn],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.wrapper[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;background:var(--c-bg-primary);transition:all .5s ease-in-out}.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;position:relative;max-width:2000px;margin:0 auto;width:100%;padding:20px 270px 0 20px;transition:all .5s ease-in-out}@media screen and (max-width: 991px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:20px}}@media screen and (max-width: 767px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:10px}}hr[_ngcontent-%COMP%]{border:none;border-top:2px solid var(--c-text-primary);margin:5px 0}.nav[_ngcontent-%COMP%]{transition:all .5s ease-in-out;background:var(--c-basic);width:100%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:flex;justify-content:space-between;align-items:center;min-height:50px;z-index:100;overflow:hidden}.nav__ul[_ngcontent-%COMP%]{z-index:1;margin-top:0;margin-bottom:0;padding:0 20px;transition:all .5s ease-in-out;display:flex;align-items:center;width:100%}@media screen and (max-width: 767px){.nav__ul[_ngcontent-%COMP%]{justify-content:end!important}}.nav__li[_ngcontent-%COMP%]{display:inline-block}.nav__li._burger[_ngcontent-%COMP%]{width:44px;height:34px}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:auto}.nav__li[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.nav__a[_ngcontent-%COMP%]{cursor:pointer;color:#fff;font-size:var(--fs)-2px;padding:5px 10px;border-radius:8px;transition:all .5s ease-in-out;display:flex;justify-content:center;align-items:center;position:relative}.nav__a[_ngcontent-%COMP%]:before{content:"";position:absolute;width:5px;height:5px;background-color:#fff;bottom:-1px;border-radius:50%;transform:translateY(15px);opacity:0}@media (max-width: 991.9px){.nav__a[_ngcontent-%COMP%]:before{top:-3px}}.nav__a._activeLink[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_navLinkAnimation .75s forwards}@keyframes _ngcontent-%COMP%_navLinkAnimation{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.nav__a[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;width:24px}.nav__toggle[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;position:relative;order:3;cursor:pointer;justify-content:center}.nav__toggle-line[_ngcontent-%COMP%], .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle-line[_ngcontent-%COMP%]:after{cursor:pointer;border-radius:1px;height:2px;width:24px;position:absolute;display:block;content:"";transition:all .5s ease-in-out;background-color:transparent}.nav__toggle-line[_ngcontent-%COMP%]:before{top:0;transform:rotate(45deg);background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{bottom:-7px;top:0;transform:rotate(-45deg);background:#fff}@media screen and (max-width: 767px){.nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%], .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:before{top:-7px;transform:unset;background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{top:7px;transform:unset;background:#fff}}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:#fff}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:unset;top:-7px}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:unset;top:7px}@media screen and (max-width: 767px){.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:transparent}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:rotate(45deg);top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:rotate(-45deg);bottom:-7px;top:0}}.nav__burger[_ngcontent-%COMP%]{margin:0;max-width:250px;width:100%;height:calc(100% - 50px);transform:translate(0)!important;top:50px;position:fixed;background-color:var(--c-bg-secondary);right:0;transform:translate(120%);z-index:10;box-shadow:0 3px 5px -1px #00000008,0 6px 10px #0000003d,0 1px 18px #0000004f;transition:all .5s ease-in-out;display:flex;flex-direction:column}@media screen and (max-width: 767px){.nav__burger[_ngcontent-%COMP%]{transform:translate(120%)!important}}.nav__burger._active[_ngcontent-%COMP%]{transform:translate(120%)!important;z-index:0}@media screen and (max-width: 767px){.nav__burger._active[_ngcontent-%COMP%]{transform:translate(0)!important;z-index:10}}.nav__burger-list[_ngcontent-%COMP%]{flex-grow:1;height:100%;display:flex;flex-direction:column;overflow-y:auto;padding:20px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%]{color:var(--c-text-primary);padding:10px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%] .avatar__img[_ngcontent-%COMP%]{border-radius:50%}.nav__burger-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.nav__burger-link[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:30px}.nav__burger-user[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--c-text-primary);padding:5px}.nav__burger-user[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{word-break:break-word}.nav__burger-user[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:48px}@media (max-width: 991.9px){.nav[_ngcontent-%COMP%]{order:2}.nav__ul[_ngcontent-%COMP%]{justify-content:space-between}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:0}.nav__burger[_ngcontent-%COMP%]{top:0}}.theme-switch[_ngcontent-%COMP%]{position:absolute;right:10px;display:flex;justify-content:flex-end;margin-right:10px}.theme-switch[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{cursor:pointer}'],data:{animation:[En]}})}}return i})();var wn=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=we({type:i,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,template:function(n,r){n&1&&x(0,"router-outlet")},dependencies:[Pe],encapsulation:2})}}return i})();function Tn(i){return new b(3e3,!1)}function pi(){return new b(3100,!1)}function gi(){return new b(3101,!1)}function yi(i){return new b(3001,!1)}function _i(i){return new b(3003,!1)}function vi(i){return new b(3004,!1)}function Si(i,e){return new b(3005,!1)}function Ei(){return new b(3006,!1)}function bi(){return new b(3007,!1)}function wi(i,e){return new b(3008,!1)}function Ti(i){return new b(3002,!1)}function Pi(i,e,t,n,r){return new b(3010,!1)}function Ai(){return new b(3011,!1)}function ki(){return new b(3012,!1)}function Ci(){return new b(3200,!1)}function Mi(){return new b(3202,!1)}function Oi(){return new b(3013,!1)}function Ni(i){return new b(3014,!1)}function Di(i){return new b(3015,!1)}function Ii(i){return new b(3016,!1)}function Li(i,e){return new b(3404,!1)}function Fi(i){return new b(3502,!1)}function Ri(i){return new b(3503,!1)}function xi(){return new b(3300,!1)}function zi(i){return new b(3504,!1)}function Bi(i){return new b(3301,!1)}function Ki(i,e){return new b(3302,!1)}function ji(i){return new b(3303,!1)}function Ui(i,e){return new b(3400,!1)}function qi(i){return new b(3401,!1)}function Vi(i){return new b(3402,!1)}function Qi(i,e){return new b(3505,!1)}function ae(i){switch(i.length){case 0:return new oe;case 1:return i[0];default:return new Ie(i)}}function zn(i,e,t=new Map,n=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((S,y)=>{let f=y,g=S;if(y!=="offset")switch(f=i.normalizePropertyName(f,r),g){case Qe:g=t.get(y);break;case J:g=n.get(y);break;default:g=i.normalizeStyleValue(y,f,g,r);break}u.set(f,g)}),d||s.push(u),a=u,o=c}),r.length)throw Fi(r);return s}function Ft(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&mt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&mt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&mt(t,"destroy",i)));break}}function mt(i,e,t){let n=t.totalTime,r=!!t.disabled,s=Rt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,r),o=i._data;return o!=null&&(s._data=o),s}function Rt(i,e,t,n,r="",s=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function q(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function Pn(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var $i=typeof document>"u"?null:document.documentElement;function xt(i){let e=i.parentNode||i.host||null;return e===$i?null:e}function Gi(i){return i.substring(1,6)=="ebkit"}var me=null,An=!1;function Wi(i){me||(me=Hi()||{},An=me.style?"WebkitAppearance"in me.style:!1);let e=!0;return me.style&&!Gi(i)&&(e=i in me.style,!e&&An&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in me.style)),e}function Hi(){return typeof document<"u"?document.body:null}function Bn(i,e){for(;e;){if(e===i)return!0;e=xt(e)}return!1}function Kn(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var zt=(()=>{class i{validateStyleProperty(t){return Wi(t)}containsElement(t,n){return Bn(t,n)}getParentElement(t){return xt(t)}query(t,n,r){return Kn(t,n,r)}computeStyle(t,n,r){return r||""}animate(t,n,r,s,o,a=[],l){return new oe(r,s)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Q({token:i,factory:i.\u0275fac})}return i})(),ye=class{static NOOP=new zt},_e=class{};var Yi=1e3,jn="{{",Xi="}}",Un="ng-enter",St="ng-leave",$e="ng-trigger",Xe=".ng-trigger",kn="ng-animating",Et=".ng-animating";function re(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:bt(parseFloat(e[1]),e[2])}function bt(i,e){switch(e){case"s":return i*Yi;default:return i}}function Ze(i,e,t){return i.hasOwnProperty("duration")?i:Zi(i,e,t)}function Zi(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(Tn(i)),{duration:0,delay:0,easing:""};r=bt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=bt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=i;if(!t){let a=!1,l=e.length;r<0&&(e.push(pi()),a=!0),s<0&&(e.push(gi()),a=!0),a&&e.splice(l,0,Tn(i))}return{duration:r,delay:s,easing:o}}function Ji(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,r)=>{let s=Bt(r);t&&!t.has(r)&&t.set(r,i.style[s]),i.style[s]=n})}function ge(i,e){e.forEach((t,n)=>{let r=Bt(n);i.style[r]=""})}function Le(i){return Array.isArray(i)?i.length==1?i[0]:Sn(i):i}function er(i,e,t){let n=e.params||{},r=qn(i);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||t.push(yi(s))})}var wt=new RegExp(`${jn}\\s*(.+?)\\s*${Xi}`,"g");function qn(i){let e=[];if(typeof i=="string"){let t;for(;t=wt.exec(i);)e.push(t[1]);wt.lastIndex=0}return e}function Re(i,e,t){let n=`${i}`,r=n.replace(wt,(s,o)=>{let a=e[o];return a==null&&(t.push(_i(o)),a=""),a.toString()});return r==n?i:r}var tr=/-+([a-z0-9])/g;function Bt(i){return i.replace(tr,(...e)=>e[1].toUpperCase())}function nr(i,e){return i===0||e===0}function ir(i,e,t){if(t.size&&e.length){let n=e[0],r=[];if(t.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(a,Kt(i,a)))}}return e}function U(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw vi(e.type)}}function Kt(i,e){return window.getComputedStyle(i)[e]}var rr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Je=class extends _e{normalizePropertyName(e,t){return Bt(e)}normalizeStyleValue(e,t,n,r){let s="",o=n.toString().trim();if(rr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Si(e,n))}return o+s}};var et="*";function sr(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>or(n,t,e)):t.push(i),t}function or(i,e,t){if(i[0]==":"){let l=ar(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Di(i)),e;let r=n[1],s=n[2],o=n[3];e.push(Cn(r,o));let a=r==et&&o==et;s[0]=="<"&&!a&&e.push(Cn(o,r))}function ar(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var Ge=new Set(["true","1"]),We=new Set(["false","0"]);function Cn(i,e){let t=Ge.has(i)||We.has(i),n=Ge.has(e)||We.has(e);return(r,s)=>{let o=i==et||i==r,a=e==et||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?Ge.has(i):We.has(i)),!a&&n&&typeof s=="boolean"&&(a=s?Ge.has(e):We.has(e)),o&&a}}var Vn=":self",lr=new RegExp(`s*${Vn}s*,?`,"g");function Qn(i,e,t,n){return new Tt(i).build(e,t,n)}var Mn="",Tt=class{_driver;constructor(e){this._driver=e}build(e,t,n){let r=new Pt(t);return this._resetContextStyleTimingState(r),U(this,Le(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Mn,e.collectedStyles=new Map,e.collectedStyles.set(Mn,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ei()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==_.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(bi())}),{type:_.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{qn(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(wi(e.name,[...s.values()]))}return{type:_.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=U(this,Le(e.animation),t),r=sr(e.expr,t.errors);return{type:_.Transition,matchers:r,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:pe(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(n=>U(this,n,t)),options:pe(e.options)}}visitGroup(e,t){let n=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=n;let a=U(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:_.Group,steps:s,options:pe(e.options)}}visitAnimate(e,t){let n=hr(e.timings,t.errors);t.currentAnimateTimings=n;let r,s=e.styles?e.styles:j({});if(s.type==_.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=j(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:r,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===J?n.push(a):t.errors.push(Ti(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(jn)>=0){s=!0;break}}}),{type:_.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(t.errors.push(Pi(l,d.startTime,d.endTime,s,r)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&er(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ai()),n;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(M=>{let O=this._makeStyleAst(M,t),F=O.offset!=null?O.offset:dr(O.styles),D=0;return F!=null&&(s++,D=O.offset=F),l=l||D<0||D>1,a=a||D0&&s{let F=S>0?O==y?1:S*O:o[O],D=F*P;t.currentTime=f+g.delay+D,g.duration=D,this._validateStyleAst(M,t),M.offset=F,n.styles.push(M)}),n}visitReference(e,t){return{type:_.Reference,animation:U(this,Le(e.animation),t),options:pe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:pe(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:pe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=cr(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,q(t.collectedStyles,t.currentQuerySelector,new Map);let a=U(this,Le(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:pe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Oi());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ze(e.timings,t.errors,!0);return{type:_.Stagger,animation:U(this,Le(e.animation),t),timings:n,options:null}}};function cr(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Vn);return e&&(i=i.replace(lr,"")),i=i.replace(/@\*/g,Xe).replace(/@\w+/g,t=>Xe+"-"+t.slice(1)).replace(/:animating/g,Et),[i,e]}function ur(i){return i?je({},i):null}var Pt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function dr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function hr(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let s=Ze(i,e).duration;return pt(s,0,"")}let t=i;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=pt(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Ze(t,e);return pt(r.duration,r.delay,r.easing)}function pe(i){return i?(i=je({},i),i.params&&(i.params=ur(i.params))):i={},i}function pt(i,e,t){return{duration:i,delay:e,easing:t}}function jt(i,e,t,n,r,s,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var xe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},fr=1,mr=":enter",pr=new RegExp(mr,"g"),gr=":leave",yr=new RegExp(gr,"g");function $n(i,e,t,n,r,s=new Map,o=new Map,a,l,c=[]){return new At().buildKeyframes(i,e,t,n,r,s,o,a,l,c)}var At=class{buildKeyframes(e,t,n,r,s,o,a,l,c,d=[]){c=c||new xe;let u=new kt(e,t,c,r,s,d,[]);u.options=l;let S=l.delay?re(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),U(this,n,u);let y=u.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let P=y[g];if(P.element===t){f=P;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return y.length?y.map(f=>f.buildKeyframes()):[jt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:re(Re(s,r?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?re(n.duration):null,a=n.delay!=null?re(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),U(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==_.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=tt);let o=re(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>U(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?re(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),U(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,r=t.params?Re(n,t.params,t.errors):n;return Ze(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==_.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?re(r.delay):0;s&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=tt);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),U(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;U(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}},tt={},kt=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=tt;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=l||new nt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=re(n.duration)),n.delay!=null&&(r.delay=re(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Re(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(r=>{n[r]=t[r]})}}return e}createSubContext(e=null,t,n){let r=t||this.element,s=new i(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=tt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new Ct(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(yr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&a.length==0&&o.push(Ni(t)),a}},nt=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=fr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||J),this._currentKeyframe.set(t,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=_r(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Re(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??J),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let r=this._styleSummary.get(n);(!r||t.time>r.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Qe?e.add(u):d===J&&t.add(u)}),n||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return jt(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Ct=class extends nt{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",On(a)),s.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let S=new Map(e[u]),y=S.get("offset"),f=t+y*n;S.set("offset",On(f/o)),s.push(S)}n=o,t=0,r="",e=s}return jt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}};function On(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function _r(i,e){let t=new Map,n;return i.forEach(r=>{if(r==="*"){n??=e.keys();for(let s of n)t.set(s,J)}else for(let[s,o]of r)t.set(s,o)}),t}function Nn(i,e,t,n,r,s,o,a,l,c,d,u,S){return{type:0,element:i,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:S}}var gt={},it=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return vr(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,n):new Map}build(e,t,n,r,s,o,a,l,c,d){let u=[],S=this.ast.options&&this.ast.options.params||gt,y=a&&a.params||gt,f=this.buildStyles(n,y,u),g=l&&l.params||gt,P=this.buildStyles(r,g,u),M=new Set,O=new Map,F=new Map,D=r==="void",ve={params:Gn(g,S),delay:this.ast.options?.delay},H=d?[]:$n(e,t,this.ast.animation,s,o,f,P,ve,c,u),R=0;return H.forEach(z=>{R=Math.max(z.duration+z.delay,R)}),u.length?Nn(t,this._triggerName,n,r,D,f,P,[],[],O,F,R,u):(H.forEach(z=>{let le=z.element,Se=q(O,le,new Set);z.preStyleProps.forEach(ce=>Se.add(ce));let Qt=q(F,le,new Set);z.postStyleProps.forEach(ce=>Qt.add(ce)),le!==t&&M.add(le)}),Nn(t,this._triggerName,n,r,D,f,P,H,[...M.values()],O,F,R))}};function vr(i,e,t,n,r){return i.some(s=>s(e,t,n,r))}function Gn(i,e){let t=je({},e);return Object.entries(i).forEach(([n,r])=>{r!=null&&(t[n]=r)}),t}var Mt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,r=Gn(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Re(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function Sr(i,e,t){return new Ot(i,e,t)}var Ot=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Mt(r.style,s,n))}),Dn(this.states,"true","1"),Dn(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new it(e,r,this.states))}),this.fallbackTransition=Er(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(o=>o.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Er(i,e,t){let n=[(o,a)=>!0],r={type:_.Sequence,steps:[],options:null},s={type:_.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new it(i,s,e)}function Dn(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var br=new xe,Nt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n}register(e,t){let n=[],r=[],s=Qn(this._driver,t,n,r);if(n.length)throw Ri(n);this._animations.set(e,s)}_buildPlayer(e,t,n){let r=e.element,s=zn(this._normalizer,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=$n(this._driver,t,s,Un,St,new Map,new Map,n,br,r),o.forEach(d=>{let u=q(a,d.element,new Map);d.postStyleProps.forEach(S=>u.set(S,null))})):(r.push(xi()),o=[]),r.length)throw zi(r);a.forEach((d,u)=>{d.forEach((S,y)=>{d.set(y,this._driver.computeStyle(u,y,J))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=ae(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Bi(e);return t}listen(e,t,n,r){let s=Rt(t,"","","");return Ft(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},In="ng-animate-queued",wr=".ng-animate-queued",yt="ng-animate-disabled",Tr=".ng-animate-disabled",Pr="ng-star-inserted",Ar=".ng-star-inserted",kr=[],Wn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},W="__ng_removed",ze=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=Or(r),n){let s=e,{value:o}=s,a=Ht(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(r=>{n[r]==null&&(n[r]=t[r])})}}},Fe="void",_t=new ze(Fe),Dt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,$(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.has(t))throw Ki(n,t);if(n==null||n.length==0)throw ji(t);if(!Nr(n))throw Ui(n,t);let s=q(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};s.push(o);let a=q(this._engine.statesByElement,e,new Map);return a.has(t)||($(e,$e),$(e,$e+"-"+t),a.set(t,_t)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw qi(e);return t}trigger(e,t,n,r=!0){let s=this._getTrigger(t),o=new Be(this.id,t,e),a=this._engine.statesByElement.get(e);a||($(e,$e),$(e,$e+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new ze(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=_t),!(c.value===Fe)&&l.value===c.value){if(!Lr(l.params,c.params)){let g=[],P=s.matchStyles(l.value,l.params,g),M=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{ge(e,P),ee(e,M)})}return}let S=q(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!y){if(!r)return;y=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||($(e,In),o.onStart(()=>{ke(e,In)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let P=this._engine.playersByElement.get(e);if(P){let M=P.indexOf(o);M>=0&&P.splice(M,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Xe,!0);n.forEach(r=>{if(r[W])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,n,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Fe,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ae(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||_t,d=new ze(Fe),u=new Be(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[W];(!s||s===Wn)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){$(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Rt(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Ft(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},It=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Dt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return r.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,r){if(He(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!He(t))return;let s=t[W];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$(e,yt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ke(e,yt))}removeNode(e,t,n){if(He(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,r,s){this.collectedLeaveElements.push(t),t[W]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,r,s){return He(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Xe,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Et,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ae(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[W];if(t&&t.setForRemoval){if(e[W]=Wn,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(yt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Tr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ae(t).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw Vi(e)}_flushAnimations(e,t){let n=new xe,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let m=this.driver.query(h,wr,!0);for(let p=0;p{let p=Un+g++;f.set(m,p),h.forEach(E=>$(E,p))});let P=[],M=new Set,O=new Set;for(let h=0;hM.add(E)):O.add(m))}let F=new Map,D=Rn(S,Array.from(M));D.forEach((h,m)=>{let p=St+g++;F.set(m,p),h.forEach(E=>$(E,p))}),e.push(()=>{y.forEach((h,m)=>{let p=f.get(m);h.forEach(E=>ke(E,p))}),D.forEach((h,m)=>{let p=F.get(m);h.forEach(E=>ke(E,p))}),P.forEach(h=>{this.processLeaveNode(h)})});let ve=[],H=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(p=>{let E=p.player,N=p.element;if(ve.push(E),this.collectedEnterElements.length){let I=N[W];if(I&&I.setForMove){if(I.previousTriggersValues&&I.previousTriggersValues.has(p.triggerName)){let ue=I.previousTriggersValues.get(p.triggerName),V=this.statesByElement.get(p.element);if(V&&V.has(p.triggerName)){let Ke=V.get(p.triggerName);Ke.value=ue,V.set(p.triggerName,Ke)}}E.destroy();return}}let Y=!u||!this.driver.containsElement(u,N),K=F.get(N),se=f.get(N),k=this._buildInstruction(p,n,se,K,Y);if(k.errors&&k.errors.length){H.push(k);return}if(Y){E.onStart(()=>ge(N,k.fromStyles)),E.onDestroy(()=>ee(N,k.toStyles)),r.push(E);return}if(p.isFallbackTransition){E.onStart(()=>ge(N,k.fromStyles)),E.onDestroy(()=>ee(N,k.toStyles)),r.push(E);return}let Wt=[];k.timelines.forEach(I=>{I.stretchStartingKeyframe=!0,this.disabledNodes.has(I.element)||Wt.push(I)}),k.timelines=Wt,n.append(N,k.timelines);let ti={instruction:k,player:E,element:N};o.push(ti),k.queriedElements.forEach(I=>q(a,I,[]).push(E)),k.preStyleProps.forEach((I,ue)=>{if(I.size){let V=l.get(ue);V||l.set(ue,V=new Set),I.forEach((Ke,ct)=>V.add(ct))}}),k.postStyleProps.forEach((I,ue)=>{let V=c.get(ue);V||c.set(ue,V=new Set),I.forEach((Ke,ct)=>V.add(ct))})});if(H.length){let h=[];H.forEach(m=>{h.push(Qi(m.triggerName,m.errors))}),ve.forEach(m=>m.destroy()),this.reportError(h)}let R=new Map,z=new Map;o.forEach(h=>{let m=h.element;n.has(m)&&(z.set(m,m),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,R))}),r.forEach(h=>{let m=h.element;this._getPreviousPlayers(m,!1,h.namespaceId,h.triggerName,null).forEach(E=>{q(R,m,[]).push(E),E.destroy()})});let le=P.filter(h=>xn(h,l,c)),Se=new Map;Fn(Se,this.driver,O,c,J).forEach(h=>{xn(h,l,c)&&le.push(h)});let ce=new Map;y.forEach((h,m)=>{Fn(ce,this.driver,new Set(h),l,Qe)}),le.forEach(h=>{let m=Se.get(h),p=ce.get(h);Se.set(h,new Map([...m?.entries()??[],...p?.entries()??[]]))});let lt=[],$t=[],Gt={};o.forEach(h=>{let{element:m,player:p,instruction:E}=h;if(n.has(m)){if(d.has(m)){p.onDestroy(()=>ee(m,E.toStyles)),p.disabled=!0,p.overrideTotalTime(E.totalTime),r.push(p);return}let N=Gt;if(z.size>1){let K=m,se=[];for(;K=K.parentNode;){let k=z.get(K);if(k){N=k;break}se.push(K)}se.forEach(k=>z.set(k,N))}let Y=this._buildAnimation(p.namespaceId,E,R,s,ce,Se);if(p.setRealPlayer(Y),N===Gt)lt.push(p);else{let K=this.playersByElement.get(N);K&&K.length&&(p.parentPlayer=ae(K)),r.push(p)}}else ge(m,E.fromStyles),p.onDestroy(()=>ee(m,E.toStyles)),$t.push(p),d.has(m)&&r.push(p)}),$t.forEach(h=>{let m=s.get(h.element);if(m&&m.length){let p=ae(m);h.setRealPlayer(p)}}),r.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h!Y.destroyed);N.length?Dr(this,m,N):this.processLeaveNode(m)}return P.length=0,lt.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let m=this.players.indexOf(h);this.players.splice(m,1)}),h.play()}),lt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Fe;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,d=c!==s,u=q(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),u.push(y)})}ge(s,t.fromStyles)}_buildAnimation(e,t,n,r,s,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,S=t.timelines.map(f=>{let g=f.element;d.add(g);let P=g[W];if(P&&P.removedBeforeQueried)return new oe(f.duration,f.delay);let M=g!==l,O=Ir((n.get(g)||kr).map(R=>R.getRealPlayer())).filter(R=>{let z=R;return z.element?z.element===g:!1}),F=s.get(g),D=o.get(g),ve=zn(this._normalizer,f.keyframes,F,D),H=this._buildPlayer(f,ve,O);if(f.subTimeline&&r&&u.add(g),M){let R=new Be(e,a,g);R.setRealPlayer(H),c.push(R)}return H});c.forEach(f=>{q(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Mr(this.playersByQueriedElement,f.element,f))}),d.forEach(f=>$(f,kn));let y=ae(S);return y.onDestroy(()=>{d.forEach(f=>ke(f,kn)),ee(l,t.toStyles)}),u.forEach(f=>{q(r,f,[]).push(y)}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new oe(e.duration,e.delay)}},Be=class{namespaceId;triggerName;element;_player=new oe;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(r=>Ft(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){q(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Mr(i,e,t){let n=i.get(e);if(n){if(n.length){let r=n.indexOf(t);n.splice(r,1)}n.length==0&&i.delete(e)}return n}function Or(i){return i??null}function He(i){return i&&i.nodeType===1}function Nr(i){return i=="start"||i=="done"}function Ln(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Fn(i,e,t,n,r){let s=[];t.forEach(l=>s.push(Ln(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,r);d.set(u,S),(!S||S.length==0)&&(c[W]=Cr,o.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>Ln(l,s[a++])),o}function Rn(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,r=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=n:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function $(i,e){i.classList?.add(e)}function ke(i,e){i.classList?.remove(e)}function Dr(i,e,t){ae(t).onDone(()=>i.processLeaveNode(e))}function Ir(i){let e=[];return Hn(i,e),e}function Hn(i,e){for(let t=0;tr.add(s)):e.set(i,n),t.delete(i),!0}var Ce=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new It(e.body,t,n),this._timelineEngine=new Nt(e.body,t,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,n,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Qn(this._driver,s,l,c);if(l.length)throw Li(r,l);a=Sr(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if(n.charAt(0)=="@"){let[s,o]=Pn(n),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if(n.charAt(0)=="@"){let[o,a]=Pn(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Fr(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=vt(e[0]),e.length>1&&(n=vt(e[e.length-1]))):e instanceof Map&&(t=vt(e)),t||n?new Rr(i,t,n):null}var Rr=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r;let s=i.initialStylesByElement.get(t);s||i.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(ge(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}}return i})();function vt(i){let e=null;return i.forEach((t,n)=>{xr(n)&&(e=e||new Map,e.set(n,t))}),e}function xr(i){return i==="display"||i==="position"}var rt=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Kt(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},st=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Bn(e,t)}getParentElement(e){return xt(e)}query(e,t,n){return Kn(e,t,n)}computeStyle(e,t,n){return Kt(e,t)}animate(e,t,n,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};s&&(l.easing=s);let c=new Map,d=o.filter(y=>y instanceof rt);nr(n,r)&&d.forEach(y=>{y.currentSnapshot.forEach((f,g)=>c.set(g,f))});let u=Ji(t).map(y=>new Map(y));u=ir(e,u,c);let S=Fr(e,u);return new rt(e,u,l,S)}};var Ye="@",Yn="@.disabled",ot=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,r){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Ye&&t==Yn?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n,r){return this.delegate.listen(e,t,n,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Lt=class extends ot{factory;constructor(e,t,n,r,s){super(t,n,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Ye?t.charAt(1)=="."&&t==Yn?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n,r){if(t.charAt(0)==Ye){let s=zr(e),o=t.slice(1),a="";return o.charAt(0)!=Ye&&([o,a]=Br(o)),this.engine.listen(this.namespaceId,s,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l)})}return this.delegate.listen(e,t,n,r)}};function zr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Br(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var at=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(e,t){let n="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new ot(n,r,this.engine,u),c.set(r,d)}return d}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Lt(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var jr=(()=>{class i extends Ce{constructor(t,n,r){super(t,n,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||i)(X(nn),X(ye),X(_e))};static \u0275prov=Q({token:i,factory:i.\u0275fac})}return i})();function Ur(){return new Je}function qr(i,e,t){return new at(i,e,t)}var Zn=[{provide:_e,useFactory:Ur},{provide:Ce,useClass:jr},{provide:en,useFactory:qr,deps:[ln,Ce,Xt]}],Xn=[{provide:ye,useFactory:()=>new st},{provide:ut,useValue:"BrowserAnimations"},...Zn],Vr=[{provide:ye,useClass:zt},{provide:ut,useValue:"NoopAnimations"},...Zn],Jn=(()=>{class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?Vr:Xn}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Oe({type:i});static \u0275inj=Me({providers:Xn,imports:[Ue]})}return i})();var Ut=(()=>{class i{constructor(t){this.router=t}canActivate(){return localStorage.getItem("waw_user")?!0:(this.router.navigateByUrl("/sign"),!1)}static{this.\u0275fac=function(n){return new(n||i)(X(Ae))}}static{this.\u0275prov=Q({token:i,factory:i.\u0275fac})}}return i})();var qt=(()=>{class i{constructor(t){this.router=t}canActivate(){return localStorage.getItem("waw_user")?(this.router.navigateByUrl("/profile"),!1):!0}static{this.\u0275fac=function(n){return new(n||i)(X(Ae))}}static{this.\u0275prov=Q({token:i,factory:i.\u0275fac})}}return i})();var Vt=(()=>{class i{constructor(t){this.router=t}canActivate(){if(localStorage.getItem("waw_user")){let t=JSON.parse(localStorage.getItem("waw_user"));return t.is&&t.is.admin?!0:(this.router.navigate(["/profile"]),!1)}else return this.router.navigate(["/sign"]),!1}static{this.\u0275fac=function(n){return new(n||i)(X(Ae))}}static{this.\u0275prov=Q({token:i,factory:i.\u0275fac})}}return i})();var Qr=[{path:"",redirectTo:"/sign",pathMatch:"full"},{path:"",canActivate:[qt],component:vn,children:[{path:"components",canActivate:[B],data:{meta:{title:"Components"}},loadChildren:()=>import("./chunk-UGAX4Q5T.js").then(i=>i.ComponentsModule)},{path:"sign",canActivate:[B],data:{meta:{title:"Sign"}},loadChildren:()=>import("./chunk-X37KD6YV.js").then(i=>i.SignModule)}]},{path:"",canActivate:[Ut],component:ft,children:[{path:"propertiesrecords",canActivate:[B],data:{meta:{title:"Propertiesrecords"}},loadChildren:()=>import("./chunk-XMPGZRU4.js").then(i=>i.PropertiesrecordsModule)},{path:"propertiestrades",canActivate:[B],data:{meta:{title:"Propertiestrades"}},loadChildren:()=>import("./chunk-CNQ4KSTG.js").then(i=>i.PropertiestradesModule)},{path:"propertiesworkers",canActivate:[B],data:{meta:{title:"Propertiesworkers"}},loadChildren:()=>import("./chunk-2KAWLRLZ.js").then(i=>i.PropertiesworkersModule)},{path:"propertiesservices",canActivate:[B],data:{meta:{title:"Propertiesservices"}},loadChildren:()=>import("./chunk-PF4BMXZS.js").then(i=>i.PropertiesservicesModule)},{path:"propertiesproviders",canActivate:[B],data:{meta:{title:"Propertiesproviders"}},loadChildren:()=>import("./chunk-U3DVOHFC.js").then(i=>i.PropertiesprovidersModule)},{path:"propertiesmaterials",canActivate:[B],data:{meta:{title:"Propertiesmaterials"}},loadChildren:()=>import("./chunk-TPD4B3J4.js").then(i=>i.PropertiesmaterialsModule)},{path:"properties",canActivate:[B],data:{meta:{title:"Properties"}},loadChildren:()=>import("./chunk-HB3TX3ID.js").then(i=>i.PropertiesModule)},{path:"profile",canActivate:[B],data:{meta:{title:"My Profile"}},loadChildren:()=>import("./chunk-QCGEOJ4M.js").then(i=>i.ProfileModule)}]},{path:"admin",canActivate:[Vt],component:ft,children:[{path:"users",canActivate:[B],data:{meta:{title:"Users"}},loadChildren:()=>import("./chunk-PACLOQHK.js").then(i=>i.UsersModule)},{path:"forms",canActivate:[B],data:{meta:{title:"Forms"}},loadChildren:()=>import("./chunk-42XHXMET.js").then(i=>i.CustomformsModule)},{path:"translates",canActivate:[B],data:{meta:{title:"Translates"}},loadChildren:()=>import("./chunk-Q7WGDE32.js").then(i=>i.TranslatesModule)}]},{path:"**",redirectTo:"profile",pathMatch:"full"}],ei=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=Oe({type:i,bootstrap:[wn]})}static{this.\u0275inj=Me({providers:[{provide:rn,useClass:sn},Ut,qt,Vt],imports:[_n,Ue,Jn,pn.forRoot({store:{},http:{url:G.url},socket:G.production,meta:{useTitleSuffix:!0,defaults:{title:G.meta.title,description:G.meta.description,titleSuffix:" | "+G.meta.title,"og:image":G.meta.icon}},modal:{modals:{}},alert:{alerts:{}},loader:{loaders:{}},popup:{popups:{}}}),fn.forRoot(Qr,{scrollPositionRestoration:"enabled",preloadingStrategy:hn})]})}}return i})();G.production&&void 0;cn().bootstrapModule(ei).catch(i=>console.error(i)); diff --git a/media/1-I5WRTGCC.woff2 b/media/1-I5WRTGCC.woff2 new file mode 100644 index 0000000..a8fc845 Binary files /dev/null and b/media/1-I5WRTGCC.woff2 differ diff --git a/media/2-SO44HAFF.woff2 b/media/2-SO44HAFF.woff2 new file mode 100644 index 0000000..bd4e3bd Binary files /dev/null and b/media/2-SO44HAFF.woff2 differ diff --git a/media/3-O3LXZE7D.woff2 b/media/3-O3LXZE7D.woff2 new file mode 100644 index 0000000..d7c16dc Binary files /dev/null and b/media/3-O3LXZE7D.woff2 differ diff --git a/media/4-BAXDZN46.woff2 b/media/4-BAXDZN46.woff2 new file mode 100644 index 0000000..fd7e21b Binary files /dev/null and b/media/4-BAXDZN46.woff2 differ diff --git a/media/5-F4YEHKRH.woff2 b/media/5-F4YEHKRH.woff2 new file mode 100644 index 0000000..295b9f0 Binary files /dev/null and b/media/5-F4YEHKRH.woff2 differ diff --git a/polyfills-QLBWGKOY.js b/polyfills-QLBWGKOY.js new file mode 100644 index 0000000..607a8dd --- /dev/null +++ b/polyfills-QLBWGKOY.js @@ -0,0 +1,2 @@ +var ce=globalThis;function ee(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ce.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}r("Zone");let t=(()=>{class N{static{this.__symbol__=ee}static assertZonePatched(){if(ce.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,p=!1){if(O.hasOwnProperty(n)){let P=ce[ee("forceDuplicateZoneCheck")]===!0;if(!p&&P)throw Error("Already loaded patch: "+n)}else if(!ce["__Zone_disable_"+n]){let P="Zone:"+n;r(P),O[n]=o(ce,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){let o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if(typeof n!="function")throw new Error("Expecting function got: "+n);let p=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(p,this,arguments,o)}}run(n,o,p,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,p,P)}finally{b=b.parent}}runGuarded(n,o=null,p,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,p,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,p){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");let P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===z||q===g))return;let ae=n.state!=j;ae&&P._transitionTo(j,h);let le=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!_e&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,p)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=n.state;if(ne!==X&&ne!==Y)if(q==z||A||_e&&ne===k)ae&&P._transitionTo(h,j,k);else{let f=P._zoneDelegates;this._updateTaskCount(P,-1),ae&&P._transitionTo(X,j,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=le}}scheduleTask(n){if(n.zone&&n.zone!==this){let p=this;for(;p;){if(p===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);p=p.parent}}n._transitionTo(k,X);let o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(p){throw n._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,p),p}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==k&&n._transitionTo(h,k),n}scheduleMicroTask(n,o,p,P){return this.scheduleTask(new E(G,n,o,p,P,void 0))}scheduleMacroTask(n,o,p,P,q){return this.scheduleTask(new E(g,n,o,p,P,q))}scheduleEventTask(n,o,p,P,q){return this.scheduleTask(new E(z,n,o,p,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");if(!(n.state!==h&&n.state!==j)){n._transitionTo(V,h,j);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){let p=n._zoneDelegates;o==-1&&(n._zoneDelegates=null);for(let P=0;PN.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,p,P)=>N.invokeTask(n,o,p,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}constructor(_,n,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let p=o&&o.onHasTask,P=n&&n._hasTaskZS;(p||P)&&(this._hasTaskZS=p?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(_,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,n):new t(_,n)}intercept(_,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,n,o):n}invoke(_,n,o,p,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,p,P):n.apply(o,p)}handleError(_,n){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n):!0}scheduleTask(_,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else if(n.type==G)U(n);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(_,n,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,p):n.callback.apply(o,p)}cancelTask(_,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(_,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,n)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,n){let o=this._taskCounts,p=o[_],P=o[_]=p+n;if(P<0)throw new Error("More tasks executed then were scheduled.");if(p==0||P==0){let q={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_};this.hasTask(this._zone,q)}}}class E{constructor(_,n,o,p,P,q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=n,this.data=p,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;let A=this;_===z&&p&&p.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,n,o){if(this._state===n||this._state===o)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=ee("setTimeout"),y=ee("Promise"),D=ee("then"),d=[],w=!1,Z;function x(N){if(Z||ce[y]&&(Z=ce[y].resolve(0)),Z){let _=Z[D];_||(_=Z.then),_.call(Z,N)}else ce[T](N,0)}function U(N){Q===0&&d.length===0&&x(J),N&&d.push(N)}function J(){if(!w){for(w=!0;d.length;){let N=d;d=[];for(let _=0;_b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x},b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}function _t(){let e=globalThis,r=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(r||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),ue="true",fe="false",Pe=ee("");function Ve(e,r){return Zone.current.wrap(e,r)}function Ge(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}var H=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(e,r){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ve(e[c],r+"_"+c));return e}function mt(e,r){let c=e.constructor.name;for(let t=0;t{let y=function(){return T.apply(this,Fe(arguments,c+"."+i))};return de(y,T),y})(u)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},yt=H("enable_beforeunload"),Ye=function(e){if(e=e||$.event,!e)return;let r=Ce[e.type];r||(r=Ce[e.type]=H("ON_PROPERTY"+e.type));let c=this||e.target||$,t=c[r],i;if(Be&&c===pe&&e.type==="error"){let u=e;i=t&&t.call(this,u.message,u.filename,u.lineno,u.colno,u.error),i===!0&&e.preventDefault()}else i=t&&t.apply(this,arguments),e.type==="beforeunload"&&$[yt]&&typeof i=="string"?e.returnValue=i:i!=null&&!i&&e.preventDefault();return i};function $e(e,r,c){let t=be(e,r);if(!t&&c&&be(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let i=H("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;let u=t.get,E=t.set,T=r.slice(2),y=Ce[T];y||(y=Ce[T]=H("ON_PROPERTY"+T)),t.set=function(D){let d=this;if(!d&&e===$&&(d=$),!d)return;typeof d[y]=="function"&&d.removeEventListener(T,Ye),E&&E.call(d,null),d[y]=D,typeof D=="function"&&d.addEventListener(T,Ye,!1)},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;let d=D[y];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),typeof D[gt]=="function"&&D.removeAttribute(r),w}return null},Ae(e,r,t),e[i]=!0}function ot(e,r,c){if(r)for(let t=0;tfunction(E,T){let y=c(E,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?Ge(y.name,T[y.cbIdx],y,i):u.apply(E,T)})}function de(e,r){e[H("OriginalDelegate")]=r}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var ye=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=H("propagationStopped");function at(e,r){let c=(r?r(e):e)+fe,t=(r?r(e):e)+ue,i=Pe+c,u=Pe+t;te[e]={},te[e][fe]=i,te[e][ue]=u}function Pt(e,r,c,t){let i=t&&t.add||He,u=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",y=H(i),D="."+i+":",d="prependListener",w="."+d+":",Z=function(k,h,j){if(k.isRemoved)return;let V=k.callback;typeof V=="object"&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);let Y;try{k.invoke(k,h,[j])}catch(g){Y=g}let G=k.options;if(G&&typeof G=="object"&&G.once){let g=k.originalDelegate?k.originalDelegate:k.callback;h[u].call(h,j.type,g,G)}return Y};function x(k,h,j){if(h=h||e.event,!h)return;let V=k||h.target||e,Y=V[te[h.type][j?ue:fe]];if(Y){let G=[];if(Y.length===1){let g=Z(Y[0],V,h);g&&G.push(g)}else{let g=Y.slice();for(let z=0;z{throw z})}}}let U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,h){if(!k)return!1;let j=!0;h&&h.useG!==void 0&&(j=h.useG);let V=h&&h.vh,Y=!0;h&&h.chkDup!==void 0&&(Y=h.chkDup);let G=!1;h&&h.rt!==void 0&&(G=h.rt);let g=k;for(;g&&!g.hasOwnProperty(i);)g=je(g);if(!g&&k[i]&&(g=k),!g||g[y])return!1;let z=h&&h.eventNameToString,O={},R=g[y]=g[i],b=g[H(u)]=g[u],S=g[H(E)]=g[E],Q=g[H(T)]=g[T],W;h&&h.prepend&&(W=g[H(h.prepend)]=g[h.prepend]);function N(s,l){return!ye&&typeof s=="object"&&s?!!s.capture:!ye||!l?s:typeof s=="boolean"?{capture:s,passive:!0}:s?typeof s=="object"&&s.passive!==!1?{...s,passive:!0}:s:{passive:!0}}let _=function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?J:U,O.options)},n=function(s){if(!s.isRemoved){let l=te[s.eventName],v;l&&(v=l[s.capture?ue:fe]);let C=v&&s.target[v];if(C){for(let m=0;mre.zone.cancelTask(re);s.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(O.target=null,ke&&(ke.taskData=null),Ue&&(O.options.once=!0),!ye&&typeof re.options=="boolean"||(re.options=se),re.target=I,re.capture=Oe,re.eventName=M,B&&(re.originalDelegate=F),L?ge.unshift(re):ge.push(re),m)return I}};return g[i]=a(R,D,q,A,G),W&&(g[d]=a(W,w,p,A,G,!0)),g[u]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=arguments[2],C=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,s,arguments))return;let L=te[l],I;L&&(I=L[C?ue:fe]);let M=I&&s[I];if(M)for(let F=0;Ffunction(i,u){i[ct]=!0,t&&t.apply(i,u)})}function Rt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var Re=H("zoneTask");function me(e,r,c,t){let i=null,u=null;r+=t,c+=t;let E={};function T(D){let d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};let w=i.apply(e,d.args);return Qe(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Ke(w.refresh)),D}function y(D){let{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=he(e,r,D=>function(d,w){if(Ke(w[0])){let Z={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:j,handleId:V,isPeriodic:Y,isRefreshable:G}=Z;!Y&&!G&&(V?delete E[V]:j&&(j[Re]=null))}};let U=Ge(r,w[0],Z,T,y);if(!U)return U;let{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[Re]=U,X&&!k)){let h=K.refresh;K.refresh=function(){let{zone:j,state:V}=U;return V==="notScheduled"?(U._state="scheduled",j._updateTaskCount(U,1)):V==="running"&&(U._state="scheduling"),h.call(this)}}return K??J??U}else return D.apply(e,w)}),u=he(e,c,D=>function(d,w){let Z=w[0],x;Qe(Z)?(x=E[Z],delete E[Z]):(x=Z?.[Re],x?Z[Re]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function Ct(e,r){let{isBrowser:c,isMix:t}=r.getGlobalObjects();if(!c&&!t||!e.customElements||!("customElements"in e))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,e.customElements,"customElements","define",i)}function Dt(e,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let y=0;yu.target===e);if(!t||t.length===0)return r;let i=t[0].ignoreProperties;return r.filter(u=>i.indexOf(u)===-1)}function et(e,r,c,t){if(!e)return;let i=ut(e,r,c);ot(e,i,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ot(e,r){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let c=r.__Zone_ignore_on_properties,t=[];if(Be){let i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=kt()?[{target:i,ignoreProperties:["error"]}]:[];et(i,Ze(i),c&&c.concat(u),je(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{let c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{let c="set",t="clear";me(r,c,t,"Timeout"),me(r,c,t,"Interval"),me(r,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{me(r,"request","cancel","AnimationFrame"),me(r,"mozRequest","mozCancel","AnimationFrame"),me(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{let t=["alert","prompt","confirm"];for(let i=0;ifunction(D,d){return c.current.run(E,r,d,y)})}}),e.__load_patch("EventTarget",(r,c,t)=>{St(r,t),Dt(r,t);let i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{ve("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{Ot(t,r)}),e.__load_patch("customElements",(r,c,t)=>{Ct(r,t)}),e.__load_patch("XHR",(r,c)=>{D(r);let t=H("xhrTask"),i=H("xhrSync"),u=H("xhrListener"),E=H("xhrScheduled"),T=H("xhrURL"),y=H("xhrErrorBeforeScheduled");function D(d){let w=d.XMLHttpRequest;if(!w)return;let Z=w.prototype;function x(R){return R[t]}let U=Z[Le],J=Z[Ie];if(!U){let R=d.XMLHttpRequestEventTarget;if(R){let b=R.prototype;U=b[Le],J=b[Ie]}}let K="readystatechange",X="scheduled";function k(R){let b=R.data,S=b.target;S[E]=!1,S[y]=!1;let Q=S[u];U||(U=S[Le],J=S[Ie]),Q&&J.call(S,K,Q);let W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){let _=S[c.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let n=R.invoke;R.invoke=function(){let o=S[c.__symbol__("loadfalse")];for(let p=0;pfunction(R,b){return R[i]=b[2]==!1,R[T]=b[1],V.apply(R,b)}),Y="XMLHttpRequest.send",G=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),z=he(Z,"send",()=>function(R,b){if(c.current[g]===!0||R[i])return z.apply(R,b);{let S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},Q=Ge(Y,h,S,k,j);R&&R[y]===!0&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=he(Z,"abort",()=>function(R,b){let S=x(R);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(c.current[G]===!0)return O.apply(R,b)})}}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&mt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){lt(r,i).forEach(T=>{let y=r.PromiseRejectionEvent;if(y){let D=new y(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{Rt(r,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{let i=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function E(f){if(f&&f.toString===Object.prototype.toString){let a=f.constructor&&f.constructor.name;return(a||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let T=t.symbol,y=[],D=r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,d=T("Promise"),w=T("then"),Z="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){let a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;y.length;){let f=y.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){U(a)}}};let x=T("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{let a=c[x];typeof a=="function"&&a.call(this,f)}catch{}}function J(f){return f&&f.then}function K(f){return f}function X(f){return A.reject(f)}let k=T("state"),h=T("value"),j=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),G="Promise.then",g=null,z=!0,O=!1,R=0;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}let S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){let l=S();if(f===s)throw new TypeError(Q);if(f[k]===g){let v=null;try{(typeof s=="object"||typeof s=="function")&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(k)&&s.hasOwnProperty(h)&&s[k]!==g)n(s),N(f,s[k],s[h]);else if(a!==O&&typeof v=="function")try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[k]=a;let C=f[h];if(f[h]=s,f[j]===j&&a===z&&(f[k]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){let m=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];m&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let L=f[h],I=!!s&&j===s[j];I&&(s[V]=L,s[Y]=C);let M=a.run(m,void 0,I&&m!==X&&m!==K?[]:[L]);N(s,!0,M)}catch(L){N(s,!1,L)}},s)}let p="function ZoneAwarePromise() { [native code] }",P=function(){},q=r.AggregateError;class A{static toString(){return p}static resolve(a){return a instanceof A?a:N(new this(null),z,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){let a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new q([],"All promises were rejected"));let s=[],l=0;try{for(let m of a)l++,s.push(A.resolve(m))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(l===0)return Promise.reject(new q([],"All promises were rejected"));let v=!1,C=[];return new A((m,L)=>{for(let I=0;I{v||(v=!0,m(M))},M=>{C.push(M),l--,l===0&&(v=!0,L(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((L,I)=>{s=L,l=I});function C(L){s(L)}function m(L){l(L)}for(let L of a)J(L)||(L=this.resolve(L)),L.then(C,m);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,C=new this((M,F)=>{l=M,v=F}),m=2,L=0,I=[];for(let M of a){J(M)||(M=this.resolve(M));let F=L;try{M.then(B=>{I[F]=s?s.thenCallback(B):B,m--,m===0&&l(I)},B=>{s?(I[F]=s.errorCallback(B),m--,m===0&&l(I)):v(B)})}catch(B){v(B)}m++,L++}return m-=2,m===0&&l(I),C}constructor(a){let s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[k]=g,s[h]=[];try{let l=S();a&&a(l(b(s,z)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=this.constructor||A);let v=new l(P),C=c.current;return this[k]==g?this[h].push(C,v,a,s):o(this,C,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||typeof s!="function")&&(s=A);let l=new s(P);l[j]=j;let v=c.current;return this[k]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;let _e=r[d]=r.Promise;r.Promise=A;let ae=T("thenPatched");function le(f){let a=f.prototype,s=i(a,"then");if(s&&(s.writable===!1||!s.configurable))return;let l=a.then;a[w]=l,f.prototype.then=function(v,C){return new A((L,I)=>{l.call(this,L,I)}).then(v,C)},f[ae]=!0}t.patchThen=le;function ne(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[ae]||le(v),l}}return _e&&(le(_e),he(r,"fetch",f=>ne(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=y,A})}function It(e){e.__load_patch("toString",r=>{let c=Function.prototype.toString,t=H("OriginalDelegate"),i=H("Promise"),u=H("Error"),E=function(){if(typeof this=="function"){let d=this[t];if(d)return typeof d=="function"?c.call(d):Object.prototype.toString.call(d);if(this===Promise){let w=r[i];if(w)return c.call(w)}if(this===Error){let w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;let T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Mt(e,r,c,t,i){let u=Zone.__symbol__(t);if(r[u])return;let E=r[u]=r[t];r[t]=function(T,y,D){return y&&y.prototype&&i.forEach(function(d){let w=`${c}.${t}::`+d,Z=y.prototype;try{if(Z.hasOwnProperty(d)){let x=e.ObjectGetOwnPropertyDescriptor(Z,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(y.prototype,d,x)):Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}else Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}catch{}}),E.call(r,T,y,D)},e.attachOriginToPatched(r[t],E)}function Zt(e){e.__load_patch("util",(r,c,t)=>{let i=Ze(r);t.patchOnProperties=ot,t.patchMethod=he,t.bindArguments=Fe,t.patchMacroTask=pt;let u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=de,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:i,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:ue,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);window.global=window; diff --git a/styles-3SAPZDTA.css b/styles-3SAPZDTA.css new file mode 100644 index 0000000..b264543 --- /dev/null +++ b/styles-3SAPZDTA.css @@ -0,0 +1 @@ +html,*,*:before,*:after{box-sizing:border-box}html{line-height:1.15;-webkit-text-size-adjust:100%}*{outline:0}html,body{margin:0;padding:0}main{display:block}h1{font-size:2em;margin:0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden]{display:none}img{max-width:100%;display:inline-block;vertical-align:top}a{text-decoration:none}:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}@font-face{font-family:Poppins;src:url("./media/1-I5WRTGCC.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/2-SO44HAFF.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/3-O3LXZE7D.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/4-BAXDZN46.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url("./media/5-F4YEHKRH.woff2") format("woff2")}.material-icons,i{font-family:Material Icons;font-weight:400;font-style:normal;font-size:26px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}html{font-size:16px;overflow:hidden;height:100%}body{font-family:Poppins,sans-serif;color:var(--c-text-primary);line-height:1.4;position:relative;overflow:hidden;height:100%;display:flex;flex-direction:column}.container{margin-left:auto;margin-right:auto;padding:10px;max-width:100%;width:100%}.container-box{display:flex;align-items:center}.container-box .w-input__checkbox{margin-right:5px}.showTable{padding:20px 20px 0!important}.auth-wrapper{display:flex;justify-content:center;align-items:center;background:var(--c-bg-primary);flex-grow:1;padding:20px;transition:all .3s;height:100vh}.auth{max-width:340px;width:100%;padding:30px;border-radius:10px;box-shadow:0 0 6px var(--c-shadow);background:var(--c-bg-secondary);display:flex;flex-flow:row wrap;position:relative}.auth__icon{position:absolute;right:25px;top:25px;z-index:9;cursor:pointer}@media (max-width: 767.9px){.auth{padding:25px;flex-flow:column wrap}}.auth__title{font-size:24px;font-weight:700;color:var(--c-text-primary);text-align:center;margin-bottom:15px}@media (max-width: 767.9px){.auth__title{font-size:18px}}.auth__btn{text-align:center;margin-top:30px}.auth__btn .w-btn{margin:0;width:100%}.auth__wrap{display:flex;flex-flow:row wrap;align-items:center;max-width:880px;width:100%}@media (max-width: 767.9px){.auth__wrap{padding:25px;flex-flow:column wrap}}.auth__img{flex:0 0 50%;max-width:50%;display:flex;position:relative;padding-right:40px}.auth__img span{left:50%;transform:translate(-78%);font-size:320px;position:absolute;opacity:0;cursor:pointer}@media (max-width: 767.9px){.auth__img span{font-size:70px;transform:translate(-50%)}}.auth__img img{max-width:260px;width:100%;object-fit:cover}.auth__img svg{max-width:260px;width:100%;height:100%}@media (max-width: 767.9px){.auth__img{max-width:60px;margin:0 auto;flex:0 0 100%;padding:0 0 30px}.auth__img svg{height:100%;width:100%}}.auth__form{width:95%;flex:0 0 50%;max-width:50%;padding-left:40px;display:flex;justify-content:flex-end}@media (max-width: 767.9px){.auth__form{flex:0 0 100%;max-width:100%;justify-content:center;padding:0}}@media (max-width: 767.9px){.auth .form__title{font-size:14px}}wform{flex:1 0}@media (max-width: 767.9px){wform{flex:0 0 100%;padding:0}}.w-forms{position:relative}.w-forms__level{top:5px;right:5px;position:absolute;display:inline-block;color:var(--c-text-secondary);font-size:22px;letter-spacing:.3px;transition:.3s all ease-in-out}.w-forms__level._sky{color:#17a2b8}.w-forms__level._orange{color:#e67e22}.w-forms__level._green{color:#14c76e}.w-forms__input{padding-right:35px}.w-forms__input-block{position:relative}.w-forms__toggle{display:flex;position:absolute;right:10px;top:50%;color:var(--c-placeholder);transform:translateY(-50%);cursor:pointer}.w-forms__toggle i{font-size:21px}.w-forms .icon-visibility{color:var(--c-primary)}@media screen and (max-width: 768px){.auth__img{display:none}}*::-webkit-scrollbar-track{box-shadow:inset 0 0 6px var(--c-shadow);background-color:#fff;display:none}*::-webkit-scrollbar{width:5px;height:5px;background-color:#fff}* ::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px var(--c-basic);background-color:var(--c-basic)}@keyframes iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text .text-block{width:99%}.alert-text .text-block__text{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold{font-weight:700}.waw-alert__progress{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress:hover span{animation-play-state:paused}.waw-alert__progress span{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress span._red{background-color:#ffafb4}.waw-alert__progress span._green{background-color:#a6efb8}.waw-alert__progress span._yellow{background-color:#fff9b2}.waw-alert__progress span._orange,.waw-alert__progress span._blue{background-color:#ffcfa5}.waw-alert__progress span._white{background-color:#fff}.waw-alert__progress span._black{background-color:#000}.waw-alert:hover .waw-alert__progress>span{animation-play-state:paused}.waw-alert__close{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close:hover{opacity:1}.waw-alert__close:before,.waw-alert__close:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close:before{transform:rotate(45deg)}.waw-alert__close:after{transform:rotate(-45deg)}@keyframes waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close{opacity:0;transition:.3s all ease-in-out}.waw-alert{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert>.waw-alert-progressbar{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert>.waw-alert-progressbar>div{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert>.waw-alert-close{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert>.waw-alert-close:hover{opacity:1}.waw-alert>.waw-alert-body{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert>.waw-alert-body:after{content:"";display:table;clear:both}.waw-alert>.waw-alert-body .waw-alert-texts{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert>.waw-alert-body .waw-alert-icon{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert>.waw-alert-body .waw-alert-title{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert>.waw-alert-body .waw-alert-message{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper{padding:10px 15px}.waw-alert{margin:5px;border-radius:3px;width:auto}.waw-alert:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert:not(.waw-alert-rtl) .waw-alert-cover{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl .waw-alert-cover{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon .waw-alert-progressbar{background:transparent}.waw-alert.waw-alert-balloon:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target .waw-alert:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark .waw-alert-title{color:#fff}.waw-alert.waw-alert-theme-dark .waw-alert-message{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark .waw-alert-icon{color:#fff}.waw-alert.waw-alert-color-red{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn,.waw-alert .slideIn{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft{-webkit-animation:iziT-bounceInLeft .7s ease-in-out both;animation:iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown{-webkit-animation:iziT-bounceInDown .7s ease-in-out both;animation:iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp{-webkit-animation:iziT-bounceInUp .7s ease-in-out both;animation:iziT-bounceInUp .7s ease-in-out both}.height{height:auto!important}.w-btn{font-size:var(--fs);font-weight:500;font-family:var(--ff-base);background-color:var(--c-primary);border-radius:var(--b-radius-btn);transition:var(--transition);color:var(--c-white);position:relative;padding:11px 25px;line-height:19px;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;text-align:center;width:100%;border:none;cursor:pointer;transition:all .3s;border-radius:4px}.w-btn._primary{background-color:var(--c-primary)}.w-btn._primary:hover{background-color:var(--c-primary-hover)}.w-btn._second{border:1px solid #256eff;background-color:var(--c-white);color:#256eff}.w-btn._danger{background-color:var(--c-secondary);color:#fff}.w-btn._danger:hover{background:var(--c-secondary-hover)}.w-btn._link{background:transparent;color:var(--c-text-primary);font-size:14px;font-weight:400}.w-btn._link:hover{color:var(--c-text-secondary)}.w-btn:disabled{background-color:var(--c-grey-dark);cursor:default}.w-btn:disabled:hover{background-color:var(--c-grey-dark)}.w-switch{display:flex;align-items:center;cursor:pointer}.w-switch__toggle{position:relative;width:45px;height:25px}.w-switch__input{display:none}.w-switch__input:checked+.w-switch__slider{background-color:var(--c-primary);border:1px solid var(--c-primary)}.w-switch__input:focus+.w-switch__slider{box-shadow:0 0 1px var(--c-shadow)}.w-switch__input:checked+.w-switch__slider:before{transform:translate(15px,-50%);background-color:#fff}.w-switch__slider{position:absolute;inset:0;background-color:#e7e7e7;border:1px solid var(--c-border);outline:none;transition:.3s all ease-in-out}.w-switch__slider:before{position:absolute;content:"";height:16px;width:16px;left:6px;top:50%;transform:translateY(-50%);background-color:#fff;transition:.3s all ease-in-out}.w-switch__slider._round{border-radius:34px}.w-switch__slider._round:before{border-radius:50%}.w-switch__text{margin-left:10px;font-size:14px;line-height:14px;letter-spacing:.3px;color:var(--c-text)}.form-container{margin-bottom:15px}.w-forms{position:relative;display:flex;flex-direction:column;width:100%;gap:10px}.w-forms__title{display:inline-block;color:var(--c-text-primary);font-size:19px;line-height:18px;letter-spacing:.3px;font-weight:500;margin-bottom:15px}.w-forms__component label{padding:0!important}.w-forms__input,.w-forms__textarea,.w-forms__select{height:42px;background-color:transparent;border:1px solid var(--c-border);border-radius:8px;color:var(--c-text-secondary);font-size:14px;line-height:20px;transition:.3s all ease-in-out;width:100%;display:block;letter-spacing:.3px;padding:10px}.w-forms__input::placeholder,.w-forms__textarea::placeholder,.w-forms__select::placeholder{color:var(--c-placeholder);transition:.3s all ease-in-out}.w-forms__input:focus,.w-forms__textarea:focus,.w-forms__select:focus{transition:.3s all ease-in-out;border-color:var(--c-primary)}.w-forms__input:disabled,.w-forms__textarea:disabled,.w-forms__select:disabled{background-color:#e7e7e7;border-color:#e7e7e7;color:#e7e7e7;cursor:default;opacity:.6}.w-forms__input[type=time]{display:block;-webkit-appearance:textfield;-moz-appearance:textfield}.w-forms__select{appearance:none;padding-right:30px}.w-forms__chevron{position:absolute;top:30px;right:12px}.w-forms__chevron:before{color:var(--c-primary)}.w-forms__textarea{min-height:80px;resize:vertical;max-height:250px;margin-top:10px}.w-card{display:flex;flex-direction:column;background-color:var(--c-bg-secondary);border-radius:var(--card-border-radius, 8px);box-shadow:var(--card-box-shadow, 0 2px 8px rgba(0, 0, 0, .1));overflow:hidden;margin-bottom:var(--card-margin-bottom, 20px)}.w-card__header{padding:var(--card-header-padding, 16px);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);flex-shrink:0;display:flex;justify-content:space-between;align-items:center}.w-card__body{padding:var(--card-body-padding, 16px);flex-grow:1;display:flex;flex-direction:column}.w-card__body-section{padding:var(--card-section-padding, 8px 0);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea)}.w-card__body-section:last-child{border-bottom:none}.w-card__footer{padding:var(--card-footer-padding, 16px);border-top:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);background-color:var(--card-footer-background, #f5f5f5);flex-shrink:0}.w-checkbox__body{display:inline-flex;-webkit-user-select:none;user-select:none;color:var(--c-text-primary);cursor:pointer;padding:6px 8px;border-radius:6px;overflow:hidden;transition:.3s all ease-in-out}.w-checkbox__body:not(:last-child){margin-right:6px}.w-checkbox__body:hover{background:rgba(var(--c-primary),.09)}.w-checkbox__body:hover .w-checkbox__svg{border-color:var(--c-primary)}@media (max-width: 991.9px){.w-checkbox__body{width:100%;margin-bottom:4px;display:inline-block}}.w-checkbox__input{display:none}.w-checkbox__input:checked+.w-checkbox__body .w-checkbox__svg{background:var(--c-primary);border-color:var(--c-primary);animation:wave .4s ease}.w-checkbox__input:checked+.w-checkbox__body .w-checkbox__svg svg{stroke-dashoffset:0}.w-checkbox__svg{position:relative;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:.3s all ease-in-out;box-shadow:0 1px 1px var(--c-shadow)}.w-checkbox__svg svg{position:absolute;top:3px;left:2px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-checkbox__text{padding-left:8px;line-height:18px}.w-checkbox__svg-icon{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}.w-radio{position:relative;display:flex;align-items:center;cursor:pointer;line-height:20px;font-size:16px;margin:5px 0}.w-radio:hover .w-radio__label:after{transform:scale(3.6)}.w-radio__label{position:relative;display:block;float:left;margin-right:10px;width:20px;height:20px;border:2px solid var(--c-border);border-radius:100%;min-width:20px}.w-radio__label:after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:100%;background:var(--c-primary);transform:scale(0);transition:.3s all ease-in-out;opacity:.08;pointer-events:none}.w-radio__input{display:none}.w-radio__input:checked+.w-radio__label{border-color:var(--c-primary)}.w-radio__input:checked+.w-radio__label:after{transform:scale(1);transition:all .2s cubic-bezier(.35,.9,.4,.9);opacity:1}.user__icons{display:flex;flex-flow:row wrap;justify-content:right}.user__icons wbutton{margin-left:10px}@media screen and (max-width: 599px){.user__icons wbutton{margin-left:5px}}.users__header{padding:10px}.edit-header{height:45px}@media screen and (max-width: 599px){.edit-header{height:38px}}.edit-header .edit,.edit-header .playlist{width:45px;height:45px}@media screen and (max-width: 599px){.edit-header{width:38px}.edit-header .material-icons{font-size:21px}.edit-header .playlist,.edit-header .edit{width:38px;height:38px;padding:10px}}.wtable{background:var(--c-bg-secondary);box-shadow:var(--c-shadow);border-radius:10px;padding-bottom:70px;max-width:100%;height:auto;margin:0 auto;position:relative}@media (max-width: 991px){.wtable{padding-left:10px;padding-right:10px}}@media screen and (max-width: 599px){.wtable{padding-bottom:50px}}.wtable .table{border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:auto}.wtable .table-plus-btn{cursor:pointer;font-size:16px;font-weight:500;border:0;display:flex;justify-content:center;align-items:center;min-width:140px;height:45px;border-radius:4px;padding:5px 12px;background-color:var(--c-primary);color:var(--c-white);border:1px solid var(--c-primary)}.wtable .table-plus-btn button{width:unset!important}@media screen and (max-width: 599px){.wtable .table-plus-btn button{width:38px!important}}.wtable .table-plus-btn .playlist,.wtable .table-plus-btn .edit{width:45px;min-width:45px}.wtable .table-plus-btn:hover{box-shadow:0 0 3px 0 var(--c-primary);background-color:var(--c-primary)}.wtable .table-plus-btn span{margin-left:5px}@media screen and (max-width: 599px){.wtable .table-plus-btn span{display:none}}@media screen and (max-width: 599px){.wtable .table-plus-btn{right:0;min-width:auto;font-size:24px;width:38px!important;height:38px}}.wtable .table-search{position:relative;display:flex;flex-grow:1;margin:0 30px}.wtable .table-search--active .table-search__input{opacity:1}.wtable .table-search__input{width:100%;height:45px;border-radius:4px;padding:0 10px;color:inherit;background:var(--c-bg-secondary);border:1px solid var(--c-primary)}.wtable .table-search__input:focus{border:2px solid var(--c-primary)}.wtable .table-search__icon{width:40px;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:4;cursor:pointer}.wtable .table-search__icon-mobile{display:none;margin-left:auto;margin-right:130px}@media (max-width: 599px){.wtable .table-search{display:none}.wtable .table-search.table-search--active{display:block;position:absolute;margin:0;width:100%;z-index:2}.wtable .table-search.table-search--active+.table-plus-btn{display:none}.wtable .table-search.table-search--active+.w-forms__title{display:none}.wtable .table-search__icon-mobile{display:none}}.wtable .table .table-header__sort{position:relative;cursor:pointer}.wtable .table .table-header__sort .icon-arrow{transform:rotate(90deg);font-size:var(--fs);position:absolute;top:3px;cursor:pointer}.wtable .table th{position:relative;padding:0 16px;height:48px;text-align:left;font-weight:500;font-size:calc(var(--fs) - 2px);font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);border-bottom:1px solid var(--c-border);overflow:hidden;text-overflow:ellipsis}.wtable .table th .icon-arrow{opacity:0;transition:.3s all ease-in-out}.wtable .table th:hover .icon-arrow{opacity:1;transition:.3s all ease-in-out}.wtable .table th .table-header__sort._sortActiveDown .icon-arrow{transform:rotate(-90deg);opacity:1}.wtable .table th .table-header__sort._sortActiveUp .icon-arrow{opacity:1}@media all and (max-width: 991.9px){.wtable .table th{display:none;text-align:left}}.wtable .table th:last-child{width:140px}.wtable .table td{cursor:pointer;padding:5px 16px;height:60px;text-align:left;vertical-align:middle;font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);color:var(--c-text-primary);word-break:break-word;display:table-cell;border-bottom:1px solid var(--c-border)}@media all and (max-width: 991.9px){.wtable .table td{display:flex;align-items:center;justify-content:space-between;column-gap:5px;border-bottom:0;border:2px solid var(--c-border);height:auto;min-height:60px}}.wtable .table td:before{content:attr(data-label);word-break:keep-all;display:inline-block;font-weight:500;font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);text-overflow:ellipsis}@media (min-width: 992px){.wtable .table td:before{display:none}}.wtable .table tr:last-child td{border-bottom:none}@media (max-width: 991.9px){.wtable .table tr:last-child td{border-bottom:2px solid var(--c-border)}}.wtable .table tr td:last-child{border-right:none}@media (max-width: 992px){.wtable .table tr td:last-child{border-right:2px solid var(--c-border)}}@media (max-width: 992px){.wtable .table tr td:first-child{margin-top:20px}}.wtable .table tr th:last-child{border-right:none}.wtable .table .table__actions{display:flex;gap:6px}.wtable .table .table__actions a i{color:var(--c-text-primary)}@media (max-width: 991.9px){.wtable .table .table-body__last-td{margin-bottom:20px;border-bottom:3px solid var(--c-border)}}.wtable .table .table-body__last-td i{font-size:22px;width:22px}.wtable .table .table-body__last-td i:hover{color:var(--c-primary)}.wtable .table-footer{height:65px;display:flex;gap:120px;position:absolute;width:100%;left:0;bottom:0;padding:0 8px 0 15px;align-items:center;justify-content:space-between}@media screen and (max-width: 599px){.wtable .table-footer{height:90px;padding:10px 20px;flex-direction:column;position:static;gap:20px}}.wtable .table-footer__pagination{display:flex;align-items:center;position:relative;bottom:15px}@media (max-width: 599px){.wtable .table-footer__pagination{bottom:0;left:5px}}.wtable .table-footer__arrow{border:0;background:none;width:30px;height:30px;margin-right:30px;cursor:pointer}.wtable .table-footer__arrow .chevron{position:relative;display:block;min-width:22px;min-height:22px;border:2px solid transparent;border-radius:100px}.wtable .table-footer__arrow .chevron:before{position:absolute;width:2px;height:90%;background-color:var(--c-grey);mix-blend-mode:overlay;top:8%}.wtable .table-footer__arrow .chevron:after{content:"";display:block;box-sizing:border-box;position:absolute;width:10px;height:10px;border-bottom:2px solid var(--c-grey);border-right:2px solid var(--c-grey);mix-blend-mode:overlay;transform:rotate(135deg);left:2px;top:2px}.wtable .table-footer__arrow:disabled i:after{border-color:#9f9f9f}.wtable .table-footer__arrow:disabled i:before{background:#9f9f9f}.wtable .table-footer__arrow._start .chevron{position:relative;left:1px}.wtable .table-footer__arrow._start .chevron:after{left:8px;top:4px}.wtable .table-footer__arrow._start .chevron:before{display:block;left:2px;content:""}.wtable .table-footer__arrow._left .chevron{position:relative;left:4px}.wtable .table-footer__arrow._left .chevron:after{top:4px}.wtable .table-footer__arrow._right .chevron:after{transform:rotate(315deg);top:4px}.wtable .table-footer__arrow._end .chevron{position:relative;left:2px}.wtable .table-footer__arrow._end .chevron:after{left:-3px;top:4px;transform:rotate(315deg)}.wtable .table-footer__arrow._end .chevron:before{display:block;left:11px;content:""}.wtable .table-footer .item-page{font-size:12px;color:#9f9f9f;letter-spacing:1px;display:flex;align-items:center}.wtable .table-footer .item-page__dropdown{position:relative;margin:0 10px;font-weight:700}.wtable .table-footer .item-page__dropdown .caption{background-color:transparent;padding:11px 24px;border-radius:4px;border:1px solid var(--c-border);cursor:pointer}.wtable .table-footer .item-page__dropdown .caption:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable .table-footer .item-page__dropdown .list{position:absolute;background-color:var(--c-bg-secondary);width:100%;bottom:100%;flex-direction:column;border-radius:4px 4px 0 0;display:none;z-index:999}.wtable .table-footer .item-page__dropdown .list .item>div{padding:11px 20px;cursor:pointer;text-align:center}.wtable .table-footer .item-page__dropdown .list .item:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable .table-footer .item-page__dropdown .list .item.selected{font-weight:700}.wtable .table-footer .item-page__dropdown.open .caption{border-radius:0 0 4px 4px}.wtable .table-footer .item-page__dropdown.open .list{display:flex;flex-direction:column-reverse;border:1px solid var(--c-border);border-bottom:0}:host{display:block}.w-select{width:100%}.w-select__label{margin-bottom:5px}.w-select__body{position:relative;cursor:pointer;display:flex;min-height:50px;height:50px;align-items:center;border:2px solid var(--c-text-primary);border-radius:12px;transition:var(--transition)}.w-select__body._active{border-color:var(--c-primary)}.w-select__header{display:flex;align-items:center;width:100%;overflow:hidden;white-space:nowrap;padding:14px 10px 14px 40px;position:relative}.w-select__header svg{position:absolute;left:10px;top:50%;transform:translateY(-50%)}.w-select__header svg path{fill:var(--c-primary)}.w-select__text{margin-right:10px;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.w-select__text .text-overflow{overflow:hidden;text-overflow:ellipsis;word-break:keep-all;color:var(--c-text-primary)}.w-select__arrow{margin-right:15px;transition:var(--transition);display:flex;align-items:center;justify-content:center;border-radius:50%}.w-select__arrow svg{width:12px;height:12px}.w-select__arrow svg path{fill:var(--c-text-primary)}.w-select__arrow._active{transform:rotate(180deg)}.w-select .item{padding:10px;transition:var(--transition);border-bottom:1px solid var(--c-text-primary)}.w-select .item:hover{background:var(--c-shadow);border-bottom:1px solid var(--c-primary);color:var(--c-primary)}.w-select__popup{z-index:9;width:100%;left:0;position:absolute;top:calc(100% + 10px);background:var(--c-white);box-shadow:0 0 4px var(--c-border);border-radius:10px;border:2px solid var(--c-primary);background:var(--c-bg-secondary);color:var(--c-text-primary);padding-bottom:15px;padding-top:15px}.w-select__popup._search{padding-top:60px}.w-select__popup .popup-block{max-height:180px;overflow-y:auto;padding:0 15px;margin-right:10px}.w-select__popup .popup-block__empty-search{padding:15px;text-align:center;color:var(--c-text-primary)}.w-select__search{top:10px;position:absolute;display:flex;justify-content:center;align-items:center;width:100%;left:0;padding:0 15px}.w-select__search .search-input{outline:none;width:100%;cursor:pointer;display:flex;padding:10px 30px 10px 10px;align-items:center;border:1px solid var(--c-border);border-radius:10px;transition:var(--transition)}.w-select__search .search-icon{position:absolute;top:50%;right:25px;transform:translateY(-50%)}.w-select *::-webkit-scrollbar{width:5px;height:5px;background-color:var(--c-white)}.w-select * ::-webkit-scrollbar-thumb{border-radius:0;background-color:var(--c-border)}.w-select .checkbox__body{display:inline-flex;-webkit-user-select:none;user-select:none;cursor:pointer;padding:6px 8px;color:var(--c-text);border-radius:6px;overflow:hidden;transition:var(--transition)}.w-select .checkbox__body:not(:last-child){margin-right:6px}.w-select .checkbox__body:hover{background:rgba(var(--c-sky),.09)}.w-select .checkbox__body:hover .checkbox__svg{border-color:var(--c-sky)}.w-select .checkbox__input{display:none}.w-select .checkbox__input:checked+.checkbox__body .checkbox__svg{background:var(--c-sky);border-color:var(--c-sky);animation:wave .4s ease}.w-select .checkbox__input:checked+.checkbox__body .checkbox__svg svg{stroke-dashoffset:0}.w-select .checkbox__svg{position:relative;min-width:18px;min-height:18px;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.w-select .checkbox__svg svg{position:absolute;top:3px;left:2px;fill:none;stroke:var(--c-white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-select .checkbox__text{padding-left:8px;line-height:18px;text-overflow:ellipsis;overflow:hidden}.w-select .checkbox__svg-icon{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes wave{50%{transform:scale(.9)}}.selected{font-weight:700}#html .modal{padding:20px}#html .modal-content{background:var(--c-bg-secondary);border-radius:8px;border:1px solid var(--c-border);max-width:700px;padding-top:45px}#html .modal .close{top:-2px;right:5px;font-size:50px}#html .modal .close:hover{color:var(--c-text-secondary)}#html body._modal-small .modal-content,#html .forms_modal .modal-content{max-width:500px;width:100%}.modal{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow-y:auto;background-color:#000;background-color:#00000080}.modal-content{position:relative;background-color:#fff;margin:15% auto;padding:40px 20px 20px;border:1px solid #888;min-width:20%;max-width:80%}@media screen and (max-width: 767px){.modal-content{max-width:100%!important}}.close{color:#aaa;position:absolute;right:10px;top:10px;font-size:32px;line-height:1}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer}.big .modal-content{margin-top:5%!important;margin-bottom:0!important;max-width:100%!important}.d-b{display:block!important}.d-ib{display:inline-block!important}.d-f{display:flex!important}.fd-c{flex-direction:column!important}.jc-sb{justify-content:space-between!important}.jc-fs{justify-content:flex-start!important}.jc-c{justify-content:center!important}.jc-fe{justify-content:flex-end!important}.ai-c{align-items:center!important}.ai-fe{align-items:flex-end!important}.ai-fs{align-items:flex-start!important}.ai-sb{align-items:space-between!important}.fg-1{flex-grow:1!important}.m0{margin:0!important}.mx0{margin-left:0!important;margin-right:0!important}.my0{margin-top:0!important;margin-bottom:0!important}.mt0{margin-top:0!important}.mt10{margin-top:10px!important}.mb0{margin-bottom:0!important}.mb15{margin-bottom:15px!important}.ml0{margin-left:0!important}.mr0{margin-right:0!important}