text: define("793c3284-a0d3-4ced-a165-03614d5a5588_0.0.1",["@microsoft/sp-property-pane","ApiNotebookWebPartStrings","@microsoft/sp-core-library","@microsoft/sp-webpart-base"],function(e,t,n,o){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="ZLxF")}({"26ea":function(t,n){t.exports=e},"7Kgn":function(e,n){e.exports=t},UWqr:function(e,t){e.exports=n},ZLxF:function(e,t,n){"use strict";n.r(t);var o=n("UWqr"),i=n("26ea"),r=n("br4S"),a=n("7Kgn");!function(){var e="function"==typeof Promise?Promise:function(e){var t,n=[],o=0;return e(function(e){t=e,o=1,n.splice(0).forEach(i)}),{then:i};function i(e){return o?setTimeout(e,0,t):n.push(e),this}},t=function(e,t){var n=function(e){for(var t=0,n=e.length;t<n;t++)o(e[t])},o=function(e){var t=e.target,n=e.attributeName,o=e.oldValue;t.attributeChangedCallback(n,o,t.getAttribute(n))};return function(i,r){var a=i.constructor.observedAttributes;return a&&e(r).then(function(){new t(n).observe(i,{attributes:!0,attributeOldValue:!0,attributeFilter:a});for(var e=0,r=a.length;e<r;e++)i.hasAttribute(a[e])&&o({target:i,attributeName:a[e],oldValue:null})}),i}},n=self,o=n.document,i=n.MutationObserver,r=n.Set,a=n.WeakMap,s=function(e){return"querySelectorAll"in e},l=[].filter,c=function(e){var t=new a,n=function(t){var n=e.query;if(n.length)for(var o=0,i=t.length;o<i;o++)c(l.call(t[o].addedNodes,s),!0,n),c(l.call(t[o].removedNodes,s),!1,n)},c=function n(o,i,a){for(var s,l,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new r,d=function(d,h,p,g){if(!c.has(h=o[p])){if(c.add(h),i)for(var m,b=u(h),y=0,w=a.length;y<w;y++)b.call(h,m=a[y])&&(t.has(h)||t.set(h,new r),(d=t.get(h)).has(m)||(d.add(m),e.handle(h,i,m)));else t.has(h)&&(d=t.get(h),t.delete(h),d.forEach(function(t){e.handle(h,i,t)}));n(f(h),i,a,c)}s=d,l=h},h=0,p=o.length;h<p;h++)d(s,l,h)},u=function(e){return e.matches||e.webkitMatchesSelector||e.msMatchesSelector},d=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];c(t,n,e.query)},f=function(e){return g.length?e.querySelectorAll(g):g},h=new i(n),p=e.root||o,g=e.query;return h.observe(p,{childList:!0,subtree:!0}),d(f(p)),{drop:function(e){for(var n=0,o=e.length;n<o;n++)t.delete(e[n])},flush:function(){n(h.takeRecords())},observer:h,parse:d}},u=self,d=u.document,f=u.Map,h=u.MutationObserver,p=u.Object,g=u.Set,m=u.WeakMap,b=u.Element,y=u.HTMLElement,w=u.Node,v=u.Error,k=u.TypeError,M=u.Reflect,E=self.Promise||e,O=p.defineProperty,x=p.keys,C=p.getOwnPropertyNames,T=p.setPrototypeOf,I=!self.customElements,N=function(e){for(var t=x(e),n=[],o=t.length,i=0;i<o;i++)n[i]=e[t[i]],delete e[t[i]];return function(){for(var i=0;i<o;i++)e[t[i]]=n[i]}};if(I){var S=function(){var e=this.constructor;if(!R.has(e))throw new k("Illegal constructor");var t=R.get(e);if(W)return H(W,t);var n=P.call(d,t);return H(T(n,e.prototype),t)},P=d.createElement,R=new f,F=new f,z=new f,A=new f,L=[],_=c({query:L,handle:function(e,t,n){var o=z.get(n);if(t&&!o.isPrototypeOf(e)){var i=N(e);W=T(e,o);try{new o.constructor}finally{W=null,i()}}var r="".concat(t?"":"dis","connectedCallback");r in o&&e[r]()}}).parse,W=null,j=function(t){if(!F.has(t)){var n,o=new e(function(e){n=e});F.set(t,{$:o,_:n})}return F.get(t).$},H=t(j,h);O(self,"customElements",{configurable:!0,value:{define:function(e,t){if(A.has(e))throw new v('the name "'.concat(e,'" has already been used with this registry'));R.set(t,e),z.set(e,t.prototype),A.set(e,t),L.push(e),j(e).then(function(){_(d.querySelectorAll(e))}),F.get(e)._(t)},get:function(e){return A.get(e)},whenDefined:j}}),O(S.prototype=y.prototype,"constructor",{value:S}),O(self,"HTMLElement",{configurable:!0,value:S}),O(d,"createElement",{configurable:!0,value:function(e,t){var n=t&&t.is,o=n?A.get(n):A.get(e);return o?new o:P.call(d,e)}}),"isConnected"in w.prototype||O(w.prototype,"isConnected",{configurable:!0,get:function(){return!(this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}})}else try{var q=function e(){return self.Reflect.construct(HTMLLIElement,[],e)};q.prototype=HTMLLIElement.prototype;var D="extends-li";self.customElements.define("extends-li",q,{extends:"li"}),I=d.createElement("li",{is:D}).outerHTML.indexOf(D)<0;var V=self.customElements,B=V.get,U=V.whenDefined;O(self.customElements,"whenDefined",{configurable:!0,value:function(e){var t=this;return U.call(this,e).then(function(n){return n||B.call(t,e)})}})}catch(e){I=!I}if(I){var K=function(e){var t=Z.get(e);(0,t.parse)(t.root.querySelectorAll(this),e.isConnected)},G=self.customElements,Y=b.prototype.attachShadow,J=d.createElement,Q=G.define,X=G.get,$=(M||{construct:function(e){return e.call(this)}}).construct,Z=new m,ee=new g,te=new f,ne=new f,oe=new f,ie=new f,re=[],ae=[],se=function(e){return ie.get(e)||X.call(G,e)},le=function(e,t,n){var o=oe.get(n);if(t&&!o.isPrototypeOf(e)){var i=N(e);he=T(e,o);try{new o.constructor}finally{he=null,i()}}var r="".concat(t?"":"dis","connectedCallback");r in o&&e[r]()},ce=c({query:ae,handle:le}).parse,ue=c({query:re,handle:function(e,t){Z.has(e)&&(t?ee.add(e):ee.delete(e),ae.length&&K.call(ae,e))}}).parse,de=function(e){if(!ne.has(e)){var t,n=new E(function(e){t=e});ne.set(e,{$:n,_:t})}return ne.get(e).$},fe=t(de,h),he=null;C(self).filter(function(e){return/^HTML/.test(e)}).forEach(function(e){var t=self[e];function n(){var e=this.constructor;if(!te.has(e))throw new k("Illegal constructor");var n=te.get(e),o=n.is,i=n.tag;if(o){if(he)return fe(he,o);var r=J.call(d,i);return r.setAttribute("is",o),fe(T(r,e.prototype),o)}return $.call(this,t,[],e)}O(n.prototype=t.prototype,"constructor",{value:n}),O(self,e,{value:n})}),O(d,"createElement",{configurable:!0,value:function(e,t){var n=t&&t.is;if(n){var o=ie.get(n);if(o&&te.get(o).tag===e)return new o}var i=J.call(d,e);return n&&i.setAttribute("is",n),i}}),Y&&O(b.prototype,"attachShadow",{configurable:!0,value:function(){var e=Y.apply(this,arguments),t=c({query:ae,root:e,handle:le}),n=t.parse;return Z.set(this,{root:e,parse:n}),e}}),O(G,"get",{configurable:!0,value:se}),O(G,"whenDefined",{configurable:!0,value:de}),O(G,"define",{configurable:!0,value:function(e,t,n){if(se(e))throw new v("'".concat(e,"' has already been defined as a custom element"));var o,i=n&&n.extends;te.set(t,i?{is:e,tag:i}:{is:"",tag:e}),i?(o="".concat(i,'[is="').concat(e,'"]'),oe.set(o,t.prototype),ie.set(e,t),ae.push(o)):(Q.apply(G,arguments),re.push(o=e)),de(e).then(function(){i?(ce(d.querySelectorAll(o)),ee.forEach(K,[o])):ue(d.querySelectorAll(o))}),ne.get(e)._(t)}})}}();var s=function(e){var t={exports:{}};return function(e){!function(t){if("undefined"!=typeof window){var n,o=0,i=!1,r=!1,a="message".length,s="[iFrameSizer]",l=s.length,c=null,u=window.requestAnimationFrame,d={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},h=null,p={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){M("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},g={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each(function(t,n){L(n,e)}).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),e.exports=H(),window.iFrameResize=window.iFrameResize||H()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function b(e,t,n){e.addEventListener(t,n,!1)}function y(e,t,n){e.removeEventListener(t,n,!1)}function w(e){return f[e]?f[e].log:i}function v(e,t){E("log",e,t,w(e))}function k(e,t){E("info",e,t,w(e))}function M(e,t){E("warn",e,t,!0)}function E(e,t,n,o){!0===o&&"object"==typeof window.console&&console[e](function(e){return s+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function O(e){function t(){n("Height"),n("Width"),F(function(){R(W),N(j),p("onResized",W)},W,"init")}function n(e){var t=Number(f[j]["max"+e]),n=Number(f[j]["min"+e]),o=e.toLowerCase(),i=Number(W[o]);v(j,"Checking "+o+" is in range "+n+"-"+t),i<n&&(i=n,v(j,"Set "+o+" to min value")),i>t&&(i=t,v(j,"Set "+o+" to max value")),W[o]=""+i}function o(e){return _.substr(_.indexOf(":")+a+e)}function i(e,t){var n,o;n=function(){var n,o;z("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),o=W.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:o.height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-n.top,10),offsetLeft:parseInt(o.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},g[o=t]||(g[o]=setTimeout(function(){g[o]=null,n()},32))}function r(e){var t=e.getBoundingClientRect();return I(j),{x:Math.floor(Number(t.left)+Number(c.x)),y:Math.floor(Number(t.top)+Number(c.y))}}function u(e){var t=e?r(W.iframe):{x:0,y:0},n={x:Number(W.width)+t.x,y:Number(W.height)+t.y};v(j,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):M(j,"Unable to scroll to requested position, window.parentIFrame not found"):(c=n,d(),v(j,"--"))}function d(){!1!==p("onScroll",c)?N(j):S()}function h(e){var t={};if(0===Number(W.width)&&0===Number(W.height)){var n=o(9).split(":");t={x:n[1],y:n[0]}}else t={x:W.width,y:W.height};p(e,{iframe:W.iframe,screenX:Number(t.x),screenY:Number(t.y),type:W.type})}function p(e,t){return x(j,e,t)}var m,w,E,O,C,L,_=e.data,W={},j=null;"[iFrameResizerChild]Ready"===_?function(){for(var e in f)z("iFrame requested init",A(e),f[e].iframe,e)}():s===(""+_).substr(0,l)&&_.substr(l).split(":")[0]in f?(O=(E=_.substr(l).split(":"))[1]?parseInt(E[1],10):0,C=f[E[0]]&&f[E[0]].iframe,L=getComputedStyle(C),W={iframe:C,id:E[0],height:O+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(L)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(L),width:E[2],type:E[3]},j=W.id,f[j]&&(f[j].loaded=!0),(w=W.type in{true:1,false:1,undefined:1})&&v(j,"Ignoring init message from meta parent page"),!w&&function(e){var t=!0;return f[e]||(t=!1,M(W.type+" No settings for "+e+". Message was: "+_)),t}(j)&&(v(j,"Received: "+_),m=!0,null===W.iframe&&(M(j,"IFrame ("+W.id+") not found"),m=!1),m&&function(){var t,n=e.origin,o=f[j]&&f[j].checkOrigin;if(o&&""+n!="null"&&!(o.constructor===Array?function(){var e=0,t=!1;for(v(j,"Checking connection is from allowed list of origins: "+o);e<o.length;e++)if(o[e]===n){t=!0;break}return t}():(t=f[j]&&f[j].remoteHost,v(j,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+W.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(f[j]&&f[j].firstRun&&f[j]&&(f[j].firstRun=!1),W.type){case"close":T(W.iframe);break;case"message":l=o(6),v(j,"onMessage passed: {iframe: "+W.iframe.id+", message: "+l+"}"),p("onMessage",{iframe:W.iframe,message:JSON.parse(l)}),v(j,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":f[j].autoResize=JSON.parse(o(9));break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":i(f[j]&&f[j].iframe,j),function(){function e(e,o){function r(){f[n]?i(f[n].iframe,n):t()}["scroll","resize"].forEach(function(t){v(n,e+t+" listener for sendPageInfo"),o(window,t,r)})}function t(){e("Remove ",y)}var n=j;e("Add ",b),f[n]&&(f[n].stopPageInfo=t)}();break;case"pageInfoStop":f[j]&&f[j].stopPageInfo&&(f[j].stopPageInfo(),delete f[j].stopPageInfo);break;case"inPageLink":n=o(9).split("#")[1]||"",a=decodeURIComponent(n),(s=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(s),v(j,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),c={x:e.x,y:e.y},d(),v(j,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):v(j,"In page link #"+n+" not found and window.parentIFrame not found"):v(j,"In page link #"+n+" not found");break;case"reset":P(W);break;case"init":t(),p("onInit",W.iframe);break;default:0===Number(W.width)&&0===Number(W.height)?M("Unsupported message received ("+W.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e,n,a,s,l}())):k(j,"Ignored: "+_)}function x(e,t,n){var o=null,i=null;if(f[e]){if("function"!=typeof(o=f[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");i=o(n)}return i}function C(e){var t=e.id;delete f[t]}function T(e){var t=e.id;if(!1!==x(t,"onClose",t)){v(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){M(e)}x(t,"onClosed",t),v(t,"--"),C(e)}else v(t,"Close iframe cancelled by onClose event")}function I(e){null===c&&v(e,"Get page position: "+(c={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+c.y)}function N(e){null!==c&&(window.scrollTo(c.x,c.y),v(e,"Set page position: "+c.x+","+c.y),S())}function S(){c=null}function P(e){v(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),I(e.id),F(function(){R(e),z("reset","reset",e.iframe,e.id)},e,"reset")}function R(e){function t(t){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",v(e.id,"IFrame ("+n+") "+t+" set to "+e[t]+"px")):v("undefined","messageData id not set")}(t),function(t){r||"0"!==e[t]||(r=!0,v(n,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(f).forEach(function(e){!function(e){function t(t){return"0px"===(f[e]&&f[e].iframe.style[t])}f[e]&&null!==f[e].iframe.offsetParent&&(t("height")||t("width"))&&z("Visibility change","resize",f[e].iframe,e)}(e)})}var t,n=m();n&&(t=document.querySelector("body"),new n(function(t){v("window","Mutation observed: "+t[0].target+" "+t[0].type),_(e,16)}).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}(t)}var n=e.iframe.id;f[n]&&(f[n].sizeHeight&&t("height"),f[n].sizeWidth&&t("width"))}function F(e,t,n){n!==t.type&&u&&!window.jasmine?(v(t.id,"Requesting animation frame"),u(e)):e()}function z(e,t,n,o,i){var r,a=!1;o=o||n.id,f[o]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(r=f[o]&&f[o].targetOrigin,v(o,"["+e+"] Sending msg to iframe["+o+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(s+t,r)):M(o,"["+e+"] IFrame("+o+") not found"),i&&f[o]&&f[o].warningTimeout&&(f[o].msgTimeout=setTimeout(function(){!f[o]||f[o].loaded||a||(a=!0,M(o,"IFrame has not responded within "+f[o].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},f[o].warningTimeout)))}function A(e){return e+":"+f[e].bodyMarginV1+":"+f[e].sizeWidth+":"+f[e].log+":"+f[e].interval+":"+f[e].enablePublicMethods+":"+f[e].autoResize+":"+f[e].bodyMargin+":"+f[e].heightCalculationMethod+":"+f[e].bodyBackground+":"+f[e].bodyPadding+":"+f[e].tolerance+":"+f[e].inPageLinks+":"+f[e].resizeFrom+":"+f[e].widthCalculationMethod+":"+f[e].mouseEvents}function L(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],M(s,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var r,a,s=function(n){var r;return""===n&&(e.id=(r=t&&t.id||p.id+o++,null!==document.getElementById(r)&&(r+=o++),n=r),i=(t||{}).log,v(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);s in f&&"iFrameResizer"in e?M(s,"Ignored iFrame, already setup."):(function(t){var o;t=t||{},f[s]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in p)Object.prototype.hasOwnProperty.call(p,t)&&(f[s][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:p[t])}(t),f[s]&&(f[s].targetOrigin=!0===f[s].checkOrigin?""===(o=f[s].remoteHost)||null!==o.match(/^(about:blank|javascript:|file:\/\/)/)?"*":o:"*")}(t),function(){switch(v(s,"IFrame scrolling "+(f[s]&&f[s].scrolling?"enabled":"disabled")+" for "+s),e.style.overflow=!1===(f[s]&&f[s].scrolling)?"hidden":"auto",f[s]&&f[s].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=f[s]?f[s].scrolling:"no"}}(),function(){function t(t){1/0!==f[s][t]&&0!==f[s][t]&&(e.style[t]=f[s][t]+"px",v(s,"Set "+t+" = "+f[s][t]+"px"))}function n(e){if(f[s]["min"+e]>f[s]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(f[s]&&f[s].bodyMargin)&&"0"!==(f[s]&&f[s].bodyMargin)||(f[s].bodyMarginV1=f[s].bodyMargin,f[s].bodyMargin=f[s].bodyMargin+"px"),r=A(s),(a=m())&&function(t){e.parentNode&&new t(function(t){t.forEach(function(t){Array.prototype.slice.call(t.removedNodes).forEach(function(t){t===e&&T(e)})})}).observe(e.parentNode,{childList:!0})}(a),b(e,"load",function(){var t,n;z("iFrame.onload",r,e,void 0,!0),t=f[s]&&f[s].firstRun,n=f[s]&&f[s].heightCalculationMethod in d,!t&&n&&P({iframe:e,height:0,width:0,type:"init"})}),z("init",r,e,void 0,!0),f[s]&&(f[s].iframe.iFrameResizer={close:T.bind(null,f[s].iframe),removeListeners:C.bind(null,f[s].iframe),resize:z.bind(null,"Window resize","resize",f[s].iframe),moveToAnchor:function(e){z("Move to anchor","moveToAnchor:"+e,f[s].iframe,s)},sendMessage:function(e){z("Send Message","message:"+(e=JSON.stringify(e)),f[s].iframe,s)}}))}function _(e,t){null===h&&(h=setTimeout(function(){h=null,e()},t))}function W(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visiblity change"),_(function(){j("Tab Visable","resize")},16))}function j(e,t){Object.keys(f).forEach(function(n){(function(e){return f[e]&&"parent"===f[e].resizeFrom&&f[e].autoResize&&!f[e].firstRun})(n)&&z(e,t,f[n].iframe,n)})}function H(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),L(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!u;e+=1)u=window[t[e]+"RequestAnimationFrame"];u?u=u.bind(window):v("setup","RequestAnimationFrame not supported")}(),b(window,"message",O),b(window,"resize",function(){v("window","Trigger event: resize"),_(function(){j("Window resize","resize")},16)}),b(document,"visibilitychange",W),b(document,"-webkit-visibilitychange",W),function(n,o){switch(t=[],function(e){e&&e.enablePublicMethods&&M("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(void 0,n));break;case"object":e(n,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}}()}(t),t.exports}();class l extends HTMLIFrameElement{constructor(e={}){super(),this.notebookEditMode="edit",this.version="0.3.1",this._notebookContent="",this.constructorOptions=e}get notebookContent(){return this._notebookContent}set notebookContent(e){this._notebookContent=e}connectedCallback(){var e,t,n,o,i,r,a,l,c,u,d,f,h;this.options={src:null!==(n=null!==(t=(e=this.constructorOptions).src)&&void 0!==t?t:this.getAttribute("src"))&&void 0!==n?n:"starboard-notebook-iframe-src-not-set",autoResize:null===(o=e.autoResize)||void 0===o||o,inPageLinks:null===(i=e.inPageLinks)||void 0===i||i,heightCalculationMethod:null!==(r=e.heightCalculationMethod)&&void 0!==r?r:"taggedElement",sandbox:null!==(l=null!==(a=e.sandbox)&&void 0!==a?a:this.getAttribute("sandbox"))&&void 0!==l?l:"allow-scripts allow-modals allow-same-origin allow-pointer-lock allow-top-navigation-by-user-activation allow-forms allow-downloads",debug:null!==(c=e.debug)&&void 0!==c&&c,onNotebookReadySignalMessage:null!==(u=e.onNotebookReadySignalMessage)&&void 0!==u?u:function(){},onContentUpdateMessage:null!==(d=e.onContentUpdateMessage)&&void 0!==d?d:function(){},onSaveMessage:null!==(f=e.onSaveMessage)&&void 0!==f?f:function(){},onMessage:null!==(h=e.onMessage)&&void 0!==h?h:function(){},notebookContent:e.notebookContent,notebookContainer:e.notebookContainer,notebookVariables:e.notebookVariables,notebookEditMode:e.notebookEditMode||"edit"},console.log(this.options);const p=[new URL(this.options.src).origin];this.sandbox.value=this.options.sandbox,this.src=this.options.src,this.frameBorder="0",this.notebookContent=this.options.notebookContent||"",this.notebookVariables=this.options.notebookVariables||{},this.notebookEditMode=this.options.notebookEditMode||"edit",s({autoResize:this.options.autoResize,inPageLinks:this.options.inPageLinks,heightCalculationMethod:this.options.heightCalculationMethod,checkOrigin:p,log:this.options.debug,onMessage:async e=>{const t=e.message;if("NOTEBOOK_READY_SIGNAL"===t.type){if(this.notebookContent){const e=this.notebookContent,t=this.notebookVariables;this.sendMessage({type:"NOTEBOOK_SET_INIT_DATA",payload:{content:e,variables:t,editMode:this.notebookEditMode}})}else this.notebookContent=t.payload.content;this.options.onNotebookReadySignalMessage(t.payload)}else"NOTEBOOK_CONTENT_UPDATE"===t.type?(this.notebookContent=t.payload.content,this.options.onContentUpdateMessage(t.payload)):"NOTEBOOK_SAVE_REQUEST"===t.type&&(this.notebookContent=t.payload.content,this.options.onSaveMessage(t.payload));this.options.onMessage(t)},onReady:()=>{}},this)}sendMessage(e){this.iFrameResizer.sendMessage(e)}sendCustomMessage(e){this.sendMessage(e)}dispose(){this.iFrameResizer.close()}}customElements.define("starboard-notebook-iframe",l,{extends:"iframe"});var c,u=(c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;this.context.statusRenderer.displayLoadingIndicator(this.domElement,""),0==window.location.host.indexOf("localhost")?this.renderNotebook(""):this.context.aadTokenProviderFactory.getTokenProvider().then(function(e){return e.getToken("https://graph.microsoft.com")}).then(function(t){e.renderNotebook(t)})},t.prototype.renderNotebook=function(e){this.context.statusRenderer.clearLoadingIndicator(this.domElement),console.log("render "+(this.displayMode==o.DisplayMode.Edit?"edit":"view"));var t="api-sandbox-"+this.instanceId.split("-").join(""),n=document.getElementById(t);n&&n.classList.toggle("hidden",!0);var i=this.displayMode==o.DisplayMode.Edit?"edit":"view";this.properties.interactiveMode&&(i="edit");var r=this.getUrlParameters();if(e&&(r._token="office-365:"+e),n)n.notebookContent=this.properties.notebookContent,n.notebookVariables=r,n.notebookEditMode=i,n.sendMessage({type:"NOTEBOOK_RELOAD_PAGE"}),n.classList.toggle("hidden",!1);else{var a={notebookContainer:this,notebookContent:this.properties.notebookContent,notebookVariables:r,debug:!1,notebookEditMode:i,src:"https://apinotebooks-sandbox.netlify.app",onContentUpdateMessage:function(e){this.notebookContainer.properties.notebookContent=e.content},onMessage:function(e){"NAVIGATE_TO"==e.type&&(window.parent.location=e.url)}};(n=new l(a)).style.width="100%",n.id=t,this.domElement.innerHTML="",this.domElement.appendChild(n)}},t.prototype.getUrlParameters=function(){var e=window.location.search;e=e.substring(e.indexOf("?")+1);for(var t,n=/([^&=]+)=?([^&]*)/g,o=/\+/g,i=function(e){return decodeURIComponent(e.replace(o," "))},r={};t=n.exec(e);){var a=i(t[1]),s=i(t[2]);"[]"===a.substring(a.length-2)?(r[a=a.substring(0,a.length-2)]||(r[a]=[])).push(s):r[a]=s}var l=function(e,t,n){for(var o=t.length-1,i=0;i<o;++i){var r=t[i];r in e||(e[r]={}),e=e[r]}e[t[o]]=n};for(var c in r){var u=c.split("[");if(u.length>1){var d=[];u.forEach(function(e,t){var n=e.replace(/[?[\]\\ ]/g,"");d.push(n)}),l(r,d,r[c]),delete r[c]}}return r},Object.defineProperty(t.prototype,"dataVersion",{get:function(){return o.Version.parse("1.0")},enumerable:!0,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[{header:{description:a.PropertyPaneDescription},groups:[{groupName:a.BasicGroupName,groupFields:[Object(i.PropertyPaneTextField)("description",{label:a.DescriptionFieldLabel}),Object(i.PropertyPaneToggle)("interactiveMode",{label:a.InteractiveModeLabel})]}]}]}},t}(r.BaseClientSideWebPart);t.default=d},br4S:function(e,t){e.exports=o}})});