@elliemae/pui-app-bridge 2.24.0 → 2.26.0-alpha.0
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/cjs/appBridge.js +173 -26
- package/dist/cjs/config/app.js +8 -0
- package/dist/cjs/frame.html +0 -21
- package/dist/cjs/loaders/script.js +12 -12
- package/dist/cjs/tests/serverHandlers.js +0 -8
- package/dist/esm/appBridge.js +173 -26
- package/dist/esm/config/app.js +8 -0
- package/dist/esm/frame.html +0 -21
- package/dist/esm/loaders/script.js +12 -12
- package/dist/esm/tests/serverHandlers.js +0 -8
- package/dist/public/assets/{frame.671d9de68be598da64ca.html → frame.4cbbcfa9ded96b660559.html} +0 -21
- package/dist/public/e2e-host.html +1 -1
- package/dist/public/e2e-index.html +1 -1
- package/dist/public/frame.html +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/emuiAppBridge.dc4dbeb6feea171656da.js +17 -0
- package/dist/public/js/emuiAppBridge.dc4dbeb6feea171656da.js.br +0 -0
- package/dist/public/js/emuiAppBridge.dc4dbeb6feea171656da.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.dc4dbeb6feea171656da.js.map +1 -0
- package/dist/types/lib/appBridge.d.ts +11 -2
- package/dist/types/lib/config/app.d.ts +6 -0
- package/dist/types/lib/loaders/script.d.ts +5 -3
- package/dist/types/lib/typings/host.d.ts +5 -0
- package/dist/types/lib/typings/window.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/{671d9de68be598da64ca.html → 4cbbcfa9ded96b660559.html} +0 -21
- package/dist/umd/frame.html +1 -1
- package/dist/umd/index.js +7 -15
- package/dist/umd/index.js.br +0 -0
- package/dist/umd/index.js.gz +0 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/public/js/emuiAppBridge.5a6bc2ea1f03ee954a75.js +0 -25
- package/dist/public/js/emuiAppBridge.5a6bc2ea1f03ee954a75.js.br +0 -0
- package/dist/public/js/emuiAppBridge.5a6bc2ea1f03ee954a75.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.5a6bc2ea1f03ee954a75.js.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
(function(St,_e){typeof exports=="object"&&typeof module=="object"?module.exports=_e(require("React")):typeof define=="function"&&define.amd?define(["React"],_e):typeof exports=="object"?exports.ice=_e(require("React")):St.ice=_e(St.React)})(globalThis,fr=>(()=>{var St={4674(o,p,e){"use strict";var i=e(7020),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[i.ForwardRef]=u,f[i.Memo]=d;function g(L){return i.isMemo(L)?d:f[L.$$typeof]||a}var v=Object.defineProperty,w=Object.getOwnPropertyNames,x=Object.getOwnPropertySymbols,O=Object.getOwnPropertyDescriptor,$=Object.getPrototypeOf,F=Object.prototype;function N(L,B,z){if(typeof B!="string"){if(F){var ie=$(B);ie&&ie!==F&&N(L,ie,z)}var R=w(B);x&&(R=R.concat(x(B)));for(var ae=g(L),A=g(B),ce=0;ce<R.length;++ce){var le=R[ce];if(!l[le]&&!(z&&z[le])&&!(A&&A[le])&&!(ae&&ae[le])){var ue=O(B,le);try{v(L,le,ue)}catch{}}}}return L}o.exports=N},8054(o,p,e){var i=e(5592),a=e(907),l=i(a,"DataView");o.exports=l},3219(o,p,e){var i=e(2130),a=e(1924),l=e(4743),u=e(1755),d=e(5203);function f(g){var v=-1,w=g==null?0:g.length;for(this.clear();++v<w;){var x=g[v];this.set(x[0],x[1])}}f.prototype.clear=i,f.prototype.delete=a,f.prototype.get=l,f.prototype.has=u,f.prototype.set=d,o.exports=f},7321(o,p,e){var i=e(3044),a=e(4066),l=e(8461),u=e(4417),d=e(2777);function f(g){var v=-1,w=g==null?0:g.length;for(this.clear();++v<w;){var x=g[v];this.set(x[0],x[1])}}f.prototype.clear=i,f.prototype.delete=a,f.prototype.get=l,f.prototype.has=u,f.prototype.set=d,o.exports=f},2565(o,p,e){var i=e(5592),a=e(907),l=i(a,"Map");o.exports=l},111(o,p,e){var i=e(4614),a=e(9504),l=e(9251),u=e(5791),d=e(1511);function f(g){var v=-1,w=g==null?0:g.length;for(this.clear();++v<w;){var x=g[v];this.set(x[0],x[1])}}f.prototype.clear=i,f.prototype.delete=a,f.prototype.get=l,f.prototype.has=u,f.prototype.set=d,o.exports=f},8246(o,p,e){var i=e(5592),a=e(907),l=i(a,"Promise");o.exports=l},4099(o,p,e){var i=e(5592),a=e(907),l=i(a,"Set");o.exports=l},5963(o,p,e){var i=e(7321),a=e(1306),l=e(3180),u=e(5247),d=e(2835),f=e(9179);function g(v){var w=this.__data__=new i(v);this.size=w.size}g.prototype.clear=a,g.prototype.delete=l,g.prototype.get=u,g.prototype.has=d,g.prototype.set=f,o.exports=g},7759(o,p,e){var i=e(907),a=i.Symbol;o.exports=a},9386(o,p,e){var i=e(907),a=i.Uint8Array;o.exports=a},6221(o,p,e){var i=e(5592),a=e(907),l=i(a,"WeakMap");o.exports=l},6047(o){function p(e,i,a){switch(a.length){case 0:return e.call(i);case 1:return e.call(i,a[0]);case 2:return e.call(i,a[0],a[1]);case 3:return e.call(i,a[0],a[1],a[2])}return e.apply(i,a)}o.exports=p},6259(o){function p(e,i){for(var a=-1,l=e==null?0:e.length;++a<l&&i(e[a],a,e)!==!1;);return e}o.exports=p},1840(o){function p(e,i){for(var a=-1,l=e==null?0:e.length,u=0,d=[];++a<l;){var f=e[a];i(f,a,e)&&(d[u++]=f)}return d}o.exports=p},3737(o,p,e){var i=e(5562),a=e(1750),l=e(2619),u=e(3446),d=e(2159),f=e(3133),g=Object.prototype,v=g.hasOwnProperty;function w(x,O){var $=l(x),F=!$&&a(x),N=!$&&!F&&u(x),L=!$&&!F&&!N&&f(x),B=$||F||N||L,z=B?i(x.length,String):[],ie=z.length;for(var R in x)(O||v.call(x,R))&&!(B&&(R=="length"||N&&(R=="offset"||R=="parent")||L&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||d(R,ie)))&&z.push(R);return z}o.exports=w},5862(o){function p(e,i){for(var a=-1,l=e==null?0:e.length,u=Array(l);++a<l;)u[a]=i(e[a],a,e);return u}o.exports=p},9130(o){function p(e,i){for(var a=-1,l=i.length,u=e.length;++a<l;)e[u+a]=i[a];return e}o.exports=p},8971(o,p,e){var i=e(3706),a=e(9506);function l(u,d,f){(f!==void 0&&!a(u[d],f)||f===void 0&&!(d in u))&&i(u,d,f)}o.exports=l},3853(o,p,e){var i=e(3706),a=e(9506),l=Object.prototype,u=l.hasOwnProperty;function d(f,g,v){var w=f[g];(!(u.call(f,g)&&a(w,v))||v===void 0&&!(g in f))&&i(f,g,v)}o.exports=d},7831(o,p,e){var i=e(9506);function a(l,u){for(var d=l.length;d--;)if(i(l[d][0],u))return d;return-1}o.exports=a},2183(o,p,e){var i=e(7145),a=e(2096);function l(u,d){return u&&i(d,a(d),u)}o.exports=l},4076(o,p,e){var i=e(7145),a=e(7999);function l(u,d){return u&&i(d,a(d),u)}o.exports=l},3706(o,p,e){var i=e(4665);function a(l,u,d){u=="__proto__"&&i?i(l,u,{configurable:!0,enumerable:!0,value:d,writable:!0}):l[u]=d}o.exports=a},6057(o,p,e){var i=e(5963),a=e(6259),l=e(3853),u=e(2183),d=e(4076),f=e(5196),g=e(3549),v=e(6573),w=e(9934),x=e(6280),O=e(6839),$=e(1663),F=e(143),N=e(7265),L=e(8879),B=e(2619),z=e(3446),ie=e(7884),R=e(9323),ae=e(5070),A=e(2096),ce=e(7999),le=1,ue=2,re=4,fe="[object Arguments]",pe="[object Array]",W="[object Boolean]",we="[object Date]",J="[object Error]",ye="[object Function]",He="[object GeneratorFunction]",rt="[object Map]",Ut="[object Number]",ve="[object Object]",At="[object RegExp]",hr="[object Set]",gr="[object String]",zt="[object Symbol]",Et="[object WeakMap]",nt="[object ArrayBuffer]",Ct="[object DataView]",Bt="[object Float32Array]",Vt="[object Float64Array]",Gt="[object Int8Array]",Ot="[object Int16Array]",Ht="[object Int32Array]",Tt="[object Uint8Array]",ft="[object Uint8ClampedArray]",Wt="[object Uint16Array]",Pt="[object Uint32Array]",oe={};oe[fe]=oe[pe]=oe[nt]=oe[Ct]=oe[W]=oe[we]=oe[Bt]=oe[Vt]=oe[Gt]=oe[Ot]=oe[Ht]=oe[rt]=oe[Ut]=oe[ve]=oe[At]=oe[hr]=oe[gr]=oe[zt]=oe[Tt]=oe[ft]=oe[Wt]=oe[Pt]=!0,oe[J]=oe[ye]=oe[Et]=!1;function Re(_,We,Ee,Ue,st,ze){var Ce,ot=We&le,it=We&ue,Kt=We&re;if(Ee&&(Ce=st?Ee(_,Ue,st,ze):Ee(_)),Ce!==void 0)return Ce;if(!R(_))return _;var It=B(_);if(It){if(Ce=F(_),!ot)return g(_,Ce)}else{var Ke=$(_),ht=Ke==ye||Ke==He;if(z(_))return f(_,ot);if(Ke==ve||Ke==fe||ht&&!st){if(Ce=it||ht?{}:L(_),!ot)return it?w(_,d(Ce,_)):v(_,u(Ce,_))}else{if(!oe[Ke])return st?_:{};Ce=N(_,Ke,ot)}}ze||(ze=new i);var jt=ze.get(_);if(jt)return jt;ze.set(_,Ce),ae(_)?_.forEach(function(Be){Ce.add(Re(Be,We,Ee,Be,_,ze))}):ie(_)&&_.forEach(function(Be,Me){Ce.set(Me,Re(Be,We,Ee,Me,_,ze))});var Yt=Kt?it?O:x:it?ce:A,qe=It?void 0:Yt(_);return a(qe||_,function(Be,Me){qe&&(Me=Be,Be=_[Me]),l(Ce,Me,Re(Be,We,Ee,Me,_,ze))}),Ce}o.exports=Re},8514(o,p,e){var i=e(9323),a=Object.create,l=function(){function u(){}return function(d){if(!i(d))return{};if(a)return a(d);u.prototype=d;var f=new u;return u.prototype=void 0,f}}();o.exports=l},5795(o,p,e){var i=e(3375),a=i();o.exports=a},3208(o,p,e){var i=e(2155),a=e(5155);function l(u,d){d=i(d,u);for(var f=0,g=d.length;u!=null&&f<g;)u=u[a(d[f++])];return f&&f==g?u:void 0}o.exports=l},1405(o,p,e){var i=e(9130),a=e(2619);function l(u,d,f){var g=d(u);return a(u)?g:i(g,f(u))}o.exports=l},1490(o,p,e){var i=e(7759),a=e(4817),l=e(7748),u="[object Null]",d="[object Undefined]",f=i?i.toStringTag:void 0;function g(v){return v==null?v===void 0?d:u:f&&f in Object(v)?a(v):l(v)}o.exports=g},2780(o){var p=Object.prototype,e=p.hasOwnProperty;function i(a,l){return a!=null&&e.call(a,l)}o.exports=i},2960(o,p,e){var i=e(1490),a=e(2292),l="[object Arguments]";function u(d){return a(d)&&i(d)==l}o.exports=u},9694(o,p,e){var i=e(1663),a=e(2292),l="[object Map]";function u(d){return a(d)&&i(d)==l}o.exports=u},4401(o,p,e){var i=e(860),a=e(2958),l=e(9323),u=e(8815),d=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,g=Function.prototype,v=Object.prototype,w=g.toString,x=v.hasOwnProperty,O=RegExp("^"+w.call(x).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $(F){if(!l(F)||a(F))return!1;var N=i(F)?O:f;return N.test(u(F))}o.exports=$},8172(o,p,e){var i=e(1663),a=e(2292),l="[object Set]";function u(d){return a(d)&&i(d)==l}o.exports=u},5283(o,p,e){var i=e(1490),a=e(5300),l=e(2292),u="[object Arguments]",d="[object Array]",f="[object Boolean]",g="[object Date]",v="[object Error]",w="[object Function]",x="[object Map]",O="[object Number]",$="[object Object]",F="[object RegExp]",N="[object Set]",L="[object String]",B="[object WeakMap]",z="[object ArrayBuffer]",ie="[object DataView]",R="[object Float32Array]",ae="[object Float64Array]",A="[object Int8Array]",ce="[object Int16Array]",le="[object Int32Array]",ue="[object Uint8Array]",re="[object Uint8ClampedArray]",fe="[object Uint16Array]",pe="[object Uint32Array]",W={};W[R]=W[ae]=W[A]=W[ce]=W[le]=W[ue]=W[re]=W[fe]=W[pe]=!0,W[u]=W[d]=W[z]=W[f]=W[ie]=W[g]=W[v]=W[w]=W[x]=W[O]=W[$]=W[F]=W[N]=W[L]=W[B]=!1;function we(J){return l(J)&&a(J.length)&&!!W[i(J)]}o.exports=we},2322(o,p,e){var i=e(8861),a=e(9692),l=Object.prototype,u=l.hasOwnProperty;function d(f){if(!i(f))return a(f);var g=[];for(var v in Object(f))u.call(f,v)&&v!="constructor"&&g.push(v);return g}o.exports=d},5045(o,p,e){var i=e(9323),a=e(8861),l=e(1779),u=Object.prototype,d=u.hasOwnProperty;function f(g){if(!i(g))return l(g);var v=a(g),w=[];for(var x in g)x=="constructor"&&(v||!d.call(g,x))||w.push(x);return w}o.exports=f},3912(o,p,e){var i=e(5963),a=e(8971),l=e(5795),u=e(8342),d=e(9323),f=e(7999),g=e(5760);function v(w,x,O,$,F){w!==x&&l(x,function(N,L){if(F||(F=new i),d(N))u(w,x,L,O,v,$,F);else{var B=$?$(g(w,L),N,L+"",w,x,F):void 0;B===void 0&&(B=N),a(w,L,B)}},f)}o.exports=v},8342(o,p,e){var i=e(8971),a=e(5196),l=e(5979),u=e(3549),d=e(8879),f=e(1750),g=e(2619),v=e(1891),w=e(3446),x=e(860),O=e(9323),$=e(1281),F=e(3133),N=e(5760),L=e(4514);function B(z,ie,R,ae,A,ce,le){var ue=N(z,R),re=N(ie,R),fe=le.get(re);if(fe){i(z,R,fe);return}var pe=ce?ce(ue,re,R+"",z,ie,le):void 0,W=pe===void 0;if(W){var we=g(re),J=!we&&w(re),ye=!we&&!J&&F(re);pe=re,we||J||ye?g(ue)?pe=ue:v(ue)?pe=u(ue):J?(W=!1,pe=a(re,!0)):ye?(W=!1,pe=l(re,!0)):pe=[]:$(re)||f(re)?(pe=ue,f(ue)?pe=L(ue):(!O(ue)||x(ue))&&(pe=d(re))):W=!1}W&&(le.set(re,pe),A(pe,re,ae,ce,le),le.delete(re)),i(z,R,pe)}o.exports=B},6936(o,p,e){var i=e(4846),a=e(8619),l=e(9599);function u(d,f){return l(a(d,f,i),d+"")}o.exports=u},604(o,p,e){var i=e(3853),a=e(2155),l=e(2159),u=e(9323),d=e(5155);function f(g,v,w,x){if(!u(g))return g;v=a(v,g);for(var O=-1,$=v.length,F=$-1,N=g;N!=null&&++O<$;){var L=d(v[O]),B=w;if(L==="__proto__"||L==="constructor"||L==="prototype")return g;if(O!=F){var z=N[L];B=x?x(z,L,N):void 0,B===void 0&&(B=u(z)?z:l(v[O+1])?[]:{})}i(N,L,B),N=N[L]}return g}o.exports=f},7680(o,p,e){var i=e(6148),a=e(4665),l=e(4846),u=a?function(d,f){return a(d,"toString",{configurable:!0,enumerable:!1,value:i(f),writable:!0})}:l;o.exports=u},5562(o){function p(e,i){for(var a=-1,l=Array(e);++a<e;)l[a]=i(a);return l}o.exports=p},1978(o,p,e){var i=e(7759),a=e(5862),l=e(2619),u=e(7964),d=1/0,f=i?i.prototype:void 0,g=f?f.toString:void 0;function v(w){if(typeof w=="string")return w;if(l(w))return a(w,v)+"";if(u(w))return g?g.call(w):"";var x=w+"";return x=="0"&&1/w==-d?"-0":x}o.exports=v},6(o,p,e){var i=e(5082),a=/^\s+/;function l(u){return u&&u.slice(0,i(u)+1).replace(a,"")}o.exports=l},1155(o){function p(e){return function(i){return e(i)}}o.exports=p},2155(o,p,e){var i=e(2619),a=e(5304),l=e(4352),u=e(7164);function d(f,g){return i(f)?f:a(f,g)?[f]:l(u(f))}o.exports=d},2859(o,p,e){var i=e(9386);function a(l){var u=new l.constructor(l.byteLength);return new i(u).set(new i(l)),u}o.exports=a},5196(o,p,e){o=e.nmd(o);var i=e(907),a=p&&!p.nodeType&&p,l=a&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===a,d=u?i.Buffer:void 0,f=d?d.allocUnsafe:void 0;function g(v,w){if(w)return v.slice();var x=v.length,O=f?f(x):new v.constructor(x);return v.copy(O),O}o.exports=g},7795(o,p,e){var i=e(2859);function a(l,u){var d=u?i(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}o.exports=a},6899(o){var p=/\w*$/;function e(i){var a=new i.constructor(i.source,p.exec(i));return a.lastIndex=i.lastIndex,a}o.exports=e},4518(o,p,e){var i=e(7759),a=i?i.prototype:void 0,l=a?a.valueOf:void 0;function u(d){return l?Object(l.call(d)):{}}o.exports=u},5979(o,p,e){var i=e(2859);function a(l,u){var d=u?i(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}o.exports=a},3549(o){function p(e,i){var a=-1,l=e.length;for(i||(i=Array(l));++a<l;)i[a]=e[a];return i}o.exports=p},7145(o,p,e){var i=e(3853),a=e(3706);function l(u,d,f,g){var v=!f;f||(f={});for(var w=-1,x=d.length;++w<x;){var O=d[w],$=g?g(f[O],u[O],O,f,u):void 0;$===void 0&&($=u[O]),v?a(f,O,$):i(f,O,$)}return f}o.exports=l},6573(o,p,e){var i=e(7145),a=e(1454);function l(u,d){return i(u,a(u),d)}o.exports=l},9934(o,p,e){var i=e(7145),a=e(6649);function l(u,d){return i(u,a(u),d)}o.exports=l},3703(o,p,e){var i=e(907),a=i["__core-js_shared__"];o.exports=a},2917(o,p,e){var i=e(6936),a=e(9542);function l(u){return i(function(d,f){var g=-1,v=f.length,w=v>1?f[v-1]:void 0,x=v>2?f[2]:void 0;for(w=u.length>3&&typeof w=="function"?(v--,w):void 0,x&&a(f[0],f[1],x)&&(w=v<3?void 0:w,v=1),d=Object(d);++g<v;){var O=f[g];O&&u(d,O,g,w)}return d})}o.exports=l},3375(o){function p(e){return function(i,a,l){for(var u=-1,d=Object(i),f=l(i),g=f.length;g--;){var v=f[e?g:++u];if(a(d[v],v,d)===!1)break}return i}}o.exports=p},4665(o,p,e){var i=e(5592),a=function(){try{var l=i(Object,"defineProperty");return l({},"",{}),l}catch{}}();o.exports=a},6710(o){var p=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;o.exports=p},6280(o,p,e){var i=e(1405),a=e(1454),l=e(2096);function u(d){return i(d,l,a)}o.exports=u},6839(o,p,e){var i=e(1405),a=e(6649),l=e(7999);function u(d){return i(d,l,a)}o.exports=u},9257(o,p,e){var i=e(7500);function a(l,u){var d=l.__data__;return i(u)?d[typeof u=="string"?"string":"hash"]:d.map}o.exports=a},5592(o,p,e){var i=e(4401),a=e(2490);function l(u,d){var f=a(u,d);return i(f)?f:void 0}o.exports=l},553(o,p,e){var i=e(7937),a=i(Object.getPrototypeOf,Object);o.exports=a},4817(o,p,e){var i=e(7759),a=Object.prototype,l=a.hasOwnProperty,u=a.toString,d=i?i.toStringTag:void 0;function f(g){var v=l.call(g,d),w=g[d];try{g[d]=void 0;var x=!0}catch{}var O=u.call(g);return x&&(v?g[d]=w:delete g[d]),O}o.exports=f},1454(o,p,e){var i=e(1840),a=e(5615),l=Object.prototype,u=l.propertyIsEnumerable,d=Object.getOwnPropertySymbols,f=d?function(g){return g==null?[]:(g=Object(g),i(d(g),function(v){return u.call(g,v)}))}:a;o.exports=f},6649(o,p,e){var i=e(9130),a=e(553),l=e(1454),u=e(5615),d=Object.getOwnPropertySymbols,f=d?function(g){for(var v=[];g;)i(v,l(g)),g=a(g);return v}:u;o.exports=f},1663(o,p,e){var i=e(8054),a=e(2565),l=e(8246),u=e(4099),d=e(6221),f=e(1490),g=e(8815),v="[object Map]",w="[object Object]",x="[object Promise]",O="[object Set]",$="[object WeakMap]",F="[object DataView]",N=g(i),L=g(a),B=g(l),z=g(u),ie=g(d),R=f;(i&&R(new i(new ArrayBuffer(1)))!=F||a&&R(new a)!=v||l&&R(l.resolve())!=x||u&&R(new u)!=O||d&&R(new d)!=$)&&(R=function(ae){var A=f(ae),ce=A==w?ae.constructor:void 0,le=ce?g(ce):"";if(le)switch(le){case N:return F;case L:return v;case B:return x;case z:return O;case ie:return $}return A}),o.exports=R},2490(o){function p(e,i){return e?.[i]}o.exports=p},5728(o,p,e){var i=e(2155),a=e(1750),l=e(2619),u=e(2159),d=e(5300),f=e(5155);function g(v,w,x){w=i(w,v);for(var O=-1,$=w.length,F=!1;++O<$;){var N=f(w[O]);if(!(F=v!=null&&x(v,N)))break;v=v[N]}return F||++O!=$?F:($=v==null?0:v.length,!!$&&d($)&&u(N,$)&&(l(v)||a(v)))}o.exports=g},2130(o,p,e){var i=e(9444);function a(){this.__data__=i?i(null):{},this.size=0}o.exports=a},1924(o){function p(e){var i=this.has(e)&&delete this.__data__[e];return this.size-=i?1:0,i}o.exports=p},4743(o,p,e){var i=e(9444),a="__lodash_hash_undefined__",l=Object.prototype,u=l.hasOwnProperty;function d(f){var g=this.__data__;if(i){var v=g[f];return v===a?void 0:v}return u.call(g,f)?g[f]:void 0}o.exports=d},1755(o,p,e){var i=e(9444),a=Object.prototype,l=a.hasOwnProperty;function u(d){var f=this.__data__;return i?f[d]!==void 0:l.call(f,d)}o.exports=u},5203(o,p,e){var i=e(9444),a="__lodash_hash_undefined__";function l(u,d){var f=this.__data__;return this.size+=this.has(u)?0:1,f[u]=i&&d===void 0?a:d,this}o.exports=l},143(o){var p=Object.prototype,e=p.hasOwnProperty;function i(a){var l=a.length,u=new a.constructor(l);return l&&typeof a[0]=="string"&&e.call(a,"index")&&(u.index=a.index,u.input=a.input),u}o.exports=i},7265(o,p,e){var i=e(2859),a=e(7795),l=e(6899),u=e(4518),d=e(5979),f="[object Boolean]",g="[object Date]",v="[object Map]",w="[object Number]",x="[object RegExp]",O="[object Set]",$="[object String]",F="[object Symbol]",N="[object ArrayBuffer]",L="[object DataView]",B="[object Float32Array]",z="[object Float64Array]",ie="[object Int8Array]",R="[object Int16Array]",ae="[object Int32Array]",A="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",ue="[object Uint32Array]";function re(fe,pe,W){var we=fe.constructor;switch(pe){case N:return i(fe);case f:case g:return new we(+fe);case L:return a(fe,W);case B:case z:case ie:case R:case ae:case A:case ce:case le:case ue:return d(fe,W);case v:return new we;case w:case $:return new we(fe);case x:return l(fe);case O:return new we;case F:return u(fe)}}o.exports=re},8879(o,p,e){var i=e(8514),a=e(553),l=e(8861);function u(d){return typeof d.constructor=="function"&&!l(d)?i(a(d)):{}}o.exports=u},2159(o){var p=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function i(a,l){var u=typeof a;return l=l??p,!!l&&(u=="number"||u!="symbol"&&e.test(a))&&a>-1&&a%1==0&&a<l}o.exports=i},9542(o,p,e){var i=e(9506),a=e(644),l=e(2159),u=e(9323);function d(f,g,v){if(!u(v))return!1;var w=typeof g;return(w=="number"?a(v)&&l(g,v.length):w=="string"&&g in v)?i(v[g],f):!1}o.exports=d},5304(o,p,e){var i=e(2619),a=e(7964),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function d(f,g){if(i(f))return!1;var v=typeof f;return v=="number"||v=="symbol"||v=="boolean"||f==null||a(f)?!0:u.test(f)||!l.test(f)||g!=null&&f in Object(g)}o.exports=d},7500(o){function p(e){var i=typeof e;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?e!=="__proto__":e===null}o.exports=p},2958(o,p,e){var i=e(3703),a=function(){var u=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function l(u){return!!a&&a in u}o.exports=l},8861(o){var p=Object.prototype;function e(i){var a=i&&i.constructor,l=typeof a=="function"&&a.prototype||p;return i===l}o.exports=e},3044(o){function p(){this.__data__=[],this.size=0}o.exports=p},4066(o,p,e){var i=e(7831),a=Array.prototype,l=a.splice;function u(d){var f=this.__data__,g=i(f,d);if(g<0)return!1;var v=f.length-1;return g==v?f.pop():l.call(f,g,1),--this.size,!0}o.exports=u},8461(o,p,e){var i=e(7831);function a(l){var u=this.__data__,d=i(u,l);return d<0?void 0:u[d][1]}o.exports=a},4417(o,p,e){var i=e(7831);function a(l){return i(this.__data__,l)>-1}o.exports=a},2777(o,p,e){var i=e(7831);function a(l,u){var d=this.__data__,f=i(d,l);return f<0?(++this.size,d.push([l,u])):d[f][1]=u,this}o.exports=a},4614(o,p,e){var i=e(3219),a=e(7321),l=e(2565);function u(){this.size=0,this.__data__={hash:new i,map:new(l||a),string:new i}}o.exports=u},9504(o,p,e){var i=e(9257);function a(l){var u=i(this,l).delete(l);return this.size-=u?1:0,u}o.exports=a},9251(o,p,e){var i=e(9257);function a(l){return i(this,l).get(l)}o.exports=a},5791(o,p,e){var i=e(9257);function a(l){return i(this,l).has(l)}o.exports=a},1511(o,p,e){var i=e(9257);function a(l,u){var d=i(this,l),f=d.size;return d.set(l,u),this.size+=d.size==f?0:1,this}o.exports=a},3426(o,p,e){var i=e(8590),a=500;function l(u){var d=i(u,function(g){return f.size===a&&f.clear(),g}),f=d.cache;return d}o.exports=l},9444(o,p,e){var i=e(5592),a=i(Object,"create");o.exports=a},9692(o,p,e){var i=e(7937),a=i(Object.keys,Object);o.exports=a},1779(o){function p(e){var i=[];if(e!=null)for(var a in Object(e))i.push(a);return i}o.exports=p},1587(o,p,e){o=e.nmd(o);var i=e(6710),a=p&&!p.nodeType&&p,l=a&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===a,d=u&&i.process,f=function(){try{var g=l&&l.require&&l.require("util").types;return g||d&&d.binding&&d.binding("util")}catch{}}();o.exports=f},7748(o){var p=Object.prototype,e=p.toString;function i(a){return e.call(a)}o.exports=i},7937(o){function p(e,i){return function(a){return e(i(a))}}o.exports=p},8619(o,p,e){var i=e(6047),a=Math.max;function l(u,d,f){return d=a(d===void 0?u.length-1:d,0),function(){for(var g=arguments,v=-1,w=a(g.length-d,0),x=Array(w);++v<w;)x[v]=g[d+v];v=-1;for(var O=Array(d+1);++v<d;)O[v]=g[v];return O[d]=f(x),i(u,this,O)}}o.exports=l},907(o,p,e){var i=e(6710),a=typeof self=="object"&&self&&self.Object===Object&&self,l=i||a||Function("return this")();o.exports=l},5760(o){function p(e,i){if(!(i==="constructor"&&typeof e[i]=="function")&&i!="__proto__")return e[i]}o.exports=p},9599(o,p,e){var i=e(7680),a=e(6101),l=a(i);o.exports=l},6101(o){var p=800,e=16,i=Date.now;function a(l){var u=0,d=0;return function(){var f=i(),g=e-(f-d);if(d=f,g>0){if(++u>=p)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}o.exports=a},1306(o,p,e){var i=e(7321);function a(){this.__data__=new i,this.size=0}o.exports=a},3180(o){function p(e){var i=this.__data__,a=i.delete(e);return this.size=i.size,a}o.exports=p},5247(o){function p(e){return this.__data__.get(e)}o.exports=p},2835(o){function p(e){return this.__data__.has(e)}o.exports=p},9179(o,p,e){var i=e(7321),a=e(2565),l=e(111),u=200;function d(f,g){var v=this.__data__;if(v instanceof i){var w=v.__data__;if(!a||w.length<u-1)return w.push([f,g]),this.size=++v.size,this;v=this.__data__=new l(w)}return v.set(f,g),this.size=v.size,this}o.exports=d},4352(o,p,e){var i=e(3426),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=i(function(d){var f=[];return d.charCodeAt(0)===46&&f.push(""),d.replace(a,function(g,v,w,x){f.push(w?x.replace(l,"$1"):v||g)}),f});o.exports=u},5155(o,p,e){var i=e(7964),a=1/0;function l(u){if(typeof u=="string"||i(u))return u;var d=u+"";return d=="0"&&1/u==-a?"-0":d}o.exports=l},8815(o){var p=Function.prototype,e=p.toString;function i(a){if(a!=null){try{return e.call(a)}catch{}try{return a+""}catch{}}return""}o.exports=i},5082(o){var p=/\s/;function e(i){for(var a=i.length;a--&&p.test(i.charAt(a)););return a}o.exports=e},8313(o,p,e){var i=e(6057),a=1,l=4;function u(d){return i(d,a|l)}o.exports=u},6148(o){function p(e){return function(){return e}}o.exports=p},671(o,p,e){var i=e(9323),a=e(5062),l=e(9480),u="Expected a function",d=Math.max,f=Math.min;function g(v,w,x){var O,$,F,N,L,B,z=0,ie=!1,R=!1,ae=!0;if(typeof v!="function")throw new TypeError(u);w=l(w)||0,i(x)&&(ie=!!x.leading,R="maxWait"in x,F=R?d(l(x.maxWait)||0,w):F,ae="trailing"in x?!!x.trailing:ae);function A(J){var ye=O,He=$;return O=$=void 0,z=J,N=v.apply(He,ye),N}function ce(J){return z=J,L=setTimeout(re,w),ie?A(J):N}function le(J){var ye=J-B,He=J-z,rt=w-ye;return R?f(rt,F-He):rt}function ue(J){var ye=J-B,He=J-z;return B===void 0||ye>=w||ye<0||R&&He>=F}function re(){var J=a();if(ue(J))return fe(J);L=setTimeout(re,le(J))}function fe(J){return L=void 0,ae&&O?A(J):(O=$=void 0,N)}function pe(){L!==void 0&&clearTimeout(L),z=0,O=B=$=L=void 0}function W(){return L===void 0?N:fe(a())}function we(){var J=a(),ye=ue(J);if(O=arguments,$=this,B=J,ye){if(L===void 0)return ce(B);if(R)return clearTimeout(L),L=setTimeout(re,w),A(B)}return L===void 0&&(L=setTimeout(re,w)),N}return we.cancel=pe,we.flush=W,we}o.exports=g},9506(o){function p(e,i){return e===i||e!==e&&i!==i}o.exports=p},2438(o,p,e){var i=e(3208);function a(l,u,d){var f=l==null?void 0:i(l,u);return f===void 0?d:f}o.exports=a},2146(o,p,e){var i=e(2780),a=e(5728);function l(u,d){return u!=null&&a(u,d,i)}o.exports=l},4846(o){function p(e){return e}o.exports=p},1750(o,p,e){var i=e(2960),a=e(2292),l=Object.prototype,u=l.hasOwnProperty,d=l.propertyIsEnumerable,f=i(function(){return arguments}())?i:function(g){return a(g)&&u.call(g,"callee")&&!d.call(g,"callee")};o.exports=f},2619(o){var p=Array.isArray;o.exports=p},644(o,p,e){var i=e(860),a=e(5300);function l(u){return u!=null&&a(u.length)&&!i(u)}o.exports=l},1891(o,p,e){var i=e(644),a=e(2292);function l(u){return a(u)&&i(u)}o.exports=l},3446(o,p,e){o=e.nmd(o);var i=e(907),a=e(9349),l=p&&!p.nodeType&&p,u=l&&!0&&o&&!o.nodeType&&o,d=u&&u.exports===l,f=d?i.Buffer:void 0,g=f?f.isBuffer:void 0,v=g||a;o.exports=v},860(o,p,e){var i=e(1490),a=e(9323),l="[object AsyncFunction]",u="[object Function]",d="[object GeneratorFunction]",f="[object Proxy]";function g(v){if(!a(v))return!1;var w=i(v);return w==u||w==d||w==l||w==f}o.exports=g},5300(o){var p=9007199254740991;function e(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=p}o.exports=e},7884(o,p,e){var i=e(9694),a=e(1155),l=e(1587),u=l&&l.isMap,d=u?a(u):i;o.exports=d},9323(o){function p(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}o.exports=p},2292(o){function p(e){return e!=null&&typeof e=="object"}o.exports=p},1281(o,p,e){var i=e(1490),a=e(553),l=e(2292),u="[object Object]",d=Function.prototype,f=Object.prototype,g=d.toString,v=f.hasOwnProperty,w=g.call(Object);function x(O){if(!l(O)||i(O)!=u)return!1;var $=a(O);if($===null)return!0;var F=v.call($,"constructor")&&$.constructor;return typeof F=="function"&&F instanceof F&&g.call(F)==w}o.exports=x},5070(o,p,e){var i=e(8172),a=e(1155),l=e(1587),u=l&&l.isSet,d=u?a(u):i;o.exports=d},7964(o,p,e){var i=e(1490),a=e(2292),l="[object Symbol]";function u(d){return typeof d=="symbol"||a(d)&&i(d)==l}o.exports=u},3133(o,p,e){var i=e(5283),a=e(1155),l=e(1587),u=l&&l.isTypedArray,d=u?a(u):i;o.exports=d},2096(o,p,e){var i=e(3737),a=e(2322),l=e(644);function u(d){return l(d)?i(d):a(d)}o.exports=u},7999(o,p,e){var i=e(3737),a=e(5045),l=e(644);function u(d){return l(d)?i(d,!0):a(d)}o.exports=u},8590(o,p,e){var i=e(111),a="Expected a function";function l(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new TypeError(a);var f=function(){var g=arguments,v=d?d.apply(this,g):g[0],w=f.cache;if(w.has(v))return w.get(v);var x=u.apply(this,g);return f.cache=w.set(v,x)||w,x};return f.cache=new(l.Cache||i),f}l.Cache=i,o.exports=l},8970(o,p,e){var i=e(3912),a=e(2917),l=a(function(u,d,f){i(u,d,f)});o.exports=l},5062(o,p,e){var i=e(907),a=function(){return i.Date.now()};o.exports=a},2154(o,p,e){var i=e(604);function a(l,u,d){return l==null?l:i(l,u,d)}o.exports=a},5615(o){function p(){return[]}o.exports=p},9349(o){function p(){return!1}o.exports=p},6712(o,p,e){var i=e(671),a=e(9323),l="Expected a function";function u(d,f,g){var v=!0,w=!0;if(typeof d!="function")throw new TypeError(l);return a(g)&&(v="leading"in g?!!g.leading:v,w="trailing"in g?!!g.trailing:w),i(d,f,{leading:v,maxWait:f,trailing:w})}o.exports=u},9480(o,p,e){var i=e(6),a=e(9323),l=e(7964),u=NaN,d=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,g=/^0o[0-7]+$/i,v=parseInt;function w(x){if(typeof x=="number")return x;if(l(x))return u;if(a(x)){var O=typeof x.valueOf=="function"?x.valueOf():x;x=a(O)?O+"":O}if(typeof x!="string")return x===0?x:+x;x=i(x);var $=f.test(x);return $||g.test(x)?v(x.slice(2),$?2:8):d.test(x)?u:+x}o.exports=w},4514(o,p,e){var i=e(7145),a=e(7999);function l(u){return i(u,a(u))}o.exports=l},7164(o,p,e){var i=e(1978);function a(l){return l==null?"":i(l)}o.exports=a},5360(o,p){"use strict";/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var e=typeof Symbol=="function"&&Symbol.for,i=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,l=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,d=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,g=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,w=e?Symbol.for("react.concurrent_mode"):60111,x=e?Symbol.for("react.forward_ref"):60112,O=e?Symbol.for("react.suspense"):60113,$=e?Symbol.for("react.suspense_list"):60120,F=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,L=e?Symbol.for("react.block"):60121,B=e?Symbol.for("react.fundamental"):60117,z=e?Symbol.for("react.responder"):60118,ie=e?Symbol.for("react.scope"):60119;function R(A){if(typeof A=="object"&&A!==null){var ce=A.$$typeof;switch(ce){case i:switch(A=A.type,A){case v:case w:case l:case d:case u:case O:return A;default:switch(A=A&&A.$$typeof,A){case g:case x:case N:case F:case f:return A;default:return ce}}case a:return ce}}}function ae(A){return R(A)===w}p.AsyncMode=v,p.ConcurrentMode=w,p.ContextConsumer=g,p.ContextProvider=f,p.Element=i,p.ForwardRef=x,p.Fragment=l,p.Lazy=N,p.Memo=F,p.Portal=a,p.Profiler=d,p.StrictMode=u,p.Suspense=O,p.isAsyncMode=function(A){return ae(A)||R(A)===v},p.isConcurrentMode=ae,p.isContextConsumer=function(A){return R(A)===g},p.isContextProvider=function(A){return R(A)===f},p.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===i},p.isForwardRef=function(A){return R(A)===x},p.isFragment=function(A){return R(A)===l},p.isLazy=function(A){return R(A)===N},p.isMemo=function(A){return R(A)===F},p.isPortal=function(A){return R(A)===a},p.isProfiler=function(A){return R(A)===d},p.isStrictMode=function(A){return R(A)===u},p.isSuspense=function(A){return R(A)===O},p.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===l||A===w||A===d||A===u||A===O||A===$||typeof A=="object"&&A!==null&&(A.$$typeof===N||A.$$typeof===F||A.$$typeof===f||A.$$typeof===g||A.$$typeof===x||A.$$typeof===B||A.$$typeof===z||A.$$typeof===ie||A.$$typeof===L)},p.typeOf=R},7020(o,p,e){"use strict";o.exports=e(5360)},162(o){o.exports=function(e,i,a,l){var u=a?a.call(l,e,i):void 0;if(u!==void 0)return!!u;if(e===i)return!0;if(typeof e!="object"||!e||typeof i!="object"||!i)return!1;var d=Object.keys(e),f=Object.keys(i);if(d.length!==f.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(i),v=0;v<d.length;v++){var w=d[v];if(!g(w))return!1;var x=e[w],O=i[w];if(u=a?a.call(l,x,O,w):void 0,u===!1||u===void 0&&x!==O)return!1}return!0}},4883(o){"use strict";o.exports=fr}},_e={};function Z(o){var p=_e[o];if(p!==void 0)return p.exports;var e=_e[o]={id:o,loaded:!1,exports:{}};return St[o](e,e.exports,Z),e.loaded=!0,e.exports}Z.n=o=>{var p=o&&o.__esModule?()=>o.default:()=>o;return Z.d(p,{a:p}),p},Z.d=(o,p)=>{for(var e in p)Z.o(p,e)&&!Z.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:p[e]})},Z.o=(o,p)=>Object.prototype.hasOwnProperty.call(o,p),Z.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},Z.nmd=o=>(o.paths=[],o.children||(o.children=[]),o),(()=>{var o;globalThis.importScripts&&(o=globalThis.location+"");var p=globalThis.document;if(!o&&p&&(p.currentScript&&p.currentScript.tagName.toUpperCase()==="SCRIPT"&&(o=p.currentScript.src),!o)){var e=p.getElementsByTagName("script");if(e.length)for(var i=e.length-1;i>-1&&(!o||!/^http(s?):/.test(o));)o=e[i--].src}if(!o)throw new Error("Automatic publicPath is not supported in this browser");o=o.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),Z.p=o+"../"})(),Z.nc=void 0;var kt={};return(()=>{"use strict";Z.r(kt),Z.d(kt,{CAppBridge:()=>Nn,Event:()=>ae,LaunchMode:()=>z,MicroAppManager:()=>ie,ScriptLoader:()=>Lr,ScriptingObject:()=>fe,SecurityContext:()=>o,StyleLoader:()=>Dr});var o=(r=>(r.USER="USER",r.PARTNER="PARTNER",r))(o||{}),p=Z(8313),e=Z.n(p),i=Z(2438),a=Z.n(i),l=Z(2154),u=Z.n(l),d=Z(2146),f=Z.n(d),g=Z(8970),v=Z.n(g);const w=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}'),x="latest",O=r=>r.replace(/([^:]\/)\/+/g,"$1"),$=r=>{const t=document.createElement("a");return t.href=r,t.href},F=r=>r?.replace?.(/\/?$/,"/"),N=(r,t)=>`${r.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`,L=()=>window.navigator.userAgent.includes("jsdom"),B=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var z=(r=>(r.DEVELOPMENT="development",r.PRODUCTION="production",r))(z||{}),ie=(r=>(r.SSF="ssf",r.APPSDK="appsdk",r))(ie||{});class R{#e=w;#t;#r;constructor(t){this.#t=t?.version||x,this.#r=F(t?.baseUrl||"")}#o=t=>{const{activeEnv:n,env:s,...c}=t,h=s[n]||{};this.#e=v()({},c,h)};get=(t="",n=null)=>e()(a()(this.#e,t,n));set=(t,n)=>{u()(this.#e,t,n)};has=(t="")=>f()(this.#e,t);setPreloadedConfig=t=>{this.#e=t};#n=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#r)){const n=this.#t.match(/^(?:\d+\.\d+)*/g);return F(`${this.#r}${n?.[0]||x}`)}return this.#r};load=async t=>{const n=t??`${this.#n()}app.config.json`;let s;try{s=await fetch(n)}catch(c){if(!t&&this.#t!==x){await this.load(`${this.#r}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:c})}if(s.ok)try{const c=await s.json();this.#o(c)}catch(c){if(!t&&this.#t!==x)await this.load(`${this.#r}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:c})}else{if(!t&&this.#t!==x){await this.load(`${this.#r}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}class ae{name;objectId;id;constructor(t){const{name:n,objectId:s}=t;if(!n)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");this.objectId=s,this.name=n,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class A{static[Symbol.hasInstance](t){return typeof t=="object"&&t!==null&&"getType"in t&&typeof t.getType=="function"&&t.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(t){const{name:n,objectId:s,eventSrc:c}=t;if(!n)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");if(!c)throw new Error("Event source is required");this.objectId=s,this.name=n,this.#e=c,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=t=>this.#e.subscribe({eventId:this.id,callback:t});unsubscribe=t=>{this.#e.unsubscribe({eventId:this.id,token:t})}}const ce=r=>r instanceof ae,le=(r,t)=>`${r.toLowerCase()}.${t.toLowerCase()}`,ue="function",re=(r,t)=>typeof r===ue&&!!t&&!t.startsWith("_");class fe{#e;#t="Object";constructor(t,n){this.#e=t,this.#t=n||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const t=[],n=[];return Object.keys(this).forEach(s=>{const c=this[s];ce(c)?n.push(s):re(c,s)&&t.push(s)}),{objectId:this.#e,objectType:this.#t,functions:t,events:n}};_dispose=()=>{};dispose=()=>{}}var pe=Z(6712),W=Z.n(pe);const J={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ye;const He=new Uint8Array(16);function rt(){if(!ye&&(ye=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ye))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ye(He)}var Ut;const ve=[];for(let r=0;r<256;++r)ve.push((r+256).toString(16).slice(1));function At(r,t=0){return ve[r[t+0]]+ve[r[t+1]]+ve[r[t+2]]+ve[r[t+3]]+"-"+ve[r[t+4]]+ve[r[t+5]]+"-"+ve[r[t+6]]+ve[r[t+7]]+"-"+ve[r[t+8]]+ve[r[t+9]]+"-"+ve[r[t+10]]+ve[r[t+11]]+ve[r[t+12]]+ve[r[t+13]]+ve[r[t+14]]+ve[r[t+15]]}function hr(r,t=0){const n=At(r,t);if(!Ut(n))throw TypeError("Stringified UUID is invalid");return n}const gr=null;function zt(r,t,n){if(J.randomUUID&&!t&&!r)return J.randomUUID();r=r||{};const s=r.random||(r.rng||rt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let c=0;c<16;++c)t[n+c]=s[c];return t}return At(s)}const Et=zt;var nt=(r=>(r.Analytics="analytics",r.Application="application",r.Auth="auth",r.Form="form",r.Global="global",r.Http="http",r.Loan="loan",r.LoanV2="loanV2",r.MemStorage="memstorage",r.Module="module",r.Service="service",r.Session="session",r.Styling="styling",r.Transaction="transaction",r.TransactionTemplate="transactiontemplate",r.WebSocket="websocket",r))(nt||{});const Ct="module";var Bt=(r=>(r.USER="USER",r.PARTNER="PARTNER",r))(Bt||{});class Vt{#e=t=>t.trim().toLowerCase();#t=new Map;#r=new Map;#o=t=>{const{so:n,guestId:s}=t,c=this.#e(n.id),h=this.#r.get(s);if(!h)this.#r.set(s,new Map([[c,t]]));else{if(h.has(c))throw new Error(`Scripting Object ${n.id} already exists for guest ${s}`);h.set(c,t)}};#n=({so:t})=>{if(t._dispose&&typeof t._dispose=="function")try{t._dispose()}catch{}};#i=({objectId:t,guestId:n})=>{if(t===Ct&&!n)for(const[,c]of this.#r){const h=c.get(t);if(h)return h}const s=n?this.#r.get(n):null;return s?s.get(t)??null:null};#s=({objectId:t,guestId:n}={})=>{if(n){if(!t){const c=this.#r.get(n);c&&c.forEach(this.#n),this.#r.delete(n);return}const s=this.#r.get(n);if(s){const c=s.get(t);c&&this.#n(c),s.delete(t)}}else t&&this.#r.forEach(s=>{const c=s.get(t);c&&this.#n(c),s.delete(t)})};addScriptingObject=(t,n)=>{const{guestId:s}=n||{};if(!t?.id||!t?._toJSON)throw new Error("Object is not derived from ScriptingObject");const c=this.#e(t.id);if(c===Ct&&!s)throw new Error("Guest id is required to add Module scripting object");if(s){this.#o({so:t,...n,guestId:s});return}if(this.#t.has(c))throw new Error(`Scripting Object ${t.id} already exists`);this.#t.set(c,{so:t,...n})};getObject=(t,n)=>{const s=this.#e(t);let c=this.#i({objectId:s,guestId:n?.id});c=c??this.#t.get(s)??null;const{so:h}=c||{};return h||null};has=(t,n)=>this.getObject(t,n)!==null;listScriptingObjects=t=>{const n=new Set(this.#t.keys()),s=this.#r.get(t);if(s)for(const c of s.keys())n.add(c);return Array.from(n)};removeScriptingObject=(t,n)=>{const s=this.#e(t);if(n)this.#s({objectId:s,guestId:n});else{this.#s({objectId:s});const c=this.#t.get(s);c&&this.#n(c),this.#t.delete(s)}};removeAllScriptingObjects=t=>{t?this.#s({guestId:t}):(this.#t.forEach(this.#n),this.#t.clear())}}class Gt{__TYPE__="Proxy";id;objectType;constructor(t,n){this.id=t,this.objectType=n}}const Ot=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";class Ht{#e=new Map;#t=new WeakMap;#r;constructor(t){this.#r=t}#o=(t,n)=>{const s=new Promise(c=>{setTimeout(()=>{c()},n)});return Promise.race([t,s])};#n=t=>{const{eventName:n,scriptingObject:s,eventParams:c,listeners:h}=t;h.forEach(m=>{m.criteria&&!(c&&this.#s(c,m.criteria))||Promise.resolve(m.callback({obj:s,eventName:n,eventParams:c})).catch(b=>{this.#r?.warn(`Error in event listener for "${n}": ${b.message}`)})})};#i=async({eventId:t,eventName:n,scriptingObject:s,eventParams:c,feedbackWaitTime:h})=>{const b=(this.#e.get(t)||[]).map(E=>E.criteria&&!(c?this.#s(c,E.criteria):!1)?Promise.resolve():this.#o(E.callback({obj:s,eventName:n,eventParams:c}),h));return(await Promise.all(b)).flat(1/0).filter(E=>E!==void 0)};#s(t,n){return Object.entries(n).every(([s,c])=>{const h=t[s];if("eq"in c)return h===c.eq;if("in"in c)return Array.isArray(c.in)&&c.in.includes(h);if("includes"in c)return Array.isArray(h)&&h.includes(c.includes);if("gt"in c){const m=typeof h=="number"?h:Number(h);return!Number.isNaN(m)&&m>c.gt}if("lt"in c){const m=typeof h=="number"?h:Number(h);return!Number.isNaN(m)&&m<c.lt}if("regex"in c){let m=this.#t.get(c);if(m===void 0){try{m=new RegExp(c.regex)}catch{m=null}this.#t.set(c,m)}return m!==null&&typeof h=="string"&&m.test(h)}return!1})}dispatchEvent=async(t,n)=>{const{event:{id:s,name:c},eventParams:h,eventOptions:m}=n,{timeout:b}=m??{};if(!s)throw new Error("Event Id is required");const S=this.#e.get(s)||[];return!b||b<=0?(this.#n({eventName:c,scriptingObject:t,eventParams:h,listeners:S}),Promise.resolve()):this.#i({eventId:s,eventName:c,scriptingObject:t,eventParams:h,feedbackWaitTime:b})};subscribe=t=>{const{eventId:n,callback:s,criteria:c}=t;if(!n)throw new Error("eventId is required");if(!s)throw new Error("Callback is required");const h=this.#e.get(n)||[],m=Et();return h.push({token:m,criteria:c,callback:s}),this.#e.set(n,h),m};unsubscribe=t=>{const{eventId:n,token:s}=t;if(!n)throw new Error("eventId id is required");if(s){const c=this.#e.get(n)||[],h=c.findIndex(m=>m.token===s);h>-1&&(c.splice(h,1),this.#e.set(n,c))}else this.#e.delete(n)};unsubscribeAll=()=>{this.#e.clear()}}const Tt=Z.p+"assets/frame.4cbbcfa9ded96b660559.html?resource",ft="pui-app-container-",Wt=({id:r,instanceId:t,manifestPath:n,hostUrl:s,options:c})=>new Promise((h,m)=>{const b=document.createElement("div");b.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const S=document.createElement("iframe");S.setAttribute("id",t),S.setAttribute("data-testid",r),S.setAttribute("title",c.title),S.setAttribute("allowfullscreen","true"),S.setAttribute("allowtransparency","true"),c.permissionPolicy&&S.setAttribute("allow",c.permissionPolicy),c.sandbox&&S.setAttribute("sandbox",c.sandbox),S.setAttribute("style",c.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;");const E=c.src??Tt.default??Tt;let T=E;if(c.queryParams){const D=c.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");T=`${E}${E.includes("?")?"&":"?"}${D}`}S.setAttribute("src",T);const I=1e4;let k=!1;const K=setTimeout(()=>{k||(k=!0,m(new Error(`iframe for ${r} failed to load within ${I}ms`)))},I);S.addEventListener("error",()=>{k||(k=!0,clearTimeout(K),m(new Error(`iframe for ${r} failed to load`)))}),S.addEventListener("load",()=>{if(k||!S.contentDocument)return;k=!0,clearTimeout(K);const D=S.contentDocument,ne=D.getElementById(ft);ne&&(ne.id=`${ne.id}${r}`);let Y=D.getElementsByTagName("base")?.[0];Y?Y.href=new URL(n,s).href:(Y=D.createElement("base"),Y.href=new URL(n,s).href,D.getElementsByTagName("head")[0].appendChild(Y)),h(S)}),b.appendChild(S);const{containerId:V}=c;(document.getElementById(V??"")??document.body).appendChild(b)}),Pt=r=>document.getElementById(r),Re={create:Wt,remove:r=>{const t=Pt(r);t&&t.parentElement?.remove()},get:Pt},_=()=>({breakpoints:["512px","768px","1024px","350px"],spaces:["0","4px","8px","12px","16px","32px","48px","56px","64px","72px"],fontSizes:["0.8461rem","0.9230rem","1rem","1.0769rem","1.2307rem","1.3846rem","1.8461rem","2.7692rem"],fontWeights:[100,200,300,400,500,600,700,800,900],lineHeights:["1rem","1.15rem","1.25rem","1.5rem"],letterSpacings:["normal","0.1rem","-0.05rem","0.25rem"],fonts:["proxima-nova, Arial, sans-serif"],colors:{neutral:["#FFFFFF","#F6F7F9","#EBEDF0","#E0E3E8","#CBCFD7","#B0B9C8","#8C93A6","#697489","#464F5C","#353C46","#25292F"],brand:["#F6FBFF","#EBF6FF","#A3D6FF","#52A6EC","#1394E5","#1E79C2","#006AA9","#005181","#C9E7FF"],success:["#E1F4ED","#E1F4ED","#289F6B","#207E56","#185D44"],warning:["#FFEFD8","#E06C29","#B25119","#853C12"],danger:["#FBEBED","#FBEBED","#ED5A64","#C64252","#A11B2B"]},shadows:["0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)","0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)","0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)","0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)","0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)"],zIndex:[1e3,2e3,3e3,500,4e3],states:[null,"@media (prefers-reduced-motion: no-preference)","@media (prefers-reduced-motion: reduce)","&:first-child","&:last-child","&:odd","&:even","&:visited","&:checked","&:focus-within","&:hover","&:focus","&:focus-visible","&:active","&:disabled, &[aria-disabled=true]","&::placeholder"]});var We=Z(7020),Ee=Z(4883),Ue=Z.n(Ee),st=Z(162),ze=Z.n(st);function Ce(r){function t(M,P,j,G,y){for(var q=0,C=0,he=0,ee=0,se,H,xe=0,Pe=0,Q,Oe=Q=se=0,te=0,Se=0,wt=0,Ae=0,Nt=j.length,xt=Nt-1,ke,U="",me="",pr="",dr="",Qe;te<Nt;){if(H=j.charCodeAt(te),te===xt&&C+ee+he+q!==0&&(C!==0&&(H=C===47?10:47),ee=he=q=0,Nt++,xt++),C+ee+he+q===0){if(te===xt&&(0<Se&&(U=U.replace(k,"")),0<U.trim().length)){switch(H){case 32:case 9:case 59:case 13:case 10:break;default:U+=j.charAt(te)}H=59}switch(H){case 123:for(U=U.trim(),se=U.charCodeAt(0),Q=1,Ae=++te;te<Nt;){switch(H=j.charCodeAt(te)){case 123:Q++;break;case 125:Q--;break;case 47:switch(H=j.charCodeAt(te+1)){case 42:case 47:e:{for(Oe=te+1;Oe<xt;++Oe)switch(j.charCodeAt(Oe)){case 47:if(H===42&&j.charCodeAt(Oe-1)===42&&te+2!==Oe){te=Oe+1;break e}break;case 10:if(H===47){te=Oe+1;break e}}te=Oe}}break;case 91:H++;case 40:H++;case 34:case 39:for(;te++<xt&&j.charCodeAt(te)!==H;);}if(Q===0)break;te++}switch(Q=j.substring(Ae,te),se===0&&(se=(U=U.replace(I,"").trim()).charCodeAt(0)),se){case 64:switch(0<Se&&(U=U.replace(k,"")),H=U.charCodeAt(1),H){case 100:case 109:case 115:case 45:Se=P;break;default:Se=vt}if(Q=t(P,Se,Q,H,y+1),Ae=Q.length,0<Fe&&(Se=n(vt,U,wt),Qe=b(3,Q,Se,P,De,je,Ae,H,y,G),U=Se.join(""),Qe!==void 0&&(Ae=(Q=Qe.trim()).length)===0&&(H=0,Q="")),0<Ae)switch(H){case 115:U=U.replace(Ze,m);case 100:case 109:case 45:Q=U+"{"+Q+"}";break;case 107:U=U.replace(Y,"$1 $2"),Q=U+"{"+Q+"}",Q=Te===1||Te===2&&h("@"+Q,3)?"@-webkit-"+Q+"@"+Q:"@"+Q;break;default:Q=U+Q,G===112&&(Q=(me+=Q,""))}else Q="";break;default:Q=t(P,n(P,U,wt),Q,G,y+1)}pr+=Q,Q=wt=Se=Oe=se=0,U="",H=j.charCodeAt(++te);break;case 125:case 59:if(U=(0<Se?U.replace(k,""):U).trim(),1<(Ae=U.length))switch(Oe===0&&(se=U.charCodeAt(0),se===45||96<se&&123>se)&&(Ae=(U=U.replace(" ",":")).length),0<Fe&&(Qe=b(1,U,P,M,De,je,me.length,G,y,G))!==void 0&&(Ae=(U=Qe.trim()).length)===0&&(U="\0\0"),se=U.charCodeAt(0),H=U.charCodeAt(1),se){case 0:break;case 64:if(H===105||H===99){dr+=U+j.charAt(te);break}default:U.charCodeAt(Ae-1)!==58&&(me+=c(U,se,H,U.charCodeAt(2)))}wt=Se=Oe=se=0,U="",H=j.charCodeAt(++te)}}switch(H){case 13:case 10:C===47?C=0:1+se===0&&G!==107&&0<U.length&&(Se=1,U+="\0"),0<Fe*dt&&b(0,U,P,M,De,je,me.length,G,y,G),je=1,De++;break;case 59:case 125:if(C+ee+he+q===0){je++;break}default:switch(je++,ke=j.charAt(te),H){case 9:case 32:if(ee+q+C===0)switch(xe){case 44:case 58:case 9:case 32:ke="";break;default:H!==32&&(ke=" ")}break;case 0:ke="\\0";break;case 12:ke="\\f";break;case 11:ke="\\v";break;case 38:ee+C+q===0&&(Se=wt=1,ke="\f"+ke);break;case 108:if(ee+C+q+Ge===0&&0<Oe)switch(te-Oe){case 2:xe===112&&j.charCodeAt(te-3)===58&&(Ge=xe);case 8:Pe===111&&(Ge=Pe)}break;case 58:ee+C+q===0&&(Oe=te);break;case 44:C+he+ee+q===0&&(Se=1,ke+="\r");break;case 34:case 39:C===0&&(ee=ee===H?0:ee===0?H:ee);break;case 91:ee+C+he===0&&q++;break;case 93:ee+C+he===0&&q--;break;case 41:ee+C+q===0&&he--;break;case 40:if(ee+C+q===0){if(se===0)switch(2*xe+3*Pe){case 533:break;default:se=1}he++}break;case 64:C+he+ee+q+Oe+Q===0&&(Q=1);break;case 42:case 47:if(!(0<ee+q+he))switch(C){case 0:switch(2*H+3*j.charCodeAt(te+1)){case 235:C=47;break;case 220:Ae=te,C=42}break;case 42:H===47&&xe===42&&Ae+2!==te&&(j.charCodeAt(Ae+2)===33&&(me+=j.substring(Ae,te+1)),ke="",C=0)}}C===0&&(U+=ke)}Pe=xe,xe=H,te++}if(Ae=me.length,0<Ae){if(Se=P,0<Fe&&(Qe=b(2,me,Se,M,De,je,Ae,G,y,G),Qe!==void 0&&(me=Qe).length===0))return dr+me+pr;if(me=Se.join(",")+"{"+me+"}",Te*Ge!==0){switch(Te!==2||h(me,2)||(Ge=0),Ge){case 111:me=me.replace(de,":-moz-$1")+me;break;case 112:me=me.replace(be,"::-webkit-input-$1")+me.replace(be,"::-moz-$1")+me.replace(be,":-ms-input-$1")+me}Ge=0}}return dr+me+pr}function n(M,P,j){var G=P.trim().split(D);P=G;var y=G.length,q=M.length;switch(q){case 0:case 1:var C=0;for(M=q===0?"":M[0]+" ";C<y;++C)P[C]=s(M,P[C],j).trim();break;default:var he=C=0;for(P=[];C<y;++C)for(var ee=0;ee<q;++ee)P[he++]=s(M[ee]+" ",G[C],j).trim()}return P}function s(M,P,j){var G=P.charCodeAt(0);switch(33>G&&(G=(P=P.trim()).charCodeAt(0)),G){case 38:return P.replace(ne,"$1"+M.trim());case 58:return M.trim()+P.replace(ne,"$1"+M.trim());default:if(0<1*j&&0<P.indexOf("\f"))return P.replace(ne,(M.charCodeAt(0)===58?"":"$1")+M.trim())}return M+P}function c(M,P,j,G){var y=M+";",q=2*P+3*j+4*G;if(q===944){M=y.indexOf(":",9)+1;var C=y.substring(M,y.length-1).trim();return C=y.substring(0,M).trim()+C+";",Te===1||Te===2&&h(C,1)?"-webkit-"+C+C:C}if(Te===0||Te===2&&!h(y,1))return y;switch(q){case 1015:return y.charCodeAt(10)===97?"-webkit-"+y+y:y;case 951:return y.charCodeAt(3)===116?"-webkit-"+y+y:y;case 963:return y.charCodeAt(5)===110?"-webkit-"+y+y:y;case 1009:if(y.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+y+y;case 978:return"-webkit-"+y+"-moz-"+y+y;case 1019:case 983:return"-webkit-"+y+"-moz-"+y+"-ms-"+y+y;case 883:if(y.charCodeAt(8)===45)return"-webkit-"+y+y;if(0<y.indexOf("image-set(",11))return y.replace(pt,"$1-webkit-$2")+y;break;case 932:if(y.charCodeAt(4)===45)switch(y.charCodeAt(5)){case 103:return"-webkit-box-"+y.replace("-grow","")+"-webkit-"+y+"-ms-"+y.replace("grow","positive")+y;case 115:return"-webkit-"+y+"-ms-"+y.replace("shrink","negative")+y;case 98:return"-webkit-"+y+"-ms-"+y.replace("basis","preferred-size")+y}return"-webkit-"+y+"-ms-"+y+y;case 964:return"-webkit-"+y+"-ms-flex-"+y+y;case 1023:if(y.charCodeAt(8)!==99)break;return C=y.substring(y.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+C+"-webkit-"+y+"-ms-flex-pack"+C+y;case 1005:return V.test(y)?y.replace(K,":-webkit-")+y.replace(K,":-moz-")+y:y;case 1e3:switch(C=y.substring(13).trim(),P=C.indexOf("-")+1,C.charCodeAt(0)+C.charCodeAt(P)){case 226:C=y.replace(ge,"tb");break;case 232:C=y.replace(ge,"tb-rl");break;case 220:C=y.replace(ge,"lr");break;default:return y}return"-webkit-"+y+"-ms-"+C+y;case 1017:if(y.indexOf("sticky",9)===-1)break;case 975:switch(P=(y=M).length-10,C=(y.charCodeAt(P)===33?y.substring(0,P):y).substring(M.indexOf(":",7)+1).trim(),q=C.charCodeAt(0)+(C.charCodeAt(7)|0)){case 203:if(111>C.charCodeAt(8))break;case 115:y=y.replace(C,"-webkit-"+C)+";"+y;break;case 207:case 102:y=y.replace(C,"-webkit-"+(102<q?"inline-":"")+"box")+";"+y.replace(C,"-webkit-"+C)+";"+y.replace(C,"-ms-"+C+"box")+";"+y}return y+";";case 938:if(y.charCodeAt(5)===45)switch(y.charCodeAt(6)){case 105:return C=y.replace("-items",""),"-webkit-"+y+"-webkit-box-"+C+"-ms-flex-"+C+y;case 115:return"-webkit-"+y+"-ms-flex-item-"+y.replace($e,"")+y;default:return"-webkit-"+y+"-ms-flex-line-pack"+y.replace("align-content","").replace($e,"")+y}break;case 973:case 989:if(y.charCodeAt(3)!==45||y.charCodeAt(4)===122)break;case 931:case 953:if(Je.test(M)===!0)return(C=M.substring(M.indexOf(":")+1)).charCodeAt(0)===115?c(M.replace("stretch","fill-available"),P,j,G).replace(":fill-available",":stretch"):y.replace(C,"-webkit-"+C)+y.replace(C,"-moz-"+C.replace("fill-",""))+y;break;case 962:if(y="-webkit-"+y+(y.charCodeAt(5)===102?"-ms-"+y:"")+y,j+G===211&&y.charCodeAt(13)===105&&0<y.indexOf("transform",10))return y.substring(0,y.indexOf(";",27)+1).replace(X,"$1-webkit-$2")+y}return y}function h(M,P){var j=M.indexOf(P===1?":":"{"),G=M.substring(0,P!==3?j:10);return j=M.substring(j+1,M.length-1),yt(P!==2?G:G.replace(Ve,"$1"),j,P)}function m(M,P){var j=c(P,P.charCodeAt(0),P.charCodeAt(1),P.charCodeAt(2));return j!==P+";"?j.replace(ut," or ($1)").substring(4):"("+P+")"}function b(M,P,j,G,y,q,C,he,ee,se){for(var H=0,xe=P,Pe;H<Fe;++H)switch(Pe=Ne[H].call(T,M,xe,j,G,y,q,C,he,ee,se)){case void 0:case!1:case!0:case null:break;default:xe=Pe}if(xe!==P)return xe}function S(M){switch(M){case void 0:case null:Fe=Ne.length=0;break;default:if(typeof M=="function")Ne[Fe++]=M;else if(typeof M=="object")for(var P=0,j=M.length;P<j;++P)S(M[P]);else dt=!!M|0}return S}function E(M){return M=M.prefix,M!==void 0&&(yt=null,M?typeof M!="function"?Te=1:(Te=2,yt=M):Te=0),E}function T(M,P){var j=M;if(33>j.charCodeAt(0)&&(j=j.trim()),bt=j,j=[bt],0<Fe){var G=b(-1,P,j,j,De,je,0,0,0,0);G!==void 0&&typeof G=="string"&&(P=G)}var y=t(vt,j,P,0,0);return 0<Fe&&(G=b(-2,y,j,j,De,je,y.length,0,0,0),G!==void 0&&(y=G)),bt="",Ge=0,je=De=1,y}var I=/^\0+/g,k=/[\0\r\f]/g,K=/: */g,V=/zoo|gra/,X=/([,: ])(transform)/g,D=/,\r+?/g,ne=/([\t\r\n ])*\f?&/g,Y=/@(k\w+)\s*(\S*)\s*/,be=/::(place)/g,de=/:(read-only)/g,ge=/[svh]\w+-[tblr]{2}/,Ze=/\(\s*(.*)\s*\)/g,ut=/([\s\S]*?);/g,$e=/-self|flex-/g,Ve=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Je=/stretch|:\s*\w+\-(?:conte|avail)/,pt=/([^-])(image-set\()/,je=1,De=1,Ge=0,Te=1,vt=[],Ne=[],Fe=0,yt=null,dt=0,bt="";return T.use=S,T.set=E,r!==void 0&&E(r),T}const ot=Ce;var it={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Kt=it;function It(r){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=r(n)),t[n]}}var Ke=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ht=It(function(r){return Ke.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),jt=Z(4674),Yt=Z.n(jt),qe,Be,Me,zr,Br,Vr;function Ie(){return(Ie=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r}).apply(this,arguments)}var mr=function(r,t){for(var n=[r[0]],s=0,c=t.length;s<c;s+=1)n.push(t[s],r[s+1]);return n},Xt=function(r){return r!==null&&typeof r=="object"&&(r.toString?r.toString():Object.prototype.toString.call(r))==="[object Object]"&&!(0,We.typeOf)(r)},Rt=Object.freeze([]),Ye=Object.freeze({});function at(r){return typeof r=="function"}function Zt(r){return r.displayName||r.name||"Component"}function Jt(r){return r&&typeof r.styledComponentId=="string"}var Xe=typeof process<"u"&&!0&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",kn="5.3.11",Qt=typeof window<"u"&&"HTMLElement"in window,Gr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&("MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==""?"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY:"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==""&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY)),Hr={},Un={};function zn(){for(var r=arguments.length<=0?void 0:arguments[0],t=[],n=1,s=arguments.length;n<s;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(c){r=r.replace(/%[a-z]/,c)}),r}function Le(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];throw new Error("An error occurred. See https://git.io/JUIaE#"+r+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Wr=function(){function r(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=r.prototype;return t.indexOfGroup=function(n){for(var s=0,c=0;c<n;c++)s+=this.groupSizes[c];return s},t.insertRules=function(n,s){if(n>=this.groupSizes.length){for(var c=this.groupSizes,h=c.length,m=h;n>=m;)(m<<=1)<0&&Le(16,""+n);this.groupSizes=new Uint32Array(m),this.groupSizes.set(c),this.length=m;for(var b=h;b<m;b++)this.groupSizes[b]=0}for(var S=this.indexOfGroup(n+1),E=0,T=s.length;E<T;E++)this.tag.insertRule(S,s[E])&&(this.groupSizes[n]++,S++)},t.clearGroup=function(n){if(n<this.length){var s=this.groupSizes[n],c=this.indexOfGroup(n),h=c+s;this.groupSizes[n]=0;for(var m=c;m<h;m++)this.tag.deleteRule(c)}},t.getGroup=function(n){var s="";if(n>=this.length||this.groupSizes[n]===0)return s;for(var c=this.groupSizes[n],h=this.indexOfGroup(n),m=h+c,b=h;b<m;b++)s+=this.tag.getRule(b)+`/*!sc*/
|
|
9
|
+
`;return s},r}(),Mt=new Map,$t=new Map,gt=1,Ft=function(r){if(Mt.has(r))return Mt.get(r);for(;$t.has(gt);)gt++;var t=gt++;return Mt.set(r,t),$t.set(t,r),t},Kr=function(r){return $t.get(r)},Yr=function(r,t){t>=gt&&(gt=t+1),Mt.set(r,t),$t.set(t,r)},Xr="style["+Xe+'][data-styled-version="5.3.11"]',Zr=new RegExp("^"+Xe+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Jr=function(r,t,n){for(var s,c=n.split(","),h=0,m=c.length;h<m;h++)(s=c[h])&&r.registerName(t,s)},Qr=function(r,t){for(var n=(t.textContent||"").split(`/*!sc*/
|
|
10
|
+
`),s=[],c=0,h=n.length;c<h;c++){var m=n[c].trim();if(m){var b=m.match(Zr);if(b){var S=0|parseInt(b[1],10),E=b[2];S!==0&&(Yr(E,S),Jr(r,E,b[3]),r.getTag().insertRules(S,s)),s.length=0}else s.push(m)}}},_t=function(){return Z.nc},vr=function(r){var t=document.head,n=r||t,s=document.createElement("style"),c=function(b){for(var S=b.childNodes,E=S.length;E>=0;E--){var T=S[E];if(T&&T.nodeType===1&&T.hasAttribute(Xe))return T}}(n),h=c!==void 0?c.nextSibling:null;s.setAttribute(Xe,"active"),s.setAttribute("data-styled-version","5.3.11");var m=_t();return m&&s.setAttribute("nonce",m),n.insertBefore(s,h),s},_r=function(){function r(n){var s=this.element=vr(n);s.appendChild(document.createTextNode("")),this.sheet=function(c){if(c.sheet)return c.sheet;for(var h=document.styleSheets,m=0,b=h.length;m<b;m++){var S=h[m];if(S.ownerNode===c)return S}Le(17)}(s),this.length=0}var t=r.prototype;return t.insertRule=function(n,s){try{return this.sheet.insertRule(s,n),this.length++,!0}catch{return!1}},t.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},t.getRule=function(n){var s=this.sheet.cssRules[n];return s!==void 0&&typeof s.cssText=="string"?s.cssText:""},r}(),qr=function(){function r(n){var s=this.element=vr(n);this.nodes=s.childNodes,this.length=0}var t=r.prototype;return t.insertRule=function(n,s){if(n<=this.length&&n>=0){var c=document.createTextNode(s),h=this.nodes[n];return this.element.insertBefore(c,h||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},r}(),en=function(){function r(n){this.rules=[],this.length=0}var t=r.prototype;return t.insertRule=function(n,s){return n<=this.length&&(this.rules.splice(n,0,s),this.length++,!0)},t.deleteRule=function(n){this.rules.splice(n,1),this.length--},t.getRule=function(n){return n<this.length?this.rules[n]:""},r}(),yr=Qt,tn={isServer:!Qt,useCSSOMInjection:!Gr},ct=function(){function r(n,s,c){n===void 0&&(n=Ye),s===void 0&&(s={}),this.options=Ie({},tn,{},n),this.gs=s,this.names=new Map(c),this.server=!!n.isServer,!this.server&&Qt&&yr&&(yr=!1,function(h){for(var m=document.querySelectorAll(Xr),b=0,S=m.length;b<S;b++){var E=m[b];E&&E.getAttribute(Xe)!=="active"&&(Qr(h,E),E.parentNode&&E.parentNode.removeChild(E))}}(this))}r.registerId=function(n){return Ft(n)};var t=r.prototype;return t.reconstructWithOptions=function(n,s){return s===void 0&&(s=!0),new r(Ie({},this.options,{},n),this.gs,s&&this.names||void 0)},t.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},t.getTag=function(){return this.tag||(this.tag=(c=(s=this.options).isServer,h=s.useCSSOMInjection,m=s.target,n=c?new en(m):h?new _r(m):new qr(m),new Wr(n)));var n,s,c,h,m},t.hasNameForId=function(n,s){return this.names.has(n)&&this.names.get(n).has(s)},t.registerName=function(n,s){if(Ft(n),this.names.has(n))this.names.get(n).add(s);else{var c=new Set;c.add(s),this.names.set(n,c)}},t.insertRules=function(n,s,c){this.registerName(n,s),this.getTag().insertRules(Ft(n),c)},t.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},t.clearRules=function(n){this.getTag().clearGroup(Ft(n)),this.clearNames(n)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(n){for(var s=n.getTag(),c=s.length,h="",m=0;m<c;m++){var b=Kr(m);if(b!==void 0){var S=n.names.get(b),E=s.getGroup(m);if(S&&E&&S.size){var T=Xe+".g"+m+'[id="'+b+'"]',I="";S!==void 0&&S.forEach(function(k){k.length>0&&(I+=k+",")}),h+=""+E+T+'{content:"'+I+`"}/*!sc*/
|
|
11
|
+
`}}}return h}(this)},r}(),rn=/(a)(d)/gi,br=function(r){return String.fromCharCode(r+(r>25?39:97))};function qt(r){var t,n="";for(t=Math.abs(r);t>52;t=t/52|0)n=br(t%52)+n;return(br(t%52)+n).replace(rn,"$1-$2")}var lt=function(r,t){for(var n=t.length;n;)r=33*r^t.charCodeAt(--n);return r},wr=function(r){return lt(5381,r)};function xr(r){for(var t=0;t<r.length;t+=1){var n=r[t];if(at(n)&&!Jt(n))return!1}return!0}var nn=wr("5.3.11"),sn=function(){function r(t,n,s){this.rules=t,this.staticRulesId="",this.isStatic=(s===void 0||s.isStatic)&&xr(t),this.componentId=n,this.baseHash=lt(nn,n),this.baseStyle=s,ct.registerId(n)}return r.prototype.generateAndInjectStyles=function(t,n,s){var c=this.componentId,h=[];if(this.baseStyle&&h.push(this.baseStyle.generateAndInjectStyles(t,n,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&n.hasNameForId(c,this.staticRulesId))h.push(this.staticRulesId);else{var m=et(this.rules,t,n,s).join(""),b=qt(lt(this.baseHash,m)>>>0);if(!n.hasNameForId(c,b)){var S=s(m,"."+b,void 0,c);n.insertRules(c,b,S)}h.push(b),this.staticRulesId=b}else{for(var E=this.rules.length,T=lt(this.baseHash,s.hash),I="",k=0;k<E;k++){var K=this.rules[k];if(typeof K=="string")I+=K;else if(K){var V=et(K,t,n,s),X=Array.isArray(V)?V.join(""):V;T=lt(T,X+k),I+=X}}if(I){var D=qt(T>>>0);if(!n.hasNameForId(c,D)){var ne=s(I,"."+D,void 0,c);n.insertRules(c,D,ne)}h.push(D)}}return h.join(" ")},r}(),on=/^\s*\/\/.*$/gm,an=[":","[",".","#"];function Sr(r){var t,n,s,c,h=r===void 0?Ye:r,m=h.options,b=m===void 0?Ye:m,S=h.plugins,E=S===void 0?Rt:S,T=new ot(b),I=[],k=function(X){function D(ne){if(ne)try{X(ne+"}")}catch{}}return function(ne,Y,be,de,ge,Ze,ut,$e,Ve,Je){switch(ne){case 1:if(Ve===0&&Y.charCodeAt(0)===64)return X(Y+";"),"";break;case 2:if($e===0)return Y+"/*|*/";break;case 3:switch($e){case 102:case 112:return X(be[0]+Y),"";default:return Y+(Je===0?"/*|*/":"")}case-2:Y.split("/*|*/}").forEach(D)}}}(function(X){I.push(X)}),K=function(X,D,ne){return D===0&&an.indexOf(ne[n.length])!==-1||ne.match(c)?X:"."+t};function V(X,D,ne,Y){Y===void 0&&(Y="&");var be=X.replace(on,""),de=D&&ne?ne+" "+D+" { "+be+" }":be;return t=Y,n=D,s=new RegExp("\\"+n+"\\b","g"),c=new RegExp("(\\"+n+"\\b){2,}"),T(ne||!D?"":D,de)}return T.use([].concat(E,[function(X,D,ne){X===2&&ne.length&&ne[0].lastIndexOf(n)>0&&(ne[0]=ne[0].replace(s,K))},k,function(X){if(X===-2){var D=I;return I=[],D}}])),V.hash=E.length?E.reduce(function(X,D){return D.name||Le(15),lt(X,D.name)},5381).toString():"",V}var er=Ue().createContext(),Bn=er.Consumer,tr=Ue().createContext(),Ar=(tr.Consumer,new ct),rr=Sr();function nr(){return(0,Ee.useContext)(er)||Ar}function Er(){return(0,Ee.useContext)(tr)||rr}function cn(r){var t=(0,Ee.useState)(r.stylisPlugins),n=t[0],s=t[1],c=nr(),h=(0,Ee.useMemo)(function(){var b=c;return r.sheet?b=r.sheet:r.target&&(b=b.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(b=b.reconstructWithOptions({useCSSOMInjection:!1})),b},[r.disableCSSOMInjection,r.sheet,r.target]),m=(0,Ee.useMemo)(function(){return Sr({options:{prefix:!r.disableVendorPrefixes},plugins:n})},[r.disableVendorPrefixes,n]);return(0,Ee.useEffect)(function(){ze()(n,r.stylisPlugins)||s(r.stylisPlugins)},[r.stylisPlugins]),Ue().createElement(er.Provider,{value:h},Ue().createElement(tr.Provider,{value:m},r.children))}var Cr=function(){function r(t,n){var s=this;this.inject=function(c,h){h===void 0&&(h=rr);var m=s.name+h.hash;c.hasNameForId(s.id,m)||c.insertRules(s.id,m,h(s.rules,m,"@keyframes"))},this.toString=function(){return Le(12,String(s.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return r.prototype.getName=function(t){return t===void 0&&(t=rr),this.name+t.hash},r}(),ln=/([A-Z])/,un=/([A-Z])/g,pn=/^ms-/,dn=function(r){return"-"+r.toLowerCase()};function Or(r){return ln.test(r)?r.replace(un,dn).replace(pn,"-ms-"):r}var Tr=function(r){return r==null||r===!1||r===""};function et(r,t,n,s){if(Array.isArray(r)){for(var c,h=[],m=0,b=r.length;m<b;m+=1)(c=et(r[m],t,n,s))!==""&&(Array.isArray(c)?h.push.apply(h,c):h.push(c));return h}if(Tr(r))return"";if(Jt(r))return"."+r.styledComponentId;if(at(r)){if(typeof(E=r)!="function"||E.prototype&&E.prototype.isReactComponent||!t)return r;var S=r(t);return et(S,t,n,s)}var E;return r instanceof Cr?n?(r.inject(n,s),r.getName(s)):r:Xt(r)?function T(I,k){var K,V,X=[];for(var D in I)I.hasOwnProperty(D)&&!Tr(I[D])&&(Array.isArray(I[D])&&I[D].isCss||at(I[D])?X.push(Or(D)+":",I[D],";"):Xt(I[D])?X.push.apply(X,T(I[D],D)):X.push(Or(D)+": "+(K=D,(V=I[D])==null||typeof V=="boolean"||V===""?"":typeof V!="number"||V===0||K in Kt||K.startsWith("--")?String(V).trim():V+"px")+";"));return k?[k+" {"].concat(X,["}"]):X}(r):r.toString()}var Pr=function(r){return Array.isArray(r)&&(r.isCss=!0),r};function mt(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return at(r)||Xt(r)?Pr(et(mr(Rt,[r].concat(n)))):n.length===0&&r.length===1&&typeof r[0]=="string"?r:Pr(et(mr(r,n)))}var Vn=/invalid hook call/i,Gn=new Set,Hn=function(r,t){if(0)var n,s,c},sr=function(r,t,n){return n===void 0&&(n=Ye),r.theme!==n.theme&&r.theme||t||n.theme},fn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hn=/(^-|-$)/g;function or(r){return r.replace(fn,"-").replace(hn,"")}var ir=function(r){return qt(wr(r)>>>0)};function Lt(r){return typeof r=="string"&&!0}var ar=function(r){return typeof r=="function"||typeof r=="object"&&r!==null&&!Array.isArray(r)},gn=function(r){return r!=="__proto__"&&r!=="constructor"&&r!=="prototype"};function mn(r,t,n){var s=r[n];ar(t)&&ar(s)?Ir(s,t):r[n]=t}function Ir(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];for(var c=0,h=n;c<h.length;c++){var m=h[c];if(ar(m))for(var b in m)gn(b)&&mn(r,m[b],b)}return r}var tt=Ue().createContext(),Wn=tt.Consumer;function Kn(r){var t=qe(tt),n=Be(function(){return function(s,c){if(!s)return Le(14);if(at(s)){var h=s(c);return h}return Array.isArray(s)||typeof s!="object"?Le(8):c?Ie({},c,{},s):s}(r.theme,t)},[r.theme,t]);return r.children?Me.createElement(tt.Provider,{value:n},r.children):null}var cr={};function jr(r,t,n){var s=Jt(r),c=!Lt(r),h=t.attrs,m=h===void 0?Rt:h,b=t.componentId,S=b===void 0?function(Y,be){var de=typeof Y!="string"?"sc":or(Y);cr[de]=(cr[de]||0)+1;var ge=de+"-"+ir("5.3.11"+de+cr[de]);return be?be+"-"+ge:ge}(t.displayName,t.parentComponentId):b,E=t.displayName,T=E===void 0?function(Y){return Lt(Y)?"styled."+Y:"Styled("+Zt(Y)+")"}(r):E,I=t.displayName&&t.componentId?or(t.displayName)+"-"+t.componentId:t.componentId||S,k=s&&r.attrs?Array.prototype.concat(r.attrs,m).filter(Boolean):m,K=t.shouldForwardProp;s&&r.shouldForwardProp&&(K=t.shouldForwardProp?function(Y,be,de){return r.shouldForwardProp(Y,be,de)&&t.shouldForwardProp(Y,be,de)}:r.shouldForwardProp);var V,X=new sn(n,I,s?r.componentStyle:void 0),D=X.isStatic&&m.length===0,ne=function(Y,be){return function(de,ge,Ze,ut){var $e=de.attrs,Ve=de.componentStyle,Je=de.defaultProps,pt=de.foldedComponentIds,je=de.shouldForwardProp,De=de.styledComponentId,Ge=de.target,Te=function(G,y,q){G===void 0&&(G=Ye);var C=Ie({},y,{theme:G}),he={};return q.forEach(function(ee){var se,H,xe,Pe=ee;for(se in at(Pe)&&(Pe=Pe(C)),Pe)C[se]=he[se]=se==="className"?(H=he[se],xe=Pe[se],H&&xe?H+" "+xe:H||xe):Pe[se]}),[C,he]}(sr(ge,(0,Ee.useContext)(tt),Je)||Ye,ge,$e),vt=Te[0],Ne=Te[1],Fe=function(G,y,q,C){var he=nr(),ee=Er(),se=y?G.generateAndInjectStyles(Ye,he,ee):G.generateAndInjectStyles(q,he,ee);return se}(Ve,ut,vt,void 0),yt=Ze,dt=Ne.$as||ge.$as||Ne.as||ge.as||Ge,bt=Lt(dt),M=Ne!==ge?Ie({},ge,{},Ne):ge,P={};for(var j in M)j[0]!=="$"&&j!=="as"&&(j==="forwardedAs"?P.as=M[j]:(je?je(j,ht,dt):!bt||ht(j))&&(P[j]=M[j]));return ge.style&&Ne.style!==ge.style&&(P.style=Ie({},ge.style,{},Ne.style)),P.className=Array.prototype.concat(pt,De,Fe!==De?Fe:null,ge.className,Ne.className).filter(Boolean).join(" "),P.ref=yt,(0,Ee.createElement)(dt,P)}(V,Y,be,D)};return ne.displayName=T,(V=Ue().forwardRef(ne)).attrs=k,V.componentStyle=X,V.displayName=T,V.shouldForwardProp=K,V.foldedComponentIds=s?Array.prototype.concat(r.foldedComponentIds,r.styledComponentId):Rt,V.styledComponentId=I,V.target=s?r.target:r,V.withComponent=function(Y){var be=t.componentId,de=function(Ze,ut){if(Ze==null)return{};var $e,Ve,Je={},pt=Object.keys(Ze);for(Ve=0;Ve<pt.length;Ve++)$e=pt[Ve],ut.indexOf($e)>=0||(Je[$e]=Ze[$e]);return Je}(t,["componentId"]),ge=be&&be+"-"+(Lt(Y)?Y:or(Zt(Y)));return jr(Y,Ie({},de,{attrs:k,componentId:ge}),n)},Object.defineProperty(V,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(Y){this._foldedDefaultProps=s?Ir({},r.defaultProps,Y):Y}}),Object.defineProperty(V,"toString",{value:function(){return"."+V.styledComponentId}}),c&&Yt()(V,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),V}var Rr=function(r){return function t(n,s,c){if(c===void 0&&(c=Ye),!(0,We.isValidElementType)(s))return Le(1,String(s));var h=function(){return n(s,c,mt.apply(void 0,arguments))};return h.withConfig=function(m){return t(n,s,Ie({},c,{},m))},h.attrs=function(m){return t(n,s,Ie({},c,{attrs:Array.prototype.concat(c.attrs,m).filter(Boolean)}))},h}(jr,r)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(r){Rr[r]=Rr(r)});var vn=function(){function r(n,s){this.rules=n,this.componentId=s,this.isStatic=xr(n),ct.registerId(this.componentId+1)}var t=r.prototype;return t.createStyles=function(n,s,c,h){var m=h(et(this.rules,s,c,h).join(""),""),b=this.componentId+n;c.insertRules(b,b,m)},t.removeStyles=function(n,s){s.clearRules(this.componentId+n)},t.renderStyles=function(n,s,c,h){n>2&&ct.registerId(this.componentId+n),this.removeStyles(n,c),this.createStyles(n,s,c,h)},r}();function Yn(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var c=mt.apply(void 0,[r].concat(n)),h="sc-global-"+ir(JSON.stringify(c)),m=new vn(c,h);function b(E){var T=nr(),I=Er(),k=qe(tt),K=zr(T.allocateGSInstance(h)).current;return T.server&&S(K,E,T,k,I),Br(function(){if(!T.server)return S(K,E,T,k,I),function(){return m.removeStyles(K,T)}},[K,E,T,k,I]),null}function S(E,T,I,k,K){if(m.isStatic)m.renderStyles(E,Hr,I,K);else{var V=Ie({},T,{theme:sr(T,k,b.defaultProps)});m.renderStyles(E,V,I,K)}}return Me.memo(b)}function Xn(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var c=mt.apply(void 0,[r].concat(n)).join(""),h=ir(c);return new Cr(h,c)}var Zn=function(){function r(){var n=this;this._emitSheetCSS=function(){var s=n.instance.toString();if(!s)return"";var c=_t();return"<style "+[c&&'nonce="'+c+'"',Xe+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+s+"</style>"},this.getStyleTags=function(){return n.sealed?Le(2):n._emitSheetCSS()},this.getStyleElement=function(){var s;if(n.sealed)return Le(2);var c=((s={})[Xe]="",s["data-styled-version"]="5.3.11",s.dangerouslySetInnerHTML={__html:n.instance.toString()},s),h=_t();return h&&(c.nonce=h),[Ue().createElement("style",Ie({},c,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new ct({isServer:!0}),this.sealed=!1}var t=r.prototype;return t.collectStyles=function(n){return this.sealed?Le(2):Ue().createElement(cn,{sheet:this.instance},n)},t.interleaveWithNodeStream=function(n){return Le(3)},r}(),Jn=function(r){var t=Me.forwardRef(function(n,s){var c=qe(tt),h=r.defaultProps,m=sr(n,c,h);return Me.createElement(r,Ie({},n,{theme:m,ref:s}))});return Vr(t,r),t.displayName="WithTheme("+Zt(r)+")",t},Qn=function(){return qe(tt)},_n={StyleSheet:ct,masterSheet:Ar};const qn=null,yn=r=>Object.keys(r).reduce((t,n)=>(t[n]=(s,...c)=>mt`
|
|
12
|
+
@media (max-width: ${r[n]}) {
|
|
13
|
+
${mt(s,...c)};
|
|
14
|
+
}
|
|
15
|
+
`,t),{}),bn=r=>({space:{...r.spaces,xxxs:r.spaces[1],xxs:r.spaces[2],xxs2:r.spaces[3],xs:r.spaces[4],s:r.spaces[5],m:r.spaces[6],l:r.spaces[7],xl:r.spaces[8],xxl:r.spaces[9]},fontSizes:{...r.fontSizes,title:{500:r.fontSizes[3],600:r.fontSizes[4],700:r.fontSizes[5],800:r.fontSizes[6],900:r.fontSizes[7]},subTitle:{300:r.fontSizes[1],400:r.fontSizes[2]},label:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},value:{300:r.fontSizes[1],400:r.fontSizes[2],500:r.fontSizes[3],600:r.fontSizes[4]},hyperlink:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},microText:{200:r.fontSizes[0]}},fontWeights:{...r.fontWeights,thin:r.fontWeights[0],light:r.fontWeights[1],regular:r.fontWeights[3],semibold:r.fontWeights[5],bold:r.fontWeights[8]},lineHeights:{...r.lineHeights,r:r.lineHeights[0],m:r.lineHeights[1],l:r.lineHeights[2],xl:r.lineHeights[3]},letterSpacings:{normal:r.letterSpacings[0],tracked:r.letterSpacings[1],tight:r.letterSpacings[2],mega:r.letterSpacings[3]},fonts:{...r.fonts,default:r.fonts[0]},colors:{neutral:{"000":r.colors.neutral[0],"050":r.colors.neutral[1],"080":r.colors.neutral[2],100:r.colors.neutral[3],200:r.colors.neutral[4],300:r.colors.neutral[5],400:r.colors.neutral[6],500:r.colors.neutral[7],600:r.colors.neutral[8],700:r.colors.neutral[9],800:r.colors.neutral[10]},brand:{100:r.colors.brand[0],200:r.colors.brand[1],250:r.colors.brand[8],300:r.colors.brand[2],400:r.colors.brand[3],500:r.colors.brand[4],600:r.colors.brand[5],700:r.colors.brand[6],800:r.colors.brand[7]},success:{300:r.colors.success[0],400:r.colors.success[1],600:r.colors.success[2],900:r.colors.success[3],950:r.colors.success[4]},warning:{400:r.colors.warning[0],500:r.colors.warning[1],600:r.colors.warning[1],900:r.colors.warning[2],950:r.colors.warning[3]},danger:{200:r.colors.danger[0],400:r.colors.danger[1],600:r.colors.danger[2],900:r.colors.danger[3],950:r.colors.danger[4]}},shadows:{xs:r.shadows[0],s:r.shadows[1],m:r.shadows[2],l:r.shadows[3],xl:r.shadows[4]},breakpoints:{...r.breakpoints,xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]},media:yn({xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]}),zIndex:{dialog:r.zIndex[0],popper:r.zIndex[1],tooltip:r.zIndex[2],backdrop:r.zIndex[3],loader:r.zIndex[4]},states:{_:r.states[0],motionSafe:r.states[1],motionReduce:r.states[2],first:r.states[3],last:r.states[4],odd:r.states[5],even:r.states[6],visited:r.states[7],checked:r.states[8],focusWithin:r.states[9],hover:r.states[10],focus:r.states[11],focusVisible:r.states[12],active:r.states[13],disabled:r.states[14],placeholder:r.states[15]}}),wn=((r=_())=>()=>bn(r))(),ts=()=>{try{return window.parent.document,window.parent}catch{return window}},lr=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),Mr=r=>Number(r.replace("px","")),$r=()=>{const{width:r}=lr(),{breakpoints:t}=wn();return r<=Mr(t.small)?"small":r<=Mr(t.medium)?"medium":"large"},xn="microFrontendApps",Sn=()=>!0,An=r=>Sn()?!0:String(r).toLowerCase()===z.PRODUCTION.toLowerCase(),En=r=>r?new URL(r).pathname:"",Cn=r=>{const t=document.createElement("a");return t.href=r,t.href},On=(r,t)=>{const n=t.match(/^(?:\d+\.\d+)*/g);return r.replace(/{SYSTEM_VERSION}/,n&&n[0]||x)},Fr=r=>!r||!r.length?!1:r.every(t=>typeof t=="string"),Tn=(r,t)=>{const{mode:n=z.PRODUCTION}=t;if(String(n).toLowerCase()!==z.PRODUCTION.toLowerCase()&&String(n).toLowerCase()!==z.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(n)}' for ${r}`);const{production:s,development:c,microappManager:h=ie.APPSDK}=t;if(String(h).toLowerCase()===ie.APPSDK.toLowerCase()){if(String(n).toLowerCase()===z.PRODUCTION.toLowerCase()){if(!s)throw new Error(`microFrontendApps.${r} is missing production section in app.config.json`);if(!Fr(s.files))throw new Error("invalid value for production.files")}if(String(n).toLowerCase()===z.DEVELOPMENT.toLowerCase()){if(!c)throw new Error(`microFrontendApps.${r} is missing development section in app.config.json`);if(!Fr(c.files))throw new Error("invalid value for development.files")}}},Pn=({id:r,config:t,version:n="latest"})=>{const{mode:s=z.PRODUCTION,production:c,development:h,...m}=t,b=An(s)?c:h,S=v()({id:r},{name:r,mode:z.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:o.USER,isJsModule:!0},m,{mode:s},b);return S.hostUrl=F(Cn(S.hostUrl||"")),S.homeRoute=F(S.homeRoute)||En(S.hostUrl),S.manifestPath=F(On(S.manifestPath,n)),S};class In{#e=[];init=({version:t,appConfig:n})=>{const s=n.get(xn);s&&(this.#e=Object.keys(s).map(c=>(Tn(c,s[c]),Pn({id:c,config:s[c],version:t}))))};getConfigById=t=>this.#e.find(n=>n.id===t)}const jn="ice-script-";class Lr{#e;constructor(t){this.#e=t}#t=({href:t,isESMModule:n=!0,documentEle:s})=>{const c=s.createElement("link");c.rel=n?"modulepreload":"preload",c.href=t,c.crossOrigin="anonymous",n||(c.as="script"),s.head.appendChild(c)};#r=({id:t,href:n,documentEle:s,isESMModule:c=!0})=>new Promise((h,m)=>{const b=s.createElement("script");b.id=t,b.src=O(n),b.crossOrigin="anonymous",b.nonce="__CSP_NONCE__",!L()&&c?b.type="module":b.async=!1,b.onload=h.bind(null,b.id),b.onerror=S=>{this.#e.error({message:`Error loading script ${b.src}`,exception:new Error(S)}),m(new Error(`Unable to load script ${b.src}`,{cause:new Error(S)}))},s.head.appendChild(b)});load=async(t,n)=>{const{documentEle:s,isESMModule:c}=n,h=/^https?:\/\//i,{cdnAssets:m,nonCdnAssets:b}=t.reduce((E,T,I)=>{const k=`${jn}${n.name.toLowerCase()}-${I}`;if(h.test(T))E.cdnAssets.push({id:k,href:T}),this.#t({href:T,documentEle:s,isESMModule:c});else{const K=new URL(T,n.hostUrl);E.nonCdnAssets.push({id:k,href:K.href}),this.#t({href:K.href,documentEle:s,isESMModule:c})}return E},{cdnAssets:[],nonCdnAssets:[]}),S=[...m,...b];return await Promise.all(S.map(({id:E,href:T})=>this.#r({id:E,href:T,documentEle:s,isESMModule:c}))),S.map(E=>E.id)};remove=(t="",n=document)=>new Promise(s=>{const c=n.getElementById(t);if(!c){this.#e.warn(`script with id ${t} not found`),s();return}c.remove(),s()});removeDynamicImportedScripts=(t,n)=>{const s=new RegExp(B(t),"i"),c=n.getElementsByTagName("script");for(let h=c.length-1;h>=0;h-=1){const m=c[h],{src:b}=m;s.test(b)&&m.remove()}};removePrefetchLinks=(t,n)=>{const s=new RegExp(B(t),"i"),c=n.querySelectorAll('[rel="prefetch"]');for(let h=c.length-1;h>=0;h-=1){const m=c[h],{href:b}=m;s.test(b)&&m.remove()}}}const Rn="ice-style-";class Dr{#e;constructor(t){this.#e=t}#t=({id:t,href:n,documentEle:s})=>new Promise((c,h)=>{const m=s.createElement("link");m.id=t,m.nonce="__CSP_NONCE__",m.rel="stylesheet",m.href=O(n),m.onload=c.bind(null,m.id),m.onerror=b=>{this.#e.error({message:`Error loading stylesheet ${m.href}`,exception:new Error(b)}),h(new Error(`Unable to load stylesheet ${m.href}`,{cause:new Error(b)}))},s.head.appendChild(m)});load=async(t,n)=>{const s=[],c=t.map((h,m)=>{const b=new URL(h,n.hostUrl),S=`${Rn}${n.name.toLowerCase()}-${m}`;return s.push(S),this.#t({id:S,href:b.href,documentEle:n.documentEle})});return await Promise.all(c),s};remove=(t="",n=document)=>new Promise(s=>{const c=n.getElementById(t);if(!c){this.#e.warn(`style with id ${t} not found`),s();return}c.remove(),s()});removeDynamicImportedStyles=(t,n)=>{const s=new RegExp(B(t),"i"),c=n.querySelectorAll('[rel="stylesheet"]');for(let h=c.length-1;h>=0;h-=1){const m=c[h],{href:b}=m;s.test(b)&&m.remove()}}}const Mn=r=>r.replace(/\/\d+\.\d+/,"/latest"),$n=r=>{let t;try{t=new URL(r)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"},ur=new Map,Dt={get:async({hostUrl:r,manifestPath:t})=>{const n=new URL(`${t}manifest.json`,r),s=O(n.href),c=ur.get(s);if(c)return c;const h=async m=>{const b=await fetch(m);if(!b.ok)throw new Error(`unable to get manifest ${m}`);if(!(b.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${m} is not a valid json`);const E=await b.json();return ur.set(m,E),E};try{return await h(s)}catch(m){const b=Mn(t);if(t!==b){const S=O(new URL(`${b}manifest.json`,r).href);return await h(S)}throw m}},getFullFileNameofAssets:(r,t=[])=>t.reduce((n,s)=>{const c=r[s];if(c)n.push(c);else if($n(s))n.push(s);else throw new Error(`unable to locate ${s} in manifest`);return n},[]),clearCache:()=>ur.clear()};class Nr{#e;#t;#r;#o;#n;constructor(t){this.#t=t.guest,this.#e=t.containerId,this.#r=t?.version||x,this.#o=t.soManager,this.#n=t.eventManager}get version(){return this.#r}getObject=t=>{try{const n=this.#o.getObject(t,this.#t);if(!n)return Promise.resolve(null);const s=new Gt(n.id,n.objectType);return Object.keys(n).forEach(c=>{const h=n[c];h instanceof ae?Object.defineProperty(s,c,{value:new ae({name:c,objectId:n.id}),enumerable:!0}):re(h,c)&&Object.defineProperty(s,c,{value:(...m)=>{const b=s[c]?.callContext?.callChain;return Object.defineProperty(h,"callContext",{value:{guest:this.#t,...b?.length?{callChain:b}:{}},configurable:!0,enumerable:!0,writable:!0}),n[c](...m)},enumerable:!0})}),Promise.resolve(s)}catch(n){return Promise.reject(n)}};setAppWindowSize=t=>{if(!this.#e)return;const{size:n}=t,s=document.getElementById(this.#e);s&&(s.style.height=`${n.height}px`,s.style.width=`${n.width}px`)};subscribe=t=>this.#n.subscribe(t);unsubscribe=t=>{this.#n.unsubscribe(t)}}class Fn{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:t,app:n})=>{if(!t)throw new Error("appId is required");if(t==="__proto__"||t==="constructor"||t==="prototype")throw new Error(`Invalid appId: ${t}`);if(!n?.uuid)throw new Error("application uuid is required");if(window.emui[t]=window.emui[t]||[],Array.isArray(window.emui[t])){const s=window.emui[t].findIndex(c=>c.uuid===n.uuid);s>-1?window.emui[t][s]=n:window.emui[t].push(n)}else{let s=window.emui[t];s?.uuid===n.uuid?(s={...s,...n},window.emui[t]=[s]):typeof s.init>"u"?window.emui[t]=[{...s,...n}]:window.emui[t]=[window.emui[t],n]}};get=({id:t,instanceId:n})=>{const s=window.emui?.[t];return Array.isArray(s)?s.find(h=>h.uuid===n)??null:s?.uuid===n?s:null};add=({id:t,instanceId:n,documentEle:s})=>{if(!n)throw new Error(`instanceId (uuid) is required to register application ${t}`);const c={uuid:n,init:null,mount:null,unmount:null},h=window.emui[t];h?Array.isArray(h)?h.push(c):window.emui[t]=[h,c]:window.emui[t]=[c],s.defaultView&&(s.defaultView.emui=s.defaultView.emui??{},s.defaultView.emui.uuid=n)};delete=({id:t,instanceId:n})=>{if(Array.isArray(window.emui[t])){const s=window.emui[t].findIndex(c=>c.uuid===n);s>-1&&window.emui[t].splice(s,1),window.emui[t].length===0&&delete window.emui[t]}else delete window.emui[t]}}const Ln=12e4,kr=["click","scroll","keypress","touchstart"],Dn=/\.css$/,Ur=r=>Dn.test(r);class Nn{#e;#t;#r;#o;#n;#i=new In;#s;#l;#a=new Map;#u=new Map;#c=new Fn;#p=!0;constructor(t){const{logger:n}=t;if(!n)throw new Error("logger is required");this.#e=t.logger,this.#t=t.version,this.#p=t.extendSession??!0,this.#n=new R({version:t.version,baseUrl:t.appConfigBaseUrl}),this.#r=new Lr(n),this.#o=new Dr(n),this.#s=new Vt,this.#l=new Ht(this.#e)}#g(t){return typeof t=="function"}#m=t=>t instanceof A||typeof t?.subscribe=="function";#v=(t,n)=>`Application ${t} with instance id ${n} is not found. Most probably the appId property of app.config.json is not set to ${t}`;#y=(t,n=document)=>{const{elementIds:s}=this.#a.get(t)||{};s&&s.forEach(c=>{const h=n.getElementById(c);h&&h.remove()})};#b=({id:t,instanceId:n,documentEle:s,elementIds:c,microFEHost:h})=>{const m=this.#c.get({id:t,instanceId:n});if(!m)throw new Error(this.#v(t,n));this.#a.set(n,{id:t,instanceId:n,elementIds:c,guest:{guestWindow:s?.defaultView,...m},microFEHost:h})};#w=async({id:t,instanceId:n,containerId:s,hostUrl:c,manifestPath:h,homeRoute:m,initialRoute:b,history:S,theme:E,microFEHost:T})=>{const I=this.#c.get({id:t,instanceId:n});if(!I)throw new Error(`Application ${t} with instance id ${n} is not found. Most probably the appId property of app.config.json is not set to ${t}`);if(!I.init||typeof I.init!="function")throw new Error(`Application ${t} with instance id ${n} doesn't expose init method`);const k=T??new Nr({guest:{id:t},version:this.#t,containerId:s,logger:this.#e,soManager:this.#s,eventManager:this.#l});return I.init({host:k,hostUrl:c,manifestPath:h,homeRoute:m,initialRoute:b,prevState:null,history:S,theme:E,hostBreakpoint:$r(),hostViewportSize:lr(),logger:this.#e})};#x=async t=>{try{const{id:n,instanceId:s,files:c,name:h,hostUrl:m,documentEle:b,isJsModule:S}=t;this.#e.debug(`Application ${n} with instance id ${s} is loading...`);let E=c;const T=t.manifest??await Dt.get(t);E=Dt.getFullFileNameofAssets(T,c);const I=E.filter(D=>Ur(D)),k=E.filter(D=>!Ur(D)),K={name:h,hostUrl:m,documentEle:b,isESMModule:S},[V,X]=await Promise.all([this.#o.load(I,K),this.#r.load(k,K)]);this.#b({id:n,instanceId:s,documentEle:b,elementIds:[...V,...X],microFEHost:t.microFEHost}),t.selfInitialize||await this.#w(t),this.#e.audit(`Application ${n} with instance id ${s} loaded`)}catch(n){const s=`Application load failed. Unable to load one or more resources for ${t.id} with instance id ${t.instanceId}. ${n.message}`;throw this.#e.error({message:s,appId:t.id,exception:n}),new Error(s)}};#d=({id:t,instanceId:n,hostUrl:s,documentEle:c})=>{this.#e.debug(`Application ${t} with instance id ${n} unloading...`),this.#c.get({id:t,instanceId:n})&&(this.#y(n,c),this.#r.removeDynamicImportedScripts(s,c),this.#r.removePrefetchLinks(s,c),this.#o.removeDynamicImportedStyles(s,c),this.#c.delete({id:t,instanceId:n}),this.#e.audit(`Application ${t} with instance id ${n} unloaded`))};#f=async({id:t,instanceId:n})=>{const s=this.#c.get({id:t,instanceId:n});if(!s?.mount||typeof s?.mount!="function")throw new Error(`Application ${t} with instance id ${n} doesn't expose mount method`);return s.mount({containerId:`${ft}${t}`,hostBreakpoint:$r(),hostViewportSize:lr()})};#h=({id:t,instanceId:n})=>{const s=this.#c.get({id:t,instanceId:n});if(!s?.unmount)return null;if(typeof s.unmount!="function")throw new Error(`Application ${t} with instance id ${n} doesn't expose unmount method`);return s.unmount({containerId:`${ft}${t}`})};#S=({id:t,instanceId:n})=>{if(this.#p)try{const s=this.#s.getObject(nt.Application);if(!s){this.#e.warn({message:`Application scripting object not available for ${t} to manage session`});return}const c=this.#a.get(n);if(!c)return;c.keepAlive=W()(async()=>{try{await s.keepSessionAlive()}catch(m){this.#e.error(`Error keeping session alive. ${m.message}`)}},Ln);const h=Re.get(n);kr.forEach(m=>{h?.contentDocument?.addEventListener(m,c.keepAlive)})}catch(s){this.#e.warn({message:`Application scripting object not available for ${t} to manage session`,exception:s})}};#A=(t,n)=>{const h=this.#s.getObject(nt.Module,{id:t})?._setUnloadHandler;typeof h=="function"&&h(()=>this.closeApp(n))};#E=async t=>{const n=this.#s.getObject(nt.Module,{id:t});if(!n)return!0;try{const s=await this.#l.dispatchEvent(n,{event:{id:"module.unloading",name:"unloading"},eventParams:{moduleId:t},eventOptions:{timeout:1e3}});if(Array.isArray(s)&&s.some(c=>c===!1))return this.#e.info(`Unload denied by guest ${t} via module.unloading event`),!1}catch(s){this.#e.warn({message:`Error dispatching module.unloading event for ${t}`,exception:s})}return!0};#C=t=>{if(!this.#p||!t)return;const{keepAlive:n,instanceId:s}=t;if(n){const h=Re.get(s)?.contentDocument;h&&kr.forEach(m=>{h.removeEventListener(m,n)}),t.keepAlive?.cancel()}};addScriptingObject=(t,n)=>{if(Ot(t)){const s=this.cloneScriptingObject(t);this.#s.addScriptingObject(s,n)}else this.#s.addScriptingObject(t,n)};cloneScriptingObject=t=>{if(!t)throw new Error("proxy is required");const n=new fe(t.id,t.objectType);let s=[];return Object.keys(t).forEach(c=>{const h=t[c];if(this.#m(h)){const m=new ae({name:h.name||c,objectId:n.id});Object.defineProperty(n,c,{value:m,enumerable:!0});const b=({eventParams:E,eventOptions:T})=>this.dispatchEvent({event:m,eventParams:E,eventOptions:T}),S=h.subscribe(b);s.push(()=>{h.unsubscribe(S)})}else if(this.#g(h)&&(Object.defineProperty(n,c,{value:async(...m)=>{const b=n[c]?.callContext;if(b?.guest){const E=b.callChain??[],T=b.guest.id,I=this.#u.get(T),k={id:T};I&&(k.metadata=I),Object.defineProperty(h,"callContext",{value:{callChain:[...E,k]},configurable:!0,enumerable:!0,writable:!0})}const S=await h(...m);return Ot(S)?this.cloneScriptingObject(S):S},enumerable:!0}),c==="dispose")){const m=n.dispose;Object.defineProperty(n,c,{value:()=>(n._dispose(),m.apply(n)),enumerable:!0})}}),n._dispose=()=>{s.forEach(c=>{c?.()}),s=[]},n};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async t=>{if(!t)throw new Error("instanceId is required");const n=this.#a.get(t);if(!n){this.#e.warn(`Application with instance id ${t} is not found`);return}const{id:s}=n;if(!await this.#E(s))return;const c=this.#i.getConfigById(s);if(!c){this.#e.warn(`Configuration for application ${s} is not found`),this.#a.delete(t),Re.remove(t);return}const{hostUrl:h}=c;try{this.#C(n),await this.#h({id:s,instanceId:t})}finally{const m=Re.get(t);m?.contentDocument&&this.#d({id:s,instanceId:t,hostUrl:h,documentEle:m.contentDocument}),this.#a.delete(t),this.#u.delete(s),Re.remove(t)}};dispatchEvent=async t=>{const{event:{id:n,name:s},eventOptions:c={}}=t,{guestId:h}=c;if(!n)throw new Error("Event Id is required");const m=n.split(".")?.[0],b=h?this.#s.getObject(m,{id:h}):this.#s.getObject(m);return b?this.#l.dispatchEvent(b,t):(this.#e.warn(`Attempt to dispatch event ${s} on unknown object ${m}`),Promise.resolve())};getApp=t=>this.#a.get(t)?.guest;getApps=()=>[...this.#a.values()].map(t=>t.guest);init=async t=>{t?this.#n.setPreloadedConfig(t):await this.#n.load(),this.#i.init({version:this.#t,appConfig:this.#n}),this.#O()};#O=()=>{const t=this.#n.get("microFrontendApps")??{},n=new Set;Object.keys(t).forEach(s=>{const c=this.#i.getConfigById(s);if(c?.hostUrl)try{n.add(new URL(c.hostUrl).origin)}catch{}}),n.forEach(s=>{const c=document.createElement("link");c.rel="preconnect",c.href=s,c.crossOrigin="anonymous",document.head.appendChild(c)})};mountApp=async t=>{if(!t)throw new Error("instanceId is required");const{id:n}=this.#a.get(t)||{};if(!n)throw new Error(`Application with instance id ${t} is not found`);const s=this.#i.getConfigById(n);if(!s)throw new Error(`Application with id ${n} is not found`);await this.#f({...s,instanceId:t})};#T=(t,n,s)=>{const c=new Nr({guest:{id:s.id},version:this.#t,containerId:s.containerId,logger:this.#e,soManager:this.#s,eventManager:this.#l}),h=t.defaultView;h&&(h.emui=h.emui??{},h.emui.__host=c);const m=t.createElement("link");return m.rel="preconnect",m.href=n.hostUrl,m.crossOrigin="anonymous",t.head.appendChild(m),c};openApp=async t=>{const{id:n,frameOptions:s,history:c,theme:h,homeRoute:m,initialRoute:b,metadata:S,selfInitialize:E}=t,T=Et();S&&this.#u.set(n,S);const I=this.#i.getConfigById(n);if(!I)throw new Error(`Application ${n} is not found in app config`);const k=Dt.get(I);k.catch(()=>{});const K=await Re.create({id:n,instanceId:T,manifestPath:I.manifestPath,hostUrl:I.hostUrl,options:{title:I.name,...s}});if(!K?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#c.add({id:n,instanceId:T,documentEle:K.contentDocument});const V=this.#T(K.contentDocument,I,{id:n,containerId:s?.containerId}),X=await k;return await this.#x({instanceId:T,history:c,theme:h,documentEle:K.contentDocument,containerId:s?.containerId,...I,homeRoute:m??I.homeRoute,initialRoute:b,microFEHost:V,selfInitialize:E,manifest:X}),E||await this.#f({instanceId:T,...I}),this.#S({id:n,instanceId:T}),this.#A(n,T),T}catch(V){throw this.#d({id:n,instanceId:T,hostUrl:I.hostUrl,documentEle:K.contentDocument}),Re.remove(T),V}};removeAllEventSubscriptions=()=>{this.#l.unsubscribeAll()};removeAllScriptingObjects=t=>{this.#s.removeAllScriptingObjects(t)};removeScriptingObject=(t,n)=>{this.#s.removeScriptingObject(t,n)};warmUp=t=>{const n=this.#i.getConfigById(t);n&&Dt.get(n).catch(()=>{})};unmountApp=async t=>{if(!t)throw new Error("instanceId is required");const{id:n}=this.#a.get(t)||{};if(!n)throw new Error(`Application with instance id ${t} is not found`);const s=this.#i.getConfigById(n);if(!s)throw new Error(`Application with id ${n} is not found`);await this.#h({...s,instanceId:t})}}})(),kt})());
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=emuiAppBridge.dc4dbeb6feea171656da.js.map
|
|
Binary file
|
|
Binary file
|