@pine-ds/core 0.0.4-rc.0 → 0.0.4
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/docs.json +1 -1
- package/dist/esm-es5/index-4a3a9179.js +1 -1
- package/dist/esm-es5/index-4a3a9179.js.map +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
- package/package.json +4 -3
package/dist/docs.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(o,l)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return u([e,t])}}function u(l){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(r=0)),r)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;a=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(e){l=[6,e];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};var NAMESPACE="pine-core";var BUILD={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var scopeId;var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var queuePending=false;var getAssetPath=function(e){var t=new URL(e,plt.t);return t.origin!==win.location.origin?t.href:t.pathname};var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var XLINK_NS="http://www.w3.org/1999/xlink";var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var t,r,n;return(n=(r=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&n!==void 0?n:undefined}var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=null;var o=null;var l=false;var u=false;var f=[];var s=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){s(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(l&&u){f[f.length-1].i+=a}else{f.push(l?newVNode(null,a):a)}u=l}}};s(r);if(t){if(t.key){i=t.key}if(t.name){o=t.name}{var c=t.className||t.class;if(c){t.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,vdomFnUtils)}var v=newVNode(e,null);v.o=t;if(f.length>0){v.l=f}{v.u=i}{v.v=o}return v};var newVNode=function(e,t){var r={p:0,m:e,i:t,h:null,l:null};{r.o=null}{r.u=null}{r.v=null}return r};var Host={};var isHost=function(e){return e&&e.m===Host};var vdomFnUtils={forEach:function(e,t){return e.map(convertToPublic).forEach(t)},map:function(e,t){return e.map(convertToPublic).map(t).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.o,vchildren:e.l,vkey:e.u,vname:e.v,vtag:e.m,vtext:e.i}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var r=newVNode(e.vtag,e.vtext);r.o=e.vattrs;r.l=e.vchildren;r.u=e.vkey;r.v=e.vname;return r};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructableStylesheets&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r){var n;var a=getScopeId(t);var i=styles.get(a);e=e.nodeType===11?e:doc;if(i){if(typeof i==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var l=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){{l=doc.createElement("style");l.innerHTML=i;var u=(n=plt.S)!==null&&n!==void 0?n:queryNonceMetaTagContent(doc);if(u!=null){l.setAttribute("nonce",u)}e.insertBefore(l,e.querySelector("link"))}if(t.p&4){l.innerHTML+=SLOT_FB_CSS}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var attachStyles=function(e){var t=e.C;var r=e.$hostElement$;var n=t.p;var a=createTime("attachStyles",t.T);var i=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h");if(n&2){r.classList.add(i+"-s")}}a()};var getScopeId=function(e,t){return"sc-"+e.T};var setAccessor=function(e,t,r,n,a,i){if(r!==n){var o=isMemberInElement(e,t);var l=t.toLowerCase();if(t==="class"){var u=e.classList;var f=parseClassList(r);var s=parseClassList(n);u.remove.apply(u,f.filter((function(e){return e&&!s.includes(e)})));u.add.apply(u,s.filter((function(e){return e&&!f.includes(e)})))}else if(t==="style"){{for(var c in r){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!r||n[c]!==r[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,l)){t=l.slice(2)}else{t=l[2]+t.slice(3)}if(r||n){var v=t.endsWith(CAPTURE_EVENT_SUFFIX);t=t.replace(CAPTURE_EVENT_REGEX,"");if(r){plt.rel(e,t,r,v)}if(n){plt.ael(e,t,n,v)}}}else{var d=isComplexType(n);if((o||d&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var p=n==null?"":n;if(t==="list"){o=false}else if(r==null||e[t]!=p){e[t]=p}}else{e[t]=n}}catch(e){}}var m=false;{if(l!==(l=l.replace(/^xlink\:?/,""))){t=l;m=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(m){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!o||i&4||a)&&!d){n=n===true?"":n;if(m){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,t,r,n){var a=t.h.nodeType===11&&t.h.host?t.h.host:t.h;var i=e&&e.o||EMPTY_OBJ;var o=t.o||EMPTY_OBJ;{for(n in i){if(!(n in o)){setAccessor(a,n,i[n],undefined,r,t.p)}}}for(n in o){setAccessor(a,n,i[n],o[n],r,t.p)}};var createElm=function(e,t,r,n){var a=t.l[r];var i=0;var o;var l;var u;if(!useNativeShadowDom){checkSlotRelocate=true;if(a.m==="slot"){if(scopeId){n.classList.add(scopeId+"-s")}a.p|=a.l?2:1}}if(a.i!==null){o=a.h=doc.createTextNode(a.i)}else if(a.p&1){o=a.h=doc.createTextNode("")}else{o=a.h=doc.createElement(a.p&2?"slot-fb":a.m);{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(a.l){for(i=0;i<a.l.length;++i){l=createElm(e,a,i,o);if(l){o.appendChild(l)}}}}o["s-hn"]=hostTagName;{if(a.p&(2|1)){o["s-sr"]=true;o["s-cr"]=contentRef;o["s-sn"]=a.v||"";u=e&&e.l&&e.l[r];if(u&&u.m===a.m&&e.h){{putBackInOriginalLocation(e.h,false)}}}}return o};var putBackInOriginalLocation=function(e,t){plt.p|=1;var r=e.childNodes;for(var n=r.length-1;n>=0;n--){var a=r[n];if(a["s-hn"]!==hostTagName&&a["s-ol"]){parentReferenceNode(a).insertBefore(a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=undefined;a["s-sh"]=undefined;checkSlotRelocate=true}if(t){putBackInOriginalLocation(a,t)}}plt.p&=~1};var addVnodes=function(e,t,r,n,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;a<=i;++a){if(n[a]){l=createElm(null,r,a,e);if(l){n[a].h=l;o.insertBefore(l,referenceNode(t))}}}};var removeVnodes=function(e,t,r){for(var n=t;n<=r;++n){var a=e[n];if(a){var i=a.h;nullifyVNodeRefs(a);if(i){{checkSlotFallbackVisibility=true;if(i["s-ol"]){i["s-ol"].remove()}else{putBackInOriginalLocation(i,true)}}i.remove()}}}};var updateChildren=function(e,t,r,n,a){if(a===void 0){a=false}var i=0;var o=0;var l=0;var u=0;var f=t.length-1;var s=t[0];var c=t[f];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(i<=f&&o<=v){if(s==null){s=t[++i]}else if(c==null){c=t[--f]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(s,d,a)){patch(s,d,a);s=t[++i];d=n[++o]}else if(isSameVnode(c,p,a)){patch(c,p,a);c=t[--f];p=n[--v]}else if(isSameVnode(s,p,a)){if(s.m==="slot"||p.m==="slot"){putBackInOriginalLocation(s.h.parentNode,false)}patch(s,p,a);e.insertBefore(s.h,c.h.nextSibling);s=t[++i];p=n[--v]}else if(isSameVnode(c,d,a)){if(s.m==="slot"||p.m==="slot"){putBackInOriginalLocation(c.h.parentNode,false)}patch(c,d,a);e.insertBefore(c.h,s.h);c=t[--f];d=n[++o]}else{l=-1;{for(u=i;u<=f;++u){if(t[u]&&t[u].u!==null&&t[u].u===d.u){l=u;break}}}if(l>=0){h=t[l];if(h.m!==d.m){m=createElm(t&&t[o],r,l,e)}else{patch(h,d,a);t[l]=undefined;m=h.h}d=n[++o]}else{m=createElm(t&&t[o],r,o,e);d=n[++o]}if(m){{parentReferenceNode(s.h).insertBefore(m,referenceNode(s.h))}}}}if(i>f){addVnodes(e,n[v+1]==null?null:n[v+1].h,r,n,o,v)}else if(o>v){removeVnodes(t,i,f)}};var isSameVnode=function(e,t,r){if(r===void 0){r=false}if(e.m===t.m){if(e.m==="slot"){return e.v===t.v}if(!r){return e.u===t.u}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,t,r){if(r===void 0){r=false}var n=t.h=e.h;var a=e.l;var i=t.l;var o=t.m;var l=t.i;var u;if(l===null){{if(o==="slot");else{updateElement(e,t,isSvgMode)}}if(a!==null&&i!==null){updateChildren(n,a,t,i,r)}else if(i!==null){if(e.i!==null){n.textContent=""}addVnodes(n,null,t,i,0,i.length-1)}else if(a!==null){removeVnodes(a,0,a.length-1)}}else if(u=n["s-cr"]){u.parentNode.textContent=l}else if(e.i!==l){n.data=l}};var updateFallbackSlotVisibility=function(e){var t=e.childNodes;for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.nodeType===1){if(a["s-sr"]){var i=a["s-sn"];a.hidden=false;for(var o=0,l=t;o<l.length;o++){var u=l[o];if(u!==a){if(u["s-hn"]!==a["s-hn"]||i!==""){if(u.nodeType===1&&(i===u.getAttribute("slot")||i===u["s-sn"])){a.hidden=true;break}}else{if(u.nodeType===1||u.nodeType===3&&u.textContent.trim()!==""){a.hidden=true;break}}}}}updateFallbackSlotVisibility(a)}}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var t;var r;var n;for(var a=0,i=e.childNodes;a<i.length;a++){var o=i[a];if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;var l=o["s-sn"];var u=function(){t=r[n];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"]&&!BUILD.experimentalSlotFixes){if(isNodeLocatedInSlot(t,l)){var e=relocateNodes.find((function(e){return e.k===t}));checkSlotFallbackVisibility=true;t["s-sn"]=t["s-sn"]||l;if(e){e.k["s-sh"]=o["s-hn"];e.R=o}else{t["s-sh"]=o["s-hn"];relocateNodes.push({R:o,k:t})}if(t["s-sr"]){relocateNodes.map((function(r){if(isNodeLocatedInSlot(r.k,t["s-sn"])){e=relocateNodes.find((function(e){return e.k===t}));if(e&&!r.R){r.R=e.R}}}))}}else if(!relocateNodes.some((function(e){return e.k===t}))){relocateNodes.push({k:t})}}};for(n=r.length-1;n>=0;n--){u()}}if(o.nodeType===1){markSlotContentForRelocation(o)}}};var isNodeLocatedInSlot=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var nullifyVNodeRefs=function(e){{e.o&&e.o.ref&&e.o.ref(null);e.l&&e.l.map(nullifyVNodeRefs)}};var renderVdom=function(e,t,r){if(r===void 0){r=false}var n,a,i,o;var l=e.$hostElement$;var u=e.C;var f=e.N||newVNode(null,null);var s=isHost(t)?t:h(null,null,t);hostTagName=l.tagName;if(u._){s.o=s.o||{};u._.map((function(e){var t=e[0],r=e[1];return s.o[r]=l[t]}))}if(r&&s.o){for(var c=0,v=Object.keys(s.o);c<v.length;c++){var d=v[c];if(l.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){s.o[d]=l[d]}}}s.m=null;s.p|=4;e.N=s;s.h=f.h=l.shadowRoot||l;{scopeId=l["s-sc"]}{contentRef=l["s-cr"];useNativeShadowDom=(u.p&1)!==0;checkSlotFallbackVisibility=false}patch(f,s,r);{plt.p|=1;if(checkSlotRelocate){markSlotContentForRelocation(s.h);for(var p=0,m=relocateNodes;p<m.length;p++){var y=m[p];var S=y.k;if(!S["s-ol"]){var b=doc.createTextNode("");b["s-nr"]=S;S.parentNode.insertBefore(S["s-ol"]=b,S)}}for(var g=0,C=relocateNodes;g<C.length;g++){var y=C[g];var S=y.k;var T=y.R;if(T){var k=T.parentNode;var w=T.nextSibling;{var b=(n=S["s-ol"])===null||n===void 0?void 0:n.previousSibling;while(b){var R=(a=b["s-nr"])!==null&&a!==void 0?a:null;if(R&&R["s-sn"]===S["s-sn"]&&k===R.parentNode){R=R.nextSibling;if(!R||!R["s-nr"]){w=R;break}}b=b.previousSibling}}if(!w&&k!==S.parentNode||S.nextSibling!==w){if(S!==w){if(!S["s-hn"]&&S["s-ol"]){S["s-hn"]=S["s-ol"].parentNode.nodeName}k.insertBefore(S,w);if(S.nodeType===1){S.hidden=(i=S["s-ih"])!==null&&i!==void 0?i:false}}}}else{if(S.nodeType===1){if(r){S["s-ih"]=(o=S.hidden)!==null&&o!==void 0?o:false}S.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(s.h)}plt.p&=~1;relocateNodes.length=0}contentRef=undefined};var attachToAncestor=function(e,t){if(t&&!e.L&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.L=t})))}};var scheduleUpdate=function(e,t){{e.p|=16}if(e.p&4){e.p|=512;return}attachToAncestor(e,e.V);var r=function(){return dispatchHooks(e,t)};return writeTask(r)};var dispatchHooks=function(e,t){var r=createTime("scheduleUpdate",e.C.T);var n=e.A;var a;if(t){{e.p|=256;if(e.P){e.P.map((function(e){var t=e[0],r=e[1];return safeCall(n,t,r)}));e.P=undefined}}{a=safeCall(n,"componentWillLoad")}}{a=enqueue(a,(function(){return safeCall(n,"componentWillRender")}))}r();return enqueue(a,(function(){return updateComponent(e,n,t)}))};var enqueue=function(e,t){return isPromisey(e)?e.then(t):t()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,a,i,o,l,u,f;return __generator(this,(function(s){a=e.$hostElement$;i=createTime("update",e.C.T);o=a["s-rc"];if(r){attachStyles(e)}l=createTime("render",e.C.T);{callRender(e,t,a,r)}if(o){o.map((function(e){return e()}));a["s-rc"]=undefined}l();i();{u=(n=a["s-p"])!==null&&n!==void 0?n:[];f=function(){return postUpdateComponent(e)};if(u.length===0){f()}else{Promise.all(u).then(f);e.p|=4;u.length=0}}return[2]}))}))};var callRender=function(e,t,r,n){try{t=t.render();{e.p&=~16}{e.p|=2}{{{renderVdom(e,t,n)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.C.T;var r=e.$hostElement$;var n=createTime("postUpdate",t);var a=e.A;var i=e.V;{safeCall(a,"componentDidRender")}if(!(e.p&64)){e.p|=64;{addHydratedFlag(r)}{safeCall(a,"componentDidLoad")}n();{e.$(r);if(!i){appDidLoad()}}}else{{safeCall(a,"componentDidUpdate")}n()}{e.F(r)}{if(e.L){e.L();e.L=undefined}if(e.p&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.p&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return undefined};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var getValue=function(e,t){return getHostRef(e).I.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);var i=a.$hostElement$;var o=a.I.get(t);var l=a.p;var u=a.A;r=parsePropertyValue(r,n.D[t][0]);var f=Number.isNaN(o)&&Number.isNaN(r);var s=r!==o&&!f;if((!(l&8)||o===undefined)&&s){a.I.set(t,r);if(u){if(n.O&&l&128){var c=n.O[t];if(c){c.map((function(e){try{u[e](r,o,t)}catch(e){consoleError(e,i)}}))}}if((l&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,r){var n;var a=e.prototype;if(t.D){if(e.watchers){t.O=e.watchers}var i=Object.entries(t.D);i.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,t)},configurable:true,enumerable:true})}else if(r&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r;var a=getHostRef(this);return(r=a===null||a===void 0?void 0:a.H)===null||r===void 0?void 0:r.then((function(){var t;return(t=a.A)===null||t===void 0?void 0:t[n].apply(t,e)}))}})}}));if(r&1){var o=new Map;a.attributeChangedCallback=function(e,r,n){var i=this;plt.jmp((function(){var l;var u=o.get(e);if(i.hasOwnProperty(u)){n=i[u];delete i[u]}else if(a.hasOwnProperty(u)&&typeof i[u]==="number"&&i[u]==n){return}else if(u==null){var f=getHostRef(i);var s=f===null||f===void 0?void 0:f.p;if(s&&!(s&8)&&s&128&&n!==r){var c=f.A;var v=(l=t.O)===null||l===void 0?void 0:l[e];v===null||v===void 0?void 0:v.forEach((function(t){if(c[t]!=null){c[t].call(c,n,r,e)}}))}return}i[u]=n===null&&typeof i[u]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((n=t.O)!==null&&n!==void 0?n:{}),true),i.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a;var i=n[1]||r;o.set(i,r);if(n[0]&512){(a=t._)===null||a===void 0?void 0:a.push([r,i])}return i})),true)))}}return e};var initializeComponent=function(e,t,r,n){return __awaiter(void 0,void 0,void 0,(function(){var e,n,a,i,o,l,u,f;return __generator(this,(function(s){switch(s.label){case 0:if(!((t.p&32)===0))return[3,3];t.p|=32;e=loadModule(r);if(!e.then)return[3,2];n=uniqueTime();return[4,e];case 1:e=s.sent();n();s.label=2;case 2:if(!e.isProxied){{r.O=e.watchers}proxyComponent(e,r,2);e.isProxied=true}a=createTime("createInstance",r.T);{t.p|=8}try{new e(t)}catch(e){consoleError(e)}{t.p&=~8}{t.p|=128}a();fireConnectedCallback(t.A);if(e.style){i=e.style;o=getScopeId(r);if(!styles.has(o)){l=createTime("registerStyles",r.T);registerStyle(o,i,!!(r.p&1));l()}}s.label=3;case 3:u=t.V;f=function(){return scheduleUpdate(t,true)};if(u&&u["s-rc"]){u["s-rc"].push(f)}else{f()}return[2]}}))}))};var fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.p&1)===0){var t=getHostRef(e);var r=t.C;var n=createTime("connectedCallback",r.T);if(!(t.p&1)){t.p|=1;{if(r.p&(4|8)){setContentReference(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.V=a);break}}}if(r.D){Object.entries(r.D).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,t,r)}}else{addHostEventListeners(e,t,r.M);if(t===null||t===void 0?void 0:t.A){fireConnectedCallback(t.A)}else if(t===null||t===void 0?void 0:t.U){t.U.then((function(){return fireConnectedCallback(t.A)}))}}n()}};var setContentReference=function(e){var t=e["s-cr"]=doc.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var disconnectInstance=function(e){{safeCall(e,"disconnectedCallback")}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(r){if((plt.p&1)===0){t=getHostRef(e);{if(t.q){t.q.map((function(e){return e()}));t.q=undefined}}if(t===null||t===void 0?void 0:t.A){disconnectInstance(t.A)}else if(t===null||t===void 0?void 0:t.U){t.U.then((function(){return disconnectInstance(t.A)}))}}return[2]}))}))};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r;var n=createTime();var a=[];var i=t.exclude||[];var o=win.customElements;var l=doc.head;var u=l.querySelector("meta[charset]");var f=doc.createElement("style");var s=[];var c;var v=true;Object.assign(plt,t);plt.t=new URL(t.resourcesUrl||"./",doc.baseURI).href;var d=false;e.map((function(e){e[1].map((function(t){var r;var n={p:t[0],T:t[1],D:t[2],M:t[3]};if(n.p&4){d=true}{n.D=t[2]}{n.M=t[3]}{n._=[]}{n.O=(r=t[4])!==null&&r!==void 0?r:{}}var l=n.T;var u=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;registerHost(t,n);if(n.p&1){{{t.attachShadow({mode:"open"})}}}return r}t.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){s.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).U};return t}(HTMLElement);n.j=e[0];if(!i.includes(l)&&!o.get(l)){a.push(l);o.define(l,proxyComponent(u,n,1))}}))}));if(d){f.innerHTML+=SLOT_FB_CSS}{f.innerHTML+=a+HYDRATED_CSS}if(f.innerHTML.length){f.setAttribute("data-styles","");var p=(r=plt.S)!==null&&r!==void 0?r:queryNonceMetaTagContent(doc);if(p!=null){f.setAttribute("nonce",p)}l.insertBefore(f,u?u.nextSibling:l.firstChild)}v=false;if(s.length){s.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var addHostEventListeners=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],i=r[2];var o=getHostListenerTarget(e,n);var l=hostListenerProxy(t,i);var u=hostListenerOpts(n);plt.ael(o,a,l,u);(t.q=t.q||[]).push((function(){return plt.rel(o,a,l,u)}))}))}};var hostListenerProxy=function(e,t){return function(r){try{{if(e.p&256){e.A[t](r)}else{(e.P=e.P||[]).push([t,r])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,t){if(t&16)return doc.body;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.S=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.A=e,t)};var registerHost=function(e,t){var r={p:0,$hostElement$:e,C:t,I:new Map};{r.H=new Promise((function(e){return r.F=e}))}{r.U=new Promise((function(e){return r.$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,r,t.M);return hostRefs.set(e,r)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.T.replace(/-/g,"_");var a=e.j;var i=cmpModules.get(a);if(i){return i[n]}
|
|
1
|
+
import{__awaiter,__extends,__generator,__spreadArray}from"tslib";var NAMESPACE="pine-core";var BUILD={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var scopeId;var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var queuePending=false;var getAssetPath=function(e){var t=new URL(e,plt.t);return t.origin!==win.location.origin?t.href:t.pathname};var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var XLINK_NS="http://www.w3.org/1999/xlink";var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var t,r,n;return(n=(r=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&n!==void 0?n:undefined}var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=null;var o=null;var l=false;var u=false;var s=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(l&&u){s[s.length-1].i+=a}else{s.push(l?newVNode(null,a):a)}u=l}}};f(r);if(t){if(t.key){i=t.key}if(t.name){o=t.name}{var c=t.className||t.class;if(c){t.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,s,vdomFnUtils)}var v=newVNode(e,null);v.o=t;if(s.length>0){v.l=s}{v.u=i}{v.v=o}return v};var newVNode=function(e,t){var r={p:0,m:e,i:t,h:null,l:null};{r.o=null}{r.u=null}{r.v=null}return r};var Host={};var isHost=function(e){return e&&e.m===Host};var vdomFnUtils={forEach:function(e,t){return e.map(convertToPublic).forEach(t)},map:function(e,t){return e.map(convertToPublic).map(t).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.o,vchildren:e.l,vkey:e.u,vname:e.v,vtag:e.m,vtext:e.i}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var r=newVNode(e.vtag,e.vtext);r.o=e.vattrs;r.l=e.vchildren;r.u=e.vkey;r.v=e.vname;return r};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructableStylesheets&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r){var n;var a=getScopeId(t);var i=styles.get(a);e=e.nodeType===11?e:doc;if(i){if(typeof i==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var l=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){{l=doc.createElement("style");l.innerHTML=i;var u=(n=plt.S)!==null&&n!==void 0?n:queryNonceMetaTagContent(doc);if(u!=null){l.setAttribute("nonce",u)}e.insertBefore(l,e.querySelector("link"))}if(t.p&4){l.innerHTML+=SLOT_FB_CSS}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var attachStyles=function(e){var t=e.C;var r=e.$hostElement$;var n=t.p;var a=createTime("attachStyles",t.T);var i=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h");if(n&2){r.classList.add(i+"-s")}}a()};var getScopeId=function(e,t){return"sc-"+e.T};var setAccessor=function(e,t,r,n,a,i){if(r!==n){var o=isMemberInElement(e,t);var l=t.toLowerCase();if(t==="class"){var u=e.classList;var s=parseClassList(r);var f=parseClassList(n);u.remove.apply(u,s.filter((function(e){return e&&!f.includes(e)})));u.add.apply(u,f.filter((function(e){return e&&!s.includes(e)})))}else if(t==="style"){{for(var c in r){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!r||n[c]!==r[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,l)){t=l.slice(2)}else{t=l[2]+t.slice(3)}if(r||n){var v=t.endsWith(CAPTURE_EVENT_SUFFIX);t=t.replace(CAPTURE_EVENT_REGEX,"");if(r){plt.rel(e,t,r,v)}if(n){plt.ael(e,t,n,v)}}}else{var d=isComplexType(n);if((o||d&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var p=n==null?"":n;if(t==="list"){o=false}else if(r==null||e[t]!=p){e[t]=p}}else{e[t]=n}}catch(e){}}var m=false;{if(l!==(l=l.replace(/^xlink\:?/,""))){t=l;m=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(m){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!o||i&4||a)&&!d){n=n===true?"":n;if(m){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,t,r,n){var a=t.h.nodeType===11&&t.h.host?t.h.host:t.h;var i=e&&e.o||EMPTY_OBJ;var o=t.o||EMPTY_OBJ;{for(n in i){if(!(n in o)){setAccessor(a,n,i[n],undefined,r,t.p)}}}for(n in o){setAccessor(a,n,i[n],o[n],r,t.p)}};var createElm=function(e,t,r,n){var a=t.l[r];var i=0;var o;var l;var u;if(!useNativeShadowDom){checkSlotRelocate=true;if(a.m==="slot"){if(scopeId){n.classList.add(scopeId+"-s")}a.p|=a.l?2:1}}if(a.i!==null){o=a.h=doc.createTextNode(a.i)}else if(a.p&1){o=a.h=doc.createTextNode("")}else{o=a.h=doc.createElement(a.p&2?"slot-fb":a.m);{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(a.l){for(i=0;i<a.l.length;++i){l=createElm(e,a,i,o);if(l){o.appendChild(l)}}}}o["s-hn"]=hostTagName;{if(a.p&(2|1)){o["s-sr"]=true;o["s-cr"]=contentRef;o["s-sn"]=a.v||"";u=e&&e.l&&e.l[r];if(u&&u.m===a.m&&e.h){{putBackInOriginalLocation(e.h,false)}}}}return o};var putBackInOriginalLocation=function(e,t){plt.p|=1;var r=e.childNodes;for(var n=r.length-1;n>=0;n--){var a=r[n];if(a["s-hn"]!==hostTagName&&a["s-ol"]){parentReferenceNode(a).insertBefore(a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=undefined;a["s-sh"]=undefined;checkSlotRelocate=true}if(t){putBackInOriginalLocation(a,t)}}plt.p&=~1};var addVnodes=function(e,t,r,n,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;a<=i;++a){if(n[a]){l=createElm(null,r,a,e);if(l){n[a].h=l;o.insertBefore(l,referenceNode(t))}}}};var removeVnodes=function(e,t,r){for(var n=t;n<=r;++n){var a=e[n];if(a){var i=a.h;nullifyVNodeRefs(a);if(i){{checkSlotFallbackVisibility=true;if(i["s-ol"]){i["s-ol"].remove()}else{putBackInOriginalLocation(i,true)}}i.remove()}}}};var updateChildren=function(e,t,r,n,a){if(a===void 0){a=false}var i=0;var o=0;var l=0;var u=0;var s=t.length-1;var f=t[0];var c=t[s];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(i<=s&&o<=v){if(f==null){f=t[++i]}else if(c==null){c=t[--s]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(f,d,a)){patch(f,d,a);f=t[++i];d=n[++o]}else if(isSameVnode(c,p,a)){patch(c,p,a);c=t[--s];p=n[--v]}else if(isSameVnode(f,p,a)){if(f.m==="slot"||p.m==="slot"){putBackInOriginalLocation(f.h.parentNode,false)}patch(f,p,a);e.insertBefore(f.h,c.h.nextSibling);f=t[++i];p=n[--v]}else if(isSameVnode(c,d,a)){if(f.m==="slot"||p.m==="slot"){putBackInOriginalLocation(c.h.parentNode,false)}patch(c,d,a);e.insertBefore(c.h,f.h);c=t[--s];d=n[++o]}else{l=-1;{for(u=i;u<=s;++u){if(t[u]&&t[u].u!==null&&t[u].u===d.u){l=u;break}}}if(l>=0){h=t[l];if(h.m!==d.m){m=createElm(t&&t[o],r,l,e)}else{patch(h,d,a);t[l]=undefined;m=h.h}d=n[++o]}else{m=createElm(t&&t[o],r,o,e);d=n[++o]}if(m){{parentReferenceNode(f.h).insertBefore(m,referenceNode(f.h))}}}}if(i>s){addVnodes(e,n[v+1]==null?null:n[v+1].h,r,n,o,v)}else if(o>v){removeVnodes(t,i,s)}};var isSameVnode=function(e,t,r){if(r===void 0){r=false}if(e.m===t.m){if(e.m==="slot"){return e.v===t.v}if(!r){return e.u===t.u}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,t,r){if(r===void 0){r=false}var n=t.h=e.h;var a=e.l;var i=t.l;var o=t.m;var l=t.i;var u;if(l===null){{if(o==="slot");else{updateElement(e,t,isSvgMode)}}if(a!==null&&i!==null){updateChildren(n,a,t,i,r)}else if(i!==null){if(e.i!==null){n.textContent=""}addVnodes(n,null,t,i,0,i.length-1)}else if(a!==null){removeVnodes(a,0,a.length-1)}}else if(u=n["s-cr"]){u.parentNode.textContent=l}else if(e.i!==l){n.data=l}};var updateFallbackSlotVisibility=function(e){var t=e.childNodes;for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.nodeType===1){if(a["s-sr"]){var i=a["s-sn"];a.hidden=false;for(var o=0,l=t;o<l.length;o++){var u=l[o];if(u!==a){if(u["s-hn"]!==a["s-hn"]||i!==""){if(u.nodeType===1&&(i===u.getAttribute("slot")||i===u["s-sn"])){a.hidden=true;break}}else{if(u.nodeType===1||u.nodeType===3&&u.textContent.trim()!==""){a.hidden=true;break}}}}}updateFallbackSlotVisibility(a)}}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var t;var r;var n;for(var a=0,i=e.childNodes;a<i.length;a++){var o=i[a];if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;var l=o["s-sn"];var u=function(){t=r[n];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"]&&!BUILD.experimentalSlotFixes){if(isNodeLocatedInSlot(t,l)){var e=relocateNodes.find((function(e){return e.R===t}));checkSlotFallbackVisibility=true;t["s-sn"]=t["s-sn"]||l;if(e){e.R["s-sh"]=o["s-hn"];e.k=o}else{t["s-sh"]=o["s-hn"];relocateNodes.push({k:o,R:t})}if(t["s-sr"]){relocateNodes.map((function(r){if(isNodeLocatedInSlot(r.R,t["s-sn"])){e=relocateNodes.find((function(e){return e.R===t}));if(e&&!r.k){r.k=e.k}}}))}}else if(!relocateNodes.some((function(e){return e.R===t}))){relocateNodes.push({R:t})}}};for(n=r.length-1;n>=0;n--){u()}}if(o.nodeType===1){markSlotContentForRelocation(o)}}};var isNodeLocatedInSlot=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var nullifyVNodeRefs=function(e){{e.o&&e.o.ref&&e.o.ref(null);e.l&&e.l.map(nullifyVNodeRefs)}};var renderVdom=function(e,t,r){if(r===void 0){r=false}var n,a,i,o;var l=e.$hostElement$;var u=e.C;var s=e.N||newVNode(null,null);var f=isHost(t)?t:h(null,null,t);hostTagName=l.tagName;if(u._){f.o=f.o||{};u._.map((function(e){var t=e[0],r=e[1];return f.o[r]=l[t]}))}if(r&&f.o){for(var c=0,v=Object.keys(f.o);c<v.length;c++){var d=v[c];if(l.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){f.o[d]=l[d]}}}f.m=null;f.p|=4;e.N=f;f.h=s.h=l.shadowRoot||l;{scopeId=l["s-sc"]}{contentRef=l["s-cr"];useNativeShadowDom=(u.p&1)!==0;checkSlotFallbackVisibility=false}patch(s,f,r);{plt.p|=1;if(checkSlotRelocate){markSlotContentForRelocation(f.h);for(var p=0,m=relocateNodes;p<m.length;p++){var y=m[p];var S=y.R;if(!S["s-ol"]){var g=doc.createTextNode("");g["s-nr"]=S;S.parentNode.insertBefore(S["s-ol"]=g,S)}}for(var b=0,C=relocateNodes;b<C.length;b++){var y=C[b];var S=y.R;var T=y.k;if(T){var R=T.parentNode;var k=T.nextSibling;{var g=(n=S["s-ol"])===null||n===void 0?void 0:n.previousSibling;while(g){var E=(a=g["s-nr"])!==null&&a!==void 0?a:null;if(E&&E["s-sn"]===S["s-sn"]&&R===E.parentNode){E=E.nextSibling;if(!E||!E["s-nr"]){k=E;break}}g=g.previousSibling}}if(!k&&R!==S.parentNode||S.nextSibling!==k){if(S!==k){if(!S["s-hn"]&&S["s-ol"]){S["s-hn"]=S["s-ol"].parentNode.nodeName}R.insertBefore(S,k);if(S.nodeType===1){S.hidden=(i=S["s-ih"])!==null&&i!==void 0?i:false}}}}else{if(S.nodeType===1){if(r){S["s-ih"]=(o=S.hidden)!==null&&o!==void 0?o:false}S.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(f.h)}plt.p&=~1;relocateNodes.length=0}contentRef=undefined};var attachToAncestor=function(e,t){if(t&&!e.L&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.L=t})))}};var scheduleUpdate=function(e,t){{e.p|=16}if(e.p&4){e.p|=512;return}attachToAncestor(e,e.V);var r=function(){return dispatchHooks(e,t)};return writeTask(r)};var dispatchHooks=function(e,t){var r=createTime("scheduleUpdate",e.C.T);var n=e.A;var a;if(t){{e.p|=256;if(e.$){e.$.map((function(e){var t=e[0],r=e[1];return safeCall(n,t,r)}));e.$=undefined}}{a=safeCall(n,"componentWillLoad")}}{a=enqueue(a,(function(){return safeCall(n,"componentWillRender")}))}r();return enqueue(a,(function(){return updateComponent(e,n,t)}))};var enqueue=function(e,t){return isPromisey(e)?e.then(t):t()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,a,i,o,l,u,s;return __generator(this,(function(f){a=e.$hostElement$;i=createTime("update",e.C.T);o=a["s-rc"];if(r){attachStyles(e)}l=createTime("render",e.C.T);{callRender(e,t,a,r)}if(o){o.map((function(e){return e()}));a["s-rc"]=undefined}l();i();{u=(n=a["s-p"])!==null&&n!==void 0?n:[];s=function(){return postUpdateComponent(e)};if(u.length===0){s()}else{Promise.all(u).then(s);e.p|=4;u.length=0}}return[2]}))}))};var callRender=function(e,t,r,n){try{t=t.render();{e.p&=~16}{e.p|=2}{{{renderVdom(e,t,n)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.C.T;var r=e.$hostElement$;var n=createTime("postUpdate",t);var a=e.A;var i=e.V;{safeCall(a,"componentDidRender")}if(!(e.p&64)){e.p|=64;{addHydratedFlag(r)}{safeCall(a,"componentDidLoad")}n();{e.F(r);if(!i){appDidLoad()}}}else{{safeCall(a,"componentDidUpdate")}n()}{e.I(r)}{if(e.L){e.L();e.L=undefined}if(e.p&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.p&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return undefined};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var getValue=function(e,t){return getHostRef(e).P.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);var i=a.$hostElement$;var o=a.P.get(t);var l=a.p;var u=a.A;r=parsePropertyValue(r,n.D[t][0]);var s=Number.isNaN(o)&&Number.isNaN(r);var f=r!==o&&!s;if((!(l&8)||o===undefined)&&f){a.P.set(t,r);if(u){if(n.H&&l&128){var c=n.H[t];if(c){c.map((function(e){try{u[e](r,o,t)}catch(e){consoleError(e,i)}}))}}if((l&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,r){var n;var a=e.prototype;if(t.D){if(e.watchers){t.H=e.watchers}var i=Object.entries(t.D);i.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,t)},configurable:true,enumerable:true})}else if(r&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r;var a=getHostRef(this);return(r=a===null||a===void 0?void 0:a.M)===null||r===void 0?void 0:r.then((function(){var t;return(t=a.A)===null||t===void 0?void 0:t[n].apply(t,e)}))}})}}));if(r&1){var o=new Map;a.attributeChangedCallback=function(e,r,n){var i=this;plt.jmp((function(){var l;var u=o.get(e);if(i.hasOwnProperty(u)){n=i[u];delete i[u]}else if(a.hasOwnProperty(u)&&typeof i[u]==="number"&&i[u]==n){return}else if(u==null){var s=getHostRef(i);var f=s===null||s===void 0?void 0:s.p;if(f&&!(f&8)&&f&128&&n!==r){var c=s.A;var v=(l=t.H)===null||l===void 0?void 0:l[e];v===null||v===void 0?void 0:v.forEach((function(t){if(c[t]!=null){c[t].call(c,n,r,e)}}))}return}i[u]=n===null&&typeof i[u]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((n=t.H)!==null&&n!==void 0?n:{}),true),i.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a;var i=n[1]||r;o.set(i,r);if(n[0]&512){(a=t._)===null||a===void 0?void 0:a.push([r,i])}return i})),true)))}}return e};var initializeComponent=function(e,t,r,n){return __awaiter(void 0,void 0,void 0,(function(){var e,n,a,i,o,l,u,s;return __generator(this,(function(f){switch(f.label){case 0:if(!((t.p&32)===0))return[3,3];t.p|=32;e=loadModule(r);if(!e.then)return[3,2];n=uniqueTime();return[4,e];case 1:e=f.sent();n();f.label=2;case 2:if(!e.isProxied){{r.H=e.watchers}proxyComponent(e,r,2);e.isProxied=true}a=createTime("createInstance",r.T);{t.p|=8}try{new e(t)}catch(e){consoleError(e)}{t.p&=~8}{t.p|=128}a();fireConnectedCallback(t.A);if(e.style){i=e.style;o=getScopeId(r);if(!styles.has(o)){l=createTime("registerStyles",r.T);registerStyle(o,i,!!(r.p&1));l()}}f.label=3;case 3:u=t.V;s=function(){return scheduleUpdate(t,true)};if(u&&u["s-rc"]){u["s-rc"].push(s)}else{s()}return[2]}}))}))};var fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.p&1)===0){var t=getHostRef(e);var r=t.C;var n=createTime("connectedCallback",r.T);if(!(t.p&1)){t.p|=1;{if(r.p&(4|8)){setContentReference(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.V=a);break}}}if(r.D){Object.entries(r.D).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,t,r)}}else{addHostEventListeners(e,t,r.O);if(t===null||t===void 0?void 0:t.A){fireConnectedCallback(t.A)}else if(t===null||t===void 0?void 0:t.U){t.U.then((function(){return fireConnectedCallback(t.A)}))}}n()}};var setContentReference=function(e){var t=e["s-cr"]=doc.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var disconnectInstance=function(e){{safeCall(e,"disconnectedCallback")}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(r){if((plt.p&1)===0){t=getHostRef(e);{if(t.q){t.q.map((function(e){return e()}));t.q=undefined}}if(t===null||t===void 0?void 0:t.A){disconnectInstance(t.A)}else if(t===null||t===void 0?void 0:t.U){t.U.then((function(){return disconnectInstance(t.A)}))}}return[2]}))}))};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r;var n=createTime();var a=[];var i=t.exclude||[];var o=win.customElements;var l=doc.head;var u=l.querySelector("meta[charset]");var s=doc.createElement("style");var f=[];var c;var v=true;Object.assign(plt,t);plt.t=new URL(t.resourcesUrl||"./",doc.baseURI).href;var d=false;e.map((function(e){e[1].map((function(t){var r;var n={p:t[0],T:t[1],D:t[2],O:t[3]};if(n.p&4){d=true}{n.D=t[2]}{n.O=t[3]}{n._=[]}{n.H=(r=t[4])!==null&&r!==void 0?r:{}}var l=n.T;var u=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;registerHost(t,n);if(n.p&1){{{t.attachShadow({mode:"open"})}}}return r}t.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).U};return t}(HTMLElement);n.B=e[0];if(!i.includes(l)&&!o.get(l)){a.push(l);o.define(l,proxyComponent(u,n,1))}}))}));if(d){s.innerHTML+=SLOT_FB_CSS}{s.innerHTML+=a+HYDRATED_CSS}if(s.innerHTML.length){s.setAttribute("data-styles","");var p=(r=plt.S)!==null&&r!==void 0?r:queryNonceMetaTagContent(doc);if(p!=null){s.setAttribute("nonce",p)}l.insertBefore(s,u?u.nextSibling:l.firstChild)}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var addHostEventListeners=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],i=r[2];var o=getHostListenerTarget(e,n);var l=hostListenerProxy(t,i);var u=hostListenerOpts(n);plt.ael(o,a,l,u);(t.q=t.q||[]).push((function(){return plt.rel(o,a,l,u)}))}))}};var hostListenerProxy=function(e,t){return function(r){try{{if(e.p&256){e.A[t](r)}else{(e.$=e.$||[]).push([t,r])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,t){if(t&16)return doc.body;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.S=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.A=e,t)};var registerHost=function(e,t){var r={p:0,$hostElement$:e,C:t,P:new Map};{r.M=new Promise((function(e){return r.I=e}))}{r.U=new Promise((function(e){return r.F=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,r,t.O);return hostRefs.set(e,r)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.T.replace(/-/g,"_");var a=e.B;var i=cmpModules.get(a);if(i){return i[n]}
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={p:0,t:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var supportsListenerOptions=function(){var e=false;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(e){}return e}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.p&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,getAssetPath as a,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
|
3
3
|
//# sourceMappingURL=index-4a3a9179.js.map
|