iframe-coordinator-cli 6.5.0 → 6.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-DkVijnku.js → index-DejhDHus.js} +3 -3
- package/dist/ifc-docs/assets/hierarchy.js +1 -1
- package/dist/ifc-docs/assets/highlight.css +130 -91
- package/dist/ifc-docs/assets/icons.js +20 -17
- package/dist/ifc-docs/assets/icons.svg +1 -1
- package/dist/ifc-docs/assets/main.js +2535 -5
- package/dist/ifc-docs/assets/navigation.js +2 -1
- package/dist/ifc-docs/assets/search.js +2 -1
- package/dist/ifc-docs/assets/style.css +1571 -1581
- package/dist/ifc-docs/classes/client.Client.html +2388 -98
- package/dist/ifc-docs/classes/client.WorkerClient.html +2161 -92
- package/dist/ifc-docs/classes/host.FrameRouterElement.html +850 -24
- package/dist/ifc-docs/classes/host.WorkerPool.html +879 -29
- package/dist/ifc-docs/documents/client-setup.html +579 -75
- package/dist/ifc-docs/functions/host.registerCustomElements.html +218 -3
- package/dist/ifc-docs/hierarchy.html +168 -1
- package/dist/ifc-docs/index.html +432 -31
- package/dist/ifc-docs/interfaces/client.ClientConfigOptions.html +331 -4
- package/dist/ifc-docs/interfaces/client.EventEmitter.html +752 -14
- package/dist/ifc-docs/interfaces/host.ClientConfig.html +399 -7
- package/dist/ifc-docs/interfaces/host.ClientRegistration.html +580 -24
- package/dist/ifc-docs/interfaces/host.RoutingMap.html +211 -4
- package/dist/ifc-docs/interfaces/host.WorkerAppData.html +388 -6
- package/dist/ifc-docs/interfaces/host.WorkerConfig.html +398 -7
- package/dist/ifc-docs/interfaces/host.WorkerItem.html +401 -6
- package/dist/ifc-docs/interfaces/host.WorkerRegistry.html +210 -2
- package/dist/ifc-docs/interfaces/messages.Breadcrumb.html +373 -6
- package/dist/ifc-docs/interfaces/messages.EnvData.html +510 -11
- package/dist/ifc-docs/interfaces/messages.KeyData.html +540 -12
- package/dist/ifc-docs/interfaces/messages.ModalRequest.html +381 -6
- package/dist/ifc-docs/interfaces/messages.NavRequest.html +390 -9
- package/dist/ifc-docs/interfaces/messages.Notification.html +435 -9
- package/dist/ifc-docs/interfaces/messages.PageMetadata.html +438 -8
- package/dist/ifc-docs/interfaces/messages.PromptOnLeave.html +390 -9
- package/dist/ifc-docs/interfaces/messages.Publication.html +443 -11
- package/dist/ifc-docs/modules/client.html +742 -2
- package/dist/ifc-docs/modules/host.html +647 -1
- package/dist/ifc-docs/modules/messages.html +462 -1
- package/dist/ifc-docs/modules.html +359 -1
- package/dist/ifc-docs/types/client.EnvDataHandler.html +239 -1
- package/dist/ifc-docs/types/client.EventHandler.html +247 -2
- package/dist/index.html +1 -1
- package/package.json +3 -3
|
@@ -16,7 +16,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16
16
|
`+i(o));return s.name="Decoding error",s}).unwrap()}}var ae={},oe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Err=e.Ok=e.default=void 0;function t(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function r(f,c){for(var l=0;l<c.length;l++){var v=c[l];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}function n(f,c,l){return c&&r(f.prototype,c),l&&r(f,l),f}var i="Ok",a="Err",o=function(){function f(c){t(this,f),this._r=c}return n(f,[{key:"toString",value:function(){var l=this._r;return l.type===i?"Ok(".concat(String(l.value),")"):"Err(".concat(String(l.error),")")}},{key:"isOk",value:function(){return this._r.type===i}},{key:"isErr",value:function(){return this._r.type===a}},{key:"withDefault",value:function(l){var v=this._r;return v.type===i?v.value:l}},{key:"value",value:function(){var l=this._r;return l.type===i?l.value:void 0}},{key:"errValue",value:function(){var l=this._r;return l.type===a?l.error:void 0}},{key:"unwrap",value:function(){var l=this._r;if(l.type===i)return l.value;throw l.error}},{key:"expect",value:function(l){var v=this._r;if(v.type===i)return v.value;throw l instanceof Error?l:new Error(l)}},{key:"dispatch",value:function(l,v){var p=this._r;return p.type===i?l(p.value):v(p.error)}},{key:"andThen",value:function(l){var v=this._r;return v.type===i?l(v.value):f.err(v.error)}},{key:"map",value:function(l){var v=this._r;return v.type===i?f.ok(l(v.value)):f.err(v.error)}},{key:"mapError",value:function(l){var v=this._r;return v.type===i?f.ok(v.value):f.err(l(v.error))}}],[{key:"ok",value:function(l){return new f({type:i,value:l})}},{key:"err",value:function(l){return new f({type:a,error:l})}}]),f}();e.default=o;var s=function(c){return o.ok(c)};e.Ok=s;var u=function(c){return o.err(c)};e.Err=u})(oe);Object.defineProperty(ae,"__esModule",{value:!0});ae.map=Fu;ae.compose=So;ae.predicate=Uu;ae.isDate=void 0;var Nu=re,En=oe,Du=function(t){return t!=null&&Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t)};ae.isDate=Du;function Fu(e,t){return So(e,function(r){return(0,En.Ok)(t(r))})}function So(e,t){return function(r){return e(r).andThen(t)}}function Uu(e,t){return function(r){return e(r)?(0,En.Ok)(r):(0,En.Err)((0,Nu.annotate)(r,t))}}var St={};Object.defineProperty(St,"__esModule",{value:!0});St.array=Ju;St.poja=void 0;var Sn=re,Rr=oe,Hu=ae;function Wu(e){return Gu(e)||Bu(e)||zu()}function zu(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Bu(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Gu(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}var Ao=function(t){return Array.isArray(t)?(0,Rr.Ok)(t.slice()):(0,Rr.Err)((0,Sn.annotate)(t,"Must be an array"))};St.poja=Ao;function Ku(e,t){var r=[],n=0,i=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),u;!(i=(u=s.next()).done);i=!0){var f=u.value;try{var c=f.unwrap();r.push(c)}catch(v){var l=Wu(t);return l.splice(n,1,(0,Sn.annotate)(v,v.annotation!==void 0?"".concat(v.annotation," (at index ").concat(n,")"):"index ".concat(n))),(0,Rr.Err)((0,Sn.annotate)(l))}n++}}catch(v){a=!0,o=v}finally{try{!i&&s.return!=null&&s.return()}finally{if(a)throw o}}return(0,Rr.Ok)(r)}function qu(e){return function(t){var r=t.map(e),n=Ku(r,t);return n}}function Ju(e){return(0,Hu.compose)(Ao,qu(e))}var Po={},ge={};Object.defineProperty(ge,"__esModule",{value:!0});ge.positiveInteger=ge.integer=ge.positiveNumber=ge.number=void 0;var Yu=re,Gi=oe,Fe=ae,Zu=function(t){return typeof t=="number"&&!Number.isNaN(t)?(0,Gi.Ok)(t):(0,Gi.Err)((0,Yu.annotate)(t,"Must be number"))},Xr=(0,Fe.compose)(Zu,(0,Fe.predicate)(Number.isFinite,"Number must be finite"));ge.number=Xr;var Xu=(0,Fe.compose)(Xr,(0,Fe.predicate)(function(e){return e>=0},"Number must be positive"));ge.positiveNumber=Xu;var Qu=(0,Fe.compose)(Xr,(0,Fe.predicate)(Number.isInteger,"Number must be an integer"));ge.integer=Qu;var Vu=(0,Fe.compose)(Xr,(0,Fe.predicate)(function(e){return e>=0&&Number.isInteger(e)},"Number must be an integer"));ge.positiveInteger=Vu;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numericBoolean=e.truthy=e.boolean=void 0;var t=re,r=oe,n=ge,i=ae,a=function(f){return typeof f=="boolean"?(0,r.Ok)(f):(0,r.Err)((0,t.annotate)(f,"Must be boolean"))};e.boolean=a;var o=function(f){return(0,r.Ok)(!!f)};e.truthy=o;var s=(0,i.map)(n.number,function(u){return!!u});e.numericBoolean=s})(Po);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});fe.constant=rf;fe.hardcoded=nf;fe.unknown=fe.mixed=fe.undefined_=fe.null_=void 0;var ii=re,Ue=oe,ef=function(t){return t===null?(0,Ue.Ok)(t):(0,Ue.Err)((0,ii.annotate)(t,"Must be null"))};fe.null_=ef;var tf=function(t){return t===void 0?(0,Ue.Ok)(t):(0,Ue.Err)((0,ii.annotate)(t,"Must be undefined"))};fe.undefined_=tf;function rf(e){return function(t){return t===e?(0,Ue.Ok)(e):(0,Ue.Err)((0,ii.annotate)(t,"Must be constant ".concat(String(e))))}}function nf(e){return function(t){return(0,Ue.Ok)(e)}}var To=function(t){return(0,Ue.Ok)(t)};fe.mixed=To;var af=To;fe.unknown=af;var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.date=void 0;var of=re,Ki=oe,sf=ae,uf=function(t){return(0,sf.isDate)(t)?(0,Ki.Ok)(t):(0,Ki.Err)((0,of.annotate)(t,"Must be a Date"))};Qr.date=uf;var ai={},le={};Object.defineProperty(le,"__esModule",{value:!0});le.either=xe;le.either3=$o;le.either4=xo;le.either5=Ro;le.either6=Mo;le.either7=jo;le.either8=ko;le.either9=ff;le.oneOf=cf;var Dt=re,Ft=oe;function qi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"-"+(0,Dt.indent)(e).substring(1)}function xe(e,t){return function(r){return e(r).dispatch(function(n){return(0,Ft.Ok)(n)},function(n){return t(r).dispatch(function(i){return(0,Ft.Ok)(i)},function(i){return(0,Ft.Err)((0,Dt.annotate)(r,["Either:",qi((0,Dt.summarize)(n).join(`
|
|
17
17
|
`)),qi((0,Dt.summarize)(i).join(`
|
|
18
18
|
`))].join(`
|
|
19
|
-
`)))})})}}function $o(e,t,r){return xe(e,xe(t,r))}function xo(e,t,r,n){return xe(e,$o(t,r,n))}function Ro(e,t,r,n,i){return xe(e,xo(t,r,n,i))}function Mo(e,t,r,n,i,a){return xe(e,Ro(t,r,n,i,a))}function jo(e,t,r,n,i,a,o){return xe(e,Mo(t,r,n,i,a,o))}function ko(e,t,r,n,i,a,o,s){return xe(e,jo(t,r,n,i,a,o,s))}function ff(e,t,r,n,i,a,o,s,u){return xe(e,ko(t,r,n,i,a,o,s,u))}function cf(e){return function(t){var r=!0,n=!1,i=void 0;try{for(var a=e[Symbol.iterator](),o;!(r=(o=a.next()).done);r=!0){var s=o.value;if(s===t)return(0,Ft.Ok)(s)}}catch(u){n=!0,i=u}finally{try{!r&&a.return!=null&&a.return()}finally{if(n)throw i}}return(0,Ft.Err)((0,Dt.annotate)(t,"Must be one of ".concat(e.map(function(u){return JSON.stringify(u)}).join(", "))))}}var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.object=No;Ge.exact=yf;Ge.pojo=void 0;var yt=re,Ct=oe,An=ae;function Io(e){return df(e)||pf(e)||lf()}function lf(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function pf(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function df(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function vf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){hf(e,i,r[i])})}return e}function hf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _r(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_r=function(r){return typeof r}:_r=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_r(e)}function mf(e){return e!=null&&_r(e)==="object"&&Object.prototype.toString.call(e)==="[object Object]"}function Lo(e,t){var r=new Set,n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done);n=!0){var u=s.value;t.has(u)||r.add(u)}}catch(f){i=!0,a=f}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}var oi=function(t){return mf(t)?(0,Ct.Ok)(vf({},t)):(0,Ct.Err)((0,yt.annotate)(t,"Must be an object"))};Ge.pojo=oi;function No(e){var t=new Set(Object.keys(e));return(0,An.compose)(oi,function(r){for(var n=new Set(Object.keys(r)),i=Lo(t,n),a={},o={},s=0,u=Object.keys(e);s<u.length;s++){var f=u[s],c=e[f],l=r[f],v=c(l);try{a[f]=v.unwrap(),i.delete(f)}catch(b){if(!(0,yt.isAnnotation)(b))throw b;l===void 0?i.add(f):o[f]=b}}var p=Object.keys(o);if(p.length>0||i.size>0){var y;if(p.length>0){var d=p.map(function(b){return[b,o[b]]});y=(0,yt.annotateFields)(r,d)}else y=(0,yt.annotate)(r);if(i.size>0){var m=Io(i).map(function(b){return'"'.concat(b,'"')}).join(", "),h=i.size>1?"keys":"key";y=(0,yt.annotate)(y,"Missing ".concat(h,": ").concat(m))}return(0,Ct.Err)(y)}return(0,Ct.Ok)(a)})}function yf(e){var t=new Set(Object.keys(e)),r=(0,An.compose)(oi,function(i){var a=new Set(Object.keys(i)),o=Lo(a,t);return o.size>0?(0,Ct.Err)((0,yt.annotate)(i,"Superfluous keys: ".concat(Io(o).join(", ")))):(0,Ct.Ok)(i)}),n=No(e);return(0,An.compose)(r,n)}Object.defineProperty(ai,"__esModule",{value:!0});ai.dispatch=wf;var gf=le,_f=Ge;function bf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wf(e,t){var r=(0,_f.object)(bf({},e,(0,gf.oneOf)(Object.keys(t))));return function(n){return r(n).andThen(function(i){var a=i[e],o=t[a];return o(n)})}}var si={};Object.defineProperty(si,"__esModule",{value:!0});si.fail=Ef;var Cf=re,Of=oe;function Ef(e){return function(t){return(0,Of.Err)((0,Cf.annotate)(t,e))}}var ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.instanceOf=Af;var Sf=re,Ji=oe;function Af(e){return function(t){return t instanceof e?(0,Ji.Ok)(t):(0,Ji.Err)((0,Sf.annotate)(t,"Must be ".concat(e.name," instance")))}}var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.mapping=Fo;Vr.dict=jf;var Yi=re,Zi=oe,Pf=Ge,Do=ae;function Tf(e,t){return Rf(e)||xf(e,t)||$f()}function $f(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function xf(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}function Rf(e){if(Array.isArray(e))return e}function Fo(e){return(0,Do.compose)(Pf.pojo,function(t){var r=[],n=[];return Object.keys(t).forEach(function(i){var a=t[i],o=e(a);try{var s=o.unwrap();n.length===0&&r.push([i,s])}catch(u){if((0,Yi.isAnnotation)(u))r.length=0,n.push([i,u]);else throw u}}),n.length>0?(0,Zi.Err)((0,Yi.annotateFields)(t,n)):(0,Zi.Ok)(new Map(r))})}function Mf(e){var t={},r=!0,n=!1,i=void 0;try{for(var a=e.entries()[Symbol.iterator](),o;!(r=(o=a.next()).done);r=!0){var s=Tf(o.value,2),u=s[0],f=s[1];t[u]=f}}catch(c){n=!0,i=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(n)throw i}}return t}function jf(e){return(0,Do.map)(Fo(e),Mf)}var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.optional=If;Xt.nullable=Lf;Xt.maybe=Df;var kf=re,Xi=oe,Uo=fe,fi=le;function If(e){return(0,fi.either)(Uo.undefined_,e)}function Lf(e){return(0,fi.either)(Uo.null_,e)}var Nf=function(t){return t==null?(0,Xi.Ok)(t):(0,Xi.Err)((0,kf.annotate)(t,"Must be undefined or null"))};function Df(e){return(0,fi.either)(Nf,e)}var $e={};Object.defineProperty($e,"__esModule",{value:!0});$e.regex=Ho;$e.url=$e.email=$e.string=void 0;var Pn=re,Ut=oe,Tn=ae,Ff=/^([A-Za-z]{3,9}(?:[+][A-Za-z]{3,9})?):\/\/(?:([-;:&=+$,\w]+)@)?(?:([A-Za-z0-9.-]+)(?::([0-9]{2,5}))?)(\/(?:[-+~%/.,\w]*)?(?:\?[-+=&;%@.,\w]*)?(?:#[.,!/\w]*)?)?$/,Uf=["https"],ci=function(t){return typeof t=="string"?(0,Ut.Ok)(t):(0,Ut.Err)((0,Pn.annotate)(t,"Must be string"))};$e.string=ci;function Ho(e,t){return(0,Tn.compose)(ci,(0,Tn.predicate)(function(r){return e.test(r)},t))}var Hf=Ho(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"Must be email");$e.email=Hf;var Wf=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Uf;return(0,Tn.compose)(ci,function(r){var n=r.match(Ff);if(n){var i=n[1];return t.length===0||t.includes(i.toLowerCase())?(0,Ut.Ok)(r):(0,Ut.Err)((0,Pn.annotate)(r,"URL scheme must be any of: ".concat(t.join(", "))))}else return(0,Ut.Err)((0,Pn.annotate)(r,"Must be URL"))})};$e.url=Wf;var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.tuple2=qf;ut.tuple3=Jf;ut.tuple4=Yf;ut.tuple5=Zf;ut.tuple6=Xf;var Qt=re,Ee=oe,zf=St,nt=ae;function Vt(e,t){return Kf(e)||Gf(e,t)||Bf()}function Bf(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Gf(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}function Kf(e){if(Array.isArray(e))return e}var er=function(t){return(0,nt.compose)(zf.poja,(0,nt.predicate)(function(r){return r.length===t},"Must be a ".concat(t,"-tuple")))};function qf(e,t){return(0,nt.compose)(er(2),function(r){var n=Vt(r,2),i=n[0],a=n[1],o=e(i),s=t(a);try{return(0,Ee.Ok)([o.unwrap(),s.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([o.isErr()?o.errValue():o.value(),s.isErr()?s.errValue():s.value()]))}})}function Jf(e,t,r){return(0,nt.compose)(er(3),function(n){var i=Vt(n,3),a=i[0],o=i[1],s=i[2],u=e(a),f=t(o),c=r(s);try{return(0,Ee.Ok)([u.unwrap(),f.unwrap(),c.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([u.isErr()?u.errValue():u.value(),f.isErr()?f.errValue():f.value(),c.isErr()?c.errValue():c.value()]))}})}function Yf(e,t,r,n){return(0,nt.compose)(er(4),function(i){var a=Vt(i,4),o=a[0],s=a[1],u=a[2],f=a[3],c=e(o),l=t(s),v=r(u),p=n(f);try{return(0,Ee.Ok)([c.unwrap(),l.unwrap(),v.unwrap(),p.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([c.isErr()?c.errValue():c.value(),l.isErr()?l.errValue():l.value(),v.isErr()?v.errValue():v.value(),p.isErr()?p.errValue():p.value()]))}})}function Zf(e,t,r,n,i){return(0,nt.compose)(er(5),function(a){var o=Vt(a,5),s=o[0],u=o[1],f=o[2],c=o[3],l=o[4],v=e(s),p=t(u),y=r(f),d=n(c),m=i(l);try{return(0,Ee.Ok)([v.unwrap(),p.unwrap(),y.unwrap(),d.unwrap(),m.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([v.isErr()?v.errValue():v.value(),p.isErr()?p.errValue():p.value(),y.isErr()?y.errValue():y.value(),d.isErr()?d.errValue():d.value(),m.isErr()?m.errValue():m.value()]))}})}function Xf(e,t,r,n,i,a){return(0,nt.compose)(er(6),function(o){var s=Vt(o,6),u=s[0],f=s[1],c=s[2],l=s[3],v=s[4],p=s[5],y=e(u),d=t(f),m=r(c),h=n(l),b=i(v),C=a(p);try{return(0,Ee.Ok)([y.unwrap(),d.unwrap(),m.unwrap(),h.unwrap(),b.unwrap(),C.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([y.isErr()?y.errValue():y.value(),d.isErr()?d.errValue():d.value(),m.isErr()?m.errValue():m.value(),h.isErr()?h.errValue():h.value(),b.isErr()?b.errValue():b.value(),C.isErr()?C.errValue():C.value()]))}})}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"guard",{enumerable:!0,get:function(){return t.guard}}),Object.defineProperty(e,"compose",{enumerable:!0,get:function(){return r.compose}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r.map}}),Object.defineProperty(e,"predicate",{enumerable:!0,get:function(){return r.predicate}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return n.array}}),Object.defineProperty(e,"poja",{enumerable:!0,get:function(){return n.poja}}),Object.defineProperty(e,"boolean",{enumerable:!0,get:function(){return i.boolean}}),Object.defineProperty(e,"numericBoolean",{enumerable:!0,get:function(){return i.numericBoolean}}),Object.defineProperty(e,"truthy",{enumerable:!0,get:function(){return i.truthy}}),Object.defineProperty(e,"constant",{enumerable:!0,get:function(){return a.constant}}),Object.defineProperty(e,"hardcoded",{enumerable:!0,get:function(){return a.hardcoded}}),Object.defineProperty(e,"mixed",{enumerable:!0,get:function(){return a.mixed}}),Object.defineProperty(e,"null_",{enumerable:!0,get:function(){return a.null_}}),Object.defineProperty(e,"undefined_",{enumerable:!0,get:function(){return a.undefined_}}),Object.defineProperty(e,"unknown",{enumerable:!0,get:function(){return a.unknown}}),Object.defineProperty(e,"date",{enumerable:!0,get:function(){return o.date}}),Object.defineProperty(e,"dispatch",{enumerable:!0,get:function(){return s.dispatch}}),Object.defineProperty(e,"either",{enumerable:!0,get:function(){return u.either}}),Object.defineProperty(e,"either3",{enumerable:!0,get:function(){return u.either3}}),Object.defineProperty(e,"either4",{enumerable:!0,get:function(){return u.either4}}),Object.defineProperty(e,"either5",{enumerable:!0,get:function(){return u.either5}}),Object.defineProperty(e,"either6",{enumerable:!0,get:function(){return u.either6}}),Object.defineProperty(e,"either7",{enumerable:!0,get:function(){return u.either7}}),Object.defineProperty(e,"either8",{enumerable:!0,get:function(){return u.either8}}),Object.defineProperty(e,"either9",{enumerable:!0,get:function(){return u.either9}}),Object.defineProperty(e,"oneOf",{enumerable:!0,get:function(){return u.oneOf}}),Object.defineProperty(e,"fail",{enumerable:!0,get:function(){return f.fail}}),Object.defineProperty(e,"instanceOf",{enumerable:!0,get:function(){return c.instanceOf}}),Object.defineProperty(e,"mapping",{enumerable:!0,get:function(){return l.mapping}}),Object.defineProperty(e,"dict",{enumerable:!0,get:function(){return l.dict}}),Object.defineProperty(e,"integer",{enumerable:!0,get:function(){return v.integer}}),Object.defineProperty(e,"number",{enumerable:!0,get:function(){return v.number}}),Object.defineProperty(e,"positiveInteger",{enumerable:!0,get:function(){return v.positiveInteger}}),Object.defineProperty(e,"positiveNumber",{enumerable:!0,get:function(){return v.positiveNumber}}),Object.defineProperty(e,"exact",{enumerable:!0,get:function(){return p.exact}}),Object.defineProperty(e,"object",{enumerable:!0,get:function(){return p.object}}),Object.defineProperty(e,"pojo",{enumerable:!0,get:function(){return p.pojo}}),Object.defineProperty(e,"maybe",{enumerable:!0,get:function(){return y.maybe}}),Object.defineProperty(e,"nullable",{enumerable:!0,get:function(){return y.nullable}}),Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return y.optional}}),Object.defineProperty(e,"email",{enumerable:!0,get:function(){return d.email}}),Object.defineProperty(e,"regex",{enumerable:!0,get:function(){return d.regex}}),Object.defineProperty(e,"string",{enumerable:!0,get:function(){return d.string}}),Object.defineProperty(e,"url",{enumerable:!0,get:function(){return d.url}}),Object.defineProperty(e,"tuple2",{enumerable:!0,get:function(){return m.tuple2}}),Object.defineProperty(e,"tuple3",{enumerable:!0,get:function(){return m.tuple3}}),Object.defineProperty(e,"tuple4",{enumerable:!0,get:function(){return m.tuple4}}),Object.defineProperty(e,"tuple5",{enumerable:!0,get:function(){return m.tuple5}}),Object.defineProperty(e,"tuple6",{enumerable:!0,get:function(){return m.tuple6}});var t=ni,r=ae,n=St,i=Po,a=fe,o=Qr,s=ai,u=le,f=si,c=ui,l=Vr,v=ge,p=Ge,y=Xt,d=$e,m=ut})(S);const Qf="6.5.0",Wt="iframe-coordinator";function Wo(e){return Object.assign(Object.assign({direction:"HostToClient"},e),{protocol:Wt,version:Qf})}function Ae(e,t){return S.object({protocol:S.either(S.constant(Wt),S.hardcoded(Wt)),version:S.either(S.string,S.hardcoded("unknown")),msgType:e,msg:t,direction:S.optional(Vf)})}const Vf=S.either(S.constant("ClientToHost"),S.constant("HostToClient")),ec=Ae(S.constant("clickFired"),S.object({})),tc=Ae(S.constant("registeredKeyFired"),S.object({altKey:S.optional(S.boolean),charCode:S.optional(S.number),code:S.optional(S.string),ctrlKey:S.optional(S.boolean),key:S.string,keyCode:S.optional(S.number),metaKey:S.optional(S.boolean),shiftKey:S.optional(S.boolean)})),rc=Ae(S.constant("client_started"),S.mixed),nc=Ae(S.constant("env_init"),S.object({locale:S.string,hostRootUrl:S.string,assignedRoute:S.string,registeredKeys:S.optional(S.array(S.object({key:S.string,altKey:S.optional(S.boolean),ctrlKey:S.optional(S.boolean),metaKey:S.optional(S.boolean),shiftKey:S.optional(S.boolean)}))),custom:S.mixed})),ic=Ae(S.constant("modalRequest"),S.object({modalId:S.string,modalData:S.mixed})),ac=Ae(S.constant("navRequest"),S.object({url:S.string,history:S.optional(S.either(S.constant("push"),S.constant("replace")))}));function oc(e){return"notifyRequest"}const sc=S.map(S.constant("toastRequest"),oc),Qi=Ae(S.either(S.constant("notifyRequest"),sc),S.object({title:S.optional(S.string),message:S.string,custom:S.mixed})),uc=Ae(S.constant("pageMetadata"),S.object({title:S.string,breadcrumbs:S.array(S.object({text:S.string,href:S.string})),custom:S.optional(S.mixed)})),fc=Ae(S.constant("promptOnLeave"),S.object({shouldPrompt:S.boolean,message:S.optional(S.string)})),zo=Ae(S.constant("publish"),S.object({topic:S.string,payload:S.mixed,clientId:S.optional(S.string)}));function Bo(e){return S.guard(S.dispatch("msgType",{publish:zo,registeredKeyFired:tc,client_started:rc,clickFired:ec,navRequest:ac,notifyRequest:Qi,toastRequest:Qi,modalRequest:ic,pageMetadata:uc,promptOnLeave:fc}))(e)}function Go(e){return S.guard(S.dispatch("msgType",{publish:zo,env_init:nc}))(e)}new Map(Object.entries({Comma:",",Period:".",Semicolon:";",Quote:'"',BracketLeft:"[",BracketRight:"]",Backquote:"`",Backslash:"\\",Minus:"-",Equal:"="}));const cc="frame-router iframe { width: 100%; height: 100%; border: 0px }",Vi=["allow-popups-to-escape-sandbox","allow-scripts","allow-same-origin","allow-modals","allow-forms","allow-popups","allow-downloads","allow-top-navigation-by-user-activation"];let sr;class lc{constructor(t){this._window=t.mockWindow?t.mockWindow:window,this._postMessageHandler=r=>{this._handlePostMessage(t.onMessage,r)},this._frameLocation="about:blank",this._iframe=this._window.document.createElement("iframe"),sr||(sr=this._window.document.createElement("style"),sr.innerText=cc,this._window.document.head.appendChild(sr)),this._iframe.setAttribute("sandbox",Vi.join(" "))}setFrameAllow(t){typeof t!="string"&&(t=""),this._iframe.setAttribute("allow",t)}setFrameSandbox(t){typeof t!="string"&&(t="");const r=t.split(" ").concat(Vi),n=[...new Set(r)].join(" ");this._iframe.setAttribute("sandbox",n)}setFrameDefaultTitle(t){typeof t!="string"&&(t=""),this._iframe.setAttribute("title",t)}setFrameLocation(t){return this._frameLocation=t||"about:blank",this._iframe.contentWindow?this._navigateFrame():this._iframe.onload=r=>{this._navigateFrame(),this._iframe.onload=null},this._frameLocation}sendToClient(t){const r=this._expectedClientOrigin();if(this._iframe.contentWindow&&r){const n=Wo(t);let i;try{i=Go(n)}catch(a){throw new Error(`
|
|
19
|
+
`)))})})}}function $o(e,t,r){return xe(e,xe(t,r))}function xo(e,t,r,n){return xe(e,$o(t,r,n))}function Ro(e,t,r,n,i){return xe(e,xo(t,r,n,i))}function Mo(e,t,r,n,i,a){return xe(e,Ro(t,r,n,i,a))}function jo(e,t,r,n,i,a,o){return xe(e,Mo(t,r,n,i,a,o))}function ko(e,t,r,n,i,a,o,s){return xe(e,jo(t,r,n,i,a,o,s))}function ff(e,t,r,n,i,a,o,s,u){return xe(e,ko(t,r,n,i,a,o,s,u))}function cf(e){return function(t){var r=!0,n=!1,i=void 0;try{for(var a=e[Symbol.iterator](),o;!(r=(o=a.next()).done);r=!0){var s=o.value;if(s===t)return(0,Ft.Ok)(s)}}catch(u){n=!0,i=u}finally{try{!r&&a.return!=null&&a.return()}finally{if(n)throw i}}return(0,Ft.Err)((0,Dt.annotate)(t,"Must be one of ".concat(e.map(function(u){return JSON.stringify(u)}).join(", "))))}}var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.object=No;Ge.exact=yf;Ge.pojo=void 0;var yt=re,Ct=oe,An=ae;function Io(e){return df(e)||pf(e)||lf()}function lf(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function pf(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function df(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function vf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){hf(e,i,r[i])})}return e}function hf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _r(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_r=function(r){return typeof r}:_r=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_r(e)}function mf(e){return e!=null&&_r(e)==="object"&&Object.prototype.toString.call(e)==="[object Object]"}function Lo(e,t){var r=new Set,n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done);n=!0){var u=s.value;t.has(u)||r.add(u)}}catch(f){i=!0,a=f}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}var oi=function(t){return mf(t)?(0,Ct.Ok)(vf({},t)):(0,Ct.Err)((0,yt.annotate)(t,"Must be an object"))};Ge.pojo=oi;function No(e){var t=new Set(Object.keys(e));return(0,An.compose)(oi,function(r){for(var n=new Set(Object.keys(r)),i=Lo(t,n),a={},o={},s=0,u=Object.keys(e);s<u.length;s++){var f=u[s],c=e[f],l=r[f],v=c(l);try{a[f]=v.unwrap(),i.delete(f)}catch(b){if(!(0,yt.isAnnotation)(b))throw b;l===void 0?i.add(f):o[f]=b}}var p=Object.keys(o);if(p.length>0||i.size>0){var y;if(p.length>0){var d=p.map(function(b){return[b,o[b]]});y=(0,yt.annotateFields)(r,d)}else y=(0,yt.annotate)(r);if(i.size>0){var m=Io(i).map(function(b){return'"'.concat(b,'"')}).join(", "),h=i.size>1?"keys":"key";y=(0,yt.annotate)(y,"Missing ".concat(h,": ").concat(m))}return(0,Ct.Err)(y)}return(0,Ct.Ok)(a)})}function yf(e){var t=new Set(Object.keys(e)),r=(0,An.compose)(oi,function(i){var a=new Set(Object.keys(i)),o=Lo(a,t);return o.size>0?(0,Ct.Err)((0,yt.annotate)(i,"Superfluous keys: ".concat(Io(o).join(", ")))):(0,Ct.Ok)(i)}),n=No(e);return(0,An.compose)(r,n)}Object.defineProperty(ai,"__esModule",{value:!0});ai.dispatch=wf;var gf=le,_f=Ge;function bf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wf(e,t){var r=(0,_f.object)(bf({},e,(0,gf.oneOf)(Object.keys(t))));return function(n){return r(n).andThen(function(i){var a=i[e],o=t[a];return o(n)})}}var si={};Object.defineProperty(si,"__esModule",{value:!0});si.fail=Ef;var Cf=re,Of=oe;function Ef(e){return function(t){return(0,Of.Err)((0,Cf.annotate)(t,e))}}var ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.instanceOf=Af;var Sf=re,Ji=oe;function Af(e){return function(t){return t instanceof e?(0,Ji.Ok)(t):(0,Ji.Err)((0,Sf.annotate)(t,"Must be ".concat(e.name," instance")))}}var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.mapping=Fo;Vr.dict=jf;var Yi=re,Zi=oe,Pf=Ge,Do=ae;function Tf(e,t){return Rf(e)||xf(e,t)||$f()}function $f(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function xf(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}function Rf(e){if(Array.isArray(e))return e}function Fo(e){return(0,Do.compose)(Pf.pojo,function(t){var r=[],n=[];return Object.keys(t).forEach(function(i){var a=t[i],o=e(a);try{var s=o.unwrap();n.length===0&&r.push([i,s])}catch(u){if((0,Yi.isAnnotation)(u))r.length=0,n.push([i,u]);else throw u}}),n.length>0?(0,Zi.Err)((0,Yi.annotateFields)(t,n)):(0,Zi.Ok)(new Map(r))})}function Mf(e){var t={},r=!0,n=!1,i=void 0;try{for(var a=e.entries()[Symbol.iterator](),o;!(r=(o=a.next()).done);r=!0){var s=Tf(o.value,2),u=s[0],f=s[1];t[u]=f}}catch(c){n=!0,i=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(n)throw i}}return t}function jf(e){return(0,Do.map)(Fo(e),Mf)}var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.optional=If;Xt.nullable=Lf;Xt.maybe=Df;var kf=re,Xi=oe,Uo=fe,fi=le;function If(e){return(0,fi.either)(Uo.undefined_,e)}function Lf(e){return(0,fi.either)(Uo.null_,e)}var Nf=function(t){return t==null?(0,Xi.Ok)(t):(0,Xi.Err)((0,kf.annotate)(t,"Must be undefined or null"))};function Df(e){return(0,fi.either)(Nf,e)}var $e={};Object.defineProperty($e,"__esModule",{value:!0});$e.regex=Ho;$e.url=$e.email=$e.string=void 0;var Pn=re,Ut=oe,Tn=ae,Ff=/^([A-Za-z]{3,9}(?:[+][A-Za-z]{3,9})?):\/\/(?:([-;:&=+$,\w]+)@)?(?:([A-Za-z0-9.-]+)(?::([0-9]{2,5}))?)(\/(?:[-+~%/.,\w]*)?(?:\?[-+=&;%@.,\w]*)?(?:#[.,!/\w]*)?)?$/,Uf=["https"],ci=function(t){return typeof t=="string"?(0,Ut.Ok)(t):(0,Ut.Err)((0,Pn.annotate)(t,"Must be string"))};$e.string=ci;function Ho(e,t){return(0,Tn.compose)(ci,(0,Tn.predicate)(function(r){return e.test(r)},t))}var Hf=Ho(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"Must be email");$e.email=Hf;var Wf=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Uf;return(0,Tn.compose)(ci,function(r){var n=r.match(Ff);if(n){var i=n[1];return t.length===0||t.includes(i.toLowerCase())?(0,Ut.Ok)(r):(0,Ut.Err)((0,Pn.annotate)(r,"URL scheme must be any of: ".concat(t.join(", "))))}else return(0,Ut.Err)((0,Pn.annotate)(r,"Must be URL"))})};$e.url=Wf;var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.tuple2=qf;ut.tuple3=Jf;ut.tuple4=Yf;ut.tuple5=Zf;ut.tuple6=Xf;var Qt=re,Ee=oe,zf=St,nt=ae;function Vt(e,t){return Kf(e)||Gf(e,t)||Bf()}function Bf(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Gf(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}function Kf(e){if(Array.isArray(e))return e}var er=function(t){return(0,nt.compose)(zf.poja,(0,nt.predicate)(function(r){return r.length===t},"Must be a ".concat(t,"-tuple")))};function qf(e,t){return(0,nt.compose)(er(2),function(r){var n=Vt(r,2),i=n[0],a=n[1],o=e(i),s=t(a);try{return(0,Ee.Ok)([o.unwrap(),s.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([o.isErr()?o.errValue():o.value(),s.isErr()?s.errValue():s.value()]))}})}function Jf(e,t,r){return(0,nt.compose)(er(3),function(n){var i=Vt(n,3),a=i[0],o=i[1],s=i[2],u=e(a),f=t(o),c=r(s);try{return(0,Ee.Ok)([u.unwrap(),f.unwrap(),c.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([u.isErr()?u.errValue():u.value(),f.isErr()?f.errValue():f.value(),c.isErr()?c.errValue():c.value()]))}})}function Yf(e,t,r,n){return(0,nt.compose)(er(4),function(i){var a=Vt(i,4),o=a[0],s=a[1],u=a[2],f=a[3],c=e(o),l=t(s),v=r(u),p=n(f);try{return(0,Ee.Ok)([c.unwrap(),l.unwrap(),v.unwrap(),p.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([c.isErr()?c.errValue():c.value(),l.isErr()?l.errValue():l.value(),v.isErr()?v.errValue():v.value(),p.isErr()?p.errValue():p.value()]))}})}function Zf(e,t,r,n,i){return(0,nt.compose)(er(5),function(a){var o=Vt(a,5),s=o[0],u=o[1],f=o[2],c=o[3],l=o[4],v=e(s),p=t(u),y=r(f),d=n(c),m=i(l);try{return(0,Ee.Ok)([v.unwrap(),p.unwrap(),y.unwrap(),d.unwrap(),m.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([v.isErr()?v.errValue():v.value(),p.isErr()?p.errValue():p.value(),y.isErr()?y.errValue():y.value(),d.isErr()?d.errValue():d.value(),m.isErr()?m.errValue():m.value()]))}})}function Xf(e,t,r,n,i,a){return(0,nt.compose)(er(6),function(o){var s=Vt(o,6),u=s[0],f=s[1],c=s[2],l=s[3],v=s[4],p=s[5],y=e(u),d=t(f),m=r(c),h=n(l),b=i(v),C=a(p);try{return(0,Ee.Ok)([y.unwrap(),d.unwrap(),m.unwrap(),h.unwrap(),b.unwrap(),C.unwrap()])}catch{return(0,Ee.Err)((0,Qt.annotate)([y.isErr()?y.errValue():y.value(),d.isErr()?d.errValue():d.value(),m.isErr()?m.errValue():m.value(),h.isErr()?h.errValue():h.value(),b.isErr()?b.errValue():b.value(),C.isErr()?C.errValue():C.value()]))}})}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"guard",{enumerable:!0,get:function(){return t.guard}}),Object.defineProperty(e,"compose",{enumerable:!0,get:function(){return r.compose}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r.map}}),Object.defineProperty(e,"predicate",{enumerable:!0,get:function(){return r.predicate}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return n.array}}),Object.defineProperty(e,"poja",{enumerable:!0,get:function(){return n.poja}}),Object.defineProperty(e,"boolean",{enumerable:!0,get:function(){return i.boolean}}),Object.defineProperty(e,"numericBoolean",{enumerable:!0,get:function(){return i.numericBoolean}}),Object.defineProperty(e,"truthy",{enumerable:!0,get:function(){return i.truthy}}),Object.defineProperty(e,"constant",{enumerable:!0,get:function(){return a.constant}}),Object.defineProperty(e,"hardcoded",{enumerable:!0,get:function(){return a.hardcoded}}),Object.defineProperty(e,"mixed",{enumerable:!0,get:function(){return a.mixed}}),Object.defineProperty(e,"null_",{enumerable:!0,get:function(){return a.null_}}),Object.defineProperty(e,"undefined_",{enumerable:!0,get:function(){return a.undefined_}}),Object.defineProperty(e,"unknown",{enumerable:!0,get:function(){return a.unknown}}),Object.defineProperty(e,"date",{enumerable:!0,get:function(){return o.date}}),Object.defineProperty(e,"dispatch",{enumerable:!0,get:function(){return s.dispatch}}),Object.defineProperty(e,"either",{enumerable:!0,get:function(){return u.either}}),Object.defineProperty(e,"either3",{enumerable:!0,get:function(){return u.either3}}),Object.defineProperty(e,"either4",{enumerable:!0,get:function(){return u.either4}}),Object.defineProperty(e,"either5",{enumerable:!0,get:function(){return u.either5}}),Object.defineProperty(e,"either6",{enumerable:!0,get:function(){return u.either6}}),Object.defineProperty(e,"either7",{enumerable:!0,get:function(){return u.either7}}),Object.defineProperty(e,"either8",{enumerable:!0,get:function(){return u.either8}}),Object.defineProperty(e,"either9",{enumerable:!0,get:function(){return u.either9}}),Object.defineProperty(e,"oneOf",{enumerable:!0,get:function(){return u.oneOf}}),Object.defineProperty(e,"fail",{enumerable:!0,get:function(){return f.fail}}),Object.defineProperty(e,"instanceOf",{enumerable:!0,get:function(){return c.instanceOf}}),Object.defineProperty(e,"mapping",{enumerable:!0,get:function(){return l.mapping}}),Object.defineProperty(e,"dict",{enumerable:!0,get:function(){return l.dict}}),Object.defineProperty(e,"integer",{enumerable:!0,get:function(){return v.integer}}),Object.defineProperty(e,"number",{enumerable:!0,get:function(){return v.number}}),Object.defineProperty(e,"positiveInteger",{enumerable:!0,get:function(){return v.positiveInteger}}),Object.defineProperty(e,"positiveNumber",{enumerable:!0,get:function(){return v.positiveNumber}}),Object.defineProperty(e,"exact",{enumerable:!0,get:function(){return p.exact}}),Object.defineProperty(e,"object",{enumerable:!0,get:function(){return p.object}}),Object.defineProperty(e,"pojo",{enumerable:!0,get:function(){return p.pojo}}),Object.defineProperty(e,"maybe",{enumerable:!0,get:function(){return y.maybe}}),Object.defineProperty(e,"nullable",{enumerable:!0,get:function(){return y.nullable}}),Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return y.optional}}),Object.defineProperty(e,"email",{enumerable:!0,get:function(){return d.email}}),Object.defineProperty(e,"regex",{enumerable:!0,get:function(){return d.regex}}),Object.defineProperty(e,"string",{enumerable:!0,get:function(){return d.string}}),Object.defineProperty(e,"url",{enumerable:!0,get:function(){return d.url}}),Object.defineProperty(e,"tuple2",{enumerable:!0,get:function(){return m.tuple2}}),Object.defineProperty(e,"tuple3",{enumerable:!0,get:function(){return m.tuple3}}),Object.defineProperty(e,"tuple4",{enumerable:!0,get:function(){return m.tuple4}}),Object.defineProperty(e,"tuple5",{enumerable:!0,get:function(){return m.tuple5}}),Object.defineProperty(e,"tuple6",{enumerable:!0,get:function(){return m.tuple6}});var t=ni,r=ae,n=St,i=Po,a=fe,o=Qr,s=ai,u=le,f=si,c=ui,l=Vr,v=ge,p=Ge,y=Xt,d=$e,m=ut})(S);const Qf="6.5.1",Wt="iframe-coordinator";function Wo(e){return Object.assign(Object.assign({direction:"HostToClient"},e),{protocol:Wt,version:Qf})}function Ae(e,t){return S.object({protocol:S.either(S.constant(Wt),S.hardcoded(Wt)),version:S.either(S.string,S.hardcoded("unknown")),msgType:e,msg:t,direction:S.optional(Vf)})}const Vf=S.either(S.constant("ClientToHost"),S.constant("HostToClient")),ec=Ae(S.constant("clickFired"),S.object({})),tc=Ae(S.constant("registeredKeyFired"),S.object({altKey:S.optional(S.boolean),charCode:S.optional(S.number),code:S.optional(S.string),ctrlKey:S.optional(S.boolean),key:S.string,keyCode:S.optional(S.number),metaKey:S.optional(S.boolean),shiftKey:S.optional(S.boolean)})),rc=Ae(S.constant("client_started"),S.mixed),nc=Ae(S.constant("env_init"),S.object({locale:S.string,hostRootUrl:S.string,assignedRoute:S.string,registeredKeys:S.optional(S.array(S.object({key:S.string,altKey:S.optional(S.boolean),ctrlKey:S.optional(S.boolean),metaKey:S.optional(S.boolean),shiftKey:S.optional(S.boolean)}))),custom:S.mixed})),ic=Ae(S.constant("modalRequest"),S.object({modalId:S.string,modalData:S.mixed})),ac=Ae(S.constant("navRequest"),S.object({url:S.string,history:S.optional(S.either(S.constant("push"),S.constant("replace")))}));function oc(e){return"notifyRequest"}const sc=S.map(S.constant("toastRequest"),oc),Qi=Ae(S.either(S.constant("notifyRequest"),sc),S.object({title:S.optional(S.string),message:S.string,custom:S.mixed})),uc=Ae(S.constant("pageMetadata"),S.object({title:S.string,breadcrumbs:S.array(S.object({text:S.string,href:S.string})),custom:S.optional(S.mixed)})),fc=Ae(S.constant("promptOnLeave"),S.object({shouldPrompt:S.boolean,message:S.optional(S.string)})),zo=Ae(S.constant("publish"),S.object({topic:S.string,payload:S.mixed,clientId:S.optional(S.string)}));function Bo(e){return S.guard(S.dispatch("msgType",{publish:zo,registeredKeyFired:tc,client_started:rc,clickFired:ec,navRequest:ac,notifyRequest:Qi,toastRequest:Qi,modalRequest:ic,pageMetadata:uc,promptOnLeave:fc}))(e)}function Go(e){return S.guard(S.dispatch("msgType",{publish:zo,env_init:nc}))(e)}new Map(Object.entries({Comma:",",Period:".",Semicolon:";",Quote:'"',BracketLeft:"[",BracketRight:"]",Backquote:"`",Backslash:"\\",Minus:"-",Equal:"="}));const cc="frame-router iframe { width: 100%; height: 100%; border: 0px }",Vi=["allow-popups-to-escape-sandbox","allow-scripts","allow-same-origin","allow-modals","allow-forms","allow-popups","allow-downloads","allow-top-navigation-by-user-activation"];let sr;class lc{constructor(t){this._window=t.mockWindow?t.mockWindow:window,this._postMessageHandler=r=>{this._handlePostMessage(t.onMessage,r)},this._frameLocation="about:blank",this._iframe=this._window.document.createElement("iframe"),sr||(sr=this._window.document.createElement("style"),sr.innerText=cc,this._window.document.head.appendChild(sr)),this._iframe.setAttribute("sandbox",Vi.join(" "))}setFrameAllow(t){typeof t!="string"&&(t=""),this._iframe.setAttribute("allow",t)}setFrameSandbox(t){typeof t!="string"&&(t="");const r=t.split(" ").concat(Vi),n=[...new Set(r)].join(" ");this._iframe.setAttribute("sandbox",n)}setFrameDefaultTitle(t){typeof t!="string"&&(t=""),this._iframe.setAttribute("title",t)}setFrameLocation(t){return this._frameLocation=t||"about:blank",this._iframe.contentWindow?this._navigateFrame():this._iframe.onload=r=>{this._navigateFrame(),this._iframe.onload=null},this._frameLocation}sendToClient(t){const r=this._expectedClientOrigin();if(this._iframe.contentWindow&&r){const n=Wo(t);let i;try{i=Go(n)}catch(a){throw new Error(`
|
|
20
20
|
I received invalid data to send to a client application. This is probably due
|
|
21
21
|
to bad data passed to a frame-router method.
|
|
22
22
|
`.trim()+`
|
|
@@ -24,7 +24,7 @@ to bad data passed to a frame-router method.
|
|
|
24
24
|
I received an invalid message from the client application. This is probably due
|
|
25
25
|
to a major version mismatch between client and host iframe-coordinator libraries.
|
|
26
26
|
`.trim()+`
|
|
27
|
-
`+a.message);return}const i=this._expectedClientOrigin();i&&r.origin===i&&r.source===this._iframe.contentWindow&&(n.msgType==="clickFired"&&this._iframe.click(),t(n))}_navigateFrame(){this._iframe.contentWindow&&this._iframe.contentWindow.location.replace(this._frameLocation)}_expectedClientOrigin(){try{const t=new URL(this._frameLocation,this._window.location.href);return t.protocol!=="http:"&&t.protocol!=="https:"?null:new URL(t.origin).origin}catch{return null}}}class ea{constructor(t){this._clients=Object.entries(t).map(([r,n])=>dc(r,n)).sort(hc)}getClientTarget(t){let r=null;for(let n of this._clients){const i=pc(t,n.assignedRoute);if(i!==null){r={id:n.id,url:vc(n.url,i),assignedRoute:n.assignedRoute,allow:n.allow,sandbox:n.sandbox,defaultTitle:n.defaultTitle};break}}return r}}function pc(e,t){const r=On(e);if(r.startsWith(t)){const n=r.replace(t,"");return On(n)}else return null}function dc(e,t){return{id:e,url:t.url,assignedRoute:xu(t.assignedRoute),allow:t.allow,sandbox:t.sandbox,defaultTitle:t.defaultTitle}}function vc(e,t){const r=new URL(e,window.location.href);if(r.hash){const n=xr(r.hash);r.hash=`${n}/${t}`}else{const n=xr(r.pathname);r.pathname=`${n}/${t}`}return r.toString()}function hc(e,t){const r=e.assignedRoute.split("/").length,i=t.assignedRoute.split("/").length-r;return i!==0?i:t.assignedRoute.length-e.assignedRoute.length}const Mt="route";class mc extends HTMLElement{constructor(){super(),this._publishEmitter=new yo,this._publishExposedEmitter=new mo(this._publishEmitter),this._queuedEvents=[],this._frameManager=new lc({onMessage:this._handleClientMessages.bind(this)})}static get observedAttributes(){return[Mt]}connectedCallback(){this._frameManager.embed(this),this._frameManager.startMessageHandler(),this._emitQueuedEvents()}disconnectedCallback(){this._frameManager.stopMessageHandler()}setupFrames(t,r){this._router=new ea(t);const n=this._processHostUrl(r.hostRootUrl);this._envData=Object.assign(Object.assign({},r),{hostRootUrl:n}),this._clientConfig={clients:t,envData:r},this.changeRoute(this.getAttribute(Mt)||"about:blank")}get messaging(){return this._publishExposedEmitter}publish(t){this._frameManager.sendToClient({msg:t,msgType:"publish"})}changeRoute(t){if(this._router){const r=this._router.getClientTarget(t),n=r&&r.id||"";this._currentClientId!==n&&this._dispatchEventWhenConnected(new CustomEvent("clientChanged",{detail:n})),r===null&&this._currentPath!==t&&this._dispatchEventWhenConnected(new CustomEvent("clientNotFound")),this._currentPath=t,this._currentClientId=n,this._frameManager.setFrameSandbox(r&&r.sandbox||void 0),this._frameManager.setFrameAllow(r&&r.allow||void 0),this._frameManager.setFrameDefaultTitle(r&&r.defaultTitle||void 0);const i=this._frameManager.setFrameLocation(r&&r.url);this._dispatchEventWhenConnected(new CustomEvent("frameTransition",{detail:i}))}}attributeChangedCallback(t,r,n){t===Mt&&r!==n&&this.changeRoute(n||"")}get clientConfig(){return this._clientConfig}set clientConfig(t){this._clientConfig=t,this._configureClients(t.clients,t.envData)}_configureClients(t,r){this._router=new ea(t);const n=this._processHostUrl(r.hostRootUrl);this._envData=Object.assign(Object.assign({},r),{hostRootUrl:n}),this.changeRoute(this.getAttribute(Mt)||"about:blank")}_handleClientMessages(t){switch(t.msgType){case"publish":const r=t.msg;r.clientId=this._currentClientId,this._publishEmitter.dispatch(t.msg.topic,r),this._dispatchClientMessage(t);break;case"client_started":this._handleLifecycleMessage(t);break;default:this._dispatchClientMessage(t)}}_handleLifecycleMessage(t){const r=this._getCurrentClientAssignedRoute(),n=Object.assign(Object.assign({},this._envData),{assignedRoute:r});this._frameManager.sendToClient({msgType:"env_init",msg:n})}_dispatchClientMessage(t){const r=t.msg;r.clientId=this._currentClientId,this.dispatchEvent(new CustomEvent(t.msgType,{detail:r}))}_dispatchEventWhenConnected(t){this.isConnected?this.dispatchEvent(t):this._queuedEvents.push(t)}_emitQueuedEvents(){this.isConnected&&(this._queuedEvents.forEach(t=>this.dispatchEvent(t)),this._queuedEvents=[])}_getCurrentClientAssignedRoute(){const t=this.getAttribute(Mt)||"",r=this._router.getClientTarget(t);return r&&r.assignedRoute||""}_processHostUrl(t){const r=new URL(t);return r.hash||(r.pathname=xr(r.pathname),window.location.hash&&(r.pathname!=="/"&&(r.pathname+="/"),r.hash="#")),r.href}}class yc{constructor(t,r){this._publishEmitter=new yo,this.envData=t,this._ifcEventTarget=r,this.publishEmitter=new mo(this._publishEmitter)}handleClientMessage(t,r){const n=this._validateClientMessage(t,r);if(n!==void 0)switch(n.msgType){case"publish":const i=n.msg;i.clientId=r,this._publishEmitter.dispatch(n.msg.topic,i),this._emitClientEvent(n,r);break;case"client_started":this._handleLifecycleMessage(n,r);break;default:this._emitClientEvent(n,r)}}_validateClientMessage(t,r){let n;if(t.data&&t.data.direction==="HostToClient")return;const i=this._expectedClientOrigin(r);if(t.origin!==i){console.warn(`Ignoring message from unexpected origin: ${t.origin}`,t.data);return}try{n=Bo(t.data)}catch(a){if(t.data.protocol==Wt)throw new Error(`
|
|
27
|
+
`+a.message);return}const i=this._expectedClientOrigin();i&&r.origin===i&&r.source===this._iframe.contentWindow&&(n.msgType==="clickFired"&&this._iframe.click(),t(n))}_navigateFrame(){this._iframe.contentWindow&&this._iframe.contentWindow.location.replace(this._frameLocation)}_expectedClientOrigin(){try{const t=new URL(this._frameLocation,this._window.location.href);return t.protocol!=="http:"&&t.protocol!=="https:"?null:new URL(t.origin).origin}catch{return null}}}class ea{constructor(t){this._clients=Object.entries(t).map(([r,n])=>dc(r,n)).sort(hc)}getClientTarget(t){let r=null;for(let n of this._clients){const i=pc(t,n.assignedRoute);if(i!==null){r={id:n.id,url:vc(n.url,i),assignedRoute:n.assignedRoute,allow:n.allow,sandbox:n.sandbox,defaultTitle:n.defaultTitle};break}}return r}}function pc(e,t){const r=On(e);if(r.startsWith(t)){const n=r.replace(t,"");return On(n)}else return null}function dc(e,t){return{id:e,url:t.url,assignedRoute:xu(t.assignedRoute),allow:t.allow,sandbox:t.sandbox,defaultTitle:t.defaultTitle}}function vc(e,t){const r=new URL(e,window.location.href);if(r.hash){const n=xr(r.hash);r.hash=`${n}/${t}`}else{const n=xr(r.pathname);r.pathname=`${n}/${t}`}return r.toString()}function hc(e,t){const r=e.assignedRoute.split("/").length,i=t.assignedRoute.split("/").length-r;return i!==0?i:t.assignedRoute.length-e.assignedRoute.length}const Mt="route";class mc extends HTMLElement{constructor(){super(),this._publishEmitter=new yo,this._publishExposedEmitter=new mo(this._publishEmitter),this._queuedEvents=[],this._frameManager=new lc({onMessage:this._handleClientMessages.bind(this)})}static get observedAttributes(){return[Mt]}connectedCallback(){this._frameManager.embed(this),this._frameManager.startMessageHandler(),this._emitQueuedEvents()}disconnectedCallback(){this._frameManager.stopMessageHandler()}setupFrames(t,r){this._router=new ea(t);const n=this._processHostUrl(r.hostRootUrl);this._envData=Object.assign(Object.assign({},r),{hostRootUrl:n}),this._clientConfig={clients:t,envData:r},this.changeRoute(this.getAttribute(Mt)||"about:blank")}get messaging(){return this._publishExposedEmitter}publish(t){this._frameManager.sendToClient({msg:t,msgType:"publish"})}changeRoute(t){if(this._router){const r=this._router.getClientTarget(t),n=r&&r.id||"";this._currentClientId!==n&&this._dispatchEventWhenConnected(new CustomEvent("clientChanged",{detail:n})),r===null&&this._currentPath!==t&&this._dispatchEventWhenConnected(new CustomEvent("clientNotFound")),this._currentPath=t,this._currentClientId=n,this._frameManager.setFrameSandbox(r&&r.sandbox||void 0),this._frameManager.setFrameAllow(r&&r.allow||void 0),this._frameManager.setFrameDefaultTitle(r&&r.defaultTitle||void 0);const i=this._frameManager.setFrameLocation(r&&r.url);this._dispatchEventWhenConnected(new CustomEvent("frameTransition",{detail:i}))}}attributeChangedCallback(t,r,n){t===Mt&&r!==n&&this.changeRoute(n||"")}get clientConfig(){return this._clientConfig}set clientConfig(t){this._clientConfig=t,this._configureClients(t.clients,t.envData)}_configureClients(t,r){this._router=new ea(t);const n=this._processHostUrl(r.hostRootUrl);this._envData=Object.assign(Object.assign({},r),{hostRootUrl:n}),this.changeRoute(this.getAttribute(Mt)||"about:blank")}_handleClientMessages(t){switch(t.msgType){case"publish":const r=t.msg;r.clientId=this._currentClientId,this._publishEmitter.dispatch(t.msg.topic,r),this._dispatchClientMessage(t);break;case"client_started":this._handleLifecycleMessage(t);break;case"pageMetadata":t.msg.title&&this._frameManager.setFrameDefaultTitle(t.msg.title),this._dispatchClientMessage(t);break;default:this._dispatchClientMessage(t)}}_handleLifecycleMessage(t){const r=this._getCurrentClientAssignedRoute(),n=Object.assign(Object.assign({},this._envData),{assignedRoute:r});this._frameManager.sendToClient({msgType:"env_init",msg:n})}_dispatchClientMessage(t){const r=t.msg;r.clientId=this._currentClientId,this.dispatchEvent(new CustomEvent(t.msgType,{detail:r}))}_dispatchEventWhenConnected(t){this.isConnected?this.dispatchEvent(t):this._queuedEvents.push(t)}_emitQueuedEvents(){this.isConnected&&(this._queuedEvents.forEach(t=>this.dispatchEvent(t)),this._queuedEvents=[])}_getCurrentClientAssignedRoute(){const t=this.getAttribute(Mt)||"",r=this._router.getClientTarget(t);return r&&r.assignedRoute||""}_processHostUrl(t){const r=new URL(t);return r.hash||(r.pathname=xr(r.pathname),window.location.hash&&(r.pathname!=="/"&&(r.pathname+="/"),r.hash="#")),r.href}}class yc{constructor(t,r){this._publishEmitter=new yo,this.envData=t,this._ifcEventTarget=r,this.publishEmitter=new mo(this._publishEmitter)}handleClientMessage(t,r){const n=this._validateClientMessage(t,r);if(n!==void 0)switch(n.msgType){case"publish":const i=n.msg;i.clientId=r,this._publishEmitter.dispatch(n.msg.topic,i),this._emitClientEvent(n,r);break;case"client_started":this._handleLifecycleMessage(n,r);break;default:this._emitClientEvent(n,r)}}_validateClientMessage(t,r){let n;if(t.data&&t.data.direction==="HostToClient")return;const i=this._expectedClientOrigin(r);if(t.origin!==i){console.warn(`Ignoring message from unexpected origin: ${t.origin}`,t.data);return}try{n=Bo(t.data)}catch(a){if(t.data.protocol==Wt)throw new Error(`
|
|
28
28
|
I received an invalid message from the client application. This is probably due
|
|
29
29
|
to a major version mismatch between client and host iframe-coordinator libraries.
|
|
30
30
|
`.trim()+`
|
|
@@ -43,7 +43,7 @@ to a major version mismatch between client and host iframe-coordinator libraries
|
|
|
43
43
|
* vue-router v3.6.5
|
|
44
44
|
* (c) 2022 Evan You
|
|
45
45
|
* @license MIT
|
|
46
|
-
*/function ye(e,t){for(var r in t)e[r]=t[r];return e}var Lv=/[!'()*]/g,Nv=function(e){return"%"+e.charCodeAt(0).toString(16)},Dv=/%2C/g,vt=function(e){return encodeURIComponent(e).replace(Lv,Nv).replace(Dv,",")};function Zn(e){try{return decodeURIComponent(e)}catch{}return e}function Fv(e,t,r){t===void 0&&(t={});var n=r||Uv,i;try{i=n(e||"")}catch{i={}}for(var a in t){var o=t[a];i[a]=Array.isArray(o)?o.map(Xa):Xa(o)}return i}var Xa=function(e){return e==null||typeof e=="object"?e:String(e)};function Uv(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(r){var n=r.replace(/\+/g," ").split("="),i=Zn(n.shift()),a=n.length>0?Zn(n.join("=")):null;t[i]===void 0?t[i]=a:Array.isArray(t[i])?t[i].push(a):t[i]=[t[i],a]}),t}function Hv(e){var t=e?Object.keys(e).map(function(r){var n=e[r];if(n===void 0)return"";if(n===null)return vt(r);if(Array.isArray(n)){var i=[];return n.forEach(function(a){a!==void 0&&(a===null?i.push(vt(r)):i.push(vt(r)+"="+vt(a)))}),i.join("&")}return vt(r)+"="+vt(n)}).filter(function(r){return r.length>0}).join("&"):null;return t?"?"+t:""}var Br=/\/?$/;function Gr(e,t,r,n){var i=n&&n.options.stringifyQuery,a=t.query||{};try{a=Xn(a)}catch{}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:Qa(t,i),matched:e?Wv(e):[]};return r&&(o.redirectedFrom=Qa(r,i)),Object.freeze(o)}function Xn(e){if(Array.isArray(e))return e.map(Xn);if(e&&typeof e=="object"){var t={};for(var r in e)t[r]=Xn(e[r]);return t}else return e}var Je=Gr(null,{path:"/"});function Wv(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Qa(e,t){var r=e.path,n=e.query;n===void 0&&(n={});var i=e.hash;i===void 0&&(i="");var a=t||Hv;return(r||"/")+a(n)+i}function Vs(e,t,r){return t===Je?e===t:t?e.path&&t.path?e.path.replace(Br,"")===t.path.replace(Br,"")&&(r||e.hash===t.hash&&Sr(e.query,t.query)):e.name&&t.name?e.name===t.name&&(r||e.hash===t.hash&&Sr(e.query,t.query)&&Sr(e.params,t.params)):!1:!1}function Sr(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var r=Object.keys(e).sort(),n=Object.keys(t).sort();return r.length!==n.length?!1:r.every(function(i,a){var o=e[i],s=n[a];if(s!==i)return!1;var u=t[i];return o==null||u==null?o===u:typeof o=="object"&&typeof u=="object"?Sr(o,u):String(o)===String(u)})}function zv(e,t){return e.path.replace(Br,"/").indexOf(t.path.replace(Br,"/"))===0&&(!t.hash||e.hash===t.hash)&&Bv(e.query,t.query)}function Bv(e,t){for(var r in t)if(!(r in e))return!1;return!0}function eu(e){for(var t=0;t<e.matched.length;t++){var r=e.matched[t];for(var n in r.instances){var i=r.instances[n],a=r.enteredCbs[n];if(!(!i||!a)){delete r.enteredCbs[n];for(var o=0;o<a.length;o++)i._isBeingDestroyed||a[o](i)}}}}var Gv={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,r){var n=r.props,i=r.children,a=r.parent,o=r.data;o.routerView=!0;for(var s=a.$createElement,u=n.name,f=a.$route,c=a._routerViewCache||(a._routerViewCache={}),l=0,v=!1;a&&a._routerRoot!==a;){var p=a.$vnode?a.$vnode.data:{};p.routerView&&l++,p.keepAlive&&a._directInactive&&a._inactive&&(v=!0),a=a.$parent}if(o.routerViewDepth=l,v){var y=c[u],d=y&&y.component;return d?(y.configProps&&Va(d,o,y.route,y.configProps),s(d,o,i)):s()}var m=f.matched[l],h=m&&m.components[u];if(!m||!h)return c[u]=null,s();c[u]={component:h},o.registerRouteInstance=function(C,A){var E=m.instances[u];(A&&E!==C||!A&&E===C)&&(m.instances[u]=A)},(o.hook||(o.hook={})).prepatch=function(C,A){m.instances[u]=A.componentInstance},o.hook.init=function(C){C.data.keepAlive&&C.componentInstance&&C.componentInstance!==m.instances[u]&&(m.instances[u]=C.componentInstance),eu(f)};var b=m.props&&m.props[u];return b&&(ye(c[u],{route:f,configProps:b}),Va(h,o,f,b)),s(h,o,i)}};function Va(e,t,r,n){var i=t.props=Kv(r,n);if(i){i=t.props=ye({},i);var a=t.attrs=t.attrs||{};for(var o in i)(!e.props||!(o in e.props))&&(a[o]=i[o],delete i[o])}}function Kv(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}function tu(e,t,r){var n=e.charAt(0);if(n==="/")return e;if(n==="?"||n==="#")return t+e;var i=t.split("/");(!r||!i[i.length-1])&&i.pop();for(var a=e.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];s===".."?i.pop():s!=="."&&i.push(s)}return i[0]!==""&&i.unshift(""),i.join("/")}function qv(e){var t="",r="",n=e.indexOf("#");n>=0&&(t=e.slice(n),e=e.slice(0,n));var i=e.indexOf("?");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{path:e,query:r,hash:t}}function Le(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var Kr=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},xt=iu,Jv=ki,Yv=Vv,Zv=ru,Xv=nu,Qv=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function ki(e,t){for(var r=[],n=0,i=0,a="",o=t&&t.delimiter||"/",s;(s=Qv.exec(e))!=null;){var u=s[0],f=s[1],c=s.index;if(a+=e.slice(i,c),i=c+u.length,f){a+=f[1];continue}var l=e[i],v=s[2],p=s[3],y=s[4],d=s[5],m=s[6],h=s[7];a&&(r.push(a),a="");var b=v!=null&&l!=null&&l!==v,C=m==="+"||m==="*",A=m==="?"||m==="*",E=s[2]||o,P=y||d;r.push({name:p||n++,prefix:v||"",delimiter:E,optional:A,repeat:C,partial:b,asterisk:!!h,pattern:P?rh(P):h?".*":"[^"+Ar(E)+"]+?"})}return i<e.length&&(a+=e.substr(i)),a&&r.push(a),r}function Vv(e,t){return ru(ki(e,t),t)}function eh(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function th(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function ru(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)typeof e[n]=="object"&&(r[n]=new RegExp("^(?:"+e[n].pattern+")$",Li(t)));return function(i,a){for(var o="",s=i||{},u=a||{},f=u.pretty?eh:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if(typeof l=="string"){o+=l;continue}var v=s[l.name],p;if(v==null)if(l.optional){l.partial&&(o+=l.prefix);continue}else throw new TypeError('Expected "'+l.name+'" to be defined');if(Kr(v)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(v)+"`");if(v.length===0){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var y=0;y<v.length;y++){if(p=f(v[y]),!r[c].test(p))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(y===0?l.prefix:l.delimiter)+p}continue}if(p=l.asterisk?th(v):f(v),!r[c].test(p))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+p+'"');o+=l.prefix+p}return o}}function Ar(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function rh(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Ii(e,t){return e.keys=t,e}function Li(e){return e&&e.sensitive?"":"i"}function nh(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ii(e,t)}function ih(e,t,r){for(var n=[],i=0;i<e.length;i++)n.push(iu(e[i],t,r).source);var a=new RegExp("(?:"+n.join("|")+")",Li(r));return Ii(a,t)}function ah(e,t,r){return nu(ki(e,r),t,r)}function nu(e,t,r){Kr(t)||(r=t||r,t=[]),r=r||{};for(var n=r.strict,i=r.end!==!1,a="",o=0;o<e.length;o++){var s=e[o];if(typeof s=="string")a+=Ar(s);else{var u=Ar(s.prefix),f="(?:"+s.pattern+")";t.push(s),s.repeat&&(f+="(?:"+u+f+")*"),s.optional?s.partial?f=u+"("+f+")?":f="(?:"+u+"("+f+"))?":f=u+"("+f+")",a+=f}}var c=Ar(r.delimiter||"/"),l=a.slice(-c.length)===c;return n||(a=(l?a.slice(0,-c.length):a)+"(?:"+c+"(?=$))?"),i?a+="$":a+=n&&l?"":"(?="+c+"|$)",Ii(new RegExp("^"+a,Li(r)),t)}function iu(e,t,r){return Kr(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?nh(e,t):Kr(e)?ih(e,t,r):ah(e,t,r)}xt.parse=Jv;xt.compile=Yv;xt.tokensToFunction=Zv;xt.tokensToRegExp=Xv;var eo=Object.create(null);function Pr(e,t,r){t=t||{};try{var n=eo[e]||(eo[e]=xt.compile(e));return typeof t.pathMatch=="string"&&(t[0]=t.pathMatch),n(t,{pretty:!0})}catch{return""}finally{delete t[0]}}function Ni(e,t,r,n){var i=typeof e=="string"?{path:e}:e;if(i._normalized)return i;if(i.name){i=ye({},e);var a=i.params;return a&&typeof a=="object"&&(i.params=ye({},a)),i}if(!i.path&&i.params&&t){i=ye({},i),i._normalized=!0;var o=ye(ye({},t.params),i.params);if(t.name)i.name=t.name,i.params=o;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;i.path=Pr(s,o,"path "+t.path)}return i}var u=qv(i.path||""),f=t&&t.path||"/",c=u.path?tu(u.path,f,r||i.append):f,l=Fv(u.query,i.query,n&&n.options.parseQuery),v=i.hash||u.hash;return v&&v.charAt(0)!=="#"&&(v="#"+v),{_normalized:!0,path:c,query:l,hash:v}}var oh=[String,Object],sh=[String,Array],to=function(){},uh={name:"RouterLink",props:{to:{type:oh,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:sh,default:"click"}},render:function(t){var r=this,n=this.$router,i=this.$route,a=n.resolve(this.to,i,this.append),o=a.location,s=a.route,u=a.href,f={},c=n.options.linkActiveClass,l=n.options.linkExactActiveClass,v=c??"router-link-active",p=l??"router-link-exact-active",y=this.activeClass==null?v:this.activeClass,d=this.exactActiveClass==null?p:this.exactActiveClass,m=s.redirectedFrom?Gr(null,Ni(s.redirectedFrom),null,n):s;f[d]=Vs(i,m,this.exactPath),f[y]=this.exact||this.exactPath?f[d]:zv(i,m);var h=f[d]?this.ariaCurrentValue:null,b=function(_){ro(_)&&(r.replace?n.replace(o,to):n.push(o,to))},C={click:ro};Array.isArray(this.event)?this.event.forEach(function(_){C[_]=b}):C[this.event]=b;var A={class:f},E=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:s,navigate:b,isActive:f[y],isExactActive:f[d]});if(E){if(E.length===1)return E[0];if(E.length>1||!E.length)return E.length===0?t():t("span",{},E)}if(this.tag==="a")A.on=C,A.attrs={href:u,"aria-current":h};else{var P=au(this.$slots.default);if(P){P.isStatic=!1;var T=P.data=ye({},P.data);T.on=T.on||{};for(var $ in T.on){var I=T.on[$];$ in C&&(T.on[$]=Array.isArray(I)?I:[I])}for(var z in C)z in T.on?T.on[z].push(C[z]):T.on[z]=b;var F=P.data.attrs=ye({},P.data.attrs);F.href=u,F["aria-current"]=h}else A.on=C}return t(this.tag,A,this.$slots.default)}};function ro(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function au(e){if(e){for(var t,r=0;r<e.length;r++)if(t=e[r],t.tag==="a"||t.children&&(t=au(t.children)))return t}}var qr;function Qn(e){if(!(Qn.installed&&qr===e)){Qn.installed=!0,qr=e;var t=function(i){return i!==void 0},r=function(i,a){var o=i.$options._parentVnode;t(o)&&t(o=o.data)&&t(o=o.registerRouteInstance)&&o(i,a)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Gv),e.component("RouterLink",uh);var n=e.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}}var or=typeof window<"u";function mr(e,t,r,n,i){var a=t||[],o=r||Object.create(null),s=n||Object.create(null);e.forEach(function(c){Vn(a,o,s,c,i)});for(var u=0,f=a.length;u<f;u++)a[u]==="*"&&(a.push(a.splice(u,1)[0]),f--,u--);return{pathList:a,pathMap:o,nameMap:s}}function Vn(e,t,r,n,i,a){var o=n.path,s=n.name,u=n.pathToRegexpOptions||{},f=ch(o,i,u.strict);typeof n.caseSensitive=="boolean"&&(u.sensitive=n.caseSensitive);var c={path:f,regex:fh(f,u),components:n.components||{default:n.component},alias:n.alias?typeof n.alias=="string"?[n.alias]:n.alias:[],instances:{},enteredCbs:{},name:s,parent:i,matchAs:a,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:n.props==null?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach(function(d){var m=a?Le(a+"/"+d.path):void 0;Vn(e,t,r,d,c,m)}),t[c.path]||(e.push(c.path),t[c.path]=c),n.alias!==void 0)for(var l=Array.isArray(n.alias)?n.alias:[n.alias],v=0;v<l.length;++v){var p=l[v],y={path:p,children:n.children};Vn(e,t,r,y,i,c.path||"/")}s&&(r[s]||(r[s]=c))}function fh(e,t){var r=xt(e,[],t);return r}function ch(e,t,r){return r||(e=e.replace(/\/$/,"")),e[0]==="/"||t==null?e:Le(t.path+"/"+e)}function lh(e,t){var r=mr(e),n=r.pathList,i=r.pathMap,a=r.nameMap;function o(p){mr(p,n,i,a)}function s(p,y){var d=typeof p!="object"?a[p]:void 0;mr([y||p],n,i,a,d),d&&d.alias.length&&mr(d.alias.map(function(m){return{path:m,children:[y]}}),n,i,a,d)}function u(){return n.map(function(p){return i[p]})}function f(p,y,d){var m=Ni(p,y,!1,t),h=m.name;if(h){var b=a[h];if(!b)return v(null,m);var C=b.regex.keys.filter(function($){return!$.optional}).map(function($){return $.name});if(typeof m.params!="object"&&(m.params={}),y&&typeof y.params=="object")for(var A in y.params)!(A in m.params)&&C.indexOf(A)>-1&&(m.params[A]=y.params[A]);return m.path=Pr(b.path,m.params),v(b,m,d)}else if(m.path){m.params={};for(var E=0;E<n.length;E++){var P=n[E],T=i[P];if(ph(T.regex,m.path,m.params))return v(T,m,d)}}return v(null,m)}function c(p,y){var d=p.redirect,m=typeof d=="function"?d(Gr(p,y,null,t)):d;if(typeof m=="string"&&(m={path:m}),!m||typeof m!="object")return v(null,y);var h=m,b=h.name,C=h.path,A=y.query,E=y.hash,P=y.params;if(A=h.hasOwnProperty("query")?h.query:A,E=h.hasOwnProperty("hash")?h.hash:E,P=h.hasOwnProperty("params")?h.params:P,b)return a[b],f({_normalized:!0,name:b,query:A,hash:E,params:P},void 0,y);if(C){var T=dh(C,p),$=Pr(T,P);return f({_normalized:!0,path:$,query:A,hash:E},void 0,y)}else return v(null,y)}function l(p,y,d){var m=Pr(d,y.params),h=f({_normalized:!0,path:m});if(h){var b=h.matched,C=b[b.length-1];return y.params=h.params,v(C,y)}return v(null,y)}function v(p,y,d){return p&&p.redirect?c(p,d||y):p&&p.matchAs?l(p,y,p.matchAs):Gr(p,y,d,t)}return{match:f,addRoute:s,getRoutes:u,addRoutes:o}}function ph(e,t,r){var n=t.match(e);if(n){if(!r)return!0}else return!1;for(var i=1,a=n.length;i<a;++i){var o=e.keys[i-1];o&&(r[o.name||"pathMatch"]=typeof n[i]=="string"?Zn(n[i]):n[i])}return!0}function dh(e,t){return tu(e,t.parent?t.parent.path:"/",!0)}var vh=or&&window.performance&&window.performance.now?window.performance:Date;function ou(){return vh.now().toFixed(3)}var su=ou();function sn(){return su}function uu(e){return su=e}var fu=Object.create(null);function cu(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),r=ye({},window.history.state);return r.key=sn(),window.history.replaceState(r,"",t),window.addEventListener("popstate",no),function(){window.removeEventListener("popstate",no)}}function Ne(e,t,r,n){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick(function(){var a=hh(),o=i.call(e,t,r,n?a:null);o&&(typeof o.then=="function"?o.then(function(s){oo(s,a)}).catch(function(s){}):oo(o,a))})}}function lu(){var e=sn();e&&(fu[e]={x:window.pageXOffset,y:window.pageYOffset})}function no(e){lu(),e.state&&e.state.key&&uu(e.state.key)}function hh(){var e=sn();if(e)return fu[e]}function mh(e,t){var r=document.documentElement,n=r.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-n.left-t.x,y:i.top-n.top-t.y}}function io(e){return Et(e.x)||Et(e.y)}function ao(e){return{x:Et(e.x)?e.x:window.pageXOffset,y:Et(e.y)?e.y:window.pageYOffset}}function yh(e){return{x:Et(e.x)?e.x:0,y:Et(e.y)?e.y:0}}function Et(e){return typeof e=="number"}var gh=/^#\d/;function oo(e,t){var r=typeof e=="object";if(r&&typeof e.selector=="string"){var n=gh.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(n){var i=e.offset&&typeof e.offset=="object"?e.offset:{};i=yh(i),t=mh(n,i)}else io(e)&&(t=ao(e))}else r&&io(e)&&(t=ao(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var De=or&&function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&typeof window.history.pushState=="function"}();function Jr(e,t){lu();var r=window.history;try{if(t){var n=ye({},r.state);n.key=sn(),r.replaceState(n,"",e)}else r.pushState({key:uu(ou())},"",e)}catch{window.location[t?"replace":"assign"](e)}}function ei(e){Jr(e,!0)}var lt={redirected:2,aborted:4,cancelled:8,duplicated:16};function _h(e,t){return un(e,t,lt.redirected,'Redirected when going from "'+e.fullPath+'" to "'+Oh(t)+'" via a navigation guard.')}function bh(e,t){var r=un(e,t,lt.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return r.name="NavigationDuplicated",r}function so(e,t){return un(e,t,lt.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function wh(e,t){return un(e,t,lt.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function un(e,t,r,n){var i=new Error(n);return i._isRouter=!0,i.from=e,i.to=t,i.type=r,i}var Ch=["params","query","hash"];function Oh(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return Ch.forEach(function(r){r in e&&(t[r]=e[r])}),JSON.stringify(t,null,2)}function Yr(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function fn(e,t){return Yr(e)&&e._isRouter&&(t==null||e.type===t)}function uo(e,t,r){var n=function(i){i>=e.length?r():e[i]?t(e[i],function(){n(i+1)}):n(i+1)};n(0)}function Eh(e){return function(t,r,n){var i=!1,a=0,o=null;pu(e,function(s,u,f,c){if(typeof s=="function"&&s.cid===void 0){i=!0,a++;var l=fo(function(d){Ah(d)&&(d=d.default),s.resolved=typeof d=="function"?d:qr.extend(d),f.components[c]=d,a--,a<=0&&n()}),v=fo(function(d){var m="Failed to resolve async component "+c+": "+d;o||(o=Yr(d)?d:new Error(m),n(o))}),p;try{p=s(l,v)}catch(d){v(d)}if(p)if(typeof p.then=="function")p.then(l,v);else{var y=p.component;y&&typeof y.then=="function"&&y.then(l,v)}}}),i||n()}}function pu(e,t){return du(e.map(function(r){return Object.keys(r.components).map(function(n){return t(r.components[n],r.instances[n],r,n)})}))}function du(e){return Array.prototype.concat.apply([],e)}var Sh=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ah(e){return e.__esModule||Sh&&e[Symbol.toStringTag]==="Module"}function fo(e){var t=!1;return function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!t)return t=!0,e.apply(this,r)}}var we=function(t,r){this.router=t,this.base=Ph(r),this.current=Je,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};we.prototype.listen=function(t){this.cb=t};we.prototype.onReady=function(t,r){this.ready?t():(this.readyCbs.push(t),r&&this.readyErrorCbs.push(r))};we.prototype.onError=function(t){this.errorCbs.push(t)};we.prototype.transitionTo=function(t,r,n){var i=this,a;try{a=this.router.match(t,this.current)}catch(s){throw this.errorCbs.forEach(function(u){u(s)}),s}var o=this.current;this.confirmTransition(a,function(){i.updateRoute(a),r&&r(a),i.ensureURL(),i.router.afterHooks.forEach(function(s){s&&s(a,o)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(s){s(a)}))},function(s){n&&n(s),s&&!i.ready&&(!fn(s,lt.redirected)||o!==Je)&&(i.ready=!0,i.readyErrorCbs.forEach(function(u){u(s)}))})};we.prototype.confirmTransition=function(t,r,n){var i=this,a=this.current;this.pending=t;var o=function(d){!fn(d)&&Yr(d)&&(i.errorCbs.length?i.errorCbs.forEach(function(m){m(d)}):console.error(d)),n&&n(d)},s=t.matched.length-1,u=a.matched.length-1;if(Vs(t,a)&&s===u&&t.matched[s]===a.matched[u])return this.ensureURL(),t.hash&&Ne(this.router,a,t,!1),o(bh(a,t));var f=Th(this.current.matched,t.matched),c=f.updated,l=f.deactivated,v=f.activated,p=[].concat(xh(l),this.router.beforeHooks,Rh(c),v.map(function(d){return d.beforeEnter}),Eh(v)),y=function(d,m){if(i.pending!==t)return o(so(a,t));try{d(t,a,function(h){h===!1?(i.ensureURL(!0),o(wh(a,t))):Yr(h)?(i.ensureURL(!0),o(h)):typeof h=="string"||typeof h=="object"&&(typeof h.path=="string"||typeof h.name=="string")?(o(_h(a,t)),typeof h=="object"&&h.replace?i.replace(h):i.push(h)):m(h)})}catch(h){o(h)}};uo(p,y,function(){var d=Mh(v),m=d.concat(i.router.resolveHooks);uo(m,y,function(){if(i.pending!==t)return o(so(a,t));i.pending=null,r(t),i.router.app&&i.router.app.$nextTick(function(){eu(t)})})})};we.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};we.prototype.setupListeners=function(){};we.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=Je,this.pending=null};function Ph(e){if(!e)if(or){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function Th(e,t){var r,n=Math.max(e.length,t.length);for(r=0;r<n&&e[r]===t[r];r++);return{updated:t.slice(0,r),activated:t.slice(r),deactivated:e.slice(r)}}function Di(e,t,r,n){var i=pu(e,function(a,o,s,u){var f=$h(a,t);if(f)return Array.isArray(f)?f.map(function(c){return r(c,o,s,u)}):r(f,o,s,u)});return du(n?i.reverse():i)}function $h(e,t){return typeof e!="function"&&(e=qr.extend(e)),e.options[t]}function xh(e){return Di(e,"beforeRouteLeave",vu,!0)}function Rh(e){return Di(e,"beforeRouteUpdate",vu)}function vu(e,t){if(t)return function(){return e.apply(t,arguments)}}function Mh(e){return Di(e,"beforeRouteEnter",function(t,r,n,i){return jh(t,n,i)})}function jh(e,t,r){return function(i,a,o){return e(i,a,function(s){typeof s=="function"&&(t.enteredCbs[r]||(t.enteredCbs[r]=[]),t.enteredCbs[r].push(s)),o(s)})}}var hu=function(e){function t(r,n){e.call(this,r,n),this._startLocation=Nt(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,a=i.options.scrollBehavior,o=De&&a;o&&this.listeners.push(cu());var s=function(){var u=n.current,f=Nt(n.base);n.current===Je&&f===n._startLocation||n.transitionTo(f,function(c){o&&Ne(i,c,u,!0)})};window.addEventListener("popstate",s),this.listeners.push(function(){window.removeEventListener("popstate",s)})}},t.prototype.go=function(n){window.history.go(n)},t.prototype.push=function(n,i,a){var o=this,s=this,u=s.current;this.transitionTo(n,function(f){Jr(Le(o.base+f.fullPath)),Ne(o.router,f,u,!1),i&&i(f)},a)},t.prototype.replace=function(n,i,a){var o=this,s=this,u=s.current;this.transitionTo(n,function(f){ei(Le(o.base+f.fullPath)),Ne(o.router,f,u,!1),i&&i(f)},a)},t.prototype.ensureURL=function(n){if(Nt(this.base)!==this.current.fullPath){var i=Le(this.base+this.current.fullPath);n?Jr(i):ei(i)}},t.prototype.getCurrentLocation=function(){return Nt(this.base)},t}(we);function Nt(e){var t=window.location.pathname,r=t.toLowerCase(),n=e.toLowerCase();return e&&(r===n||r.indexOf(Le(n+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var mu=function(e){function t(r,n,i){e.call(this,r,n),!(i&&kh(this.base))&&co()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,a=i.options.scrollBehavior,o=De&&a;o&&this.listeners.push(cu());var s=function(){var f=n.current;co()&&n.transitionTo(Tr(),function(c){o&&Ne(n.router,c,f,!0),De||$r(c.fullPath)})},u=De?"popstate":"hashchange";window.addEventListener(u,s),this.listeners.push(function(){window.removeEventListener(u,s)})}},t.prototype.push=function(n,i,a){var o=this,s=this,u=s.current;this.transitionTo(n,function(f){lo(f.fullPath),Ne(o.router,f,u,!1),i&&i(f)},a)},t.prototype.replace=function(n,i,a){var o=this,s=this,u=s.current;this.transitionTo(n,function(f){$r(f.fullPath),Ne(o.router,f,u,!1),i&&i(f)},a)},t.prototype.go=function(n){window.history.go(n)},t.prototype.ensureURL=function(n){var i=this.current.fullPath;Tr()!==i&&(n?lo(i):$r(i))},t.prototype.getCurrentLocation=function(){return Tr()},t}(we);function kh(e){var t=Nt(e);if(!/^\/#/.test(t))return window.location.replace(Le(e+"/#"+t)),!0}function co(){var e=Tr();return e.charAt(0)==="/"?!0:($r("/"+e),!1)}function Tr(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function ti(e){var t=window.location.href,r=t.indexOf("#"),n=r>=0?t.slice(0,r):t;return n+"#"+e}function lo(e){De?Jr(ti(e)):window.location.hash=e}function $r(e){De?ei(ti(e)):window.location.replace(ti(e))}var Ih=function(e){function t(r,n){e.call(this,r,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(n,i,a){var o=this;this.transitionTo(n,function(s){o.stack=o.stack.slice(0,o.index+1).concat(s),o.index++,i&&i(s)},a)},t.prototype.replace=function(n,i,a){var o=this;this.transitionTo(n,function(s){o.stack=o.stack.slice(0,o.index).concat(s),i&&i(s)},a)},t.prototype.go=function(n){var i=this,a=this.index+n;if(!(a<0||a>=this.stack.length)){var o=this.stack[a];this.confirmTransition(o,function(){var s=i.current;i.index=a,i.updateRoute(o),i.router.afterHooks.forEach(function(u){u&&u(o,s)})},function(s){fn(s,lt.duplicated)&&(i.index=a)})}},t.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},t.prototype.ensureURL=function(){},t}(we),K=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=lh(t.routes||[],this);var r=t.mode||"hash";switch(this.fallback=r==="history"&&!De&&t.fallback!==!1,this.fallback&&(r="hash"),or||(r="abstract"),this.mode=r,r){case"history":this.history=new hu(this,t.base);break;case"hash":this.history=new mu(this,t.base,this.fallback);break;case"abstract":this.history=new Ih(this,t.base);break}},yu={currentRoute:{configurable:!0}};K.prototype.match=function(t,r,n){return this.matcher.match(t,r,n)};yu.currentRoute.get=function(){return this.history&&this.history.current};K.prototype.init=function(t){var r=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var o=r.apps.indexOf(t);o>-1&&r.apps.splice(o,1),r.app===t&&(r.app=r.apps[0]||null),r.app||r.history.teardown()}),!this.app){this.app=t;var n=this.history;if(n instanceof hu||n instanceof mu){var i=function(o){var s=n.current,u=r.options.scrollBehavior,f=De&&u;f&&"fullPath"in o&&Ne(r,o,s,!1)},a=function(o){n.setupListeners(),i(o)};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen(function(o){r.apps.forEach(function(s){s._route=o})})}};K.prototype.beforeEach=function(t){return Fi(this.beforeHooks,t)};K.prototype.beforeResolve=function(t){return Fi(this.resolveHooks,t)};K.prototype.afterEach=function(t){return Fi(this.afterHooks,t)};K.prototype.onReady=function(t,r){this.history.onReady(t,r)};K.prototype.onError=function(t){this.history.onError(t)};K.prototype.push=function(t,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(a,o){i.history.push(t,a,o)});this.history.push(t,r,n)};K.prototype.replace=function(t,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(a,o){i.history.replace(t,a,o)});this.history.replace(t,r,n)};K.prototype.go=function(t){this.history.go(t)};K.prototype.back=function(){this.go(-1)};K.prototype.forward=function(){this.go(1)};K.prototype.getMatchedComponents=function(t){var r=t?t.matched?t:this.resolve(t).route:this.currentRoute;return r?[].concat.apply([],r.matched.map(function(n){return Object.keys(n.components).map(function(i){return n.components[i]})})):[]};K.prototype.resolve=function(t,r,n){r=r||this.history.current;var i=Ni(t,r,n,this),a=this.match(i,r),o=a.redirectedFrom||a.fullPath,s=this.history.base,u=Lh(s,o,this.mode);return{location:i,route:a,href:u,normalizedTo:i,resolved:a}};K.prototype.getRoutes=function(){return this.matcher.getRoutes()};K.prototype.addRoute=function(t,r){this.matcher.addRoute(t,r),this.history.current!==Je&&this.history.transitionTo(this.history.getCurrentLocation())};K.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Je&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(K.prototype,yu);var gu=K;function Fi(e,t){return e.push(t),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function Lh(e,t,r){var n=r==="hash"?"#"+t:t;return e?Le(e+"/"+n):n}K.install=Qn;K.version="3.6.5";K.isNavigationFailure=fn;K.NavigationFailureType=lt;K.START_LOCATION=Je;or&&window.Vue&&window.Vue.use(K);let Nh={api:"requestNotification",data:{title:"Worker Notification",message:"A worker sent this"}};const Dh={name:"WorkerControls",props:["workerPool"],data(){return{topic:"exerciseApi",message:JSON.stringify(Nh,null,2),activeWorker:Object.keys(this.workerPool.workerConfig.clients)[0]}},methods:{sendMessage:function(){this.workerPool.publish(this.activeWorker,{topic:this.topic,payload:JSON.parse(this.message)})}}};var Fh=function(){var t=this,r=t._self._c;return r("div",{attrs:{id:"worker-control-panel"}},[r("div",{attrs:{id:"worker-selection"}},[r("label",{attrs:{for:"worker-select"}},[t._v("Targeted Worker:")]),r("select",{directives:[{name:"model",rawName:"v-model",value:t.activeWorker,expression:"activeWorker"}],attrs:{id:"worker-select"},on:{change:function(n){var i=Array.prototype.filter.call(n.target.options,function(a){return a.selected}).map(function(a){var o="_value"in a?a._value:a.value;return o});t.activeWorker=n.target.multiple?i:i[0]}}},t._l(t.workerPool.workerConfig.clients,function(n,i){return r("option",[t._v(" "+t._s(i)+" ")])}),0)]),r("div",{attrs:{id:"worker-communication"}},[r("div",[r("label",{attrs:{for:"message-topic"}},[t._v("Topic:")]),r("input",{directives:[{name:"model",rawName:"v-model",value:t.topic,expression:"topic"}],attrs:{type:"text",id:"message-topic"},domProps:{value:t.topic},on:{input:function(n){n.target.composing||(t.topic=n.target.value)}}})]),r("div",[r("label",{attrs:{for:"worker-message"}},[t._v("Message")]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],attrs:{id:"worker-message"},domProps:{value:t.message},on:{input:function(n){n.target.composing||(t.message=n.target.value)}}}),r("div",[r("button",{on:{click:function(n){return t.sendMessage()}}},[t._v("Send to "+t._s(t.activeWorker))]),r("div")])])])])},Uh=[],Hh=ji(Dh,Fh,Uh);const Wh=Hh.exports,zh={name:"iframeEmbed",props:["frameRoute"],components:{WorkerControls:Wh},data(){return{workerPool:{},frameUrl:"",showMenu:!0,clientConfig:{},workerConfig:{},metadata:{},currentClientId:"",showWorkerControls:!1}},methods:{toggleWorkerControls(){this.showWorkerControls=!this.showWorkerControls},displayToast(e){var n;const t=JSON.stringify(e.detail.custom,null,2),r=`<div class="message">${e.detail.message}</div>
|
|
46
|
+
*/function ye(e,t){for(var r in t)e[r]=t[r];return e}var Lv=/[!'()*]/g,Nv=function(e){return"%"+e.charCodeAt(0).toString(16)},Dv=/%2C/g,vt=function(e){return encodeURIComponent(e).replace(Lv,Nv).replace(Dv,",")};function Zn(e){try{return decodeURIComponent(e)}catch{}return e}function Fv(e,t,r){t===void 0&&(t={});var n=r||Uv,i;try{i=n(e||"")}catch{i={}}for(var a in t){var o=t[a];i[a]=Array.isArray(o)?o.map(Xa):Xa(o)}return i}var Xa=function(e){return e==null||typeof e=="object"?e:String(e)};function Uv(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(r){var n=r.replace(/\+/g," ").split("="),i=Zn(n.shift()),a=n.length>0?Zn(n.join("=")):null;t[i]===void 0?t[i]=a:Array.isArray(t[i])?t[i].push(a):t[i]=[t[i],a]}),t}function Hv(e){var t=e?Object.keys(e).map(function(r){var n=e[r];if(n===void 0)return"";if(n===null)return vt(r);if(Array.isArray(n)){var i=[];return n.forEach(function(a){a!==void 0&&(a===null?i.push(vt(r)):i.push(vt(r)+"="+vt(a)))}),i.join("&")}return vt(r)+"="+vt(n)}).filter(function(r){return r.length>0}).join("&"):null;return t?"?"+t:""}var Br=/\/?$/;function Gr(e,t,r,n){var i=n&&n.options.stringifyQuery,a=t.query||{};try{a=Xn(a)}catch{}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:Qa(t,i),matched:e?Wv(e):[]};return r&&(o.redirectedFrom=Qa(r,i)),Object.freeze(o)}function Xn(e){if(Array.isArray(e))return e.map(Xn);if(e&&typeof e=="object"){var t={};for(var r in e)t[r]=Xn(e[r]);return t}else return e}var Je=Gr(null,{path:"/"});function Wv(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Qa(e,t){var r=e.path,n=e.query;n===void 0&&(n={});var i=e.hash;i===void 0&&(i="");var a=t||Hv;return(r||"/")+a(n)+i}function Vs(e,t,r){return t===Je?e===t:t?e.path&&t.path?e.path.replace(Br,"")===t.path.replace(Br,"")&&(r||e.hash===t.hash&&Sr(e.query,t.query)):e.name&&t.name?e.name===t.name&&(r||e.hash===t.hash&&Sr(e.query,t.query)&&Sr(e.params,t.params)):!1:!1}function Sr(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var r=Object.keys(e).sort(),n=Object.keys(t).sort();return r.length!==n.length?!1:r.every(function(i,a){var o=e[i],s=n[a];if(s!==i)return!1;var u=t[i];return o==null||u==null?o===u:typeof o=="object"&&typeof u=="object"?Sr(o,u):String(o)===String(u)})}function zv(e,t){return e.path.replace(Br,"/").indexOf(t.path.replace(Br,"/"))===0&&(!t.hash||e.hash===t.hash)&&Bv(e.query,t.query)}function Bv(e,t){for(var r in t)if(!(r in e))return!1;return!0}function eu(e){for(var t=0;t<e.matched.length;t++){var r=e.matched[t];for(var n in r.instances){var i=r.instances[n],a=r.enteredCbs[n];if(!(!i||!a)){delete r.enteredCbs[n];for(var o=0;o<a.length;o++)i._isBeingDestroyed||a[o](i)}}}}var Gv={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,r){var n=r.props,i=r.children,a=r.parent,o=r.data;o.routerView=!0;for(var s=a.$createElement,u=n.name,f=a.$route,c=a._routerViewCache||(a._routerViewCache={}),l=0,v=!1;a&&a._routerRoot!==a;){var p=a.$vnode?a.$vnode.data:{};p.routerView&&l++,p.keepAlive&&a._directInactive&&a._inactive&&(v=!0),a=a.$parent}if(o.routerViewDepth=l,v){var y=c[u],d=y&&y.component;return d?(y.configProps&&Va(d,o,y.route,y.configProps),s(d,o,i)):s()}var m=f.matched[l],h=m&&m.components[u];if(!m||!h)return c[u]=null,s();c[u]={component:h},o.registerRouteInstance=function(C,A){var E=m.instances[u];(A&&E!==C||!A&&E===C)&&(m.instances[u]=A)},(o.hook||(o.hook={})).prepatch=function(C,A){m.instances[u]=A.componentInstance},o.hook.init=function(C){C.data.keepAlive&&C.componentInstance&&C.componentInstance!==m.instances[u]&&(m.instances[u]=C.componentInstance),eu(f)};var b=m.props&&m.props[u];return b&&(ye(c[u],{route:f,configProps:b}),Va(h,o,f,b)),s(h,o,i)}};function Va(e,t,r,n){var i=t.props=Kv(r,n);if(i){i=t.props=ye({},i);var a=t.attrs=t.attrs||{};for(var o in i)(!e.props||!(o in e.props))&&(a[o]=i[o],delete i[o])}}function Kv(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}function tu(e,t,r){var n=e.charAt(0);if(n==="/")return e;if(n==="?"||n==="#")return t+e;var i=t.split("/");(!r||!i[i.length-1])&&i.pop();for(var a=e.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];s===".."?i.pop():s!=="."&&i.push(s)}return i[0]!==""&&i.unshift(""),i.join("/")}function qv(e){var t="",r="",n=e.indexOf("#");n>=0&&(t=e.slice(n),e=e.slice(0,n));var i=e.indexOf("?");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{path:e,query:r,hash:t}}function Le(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var Kr=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},xt=iu,Jv=ki,Yv=Vv,Zv=ru,Xv=nu,Qv=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function ki(e,t){for(var r=[],n=0,i=0,a="",o=t&&t.delimiter||"/",s;(s=Qv.exec(e))!=null;){var u=s[0],f=s[1],c=s.index;if(a+=e.slice(i,c),i=c+u.length,f){a+=f[1];continue}var l=e[i],v=s[2],p=s[3],y=s[4],d=s[5],m=s[6],h=s[7];a&&(r.push(a),a="");var b=v!=null&&l!=null&&l!==v,C=m==="+"||m==="*",A=m==="?"||m==="*",E=s[2]||o,P=y||d;r.push({name:p||n++,prefix:v||"",delimiter:E,optional:A,repeat:C,partial:b,asterisk:!!h,pattern:P?rh(P):h?".*":"[^"+Ar(E)+"]+?"})}return i<e.length&&(a+=e.substr(i)),a&&r.push(a),r}function Vv(e,t){return ru(ki(e,t),t)}function eh(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function th(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function ru(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)typeof e[n]=="object"&&(r[n]=new RegExp("^(?:"+e[n].pattern+")$",Li(t)));return function(i,a){for(var o="",s=i||{},u=a||{},f=u.pretty?eh:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if(typeof l=="string"){o+=l;continue}var v=s[l.name],p;if(v==null)if(l.optional){l.partial&&(o+=l.prefix);continue}else throw new TypeError('Expected "'+l.name+'" to be defined');if(Kr(v)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(v)+"`");if(v.length===0){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var y=0;y<v.length;y++){if(p=f(v[y]),!r[c].test(p))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(y===0?l.prefix:l.delimiter)+p}continue}if(p=l.asterisk?th(v):f(v),!r[c].test(p))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+p+'"');o+=l.prefix+p}return o}}function Ar(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function rh(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Ii(e,t){return e.keys=t,e}function Li(e){return e&&e.sensitive?"":"i"}function nh(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ii(e,t)}function ih(e,t,r){for(var n=[],i=0;i<e.length;i++)n.push(iu(e[i],t,r).source);var a=new RegExp("(?:"+n.join("|")+")",Li(r));return Ii(a,t)}function ah(e,t,r){return nu(ki(e,r),t,r)}function nu(e,t,r){Kr(t)||(r=t||r,t=[]),r=r||{};for(var n=r.strict,i=r.end!==!1,a="",o=0;o<e.length;o++){var s=e[o];if(typeof s=="string")a+=Ar(s);else{var u=Ar(s.prefix),f="(?:"+s.pattern+")";t.push(s),s.repeat&&(f+="(?:"+u+f+")*"),s.optional?s.partial?f=u+"("+f+")?":f="(?:"+u+"("+f+"))?":f=u+"("+f+")",a+=f}}var c=Ar(r.delimiter||"/"),l=a.slice(-c.length)===c;return n||(a=(l?a.slice(0,-c.length):a)+"(?:"+c+"(?=$))?"),i?a+="$":a+=n&&l?"":"(?="+c+"|$)",Ii(new RegExp("^"+a,Li(r)),t)}function iu(e,t,r){return Kr(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?nh(e,t):Kr(e)?ih(e,t,r):ah(e,t,r)}xt.parse=Jv;xt.compile=Yv;xt.tokensToFunction=Zv;xt.tokensToRegExp=Xv;var eo=Object.create(null);function Pr(e,t,r){t=t||{};try{var n=eo[e]||(eo[e]=xt.compile(e));return typeof t.pathMatch=="string"&&(t[0]=t.pathMatch),n(t,{pretty:!0})}catch{return""}finally{delete t[0]}}function Ni(e,t,r,n){var i=typeof e=="string"?{path:e}:e;if(i._normalized)return i;if(i.name){i=ye({},e);var a=i.params;return a&&typeof a=="object"&&(i.params=ye({},a)),i}if(!i.path&&i.params&&t){i=ye({},i),i._normalized=!0;var o=ye(ye({},t.params),i.params);if(t.name)i.name=t.name,i.params=o;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;i.path=Pr(s,o,"path "+t.path)}return i}var u=qv(i.path||""),f=t&&t.path||"/",c=u.path?tu(u.path,f,r||i.append):f,l=Fv(u.query,i.query,n&&n.options.parseQuery),v=i.hash||u.hash;return v&&v.charAt(0)!=="#"&&(v="#"+v),{_normalized:!0,path:c,query:l,hash:v}}var oh=[String,Object],sh=[String,Array],to=function(){},uh={name:"RouterLink",props:{to:{type:oh,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:sh,default:"click"}},render:function(t){var r=this,n=this.$router,i=this.$route,a=n.resolve(this.to,i,this.append),o=a.location,s=a.route,u=a.href,f={},c=n.options.linkActiveClass,l=n.options.linkExactActiveClass,v=c??"router-link-active",p=l??"router-link-exact-active",y=this.activeClass==null?v:this.activeClass,d=this.exactActiveClass==null?p:this.exactActiveClass,m=s.redirectedFrom?Gr(null,Ni(s.redirectedFrom),null,n):s;f[d]=Vs(i,m,this.exactPath),f[y]=this.exact||this.exactPath?f[d]:zv(i,m);var h=f[d]?this.ariaCurrentValue:null,b=function(_){ro(_)&&(r.replace?n.replace(o,to):n.push(o,to))},C={click:ro};Array.isArray(this.event)?this.event.forEach(function(_){C[_]=b}):C[this.event]=b;var A={class:f},E=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:s,navigate:b,isActive:f[y],isExactActive:f[d]});if(E){if(E.length===1)return E[0];if(E.length>1||!E.length)return E.length===0?t():t("span",{},E)}if(this.tag==="a")A.on=C,A.attrs={href:u,"aria-current":h};else{var P=au(this.$slots.default);if(P){P.isStatic=!1;var T=P.data=ye({},P.data);T.on=T.on||{};for(var $ in T.on){var I=T.on[$];$ in C&&(T.on[$]=Array.isArray(I)?I:[I])}for(var z in C)z in T.on?T.on[z].push(C[z]):T.on[z]=b;var F=P.data.attrs=ye({},P.data.attrs);F.href=u,F["aria-current"]=h}else A.on=C}return t(this.tag,A,this.$slots.default)}};function ro(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function au(e){if(e){for(var t,r=0;r<e.length;r++)if(t=e[r],t.tag==="a"||t.children&&(t=au(t.children)))return t}}var qr;function Qn(e){if(!(Qn.installed&&qr===e)){Qn.installed=!0,qr=e;var t=function(i){return i!==void 0},r=function(i,a){var o=i.$options._parentVnode;t(o)&&t(o=o.data)&&t(o=o.registerRouteInstance)&&o(i,a)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Gv),e.component("RouterLink",uh);var n=e.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}}var or=typeof window<"u";function mr(e,t,r,n,i){var a=t||[],o=r||Object.create(null),s=n||Object.create(null);e.forEach(function(c){Vn(a,o,s,c,i)});for(var u=0,f=a.length;u<f;u++)a[u]==="*"&&(a.push(a.splice(u,1)[0]),f--,u--);return{pathList:a,pathMap:o,nameMap:s}}function Vn(e,t,r,n,i,a){var o=n.path,s=n.name,u=n.pathToRegexpOptions||{},f=ch(o,i,u.strict);typeof n.caseSensitive=="boolean"&&(u.sensitive=n.caseSensitive);var c={path:f,regex:fh(f,u),components:n.components||{default:n.component},alias:n.alias?typeof n.alias=="string"?[n.alias]:n.alias:[],instances:{},enteredCbs:{},name:s,parent:i,matchAs:a,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:n.props==null?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach(function(d){var m=a?Le(a+"/"+d.path):void 0;Vn(e,t,r,d,c,m)}),t[c.path]||(e.push(c.path),t[c.path]=c),n.alias!==void 0)for(var l=Array.isArray(n.alias)?n.alias:[n.alias],v=0;v<l.length;++v){var p=l[v],y={path:p,children:n.children};Vn(e,t,r,y,i,c.path||"/")}s&&(r[s]||(r[s]=c))}function fh(e,t){var r=xt(e,[],t);return r}function ch(e,t,r){return r||(e=e.replace(/\/$/,"")),e[0]==="/"||t==null?e:Le(t.path+"/"+e)}function lh(e,t){var r=mr(e),n=r.pathList,i=r.pathMap,a=r.nameMap;function o(p){mr(p,n,i,a)}function s(p,y){var d=typeof p!="object"?a[p]:void 0;mr([y||p],n,i,a,d),d&&d.alias.length&&mr(d.alias.map(function(m){return{path:m,children:[y]}}),n,i,a,d)}function u(){return n.map(function(p){return i[p]})}function f(p,y,d){var m=Ni(p,y,!1,t),h=m.name;if(h){var b=a[h];if(!b)return v(null,m);var C=b.regex.keys.filter(function($){return!$.optional}).map(function($){return $.name});if(typeof m.params!="object"&&(m.params={}),y&&typeof y.params=="object")for(var A in y.params)!(A in m.params)&&C.indexOf(A)>-1&&(m.params[A]=y.params[A]);return m.path=Pr(b.path,m.params),v(b,m,d)}else if(m.path){m.params={};for(var E=0;E<n.length;E++){var P=n[E],T=i[P];if(ph(T.regex,m.path,m.params))return v(T,m,d)}}return v(null,m)}function c(p,y){var d=p.redirect,m=typeof d=="function"?d(Gr(p,y,null,t)):d;if(typeof m=="string"&&(m={path:m}),!m||typeof m!="object")return v(null,y);var h=m,b=h.name,C=h.path,A=y.query,E=y.hash,P=y.params;if(A=h.hasOwnProperty("query")?h.query:A,E=h.hasOwnProperty("hash")?h.hash:E,P=h.hasOwnProperty("params")?h.params:P,b)return a[b],f({_normalized:!0,name:b,query:A,hash:E,params:P},void 0,y);if(C){var T=dh(C,p),$=Pr(T,P);return f({_normalized:!0,path:$,query:A,hash:E},void 0,y)}else return v(null,y)}function l(p,y,d){var m=Pr(d,y.params),h=f({_normalized:!0,path:m});if(h){var b=h.matched,C=b[b.length-1];return y.params=h.params,v(C,y)}return v(null,y)}function v(p,y,d){return p&&p.redirect?c(p,d||y):p&&p.matchAs?l(p,y,p.matchAs):Gr(p,y,d,t)}return{match:f,addRoute:s,getRoutes:u,addRoutes:o}}function ph(e,t,r){var n=t.match(e);if(n){if(!r)return!0}else return!1;for(var i=1,a=n.length;i<a;++i){var o=e.keys[i-1];o&&(r[o.name||"pathMatch"]=typeof n[i]=="string"?Zn(n[i]):n[i])}return!0}function dh(e,t){return tu(e,t.parent?t.parent.path:"/",!0)}var vh=or&&window.performance&&window.performance.now?window.performance:Date;function ou(){return vh.now().toFixed(3)}var su=ou();function sn(){return su}function uu(e){return su=e}var fu=Object.create(null);function cu(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),r=ye({},window.history.state);return r.key=sn(),window.history.replaceState(r,"",t),window.addEventListener("popstate",no),function(){window.removeEventListener("popstate",no)}}function Ne(e,t,r,n){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick(function(){var a=hh(),o=i.call(e,t,r,n?a:null);o&&(typeof o.then=="function"?o.then(function(s){oo(s,a)}).catch(function(s){}):oo(o,a))})}}function lu(){var e=sn();e&&(fu[e]={x:window.pageXOffset,y:window.pageYOffset})}function no(e){lu(),e.state&&e.state.key&&uu(e.state.key)}function hh(){var e=sn();if(e)return fu[e]}function mh(e,t){var r=document.documentElement,n=r.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-n.left-t.x,y:i.top-n.top-t.y}}function io(e){return Et(e.x)||Et(e.y)}function ao(e){return{x:Et(e.x)?e.x:window.pageXOffset,y:Et(e.y)?e.y:window.pageYOffset}}function yh(e){return{x:Et(e.x)?e.x:0,y:Et(e.y)?e.y:0}}function Et(e){return typeof e=="number"}var gh=/^#\d/;function oo(e,t){var r=typeof e=="object";if(r&&typeof e.selector=="string"){var n=gh.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(n){var i=e.offset&&typeof e.offset=="object"?e.offset:{};i=yh(i),t=mh(n,i)}else io(e)&&(t=ao(e))}else r&&io(e)&&(t=ao(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var De=or&&function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&typeof window.history.pushState=="function"}();function Jr(e,t){lu();var r=window.history;try{if(t){var n=ye({},r.state);n.key=sn(),r.replaceState(n,"",e)}else r.pushState({key:uu(ou())},"",e)}catch{window.location[t?"replace":"assign"](e)}}function ei(e){Jr(e,!0)}var lt={redirected:2,aborted:4,cancelled:8,duplicated:16};function _h(e,t){return un(e,t,lt.redirected,'Redirected when going from "'+e.fullPath+'" to "'+Oh(t)+'" via a navigation guard.')}function bh(e,t){var r=un(e,t,lt.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return r.name="NavigationDuplicated",r}function so(e,t){return un(e,t,lt.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function wh(e,t){return un(e,t,lt.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function un(e,t,r,n){var i=new Error(n);return i._isRouter=!0,i.from=e,i.to=t,i.type=r,i}var Ch=["params","query","hash"];function Oh(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return Ch.forEach(function(r){r in e&&(t[r]=e[r])}),JSON.stringify(t,null,2)}function Yr(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function fn(e,t){return Yr(e)&&e._isRouter&&(t==null||e.type===t)}function uo(e,t,r){var n=function(i){i>=e.length?r():e[i]?t(e[i],function(){n(i+1)}):n(i+1)};n(0)}function Eh(e){return function(t,r,n){var i=!1,a=0,o=null;pu(e,function(s,u,f,c){if(typeof s=="function"&&s.cid===void 0){i=!0,a++;var l=fo(function(d){Ah(d)&&(d=d.default),s.resolved=typeof d=="function"?d:qr.extend(d),f.components[c]=d,a--,a<=0&&n()}),v=fo(function(d){var m="Failed to resolve async component "+c+": "+d;o||(o=Yr(d)?d:new Error(m),n(o))}),p;try{p=s(l,v)}catch(d){v(d)}if(p)if(typeof p.then=="function")p.then(l,v);else{var y=p.component;y&&typeof y.then=="function"&&y.then(l,v)}}}),i||n()}}function pu(e,t){return du(e.map(function(r){return Object.keys(r.components).map(function(n){return t(r.components[n],r.instances[n],r,n)})}))}function du(e){return Array.prototype.concat.apply([],e)}var Sh=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ah(e){return e.__esModule||Sh&&e[Symbol.toStringTag]==="Module"}function fo(e){var t=!1;return function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!t)return t=!0,e.apply(this,r)}}var we=function(t,r){this.router=t,this.base=Ph(r),this.current=Je,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};we.prototype.listen=function(t){this.cb=t};we.prototype.onReady=function(t,r){this.ready?t():(this.readyCbs.push(t),r&&this.readyErrorCbs.push(r))};we.prototype.onError=function(t){this.errorCbs.push(t)};we.prototype.transitionTo=function(t,r,n){var i=this,a;try{a=this.router.match(t,this.current)}catch(s){throw this.errorCbs.forEach(function(u){u(s)}),s}var o=this.current;this.confirmTransition(a,function(){i.updateRoute(a),r&&r(a),i.ensureURL(),i.router.afterHooks.forEach(function(s){s&&s(a,o)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(s){s(a)}))},function(s){n&&n(s),s&&!i.ready&&(!fn(s,lt.redirected)||o!==Je)&&(i.ready=!0,i.readyErrorCbs.forEach(function(u){u(s)}))})};we.prototype.confirmTransition=function(t,r,n){var i=this,a=this.current;this.pending=t;var o=function(d){!fn(d)&&Yr(d)&&(i.errorCbs.length?i.errorCbs.forEach(function(m){m(d)}):console.error(d)),n&&n(d)},s=t.matched.length-1,u=a.matched.length-1;if(Vs(t,a)&&s===u&&t.matched[s]===a.matched[u])return this.ensureURL(),t.hash&&Ne(this.router,a,t,!1),o(bh(a,t));var f=Th(this.current.matched,t.matched),c=f.updated,l=f.deactivated,v=f.activated,p=[].concat(xh(l),this.router.beforeHooks,Rh(c),v.map(function(d){return d.beforeEnter}),Eh(v)),y=function(d,m){if(i.pending!==t)return o(so(a,t));try{d(t,a,function(h){h===!1?(i.ensureURL(!0),o(wh(a,t))):Yr(h)?(i.ensureURL(!0),o(h)):typeof h=="string"||typeof h=="object"&&(typeof h.path=="string"||typeof h.name=="string")?(o(_h(a,t)),typeof h=="object"&&h.replace?i.replace(h):i.push(h)):m(h)})}catch(h){o(h)}};uo(p,y,function(){var d=Mh(v),m=d.concat(i.router.resolveHooks);uo(m,y,function(){if(i.pending!==t)return o(so(a,t));i.pending=null,r(t),i.router.app&&i.router.app.$nextTick(function(){eu(t)})})})};we.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};we.prototype.setupListeners=function(){};we.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=Je,this.pending=null};function Ph(e){if(!e)if(or){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function Th(e,t){var r,n=Math.max(e.length,t.length);for(r=0;r<n&&e[r]===t[r];r++);return{updated:t.slice(0,r),activated:t.slice(r),deactivated:e.slice(r)}}function Di(e,t,r,n){var i=pu(e,function(a,o,s,u){var f=$h(a,t);if(f)return Array.isArray(f)?f.map(function(c){return r(c,o,s,u)}):r(f,o,s,u)});return du(n?i.reverse():i)}function $h(e,t){return typeof e!="function"&&(e=qr.extend(e)),e.options[t]}function xh(e){return Di(e,"beforeRouteLeave",vu,!0)}function Rh(e){return Di(e,"beforeRouteUpdate",vu)}function vu(e,t){if(t)return function(){return e.apply(t,arguments)}}function Mh(e){return Di(e,"beforeRouteEnter",function(t,r,n,i){return jh(t,n,i)})}function jh(e,t,r){return function(i,a,o){return e(i,a,function(s){typeof s=="function"&&(t.enteredCbs[r]||(t.enteredCbs[r]=[]),t.enteredCbs[r].push(s)),o(s)})}}var hu=function(e){function t(r,n){e.call(this,r,n),this._startLocation=Nt(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,a=i.options.scrollBehavior,o=De&&a;o&&this.listeners.push(cu());var s=function(){var u=n.current,f=Nt(n.base);n.current===Je&&f===n._startLocation||n.transitionTo(f,function(c){o&&Ne(i,c,u,!0)})};window.addEventListener("popstate",s),this.listeners.push(function(){window.removeEventListener("popstate",s)})}},t.prototype.go=function(n){window.history.go(n)},t.prototype.push=function(n,i,a){var o=this,s=this,u=s.current;this.transitionTo(n,function(f){Jr(Le(o.base+f.fullPath)),Ne(o.router,f,u,!1),i&&i(f)},a)},t.prototype.replace=function(n,i,a){var o=this,s=this,u=s.current;this.transitionTo(n,function(f){ei(Le(o.base+f.fullPath)),Ne(o.router,f,u,!1),i&&i(f)},a)},t.prototype.ensureURL=function(n){if(Nt(this.base)!==this.current.fullPath){var i=Le(this.base+this.current.fullPath);n?Jr(i):ei(i)}},t.prototype.getCurrentLocation=function(){return Nt(this.base)},t}(we);function Nt(e){var t=window.location.pathname,r=t.toLowerCase(),n=e.toLowerCase();return e&&(r===n||r.indexOf(Le(n+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var mu=function(e){function t(r,n,i){e.call(this,r,n),!(i&&kh(this.base))&&co()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,a=i.options.scrollBehavior,o=De&&a;o&&this.listeners.push(cu());var s=function(){var f=n.current;co()&&n.transitionTo(Tr(),function(c){o&&Ne(n.router,c,f,!0),De||$r(c.fullPath)})},u=De?"popstate":"hashchange";window.addEventListener(u,s),this.listeners.push(function(){window.removeEventListener(u,s)})}},t.prototype.push=function(n,i,a){var o=this,s=this,u=s.current;this.transitionTo(n,function(f){lo(f.fullPath),Ne(o.router,f,u,!1),i&&i(f)},a)},t.prototype.replace=function(n,i,a){var o=this,s=this,u=s.current;this.transitionTo(n,function(f){$r(f.fullPath),Ne(o.router,f,u,!1),i&&i(f)},a)},t.prototype.go=function(n){window.history.go(n)},t.prototype.ensureURL=function(n){var i=this.current.fullPath;Tr()!==i&&(n?lo(i):$r(i))},t.prototype.getCurrentLocation=function(){return Tr()},t}(we);function kh(e){var t=Nt(e);if(!/^\/#/.test(t))return window.location.replace(Le(e+"/#"+t)),!0}function co(){var e=Tr();return e.charAt(0)==="/"?!0:($r("/"+e),!1)}function Tr(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function ti(e){var t=window.location.href,r=t.indexOf("#"),n=r>=0?t.slice(0,r):t;return n+"#"+e}function lo(e){De?Jr(ti(e)):window.location.hash=e}function $r(e){De?ei(ti(e)):window.location.replace(ti(e))}var Ih=function(e){function t(r,n){e.call(this,r,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(n,i,a){var o=this;this.transitionTo(n,function(s){o.stack=o.stack.slice(0,o.index+1).concat(s),o.index++,i&&i(s)},a)},t.prototype.replace=function(n,i,a){var o=this;this.transitionTo(n,function(s){o.stack=o.stack.slice(0,o.index).concat(s),i&&i(s)},a)},t.prototype.go=function(n){var i=this,a=this.index+n;if(!(a<0||a>=this.stack.length)){var o=this.stack[a];this.confirmTransition(o,function(){var s=i.current;i.index=a,i.updateRoute(o),i.router.afterHooks.forEach(function(u){u&&u(o,s)})},function(s){fn(s,lt.duplicated)&&(i.index=a)})}},t.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},t.prototype.ensureURL=function(){},t}(we),K=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=lh(t.routes||[],this);var r=t.mode||"hash";switch(this.fallback=r==="history"&&!De&&t.fallback!==!1,this.fallback&&(r="hash"),or||(r="abstract"),this.mode=r,r){case"history":this.history=new hu(this,t.base);break;case"hash":this.history=new mu(this,t.base,this.fallback);break;case"abstract":this.history=new Ih(this,t.base);break}},yu={currentRoute:{configurable:!0}};K.prototype.match=function(t,r,n){return this.matcher.match(t,r,n)};yu.currentRoute.get=function(){return this.history&&this.history.current};K.prototype.init=function(t){var r=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var o=r.apps.indexOf(t);o>-1&&r.apps.splice(o,1),r.app===t&&(r.app=r.apps[0]||null),r.app||r.history.teardown()}),!this.app){this.app=t;var n=this.history;if(n instanceof hu||n instanceof mu){var i=function(o){var s=n.current,u=r.options.scrollBehavior,f=De&&u;f&&"fullPath"in o&&Ne(r,o,s,!1)},a=function(o){n.setupListeners(),i(o)};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen(function(o){r.apps.forEach(function(s){s._route=o})})}};K.prototype.beforeEach=function(t){return Fi(this.beforeHooks,t)};K.prototype.beforeResolve=function(t){return Fi(this.resolveHooks,t)};K.prototype.afterEach=function(t){return Fi(this.afterHooks,t)};K.prototype.onReady=function(t,r){this.history.onReady(t,r)};K.prototype.onError=function(t){this.history.onError(t)};K.prototype.push=function(t,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(a,o){i.history.push(t,a,o)});this.history.push(t,r,n)};K.prototype.replace=function(t,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(a,o){i.history.replace(t,a,o)});this.history.replace(t,r,n)};K.prototype.go=function(t){this.history.go(t)};K.prototype.back=function(){this.go(-1)};K.prototype.forward=function(){this.go(1)};K.prototype.getMatchedComponents=function(t){var r=t?t.matched?t:this.resolve(t).route:this.currentRoute;return r?[].concat.apply([],r.matched.map(function(n){return Object.keys(n.components).map(function(i){return n.components[i]})})):[]};K.prototype.resolve=function(t,r,n){r=r||this.history.current;var i=Ni(t,r,n,this),a=this.match(i,r),o=a.redirectedFrom||a.fullPath,s=this.history.base,u=Lh(s,o,this.mode);return{location:i,route:a,href:u,normalizedTo:i,resolved:a}};K.prototype.getRoutes=function(){return this.matcher.getRoutes()};K.prototype.addRoute=function(t,r){this.matcher.addRoute(t,r),this.history.current!==Je&&this.history.transitionTo(this.history.getCurrentLocation())};K.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Je&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(K.prototype,yu);var gu=K;function Fi(e,t){return e.push(t),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function Lh(e,t,r){var n=r==="hash"?"#"+t:t;return e?Le(e+"/"+n):n}K.install=Qn;K.version="3.6.5";K.isNavigationFailure=fn;K.NavigationFailureType=lt;K.START_LOCATION=Je;or&&window.Vue&&window.Vue.use(K);let Nh={api:"requestNotification",data:{title:"Worker Notification",message:"A worker sent this"}};const Dh={name:"WorkerControls",props:["workerPool"],data(){return{topic:"exerciseApi",message:JSON.stringify(Nh,null,2),activeWorker:Object.keys(this.workerPool.workerConfig.clients)[0]}},methods:{sendMessage:function(){this.workerPool.publish(this.activeWorker,{topic:this.topic,payload:JSON.parse(this.message)})}}};var Fh=function(){var t=this,r=t._self._c;return r("div",{attrs:{id:"worker-control-panel"}},[r("div",{attrs:{id:"worker-selection"}},[r("label",{attrs:{for:"worker-select"}},[t._v("Targeted Worker:")]),r("select",{directives:[{name:"model",rawName:"v-model",value:t.activeWorker,expression:"activeWorker"}],attrs:{id:"worker-select"},on:{change:function(n){var i=Array.prototype.filter.call(n.target.options,function(a){return a.selected}).map(function(a){var o="_value"in a?a._value:a.value;return o});t.activeWorker=n.target.multiple?i:i[0]}}},t._l(t.workerPool.workerConfig.clients,function(n,i){return r("option",{key:i},[t._v(" "+t._s(i)+" ")])}),0)]),r("div",{attrs:{id:"worker-communication"}},[r("div",[r("label",{attrs:{for:"message-topic"}},[t._v("Topic:")]),r("input",{directives:[{name:"model",rawName:"v-model",value:t.topic,expression:"topic"}],attrs:{type:"text",id:"message-topic"},domProps:{value:t.topic},on:{input:function(n){n.target.composing||(t.topic=n.target.value)}}})]),r("div",[r("label",{attrs:{for:"worker-message"}},[t._v("Message")]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],attrs:{id:"worker-message"},domProps:{value:t.message},on:{input:function(n){n.target.composing||(t.message=n.target.value)}}})]),r("button",{on:{click:function(n){return t.sendMessage()}}},[t._v("Send to "+t._s(t.activeWorker))])])])},Uh=[],Hh=ji(Dh,Fh,Uh);const Wh=Hh.exports,zh={name:"iframeEmbed",props:["frameRoute"],components:{WorkerControls:Wh},data(){return{workerPool:{},frameUrl:"",showMenu:!0,clientConfig:{},workerConfig:{},metadata:{},currentClientId:"",showWorkerControls:!1}},methods:{toggleWorkerControls(){this.showWorkerControls=!this.showWorkerControls},displayToast(e){var n;const t=JSON.stringify(e.detail.custom,null,2),r=`<div class="message">${e.detail.message}</div>
|
|
47
47
|
<pre class="customData">${t}</pre>`;this.$notify({group:"toast",title:`${e.detail.title} (${e.detail.clientId})`,text:r,duration:((n=e.detail.custom)==null?void 0:n.duration)||-1,type:"toast"})},handleNav(e){const t=new URL(e.detail.url,window.location);location.hash===t.hash||(e.detail.history==="replace"?window.location.replace(t.hash):window.location.hash=t.hash)},handleKeyEvent(e){this.$notify({group:"keydown",title:`registeredKeyFired event from ${e.detail.clientId}`,text:`<pre>${JSON.stringify(e.detail,null,2)}</pre>`,duration:3e3,type:"registeredKeyFired"})},notifyPubSub(e){const t=JSON.stringify(e,null,2);this.$notify({group:"pubsub",title:`${e.clientId} on ${e.topic}`,text:`<pre>${t}</pre>`,duration:-1,type:"pubsub"})},updateFrameUrl(e){this.frameUrl=e.detail,this.showMenu=this.frameUrl==="about:blank"},updatePageMetadata(e){this.metadata={title:e.detail.title,breadcrumbs:e.detail.breadcrumbs}},handlePromptOnLeave(e){e.detail.shouldPrompt===!0&&(window.onbeforeunload=function(t){t.preventDefault(),t.returnValue=""}),e.detail.shouldPrompt===!1&&(window.onbeforeunload=null)},updateCurrentClientId(e){this.currentClientId=e.detail||""}},mounted(){this.workerPool=new en,this.workerPool.addEventListener("navRequest",this.handleNav),this.workerPool.addEventListener("notifyRequest",this.displayToast),this.workerPool.addEventListener("promptOnLeave",this.handlePrompotOnLeave);const e=frameRouter.setupFrames;if(frameRouter.setupFrames=(...t)=>{e.apply(frameRouter,t)},window.routerSetup&&typeof window.routerSetup=="function"){const t=window.routerSetup(frameRouter,this.workerPool);this.clientConfig=frameRouter.clientConfig.clients,this.workerConfig=this.workerPool.workerConfig.clients,console.log("Starting IFC workers",this.workerPool.workerConfig),this.workerPool.start(),t.publishTopics&&t.publishTopics.forEach(r=>{frameRouter.messaging.addListener(r,n=>{this.notifyPubSub(n)})})}else console.log(`====== ERROR ======
|
|
48
48
|
Could not find a function to set up the frame-router element with. Your
|
|
49
49
|
JS configuration file must assign a set-up function to \`module.exports\`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzwMKVNfWAgCbHgqm"
|
|
1
|
+
window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzwMKVNfWAgCbHgqm";
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
--light-hl-0: #008000;
|
|
3
|
+
--dark-hl-0: #6a9955;
|
|
4
|
+
--light-hl-1: #af00db;
|
|
5
|
+
--dark-hl-1: #c586c0;
|
|
6
|
+
--light-hl-2: #000000;
|
|
7
|
+
--dark-hl-2: #d4d4d4;
|
|
8
|
+
--light-hl-3: #a31515;
|
|
9
|
+
--dark-hl-3: #ce9178;
|
|
10
|
+
--light-hl-4: #001080;
|
|
11
|
+
--dark-hl-4: #9cdcfe;
|
|
12
|
+
--light-hl-5: #795e26;
|
|
13
|
+
--dark-hl-5: #dcdcaa;
|
|
14
|
+
--light-hl-6: #0000ff;
|
|
15
|
+
--dark-hl-6: #569cd6;
|
|
16
|
+
--light-hl-7: #800000;
|
|
17
|
+
--dark-hl-7: #808080;
|
|
18
|
+
--light-hl-8: #800000;
|
|
19
|
+
--dark-hl-8: #569cd6;
|
|
20
|
+
--light-hl-9: #e50000;
|
|
21
|
+
--dark-hl-9: #9cdcfe;
|
|
22
|
+
--light-hl-10: #0000ff;
|
|
23
|
+
--dark-hl-10: #ce9178;
|
|
24
|
+
--light-hl-11: #000000;
|
|
25
|
+
--dark-hl-11: #c8c8c8;
|
|
26
|
+
--light-hl-12: #098658;
|
|
27
|
+
--dark-hl-12: #b5cea8;
|
|
28
|
+
--light-hl-13: #cd3131;
|
|
29
|
+
--dark-hl-13: #f44747;
|
|
30
|
+
--light-hl-14: #0451a5;
|
|
31
|
+
--dark-hl-14: #9cdcfe;
|
|
32
|
+
--light-hl-15: #000000ff;
|
|
33
|
+
--dark-hl-15: #d4d4d4;
|
|
34
|
+
--light-code-background: #ffffff;
|
|
35
|
+
--dark-code-background: #1e1e1e;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
@media (prefers-color-scheme: light) {
|
|
38
|
+
@media (prefers-color-scheme: light) {
|
|
39
|
+
:root {
|
|
39
40
|
--hl-0: var(--light-hl-0);
|
|
40
41
|
--hl-1: var(--light-hl-1);
|
|
41
42
|
--hl-2: var(--light-hl-2);
|
|
@@ -53,9 +54,11 @@
|
|
|
53
54
|
--hl-14: var(--light-hl-14);
|
|
54
55
|
--hl-15: var(--light-hl-15);
|
|
55
56
|
--code-background: var(--light-code-background);
|
|
56
|
-
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
57
59
|
|
|
58
|
-
@media (prefers-color-scheme: dark) {
|
|
60
|
+
@media (prefers-color-scheme: dark) {
|
|
61
|
+
:root {
|
|
59
62
|
--hl-0: var(--dark-hl-0);
|
|
60
63
|
--hl-1: var(--dark-hl-1);
|
|
61
64
|
--hl-2: var(--dark-hl-2);
|
|
@@ -73,62 +76,98 @@
|
|
|
73
76
|
--hl-14: var(--dark-hl-14);
|
|
74
77
|
--hl-15: var(--dark-hl-15);
|
|
75
78
|
--code-background: var(--dark-code-background);
|
|
76
|
-
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
77
81
|
|
|
78
|
-
:root[data-theme=
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
82
|
+
:root[data-theme="light"] {
|
|
83
|
+
--hl-0: var(--light-hl-0);
|
|
84
|
+
--hl-1: var(--light-hl-1);
|
|
85
|
+
--hl-2: var(--light-hl-2);
|
|
86
|
+
--hl-3: var(--light-hl-3);
|
|
87
|
+
--hl-4: var(--light-hl-4);
|
|
88
|
+
--hl-5: var(--light-hl-5);
|
|
89
|
+
--hl-6: var(--light-hl-6);
|
|
90
|
+
--hl-7: var(--light-hl-7);
|
|
91
|
+
--hl-8: var(--light-hl-8);
|
|
92
|
+
--hl-9: var(--light-hl-9);
|
|
93
|
+
--hl-10: var(--light-hl-10);
|
|
94
|
+
--hl-11: var(--light-hl-11);
|
|
95
|
+
--hl-12: var(--light-hl-12);
|
|
96
|
+
--hl-13: var(--light-hl-13);
|
|
97
|
+
--hl-14: var(--light-hl-14);
|
|
98
|
+
--hl-15: var(--light-hl-15);
|
|
99
|
+
--code-background: var(--light-code-background);
|
|
96
100
|
}
|
|
97
101
|
|
|
98
|
-
:root[data-theme=
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
102
|
+
:root[data-theme="dark"] {
|
|
103
|
+
--hl-0: var(--dark-hl-0);
|
|
104
|
+
--hl-1: var(--dark-hl-1);
|
|
105
|
+
--hl-2: var(--dark-hl-2);
|
|
106
|
+
--hl-3: var(--dark-hl-3);
|
|
107
|
+
--hl-4: var(--dark-hl-4);
|
|
108
|
+
--hl-5: var(--dark-hl-5);
|
|
109
|
+
--hl-6: var(--dark-hl-6);
|
|
110
|
+
--hl-7: var(--dark-hl-7);
|
|
111
|
+
--hl-8: var(--dark-hl-8);
|
|
112
|
+
--hl-9: var(--dark-hl-9);
|
|
113
|
+
--hl-10: var(--dark-hl-10);
|
|
114
|
+
--hl-11: var(--dark-hl-11);
|
|
115
|
+
--hl-12: var(--dark-hl-12);
|
|
116
|
+
--hl-13: var(--dark-hl-13);
|
|
117
|
+
--hl-14: var(--dark-hl-14);
|
|
118
|
+
--hl-15: var(--dark-hl-15);
|
|
119
|
+
--code-background: var(--dark-code-background);
|
|
116
120
|
}
|
|
117
121
|
|
|
118
|
-
.hl-0 {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
.hl-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
.hl-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
.hl-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
.hl-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
.hl-
|
|
134
|
-
|
|
122
|
+
.hl-0 {
|
|
123
|
+
color: var(--hl-0);
|
|
124
|
+
}
|
|
125
|
+
.hl-1 {
|
|
126
|
+
color: var(--hl-1);
|
|
127
|
+
}
|
|
128
|
+
.hl-2 {
|
|
129
|
+
color: var(--hl-2);
|
|
130
|
+
}
|
|
131
|
+
.hl-3 {
|
|
132
|
+
color: var(--hl-3);
|
|
133
|
+
}
|
|
134
|
+
.hl-4 {
|
|
135
|
+
color: var(--hl-4);
|
|
136
|
+
}
|
|
137
|
+
.hl-5 {
|
|
138
|
+
color: var(--hl-5);
|
|
139
|
+
}
|
|
140
|
+
.hl-6 {
|
|
141
|
+
color: var(--hl-6);
|
|
142
|
+
}
|
|
143
|
+
.hl-7 {
|
|
144
|
+
color: var(--hl-7);
|
|
145
|
+
}
|
|
146
|
+
.hl-8 {
|
|
147
|
+
color: var(--hl-8);
|
|
148
|
+
}
|
|
149
|
+
.hl-9 {
|
|
150
|
+
color: var(--hl-9);
|
|
151
|
+
}
|
|
152
|
+
.hl-10 {
|
|
153
|
+
color: var(--hl-10);
|
|
154
|
+
}
|
|
155
|
+
.hl-11 {
|
|
156
|
+
color: var(--hl-11);
|
|
157
|
+
}
|
|
158
|
+
.hl-12 {
|
|
159
|
+
color: var(--hl-12);
|
|
160
|
+
}
|
|
161
|
+
.hl-13 {
|
|
162
|
+
color: var(--hl-13);
|
|
163
|
+
}
|
|
164
|
+
.hl-14 {
|
|
165
|
+
color: var(--hl-14);
|
|
166
|
+
}
|
|
167
|
+
.hl-15 {
|
|
168
|
+
color: var(--hl-15);
|
|
169
|
+
}
|
|
170
|
+
pre,
|
|
171
|
+
code {
|
|
172
|
+
background: var(--code-background);
|
|
173
|
+
}
|